jodit-pro 4.8.14 → 4.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -1
- package/es2015/jodit.css +2 -2
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +38 -38
- package/es2015/jodit.js +531 -448
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +17 -17
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +2282 -2279
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +11 -11
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/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 +2 -2
- package/es2015/plugins/finder/finder.min.js +2 -2
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +52 -59
- package/es2015/plugins/google-maps/google-maps.min.js +6 -6
- 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/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +4 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2015/plugins/page-break/page-break.js +4 -1
- package/es2015/plugins/page-break/page-break.min.js +3 -3
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +4 -1
- package/es2015/plugins/paste-code/paste-code.min.js +2 -2
- 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/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 +32 -32
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +17 -17
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +6 -6
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/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 +2 -2
- package/es2018/plugins/google-maps/google-maps.min.js +6 -6
- 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/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2018/plugins/page-break/page-break.min.js +3 -3
- package/es2018/plugins/paste-code/paste-code.min.js +2 -2
- 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/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 +36 -36
- package/es2021/jodit.js +531 -448
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +21 -21
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +4901 -4898
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +28 -28
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/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 +2 -2
- package/es2021/plugins/finder/finder.min.js +2 -2
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +52 -59
- package/es2021/plugins/google-maps/google-maps.min.js +7 -7
- 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/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +4 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021/plugins/page-break/page-break.js +4 -1
- package/es2021/plugins/page-break/page-break.min.js +3 -3
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +4 -1
- package/es2021/plugins/paste-code/paste-code.min.js +2 -2
- 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/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 +36 -36
- package/es2021.en/jodit.js +531 -448
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +21 -21
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +4779 -4776
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +6 -6
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/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 +2 -2
- package/es2021.en/plugins/finder/finder.min.js +2 -2
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +52 -59
- package/es2021.en/plugins/google-maps/google-maps.min.js +7 -7
- 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/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +4 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021.en/plugins/page-break/page-break.js +4 -1
- package/es2021.en/plugins/page-break/page-break.min.js +3 -3
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +4 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
- 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/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 +546 -458
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +376 -406
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +2121 -2121
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/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 +2 -2
- package/es5/plugins/finder/finder.min.js +2 -2
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +61 -59
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- 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/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +7 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +7 -1
- package/es5/plugins/page-break/page-break.min.js +2 -2
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +7 -1
- package/es5/plugins/paste-code/paste-code.min.js +2 -2
- 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/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/config.d.ts +1 -6
- package/esm/config.js +1 -1
- package/esm/jodit-pro.d.ts +3 -1
- package/esm/jodit-pro.js +1 -1
- package/esm/plugins/ai-assistant-pro/ui/conversation-list/conversation-list-item.js +1 -1
- package/esm/plugins/ai-assistant-pro/ui/main-panel/main-panel.js +2 -2
- package/esm/plugins/ai-assistant-pro/ui/message-list/artifact.d.ts +0 -1
- package/esm/plugins/ai-assistant-pro/ui/message-list/artifact.js +1 -1
- package/esm/plugins/ai-assistant-pro/ui/message-list/{message-list-item.d.ts → item/message-list-item.d.ts} +1 -1
- package/esm/plugins/ai-assistant-pro/ui/message-list/item/message-list-item.js +1 -0
- package/esm/plugins/ai-assistant-pro/ui/message-list/message-list.d.ts +1 -1
- package/esm/plugins/ai-assistant-pro/ui/message-list/message-list.js +1 -1
- package/esm/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +4 -2
- package/esm/plugins/ai-assistant-pro/ui/settings-button/settings-button.js +1 -1
- package/esm/plugins/finder/browser.js +1 -1
- package/esm/plugins/google-maps/interface.d.ts +8 -0
- package/esm/plugins/google-maps/ui/editors/marker/marker.d.ts +1 -0
- package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -1
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.d.ts +1 -0
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +1 -1
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.d.ts +1 -0
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +1 -1
- package/esm/plugins/google-maps/ui/map/map.d.ts +3 -3
- package/esm/plugins/google-maps/ui/map/map.js +2 -2
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -3
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -3
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +2 -3
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -3
- package/esm/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -3
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -3
- package/esm/plugins/mobile-view/mobile-view.js +1 -1
- package/esm/plugins/page-break/page-break.d.ts +1 -0
- package/esm/plugins/page-break/page-break.js +1 -1
- package/esm/plugins/paste-code/paste-code.d.ts +1 -0
- package/esm/plugins/paste-code/paste-code.js +1 -1
- package/esm/plugins/paste-from-word/cases/clean-styles.d.ts +2 -2
- package/esm/plugins/paste-from-word/cases/clear-attributes.d.ts +2 -2
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.js +1 -1
- package/esm/plugins/paste-from-word/cases/convert-to-list.d.ts +3 -3
- package/esm/plugins/paste-from-word/cases/convert-to-list.js +1 -1
- package/esm/plugins/paste-from-word/cases/remove-extra-tags.d.ts +2 -2
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.d.ts +2 -2
- package/esm/plugins/paste-from-word/cases/replace-old-tags.d.ts +2 -2
- package/esm/plugins/paste-from-word/element/checkers.d.ts +5 -5
- package/esm/plugins/paste-from-word/element/element.d.ts +2 -1
- package/esm/plugins/paste-from-word/element/element.js +1 -1
- package/esm/plugins/paste-from-word/element/render.d.ts +3 -3
- package/esm/plugins/paste-from-word/element/style.js +1 -1
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +1 -1
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.d.ts +2 -2
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +1 -1
- package/esm/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
- package/esm/plugins/paste-from-word/interface.d.ts +25 -3
- package/package.json +1 -1
- package/types/config.d.ts +1 -6
- package/types/jodit-pro.d.ts +3 -1
- package/types/plugins/ai-assistant-pro/ui/message-list/artifact.d.ts +0 -1
- package/types/plugins/ai-assistant-pro/ui/message-list/{message-list-item.d.ts → item/message-list-item.d.ts} +1 -1
- package/types/plugins/ai-assistant-pro/ui/message-list/message-list.d.ts +1 -1
- package/types/plugins/ai-assistant-pro/ui/settings-button/settings-button.d.ts +4 -2
- package/types/plugins/google-maps/interface.d.ts +8 -0
- package/types/plugins/google-maps/ui/editors/marker/marker.d.ts +1 -0
- package/types/plugins/google-maps/ui/editors/polygon/polygon.d.ts +1 -0
- package/types/plugins/google-maps/ui/editors/polyline/polyline.d.ts +1 -0
- package/types/plugins/google-maps/ui/map/map.d.ts +3 -3
- package/types/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -3
- package/types/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -3
- package/types/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +2 -3
- package/types/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -3
- package/types/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -3
- package/types/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -3
- package/types/plugins/page-break/page-break.d.ts +1 -0
- package/types/plugins/paste-code/paste-code.d.ts +1 -0
- package/types/plugins/paste-from-word/cases/clean-styles.d.ts +2 -2
- package/types/plugins/paste-from-word/cases/clear-attributes.d.ts +2 -2
- package/types/plugins/paste-from-word/cases/convert-to-list.d.ts +3 -3
- package/types/plugins/paste-from-word/cases/remove-extra-tags.d.ts +2 -2
- package/types/plugins/paste-from-word/cases/remove-inside-comment.d.ts +2 -2
- package/types/plugins/paste-from-word/cases/replace-old-tags.d.ts +2 -2
- package/types/plugins/paste-from-word/element/checkers.d.ts +5 -5
- package/types/plugins/paste-from-word/element/element.d.ts +2 -1
- package/types/plugins/paste-from-word/element/render.d.ts +3 -3
- package/types/plugins/paste-from-word/helpers/calc-list-levels.d.ts +2 -2
- package/types/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
- package/types/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
- package/types/plugins/paste-from-word/interface.d.ts +25 -3
- package/esm/plugins/ai-assistant-pro/ui/message-list/message-list-item.js +0 -1
- package/esm/plugins/google-maps/ui/map/modules/index.d.ts +0 -10
- package/esm/plugins/google-maps/ui/map/modules/index.js +0 -1
- package/types/plugins/google-maps/ui/map/modules/index.d.ts +0 -10
package/es2021.en/jodit.js
CHANGED
|
@@ -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.
|
|
4
|
+
* Version: v4.9.2
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -381,16 +381,16 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('enter', enter);
|
|
|
381
381
|
/* harmony export */ pluginSystem: function() { return /* binding */ pluginSystem; },
|
|
382
382
|
/* harmony export */ uniqueUid: function() { return /* binding */ uniqueUid; }
|
|
383
383
|
/* harmony export */ });
|
|
384
|
-
/* harmony import */ var
|
|
385
|
-
/* harmony import */ var
|
|
386
|
-
/* harmony import */ var
|
|
387
|
-
/* harmony import */ var
|
|
388
|
-
/* harmony import */ var
|
|
384
|
+
/* harmony import */ var _helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19306);
|
|
385
|
+
/* harmony import */ var _helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70799);
|
|
386
|
+
/* harmony import */ var _helpers_checker_is_view_object_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39955);
|
|
387
|
+
/* harmony import */ var _helpers_string_kebab_case_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12475);
|
|
388
|
+
/* harmony import */ var _helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41180);
|
|
389
389
|
/* harmony import */ var _helpers_utils_get_class_name_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80568);
|
|
390
390
|
/* harmony import */ var _plugin_plugin_system_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41876);
|
|
391
|
-
/* harmony import */ var
|
|
392
|
-
/* harmony import */ var
|
|
393
|
-
/* harmony import */ var
|
|
391
|
+
/* harmony import */ var _event_emitter_global_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(57012);
|
|
392
|
+
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(82758);
|
|
393
|
+
/* harmony import */ var _dom_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(22732);
|
|
394
394
|
/*!
|
|
395
395
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
396
396
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -422,14 +422,16 @@ const uuids = new Set();
|
|
|
422
422
|
uuids.add(uid);
|
|
423
423
|
return uid;
|
|
424
424
|
}
|
|
425
|
-
const pluginSystem = new _plugin_plugin_system_js__WEBPACK_IMPORTED_MODULE_6__.PluginSystem(
|
|
425
|
+
const pluginSystem = new _plugin_plugin_system_js__WEBPACK_IMPORTED_MODULE_6__.PluginSystem({
|
|
426
|
+
getContainer
|
|
427
|
+
});
|
|
426
428
|
const modules = {};
|
|
427
429
|
const extendLang = (langs)=>{
|
|
428
430
|
Object.keys(langs).forEach((key)=>{
|
|
429
|
-
if (
|
|
430
|
-
Object.assign(
|
|
431
|
+
if (_constants_js__WEBPACK_IMPORTED_MODULE_8__.lang[key]) {
|
|
432
|
+
Object.assign(_constants_js__WEBPACK_IMPORTED_MODULE_8__.lang[key], langs[key]);
|
|
431
433
|
} else {
|
|
432
|
-
|
|
434
|
+
_constants_js__WEBPACK_IMPORTED_MODULE_8__.lang[key] = langs[key];
|
|
433
435
|
}
|
|
434
436
|
});
|
|
435
437
|
};
|
|
@@ -437,27 +439,27 @@ const boxes = new WeakMap();
|
|
|
437
439
|
/**
|
|
438
440
|
* Create unique box(HTMLCotainer) and remove it after destroy
|
|
439
441
|
*/ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false) {
|
|
440
|
-
const name = (0,
|
|
442
|
+
const name = (0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_1__.isString)(classFunc) ? classFunc : classFunc ? (0,_helpers_utils_get_class_name_js__WEBPACK_IMPORTED_MODULE_5__.getClassName)(classFunc.prototype) : 'jodit-utils';
|
|
441
443
|
const data = boxes.get(jodit) || {}, key = name + tag;
|
|
442
|
-
const view = (0,
|
|
444
|
+
const view = (0,_helpers_checker_is_view_object_js__WEBPACK_IMPORTED_MODULE_2__.isViewObject)(jodit) ? jodit : jodit.j;
|
|
443
445
|
let body = null;
|
|
444
446
|
if (!data[key]) {
|
|
445
447
|
let c = view.c;
|
|
446
448
|
body = getPopupViewRoot(view.o, view.container, jodit.od.body);
|
|
447
|
-
if (createInsideEditor && (0,
|
|
449
|
+
if (createInsideEditor && (0,_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.od !== jodit.ed) {
|
|
448
450
|
c = jodit.createInside;
|
|
449
451
|
const place = tag === 'style' ? jodit.ed.head : jodit.ed.body;
|
|
450
|
-
body = (0,
|
|
452
|
+
body = (0,_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.o.shadowRoot ? jodit.o.shadowRoot : place;
|
|
451
453
|
}
|
|
452
454
|
const box = c.element(tag, {
|
|
453
|
-
className: `jodit jodit-${(0,
|
|
455
|
+
className: `jodit jodit-${(0,_helpers_string_kebab_case_js__WEBPACK_IMPORTED_MODULE_3__.kebabCase)(name)}-container jodit-box`
|
|
454
456
|
});
|
|
455
457
|
box.classList.add(`jodit_theme_${view.o.theme || 'default'}`);
|
|
456
458
|
body.appendChild(box);
|
|
457
459
|
data[key] = box;
|
|
458
460
|
jodit.hookStatus('beforeDestruct', ()=>{
|
|
459
461
|
view.events.off(box);
|
|
460
|
-
|
|
462
|
+
_dom_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(box);
|
|
461
463
|
delete data[key];
|
|
462
464
|
if (Object.keys(data).length) {
|
|
463
465
|
boxes.delete(jodit);
|
|
@@ -475,14 +477,15 @@ const boxes = new WeakMap();
|
|
|
475
477
|
* @internal
|
|
476
478
|
*/ function getPopupViewRoot(o, container, defaultRoot) {
|
|
477
479
|
var _a, _b, _c;
|
|
478
|
-
return (_c = (_b = (_a = o.popupRoot) !== null && _a !== void 0 ? _a : o.shadowRoot) !== null && _b !== void 0 ? _b :
|
|
480
|
+
return (_c = (_b = (_a = o.popupRoot) !== null && _a !== void 0 ? _a : o.shadowRoot) !== null && _b !== void 0 ? _b : _dom_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.closest(container, (parentElement)=>_dom_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.isHTMLElement(parentElement) && (_dom_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.isTag(parentElement, 'dialog') || [
|
|
479
481
|
'fixed',
|
|
480
482
|
'absolute'
|
|
481
|
-
].includes((0,
|
|
483
|
+
].includes((0,_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_4__.css)(parentElement, 'position'))), defaultRoot)) !== null && _c !== void 0 ? _c : defaultRoot;
|
|
482
484
|
}
|
|
483
485
|
/**
|
|
484
486
|
* Global event emitter
|
|
485
|
-
|
|
487
|
+
* @deprecated use `import { eventEmitter } from 'jodit/core/event-emitter/global';`
|
|
488
|
+
*/ const eventEmitter = _event_emitter_global_js__WEBPACK_IMPORTED_MODULE_7__.eventEmitter;
|
|
486
489
|
|
|
487
490
|
|
|
488
491
|
/***/ }),
|
|
@@ -2580,7 +2583,6 @@ function clearUseIndexedDBCache() {
|
|
|
2580
2583
|
/* harmony import */ var jodit_esm_core_helpers_utils_append_script__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(63799);
|
|
2581
2584
|
/* harmony import */ var jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41180);
|
|
2582
2585
|
/* harmony import */ var jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(86019);
|
|
2583
|
-
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(33730);
|
|
2584
2586
|
/*!
|
|
2585
2587
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2586
2588
|
* See LICENSE.md in the project root for license information.
|
|
@@ -2591,8 +2593,10 @@ function clearUseIndexedDBCache() {
|
|
|
2591
2593
|
|
|
2592
2594
|
|
|
2593
2595
|
|
|
2594
|
-
|
|
2595
2596
|
class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
2597
|
+
static make(element, options) {
|
|
2598
|
+
return new this(element, options);
|
|
2599
|
+
}
|
|
2596
2600
|
beforeInitHook() {
|
|
2597
2601
|
if (jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD && !jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_TEST && this.o.loadExternalConfig) {
|
|
2598
2602
|
return (0,jodit_esm_core_helpers_utils_append_script__WEBPACK_IMPORTED_MODULE_1__.appendScriptAsync)(this, this.basePath + 'config.js');
|
|
@@ -2637,9 +2641,19 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
2637
2641
|
/* harmony export */ });
|
|
2638
2642
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
2639
2643
|
/* harmony import */ var _helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4510);
|
|
2640
|
-
/* harmony import */ var
|
|
2641
|
-
/* harmony import */ var
|
|
2642
|
-
/* harmony import */ var
|
|
2644
|
+
/* harmony import */ var _helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(68345);
|
|
2645
|
+
/* harmony import */ var _helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23282);
|
|
2646
|
+
/* harmony import */ var _helpers_checker_is_html_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(58487);
|
|
2647
|
+
/* harmony import */ var _helpers_checker_is_set_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(42320);
|
|
2648
|
+
/* harmony import */ var _helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(70799);
|
|
2649
|
+
/* harmony import */ var _helpers_checker_is_void_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86068);
|
|
2650
|
+
/* harmony import */ var _helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(49055);
|
|
2651
|
+
/* harmony import */ var _helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38837);
|
|
2652
|
+
/* harmony import */ var _helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(29960);
|
|
2653
|
+
/* harmony import */ var _helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(41180);
|
|
2654
|
+
/* harmony import */ var _helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(86583);
|
|
2655
|
+
/* harmony import */ var _helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(89890);
|
|
2656
|
+
/* harmony import */ var _helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(37790);
|
|
2643
2657
|
/*!
|
|
2644
2658
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
2645
2659
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -2650,6 +2664,16 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
2650
2664
|
|
|
2651
2665
|
|
|
2652
2666
|
|
|
2667
|
+
|
|
2668
|
+
|
|
2669
|
+
|
|
2670
|
+
|
|
2671
|
+
|
|
2672
|
+
|
|
2673
|
+
|
|
2674
|
+
|
|
2675
|
+
|
|
2676
|
+
|
|
2653
2677
|
/**
|
|
2654
2678
|
* Module for working with DOM
|
|
2655
2679
|
*/ class Dom {
|
|
@@ -2679,7 +2703,7 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
2679
2703
|
return Dom.__wrapElements(tag, editor, first, last);
|
|
2680
2704
|
}
|
|
2681
2705
|
static __wrapElements(tag, editor, first, last) {
|
|
2682
|
-
const wrapper = (0,
|
|
2706
|
+
const wrapper = (0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__.isString)(tag) ? editor.createInside.element(tag) : tag;
|
|
2683
2707
|
if (first.parentNode) {
|
|
2684
2708
|
first.parentNode.insertBefore(wrapper, first);
|
|
2685
2709
|
}
|
|
@@ -2724,10 +2748,10 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
2724
2748
|
/**
|
|
2725
2749
|
* Wrap node inside another node
|
|
2726
2750
|
*/ static wrap(current, tag, create) {
|
|
2727
|
-
const wrapper = (0,
|
|
2751
|
+
const wrapper = (0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__.isString)(tag) ? create.element(tag) : tag;
|
|
2728
2752
|
if (Dom.isNode(current)) {
|
|
2729
2753
|
if (!current.parentNode) {
|
|
2730
|
-
throw (0,
|
|
2754
|
+
throw (0,_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_13__.error)('Element should be in DOM');
|
|
2731
2755
|
}
|
|
2732
2756
|
current.parentNode.insertBefore(wrapper, current);
|
|
2733
2757
|
wrapper.appendChild(current);
|
|
@@ -2768,13 +2792,13 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
2768
2792
|
}
|
|
2769
2793
|
}
|
|
2770
2794
|
static replace(elm, newTagName, create, withAttributes = false, notMoveContent = false) {
|
|
2771
|
-
if ((0,
|
|
2772
|
-
(0,
|
|
2795
|
+
if ((0,_helpers_checker_is_html_js__WEBPACK_IMPORTED_MODULE_4__.isHTML)(newTagName)) {
|
|
2796
|
+
(0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(create, 'Need create instance for new tag');
|
|
2773
2797
|
newTagName = create.fromHTML(newTagName);
|
|
2774
2798
|
}
|
|
2775
2799
|
let tag;
|
|
2776
|
-
if ((0,
|
|
2777
|
-
(0,
|
|
2800
|
+
if ((0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__.isString)(newTagName)) {
|
|
2801
|
+
(0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(create, 'Need create instance for new tag');
|
|
2778
2802
|
tag = create.element(newTagName);
|
|
2779
2803
|
} else {
|
|
2780
2804
|
tag = newTagName;
|
|
@@ -2815,12 +2839,12 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
2815
2839
|
return true;
|
|
2816
2840
|
}
|
|
2817
2841
|
let cond;
|
|
2818
|
-
if (!(0,
|
|
2842
|
+
if (!(0,_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(condNoEmptyElement)) {
|
|
2819
2843
|
cond = (elm)=>condNoEmptyElement.has(elm.nodeName.toLowerCase());
|
|
2820
2844
|
} else {
|
|
2821
2845
|
cond = condNoEmptyElement;
|
|
2822
2846
|
}
|
|
2823
|
-
const emptyText = (node)=>node.nodeValue == null || (0,
|
|
2847
|
+
const emptyText = (node)=>node.nodeValue == null || (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_8__.trim)(node.nodeValue).length === 0;
|
|
2824
2848
|
if (Dom.isText(node)) {
|
|
2825
2849
|
return emptyText(node);
|
|
2826
2850
|
}
|
|
@@ -2834,7 +2858,7 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
2834
2858
|
* Returns true if it is a DOM node
|
|
2835
2859
|
*/ static isNode(object) {
|
|
2836
2860
|
// Duck-typing
|
|
2837
|
-
return Boolean(object && (0,
|
|
2861
|
+
return Boolean(object && (0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__.isString)(object.nodeName) && typeof object.nodeType === 'number' && object.childNodes && (0,_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(object.appendChild));
|
|
2838
2862
|
}
|
|
2839
2863
|
/**
|
|
2840
2864
|
* Check if element is table cell
|
|
@@ -2860,7 +2884,7 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
2860
2884
|
* Check the `node` is a block element
|
|
2861
2885
|
* @param node - Object to check
|
|
2862
2886
|
*/ static isBlock(node) {
|
|
2863
|
-
return !(0,
|
|
2887
|
+
return !(0,_helpers_checker_is_void_js__WEBPACK_IMPORTED_MODULE_7__.isVoid)(node) && typeof node === 'object' && Dom.isNode(node) && _constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_BLOCK.test(node.nodeName);
|
|
2864
2888
|
}
|
|
2865
2889
|
/**
|
|
2866
2890
|
* Check if element is text node
|
|
@@ -2908,12 +2932,12 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
2908
2932
|
return Dom.isElement(node) && !/^(BR|HR)$/i.test(node.tagName) && [
|
|
2909
2933
|
'inline',
|
|
2910
2934
|
'inline-block'
|
|
2911
|
-
].indexOf((0,
|
|
2935
|
+
].indexOf((0,_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_11__.css)(node, 'display').toString()) !== -1;
|
|
2912
2936
|
}
|
|
2913
2937
|
/**
|
|
2914
2938
|
* It's block and it can be split
|
|
2915
2939
|
*/ static canSplitBlock(node) {
|
|
2916
|
-
return !(0,
|
|
2940
|
+
return !(0,_helpers_checker_is_void_js__WEBPACK_IMPORTED_MODULE_7__.isVoid)(node) && Dom.isHTMLElement(node) && Dom.isBlock(node) && !/^(TD|TH|CAPTION|FORM)$/.test(node.nodeName) && node.style !== undefined && !/^(fixed|absolute)/i.test(node.style.position);
|
|
2917
2941
|
}
|
|
2918
2942
|
/**
|
|
2919
2943
|
* Get last matched node inside root
|
|
@@ -3068,13 +3092,13 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
3068
3092
|
*/ static findNotEmptySibling(node, left) {
|
|
3069
3093
|
return Dom.findSibling(node, left, (n)=>{
|
|
3070
3094
|
var _a;
|
|
3071
|
-
return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || ((_a = n.nodeValue) === null || _a === void 0 ? void 0 : _a.length) && (0,
|
|
3095
|
+
return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || ((_a = n.nodeValue) === null || _a === void 0 ? void 0 : _a.length) && (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_8__.trim)(n.nodeValue));
|
|
3072
3096
|
});
|
|
3073
3097
|
}
|
|
3074
3098
|
/**
|
|
3075
3099
|
* Returns the nearest non-empty neighbor
|
|
3076
3100
|
*/ static findNotEmptyNeighbor(node, left, root) {
|
|
3077
|
-
return (0,
|
|
3101
|
+
return (0,_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_14__.call)(left ? Dom.prev : Dom.next, node, (n)=>Boolean(n && (!(Dom.isText(n) || Dom.isComment(n)) || (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_8__.trim)((n === null || n === void 0 ? void 0 : n.nodeValue) || '').length)), root);
|
|
3078
3102
|
}
|
|
3079
3103
|
static sibling(node, left) {
|
|
3080
3104
|
return left ? node.previousSibling : node.nextSibling;
|
|
@@ -3103,10 +3127,10 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
3103
3127
|
static closest(node, tagsOrCondition, root) {
|
|
3104
3128
|
let condition;
|
|
3105
3129
|
const lc = (s)=>s.toLowerCase();
|
|
3106
|
-
if ((0,
|
|
3130
|
+
if ((0,_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(tagsOrCondition)) {
|
|
3107
3131
|
condition = tagsOrCondition;
|
|
3108
|
-
} else if ((0,
|
|
3109
|
-
const set = (0,
|
|
3132
|
+
} else if ((0,_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_2__.isArray)(tagsOrCondition) || (0,_helpers_checker_is_set_js__WEBPACK_IMPORTED_MODULE_5__.isSet)(tagsOrCondition)) {
|
|
3133
|
+
const set = (0,_helpers_checker_is_set_js__WEBPACK_IMPORTED_MODULE_5__.isSet)(tagsOrCondition) ? tagsOrCondition : new Set(tagsOrCondition.map(lc));
|
|
3110
3134
|
condition = (tag)=>Boolean(tag && set.has(lc(tag.nodeName)));
|
|
3111
3135
|
} else {
|
|
3112
3136
|
condition = (tag)=>Boolean(tag && lc(tagsOrCondition) === lc(tag.nodeName));
|
|
@@ -3165,7 +3189,7 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
3165
3189
|
root.insertBefore(newElement, root.firstChild);
|
|
3166
3190
|
}
|
|
3167
3191
|
static append(root, newElement) {
|
|
3168
|
-
if ((0,
|
|
3192
|
+
if ((0,_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_2__.isArray)(newElement)) {
|
|
3169
3193
|
newElement.forEach((node)=>{
|
|
3170
3194
|
this.append(root, node);
|
|
3171
3195
|
});
|
|
@@ -3229,7 +3253,7 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
3229
3253
|
if (!node) {
|
|
3230
3254
|
return;
|
|
3231
3255
|
}
|
|
3232
|
-
(0,
|
|
3256
|
+
(0,_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_12__.dataBind)(node, '__old_display', node.style.display);
|
|
3233
3257
|
node.style.display = 'none';
|
|
3234
3258
|
}
|
|
3235
3259
|
/**
|
|
@@ -3238,7 +3262,7 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
3238
3262
|
if (!node) {
|
|
3239
3263
|
return;
|
|
3240
3264
|
}
|
|
3241
|
-
const display = (0,
|
|
3265
|
+
const display = (0,_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_12__.dataBind)(node, '__old_display');
|
|
3242
3266
|
if (node.style.display === 'none') {
|
|
3243
3267
|
node.style.display = display || '';
|
|
3244
3268
|
}
|
|
@@ -3264,8 +3288,8 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
3264
3288
|
/**
|
|
3265
3289
|
* Marks an item as temporary
|
|
3266
3290
|
*/ static markTemporary(element, attributes) {
|
|
3267
|
-
attributes && (0,
|
|
3268
|
-
(0,
|
|
3291
|
+
attributes && (0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_10__.attr)(element, attributes);
|
|
3292
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_10__.attr)(element, _constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR, true);
|
|
3269
3293
|
return element;
|
|
3270
3294
|
}
|
|
3271
3295
|
/**
|
|
@@ -3274,7 +3298,12 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
3274
3298
|
if (!Dom.isElement(element)) {
|
|
3275
3299
|
return false;
|
|
3276
3300
|
}
|
|
3277
|
-
return
|
|
3301
|
+
return Dom.isMarker(element) || (0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_10__.attr)(element, _constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR) === 'true';
|
|
3302
|
+
}
|
|
3303
|
+
/**
|
|
3304
|
+
* Define element is selection helper
|
|
3305
|
+
*/ static isMarker(elm) {
|
|
3306
|
+
return Dom.isNode(elm) && Dom.isTag(elm, 'span') && elm.hasAttribute('data-' + _constants_js__WEBPACK_IMPORTED_MODULE_0__.MARKER_CLASS);
|
|
3278
3307
|
}
|
|
3279
3308
|
/**
|
|
3280
3309
|
* Replace temporary elements from string
|
|
@@ -3283,8 +3312,9 @@ class JoditPro extends jodit_esm_index__WEBPACK_IMPORTED_MODULE_3__.Jodit {
|
|
|
3283
3312
|
}
|
|
3284
3313
|
/**
|
|
3285
3314
|
* Get temporary list
|
|
3315
|
+
* @deprecated
|
|
3286
3316
|
*/ static temporaryList(root) {
|
|
3287
|
-
return (0,
|
|
3317
|
+
return (0,_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_1__.toArray)(root.querySelectorAll(`[${_constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR}]`));
|
|
3288
3318
|
}
|
|
3289
3319
|
constructor(){
|
|
3290
3320
|
throw new Error('Dom is static module');
|
|
@@ -6489,14 +6519,16 @@ const formTemplate = (editor)=>{
|
|
|
6489
6519
|
/* harmony export */ UIButtonState: function() { return /* binding */ UIButtonState; }
|
|
6490
6520
|
/* harmony export */ });
|
|
6491
6521
|
/* harmony import */ var _component_statuses_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78213);
|
|
6492
|
-
/* harmony import */ var
|
|
6493
|
-
/* harmony import */ var
|
|
6494
|
-
/* harmony import */ var
|
|
6495
|
-
/* harmony import */ var
|
|
6496
|
-
/* harmony import */ var
|
|
6497
|
-
/* harmony import */ var
|
|
6498
|
-
/* harmony import */ var
|
|
6499
|
-
/* harmony import */ var
|
|
6522
|
+
/* harmony import */ var _decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33433);
|
|
6523
|
+
/* harmony import */ var _decorators_component_component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87325);
|
|
6524
|
+
/* harmony import */ var _decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37133);
|
|
6525
|
+
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2748);
|
|
6526
|
+
/* harmony import */ var _helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23282);
|
|
6527
|
+
/* harmony import */ var _helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(70799);
|
|
6528
|
+
/* harmony import */ var _helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(38837);
|
|
6529
|
+
/* harmony import */ var _helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(29960);
|
|
6530
|
+
/* harmony import */ var _element_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(48538);
|
|
6531
|
+
/* harmony import */ var _icon_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(12153);
|
|
6500
6532
|
/*!
|
|
6501
6533
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
6502
6534
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -6516,6 +6548,8 @@ const formTemplate = (editor)=>{
|
|
|
6516
6548
|
|
|
6517
6549
|
|
|
6518
6550
|
|
|
6551
|
+
|
|
6552
|
+
|
|
6519
6553
|
const UIButtonState = ()=>({
|
|
6520
6554
|
size: 'middle',
|
|
6521
6555
|
type: 'button',
|
|
@@ -6534,7 +6568,7 @@ const UIButtonState = ()=>({
|
|
|
6534
6568
|
text: '',
|
|
6535
6569
|
tabIndex: undefined
|
|
6536
6570
|
});
|
|
6537
|
-
let UIButton = class UIButton extends
|
|
6571
|
+
let UIButton = class UIButton extends _element_js__WEBPACK_IMPORTED_MODULE_9__.UIElement {
|
|
6538
6572
|
/** @override */ className() {
|
|
6539
6573
|
return 'UIButton';
|
|
6540
6574
|
}
|
|
@@ -6548,29 +6582,30 @@ let UIButton = class UIButton extends _element_js__WEBPACK_IMPORTED_MODULE_6__.U
|
|
|
6548
6582
|
* DOM container for text content
|
|
6549
6583
|
*/ get text() {
|
|
6550
6584
|
const text = this.getElm('text');
|
|
6551
|
-
(0,
|
|
6585
|
+
(0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_7__.assert)(text, 'Text element not found');
|
|
6552
6586
|
return text;
|
|
6553
6587
|
}
|
|
6554
6588
|
/**
|
|
6555
6589
|
* DOM container for icon
|
|
6556
6590
|
*/ get icon() {
|
|
6557
6591
|
const icon = this.getElm('icon');
|
|
6558
|
-
(0,
|
|
6592
|
+
(0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_7__.assert)(icon, 'Icon element not found');
|
|
6559
6593
|
return icon;
|
|
6560
6594
|
}
|
|
6561
6595
|
onChangeSize() {
|
|
6562
6596
|
this.setMod('size', this.state.size);
|
|
6563
6597
|
}
|
|
6564
6598
|
onChangeType() {
|
|
6565
|
-
(0,
|
|
6599
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'type', this.state.type);
|
|
6566
6600
|
}
|
|
6567
6601
|
onChangeRole() {
|
|
6568
|
-
(0,
|
|
6602
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'role', this.state.role);
|
|
6569
6603
|
}
|
|
6570
6604
|
/**
|
|
6571
6605
|
* Set size from a parent list
|
|
6572
6606
|
*/ updateSize() {
|
|
6573
|
-
const
|
|
6607
|
+
const UIList = (0,_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_2__.getComponentClass)('UIList');
|
|
6608
|
+
const pe = this.closest(UIList);
|
|
6574
6609
|
if (pe) {
|
|
6575
6610
|
this.state.size = pe.buttonSize;
|
|
6576
6611
|
return;
|
|
@@ -6586,34 +6621,34 @@ let UIButton = class UIButton extends _element_js__WEBPACK_IMPORTED_MODULE_6__.U
|
|
|
6586
6621
|
this.setMod('text-icons', Boolean(this.state.text.trim().length));
|
|
6587
6622
|
}
|
|
6588
6623
|
onChangeDisabled() {
|
|
6589
|
-
(0,
|
|
6624
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'disabled', this.state.disabled || null);
|
|
6590
6625
|
}
|
|
6591
6626
|
onChangeActivated() {
|
|
6592
|
-
(0,
|
|
6627
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'aria-pressed', this.state.activated);
|
|
6593
6628
|
}
|
|
6594
6629
|
onChangeName() {
|
|
6595
6630
|
this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`);
|
|
6596
6631
|
this.name = this.state.name;
|
|
6597
|
-
(0,
|
|
6598
|
-
(0,
|
|
6632
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'data-ref', this.state.name);
|
|
6633
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'ref', this.state.name);
|
|
6599
6634
|
}
|
|
6600
6635
|
onChangeTooltip() {
|
|
6601
6636
|
const i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
6602
6637
|
if (this.get('j.o.useNativeTooltip')) {
|
|
6603
|
-
(0,
|
|
6638
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'title', i8nTooltip);
|
|
6604
6639
|
}
|
|
6605
|
-
(0,
|
|
6640
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'aria-label', i8nTooltip);
|
|
6606
6641
|
}
|
|
6607
6642
|
onChangeTabIndex() {
|
|
6608
|
-
(0,
|
|
6643
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'tabindex', this.state.tabIndex);
|
|
6609
6644
|
}
|
|
6610
6645
|
onChangeIcon() {
|
|
6611
6646
|
const textIcons = this.get('j.o.textIcons');
|
|
6612
|
-
if (textIcons === true || (0,
|
|
6647
|
+
if (textIcons === true || (0,_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_5__.isFunction)(textIcons) && textIcons(this.state.name)) {
|
|
6613
6648
|
return;
|
|
6614
6649
|
}
|
|
6615
|
-
|
|
6616
|
-
const iconElement =
|
|
6650
|
+
_dom_dom_js__WEBPACK_IMPORTED_MODULE_4__.Dom.detach(this.icon);
|
|
6651
|
+
const iconElement = _icon_js__WEBPACK_IMPORTED_MODULE_10__.Icon.makeIcon(this.j, this.state.icon);
|
|
6617
6652
|
iconElement && this.icon.appendChild(iconElement);
|
|
6618
6653
|
}
|
|
6619
6654
|
/**
|
|
@@ -6625,7 +6660,7 @@ let UIButton = class UIButton extends _element_js__WEBPACK_IMPORTED_MODULE_6__.U
|
|
|
6625
6660
|
* Element has focus
|
|
6626
6661
|
*/ isFocused() {
|
|
6627
6662
|
const { activeElement } = this.od;
|
|
6628
|
-
return Boolean(activeElement &&
|
|
6663
|
+
return Boolean(activeElement && _dom_dom_js__WEBPACK_IMPORTED_MODULE_4__.Dom.isOrContains(this.container, activeElement));
|
|
6629
6664
|
}
|
|
6630
6665
|
/** @override */ createContainer() {
|
|
6631
6666
|
const cn = this.componentName;
|
|
@@ -6680,84 +6715,84 @@ let UIButton = class UIButton extends _element_js__WEBPACK_IMPORTED_MODULE_6__.U
|
|
|
6680
6715
|
}
|
|
6681
6716
|
};
|
|
6682
6717
|
__decorate([
|
|
6683
|
-
|
|
6718
|
+
_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_1__.cache
|
|
6684
6719
|
], UIButton.prototype, "text", null);
|
|
6685
6720
|
__decorate([
|
|
6686
|
-
|
|
6721
|
+
_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_1__.cache
|
|
6687
6722
|
], UIButton.prototype, "icon", null);
|
|
6688
6723
|
__decorate([
|
|
6689
|
-
(0,
|
|
6724
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.size', {
|
|
6690
6725
|
immediately: false
|
|
6691
6726
|
})
|
|
6692
6727
|
], UIButton.prototype, "onChangeSize", null);
|
|
6693
6728
|
__decorate([
|
|
6694
|
-
(0,
|
|
6729
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.type', {
|
|
6695
6730
|
immediately: false
|
|
6696
6731
|
})
|
|
6697
6732
|
], UIButton.prototype, "onChangeType", null);
|
|
6698
6733
|
__decorate([
|
|
6699
|
-
(0,
|
|
6734
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.role', {
|
|
6700
6735
|
immediately: false
|
|
6701
6736
|
})
|
|
6702
6737
|
], UIButton.prototype, "onChangeRole", null);
|
|
6703
6738
|
__decorate([
|
|
6704
|
-
(0,
|
|
6739
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('parentElement')
|
|
6705
6740
|
], UIButton.prototype, "updateSize", null);
|
|
6706
6741
|
__decorate([
|
|
6707
|
-
(0,
|
|
6742
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.variant', {
|
|
6708
6743
|
immediately: false
|
|
6709
6744
|
})
|
|
6710
6745
|
], UIButton.prototype, "onChangeStatus", null);
|
|
6711
6746
|
__decorate([
|
|
6712
|
-
(0,
|
|
6747
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.text', {
|
|
6713
6748
|
immediately: false
|
|
6714
6749
|
})
|
|
6715
6750
|
], UIButton.prototype, "onChangeText", null);
|
|
6716
6751
|
__decorate([
|
|
6717
|
-
(0,
|
|
6752
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.text', {
|
|
6718
6753
|
immediately: false
|
|
6719
6754
|
})
|
|
6720
6755
|
], UIButton.prototype, "onChangeTextSetMode", null);
|
|
6721
6756
|
__decorate([
|
|
6722
|
-
(0,
|
|
6757
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.disabled')
|
|
6723
6758
|
], UIButton.prototype, "onChangeDisabled", null);
|
|
6724
6759
|
__decorate([
|
|
6725
|
-
(0,
|
|
6760
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.activated')
|
|
6726
6761
|
], UIButton.prototype, "onChangeActivated", null);
|
|
6727
6762
|
__decorate([
|
|
6728
|
-
(0,
|
|
6763
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.name', {
|
|
6729
6764
|
immediately: false
|
|
6730
6765
|
})
|
|
6731
6766
|
], UIButton.prototype, "onChangeName", null);
|
|
6732
6767
|
__decorate([
|
|
6733
|
-
(0,
|
|
6768
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.tooltip', {
|
|
6734
6769
|
immediately: false
|
|
6735
6770
|
})
|
|
6736
6771
|
], UIButton.prototype, "onChangeTooltip", null);
|
|
6737
6772
|
__decorate([
|
|
6738
|
-
(0,
|
|
6773
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.tabIndex', {
|
|
6739
6774
|
immediately: false
|
|
6740
6775
|
})
|
|
6741
6776
|
], UIButton.prototype, "onChangeTabIndex", null);
|
|
6742
6777
|
__decorate([
|
|
6743
|
-
(0,
|
|
6778
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.icon', {
|
|
6744
6779
|
immediately: false
|
|
6745
6780
|
})
|
|
6746
6781
|
], UIButton.prototype, "onChangeIcon", null);
|
|
6747
6782
|
__decorate([
|
|
6748
|
-
|
|
6783
|
+
_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_1__.cacheHTML
|
|
6749
6784
|
], UIButton.prototype, "createContainer", null);
|
|
6750
6785
|
__decorate([
|
|
6751
|
-
(0,
|
|
6786
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('button:click')
|
|
6752
6787
|
], UIButton.prototype, "__onActionFire", null);
|
|
6753
6788
|
UIButton = __decorate([
|
|
6754
|
-
|
|
6789
|
+
_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_2__.component
|
|
6755
6790
|
], UIButton);
|
|
6756
6791
|
|
|
6757
6792
|
function Button(jodit, stateOrText, text, variant) {
|
|
6758
6793
|
const button = new UIButton(jodit);
|
|
6759
6794
|
button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
|
|
6760
|
-
if ((0,
|
|
6795
|
+
if ((0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__.isString)(stateOrText)) {
|
|
6761
6796
|
button.state.icon.name = stateOrText;
|
|
6762
6797
|
button.state.name = stateOrText;
|
|
6763
6798
|
if (variant) {
|
|
@@ -7052,9 +7087,13 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('file', file);
|
|
|
7052
7087
|
/* harmony export */ ToolbarCollection: function() { return /* binding */ ToolbarCollection; }
|
|
7053
7088
|
/* harmony export */ });
|
|
7054
7089
|
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
|
|
7055
|
-
/* harmony import */ var
|
|
7056
|
-
/* harmony import */ var
|
|
7057
|
-
/* harmony import */ var
|
|
7090
|
+
/* harmony import */ var _core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45219);
|
|
7091
|
+
/* harmony import */ var _core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87325);
|
|
7092
|
+
/* harmony import */ var _core_decorators_hook_hook_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97357);
|
|
7093
|
+
/* harmony import */ var _core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37133);
|
|
7094
|
+
/* harmony import */ var _core_helpers_utils_error_error_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(82760);
|
|
7095
|
+
/* harmony import */ var _core_ui_group_list_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(24536);
|
|
7096
|
+
/* harmony import */ var _factory_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(21491);
|
|
7058
7097
|
/*!
|
|
7059
7098
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
7060
7099
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -7069,8 +7108,12 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('file', file);
|
|
|
7069
7108
|
|
|
7070
7109
|
|
|
7071
7110
|
|
|
7072
|
-
|
|
7073
|
-
|
|
7111
|
+
|
|
7112
|
+
|
|
7113
|
+
|
|
7114
|
+
|
|
7115
|
+
let ToolbarCollection = class ToolbarCollection extends _core_ui_group_list_js__WEBPACK_IMPORTED_MODULE_6__.UIList {
|
|
7116
|
+
className() {
|
|
7074
7117
|
return 'ToolbarCollection';
|
|
7075
7118
|
}
|
|
7076
7119
|
/**
|
|
@@ -7080,10 +7123,10 @@ let ToolbarCollection = class ToolbarCollection extends _core_ui_index_js__WEBPA
|
|
|
7080
7123
|
return button || null;
|
|
7081
7124
|
}
|
|
7082
7125
|
makeButton(control, target = null) {
|
|
7083
|
-
return (0,
|
|
7126
|
+
return (0,_factory_js__WEBPACK_IMPORTED_MODULE_7__.makeButton)(this.j, control, target);
|
|
7084
7127
|
}
|
|
7085
7128
|
makeSelect(control, target = null) {
|
|
7086
|
-
return (0,
|
|
7129
|
+
return (0,_factory_js__WEBPACK_IMPORTED_MODULE_7__.makeSelect)(this.j, control, target);
|
|
7087
7130
|
}
|
|
7088
7131
|
/**
|
|
7089
7132
|
* Button should be active
|
|
@@ -7126,7 +7169,7 @@ let ToolbarCollection = class ToolbarCollection extends _core_ui_index_js__WEBPA
|
|
|
7126
7169
|
this.appendTo(this.j.toolbarContainer);
|
|
7127
7170
|
}
|
|
7128
7171
|
showInline(bound) {
|
|
7129
|
-
throw (0,
|
|
7172
|
+
throw (0,_core_helpers_utils_error_error_js__WEBPACK_IMPORTED_MODULE_5__.error)('The method is not implemented for this class.');
|
|
7130
7173
|
}
|
|
7131
7174
|
/** @override **/ build(items, target = null) {
|
|
7132
7175
|
const itemsWithGroupps = this.j.e.fire('beforeToolbarBuild', items);
|
|
@@ -7149,17 +7192,17 @@ let ToolbarCollection = class ToolbarCollection extends _core_ui_index_js__WEBPA
|
|
|
7149
7192
|
}
|
|
7150
7193
|
};
|
|
7151
7194
|
__decorate([
|
|
7152
|
-
(0,
|
|
7153
|
-
|
|
7195
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_4__.watch)(':afterInit'),
|
|
7196
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
7154
7197
|
], ToolbarCollection.prototype, "__immediateUpdate", null);
|
|
7155
7198
|
__decorate([
|
|
7156
7199
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.debounce)((ctx)=>ctx.j.defaultTimeout, true)
|
|
7157
7200
|
], ToolbarCollection.prototype, "update", null);
|
|
7158
7201
|
__decorate([
|
|
7159
|
-
(0,
|
|
7202
|
+
(0,_core_decorators_hook_hook_js__WEBPACK_IMPORTED_MODULE_3__.hook)('ready')
|
|
7160
7203
|
], ToolbarCollection.prototype, "__initEvents", null);
|
|
7161
7204
|
ToolbarCollection = __decorate([
|
|
7162
|
-
|
|
7205
|
+
_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_2__.component
|
|
7163
7206
|
], ToolbarCollection);
|
|
7164
7207
|
|
|
7165
7208
|
|
|
@@ -11522,12 +11565,9 @@ jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_6__.JoditPro.plugins.add('license',
|
|
|
11522
11565
|
/* harmony export */ makeCollection: function() { return /* binding */ makeCollection; },
|
|
11523
11566
|
/* harmony export */ makeSelect: function() { return /* binding */ makeSelect; }
|
|
11524
11567
|
/* harmony export */ });
|
|
11525
|
-
/* harmony import */ var
|
|
11526
|
-
/* harmony import */ var
|
|
11527
|
-
/* harmony import */ var
|
|
11528
|
-
/* harmony import */ var _button_select_select_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83111);
|
|
11529
|
-
/* harmony import */ var _collection_collection_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11676);
|
|
11530
|
-
/* harmony import */ var _collection_editor_collection_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(37426);
|
|
11568
|
+
/* harmony import */ var _core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(87325);
|
|
11569
|
+
/* harmony import */ var _core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23282);
|
|
11570
|
+
/* harmony import */ var _core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(19306);
|
|
11531
11571
|
/*!
|
|
11532
11572
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
11533
11573
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -11535,13 +11575,12 @@ jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_6__.JoditPro.plugins.add('license',
|
|
|
11535
11575
|
*/
|
|
11536
11576
|
|
|
11537
11577
|
|
|
11538
|
-
|
|
11539
|
-
|
|
11540
|
-
|
|
11541
11578
|
/**
|
|
11542
11579
|
* Collection factory
|
|
11543
11580
|
*/ function makeCollection(jodit, parentElement) {
|
|
11544
|
-
const
|
|
11581
|
+
const ToolbarCollection = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarCollection');
|
|
11582
|
+
const ToolbarEditorCollection = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarEditorCollection');
|
|
11583
|
+
const collection = (0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_2__.isJoditObject)(jodit) ? new ToolbarEditorCollection(jodit) : new ToolbarCollection(jodit);
|
|
11545
11584
|
if (jodit.o.textIcons) {
|
|
11546
11585
|
collection.container.classList.add('jodit_text_icons');
|
|
11547
11586
|
}
|
|
@@ -11556,15 +11595,18 @@ jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_6__.JoditPro.plugins.add('license',
|
|
|
11556
11595
|
/**
|
|
11557
11596
|
* Button factory
|
|
11558
11597
|
*/ function makeButton(jodit, control, target = null) {
|
|
11559
|
-
if ((0,
|
|
11560
|
-
|
|
11598
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(control.getContent)) {
|
|
11599
|
+
const ToolbarContent = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarContent');
|
|
11600
|
+
return new ToolbarContent(jodit, control, target);
|
|
11561
11601
|
}
|
|
11562
|
-
const
|
|
11602
|
+
const ToolbarButton = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarButton');
|
|
11603
|
+
const button = new ToolbarButton(jodit, control, target);
|
|
11563
11604
|
button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
|
|
11564
11605
|
return button;
|
|
11565
11606
|
}
|
|
11566
11607
|
function makeSelect(view, control, target = null) {
|
|
11567
|
-
|
|
11608
|
+
const ToolbarSelect = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarSelect');
|
|
11609
|
+
return new ToolbarSelect(view, control, target);
|
|
11568
11610
|
}
|
|
11569
11611
|
|
|
11570
11612
|
|
|
@@ -11644,6 +11686,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11644
11686
|
/* harmony export */ getClassName: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getClassName; },
|
|
11645
11687
|
/* harmony export */ getContentWidth: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.getContentWidth; },
|
|
11646
11688
|
/* harmony export */ getDataTransfer: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getDataTransfer; },
|
|
11689
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getPropertyDescriptor; },
|
|
11647
11690
|
/* harmony export */ getScrollParent: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.getScrollParent; },
|
|
11648
11691
|
/* harmony export */ getXPathByElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getXPathByElement; },
|
|
11649
11692
|
/* harmony export */ hAlignElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.hAlignElement; },
|
|
@@ -11654,7 +11697,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11654
11697
|
/* harmony export */ i18n: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.i18n; },
|
|
11655
11698
|
/* harmony export */ inView: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.inView; },
|
|
11656
11699
|
/* harmony export */ innerWidth: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.innerWidth; },
|
|
11657
|
-
/* harmony export */ isAbort: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.isAbort; },
|
|
11658
11700
|
/* harmony export */ isAbortError: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isAbortError; },
|
|
11659
11701
|
/* harmony export */ isArray: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray; },
|
|
11660
11702
|
/* harmony export */ isAtom: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.isAtom; },
|
|
@@ -11763,6 +11805,28 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11763
11805
|
/* harmony default export */ __webpack_exports__["default"] = ("<svg viewBox=\"0 0 500 500\" xmlns=\"http://www.w3.org/2000/svg\"> <path clip-rule=\"evenodd\" d=\"M306.39,154.09c19.628,4.543,35.244,21.259,39.787,39.523 c1.551,8.54,8.998,14.989,17.904,14.989c9.991,0,18.168-8.175,18.168-18.17c0-13.083-10.991-32.98-25.985-47.881 c-14.719-14.537-32.252-24.802-46.695-24.802c-9.991,0-18.172,8.45-18.172,18.446C291.396,145.094,297.847,152.546,306.39,154.09z M56.629,392.312c-14.09,14.08-14.09,36.979,0,51.059c14.08,14.092,36.981,14.092,50.965,0l104.392-104.303 c24.347,15.181,53.062,23.991,83.953,23.991c87.857,0,158.995-71.142,158.995-158.999c0-87.854-71.138-158.995-158.995-158.995 c-87.856,0-158.995,71.141-158.995,158.995c0,30.802,8.819,59.606,23.992,83.953L56.629,392.312z M182.371,204.06 c0-62.687,50.875-113.568,113.568-113.568s113.569,50.881,113.569,113.568c0,62.694-50.876,113.569-113.569,113.569 S182.371,266.754,182.371,204.06z\" fill-rule=\"evenodd\"/> </svg> ");
|
|
11764
11806
|
|
|
11765
11807
|
|
|
11808
|
+
/***/ }),
|
|
11809
|
+
|
|
11810
|
+
/***/ 21735:
|
|
11811
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11812
|
+
|
|
11813
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
11814
|
+
/* harmony export */ elementToItem: function() { return /* binding */ elementToItem; },
|
|
11815
|
+
/* harmony export */ getItem: function() { return /* binding */ getItem; }
|
|
11816
|
+
/* harmony export */ });
|
|
11817
|
+
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2748);
|
|
11818
|
+
|
|
11819
|
+
/**
|
|
11820
|
+
* @private
|
|
11821
|
+
*/ const getItem = (node, root, tag = 'a')=>_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(node, (elm)=>_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(elm, tag), root);
|
|
11822
|
+
/**
|
|
11823
|
+
* @private
|
|
11824
|
+
*/ const elementToItem = (elm, elementsMap)=>{
|
|
11825
|
+
const { key } = elm.dataset, { item } = elementsMap[key || ''];
|
|
11826
|
+
return item;
|
|
11827
|
+
};
|
|
11828
|
+
|
|
11829
|
+
|
|
11766
11830
|
/***/ }),
|
|
11767
11831
|
|
|
11768
11832
|
/***/ 21988:
|
|
@@ -12736,15 +12800,17 @@ _config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.popup = {
|
|
|
12736
12800
|
/* harmony export */ UIList: function() { return /* binding */ UIList; }
|
|
12737
12801
|
/* harmony export */ });
|
|
12738
12802
|
/* harmony import */ var _component_component_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4012);
|
|
12739
|
-
/* harmony import */ var
|
|
12740
|
-
/* harmony import */ var
|
|
12741
|
-
/* harmony import */ var
|
|
12742
|
-
/* harmony import */ var
|
|
12743
|
-
/* harmony import */ var
|
|
12744
|
-
/* harmony import */ var
|
|
12745
|
-
/* harmony import */ var
|
|
12746
|
-
/* harmony import */ var
|
|
12747
|
-
/* harmony import */ var
|
|
12803
|
+
/* harmony import */ var _decorators_component_component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87325);
|
|
12804
|
+
/* harmony import */ var _decorators_hook_hook_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97357);
|
|
12805
|
+
/* harmony import */ var _decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37133);
|
|
12806
|
+
/* harmony import */ var _helpers_array_split_array_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46559);
|
|
12807
|
+
/* harmony import */ var _button_button_button_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10830);
|
|
12808
|
+
/* harmony import */ var _group_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62405);
|
|
12809
|
+
/* harmony import */ var _separator_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(92113);
|
|
12810
|
+
/* harmony import */ var _spacer_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(34244);
|
|
12811
|
+
/* harmony import */ var _helpers_buttons_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(43649);
|
|
12812
|
+
/* harmony import */ var _helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(72157);
|
|
12813
|
+
/* harmony import */ var _helpers_get_strong_control_types_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(71262);
|
|
12748
12814
|
/*!
|
|
12749
12815
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
12750
12816
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -12765,7 +12831,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.popup = {
|
|
|
12765
12831
|
|
|
12766
12832
|
|
|
12767
12833
|
|
|
12768
|
-
|
|
12834
|
+
|
|
12835
|
+
|
|
12836
|
+
let UIList = class UIList extends _group_js__WEBPACK_IMPORTED_MODULE_6__.UIGroup {
|
|
12769
12837
|
/** @override */ className() {
|
|
12770
12838
|
return 'UIList';
|
|
12771
12839
|
}
|
|
@@ -12775,24 +12843,24 @@ let UIList = class UIList extends _group_js__WEBPACK_IMPORTED_MODULE_4__.UIGroup
|
|
|
12775
12843
|
/**
|
|
12776
12844
|
* Make new group and append it in list of elements
|
|
12777
12845
|
*/ makeGroup() {
|
|
12778
|
-
return new
|
|
12846
|
+
return new _group_js__WEBPACK_IMPORTED_MODULE_6__.UIGroup(this.jodit);
|
|
12779
12847
|
}
|
|
12780
12848
|
/**
|
|
12781
12849
|
* All buttons from list
|
|
12782
12850
|
*/ get buttons() {
|
|
12783
|
-
return this.allChildren.filter((elm)=>_component_component_js__WEBPACK_IMPORTED_MODULE_0__.Component.isInstanceOf(elm,
|
|
12851
|
+
return this.allChildren.filter((elm)=>_component_component_js__WEBPACK_IMPORTED_MODULE_0__.Component.isInstanceOf(elm, _button_button_button_js__WEBPACK_IMPORTED_MODULE_5__.UIButton));
|
|
12784
12852
|
}
|
|
12785
12853
|
/**
|
|
12786
12854
|
* Helper for getting full plain button list
|
|
12787
12855
|
*/ getButtonsNames() {
|
|
12788
|
-
return this.buttons.map((a)=>a instanceof
|
|
12856
|
+
return this.buttons.map((a)=>a instanceof _button_button_button_js__WEBPACK_IMPORTED_MODULE_5__.UIButton && a.state.name || '').filter((a)=>a !== '');
|
|
12789
12857
|
}
|
|
12790
12858
|
setRemoveButtons(removeButtons) {
|
|
12791
12859
|
this.removeButtons = removeButtons || [];
|
|
12792
12860
|
return this;
|
|
12793
12861
|
}
|
|
12794
12862
|
build(items, target = null) {
|
|
12795
|
-
items = (0,
|
|
12863
|
+
items = (0,_helpers_array_split_array_js__WEBPACK_IMPORTED_MODULE_4__.splitArray)(items);
|
|
12796
12864
|
this.clear();
|
|
12797
12865
|
let lastBtnSeparator = false;
|
|
12798
12866
|
let line = this.makeGroup();
|
|
@@ -12812,13 +12880,13 @@ let UIList = class UIList extends _group_js__WEBPACK_IMPORTED_MODULE_4__.UIGroup
|
|
|
12812
12880
|
case '|':
|
|
12813
12881
|
if (!lastBtnSeparator) {
|
|
12814
12882
|
lastBtnSeparator = true;
|
|
12815
|
-
elm = new
|
|
12883
|
+
elm = new _separator_js__WEBPACK_IMPORTED_MODULE_7__.UISeparator(this.j);
|
|
12816
12884
|
}
|
|
12817
12885
|
break;
|
|
12818
12886
|
case '---':
|
|
12819
12887
|
{
|
|
12820
12888
|
group.setMod('before-spacer', true);
|
|
12821
|
-
const space = new
|
|
12889
|
+
const space = new _spacer_js__WEBPACK_IMPORTED_MODULE_8__.UISpacer(this.j);
|
|
12822
12890
|
line.append(space);
|
|
12823
12891
|
group = this.makeGroup();
|
|
12824
12892
|
line.append(group);
|
|
@@ -12849,20 +12917,20 @@ let UIList = class UIList extends _group_js__WEBPACK_IMPORTED_MODULE_4__.UIGroup
|
|
|
12849
12917
|
return !this.removeButtons.includes(b.name) && (!b.isVisible || ((_a = b.isVisible) === null || _a === void 0 ? void 0 : _a.call(b, this.j, b)));
|
|
12850
12918
|
};
|
|
12851
12919
|
items.forEach((item)=>{
|
|
12852
|
-
if ((0,
|
|
12920
|
+
if ((0,_helpers_buttons_js__WEBPACK_IMPORTED_MODULE_9__.isButtonGroup)(item)) {
|
|
12853
12921
|
const buttons = item.buttons.filter((b)=>b);
|
|
12854
12922
|
if (buttons.length) {
|
|
12855
12923
|
group = this.makeGroup();
|
|
12856
12924
|
group.setMod('separated', true).setMod('group', item.group);
|
|
12857
12925
|
line.append(group);
|
|
12858
|
-
(0,
|
|
12926
|
+
(0,_helpers_get_strong_control_types_js__WEBPACK_IMPORTED_MODULE_11__.getStrongControlTypes)(buttons, this.j.o.controls).filter(isNotRemoved).forEach(addButton);
|
|
12859
12927
|
}
|
|
12860
12928
|
} else {
|
|
12861
12929
|
if (!group) {
|
|
12862
12930
|
group = this.makeGroup();
|
|
12863
12931
|
line.append(group);
|
|
12864
12932
|
}
|
|
12865
|
-
const control = (0,
|
|
12933
|
+
const control = (0,_helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_10__.getControlType)(item, this.j.o.controls);
|
|
12866
12934
|
isNotRemoved(control) && addButton(control);
|
|
12867
12935
|
}
|
|
12868
12936
|
});
|
|
@@ -12875,22 +12943,22 @@ let UIList = class UIList extends _group_js__WEBPACK_IMPORTED_MODULE_4__.UIGroup
|
|
|
12875
12943
|
/**
|
|
12876
12944
|
* Create button instance
|
|
12877
12945
|
*/ makeButton(control, target) {
|
|
12878
|
-
return new
|
|
12946
|
+
return new _button_button_button_js__WEBPACK_IMPORTED_MODULE_5__.UIButton(this.j, {
|
|
12879
12947
|
name: control.name
|
|
12880
12948
|
});
|
|
12881
12949
|
}
|
|
12882
|
-
constructor(
|
|
12883
|
-
super(
|
|
12950
|
+
constructor(){
|
|
12951
|
+
super(...arguments);
|
|
12884
12952
|
this.mode = 'horizontal';
|
|
12885
12953
|
this.removeButtons = [];
|
|
12886
12954
|
}
|
|
12887
12955
|
};
|
|
12888
12956
|
__decorate([
|
|
12889
|
-
(0,
|
|
12890
|
-
(0,
|
|
12957
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('mode'),
|
|
12958
|
+
(0,_decorators_hook_hook_js__WEBPACK_IMPORTED_MODULE_2__.hook)('ready')
|
|
12891
12959
|
], UIList.prototype, "__onChangeMode", null);
|
|
12892
12960
|
UIList = __decorate([
|
|
12893
|
-
|
|
12961
|
+
_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_1__.component
|
|
12894
12962
|
], UIList);
|
|
12895
12963
|
|
|
12896
12964
|
|
|
@@ -15589,9 +15657,11 @@ UIImagePositionTab = __decorate([
|
|
|
15589
15657
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15590
15658
|
/* harmony export */ attr: function() { return /* binding */ attr; }
|
|
15591
15659
|
/* harmony export */ });
|
|
15592
|
-
/* harmony import */ var
|
|
15593
|
-
/* harmony import */ var
|
|
15594
|
-
/* harmony import */ var
|
|
15660
|
+
/* harmony import */ var _checker_is_function_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23282);
|
|
15661
|
+
/* harmony import */ var _checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72430);
|
|
15662
|
+
/* harmony import */ var _checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70799);
|
|
15663
|
+
/* harmony import */ var _string_kebab_case_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12475);
|
|
15664
|
+
/* harmony import */ var _css_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41180);
|
|
15595
15665
|
/*!
|
|
15596
15666
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15597
15667
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15599,19 +15669,21 @@ UIImagePositionTab = __decorate([
|
|
|
15599
15669
|
*/
|
|
15600
15670
|
|
|
15601
15671
|
|
|
15672
|
+
|
|
15673
|
+
|
|
15602
15674
|
/**
|
|
15603
15675
|
* Alias for `elm.getAttribute` but if set second argument `-{key}`
|
|
15604
15676
|
* it will also check `data-{key}` attribute
|
|
15605
15677
|
* if set `value` it is alias for setAttribute with the same logic
|
|
15606
15678
|
*/ function attr(elm, keyOrAttributes, value) {
|
|
15607
|
-
if (!elm || !(0,
|
|
15679
|
+
if (!elm || !(0,_checker_is_function_js__WEBPACK_IMPORTED_MODULE_0__.isFunction)(elm.getAttribute)) {
|
|
15608
15680
|
return null;
|
|
15609
15681
|
}
|
|
15610
|
-
if (!(0,
|
|
15682
|
+
if (!(0,_checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__.isString)(keyOrAttributes)) {
|
|
15611
15683
|
Object.keys(keyOrAttributes).forEach((key)=>{
|
|
15612
15684
|
const value = keyOrAttributes[key];
|
|
15613
|
-
if ((0,
|
|
15614
|
-
(0,
|
|
15685
|
+
if ((0,_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(value) && key === 'style') {
|
|
15686
|
+
(0,_css_js__WEBPACK_IMPORTED_MODULE_4__.css)(elm, value);
|
|
15615
15687
|
} else {
|
|
15616
15688
|
if (key === 'className') {
|
|
15617
15689
|
key = 'class';
|
|
@@ -15621,7 +15693,7 @@ UIImagePositionTab = __decorate([
|
|
|
15621
15693
|
});
|
|
15622
15694
|
return null;
|
|
15623
15695
|
}
|
|
15624
|
-
let key = (0,
|
|
15696
|
+
let key = (0,_string_kebab_case_js__WEBPACK_IMPORTED_MODULE_3__.CamelCaseToKebabCase)(keyOrAttributes);
|
|
15625
15697
|
if (/^-/.test(key)) {
|
|
15626
15698
|
const res = attr(elm, `data${key}`);
|
|
15627
15699
|
if (res) {
|
|
@@ -15731,16 +15803,11 @@ UIImagePositionTab = __decorate([
|
|
|
15731
15803
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
15732
15804
|
|
|
15733
15805
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15734
|
-
/* harmony export */ applyStylesPro: function() { return /* reexport safe */ _apply_styles_pro__WEBPACK_IMPORTED_MODULE_0__.applyStylesPro; }
|
|
15735
|
-
/* harmony export */ calcListLevels: function() { return /* reexport safe */ _calc_list_levels__WEBPACK_IMPORTED_MODULE_1__.calcListLevels; },
|
|
15736
|
-
/* harmony export */ calcMarginParts: function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.calcMarginParts; },
|
|
15737
|
-
/* harmony export */ calcStartBySymbol: function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.calcStartBySymbol; },
|
|
15738
|
-
/* harmony export */ convertUnitToPx: function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.convertUnitToPx; }
|
|
15806
|
+
/* harmony export */ applyStylesPro: function() { return /* reexport safe */ _apply_styles_pro__WEBPACK_IMPORTED_MODULE_0__.applyStylesPro; }
|
|
15739
15807
|
/* harmony export */ });
|
|
15740
15808
|
/* harmony import */ var _apply_styles_pro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51586);
|
|
15741
15809
|
/* harmony import */ var _calc_list_levels__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31269);
|
|
15742
|
-
/* harmony import */ var
|
|
15743
|
-
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19606);
|
|
15810
|
+
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(19606);
|
|
15744
15811
|
/*!
|
|
15745
15812
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
15746
15813
|
* See LICENSE.md in the project root for license information.
|
|
@@ -15783,7 +15850,8 @@ function calcListLevels(item) {
|
|
|
15783
15850
|
}
|
|
15784
15851
|
const indents = [
|
|
15785
15852
|
(0,_helpers__WEBPACK_IMPORTED_MODULE_0__.realPixelIndent)(item)
|
|
15786
|
-
]
|
|
15853
|
+
];
|
|
15854
|
+
const items = [
|
|
15787
15855
|
item
|
|
15788
15856
|
];
|
|
15789
15857
|
let next = item.next;
|
|
@@ -15925,9 +15993,8 @@ function calcListLevels(item) {
|
|
|
15925
15993
|
/* harmony export */ init: function() { return /* binding */ init; }
|
|
15926
15994
|
/* harmony export */ });
|
|
15927
15995
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
15928
|
-
/* harmony import */ var
|
|
15929
|
-
/* harmony import */ var
|
|
15930
|
-
/* harmony import */ var _load_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14041);
|
|
15996
|
+
/* harmony import */ var _helpers_checker_is_imp_interface_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(60132);
|
|
15997
|
+
/* harmony import */ var _load_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14041);
|
|
15931
15998
|
/*!
|
|
15932
15999
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15933
16000
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15935,12 +16002,11 @@ function calcListLevels(item) {
|
|
|
15935
16002
|
*/
|
|
15936
16003
|
|
|
15937
16004
|
|
|
15938
|
-
|
|
15939
16005
|
/**
|
|
15940
16006
|
* Init plugin if it has no dependencies, in another case wait requires plugins will be init
|
|
15941
16007
|
* @private
|
|
15942
|
-
*/ function init(jodit, pluginName, plugin, instance, doneList, waitingList) {
|
|
15943
|
-
if ((0,
|
|
16008
|
+
*/ function init(jodit, pluginName, plugin, instance, doneList, waitingList, getContainer) {
|
|
16009
|
+
if ((0,_helpers_checker_is_imp_interface_js__WEBPACK_IMPORTED_MODULE_1__.isInitable)(instance)) {
|
|
15944
16010
|
try {
|
|
15945
16011
|
instance.init(jodit);
|
|
15946
16012
|
} catch (e) {
|
|
@@ -15953,12 +16019,12 @@ function calcListLevels(item) {
|
|
|
15953
16019
|
doneList.set(pluginName, instance);
|
|
15954
16020
|
waitingList.delete(pluginName);
|
|
15955
16021
|
if (instance.hasStyle) {
|
|
15956
|
-
(0,
|
|
16022
|
+
(0,_load_js__WEBPACK_IMPORTED_MODULE_2__.loadStyle)(jodit, pluginName).catch((e)=>{
|
|
15957
16023
|
!_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_PROD && console.error(e);
|
|
15958
16024
|
});
|
|
15959
16025
|
}
|
|
15960
16026
|
if (instance.styles) {
|
|
15961
|
-
const style =
|
|
16027
|
+
const style = getContainer(jodit, pluginName, 'style');
|
|
15962
16028
|
style.innerHTML = instance.styles;
|
|
15963
16029
|
}
|
|
15964
16030
|
}
|
|
@@ -17425,8 +17491,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17425
17491
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
17426
17492
|
/* harmony export */ ConnectionError: function() { return /* reexport safe */ _connection_error_js__WEBPACK_IMPORTED_MODULE_1__.ConnectionError; },
|
|
17427
17493
|
/* harmony export */ OptionsError: function() { return /* reexport safe */ _options_error_js__WEBPACK_IMPORTED_MODULE_2__.OptionsError; },
|
|
17428
|
-
/* harmony export */ abort: function() { return /* reexport safe */ _abort_error_js__WEBPACK_IMPORTED_MODULE_0__.abort; }
|
|
17429
|
-
/* harmony export */ isAbort: function() { return /* reexport safe */ _abort_error_js__WEBPACK_IMPORTED_MODULE_0__.isAbort; }
|
|
17494
|
+
/* harmony export */ abort: function() { return /* reexport safe */ _abort_error_js__WEBPACK_IMPORTED_MODULE_0__.abort; }
|
|
17430
17495
|
/* harmony export */ });
|
|
17431
17496
|
/* harmony import */ var _abort_error_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93661);
|
|
17432
17497
|
/* harmony import */ var _connection_error_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86397);
|
|
@@ -17747,39 +17812,6 @@ function cacheHTML(target, _, descriptor) {
|
|
|
17747
17812
|
/* harmony default export */ __webpack_exports__["default"] = ("<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 1792\"> <path d=\"M1728 576v256q0 26-19 45t-45 19h-64q-26 0-45-19t-19-45v-256q0-106-75-181t-181-75-181 75-75 181v192h96q40 0 68 28t28 68v576q0 40-28 68t-68 28h-960q-40 0-68-28t-28-68v-576q0-40 28-68t68-28h672v-192q0-185 131.5-316.5t316.5-131.5 316.5 131.5 131.5 316.5z\"/> </svg> ");
|
|
17748
17813
|
|
|
17749
17814
|
|
|
17750
|
-
/***/ }),
|
|
17751
|
-
|
|
17752
|
-
/***/ 33730:
|
|
17753
|
-
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
17754
|
-
|
|
17755
|
-
/* harmony import */ var jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6441);
|
|
17756
|
-
/*!
|
|
17757
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
17758
|
-
* See LICENSE.md in the project root for license information.
|
|
17759
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
17760
|
-
*/
|
|
17761
|
-
jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.font.list = {
|
|
17762
|
-
"'Andale mono', monospace'": 'Andale Mono',
|
|
17763
|
-
'Arial, Helvetica, sans-serif': 'Arial',
|
|
17764
|
-
"'Arial black', sans-serif": 'Arial Black',
|
|
17765
|
-
"'Book antiqua', palatino, serif": 'Book Antiqua',
|
|
17766
|
-
"'Comic Sans MS', sans-serif": 'Comic Sans MS',
|
|
17767
|
-
"'Courier new', Courier, monospace": 'Courier New',
|
|
17768
|
-
'Georgia, Palatino, serif': 'Georgia',
|
|
17769
|
-
'Helvetica, Arial, sans-serif': 'Helvetica',
|
|
17770
|
-
'Impact, Charcoal, sans-serif': 'Impact',
|
|
17771
|
-
'Symbol, sans-serif': 'Symbol',
|
|
17772
|
-
'Tahoma, Arial, Helvetica, sans-serif': 'Tahoma',
|
|
17773
|
-
'Terminal, Monaco, monospace': 'Terminal',
|
|
17774
|
-
"'Times new roman', Times, serif": 'Times New Roman',
|
|
17775
|
-
"'Trebuchet ms', Geneva, sans-serif": 'Trebuchet MS',
|
|
17776
|
-
'Verdana, Geneva, sans-serif': 'Verdana',
|
|
17777
|
-
Webdings: 'Webdings',
|
|
17778
|
-
"Wingdings, 'Zapf dingbats'": 'Wingdings'
|
|
17779
|
-
};
|
|
17780
|
-
jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.loadExternalConfig = true;
|
|
17781
|
-
|
|
17782
|
-
|
|
17783
17815
|
/***/ }),
|
|
17784
17816
|
|
|
17785
17817
|
/***/ 34176:
|
|
@@ -19347,7 +19379,6 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('focus', focus);
|
|
|
19347
19379
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
19348
19380
|
|
|
19349
19381
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
19350
|
-
/* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
|
|
19351
19382
|
/* harmony export */ watch: function() { return /* binding */ watch; }
|
|
19352
19383
|
/* harmony export */ });
|
|
19353
19384
|
/* harmony import */ var _component_statuses_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78213);
|
|
@@ -19357,6 +19388,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('focus', focus);
|
|
|
19357
19388
|
/* harmony import */ var _helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(72430);
|
|
19358
19389
|
/* harmony import */ var _helpers_checker_is_view_object_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39955);
|
|
19359
19390
|
/* harmony import */ var _helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(89890);
|
|
19391
|
+
/* harmony import */ var _helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(37790);
|
|
19360
19392
|
/*!
|
|
19361
19393
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
19362
19394
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -19368,14 +19400,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('focus', focus);
|
|
|
19368
19400
|
|
|
19369
19401
|
|
|
19370
19402
|
|
|
19371
|
-
|
|
19372
|
-
let desc;
|
|
19373
|
-
do {
|
|
19374
|
-
desc = Object.getOwnPropertyDescriptor(obj, prop);
|
|
19375
|
-
obj = Object.getPrototypeOf(obj);
|
|
19376
|
-
}while (!desc && obj)
|
|
19377
|
-
return desc;
|
|
19378
|
-
}
|
|
19403
|
+
|
|
19379
19404
|
/**
|
|
19380
19405
|
* Watch decorator. Added observer for some change in field value
|
|
19381
19406
|
*/ function watch(observeFields, opts) {
|
|
@@ -19422,7 +19447,7 @@ function getPropertyDescriptor(obj, prop) {
|
|
|
19422
19447
|
const observableValue = (0,_event_emitter_observable_js__WEBPACK_IMPORTED_MODULE_1__.observable)(value);
|
|
19423
19448
|
observableValue.on(`change.${teil.join('.')}`, callback);
|
|
19424
19449
|
}
|
|
19425
|
-
const descriptor = getPropertyDescriptor(target, key);
|
|
19450
|
+
const descriptor = (0,_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_7__.getPropertyDescriptor)(target, key);
|
|
19426
19451
|
Object.defineProperty(component, key, {
|
|
19427
19452
|
configurable: true,
|
|
19428
19453
|
set (v) {
|
|
@@ -19867,6 +19892,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.dots = {
|
|
|
19867
19892
|
/* harmony export */ call: function() { return /* binding */ call; },
|
|
19868
19893
|
/* harmony export */ callPromise: function() { return /* binding */ callPromise; },
|
|
19869
19894
|
/* harmony export */ getDataTransfer: function() { return /* binding */ getDataTransfer; },
|
|
19895
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
|
|
19870
19896
|
/* harmony export */ keys: function() { return /* binding */ keys; },
|
|
19871
19897
|
/* harmony export */ loadImage: function() { return /* binding */ loadImage; },
|
|
19872
19898
|
/* harmony export */ markOwner: function() { return /* binding */ markOwner; },
|
|
@@ -19962,6 +19988,14 @@ const keys = (obj, own = true)=>{
|
|
|
19962
19988
|
return null;
|
|
19963
19989
|
}
|
|
19964
19990
|
};
|
|
19991
|
+
function getPropertyDescriptor(obj, prop) {
|
|
19992
|
+
let desc;
|
|
19993
|
+
do {
|
|
19994
|
+
desc = Object.getOwnPropertyDescriptor(obj, prop);
|
|
19995
|
+
obj = Object.getPrototypeOf(obj);
|
|
19996
|
+
}while (!desc && obj)
|
|
19997
|
+
return desc;
|
|
19998
|
+
}
|
|
19965
19999
|
|
|
19966
20000
|
|
|
19967
20001
|
/***/ }),
|
|
@@ -20477,9 +20511,11 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('ai-assistant', ai
|
|
|
20477
20511
|
/* harmony export */ });
|
|
20478
20512
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82749);
|
|
20479
20513
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
|
|
20480
|
-
/* harmony import */ var
|
|
20481
|
-
/* harmony import */ var
|
|
20482
|
-
/* harmony import */ var
|
|
20514
|
+
/* harmony import */ var jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(45219);
|
|
20515
|
+
/* harmony import */ var jodit_esm_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70799);
|
|
20516
|
+
/* harmony import */ var jodit_esm_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12475);
|
|
20517
|
+
/* harmony import */ var jodit_esm_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49055);
|
|
20518
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers_helpers__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(43712);
|
|
20483
20519
|
/*!
|
|
20484
20520
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
20485
20521
|
* See LICENSE.md in the project root for license information.
|
|
@@ -20489,6 +20525,8 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('ai-assistant', ai
|
|
|
20489
20525
|
|
|
20490
20526
|
|
|
20491
20527
|
|
|
20528
|
+
|
|
20529
|
+
|
|
20492
20530
|
class Style {
|
|
20493
20531
|
get keys() {
|
|
20494
20532
|
return Object.keys(this._data);
|
|
@@ -20515,7 +20553,7 @@ class Style {
|
|
|
20515
20553
|
str(filter = (k)=>true) {
|
|
20516
20554
|
const styleKeys = Object.keys(this._data).filter((key)=>key && !/^mso-/.test(key) && filter(key) && this.get(key) != null);
|
|
20517
20555
|
const n = (v)=>{
|
|
20518
|
-
if ((0,
|
|
20556
|
+
if ((0,jodit_esm_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_3__.isString)(v)) {
|
|
20519
20557
|
return /^0[a-z]+$/i.test(v) ? '0' : v;
|
|
20520
20558
|
}
|
|
20521
20559
|
return v.toString();
|
|
@@ -20526,7 +20564,7 @@ class Style {
|
|
|
20526
20564
|
].forEach((key)=>{
|
|
20527
20565
|
if (this._data[key]) {
|
|
20528
20566
|
const indexMain = styleKeys.indexOf(key);
|
|
20529
|
-
const margins = (0,
|
|
20567
|
+
const margins = (0,jodit_pro_plugins_paste_from_word_helpers_helpers__WEBPACK_IMPORTED_MODULE_6__.calcMarginParts)(this._data[key]);
|
|
20530
20568
|
[
|
|
20531
20569
|
'top',
|
|
20532
20570
|
'right',
|
|
@@ -20541,7 +20579,7 @@ class Style {
|
|
|
20541
20579
|
}
|
|
20542
20580
|
});
|
|
20543
20581
|
if (styleKeys.length) {
|
|
20544
|
-
return styleKeys.map((key)=>`${(0,
|
|
20582
|
+
return styleKeys.map((key)=>`${(0,jodit_esm_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_4__.kebabCase)(key)}:${this.get(key)}`).join(';');
|
|
20545
20583
|
}
|
|
20546
20584
|
return '';
|
|
20547
20585
|
}
|
|
@@ -20551,28 +20589,28 @@ class Style {
|
|
|
20551
20589
|
}
|
|
20552
20590
|
}
|
|
20553
20591
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
20554
|
-
|
|
20592
|
+
jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
20555
20593
|
], Style.prototype, "forEach", null);
|
|
20556
20594
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
20557
|
-
|
|
20595
|
+
jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
20558
20596
|
], Style.prototype, "clear", null);
|
|
20559
20597
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
20560
|
-
|
|
20598
|
+
jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
20561
20599
|
], Style.prototype, "set", null);
|
|
20562
20600
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
20563
|
-
|
|
20601
|
+
jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
20564
20602
|
], Style.prototype, "get", null);
|
|
20565
20603
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
20566
|
-
|
|
20604
|
+
jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
20567
20605
|
], Style.prototype, "has", null);
|
|
20568
20606
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
20569
|
-
|
|
20607
|
+
jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
20570
20608
|
], Style.prototype, "add", null);
|
|
20571
20609
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
20572
|
-
|
|
20610
|
+
jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
20573
20611
|
], Style.prototype, "str", null);
|
|
20574
20612
|
function readStyles(style) {
|
|
20575
|
-
return uniqueMax((style ?? '').replace(/"/g, '"').split(';').filter(Boolean).map((s)=>(0,
|
|
20613
|
+
return uniqueMax((style ?? '').replace(/"/g, '"').split(';').filter(Boolean).map((s)=>(0,jodit_esm_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_5__.trim)(s).split(':').map(jodit_esm_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_5__.trim))).reduce((acc, [key, value])=>{
|
|
20576
20614
|
if (key && value) {
|
|
20577
20615
|
acc[key] = value;
|
|
20578
20616
|
}
|
|
@@ -21350,14 +21388,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21350
21388
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21351
21389
|
|
|
21352
21390
|
/* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22732);
|
|
21353
|
-
/* harmony import */ var
|
|
21354
|
-
/* harmony import */ var
|
|
21355
|
-
/* harmony import */ var
|
|
21356
|
-
/* harmony import */ var
|
|
21357
|
-
/* harmony import */ var
|
|
21358
|
-
/* harmony import */ var
|
|
21359
|
-
/* harmony import */ var
|
|
21360
|
-
/* harmony import */ var
|
|
21391
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29960);
|
|
21392
|
+
/* harmony import */ var _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(89890);
|
|
21393
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12153);
|
|
21394
|
+
/* harmony import */ var _elements_map_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(32118);
|
|
21395
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21735);
|
|
21396
|
+
/* harmony import */ var _factories_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63399);
|
|
21397
|
+
/* harmony import */ var _fetch_delete_file_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(44450);
|
|
21398
|
+
/* harmony import */ var _fetch_load_tree_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(20201);
|
|
21399
|
+
/* harmony import */ var _image_editor_image_editor_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(50050);
|
|
21361
21400
|
/*!
|
|
21362
21401
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
21363
21402
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -21371,21 +21410,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
21371
21410
|
|
|
21372
21411
|
|
|
21373
21412
|
|
|
21374
|
-
|
|
21413
|
+
|
|
21414
|
+
const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = 'next', right = 'right')=>`<div class="${CLASS_PREVIEW}__navigation ${CLASS_PREVIEW}__navigation_arrow_${next}">` + '' + _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__.Icon.get('angle-' + right) + '</a>';
|
|
21375
21415
|
/* harmony default export */ __webpack_exports__["default"] = ((self)=>{
|
|
21376
21416
|
if (!self.o.contextMenu) {
|
|
21377
21417
|
return ()=>{};
|
|
21378
21418
|
}
|
|
21379
|
-
const contextmenu = (0,
|
|
21419
|
+
const contextmenu = (0,_factories_js__WEBPACK_IMPORTED_MODULE_6__.makeContextMenu)(self);
|
|
21380
21420
|
return (e)=>{
|
|
21381
|
-
const a = (0,
|
|
21421
|
+
const a = (0,_utils_js__WEBPACK_IMPORTED_MODULE_5__.getItem)(e.target, self.container);
|
|
21382
21422
|
if (!a) {
|
|
21383
21423
|
return;
|
|
21384
21424
|
}
|
|
21385
21425
|
let item = a;
|
|
21386
|
-
const opt = self.options, ga = (key)=>(0,
|
|
21426
|
+
const opt = self.options, ga = (key)=>(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_1__.attr)(item, key) || '';
|
|
21387
21427
|
self.async.setTimeout(()=>{
|
|
21388
|
-
const selectedItem = (0,
|
|
21428
|
+
const selectedItem = (0,_utils_js__WEBPACK_IMPORTED_MODULE_5__.elementToItem)(a, (0,_elements_map_js__WEBPACK_IMPORTED_MODULE_4__.elementsMap)(self));
|
|
21389
21429
|
if (!selectedItem) {
|
|
21390
21430
|
return;
|
|
21391
21431
|
}
|
|
@@ -21396,7 +21436,7 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
|
|
|
21396
21436
|
ga('data-is-file') !== '1' && opt.editImage && (self.dataProvider.canI('ImageResize') || self.dataProvider.canI('ImageCrop')) ? {
|
|
21397
21437
|
icon: 'pencil',
|
|
21398
21438
|
title: 'Edit',
|
|
21399
|
-
exec: ()=>
|
|
21439
|
+
exec: ()=>_image_editor_image_editor_js__WEBPACK_IMPORTED_MODULE_9__.openImageEditor.call(self, ga('href'), ga('data-name'), ga('data-path'), ga('data-source'))
|
|
21400
21440
|
} : false,
|
|
21401
21441
|
self.dataProvider.canI('FileRename') ? {
|
|
21402
21442
|
icon: 'italic',
|
|
@@ -21410,12 +21450,12 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
|
|
|
21410
21450
|
title: 'Delete',
|
|
21411
21451
|
exec: async ()=>{
|
|
21412
21452
|
try {
|
|
21413
|
-
await (0,
|
|
21453
|
+
await (0,_fetch_delete_file_js__WEBPACK_IMPORTED_MODULE_7__.deleteFile)(self, ga('data-name'), ga('data-source'));
|
|
21414
21454
|
} catch (e) {
|
|
21415
21455
|
return self.status(e);
|
|
21416
21456
|
}
|
|
21417
21457
|
self.state.activeElements = [];
|
|
21418
|
-
return (0,
|
|
21458
|
+
return (0,_fetch_load_tree_js__WEBPACK_IMPORTED_MODULE_8__.loadTree)(self).catch(self.status);
|
|
21419
21459
|
}
|
|
21420
21460
|
} : false,
|
|
21421
21461
|
opt.preview ? {
|
|
@@ -21465,7 +21505,7 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
|
|
|
21465
21505
|
item = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.prevWithClass(item, self.files.getFullElName('item'));
|
|
21466
21506
|
}
|
|
21467
21507
|
if (!item) {
|
|
21468
|
-
throw (0,
|
|
21508
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_2__.error)('Need element');
|
|
21469
21509
|
}
|
|
21470
21510
|
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(temp_content);
|
|
21471
21511
|
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(preview_box);
|
|
@@ -21608,13 +21648,15 @@ function brBefore(start) {
|
|
|
21608
21648
|
/* harmony export */ PluginSystem: function() { return /* binding */ PluginSystem; }
|
|
21609
21649
|
/* harmony export */ });
|
|
21610
21650
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
21611
|
-
/* harmony import */ var
|
|
21612
|
-
/* harmony import */ var
|
|
21613
|
-
/* harmony import */ var
|
|
21614
|
-
/* harmony import */ var
|
|
21615
|
-
/* harmony import */ var
|
|
21616
|
-
/* harmony import */ var
|
|
21617
|
-
/* harmony import */ var
|
|
21651
|
+
/* harmony import */ var _event_emitter_global_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(57012);
|
|
21652
|
+
/* harmony import */ var _helpers_array_split_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46559);
|
|
21653
|
+
/* harmony import */ var _helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(68345);
|
|
21654
|
+
/* harmony import */ var _helpers_checker_is_imp_interface_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(60132);
|
|
21655
|
+
/* harmony import */ var _helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70799);
|
|
21656
|
+
/* harmony import */ var _helpers_init_instance_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31359);
|
|
21657
|
+
/* harmony import */ var _helpers_load_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(14041);
|
|
21658
|
+
/* harmony import */ var _helpers_make_instance_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(48591);
|
|
21659
|
+
/* harmony import */ var _helpers_utils_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(89672);
|
|
21618
21660
|
/*!
|
|
21619
21661
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
21620
21662
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -21628,6 +21670,8 @@ function brBefore(start) {
|
|
|
21628
21670
|
|
|
21629
21671
|
|
|
21630
21672
|
|
|
21673
|
+
|
|
21674
|
+
|
|
21631
21675
|
/**
|
|
21632
21676
|
* Jodit plugin system
|
|
21633
21677
|
* @example
|
|
@@ -21646,18 +21690,18 @@ function brBefore(start) {
|
|
|
21646
21690
|
/**
|
|
21647
21691
|
* Add plugin in store
|
|
21648
21692
|
*/ add(name, plugin) {
|
|
21649
|
-
this.__items.set((0,
|
|
21650
|
-
|
|
21693
|
+
this.__items.set((0,_helpers_utils_js__WEBPACK_IMPORTED_MODULE_9__.normalizeName)(name), plugin);
|
|
21694
|
+
_event_emitter_global_js__WEBPACK_IMPORTED_MODULE_1__.eventEmitter.fire(`plugin:${name}:ready`);
|
|
21651
21695
|
}
|
|
21652
21696
|
/**
|
|
21653
21697
|
* Get plugin from store
|
|
21654
21698
|
*/ get(name) {
|
|
21655
|
-
return this.__items.get((0,
|
|
21699
|
+
return this.__items.get((0,_helpers_utils_js__WEBPACK_IMPORTED_MODULE_9__.normalizeName)(name));
|
|
21656
21700
|
}
|
|
21657
21701
|
/**
|
|
21658
21702
|
* Remove plugin from store
|
|
21659
21703
|
*/ remove(name) {
|
|
21660
|
-
this.__items.delete((0,
|
|
21704
|
+
this.__items.delete((0,_helpers_utils_js__WEBPACK_IMPORTED_MODULE_9__.normalizeName)(name));
|
|
21661
21705
|
}
|
|
21662
21706
|
__getFullPluginsList(filter) {
|
|
21663
21707
|
const results = [];
|
|
@@ -21689,7 +21733,7 @@ function brBefore(start) {
|
|
|
21689
21733
|
return;
|
|
21690
21734
|
}
|
|
21691
21735
|
const requires = plugin === null || plugin === void 0 ? void 0 : plugin.requires;
|
|
21692
|
-
if (requires && (0,
|
|
21736
|
+
if (requires && (0,_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_3__.isArray)(requires) && requires.length) {
|
|
21693
21737
|
if (requires.some((req)=>disableList.has(req))) {
|
|
21694
21738
|
return;
|
|
21695
21739
|
}
|
|
@@ -21699,13 +21743,13 @@ function brBefore(start) {
|
|
|
21699
21743
|
}
|
|
21700
21744
|
}
|
|
21701
21745
|
commit = true;
|
|
21702
|
-
const instance = (0,
|
|
21746
|
+
const instance = (0,_helpers_make_instance_js__WEBPACK_IMPORTED_MODULE_8__.makeInstance)(jodit, plugin);
|
|
21703
21747
|
if (!instance) {
|
|
21704
21748
|
doneList.set(name, null);
|
|
21705
21749
|
waitingList.delete(name);
|
|
21706
21750
|
return;
|
|
21707
21751
|
}
|
|
21708
|
-
(0,
|
|
21752
|
+
(0,_helpers_init_instance_js__WEBPACK_IMPORTED_MODULE_6__.init)(jodit, name, plugin, instance, doneList, waitingList, this.opts.getContainer);
|
|
21709
21753
|
pluginsMap[name] = instance;
|
|
21710
21754
|
});
|
|
21711
21755
|
if (commit) {
|
|
@@ -21714,7 +21758,7 @@ function brBefore(start) {
|
|
|
21714
21758
|
}
|
|
21715
21759
|
};
|
|
21716
21760
|
if (extraList && extraList.length) {
|
|
21717
|
-
(0,
|
|
21761
|
+
(0,_helpers_load_js__WEBPACK_IMPORTED_MODULE_7__.loadExtras)(this.__items, jodit, extraList, initPlugins);
|
|
21718
21762
|
}
|
|
21719
21763
|
initPlugins();
|
|
21720
21764
|
bindOnBeforeDestruct(jodit, pluginsMap);
|
|
@@ -21731,12 +21775,13 @@ function brBefore(start) {
|
|
|
21731
21775
|
}
|
|
21732
21776
|
const onReady = ()=>{
|
|
21733
21777
|
resolve();
|
|
21734
|
-
|
|
21778
|
+
_event_emitter_global_js__WEBPACK_IMPORTED_MODULE_1__.eventEmitter.off(`plugin:${name}:ready`, onReady);
|
|
21735
21779
|
};
|
|
21736
|
-
|
|
21780
|
+
_event_emitter_global_js__WEBPACK_IMPORTED_MODULE_1__.eventEmitter.on(`plugin:${name}:ready`, onReady);
|
|
21737
21781
|
});
|
|
21738
21782
|
}
|
|
21739
|
-
constructor(){
|
|
21783
|
+
constructor(opts){
|
|
21784
|
+
this.opts = opts;
|
|
21740
21785
|
this.__items = new Map();
|
|
21741
21786
|
}
|
|
21742
21787
|
}
|
|
@@ -21746,7 +21791,7 @@ function brBefore(start) {
|
|
|
21746
21791
|
jodit.e.on('beforeDestruct', ()=>{
|
|
21747
21792
|
Object.keys(plugins).forEach((name)=>{
|
|
21748
21793
|
const instance = plugins[name];
|
|
21749
|
-
if ((0,
|
|
21794
|
+
if ((0,_helpers_checker_is_imp_interface_js__WEBPACK_IMPORTED_MODULE_4__.isDestructable)(instance)) {
|
|
21750
21795
|
instance.destruct(jodit);
|
|
21751
21796
|
}
|
|
21752
21797
|
delete plugins[name];
|
|
@@ -21755,10 +21800,10 @@ function brBefore(start) {
|
|
|
21755
21800
|
});
|
|
21756
21801
|
}
|
|
21757
21802
|
function getSpecialLists(jodit) {
|
|
21758
|
-
const extraList = jodit.o.extraPlugins.map((s)=>(0,
|
|
21803
|
+
const extraList = jodit.o.extraPlugins.map((s)=>(0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_5__.isString)(s) ? {
|
|
21759
21804
|
name: s
|
|
21760
21805
|
} : s);
|
|
21761
|
-
const disableList = new Set((0,
|
|
21806
|
+
const disableList = new Set((0,_helpers_array_split_array_js__WEBPACK_IMPORTED_MODULE_2__.splitArray)(jodit.o.disablePlugins).map(_helpers_utils_js__WEBPACK_IMPORTED_MODULE_9__.normalizeName));
|
|
21762
21807
|
const filter = jodit.o.safeMode ? new Set(jodit.o.safePluginsList) : null;
|
|
21763
21808
|
return {
|
|
21764
21809
|
extraList,
|
|
@@ -22045,7 +22090,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('hotkeys', hotkeys
|
|
|
22045
22090
|
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(99658);
|
|
22046
22091
|
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(40273);
|
|
22047
22092
|
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(82758);
|
|
22048
|
-
/* harmony import */ var
|
|
22093
|
+
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2748);
|
|
22049
22094
|
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(38837);
|
|
22050
22095
|
/*!
|
|
22051
22096
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
@@ -22201,7 +22246,7 @@ class JElement {
|
|
|
22201
22246
|
}
|
|
22202
22247
|
function readAttributes(node) {
|
|
22203
22248
|
const result = {};
|
|
22204
|
-
if (
|
|
22249
|
+
if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__.Dom.isElement(node)) {
|
|
22205
22250
|
for(let i = 0, attrs = node.attributes; i < attrs.length; i += 1){
|
|
22206
22251
|
result[attrs[i].name] = attrs[i].value;
|
|
22207
22252
|
}
|
|
@@ -22339,11 +22384,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22339
22384
|
/* harmony export */ get: function() { return /* reexport safe */ _get_js__WEBPACK_IMPORTED_MODULE_15__.get; },
|
|
22340
22385
|
/* harmony export */ getClassName: function() { return /* reexport safe */ _get_class_name_js__WEBPACK_IMPORTED_MODULE_16__.getClassName; },
|
|
22341
22386
|
/* harmony export */ getDataTransfer: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_26__.getDataTransfer; },
|
|
22387
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_26__.getPropertyDescriptor; },
|
|
22342
22388
|
/* harmony export */ getXPathByElement: function() { return /* reexport safe */ _selector_js__WEBPACK_IMPORTED_MODULE_23__.getXPathByElement; },
|
|
22343
22389
|
/* harmony export */ hAlignElement: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.hAlignElement; },
|
|
22344
22390
|
/* harmony export */ humanSizeToBytes: function() { return /* reexport safe */ _human_size_to_bytes_js__WEBPACK_IMPORTED_MODULE_17__.humanSizeToBytes; },
|
|
22345
22391
|
/* harmony export */ inView: function() { return /* reexport safe */ _scroll_into_view_js__WEBPACK_IMPORTED_MODULE_22__.inView; },
|
|
22346
|
-
/* harmony export */ isAbort: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_13__.isAbort; },
|
|
22347
22392
|
/* harmony export */ isAtom: function() { return /* reexport safe */ _extend_js__WEBPACK_IMPORTED_MODULE_14__.isAtom; },
|
|
22348
22393
|
/* harmony export */ keepNames: function() { return /* reexport safe */ _get_class_name_js__WEBPACK_IMPORTED_MODULE_16__.keepNames; },
|
|
22349
22394
|
/* harmony export */ keys: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_26__.keys; },
|
|
@@ -25115,8 +25160,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeSandbox = null;
|
|
|
25115
25160
|
/* harmony export */ });
|
|
25116
25161
|
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19606);
|
|
25117
25162
|
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
25118
|
-
/* harmony import */ var
|
|
25119
|
-
/* harmony import */ var
|
|
25163
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29960);
|
|
25164
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(76078);
|
|
25165
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(97420);
|
|
25120
25166
|
/*!
|
|
25121
25167
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
25122
25168
|
* See LICENSE.md in the project root for license information.
|
|
@@ -25125,6 +25171,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeSandbox = null;
|
|
|
25125
25171
|
|
|
25126
25172
|
|
|
25127
25173
|
|
|
25174
|
+
|
|
25128
25175
|
function applyStylesPro(jodit, html, removeStyles, rtf = '') {
|
|
25129
25176
|
const iframe = document.createElement('iframe');
|
|
25130
25177
|
iframe.style.display = 'none';
|
|
@@ -25145,20 +25192,20 @@ function applyStylesPro(jodit, html, removeStyles, rtf = '') {
|
|
|
25145
25192
|
if (!rules[idx].selectorText) {
|
|
25146
25193
|
continue;
|
|
25147
25194
|
}
|
|
25148
|
-
(0,
|
|
25149
|
-
if (!(0,
|
|
25150
|
-
(0,
|
|
25151
|
-
(0,
|
|
25195
|
+
(0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_3__.$$)(rules[idx].selectorText, doc.body).forEach((elm)=>{
|
|
25196
|
+
if (!(0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, JDS)) {
|
|
25197
|
+
(0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, JDS, (0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, 'style') || '');
|
|
25198
|
+
(0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, 'style', '');
|
|
25152
25199
|
}
|
|
25153
|
-
(0,
|
|
25200
|
+
(0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, 'style', `${(0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, 'style')};${rules[idx].style.cssText}`);
|
|
25154
25201
|
});
|
|
25155
25202
|
}
|
|
25156
25203
|
} catch (e) {}
|
|
25157
25204
|
}
|
|
25158
|
-
(0,
|
|
25159
|
-
(0,
|
|
25205
|
+
(0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_3__.$$)(`[${JDS}]`, doc.body).forEach((elm)=>{
|
|
25206
|
+
(0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, 'style', `${(0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, 'style')};${(0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, JDS)}`);
|
|
25160
25207
|
});
|
|
25161
|
-
return (0,_transform_word_to_html__WEBPACK_IMPORTED_MODULE_0__.transformWordToHtml)(jodit,
|
|
25208
|
+
return (0,_transform_word_to_html__WEBPACK_IMPORTED_MODULE_0__.transformWordToHtml)(jodit, jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_4__.JElement.make(doc.body), removeStyles, rtf);
|
|
25162
25209
|
} finally{
|
|
25163
25210
|
jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(iframe);
|
|
25164
25211
|
}
|
|
@@ -26188,7 +26235,7 @@ function persistent(target, propertyKey) {
|
|
|
26188
26235
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26189
26236
|
/* harmony export */ convertStyleUnitToPixels: function() { return /* binding */ convertStyleUnitToPixels; }
|
|
26190
26237
|
/* harmony export */ });
|
|
26191
|
-
/* harmony import */ var
|
|
26238
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43712);
|
|
26192
26239
|
/*!
|
|
26193
26240
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
26194
26241
|
* See LICENSE.md in the project root for license information.
|
|
@@ -26202,7 +26249,7 @@ const convertStyleUnitToPixels = (elm, { jodit })=>{
|
|
|
26202
26249
|
style.forEach((key)=>{
|
|
26203
26250
|
const v = style.get(key);
|
|
26204
26251
|
if (v) {
|
|
26205
|
-
style.set(key, v.toString().replace(/\d+(\.\d+)?(pt|cm)/g, (match)=>(0,
|
|
26252
|
+
style.set(key, v.toString().replace(/\d+(\.\d+)?(pt|cm)/g, (match)=>(0,jodit_pro_plugins_paste_from_word_helpers_helpers__WEBPACK_IMPORTED_MODULE_0__.convertUnitToPx)(match) + 'px'));
|
|
26206
26253
|
}
|
|
26207
26254
|
});
|
|
26208
26255
|
return elm;
|
|
@@ -26764,8 +26811,8 @@ function derive(...traits) {
|
|
|
26764
26811
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
26765
26812
|
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
26766
26813
|
/* harmony import */ var _helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38837);
|
|
26767
|
-
/* harmony import */ var
|
|
26768
|
-
/* harmony import */ var
|
|
26814
|
+
/* harmony import */ var _api_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(63687);
|
|
26815
|
+
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77361);
|
|
26769
26816
|
/*!
|
|
26770
26817
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
26771
26818
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -26792,13 +26839,13 @@ const transactions = {
|
|
|
26792
26839
|
[states.START]: {
|
|
26793
26840
|
exec (value) {
|
|
26794
26841
|
const { element, jodit, style, mode, collapsed } = value;
|
|
26795
|
-
if ((0,
|
|
26842
|
+
if ((0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.isInsideInvisibleElement)(element, jodit.editor) || !collapsed && _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmptyContent(element)) {
|
|
26796
26843
|
return {
|
|
26797
26844
|
...value,
|
|
26798
26845
|
next: states.END
|
|
26799
26846
|
};
|
|
26800
26847
|
}
|
|
26801
|
-
const elm = (0,
|
|
26848
|
+
const elm = (0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.getSuitParent)(style, element, jodit.editor) || (0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.getSuitChild)(style, element);
|
|
26802
26849
|
if (elm) {
|
|
26803
26850
|
return {
|
|
26804
26851
|
...value,
|
|
@@ -26806,7 +26853,7 @@ const transactions = {
|
|
|
26806
26853
|
element: elm
|
|
26807
26854
|
};
|
|
26808
26855
|
}
|
|
26809
|
-
const suit = (0,
|
|
26856
|
+
const suit = (0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.suitableClosest)(style, element, jodit.editor);
|
|
26810
26857
|
if (style.elementIsList && _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isList(suit)) {
|
|
26811
26858
|
return {
|
|
26812
26859
|
...value,
|
|
@@ -26821,14 +26868,14 @@ const transactions = {
|
|
|
26821
26868
|
}
|
|
26822
26869
|
return {
|
|
26823
26870
|
...value,
|
|
26824
|
-
next: mode !==
|
|
26871
|
+
next: mode !== _constants_js__WEBPACK_IMPORTED_MODULE_4__.UNWRAP ? states.UNWRAP_CHILDREN : states.END
|
|
26825
26872
|
};
|
|
26826
26873
|
}
|
|
26827
26874
|
},
|
|
26828
26875
|
[states.LIST]: {
|
|
26829
26876
|
exec (value) {
|
|
26830
26877
|
const { element, jodit, mode } = value;
|
|
26831
|
-
if (mode !==
|
|
26878
|
+
if (mode !== _constants_js__WEBPACK_IMPORTED_MODULE_4__.INITIAL && mode !== _constants_js__WEBPACK_IMPORTED_MODULE_4__.UNWRAP && mode !== _constants_js__WEBPACK_IMPORTED_MODULE_4__.REPLACE) {
|
|
26832
26879
|
return {
|
|
26833
26880
|
...value,
|
|
26834
26881
|
next: states.END
|
|
@@ -26859,7 +26906,7 @@ const transactions = {
|
|
|
26859
26906
|
exec (value) {
|
|
26860
26907
|
return {
|
|
26861
26908
|
...value,
|
|
26862
|
-
mode: (0,
|
|
26909
|
+
mode: (0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.toggleOrderedList)(value.style, value.element, value.jodit, value.mode),
|
|
26863
26910
|
next: states.END
|
|
26864
26911
|
};
|
|
26865
26912
|
}
|
|
@@ -26868,14 +26915,14 @@ const transactions = {
|
|
|
26868
26915
|
exec (value) {
|
|
26869
26916
|
var _a;
|
|
26870
26917
|
const { element, jodit, style } = value;
|
|
26871
|
-
const suit = (0,
|
|
26918
|
+
const suit = (0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.suitableClosest)(style, element, jodit.editor);
|
|
26872
26919
|
(0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_2__.assert)(suit, 'This place should have an element');
|
|
26873
26920
|
// If we're applying inline styles to a block element, don't split the block
|
|
26874
26921
|
const isApplyingInlineStyle = !style.elementIsBlock && ((_a = style.options.attributes) === null || _a === void 0 ? void 0 : _a.style);
|
|
26875
26922
|
const shouldNotSplitBlock = isApplyingInlineStyle && _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(suit);
|
|
26876
26923
|
if (!shouldNotSplitBlock) {
|
|
26877
26924
|
if (!style.elementIsBlock) {
|
|
26878
|
-
(0,
|
|
26925
|
+
(0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.extractSelectedPart)(suit, element, jodit);
|
|
26879
26926
|
}
|
|
26880
26927
|
return {
|
|
26881
26928
|
...value,
|
|
@@ -26893,7 +26940,7 @@ const transactions = {
|
|
|
26893
26940
|
[states.UNWRAP_CHILDREN]: {
|
|
26894
26941
|
exec (value) {
|
|
26895
26942
|
const { element, style } = value;
|
|
26896
|
-
if (!(0,
|
|
26943
|
+
if (!(0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.unwrapChildren)(style, element)) {
|
|
26897
26944
|
return {
|
|
26898
26945
|
...value,
|
|
26899
26946
|
next: states.WRAP
|
|
@@ -26901,7 +26948,7 @@ const transactions = {
|
|
|
26901
26948
|
}
|
|
26902
26949
|
return {
|
|
26903
26950
|
...value,
|
|
26904
|
-
mode:
|
|
26951
|
+
mode: _constants_js__WEBPACK_IMPORTED_MODULE_4__.UNWRAP,
|
|
26905
26952
|
next: states.END
|
|
26906
26953
|
};
|
|
26907
26954
|
}
|
|
@@ -26909,11 +26956,11 @@ const transactions = {
|
|
|
26909
26956
|
[states.WRAP]: {
|
|
26910
26957
|
exec (value) {
|
|
26911
26958
|
const { element, jodit, style } = value;
|
|
26912
|
-
const wrapper = (0,
|
|
26959
|
+
const wrapper = (0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.wrap)(style, element, jodit);
|
|
26913
26960
|
return {
|
|
26914
26961
|
...value,
|
|
26915
26962
|
next: style.elementIsList ? states.END : states.CHANGE,
|
|
26916
|
-
mode:
|
|
26963
|
+
mode: _constants_js__WEBPACK_IMPORTED_MODULE_4__.WRAP,
|
|
26917
26964
|
element: wrapper
|
|
26918
26965
|
};
|
|
26919
26966
|
}
|
|
@@ -26921,7 +26968,7 @@ const transactions = {
|
|
|
26921
26968
|
[states.ELEMENT]: {
|
|
26922
26969
|
exec (value) {
|
|
26923
26970
|
const { style, element, jodit } = value;
|
|
26924
|
-
if ((0,
|
|
26971
|
+
if ((0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.toggleAttributes)(style, element, jodit, _constants_js__WEBPACK_IMPORTED_MODULE_4__.INITIAL, true) !== _constants_js__WEBPACK_IMPORTED_MODULE_4__.INITIAL) {
|
|
26925
26972
|
return {
|
|
26926
26973
|
...value,
|
|
26927
26974
|
next: states.CHANGE
|
|
@@ -26943,8 +26990,8 @@ const transactions = {
|
|
|
26943
26990
|
[states.CHANGE]: {
|
|
26944
26991
|
exec (value) {
|
|
26945
26992
|
const { style, element, jodit, mode } = value;
|
|
26946
|
-
const newMode = (0,
|
|
26947
|
-
if (mode !==
|
|
26993
|
+
const newMode = (0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.toggleAttributes)(style, element, jodit, value.mode);
|
|
26994
|
+
if (mode !== _constants_js__WEBPACK_IMPORTED_MODULE_4__.WRAP && newMode === _constants_js__WEBPACK_IMPORTED_MODULE_4__.UNSET && !element.attributes.length && _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isTag(element, style.element)) {
|
|
26948
26995
|
return {
|
|
26949
26996
|
...value,
|
|
26950
26997
|
next: states.UNWRAP
|
|
@@ -26968,7 +27015,7 @@ const transactions = {
|
|
|
26968
27015
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.unwrap(value.element);
|
|
26969
27016
|
return {
|
|
26970
27017
|
...value,
|
|
26971
|
-
mode:
|
|
27018
|
+
mode: _constants_js__WEBPACK_IMPORTED_MODULE_4__.UNWRAP,
|
|
26972
27019
|
next: states.END
|
|
26973
27020
|
};
|
|
26974
27021
|
}
|
|
@@ -26978,7 +27025,7 @@ const transactions = {
|
|
|
26978
27025
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.replace(value.element, value.style.defaultTag, value.jodit.createInside, true);
|
|
26979
27026
|
return {
|
|
26980
27027
|
...value,
|
|
26981
|
-
mode:
|
|
27028
|
+
mode: _constants_js__WEBPACK_IMPORTED_MODULE_4__.REPLACE,
|
|
26982
27029
|
next: states.END
|
|
26983
27030
|
};
|
|
26984
27031
|
}
|
|
@@ -27900,6 +27947,19 @@ __decorate([
|
|
|
27900
27947
|
}
|
|
27901
27948
|
|
|
27902
27949
|
|
|
27950
|
+
/***/ }),
|
|
27951
|
+
|
|
27952
|
+
/***/ 57012:
|
|
27953
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
27954
|
+
|
|
27955
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27956
|
+
/* harmony export */ eventEmitter: function() { return /* binding */ eventEmitter; }
|
|
27957
|
+
/* harmony export */ });
|
|
27958
|
+
/* harmony import */ var _event_emitter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98220);
|
|
27959
|
+
|
|
27960
|
+
const eventEmitter = new _event_emitter_js__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
|
|
27961
|
+
|
|
27962
|
+
|
|
27903
27963
|
/***/ }),
|
|
27904
27964
|
|
|
27905
27965
|
/***/ 57034:
|
|
@@ -28856,10 +28916,8 @@ jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_7__.JoditPro.plugins.add('pasteFrom
|
|
|
28856
28916
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
28857
28917
|
/* harmony export */ CHANGE: function() { return /* reexport safe */ _style_constants_js__WEBPACK_IMPORTED_MODULE_2__.CHANGE; },
|
|
28858
28918
|
/* harmony export */ CommitStyle: function() { return /* reexport safe */ _style_commit_style_js__WEBPACK_IMPORTED_MODULE_1__.CommitStyle; },
|
|
28859
|
-
/* harmony export */ INITIAL: function() { return /* reexport safe */ _style_constants_js__WEBPACK_IMPORTED_MODULE_2__.INITIAL; },
|
|
28860
28919
|
/* harmony export */ REPLACE: function() { return /* reexport safe */ _style_constants_js__WEBPACK_IMPORTED_MODULE_2__.REPLACE; },
|
|
28861
28920
|
/* harmony export */ Selection: function() { return /* reexport safe */ _selection_js__WEBPACK_IMPORTED_MODULE_0__.Selection; },
|
|
28862
|
-
/* harmony export */ UNSET: function() { return /* reexport safe */ _style_constants_js__WEBPACK_IMPORTED_MODULE_2__.UNSET; },
|
|
28863
28921
|
/* harmony export */ UNWRAP: function() { return /* reexport safe */ _style_constants_js__WEBPACK_IMPORTED_MODULE_2__.UNWRAP; },
|
|
28864
28922
|
/* harmony export */ WRAP: function() { return /* reexport safe */ _style_constants_js__WEBPACK_IMPORTED_MODULE_2__.WRAP; }
|
|
28865
28923
|
/* harmony export */ });
|
|
@@ -31923,12 +31981,10 @@ function makeContextMenu(parent) {
|
|
|
31923
31981
|
|
|
31924
31982
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
31925
31983
|
/* harmony export */ FiniteStateMachine: function() { return /* reexport safe */ _finite_state_machine_js__WEBPACK_IMPORTED_MODULE_1__.FiniteStateMachine; },
|
|
31926
|
-
/* harmony export */ elementsEqualAttributes: function() { return /* reexport safe */ _is_same_attributes_js__WEBPACK_IMPORTED_MODULE_7__.elementsEqualAttributes; },
|
|
31927
31984
|
/* harmony export */ extractSelectedPart: function() { return /* reexport safe */ _extract_js__WEBPACK_IMPORTED_MODULE_0__.extractSelectedPart; },
|
|
31928
31985
|
/* harmony export */ getSuitChild: function() { return /* reexport safe */ _get_suit_child_js__WEBPACK_IMPORTED_MODULE_2__.getSuitChild; },
|
|
31929
31986
|
/* harmony export */ getSuitParent: function() { return /* reexport safe */ _get_suit_parent_js__WEBPACK_IMPORTED_MODULE_3__.getSuitParent; },
|
|
31930
31987
|
/* harmony export */ isInsideInvisibleElement: function() { return /* reexport safe */ _is_inside_invisible_element_js__WEBPACK_IMPORTED_MODULE_5__.isInsideInvisibleElement; },
|
|
31931
|
-
/* harmony export */ isSameAttributes: function() { return /* reexport safe */ _is_same_attributes_js__WEBPACK_IMPORTED_MODULE_7__.isSameAttributes; },
|
|
31932
31988
|
/* harmony export */ suitableClosest: function() { return /* reexport safe */ _is_suit_element_js__WEBPACK_IMPORTED_MODULE_8__.suitableClosest; },
|
|
31933
31989
|
/* harmony export */ toggleAttributes: function() { return /* reexport safe */ _toggle_attributes_js__WEBPACK_IMPORTED_MODULE_11__.toggleAttributes; },
|
|
31934
31990
|
/* harmony export */ toggleOrderedList: function() { return /* reexport safe */ _list_toggle_ordered_list_js__WEBPACK_IMPORTED_MODULE_9__.toggleOrderedList; },
|
|
@@ -32386,7 +32442,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32386
32442
|
/* harmony export */ component: function() { return /* reexport safe */ _component_component_js__WEBPACK_IMPORTED_MODULE_2__.component; },
|
|
32387
32443
|
/* harmony export */ debounce: function() { return /* reexport safe */ _debounce_debounce_js__WEBPACK_IMPORTED_MODULE_3__.debounce; },
|
|
32388
32444
|
/* harmony export */ derive: function() { return /* reexport safe */ _derive_derive_js__WEBPACK_IMPORTED_MODULE_4__.derive; },
|
|
32389
|
-
/* harmony export */
|
|
32445
|
+
/* harmony export */ getComponentClass: function() { return /* reexport safe */ _component_component_js__WEBPACK_IMPORTED_MODULE_2__.getComponentClass; },
|
|
32390
32446
|
/* harmony export */ hook: function() { return /* reexport safe */ _hook_hook_js__WEBPACK_IMPORTED_MODULE_5__.hook; },
|
|
32391
32447
|
/* harmony export */ idle: function() { return /* reexport safe */ _idle_idle_js__WEBPACK_IMPORTED_MODULE_6__.idle; },
|
|
32392
32448
|
/* harmony export */ nonenumerable: function() { return /* reexport safe */ _nonenumerable_nonenumerable_js__WEBPACK_IMPORTED_MODULE_7__.nonenumerable; },
|
|
@@ -34298,7 +34354,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent);
|
|
|
34298
34354
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
34299
34355
|
/* harmony export */ LazyWalker: function() { return /* binding */ LazyWalker; }
|
|
34300
34356
|
/* harmony export */ });
|
|
34301
|
-
/* harmony import */ var
|
|
34357
|
+
/* harmony import */ var _decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45219);
|
|
34302
34358
|
/* harmony import */ var _dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
34303
34359
|
/* harmony import */ var _event_emitter_eventify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72757);
|
|
34304
34360
|
/*!
|
|
@@ -34398,7 +34454,7 @@ class LazyWalker extends _event_emitter_eventify_js__WEBPACK_IMPORTED_MODULE_2__
|
|
|
34398
34454
|
}
|
|
34399
34455
|
}
|
|
34400
34456
|
__decorate([
|
|
34401
|
-
|
|
34457
|
+
_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
34402
34458
|
], LazyWalker.prototype, "__workPerform", null);
|
|
34403
34459
|
|
|
34404
34460
|
|
|
@@ -35519,10 +35575,10 @@ function findCell(editor, key) {
|
|
|
35519
35575
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
35520
35576
|
/* harmony export */ observable: function() { return /* binding */ observable; }
|
|
35521
35577
|
/* harmony export */ });
|
|
35522
|
-
/* harmony import */ var
|
|
35523
|
-
/* harmony import */ var
|
|
35524
|
-
/* harmony import */ var
|
|
35525
|
-
/* harmony import */ var
|
|
35578
|
+
/* harmony import */ var _helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68345);
|
|
35579
|
+
/* harmony import */ var _helpers_checker_is_equal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59292);
|
|
35580
|
+
/* harmony import */ var _helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72430);
|
|
35581
|
+
/* harmony import */ var _helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37790);
|
|
35526
35582
|
/*!
|
|
35527
35583
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35528
35584
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35576,7 +35632,7 @@ function isObservableObject(obj) {
|
|
|
35576
35632
|
const __lockEvent = {};
|
|
35577
35633
|
const __onEvents = {};
|
|
35578
35634
|
const on = (event, callback)=>{
|
|
35579
|
-
if ((0,
|
|
35635
|
+
if ((0,_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__.isArray)(event)) {
|
|
35580
35636
|
event.map((e)=>on(e, callback));
|
|
35581
35637
|
return obj;
|
|
35582
35638
|
}
|
|
@@ -35587,7 +35643,7 @@ function isObservableObject(obj) {
|
|
|
35587
35643
|
return obj;
|
|
35588
35644
|
};
|
|
35589
35645
|
const fire = (event, ...attr)=>{
|
|
35590
|
-
if ((0,
|
|
35646
|
+
if ((0,_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__.isArray)(event)) {
|
|
35591
35647
|
event.map((e)=>fire(e, ...attr));
|
|
35592
35648
|
return;
|
|
35593
35649
|
}
|
|
@@ -35613,16 +35669,16 @@ function isObservableObject(obj) {
|
|
|
35613
35669
|
const key = _key;
|
|
35614
35670
|
const prefix = prefixes.concat(key).filter((a)=>a.length);
|
|
35615
35671
|
store[key] = dict[key];
|
|
35616
|
-
const descriptor = (0,
|
|
35672
|
+
const descriptor = (0,_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_3__.getPropertyDescriptor)(dict, key);
|
|
35617
35673
|
Object.defineProperty(dict, key, {
|
|
35618
35674
|
set: (value)=>{
|
|
35619
35675
|
const oldValue = store[key];
|
|
35620
|
-
if (!(0,
|
|
35676
|
+
if (!(0,_helpers_checker_is_equal_js__WEBPACK_IMPORTED_MODULE_1__.isFastEqual)(store[key], value)) {
|
|
35621
35677
|
fire([
|
|
35622
35678
|
'beforeChange',
|
|
35623
35679
|
`beforeChange.${prefix.join('.')}`
|
|
35624
35680
|
], key, value);
|
|
35625
|
-
if ((0,
|
|
35681
|
+
if ((0,_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(value)) {
|
|
35626
35682
|
initAccessors(value, prefix);
|
|
35627
35683
|
}
|
|
35628
35684
|
if (descriptor && descriptor.set) {
|
|
@@ -35650,7 +35706,7 @@ function isObservableObject(obj) {
|
|
|
35650
35706
|
enumerable: true,
|
|
35651
35707
|
configurable: true
|
|
35652
35708
|
});
|
|
35653
|
-
if ((0,
|
|
35709
|
+
if ((0,_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(store[key])) {
|
|
35654
35710
|
initAccessors(store[key], prefix);
|
|
35655
35711
|
}
|
|
35656
35712
|
});
|
|
@@ -35692,7 +35748,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.about = {
|
|
|
35692
35748
|
}), i = editor.i18n.bind(editor);
|
|
35693
35749
|
dialog.setMod('theme', editor.o.theme).setHeader(i('About Jodit')).setContent(`<div class="jodit-about">
|
|
35694
35750
|
<div>${i('Jodit Editor')} v.${editor.getVersion()}</div>
|
|
35695
|
-
<div>${i('License: %s', !(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isLicense)(editor.o.license) ? 'MIT' : (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.normalizeLicense)(editor.o.license))}</div>
|
|
35751
|
+
<div>${i('License: %s', !(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.isLicense)(editor.o.license) ? editor.o.license || 'MIT' : (0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.normalizeLicense)(editor.o.license))}</div>
|
|
35696
35752
|
<div>
|
|
35697
35753
|
<a href="${_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE}" target="_blank">${_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE}</a>
|
|
35698
35754
|
</div>
|
|
@@ -35700,7 +35756,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.about = {
|
|
|
35700
35756
|
<a href="https://xdsoft.net/jodit/docs/" target="_blank">${i("Jodit User's Guide")}</a>
|
|
35701
35757
|
${i('contains detailed help for using')}
|
|
35702
35758
|
</div>
|
|
35703
|
-
<div>${i('Copyright © XDSoft.net - Chupurnov
|
|
35759
|
+
<div>${i('Copyright © XDSoft.net - Chupurnov Valerii. All rights reserved.')}</div>
|
|
35704
35760
|
</div>`);
|
|
35705
35761
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.css)(dialog.dialog, {
|
|
35706
35762
|
minHeight: 200,
|
|
@@ -35957,15 +36013,14 @@ function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed
|
|
|
35957
36013
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
35958
36014
|
|
|
35959
36015
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
35960
|
-
/* harmony export */ elementToItem: function() { return /* binding */ elementToItem; },
|
|
35961
|
-
/* harmony export */ getItem: function() { return /* binding */ getItem; },
|
|
35962
36016
|
/* harmony export */ nativeListeners: function() { return /* binding */ nativeListeners; }
|
|
35963
36017
|
/* harmony export */ });
|
|
35964
|
-
/* harmony import */ var
|
|
35965
|
-
/* harmony import */ var
|
|
36018
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29960);
|
|
36019
|
+
/* harmony import */ var _core_helpers_utils_ctrl_key_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15456);
|
|
35966
36020
|
/* harmony import */ var _builders_context_menu_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41457);
|
|
35967
36021
|
/* harmony import */ var _builders_elements_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(32118);
|
|
35968
|
-
/* harmony import */ var
|
|
36022
|
+
/* harmony import */ var _builders_utils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21735);
|
|
36023
|
+
/* harmony import */ var _fetch_load_tree_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(20201);
|
|
35969
36024
|
/*!
|
|
35970
36025
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35971
36026
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35975,15 +36030,7 @@ function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed
|
|
|
35975
36030
|
|
|
35976
36031
|
|
|
35977
36032
|
|
|
35978
|
-
|
|
35979
|
-
* @private
|
|
35980
|
-
*/ const getItem = (node, root, tag = 'a')=>_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(node, (elm)=>_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(elm, tag), root);
|
|
35981
|
-
/**
|
|
35982
|
-
* @private
|
|
35983
|
-
*/ const elementToItem = (elm, elementsMap)=>{
|
|
35984
|
-
const { key } = elm.dataset, { item } = elementsMap[key || ''];
|
|
35985
|
-
return item;
|
|
35986
|
-
};
|
|
36033
|
+
|
|
35987
36034
|
/**
|
|
35988
36035
|
* @private
|
|
35989
36036
|
*/ function nativeListeners() {
|
|
@@ -35991,7 +36038,7 @@ function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed
|
|
|
35991
36038
|
const elmMap = (0,_builders_elements_map_js__WEBPACK_IMPORTED_MODULE_3__.elementsMap)(this);
|
|
35992
36039
|
const self = this;
|
|
35993
36040
|
self.e.on(self.tree.container, 'dragstart', (e)=>{
|
|
35994
|
-
const a = getItem(e.target, self.container);
|
|
36041
|
+
const a = (0,_builders_utils_js__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
|
|
35995
36042
|
if (!a) {
|
|
35996
36043
|
return;
|
|
35997
36044
|
}
|
|
@@ -36000,39 +36047,39 @@ function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed
|
|
|
36000
36047
|
}
|
|
36001
36048
|
}).on(self.tree.container, 'drop', (e)=>{
|
|
36002
36049
|
if ((self.o.moveFile || self.o.moveFolder) && dragElement) {
|
|
36003
|
-
let path = (0,
|
|
36050
|
+
let path = (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_0__.attr)(dragElement, '-path') || '';
|
|
36004
36051
|
// move folder
|
|
36005
36052
|
if (!self.o.moveFolder && dragElement.classList.contains(this.tree.getFullElName('item'))) {
|
|
36006
36053
|
return false;
|
|
36007
36054
|
}
|
|
36008
36055
|
// move file
|
|
36009
36056
|
if (dragElement.classList.contains(this.files.getFullElName('item'))) {
|
|
36010
|
-
path += (0,
|
|
36057
|
+
path += (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_0__.attr)(dragElement, '-name');
|
|
36011
36058
|
if (!self.o.moveFile) {
|
|
36012
36059
|
return false;
|
|
36013
36060
|
}
|
|
36014
36061
|
}
|
|
36015
|
-
const a = getItem(e.target, self.container);
|
|
36062
|
+
const a = (0,_builders_utils_js__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
|
|
36016
36063
|
if (!a) {
|
|
36017
36064
|
return;
|
|
36018
36065
|
}
|
|
36019
|
-
self.dataProvider.move(path, (0,
|
|
36066
|
+
self.dataProvider.move(path, (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_0__.attr)(a, '-path') || '', (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_0__.attr)(a, '-source') || '', dragElement.classList.contains(this.files.getFullElName('item'))).then(()=>(0,_fetch_load_tree_js__WEBPACK_IMPORTED_MODULE_5__.loadTree)(this)).catch(self.status);
|
|
36020
36067
|
dragElement = false;
|
|
36021
36068
|
}
|
|
36022
36069
|
}).on(self.files.container, 'contextmenu', (0,_builders_context_menu_js__WEBPACK_IMPORTED_MODULE_2__["default"])(self)).on(self.files.container, 'click', (e)=>{
|
|
36023
|
-
if (!(0,
|
|
36070
|
+
if (!(0,_core_helpers_utils_ctrl_key_js__WEBPACK_IMPORTED_MODULE_1__.ctrlKey)(e)) {
|
|
36024
36071
|
this.state.activeElements = [];
|
|
36025
36072
|
}
|
|
36026
36073
|
}).on(self.files.container, 'click', (e)=>{
|
|
36027
|
-
const a = getItem(e.target, self.container);
|
|
36074
|
+
const a = (0,_builders_utils_js__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
|
|
36028
36075
|
if (!a) {
|
|
36029
36076
|
return;
|
|
36030
36077
|
}
|
|
36031
|
-
const item = elementToItem(a, elmMap);
|
|
36078
|
+
const item = (0,_builders_utils_js__WEBPACK_IMPORTED_MODULE_4__.elementToItem)(a, elmMap);
|
|
36032
36079
|
if (!item) {
|
|
36033
36080
|
return;
|
|
36034
36081
|
}
|
|
36035
|
-
if (!(0,
|
|
36082
|
+
if (!(0,_core_helpers_utils_ctrl_key_js__WEBPACK_IMPORTED_MODULE_1__.ctrlKey)(e)) {
|
|
36036
36083
|
self.state.activeElements = [
|
|
36037
36084
|
item
|
|
36038
36085
|
];
|
|
@@ -36046,7 +36093,7 @@ function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed
|
|
|
36046
36093
|
return false;
|
|
36047
36094
|
}).on(self.files.container, 'dragstart', (e)=>{
|
|
36048
36095
|
if (self.o.moveFile) {
|
|
36049
|
-
const a = getItem(e.target, self.container);
|
|
36096
|
+
const a = (0,_builders_utils_js__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
|
|
36050
36097
|
if (!a) {
|
|
36051
36098
|
return;
|
|
36052
36099
|
}
|
|
@@ -37322,7 +37369,8 @@ function replaceOldTags(elm) {
|
|
|
37322
37369
|
/* harmony import */ var _array_to_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4510);
|
|
37323
37370
|
/* harmony import */ var _checker_is_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70799);
|
|
37324
37371
|
/* harmony import */ var _string_camel_case_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(87058);
|
|
37325
|
-
/* harmony import */ var
|
|
37372
|
+
/* harmony import */ var _attr_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29960);
|
|
37373
|
+
/* harmony import */ var _error_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(89890);
|
|
37326
37374
|
/*!
|
|
37327
37375
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37328
37376
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -37333,6 +37381,7 @@ function replaceOldTags(elm) {
|
|
|
37333
37381
|
|
|
37334
37382
|
|
|
37335
37383
|
|
|
37384
|
+
|
|
37336
37385
|
let temp = 1;
|
|
37337
37386
|
const $$temp = ()=>{
|
|
37338
37387
|
temp++;
|
|
@@ -37377,7 +37426,7 @@ const $$temp = ()=>{
|
|
|
37377
37426
|
root = root.container;
|
|
37378
37427
|
}
|
|
37379
37428
|
return $$('[ref],[data-ref]', root).reduce((def, child)=>{
|
|
37380
|
-
const key = (0,
|
|
37429
|
+
const key = (0,_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(child, '-ref');
|
|
37381
37430
|
if (key && (0,_checker_is_string_js__WEBPACK_IMPORTED_MODULE_3__.isString)(key)) {
|
|
37382
37431
|
def[(0,_string_camel_case_js__WEBPACK_IMPORTED_MODULE_4__.camelCase)(key)] = child;
|
|
37383
37432
|
def[key] = child;
|
|
@@ -37422,12 +37471,12 @@ const $$temp = ()=>{
|
|
|
37422
37471
|
try {
|
|
37423
37472
|
resolved = od.querySelector(element);
|
|
37424
37473
|
} catch (_a) {
|
|
37425
|
-
throw (0,
|
|
37474
|
+
throw (0,_error_index_js__WEBPACK_IMPORTED_MODULE_6__.error)('String "' + element + '" should be valid HTML selector');
|
|
37426
37475
|
}
|
|
37427
37476
|
}
|
|
37428
37477
|
// Duck checking
|
|
37429
37478
|
if (!resolved || typeof resolved !== 'object' || !_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(resolved) || !resolved.cloneNode) {
|
|
37430
|
-
throw (0,
|
|
37479
|
+
throw (0,_error_index_js__WEBPACK_IMPORTED_MODULE_6__.error)('Element "' + element + '" should be string or HTMLElement instance');
|
|
37431
37480
|
}
|
|
37432
37481
|
return resolved;
|
|
37433
37482
|
}
|
|
@@ -37780,18 +37829,17 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('iframe', iframe);
|
|
|
37780
37829
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
37781
37830
|
/* harmony export */ isMarker: function() { return /* binding */ isMarker; }
|
|
37782
37831
|
/* harmony export */ });
|
|
37783
|
-
/* harmony import */ var
|
|
37784
|
-
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
37832
|
+
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2748);
|
|
37785
37833
|
/*!
|
|
37786
37834
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
37787
37835
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
37788
37836
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
37789
37837
|
*/
|
|
37790
|
-
|
|
37791
37838
|
/**
|
|
37792
37839
|
* Define element is selection helper
|
|
37840
|
+
* @deprecated use Dom.isMarker instead
|
|
37793
37841
|
*/ function isMarker(elm) {
|
|
37794
|
-
return
|
|
37842
|
+
return _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isMarker(elm);
|
|
37795
37843
|
}
|
|
37796
37844
|
|
|
37797
37845
|
|
|
@@ -38486,15 +38534,26 @@ Dialog = Dialog_1 = __decorate([
|
|
|
38486
38534
|
/* harmony export */ ToolbarButton: function() { return /* binding */ ToolbarButton; }
|
|
38487
38535
|
/* harmony export */ });
|
|
38488
38536
|
/* harmony import */ var _core_component_statuses_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78213);
|
|
38489
|
-
/* harmony import */ var
|
|
38490
|
-
/* harmony import */ var
|
|
38491
|
-
/* harmony import */ var
|
|
38492
|
-
/* harmony import */ var
|
|
38493
|
-
/* harmony import */ var
|
|
38494
|
-
/* harmony import */ var
|
|
38495
|
-
/* harmony import */ var
|
|
38496
|
-
/* harmony import */ var
|
|
38497
|
-
/* harmony import */ var
|
|
38537
|
+
/* harmony import */ var _core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45219);
|
|
38538
|
+
/* harmony import */ var _core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33433);
|
|
38539
|
+
/* harmony import */ var _core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(87325);
|
|
38540
|
+
/* harmony import */ var _core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37133);
|
|
38541
|
+
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2748);
|
|
38542
|
+
/* harmony import */ var _core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(68345);
|
|
38543
|
+
/* harmony import */ var _core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(23282);
|
|
38544
|
+
/* harmony import */ var _core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(19306);
|
|
38545
|
+
/* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(72430);
|
|
38546
|
+
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(70799);
|
|
38547
|
+
/* harmony import */ var _core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(56175);
|
|
38548
|
+
/* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(87058);
|
|
38549
|
+
/* harmony import */ var _core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(38837);
|
|
38550
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(29960);
|
|
38551
|
+
/* harmony import */ var _core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(37790);
|
|
38552
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(62843);
|
|
38553
|
+
/* harmony import */ var _core_ui_helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(72157);
|
|
38554
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(12153);
|
|
38555
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(56917);
|
|
38556
|
+
/* harmony import */ var _factory_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(21491);
|
|
38498
38557
|
/*!
|
|
38499
38558
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38500
38559
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -38515,18 +38574,31 @@ Dialog = Dialog_1 = __decorate([
|
|
|
38515
38574
|
|
|
38516
38575
|
|
|
38517
38576
|
|
|
38518
|
-
|
|
38519
|
-
|
|
38577
|
+
|
|
38578
|
+
|
|
38579
|
+
|
|
38580
|
+
|
|
38581
|
+
|
|
38582
|
+
|
|
38583
|
+
|
|
38584
|
+
|
|
38585
|
+
|
|
38586
|
+
|
|
38587
|
+
|
|
38588
|
+
let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_16__.UIButton {
|
|
38589
|
+
className() {
|
|
38520
38590
|
return 'ToolbarButton';
|
|
38521
38591
|
}
|
|
38522
38592
|
/**
|
|
38523
38593
|
* Get parent toolbar
|
|
38524
38594
|
*/ get toolbar() {
|
|
38525
|
-
|
|
38595
|
+
const ToolbarCollection = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_3__.getComponentClass)('ToolbarCollection');
|
|
38596
|
+
return this.closest(ToolbarCollection);
|
|
38526
38597
|
}
|
|
38527
|
-
|
|
38598
|
+
update() {
|
|
38528
38599
|
var _a, _b;
|
|
38529
|
-
const { control, state } = this
|
|
38600
|
+
const { control, state } = this;
|
|
38601
|
+
const tc = this.toolbar;
|
|
38530
38602
|
if (!tc) {
|
|
38531
38603
|
return;
|
|
38532
38604
|
}
|
|
@@ -38542,7 +38614,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
38542
38614
|
* Calculates whether the button is active
|
|
38543
38615
|
*/ __calculateActivatedStatus(tc) {
|
|
38544
38616
|
var _a, _b;
|
|
38545
|
-
if ((0,
|
|
38617
|
+
if ((0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_8__.isJoditObject)(this.j) && !this.j.editorIsActive) {
|
|
38546
38618
|
return false;
|
|
38547
38619
|
}
|
|
38548
38620
|
if ((_b = (_a = this.control).isActive) === null || _b === void 0 ? void 0 : _b.call(_a, this.j, this)) {
|
|
@@ -38565,33 +38637,33 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
38565
38637
|
}
|
|
38566
38638
|
return Boolean(tc && tc.shouldBeDisabled(this));
|
|
38567
38639
|
}
|
|
38568
|
-
|
|
38569
|
-
(0,
|
|
38640
|
+
onChangeActivated() {
|
|
38641
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.button, 'aria-pressed', this.state.activated);
|
|
38570
38642
|
super.onChangeActivated();
|
|
38571
38643
|
}
|
|
38572
|
-
|
|
38573
|
-
if ((0,
|
|
38644
|
+
onChangeText() {
|
|
38645
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_7__.isFunction)(this.control.template)) {
|
|
38574
38646
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
38575
38647
|
} else {
|
|
38576
38648
|
super.onChangeText();
|
|
38577
38649
|
}
|
|
38578
38650
|
this.setMod('text-icons', Boolean(this.text.innerText.trim().length));
|
|
38579
38651
|
}
|
|
38580
|
-
|
|
38581
|
-
(0,
|
|
38652
|
+
onChangeTabIndex() {
|
|
38653
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.button, 'tabindex', this.state.tabIndex);
|
|
38582
38654
|
}
|
|
38583
38655
|
createContainer() {
|
|
38584
38656
|
const cn = this.componentName;
|
|
38585
38657
|
const container = this.j.c.span(cn);
|
|
38586
38658
|
const button = super.createContainer();
|
|
38587
|
-
(0,
|
|
38659
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(container, 'role', 'listitem');
|
|
38588
38660
|
button.classList.remove(cn);
|
|
38589
38661
|
button.classList.add(cn + '__button');
|
|
38590
38662
|
Object.defineProperty(button, 'component', {
|
|
38591
38663
|
value: this
|
|
38592
38664
|
});
|
|
38593
38665
|
container.appendChild(button);
|
|
38594
|
-
const trigger = this.j.c.fromHTML(`<span role="trigger" class="${cn}__trigger">${
|
|
38666
|
+
const trigger = this.j.c.fromHTML(`<span role="trigger" class="${cn}__trigger">${_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_18__.Icon.get('chevron')}</span>`);
|
|
38595
38667
|
// For caching
|
|
38596
38668
|
button.appendChild(trigger);
|
|
38597
38669
|
return container;
|
|
@@ -38604,15 +38676,15 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
38604
38676
|
if (this.state.hasTrigger) {
|
|
38605
38677
|
this.container.appendChild(this.trigger);
|
|
38606
38678
|
} else {
|
|
38607
|
-
|
|
38679
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_5__.Dom.safeRemove(this.trigger);
|
|
38608
38680
|
}
|
|
38609
38681
|
this.setMod('with-trigger', this.state.hasTrigger || null);
|
|
38610
38682
|
}
|
|
38611
38683
|
/** @override */ onChangeDisabled() {
|
|
38612
38684
|
const disabled = this.state.disabled ? 'disabled' : null;
|
|
38613
|
-
(0,
|
|
38614
|
-
(0,
|
|
38615
|
-
(0,
|
|
38685
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.trigger, 'disabled', disabled);
|
|
38686
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.button, 'disabled', disabled);
|
|
38687
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.container, 'disabled', disabled);
|
|
38616
38688
|
}
|
|
38617
38689
|
/**
|
|
38618
38690
|
* Init constant data from control
|
|
@@ -38622,22 +38694,22 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
38622
38694
|
this.updateSize();
|
|
38623
38695
|
state.name = ctr.name;
|
|
38624
38696
|
const { textIcons } = this.j.o;
|
|
38625
|
-
if (textIcons === true || (0,
|
|
38626
|
-
state.icon = (0,
|
|
38697
|
+
if (textIcons === true || (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_7__.isFunction)(textIcons) && textIcons(ctr.name) || ctr.template) {
|
|
38698
|
+
state.icon = (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_16__.UIButtonState)().icon;
|
|
38627
38699
|
state.text = ctr.text || ctr.name;
|
|
38628
38700
|
} else {
|
|
38629
38701
|
if (ctr.iconURL) {
|
|
38630
38702
|
state.icon.iconURL = ctr.iconURL;
|
|
38631
38703
|
} else {
|
|
38632
38704
|
const name = ctr.icon || ctr.name;
|
|
38633
|
-
state.icon.name =
|
|
38705
|
+
state.icon.name = _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_18__.Icon.exists(name) || ((_a = this.j.o.extraIcons) === null || _a === void 0 ? void 0 : _a[name]) ? name : '';
|
|
38634
38706
|
}
|
|
38635
38707
|
if (!ctr.iconURL && !state.icon.name) {
|
|
38636
38708
|
state.text = ctr.text || ctr.name;
|
|
38637
38709
|
}
|
|
38638
38710
|
}
|
|
38639
38711
|
if (ctr.tooltip) {
|
|
38640
|
-
state.tooltip = (0,
|
|
38712
|
+
state.tooltip = (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_7__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
38641
38713
|
}
|
|
38642
38714
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
38643
38715
|
}
|
|
@@ -38656,15 +38728,15 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
38656
38728
|
if (ctr.list) {
|
|
38657
38729
|
return this.__openControlList(ctr);
|
|
38658
38730
|
}
|
|
38659
|
-
if ((0,
|
|
38731
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_7__.isFunction)(ctr.popup)) {
|
|
38660
38732
|
const popup = this.openPopup();
|
|
38661
38733
|
popup.parentElement = this;
|
|
38662
38734
|
try {
|
|
38663
|
-
if (this.j.e.fire((0,
|
|
38735
|
+
if (this.j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_12__.camelCase)(`before-${ctr.name}-open-popup`), this.target, ctr, popup) !== false) {
|
|
38664
38736
|
const target = (_c = (_b = (_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.getTarget(this)) !== null && _b !== void 0 ? _b : this.target) !== null && _c !== void 0 ? _c : null;
|
|
38665
38737
|
const elm = ctr.popup(this.j, target, this.__closePopup, this);
|
|
38666
38738
|
if (elm) {
|
|
38667
|
-
popup.setContent((0,
|
|
38739
|
+
popup.setContent((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_10__.isString)(elm) ? this.j.c.fromHTML(elm) : elm).open(()=>(0,_core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_11__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
38668
38740
|
} else {
|
|
38669
38741
|
this.__closePopup();
|
|
38670
38742
|
}
|
|
@@ -38677,27 +38749,29 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
38677
38749
|
* Fired after the popup was opened for some control button
|
|
38678
38750
|
*/ /**
|
|
38679
38751
|
* Close all opened popups
|
|
38680
|
-
*/ this.j.e.fire((0,
|
|
38752
|
+
*/ this.j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_12__.camelCase)(`after-${ctr.name}-open-popup`), popup.container);
|
|
38681
38753
|
}
|
|
38682
38754
|
}
|
|
38683
38755
|
/**
|
|
38684
38756
|
* Create an open popup list
|
|
38685
38757
|
*/ __openControlList(control) {
|
|
38686
38758
|
var _a;
|
|
38687
|
-
const controls = (_a = this.jodit.options.controls) !== null && _a !== void 0 ? _a : {}, getControl = (key)=>(0,
|
|
38688
|
-
const list = control.list
|
|
38759
|
+
const controls = (_a = this.jodit.options.controls) !== null && _a !== void 0 ? _a : {}, getControl = (key)=>(0,_core_ui_helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_17__.findControlType)(key, controls);
|
|
38760
|
+
const list = control.list;
|
|
38761
|
+
const menu = this.openPopup();
|
|
38762
|
+
const toolbar = (0,_factory_js__WEBPACK_IMPORTED_MODULE_20__.makeCollection)(this.j);
|
|
38689
38763
|
menu.parentElement = this;
|
|
38690
38764
|
toolbar.parentElement = menu;
|
|
38691
38765
|
toolbar.mode = 'vertical';
|
|
38692
|
-
const isListItem = (key)=>(0,
|
|
38766
|
+
const isListItem = (key)=>(0,_core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_9__.isPlainObject)(key) && 'title' in key && 'value' in key;
|
|
38693
38767
|
const getButton = (key, value)=>{
|
|
38694
|
-
if ((0,
|
|
38768
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_10__.isString)(value) && getControl(value)) {
|
|
38695
38769
|
return {
|
|
38696
38770
|
name: value.toString(),
|
|
38697
38771
|
...getControl(value)
|
|
38698
38772
|
};
|
|
38699
38773
|
}
|
|
38700
|
-
if ((0,
|
|
38774
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_10__.isString)(key) && getControl(key)) {
|
|
38701
38775
|
return {
|
|
38702
38776
|
name: key.toString(),
|
|
38703
38777
|
...getControl(key),
|
|
@@ -38731,26 +38805,26 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
38731
38805
|
value
|
|
38732
38806
|
]
|
|
38733
38807
|
};
|
|
38734
|
-
if ((0,
|
|
38808
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_10__.isString)(value)) {
|
|
38735
38809
|
childControl.text = value;
|
|
38736
38810
|
}
|
|
38737
38811
|
return childControl;
|
|
38738
38812
|
};
|
|
38739
|
-
toolbar.build((0,
|
|
38740
|
-
menu.setContent(toolbar).open(()=>(0,
|
|
38813
|
+
toolbar.build((0,_core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_6__.isArray)(list) ? list.map(getButton) : (0,_core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_15__.keys)(list, false).map((key)=>getButton(key, list[key])), this.target);
|
|
38814
|
+
menu.setContent(toolbar).open(()=>(0,_core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_11__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
38741
38815
|
this.state.activated = true;
|
|
38742
38816
|
}
|
|
38743
38817
|
onOutsideClick(e) {
|
|
38744
38818
|
if (!this.openedPopup) {
|
|
38745
38819
|
return;
|
|
38746
38820
|
}
|
|
38747
|
-
if (!e || !
|
|
38821
|
+
if (!e || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_5__.Dom.isNode(e.target) || !_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_5__.Dom.isOrContains(this.container, e.target) && !this.openedPopup.isOwnClick(e)) {
|
|
38748
38822
|
this.__closePopup();
|
|
38749
38823
|
}
|
|
38750
38824
|
}
|
|
38751
38825
|
openPopup() {
|
|
38752
38826
|
this.__closePopup();
|
|
38753
|
-
this.openedPopup = new
|
|
38827
|
+
this.openedPopup = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_19__.Popup(this.j, false);
|
|
38754
38828
|
this.j.e.on(this.ow, 'mousedown touchstart', this.onOutsideClick).on('escape closeAllPopups', this.onOutsideClick);
|
|
38755
38829
|
return this.openedPopup;
|
|
38756
38830
|
}
|
|
@@ -38768,7 +38842,7 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
38768
38842
|
*/ onClick(originalEvent) {
|
|
38769
38843
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
38770
38844
|
const { control: ctr } = this;
|
|
38771
|
-
if ((0,
|
|
38845
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_7__.isFunction)(ctr.exec)) {
|
|
38772
38846
|
const target = (_c = (_b = (_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.getTarget(this)) !== null && _b !== void 0 ? _b : this.target) !== null && _c !== void 0 ? _c : null;
|
|
38773
38847
|
const result = ctr.exec(this.j, target, {
|
|
38774
38848
|
control: ctr,
|
|
@@ -38792,11 +38866,11 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
38792
38866
|
if (ctr.list) {
|
|
38793
38867
|
return this.__openControlList(ctr);
|
|
38794
38868
|
}
|
|
38795
|
-
if ((0,
|
|
38869
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_7__.isFunction)(ctr.popup)) {
|
|
38796
38870
|
return this.onTriggerClick(originalEvent);
|
|
38797
38871
|
}
|
|
38798
38872
|
if (ctr.command || ctr.name) {
|
|
38799
|
-
(0,
|
|
38873
|
+
(0,_core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_15__.call)((0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_8__.isJoditObject)(this.j) ? this.j.execCommand.bind(this.j) : this.j.od.execCommand.bind(this.j.od), ctr.command || ctr.name, false, ctr.args && ctr.args[0]);
|
|
38800
38874
|
this.j.e.fire('closeAllPopups');
|
|
38801
38875
|
}
|
|
38802
38876
|
}
|
|
@@ -38809,21 +38883,21 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
38809
38883
|
this.control = control;
|
|
38810
38884
|
this.target = target;
|
|
38811
38885
|
this.state = {
|
|
38812
|
-
...(0,
|
|
38886
|
+
...(0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_16__.UIButtonState)(),
|
|
38813
38887
|
theme: 'toolbar',
|
|
38814
38888
|
currentValue: '',
|
|
38815
38889
|
hasTrigger: false
|
|
38816
38890
|
};
|
|
38817
38891
|
this.openedPopup = null;
|
|
38818
38892
|
const button = this.getElm('button');
|
|
38819
|
-
(0,
|
|
38893
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_13__.assert)(button, 'Element button should exists');
|
|
38820
38894
|
this.button = button;
|
|
38821
38895
|
Object.defineProperty(button, 'component', {
|
|
38822
38896
|
value: this,
|
|
38823
38897
|
configurable: true
|
|
38824
38898
|
});
|
|
38825
38899
|
const trigger = this.getElm('trigger');
|
|
38826
|
-
(0,
|
|
38900
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_13__.assert)(trigger, 'Element trigger should exists');
|
|
38827
38901
|
this.trigger = trigger;
|
|
38828
38902
|
trigger.remove();
|
|
38829
38903
|
// Prevent lost focus
|
|
@@ -38844,24 +38918,24 @@ let ToolbarButton = class ToolbarButton extends _core_ui_button_index_js__WEBPAC
|
|
|
38844
38918
|
}
|
|
38845
38919
|
};
|
|
38846
38920
|
__decorate([
|
|
38847
|
-
|
|
38921
|
+
_core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_2__.cacheHTML
|
|
38848
38922
|
], ToolbarButton.prototype, "createContainer", null);
|
|
38849
38923
|
__decorate([
|
|
38850
|
-
(0,
|
|
38924
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_4__.watch)('state.hasTrigger', {
|
|
38851
38925
|
immediately: false
|
|
38852
38926
|
})
|
|
38853
38927
|
], ToolbarButton.prototype, "onChangeHasTrigger", null);
|
|
38854
38928
|
__decorate([
|
|
38855
|
-
(0,
|
|
38929
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_4__.watch)('trigger:click')
|
|
38856
38930
|
], ToolbarButton.prototype, "onTriggerClick", null);
|
|
38857
38931
|
__decorate([
|
|
38858
|
-
|
|
38932
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
38859
38933
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
38860
38934
|
__decorate([
|
|
38861
|
-
|
|
38935
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
38862
38936
|
], ToolbarButton.prototype, "__closePopup", null);
|
|
38863
38937
|
ToolbarButton = __decorate([
|
|
38864
|
-
|
|
38938
|
+
_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_3__.component
|
|
38865
38939
|
], ToolbarButton);
|
|
38866
38940
|
|
|
38867
38941
|
|
|
@@ -38908,8 +38982,8 @@ ToolbarButton = __decorate([
|
|
|
38908
38982
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
38909
38983
|
/* harmony export */ History: function() { return /* binding */ History; }
|
|
38910
38984
|
/* harmony export */ });
|
|
38911
|
-
/* harmony import */ var
|
|
38912
|
-
/* harmony import */ var
|
|
38985
|
+
/* harmony import */ var _core_component_view_component_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80480);
|
|
38986
|
+
/* harmony import */ var _core_decorators_debounce_debounce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81577);
|
|
38913
38987
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6441);
|
|
38914
38988
|
/* harmony import */ var _command_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(92643);
|
|
38915
38989
|
/* harmony import */ var _snapshot_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52604);
|
|
@@ -38937,7 +39011,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.history = {
|
|
|
38937
39011
|
};
|
|
38938
39012
|
/**
|
|
38939
39013
|
* The module monitors the status of the editor and creates / deletes the required number of Undo / Redo shots .
|
|
38940
|
-
*/ class History extends
|
|
39014
|
+
*/ class History extends _core_component_view_component_js__WEBPACK_IMPORTED_MODULE_0__.ViewComponent {
|
|
38941
39015
|
/** @override */ className() {
|
|
38942
39016
|
return 'History';
|
|
38943
39017
|
}
|
|
@@ -39060,7 +39134,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.history = {
|
|
|
39060
39134
|
}
|
|
39061
39135
|
}
|
|
39062
39136
|
__decorate([
|
|
39063
|
-
(0,
|
|
39137
|
+
(0,_core_decorators_debounce_debounce_js__WEBPACK_IMPORTED_MODULE_1__.debounce)()
|
|
39064
39138
|
], History.prototype, "onChange", null);
|
|
39065
39139
|
|
|
39066
39140
|
|
|
@@ -41209,7 +41283,8 @@ const getClassName = (obj)=>{
|
|
|
41209
41283
|
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
41210
41284
|
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10058);
|
|
41211
41285
|
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97420);
|
|
41212
|
-
/* harmony import */ var
|
|
41286
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers_calc_list_levels__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31269);
|
|
41287
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(43712);
|
|
41213
41288
|
/*!
|
|
41214
41289
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41215
41290
|
* See LICENSE.md in the project root for license information.
|
|
@@ -41218,6 +41293,7 @@ const getClassName = (obj)=>{
|
|
|
41218
41293
|
|
|
41219
41294
|
|
|
41220
41295
|
|
|
41296
|
+
|
|
41221
41297
|
function convertToList(elm) {
|
|
41222
41298
|
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__.isPseudoLeaf)(elm)) {
|
|
41223
41299
|
elm.name = 'li';
|
|
@@ -41225,7 +41301,7 @@ function convertToList(elm) {
|
|
|
41225
41301
|
const symbol = getSymbol(elm), listType = /[\da-np-zA-NP-Z].?/.test(symbol) ? 'ol' : 'ul', listStyle = defineOrderedListStyle(symbol, listType);
|
|
41226
41302
|
elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__.TYPE_KEY] = listType;
|
|
41227
41303
|
elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__.STYLE_KEY] = listStyle;
|
|
41228
|
-
(0,
|
|
41304
|
+
(0,jodit_pro_plugins_paste_from_word_helpers_calc_list_levels__WEBPACK_IMPORTED_MODULE_3__.calcListLevels)(elm);
|
|
41229
41305
|
moveUp(elm);
|
|
41230
41306
|
const { parent } = elm;
|
|
41231
41307
|
// After move up we inside List or Leaf
|
|
@@ -41288,7 +41364,7 @@ function defineOrderedListStyle(symbol, listType) {
|
|
|
41288
41364
|
const getSymbol = (elm)=>elm.textBetween((n)=>n.isComment && /\[if.*supportLists.*]/.test((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__.html)(n)), (n)=>n.isComment && /\[endif]/.test((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__.html)(n))).replace(/ /g, '').replace((0,jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_0__.SPACE_REG_EXP)(), '');
|
|
41289
41365
|
function wrapInNewList(elm, listType, symbol, listStyle) {
|
|
41290
41366
|
const newList = elm.wrap(listType);
|
|
41291
|
-
newList.attributes['start'] = (0,
|
|
41367
|
+
newList.attributes['start'] = (0,jodit_pro_plugins_paste_from_word_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__.calcStartBySymbol)(symbol);
|
|
41292
41368
|
newList.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__.LEVEL_KEY] = elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__.LEVEL_KEY];
|
|
41293
41369
|
newList.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__.STYLE_KEY] = elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__.STYLE_KEY];
|
|
41294
41370
|
newList.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__.STYLE_VALID_KEY] = elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__.STYLE_KEY];
|
|
@@ -42334,9 +42410,10 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('cleanHtml', clean
|
|
|
42334
42410
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42335
42411
|
/* harmony export */ wrapList: function() { return /* binding */ wrapList; }
|
|
42336
42412
|
/* harmony export */ });
|
|
42337
|
-
/* harmony import */ var
|
|
42338
|
-
/* harmony import */ var
|
|
42339
|
-
/* harmony import */ var
|
|
42413
|
+
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2748);
|
|
42414
|
+
/* harmony import */ var _is_same_attributes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94466);
|
|
42415
|
+
/* harmony import */ var _toggle_attributes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44253);
|
|
42416
|
+
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(77361);
|
|
42340
42417
|
/*!
|
|
42341
42418
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
42342
42419
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -42344,32 +42421,33 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('cleanHtml', clean
|
|
|
42344
42421
|
*/
|
|
42345
42422
|
|
|
42346
42423
|
|
|
42424
|
+
|
|
42347
42425
|
/**
|
|
42348
42426
|
* Replaces non-leaf items with leaf items and either creates a new list or
|
|
42349
42427
|
* adds a new item to the nearest old list
|
|
42350
42428
|
* @private
|
|
42351
42429
|
*/ function wrapList(commitStyle, wrapper, jodit) {
|
|
42352
|
-
const result = jodit.e.fire(`${
|
|
42353
|
-
const newWrapper = result !== null && result !== void 0 ? result :
|
|
42430
|
+
const result = jodit.e.fire(`${_constants_js__WEBPACK_IMPORTED_MODULE_3__._PREFIX}BeforeWrapList`, _constants_js__WEBPACK_IMPORTED_MODULE_3__.REPLACE, wrapper, commitStyle);
|
|
42431
|
+
const newWrapper = result !== null && result !== void 0 ? result : _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.replace(wrapper, 'li', jodit.createInside);
|
|
42354
42432
|
const prev = newWrapper.previousElementSibling;
|
|
42355
42433
|
const next = newWrapper.nextElementSibling;
|
|
42356
|
-
let list =
|
|
42357
|
-
list !== null && list !== void 0 ? list : list =
|
|
42358
|
-
if (!
|
|
42434
|
+
let list = _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(prev, commitStyle.element) ? prev : null;
|
|
42435
|
+
list !== null && list !== void 0 ? list : list = _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(next, commitStyle.element) ? next : null;
|
|
42436
|
+
if (!_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isList(list) || !(0,_is_same_attributes_js__WEBPACK_IMPORTED_MODULE_1__.isSameAttributes)(list, commitStyle.options.attributes)) {
|
|
42359
42437
|
list = jodit.createInside.element(commitStyle.element);
|
|
42360
|
-
(0,
|
|
42361
|
-
|
|
42438
|
+
(0,_toggle_attributes_js__WEBPACK_IMPORTED_MODULE_2__.toggleAttributes)(commitStyle, list, jodit, _constants_js__WEBPACK_IMPORTED_MODULE_3__.INITIAL);
|
|
42439
|
+
_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.before(newWrapper, list);
|
|
42362
42440
|
}
|
|
42363
42441
|
if (prev === list) {
|
|
42364
|
-
|
|
42442
|
+
_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, newWrapper);
|
|
42365
42443
|
} else {
|
|
42366
|
-
|
|
42444
|
+
_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.prepend(list, newWrapper);
|
|
42367
42445
|
}
|
|
42368
|
-
if (
|
|
42369
|
-
|
|
42370
|
-
|
|
42446
|
+
if (_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(list.nextElementSibling, commitStyle.element) && (0,_is_same_attributes_js__WEBPACK_IMPORTED_MODULE_1__.elementsEqualAttributes)(list, list.nextElementSibling)) {
|
|
42447
|
+
_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, Array.from(list.nextElementSibling.childNodes));
|
|
42448
|
+
_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(list.nextElementSibling);
|
|
42371
42449
|
}
|
|
42372
|
-
jodit.e.fire(`${
|
|
42450
|
+
jodit.e.fire(`${_constants_js__WEBPACK_IMPORTED_MODULE_3__._PREFIX}AfterWrapList`, _constants_js__WEBPACK_IMPORTED_MODULE_3__.WRAP, list, commitStyle);
|
|
42373
42451
|
return list;
|
|
42374
42452
|
}
|
|
42375
42453
|
|
|
@@ -42522,7 +42600,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
42522
42600
|
* ```
|
|
42523
42601
|
* @packageDocumentation
|
|
42524
42602
|
* @module constants
|
|
42525
|
-
*/ const APP_VERSION = "4.
|
|
42603
|
+
*/ const APP_VERSION = "4.9.2";
|
|
42526
42604
|
// prettier-ignore
|
|
42527
42605
|
const ES = "es2021";
|
|
42528
42606
|
const IS_ES_MODERN = true;
|
|
@@ -44908,13 +44986,19 @@ const dataBind = (elm, key, value)=>{
|
|
|
44908
44986
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
44909
44987
|
|
|
44910
44988
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44911
|
-
/* harmony export */ component: function() { return /* binding */ component; }
|
|
44989
|
+
/* harmony export */ component: function() { return /* binding */ component; },
|
|
44990
|
+
/* harmony export */ getComponentClass: function() { return /* binding */ getComponentClass; }
|
|
44912
44991
|
/* harmony export */ });
|
|
44992
|
+
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
44993
|
+
/* harmony import */ var _helpers_utils_get_class_name_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80568);
|
|
44913
44994
|
/*!
|
|
44914
44995
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
44915
44996
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
44916
44997
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
44917
|
-
*/
|
|
44998
|
+
*/
|
|
44999
|
+
|
|
45000
|
+
const componentRegistry = new Map();
|
|
45001
|
+
/**
|
|
44918
45002
|
* Decorate components and set status isReady after constructor
|
|
44919
45003
|
* @param constructorFunction - Component constructor class
|
|
44920
45004
|
*/ function component(constructorFunction) {
|
|
@@ -44933,8 +45017,16 @@ const dataBind = (elm, key, value)=>{
|
|
|
44933
45017
|
}
|
|
44934
45018
|
}
|
|
44935
45019
|
}
|
|
45020
|
+
const name = (0,_helpers_utils_get_class_name_js__WEBPACK_IMPORTED_MODULE_1__.getClassName)(constructorFunction.prototype);
|
|
45021
|
+
if (componentRegistry.has(name) && !_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
45022
|
+
throw new Error(`Component with name "${name}" is already registered`);
|
|
45023
|
+
}
|
|
45024
|
+
componentRegistry.set(name, newConstructorFunction);
|
|
44936
45025
|
return newConstructorFunction;
|
|
44937
45026
|
}
|
|
45027
|
+
function getComponentClass(name) {
|
|
45028
|
+
return componentRegistry.get(name);
|
|
45029
|
+
}
|
|
44938
45030
|
|
|
44939
45031
|
|
|
44940
45032
|
/***/ }),
|
|
@@ -45337,7 +45429,6 @@ _config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.controls.symbols = {
|
|
|
45337
45429
|
/* harmony export */ abort: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.abort; },
|
|
45338
45430
|
/* harmony export */ connection: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.connection; },
|
|
45339
45431
|
/* harmony export */ error: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.error; },
|
|
45340
|
-
/* harmony export */ isAbort: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.isAbort; },
|
|
45341
45432
|
/* harmony export */ options: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.options; }
|
|
45342
45433
|
/* harmony export */ });
|
|
45343
45434
|
/* harmony import */ var _error_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82760);
|
|
@@ -46987,23 +47078,15 @@ __decorate([
|
|
|
46987
47078
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
46988
47079
|
|
|
46989
47080
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
46990
|
-
/* harmony export */ abort: function() { return /* binding */ abort; }
|
|
46991
|
-
/* harmony export */ isAbort: function() { return /* binding */ isAbort; }
|
|
47081
|
+
/* harmony export */ abort: function() { return /* binding */ abort; }
|
|
46992
47082
|
/* harmony export */ });
|
|
46993
|
-
/* harmony import */ var _checker_is_abort_error_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12045);
|
|
46994
47083
|
/*!
|
|
46995
47084
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
46996
47085
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
46997
47086
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
46998
|
-
*/
|
|
46999
|
-
* @module helpers/utils
|
|
47000
|
-
*/
|
|
47001
|
-
function abort(message = 'Aborted') {
|
|
47087
|
+
*/ function abort(message = 'Aborted') {
|
|
47002
47088
|
return new DOMException(message, 'AbortError');
|
|
47003
47089
|
}
|
|
47004
|
-
/**
|
|
47005
|
-
* @deprecated use `isAbortError` instead
|
|
47006
|
-
*/ const isAbort = _checker_is_abort_error_js__WEBPACK_IMPORTED_MODULE_0__.isAbortError;
|
|
47007
47090
|
|
|
47008
47091
|
|
|
47009
47092
|
/***/ }),
|