jodit-pro 4.18.8 → 4.18.11
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/es2015/jodit.css +2 -2
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +30 -30
- package/es2015/jodit.js +1242 -229
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +13 -13
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +19 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
- 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 +14 -7
- package/es2015/plugins/backup/backup.min.js +2 -2
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +26 -19
- package/es2015/plugins/button-generator/button-generator.min.js +3 -3
- 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 +1 -1
- package/es2015/plugins/chart/chart.js +1 -1
- package/es2015/plugins/chart/chart.min.js +1 -1
- 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/math/math.css +1 -1
- package/es2015/plugins/math/math.js +1 -1
- package/es2015/plugins/math/math.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 +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +19 -19
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +21 -21
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +2 -2
- package/es2018/plugins/button-generator/button-generator.min.js +3 -3
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/chart/chart.min.js +1 -1
- 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/math/math.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 +1 -1
- package/es2021/jodit.css +2 -2
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +24 -24
- package/es2021/jodit.js +1217 -229
- package/es2021/jodit.min.css +1 -1
- 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 +19 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +3 -3
- 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 +14 -7
- package/es2021/plugins/backup/backup.min.js +2 -2
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +26 -19
- package/es2021/plugins/button-generator/button-generator.min.js +3 -3
- 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 +1 -1
- package/es2021/plugins/chart/chart.js +1 -1
- package/es2021/plugins/chart/chart.min.js +1 -1
- 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/math/math.css +1 -1
- package/es2021/plugins/math/math.js +1 -1
- package/es2021/plugins/math/math.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 +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +2 -2
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +24 -24
- package/es2021.en/jodit.js +1217 -229
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +30 -30
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +19 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +26 -26
- 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 +14 -7
- package/es2021.en/plugins/backup/backup.min.js +2 -2
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +26 -19
- package/es2021.en/plugins/button-generator/button-generator.min.js +3 -3
- 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 +1 -1
- package/es2021.en/plugins/chart/chart.js +1 -1
- package/es2021.en/plugins/chart/chart.min.js +1 -1
- 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/math/math.css +1 -1
- package/es2021.en/plugins/math/math.js +1 -1
- package/es2021.en/plugins/math/math.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 +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +3 -3
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +1383 -235
- package/es5/jodit.min.css +3 -3
- 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 +19 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- 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 +14 -7
- package/es5/plugins/backup/backup.min.js +2 -2
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +26 -19
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- 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 +1 -1
- package/es5/plugins/chart/chart.js +1 -1
- package/es5/plugins/chart/chart.min.js +1 -1
- 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/math/math.css +1 -1
- package/es5/plugins/math/math.js +1 -1
- package/es5/plugins/math/math.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 +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/plugins/ai-assistant-pro/ai-assistant-pro.js +2 -2
- package/esm/plugins/ai-assistant-pro/core/panel-resize.d.ts +4 -0
- package/esm/plugins/ai-assistant-pro/core/panel-resize.js +1 -1
- package/esm/plugins/backup/ui/item.js +1 -1
- package/esm/plugins/button-generator/ui/form/form.js +2 -2
- package/package.json +1 -1
- package/types/plugins/ai-assistant-pro/core/panel-resize.d.ts +4 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.18.
|
|
4
|
+
* Version: v4.18.11
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -377,8 +377,10 @@ UIBackupBox = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorat
|
|
|
377
377
|
/* harmony export */ UIBackupItem: function() { return /* binding */ UIBackupItem; }
|
|
378
378
|
/* harmony export */ });
|
|
379
379
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);
|
|
380
|
-
/* harmony import */ var
|
|
381
|
-
/* harmony import */ var
|
|
380
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
|
|
381
|
+
/* harmony import */ var jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87325);
|
|
382
|
+
/* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
|
|
383
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67510);
|
|
382
384
|
/*!
|
|
383
385
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
384
386
|
* See LICENSE.md in the project root for license information.
|
|
@@ -387,14 +389,16 @@ UIBackupBox = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorat
|
|
|
387
389
|
|
|
388
390
|
|
|
389
391
|
|
|
390
|
-
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
class UIBackupItem extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__.UIElement {
|
|
391
395
|
/** @override */ className() {
|
|
392
396
|
return 'UIBackupItem';
|
|
393
397
|
}
|
|
394
398
|
formatDate(timestamp) {
|
|
395
399
|
const now = new Date();
|
|
396
|
-
const date = (0,
|
|
397
|
-
if ((0,
|
|
400
|
+
const date = (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(timestamp) ? new Date(timestamp) : timestamp, diff = (now.getTime() - date.getTime()) / 1000;
|
|
401
|
+
if ((0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isFunction)(this.j.o.backup.formatDate)) {
|
|
398
402
|
return this.j.o.backup.formatDate(date);
|
|
399
403
|
}
|
|
400
404
|
if (diff < 0.2) {
|
|
@@ -417,9 +421,12 @@ class UIBackupItem extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__.UIElem
|
|
|
417
421
|
constructor(jodit, data){
|
|
418
422
|
super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "data", void 0), this.data = data;
|
|
419
423
|
this.container.innerHTML = this.formatDate(data.created);
|
|
420
|
-
(0,
|
|
424
|
+
(0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(this.container, 'tabIndex', 0);
|
|
421
425
|
}
|
|
422
426
|
}
|
|
427
|
+
UIBackupItem = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
428
|
+
jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_2__.component
|
|
429
|
+
], UIBackupItem);
|
|
423
430
|
|
|
424
431
|
|
|
425
432
|
/***/ }),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.18.
|
|
4
|
+
* Version: v4.18.11
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
8
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var i in o)("object"==typeof exports?exports:t)[i]=o[i]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[736],{68583:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 4v6h6M3 10l4-4a8 8 0 1 1-1 12M12 8v5l3 2"/> </g> </svg>'},61328:function(t,e,o){"use strict";o.r(e),o.d(e,{backup:function(){return u}});var i=o(82749),s=o(31635);o(57056);var n=o(29243),r=o(64262),a=o(65478),c=o(50911),l=o(67510),h=o(2692);class u extends c.Plugin{afterInit(t){t.registerCommand("saveBackup",this.onSaveBackup).registerCommand("openBackupDialog",{exec:this.onOpenBackupDialog,hotkeys:t.o.backup.hotkeys});let e=()=>{this.timeout=t.async.setTimeout(()=>{this.onSaveBackup(),e()},1e3*t.o.backup.interval)};e(),t.e.on(this.__box,"choose",this.onSelectItem).on(t.ow,"beforeunload.backup",()=>{this.onSaveBackup()})}prepareDialog(){this.__dialog||(this.__dialog=this.j.dlg({minWidth:this.j.o.backup.dialogWidth,buttons:["fullsize","dialog.close"]}).setContent(this.__box.container)),this.__dialog.setHeader(this.jodit.i18n("Restore")),this.addButtonsToDialog()}onSaveBackup(){this.__storage.add({created:new Date,html:this.j.value})}async onOpenBackupDialog(){this.prepareDialog();let{__dialog:t}=this;if(!t)return;t.open().setModal(!0);let e=await this.__storage.items();this.__box.build([{created:new Date,html:this.j.value},...e]),t.calcAutoSize(),t.setPosition()}onSelectItem(t){this.__dialog?.close(),this.j.value=t.html,this.j.s.focus()}addButtonsToDialog(){let{jodit:t}=this,e=(0,l.Button)(t,{name:"ok",tabIndex:0,variant:"primary",text:"Ok"}),o=(0,l.Button)(t,{variant:"secondary",tabIndex:0,text:"Cancel"}),i=(0,l.Button)(t,{name:"clear",tabIndex:0,variant:"secondary",text:"Remove all"});e.onAction(()=>{this.__box.chooseSelected()}),o.onAction(()=>{this.__dialog?.close()}),i.onAction(()=>{t.confirm("Are you sure?",void 0,t=>{t&&(this.__storage.clear(),this.__dialog?.close())})});let s=new l.UIBlock(t,[i,o,e]);s.container.style.margin="0",s.container.style.justifyContent="flex-end",s.container.style.width="100%",this.__dialog?.setFooter(s)}beforeDestruct(){let{j:t}=this;t.async.clearTimeout(this.timeout),t.e.off(this.__box,"choose",this.onSelectItem).off(t.ow,"beforeunload.backup"),this.__box.destruct(),this.__dialog?.destruct()}constructor(...t){super(...t),(0,i._)(this,"hasStyle",!h.JoditPro.fatMode),(0,i._)(this,"buttons",[{name:"backup.restore",group:"history"}]),(0,i._)(this,"__box",new r.UIBackupBox(this.j)),(0,i._)(this,"__dialog",null),(0,i._)(this,"__storage",this.jodit.o.backup.remoteStore??new n.DefaultStorage(this.jodit)),(0,i._)(this,"timeout",0)}}(0,i._)(u,"requires",["license"]),(0,s.__decorate)([a.autobind],u.prototype,"onSaveBackup",null),(0,s.__decorate)([a.autobind],u.prototype,"onOpenBackupDialog",null),(0,s.__decorate)([a.autobind],u.prototype,"onSelectItem",null),h.JoditPro.plugins.add("backup",u)},57056:function(t,e,o){"use strict";var i=o(68583),s=o.n(i),n=o(29402),r=o(6441),a=o(580),c=o(12153);r.Config.prototype.backup={interval:30,limit:50,dialogWidth:700,hotkeys:["ctrl+shift+b","cmd+shift+b"]},r.Config.prototype.controls.backup={store:{command:"saveBackup",text:"Save backup now"},restore:{tooltip:"Restore",list:["backup.store"],exec(t){t.execCommand("openBackupDialog")}}},c.Icon.set("restore",s()),(0,a.extendLang)(n)},29402:function(t,e,o){"use strict";o.r(e)},29243:function(t,e,o){"use strict";o.d(e,{DefaultStorage:function(){return s}});var i=o(82749);class s{async add(t){if(!t.html.trim().length)return!1;let e=this.jodit.storage.get(this.key)||[];return!e.find(e=>e.html===t.html)&&(e.unshift(t),e.length>this.jodit.o.backup.limit&&(e.length=this.jodit.o.backup.limit),this.jodit.storage.set(this.key,e),!1)}items(){return Promise.resolve(this.jodit.storage.get(this.key)||[])}clear(){return this.jodit.storage.delete(this.key),Promise.resolve(!1)}constructor(t){(0,i._)(this,"jodit",void 0),(0,i._)(this,"key",void 0),this.jodit=t,this.key="backup.default.storage"}}},64262:function(t,e,o){"use strict";o.d(e,{UIBackupBox:function(){return c}});var i=o(82749),s=o(31635),n=o(6183),r=o(65478),a=o(48538);class c extends a.UIElement{className(){return"UIBackupBox"}build(t){this.preview.innerHTML="",this.list.build(t)}destruct(){return this.j.e.off(this.list,"select",this.onSelectItem),this.list.destruct(),super.destruct()}onSelectItem(t){this.latestSelected=t,this.preview.innerHTML=t.html||`<div class="${this.getFullElName("empty")}">${this.j.i18n("Empty")}</div>`}onChooseItem(t){this.j.e.fire(this,"choose",t)}chooseSelected(){this.onChooseItem(this.latestSelected)}constructor(t){super(t),(0,i._)(this,"list",new n.UIBackupList(this.j)),(0,i._)(this,"preview",this.j.c.div(this.getFullElName("preview"))),(0,i._)(this,"latestSelected",void 0),this.container.appendChild(this.list.container),this.container.appendChild(this.preview),this.list.container.classList.add(this.getFullElName("list")),t.e.on(this.list,"select",this.onSelectItem).on(this.list,"choose",this.onChooseItem)}}(0,s.__decorate)([r.autobind],c.prototype,"onSelectItem",null),(0,s.__decorate)([r.autobind],c.prototype,"onChooseItem",null),c=(0,s.__decorate)([r.component],c)},38512:function(t,e,o){"use strict";o.d(e,{UIBackupItem:function(){return
|
|
8
|
+
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var o=e();for(var i in o)("object"==typeof exports?exports:t)[i]=o[i]}}(self,function(){return(self.webpackChunkjodit_pro=self.webpackChunkjodit_pro||[]).push([[736],{68583:function(t){t.exports='<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"> <g fill="none"> <path d="M3 4v6h6M3 10l4-4a8 8 0 1 1-1 12M12 8v5l3 2"/> </g> </svg>'},61328:function(t,e,o){"use strict";o.r(e),o.d(e,{backup:function(){return u}});var i=o(82749),s=o(31635);o(57056);var n=o(29243),r=o(64262),a=o(65478),c=o(50911),l=o(67510),h=o(2692);class u extends c.Plugin{afterInit(t){t.registerCommand("saveBackup",this.onSaveBackup).registerCommand("openBackupDialog",{exec:this.onOpenBackupDialog,hotkeys:t.o.backup.hotkeys});let e=()=>{this.timeout=t.async.setTimeout(()=>{this.onSaveBackup(),e()},1e3*t.o.backup.interval)};e(),t.e.on(this.__box,"choose",this.onSelectItem).on(t.ow,"beforeunload.backup",()=>{this.onSaveBackup()})}prepareDialog(){this.__dialog||(this.__dialog=this.j.dlg({minWidth:this.j.o.backup.dialogWidth,buttons:["fullsize","dialog.close"]}).setContent(this.__box.container)),this.__dialog.setHeader(this.jodit.i18n("Restore")),this.addButtonsToDialog()}onSaveBackup(){this.__storage.add({created:new Date,html:this.j.value})}async onOpenBackupDialog(){this.prepareDialog();let{__dialog:t}=this;if(!t)return;t.open().setModal(!0);let e=await this.__storage.items();this.__box.build([{created:new Date,html:this.j.value},...e]),t.calcAutoSize(),t.setPosition()}onSelectItem(t){this.__dialog?.close(),this.j.value=t.html,this.j.s.focus()}addButtonsToDialog(){let{jodit:t}=this,e=(0,l.Button)(t,{name:"ok",tabIndex:0,variant:"primary",text:"Ok"}),o=(0,l.Button)(t,{variant:"secondary",tabIndex:0,text:"Cancel"}),i=(0,l.Button)(t,{name:"clear",tabIndex:0,variant:"secondary",text:"Remove all"});e.onAction(()=>{this.__box.chooseSelected()}),o.onAction(()=>{this.__dialog?.close()}),i.onAction(()=>{t.confirm("Are you sure?",void 0,t=>{t&&(this.__storage.clear(),this.__dialog?.close())})});let s=new l.UIBlock(t,[i,o,e]);s.container.style.margin="0",s.container.style.justifyContent="flex-end",s.container.style.width="100%",this.__dialog?.setFooter(s)}beforeDestruct(){let{j:t}=this;t.async.clearTimeout(this.timeout),t.e.off(this.__box,"choose",this.onSelectItem).off(t.ow,"beforeunload.backup"),this.__box.destruct(),this.__dialog?.destruct()}constructor(...t){super(...t),(0,i._)(this,"hasStyle",!h.JoditPro.fatMode),(0,i._)(this,"buttons",[{name:"backup.restore",group:"history"}]),(0,i._)(this,"__box",new r.UIBackupBox(this.j)),(0,i._)(this,"__dialog",null),(0,i._)(this,"__storage",this.jodit.o.backup.remoteStore??new n.DefaultStorage(this.jodit)),(0,i._)(this,"timeout",0)}}(0,i._)(u,"requires",["license"]),(0,s.__decorate)([a.autobind],u.prototype,"onSaveBackup",null),(0,s.__decorate)([a.autobind],u.prototype,"onOpenBackupDialog",null),(0,s.__decorate)([a.autobind],u.prototype,"onSelectItem",null),h.JoditPro.plugins.add("backup",u)},57056:function(t,e,o){"use strict";var i=o(68583),s=o.n(i),n=o(29402),r=o(6441),a=o(580),c=o(12153);r.Config.prototype.backup={interval:30,limit:50,dialogWidth:700,hotkeys:["ctrl+shift+b","cmd+shift+b"]},r.Config.prototype.controls.backup={store:{command:"saveBackup",text:"Save backup now"},restore:{tooltip:"Restore",list:["backup.store"],exec(t){t.execCommand("openBackupDialog")}}},c.Icon.set("restore",s()),(0,a.extendLang)(n)},29402:function(t,e,o){"use strict";o.r(e)},29243:function(t,e,o){"use strict";o.d(e,{DefaultStorage:function(){return s}});var i=o(82749);class s{async add(t){if(!t.html.trim().length)return!1;let e=this.jodit.storage.get(this.key)||[];return!e.find(e=>e.html===t.html)&&(e.unshift(t),e.length>this.jodit.o.backup.limit&&(e.length=this.jodit.o.backup.limit),this.jodit.storage.set(this.key,e),!1)}items(){return Promise.resolve(this.jodit.storage.get(this.key)||[])}clear(){return this.jodit.storage.delete(this.key),Promise.resolve(!1)}constructor(t){(0,i._)(this,"jodit",void 0),(0,i._)(this,"key",void 0),this.jodit=t,this.key="backup.default.storage"}}},64262:function(t,e,o){"use strict";o.d(e,{UIBackupBox:function(){return c}});var i=o(82749),s=o(31635),n=o(6183),r=o(65478),a=o(48538);class c extends a.UIElement{className(){return"UIBackupBox"}build(t){this.preview.innerHTML="",this.list.build(t)}destruct(){return this.j.e.off(this.list,"select",this.onSelectItem),this.list.destruct(),super.destruct()}onSelectItem(t){this.latestSelected=t,this.preview.innerHTML=t.html||`<div class="${this.getFullElName("empty")}">${this.j.i18n("Empty")}</div>`}onChooseItem(t){this.j.e.fire(this,"choose",t)}chooseSelected(){this.onChooseItem(this.latestSelected)}constructor(t){super(t),(0,i._)(this,"list",new n.UIBackupList(this.j)),(0,i._)(this,"preview",this.j.c.div(this.getFullElName("preview"))),(0,i._)(this,"latestSelected",void 0),this.container.appendChild(this.list.container),this.container.appendChild(this.preview),this.list.container.classList.add(this.getFullElName("list")),t.e.on(this.list,"select",this.onSelectItem).on(this.list,"choose",this.onChooseItem)}}(0,s.__decorate)([r.autobind],c.prototype,"onSelectItem",null),(0,s.__decorate)([r.autobind],c.prototype,"onChooseItem",null),c=(0,s.__decorate)([r.component],c)},38512:function(t,e,o){"use strict";o.d(e,{UIBackupItem:function(){return c}});var i=o(82749),s=o(31635),n=o(87325),r=o(21537),a=o(67510);class c extends a.UIElement{className(){return"UIBackupItem"}formatDate(t){let e=new Date,o=(0,r.isString)(t)?new Date(t):t,i=(e.getTime()-o.getTime())/1e3;return(0,r.isFunction)(this.j.o.backup.formatDate)?this.j.o.backup.formatDate(o):i<.2?this.j.i18n("Current"):i<60?this.j.i18n("Less minute"):i<=3600?this.j.i18n("%s minutes ago",Math.floor(i/60)):i<=86400?this.j.i18n("%s hours ago",Math.floor(i/3600)):`${o.toDateString()} ${o.toLocaleTimeString()}`}focus(){this.container.focus()}constructor(t,e){super(t),(0,i._)(this,"data",void 0),this.data=e,this.container.innerHTML=this.formatDate(e.created),(0,r.attr)(this.container,"tabIndex",0)}}c=(0,s.__decorate)([n.component],c)},6183:function(t,e,o){"use strict";o.d(e,{UIBackupList:function(){return h}});var i=o(82749),s=o(31635),n=o(38512),r=o(82758),a=o(65478),c=o(21537),l=o(67510);class h extends l.UIGroup{className(){return"UIBackupList"}createContainer(t){let e=super.createContainer(t);return(0,c.attr)(e,"tabIndex","-1"),e}build(t){this.clear(),t.forEach((t,e)=>{let o=new n.UIBackupItem(this.jodit,t);this.append(o),this.j.e.on(o.container,"focus",()=>this.onSelect(e)).on(o.container,"click",()=>this.onSelect(e)).on(o.container,"dblclick",()=>this.onChoose(e))}),this.currentSelection=0,this.onChangeCurrentSelection(void 0,-1,0)}onChangeCurrentSelection(t,e,o){this.elements[e]?.setMod("active",!1),this.elements[o]?.setMod("active",!0),this.elements[o]?.focus(),this.j.e.fire(this,"select",this.elements[o].data)}onSelect(t){this.currentSelection=t}onChoose(t){this.j.e.fire(this,"choose",this.elements[t??this.currentSelection].data)}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}constructor(t){super(t),(0,i._)(this,"elements",[]),(0,i._)(this,"currentSelection",-1),t.e.on(this.container,"keydown",t=>{switch(t.key){case r.KEY_ENTER:t.preventDefault(),t.stopPropagation(),this.onChoose(this.currentSelection);break;case r.KEY_DOWN:this.selectNext();break;case r.KEY_UP:this.selectPrevious()}})}}(0,s.__decorate)([(0,a.watch)("currentSelection")],h.prototype,"onChangeCurrentSelection",null),(0,s.__decorate)([a.autobind],h.prototype,"onSelect",null),(0,s.__decorate)([a.autobind],h.prototype,"onChoose",null),h=(0,s.__decorate)([a.component],h)}},function(t){return t(61328)}])});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.18.
|
|
4
|
+
* Version: v4.18.11
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -1800,11 +1800,13 @@ UIGButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)
|
|
|
1800
1800
|
/* harmony export */ UIFormButtonGenerator: function() { return /* binding */ UIFormButtonGenerator; }
|
|
1801
1801
|
/* harmony export */ });
|
|
1802
1802
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);
|
|
1803
|
-
/* harmony import */ var
|
|
1804
|
-
/* harmony import */ var
|
|
1805
|
-
/* harmony import */ var
|
|
1806
|
-
/* harmony import */ var
|
|
1807
|
-
/* harmony import */ var
|
|
1803
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
|
|
1804
|
+
/* harmony import */ var jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87325);
|
|
1805
|
+
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2748);
|
|
1806
|
+
/* harmony import */ var jodit_esm_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4510);
|
|
1807
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(38837);
|
|
1808
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(67510);
|
|
1809
|
+
/* harmony import */ var jodit_pro_core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(62357);
|
|
1808
1810
|
/*!
|
|
1809
1811
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1810
1812
|
* See LICENSE.md in the project root for license information.
|
|
@@ -1816,16 +1818,18 @@ UIGButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)
|
|
|
1816
1818
|
|
|
1817
1819
|
|
|
1818
1820
|
|
|
1819
|
-
|
|
1821
|
+
|
|
1822
|
+
|
|
1823
|
+
class UIFormButtonGenerator extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__.UIElement {
|
|
1820
1824
|
/** @override */ className() {
|
|
1821
1825
|
return 'UIFormButtonGenerator';
|
|
1822
1826
|
}
|
|
1823
1827
|
update() {
|
|
1824
1828
|
this.onUpdates.forEach((cb)=>cb());
|
|
1825
1829
|
const boxShadow = this.getElm('box-shadow');
|
|
1826
|
-
(0,
|
|
1830
|
+
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__.assert)(boxShadow != null, 'box-shadow does not exists');
|
|
1827
1831
|
const textShadow = this.getElm('text-shadow');
|
|
1828
|
-
(0,
|
|
1832
|
+
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__.assert)(textShadow != null, 'text-shadow does not exists');
|
|
1829
1833
|
boxShadow.style.display = this.state.boxShadow ? '' : 'none';
|
|
1830
1834
|
textShadow.style.display = this.state.textShadow ? '' : 'none';
|
|
1831
1835
|
}
|
|
@@ -1921,10 +1925,10 @@ class UIFormButtonGenerator extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4
|
|
|
1921
1925
|
uiInput.value = newValue;
|
|
1922
1926
|
}
|
|
1923
1927
|
};
|
|
1924
|
-
(0,
|
|
1925
|
-
if (
|
|
1926
|
-
const uiInput = new
|
|
1927
|
-
options: (0,
|
|
1928
|
+
(0,jodit_esm_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_4__.toArray)(this.container.querySelectorAll('input,select')).forEach((input)=>{
|
|
1929
|
+
if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.isTag(input, 'select')) {
|
|
1930
|
+
const uiInput = new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__.UISelect(this.j, {
|
|
1931
|
+
options: (0,jodit_esm_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_4__.toArray)(input.options).map((opt)=>({
|
|
1928
1932
|
text: opt.innerText,
|
|
1929
1933
|
value: opt.value
|
|
1930
1934
|
})),
|
|
@@ -1932,15 +1936,15 @@ class UIFormButtonGenerator extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4
|
|
|
1932
1936
|
this.updateState(input.name, value);
|
|
1933
1937
|
}
|
|
1934
1938
|
});
|
|
1935
|
-
|
|
1939
|
+
jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.replace(input, uiInput.container, this.j.create, false, true);
|
|
1936
1940
|
this.onUpdates.push(getOnUpdate(uiInput, input));
|
|
1937
1941
|
return;
|
|
1938
1942
|
}
|
|
1939
|
-
if (
|
|
1943
|
+
if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.isTag(input, 'input')) {
|
|
1940
1944
|
switch(input.type){
|
|
1941
1945
|
case 'range':
|
|
1942
1946
|
{
|
|
1943
|
-
const uiInput = new
|
|
1947
|
+
const uiInput = new jodit_pro_core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_7__.UIRange(this.j, {
|
|
1944
1948
|
label: input.placeholder,
|
|
1945
1949
|
name: input.name,
|
|
1946
1950
|
min: parseInt(input.min, 0) || 0,
|
|
@@ -1949,20 +1953,20 @@ class UIFormButtonGenerator extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4
|
|
|
1949
1953
|
this.updateState(input.name, parseInt(value, 10));
|
|
1950
1954
|
}
|
|
1951
1955
|
});
|
|
1952
|
-
|
|
1956
|
+
jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.replace(input, uiInput.container, this.j.create);
|
|
1953
1957
|
this.onUpdates.push(getOnUpdate(uiInput, input));
|
|
1954
1958
|
return;
|
|
1955
1959
|
}
|
|
1956
1960
|
case 'text':
|
|
1957
1961
|
{
|
|
1958
|
-
const uiInput = new
|
|
1962
|
+
const uiInput = new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__.UIInput(this.j, {
|
|
1959
1963
|
placeholder: input.placeholder,
|
|
1960
1964
|
name: input.name,
|
|
1961
1965
|
onChange: (value)=>{
|
|
1962
1966
|
this.updateState(input.name, value);
|
|
1963
1967
|
}
|
|
1964
1968
|
});
|
|
1965
|
-
|
|
1969
|
+
jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.replace(input, uiInput.container, this.j.create);
|
|
1966
1970
|
this.onUpdates.push(getOnUpdate(uiInput, input));
|
|
1967
1971
|
return;
|
|
1968
1972
|
}
|
|
@@ -1978,6 +1982,9 @@ class UIFormButtonGenerator extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4
|
|
|
1978
1982
|
this.update();
|
|
1979
1983
|
}
|
|
1980
1984
|
}
|
|
1985
|
+
UIFormButtonGenerator = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
1986
|
+
jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_2__.component
|
|
1987
|
+
], UIFormButtonGenerator);
|
|
1981
1988
|
|
|
1982
1989
|
|
|
1983
1990
|
/***/ }),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.18.
|
|
4
|
+
* Version: v4.18.11
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
<div class='&__wrapper'>
|
|
18
18
|
<button class='&__button'>css</button>
|
|
19
19
|
</div>
|
|
20
|
-
</div>`}static extractStyle(e,t){let s=t.ownerDocument.defaultView?.getComputedStyle(t)||{},r=(e,t,r,o)=>{let i=s[r];return!i||["none","inherit","initial","unset"].includes(i)?{[r]:!1}:(i.replace(/,\s/g,",").split(/\s+/).forEach(s=>{if(/[0-9.]+(px|pt|em|%)/.test(s)){let r=e.shift();r&&(t[r]=s)}else"inset"===s?t.boxShadowInset=!0:t[o]=s}),t[r]=!0,t)};Object.assign(e,{text:t.innerText,className:t.className,href:t.getAttribute("href")||"",...(()=>{let e={solid:!0,bgStart:s.backgroundColor??"#44c767",bgEnd:s.backgroundColor??"#44c767"},t=s.backgroundImage;if(t&&/linear-gradient/.test(t)){let s=/linear-gradient\((.+)\s+[0-9]+%,\s+(.+)\s+[0-9]+%\)/.exec(t);s&&(e.solid=!1,e.bgStart=s[1]||e.bgStart,e.bgEnd=s[2]||"#5cbf2a")}return e})(),borderColor:s?.borderColor??"#18ab29",borderRadius:s?.borderRadius??0,borderSize:s?.borderWidth??1,...r(["boxShadowOffsetX","boxShadowOffsetY","boxShadowBlurRadius","boxShadowSpreadRadius"],{boxShadowBlurRadius:0,boxShadowColor:"#3dc21b",boxShadowInset:!1,boxShadowOffsetX:0,boxShadowOffsetY:0,boxShadowSpreadRadius:0},"boxShadow","boxShadowColor"),fontColor:s.color,fontFamily:s.fontFamily,fontSize:s.fontSize,fontWeight:"bold"===s.fontWeight,fontItalic:"italic"===s.fontStyle,paddingX:s.paddingLeft,paddingY:s.paddingTop,...r(["textShadowOffsetX","textShadowOffsetY","textShadowBlurRadius"],{textShadowBlurRadius:0,textShadowColor:"#2f6627",textShadowOffsetX:0,textShadowOffsetY:1},"textShadow","textShadowColor")})}constructor(e,t){super(e),(0,r._)(this,"style",void 0),this.style=t,this.__updateStyles()}}(0,o.__decorate)([(0,i.watch)("style")],c.prototype,"__updateStyles",null),c=(0,o.__decorate)([i.component],c)},88572:function(e,t,s){"use strict";s.d(t,{UIFormButtonGenerator:function(){return
|
|
20
|
+
</div>`}static extractStyle(e,t){let s=t.ownerDocument.defaultView?.getComputedStyle(t)||{},r=(e,t,r,o)=>{let i=s[r];return!i||["none","inherit","initial","unset"].includes(i)?{[r]:!1}:(i.replace(/,\s/g,",").split(/\s+/).forEach(s=>{if(/[0-9.]+(px|pt|em|%)/.test(s)){let r=e.shift();r&&(t[r]=s)}else"inset"===s?t.boxShadowInset=!0:t[o]=s}),t[r]=!0,t)};Object.assign(e,{text:t.innerText,className:t.className,href:t.getAttribute("href")||"",...(()=>{let e={solid:!0,bgStart:s.backgroundColor??"#44c767",bgEnd:s.backgroundColor??"#44c767"},t=s.backgroundImage;if(t&&/linear-gradient/.test(t)){let s=/linear-gradient\((.+)\s+[0-9]+%,\s+(.+)\s+[0-9]+%\)/.exec(t);s&&(e.solid=!1,e.bgStart=s[1]||e.bgStart,e.bgEnd=s[2]||"#5cbf2a")}return e})(),borderColor:s?.borderColor??"#18ab29",borderRadius:s?.borderRadius??0,borderSize:s?.borderWidth??1,...r(["boxShadowOffsetX","boxShadowOffsetY","boxShadowBlurRadius","boxShadowSpreadRadius"],{boxShadowBlurRadius:0,boxShadowColor:"#3dc21b",boxShadowInset:!1,boxShadowOffsetX:0,boxShadowOffsetY:0,boxShadowSpreadRadius:0},"boxShadow","boxShadowColor"),fontColor:s.color,fontFamily:s.fontFamily,fontSize:s.fontSize,fontWeight:"bold"===s.fontWeight,fontItalic:"italic"===s.fontStyle,paddingX:s.paddingLeft,paddingY:s.paddingTop,...r(["textShadowOffsetX","textShadowOffsetY","textShadowBlurRadius"],{textShadowBlurRadius:0,textShadowColor:"#2f6627",textShadowOffsetX:0,textShadowOffsetY:1},"textShadow","textShadowColor")})}constructor(e,t){super(e),(0,r._)(this,"style",void 0),this.style=t,this.__updateStyles()}}(0,o.__decorate)([(0,i.watch)("style")],c.prototype,"__updateStyles",null),c=(0,o.__decorate)([i.component],c)},88572:function(e,t,s){"use strict";s.d(t,{UIFormButtonGenerator:function(){return u}});var r=s(82749),o=s(31635),i=s(87325),a=s(2748),n=s(4510),l=s(38837),p=s(67510),c=s(62357);class u extends p.UIElement{className(){return"UIFormButtonGenerator"}update(){this.onUpdates.forEach(e=>e());let e=this.getElm("box-shadow");(0,l.assert)(null!=e,"box-shadow does not exists");let t=this.getElm("text-shadow");(0,l.assert)(null!=t,"text-shadow does not exists"),e.style.display=this.state.boxShadow?"":"none",t.style.display=this.state.textShadow?"":"none"}render(){return`<div>
|
|
21
21
|
<div class='&__group &__text'>
|
|
22
22
|
<div class='&__title'>Text</div>
|
|
23
23
|
<div class='&__row'>
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
</div>
|
|
96
96
|
</div>
|
|
97
97
|
</div>
|
|
98
|
-
</div>`}constructor(e,t,s){super(e),(0,r._)(this,"state",void 0),(0,r._)(this,"updateState",void 0),(0,r._)(this,"onUpdates",void 0),this.state=t,this.updateState=s,this.onUpdates=[];let
|
|
98
|
+
</div>`}constructor(e,t,s){super(e),(0,r._)(this,"state",void 0),(0,r._)(this,"updateState",void 0),(0,r._)(this,"onUpdates",void 0),this.state=t,this.updateState=s,this.onUpdates=[];let o=(e,t)=>()=>{let s=this.state[t.name];/px/.test(s.toString())&&(s=s.toString().replace(/px/,"")),s.toString()!==e.value&&(e.value=s)};(0,n.toArray)(this.container.querySelectorAll("input,select")).forEach(e=>{if(a.Dom.isTag(e,"select")){let t=new p.UISelect(this.j,{options:(0,n.toArray)(e.options).map(e=>({text:e.innerText,value:e.value})),onChange:t=>{this.updateState(e.name,t)}});a.Dom.replace(e,t.container,this.j.create,!1,!0),this.onUpdates.push(o(t,e));return}if(a.Dom.isTag(e,"input"))switch(e.type){case"range":{let t=new c.UIRange(this.j,{label:e.placeholder,name:e.name,min:parseInt(e.min,0)||0,max:parseInt(e.max,0)||100,onChange:t=>{this.updateState(e.name,parseInt(t,10))}});a.Dom.replace(e,t.container,this.j.create),this.onUpdates.push(o(t,e));return}case"text":{let t=new p.UIInput(this.j,{placeholder:e.placeholder,name:e.name,onChange:t=>{this.updateState(e.name,t)}});a.Dom.replace(e,t.container,this.j.create),this.onUpdates.push(o(t,e));return}case"checkbox":e.onchange=()=>this.updateState(e.name,e.checked),this.onUpdates.push(()=>{e.checked=this.state[e.name]});return}}),this.update()}}u=(0,o.__decorate)([i.component],u)},35987:function(e,t,s){"use strict";s.d(t,{UIButtonGenerator:function(){return f}});var r=s(82749),o=s(31635),i=s(65478),a=s(21537),n=s(38837),l=s(67510),p=s(43039),c=s(82520),u=s(88572),h=s(26638);class f extends l.UIElement{className(){return"UIButtonGenerator"}render(){return`<div>
|
|
99
99
|
<div class='&__generator'>
|
|
100
100
|
<div class='&__preview'></div>
|
|
101
101
|
<div class='&__form'></div>
|