jodit-pro 4.18.9 → 4.18.12
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 +1 -1
- package/es2015/jodit.fat.min.js +13 -13
- package/es2015/jodit.js +286 -48
- package/es2015/jodit.min.js +14 -14
- 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.js +16 -16
- package/es2018/jodit.min.js +8 -8
- 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 +1 -1
- package/es2021/jodit.fat.min.js +19 -19
- package/es2021/jodit.js +286 -48
- package/es2021/jodit.min.js +8 -8
- 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 +1 -1
- package/es2021.en/jodit.fat.min.js +17 -17
- package/es2021.en/jodit.js +286 -48
- package/es2021.en/jodit.min.js +8 -8
- 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 +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +298 -44
- 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 +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.12
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -391,8 +391,10 @@ UIBackupBox = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorat
|
|
|
391
391
|
/* harmony export */ UIBackupItem: function() { return /* binding */ UIBackupItem; }
|
|
392
392
|
/* harmony export */ });
|
|
393
393
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);
|
|
394
|
-
/* harmony import */ var
|
|
395
|
-
/* harmony import */ var
|
|
394
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
|
|
395
|
+
/* harmony import */ var jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87325);
|
|
396
|
+
/* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21537);
|
|
397
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67510);
|
|
396
398
|
/*!
|
|
397
399
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
398
400
|
* See LICENSE.md in the project root for license information.
|
|
@@ -401,14 +403,16 @@ UIBackupBox = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorat
|
|
|
401
403
|
|
|
402
404
|
|
|
403
405
|
|
|
404
|
-
|
|
406
|
+
|
|
407
|
+
|
|
408
|
+
class UIBackupItem extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4__.UIElement {
|
|
405
409
|
/** @override */ className() {
|
|
406
410
|
return 'UIBackupItem';
|
|
407
411
|
}
|
|
408
412
|
formatDate(timestamp) {
|
|
409
413
|
const now = new Date();
|
|
410
|
-
const date = (0,
|
|
411
|
-
if ((0,
|
|
414
|
+
const date = (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isString)(timestamp) ? new Date(timestamp) : timestamp, diff = (now.getTime() - date.getTime()) / 1000;
|
|
415
|
+
if ((0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.isFunction)(this.j.o.backup.formatDate)) {
|
|
412
416
|
return this.j.o.backup.formatDate(date);
|
|
413
417
|
}
|
|
414
418
|
if (diff < 0.2) {
|
|
@@ -431,9 +435,12 @@ class UIBackupItem extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__.UIElem
|
|
|
431
435
|
constructor(jodit, data){
|
|
432
436
|
super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "data", void 0), this.data = data;
|
|
433
437
|
this.container.innerHTML = this.formatDate(data.created);
|
|
434
|
-
(0,
|
|
438
|
+
(0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_3__.attr)(this.container, 'tabIndex', 0);
|
|
435
439
|
}
|
|
436
440
|
}
|
|
441
|
+
UIBackupItem = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
442
|
+
jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_2__.component
|
|
443
|
+
], UIBackupItem);
|
|
437
444
|
|
|
438
445
|
|
|
439
446
|
/***/ }),
|
|
@@ -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.12
|
|
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 d}});var i=o(77688),s=o(82749),n=o(31635);o(57056);var r=o(29243),a=o(64262),
|
|
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 d}});var i=o(77688),s=o(82749),n=o(31635);o(57056);var r=o(29243),a=o(64262),c=o(65478),l=o(50911),u=o(67510),h=o(2692);class d extends l.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})}onOpenBackupDialog(){return(0,i._)(function*(){this.prepareDialog();let{__dialog:t}=this;if(!t)return;t.open().setModal(!0);let e=yield this.__storage.items();this.__box.build([{created:new Date,html:this.j.value},...e]),t.calcAutoSize(),t.setPosition()}).call(this)}onSelectItem(t){var e;null==(e=this.__dialog)||e.close(),this.j.value=t.html,this.j.s.focus()}addButtonsToDialog(){var t;let{jodit:e}=this,o=(0,u.Button)(e,{name:"ok",tabIndex:0,variant:"primary",text:"Ok"}),i=(0,u.Button)(e,{variant:"secondary",tabIndex:0,text:"Cancel"}),s=(0,u.Button)(e,{name:"clear",tabIndex:0,variant:"secondary",text:"Remove all"});o.onAction(()=>{this.__box.chooseSelected()}),i.onAction(()=>{var t;null==(t=this.__dialog)||t.close()}),s.onAction(()=>{e.confirm("Are you sure?",void 0,t=>{if(t){var e;this.__storage.clear(),null==(e=this.__dialog)||e.close()}})});let n=new u.UIBlock(e,[s,i,o]);n.container.style.margin="0",n.container.style.justifyContent="flex-end",n.container.style.width="100%",null==(t=this.__dialog)||t.setFooter(n)}beforeDestruct(){var t;let{j:e}=this;e.async.clearTimeout(this.timeout),e.e.off(this.__box,"choose",this.onSelectItem).off(e.ow,"beforeunload.backup"),this.__box.destruct(),null==(t=this.__dialog)||t.destruct()}constructor(...t){var e;super(...t),(0,s._)(this,"hasStyle",!h.JoditPro.fatMode),(0,s._)(this,"buttons",[{name:"backup.restore",group:"history"}]),(0,s._)(this,"__box",new a.UIBackupBox(this.j)),(0,s._)(this,"__dialog",null),(0,s._)(this,"__storage",null!=(e=this.jodit.o.backup.remoteStore)?e:new r.DefaultStorage(this.jodit)),(0,s._)(this,"timeout",0)}}(0,s._)(d,"requires",["license"]),(0,n.__decorate)([c.autobind],d.prototype,"onSaveBackup",null),(0,n.__decorate)([c.autobind],d.prototype,"onOpenBackupDialog",null),(0,n.__decorate)([c.autobind],d.prototype,"onSelectItem",null),h.JoditPro.plugins.add("backup",d)},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 n}});var i=o(77688),s=o(82749);class n{add(t){return(0,i._)(function*(){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)}).call(this)}items(){return Promise.resolve(this.jodit.storage.get(this.key)||[])}clear(){return this.jodit.storage.delete(this.key),Promise.resolve(!1)}constructor(t){(0,s._)(this,"jodit",void 0),(0,s._)(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 u}});var i=o(82749),s=o(31635),n=o(38512),r=o(82758),a=o(65478),c=o(21537),l=o(67510);class u 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){var i,s,n;null==(i=this.elements[e])||i.setMod("active",!1),null==(s=this.elements[o])||s.setMod("active",!0),null==(n=this.elements[o])||n.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[null!=t?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")],u.prototype,"onChangeCurrentSelection",null),(0,s.__decorate)([a.autobind],u.prototype,"onSelect",null),(0,s.__decorate)([a.autobind],u.prototype,"onChoose",null),u=(0,s.__decorate)([a.component],u)}},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.12
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -1812,11 +1812,13 @@ UIGButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_3__.__decorate)
|
|
|
1812
1812
|
/* harmony export */ UIFormButtonGenerator: function() { return /* binding */ UIFormButtonGenerator; }
|
|
1813
1813
|
/* harmony export */ });
|
|
1814
1814
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);
|
|
1815
|
-
/* harmony import */ var
|
|
1816
|
-
/* harmony import */ var
|
|
1817
|
-
/* harmony import */ var
|
|
1818
|
-
/* harmony import */ var
|
|
1819
|
-
/* harmony import */ var
|
|
1815
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
|
|
1816
|
+
/* harmony import */ var jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87325);
|
|
1817
|
+
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(2748);
|
|
1818
|
+
/* harmony import */ var jodit_esm_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(4510);
|
|
1819
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(38837);
|
|
1820
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(67510);
|
|
1821
|
+
/* harmony import */ var jodit_pro_core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(62357);
|
|
1820
1822
|
/*!
|
|
1821
1823
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1822
1824
|
* See LICENSE.md in the project root for license information.
|
|
@@ -1828,16 +1830,18 @@ UIGButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_3__.__decorate)
|
|
|
1828
1830
|
|
|
1829
1831
|
|
|
1830
1832
|
|
|
1831
|
-
|
|
1833
|
+
|
|
1834
|
+
|
|
1835
|
+
class UIFormButtonGenerator extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__.UIElement {
|
|
1832
1836
|
/** @override */ className() {
|
|
1833
1837
|
return 'UIFormButtonGenerator';
|
|
1834
1838
|
}
|
|
1835
1839
|
update() {
|
|
1836
1840
|
this.onUpdates.forEach((cb)=>cb());
|
|
1837
1841
|
const boxShadow = this.getElm('box-shadow');
|
|
1838
|
-
(0,
|
|
1842
|
+
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__.assert)(boxShadow != null, 'box-shadow does not exists');
|
|
1839
1843
|
const textShadow = this.getElm('text-shadow');
|
|
1840
|
-
(0,
|
|
1844
|
+
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__.assert)(textShadow != null, 'text-shadow does not exists');
|
|
1841
1845
|
boxShadow.style.display = this.state.boxShadow ? '' : 'none';
|
|
1842
1846
|
textShadow.style.display = this.state.textShadow ? '' : 'none';
|
|
1843
1847
|
}
|
|
@@ -1933,10 +1937,10 @@ class UIFormButtonGenerator extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4
|
|
|
1933
1937
|
uiInput.value = newValue;
|
|
1934
1938
|
}
|
|
1935
1939
|
};
|
|
1936
|
-
(0,
|
|
1937
|
-
if (
|
|
1938
|
-
const uiInput = new
|
|
1939
|
-
options: (0,
|
|
1940
|
+
(0,jodit_esm_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_4__.toArray)(this.container.querySelectorAll('input,select')).forEach((input)=>{
|
|
1941
|
+
if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.isTag(input, 'select')) {
|
|
1942
|
+
const uiInput = new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__.UISelect(this.j, {
|
|
1943
|
+
options: (0,jodit_esm_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_4__.toArray)(input.options).map((opt)=>({
|
|
1940
1944
|
text: opt.innerText,
|
|
1941
1945
|
value: opt.value
|
|
1942
1946
|
})),
|
|
@@ -1944,15 +1948,15 @@ class UIFormButtonGenerator extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4
|
|
|
1944
1948
|
this.updateState(input.name, value);
|
|
1945
1949
|
}
|
|
1946
1950
|
});
|
|
1947
|
-
|
|
1951
|
+
jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.replace(input, uiInput.container, this.j.create, false, true);
|
|
1948
1952
|
this.onUpdates.push(getOnUpdate(uiInput, input));
|
|
1949
1953
|
return;
|
|
1950
1954
|
}
|
|
1951
|
-
if (
|
|
1955
|
+
if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.isTag(input, 'input')) {
|
|
1952
1956
|
switch(input.type){
|
|
1953
1957
|
case 'range':
|
|
1954
1958
|
{
|
|
1955
|
-
const uiInput = new
|
|
1959
|
+
const uiInput = new jodit_pro_core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_7__.UIRange(this.j, {
|
|
1956
1960
|
label: input.placeholder,
|
|
1957
1961
|
name: input.name,
|
|
1958
1962
|
min: parseInt(input.min, 0) || 0,
|
|
@@ -1961,20 +1965,20 @@ class UIFormButtonGenerator extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4
|
|
|
1961
1965
|
this.updateState(input.name, parseInt(value, 10));
|
|
1962
1966
|
}
|
|
1963
1967
|
});
|
|
1964
|
-
|
|
1968
|
+
jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.replace(input, uiInput.container, this.j.create);
|
|
1965
1969
|
this.onUpdates.push(getOnUpdate(uiInput, input));
|
|
1966
1970
|
return;
|
|
1967
1971
|
}
|
|
1968
1972
|
case 'text':
|
|
1969
1973
|
{
|
|
1970
|
-
const uiInput = new
|
|
1974
|
+
const uiInput = new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__.UIInput(this.j, {
|
|
1971
1975
|
placeholder: input.placeholder,
|
|
1972
1976
|
name: input.name,
|
|
1973
1977
|
onChange: (value)=>{
|
|
1974
1978
|
this.updateState(input.name, value);
|
|
1975
1979
|
}
|
|
1976
1980
|
});
|
|
1977
|
-
|
|
1981
|
+
jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.replace(input, uiInput.container, this.j.create);
|
|
1978
1982
|
this.onUpdates.push(getOnUpdate(uiInput, input));
|
|
1979
1983
|
return;
|
|
1980
1984
|
}
|
|
@@ -1990,6 +1994,9 @@ class UIFormButtonGenerator extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_4
|
|
|
1990
1994
|
this.update();
|
|
1991
1995
|
}
|
|
1992
1996
|
}
|
|
1997
|
+
UIFormButtonGenerator = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
1998
|
+
jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_2__.component
|
|
1999
|
+
], UIFormButtonGenerator);
|
|
1993
2000
|
|
|
1994
2001
|
|
|
1995
2002
|
/***/ }),
|
|
@@ -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.12
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
<div class='&__wrapper'>
|
|
10
10
|
<button class='&__button'>css</button>
|
|
11
11
|
</div>
|
|
12
|
-
</div>`}static extractStyle(e,t){var s,r,a,n;let l=(null==(n=t.ownerDocument.defaultView)?void 0:n.getComputedStyle(t))||{},p=(e,t,s,r)=>{let o=l[s];return!o||["none","inherit","initial","unset"].includes(o)?{[s]:!1}:(o.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[r]=s}),t[s]=!0,t)};Object.assign(e,(0,o._)((0,i._)((0,o._)((0,i._)((0,o._)({text:t.innerText,className:t.className,href:t.getAttribute("href")||""},(()=>{var e,t;let s={solid:!0,bgStart:null!=(e=l.backgroundColor)?e:"#44c767",bgEnd:null!=(t=l.backgroundColor)?t:"#44c767"},r=l.backgroundImage;if(r&&/linear-gradient/.test(r)){let e=/linear-gradient\((.+)\s+[0-9]+%,\s+(.+)\s+[0-9]+%\)/.exec(r);e&&(s.solid=!1,s.bgStart=e[1]||s.bgStart,s.bgEnd=e[2]||"#5cbf2a")}return s})()),{borderColor:null!=(s=null==l?void 0:l.borderColor)?s:"#18ab29",borderRadius:null!=(r=null==l?void 0:l.borderRadius)?r:0,borderSize:null!=(a=null==l?void 0:l.borderWidth)?a:1}),p(["boxShadowOffsetX","boxShadowOffsetY","boxShadowBlurRadius","boxShadowSpreadRadius"],{boxShadowBlurRadius:0,boxShadowColor:"#3dc21b",boxShadowInset:!1,boxShadowOffsetX:0,boxShadowOffsetY:0,boxShadowSpreadRadius:0},"boxShadow","boxShadowColor")),{fontColor:l.color,fontFamily:l.fontFamily,fontSize:l.fontSize,fontWeight:"bold"===l.fontWeight,fontItalic:"italic"===l.fontStyle,paddingX:l.paddingLeft,paddingY:l.paddingTop}),p(["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,a.__decorate)([(0,n.watch)("style")],h.prototype,"__updateStyles",null),h=(0,a.__decorate)([n.component],h)},88572:function(e,t,s){"use strict";s.d(t,{UIFormButtonGenerator:function(){return
|
|
12
|
+
</div>`}static extractStyle(e,t){var s,r,a,n;let l=(null==(n=t.ownerDocument.defaultView)?void 0:n.getComputedStyle(t))||{},p=(e,t,s,r)=>{let o=l[s];return!o||["none","inherit","initial","unset"].includes(o)?{[s]:!1}:(o.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[r]=s}),t[s]=!0,t)};Object.assign(e,(0,o._)((0,i._)((0,o._)((0,i._)((0,o._)({text:t.innerText,className:t.className,href:t.getAttribute("href")||""},(()=>{var e,t;let s={solid:!0,bgStart:null!=(e=l.backgroundColor)?e:"#44c767",bgEnd:null!=(t=l.backgroundColor)?t:"#44c767"},r=l.backgroundImage;if(r&&/linear-gradient/.test(r)){let e=/linear-gradient\((.+)\s+[0-9]+%,\s+(.+)\s+[0-9]+%\)/.exec(r);e&&(s.solid=!1,s.bgStart=e[1]||s.bgStart,s.bgEnd=e[2]||"#5cbf2a")}return s})()),{borderColor:null!=(s=null==l?void 0:l.borderColor)?s:"#18ab29",borderRadius:null!=(r=null==l?void 0:l.borderRadius)?r:0,borderSize:null!=(a=null==l?void 0:l.borderWidth)?a:1}),p(["boxShadowOffsetX","boxShadowOffsetY","boxShadowBlurRadius","boxShadowSpreadRadius"],{boxShadowBlurRadius:0,boxShadowColor:"#3dc21b",boxShadowInset:!1,boxShadowOffsetX:0,boxShadowOffsetY:0,boxShadowSpreadRadius:0},"boxShadow","boxShadowColor")),{fontColor:l.color,fontFamily:l.fontFamily,fontSize:l.fontSize,fontWeight:"bold"===l.fontWeight,fontItalic:"italic"===l.fontStyle,paddingX:l.paddingLeft,paddingY:l.paddingTop}),p(["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,a.__decorate)([(0,n.watch)("style")],h.prototype,"__updateStyles",null),h=(0,a.__decorate)([n.component],h)},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>
|
|
13
13
|
<div class='&__group &__text'>
|
|
14
14
|
<div class='&__title'>Text</div>
|
|
15
15
|
<div class='&__row'>
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
</div>
|
|
88
88
|
</div>
|
|
89
89
|
</div>
|
|
90
|
-
</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
|
|
90
|
+
</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>
|
|
91
91
|
<div class='&__generator'>
|
|
92
92
|
<div class='&__preview'></div>
|
|
93
93
|
<div class='&__form'></div>
|