@progress/kendo-angular-editor 3.1.2 → 4.0.0-dev.202204140850
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/kendo-angular-editor.umd.js +5 -0
- package/{dist/es2015/common → common}/active-marks.d.ts +0 -0
- package/{dist/es2015/common → common}/apply-to-word-options.d.ts +0 -0
- package/{dist/es2015/common → common}/commands.d.ts +0 -0
- package/{dist/es2015/common → common}/direction.d.ts +0 -0
- package/{dist/es2015/common → common}/error-messages.d.ts +0 -0
- package/{dist/es2015/common → common}/font-family-item.interface.d.ts +0 -0
- package/{dist/es2015/common → common}/font-size-item.interface.d.ts +0 -0
- package/{dist/es2015/common → common}/format-item.interface.d.ts +0 -0
- package/{dist/es2015/common → common}/image-data.interface.d.ts +0 -0
- package/{dist/es2015/common → common}/link-data.interface.d.ts +0 -0
- package/{dist/es2015/common → common}/paste-cleanup-settings.d.ts +0 -0
- package/{dist/es2015/common → common}/plugins-function.d.ts +0 -1
- package/{dist/es2015/common → common}/predicate.d.ts +0 -0
- package/common/provider.service.d.ts +14 -0
- package/{dist/es2015/common → common}/resizable-options.interface.d.ts +0 -0
- package/{dist/es2015/common → common}/styles.d.ts +0 -0
- package/{dist/es2015/common → common}/table-data.interface.d.ts +0 -0
- package/{dist/es2015/config → config}/command-icons.d.ts +0 -0
- package/{dist/es2015/config → config}/commands.d.ts +0 -0
- package/{dist/es2015/config → config}/schema.d.ts +0 -0
- package/{dist/es2015/config → config}/semantic-nodes.d.ts +0 -0
- package/{dist/es2015/config → config}/table-commands.d.ts +0 -0
- package/{dist/es2015/config → config}/utils.d.ts +8 -8
- package/{dist/es2015/dialogs → dialogs}/colorpicker-dialog.component.d.ts +3 -0
- package/{dist/es2015/dialogs → dialogs}/file-link-dialog.component.d.ts +4 -1
- package/{dist/es2015/dialogs → dialogs}/font-family-dialog.component.d.ts +3 -0
- package/{dist/es2015/dialogs → dialogs}/font-size-dialog.component.d.ts +3 -0
- package/{dist/es2015/dialogs → dialogs}/format-dialog.component.d.ts +4 -1
- package/{dist/es2015/dialogs → dialogs}/image-dialog.component.d.ts +3 -0
- package/{dist/es2015/dialogs → dialogs}/insert-table-dialog.component.d.ts +5 -4
- package/{dist/es2015/dialogs → dialogs}/source-dialog.component.d.ts +3 -0
- package/{dist/es2015/editor-toolbar-state.d.ts → editor-toolbar-state.d.ts} +1 -1
- package/{dist/es2015/editor.component.d.ts → editor.component.d.ts} +32 -20
- package/editor.module.d.ts +113 -0
- package/{dist/es2015 → esm2015}/common/active-marks.js +1 -0
- package/{dist/es2015 → esm2015}/common/apply-to-word-options.js +1 -0
- package/{dist/es → esm2015}/common/commands.js +1 -0
- package/{dist/es2015 → esm2015}/common/direction.js +1 -0
- package/{dist/es2015 → esm2015}/common/error-messages.js +2 -5
- package/{dist/es → esm2015}/common/font-family-item.interface.js +1 -0
- package/{dist/es → esm2015}/common/font-size-item.interface.js +1 -0
- package/{dist/es → esm2015}/common/format-item.interface.js +1 -0
- package/{dist/es → esm2015}/common/image-data.interface.js +1 -0
- package/{dist/es → esm2015}/common/link-data.interface.js +1 -0
- package/{dist/es → esm2015}/common/paste-cleanup-settings.js +1 -0
- package/{dist/es → esm2015}/common/plugins-function.js +1 -0
- package/{dist/es → esm2015}/common/predicate.js +1 -0
- package/esm2015/common/provider.service.js +16 -0
- package/{dist/es → esm2015}/common/resizable-options.interface.js +1 -0
- package/{dist/es2015 → esm2015}/common/styles.js +0 -0
- package/{dist/es → esm2015}/common/table-data.interface.js +1 -0
- package/{dist/es2015 → esm2015}/config/command-icons.js +0 -0
- package/esm2015/config/commands.js +62 -0
- package/{dist/es2015 → esm2015}/config/schema.js +0 -0
- package/{dist/es2015 → esm2015}/config/semantic-nodes.js +1 -4
- package/{dist/es2015 → esm2015}/config/table-commands.js +0 -0
- package/{dist/es2015 → esm2015}/config/utils.js +1 -1
- package/esm2015/dialogs/colorpicker-dialog.component.js +117 -0
- package/esm2015/dialogs/file-link-dialog.component.js +209 -0
- package/esm2015/dialogs/font-family-dialog.component.js +106 -0
- package/esm2015/dialogs/font-size-dialog.component.js +106 -0
- package/esm2015/dialogs/format-dialog.component.js +106 -0
- package/{dist/es2015 → esm2015}/dialogs/image-dialog.component.js +60 -21
- package/esm2015/dialogs/insert-table-dialog.component.js +74 -0
- package/esm2015/dialogs/source-dialog.component.js +89 -0
- package/{dist/es2015 → esm2015}/editor-toolbar-state.js +0 -0
- package/{dist/es2015 → esm2015}/editor.component.js +331 -200
- package/{dist/es2015 → esm2015}/editor.module.js +205 -31
- package/{dist/es/common/active-marks.js → esm2015/kendo-angular-editor.js} +4 -0
- package/esm2015/localization/custom-messages.component.js +41 -0
- package/esm2015/localization/editor-localization.service.js +31 -0
- package/esm2015/localization/localized-messages.directive.js +32 -0
- package/esm2015/localization/messages.js +126 -0
- package/{dist/es2015/index.js → esm2015/main.js} +37 -47
- package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
- package/{dist/es → esm2015}/preventable-events/paste-event-data.js +1 -0
- package/{dist/es2015 → esm2015}/preventable-events/paste-event.js +1 -1
- package/esm2015/preventable-events/preventable-event.js +27 -0
- package/esm2015/tools/alignment/editor-align-center-button.directive.js +42 -0
- package/esm2015/tools/alignment/editor-align-justify-button.directive.js +42 -0
- package/esm2015/tools/alignment/editor-align-left-button.directive.js +42 -0
- package/esm2015/tools/alignment/editor-align-right-button.directive.js +42 -0
- package/esm2015/tools/blockquote/editor-blockquote-button.directive.js +41 -0
- package/esm2015/tools/colorpicker/editor-back-color.directive.js +28 -0
- package/esm2015/tools/colorpicker/editor-colorpicker.component.js +262 -0
- package/esm2015/tools/colorpicker/editor-fore-color.directive.js +28 -0
- package/esm2015/tools/editor-clean-formatting-button.directive.js +41 -0
- package/esm2015/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +104 -0
- package/{dist/es2015 → esm2015}/tools/fontfamily/editor-fontfamily.component.js +73 -57
- package/esm2015/tools/fontsize/editor-fontsize-dropdownlist.component.js +93 -0
- package/{dist/es2015 → esm2015}/tools/fontsize/editor-fontsize.component.js +72 -54
- package/esm2015/tools/format/editor-format-dropdownlist.component.js +160 -0
- package/{dist/es2015 → esm2015}/tools/format/editor-format.component.js +69 -51
- package/esm2015/tools/history/editor-redo-button.directive.js +42 -0
- package/esm2015/tools/history/editor-undo-button.directive.js +42 -0
- package/esm2015/tools/image/editor-insert-image-button.directive.js +41 -0
- package/esm2015/tools/indentation/editor-indent-button.directive.js +42 -0
- package/esm2015/tools/indentation/editor-outdent-button.directive.js +42 -0
- package/esm2015/tools/link/editor-create-link-button.directive.js +42 -0
- package/esm2015/tools/link/editor-insert-file-button.directive.js +34 -0
- package/esm2015/tools/link/editor-unlink-button.directive.js +42 -0
- package/esm2015/tools/list/editor-insert-ordered-list-button.directive.js +42 -0
- package/esm2015/tools/list/editor-insert-unordered-list-button.directive.js +42 -0
- package/{dist/es2015 → esm2015}/tools/print/editor-print-button.directive.js +18 -22
- package/esm2015/tools/select-all/select-all-button.directive.js +45 -0
- package/{dist/es2015 → esm2015}/tools/shared/dropdown-tool.directive.js +10 -10
- package/esm2015/tools/shared/editor-command-base.js +64 -0
- package/{dist/es2015 → esm2015}/tools/shared/editor-command-button.js +5 -5
- package/{dist/es2015 → esm2015}/tools/shared/editor-command-dialog.js +4 -5
- package/esm2015/tools/source/editor-view-source-button.directive.js +41 -0
- package/esm2015/tools/tables/editor-add-column-after-button.directive.js +35 -0
- package/esm2015/tools/tables/editor-add-column-before-button.directive.js +35 -0
- package/esm2015/tools/tables/editor-add-row-after-button.directive.js +35 -0
- package/esm2015/tools/tables/editor-add-row-before-button.directive.js +35 -0
- package/esm2015/tools/tables/editor-delete-column-button.directive.js +35 -0
- package/esm2015/tools/tables/editor-delete-row-button.directive.js +35 -0
- package/esm2015/tools/tables/editor-delete-table-button.directive.js +35 -0
- package/{dist/es2015 → esm2015}/tools/tables/editor-insert-table-button.component.js +66 -45
- package/esm2015/tools/tables/editor-merge-cells-button.directive.js +37 -0
- package/esm2015/tools/tables/editor-split-cell-button.directive.js +37 -0
- package/{dist/es2015 → esm2015}/tools/tables/popup-table-grid.component.js +32 -21
- package/esm2015/tools/tools.service.js +20 -0
- package/esm2015/tools/typographical-emphasis/editor-bold-button.directive.js +42 -0
- package/esm2015/tools/typographical-emphasis/editor-italic-button.directive.js +42 -0
- package/esm2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +42 -0
- package/esm2015/tools/typographical-emphasis/editor-subscript-button.directive.js +42 -0
- package/esm2015/tools/typographical-emphasis/editor-superscript-button.directive.js +42 -0
- package/esm2015/tools/typographical-emphasis/editor-underline-button.directive.js +42 -0
- package/{dist/es2015 → esm2015}/util.js +8 -0
- package/fesm2015/kendo-angular-editor.js +6396 -0
- package/kendo-angular-editor.d.ts +9 -0
- package/{dist/es2015/localization → localization}/custom-messages.component.d.ts +6 -3
- package/{dist/es2015/localization → localization}/editor-localization.service.d.ts +3 -0
- package/{dist/es2015/localization → localization}/localized-messages.directive.d.ts +5 -2
- package/{dist/es2015/localization → localization}/messages.d.ts +4 -1
- package/{dist/es/index.js → main.d.ts} +39 -47
- package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
- package/package.json +44 -121
- package/{dist/es2015/preventable-events → preventable-events}/paste-event-data.d.ts +0 -0
- package/{dist/es2015/preventable-events → preventable-events}/paste-event.d.ts +1 -1
- package/preventable-events/preventable-event.d.ts +21 -0
- package/schematics/ngAdd/index.js +5 -2
- package/schematics/ngAdd/index.js.map +1 -1
- package/{dist/es2015/tools → tools}/alignment/editor-align-center-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/alignment/editor-align-justify-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/alignment/editor-align-left-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/alignment/editor-align-right-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/blockquote/editor-blockquote-button.directive.d.ts +5 -3
- package/{dist/es2015/tools → tools}/colorpicker/editor-back-color.directive.d.ts +3 -0
- package/{dist/es2015/tools → tools}/colorpicker/editor-colorpicker.component.d.ts +10 -6
- package/{dist/es2015/tools → tools}/colorpicker/editor-fore-color.directive.d.ts +3 -0
- package/{dist/es2015/tools → tools}/editor-clean-formatting-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/fontfamily/editor-fontfamily-dropdownlist.component.d.ts +3 -0
- package/{dist/es2015/tools → tools}/fontfamily/editor-fontfamily.component.d.ts +10 -6
- package/{dist/es2015/tools → tools}/fontsize/editor-fontsize-dropdownlist.component.d.ts +3 -0
- package/{dist/es2015/tools → tools}/fontsize/editor-fontsize.component.d.ts +10 -6
- package/{dist/es2015/tools → tools}/format/editor-format-dropdownlist.component.d.ts +3 -0
- package/{dist/es2015/tools → tools}/format/editor-format.component.d.ts +10 -6
- package/{dist/es2015/tools → tools}/history/editor-redo-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/history/editor-undo-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/image/editor-insert-image-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/indentation/editor-indent-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/indentation/editor-outdent-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/link/editor-create-link-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/link/editor-insert-file-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/link/editor-unlink-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/list/editor-insert-ordered-list-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/list/editor-insert-unordered-list-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/print/editor-print-button.directive.d.ts +5 -3
- package/{dist/es2015/tools → tools}/select-all/select-all-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/shared/dropdown-tool.directive.d.ts +4 -1
- package/{dist/es2015/tools → tools}/shared/editor-command-base.d.ts +8 -4
- package/{dist/es2015/tools → tools}/shared/editor-command-button.d.ts +5 -5
- package/{dist/es2015/tools → tools}/shared/editor-command-dialog.d.ts +4 -5
- package/{dist/es2015/tools → tools}/source/editor-view-source-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-add-column-after-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-add-column-before-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-add-row-after-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-add-row-before-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-delete-column-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-delete-row-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-delete-table-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-insert-table-button.component.d.ts +10 -9
- package/{dist/es2015/tools → tools}/tables/editor-merge-cells-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/editor-split-cell-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/tables/popup-table-grid.component.d.ts +7 -6
- package/{dist/es2015/tools → tools}/tools.service.d.ts +3 -0
- package/{dist/es2015/tools → tools}/typographical-emphasis/editor-bold-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/typographical-emphasis/editor-italic-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/typographical-emphasis/editor-strikethrough-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/typographical-emphasis/editor-subscript-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/typographical-emphasis/editor-superscript-button.directive.d.ts +5 -2
- package/{dist/es2015/tools → tools}/typographical-emphasis/editor-underline-button.directive.d.ts +5 -2
- package/{dist/es2015/util.d.ts → util.d.ts} +7 -0
- package/dist/cdn/js/kendo-angular-editor.js +0 -20
- package/dist/cdn/main.js +0 -5
- package/dist/es/common/apply-to-word-options.js +0 -4
- package/dist/es/common/direction.js +0 -4
- package/dist/es/common/error-messages.js +0 -19
- package/dist/es/common/styles.js +0 -16
- package/dist/es/config/command-icons.js +0 -48
- package/dist/es/config/commands.js +0 -71
- package/dist/es/config/schema.js +0 -22
- package/dist/es/config/semantic-nodes.js +0 -32
- package/dist/es/config/table-commands.js +0 -14
- package/dist/es/config/utils.js +0 -102
- package/dist/es/dialogs/colorpicker-dialog.component.js +0 -70
- package/dist/es/dialogs/file-link-dialog.component.js +0 -126
- package/dist/es/dialogs/font-family-dialog.component.js +0 -65
- package/dist/es/dialogs/font-size-dialog.component.js +0 -65
- package/dist/es/dialogs/format-dialog.component.js +0 -65
- package/dist/es/dialogs/image-dialog.component.js +0 -102
- package/dist/es/dialogs/insert-table-dialog.component.js +0 -49
- package/dist/es/dialogs/source-dialog.component.js +0 -72
- package/dist/es/editor-toolbar-state.js +0 -280
- package/dist/es/editor.component.js +0 -1039
- package/dist/es/editor.module.js +0 -241
- package/dist/es/localization/custom-messages.component.js +0 -45
- package/dist/es/localization/editor-localization.service.js +0 -24
- package/dist/es/localization/localized-messages.directive.js +0 -36
- package/dist/es/localization/messages.js +0 -230
- package/dist/es/main.js +0 -9
- package/dist/es/package-metadata.js +0 -15
- package/dist/es/preventable-events/paste-event.js +0 -25
- package/dist/es/tools/alignment/editor-align-center-button.directive.js +0 -47
- package/dist/es/tools/alignment/editor-align-justify-button.directive.js +0 -47
- package/dist/es/tools/alignment/editor-align-left-button.directive.js +0 -47
- package/dist/es/tools/alignment/editor-align-right-button.directive.js +0 -47
- package/dist/es/tools/blockquote/editor-blockquote-button.directive.js +0 -48
- package/dist/es/tools/colorpicker/editor-back-color.directive.js +0 -28
- package/dist/es/tools/colorpicker/editor-colorpicker.component.js +0 -233
- package/dist/es/tools/colorpicker/editor-fore-color.directive.js +0 -28
- package/dist/es/tools/editor-clean-formatting-button.directive.js +0 -46
- package/dist/es/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +0 -71
- package/dist/es/tools/fontfamily/editor-fontfamily.component.js +0 -211
- package/dist/es/tools/fontsize/editor-fontsize-dropdownlist.component.js +0 -71
- package/dist/es/tools/fontsize/editor-fontsize.component.js +0 -206
- package/dist/es/tools/format/editor-format-dropdownlist.component.js +0 -71
- package/dist/es/tools/format/editor-format.component.js +0 -202
- package/dist/es/tools/history/editor-redo-button.directive.js +0 -47
- package/dist/es/tools/history/editor-undo-button.directive.js +0 -47
- package/dist/es/tools/image/editor-insert-image-button.directive.js +0 -46
- package/dist/es/tools/indentation/editor-indent-button.directive.js +0 -47
- package/dist/es/tools/indentation/editor-outdent-button.directive.js +0 -47
- package/dist/es/tools/link/editor-create-link-button.directive.js +0 -47
- package/dist/es/tools/link/editor-insert-file-button.directive.js +0 -39
- package/dist/es/tools/link/editor-unlink-button.directive.js +0 -47
- package/dist/es/tools/list/editor-insert-ordered-list-button.directive.js +0 -47
- package/dist/es/tools/list/editor-insert-unordered-list-button.directive.js +0 -47
- package/dist/es/tools/print/editor-print-button.directive.js +0 -69
- package/dist/es/tools/select-all/select-all-button.directive.js +0 -50
- package/dist/es/tools/shared/dropdown-tool.directive.js +0 -41
- package/dist/es/tools/shared/editor-command-base.js +0 -49
- package/dist/es/tools/shared/editor-command-button.js +0 -34
- package/dist/es/tools/shared/editor-command-dialog.js +0 -30
- package/dist/es/tools/source/editor-view-source-button.directive.js +0 -46
- package/dist/es/tools/tables/editor-add-column-after-button.directive.js +0 -40
- package/dist/es/tools/tables/editor-add-column-before-button.directive.js +0 -40
- package/dist/es/tools/tables/editor-add-row-after-button.directive.js +0 -40
- package/dist/es/tools/tables/editor-add-row-before-button.directive.js +0 -40
- package/dist/es/tools/tables/editor-delete-column-button.directive.js +0 -40
- package/dist/es/tools/tables/editor-delete-row-button.directive.js +0 -40
- package/dist/es/tools/tables/editor-delete-table-button.directive.js +0 -40
- package/dist/es/tools/tables/editor-insert-table-button.component.js +0 -202
- package/dist/es/tools/tables/editor-merge-cells-button.directive.js +0 -42
- package/dist/es/tools/tables/editor-split-cell-button.directive.js +0 -42
- package/dist/es/tools/tables/popup-table-grid.component.js +0 -69
- package/dist/es/tools/tools.service.js +0 -20
- package/dist/es/tools/typographical-emphasis/editor-bold-button.directive.js +0 -47
- package/dist/es/tools/typographical-emphasis/editor-italic-button.directive.js +0 -47
- package/dist/es/tools/typographical-emphasis/editor-strikethrough-button.directive.js +0 -47
- package/dist/es/tools/typographical-emphasis/editor-subscript-button.directive.js +0 -47
- package/dist/es/tools/typographical-emphasis/editor-superscript-button.directive.js +0 -47
- package/dist/es/tools/typographical-emphasis/editor-underline-button.directive.js +0 -47
- package/dist/es/util.js +0 -127
- package/dist/es2015/common/commands.js +0 -4
- package/dist/es2015/common/font-family-item.interface.js +0 -4
- package/dist/es2015/common/font-size-item.interface.js +0 -4
- package/dist/es2015/common/format-item.interface.js +0 -4
- package/dist/es2015/common/image-data.interface.js +0 -4
- package/dist/es2015/common/link-data.interface.js +0 -4
- package/dist/es2015/common/paste-cleanup-settings.js +0 -4
- package/dist/es2015/common/plugins-function.js +0 -4
- package/dist/es2015/common/predicate.js +0 -4
- package/dist/es2015/common/resizable-options.interface.js +0 -4
- package/dist/es2015/common/table-data.interface.js +0 -4
- package/dist/es2015/config/commands.js +0 -67
- package/dist/es2015/dialogs/colorpicker-dialog.component.js +0 -92
- package/dist/es2015/dialogs/file-link-dialog.component.js +0 -163
- package/dist/es2015/dialogs/font-family-dialog.component.js +0 -84
- package/dist/es2015/dialogs/font-size-dialog.component.js +0 -84
- package/dist/es2015/dialogs/format-dialog.component.js +0 -84
- package/dist/es2015/dialogs/insert-table-dialog.component.js +0 -60
- package/dist/es2015/dialogs/source-dialog.component.js +0 -81
- package/dist/es2015/editor.module.d.ts +0 -45
- package/dist/es2015/index.d.ts +0 -72
- package/dist/es2015/index.metadata.json +0 -1
- package/dist/es2015/localization/custom-messages.component.js +0 -37
- package/dist/es2015/localization/editor-localization.service.js +0 -22
- package/dist/es2015/localization/localized-messages.directive.js +0 -32
- package/dist/es2015/localization/messages.js +0 -224
- package/dist/es2015/main.d.ts +0 -13
- package/dist/es2015/main.js +0 -9
- package/dist/es2015/preventable-events/paste-event-data.js +0 -4
- package/dist/es2015/tools/alignment/editor-align-center-button.directive.js +0 -45
- package/dist/es2015/tools/alignment/editor-align-justify-button.directive.js +0 -45
- package/dist/es2015/tools/alignment/editor-align-left-button.directive.js +0 -45
- package/dist/es2015/tools/alignment/editor-align-right-button.directive.js +0 -45
- package/dist/es2015/tools/blockquote/editor-blockquote-button.directive.js +0 -45
- package/dist/es2015/tools/colorpicker/editor-back-color.directive.js +0 -27
- package/dist/es2015/tools/colorpicker/editor-colorpicker.component.js +0 -249
- package/dist/es2015/tools/colorpicker/editor-fore-color.directive.js +0 -27
- package/dist/es2015/tools/editor-clean-formatting-button.directive.js +0 -44
- package/dist/es2015/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +0 -99
- package/dist/es2015/tools/fontsize/editor-fontsize-dropdownlist.component.js +0 -94
- package/dist/es2015/tools/format/editor-format-dropdownlist.component.js +0 -127
- package/dist/es2015/tools/history/editor-redo-button.directive.js +0 -45
- package/dist/es2015/tools/history/editor-undo-button.directive.js +0 -45
- package/dist/es2015/tools/image/editor-insert-image-button.directive.js +0 -44
- package/dist/es2015/tools/indentation/editor-indent-button.directive.js +0 -45
- package/dist/es2015/tools/indentation/editor-outdent-button.directive.js +0 -45
- package/dist/es2015/tools/link/editor-create-link-button.directive.js +0 -45
- package/dist/es2015/tools/link/editor-insert-file-button.directive.js +0 -37
- package/dist/es2015/tools/link/editor-unlink-button.directive.js +0 -45
- package/dist/es2015/tools/list/editor-insert-ordered-list-button.directive.js +0 -45
- package/dist/es2015/tools/list/editor-insert-unordered-list-button.directive.js +0 -45
- package/dist/es2015/tools/select-all/select-all-button.directive.js +0 -48
- package/dist/es2015/tools/shared/editor-command-base.js +0 -46
- package/dist/es2015/tools/source/editor-view-source-button.directive.js +0 -44
- package/dist/es2015/tools/tables/editor-add-column-after-button.directive.js +0 -38
- package/dist/es2015/tools/tables/editor-add-column-before-button.directive.js +0 -38
- package/dist/es2015/tools/tables/editor-add-row-after-button.directive.js +0 -38
- package/dist/es2015/tools/tables/editor-add-row-before-button.directive.js +0 -38
- package/dist/es2015/tools/tables/editor-delete-column-button.directive.js +0 -38
- package/dist/es2015/tools/tables/editor-delete-row-button.directive.js +0 -38
- package/dist/es2015/tools/tables/editor-delete-table-button.directive.js +0 -38
- package/dist/es2015/tools/tables/editor-merge-cells-button.directive.js +0 -40
- package/dist/es2015/tools/tables/editor-split-cell-button.directive.js +0 -40
- package/dist/es2015/tools/tools.service.js +0 -22
- package/dist/es2015/tools/typographical-emphasis/editor-bold-button.directive.js +0 -45
- package/dist/es2015/tools/typographical-emphasis/editor-italic-button.directive.js +0 -45
- package/dist/es2015/tools/typographical-emphasis/editor-strikethrough-button.directive.js +0 -45
- package/dist/es2015/tools/typographical-emphasis/editor-subscript-button.directive.js +0 -45
- package/dist/es2015/tools/typographical-emphasis/editor-superscript-button.directive.js +0 -45
- package/dist/es2015/tools/typographical-emphasis/editor-underline-button.directive.js +0 -45
- package/dist/fesm2015/index.js +0 -5842
- package/dist/fesm5/index.js +0 -5300
- package/dist/npm/common/active-marks.js +0 -6
- package/dist/npm/common/apply-to-word-options.js +0 -6
- package/dist/npm/common/commands.js +0 -6
- package/dist/npm/common/direction.js +0 -6
- package/dist/npm/common/error-messages.js +0 -22
- package/dist/npm/common/font-family-item.interface.js +0 -6
- package/dist/npm/common/font-size-item.interface.js +0 -6
- package/dist/npm/common/format-item.interface.js +0 -6
- package/dist/npm/common/image-data.interface.js +0 -6
- package/dist/npm/common/link-data.interface.js +0 -6
- package/dist/npm/common/paste-cleanup-settings.js +0 -6
- package/dist/npm/common/plugins-function.js +0 -6
- package/dist/npm/common/predicate.js +0 -6
- package/dist/npm/common/resizable-options.interface.js +0 -6
- package/dist/npm/common/styles.js +0 -18
- package/dist/npm/common/table-data.interface.js +0 -6
- package/dist/npm/config/command-icons.js +0 -50
- package/dist/npm/config/commands.js +0 -112
- package/dist/npm/config/schema.js +0 -21
- package/dist/npm/config/semantic-nodes.js +0 -35
- package/dist/npm/config/table-commands.js +0 -16
- package/dist/npm/config/utils.js +0 -104
- package/dist/npm/dialogs/colorpicker-dialog.component.js +0 -72
- package/dist/npm/dialogs/file-link-dialog.component.js +0 -128
- package/dist/npm/dialogs/font-family-dialog.component.js +0 -67
- package/dist/npm/dialogs/font-size-dialog.component.js +0 -67
- package/dist/npm/dialogs/format-dialog.component.js +0 -67
- package/dist/npm/dialogs/image-dialog.component.js +0 -104
- package/dist/npm/dialogs/insert-table-dialog.component.js +0 -51
- package/dist/npm/dialogs/source-dialog.component.js +0 -74
- package/dist/npm/editor-toolbar-state.js +0 -282
- package/dist/npm/editor.component.js +0 -1041
- package/dist/npm/editor.module.js +0 -243
- package/dist/npm/index.js +0 -138
- package/dist/npm/localization/custom-messages.component.js +0 -47
- package/dist/npm/localization/editor-localization.service.js +0 -26
- package/dist/npm/localization/localized-messages.directive.js +0 -38
- package/dist/npm/localization/messages.js +0 -232
- package/dist/npm/main.js +0 -38
- package/dist/npm/package-metadata.js +0 -17
- package/dist/npm/preventable-events/paste-event-data.js +0 -6
- package/dist/npm/preventable-events/paste-event.js +0 -27
- package/dist/npm/tools/alignment/editor-align-center-button.directive.js +0 -49
- package/dist/npm/tools/alignment/editor-align-justify-button.directive.js +0 -49
- package/dist/npm/tools/alignment/editor-align-left-button.directive.js +0 -49
- package/dist/npm/tools/alignment/editor-align-right-button.directive.js +0 -49
- package/dist/npm/tools/blockquote/editor-blockquote-button.directive.js +0 -50
- package/dist/npm/tools/colorpicker/editor-back-color.directive.js +0 -30
- package/dist/npm/tools/colorpicker/editor-colorpicker.component.js +0 -235
- package/dist/npm/tools/colorpicker/editor-fore-color.directive.js +0 -30
- package/dist/npm/tools/editor-clean-formatting-button.directive.js +0 -48
- package/dist/npm/tools/fontfamily/editor-fontfamily-dropdownlist.component.js +0 -73
- package/dist/npm/tools/fontfamily/editor-fontfamily.component.js +0 -213
- package/dist/npm/tools/fontsize/editor-fontsize-dropdownlist.component.js +0 -73
- package/dist/npm/tools/fontsize/editor-fontsize.component.js +0 -208
- package/dist/npm/tools/format/editor-format-dropdownlist.component.js +0 -73
- package/dist/npm/tools/format/editor-format.component.js +0 -204
- package/dist/npm/tools/history/editor-redo-button.directive.js +0 -49
- package/dist/npm/tools/history/editor-undo-button.directive.js +0 -49
- package/dist/npm/tools/image/editor-insert-image-button.directive.js +0 -48
- package/dist/npm/tools/indentation/editor-indent-button.directive.js +0 -49
- package/dist/npm/tools/indentation/editor-outdent-button.directive.js +0 -49
- package/dist/npm/tools/link/editor-create-link-button.directive.js +0 -49
- package/dist/npm/tools/link/editor-insert-file-button.directive.js +0 -41
- package/dist/npm/tools/link/editor-unlink-button.directive.js +0 -49
- package/dist/npm/tools/list/editor-insert-ordered-list-button.directive.js +0 -49
- package/dist/npm/tools/list/editor-insert-unordered-list-button.directive.js +0 -49
- package/dist/npm/tools/print/editor-print-button.directive.js +0 -71
- package/dist/npm/tools/select-all/select-all-button.directive.js +0 -52
- package/dist/npm/tools/shared/dropdown-tool.directive.js +0 -43
- package/dist/npm/tools/shared/editor-command-base.js +0 -51
- package/dist/npm/tools/shared/editor-command-button.js +0 -36
- package/dist/npm/tools/shared/editor-command-dialog.js +0 -32
- package/dist/npm/tools/source/editor-view-source-button.directive.js +0 -48
- package/dist/npm/tools/tables/editor-add-column-after-button.directive.js +0 -42
- package/dist/npm/tools/tables/editor-add-column-before-button.directive.js +0 -42
- package/dist/npm/tools/tables/editor-add-row-after-button.directive.js +0 -42
- package/dist/npm/tools/tables/editor-add-row-before-button.directive.js +0 -42
- package/dist/npm/tools/tables/editor-delete-column-button.directive.js +0 -42
- package/dist/npm/tools/tables/editor-delete-row-button.directive.js +0 -42
- package/dist/npm/tools/tables/editor-delete-table-button.directive.js +0 -42
- package/dist/npm/tools/tables/editor-insert-table-button.component.js +0 -204
- package/dist/npm/tools/tables/editor-merge-cells-button.directive.js +0 -44
- package/dist/npm/tools/tables/editor-split-cell-button.directive.js +0 -44
- package/dist/npm/tools/tables/popup-table-grid.component.js +0 -71
- package/dist/npm/tools/tools.service.js +0 -22
- package/dist/npm/tools/typographical-emphasis/editor-bold-button.directive.js +0 -49
- package/dist/npm/tools/typographical-emphasis/editor-italic-button.directive.js +0 -49
- package/dist/npm/tools/typographical-emphasis/editor-strikethrough-button.directive.js +0 -49
- package/dist/npm/tools/typographical-emphasis/editor-subscript-button.directive.js +0 -49
- package/dist/npm/tools/typographical-emphasis/editor-superscript-button.directive.js +0 -49
- package/dist/npm/tools/typographical-emphasis/editor-underline-button.directive.js +0 -49
- package/dist/npm/util.js +0 -130
- package/dist/systemjs/kendo-angular-editor.js +0 -5
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
/**-----------------------------------------------------------------------------------------
|
|
2
|
-
* Copyright © 2021 Progress Software Corporation. All rights reserved.
|
|
3
|
-
* Licensed under commercial license. See LICENSE.md in the project root for more information
|
|
4
|
-
*-------------------------------------------------------------------------------------------*/
|
|
5
|
-
import * as tslib_1 from "tslib";
|
|
6
|
-
import { Directive, Host } from '@angular/core';
|
|
7
|
-
import { ToolBarButtonComponent } from '@progress/kendo-angular-toolbar';
|
|
8
|
-
import { EditorComponent } from '../../editor.component';
|
|
9
|
-
import { EditorCommandButton } from '../shared/editor-command-button';
|
|
10
|
-
import { EditorLocalizationService } from '../../localization/editor-localization.service';
|
|
11
|
-
import { EditorToolsService } from '../tools.service';
|
|
12
|
-
/**
|
|
13
|
-
* A directive which configures an existing `ToolBarButtonComponent` as an Editor Underline 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 kendoEditorUnderlineButton></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 kendoEditorUnderlineButton icon="blogger"></kendo-toolbar-button>
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
var EditorUnderlineButtonDirective = /** @class */ (function (_super) {
|
|
31
|
-
tslib_1.__extends(EditorUnderlineButtonDirective, _super);
|
|
32
|
-
function EditorUnderlineButtonDirective(button, editor, localization, toolsService) {
|
|
33
|
-
return _super.call(this, 'underline', button, editor, localization, toolsService) || this;
|
|
34
|
-
}
|
|
35
|
-
EditorUnderlineButtonDirective = tslib_1.__decorate([
|
|
36
|
-
Directive({
|
|
37
|
-
selector: 'kendo-toolbar-button[kendoEditorUnderlineButton]'
|
|
38
|
-
}),
|
|
39
|
-
tslib_1.__param(1, Host()),
|
|
40
|
-
tslib_1.__metadata("design:paramtypes", [ToolBarButtonComponent,
|
|
41
|
-
EditorComponent,
|
|
42
|
-
EditorLocalizationService,
|
|
43
|
-
EditorToolsService])
|
|
44
|
-
], EditorUnderlineButtonDirective);
|
|
45
|
-
return EditorUnderlineButtonDirective;
|
|
46
|
-
}(EditorCommandButton));
|
|
47
|
-
export { EditorUnderlineButtonDirective };
|
package/dist/es/util.js
DELETED
|
@@ -1,127 +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 { isDocumentAvailable } from '@progress/kendo-angular-common';
|
|
6
|
-
/**
|
|
7
|
-
* @hidden
|
|
8
|
-
*/
|
|
9
|
-
export function outerWidth(element) {
|
|
10
|
-
var width = element.offsetWidth;
|
|
11
|
-
var style = getComputedStyle(element);
|
|
12
|
-
width += parseFloat(style.marginLeft) || 0 + parseFloat(style.marginRight) || 0;
|
|
13
|
-
return width;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
export var removeEntries = function (obj, predicate) {
|
|
19
|
-
return Object.keys(obj)
|
|
20
|
-
.filter(function (key) { return predicate(key); })
|
|
21
|
-
.reduce(function (acc, curr) {
|
|
22
|
-
var _a;
|
|
23
|
-
return Object.assign(acc, (_a = {}, _a[curr] = obj[curr], _a));
|
|
24
|
-
}, {});
|
|
25
|
-
};
|
|
26
|
-
/**
|
|
27
|
-
* @hidden
|
|
28
|
-
*/
|
|
29
|
-
export var removeEmptyEntries = function (obj) {
|
|
30
|
-
var predicate = function (key) { return obj[key] !== null && obj[key] !== undefined && obj[key] !== ''; };
|
|
31
|
-
return removeEntries(obj, predicate);
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* @hidden
|
|
35
|
-
*/
|
|
36
|
-
export var isEmpty = function (obj) { return Object.keys(obj).length === 0; };
|
|
37
|
-
/**
|
|
38
|
-
* @hidden
|
|
39
|
-
*/
|
|
40
|
-
export var isNullOrUndefined = function (value) { return value === undefined || value === null; };
|
|
41
|
-
/**
|
|
42
|
-
* @hidden
|
|
43
|
-
*/
|
|
44
|
-
export var isPresent = function (value) { return !isNullOrUndefined(value); };
|
|
45
|
-
/**
|
|
46
|
-
* @hidden
|
|
47
|
-
*/
|
|
48
|
-
export var detectIE = function () {
|
|
49
|
-
if (!isDocumentAvailable()) {
|
|
50
|
-
return false;
|
|
51
|
-
}
|
|
52
|
-
var ua = window.navigator.userAgent;
|
|
53
|
-
var msie = ua.indexOf('MSIE ');
|
|
54
|
-
var trident = ua.indexOf('Trident/');
|
|
55
|
-
return msie > 0 || trident > 0;
|
|
56
|
-
};
|
|
57
|
-
/**
|
|
58
|
-
* @hidden
|
|
59
|
-
*/
|
|
60
|
-
export var safeString = function (value) { return (isNullOrUndefined(value) ? '' : value.toString()); };
|
|
61
|
-
/**
|
|
62
|
-
* @hidden
|
|
63
|
-
*/
|
|
64
|
-
export var first = function (arr) { return arr[0]; };
|
|
65
|
-
/**
|
|
66
|
-
* @hidden
|
|
67
|
-
*/
|
|
68
|
-
export var last = function (arr) { return arr[arr.length - 1]; };
|
|
69
|
-
/**
|
|
70
|
-
* @hidden
|
|
71
|
-
*/
|
|
72
|
-
export var unique = function (arr) { return Array.from(new Set(arr)); };
|
|
73
|
-
/**
|
|
74
|
-
* @hidden
|
|
75
|
-
*/
|
|
76
|
-
export var split = function (splitter) { return function (value) { return value.split(splitter); }; };
|
|
77
|
-
/**
|
|
78
|
-
* @hidden
|
|
79
|
-
*/
|
|
80
|
-
export var trim = function (value) { return value.trim(); };
|
|
81
|
-
/**
|
|
82
|
-
* @hidden
|
|
83
|
-
*/
|
|
84
|
-
export var filter = function (predicate) { return function (arr) { return arr.filter(predicate); }; };
|
|
85
|
-
/**
|
|
86
|
-
* @hidden
|
|
87
|
-
*/
|
|
88
|
-
export var toArray = function (x) { return (x instanceof Array ? x : [x]); };
|
|
89
|
-
/**
|
|
90
|
-
* @hidden
|
|
91
|
-
*/
|
|
92
|
-
export var getUniqueStyleValues = function (style, cssStyle) {
|
|
93
|
-
if (style.hasNodesWithoutMarks) {
|
|
94
|
-
return '';
|
|
95
|
-
}
|
|
96
|
-
var uniqueMarkValues = style.marks
|
|
97
|
-
.filter(function (m) { return m.type.name === 'style'; })
|
|
98
|
-
.map(function (m) { return m.attrs.style; })
|
|
99
|
-
.map(safeString)
|
|
100
|
-
.map(split(';'))
|
|
101
|
-
.map(filter(function (m) { return m.includes(cssStyle); }))
|
|
102
|
-
// guards against empty array
|
|
103
|
-
.map(function (cssStyleValues) { return (cssStyleValues.length !== 0 ? cssStyleValues : [cssStyle + ": INVALID"]); })
|
|
104
|
-
.map(first)
|
|
105
|
-
.map(split(':'))
|
|
106
|
-
.map(last)
|
|
107
|
-
.map(trim)
|
|
108
|
-
.reduce(function (acc, curr) { return (acc.indexOf(curr) > -1 ? acc : acc.concat([curr])); }, []);
|
|
109
|
-
if (uniqueMarkValues.indexOf('INVALID') > -1 || uniqueMarkValues.length !== 1) {
|
|
110
|
-
return '';
|
|
111
|
-
}
|
|
112
|
-
return uniqueMarkValues[0];
|
|
113
|
-
};
|
|
114
|
-
/**
|
|
115
|
-
* @hidden
|
|
116
|
-
*/
|
|
117
|
-
export var conditionallyExecute = function (fn) { return function (condition) { return function (param) { return (condition ? fn(param) : param); }; }; };
|
|
118
|
-
/**
|
|
119
|
-
* @hidden
|
|
120
|
-
*/
|
|
121
|
-
export var pipe = function () {
|
|
122
|
-
var fns = [];
|
|
123
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
124
|
-
fns[_i] = arguments[_i];
|
|
125
|
-
}
|
|
126
|
-
return function (x) { return fns.reduce(function (y, f) { return f(y); }, x); };
|
|
127
|
-
};
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,4 +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
|
-
*-------------------------------------------------------------------------------------------*/
|
|
@@ -1,67 +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 { alignBlocks, alignLeftRules, alignCenterRules, alignRightRules, alignJustifyRules, alignRemoveRules, indent, outdent, setHtml, getHtml, insertImage, insertText, applyLink, removeLink, expandToWordWrap, blockquote,
|
|
6
|
-
//marks
|
|
7
|
-
bold, italic, underline, strikethrough, subscript, superscript, link, toggleInlineFormat, applyInlineStyle, formatBlockElements, toggleOrderedList, toggleUnorderedList, isAligned, undo, redo, cleanFormatting, selectAll, addColumnBefore, addColumnAfter, addRowBefore, addRowAfter, deleteRow, deleteColumn, deleteTable, mergeCells, splitCell } from '@progress/kendo-editor-common';
|
|
8
|
-
import { insertTable } from './table-commands';
|
|
9
|
-
const alignRemove = (state, dispatch) => alignBlocks(alignRemoveRules)(state, dispatch);
|
|
10
|
-
const ɵ0 = alignRemove;
|
|
11
|
-
const ɵ1 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, bold, { applyToWord })), ɵ2 = (options) => cleanFormatting(options), ɵ3 = attrs => expandToWordWrap(applyLink, { mark: 'link', attrs: attrs.value, applyToWord: attrs.applyToWord }), ɵ4 = attrs => expandToWordWrap(applyInlineStyle, { style: 'font-family', value: attrs.value, applyToWord: attrs.applyToWord }), ɵ5 = attrs => expandToWordWrap(applyInlineStyle, { style: 'font-size', value: attrs.value + 'px', applyToWord: attrs.applyToWord }), ɵ6 = attrs => expandToWordWrap(applyLink, { mark: 'link', attrs: attrs, applyToWord: attrs.applyToWord }), ɵ7 = text => insertText(text), ɵ8 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, italic, { applyToWord })), ɵ9 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, strikethrough, { applyToWord })), ɵ10 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, subscript, { applyToWord })), ɵ11 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, superscript, { applyToWord })), ɵ12 = (applyToWord) => expandToWordWrap(toggleInlineFormat, Object.assign({}, underline, { applyToWord })), ɵ13 = () => removeLink(link), ɵ14 = attrs => expandToWordWrap(applyInlineStyle, { style: 'color', value: attrs.value, applyToWord: attrs.applyToWord }), ɵ15 = attrs => expandToWordWrap(applyInlineStyle, { style: 'background-color', value: attrs.value, applyToWord: attrs.applyToWord }), ɵ16 = () => (state, dispatch) => selectAll(state, dispatch);
|
|
12
|
-
const inlineCommand = {
|
|
13
|
-
bold: ɵ1,
|
|
14
|
-
cleanFormatting: ɵ2,
|
|
15
|
-
createLink: ɵ3,
|
|
16
|
-
fontFamily: ɵ4,
|
|
17
|
-
fontSize: ɵ5,
|
|
18
|
-
insertFile: ɵ6,
|
|
19
|
-
insertText: ɵ7,
|
|
20
|
-
italic: ɵ8,
|
|
21
|
-
strikethrough: ɵ9,
|
|
22
|
-
subscript: ɵ10,
|
|
23
|
-
superscript: ɵ11,
|
|
24
|
-
underline: ɵ12,
|
|
25
|
-
unlink: ɵ13,
|
|
26
|
-
foreColor: ɵ14,
|
|
27
|
-
backColor: ɵ15,
|
|
28
|
-
selectAll: ɵ16
|
|
29
|
-
};
|
|
30
|
-
const ɵ17 = () => (state, dispatch) => isAligned(state, alignCenterRules) ? alignRemove(state, dispatch) : alignBlocks(alignCenterRules)(state, dispatch), ɵ18 = () => (state, dispatch) => isAligned(state, alignJustifyRules) ? alignRemove(state, dispatch) : alignBlocks(alignJustifyRules)(state, dispatch), ɵ19 = () => (state, dispatch) => isAligned(state, alignLeftRules) ? alignRemove(state, dispatch) : alignBlocks(alignLeftRules)(state, dispatch), ɵ20 = () => (state, dispatch) => isAligned(state, alignRightRules) ? alignRemove(state, dispatch) : alignBlocks(alignRightRules)(state, dispatch), ɵ21 = formatAttr => formatBlockElements(formatAttr.tag), ɵ22 = () => getHtml, ɵ23 = () => indent, ɵ24 = attrs => insertImage(attrs), ɵ25 = () => toggleOrderedList, ɵ26 = () => toggleUnorderedList, ɵ27 = () => outdent, ɵ28 = () => redo, ɵ29 = ({ content, parseOptions }) => setHtml(content, 'setHTML', parseOptions), ɵ30 = () => undo, ɵ31 = () => blockquote;
|
|
31
|
-
const blockCommand = {
|
|
32
|
-
alignCenter: ɵ17,
|
|
33
|
-
alignJustify: ɵ18,
|
|
34
|
-
alignLeft: ɵ19,
|
|
35
|
-
alignRight: ɵ20,
|
|
36
|
-
format: ɵ21,
|
|
37
|
-
getHTML: ɵ22,
|
|
38
|
-
indent: ɵ23,
|
|
39
|
-
insertImage: ɵ24,
|
|
40
|
-
// think about changing the command name.
|
|
41
|
-
insertOrderedList: ɵ25,
|
|
42
|
-
// think about changing the command name.
|
|
43
|
-
insertUnorderedList: ɵ26,
|
|
44
|
-
outdent: ɵ27,
|
|
45
|
-
redo: ɵ28,
|
|
46
|
-
setHTML: ɵ29,
|
|
47
|
-
undo: ɵ30,
|
|
48
|
-
blockquote: ɵ31
|
|
49
|
-
};
|
|
50
|
-
const ɵ32 = attr => insertTable(attr), ɵ33 = () => addColumnBefore, ɵ34 = () => addColumnAfter, ɵ35 = () => addRowBefore, ɵ36 = () => addRowAfter, ɵ37 = () => deleteRow, ɵ38 = () => deleteColumn, ɵ39 = () => mergeCells, ɵ40 = () => splitCell, ɵ41 = () => deleteTable;
|
|
51
|
-
const tableCommand = {
|
|
52
|
-
insertTable: ɵ32,
|
|
53
|
-
addColumnBefore: ɵ33,
|
|
54
|
-
addColumnAfter: ɵ34,
|
|
55
|
-
addRowBefore: ɵ35,
|
|
56
|
-
addRowAfter: ɵ36,
|
|
57
|
-
deleteRow: ɵ37,
|
|
58
|
-
deleteColumn: ɵ38,
|
|
59
|
-
mergeCells: ɵ39,
|
|
60
|
-
splitCell: ɵ40,
|
|
61
|
-
deleteTable: ɵ41
|
|
62
|
-
};
|
|
63
|
-
/**
|
|
64
|
-
* @hidden
|
|
65
|
-
*/
|
|
66
|
-
export const editorCommands = Object.assign({}, inlineCommand, blockCommand, tableCommand);
|
|
67
|
-
export { ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, ɵ9, ɵ10, ɵ11, ɵ12, ɵ13, ɵ14, ɵ15, ɵ16, ɵ17, ɵ18, ɵ19, ɵ20, ɵ21, ɵ22, ɵ23, ɵ24, ɵ25, ɵ26, ɵ27, ɵ28, ɵ29, ɵ30, ɵ31, ɵ32, ɵ33, ɵ34, ɵ35, ɵ36, ɵ37, ɵ38, ɵ39, ɵ40, ɵ41 };
|
|
@@ -1,92 +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, Input, ViewChild } from '@angular/core';
|
|
7
|
-
import { DialogRef, DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
8
|
-
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
9
|
-
import { EditorComponent } from '../editor.component';
|
|
10
|
-
import { ColorPickerComponent } from '@progress/kendo-angular-inputs';
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
let ColorPickerDialogComponent = class ColorPickerDialogComponent extends DialogContentBase {
|
|
15
|
-
constructor(dialog, localization) {
|
|
16
|
-
super(dialog);
|
|
17
|
-
this.dialog = dialog;
|
|
18
|
-
this.localization = localization;
|
|
19
|
-
}
|
|
20
|
-
ngAfterViewInit() {
|
|
21
|
-
Promise.resolve(null).then(() => {
|
|
22
|
-
this.colorPicker.focus();
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
handleActiveColorClick(event) {
|
|
26
|
-
event.preventOpen();
|
|
27
|
-
this.value = event.color;
|
|
28
|
-
}
|
|
29
|
-
onCancelAction() {
|
|
30
|
-
this.dialog.close();
|
|
31
|
-
}
|
|
32
|
-
onConfirmAction() {
|
|
33
|
-
if (this.value) {
|
|
34
|
-
this.editor.exec(this.editorCommand, this.value);
|
|
35
|
-
}
|
|
36
|
-
this.dialog.close();
|
|
37
|
-
this.editor.view.focus();
|
|
38
|
-
}
|
|
39
|
-
setData(args) {
|
|
40
|
-
this.editor = args.editor;
|
|
41
|
-
this.value = args.value;
|
|
42
|
-
this.editorCommand = args.editorCommand;
|
|
43
|
-
this.paletteSettings = args.paletteSettings;
|
|
44
|
-
this.icon = args.icon;
|
|
45
|
-
this.views = args.view ? [args.view] : args.views;
|
|
46
|
-
}
|
|
47
|
-
textFor(key) {
|
|
48
|
-
return this.localization.get(key);
|
|
49
|
-
}
|
|
50
|
-
};
|
|
51
|
-
tslib_1.__decorate([
|
|
52
|
-
Input(),
|
|
53
|
-
tslib_1.__metadata("design:type", EditorComponent)
|
|
54
|
-
], ColorPickerDialogComponent.prototype, "editor", void 0);
|
|
55
|
-
tslib_1.__decorate([
|
|
56
|
-
ViewChild('colorpicker', { read: ColorPickerComponent, static: true }),
|
|
57
|
-
tslib_1.__metadata("design:type", ColorPickerComponent)
|
|
58
|
-
], ColorPickerDialogComponent.prototype, "colorPicker", void 0);
|
|
59
|
-
ColorPickerDialogComponent = tslib_1.__decorate([
|
|
60
|
-
Component({
|
|
61
|
-
template: `
|
|
62
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
63
|
-
{{ textFor(editorCommand) }}
|
|
64
|
-
</kendo-dialog-titlebar>
|
|
65
|
-
<div class="k-editor-dialog">
|
|
66
|
-
<div class="k-editor-dialog k-popup-edit-form k-window-content k-content">
|
|
67
|
-
<div class="k-edit-form-container k-window-content" style="text-align: center;">
|
|
68
|
-
<kendo-colorpicker
|
|
69
|
-
#colorpicker
|
|
70
|
-
[views]="views"
|
|
71
|
-
[format]="'hex'"
|
|
72
|
-
[attr.title]="title"
|
|
73
|
-
[icon]="icon"
|
|
74
|
-
[(value)]="value"
|
|
75
|
-
[paletteSettings]="paletteSettings"
|
|
76
|
-
(activeColorClick)="handleActiveColorClick($event)"
|
|
77
|
-
>
|
|
78
|
-
</kendo-colorpicker>
|
|
79
|
-
</div>
|
|
80
|
-
</div>
|
|
81
|
-
</div>
|
|
82
|
-
<kendo-dialog-actions>
|
|
83
|
-
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
84
|
-
<button kendoButton
|
|
85
|
-
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
86
|
-
</kendo-dialog-actions>
|
|
87
|
-
`
|
|
88
|
-
}),
|
|
89
|
-
tslib_1.__metadata("design:paramtypes", [DialogRef,
|
|
90
|
-
EditorLocalizationService])
|
|
91
|
-
], ColorPickerDialogComponent);
|
|
92
|
-
export { ColorPickerDialogComponent };
|
|
@@ -1,163 +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, Input, ViewChild, ElementRef } from '@angular/core';
|
|
7
|
-
import { FormGroup, FormControl, Validators } from '@angular/forms';
|
|
8
|
-
import { DialogContentBase, DialogRef } from '@progress/kendo-angular-dialog';
|
|
9
|
-
import { getMark, getSelectionText, expandSelection } from '@progress/kendo-editor-common';
|
|
10
|
-
import { isPresent } from '../util';
|
|
11
|
-
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
let FileLinkDialogComponent = class FileLinkDialogComponent extends DialogContentBase {
|
|
16
|
-
constructor(dialog, localization) {
|
|
17
|
-
super(dialog);
|
|
18
|
-
this.dialog = dialog;
|
|
19
|
-
this.localization = localization;
|
|
20
|
-
this.linkForm = new FormGroup({
|
|
21
|
-
'href': new FormControl('', Validators.required),
|
|
22
|
-
'text': new FormControl({ value: '', disabled: true }, Validators.required),
|
|
23
|
-
'title': new FormControl('')
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
ngAfterViewInit() {
|
|
27
|
-
Promise.resolve(null).then(() => {
|
|
28
|
-
this.hrefInput.nativeElement.focus();
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
onCancelAction() {
|
|
32
|
-
this.dialog.close();
|
|
33
|
-
}
|
|
34
|
-
onConfirmAction() {
|
|
35
|
-
const linkData = this.getData();
|
|
36
|
-
this.editor.exec(this.command, linkData);
|
|
37
|
-
this.dialog.close();
|
|
38
|
-
this.editor.view.focus();
|
|
39
|
-
}
|
|
40
|
-
get titleText() {
|
|
41
|
-
return this.localization.get(this.command);
|
|
42
|
-
}
|
|
43
|
-
setData(state, options) {
|
|
44
|
-
if (this.command === 'createLink') {
|
|
45
|
-
this.linkForm.addControl('target', new FormControl());
|
|
46
|
-
}
|
|
47
|
-
const linkMark = getMark(state, state.schema.marks.link);
|
|
48
|
-
if (linkMark) {
|
|
49
|
-
// const linkMarkRange = getMarkRange(state.selection.$cursor, schema.marks.link);
|
|
50
|
-
// const mark = parentNode.child(cursorNodeIndex).marks.find(m => m.type === markType);
|
|
51
|
-
this.linkForm.reset({
|
|
52
|
-
href: linkMark.attrs.href,
|
|
53
|
-
title: linkMark.attrs.title,
|
|
54
|
-
target: isPresent(linkMark.attrs.target),
|
|
55
|
-
text: this.setLinkText(state)
|
|
56
|
-
});
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
if (state.selection.empty) {
|
|
60
|
-
const currentState = options.applyToWord ? expandSelection(state, () => { }, options).state : state;
|
|
61
|
-
if (!currentState.selection.empty) {
|
|
62
|
-
this.linkForm.patchValue({
|
|
63
|
-
'text': getSelectionText(currentState)
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
else {
|
|
68
|
-
this.linkForm.patchValue({
|
|
69
|
-
'text': getSelectionText(state)
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
textForWithPrefix(key) {
|
|
74
|
-
const prefix = this.command === 'createLink' ? 'link' : 'file';
|
|
75
|
-
return this.textFor(prefix + key);
|
|
76
|
-
}
|
|
77
|
-
textFor(key) {
|
|
78
|
-
return this.localization.get(key);
|
|
79
|
-
}
|
|
80
|
-
setLinkText(state) {
|
|
81
|
-
const selection = state.selection;
|
|
82
|
-
if (selection.empty && selection.$cursor) {
|
|
83
|
-
const cursor = selection.$cursor;
|
|
84
|
-
const cursorNodeIndex = cursor.index();
|
|
85
|
-
const parentNode = cursor.parent;
|
|
86
|
-
return parentNode.child(cursorNodeIndex).text;
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
return getSelectionText(state);
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
getData() {
|
|
93
|
-
let linkData = this.linkForm.value;
|
|
94
|
-
if (isPresent(this.linkForm.controls.target)) {
|
|
95
|
-
linkData.target = linkData.target ? '_blank' : null;
|
|
96
|
-
}
|
|
97
|
-
return linkData;
|
|
98
|
-
}
|
|
99
|
-
};
|
|
100
|
-
tslib_1.__decorate([
|
|
101
|
-
Input(),
|
|
102
|
-
tslib_1.__metadata("design:type", Object)
|
|
103
|
-
], FileLinkDialogComponent.prototype, "editor", void 0);
|
|
104
|
-
tslib_1.__decorate([
|
|
105
|
-
Input(),
|
|
106
|
-
tslib_1.__metadata("design:type", String)
|
|
107
|
-
], FileLinkDialogComponent.prototype, "command", void 0);
|
|
108
|
-
tslib_1.__decorate([
|
|
109
|
-
ViewChild('hrefInput', { read: ElementRef, static: true }),
|
|
110
|
-
tslib_1.__metadata("design:type", ElementRef)
|
|
111
|
-
], FileLinkDialogComponent.prototype, "hrefInput", void 0);
|
|
112
|
-
FileLinkDialogComponent = tslib_1.__decorate([
|
|
113
|
-
Component({
|
|
114
|
-
template: `
|
|
115
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
116
|
-
{{ titleText }}
|
|
117
|
-
</kendo-dialog-titlebar>
|
|
118
|
-
<div class="k-editor-dialog">
|
|
119
|
-
<div class="k-editor-dialog k-popup-edit-form k-window-content k-content">
|
|
120
|
-
<div class="k-edit-form-container k-window-content">
|
|
121
|
-
<form novalidate [formGroup]="linkForm">
|
|
122
|
-
<div class="k-edit-label">
|
|
123
|
-
<label (click)="hrefInput.focus()">{{ textForWithPrefix('WebAddress') }}</label>
|
|
124
|
-
</div>
|
|
125
|
-
<div class="k-edit-field">
|
|
126
|
-
<input #hrefInput formControlName="href" type="text" class="k-textbox k-input k-rounded-md" />
|
|
127
|
-
</div>
|
|
128
|
-
|
|
129
|
-
<div class="k-edit-label">
|
|
130
|
-
<label (click)="textInput.focus()">{{ textForWithPrefix('Text') }}</label>
|
|
131
|
-
</div>
|
|
132
|
-
<div class="k-edit-field">
|
|
133
|
-
<input #textInput formControlName="text" type="text" class="k-textbox k-input k-rounded-md" />
|
|
134
|
-
</div>
|
|
135
|
-
|
|
136
|
-
<div class="k-edit-label">
|
|
137
|
-
<label (click)="titleInput.focus()">{{ textForWithPrefix('Title') }}</label>
|
|
138
|
-
</div>
|
|
139
|
-
<div class="k-edit-field">
|
|
140
|
-
<input #titleInput formControlName="title" type="text" class="k-textbox k-input k-rounded-md" />
|
|
141
|
-
</div>
|
|
142
|
-
<ng-container *ngIf="command === 'createLink'">
|
|
143
|
-
<div class="k-edit-label"></div>
|
|
144
|
-
<div class="k-edit-field">
|
|
145
|
-
<input type="checkbox" id="k-target-blank" kendoCheckBox formControlName="target" />
|
|
146
|
-
<label class="k-checkbox-label" for="k-target-blank">{{ textForWithPrefix('OpenInNewWindow') }}</label>
|
|
147
|
-
</div>
|
|
148
|
-
</ng-container>
|
|
149
|
-
</form>
|
|
150
|
-
</div>
|
|
151
|
-
</div>
|
|
152
|
-
</div>
|
|
153
|
-
<kendo-dialog-actions>
|
|
154
|
-
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
155
|
-
<button kendoButton [disabled]="linkForm.invalid" (click)="onConfirmAction()" [primary]="true">
|
|
156
|
-
{{ textFor('dialogInsert') }}
|
|
157
|
-
</button>
|
|
158
|
-
</kendo-dialog-actions>
|
|
159
|
-
`
|
|
160
|
-
}),
|
|
161
|
-
tslib_1.__metadata("design:paramtypes", [DialogRef, EditorLocalizationService])
|
|
162
|
-
], FileLinkDialogComponent);
|
|
163
|
-
export { FileLinkDialogComponent };
|
|
@@ -1,84 +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, Input, ViewChild } from '@angular/core';
|
|
7
|
-
import { DialogRef, DialogContentBase } from '@progress/kendo-angular-dialog';
|
|
8
|
-
import { EditorLocalizationService } from '../localization/editor-localization.service';
|
|
9
|
-
import { EditorComponent } from '../editor.component';
|
|
10
|
-
import { FontFamilyDropDownListComponent } from '../tools/fontfamily/editor-fontfamily-dropdownlist.component';
|
|
11
|
-
/**
|
|
12
|
-
* @hidden
|
|
13
|
-
*/
|
|
14
|
-
let FontFamilyDialogComponent = class FontFamilyDialogComponent extends DialogContentBase {
|
|
15
|
-
constructor(dialog, localization) {
|
|
16
|
-
super(dialog);
|
|
17
|
-
this.dialog = dialog;
|
|
18
|
-
this.localization = localization;
|
|
19
|
-
this.data = [];
|
|
20
|
-
}
|
|
21
|
-
ngAfterViewInit() {
|
|
22
|
-
Promise.resolve(null).then(() => {
|
|
23
|
-
this.fontFamilyDropDownList.dropDownList.focus();
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
onCancelAction() {
|
|
27
|
-
this.dialog.close();
|
|
28
|
-
}
|
|
29
|
-
onConfirmAction() {
|
|
30
|
-
if (this.value) {
|
|
31
|
-
this.editor.exec('fontFamily', this.value);
|
|
32
|
-
}
|
|
33
|
-
this.dialog.close();
|
|
34
|
-
}
|
|
35
|
-
setData(args) {
|
|
36
|
-
this.editor = args.editor;
|
|
37
|
-
this.data = args.data;
|
|
38
|
-
this.defaultItem = args.defaultItem;
|
|
39
|
-
this.value = args.value;
|
|
40
|
-
this.itemDisabled = args.itemDisabled;
|
|
41
|
-
}
|
|
42
|
-
textFor(key) {
|
|
43
|
-
return this.localization.get(key);
|
|
44
|
-
}
|
|
45
|
-
};
|
|
46
|
-
tslib_1.__decorate([
|
|
47
|
-
Input(),
|
|
48
|
-
tslib_1.__metadata("design:type", EditorComponent)
|
|
49
|
-
], FontFamilyDialogComponent.prototype, "editor", void 0);
|
|
50
|
-
tslib_1.__decorate([
|
|
51
|
-
ViewChild('fontFamilyDropDownList', { read: FontFamilyDropDownListComponent, static: true }),
|
|
52
|
-
tslib_1.__metadata("design:type", FontFamilyDropDownListComponent)
|
|
53
|
-
], FontFamilyDialogComponent.prototype, "fontFamilyDropDownList", void 0);
|
|
54
|
-
FontFamilyDialogComponent = tslib_1.__decorate([
|
|
55
|
-
Component({
|
|
56
|
-
template: `
|
|
57
|
-
<kendo-dialog-titlebar (close)="onCancelAction()">
|
|
58
|
-
{{ textFor('fontFamily') }}
|
|
59
|
-
</kendo-dialog-titlebar>
|
|
60
|
-
<div class="k-editor-dialog">
|
|
61
|
-
<div class="k-editor-dialog k-popup-edit-form k-window-content k-content">
|
|
62
|
-
<div class="k-edit-form-container k-window-content" style="text-align: center;">
|
|
63
|
-
<kendo-editor-fontfamily-dropdownlist
|
|
64
|
-
#fontFamilyDropDownList
|
|
65
|
-
[defaultItem]="defaultItem"
|
|
66
|
-
[data]="data"
|
|
67
|
-
[(value)]="value"
|
|
68
|
-
[itemDisabled]="itemDisabled"
|
|
69
|
-
>
|
|
70
|
-
</kendo-editor-fontfamily-dropdownlist>
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
</div>
|
|
74
|
-
<kendo-dialog-actions>
|
|
75
|
-
<button kendoButton (click)="onCancelAction()">{{ textFor('dialogCancel') }}</button>
|
|
76
|
-
<button kendoButton
|
|
77
|
-
(click)="onConfirmAction()" [primary]="true">{{ textFor('dialogApply') }}</button>
|
|
78
|
-
</kendo-dialog-actions>
|
|
79
|
-
`
|
|
80
|
-
}),
|
|
81
|
-
tslib_1.__metadata("design:paramtypes", [DialogRef,
|
|
82
|
-
EditorLocalizationService])
|
|
83
|
-
], FontFamilyDialogComponent);
|
|
84
|
-
export { FontFamilyDialogComponent };
|