@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,235 +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
|
-
"use strict";
|
|
6
|
-
// tslint:disable:no-forward-ref
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
var tslib_1 = require("tslib");
|
|
9
|
-
var core_1 = require("@angular/core");
|
|
10
|
-
var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
11
|
-
var kendo_angular_inputs_1 = require("@progress/kendo-angular-inputs");
|
|
12
|
-
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
-
var util_1 = require("../../util");
|
|
14
|
-
var editor_component_1 = require("../../editor.component");
|
|
15
|
-
var kendo_angular_dialog_1 = require("@progress/kendo-angular-dialog");
|
|
16
|
-
var colorpicker_dialog_component_1 = require("../../dialogs/colorpicker-dialog.component");
|
|
17
|
-
var operators_1 = require("rxjs/operators");
|
|
18
|
-
/**
|
|
19
|
-
* A component which configures an existing ColorPickerComponent as a ToolBar tool.
|
|
20
|
-
* To associate a `kendo-toolbar-colorpicker` with an Editor command that changes the
|
|
21
|
-
* foreground or the background color of the text, use the `kendoEditorForeColor` or `kendoEditorBackColor` directive.
|
|
22
|
-
*/
|
|
23
|
-
var EditorColorPickerComponent = /** @class */ (function (_super) {
|
|
24
|
-
tslib_1.__extends(EditorColorPickerComponent, _super);
|
|
25
|
-
function EditorColorPickerComponent(editor, localization, dialogService, ngZone) {
|
|
26
|
-
var _this = _super.call(this) || this;
|
|
27
|
-
_this.editor = editor;
|
|
28
|
-
_this.localization = localization;
|
|
29
|
-
_this.dialogService = dialogService;
|
|
30
|
-
_this.ngZone = ngZone;
|
|
31
|
-
_this.tabindex = -1;
|
|
32
|
-
/**
|
|
33
|
-
* Specifies if the component should be disabled.
|
|
34
|
-
*/
|
|
35
|
-
_this.disabled = false;
|
|
36
|
-
/**
|
|
37
|
-
* Specifies whether the ColorPicker will render a gradient, palette, or both in its popup.
|
|
38
|
-
*
|
|
39
|
-
* @default ['palette']
|
|
40
|
-
*/
|
|
41
|
-
_this.views = ['palette'];
|
|
42
|
-
return _this;
|
|
43
|
-
}
|
|
44
|
-
EditorColorPickerComponent_1 = EditorColorPickerComponent;
|
|
45
|
-
Object.defineProperty(EditorColorPickerComponent.prototype, "view", {
|
|
46
|
-
get: function () {
|
|
47
|
-
return (this.views && this.views.length > 0) ? this.views[0] : null;
|
|
48
|
-
},
|
|
49
|
-
/**
|
|
50
|
-
* @hidden
|
|
51
|
-
*
|
|
52
|
-
* For backward compatibility with configurations using the deprecated "view" input.
|
|
53
|
-
*/
|
|
54
|
-
set: function (view) {
|
|
55
|
-
this.views = [view];
|
|
56
|
-
},
|
|
57
|
-
enumerable: true,
|
|
58
|
-
configurable: true
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(EditorColorPickerComponent.prototype, "title", {
|
|
61
|
-
/**
|
|
62
|
-
* @hidden
|
|
63
|
-
*/
|
|
64
|
-
get: function () {
|
|
65
|
-
return this.localization.get(this.editorCommand);
|
|
66
|
-
},
|
|
67
|
-
enumerable: true,
|
|
68
|
-
configurable: true
|
|
69
|
-
});
|
|
70
|
-
EditorColorPickerComponent.prototype.ngOnInit = function () {
|
|
71
|
-
var _this = this;
|
|
72
|
-
this.subs = this.editor.stateChange.subscribe(function (_a) {
|
|
73
|
-
var style = _a.style;
|
|
74
|
-
_this.disabled = style.disabled;
|
|
75
|
-
});
|
|
76
|
-
};
|
|
77
|
-
EditorColorPickerComponent.prototype.ngOnDestroy = function () {
|
|
78
|
-
if (this.subs) {
|
|
79
|
-
this.subs.unsubscribe();
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
/**
|
|
83
|
-
* @hidden
|
|
84
|
-
*/
|
|
85
|
-
EditorColorPickerComponent.prototype.handleValueChange = function (color) {
|
|
86
|
-
this.editor.exec(this.editorCommand, color);
|
|
87
|
-
this.editor.view.focus();
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* @hidden
|
|
91
|
-
*/
|
|
92
|
-
EditorColorPickerComponent.prototype.handleActiveColorClick = function (event) {
|
|
93
|
-
event.preventOpen();
|
|
94
|
-
this.handleValueChange(event.color);
|
|
95
|
-
};
|
|
96
|
-
/**
|
|
97
|
-
* @hidden
|
|
98
|
-
*/
|
|
99
|
-
EditorColorPickerComponent.prototype.onOpen = function (picker) {
|
|
100
|
-
this.valueCache = picker.value;
|
|
101
|
-
picker.reset();
|
|
102
|
-
};
|
|
103
|
-
/**
|
|
104
|
-
* @hidden
|
|
105
|
-
*/
|
|
106
|
-
EditorColorPickerComponent.prototype.onClose = function (picker) {
|
|
107
|
-
var _this = this;
|
|
108
|
-
if (!picker.value) {
|
|
109
|
-
picker.value = this.valueCache;
|
|
110
|
-
}
|
|
111
|
-
this.editor.shouldEmitFocus = true;
|
|
112
|
-
this.ngZone.onStable.pipe(operators_1.take(1)).subscribe(function () { return _this.editor.view.focus(); });
|
|
113
|
-
};
|
|
114
|
-
Object.defineProperty(EditorColorPickerComponent.prototype, "outerWidth", {
|
|
115
|
-
/**
|
|
116
|
-
* @hidden
|
|
117
|
-
*/
|
|
118
|
-
get: function () {
|
|
119
|
-
if (this.element) {
|
|
120
|
-
return util_1.outerWidth(this.element.nativeElement);
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
enumerable: true,
|
|
124
|
-
configurable: true
|
|
125
|
-
});
|
|
126
|
-
/**
|
|
127
|
-
* @hidden
|
|
128
|
-
*/
|
|
129
|
-
EditorColorPickerComponent.prototype.openDialog = function () {
|
|
130
|
-
var dialogSettings = {
|
|
131
|
-
appendTo: this.editor.dialogContainer,
|
|
132
|
-
content: colorpicker_dialog_component_1.ColorPickerDialogComponent
|
|
133
|
-
};
|
|
134
|
-
this.editor.toolbar.toggle(false);
|
|
135
|
-
var dialogContent = this.dialogService.open(dialogSettings).content.instance;
|
|
136
|
-
dialogContent.setData({
|
|
137
|
-
editor: this.editor,
|
|
138
|
-
value: this.value,
|
|
139
|
-
title: this.title,
|
|
140
|
-
editorCommand: this.editorCommand,
|
|
141
|
-
paletteSettings: this.paletteSettings,
|
|
142
|
-
icon: this.icon,
|
|
143
|
-
views: this.views
|
|
144
|
-
});
|
|
145
|
-
};
|
|
146
|
-
/**
|
|
147
|
-
* @hidden
|
|
148
|
-
*/
|
|
149
|
-
EditorColorPickerComponent.prototype.canFocus = function () {
|
|
150
|
-
return !this.disabled;
|
|
151
|
-
};
|
|
152
|
-
/**
|
|
153
|
-
* @hidden
|
|
154
|
-
*/
|
|
155
|
-
EditorColorPickerComponent.prototype.focus = function () {
|
|
156
|
-
this.tabindex = 0;
|
|
157
|
-
if (this.overflows) {
|
|
158
|
-
this.colorPickerButton.nativeElement.focus();
|
|
159
|
-
}
|
|
160
|
-
else {
|
|
161
|
-
this.colorPicker.focus();
|
|
162
|
-
}
|
|
163
|
-
};
|
|
164
|
-
/**
|
|
165
|
-
* @hidden
|
|
166
|
-
*/
|
|
167
|
-
EditorColorPickerComponent.prototype.handleKey = function () {
|
|
168
|
-
this.tabindex = -1;
|
|
169
|
-
return false;
|
|
170
|
-
};
|
|
171
|
-
var EditorColorPickerComponent_1;
|
|
172
|
-
tslib_1.__decorate([
|
|
173
|
-
core_1.Input(),
|
|
174
|
-
tslib_1.__metadata("design:type", String)
|
|
175
|
-
], EditorColorPickerComponent.prototype, "value", void 0);
|
|
176
|
-
tslib_1.__decorate([
|
|
177
|
-
core_1.Input(),
|
|
178
|
-
tslib_1.__metadata("design:type", String)
|
|
179
|
-
], EditorColorPickerComponent.prototype, "icon", void 0);
|
|
180
|
-
tslib_1.__decorate([
|
|
181
|
-
core_1.Input(),
|
|
182
|
-
tslib_1.__metadata("design:type", Object)
|
|
183
|
-
], EditorColorPickerComponent.prototype, "paletteSettings", void 0);
|
|
184
|
-
tslib_1.__decorate([
|
|
185
|
-
core_1.Input(),
|
|
186
|
-
tslib_1.__metadata("design:type", String)
|
|
187
|
-
], EditorColorPickerComponent.prototype, "editorCommand", void 0);
|
|
188
|
-
tslib_1.__decorate([
|
|
189
|
-
core_1.Input(),
|
|
190
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
191
|
-
], EditorColorPickerComponent.prototype, "disabled", void 0);
|
|
192
|
-
tslib_1.__decorate([
|
|
193
|
-
core_1.Input(),
|
|
194
|
-
tslib_1.__metadata("design:type", Array)
|
|
195
|
-
], EditorColorPickerComponent.prototype, "views", void 0);
|
|
196
|
-
tslib_1.__decorate([
|
|
197
|
-
core_1.Input(),
|
|
198
|
-
tslib_1.__metadata("design:type", String),
|
|
199
|
-
tslib_1.__metadata("design:paramtypes", [String])
|
|
200
|
-
], EditorColorPickerComponent.prototype, "view", null);
|
|
201
|
-
tslib_1.__decorate([
|
|
202
|
-
core_1.ViewChild('toolbarTemplate', { static: true }),
|
|
203
|
-
tslib_1.__metadata("design:type", core_1.TemplateRef)
|
|
204
|
-
], EditorColorPickerComponent.prototype, "toolbarTemplate", void 0);
|
|
205
|
-
tslib_1.__decorate([
|
|
206
|
-
core_1.ViewChild('popupTemplate', { static: true }),
|
|
207
|
-
tslib_1.__metadata("design:type", core_1.TemplateRef)
|
|
208
|
-
], EditorColorPickerComponent.prototype, "popupTemplate", void 0);
|
|
209
|
-
tslib_1.__decorate([
|
|
210
|
-
core_1.ViewChild('colorpicker', { read: core_1.ElementRef, static: false }),
|
|
211
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
212
|
-
], EditorColorPickerComponent.prototype, "element", void 0);
|
|
213
|
-
tslib_1.__decorate([
|
|
214
|
-
core_1.ViewChild('colorpicker', { read: kendo_angular_inputs_1.ColorPickerComponent, static: false }),
|
|
215
|
-
tslib_1.__metadata("design:type", kendo_angular_inputs_1.ColorPickerComponent)
|
|
216
|
-
], EditorColorPickerComponent.prototype, "colorPicker", void 0);
|
|
217
|
-
tslib_1.__decorate([
|
|
218
|
-
core_1.ViewChild('colorPickerButton', { read: core_1.ElementRef, static: false }),
|
|
219
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
220
|
-
], EditorColorPickerComponent.prototype, "colorPickerButton", void 0);
|
|
221
|
-
EditorColorPickerComponent = EditorColorPickerComponent_1 = tslib_1.__decorate([
|
|
222
|
-
core_1.Component({
|
|
223
|
-
providers: [{ provide: kendo_angular_toolbar_1.ToolBarToolComponent, useExisting: core_1.forwardRef(function () { return EditorColorPickerComponent_1; }) }],
|
|
224
|
-
selector: 'kendo-toolbar-colorpicker',
|
|
225
|
-
template: "\n <ng-template #toolbarTemplate>\n <kendo-colorpicker\n #colorpicker\n [attr.title]=\"title\"\n [icon]=\"icon\"\n [views]=\"views\"\n [format]=\"'hex'\"\n [value]=\"value\"\n [paletteSettings]=\"paletteSettings\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (valueChange)=\"handleValueChange($event)\"\n (activeColorClick)=\"handleActiveColorClick($event)\"\n (open)=\"onOpen(colorpicker)\"\n (close)=\"onClose(colorpicker)\"\n >\n </kendo-colorpicker>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex=\"-1\"\n type=\"button\"\n kendoButton\n #colorPickerButton\n class=\"k-overflow-button\"\n [icon]=\"icon\"\n [attr.title]=\"title\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (click)=\"openDialog()\"\n >\n {{ title }}\n </button>\n </ng-template>\n "
|
|
226
|
-
}),
|
|
227
|
-
tslib_1.__param(0, core_1.Host()),
|
|
228
|
-
tslib_1.__metadata("design:paramtypes", [editor_component_1.EditorComponent,
|
|
229
|
-
editor_localization_service_1.EditorLocalizationService,
|
|
230
|
-
kendo_angular_dialog_1.DialogService,
|
|
231
|
-
core_1.NgZone])
|
|
232
|
-
], EditorColorPickerComponent);
|
|
233
|
-
return EditorColorPickerComponent;
|
|
234
|
-
}(kendo_angular_toolbar_1.ToolBarToolComponent));
|
|
235
|
-
exports.EditorColorPickerComponent = EditorColorPickerComponent;
|
|
@@ -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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var editor_colorpicker_component_1 = require("./editor-colorpicker.component");
|
|
10
|
-
var command_icons_1 = require("../../config/command-icons");
|
|
11
|
-
/**
|
|
12
|
-
* A directive which configures an `EditorColorPickerComponent`
|
|
13
|
-
* for manipulating the foreground color of the text
|
|
14
|
-
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
15
|
-
*/
|
|
16
|
-
var EditorForeColorDirective = /** @class */ (function () {
|
|
17
|
-
function EditorForeColorDirective(colorPicker) {
|
|
18
|
-
this.colorPicker = colorPicker;
|
|
19
|
-
this.colorPicker.icon = command_icons_1.commandIcons.foreColor;
|
|
20
|
-
this.colorPicker.editorCommand = 'foreColor';
|
|
21
|
-
}
|
|
22
|
-
EditorForeColorDirective = tslib_1.__decorate([
|
|
23
|
-
core_1.Directive({
|
|
24
|
-
selector: '[kendoEditorForeColor]'
|
|
25
|
-
}),
|
|
26
|
-
tslib_1.__metadata("design:paramtypes", [editor_colorpicker_component_1.EditorColorPickerComponent])
|
|
27
|
-
], EditorForeColorDirective);
|
|
28
|
-
return EditorForeColorDirective;
|
|
29
|
-
}());
|
|
30
|
-
exports.EditorForeColorDirective = EditorForeColorDirective;
|
|
@@ -1,48 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
10
|
-
var editor_component_1 = require("../editor.component");
|
|
11
|
-
var editor_command_button_1 = require("./shared/editor-command-button");
|
|
12
|
-
var editor_localization_service_1 = require("../localization/editor-localization.service");
|
|
13
|
-
var tools_service_1 = require("./tools.service");
|
|
14
|
-
/**
|
|
15
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Clean Formatting 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
|
-
*
|
|
19
|
-
* @example
|
|
20
|
-
* ```ts-no-run
|
|
21
|
-
* <kendo-toolbar-button kendoEditorCleanFormattingButton></kendo-toolbar-button>
|
|
22
|
-
* ```
|
|
23
|
-
*
|
|
24
|
-
* The following example demonstrates how to change the default icon applied by the directive.
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts-no-run
|
|
28
|
-
* <kendo-toolbar-button kendoEditorCleanFormattingButton icon="blogger"></kendo-toolbar-button>
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
var EditorCleanFormattingButtonDirective = /** @class */ (function (_super) {
|
|
32
|
-
tslib_1.__extends(EditorCleanFormattingButtonDirective, _super);
|
|
33
|
-
function EditorCleanFormattingButtonDirective(button, editor, localization, toolsService) {
|
|
34
|
-
return _super.call(this, 'cleanFormatting', button, editor, localization, toolsService) || this;
|
|
35
|
-
}
|
|
36
|
-
EditorCleanFormattingButtonDirective = tslib_1.__decorate([
|
|
37
|
-
core_1.Directive({
|
|
38
|
-
selector: 'kendo-toolbar-button[kendoEditorCleanFormattingButton]'
|
|
39
|
-
}),
|
|
40
|
-
tslib_1.__param(1, core_1.Host()),
|
|
41
|
-
tslib_1.__metadata("design:paramtypes", [kendo_angular_toolbar_1.ToolBarButtonComponent,
|
|
42
|
-
editor_component_1.EditorComponent,
|
|
43
|
-
editor_localization_service_1.EditorLocalizationService,
|
|
44
|
-
tools_service_1.EditorToolsService])
|
|
45
|
-
], EditorCleanFormattingButtonDirective);
|
|
46
|
-
return EditorCleanFormattingButtonDirective;
|
|
47
|
-
}(editor_command_button_1.EditorCommandButton));
|
|
48
|
-
exports.EditorCleanFormattingButtonDirective = EditorCleanFormattingButtonDirective;
|
|
@@ -1,73 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var kendo_angular_dropdowns_1 = require("@progress/kendo-angular-dropdowns");
|
|
10
|
-
/**
|
|
11
|
-
* @hidden
|
|
12
|
-
*/
|
|
13
|
-
var FontFamilyDropDownListComponent = /** @class */ (function () {
|
|
14
|
-
function FontFamilyDropDownListComponent() {
|
|
15
|
-
this.valueChange = new core_1.EventEmitter();
|
|
16
|
-
}
|
|
17
|
-
FontFamilyDropDownListComponent.prototype.onValueChange = function (tag) {
|
|
18
|
-
this.valueChange.emit(tag);
|
|
19
|
-
};
|
|
20
|
-
FontFamilyDropDownListComponent.prototype.focus = function () {
|
|
21
|
-
this.dropDownList.focus();
|
|
22
|
-
};
|
|
23
|
-
tslib_1.__decorate([
|
|
24
|
-
core_1.Input(),
|
|
25
|
-
tslib_1.__metadata("design:type", Array)
|
|
26
|
-
], FontFamilyDropDownListComponent.prototype, "data", void 0);
|
|
27
|
-
tslib_1.__decorate([
|
|
28
|
-
core_1.Input(),
|
|
29
|
-
tslib_1.__metadata("design:type", String)
|
|
30
|
-
], FontFamilyDropDownListComponent.prototype, "value", void 0);
|
|
31
|
-
tslib_1.__decorate([
|
|
32
|
-
core_1.Input(),
|
|
33
|
-
tslib_1.__metadata("design:type", Object)
|
|
34
|
-
], FontFamilyDropDownListComponent.prototype, "defaultItem", void 0);
|
|
35
|
-
tslib_1.__decorate([
|
|
36
|
-
core_1.Input(),
|
|
37
|
-
tslib_1.__metadata("design:type", Function)
|
|
38
|
-
], FontFamilyDropDownListComponent.prototype, "itemDisabled", void 0);
|
|
39
|
-
tslib_1.__decorate([
|
|
40
|
-
core_1.Input(),
|
|
41
|
-
tslib_1.__metadata("design:type", String)
|
|
42
|
-
], FontFamilyDropDownListComponent.prototype, "title", void 0);
|
|
43
|
-
tslib_1.__decorate([
|
|
44
|
-
core_1.Input(),
|
|
45
|
-
tslib_1.__metadata("design:type", Boolean)
|
|
46
|
-
], FontFamilyDropDownListComponent.prototype, "disabled", void 0);
|
|
47
|
-
tslib_1.__decorate([
|
|
48
|
-
core_1.Input(),
|
|
49
|
-
tslib_1.__metadata("design:type", Number)
|
|
50
|
-
], FontFamilyDropDownListComponent.prototype, "tabindex", void 0);
|
|
51
|
-
tslib_1.__decorate([
|
|
52
|
-
core_1.Output(),
|
|
53
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
54
|
-
], FontFamilyDropDownListComponent.prototype, "valueChange", void 0);
|
|
55
|
-
tslib_1.__decorate([
|
|
56
|
-
core_1.ViewChild('element', { static: true }),
|
|
57
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
58
|
-
], FontFamilyDropDownListComponent.prototype, "element", void 0);
|
|
59
|
-
tslib_1.__decorate([
|
|
60
|
-
core_1.ViewChild('element', { read: kendo_angular_dropdowns_1.DropDownListComponent, static: true }),
|
|
61
|
-
tslib_1.__metadata("design:type", kendo_angular_dropdowns_1.DropDownListComponent)
|
|
62
|
-
], FontFamilyDropDownListComponent.prototype, "dropDownList", void 0);
|
|
63
|
-
FontFamilyDropDownListComponent = tslib_1.__decorate([
|
|
64
|
-
core_1.Component({
|
|
65
|
-
// tslint:disable-next-line:no-forward-ref
|
|
66
|
-
selector: 'kendo-editor-fontfamily-dropdownlist',
|
|
67
|
-
template: "\n <kendo-dropdownlist\n #element\n kendoEditorDropDownTool\n [defaultItem]=\"defaultItem\"\n [textField]=\"'text'\"\n [valueField]=\"'fontName'\"\n [data]=\"data\"\n [(value)]=\"value\"\n [valuePrimitive]=\"true\"\n [itemDisabled]=\"itemDisabled\"\n [attr.title]=\"title\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (valueChange)=\"onValueChange($event)\"\n >\n <ng-template kendoDropDownListItemTemplate let-dataItem>\n <span [ngStyle]=\"{ 'font-family': dataItem.fontName }\">\n {{ dataItem.text }}\n </span>\n </ng-template>\n </kendo-dropdownlist>\n ",
|
|
68
|
-
styles: ["\n .k-dropdownlist {\n width: 13em;\n }\n "]
|
|
69
|
-
})
|
|
70
|
-
], FontFamilyDropDownListComponent);
|
|
71
|
-
return FontFamilyDropDownListComponent;
|
|
72
|
-
}());
|
|
73
|
-
exports.FontFamilyDropDownListComponent = FontFamilyDropDownListComponent;
|
|
@@ -1,213 +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
|
-
"use strict";
|
|
6
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
var tslib_1 = require("tslib");
|
|
8
|
-
var core_1 = require("@angular/core");
|
|
9
|
-
var kendo_angular_toolbar_1 = require("@progress/kendo-angular-toolbar");
|
|
10
|
-
var util_1 = require("../../util");
|
|
11
|
-
var editor_component_1 = require("../../editor.component");
|
|
12
|
-
var editor_localization_service_1 = require("../../localization/editor-localization.service");
|
|
13
|
-
var kendo_angular_dialog_1 = require("@progress/kendo-angular-dialog");
|
|
14
|
-
var font_family_dialog_component_1 = require("../../dialogs/font-family-dialog.component");
|
|
15
|
-
var editor_fontfamily_dropdownlist_component_1 = require("./editor-fontfamily-dropdownlist.component");
|
|
16
|
-
var tools_service_1 = require("../tools.service");
|
|
17
|
-
/**
|
|
18
|
-
* A component which configures an existing `DropDownListComponent` as an Editor tool
|
|
19
|
-
* ([see example]({% slug toolbartools_editor %}#toc-built-in-tools)).
|
|
20
|
-
* The component associates a `kendo-toolbar-dropdownlist` with an Editor command that changes the font family of a content block and
|
|
21
|
-
* automatically defines the options of the drop-down list and sets its values.
|
|
22
|
-
*
|
|
23
|
-
* @example
|
|
24
|
-
* ```ts-no-run
|
|
25
|
-
* <kendo-toolbar-dropdownlist kendoEditorFontFamily></kendo-toolbar-dropdownlist>
|
|
26
|
-
* ```
|
|
27
|
-
*/
|
|
28
|
-
var EditorFontFamilyComponent = /** @class */ (function (_super) {
|
|
29
|
-
tslib_1.__extends(EditorFontFamilyComponent, _super);
|
|
30
|
-
function EditorFontFamilyComponent(editor, dialogService, localization, toolsService) {
|
|
31
|
-
var _this = _super.call(this) || this;
|
|
32
|
-
_this.editor = editor;
|
|
33
|
-
_this.dialogService = dialogService;
|
|
34
|
-
_this.localization = localization;
|
|
35
|
-
_this.toolsService = toolsService;
|
|
36
|
-
_this.disabled = false;
|
|
37
|
-
_this.tabindex = -1;
|
|
38
|
-
/**
|
|
39
|
-
* Fires when the user updates the value of the drop-down list.
|
|
40
|
-
*/
|
|
41
|
-
_this.valueChange = new core_1.EventEmitter();
|
|
42
|
-
_this._data = [
|
|
43
|
-
{ text: 'Arial', fontName: 'Arial,"Helvetica Neue",Helvetica,sans-serif' },
|
|
44
|
-
{ text: 'Courier New', fontName: '"Courier New",Courier,"Lucida Sans Typewriter","Lucida Typewriter",monospace' },
|
|
45
|
-
{ text: 'Georgia', fontName: 'Georgia,Times,"Times New Roman",serif' },
|
|
46
|
-
{
|
|
47
|
-
fontName:
|
|
48
|
-
// tslint:disable-next-line:max-line-length
|
|
49
|
-
'Impact,Haettenschweiler,"Franklin Gothic Bold",Charcoal,"Helvetica Inserat","Bitstream Vera Sans Bold","Arial Black","sans serif"',
|
|
50
|
-
text: 'Impact'
|
|
51
|
-
},
|
|
52
|
-
{ text: 'Lucida Console', fontName: '"Lucida Console","Lucida Sans Typewriter",monaco,"Bitstream Vera Sans Mono",monospace' },
|
|
53
|
-
{ text: 'Tahoma', fontName: 'Tahoma,Verdana,Segoe,sans-serif' },
|
|
54
|
-
{ text: 'Times New Roman', fontName: 'TimesNewRoman,"Times New Roman",Times,Baskerville,Georgia,serif' },
|
|
55
|
-
{ text: 'Trebuchet MS', fontName: '"Trebuchet MS","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Tahoma,sans-serif' },
|
|
56
|
-
{ text: 'Verdana', fontName: 'Verdana,Geneva,sans-serif' }
|
|
57
|
-
];
|
|
58
|
-
return _this;
|
|
59
|
-
}
|
|
60
|
-
EditorFontFamilyComponent_1 = EditorFontFamilyComponent;
|
|
61
|
-
Object.defineProperty(EditorFontFamilyComponent.prototype, "data", {
|
|
62
|
-
get: function () {
|
|
63
|
-
return this._data;
|
|
64
|
-
},
|
|
65
|
-
/**
|
|
66
|
-
* Overrides the default font list.
|
|
67
|
-
*/
|
|
68
|
-
set: function (fonts) {
|
|
69
|
-
this._data = fonts || this._data;
|
|
70
|
-
},
|
|
71
|
-
enumerable: true,
|
|
72
|
-
configurable: true
|
|
73
|
-
});
|
|
74
|
-
EditorFontFamilyComponent.prototype.ngOnInit = function () {
|
|
75
|
-
var _this = this;
|
|
76
|
-
this.itemDisabled = function (itemArgs) {
|
|
77
|
-
if (!_this.overflows && _this.fontFamilyDropDownList && !_this.fontFamilyDropDownList.dropDownList.isOpen) {
|
|
78
|
-
return true; //disable all items in order to prevent navigation when DDL is closed
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
return itemArgs.dataItem.fontName === null;
|
|
82
|
-
}
|
|
83
|
-
};
|
|
84
|
-
setTimeout(function () {
|
|
85
|
-
_this.defaultItem = { text: _this.title, fontName: null };
|
|
86
|
-
_this.toolsService.needsCheck.next();
|
|
87
|
-
});
|
|
88
|
-
this.subs = this.editor.stateChange.subscribe(function (_a) {
|
|
89
|
-
var style = _a.style;
|
|
90
|
-
_this.value = util_1.getUniqueStyleValues(style.selected, 'font-family') || null;
|
|
91
|
-
_this.disabled = style.disabled;
|
|
92
|
-
});
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* @hidden
|
|
96
|
-
*/
|
|
97
|
-
EditorFontFamilyComponent.prototype.onValueChange = function (ev) {
|
|
98
|
-
if (util_1.isPresent(ev)) {
|
|
99
|
-
this.editor.exec('fontFamily', ev);
|
|
100
|
-
this.editor.view.focus();
|
|
101
|
-
this.valueChange.emit(this.data.find(function (f) { return f.fontName === ev; }));
|
|
102
|
-
}
|
|
103
|
-
};
|
|
104
|
-
EditorFontFamilyComponent.prototype.ngOnDestroy = function () {
|
|
105
|
-
if (this.subs) {
|
|
106
|
-
this.subs.unsubscribe();
|
|
107
|
-
}
|
|
108
|
-
};
|
|
109
|
-
Object.defineProperty(EditorFontFamilyComponent.prototype, "outerWidth", {
|
|
110
|
-
get: function () {
|
|
111
|
-
if (this.element) {
|
|
112
|
-
return util_1.outerWidth(this.element.nativeElement);
|
|
113
|
-
}
|
|
114
|
-
},
|
|
115
|
-
enumerable: true,
|
|
116
|
-
configurable: true
|
|
117
|
-
});
|
|
118
|
-
Object.defineProperty(EditorFontFamilyComponent.prototype, "title", {
|
|
119
|
-
get: function () {
|
|
120
|
-
return this.localization.get('fontFamily');
|
|
121
|
-
},
|
|
122
|
-
enumerable: true,
|
|
123
|
-
configurable: true
|
|
124
|
-
});
|
|
125
|
-
/**
|
|
126
|
-
* @hidden
|
|
127
|
-
*/
|
|
128
|
-
EditorFontFamilyComponent.prototype.openDialog = function () {
|
|
129
|
-
var dialogSettings = {
|
|
130
|
-
appendTo: this.editor.dialogContainer,
|
|
131
|
-
content: font_family_dialog_component_1.FontFamilyDialogComponent
|
|
132
|
-
};
|
|
133
|
-
this.editor.toolbar.toggle(false);
|
|
134
|
-
var dialogContent = this.dialogService.open(dialogSettings).content.instance;
|
|
135
|
-
dialogContent.setData({
|
|
136
|
-
editor: this.editor,
|
|
137
|
-
data: this.data,
|
|
138
|
-
defaultItem: this.defaultItem,
|
|
139
|
-
value: this.value,
|
|
140
|
-
itemDisabled: this.itemDisabled
|
|
141
|
-
});
|
|
142
|
-
};
|
|
143
|
-
/**
|
|
144
|
-
* @hidden
|
|
145
|
-
*/
|
|
146
|
-
EditorFontFamilyComponent.prototype.canFocus = function () {
|
|
147
|
-
return !this.disabled;
|
|
148
|
-
};
|
|
149
|
-
/**
|
|
150
|
-
* @hidden
|
|
151
|
-
*/
|
|
152
|
-
EditorFontFamilyComponent.prototype.focus = function () {
|
|
153
|
-
this.tabindex = 0;
|
|
154
|
-
if (this.overflows) {
|
|
155
|
-
this.fontFamilyButton.nativeElement.focus();
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
this.fontFamilyDropDownList.focus();
|
|
159
|
-
}
|
|
160
|
-
};
|
|
161
|
-
/**
|
|
162
|
-
* @hidden
|
|
163
|
-
*/
|
|
164
|
-
EditorFontFamilyComponent.prototype.handleKey = function () {
|
|
165
|
-
this.tabindex = -1;
|
|
166
|
-
return false;
|
|
167
|
-
};
|
|
168
|
-
var EditorFontFamilyComponent_1;
|
|
169
|
-
tslib_1.__decorate([
|
|
170
|
-
core_1.Input(),
|
|
171
|
-
tslib_1.__metadata("design:type", Array),
|
|
172
|
-
tslib_1.__metadata("design:paramtypes", [Array])
|
|
173
|
-
], EditorFontFamilyComponent.prototype, "data", null);
|
|
174
|
-
tslib_1.__decorate([
|
|
175
|
-
core_1.Output(),
|
|
176
|
-
tslib_1.__metadata("design:type", core_1.EventEmitter)
|
|
177
|
-
], EditorFontFamilyComponent.prototype, "valueChange", void 0);
|
|
178
|
-
tslib_1.__decorate([
|
|
179
|
-
core_1.ViewChild('toolbarTemplate', { static: true }),
|
|
180
|
-
tslib_1.__metadata("design:type", core_1.TemplateRef)
|
|
181
|
-
], EditorFontFamilyComponent.prototype, "toolbarTemplate", void 0);
|
|
182
|
-
tslib_1.__decorate([
|
|
183
|
-
core_1.ViewChild('popupTemplate', { static: true }),
|
|
184
|
-
tslib_1.__metadata("design:type", core_1.TemplateRef)
|
|
185
|
-
], EditorFontFamilyComponent.prototype, "popupTemplate", void 0);
|
|
186
|
-
tslib_1.__decorate([
|
|
187
|
-
core_1.ViewChild('element', { static: false }),
|
|
188
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
189
|
-
], EditorFontFamilyComponent.prototype, "element", void 0);
|
|
190
|
-
tslib_1.__decorate([
|
|
191
|
-
core_1.ViewChild('element', { read: editor_fontfamily_dropdownlist_component_1.FontFamilyDropDownListComponent, static: false }),
|
|
192
|
-
tslib_1.__metadata("design:type", editor_fontfamily_dropdownlist_component_1.FontFamilyDropDownListComponent)
|
|
193
|
-
], EditorFontFamilyComponent.prototype, "fontFamilyDropDownList", void 0);
|
|
194
|
-
tslib_1.__decorate([
|
|
195
|
-
core_1.ViewChild('fontFamilyButton', { static: false }),
|
|
196
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
197
|
-
], EditorFontFamilyComponent.prototype, "fontFamilyButton", void 0);
|
|
198
|
-
EditorFontFamilyComponent = EditorFontFamilyComponent_1 = tslib_1.__decorate([
|
|
199
|
-
core_1.Component({
|
|
200
|
-
// tslint:disable-next-line:no-forward-ref
|
|
201
|
-
providers: [{ provide: kendo_angular_toolbar_1.ToolBarToolComponent, useExisting: core_1.forwardRef(function () { return EditorFontFamilyComponent_1; }) }],
|
|
202
|
-
selector: 'kendo-toolbar-dropdownlist[kendoEditorFontFamily]',
|
|
203
|
-
template: "\n <ng-template #toolbarTemplate>\n <kendo-editor-fontfamily-dropdownlist\n #element\n [defaultItem]=\"defaultItem\"\n [data]=\"data\"\n [(value)]=\"value\"\n [itemDisabled]=\"itemDisabled\"\n [title]=\"title\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (valueChange)=\"onValueChange($event)\"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </ng-template>\n <ng-template #popupTemplate>\n <button\n tabindex=\"-1\"\n type=\"button\"\n kendoButton\n #fontFamilyButton\n class=\"k-overflow-button\"\n [icon]=\"'font-family'\"\n [attr.title]=\"title\"\n [disabled]=\"disabled\"\n [tabindex]=\"tabindex\"\n (click)=\"openDialog()\"\n >\n {{ title }}\n </button>\n </ng-template>\n "
|
|
204
|
-
}),
|
|
205
|
-
tslib_1.__param(0, core_1.Host()),
|
|
206
|
-
tslib_1.__metadata("design:paramtypes", [editor_component_1.EditorComponent,
|
|
207
|
-
kendo_angular_dialog_1.DialogService,
|
|
208
|
-
editor_localization_service_1.EditorLocalizationService,
|
|
209
|
-
tools_service_1.EditorToolsService])
|
|
210
|
-
], EditorFontFamilyComponent);
|
|
211
|
-
return EditorFontFamilyComponent;
|
|
212
|
-
}(kendo_angular_toolbar_1.ToolBarToolComponent));
|
|
213
|
-
exports.EditorFontFamilyComponent = EditorFontFamilyComponent;
|