@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,128 +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 forms_1 = require("@angular/forms");
|
|
10
|
-
var kendo_angular_dialog_1 = require("@progress/kendo-angular-dialog");
|
|
11
|
-
var kendo_editor_common_1 = require("@progress/kendo-editor-common");
|
|
12
|
-
var util_1 = require("../util");
|
|
13
|
-
var editor_localization_service_1 = require("../localization/editor-localization.service");
|
|
14
|
-
/**
|
|
15
|
-
* @hidden
|
|
16
|
-
*/
|
|
17
|
-
var FileLinkDialogComponent = /** @class */ (function (_super) {
|
|
18
|
-
tslib_1.__extends(FileLinkDialogComponent, _super);
|
|
19
|
-
function FileLinkDialogComponent(dialog, localization) {
|
|
20
|
-
var _this = _super.call(this, dialog) || this;
|
|
21
|
-
_this.dialog = dialog;
|
|
22
|
-
_this.localization = localization;
|
|
23
|
-
_this.linkForm = new forms_1.FormGroup({
|
|
24
|
-
'href': new forms_1.FormControl('', forms_1.Validators.required),
|
|
25
|
-
'text': new forms_1.FormControl({ value: '', disabled: true }, forms_1.Validators.required),
|
|
26
|
-
'title': new forms_1.FormControl('')
|
|
27
|
-
});
|
|
28
|
-
return _this;
|
|
29
|
-
}
|
|
30
|
-
FileLinkDialogComponent.prototype.ngAfterViewInit = function () {
|
|
31
|
-
var _this = this;
|
|
32
|
-
Promise.resolve(null).then(function () {
|
|
33
|
-
_this.hrefInput.nativeElement.focus();
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
FileLinkDialogComponent.prototype.onCancelAction = function () {
|
|
37
|
-
this.dialog.close();
|
|
38
|
-
};
|
|
39
|
-
FileLinkDialogComponent.prototype.onConfirmAction = function () {
|
|
40
|
-
var linkData = this.getData();
|
|
41
|
-
this.editor.exec(this.command, linkData);
|
|
42
|
-
this.dialog.close();
|
|
43
|
-
this.editor.view.focus();
|
|
44
|
-
};
|
|
45
|
-
Object.defineProperty(FileLinkDialogComponent.prototype, "titleText", {
|
|
46
|
-
get: function () {
|
|
47
|
-
return this.localization.get(this.command);
|
|
48
|
-
},
|
|
49
|
-
enumerable: true,
|
|
50
|
-
configurable: true
|
|
51
|
-
});
|
|
52
|
-
FileLinkDialogComponent.prototype.setData = function (state, options) {
|
|
53
|
-
if (this.command === 'createLink') {
|
|
54
|
-
this.linkForm.addControl('target', new forms_1.FormControl());
|
|
55
|
-
}
|
|
56
|
-
var linkMark = kendo_editor_common_1.getMark(state, state.schema.marks.link);
|
|
57
|
-
if (linkMark) {
|
|
58
|
-
// const linkMarkRange = getMarkRange(state.selection.$cursor, schema.marks.link);
|
|
59
|
-
// const mark = parentNode.child(cursorNodeIndex).marks.find(m => m.type === markType);
|
|
60
|
-
this.linkForm.reset({
|
|
61
|
-
href: linkMark.attrs.href,
|
|
62
|
-
title: linkMark.attrs.title,
|
|
63
|
-
target: util_1.isPresent(linkMark.attrs.target),
|
|
64
|
-
text: this.setLinkText(state)
|
|
65
|
-
});
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
if (state.selection.empty) {
|
|
69
|
-
var currentState = options.applyToWord ? kendo_editor_common_1.expandSelection(state, function () { }, options).state : state;
|
|
70
|
-
if (!currentState.selection.empty) {
|
|
71
|
-
this.linkForm.patchValue({
|
|
72
|
-
'text': kendo_editor_common_1.getSelectionText(currentState)
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
this.linkForm.patchValue({
|
|
78
|
-
'text': kendo_editor_common_1.getSelectionText(state)
|
|
79
|
-
});
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
FileLinkDialogComponent.prototype.textForWithPrefix = function (key) {
|
|
83
|
-
var prefix = this.command === 'createLink' ? 'link' : 'file';
|
|
84
|
-
return this.textFor(prefix + key);
|
|
85
|
-
};
|
|
86
|
-
FileLinkDialogComponent.prototype.textFor = function (key) {
|
|
87
|
-
return this.localization.get(key);
|
|
88
|
-
};
|
|
89
|
-
FileLinkDialogComponent.prototype.setLinkText = function (state) {
|
|
90
|
-
var selection = state.selection;
|
|
91
|
-
if (selection.empty && selection.$cursor) {
|
|
92
|
-
var cursor = selection.$cursor;
|
|
93
|
-
var cursorNodeIndex = cursor.index();
|
|
94
|
-
var parentNode = cursor.parent;
|
|
95
|
-
return parentNode.child(cursorNodeIndex).text;
|
|
96
|
-
}
|
|
97
|
-
else {
|
|
98
|
-
return kendo_editor_common_1.getSelectionText(state);
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
FileLinkDialogComponent.prototype.getData = function () {
|
|
102
|
-
var linkData = this.linkForm.value;
|
|
103
|
-
if (util_1.isPresent(this.linkForm.controls.target)) {
|
|
104
|
-
linkData.target = linkData.target ? '_blank' : null;
|
|
105
|
-
}
|
|
106
|
-
return linkData;
|
|
107
|
-
};
|
|
108
|
-
tslib_1.__decorate([
|
|
109
|
-
core_1.Input(),
|
|
110
|
-
tslib_1.__metadata("design:type", Object)
|
|
111
|
-
], FileLinkDialogComponent.prototype, "editor", void 0);
|
|
112
|
-
tslib_1.__decorate([
|
|
113
|
-
core_1.Input(),
|
|
114
|
-
tslib_1.__metadata("design:type", String)
|
|
115
|
-
], FileLinkDialogComponent.prototype, "command", void 0);
|
|
116
|
-
tslib_1.__decorate([
|
|
117
|
-
core_1.ViewChild('hrefInput', { read: core_1.ElementRef, static: true }),
|
|
118
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
119
|
-
], FileLinkDialogComponent.prototype, "hrefInput", void 0);
|
|
120
|
-
FileLinkDialogComponent = tslib_1.__decorate([
|
|
121
|
-
core_1.Component({
|
|
122
|
-
template: "\n <kendo-dialog-titlebar (close)=\"onCancelAction()\">\n {{ titleText }}\n </kendo-dialog-titlebar>\n <div class=\"k-editor-dialog\">\n <div class=\"k-editor-dialog k-popup-edit-form k-window-content k-content\">\n <div class=\"k-edit-form-container k-window-content\">\n <form novalidate [formGroup]=\"linkForm\">\n <div class=\"k-edit-label\">\n <label (click)=\"hrefInput.focus()\">{{ textForWithPrefix('WebAddress') }}</label>\n </div>\n <div class=\"k-edit-field\">\n <input #hrefInput formControlName=\"href\" type=\"text\" class=\"k-textbox k-input k-rounded-md\" />\n </div>\n\n <div class=\"k-edit-label\">\n <label (click)=\"textInput.focus()\">{{ textForWithPrefix('Text') }}</label>\n </div>\n <div class=\"k-edit-field\">\n <input #textInput formControlName=\"text\" type=\"text\" class=\"k-textbox k-input k-rounded-md\" />\n </div>\n\n <div class=\"k-edit-label\">\n <label (click)=\"titleInput.focus()\">{{ textForWithPrefix('Title') }}</label>\n </div>\n <div class=\"k-edit-field\">\n <input #titleInput formControlName=\"title\" type=\"text\" class=\"k-textbox k-input k-rounded-md\" />\n </div>\n <ng-container *ngIf=\"command === 'createLink'\">\n <div class=\"k-edit-label\"></div>\n <div class=\"k-edit-field\">\n <input type=\"checkbox\" id=\"k-target-blank\" kendoCheckBox formControlName=\"target\" />\n <label class=\"k-checkbox-label\" for=\"k-target-blank\">{{ textForWithPrefix('OpenInNewWindow') }}</label>\n </div>\n </ng-container>\n </form>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"onCancelAction()\">{{ textFor('dialogCancel') }}</button>\n <button kendoButton [disabled]=\"linkForm.invalid\" (click)=\"onConfirmAction()\" [primary]=\"true\">\n {{ textFor('dialogInsert') }}\n </button>\n </kendo-dialog-actions>\n "
|
|
123
|
-
}),
|
|
124
|
-
tslib_1.__metadata("design:paramtypes", [kendo_angular_dialog_1.DialogRef, editor_localization_service_1.EditorLocalizationService])
|
|
125
|
-
], FileLinkDialogComponent);
|
|
126
|
-
return FileLinkDialogComponent;
|
|
127
|
-
}(kendo_angular_dialog_1.DialogContentBase));
|
|
128
|
-
exports.FileLinkDialogComponent = FileLinkDialogComponent;
|
|
@@ -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
|
-
"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_dialog_1 = require("@progress/kendo-angular-dialog");
|
|
10
|
-
var editor_localization_service_1 = require("../localization/editor-localization.service");
|
|
11
|
-
var editor_component_1 = require("../editor.component");
|
|
12
|
-
var editor_fontfamily_dropdownlist_component_1 = require("../tools/fontfamily/editor-fontfamily-dropdownlist.component");
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
var FontFamilyDialogComponent = /** @class */ (function (_super) {
|
|
17
|
-
tslib_1.__extends(FontFamilyDialogComponent, _super);
|
|
18
|
-
function FontFamilyDialogComponent(dialog, localization) {
|
|
19
|
-
var _this = _super.call(this, dialog) || this;
|
|
20
|
-
_this.dialog = dialog;
|
|
21
|
-
_this.localization = localization;
|
|
22
|
-
_this.data = [];
|
|
23
|
-
return _this;
|
|
24
|
-
}
|
|
25
|
-
FontFamilyDialogComponent.prototype.ngAfterViewInit = function () {
|
|
26
|
-
var _this = this;
|
|
27
|
-
Promise.resolve(null).then(function () {
|
|
28
|
-
_this.fontFamilyDropDownList.dropDownList.focus();
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
FontFamilyDialogComponent.prototype.onCancelAction = function () {
|
|
32
|
-
this.dialog.close();
|
|
33
|
-
};
|
|
34
|
-
FontFamilyDialogComponent.prototype.onConfirmAction = function () {
|
|
35
|
-
if (this.value) {
|
|
36
|
-
this.editor.exec('fontFamily', this.value);
|
|
37
|
-
}
|
|
38
|
-
this.dialog.close();
|
|
39
|
-
};
|
|
40
|
-
FontFamilyDialogComponent.prototype.setData = function (args) {
|
|
41
|
-
this.editor = args.editor;
|
|
42
|
-
this.data = args.data;
|
|
43
|
-
this.defaultItem = args.defaultItem;
|
|
44
|
-
this.value = args.value;
|
|
45
|
-
this.itemDisabled = args.itemDisabled;
|
|
46
|
-
};
|
|
47
|
-
FontFamilyDialogComponent.prototype.textFor = function (key) {
|
|
48
|
-
return this.localization.get(key);
|
|
49
|
-
};
|
|
50
|
-
tslib_1.__decorate([
|
|
51
|
-
core_1.Input(),
|
|
52
|
-
tslib_1.__metadata("design:type", editor_component_1.EditorComponent)
|
|
53
|
-
], FontFamilyDialogComponent.prototype, "editor", void 0);
|
|
54
|
-
tslib_1.__decorate([
|
|
55
|
-
core_1.ViewChild('fontFamilyDropDownList', { read: editor_fontfamily_dropdownlist_component_1.FontFamilyDropDownListComponent, static: true }),
|
|
56
|
-
tslib_1.__metadata("design:type", editor_fontfamily_dropdownlist_component_1.FontFamilyDropDownListComponent)
|
|
57
|
-
], FontFamilyDialogComponent.prototype, "fontFamilyDropDownList", void 0);
|
|
58
|
-
FontFamilyDialogComponent = tslib_1.__decorate([
|
|
59
|
-
core_1.Component({
|
|
60
|
-
template: "\n <kendo-dialog-titlebar (close)=\"onCancelAction()\">\n {{ textFor('fontFamily') }}\n </kendo-dialog-titlebar>\n <div class=\"k-editor-dialog\">\n <div class=\"k-editor-dialog k-popup-edit-form k-window-content k-content\">\n <div class=\"k-edit-form-container k-window-content\" style=\"text-align: center;\">\n <kendo-editor-fontfamily-dropdownlist\n #fontFamilyDropDownList\n [defaultItem]=\"defaultItem\"\n [data]=\"data\"\n [(value)]=\"value\"\n [itemDisabled]=\"itemDisabled\"\n >\n </kendo-editor-fontfamily-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"onCancelAction()\">{{ textFor('dialogCancel') }}</button>\n <button kendoButton\n (click)=\"onConfirmAction()\" [primary]=\"true\">{{ textFor('dialogApply') }}</button>\n </kendo-dialog-actions>\n "
|
|
61
|
-
}),
|
|
62
|
-
tslib_1.__metadata("design:paramtypes", [kendo_angular_dialog_1.DialogRef,
|
|
63
|
-
editor_localization_service_1.EditorLocalizationService])
|
|
64
|
-
], FontFamilyDialogComponent);
|
|
65
|
-
return FontFamilyDialogComponent;
|
|
66
|
-
}(kendo_angular_dialog_1.DialogContentBase));
|
|
67
|
-
exports.FontFamilyDialogComponent = FontFamilyDialogComponent;
|
|
@@ -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
|
-
"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_dialog_1 = require("@progress/kendo-angular-dialog");
|
|
10
|
-
var editor_localization_service_1 = require("../localization/editor-localization.service");
|
|
11
|
-
var editor_component_1 = require("../editor.component");
|
|
12
|
-
var editor_fontsize_dropdownlist_component_1 = require("../tools/fontsize/editor-fontsize-dropdownlist.component");
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
var FontSizeDialogComponent = /** @class */ (function (_super) {
|
|
17
|
-
tslib_1.__extends(FontSizeDialogComponent, _super);
|
|
18
|
-
function FontSizeDialogComponent(dialog, localization) {
|
|
19
|
-
var _this = _super.call(this, dialog) || this;
|
|
20
|
-
_this.dialog = dialog;
|
|
21
|
-
_this.localization = localization;
|
|
22
|
-
_this.data = [];
|
|
23
|
-
return _this;
|
|
24
|
-
}
|
|
25
|
-
FontSizeDialogComponent.prototype.ngAfterViewInit = function () {
|
|
26
|
-
var _this = this;
|
|
27
|
-
Promise.resolve(null).then(function () {
|
|
28
|
-
_this.fontSizeDropDownList.dropDownList.focus();
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
FontSizeDialogComponent.prototype.onCancelAction = function () {
|
|
32
|
-
this.dialog.close();
|
|
33
|
-
};
|
|
34
|
-
FontSizeDialogComponent.prototype.onConfirmAction = function () {
|
|
35
|
-
if (this.value) {
|
|
36
|
-
this.editor.exec('fontSize', this.value);
|
|
37
|
-
}
|
|
38
|
-
this.dialog.close();
|
|
39
|
-
};
|
|
40
|
-
FontSizeDialogComponent.prototype.setData = function (args) {
|
|
41
|
-
this.editor = args.editor;
|
|
42
|
-
this.data = args.data;
|
|
43
|
-
this.defaultItem = args.defaultItem;
|
|
44
|
-
this.value = args.value;
|
|
45
|
-
this.itemDisabled = args.itemDisabled;
|
|
46
|
-
};
|
|
47
|
-
FontSizeDialogComponent.prototype.textFor = function (key) {
|
|
48
|
-
return this.localization.get(key);
|
|
49
|
-
};
|
|
50
|
-
tslib_1.__decorate([
|
|
51
|
-
core_1.Input(),
|
|
52
|
-
tslib_1.__metadata("design:type", editor_component_1.EditorComponent)
|
|
53
|
-
], FontSizeDialogComponent.prototype, "editor", void 0);
|
|
54
|
-
tslib_1.__decorate([
|
|
55
|
-
core_1.ViewChild('fontSizeDropDownList', { read: editor_fontsize_dropdownlist_component_1.FontSizeDropDownListComponent, static: true }),
|
|
56
|
-
tslib_1.__metadata("design:type", editor_fontsize_dropdownlist_component_1.FontSizeDropDownListComponent)
|
|
57
|
-
], FontSizeDialogComponent.prototype, "fontSizeDropDownList", void 0);
|
|
58
|
-
FontSizeDialogComponent = tslib_1.__decorate([
|
|
59
|
-
core_1.Component({
|
|
60
|
-
template: "\n <kendo-dialog-titlebar (close)=\"onCancelAction()\">\n {{ textFor('fontSize') }}\n </kendo-dialog-titlebar>\n <div class=\"k-editor-dialog\">\n <div class=\"k-editor-dialog k-popup-edit-form k-window-content k-content\">\n <div class=\"k-edit-form-container k-window-content\" style=\"text-align: center;\">\n <kendo-editor-fontsize-dropdownlist\n #fontSizeDropDownList\n [defaultItem]=\"defaultItem\"\n [data]=\"data\"\n [(value)]=\"value\"\n [itemDisabled]=\"itemDisabled\"\n >\n </kendo-editor-fontsize-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"onCancelAction()\">{{ textFor('dialogCancel') }}</button>\n <button kendoButton\n (click)=\"onConfirmAction()\" [primary]=\"true\">{{ textFor('dialogApply') }}</button>\n </kendo-dialog-actions>\n "
|
|
61
|
-
}),
|
|
62
|
-
tslib_1.__metadata("design:paramtypes", [kendo_angular_dialog_1.DialogRef,
|
|
63
|
-
editor_localization_service_1.EditorLocalizationService])
|
|
64
|
-
], FontSizeDialogComponent);
|
|
65
|
-
return FontSizeDialogComponent;
|
|
66
|
-
}(kendo_angular_dialog_1.DialogContentBase));
|
|
67
|
-
exports.FontSizeDialogComponent = FontSizeDialogComponent;
|
|
@@ -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
|
-
"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_dialog_1 = require("@progress/kendo-angular-dialog");
|
|
10
|
-
var editor_localization_service_1 = require("../localization/editor-localization.service");
|
|
11
|
-
var editor_component_1 = require("../editor.component");
|
|
12
|
-
var editor_format_dropdownlist_component_1 = require("../tools/format/editor-format-dropdownlist.component");
|
|
13
|
-
/**
|
|
14
|
-
* @hidden
|
|
15
|
-
*/
|
|
16
|
-
var FormatDialogComponent = /** @class */ (function (_super) {
|
|
17
|
-
tslib_1.__extends(FormatDialogComponent, _super);
|
|
18
|
-
function FormatDialogComponent(dialog, localization) {
|
|
19
|
-
var _this = _super.call(this, dialog) || this;
|
|
20
|
-
_this.dialog = dialog;
|
|
21
|
-
_this.localization = localization;
|
|
22
|
-
_this.data = [];
|
|
23
|
-
return _this;
|
|
24
|
-
}
|
|
25
|
-
FormatDialogComponent.prototype.ngAfterViewInit = function () {
|
|
26
|
-
var _this = this;
|
|
27
|
-
Promise.resolve(null).then(function () {
|
|
28
|
-
_this.formatDropDownList.dropDownList.focus();
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
FormatDialogComponent.prototype.onCancelAction = function () {
|
|
32
|
-
this.dialog.close();
|
|
33
|
-
};
|
|
34
|
-
FormatDialogComponent.prototype.onConfirmAction = function () {
|
|
35
|
-
if (this.value) {
|
|
36
|
-
this.editor.exec('format', { tag: this.value });
|
|
37
|
-
}
|
|
38
|
-
this.dialog.close();
|
|
39
|
-
};
|
|
40
|
-
FormatDialogComponent.prototype.setData = function (args) {
|
|
41
|
-
this.editor = args.editor;
|
|
42
|
-
this.data = args.data;
|
|
43
|
-
this.defaultItem = args.defaultItem;
|
|
44
|
-
this.value = args.value;
|
|
45
|
-
this.itemDisabled = args.itemDisabled;
|
|
46
|
-
};
|
|
47
|
-
FormatDialogComponent.prototype.textFor = function (key) {
|
|
48
|
-
return this.localization.get(key);
|
|
49
|
-
};
|
|
50
|
-
tslib_1.__decorate([
|
|
51
|
-
core_1.Input(),
|
|
52
|
-
tslib_1.__metadata("design:type", editor_component_1.EditorComponent)
|
|
53
|
-
], FormatDialogComponent.prototype, "editor", void 0);
|
|
54
|
-
tslib_1.__decorate([
|
|
55
|
-
core_1.ViewChild('formatDropDownList', { read: editor_format_dropdownlist_component_1.FormatDropDownListComponent, static: true }),
|
|
56
|
-
tslib_1.__metadata("design:type", editor_format_dropdownlist_component_1.FormatDropDownListComponent)
|
|
57
|
-
], FormatDialogComponent.prototype, "formatDropDownList", void 0);
|
|
58
|
-
FormatDialogComponent = tslib_1.__decorate([
|
|
59
|
-
core_1.Component({
|
|
60
|
-
template: "\n <kendo-dialog-titlebar (close)=\"onCancelAction()\">\n {{ textFor('format') }}\n </kendo-dialog-titlebar>\n <div class=\"k-editor-dialog\">\n <div class=\"k-editor-dialog k-popup-edit-form k-window-content k-content\">\n <div class=\"k-edit-form-container k-window-content\" style=\"text-align: center;\">\n <kendo-editor-format-dropdownlist\n #formatDropDownList\n [defaultItem]=\"defaultItem\"\n [data]=\"data\"\n [(value)]=\"value\"\n [itemDisabled]=\"itemDisabled\"\n >\n </kendo-editor-format-dropdownlist>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"onCancelAction()\">{{ textFor('dialogCancel') }}</button>\n <button kendoButton\n (click)=\"onConfirmAction()\" [primary]=\"true\">{{ textFor('dialogApply') }}</button>\n </kendo-dialog-actions>\n "
|
|
61
|
-
}),
|
|
62
|
-
tslib_1.__metadata("design:paramtypes", [kendo_angular_dialog_1.DialogRef,
|
|
63
|
-
editor_localization_service_1.EditorLocalizationService])
|
|
64
|
-
], FormatDialogComponent);
|
|
65
|
-
return FormatDialogComponent;
|
|
66
|
-
}(kendo_angular_dialog_1.DialogContentBase));
|
|
67
|
-
exports.FormatDialogComponent = FormatDialogComponent;
|
|
@@ -1,104 +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 forms_1 = require("@angular/forms");
|
|
10
|
-
var kendo_angular_dialog_1 = require("@progress/kendo-angular-dialog");
|
|
11
|
-
var kendo_editor_common_1 = require("@progress/kendo-editor-common");
|
|
12
|
-
var util_1 = require("../util");
|
|
13
|
-
var editor_localization_service_1 = require("../localization/editor-localization.service");
|
|
14
|
-
var kendo_angular_common_1 = require("@progress/kendo-angular-common");
|
|
15
|
-
/**
|
|
16
|
-
* @hidden
|
|
17
|
-
*/
|
|
18
|
-
var ImageDialogComponent = /** @class */ (function (_super) {
|
|
19
|
-
tslib_1.__extends(ImageDialogComponent, _super);
|
|
20
|
-
function ImageDialogComponent(dialog, localization) {
|
|
21
|
-
var _this = _super.call(this, dialog) || this;
|
|
22
|
-
_this.dialog = dialog;
|
|
23
|
-
_this.localization = localization;
|
|
24
|
-
_this.src = new forms_1.FormControl('', forms_1.Validators.required);
|
|
25
|
-
_this.alt = new forms_1.FormControl('');
|
|
26
|
-
_this.width = new forms_1.FormControl('', forms_1.Validators.min(1));
|
|
27
|
-
_this.height = new forms_1.FormControl('', forms_1.Validators.min(1));
|
|
28
|
-
_this.data = {
|
|
29
|
-
alt: '',
|
|
30
|
-
height: '',
|
|
31
|
-
src: '',
|
|
32
|
-
width: ''
|
|
33
|
-
};
|
|
34
|
-
_this.imageData = new forms_1.FormGroup({
|
|
35
|
-
alt: _this.alt,
|
|
36
|
-
height: _this.height,
|
|
37
|
-
src: _this.src,
|
|
38
|
-
width: _this.width
|
|
39
|
-
});
|
|
40
|
-
return _this;
|
|
41
|
-
}
|
|
42
|
-
ImageDialogComponent.prototype.ngOnInit = function () {
|
|
43
|
-
this.srcInputId = "k-" + kendo_angular_common_1.guid();
|
|
44
|
-
this.altTextInputId = "k-" + kendo_angular_common_1.guid();
|
|
45
|
-
this.widthInputId = "k-" + kendo_angular_common_1.guid();
|
|
46
|
-
this.heightInputId = "k-" + kendo_angular_common_1.guid();
|
|
47
|
-
};
|
|
48
|
-
ImageDialogComponent.prototype.ngAfterViewInit = function () {
|
|
49
|
-
var _this = this;
|
|
50
|
-
Promise.resolve(null).then(function () {
|
|
51
|
-
_this.srcInput.nativeElement.focus();
|
|
52
|
-
});
|
|
53
|
-
};
|
|
54
|
-
ImageDialogComponent.prototype.onCancelAction = function () {
|
|
55
|
-
this.dialog.close();
|
|
56
|
-
};
|
|
57
|
-
ImageDialogComponent.prototype.onConfirmAction = function () {
|
|
58
|
-
if (this.src.value) {
|
|
59
|
-
this.editor.exec('insertImage', this.getData());
|
|
60
|
-
this.dialog.close();
|
|
61
|
-
this.editor.view.focus();
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
ImageDialogComponent.prototype.setData = function (state) {
|
|
65
|
-
var node = kendo_editor_common_1.getNodeFromSelection(state);
|
|
66
|
-
if (node) {
|
|
67
|
-
this.src.patchValue(node.attrs.src);
|
|
68
|
-
this.alt.patchValue(node.attrs.alt);
|
|
69
|
-
this.width.patchValue(node.attrs.width);
|
|
70
|
-
this.height.patchValue(node.attrs.height);
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
ImageDialogComponent.prototype.textFor = function (key) {
|
|
74
|
-
return this.localization.get(key);
|
|
75
|
-
};
|
|
76
|
-
ImageDialogComponent.prototype.getData = function () {
|
|
77
|
-
return {
|
|
78
|
-
alt: this.alt.value,
|
|
79
|
-
height: this.normalizeDimension(this.height.value),
|
|
80
|
-
src: this.src.value,
|
|
81
|
-
width: this.normalizeDimension(this.width.value)
|
|
82
|
-
};
|
|
83
|
-
};
|
|
84
|
-
ImageDialogComponent.prototype.normalizeDimension = function (value) {
|
|
85
|
-
return Number.isNaN(parseInt(value, 10)) || parseInt(value, 10) <= 0 ? '' : util_1.safeString(parseInt(value, 10));
|
|
86
|
-
};
|
|
87
|
-
tslib_1.__decorate([
|
|
88
|
-
core_1.Input(),
|
|
89
|
-
tslib_1.__metadata("design:type", Object)
|
|
90
|
-
], ImageDialogComponent.prototype, "editor", void 0);
|
|
91
|
-
tslib_1.__decorate([
|
|
92
|
-
core_1.ViewChild('srcInput', { read: core_1.ElementRef, static: true }),
|
|
93
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
94
|
-
], ImageDialogComponent.prototype, "srcInput", void 0);
|
|
95
|
-
ImageDialogComponent = tslib_1.__decorate([
|
|
96
|
-
core_1.Component({
|
|
97
|
-
template: "\n <kendo-dialog-titlebar (close)=\"onCancelAction()\">\n {{ textFor('insertImage') }}\n </kendo-dialog-titlebar>\n <div class=\"k-editor-dialog\">\n <div class=\"k-editor-dialog k-popup-edit-form k-window-content k-content\">\n <div class=\"k-edit-form-container k-window-content\">\n <div class=\"k-edit-label\">\n <label [for]=\"srcInputId\">{{ textFor('imageWebAddress') }}</label>\n </div>\n <div class=\"k-edit-field\">\n <input [id]=\"srcInputId\" #srcInput [formControl]=\"src\" type=\"text\" class=\"k-textbox k-input k-rounded-md\" />\n </div>\n <div class=\"k-edit-label\">\n <label [for]=\"altTextInputId\">{{ textFor('imageAltText') }}</label>\n </div>\n <div class=\"k-edit-field\">\n <input [id]=\"altTextInputId\" [formControl]=\"alt\" type=\"text\" class=\"k-textbox k-input k-rounded-md\" />\n </div>\n <div class=\"k-edit-label\">\n <label [for]=\"widthInputId\">{{ textFor('imageWidth') }}</label>\n </div>\n <div class=\"k-edit-field\">\n <input [id]=\"widthInputId\" [formControl]=\"width\" type=\"text\" class=\"k-textbox k-input k-rounded-md\" />\n </div>\n <div class=\"k-edit-label\">\n <label [for]=\"heightInputId\">{{ textFor('imageHeight') }}</label>\n </div>\n <div class=\"k-edit-field\">\n <input [id]=\"heightInputId\" [formControl]=\"height\" type=\"text\" class=\"k-textbox k-input k-rounded-md\" />\n </div>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"onCancelAction()\">{{ textFor('dialogCancel') }}</button>\n <button kendoButton [disabled]=\"imageData.invalid\"\n (click)=\"onConfirmAction()\" [primary]=\"true\">{{ textFor('dialogInsert') }}</button>\n </kendo-dialog-actions>\n "
|
|
98
|
-
}),
|
|
99
|
-
tslib_1.__metadata("design:paramtypes", [kendo_angular_dialog_1.DialogRef,
|
|
100
|
-
editor_localization_service_1.EditorLocalizationService])
|
|
101
|
-
], ImageDialogComponent);
|
|
102
|
-
return ImageDialogComponent;
|
|
103
|
-
}(kendo_angular_dialog_1.DialogContentBase));
|
|
104
|
-
exports.ImageDialogComponent = ImageDialogComponent;
|
|
@@ -1,51 +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_dialog_1 = require("@progress/kendo-angular-dialog");
|
|
10
|
-
var editor_localization_service_1 = require("../localization/editor-localization.service");
|
|
11
|
-
var editor_component_1 = require("../editor.component");
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
var InsertTableDialogComponent = /** @class */ (function (_super) {
|
|
16
|
-
tslib_1.__extends(InsertTableDialogComponent, _super);
|
|
17
|
-
function InsertTableDialogComponent(dialog, localization) {
|
|
18
|
-
var _this = _super.call(this, dialog) || this;
|
|
19
|
-
_this.dialog = dialog;
|
|
20
|
-
_this.localization = localization;
|
|
21
|
-
return _this;
|
|
22
|
-
}
|
|
23
|
-
InsertTableDialogComponent.prototype.onCancelAction = function () {
|
|
24
|
-
this.dialog.close();
|
|
25
|
-
this.editor.view.focus();
|
|
26
|
-
};
|
|
27
|
-
InsertTableDialogComponent.prototype.onCellClick = function (args) {
|
|
28
|
-
this.dialog.close();
|
|
29
|
-
this.editor.exec("insertTable", args);
|
|
30
|
-
this.editor.view.focus();
|
|
31
|
-
};
|
|
32
|
-
InsertTableDialogComponent.prototype.setData = function (args) {
|
|
33
|
-
this.editor = args.editor;
|
|
34
|
-
};
|
|
35
|
-
InsertTableDialogComponent.prototype.textFor = function (key) {
|
|
36
|
-
return this.localization.get(key);
|
|
37
|
-
};
|
|
38
|
-
tslib_1.__decorate([
|
|
39
|
-
core_1.Input(),
|
|
40
|
-
tslib_1.__metadata("design:type", editor_component_1.EditorComponent)
|
|
41
|
-
], InsertTableDialogComponent.prototype, "editor", void 0);
|
|
42
|
-
InsertTableDialogComponent = tslib_1.__decorate([
|
|
43
|
-
core_1.Component({
|
|
44
|
-
template: "\n <kendo-dialog-titlebar (close)=\"onCancelAction()\">\n {{ textFor('insertTable') }}\n </kendo-dialog-titlebar>\n <div class=\"k-editor-dialog\">\n <div class=\"k-editor-dialog k-popup-edit-form k-window-content k-content\">\n <div class=\"k-ct-popup k-window-content\" style=\"text-align: center;\">\n <kendo-popup-table-grid (cellClick)=\"onCellClick($event)\"></kendo-popup-table-grid>\n </div>\n </div>\n </div>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"onCancelAction()\">{{ textFor('dialogCancel') }}</button>\n </kendo-dialog-actions>\n "
|
|
45
|
-
}),
|
|
46
|
-
tslib_1.__metadata("design:paramtypes", [kendo_angular_dialog_1.DialogRef,
|
|
47
|
-
editor_localization_service_1.EditorLocalizationService])
|
|
48
|
-
], InsertTableDialogComponent);
|
|
49
|
-
return InsertTableDialogComponent;
|
|
50
|
-
}(kendo_angular_dialog_1.DialogContentBase));
|
|
51
|
-
exports.InsertTableDialogComponent = InsertTableDialogComponent;
|
|
@@ -1,74 +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
|
-
// import { EditorService } from '../editor.service';
|
|
10
|
-
var kendo_angular_dialog_1 = require("@progress/kendo-angular-dialog");
|
|
11
|
-
var editor_localization_service_1 = require("../localization/editor-localization.service");
|
|
12
|
-
/**
|
|
13
|
-
* @hidden
|
|
14
|
-
*/
|
|
15
|
-
var SourceDialogComponent = /** @class */ (function (_super) {
|
|
16
|
-
tslib_1.__extends(SourceDialogComponent, _super);
|
|
17
|
-
function SourceDialogComponent(dialog, localization) {
|
|
18
|
-
var _this = _super.call(this, dialog) || this;
|
|
19
|
-
_this.dialog = dialog;
|
|
20
|
-
_this.localization = localization;
|
|
21
|
-
_this.data = '';
|
|
22
|
-
return _this;
|
|
23
|
-
}
|
|
24
|
-
SourceDialogComponent.prototype.ngAfterViewInit = function () {
|
|
25
|
-
var _this = this;
|
|
26
|
-
Promise.resolve(null).then(function () {
|
|
27
|
-
_this.textarea.nativeElement.focus();
|
|
28
|
-
});
|
|
29
|
-
};
|
|
30
|
-
SourceDialogComponent.prototype.onCancelAction = function () {
|
|
31
|
-
this.dialog.close();
|
|
32
|
-
};
|
|
33
|
-
SourceDialogComponent.prototype.onConfirmAction = function () {
|
|
34
|
-
this.editor.exec('setHTML', this.getData());
|
|
35
|
-
this.dialog.close();
|
|
36
|
-
this.editor.view.focus();
|
|
37
|
-
};
|
|
38
|
-
SourceDialogComponent.prototype.getData = function () {
|
|
39
|
-
return this.textarea.nativeElement.value;
|
|
40
|
-
};
|
|
41
|
-
SourceDialogComponent.prototype.setData = function () {
|
|
42
|
-
this.data = this.indent(this.editor.getSource());
|
|
43
|
-
};
|
|
44
|
-
SourceDialogComponent.prototype.textFor = function (key) {
|
|
45
|
-
return this.localization.get(key);
|
|
46
|
-
};
|
|
47
|
-
SourceDialogComponent.prototype.indent = function (content) {
|
|
48
|
-
return content
|
|
49
|
-
.replace(/<\/(p|li|ul|ol|h[1-6]|table|tr|td|th)>/gi, '</$1>\n')
|
|
50
|
-
.replace(/<(ul|ol)([^>]*)><li/gi, '<$1$2>\n<li')
|
|
51
|
-
.replace(/<br \/>/gi, '<br />\n')
|
|
52
|
-
.replace(/\n$/, '');
|
|
53
|
-
};
|
|
54
|
-
tslib_1.__decorate([
|
|
55
|
-
core_1.Input(),
|
|
56
|
-
tslib_1.__metadata("design:type", Object)
|
|
57
|
-
], SourceDialogComponent.prototype, "editor", void 0);
|
|
58
|
-
tslib_1.__decorate([
|
|
59
|
-
core_1.ViewChild('textarea', { static: true }),
|
|
60
|
-
tslib_1.__metadata("design:type", core_1.ElementRef)
|
|
61
|
-
], SourceDialogComponent.prototype, "textarea", void 0);
|
|
62
|
-
SourceDialogComponent = tslib_1.__decorate([
|
|
63
|
-
core_1.Component({
|
|
64
|
-
styles: [
|
|
65
|
-
"\n >>> .k-editor-textarea {\n height: 100%;\n }\n "
|
|
66
|
-
],
|
|
67
|
-
template: "\n <kendo-dialog-titlebar (close)=\"onCancelAction()\">\n {{ textFor('viewSource') }}\n </kendo-dialog-titlebar>\n <textarea [value]=\"data\" #textarea class=\"k-textarea k-editor-textarea\"></textarea>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"onCancelAction()\">{{ textFor('dialogCancel') }}</button>\n <button kendoButton (click)=\"onConfirmAction()\" [primary]=\"true\">{{ textFor('dialogUpdate') }}</button>\n </kendo-dialog-actions>\n "
|
|
68
|
-
}),
|
|
69
|
-
tslib_1.__metadata("design:paramtypes", [kendo_angular_dialog_1.DialogRef,
|
|
70
|
-
editor_localization_service_1.EditorLocalizationService])
|
|
71
|
-
], SourceDialogComponent);
|
|
72
|
-
return SourceDialogComponent;
|
|
73
|
-
}(kendo_angular_dialog_1.DialogContentBase));
|
|
74
|
-
exports.SourceDialogComponent = SourceDialogComponent;
|