jodit-pro 4.18.2 → 4.18.6
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/CHANGELOG.md +11 -0
- package/README.md +2 -0
- package/config.js +1 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +30 -18
- package/es2015/jodit.js +465 -131
- package/es2015/jodit.min.js +11 -11
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.css +1 -1
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/chart/chart.css +173 -0
- package/es2015/plugins/chart/chart.js +1479 -0
- package/es2015/plugins/chart/chart.min.css +1 -0
- package/es2015/plugins/chart/chart.min.js +20 -0
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +2 -1
- package/es2015/plugins/tune-block/tune-block.min.js +2 -2
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +75 -63
- package/es2018/jodit.min.js +9 -9
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/chart/chart.min.css +1 -0
- package/es2018/plugins/chart/chart.min.js +20 -0
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +32 -20
- package/es2021/jodit.js +417 -131
- package/es2021/jodit.min.js +16 -16
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/chart/chart.css +173 -0
- package/es2021/plugins/chart/chart.js +1424 -0
- package/es2021/plugins/chart/chart.min.css +1 -0
- package/es2021/plugins/chart/chart.min.js +20 -0
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +2 -1
- package/es2021/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +32 -20
- package/es2021.en/jodit.js +417 -131
- package/es2021.en/jodit.min.js +16 -16
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/chart/chart.css +173 -0
- package/es2021.en/plugins/chart/chart.js +1424 -0
- package/es2021.en/plugins/chart/chart.min.css +1 -0
- package/es2021.en/plugins/chart/chart.min.js +20 -0
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +2 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +2 -2
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +529 -135
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.css +1 -1
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/chart/chart.css +173 -0
- package/es5/plugins/chart/chart.js +1661 -0
- package/es5/plugins/chart/chart.min.css +1 -0
- package/es5/plugins/chart/chart.min.js +8 -0
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.js +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +2 -1
- package/es5/plugins/tune-block/tune-block.min.js +2 -2
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/config.d.ts +27 -1
- package/esm/plugins/all.js +1 -1
- package/esm/plugins/chart/assets/chart.svg.js +1 -0
- package/esm/plugins/chart/chart.d.ts +56 -0
- package/esm/plugins/chart/chart.js +1 -0
- package/esm/plugins/chart/config.d.ts +33 -0
- package/esm/plugins/chart/config.js +1 -0
- package/esm/plugins/chart/helpers.d.ts +22 -0
- package/esm/plugins/chart/helpers.js +1 -0
- package/esm/plugins/chart/interface.d.ts +34 -0
- package/esm/plugins/chart/interface.js +0 -0
- package/esm/plugins/chart/render/bar.d.ts +8 -0
- package/esm/plugins/chart/render/bar.js +1 -0
- package/esm/plugins/chart/render/common.d.ts +40 -0
- package/esm/plugins/chart/render/common.js +1 -0
- package/esm/plugins/chart/render/index.d.ts +7 -0
- package/esm/plugins/chart/render/index.js +1 -0
- package/esm/plugins/chart/render/line.d.ts +7 -0
- package/esm/plugins/chart/render/line.js +1 -0
- package/esm/plugins/chart/render/pie.d.ts +7 -0
- package/esm/plugins/chart/render/pie.js +1 -0
- package/esm/plugins/chart/render/radar.d.ts +7 -0
- package/esm/plugins/chart/render/radar.js +1 -0
- package/esm/plugins/chart/ui/editor/editor.d.ts +52 -0
- package/esm/plugins/chart/ui/editor/editor.js +13 -0
- package/esm/plugins/tune-block/config.js +1 -1
- package/package.json +1 -1
- package/types/config.d.ts +27 -1
- package/types/plugins/chart/chart.d.ts +56 -0
- package/types/plugins/chart/config.d.ts +33 -0
- package/types/plugins/chart/helpers.d.ts +22 -0
- package/types/plugins/chart/interface.d.ts +34 -0
- package/types/plugins/chart/render/bar.d.ts +8 -0
- package/types/plugins/chart/render/common.d.ts +40 -0
- package/types/plugins/chart/render/index.d.ts +7 -0
- package/types/plugins/chart/render/line.d.ts +7 -0
- package/types/plugins/chart/render/pie.d.ts +7 -0
- package/types/plugins/chart/render/radar.d.ts +7 -0
- package/types/plugins/chart/ui/editor/editor.d.ts +52 -0
package/types/config.d.ts
CHANGED
|
@@ -3,6 +3,9 @@ import type { AutoCompleteDisplayMode } from "./plugins/autocomplete/interface";
|
|
|
3
3
|
import type { IAutoCompleteItem } from "./plugins/autocomplete/interface";
|
|
4
4
|
import type { AutoCompleteSource } from "./plugins/autocomplete/interface";
|
|
5
5
|
import type { ISnapshotStorage } from "./plugins/backup/interface";
|
|
6
|
+
import type { ChartType } from "./plugins/chart/interface";
|
|
7
|
+
import type { IChartPoint } from "./plugins/chart/interface";
|
|
8
|
+
import type { IControlType } from "jodit/esm/types/index";
|
|
6
9
|
import type { IEmojiData } from "./plugins/emoji/interface";
|
|
7
10
|
import type { AjaxOptions } from "jodit/esm/types/index";
|
|
8
11
|
import type { DeepPartial } from "jodit/esm/types/index";
|
|
@@ -20,7 +23,6 @@ import type { ButtonGroup } from "jodit/esm/types/index";
|
|
|
20
23
|
import type { ILayoutKeys } from "./plugins/keyboard/interface";
|
|
21
24
|
import type { CanPromise } from "jodit/esm/types/index";
|
|
22
25
|
import type { IUIOption } from "jodit/esm/types/index";
|
|
23
|
-
import type { IControlType } from "jodit/esm/types/index";
|
|
24
26
|
import type { IStyleDefinition } from "./plugins/style/interface";
|
|
25
27
|
import type { ITemplateDefinition } from "./plugins/templates/interface";
|
|
26
28
|
import type { ITranslateProviderFactory } from "./plugins/translate/interface";
|
|
@@ -58,6 +60,30 @@ interface Config {
|
|
|
58
60
|
formatDate?: (timestamp: string | Date) => string;
|
|
59
61
|
};
|
|
60
62
|
}
|
|
63
|
+
interface Config {
|
|
64
|
+
chart: {
|
|
65
|
+
className: string;
|
|
66
|
+
types: ChartType[];
|
|
67
|
+
defaultType: ChartType;
|
|
68
|
+
defaultTitle: string;
|
|
69
|
+
defaultPoints: IChartPoint[];
|
|
70
|
+
colors: string[];
|
|
71
|
+
defaultBackground: string;
|
|
72
|
+
defaultTextColor: string;
|
|
73
|
+
defaultBorderColor: string;
|
|
74
|
+
allowChangeBackground: boolean;
|
|
75
|
+
allowChangeTextColor: boolean;
|
|
76
|
+
allowChangeBorderColor: boolean;
|
|
77
|
+
fontFamily: string;
|
|
78
|
+
width: number;
|
|
79
|
+
height: number;
|
|
80
|
+
popup: Array<IControlType | string>;
|
|
81
|
+
dialog: {
|
|
82
|
+
width: number;
|
|
83
|
+
height: number;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
}
|
|
61
87
|
interface Config {
|
|
62
88
|
emoji: {
|
|
63
89
|
data: () => Promise<IEmojiData>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IJodit, Nullable } from "jodit/esm/types/index";
|
|
7
|
+
import "./config";
|
|
8
|
+
import { Plugin } from "jodit/esm/core/plugin/index";
|
|
9
|
+
/**
|
|
10
|
+
* Inserts self-contained SVG charts (bar, horizontal bar, line, pie, donut)
|
|
11
|
+
* and lets the user edit them in a dialog or remove them from a popup.
|
|
12
|
+
*/
|
|
13
|
+
export declare class Chart extends Plugin {
|
|
14
|
+
static requires: string[];
|
|
15
|
+
buttons: Plugin['buttons'];
|
|
16
|
+
private __dialog;
|
|
17
|
+
private __editor;
|
|
18
|
+
private __popup;
|
|
19
|
+
private __toolbar;
|
|
20
|
+
private __target;
|
|
21
|
+
protected afterInit(jodit: IJodit): void;
|
|
22
|
+
protected beforeDestruct(): void;
|
|
23
|
+
/**
|
|
24
|
+
* Opens the editor dialog for a new chart or for an existing one.
|
|
25
|
+
*/
|
|
26
|
+
openEditor(target?: Nullable<Node>): void;
|
|
27
|
+
/**
|
|
28
|
+
* Removes the chart that owns the given node.
|
|
29
|
+
*/
|
|
30
|
+
removeChart(target?: Nullable<Node>): void;
|
|
31
|
+
private __save;
|
|
32
|
+
private __getDialog;
|
|
33
|
+
/**
|
|
34
|
+
* Handler: clicking a chart opens its popup; clicking elsewhere closes it.
|
|
35
|
+
*/
|
|
36
|
+
protected onClick(e: MouseEvent): void;
|
|
37
|
+
protected onDblClick(e: MouseEvent): void;
|
|
38
|
+
protected onOutsideClick(): void;
|
|
39
|
+
/**
|
|
40
|
+
* Shows the contextual popup (edit / delete) above the chart.
|
|
41
|
+
*/
|
|
42
|
+
openPopup(figure: HTMLElement): void;
|
|
43
|
+
closePopup(): void;
|
|
44
|
+
/**
|
|
45
|
+
* Decorates charts that arrived with the value (initial load, paste) and
|
|
46
|
+
* re-renders charts whose box was changed by the resizer.
|
|
47
|
+
*/
|
|
48
|
+
protected onChange(): void;
|
|
49
|
+
private __decorateAll;
|
|
50
|
+
/**
|
|
51
|
+
* A figure that carries data but no SVG (e.g. content produced by a
|
|
52
|
+
* backend) is rendered on load.
|
|
53
|
+
*/
|
|
54
|
+
private __renderMissing;
|
|
55
|
+
private __syncResized;
|
|
56
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IControlType } from "jodit/esm/types/index";
|
|
7
|
+
import type { ChartType, IChartPoint } from "./interface";
|
|
8
|
+
declare module 'jodit/esm/config' {
|
|
9
|
+
interface Config {
|
|
10
|
+
chart: {
|
|
11
|
+
className: string;
|
|
12
|
+
types: ChartType[];
|
|
13
|
+
defaultType: ChartType;
|
|
14
|
+
defaultTitle: string;
|
|
15
|
+
defaultPoints: IChartPoint[];
|
|
16
|
+
colors: string[];
|
|
17
|
+
defaultBackground: string;
|
|
18
|
+
defaultTextColor: string;
|
|
19
|
+
defaultBorderColor: string;
|
|
20
|
+
allowChangeBackground: boolean;
|
|
21
|
+
allowChangeTextColor: boolean;
|
|
22
|
+
allowChangeBorderColor: boolean;
|
|
23
|
+
fontFamily: string;
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
popup: Array<IControlType | string>;
|
|
27
|
+
dialog: {
|
|
28
|
+
width: number;
|
|
29
|
+
height: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IJodit, Nullable } from "jodit/esm/types/index";
|
|
7
|
+
import type { ChartType, IChartData, IChartPoint } from "./interface";
|
|
8
|
+
export declare const CHART_ATTR = "data-jodit-chart";
|
|
9
|
+
export declare const CHART_TYPES: ChartType[];
|
|
10
|
+
export declare const CHART_TYPE_TITLES: Record<ChartType, string>;
|
|
11
|
+
export declare function isChartType(value: unknown): value is ChartType;
|
|
12
|
+
export declare function normalizePoint(raw: Partial<IChartPoint>): IChartPoint;
|
|
13
|
+
export declare function normalizeChartData(raw: Partial<IChartData>, defaults: IChartData): IChartData;
|
|
14
|
+
export declare function cloneChartData(data: IChartData): IChartData;
|
|
15
|
+
export declare function isChartElement(node: Nullable<Node>, className: string): node is HTMLElement;
|
|
16
|
+
export declare function findChart(jodit: IJodit, node: Nullable<Node>): Nullable<HTMLElement>;
|
|
17
|
+
export declare function readChartData(jodit: IJodit, figure: HTMLElement): Nullable<IChartData>;
|
|
18
|
+
export declare function defaultChartData(jodit: IJodit): IChartData;
|
|
19
|
+
export declare function decorateChart(jodit: IJodit, figure: HTMLElement): void;
|
|
20
|
+
export declare function applyChartData(jodit: IJodit, figure: HTMLElement, data: IChartData): void;
|
|
21
|
+
export declare function createChart(jodit: IJodit, data: IChartData): HTMLElement;
|
|
22
|
+
export declare function pixels(value: string): number;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
export type ChartType = 'bar' | 'horizontalBar' | 'line' | 'area' | 'pie' | 'donut' | 'radar';
|
|
7
|
+
export interface IChartPoint {
|
|
8
|
+
label: string;
|
|
9
|
+
value: number;
|
|
10
|
+
color?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IChartData {
|
|
13
|
+
type: ChartType;
|
|
14
|
+
title: string;
|
|
15
|
+
points: IChartPoint[];
|
|
16
|
+
width: number;
|
|
17
|
+
height: number;
|
|
18
|
+
background?: string;
|
|
19
|
+
textColor?: string;
|
|
20
|
+
borderColor?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface IChartRenderOptions {
|
|
23
|
+
colors: string[];
|
|
24
|
+
fontFamily: string;
|
|
25
|
+
}
|
|
26
|
+
export interface IChartTheme {
|
|
27
|
+
surface: string;
|
|
28
|
+
transparent: boolean;
|
|
29
|
+
border: string;
|
|
30
|
+
grid: string;
|
|
31
|
+
ink: string;
|
|
32
|
+
inkMuted: string;
|
|
33
|
+
inkSecondary: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IChartData, IChartRenderOptions } from "../interface";
|
|
7
|
+
export declare function renderBar(data: IChartData, options: IChartRenderOptions): string;
|
|
8
|
+
export declare function renderHorizontalBar(data: IChartData, options: IChartRenderOptions): string;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IChartData, IChartPoint, IChartRenderOptions, IChartTheme } from "../interface";
|
|
7
|
+
export declare const PAD = 24;
|
|
8
|
+
export declare const TITLE_HEIGHT = 40;
|
|
9
|
+
export declare const LABEL_FONT = 13;
|
|
10
|
+
export declare const TICK_FONT = 12;
|
|
11
|
+
export declare const TICK_COUNT = 4;
|
|
12
|
+
export declare const BAR_RADIUS = 4;
|
|
13
|
+
export declare const MAX_LABEL = 14;
|
|
14
|
+
export declare const DEFAULT_BACKGROUND = "#ffffff";
|
|
15
|
+
export declare const DEFAULT_TEXT_COLOR = "#111827";
|
|
16
|
+
/**
|
|
17
|
+
* Colors derived from the chart background and text color so grids, axes and
|
|
18
|
+
* secondary labels stay readable on light and dark surfaces alike.
|
|
19
|
+
*/
|
|
20
|
+
export declare function chartTheme(data: IChartData): IChartTheme;
|
|
21
|
+
export interface IPlotBox {
|
|
22
|
+
x: number;
|
|
23
|
+
y: number;
|
|
24
|
+
width: number;
|
|
25
|
+
height: number;
|
|
26
|
+
}
|
|
27
|
+
export declare function esc(value: string | number): string;
|
|
28
|
+
export declare function num(value: number): string;
|
|
29
|
+
export declare function formatValue(value: number): string;
|
|
30
|
+
export declare function truncate(label: string, max?: number): string;
|
|
31
|
+
export declare function pointColor(point: IChartPoint, index: number, options: IChartRenderOptions): string;
|
|
32
|
+
export declare function niceStep(rawStep: number): number;
|
|
33
|
+
export declare function ticks(points: IChartPoint[]): number[];
|
|
34
|
+
export declare function textWidth(text: string, fontSize: number): number;
|
|
35
|
+
export declare function plotBox(data: IChartData, margin: IPlotBox): IPlotBox;
|
|
36
|
+
export declare function svgOpen(data: IChartData, options: IChartRenderOptions): string;
|
|
37
|
+
export declare function svgClose(): string;
|
|
38
|
+
export declare function renderTitle(data: IChartData, theme: IChartTheme): string;
|
|
39
|
+
export declare function roundedBarPath(x: number, y: number, width: number, height: number, radius: number, side: 'top' | 'right'): string;
|
|
40
|
+
export declare function valuePill(cx: number, cy: number, value: number, color: string, theme: IChartTheme): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IChartData, IChartRenderOptions } from "../interface";
|
|
7
|
+
export declare function renderChart(data: IChartData, options: IChartRenderOptions): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IChartData, IChartRenderOptions } from "../interface";
|
|
7
|
+
export declare function renderLine(data: IChartData, options: IChartRenderOptions, area: boolean): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IChartData, IChartRenderOptions } from "../interface";
|
|
7
|
+
export declare function renderPie(data: IChartData, options: IChartRenderOptions, donut: boolean): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IChartData, IChartRenderOptions } from "../interface";
|
|
7
|
+
export declare function renderRadar(data: IChartData, options: IChartRenderOptions): string;
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IJodit } from "jodit/esm/types/index";
|
|
7
|
+
import type { IChartData } from "../../interface";
|
|
8
|
+
import { UIElement } from "jodit/esm/core/ui/index";
|
|
9
|
+
/**
|
|
10
|
+
* Dialog body of the chart editor: live preview, type/title fields and the
|
|
11
|
+
* editable list of data points.
|
|
12
|
+
*/
|
|
13
|
+
export declare class UIChartEditor extends UIElement<IJodit> {
|
|
14
|
+
className(): string;
|
|
15
|
+
state: IChartData;
|
|
16
|
+
private typeSelect;
|
|
17
|
+
private titleInput;
|
|
18
|
+
private addButton;
|
|
19
|
+
private backgroundInput;
|
|
20
|
+
private textColorInput;
|
|
21
|
+
private borderColorInput;
|
|
22
|
+
private transparentButton;
|
|
23
|
+
protected render(): string;
|
|
24
|
+
constructor(jodit: IJodit);
|
|
25
|
+
private syncTransparent;
|
|
26
|
+
private createColorInput;
|
|
27
|
+
private colorField;
|
|
28
|
+
/**
|
|
29
|
+
* Loads a copy of the data into the form.
|
|
30
|
+
*/
|
|
31
|
+
setData(data: IChartData): void;
|
|
32
|
+
/**
|
|
33
|
+
* Returns a normalized copy of the edited data.
|
|
34
|
+
*/
|
|
35
|
+
getData(): IChartData;
|
|
36
|
+
private addPoint;
|
|
37
|
+
private removePoint;
|
|
38
|
+
private rebuildPoints;
|
|
39
|
+
private createPointRow;
|
|
40
|
+
private __dragIndex;
|
|
41
|
+
/**
|
|
42
|
+
* Native drag and drop of a row. The grip is the draggable element so text
|
|
43
|
+
* selection inside the inputs keeps working.
|
|
44
|
+
*/
|
|
45
|
+
private bindDragAndDrop;
|
|
46
|
+
/**
|
|
47
|
+
* Moves a point before or after another one and rebuilds the list.
|
|
48
|
+
*/
|
|
49
|
+
movePoint(from: number, to: number, after: boolean): void;
|
|
50
|
+
private refresh;
|
|
51
|
+
private __render;
|
|
52
|
+
}
|