jodit-pro 4.8.13 → 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/es5/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
|
*/
|
|
@@ -611,16 +611,16 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('enter', enter);
|
|
|
611
611
|
/* harmony export */ pluginSystem: function() { return /* binding */ pluginSystem; },
|
|
612
612
|
/* harmony export */ uniqueUid: function() { return /* binding */ uniqueUid; }
|
|
613
613
|
/* harmony export */ });
|
|
614
|
-
/* harmony import */ var
|
|
615
|
-
/* harmony import */ var
|
|
616
|
-
/* harmony import */ var
|
|
617
|
-
/* harmony import */ var
|
|
618
|
-
/* harmony import */ var
|
|
614
|
+
/* harmony import */ var _helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19306);
|
|
615
|
+
/* harmony import */ var _helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70799);
|
|
616
|
+
/* harmony import */ var _helpers_checker_is_view_object_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(39955);
|
|
617
|
+
/* harmony import */ var _helpers_string_kebab_case_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12475);
|
|
618
|
+
/* harmony import */ var _helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41180);
|
|
619
619
|
/* harmony import */ var _helpers_utils_get_class_name_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(80568);
|
|
620
620
|
/* harmony import */ var _plugin_plugin_system_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(41876);
|
|
621
|
-
/* harmony import */ var
|
|
622
|
-
/* harmony import */ var
|
|
623
|
-
/* harmony import */ var
|
|
621
|
+
/* harmony import */ var _event_emitter_global_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(57012);
|
|
622
|
+
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(82758);
|
|
623
|
+
/* harmony import */ var _dom_index_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(22732);
|
|
624
624
|
/*!
|
|
625
625
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
626
626
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -652,14 +652,16 @@ var uuids = new Set();
|
|
|
652
652
|
uuids.add(uid);
|
|
653
653
|
return uid;
|
|
654
654
|
}
|
|
655
|
-
var pluginSystem = new _plugin_plugin_system_js__WEBPACK_IMPORTED_MODULE_6__.PluginSystem(
|
|
655
|
+
var pluginSystem = new _plugin_plugin_system_js__WEBPACK_IMPORTED_MODULE_6__.PluginSystem({
|
|
656
|
+
getContainer: getContainer
|
|
657
|
+
});
|
|
656
658
|
var modules = {};
|
|
657
659
|
var extendLang = function extendLang(langs) {
|
|
658
660
|
Object.keys(langs).forEach(function(key) {
|
|
659
|
-
if (
|
|
660
|
-
Object.assign(
|
|
661
|
+
if (_constants_js__WEBPACK_IMPORTED_MODULE_8__.lang[key]) {
|
|
662
|
+
Object.assign(_constants_js__WEBPACK_IMPORTED_MODULE_8__.lang[key], langs[key]);
|
|
661
663
|
} else {
|
|
662
|
-
|
|
664
|
+
_constants_js__WEBPACK_IMPORTED_MODULE_8__.lang[key] = langs[key];
|
|
663
665
|
}
|
|
664
666
|
});
|
|
665
667
|
};
|
|
@@ -668,27 +670,27 @@ var boxes = new WeakMap();
|
|
|
668
670
|
* Create unique box(HTMLCotainer) and remove it after destroy
|
|
669
671
|
*/ function getContainer(jodit, classFunc) {
|
|
670
672
|
var tag = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 'div', createInsideEditor = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
|
|
671
|
-
var name = (0,
|
|
673
|
+
var 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';
|
|
672
674
|
var data = boxes.get(jodit) || {}, key = name + tag;
|
|
673
|
-
var view = (0,
|
|
675
|
+
var view = (0,_helpers_checker_is_view_object_js__WEBPACK_IMPORTED_MODULE_2__.isViewObject)(jodit) ? jodit : jodit.j;
|
|
674
676
|
var body = null;
|
|
675
677
|
if (!data[key]) {
|
|
676
678
|
var c = view.c;
|
|
677
679
|
body = getPopupViewRoot(view.o, view.container, jodit.od.body);
|
|
678
|
-
if (createInsideEditor && (0,
|
|
680
|
+
if (createInsideEditor && (0,_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.od !== jodit.ed) {
|
|
679
681
|
c = jodit.createInside;
|
|
680
682
|
var place = tag === 'style' ? jodit.ed.head : jodit.ed.body;
|
|
681
|
-
body = (0,
|
|
683
|
+
body = (0,_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.o.shadowRoot ? jodit.o.shadowRoot : place;
|
|
682
684
|
}
|
|
683
685
|
var box = c.element(tag, {
|
|
684
|
-
className: "jodit jodit-".concat((0,
|
|
686
|
+
className: "jodit jodit-".concat((0,_helpers_string_kebab_case_js__WEBPACK_IMPORTED_MODULE_3__.kebabCase)(name), "-container jodit-box")
|
|
685
687
|
});
|
|
686
688
|
box.classList.add("jodit_theme_".concat(view.o.theme || 'default'));
|
|
687
689
|
body.appendChild(box);
|
|
688
690
|
data[key] = box;
|
|
689
691
|
jodit.hookStatus('beforeDestruct', function() {
|
|
690
692
|
view.events.off(box);
|
|
691
|
-
|
|
693
|
+
_dom_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(box);
|
|
692
694
|
delete data[key];
|
|
693
695
|
if (Object.keys(data).length) {
|
|
694
696
|
boxes.delete(jodit);
|
|
@@ -706,16 +708,17 @@ var boxes = new WeakMap();
|
|
|
706
708
|
* @internal
|
|
707
709
|
*/ function getPopupViewRoot(o, container, defaultRoot) {
|
|
708
710
|
var _a, _b, _c;
|
|
709
|
-
return (_c = (_b = (_a = o.popupRoot) !== null && _a !== void 0 ? _a : o.shadowRoot) !== null && _b !== void 0 ? _b :
|
|
710
|
-
return
|
|
711
|
+
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, function(parentElement) {
|
|
712
|
+
return _dom_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.isHTMLElement(parentElement) && (_dom_index_js__WEBPACK_IMPORTED_MODULE_9__.Dom.isTag(parentElement, 'dialog') || [
|
|
711
713
|
'fixed',
|
|
712
714
|
'absolute'
|
|
713
|
-
].includes((0,
|
|
715
|
+
].includes((0,_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_4__.css)(parentElement, 'position')));
|
|
714
716
|
}, defaultRoot)) !== null && _c !== void 0 ? _c : defaultRoot;
|
|
715
717
|
}
|
|
716
718
|
/**
|
|
717
719
|
* Global event emitter
|
|
718
|
-
|
|
720
|
+
* @deprecated use `import { eventEmitter } from 'jodit/core/event-emitter/global';`
|
|
721
|
+
*/ var eventEmitter = _event_emitter_global_js__WEBPACK_IMPORTED_MODULE_7__.eventEmitter;
|
|
719
722
|
|
|
720
723
|
|
|
721
724
|
/***/ }),
|
|
@@ -4363,7 +4366,6 @@ function clearUseIndexedDBCache() {
|
|
|
4363
4366
|
/* harmony import */ var jodit_esm_core_helpers_utils_append_script__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(63799);
|
|
4364
4367
|
/* harmony import */ var jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(41180);
|
|
4365
4368
|
/* harmony import */ var jodit_esm_index__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(86019);
|
|
4366
|
-
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(33730);
|
|
4367
4369
|
|
|
4368
4370
|
|
|
4369
4371
|
|
|
@@ -4382,7 +4384,6 @@ function clearUseIndexedDBCache() {
|
|
|
4382
4384
|
|
|
4383
4385
|
|
|
4384
4386
|
|
|
4385
|
-
|
|
4386
4387
|
var JoditPro = /*#__PURE__*/ function(Jodit) {
|
|
4387
4388
|
"use strict";
|
|
4388
4389
|
(0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__._)(JoditPro, Jodit);
|
|
@@ -4452,6 +4453,13 @@ var JoditPro = /*#__PURE__*/ function(Jodit) {
|
|
|
4452
4453
|
return 'PRO ' + jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_8__.APP_VERSION;
|
|
4453
4454
|
}
|
|
4454
4455
|
}
|
|
4456
|
+
], [
|
|
4457
|
+
{
|
|
4458
|
+
key: "make",
|
|
4459
|
+
value: function make(element, options) {
|
|
4460
|
+
return new this(element, options);
|
|
4461
|
+
}
|
|
4462
|
+
}
|
|
4455
4463
|
]);
|
|
4456
4464
|
return JoditPro;
|
|
4457
4465
|
}(jodit_esm_index__WEBPACK_IMPORTED_MODULE_11__.Jodit);
|
|
@@ -4467,9 +4475,19 @@ var JoditPro = /*#__PURE__*/ function(Jodit) {
|
|
|
4467
4475
|
/* harmony export */ });
|
|
4468
4476
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
4469
4477
|
/* harmony import */ var _helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(4510);
|
|
4470
|
-
/* harmony import */ var
|
|
4471
|
-
/* harmony import */ var
|
|
4472
|
-
/* harmony import */ var
|
|
4478
|
+
/* harmony import */ var _helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(68345);
|
|
4479
|
+
/* harmony import */ var _helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23282);
|
|
4480
|
+
/* harmony import */ var _helpers_checker_is_html_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(58487);
|
|
4481
|
+
/* harmony import */ var _helpers_checker_is_set_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(42320);
|
|
4482
|
+
/* harmony import */ var _helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(70799);
|
|
4483
|
+
/* harmony import */ var _helpers_checker_is_void_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(86068);
|
|
4484
|
+
/* harmony import */ var _helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(49055);
|
|
4485
|
+
/* harmony import */ var _helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38837);
|
|
4486
|
+
/* harmony import */ var _helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(29960);
|
|
4487
|
+
/* harmony import */ var _helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(41180);
|
|
4488
|
+
/* harmony import */ var _helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(86583);
|
|
4489
|
+
/* harmony import */ var _helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(89890);
|
|
4490
|
+
/* harmony import */ var _helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(37790);
|
|
4473
4491
|
function _class_call_check(instance, Constructor) {
|
|
4474
4492
|
if (!(instance instanceof Constructor)) {
|
|
4475
4493
|
throw new TypeError("Cannot call a class as a function");
|
|
@@ -4623,6 +4641,16 @@ function _ts_values(o) {
|
|
|
4623
4641
|
|
|
4624
4642
|
|
|
4625
4643
|
|
|
4644
|
+
|
|
4645
|
+
|
|
4646
|
+
|
|
4647
|
+
|
|
4648
|
+
|
|
4649
|
+
|
|
4650
|
+
|
|
4651
|
+
|
|
4652
|
+
|
|
4653
|
+
|
|
4626
4654
|
/**
|
|
4627
4655
|
* Module for working with DOM
|
|
4628
4656
|
*/ var Dom = /*#__PURE__*/ function() {
|
|
@@ -4666,7 +4694,7 @@ function _ts_values(o) {
|
|
|
4666
4694
|
{
|
|
4667
4695
|
key: "__wrapElements",
|
|
4668
4696
|
value: function __wrapElements(tag, editor, first, last) {
|
|
4669
|
-
var wrapper = (0,
|
|
4697
|
+
var wrapper = (0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__.isString)(tag) ? editor.createInside.element(tag) : tag;
|
|
4670
4698
|
if (first.parentNode) {
|
|
4671
4699
|
first.parentNode.insertBefore(wrapper, first);
|
|
4672
4700
|
}
|
|
@@ -4717,10 +4745,10 @@ function _ts_values(o) {
|
|
|
4717
4745
|
value: /**
|
|
4718
4746
|
* Wrap node inside another node
|
|
4719
4747
|
*/ function wrap(current, tag, create) {
|
|
4720
|
-
var wrapper = (0,
|
|
4748
|
+
var wrapper = (0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__.isString)(tag) ? create.element(tag) : tag;
|
|
4721
4749
|
if (Dom.isNode(current)) {
|
|
4722
4750
|
if (!current.parentNode) {
|
|
4723
|
-
throw (0,
|
|
4751
|
+
throw (0,_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_13__.error)('Element should be in DOM');
|
|
4724
4752
|
}
|
|
4725
4753
|
current.parentNode.insertBefore(wrapper, current);
|
|
4726
4754
|
wrapper.appendChild(current);
|
|
@@ -4771,13 +4799,13 @@ function _ts_values(o) {
|
|
|
4771
4799
|
key: "replace",
|
|
4772
4800
|
value: function replace(elm, newTagName, create) {
|
|
4773
4801
|
var withAttributes = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false, notMoveContent = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
|
|
4774
|
-
if ((0,
|
|
4775
|
-
(0,
|
|
4802
|
+
if ((0,_helpers_checker_is_html_js__WEBPACK_IMPORTED_MODULE_4__.isHTML)(newTagName)) {
|
|
4803
|
+
(0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(create, 'Need create instance for new tag');
|
|
4776
4804
|
newTagName = create.fromHTML(newTagName);
|
|
4777
4805
|
}
|
|
4778
4806
|
var tag;
|
|
4779
|
-
if ((0,
|
|
4780
|
-
(0,
|
|
4807
|
+
if ((0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__.isString)(newTagName)) {
|
|
4808
|
+
(0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_9__.assert)(create, 'Need create instance for new tag');
|
|
4781
4809
|
tag = create.element(newTagName);
|
|
4782
4810
|
} else {
|
|
4783
4811
|
tag = newTagName;
|
|
@@ -4835,7 +4863,7 @@ function _ts_values(o) {
|
|
|
4835
4863
|
return true;
|
|
4836
4864
|
}
|
|
4837
4865
|
var cond;
|
|
4838
|
-
if (!(0,
|
|
4866
|
+
if (!(0,_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(condNoEmptyElement)) {
|
|
4839
4867
|
cond = function cond(elm) {
|
|
4840
4868
|
return condNoEmptyElement.has(elm.nodeName.toLowerCase());
|
|
4841
4869
|
};
|
|
@@ -4843,7 +4871,7 @@ function _ts_values(o) {
|
|
|
4843
4871
|
cond = condNoEmptyElement;
|
|
4844
4872
|
}
|
|
4845
4873
|
var emptyText = function emptyText(node) {
|
|
4846
|
-
return node.nodeValue == null || (0,
|
|
4874
|
+
return node.nodeValue == null || (0,_helpers_string_trim_js__WEBPACK_IMPORTED_MODULE_8__.trim)(node.nodeValue).length === 0;
|
|
4847
4875
|
};
|
|
4848
4876
|
if (Dom.isText(node)) {
|
|
4849
4877
|
return emptyText(node);
|
|
@@ -4861,7 +4889,7 @@ function _ts_values(o) {
|
|
|
4861
4889
|
* Returns true if it is a DOM node
|
|
4862
4890
|
*/ function isNode(object) {
|
|
4863
4891
|
// Duck-typing
|
|
4864
|
-
return Boolean(object && (0,
|
|
4892
|
+
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));
|
|
4865
4893
|
}
|
|
4866
4894
|
},
|
|
4867
4895
|
{
|
|
@@ -4902,7 +4930,7 @@ function _ts_values(o) {
|
|
|
4902
4930
|
* Check the `node` is a block element
|
|
4903
4931
|
* @param node - Object to check
|
|
4904
4932
|
*/ function isBlock(node) {
|
|
4905
|
-
return !(0,
|
|
4933
|
+
return !(0,_helpers_checker_is_void_js__WEBPACK_IMPORTED_MODULE_7__.isVoid)(node) && (typeof node === "undefined" ? "undefined" : _type_of(node)) === 'object' && Dom.isNode(node) && _constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_BLOCK.test(node.nodeName);
|
|
4906
4934
|
}
|
|
4907
4935
|
},
|
|
4908
4936
|
{
|
|
@@ -4968,7 +4996,7 @@ function _ts_values(o) {
|
|
|
4968
4996
|
return Dom.isElement(node) && !/^(BR|HR)$/i.test(node.tagName) && [
|
|
4969
4997
|
'inline',
|
|
4970
4998
|
'inline-block'
|
|
4971
|
-
].indexOf((0,
|
|
4999
|
+
].indexOf((0,_helpers_utils_css_js__WEBPACK_IMPORTED_MODULE_11__.css)(node, 'display').toString()) !== -1;
|
|
4972
5000
|
}
|
|
4973
5001
|
},
|
|
4974
5002
|
{
|
|
@@ -4976,7 +5004,7 @@ function _ts_values(o) {
|
|
|
4976
5004
|
value: /**
|
|
4977
5005
|
* It's block and it can be split
|
|
4978
5006
|
*/ function canSplitBlock(node) {
|
|
4979
|
-
return !(0,
|
|
5007
|
+
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);
|
|
4980
5008
|
}
|
|
4981
5009
|
},
|
|
4982
5010
|
{
|
|
@@ -5234,7 +5262,7 @@ function _ts_values(o) {
|
|
|
5234
5262
|
*/ function findNotEmptySibling(node, left) {
|
|
5235
5263
|
return Dom.findSibling(node, left, function(n) {
|
|
5236
5264
|
var _a;
|
|
5237
|
-
return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || ((_a = n.nodeValue) === null || _a === void 0 ? void 0 : _a.length) && (0,
|
|
5265
|
+
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));
|
|
5238
5266
|
});
|
|
5239
5267
|
}
|
|
5240
5268
|
},
|
|
@@ -5243,8 +5271,8 @@ function _ts_values(o) {
|
|
|
5243
5271
|
value: /**
|
|
5244
5272
|
* Returns the nearest non-empty neighbor
|
|
5245
5273
|
*/ function findNotEmptyNeighbor(node, left, root) {
|
|
5246
|
-
return (0,
|
|
5247
|
-
return Boolean(n && (!(Dom.isText(n) || Dom.isComment(n)) || (0,
|
|
5274
|
+
return (0,_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_14__.call)(left ? Dom.prev : Dom.next, node, function(n) {
|
|
5275
|
+
return 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));
|
|
5248
5276
|
}, root);
|
|
5249
5277
|
}
|
|
5250
5278
|
},
|
|
@@ -5286,10 +5314,10 @@ function _ts_values(o) {
|
|
|
5286
5314
|
var lc = function lc(s) {
|
|
5287
5315
|
return s.toLowerCase();
|
|
5288
5316
|
};
|
|
5289
|
-
if ((0,
|
|
5317
|
+
if ((0,_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_3__.isFunction)(tagsOrCondition)) {
|
|
5290
5318
|
condition = tagsOrCondition;
|
|
5291
|
-
} else if ((0,
|
|
5292
|
-
var set = (0,
|
|
5319
|
+
} 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)) {
|
|
5320
|
+
var set = (0,_helpers_checker_is_set_js__WEBPACK_IMPORTED_MODULE_5__.isSet)(tagsOrCondition) ? tagsOrCondition : new Set(tagsOrCondition.map(lc));
|
|
5293
5321
|
condition = function condition(tag) {
|
|
5294
5322
|
return Boolean(tag && set.has(lc(tag.nodeName)));
|
|
5295
5323
|
};
|
|
@@ -5371,7 +5399,7 @@ function _ts_values(o) {
|
|
|
5371
5399
|
key: "append",
|
|
5372
5400
|
value: function append(root, newElement) {
|
|
5373
5401
|
var _this = this;
|
|
5374
|
-
if ((0,
|
|
5402
|
+
if ((0,_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_2__.isArray)(newElement)) {
|
|
5375
5403
|
newElement.forEach(function(node) {
|
|
5376
5404
|
_this.append(root, node);
|
|
5377
5405
|
});
|
|
@@ -5463,7 +5491,7 @@ function _ts_values(o) {
|
|
|
5463
5491
|
if (!node) {
|
|
5464
5492
|
return;
|
|
5465
5493
|
}
|
|
5466
|
-
(0,
|
|
5494
|
+
(0,_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_12__.dataBind)(node, '__old_display', node.style.display);
|
|
5467
5495
|
node.style.display = 'none';
|
|
5468
5496
|
}
|
|
5469
5497
|
},
|
|
@@ -5475,7 +5503,7 @@ function _ts_values(o) {
|
|
|
5475
5503
|
if (!node) {
|
|
5476
5504
|
return;
|
|
5477
5505
|
}
|
|
5478
|
-
var display = (0,
|
|
5506
|
+
var display = (0,_helpers_utils_data_bind_js__WEBPACK_IMPORTED_MODULE_12__.dataBind)(node, '__old_display');
|
|
5479
5507
|
if (node.style.display === 'none') {
|
|
5480
5508
|
node.style.display = display || '';
|
|
5481
5509
|
}
|
|
@@ -5507,8 +5535,8 @@ function _ts_values(o) {
|
|
|
5507
5535
|
value: /**
|
|
5508
5536
|
* Marks an item as temporary
|
|
5509
5537
|
*/ function markTemporary(element, attributes) {
|
|
5510
|
-
attributes && (0,
|
|
5511
|
-
(0,
|
|
5538
|
+
attributes && (0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_10__.attr)(element, attributes);
|
|
5539
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_10__.attr)(element, _constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR, true);
|
|
5512
5540
|
return element;
|
|
5513
5541
|
}
|
|
5514
5542
|
},
|
|
@@ -5520,7 +5548,15 @@ function _ts_values(o) {
|
|
|
5520
5548
|
if (!Dom.isElement(element)) {
|
|
5521
5549
|
return false;
|
|
5522
5550
|
}
|
|
5523
|
-
return
|
|
5551
|
+
return Dom.isMarker(element) || (0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_10__.attr)(element, _constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR) === 'true';
|
|
5552
|
+
}
|
|
5553
|
+
},
|
|
5554
|
+
{
|
|
5555
|
+
key: "isMarker",
|
|
5556
|
+
value: /**
|
|
5557
|
+
* Define element is selection helper
|
|
5558
|
+
*/ function isMarker(elm) {
|
|
5559
|
+
return Dom.isNode(elm) && Dom.isTag(elm, 'span') && elm.hasAttribute('data-' + _constants_js__WEBPACK_IMPORTED_MODULE_0__.MARKER_CLASS);
|
|
5524
5560
|
}
|
|
5525
5561
|
},
|
|
5526
5562
|
{
|
|
@@ -5535,8 +5571,9 @@ function _ts_values(o) {
|
|
|
5535
5571
|
key: "temporaryList",
|
|
5536
5572
|
value: /**
|
|
5537
5573
|
* Get temporary list
|
|
5574
|
+
* @deprecated
|
|
5538
5575
|
*/ function temporaryList(root) {
|
|
5539
|
-
return (0,
|
|
5576
|
+
return (0,_helpers_array_to_array_js__WEBPACK_IMPORTED_MODULE_1__.toArray)(root.querySelectorAll("[".concat(_constants_js__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR, "]")));
|
|
5540
5577
|
}
|
|
5541
5578
|
}
|
|
5542
5579
|
]);
|
|
@@ -10658,14 +10695,16 @@ var formTemplate = function formTemplate(editor) {
|
|
|
10658
10695
|
/* harmony export */ UIButtonState: function() { return /* binding */ UIButtonState; }
|
|
10659
10696
|
/* harmony export */ });
|
|
10660
10697
|
/* harmony import */ var _component_statuses_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78213);
|
|
10661
|
-
/* harmony import */ var
|
|
10662
|
-
/* harmony import */ var
|
|
10663
|
-
/* harmony import */ var
|
|
10664
|
-
/* harmony import */ var
|
|
10665
|
-
/* harmony import */ var
|
|
10666
|
-
/* harmony import */ var
|
|
10667
|
-
/* harmony import */ var
|
|
10668
|
-
/* harmony import */ var
|
|
10698
|
+
/* harmony import */ var _decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(33433);
|
|
10699
|
+
/* harmony import */ var _decorators_component_component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87325);
|
|
10700
|
+
/* harmony import */ var _decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37133);
|
|
10701
|
+
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(2748);
|
|
10702
|
+
/* harmony import */ var _helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(23282);
|
|
10703
|
+
/* harmony import */ var _helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(70799);
|
|
10704
|
+
/* harmony import */ var _helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(38837);
|
|
10705
|
+
/* harmony import */ var _helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(29960);
|
|
10706
|
+
/* harmony import */ var _element_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(48538);
|
|
10707
|
+
/* harmony import */ var _icon_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(12153);
|
|
10669
10708
|
function _assert_this_initialized(self) {
|
|
10670
10709
|
if (self === void 0) {
|
|
10671
10710
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -10781,6 +10820,8 @@ function _is_native_reflect_construct() {
|
|
|
10781
10820
|
|
|
10782
10821
|
|
|
10783
10822
|
|
|
10823
|
+
|
|
10824
|
+
|
|
10784
10825
|
var UIButtonState = function UIButtonState() {
|
|
10785
10826
|
return {
|
|
10786
10827
|
size: 'middle',
|
|
@@ -10848,7 +10889,7 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
10848
10889
|
* DOM container for text content
|
|
10849
10890
|
*/ function get() {
|
|
10850
10891
|
var text = this.getElm('text');
|
|
10851
|
-
(0,
|
|
10892
|
+
(0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_7__.assert)(text, 'Text element not found');
|
|
10852
10893
|
return text;
|
|
10853
10894
|
}
|
|
10854
10895
|
},
|
|
@@ -10858,7 +10899,7 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
10858
10899
|
* DOM container for icon
|
|
10859
10900
|
*/ function get() {
|
|
10860
10901
|
var icon = this.getElm('icon');
|
|
10861
|
-
(0,
|
|
10902
|
+
(0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_7__.assert)(icon, 'Icon element not found');
|
|
10862
10903
|
return icon;
|
|
10863
10904
|
}
|
|
10864
10905
|
},
|
|
@@ -10871,13 +10912,13 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
10871
10912
|
{
|
|
10872
10913
|
key: "onChangeType",
|
|
10873
10914
|
value: function onChangeType() {
|
|
10874
|
-
(0,
|
|
10915
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'type', this.state.type);
|
|
10875
10916
|
}
|
|
10876
10917
|
},
|
|
10877
10918
|
{
|
|
10878
10919
|
key: "onChangeRole",
|
|
10879
10920
|
value: function onChangeRole() {
|
|
10880
|
-
(0,
|
|
10921
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'role', this.state.role);
|
|
10881
10922
|
}
|
|
10882
10923
|
},
|
|
10883
10924
|
{
|
|
@@ -10885,7 +10926,8 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
10885
10926
|
* Set size from a parent list
|
|
10886
10927
|
*/ key: "updateSize",
|
|
10887
10928
|
value: function updateSize() {
|
|
10888
|
-
var
|
|
10929
|
+
var UIList = (0,_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_2__.getComponentClass)('UIList');
|
|
10930
|
+
var pe = this.closest(UIList);
|
|
10889
10931
|
if (pe) {
|
|
10890
10932
|
this.state.size = pe.buttonSize;
|
|
10891
10933
|
return;
|
|
@@ -10913,13 +10955,13 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
10913
10955
|
{
|
|
10914
10956
|
key: "onChangeDisabled",
|
|
10915
10957
|
value: function onChangeDisabled() {
|
|
10916
|
-
(0,
|
|
10958
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'disabled', this.state.disabled || null);
|
|
10917
10959
|
}
|
|
10918
10960
|
},
|
|
10919
10961
|
{
|
|
10920
10962
|
key: "onChangeActivated",
|
|
10921
10963
|
value: function onChangeActivated() {
|
|
10922
|
-
(0,
|
|
10964
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'aria-pressed', this.state.activated);
|
|
10923
10965
|
}
|
|
10924
10966
|
},
|
|
10925
10967
|
{
|
|
@@ -10927,8 +10969,8 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
10927
10969
|
value: function onChangeName() {
|
|
10928
10970
|
this.container.classList.add("".concat(this.componentName, "_").concat(this.clearName(this.state.name)));
|
|
10929
10971
|
this.name = this.state.name;
|
|
10930
|
-
(0,
|
|
10931
|
-
(0,
|
|
10972
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'data-ref', this.state.name);
|
|
10973
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'ref', this.state.name);
|
|
10932
10974
|
}
|
|
10933
10975
|
},
|
|
10934
10976
|
{
|
|
@@ -10936,26 +10978,26 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
10936
10978
|
value: function onChangeTooltip() {
|
|
10937
10979
|
var i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
10938
10980
|
if (this.get('j.o.useNativeTooltip')) {
|
|
10939
|
-
(0,
|
|
10981
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'title', i8nTooltip);
|
|
10940
10982
|
}
|
|
10941
|
-
(0,
|
|
10983
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'aria-label', i8nTooltip);
|
|
10942
10984
|
}
|
|
10943
10985
|
},
|
|
10944
10986
|
{
|
|
10945
10987
|
key: "onChangeTabIndex",
|
|
10946
10988
|
value: function onChangeTabIndex() {
|
|
10947
|
-
(0,
|
|
10989
|
+
(0,_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_8__.attr)(this.container, 'tabindex', this.state.tabIndex);
|
|
10948
10990
|
}
|
|
10949
10991
|
},
|
|
10950
10992
|
{
|
|
10951
10993
|
key: "onChangeIcon",
|
|
10952
10994
|
value: function onChangeIcon() {
|
|
10953
10995
|
var textIcons = this.get('j.o.textIcons');
|
|
10954
|
-
if (textIcons === true || (0,
|
|
10996
|
+
if (textIcons === true || (0,_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_5__.isFunction)(textIcons) && textIcons(this.state.name)) {
|
|
10955
10997
|
return;
|
|
10956
10998
|
}
|
|
10957
|
-
|
|
10958
|
-
var iconElement =
|
|
10999
|
+
_dom_dom_js__WEBPACK_IMPORTED_MODULE_4__.Dom.detach(this.icon);
|
|
11000
|
+
var iconElement = _icon_js__WEBPACK_IMPORTED_MODULE_10__.Icon.makeIcon(this.j, this.state.icon);
|
|
10959
11001
|
iconElement && this.icon.appendChild(iconElement);
|
|
10960
11002
|
}
|
|
10961
11003
|
},
|
|
@@ -10973,7 +11015,7 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
10973
11015
|
*/ key: "isFocused",
|
|
10974
11016
|
value: function isFocused() {
|
|
10975
11017
|
var activeElement = this.od.activeElement;
|
|
10976
|
-
return Boolean(activeElement &&
|
|
11018
|
+
return Boolean(activeElement && _dom_dom_js__WEBPACK_IMPORTED_MODULE_4__.Dom.isOrContains(this.container, activeElement));
|
|
10977
11019
|
}
|
|
10978
11020
|
},
|
|
10979
11021
|
{
|
|
@@ -11027,86 +11069,86 @@ var UIButton = /*#__PURE__*/ function(UIElement) {
|
|
|
11027
11069
|
}
|
|
11028
11070
|
]);
|
|
11029
11071
|
return UIButton;
|
|
11030
|
-
}(
|
|
11072
|
+
}(_element_js__WEBPACK_IMPORTED_MODULE_9__.UIElement);
|
|
11031
11073
|
__decorate([
|
|
11032
|
-
|
|
11074
|
+
_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_1__.cache
|
|
11033
11075
|
], UIButton.prototype, "text", null);
|
|
11034
11076
|
__decorate([
|
|
11035
|
-
|
|
11077
|
+
_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_1__.cache
|
|
11036
11078
|
], UIButton.prototype, "icon", null);
|
|
11037
11079
|
__decorate([
|
|
11038
|
-
(0,
|
|
11080
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.size', {
|
|
11039
11081
|
immediately: false
|
|
11040
11082
|
})
|
|
11041
11083
|
], UIButton.prototype, "onChangeSize", null);
|
|
11042
11084
|
__decorate([
|
|
11043
|
-
(0,
|
|
11085
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.type', {
|
|
11044
11086
|
immediately: false
|
|
11045
11087
|
})
|
|
11046
11088
|
], UIButton.prototype, "onChangeType", null);
|
|
11047
11089
|
__decorate([
|
|
11048
|
-
(0,
|
|
11090
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.role', {
|
|
11049
11091
|
immediately: false
|
|
11050
11092
|
})
|
|
11051
11093
|
], UIButton.prototype, "onChangeRole", null);
|
|
11052
11094
|
__decorate([
|
|
11053
|
-
(0,
|
|
11095
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('parentElement')
|
|
11054
11096
|
], UIButton.prototype, "updateSize", null);
|
|
11055
11097
|
__decorate([
|
|
11056
|
-
(0,
|
|
11098
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.variant', {
|
|
11057
11099
|
immediately: false
|
|
11058
11100
|
})
|
|
11059
11101
|
], UIButton.prototype, "onChangeStatus", null);
|
|
11060
11102
|
__decorate([
|
|
11061
|
-
(0,
|
|
11103
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.text', {
|
|
11062
11104
|
immediately: false
|
|
11063
11105
|
})
|
|
11064
11106
|
], UIButton.prototype, "onChangeText", null);
|
|
11065
11107
|
__decorate([
|
|
11066
|
-
(0,
|
|
11108
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.text', {
|
|
11067
11109
|
immediately: false
|
|
11068
11110
|
})
|
|
11069
11111
|
], UIButton.prototype, "onChangeTextSetMode", null);
|
|
11070
11112
|
__decorate([
|
|
11071
|
-
(0,
|
|
11113
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.disabled')
|
|
11072
11114
|
], UIButton.prototype, "onChangeDisabled", null);
|
|
11073
11115
|
__decorate([
|
|
11074
|
-
(0,
|
|
11116
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.activated')
|
|
11075
11117
|
], UIButton.prototype, "onChangeActivated", null);
|
|
11076
11118
|
__decorate([
|
|
11077
|
-
(0,
|
|
11119
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.name', {
|
|
11078
11120
|
immediately: false
|
|
11079
11121
|
})
|
|
11080
11122
|
], UIButton.prototype, "onChangeName", null);
|
|
11081
11123
|
__decorate([
|
|
11082
|
-
(0,
|
|
11124
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.tooltip', {
|
|
11083
11125
|
immediately: false
|
|
11084
11126
|
})
|
|
11085
11127
|
], UIButton.prototype, "onChangeTooltip", null);
|
|
11086
11128
|
__decorate([
|
|
11087
|
-
(0,
|
|
11129
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.tabIndex', {
|
|
11088
11130
|
immediately: false
|
|
11089
11131
|
})
|
|
11090
11132
|
], UIButton.prototype, "onChangeTabIndex", null);
|
|
11091
11133
|
__decorate([
|
|
11092
|
-
(0,
|
|
11134
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('state.icon', {
|
|
11093
11135
|
immediately: false
|
|
11094
11136
|
})
|
|
11095
11137
|
], UIButton.prototype, "onChangeIcon", null);
|
|
11096
11138
|
__decorate([
|
|
11097
|
-
|
|
11139
|
+
_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_1__.cacheHTML
|
|
11098
11140
|
], UIButton.prototype, "createContainer", null);
|
|
11099
11141
|
__decorate([
|
|
11100
|
-
(0,
|
|
11142
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('button:click')
|
|
11101
11143
|
], UIButton.prototype, "__onActionFire", null);
|
|
11102
11144
|
UIButton = __decorate([
|
|
11103
|
-
|
|
11145
|
+
_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_2__.component
|
|
11104
11146
|
], UIButton);
|
|
11105
11147
|
|
|
11106
11148
|
function Button(jodit, stateOrText, text, variant) {
|
|
11107
11149
|
var button = new UIButton(jodit);
|
|
11108
11150
|
button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
|
|
11109
|
-
if ((0,
|
|
11151
|
+
if ((0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_6__.isString)(stateOrText)) {
|
|
11110
11152
|
button.state.icon.name = stateOrText;
|
|
11111
11153
|
button.state.name = stateOrText;
|
|
11112
11154
|
if (variant) {
|
|
@@ -11411,9 +11453,13 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_1__.pluginSystem.add('file', file);
|
|
|
11411
11453
|
/* harmony export */ ToolbarCollection: function() { return /* binding */ ToolbarCollection; }
|
|
11412
11454
|
/* harmony export */ });
|
|
11413
11455
|
/* harmony import */ var _core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65478);
|
|
11414
|
-
/* harmony import */ var
|
|
11415
|
-
/* harmony import */ var
|
|
11416
|
-
/* harmony import */ var
|
|
11456
|
+
/* harmony import */ var _core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45219);
|
|
11457
|
+
/* harmony import */ var _core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(87325);
|
|
11458
|
+
/* harmony import */ var _core_decorators_hook_hook_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97357);
|
|
11459
|
+
/* harmony import */ var _core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37133);
|
|
11460
|
+
/* harmony import */ var _core_helpers_utils_error_error_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(82760);
|
|
11461
|
+
/* harmony import */ var _core_ui_group_list_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(24536);
|
|
11462
|
+
/* harmony import */ var _factory_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(21491);
|
|
11417
11463
|
function _array_like_to_array(arr, len) {
|
|
11418
11464
|
if (len == null || len > arr.length) len = arr.length;
|
|
11419
11465
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -11570,6 +11616,10 @@ function _is_native_reflect_construct() {
|
|
|
11570
11616
|
|
|
11571
11617
|
|
|
11572
11618
|
|
|
11619
|
+
|
|
11620
|
+
|
|
11621
|
+
|
|
11622
|
+
|
|
11573
11623
|
var ToolbarCollection = /*#__PURE__*/ function(UIList) {
|
|
11574
11624
|
"use strict";
|
|
11575
11625
|
_inherits(ToolbarCollection, UIList);
|
|
@@ -11584,7 +11634,7 @@ var ToolbarCollection = /*#__PURE__*/ function(UIList) {
|
|
|
11584
11634
|
}
|
|
11585
11635
|
_create_class(ToolbarCollection, [
|
|
11586
11636
|
{
|
|
11587
|
-
|
|
11637
|
+
key: "className",
|
|
11588
11638
|
value: function className() {
|
|
11589
11639
|
return 'ToolbarCollection';
|
|
11590
11640
|
}
|
|
@@ -11602,14 +11652,14 @@ var ToolbarCollection = /*#__PURE__*/ function(UIList) {
|
|
|
11602
11652
|
key: "makeButton",
|
|
11603
11653
|
value: function makeButton1(control) {
|
|
11604
11654
|
var target = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
11605
|
-
return (0,
|
|
11655
|
+
return (0,_factory_js__WEBPACK_IMPORTED_MODULE_7__.makeButton)(this.j, control, target);
|
|
11606
11656
|
}
|
|
11607
11657
|
},
|
|
11608
11658
|
{
|
|
11609
11659
|
key: "makeSelect",
|
|
11610
11660
|
value: function makeSelect1(control) {
|
|
11611
11661
|
var target = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
11612
|
-
return (0,
|
|
11662
|
+
return (0,_factory_js__WEBPACK_IMPORTED_MODULE_7__.makeSelect)(this.j, control, target);
|
|
11613
11663
|
}
|
|
11614
11664
|
},
|
|
11615
11665
|
{
|
|
@@ -11682,7 +11732,7 @@ var ToolbarCollection = /*#__PURE__*/ function(UIList) {
|
|
|
11682
11732
|
{
|
|
11683
11733
|
key: "showInline",
|
|
11684
11734
|
value: function showInline(bound) {
|
|
11685
|
-
throw (0,
|
|
11735
|
+
throw (0,_core_helpers_utils_error_error_js__WEBPACK_IMPORTED_MODULE_5__.error)('The method is not implemented for this class.');
|
|
11686
11736
|
}
|
|
11687
11737
|
},
|
|
11688
11738
|
{
|
|
@@ -11709,10 +11759,10 @@ var ToolbarCollection = /*#__PURE__*/ function(UIList) {
|
|
|
11709
11759
|
}
|
|
11710
11760
|
]);
|
|
11711
11761
|
return ToolbarCollection;
|
|
11712
|
-
}(
|
|
11762
|
+
}(_core_ui_group_list_js__WEBPACK_IMPORTED_MODULE_6__.UIList);
|
|
11713
11763
|
__decorate([
|
|
11714
|
-
(0,
|
|
11715
|
-
|
|
11764
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_4__.watch)(':afterInit'),
|
|
11765
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
11716
11766
|
], ToolbarCollection.prototype, "__immediateUpdate", null);
|
|
11717
11767
|
__decorate([
|
|
11718
11768
|
(0,_core_decorators_index_js__WEBPACK_IMPORTED_MODULE_0__.debounce)(function(ctx) {
|
|
@@ -11720,10 +11770,10 @@ __decorate([
|
|
|
11720
11770
|
}, true)
|
|
11721
11771
|
], ToolbarCollection.prototype, "update", null);
|
|
11722
11772
|
__decorate([
|
|
11723
|
-
(0,
|
|
11773
|
+
(0,_core_decorators_hook_hook_js__WEBPACK_IMPORTED_MODULE_3__.hook)('ready')
|
|
11724
11774
|
], ToolbarCollection.prototype, "__initEvents", null);
|
|
11725
11775
|
ToolbarCollection = __decorate([
|
|
11726
|
-
|
|
11776
|
+
_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_2__.component
|
|
11727
11777
|
], ToolbarCollection);
|
|
11728
11778
|
|
|
11729
11779
|
|
|
@@ -18573,12 +18623,9 @@ jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_13__.JoditPro.plugins.add('license'
|
|
|
18573
18623
|
/* harmony export */ makeCollection: function() { return /* binding */ makeCollection; },
|
|
18574
18624
|
/* harmony export */ makeSelect: function() { return /* binding */ makeSelect; }
|
|
18575
18625
|
/* harmony export */ });
|
|
18576
|
-
/* harmony import */ var
|
|
18577
|
-
/* harmony import */ var
|
|
18578
|
-
/* harmony import */ var
|
|
18579
|
-
/* harmony import */ var _button_select_select_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83111);
|
|
18580
|
-
/* harmony import */ var _collection_collection_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11676);
|
|
18581
|
-
/* harmony import */ var _collection_editor_collection_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(37426);
|
|
18626
|
+
/* harmony import */ var _core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(87325);
|
|
18627
|
+
/* harmony import */ var _core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23282);
|
|
18628
|
+
/* harmony import */ var _core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(19306);
|
|
18582
18629
|
/*!
|
|
18583
18630
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
18584
18631
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -18586,13 +18633,12 @@ jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_13__.JoditPro.plugins.add('license'
|
|
|
18586
18633
|
*/
|
|
18587
18634
|
|
|
18588
18635
|
|
|
18589
|
-
|
|
18590
|
-
|
|
18591
|
-
|
|
18592
18636
|
/**
|
|
18593
18637
|
* Collection factory
|
|
18594
18638
|
*/ function makeCollection(jodit, parentElement) {
|
|
18595
|
-
var
|
|
18639
|
+
var ToolbarCollection = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarCollection');
|
|
18640
|
+
var ToolbarEditorCollection = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarEditorCollection');
|
|
18641
|
+
var collection = (0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_2__.isJoditObject)(jodit) ? new ToolbarEditorCollection(jodit) : new ToolbarCollection(jodit);
|
|
18596
18642
|
if (jodit.o.textIcons) {
|
|
18597
18643
|
collection.container.classList.add('jodit_text_icons');
|
|
18598
18644
|
}
|
|
@@ -18608,16 +18654,19 @@ jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_13__.JoditPro.plugins.add('license'
|
|
|
18608
18654
|
* Button factory
|
|
18609
18655
|
*/ function makeButton(jodit, control) {
|
|
18610
18656
|
var target = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
|
|
18611
|
-
if ((0,
|
|
18612
|
-
|
|
18657
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_1__.isFunction)(control.getContent)) {
|
|
18658
|
+
var ToolbarContent = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarContent');
|
|
18659
|
+
return new ToolbarContent(jodit, control, target);
|
|
18613
18660
|
}
|
|
18614
|
-
var
|
|
18661
|
+
var ToolbarButton = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarButton');
|
|
18662
|
+
var button = new ToolbarButton(jodit, control, target);
|
|
18615
18663
|
button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
|
|
18616
18664
|
return button;
|
|
18617
18665
|
}
|
|
18618
18666
|
function makeSelect(view, control) {
|
|
18619
18667
|
var target = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : null;
|
|
18620
|
-
|
|
18668
|
+
var ToolbarSelect = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarSelect');
|
|
18669
|
+
return new ToolbarSelect(view, control, target);
|
|
18621
18670
|
}
|
|
18622
18671
|
|
|
18623
18672
|
|
|
@@ -18697,6 +18746,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18697
18746
|
/* harmony export */ getClassName: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getClassName; },
|
|
18698
18747
|
/* harmony export */ getContentWidth: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.getContentWidth; },
|
|
18699
18748
|
/* harmony export */ getDataTransfer: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getDataTransfer; },
|
|
18749
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getPropertyDescriptor; },
|
|
18700
18750
|
/* harmony export */ getScrollParent: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.getScrollParent; },
|
|
18701
18751
|
/* harmony export */ getXPathByElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.getXPathByElement; },
|
|
18702
18752
|
/* harmony export */ hAlignElement: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.hAlignElement; },
|
|
@@ -18707,7 +18757,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18707
18757
|
/* harmony export */ i18n: function() { return /* reexport safe */ _string_index_js__WEBPACK_IMPORTED_MODULE_7__.i18n; },
|
|
18708
18758
|
/* harmony export */ inView: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.inView; },
|
|
18709
18759
|
/* harmony export */ innerWidth: function() { return /* reexport safe */ _size_index_js__WEBPACK_IMPORTED_MODULE_6__.innerWidth; },
|
|
18710
|
-
/* harmony export */ isAbort: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.isAbort; },
|
|
18711
18760
|
/* harmony export */ isAbortError: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isAbortError; },
|
|
18712
18761
|
/* harmony export */ isArray: function() { return /* reexport safe */ _checker_index_js__WEBPACK_IMPORTED_MODULE_2__.isArray; },
|
|
18713
18762
|
/* harmony export */ isAtom: function() { return /* reexport safe */ _utils_index_js__WEBPACK_IMPORTED_MODULE_8__.isAtom; },
|
|
@@ -18816,6 +18865,33 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18816
18865
|
/* 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> ");
|
|
18817
18866
|
|
|
18818
18867
|
|
|
18868
|
+
/***/ }),
|
|
18869
|
+
|
|
18870
|
+
/***/ 21735:
|
|
18871
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18872
|
+
|
|
18873
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18874
|
+
/* harmony export */ elementToItem: function() { return /* binding */ elementToItem; },
|
|
18875
|
+
/* harmony export */ getItem: function() { return /* binding */ getItem; }
|
|
18876
|
+
/* harmony export */ });
|
|
18877
|
+
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2748);
|
|
18878
|
+
|
|
18879
|
+
/**
|
|
18880
|
+
* @private
|
|
18881
|
+
*/ var getItem = function getItem(node, root) {
|
|
18882
|
+
var tag = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 'a';
|
|
18883
|
+
return _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(node, function(elm) {
|
|
18884
|
+
return _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(elm, tag);
|
|
18885
|
+
}, root);
|
|
18886
|
+
};
|
|
18887
|
+
/**
|
|
18888
|
+
* @private
|
|
18889
|
+
*/ var elementToItem = function elementToItem(elm, elementsMap) {
|
|
18890
|
+
var key = elm.dataset.key, item = elementsMap[key || ''].item;
|
|
18891
|
+
return item;
|
|
18892
|
+
};
|
|
18893
|
+
|
|
18894
|
+
|
|
18819
18895
|
/***/ }),
|
|
18820
18896
|
|
|
18821
18897
|
/***/ 21988:
|
|
@@ -20313,15 +20389,17 @@ _config_js__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.popup = {
|
|
|
20313
20389
|
/* harmony export */ UIList: function() { return /* binding */ UIList; }
|
|
20314
20390
|
/* harmony export */ });
|
|
20315
20391
|
/* harmony import */ var _component_component_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(4012);
|
|
20316
|
-
/* harmony import */ var
|
|
20317
|
-
/* harmony import */ var
|
|
20318
|
-
/* harmony import */ var
|
|
20319
|
-
/* harmony import */ var
|
|
20320
|
-
/* harmony import */ var
|
|
20321
|
-
/* harmony import */ var
|
|
20322
|
-
/* harmony import */ var
|
|
20323
|
-
/* harmony import */ var
|
|
20324
|
-
/* harmony import */ var
|
|
20392
|
+
/* harmony import */ var _decorators_component_component_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87325);
|
|
20393
|
+
/* harmony import */ var _decorators_hook_hook_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97357);
|
|
20394
|
+
/* harmony import */ var _decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37133);
|
|
20395
|
+
/* harmony import */ var _helpers_array_split_array_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46559);
|
|
20396
|
+
/* harmony import */ var _button_button_button_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(10830);
|
|
20397
|
+
/* harmony import */ var _group_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(62405);
|
|
20398
|
+
/* harmony import */ var _separator_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(92113);
|
|
20399
|
+
/* harmony import */ var _spacer_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(34244);
|
|
20400
|
+
/* harmony import */ var _helpers_buttons_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(43649);
|
|
20401
|
+
/* harmony import */ var _helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(72157);
|
|
20402
|
+
/* harmony import */ var _helpers_get_strong_control_types_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(71262);
|
|
20325
20403
|
function _assert_this_initialized(self) {
|
|
20326
20404
|
if (self === void 0) {
|
|
20327
20405
|
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
@@ -20422,15 +20500,15 @@ function _is_native_reflect_construct() {
|
|
|
20422
20500
|
|
|
20423
20501
|
|
|
20424
20502
|
|
|
20503
|
+
|
|
20504
|
+
|
|
20425
20505
|
var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
20426
20506
|
"use strict";
|
|
20427
20507
|
_inherits(UIList, UIGroup1);
|
|
20428
|
-
function UIList(
|
|
20508
|
+
function UIList() {
|
|
20429
20509
|
_class_call_check(this, UIList);
|
|
20430
20510
|
var _this;
|
|
20431
|
-
_this = _call_super(this, UIList,
|
|
20432
|
-
jodit
|
|
20433
|
-
]);
|
|
20511
|
+
_this = _call_super(this, UIList, arguments);
|
|
20434
20512
|
_this.mode = 'horizontal';
|
|
20435
20513
|
_this.removeButtons = [];
|
|
20436
20514
|
return _this;
|
|
@@ -20453,7 +20531,7 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
20453
20531
|
* Make new group and append it in list of elements
|
|
20454
20532
|
*/ key: "makeGroup",
|
|
20455
20533
|
value: function makeGroup() {
|
|
20456
|
-
return new
|
|
20534
|
+
return new _group_js__WEBPACK_IMPORTED_MODULE_6__.UIGroup(this.jodit);
|
|
20457
20535
|
}
|
|
20458
20536
|
},
|
|
20459
20537
|
{
|
|
@@ -20462,7 +20540,7 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
20462
20540
|
* All buttons from list
|
|
20463
20541
|
*/ function get() {
|
|
20464
20542
|
return this.allChildren.filter(function(elm) {
|
|
20465
|
-
return _component_component_js__WEBPACK_IMPORTED_MODULE_0__.Component.isInstanceOf(elm,
|
|
20543
|
+
return _component_component_js__WEBPACK_IMPORTED_MODULE_0__.Component.isInstanceOf(elm, _button_button_button_js__WEBPACK_IMPORTED_MODULE_5__.UIButton);
|
|
20466
20544
|
});
|
|
20467
20545
|
}
|
|
20468
20546
|
},
|
|
@@ -20472,7 +20550,7 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
20472
20550
|
*/ key: "getButtonsNames",
|
|
20473
20551
|
value: function getButtonsNames() {
|
|
20474
20552
|
return this.buttons.map(function(a) {
|
|
20475
|
-
return _instanceof(a,
|
|
20553
|
+
return _instanceof(a, _button_button_button_js__WEBPACK_IMPORTED_MODULE_5__.UIButton) && a.state.name || '';
|
|
20476
20554
|
}).filter(function(a) {
|
|
20477
20555
|
return a !== '';
|
|
20478
20556
|
});
|
|
@@ -20490,7 +20568,7 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
20490
20568
|
value: function build(items) {
|
|
20491
20569
|
var _this = this;
|
|
20492
20570
|
var target = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
20493
|
-
items = (0,
|
|
20571
|
+
items = (0,_helpers_array_split_array_js__WEBPACK_IMPORTED_MODULE_4__.splitArray)(items);
|
|
20494
20572
|
this.clear();
|
|
20495
20573
|
var lastBtnSeparator = false;
|
|
20496
20574
|
var line = this.makeGroup();
|
|
@@ -20510,13 +20588,13 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
20510
20588
|
case '|':
|
|
20511
20589
|
if (!lastBtnSeparator) {
|
|
20512
20590
|
lastBtnSeparator = true;
|
|
20513
|
-
elm = new
|
|
20591
|
+
elm = new _separator_js__WEBPACK_IMPORTED_MODULE_7__.UISeparator(_this.j);
|
|
20514
20592
|
}
|
|
20515
20593
|
break;
|
|
20516
20594
|
case '---':
|
|
20517
20595
|
{
|
|
20518
20596
|
group.setMod('before-spacer', true);
|
|
20519
|
-
var space = new
|
|
20597
|
+
var space = new _spacer_js__WEBPACK_IMPORTED_MODULE_8__.UISpacer(_this.j);
|
|
20520
20598
|
line.append(space);
|
|
20521
20599
|
group = _this.makeGroup();
|
|
20522
20600
|
line.append(group);
|
|
@@ -20547,7 +20625,7 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
20547
20625
|
return !_this.removeButtons.includes(b.name) && (!b.isVisible || ((_a = b.isVisible) === null || _a === void 0 ? void 0 : _a.call(b, _this.j, b)));
|
|
20548
20626
|
};
|
|
20549
20627
|
items.forEach(function(item) {
|
|
20550
|
-
if ((0,
|
|
20628
|
+
if ((0,_helpers_buttons_js__WEBPACK_IMPORTED_MODULE_9__.isButtonGroup)(item)) {
|
|
20551
20629
|
var buttons = item.buttons.filter(function(b) {
|
|
20552
20630
|
return b;
|
|
20553
20631
|
});
|
|
@@ -20555,14 +20633,14 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
20555
20633
|
group = _this.makeGroup();
|
|
20556
20634
|
group.setMod('separated', true).setMod('group', item.group);
|
|
20557
20635
|
line.append(group);
|
|
20558
|
-
(0,
|
|
20636
|
+
(0,_helpers_get_strong_control_types_js__WEBPACK_IMPORTED_MODULE_11__.getStrongControlTypes)(buttons, _this.j.o.controls).filter(isNotRemoved).forEach(addButton);
|
|
20559
20637
|
}
|
|
20560
20638
|
} else {
|
|
20561
20639
|
if (!group) {
|
|
20562
20640
|
group = _this.makeGroup();
|
|
20563
20641
|
line.append(group);
|
|
20564
20642
|
}
|
|
20565
|
-
var control = (0,
|
|
20643
|
+
var control = (0,_helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_10__.getControlType)(item, _this.j.o.controls);
|
|
20566
20644
|
isNotRemoved(control) && addButton(control);
|
|
20567
20645
|
}
|
|
20568
20646
|
});
|
|
@@ -20581,20 +20659,20 @@ var UIList = /*#__PURE__*/ function(UIGroup1) {
|
|
|
20581
20659
|
* Create button instance
|
|
20582
20660
|
*/ key: "makeButton",
|
|
20583
20661
|
value: function makeButton(control, target) {
|
|
20584
|
-
return new
|
|
20662
|
+
return new _button_button_button_js__WEBPACK_IMPORTED_MODULE_5__.UIButton(this.j, {
|
|
20585
20663
|
name: control.name
|
|
20586
20664
|
});
|
|
20587
20665
|
}
|
|
20588
20666
|
}
|
|
20589
20667
|
]);
|
|
20590
20668
|
return UIList;
|
|
20591
|
-
}(
|
|
20669
|
+
}(_group_js__WEBPACK_IMPORTED_MODULE_6__.UIGroup);
|
|
20592
20670
|
__decorate([
|
|
20593
|
-
(0,
|
|
20594
|
-
(0,
|
|
20671
|
+
(0,_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_3__.watch)('mode'),
|
|
20672
|
+
(0,_decorators_hook_hook_js__WEBPACK_IMPORTED_MODULE_2__.hook)('ready')
|
|
20595
20673
|
], UIList.prototype, "__onChangeMode", null);
|
|
20596
20674
|
UIList = __decorate([
|
|
20597
|
-
|
|
20675
|
+
_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_1__.component
|
|
20598
20676
|
], UIList);
|
|
20599
20677
|
|
|
20600
20678
|
|
|
@@ -24248,9 +24326,11 @@ UIImagePositionTab = __decorate([
|
|
|
24248
24326
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24249
24327
|
/* harmony export */ attr: function() { return /* binding */ attr; }
|
|
24250
24328
|
/* harmony export */ });
|
|
24251
|
-
/* harmony import */ var
|
|
24252
|
-
/* harmony import */ var
|
|
24253
|
-
/* harmony import */ var
|
|
24329
|
+
/* harmony import */ var _checker_is_function_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23282);
|
|
24330
|
+
/* harmony import */ var _checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(72430);
|
|
24331
|
+
/* harmony import */ var _checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(70799);
|
|
24332
|
+
/* harmony import */ var _string_kebab_case_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12475);
|
|
24333
|
+
/* harmony import */ var _css_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(41180);
|
|
24254
24334
|
/*!
|
|
24255
24335
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
24256
24336
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -24258,19 +24338,21 @@ UIImagePositionTab = __decorate([
|
|
|
24258
24338
|
*/
|
|
24259
24339
|
|
|
24260
24340
|
|
|
24341
|
+
|
|
24342
|
+
|
|
24261
24343
|
/**
|
|
24262
24344
|
* Alias for `elm.getAttribute` but if set second argument `-{key}`
|
|
24263
24345
|
* it will also check `data-{key}` attribute
|
|
24264
24346
|
* if set `value` it is alias for setAttribute with the same logic
|
|
24265
24347
|
*/ function attr(elm, keyOrAttributes, value) {
|
|
24266
|
-
if (!elm || !(0,
|
|
24348
|
+
if (!elm || !(0,_checker_is_function_js__WEBPACK_IMPORTED_MODULE_0__.isFunction)(elm.getAttribute)) {
|
|
24267
24349
|
return null;
|
|
24268
24350
|
}
|
|
24269
|
-
if (!(0,
|
|
24351
|
+
if (!(0,_checker_is_string_js__WEBPACK_IMPORTED_MODULE_2__.isString)(keyOrAttributes)) {
|
|
24270
24352
|
Object.keys(keyOrAttributes).forEach(function(key) {
|
|
24271
24353
|
var _$value = keyOrAttributes[key];
|
|
24272
|
-
if ((0,
|
|
24273
|
-
(0,
|
|
24354
|
+
if ((0,_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(_$value) && key === 'style') {
|
|
24355
|
+
(0,_css_js__WEBPACK_IMPORTED_MODULE_4__.css)(elm, _$value);
|
|
24274
24356
|
} else {
|
|
24275
24357
|
if (key === 'className') {
|
|
24276
24358
|
key = 'class';
|
|
@@ -24280,7 +24362,7 @@ UIImagePositionTab = __decorate([
|
|
|
24280
24362
|
});
|
|
24281
24363
|
return null;
|
|
24282
24364
|
}
|
|
24283
|
-
var key = (0,
|
|
24365
|
+
var key = (0,_string_kebab_case_js__WEBPACK_IMPORTED_MODULE_3__.CamelCaseToKebabCase)(keyOrAttributes);
|
|
24284
24366
|
if (/^-/.test(key)) {
|
|
24285
24367
|
var res = attr(elm, "data".concat(key));
|
|
24286
24368
|
if (res) {
|
|
@@ -24412,16 +24494,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24412
24494
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
24413
24495
|
|
|
24414
24496
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24415
|
-
/* harmony export */ applyStylesPro: function() { return /* reexport safe */ _apply_styles_pro__WEBPACK_IMPORTED_MODULE_0__.applyStylesPro; }
|
|
24416
|
-
/* harmony export */ calcListLevels: function() { return /* reexport safe */ _calc_list_levels__WEBPACK_IMPORTED_MODULE_1__.calcListLevels; },
|
|
24417
|
-
/* harmony export */ calcMarginParts: function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.calcMarginParts; },
|
|
24418
|
-
/* harmony export */ calcStartBySymbol: function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.calcStartBySymbol; },
|
|
24419
|
-
/* harmony export */ convertUnitToPx: function() { return /* reexport safe */ _helpers__WEBPACK_IMPORTED_MODULE_2__.convertUnitToPx; }
|
|
24497
|
+
/* harmony export */ applyStylesPro: function() { return /* reexport safe */ _apply_styles_pro__WEBPACK_IMPORTED_MODULE_0__.applyStylesPro; }
|
|
24420
24498
|
/* harmony export */ });
|
|
24421
24499
|
/* harmony import */ var _apply_styles_pro__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(51586);
|
|
24422
24500
|
/* harmony import */ var _calc_list_levels__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31269);
|
|
24423
|
-
/* harmony import */ var
|
|
24424
|
-
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(19606);
|
|
24501
|
+
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(19606);
|
|
24425
24502
|
/*!
|
|
24426
24503
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
24427
24504
|
* See LICENSE.md in the project root for license information.
|
|
@@ -24488,7 +24565,8 @@ function calcListLevels(item) {
|
|
|
24488
24565
|
}
|
|
24489
24566
|
var indents = [
|
|
24490
24567
|
(0,_helpers__WEBPACK_IMPORTED_MODULE_1__.realPixelIndent)(item)
|
|
24491
|
-
]
|
|
24568
|
+
];
|
|
24569
|
+
var items = [
|
|
24492
24570
|
item
|
|
24493
24571
|
];
|
|
24494
24572
|
var next = item.next;
|
|
@@ -24660,9 +24738,8 @@ function calcListLevels(item) {
|
|
|
24660
24738
|
/* harmony export */ init: function() { return /* binding */ init; }
|
|
24661
24739
|
/* harmony export */ });
|
|
24662
24740
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
24663
|
-
/* harmony import */ var
|
|
24664
|
-
/* harmony import */ var
|
|
24665
|
-
/* harmony import */ var _load_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14041);
|
|
24741
|
+
/* harmony import */ var _helpers_checker_is_imp_interface_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(60132);
|
|
24742
|
+
/* harmony import */ var _load_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(14041);
|
|
24666
24743
|
/*!
|
|
24667
24744
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
24668
24745
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -24670,12 +24747,11 @@ function calcListLevels(item) {
|
|
|
24670
24747
|
*/
|
|
24671
24748
|
|
|
24672
24749
|
|
|
24673
|
-
|
|
24674
24750
|
/**
|
|
24675
24751
|
* Init plugin if it has no dependencies, in another case wait requires plugins will be init
|
|
24676
24752
|
* @private
|
|
24677
|
-
*/ function init(jodit, pluginName, plugin, instance, doneList, waitingList) {
|
|
24678
|
-
if ((0,
|
|
24753
|
+
*/ function init(jodit, pluginName, plugin, instance, doneList, waitingList, getContainer) {
|
|
24754
|
+
if ((0,_helpers_checker_is_imp_interface_js__WEBPACK_IMPORTED_MODULE_1__.isInitable)(instance)) {
|
|
24679
24755
|
try {
|
|
24680
24756
|
instance.init(jodit);
|
|
24681
24757
|
} catch (e) {
|
|
@@ -24688,12 +24764,12 @@ function calcListLevels(item) {
|
|
|
24688
24764
|
doneList.set(pluginName, instance);
|
|
24689
24765
|
waitingList.delete(pluginName);
|
|
24690
24766
|
if (instance.hasStyle) {
|
|
24691
|
-
(0,
|
|
24767
|
+
(0,_load_js__WEBPACK_IMPORTED_MODULE_2__.loadStyle)(jodit, pluginName).catch(function(e) {
|
|
24692
24768
|
!_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_PROD && console.error(e);
|
|
24693
24769
|
});
|
|
24694
24770
|
}
|
|
24695
24771
|
if (instance.styles) {
|
|
24696
|
-
var style =
|
|
24772
|
+
var style = getContainer(jodit, pluginName, 'style');
|
|
24697
24773
|
style.innerHTML = instance.styles;
|
|
24698
24774
|
}
|
|
24699
24775
|
}
|
|
@@ -26622,8 +26698,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26622
26698
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26623
26699
|
/* harmony export */ ConnectionError: function() { return /* reexport safe */ _connection_error_js__WEBPACK_IMPORTED_MODULE_1__.ConnectionError; },
|
|
26624
26700
|
/* harmony export */ OptionsError: function() { return /* reexport safe */ _options_error_js__WEBPACK_IMPORTED_MODULE_2__.OptionsError; },
|
|
26625
|
-
/* harmony export */ abort: function() { return /* reexport safe */ _abort_error_js__WEBPACK_IMPORTED_MODULE_0__.abort; }
|
|
26626
|
-
/* harmony export */ isAbort: function() { return /* reexport safe */ _abort_error_js__WEBPACK_IMPORTED_MODULE_0__.isAbort; }
|
|
26701
|
+
/* harmony export */ abort: function() { return /* reexport safe */ _abort_error_js__WEBPACK_IMPORTED_MODULE_0__.abort; }
|
|
26627
26702
|
/* harmony export */ });
|
|
26628
26703
|
/* harmony import */ var _abort_error_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93661);
|
|
26629
26704
|
/* harmony import */ var _connection_error_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(86397);
|
|
@@ -27046,39 +27121,6 @@ function cacheHTML(target, _, descriptor) {
|
|
|
27046
27121
|
/* 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> ");
|
|
27047
27122
|
|
|
27048
27123
|
|
|
27049
|
-
/***/ }),
|
|
27050
|
-
|
|
27051
|
-
/***/ 33730:
|
|
27052
|
-
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
27053
|
-
|
|
27054
|
-
/* harmony import */ var jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6441);
|
|
27055
|
-
/*!
|
|
27056
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
27057
|
-
* See LICENSE.md in the project root for license information.
|
|
27058
|
-
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
27059
|
-
*/
|
|
27060
|
-
jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.font.list = {
|
|
27061
|
-
"'Andale mono', monospace'": 'Andale Mono',
|
|
27062
|
-
'Arial, Helvetica, sans-serif': 'Arial',
|
|
27063
|
-
"'Arial black', sans-serif": 'Arial Black',
|
|
27064
|
-
"'Book antiqua', palatino, serif": 'Book Antiqua',
|
|
27065
|
-
"'Comic Sans MS', sans-serif": 'Comic Sans MS',
|
|
27066
|
-
"'Courier new', Courier, monospace": 'Courier New',
|
|
27067
|
-
'Georgia, Palatino, serif': 'Georgia',
|
|
27068
|
-
'Helvetica, Arial, sans-serif': 'Helvetica',
|
|
27069
|
-
'Impact, Charcoal, sans-serif': 'Impact',
|
|
27070
|
-
'Symbol, sans-serif': 'Symbol',
|
|
27071
|
-
'Tahoma, Arial, Helvetica, sans-serif': 'Tahoma',
|
|
27072
|
-
'Terminal, Monaco, monospace': 'Terminal',
|
|
27073
|
-
"'Times new roman', Times, serif": 'Times New Roman',
|
|
27074
|
-
"'Trebuchet ms', Geneva, sans-serif": 'Trebuchet MS',
|
|
27075
|
-
'Verdana, Geneva, sans-serif': 'Verdana',
|
|
27076
|
-
Webdings: 'Webdings',
|
|
27077
|
-
"Wingdings, 'Zapf dingbats'": 'Wingdings'
|
|
27078
|
-
};
|
|
27079
|
-
jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.loadExternalConfig = true;
|
|
27080
|
-
|
|
27081
|
-
|
|
27082
27124
|
/***/ }),
|
|
27083
27125
|
|
|
27084
27126
|
/***/ 34176:
|
|
@@ -29834,7 +29876,6 @@ function _instanceof(left, right) {
|
|
|
29834
29876
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
29835
29877
|
|
|
29836
29878
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29837
|
-
/* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
|
|
29838
29879
|
/* harmony export */ watch: function() { return /* binding */ watch; }
|
|
29839
29880
|
/* harmony export */ });
|
|
29840
29881
|
/* harmony import */ var _component_statuses_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78213);
|
|
@@ -29844,6 +29885,7 @@ function _instanceof(left, right) {
|
|
|
29844
29885
|
/* harmony import */ var _helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(72430);
|
|
29845
29886
|
/* harmony import */ var _helpers_checker_is_view_object_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(39955);
|
|
29846
29887
|
/* harmony import */ var _helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(89890);
|
|
29888
|
+
/* harmony import */ var _helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(37790);
|
|
29847
29889
|
function _array_like_to_array(arr, len) {
|
|
29848
29890
|
if (len == null || len > arr.length) len = arr.length;
|
|
29849
29891
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -29913,14 +29955,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
29913
29955
|
|
|
29914
29956
|
|
|
29915
29957
|
|
|
29916
|
-
|
|
29917
|
-
var desc;
|
|
29918
|
-
do {
|
|
29919
|
-
desc = Object.getOwnPropertyDescriptor(obj, prop);
|
|
29920
|
-
obj = Object.getPrototypeOf(obj);
|
|
29921
|
-
}while (!desc && obj);
|
|
29922
|
-
return desc;
|
|
29923
|
-
}
|
|
29958
|
+
|
|
29924
29959
|
/**
|
|
29925
29960
|
* Watch decorator. Added observer for some change in field value
|
|
29926
29961
|
*/ function watch(observeFields, opts) {
|
|
@@ -29973,7 +30008,7 @@ function getPropertyDescriptor(obj, prop) {
|
|
|
29973
30008
|
var observableValue = (0,_event_emitter_observable_js__WEBPACK_IMPORTED_MODULE_1__.observable)(value);
|
|
29974
30009
|
observableValue.on("change.".concat(teil.join('.')), callback);
|
|
29975
30010
|
}
|
|
29976
|
-
var descriptor = getPropertyDescriptor(target, key);
|
|
30011
|
+
var descriptor = (0,_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_7__.getPropertyDescriptor)(target, key);
|
|
29977
30012
|
Object.defineProperty(component, key, {
|
|
29978
30013
|
configurable: true,
|
|
29979
30014
|
set: function set(v) {
|
|
@@ -30578,6 +30613,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.controls.dots = {
|
|
|
30578
30613
|
/* harmony export */ call: function() { return /* binding */ call; },
|
|
30579
30614
|
/* harmony export */ callPromise: function() { return /* binding */ callPromise; },
|
|
30580
30615
|
/* harmony export */ getDataTransfer: function() { return /* binding */ getDataTransfer; },
|
|
30616
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
|
|
30581
30617
|
/* harmony export */ keys: function() { return /* binding */ keys; },
|
|
30582
30618
|
/* harmony export */ loadImage: function() { return /* binding */ loadImage; },
|
|
30583
30619
|
/* harmony export */ markOwner: function() { return /* binding */ markOwner; },
|
|
@@ -30709,6 +30745,14 @@ var keys = function keys(obj) {
|
|
|
30709
30745
|
return null;
|
|
30710
30746
|
}
|
|
30711
30747
|
};
|
|
30748
|
+
function getPropertyDescriptor(obj, prop) {
|
|
30749
|
+
var desc;
|
|
30750
|
+
do {
|
|
30751
|
+
desc = Object.getOwnPropertyDescriptor(obj, prop);
|
|
30752
|
+
obj = Object.getPrototypeOf(obj);
|
|
30753
|
+
}while (!desc && obj);
|
|
30754
|
+
return desc;
|
|
30755
|
+
}
|
|
30712
30756
|
|
|
30713
30757
|
|
|
30714
30758
|
/***/ }),
|
|
@@ -31695,9 +31739,11 @@ function _instanceof(left, right) {
|
|
|
31695
31739
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82749);
|
|
31696
31740
|
/* harmony import */ var _swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(43284);
|
|
31697
31741
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31635);
|
|
31698
|
-
/* harmony import */ var
|
|
31699
|
-
/* harmony import */ var
|
|
31700
|
-
/* harmony import */ var
|
|
31742
|
+
/* harmony import */ var jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(45219);
|
|
31743
|
+
/* harmony import */ var jodit_esm_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(70799);
|
|
31744
|
+
/* harmony import */ var jodit_esm_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(12475);
|
|
31745
|
+
/* harmony import */ var jodit_esm_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(49055);
|
|
31746
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers_helpers__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(43712);
|
|
31701
31747
|
/*!
|
|
31702
31748
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
31703
31749
|
* See LICENSE.md in the project root for license information.
|
|
@@ -31710,6 +31756,8 @@ function _instanceof(left, right) {
|
|
|
31710
31756
|
|
|
31711
31757
|
|
|
31712
31758
|
|
|
31759
|
+
|
|
31760
|
+
|
|
31713
31761
|
var Style = /*#__PURE__*/ function() {
|
|
31714
31762
|
"use strict";
|
|
31715
31763
|
function Style(str) {
|
|
@@ -31775,7 +31823,7 @@ var Style = /*#__PURE__*/ function() {
|
|
|
31775
31823
|
return key && !/^mso-/.test(key) && filter(key) && _this.get(key) != null;
|
|
31776
31824
|
});
|
|
31777
31825
|
var n = function n(v) {
|
|
31778
|
-
if ((0,
|
|
31826
|
+
if ((0,jodit_esm_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(v)) {
|
|
31779
31827
|
return /^0[a-z]+$/i.test(v) ? '0' : v;
|
|
31780
31828
|
}
|
|
31781
31829
|
return v.toString();
|
|
@@ -31786,7 +31834,7 @@ var Style = /*#__PURE__*/ function() {
|
|
|
31786
31834
|
].forEach(function(key) {
|
|
31787
31835
|
if (_this._data[key]) {
|
|
31788
31836
|
var indexMain = styleKeys.indexOf(key);
|
|
31789
|
-
var margins = (0,
|
|
31837
|
+
var margins = (0,jodit_pro_plugins_paste_from_word_helpers_helpers__WEBPACK_IMPORTED_MODULE_9__.calcMarginParts)(_this._data[key]);
|
|
31790
31838
|
[
|
|
31791
31839
|
'top',
|
|
31792
31840
|
'right',
|
|
@@ -31802,7 +31850,7 @@ var Style = /*#__PURE__*/ function() {
|
|
|
31802
31850
|
});
|
|
31803
31851
|
if (styleKeys.length) {
|
|
31804
31852
|
return styleKeys.map(function(key) {
|
|
31805
|
-
return "".concat((0,
|
|
31853
|
+
return "".concat((0,jodit_esm_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_7__.kebabCase)(key), ":").concat(_this.get(key));
|
|
31806
31854
|
}).join(';');
|
|
31807
31855
|
}
|
|
31808
31856
|
return '';
|
|
@@ -31812,29 +31860,29 @@ var Style = /*#__PURE__*/ function() {
|
|
|
31812
31860
|
return Style;
|
|
31813
31861
|
}();
|
|
31814
31862
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
|
|
31815
|
-
|
|
31863
|
+
jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
31816
31864
|
], Style.prototype, "forEach", null);
|
|
31817
31865
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
|
|
31818
|
-
|
|
31866
|
+
jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
31819
31867
|
], Style.prototype, "clear", null);
|
|
31820
31868
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
|
|
31821
|
-
|
|
31869
|
+
jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
31822
31870
|
], Style.prototype, "set", null);
|
|
31823
31871
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
|
|
31824
|
-
|
|
31872
|
+
jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
31825
31873
|
], Style.prototype, "get", null);
|
|
31826
31874
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
|
|
31827
|
-
|
|
31875
|
+
jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
31828
31876
|
], Style.prototype, "has", null);
|
|
31829
31877
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
|
|
31830
|
-
|
|
31878
|
+
jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
31831
31879
|
], Style.prototype, "add", null);
|
|
31832
31880
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_4__.__decorate)([
|
|
31833
|
-
|
|
31881
|
+
jodit_esm_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
31834
31882
|
], Style.prototype, "str", null);
|
|
31835
31883
|
function readStyles(style) {
|
|
31836
31884
|
return uniqueMax((style !== null && style !== void 0 ? style : '').replace(/"/g, '"').split(';').filter(Boolean).map(function(s) {
|
|
31837
|
-
return (0,
|
|
31885
|
+
return (0,jodit_esm_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__.trim)(s).split(':').map(jodit_esm_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__.trim);
|
|
31838
31886
|
})).reduce(function(acc, param) {
|
|
31839
31887
|
var _param = (0,_swc_helpers_sliced_to_array__WEBPACK_IMPORTED_MODULE_3__._)(param, 2), key = _param[0], value = _param[1];
|
|
31840
31888
|
if (key && value) {
|
|
@@ -32674,14 +32722,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
32674
32722
|
/* harmony export */ "default": function() { return /* export default binding */ __WEBPACK_DEFAULT_EXPORT__; }
|
|
32675
32723
|
/* harmony export */ });
|
|
32676
32724
|
/* harmony import */ var _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(22732);
|
|
32677
|
-
/* harmony import */ var
|
|
32678
|
-
/* harmony import */ var
|
|
32679
|
-
/* harmony import */ var
|
|
32680
|
-
/* harmony import */ var
|
|
32681
|
-
/* harmony import */ var
|
|
32682
|
-
/* harmony import */ var
|
|
32683
|
-
/* harmony import */ var
|
|
32684
|
-
/* harmony import */ var
|
|
32725
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(29960);
|
|
32726
|
+
/* harmony import */ var _core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(89890);
|
|
32727
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12153);
|
|
32728
|
+
/* harmony import */ var _elements_map_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(32118);
|
|
32729
|
+
/* harmony import */ var _utils_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21735);
|
|
32730
|
+
/* harmony import */ var _factories_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63399);
|
|
32731
|
+
/* harmony import */ var _fetch_delete_file_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(44450);
|
|
32732
|
+
/* harmony import */ var _fetch_load_tree_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(20201);
|
|
32733
|
+
/* harmony import */ var _image_editor_image_editor_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(50050);
|
|
32685
32734
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
32686
32735
|
try {
|
|
32687
32736
|
var info = gen[key](arg);
|
|
@@ -32823,26 +32872,27 @@ function _ts_generator(thisArg, body) {
|
|
|
32823
32872
|
|
|
32824
32873
|
|
|
32825
32874
|
|
|
32875
|
+
|
|
32826
32876
|
var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function preview_tpl_next() {
|
|
32827
32877
|
var next = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 'next', right = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 'right';
|
|
32828
|
-
return '<div class="'.concat(CLASS_PREVIEW, "__navigation ").concat(CLASS_PREVIEW, "__navigation_arrow_").concat(next, '">') + '' +
|
|
32878
|
+
return '<div class="'.concat(CLASS_PREVIEW, "__navigation ").concat(CLASS_PREVIEW, "__navigation_arrow_").concat(next, '">') + '' + _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_3__.Icon.get('angle-' + right) + '</a>';
|
|
32829
32879
|
};
|
|
32830
32880
|
/* harmony default export */ function __WEBPACK_DEFAULT_EXPORT__(self) {
|
|
32831
32881
|
if (!self.o.contextMenu) {
|
|
32832
32882
|
return function() {};
|
|
32833
32883
|
}
|
|
32834
|
-
var contextmenu = (0,
|
|
32884
|
+
var contextmenu = (0,_factories_js__WEBPACK_IMPORTED_MODULE_6__.makeContextMenu)(self);
|
|
32835
32885
|
return function(e) {
|
|
32836
|
-
var a = (0,
|
|
32886
|
+
var a = (0,_utils_js__WEBPACK_IMPORTED_MODULE_5__.getItem)(e.target, self.container);
|
|
32837
32887
|
if (!a) {
|
|
32838
32888
|
return;
|
|
32839
32889
|
}
|
|
32840
32890
|
var item = a;
|
|
32841
32891
|
var opt = self.options, ga = function ga(key) {
|
|
32842
|
-
return (0,
|
|
32892
|
+
return (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_1__.attr)(item, key) || '';
|
|
32843
32893
|
};
|
|
32844
32894
|
self.async.setTimeout(function() {
|
|
32845
|
-
var selectedItem = (0,
|
|
32895
|
+
var selectedItem = (0,_utils_js__WEBPACK_IMPORTED_MODULE_5__.elementToItem)(a, (0,_elements_map_js__WEBPACK_IMPORTED_MODULE_4__.elementsMap)(self));
|
|
32846
32896
|
if (!selectedItem) {
|
|
32847
32897
|
return;
|
|
32848
32898
|
}
|
|
@@ -32854,7 +32904,7 @@ var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function pr
|
|
|
32854
32904
|
icon: 'pencil',
|
|
32855
32905
|
title: 'Edit',
|
|
32856
32906
|
exec: function exec() {
|
|
32857
|
-
return
|
|
32907
|
+
return _image_editor_image_editor_js__WEBPACK_IMPORTED_MODULE_9__.openImageEditor.call(self, ga('href'), ga('data-name'), ga('data-path'), ga('data-source'));
|
|
32858
32908
|
}
|
|
32859
32909
|
} : false,
|
|
32860
32910
|
self.dataProvider.canI('FileRename') ? {
|
|
@@ -32881,7 +32931,7 @@ var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function pr
|
|
|
32881
32931
|
]);
|
|
32882
32932
|
return [
|
|
32883
32933
|
4,
|
|
32884
|
-
(0,
|
|
32934
|
+
(0,_fetch_delete_file_js__WEBPACK_IMPORTED_MODULE_7__.deleteFile)(self, ga('data-name'), ga('data-source'))
|
|
32885
32935
|
];
|
|
32886
32936
|
case 1:
|
|
32887
32937
|
_state.sent();
|
|
@@ -32899,7 +32949,7 @@ var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function pr
|
|
|
32899
32949
|
self.state.activeElements = [];
|
|
32900
32950
|
return [
|
|
32901
32951
|
2,
|
|
32902
|
-
(0,
|
|
32952
|
+
(0,_fetch_load_tree_js__WEBPACK_IMPORTED_MODULE_8__.loadTree)(self).catch(self.status)
|
|
32903
32953
|
];
|
|
32904
32954
|
}
|
|
32905
32955
|
});
|
|
@@ -32953,7 +33003,7 @@ var CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = function pr
|
|
|
32953
33003
|
item = _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.prevWithClass(item, self.files.getFullElName('item'));
|
|
32954
33004
|
}
|
|
32955
33005
|
if (!item) {
|
|
32956
|
-
throw (0,
|
|
33006
|
+
throw (0,_core_helpers_utils_error_index_js__WEBPACK_IMPORTED_MODULE_2__.error)('Need element');
|
|
32957
33007
|
}
|
|
32958
33008
|
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(temp_content);
|
|
32959
33009
|
_core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.detach(preview_box);
|
|
@@ -33114,13 +33164,15 @@ function brBefore(start) {
|
|
|
33114
33164
|
/* harmony export */ PluginSystem: function() { return /* binding */ PluginSystem; }
|
|
33115
33165
|
/* harmony export */ });
|
|
33116
33166
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
33117
|
-
/* harmony import */ var
|
|
33118
|
-
/* harmony import */ var
|
|
33119
|
-
/* harmony import */ var
|
|
33120
|
-
/* harmony import */ var
|
|
33121
|
-
/* harmony import */ var
|
|
33122
|
-
/* harmony import */ var
|
|
33123
|
-
/* harmony import */ var
|
|
33167
|
+
/* harmony import */ var _event_emitter_global_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(57012);
|
|
33168
|
+
/* harmony import */ var _helpers_array_split_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46559);
|
|
33169
|
+
/* harmony import */ var _helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(68345);
|
|
33170
|
+
/* harmony import */ var _helpers_checker_is_imp_interface_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(60132);
|
|
33171
|
+
/* harmony import */ var _helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70799);
|
|
33172
|
+
/* harmony import */ var _helpers_init_instance_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(31359);
|
|
33173
|
+
/* harmony import */ var _helpers_load_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(14041);
|
|
33174
|
+
/* harmony import */ var _helpers_make_instance_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(48591);
|
|
33175
|
+
/* harmony import */ var _helpers_utils_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(89672);
|
|
33124
33176
|
function _array_like_to_array(arr, len) {
|
|
33125
33177
|
if (len == null || len > arr.length) len = arr.length;
|
|
33126
33178
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -33199,6 +33251,8 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
33199
33251
|
|
|
33200
33252
|
|
|
33201
33253
|
|
|
33254
|
+
|
|
33255
|
+
|
|
33202
33256
|
/**
|
|
33203
33257
|
* Jodit plugin system
|
|
33204
33258
|
* @example
|
|
@@ -33212,8 +33266,9 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
33212
33266
|
* ```
|
|
33213
33267
|
*/ var PluginSystem = /*#__PURE__*/ function() {
|
|
33214
33268
|
"use strict";
|
|
33215
|
-
function PluginSystem() {
|
|
33269
|
+
function PluginSystem(opts) {
|
|
33216
33270
|
_class_call_check(this, PluginSystem);
|
|
33271
|
+
this.opts = opts;
|
|
33217
33272
|
this.__items = new Map();
|
|
33218
33273
|
}
|
|
33219
33274
|
_create_class(PluginSystem, [
|
|
@@ -33228,8 +33283,8 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
33228
33283
|
* Add plugin in store
|
|
33229
33284
|
*/ key: "add",
|
|
33230
33285
|
value: function add(name, plugin) {
|
|
33231
|
-
this.__items.set((0,
|
|
33232
|
-
|
|
33286
|
+
this.__items.set((0,_helpers_utils_js__WEBPACK_IMPORTED_MODULE_9__.normalizeName)(name), plugin);
|
|
33287
|
+
_event_emitter_global_js__WEBPACK_IMPORTED_MODULE_1__.eventEmitter.fire("plugin:".concat(name, ":ready"));
|
|
33233
33288
|
}
|
|
33234
33289
|
},
|
|
33235
33290
|
{
|
|
@@ -33237,7 +33292,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
33237
33292
|
* Get plugin from store
|
|
33238
33293
|
*/ key: "get",
|
|
33239
33294
|
value: function get(name) {
|
|
33240
|
-
return this.__items.get((0,
|
|
33295
|
+
return this.__items.get((0,_helpers_utils_js__WEBPACK_IMPORTED_MODULE_9__.normalizeName)(name));
|
|
33241
33296
|
}
|
|
33242
33297
|
},
|
|
33243
33298
|
{
|
|
@@ -33245,7 +33300,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
33245
33300
|
* Remove plugin from store
|
|
33246
33301
|
*/ key: "remove",
|
|
33247
33302
|
value: function remove(name) {
|
|
33248
|
-
this.__items.delete((0,
|
|
33303
|
+
this.__items.delete((0,_helpers_utils_js__WEBPACK_IMPORTED_MODULE_9__.normalizeName)(name));
|
|
33249
33304
|
}
|
|
33250
33305
|
},
|
|
33251
33306
|
{
|
|
@@ -33285,7 +33340,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
33285
33340
|
return;
|
|
33286
33341
|
}
|
|
33287
33342
|
var requires = plugin === null || plugin === void 0 ? void 0 : plugin.requires;
|
|
33288
|
-
if (requires && (0,
|
|
33343
|
+
if (requires && (0,_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_3__.isArray)(requires) && requires.length) {
|
|
33289
33344
|
if (requires.some(function(req) {
|
|
33290
33345
|
return disableList.has(req);
|
|
33291
33346
|
})) {
|
|
@@ -33299,13 +33354,13 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
33299
33354
|
}
|
|
33300
33355
|
}
|
|
33301
33356
|
commit = true;
|
|
33302
|
-
var instance = (0,
|
|
33357
|
+
var instance = (0,_helpers_make_instance_js__WEBPACK_IMPORTED_MODULE_8__.makeInstance)(jodit, plugin);
|
|
33303
33358
|
if (!instance) {
|
|
33304
33359
|
doneList.set(name, null);
|
|
33305
33360
|
waitingList.delete(name);
|
|
33306
33361
|
return;
|
|
33307
33362
|
}
|
|
33308
|
-
(0,
|
|
33363
|
+
(0,_helpers_init_instance_js__WEBPACK_IMPORTED_MODULE_6__.init)(jodit, name, plugin, instance, doneList, waitingList, _this.opts.getContainer);
|
|
33309
33364
|
pluginsMap[name] = instance;
|
|
33310
33365
|
});
|
|
33311
33366
|
if (commit) {
|
|
@@ -33314,7 +33369,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
33314
33369
|
}
|
|
33315
33370
|
};
|
|
33316
33371
|
if (extraList && extraList.length) {
|
|
33317
|
-
(0,
|
|
33372
|
+
(0,_helpers_load_js__WEBPACK_IMPORTED_MODULE_7__.loadExtras)(this.__items, jodit, extraList, initPlugins);
|
|
33318
33373
|
}
|
|
33319
33374
|
initPlugins();
|
|
33320
33375
|
bindOnBeforeDestruct(jodit, pluginsMap);
|
|
@@ -33335,9 +33390,9 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
33335
33390
|
}
|
|
33336
33391
|
var onReady = function onReady1() {
|
|
33337
33392
|
resolve();
|
|
33338
|
-
|
|
33393
|
+
_event_emitter_global_js__WEBPACK_IMPORTED_MODULE_1__.eventEmitter.off("plugin:".concat(name, ":ready"), onReady);
|
|
33339
33394
|
};
|
|
33340
|
-
|
|
33395
|
+
_event_emitter_global_js__WEBPACK_IMPORTED_MODULE_1__.eventEmitter.on("plugin:".concat(name, ":ready"), onReady);
|
|
33341
33396
|
});
|
|
33342
33397
|
}
|
|
33343
33398
|
}
|
|
@@ -33350,7 +33405,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
33350
33405
|
jodit.e.on('beforeDestruct', function() {
|
|
33351
33406
|
Object.keys(plugins).forEach(function(name) {
|
|
33352
33407
|
var instance = plugins[name];
|
|
33353
|
-
if ((0,
|
|
33408
|
+
if ((0,_helpers_checker_is_imp_interface_js__WEBPACK_IMPORTED_MODULE_4__.isDestructable)(instance)) {
|
|
33354
33409
|
instance.destruct(jodit);
|
|
33355
33410
|
}
|
|
33356
33411
|
delete plugins[name];
|
|
@@ -33360,11 +33415,11 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
33360
33415
|
}
|
|
33361
33416
|
function getSpecialLists(jodit) {
|
|
33362
33417
|
var extraList = jodit.o.extraPlugins.map(function(s) {
|
|
33363
|
-
return (0,
|
|
33418
|
+
return (0,_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_5__.isString)(s) ? {
|
|
33364
33419
|
name: s
|
|
33365
33420
|
} : s;
|
|
33366
33421
|
});
|
|
33367
|
-
var disableList = new Set((0,
|
|
33422
|
+
var 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));
|
|
33368
33423
|
var filter = jodit.o.safeMode ? new Set(jodit.o.safePluginsList) : null;
|
|
33369
33424
|
return {
|
|
33370
33425
|
extraList: extraList,
|
|
@@ -33897,7 +33952,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
33897
33952
|
/* harmony import */ var _render__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(99658);
|
|
33898
33953
|
/* harmony import */ var _style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(40273);
|
|
33899
33954
|
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(82758);
|
|
33900
|
-
/* harmony import */ var
|
|
33955
|
+
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(2748);
|
|
33901
33956
|
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(38837);
|
|
33902
33957
|
/*!
|
|
33903
33958
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
@@ -34144,7 +34199,7 @@ var JElement = /*#__PURE__*/ function() {
|
|
|
34144
34199
|
}();
|
|
34145
34200
|
function readAttributes(node) {
|
|
34146
34201
|
var result = {};
|
|
34147
|
-
if (
|
|
34202
|
+
if (jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_7__.Dom.isElement(node)) {
|
|
34148
34203
|
for(var i = 0, attrs = node.attributes; i < attrs.length; i += 1){
|
|
34149
34204
|
result[attrs[i].name] = attrs[i].value;
|
|
34150
34205
|
}
|
|
@@ -34304,11 +34359,11 @@ function _sliced_to_array(arr, i) {
|
|
|
34304
34359
|
/* harmony export */ get: function() { return /* reexport safe */ _get_js__WEBPACK_IMPORTED_MODULE_15__.get; },
|
|
34305
34360
|
/* harmony export */ getClassName: function() { return /* reexport safe */ _get_class_name_js__WEBPACK_IMPORTED_MODULE_16__.getClassName; },
|
|
34306
34361
|
/* harmony export */ getDataTransfer: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_26__.getDataTransfer; },
|
|
34362
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_26__.getPropertyDescriptor; },
|
|
34307
34363
|
/* harmony export */ getXPathByElement: function() { return /* reexport safe */ _selector_js__WEBPACK_IMPORTED_MODULE_23__.getXPathByElement; },
|
|
34308
34364
|
/* harmony export */ hAlignElement: function() { return /* reexport safe */ _align_js__WEBPACK_IMPORTED_MODULE_0__.hAlignElement; },
|
|
34309
34365
|
/* harmony export */ humanSizeToBytes: function() { return /* reexport safe */ _human_size_to_bytes_js__WEBPACK_IMPORTED_MODULE_17__.humanSizeToBytes; },
|
|
34310
34366
|
/* harmony export */ inView: function() { return /* reexport safe */ _scroll_into_view_js__WEBPACK_IMPORTED_MODULE_22__.inView; },
|
|
34311
|
-
/* harmony export */ isAbort: function() { return /* reexport safe */ _error_index_js__WEBPACK_IMPORTED_MODULE_13__.isAbort; },
|
|
34312
34367
|
/* harmony export */ isAtom: function() { return /* reexport safe */ _extend_js__WEBPACK_IMPORTED_MODULE_14__.isAtom; },
|
|
34313
34368
|
/* harmony export */ keepNames: function() { return /* reexport safe */ _get_class_name_js__WEBPACK_IMPORTED_MODULE_16__.keepNames; },
|
|
34314
34369
|
/* harmony export */ keys: function() { return /* reexport safe */ _utils_js__WEBPACK_IMPORTED_MODULE_26__.keys; },
|
|
@@ -38127,8 +38182,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeSandbox = null;
|
|
|
38127
38182
|
/* harmony export */ });
|
|
38128
38183
|
/* harmony import */ var _transform_word_to_html__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(19606);
|
|
38129
38184
|
/* harmony import */ var jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
38130
|
-
/* harmony import */ var
|
|
38131
|
-
/* harmony import */ var
|
|
38185
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29960);
|
|
38186
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(76078);
|
|
38187
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(97420);
|
|
38132
38188
|
/*!
|
|
38133
38189
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
38134
38190
|
* See LICENSE.md in the project root for license information.
|
|
@@ -38137,6 +38193,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.iframeSandbox = null;
|
|
|
38137
38193
|
|
|
38138
38194
|
|
|
38139
38195
|
|
|
38196
|
+
|
|
38140
38197
|
function applyStylesPro(jodit, html, removeStyles) {
|
|
38141
38198
|
var rtf = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : '';
|
|
38142
38199
|
var iframe = document.createElement('iframe');
|
|
@@ -38149,12 +38206,12 @@ function applyStylesPro(jodit, html, removeStyles) {
|
|
|
38149
38206
|
if (!rules[idx].selectorText) {
|
|
38150
38207
|
return "continue";
|
|
38151
38208
|
}
|
|
38152
|
-
(0,
|
|
38153
|
-
if (!(0,
|
|
38154
|
-
(0,
|
|
38155
|
-
(0,
|
|
38209
|
+
(0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_3__.$$)(rules[idx].selectorText, doc.body).forEach(function(elm) {
|
|
38210
|
+
if (!(0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, JDS)) {
|
|
38211
|
+
(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') || '');
|
|
38212
|
+
(0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, 'style', '');
|
|
38156
38213
|
}
|
|
38157
|
-
(0,
|
|
38214
|
+
(0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, 'style', "".concat((0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, 'style'), ";").concat(rules[idx].style.cssText));
|
|
38158
38215
|
});
|
|
38159
38216
|
};
|
|
38160
38217
|
var rules = doc.styleSheets[i].cssRules;
|
|
@@ -38172,10 +38229,10 @@ function applyStylesPro(jodit, html, removeStyles) {
|
|
|
38172
38229
|
doc.close();
|
|
38173
38230
|
var JDS = 'jd-style';
|
|
38174
38231
|
for(var i = 0; i < doc.styleSheets.length; i += 1)_loop(i);
|
|
38175
|
-
(0,
|
|
38176
|
-
(0,
|
|
38232
|
+
(0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_3__.$$)("[".concat(JDS, "]"), doc.body).forEach(function(elm) {
|
|
38233
|
+
(0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, 'style', "".concat((0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, 'style'), ";").concat((0,jodit_esm_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(elm, JDS)));
|
|
38177
38234
|
});
|
|
38178
|
-
return (0,_transform_word_to_html__WEBPACK_IMPORTED_MODULE_0__.transformWordToHtml)(jodit,
|
|
38235
|
+
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);
|
|
38179
38236
|
} finally{
|
|
38180
38237
|
jodit_esm_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.safeRemove(iframe);
|
|
38181
38238
|
}
|
|
@@ -39644,7 +39701,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39644
39701
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
39645
39702
|
/* harmony export */ convertStyleUnitToPixels: function() { return /* binding */ convertStyleUnitToPixels; }
|
|
39646
39703
|
/* harmony export */ });
|
|
39647
|
-
/* harmony import */ var
|
|
39704
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers_helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(43712);
|
|
39648
39705
|
/*!
|
|
39649
39706
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
39650
39707
|
* See LICENSE.md in the project root for license information.
|
|
@@ -39660,7 +39717,7 @@ var convertStyleUnitToPixels = function convertStyleUnitToPixels(elm, param) {
|
|
|
39660
39717
|
var v = style.get(key);
|
|
39661
39718
|
if (v) {
|
|
39662
39719
|
style.set(key, v.toString().replace(/\d+(\.\d+)?(pt|cm)/g, function(match) {
|
|
39663
|
-
return (0,
|
|
39720
|
+
return (0,jodit_pro_plugins_paste_from_word_helpers_helpers__WEBPACK_IMPORTED_MODULE_0__.convertUnitToPx)(match) + 'px';
|
|
39664
39721
|
}));
|
|
39665
39722
|
}
|
|
39666
39723
|
});
|
|
@@ -40623,8 +40680,8 @@ function derive() {
|
|
|
40623
40680
|
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
40624
40681
|
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
40625
40682
|
/* harmony import */ var _helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38837);
|
|
40626
|
-
/* harmony import */ var
|
|
40627
|
-
/* harmony import */ var
|
|
40683
|
+
/* harmony import */ var _api_index_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(63687);
|
|
40684
|
+
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(77361);
|
|
40628
40685
|
function _define_property(obj, key, value) {
|
|
40629
40686
|
if (key in obj) {
|
|
40630
40687
|
Object.defineProperty(obj, key, {
|
|
@@ -40703,19 +40760,19 @@ var _obj;
|
|
|
40703
40760
|
var transactions = (_obj = {}, _define_property(_obj, states.START, {
|
|
40704
40761
|
exec: function exec(value) {
|
|
40705
40762
|
var element = value.element, jodit = value.jodit, style = value.style, mode = value.mode, collapsed = value.collapsed;
|
|
40706
|
-
if ((0,
|
|
40763
|
+
if ((0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.isInsideInvisibleElement)(element, jodit.editor) || !collapsed && _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isEmptyContent(element)) {
|
|
40707
40764
|
return _object_spread_props(_object_spread({}, value), {
|
|
40708
40765
|
next: states.END
|
|
40709
40766
|
});
|
|
40710
40767
|
}
|
|
40711
|
-
var elm = (0,
|
|
40768
|
+
var 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);
|
|
40712
40769
|
if (elm) {
|
|
40713
40770
|
return _object_spread_props(_object_spread({}, value), {
|
|
40714
40771
|
next: states.ELEMENT,
|
|
40715
40772
|
element: elm
|
|
40716
40773
|
});
|
|
40717
40774
|
}
|
|
40718
|
-
var suit = (0,
|
|
40775
|
+
var suit = (0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.suitableClosest)(style, element, jodit.editor);
|
|
40719
40776
|
if (style.elementIsList && _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isList(suit)) {
|
|
40720
40777
|
return _object_spread_props(_object_spread({}, value), {
|
|
40721
40778
|
next: states.LIST
|
|
@@ -40727,13 +40784,13 @@ var transactions = (_obj = {}, _define_property(_obj, states.START, {
|
|
|
40727
40784
|
});
|
|
40728
40785
|
}
|
|
40729
40786
|
return _object_spread_props(_object_spread({}, value), {
|
|
40730
|
-
next: mode !==
|
|
40787
|
+
next: mode !== _constants_js__WEBPACK_IMPORTED_MODULE_4__.UNWRAP ? states.UNWRAP_CHILDREN : states.END
|
|
40731
40788
|
});
|
|
40732
40789
|
}
|
|
40733
40790
|
}), _define_property(_obj, states.LIST, {
|
|
40734
40791
|
exec: function exec(value) {
|
|
40735
40792
|
var element = value.element, jodit = value.jodit, mode = value.mode;
|
|
40736
|
-
if (mode !==
|
|
40793
|
+
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) {
|
|
40737
40794
|
return _object_spread_props(_object_spread({}, value), {
|
|
40738
40795
|
next: states.END
|
|
40739
40796
|
});
|
|
@@ -40758,7 +40815,7 @@ var transactions = (_obj = {}, _define_property(_obj, states.START, {
|
|
|
40758
40815
|
}), _define_property(_obj, states.TOGGLE_LIST, {
|
|
40759
40816
|
exec: function exec(value) {
|
|
40760
40817
|
return _object_spread_props(_object_spread({}, value), {
|
|
40761
|
-
mode: (0,
|
|
40818
|
+
mode: (0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.toggleOrderedList)(value.style, value.element, value.jodit, value.mode),
|
|
40762
40819
|
next: states.END
|
|
40763
40820
|
});
|
|
40764
40821
|
}
|
|
@@ -40766,14 +40823,14 @@ var transactions = (_obj = {}, _define_property(_obj, states.START, {
|
|
|
40766
40823
|
exec: function exec(value) {
|
|
40767
40824
|
var _a;
|
|
40768
40825
|
var element = value.element, jodit = value.jodit, style = value.style;
|
|
40769
|
-
var suit = (0,
|
|
40826
|
+
var suit = (0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.suitableClosest)(style, element, jodit.editor);
|
|
40770
40827
|
(0,_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_2__.assert)(suit, 'This place should have an element');
|
|
40771
40828
|
// If we're applying inline styles to a block element, don't split the block
|
|
40772
40829
|
var isApplyingInlineStyle = !style.elementIsBlock && ((_a = style.options.attributes) === null || _a === void 0 ? void 0 : _a.style);
|
|
40773
40830
|
var shouldNotSplitBlock = isApplyingInlineStyle && _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isBlock(suit);
|
|
40774
40831
|
if (!shouldNotSplitBlock) {
|
|
40775
40832
|
if (!style.elementIsBlock) {
|
|
40776
|
-
(0,
|
|
40833
|
+
(0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.extractSelectedPart)(suit, element, jodit);
|
|
40777
40834
|
}
|
|
40778
40835
|
return _object_spread_props(_object_spread({}, value), {
|
|
40779
40836
|
element: suit,
|
|
@@ -40788,30 +40845,30 @@ var transactions = (_obj = {}, _define_property(_obj, states.START, {
|
|
|
40788
40845
|
}), _define_property(_obj, states.UNWRAP_CHILDREN, {
|
|
40789
40846
|
exec: function exec(value) {
|
|
40790
40847
|
var element = value.element, style = value.style;
|
|
40791
|
-
if (!(0,
|
|
40848
|
+
if (!(0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.unwrapChildren)(style, element)) {
|
|
40792
40849
|
return _object_spread_props(_object_spread({}, value), {
|
|
40793
40850
|
next: states.WRAP
|
|
40794
40851
|
});
|
|
40795
40852
|
}
|
|
40796
40853
|
return _object_spread_props(_object_spread({}, value), {
|
|
40797
|
-
mode:
|
|
40854
|
+
mode: _constants_js__WEBPACK_IMPORTED_MODULE_4__.UNWRAP,
|
|
40798
40855
|
next: states.END
|
|
40799
40856
|
});
|
|
40800
40857
|
}
|
|
40801
40858
|
}), _define_property(_obj, states.WRAP, {
|
|
40802
40859
|
exec: function exec(value) {
|
|
40803
40860
|
var element = value.element, jodit = value.jodit, style = value.style;
|
|
40804
|
-
var wrapper = (0,
|
|
40861
|
+
var wrapper = (0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.wrap)(style, element, jodit);
|
|
40805
40862
|
return _object_spread_props(_object_spread({}, value), {
|
|
40806
40863
|
next: style.elementIsList ? states.END : states.CHANGE,
|
|
40807
|
-
mode:
|
|
40864
|
+
mode: _constants_js__WEBPACK_IMPORTED_MODULE_4__.WRAP,
|
|
40808
40865
|
element: wrapper
|
|
40809
40866
|
});
|
|
40810
40867
|
}
|
|
40811
40868
|
}), _define_property(_obj, states.ELEMENT, {
|
|
40812
40869
|
exec: function exec(value) {
|
|
40813
40870
|
var style = value.style, element = value.element, jodit = value.jodit;
|
|
40814
|
-
if ((0,
|
|
40871
|
+
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) {
|
|
40815
40872
|
return _object_spread_props(_object_spread({}, value), {
|
|
40816
40873
|
next: states.CHANGE
|
|
40817
40874
|
});
|
|
@@ -40829,8 +40886,8 @@ var transactions = (_obj = {}, _define_property(_obj, states.START, {
|
|
|
40829
40886
|
}), _define_property(_obj, states.CHANGE, {
|
|
40830
40887
|
exec: function exec(value) {
|
|
40831
40888
|
var style = value.style, element = value.element, jodit = value.jodit, mode = value.mode;
|
|
40832
|
-
var newMode = (0,
|
|
40833
|
-
if (mode !==
|
|
40889
|
+
var newMode = (0,_api_index_js__WEBPACK_IMPORTED_MODULE_3__.toggleAttributes)(style, element, jodit, value.mode);
|
|
40890
|
+
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)) {
|
|
40834
40891
|
return _object_spread_props(_object_spread({}, value), {
|
|
40835
40892
|
next: states.UNWRAP
|
|
40836
40893
|
});
|
|
@@ -40849,7 +40906,7 @@ var transactions = (_obj = {}, _define_property(_obj, states.START, {
|
|
|
40849
40906
|
}
|
|
40850
40907
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.unwrap(value.element);
|
|
40851
40908
|
return _object_spread_props(_object_spread({}, value), {
|
|
40852
|
-
mode:
|
|
40909
|
+
mode: _constants_js__WEBPACK_IMPORTED_MODULE_4__.UNWRAP,
|
|
40853
40910
|
next: states.END
|
|
40854
40911
|
});
|
|
40855
40912
|
}
|
|
@@ -40857,7 +40914,7 @@ var transactions = (_obj = {}, _define_property(_obj, states.START, {
|
|
|
40857
40914
|
exec: function exec(value) {
|
|
40858
40915
|
_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.replace(value.element, value.style.defaultTag, value.jodit.createInside, true);
|
|
40859
40916
|
return _object_spread_props(_object_spread({}, value), {
|
|
40860
|
-
mode:
|
|
40917
|
+
mode: _constants_js__WEBPACK_IMPORTED_MODULE_4__.REPLACE,
|
|
40861
40918
|
next: states.END
|
|
40862
40919
|
});
|
|
40863
40920
|
}
|
|
@@ -42296,6 +42353,19 @@ __decorate([
|
|
|
42296
42353
|
}
|
|
42297
42354
|
|
|
42298
42355
|
|
|
42356
|
+
/***/ }),
|
|
42357
|
+
|
|
42358
|
+
/***/ 57012:
|
|
42359
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
42360
|
+
|
|
42361
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
42362
|
+
/* harmony export */ eventEmitter: function() { return /* binding */ eventEmitter; }
|
|
42363
|
+
/* harmony export */ });
|
|
42364
|
+
/* harmony import */ var _event_emitter_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98220);
|
|
42365
|
+
|
|
42366
|
+
var eventEmitter = new _event_emitter_js__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
|
|
42367
|
+
|
|
42368
|
+
|
|
42299
42369
|
/***/ }),
|
|
42300
42370
|
|
|
42301
42371
|
/***/ 57034:
|
|
@@ -43762,10 +43832,8 @@ jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_13__.JoditPro.plugins.add('pasteFro
|
|
|
43762
43832
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
43763
43833
|
/* harmony export */ CHANGE: function() { return /* reexport safe */ _style_constants_js__WEBPACK_IMPORTED_MODULE_2__.CHANGE; },
|
|
43764
43834
|
/* harmony export */ CommitStyle: function() { return /* reexport safe */ _style_commit_style_js__WEBPACK_IMPORTED_MODULE_1__.CommitStyle; },
|
|
43765
|
-
/* harmony export */ INITIAL: function() { return /* reexport safe */ _style_constants_js__WEBPACK_IMPORTED_MODULE_2__.INITIAL; },
|
|
43766
43835
|
/* harmony export */ REPLACE: function() { return /* reexport safe */ _style_constants_js__WEBPACK_IMPORTED_MODULE_2__.REPLACE; },
|
|
43767
43836
|
/* harmony export */ Selection: function() { return /* reexport safe */ _selection_js__WEBPACK_IMPORTED_MODULE_0__.Selection; },
|
|
43768
|
-
/* harmony export */ UNSET: function() { return /* reexport safe */ _style_constants_js__WEBPACK_IMPORTED_MODULE_2__.UNSET; },
|
|
43769
43837
|
/* harmony export */ UNWRAP: function() { return /* reexport safe */ _style_constants_js__WEBPACK_IMPORTED_MODULE_2__.UNWRAP; },
|
|
43770
43838
|
/* harmony export */ WRAP: function() { return /* reexport safe */ _style_constants_js__WEBPACK_IMPORTED_MODULE_2__.WRAP; }
|
|
43771
43839
|
/* harmony export */ });
|
|
@@ -48261,12 +48329,10 @@ function makeContextMenu(parent) {
|
|
|
48261
48329
|
|
|
48262
48330
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
48263
48331
|
/* harmony export */ FiniteStateMachine: function() { return /* reexport safe */ _finite_state_machine_js__WEBPACK_IMPORTED_MODULE_1__.FiniteStateMachine; },
|
|
48264
|
-
/* harmony export */ elementsEqualAttributes: function() { return /* reexport safe */ _is_same_attributes_js__WEBPACK_IMPORTED_MODULE_7__.elementsEqualAttributes; },
|
|
48265
48332
|
/* harmony export */ extractSelectedPart: function() { return /* reexport safe */ _extract_js__WEBPACK_IMPORTED_MODULE_0__.extractSelectedPart; },
|
|
48266
48333
|
/* harmony export */ getSuitChild: function() { return /* reexport safe */ _get_suit_child_js__WEBPACK_IMPORTED_MODULE_2__.getSuitChild; },
|
|
48267
48334
|
/* harmony export */ getSuitParent: function() { return /* reexport safe */ _get_suit_parent_js__WEBPACK_IMPORTED_MODULE_3__.getSuitParent; },
|
|
48268
48335
|
/* harmony export */ isInsideInvisibleElement: function() { return /* reexport safe */ _is_inside_invisible_element_js__WEBPACK_IMPORTED_MODULE_5__.isInsideInvisibleElement; },
|
|
48269
|
-
/* harmony export */ isSameAttributes: function() { return /* reexport safe */ _is_same_attributes_js__WEBPACK_IMPORTED_MODULE_7__.isSameAttributes; },
|
|
48270
48336
|
/* harmony export */ suitableClosest: function() { return /* reexport safe */ _is_suit_element_js__WEBPACK_IMPORTED_MODULE_8__.suitableClosest; },
|
|
48271
48337
|
/* harmony export */ toggleAttributes: function() { return /* reexport safe */ _toggle_attributes_js__WEBPACK_IMPORTED_MODULE_11__.toggleAttributes; },
|
|
48272
48338
|
/* harmony export */ toggleOrderedList: function() { return /* reexport safe */ _list_toggle_ordered_list_js__WEBPACK_IMPORTED_MODULE_9__.toggleOrderedList; },
|
|
@@ -48919,7 +48985,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
48919
48985
|
/* harmony export */ component: function() { return /* reexport safe */ _component_component_js__WEBPACK_IMPORTED_MODULE_2__.component; },
|
|
48920
48986
|
/* harmony export */ debounce: function() { return /* reexport safe */ _debounce_debounce_js__WEBPACK_IMPORTED_MODULE_3__.debounce; },
|
|
48921
48987
|
/* harmony export */ derive: function() { return /* reexport safe */ _derive_derive_js__WEBPACK_IMPORTED_MODULE_4__.derive; },
|
|
48922
|
-
/* harmony export */
|
|
48988
|
+
/* harmony export */ getComponentClass: function() { return /* reexport safe */ _component_component_js__WEBPACK_IMPORTED_MODULE_2__.getComponentClass; },
|
|
48923
48989
|
/* harmony export */ hook: function() { return /* reexport safe */ _hook_hook_js__WEBPACK_IMPORTED_MODULE_5__.hook; },
|
|
48924
48990
|
/* harmony export */ idle: function() { return /* reexport safe */ _idle_idle_js__WEBPACK_IMPORTED_MODULE_6__.idle; },
|
|
48925
48991
|
/* harmony export */ nonenumerable: function() { return /* reexport safe */ _nonenumerable_nonenumerable_js__WEBPACK_IMPORTED_MODULE_7__.nonenumerable; },
|
|
@@ -51743,7 +51809,7 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_2__.pluginSystem.add('indent', indent);
|
|
|
51743
51809
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
51744
51810
|
/* harmony export */ LazyWalker: function() { return /* binding */ LazyWalker; }
|
|
51745
51811
|
/* harmony export */ });
|
|
51746
|
-
/* harmony import */ var
|
|
51812
|
+
/* harmony import */ var _decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45219);
|
|
51747
51813
|
/* harmony import */ var _dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
51748
51814
|
/* harmony import */ var _event_emitter_eventify_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72757);
|
|
51749
51815
|
function _assert_this_initialized(self) {
|
|
@@ -51974,7 +52040,7 @@ var LazyWalker = /*#__PURE__*/ function(Eventify) {
|
|
|
51974
52040
|
return LazyWalker;
|
|
51975
52041
|
}(_event_emitter_eventify_js__WEBPACK_IMPORTED_MODULE_2__.Eventify);
|
|
51976
52042
|
__decorate([
|
|
51977
|
-
|
|
52043
|
+
_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_0__.autobind
|
|
51978
52044
|
], LazyWalker.prototype, "__workPerform", null);
|
|
51979
52045
|
|
|
51980
52046
|
|
|
@@ -53883,10 +53949,10 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
53883
53949
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
53884
53950
|
/* harmony export */ observable: function() { return /* binding */ observable; }
|
|
53885
53951
|
/* harmony export */ });
|
|
53886
|
-
/* harmony import */ var
|
|
53887
|
-
/* harmony import */ var
|
|
53888
|
-
/* harmony import */ var
|
|
53889
|
-
/* harmony import */ var
|
|
53952
|
+
/* harmony import */ var _helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(68345);
|
|
53953
|
+
/* harmony import */ var _helpers_checker_is_equal_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(59292);
|
|
53954
|
+
/* harmony import */ var _helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(72430);
|
|
53955
|
+
/* harmony import */ var _helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(37790);
|
|
53890
53956
|
function _array_like_to_array(arr, len) {
|
|
53891
53957
|
if (len == null || len > arr.length) len = arr.length;
|
|
53892
53958
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -53965,7 +54031,7 @@ function isObservableObject(obj) {
|
|
|
53965
54031
|
var __lockEvent = {};
|
|
53966
54032
|
var __onEvents = {};
|
|
53967
54033
|
var on = function on1(event, callback) {
|
|
53968
|
-
if ((0,
|
|
54034
|
+
if ((0,_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__.isArray)(event)) {
|
|
53969
54035
|
event.map(function(e) {
|
|
53970
54036
|
return on(e, callback);
|
|
53971
54037
|
});
|
|
@@ -53981,7 +54047,7 @@ function isObservableObject(obj) {
|
|
|
53981
54047
|
for(var _len = arguments.length, attr = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
|
|
53982
54048
|
attr[_key - 1] = arguments[_key];
|
|
53983
54049
|
}
|
|
53984
|
-
if ((0,
|
|
54050
|
+
if ((0,_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_0__.isArray)(event)) {
|
|
53985
54051
|
event.map(function(e) {
|
|
53986
54052
|
return fire.apply(void 0, [
|
|
53987
54053
|
e
|
|
@@ -54019,16 +54085,16 @@ function isObservableObject(obj) {
|
|
|
54019
54085
|
return a.length;
|
|
54020
54086
|
});
|
|
54021
54087
|
store[key] = dict[key];
|
|
54022
|
-
var descriptor = (0,
|
|
54088
|
+
var descriptor = (0,_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_3__.getPropertyDescriptor)(dict, key);
|
|
54023
54089
|
Object.defineProperty(dict, key, {
|
|
54024
54090
|
set: function set(value) {
|
|
54025
54091
|
var oldValue = store[key];
|
|
54026
|
-
if (!(0,
|
|
54092
|
+
if (!(0,_helpers_checker_is_equal_js__WEBPACK_IMPORTED_MODULE_1__.isFastEqual)(store[key], value)) {
|
|
54027
54093
|
fire([
|
|
54028
54094
|
'beforeChange',
|
|
54029
54095
|
"beforeChange.".concat(prefix.join('.'))
|
|
54030
54096
|
], key, value);
|
|
54031
|
-
if ((0,
|
|
54097
|
+
if ((0,_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(value)) {
|
|
54032
54098
|
initAccessors(value, prefix);
|
|
54033
54099
|
}
|
|
54034
54100
|
if (descriptor && descriptor.set) {
|
|
@@ -54055,7 +54121,7 @@ function isObservableObject(obj) {
|
|
|
54055
54121
|
enumerable: true,
|
|
54056
54122
|
configurable: true
|
|
54057
54123
|
});
|
|
54058
|
-
if ((0,
|
|
54124
|
+
if ((0,_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(store[key])) {
|
|
54059
54125
|
initAccessors(store[key], prefix);
|
|
54060
54126
|
}
|
|
54061
54127
|
});
|
|
@@ -54111,7 +54177,7 @@ _config_js__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.about = {
|
|
|
54111
54177
|
var dialog = editor.dlg({
|
|
54112
54178
|
closeOnClickOverlay: true
|
|
54113
54179
|
}), i = editor.i18n.bind(editor);
|
|
54114
|
-
dialog.setMod('theme', editor.o.theme).setHeader(i('About Jodit')).setContent('<div class="jodit-about">\n <div>'.concat(i('Jodit Editor'), " v.").concat(editor.getVersion(), "</div>\n <div>").concat(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>\n <div>\n <a href="').concat(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE, '" target="_blank">').concat(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE, '</a>\n </div>\n <div>\n <a href="https://xdsoft.net/jodit/docs/" target="_blank">').concat(i("Jodit User's Guide"), "</a>\n ").concat(i('contains detailed help for using'), "\n </div>\n <div>").concat(i('Copyright © XDSoft.net - Chupurnov
|
|
54180
|
+
dialog.setMod('theme', editor.o.theme).setHeader(i('About Jodit')).setContent('<div class="jodit-about">\n <div>'.concat(i('Jodit Editor'), " v.").concat(editor.getVersion(), "</div>\n <div>").concat(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>\n <div>\n <a href="').concat(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE, '" target="_blank">').concat(_core_constants_js__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE, '</a>\n </div>\n <div>\n <a href="https://xdsoft.net/jodit/docs/" target="_blank">').concat(i("Jodit User's Guide"), "</a>\n ").concat(i('contains detailed help for using'), "\n </div>\n <div>").concat(i('Copyright © XDSoft.net - Chupurnov Valerii. All rights reserved.'), "</div>\n </div>"));
|
|
54115
54181
|
(0,_core_helpers_index_js__WEBPACK_IMPORTED_MODULE_2__.css)(dialog.dialog, {
|
|
54116
54182
|
minHeight: 200,
|
|
54117
54183
|
minWidth: 420
|
|
@@ -54367,15 +54433,14 @@ function checkRepeatRemoveCharAction(backspace, sibling, fakeNode, mode, removed
|
|
|
54367
54433
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
54368
54434
|
|
|
54369
54435
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
54370
|
-
/* harmony export */ elementToItem: function() { return /* binding */ elementToItem; },
|
|
54371
|
-
/* harmony export */ getItem: function() { return /* binding */ getItem; },
|
|
54372
54436
|
/* harmony export */ nativeListeners: function() { return /* binding */ nativeListeners; }
|
|
54373
54437
|
/* harmony export */ });
|
|
54374
|
-
/* harmony import */ var
|
|
54375
|
-
/* harmony import */ var
|
|
54438
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(29960);
|
|
54439
|
+
/* harmony import */ var _core_helpers_utils_ctrl_key_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(15456);
|
|
54376
54440
|
/* harmony import */ var _builders_context_menu_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41457);
|
|
54377
54441
|
/* harmony import */ var _builders_elements_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(32118);
|
|
54378
|
-
/* harmony import */ var
|
|
54442
|
+
/* harmony import */ var _builders_utils_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21735);
|
|
54443
|
+
/* harmony import */ var _fetch_load_tree_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(20201);
|
|
54379
54444
|
function _array_like_to_array(arr, len) {
|
|
54380
54445
|
if (len == null || len > arr.length) len = arr.length;
|
|
54381
54446
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -54410,20 +54475,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
54410
54475
|
|
|
54411
54476
|
|
|
54412
54477
|
|
|
54413
|
-
|
|
54414
|
-
* @private
|
|
54415
|
-
*/ var getItem = function getItem(node, root) {
|
|
54416
|
-
var tag = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 'a';
|
|
54417
|
-
return _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(node, function(elm) {
|
|
54418
|
-
return _core_dom_index_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(elm, tag);
|
|
54419
|
-
}, root);
|
|
54420
|
-
};
|
|
54421
|
-
/**
|
|
54422
|
-
* @private
|
|
54423
|
-
*/ var elementToItem = function elementToItem(elm, elementsMap) {
|
|
54424
|
-
var key = elm.dataset.key, item = elementsMap[key || ''].item;
|
|
54425
|
-
return item;
|
|
54426
|
-
};
|
|
54478
|
+
|
|
54427
54479
|
/**
|
|
54428
54480
|
* @private
|
|
54429
54481
|
*/ function nativeListeners() {
|
|
@@ -54432,7 +54484,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
54432
54484
|
var elmMap = (0,_builders_elements_map_js__WEBPACK_IMPORTED_MODULE_3__.elementsMap)(this);
|
|
54433
54485
|
var self = this;
|
|
54434
54486
|
self.e.on(self.tree.container, 'dragstart', function(e) {
|
|
54435
|
-
var a = getItem(e.target, self.container);
|
|
54487
|
+
var a = (0,_builders_utils_js__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
|
|
54436
54488
|
if (!a) {
|
|
54437
54489
|
return;
|
|
54438
54490
|
}
|
|
@@ -54441,41 +54493,41 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
54441
54493
|
}
|
|
54442
54494
|
}).on(self.tree.container, 'drop', function(e) {
|
|
54443
54495
|
if ((self.o.moveFile || self.o.moveFolder) && dragElement) {
|
|
54444
|
-
var path = (0,
|
|
54496
|
+
var path = (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_0__.attr)(dragElement, '-path') || '';
|
|
54445
54497
|
// move folder
|
|
54446
54498
|
if (!self.o.moveFolder && dragElement.classList.contains(_this.tree.getFullElName('item'))) {
|
|
54447
54499
|
return false;
|
|
54448
54500
|
}
|
|
54449
54501
|
// move file
|
|
54450
54502
|
if (dragElement.classList.contains(_this.files.getFullElName('item'))) {
|
|
54451
|
-
path += (0,
|
|
54503
|
+
path += (0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_0__.attr)(dragElement, '-name');
|
|
54452
54504
|
if (!self.o.moveFile) {
|
|
54453
54505
|
return false;
|
|
54454
54506
|
}
|
|
54455
54507
|
}
|
|
54456
|
-
var a = getItem(e.target, self.container);
|
|
54508
|
+
var a = (0,_builders_utils_js__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
|
|
54457
54509
|
if (!a) {
|
|
54458
54510
|
return;
|
|
54459
54511
|
}
|
|
54460
|
-
self.dataProvider.move(path, (0,
|
|
54461
|
-
return (0,
|
|
54512
|
+
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(function() {
|
|
54513
|
+
return (0,_fetch_load_tree_js__WEBPACK_IMPORTED_MODULE_5__.loadTree)(_this);
|
|
54462
54514
|
}).catch(self.status);
|
|
54463
54515
|
dragElement = false;
|
|
54464
54516
|
}
|
|
54465
54517
|
}).on(self.files.container, 'contextmenu', (0,_builders_context_menu_js__WEBPACK_IMPORTED_MODULE_2__["default"])(self)).on(self.files.container, 'click', function(e) {
|
|
54466
|
-
if (!(0,
|
|
54518
|
+
if (!(0,_core_helpers_utils_ctrl_key_js__WEBPACK_IMPORTED_MODULE_1__.ctrlKey)(e)) {
|
|
54467
54519
|
_this.state.activeElements = [];
|
|
54468
54520
|
}
|
|
54469
54521
|
}).on(self.files.container, 'click', function(e) {
|
|
54470
|
-
var a = getItem(e.target, self.container);
|
|
54522
|
+
var a = (0,_builders_utils_js__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
|
|
54471
54523
|
if (!a) {
|
|
54472
54524
|
return;
|
|
54473
54525
|
}
|
|
54474
|
-
var item = elementToItem(a, elmMap);
|
|
54526
|
+
var item = (0,_builders_utils_js__WEBPACK_IMPORTED_MODULE_4__.elementToItem)(a, elmMap);
|
|
54475
54527
|
if (!item) {
|
|
54476
54528
|
return;
|
|
54477
54529
|
}
|
|
54478
|
-
if (!(0,
|
|
54530
|
+
if (!(0,_core_helpers_utils_ctrl_key_js__WEBPACK_IMPORTED_MODULE_1__.ctrlKey)(e)) {
|
|
54479
54531
|
self.state.activeElements = [
|
|
54480
54532
|
item
|
|
54481
54533
|
];
|
|
@@ -54488,7 +54540,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
54488
54540
|
return false;
|
|
54489
54541
|
}).on(self.files.container, 'dragstart', function(e) {
|
|
54490
54542
|
if (self.o.moveFile) {
|
|
54491
|
-
var a = getItem(e.target, self.container);
|
|
54543
|
+
var a = (0,_builders_utils_js__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
|
|
54492
54544
|
if (!a) {
|
|
54493
54545
|
return;
|
|
54494
54546
|
}
|
|
@@ -56189,7 +56241,8 @@ function replaceOldTags(elm) {
|
|
|
56189
56241
|
/* harmony import */ var _array_to_array_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4510);
|
|
56190
56242
|
/* harmony import */ var _checker_is_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70799);
|
|
56191
56243
|
/* harmony import */ var _string_camel_case_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(87058);
|
|
56192
|
-
/* harmony import */ var
|
|
56244
|
+
/* harmony import */ var _attr_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29960);
|
|
56245
|
+
/* harmony import */ var _error_index_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(89890);
|
|
56193
56246
|
function _type_of(obj) {
|
|
56194
56247
|
"@swc/helpers - typeof";
|
|
56195
56248
|
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
@@ -56204,6 +56257,7 @@ function _type_of(obj) {
|
|
|
56204
56257
|
|
|
56205
56258
|
|
|
56206
56259
|
|
|
56260
|
+
|
|
56207
56261
|
var temp = 1;
|
|
56208
56262
|
var $$temp = function $$temp() {
|
|
56209
56263
|
temp++;
|
|
@@ -56250,7 +56304,7 @@ var $$temp = function $$temp() {
|
|
|
56250
56304
|
root = root.container;
|
|
56251
56305
|
}
|
|
56252
56306
|
return $$('[ref],[data-ref]', root).reduce(function(def, child) {
|
|
56253
|
-
var key = (0,
|
|
56307
|
+
var key = (0,_attr_js__WEBPACK_IMPORTED_MODULE_5__.attr)(child, '-ref');
|
|
56254
56308
|
if (key && (0,_checker_is_string_js__WEBPACK_IMPORTED_MODULE_3__.isString)(key)) {
|
|
56255
56309
|
def[(0,_string_camel_case_js__WEBPACK_IMPORTED_MODULE_4__.camelCase)(key)] = child;
|
|
56256
56310
|
def[key] = child;
|
|
@@ -56295,12 +56349,12 @@ var $$temp = function $$temp() {
|
|
|
56295
56349
|
try {
|
|
56296
56350
|
resolved = od.querySelector(element);
|
|
56297
56351
|
} catch (_a) {
|
|
56298
|
-
throw (0,
|
|
56352
|
+
throw (0,_error_index_js__WEBPACK_IMPORTED_MODULE_6__.error)('String "' + element + '" should be valid HTML selector');
|
|
56299
56353
|
}
|
|
56300
56354
|
}
|
|
56301
56355
|
// Duck checking
|
|
56302
56356
|
if (!resolved || (typeof resolved === "undefined" ? "undefined" : _type_of(resolved)) !== 'object' || !_dom_dom_js__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(resolved) || !resolved.cloneNode) {
|
|
56303
|
-
throw (0,
|
|
56357
|
+
throw (0,_error_index_js__WEBPACK_IMPORTED_MODULE_6__.error)('Element "' + element + '" should be string or HTMLElement instance');
|
|
56304
56358
|
}
|
|
56305
56359
|
return resolved;
|
|
56306
56360
|
}
|
|
@@ -56743,18 +56797,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
56743
56797
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
56744
56798
|
/* harmony export */ isMarker: function() { return /* binding */ isMarker; }
|
|
56745
56799
|
/* harmony export */ });
|
|
56746
|
-
/* harmony import */ var
|
|
56747
|
-
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2748);
|
|
56800
|
+
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2748);
|
|
56748
56801
|
/*!
|
|
56749
56802
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
56750
56803
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
56751
56804
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
56752
56805
|
*/
|
|
56753
|
-
|
|
56754
56806
|
/**
|
|
56755
56807
|
* Define element is selection helper
|
|
56808
|
+
* @deprecated use Dom.isMarker instead
|
|
56756
56809
|
*/ function isMarker(elm) {
|
|
56757
|
-
return
|
|
56810
|
+
return _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isMarker(elm);
|
|
56758
56811
|
}
|
|
56759
56812
|
|
|
56760
56813
|
|
|
@@ -57672,15 +57725,26 @@ Dialog = Dialog_1 = __decorate([
|
|
|
57672
57725
|
/* harmony export */ ToolbarButton: function() { return /* binding */ ToolbarButton; }
|
|
57673
57726
|
/* harmony export */ });
|
|
57674
57727
|
/* harmony import */ var _core_component_statuses_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(78213);
|
|
57675
|
-
/* harmony import */ var
|
|
57676
|
-
/* harmony import */ var
|
|
57677
|
-
/* harmony import */ var
|
|
57678
|
-
/* harmony import */ var
|
|
57679
|
-
/* harmony import */ var
|
|
57680
|
-
/* harmony import */ var
|
|
57681
|
-
/* harmony import */ var
|
|
57682
|
-
/* harmony import */ var
|
|
57683
|
-
/* harmony import */ var
|
|
57728
|
+
/* harmony import */ var _core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(45219);
|
|
57729
|
+
/* harmony import */ var _core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(33433);
|
|
57730
|
+
/* harmony import */ var _core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(87325);
|
|
57731
|
+
/* harmony import */ var _core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(37133);
|
|
57732
|
+
/* harmony import */ var _core_dom_dom_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(2748);
|
|
57733
|
+
/* harmony import */ var _core_helpers_checker_is_array_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(68345);
|
|
57734
|
+
/* harmony import */ var _core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(23282);
|
|
57735
|
+
/* harmony import */ var _core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(19306);
|
|
57736
|
+
/* harmony import */ var _core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(72430);
|
|
57737
|
+
/* harmony import */ var _core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(70799);
|
|
57738
|
+
/* harmony import */ var _core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(56175);
|
|
57739
|
+
/* harmony import */ var _core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(87058);
|
|
57740
|
+
/* harmony import */ var _core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(38837);
|
|
57741
|
+
/* harmony import */ var _core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(29960);
|
|
57742
|
+
/* harmony import */ var _core_helpers_utils_utils_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(37790);
|
|
57743
|
+
/* harmony import */ var _core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(62843);
|
|
57744
|
+
/* harmony import */ var _core_ui_helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(72157);
|
|
57745
|
+
/* harmony import */ var _core_ui_icon_js__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(12153);
|
|
57746
|
+
/* harmony import */ var _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(56917);
|
|
57747
|
+
/* harmony import */ var _factory_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(21491);
|
|
57684
57748
|
function _array_like_to_array(arr, len) {
|
|
57685
57749
|
if (len == null || len > arr.length) len = arr.length;
|
|
57686
57750
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -57873,6 +57937,17 @@ function _is_native_reflect_construct() {
|
|
|
57873
57937
|
|
|
57874
57938
|
|
|
57875
57939
|
|
|
57940
|
+
|
|
57941
|
+
|
|
57942
|
+
|
|
57943
|
+
|
|
57944
|
+
|
|
57945
|
+
|
|
57946
|
+
|
|
57947
|
+
|
|
57948
|
+
|
|
57949
|
+
|
|
57950
|
+
|
|
57876
57951
|
|
|
57877
57952
|
var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
57878
57953
|
"use strict";
|
|
@@ -57886,21 +57961,21 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
57886
57961
|
]);
|
|
57887
57962
|
_this.control = control;
|
|
57888
57963
|
_this.target = target;
|
|
57889
|
-
_this.state = _object_spread_props(_object_spread({}, (0,
|
|
57964
|
+
_this.state = _object_spread_props(_object_spread({}, (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_16__.UIButtonState)()), {
|
|
57890
57965
|
theme: 'toolbar',
|
|
57891
57966
|
currentValue: '',
|
|
57892
57967
|
hasTrigger: false
|
|
57893
57968
|
});
|
|
57894
57969
|
_this.openedPopup = null;
|
|
57895
57970
|
var button = _this.getElm('button');
|
|
57896
|
-
(0,
|
|
57971
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_13__.assert)(button, 'Element button should exists');
|
|
57897
57972
|
_this.button = button;
|
|
57898
57973
|
Object.defineProperty(button, 'component', {
|
|
57899
57974
|
value: _this,
|
|
57900
57975
|
configurable: true
|
|
57901
57976
|
});
|
|
57902
57977
|
var trigger = _this.getElm('trigger');
|
|
57903
|
-
(0,
|
|
57978
|
+
(0,_core_helpers_utils_assert_js__WEBPACK_IMPORTED_MODULE_13__.assert)(trigger, 'Element trigger should exists');
|
|
57904
57979
|
_this.trigger = trigger;
|
|
57905
57980
|
trigger.remove();
|
|
57906
57981
|
// Prevent lost focus
|
|
@@ -57924,7 +57999,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
57924
57999
|
}
|
|
57925
58000
|
_create_class(ToolbarButton, [
|
|
57926
58001
|
{
|
|
57927
|
-
|
|
58002
|
+
key: "className",
|
|
57928
58003
|
value: function className() {
|
|
57929
58004
|
return 'ToolbarButton';
|
|
57930
58005
|
}
|
|
@@ -57934,14 +58009,16 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
57934
58009
|
get: /**
|
|
57935
58010
|
* Get parent toolbar
|
|
57936
58011
|
*/ function get() {
|
|
57937
|
-
|
|
58012
|
+
var ToolbarCollection = (0,_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_3__.getComponentClass)('ToolbarCollection');
|
|
58013
|
+
return this.closest(ToolbarCollection);
|
|
57938
58014
|
}
|
|
57939
58015
|
},
|
|
57940
58016
|
{
|
|
57941
|
-
|
|
58017
|
+
key: "update",
|
|
57942
58018
|
value: function update() {
|
|
57943
58019
|
var _a, _b;
|
|
57944
|
-
var _this = this, control = _this.control, state = _this.state
|
|
58020
|
+
var _this = this, control = _this.control, state = _this.state;
|
|
58021
|
+
var tc = this.toolbar;
|
|
57945
58022
|
if (!tc) {
|
|
57946
58023
|
return;
|
|
57947
58024
|
}
|
|
@@ -57960,7 +58037,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
57960
58037
|
*/ key: "__calculateActivatedStatus",
|
|
57961
58038
|
value: function __calculateActivatedStatus(tc) {
|
|
57962
58039
|
var _a, _b;
|
|
57963
|
-
if ((0,
|
|
58040
|
+
if ((0,_core_helpers_checker_is_jodit_object_js__WEBPACK_IMPORTED_MODULE_8__.isJoditObject)(this.j) && !this.j.editorIsActive) {
|
|
57964
58041
|
return false;
|
|
57965
58042
|
}
|
|
57966
58043
|
if ((_b = (_a = this.control).isActive) === null || _b === void 0 ? void 0 : _b.call(_a, this.j, this)) {
|
|
@@ -57988,16 +58065,16 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
57988
58065
|
}
|
|
57989
58066
|
},
|
|
57990
58067
|
{
|
|
57991
|
-
|
|
58068
|
+
key: "onChangeActivated",
|
|
57992
58069
|
value: function onChangeActivated() {
|
|
57993
|
-
(0,
|
|
58070
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.button, 'aria-pressed', this.state.activated);
|
|
57994
58071
|
_get(_get_prototype_of(ToolbarButton.prototype), "onChangeActivated", this).call(this);
|
|
57995
58072
|
}
|
|
57996
58073
|
},
|
|
57997
58074
|
{
|
|
57998
|
-
|
|
58075
|
+
key: "onChangeText",
|
|
57999
58076
|
value: function onChangeText() {
|
|
58000
|
-
if ((0,
|
|
58077
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_7__.isFunction)(this.control.template)) {
|
|
58001
58078
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
58002
58079
|
} else {
|
|
58003
58080
|
_get(_get_prototype_of(ToolbarButton.prototype), "onChangeText", this).call(this);
|
|
@@ -58006,9 +58083,9 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58006
58083
|
}
|
|
58007
58084
|
},
|
|
58008
58085
|
{
|
|
58009
|
-
|
|
58086
|
+
key: "onChangeTabIndex",
|
|
58010
58087
|
value: function onChangeTabIndex() {
|
|
58011
|
-
(0,
|
|
58088
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.button, 'tabindex', this.state.tabIndex);
|
|
58012
58089
|
}
|
|
58013
58090
|
},
|
|
58014
58091
|
{
|
|
@@ -58017,14 +58094,14 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58017
58094
|
var cn = this.componentName;
|
|
58018
58095
|
var container = this.j.c.span(cn);
|
|
58019
58096
|
var button = _get(_get_prototype_of(ToolbarButton.prototype), "createContainer", this).call(this);
|
|
58020
|
-
(0,
|
|
58097
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(container, 'role', 'listitem');
|
|
58021
58098
|
button.classList.remove(cn);
|
|
58022
58099
|
button.classList.add(cn + '__button');
|
|
58023
58100
|
Object.defineProperty(button, 'component', {
|
|
58024
58101
|
value: this
|
|
58025
58102
|
});
|
|
58026
58103
|
container.appendChild(button);
|
|
58027
|
-
var trigger = this.j.c.fromHTML('<span role="trigger" class="'.concat(cn, '__trigger">').concat(
|
|
58104
|
+
var trigger = this.j.c.fromHTML('<span role="trigger" class="'.concat(cn, '__trigger">').concat(_core_ui_icon_js__WEBPACK_IMPORTED_MODULE_18__.Icon.get('chevron'), "</span>"));
|
|
58028
58105
|
// For caching
|
|
58029
58106
|
button.appendChild(trigger);
|
|
58030
58107
|
return container;
|
|
@@ -58043,7 +58120,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58043
58120
|
if (this.state.hasTrigger) {
|
|
58044
58121
|
this.container.appendChild(this.trigger);
|
|
58045
58122
|
} else {
|
|
58046
|
-
|
|
58123
|
+
_core_dom_dom_js__WEBPACK_IMPORTED_MODULE_5__.Dom.safeRemove(this.trigger);
|
|
58047
58124
|
}
|
|
58048
58125
|
this.setMod('with-trigger', this.state.hasTrigger || null);
|
|
58049
58126
|
}
|
|
@@ -58052,9 +58129,9 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58052
58129
|
/** @override */ key: "onChangeDisabled",
|
|
58053
58130
|
value: function onChangeDisabled() {
|
|
58054
58131
|
var disabled = this.state.disabled ? 'disabled' : null;
|
|
58055
|
-
(0,
|
|
58056
|
-
(0,
|
|
58057
|
-
(0,
|
|
58132
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.trigger, 'disabled', disabled);
|
|
58133
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.button, 'disabled', disabled);
|
|
58134
|
+
(0,_core_helpers_utils_attr_js__WEBPACK_IMPORTED_MODULE_14__.attr)(this.container, 'disabled', disabled);
|
|
58058
58135
|
}
|
|
58059
58136
|
},
|
|
58060
58137
|
{
|
|
@@ -58067,22 +58144,22 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58067
58144
|
this.updateSize();
|
|
58068
58145
|
state.name = ctr.name;
|
|
58069
58146
|
var textIcons = this.j.o.textIcons;
|
|
58070
|
-
if (textIcons === true || (0,
|
|
58071
|
-
state.icon = (0,
|
|
58147
|
+
if (textIcons === true || (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_7__.isFunction)(textIcons) && textIcons(ctr.name) || ctr.template) {
|
|
58148
|
+
state.icon = (0,_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_16__.UIButtonState)().icon;
|
|
58072
58149
|
state.text = ctr.text || ctr.name;
|
|
58073
58150
|
} else {
|
|
58074
58151
|
if (ctr.iconURL) {
|
|
58075
58152
|
state.icon.iconURL = ctr.iconURL;
|
|
58076
58153
|
} else {
|
|
58077
58154
|
var name = ctr.icon || ctr.name;
|
|
58078
|
-
state.icon.name =
|
|
58155
|
+
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 : '';
|
|
58079
58156
|
}
|
|
58080
58157
|
if (!ctr.iconURL && !state.icon.name) {
|
|
58081
58158
|
state.text = ctr.text || ctr.name;
|
|
58082
58159
|
}
|
|
58083
58160
|
}
|
|
58084
58161
|
if (ctr.tooltip) {
|
|
58085
|
-
state.tooltip = (0,
|
|
58162
|
+
state.tooltip = (0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_7__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
58086
58163
|
}
|
|
58087
58164
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
58088
58165
|
}
|
|
@@ -58105,16 +58182,16 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58105
58182
|
if (ctr.list) {
|
|
58106
58183
|
return this.__openControlList(ctr);
|
|
58107
58184
|
}
|
|
58108
|
-
if ((0,
|
|
58185
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_7__.isFunction)(ctr.popup)) {
|
|
58109
58186
|
var popup = this.openPopup();
|
|
58110
58187
|
popup.parentElement = this;
|
|
58111
58188
|
try {
|
|
58112
|
-
if (this.j.e.fire((0,
|
|
58189
|
+
if (this.j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_12__.camelCase)("before-".concat(ctr.name, "-open-popup")), this.target, ctr, popup) !== false) {
|
|
58113
58190
|
var 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;
|
|
58114
58191
|
var elm = ctr.popup(this.j, target, this.__closePopup, this);
|
|
58115
58192
|
if (elm) {
|
|
58116
|
-
popup.setContent((0,
|
|
58117
|
-
return (0,
|
|
58193
|
+
popup.setContent((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_10__.isString)(elm) ? this.j.c.fromHTML(elm) : elm).open(function() {
|
|
58194
|
+
return (0,_core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_11__.position)(_this.container);
|
|
58118
58195
|
}, false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
58119
58196
|
} else {
|
|
58120
58197
|
this.__closePopup();
|
|
@@ -58128,7 +58205,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58128
58205
|
* Fired after the popup was opened for some control button
|
|
58129
58206
|
*/ /**
|
|
58130
58207
|
* Close all opened popups
|
|
58131
|
-
*/ this.j.e.fire((0,
|
|
58208
|
+
*/ this.j.e.fire((0,_core_helpers_string_camel_case_js__WEBPACK_IMPORTED_MODULE_12__.camelCase)("after-".concat(ctr.name, "-open-popup")), popup.container);
|
|
58132
58209
|
}
|
|
58133
58210
|
}
|
|
58134
58211
|
},
|
|
@@ -58140,22 +58217,24 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58140
58217
|
var _this = this;
|
|
58141
58218
|
var _a;
|
|
58142
58219
|
var controls = (_a = this.jodit.options.controls) !== null && _a !== void 0 ? _a : {}, getControl = function getControl(key) {
|
|
58143
|
-
return (0,
|
|
58220
|
+
return (0,_core_ui_helpers_get_control_type_js__WEBPACK_IMPORTED_MODULE_17__.findControlType)(key, controls);
|
|
58144
58221
|
};
|
|
58145
|
-
var list = control.list
|
|
58222
|
+
var list = control.list;
|
|
58223
|
+
var menu = this.openPopup();
|
|
58224
|
+
var toolbar = (0,_factory_js__WEBPACK_IMPORTED_MODULE_20__.makeCollection)(this.j);
|
|
58146
58225
|
menu.parentElement = this;
|
|
58147
58226
|
toolbar.parentElement = menu;
|
|
58148
58227
|
toolbar.mode = 'vertical';
|
|
58149
58228
|
var isListItem = function isListItem(key) {
|
|
58150
|
-
return (0,
|
|
58229
|
+
return (0,_core_helpers_checker_is_plain_object_js__WEBPACK_IMPORTED_MODULE_9__.isPlainObject)(key) && 'title' in key && 'value' in key;
|
|
58151
58230
|
};
|
|
58152
58231
|
var getButton = function getButton(key, value) {
|
|
58153
|
-
if ((0,
|
|
58232
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_10__.isString)(value) && getControl(value)) {
|
|
58154
58233
|
return _object_spread({
|
|
58155
58234
|
name: value.toString()
|
|
58156
58235
|
}, getControl(value));
|
|
58157
58236
|
}
|
|
58158
|
-
if ((0,
|
|
58237
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_10__.isString)(key) && getControl(key)) {
|
|
58159
58238
|
return _object_spread({
|
|
58160
58239
|
name: key.toString()
|
|
58161
58240
|
}, getControl(key), (typeof value === "undefined" ? "undefined" : _type_of(value)) === 'object' ? value : {});
|
|
@@ -58187,16 +58266,16 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58187
58266
|
value
|
|
58188
58267
|
])
|
|
58189
58268
|
};
|
|
58190
|
-
if ((0,
|
|
58269
|
+
if ((0,_core_helpers_checker_is_string_js__WEBPACK_IMPORTED_MODULE_10__.isString)(value)) {
|
|
58191
58270
|
childControl.text = value;
|
|
58192
58271
|
}
|
|
58193
58272
|
return childControl;
|
|
58194
58273
|
};
|
|
58195
|
-
toolbar.build((0,
|
|
58274
|
+
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(function(key) {
|
|
58196
58275
|
return getButton(key, list[key]);
|
|
58197
58276
|
}), this.target);
|
|
58198
58277
|
menu.setContent(toolbar).open(function() {
|
|
58199
|
-
return (0,
|
|
58278
|
+
return (0,_core_helpers_size_index_js__WEBPACK_IMPORTED_MODULE_11__.position)(_this.container);
|
|
58200
58279
|
}, false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
58201
58280
|
this.state.activated = true;
|
|
58202
58281
|
}
|
|
@@ -58207,7 +58286,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58207
58286
|
if (!this.openedPopup) {
|
|
58208
58287
|
return;
|
|
58209
58288
|
}
|
|
58210
|
-
if (!e || !
|
|
58289
|
+
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)) {
|
|
58211
58290
|
this.__closePopup();
|
|
58212
58291
|
}
|
|
58213
58292
|
}
|
|
@@ -58216,7 +58295,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58216
58295
|
key: "openPopup",
|
|
58217
58296
|
value: function openPopup() {
|
|
58218
58297
|
this.__closePopup();
|
|
58219
|
-
this.openedPopup = new
|
|
58298
|
+
this.openedPopup = new _core_ui_popup_popup_js__WEBPACK_IMPORTED_MODULE_19__.Popup(this.j, false);
|
|
58220
58299
|
this.j.e.on(this.ow, 'mousedown touchstart', this.onOutsideClick).on('escape closeAllPopups', this.onOutsideClick);
|
|
58221
58300
|
return this.openedPopup;
|
|
58222
58301
|
}
|
|
@@ -58240,7 +58319,7 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58240
58319
|
value: function onClick(originalEvent) {
|
|
58241
58320
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
58242
58321
|
var _this = this, ctr = _this.control;
|
|
58243
|
-
if ((0,
|
|
58322
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_7__.isFunction)(ctr.exec)) {
|
|
58244
58323
|
var 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;
|
|
58245
58324
|
var result = ctr.exec(this.j, target, {
|
|
58246
58325
|
control: ctr,
|
|
@@ -58264,11 +58343,11 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58264
58343
|
if (ctr.list) {
|
|
58265
58344
|
return this.__openControlList(ctr);
|
|
58266
58345
|
}
|
|
58267
|
-
if ((0,
|
|
58346
|
+
if ((0,_core_helpers_checker_is_function_js__WEBPACK_IMPORTED_MODULE_7__.isFunction)(ctr.popup)) {
|
|
58268
58347
|
return this.onTriggerClick(originalEvent);
|
|
58269
58348
|
}
|
|
58270
58349
|
if (ctr.command || ctr.name) {
|
|
58271
|
-
(0,
|
|
58350
|
+
(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]);
|
|
58272
58351
|
this.j.e.fire('closeAllPopups');
|
|
58273
58352
|
}
|
|
58274
58353
|
}
|
|
@@ -58282,26 +58361,26 @@ var ToolbarButton = /*#__PURE__*/ function(UIButton) {
|
|
|
58282
58361
|
}
|
|
58283
58362
|
]);
|
|
58284
58363
|
return ToolbarButton;
|
|
58285
|
-
}(
|
|
58364
|
+
}(_core_ui_button_index_js__WEBPACK_IMPORTED_MODULE_16__.UIButton);
|
|
58286
58365
|
__decorate([
|
|
58287
|
-
|
|
58366
|
+
_core_decorators_cache_cache_js__WEBPACK_IMPORTED_MODULE_2__.cacheHTML
|
|
58288
58367
|
], ToolbarButton.prototype, "createContainer", null);
|
|
58289
58368
|
__decorate([
|
|
58290
|
-
(0,
|
|
58369
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_4__.watch)('state.hasTrigger', {
|
|
58291
58370
|
immediately: false
|
|
58292
58371
|
})
|
|
58293
58372
|
], ToolbarButton.prototype, "onChangeHasTrigger", null);
|
|
58294
58373
|
__decorate([
|
|
58295
|
-
(0,
|
|
58374
|
+
(0,_core_decorators_watch_watch_js__WEBPACK_IMPORTED_MODULE_4__.watch)('trigger:click')
|
|
58296
58375
|
], ToolbarButton.prototype, "onTriggerClick", null);
|
|
58297
58376
|
__decorate([
|
|
58298
|
-
|
|
58377
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
58299
58378
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
58300
58379
|
__decorate([
|
|
58301
|
-
|
|
58380
|
+
_core_decorators_autobind_autobind_js__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
58302
58381
|
], ToolbarButton.prototype, "__closePopup", null);
|
|
58303
58382
|
ToolbarButton = __decorate([
|
|
58304
|
-
|
|
58383
|
+
_core_decorators_component_component_js__WEBPACK_IMPORTED_MODULE_3__.component
|
|
58305
58384
|
], ToolbarButton);
|
|
58306
58385
|
|
|
58307
58386
|
|
|
@@ -58348,8 +58427,8 @@ ToolbarButton = __decorate([
|
|
|
58348
58427
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
58349
58428
|
/* harmony export */ History: function() { return /* binding */ History; }
|
|
58350
58429
|
/* harmony export */ });
|
|
58351
|
-
/* harmony import */ var
|
|
58352
|
-
/* harmony import */ var
|
|
58430
|
+
/* harmony import */ var _core_component_view_component_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(80480);
|
|
58431
|
+
/* harmony import */ var _core_decorators_debounce_debounce_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81577);
|
|
58353
58432
|
/* harmony import */ var _config_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(6441);
|
|
58354
58433
|
/* harmony import */ var _command_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(92643);
|
|
58355
58434
|
/* harmony import */ var _snapshot_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52604);
|
|
@@ -58650,9 +58729,9 @@ _config_js__WEBPACK_IMPORTED_MODULE_2__.Config.prototype.history = {
|
|
|
58650
58729
|
}
|
|
58651
58730
|
]);
|
|
58652
58731
|
return History;
|
|
58653
|
-
}(
|
|
58732
|
+
}(_core_component_view_component_js__WEBPACK_IMPORTED_MODULE_0__.ViewComponent);
|
|
58654
58733
|
__decorate([
|
|
58655
|
-
(0,
|
|
58734
|
+
(0,_core_decorators_debounce_debounce_js__WEBPACK_IMPORTED_MODULE_1__.debounce)()
|
|
58656
58735
|
], History.prototype, "onChange", null);
|
|
58657
58736
|
|
|
58658
58737
|
|
|
@@ -62073,7 +62152,8 @@ var getClassName = function getClassName(obj) {
|
|
|
62073
62152
|
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
62074
62153
|
/* harmony import */ var jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(10058);
|
|
62075
62154
|
/* harmony import */ var jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97420);
|
|
62076
|
-
/* harmony import */ var
|
|
62155
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers_calc_list_levels__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31269);
|
|
62156
|
+
/* harmony import */ var jodit_pro_plugins_paste_from_word_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(43712);
|
|
62077
62157
|
/*!
|
|
62078
62158
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
62079
62159
|
* See LICENSE.md in the project root for license information.
|
|
@@ -62082,6 +62162,7 @@ var getClassName = function getClassName(obj) {
|
|
|
62082
62162
|
|
|
62083
62163
|
|
|
62084
62164
|
|
|
62165
|
+
|
|
62085
62166
|
function convertToList(elm) {
|
|
62086
62167
|
if ((0,jodit_pro_plugins_paste_from_word_element__WEBPACK_IMPORTED_MODULE_2__.isPseudoLeaf)(elm)) {
|
|
62087
62168
|
elm.name = 'li';
|
|
@@ -62089,7 +62170,7 @@ function convertToList(elm) {
|
|
|
62089
62170
|
var symbol = getSymbol(elm), listType = /[\da-np-zA-NP-Z].?/.test(symbol) ? 'ol' : 'ul', listStyle = defineOrderedListStyle(symbol, listType);
|
|
62090
62171
|
elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__.TYPE_KEY] = listType;
|
|
62091
62172
|
elm.attributes[jodit_pro_plugins_paste_from_word_constants__WEBPACK_IMPORTED_MODULE_1__.STYLE_KEY] = listStyle;
|
|
62092
|
-
(0,
|
|
62173
|
+
(0,jodit_pro_plugins_paste_from_word_helpers_calc_list_levels__WEBPACK_IMPORTED_MODULE_3__.calcListLevels)(elm);
|
|
62093
62174
|
moveUp(elm);
|
|
62094
62175
|
var parent = elm.parent;
|
|
62095
62176
|
// After move up we inside List or Leaf
|
|
@@ -62160,7 +62241,7 @@ var getSymbol = function getSymbol(elm) {
|
|
|
62160
62241
|
};
|
|
62161
62242
|
function wrapInNewList(elm, listType, symbol, listStyle) {
|
|
62162
62243
|
var newList = elm.wrap(listType);
|
|
62163
|
-
newList.attributes['start'] = (0,
|
|
62244
|
+
newList.attributes['start'] = (0,jodit_pro_plugins_paste_from_word_helpers_helpers__WEBPACK_IMPORTED_MODULE_4__.calcStartBySymbol)(symbol);
|
|
62164
62245
|
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];
|
|
62165
62246
|
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];
|
|
62166
62247
|
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];
|
|
@@ -63852,9 +63933,10 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('cleanHtml', clean
|
|
|
63852
63933
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
63853
63934
|
/* harmony export */ wrapList: function() { return /* binding */ wrapList; }
|
|
63854
63935
|
/* harmony export */ });
|
|
63855
|
-
/* harmony import */ var
|
|
63856
|
-
/* harmony import */ var
|
|
63857
|
-
/* harmony import */ var
|
|
63936
|
+
/* harmony import */ var _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2748);
|
|
63937
|
+
/* harmony import */ var _is_same_attributes_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94466);
|
|
63938
|
+
/* harmony import */ var _toggle_attributes_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44253);
|
|
63939
|
+
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(77361);
|
|
63858
63940
|
/*!
|
|
63859
63941
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
63860
63942
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -63862,32 +63944,33 @@ _core_global_js__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('cleanHtml', clean
|
|
|
63862
63944
|
*/
|
|
63863
63945
|
|
|
63864
63946
|
|
|
63947
|
+
|
|
63865
63948
|
/**
|
|
63866
63949
|
* Replaces non-leaf items with leaf items and either creates a new list or
|
|
63867
63950
|
* adds a new item to the nearest old list
|
|
63868
63951
|
* @private
|
|
63869
63952
|
*/ function wrapList(commitStyle, wrapper, jodit) {
|
|
63870
|
-
var result = jodit.e.fire("".concat(
|
|
63871
|
-
var newWrapper = result !== null && result !== void 0 ? result :
|
|
63953
|
+
var result = jodit.e.fire("".concat(_constants_js__WEBPACK_IMPORTED_MODULE_3__._PREFIX, "BeforeWrapList"), _constants_js__WEBPACK_IMPORTED_MODULE_3__.REPLACE, wrapper, commitStyle);
|
|
63954
|
+
var newWrapper = result !== null && result !== void 0 ? result : _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.replace(wrapper, 'li', jodit.createInside);
|
|
63872
63955
|
var prev = newWrapper.previousElementSibling;
|
|
63873
63956
|
var next = newWrapper.nextElementSibling;
|
|
63874
|
-
var list =
|
|
63875
|
-
list !== null && list !== void 0 ? list : list =
|
|
63876
|
-
if (!
|
|
63957
|
+
var list = _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(prev, commitStyle.element) ? prev : null;
|
|
63958
|
+
list !== null && list !== void 0 ? list : list = _dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(next, commitStyle.element) ? next : null;
|
|
63959
|
+
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)) {
|
|
63877
63960
|
list = jodit.createInside.element(commitStyle.element);
|
|
63878
|
-
(0,
|
|
63879
|
-
|
|
63961
|
+
(0,_toggle_attributes_js__WEBPACK_IMPORTED_MODULE_2__.toggleAttributes)(commitStyle, list, jodit, _constants_js__WEBPACK_IMPORTED_MODULE_3__.INITIAL);
|
|
63962
|
+
_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.before(newWrapper, list);
|
|
63880
63963
|
}
|
|
63881
63964
|
if (prev === list) {
|
|
63882
|
-
|
|
63965
|
+
_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, newWrapper);
|
|
63883
63966
|
} else {
|
|
63884
|
-
|
|
63967
|
+
_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.prepend(list, newWrapper);
|
|
63885
63968
|
}
|
|
63886
|
-
if (
|
|
63887
|
-
|
|
63888
|
-
|
|
63969
|
+
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)) {
|
|
63970
|
+
_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, Array.from(list.nextElementSibling.childNodes));
|
|
63971
|
+
_dom_dom_js__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(list.nextElementSibling);
|
|
63889
63972
|
}
|
|
63890
|
-
jodit.e.fire("".concat(
|
|
63973
|
+
jodit.e.fire("".concat(_constants_js__WEBPACK_IMPORTED_MODULE_3__._PREFIX, "AfterWrapList"), _constants_js__WEBPACK_IMPORTED_MODULE_3__.WRAP, list, commitStyle);
|
|
63891
63974
|
return list;
|
|
63892
63975
|
}
|
|
63893
63976
|
|
|
@@ -64065,7 +64148,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
64065
64148
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
64066
64149
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
64067
64150
|
}
|
|
64068
|
-
var APP_VERSION = "4.
|
|
64151
|
+
var APP_VERSION = "4.9.2";
|
|
64069
64152
|
// prettier-ignore
|
|
64070
64153
|
var ES = "es5";
|
|
64071
64154
|
var IS_ES_MODERN = false;
|
|
@@ -67823,8 +67906,11 @@ var dataBind = function dataBind(elm, key, value) {
|
|
|
67823
67906
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
67824
67907
|
|
|
67825
67908
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
67826
|
-
/* harmony export */ component: function() { return /* binding */ component; }
|
|
67909
|
+
/* harmony export */ component: function() { return /* binding */ component; },
|
|
67910
|
+
/* harmony export */ getComponentClass: function() { return /* binding */ getComponentClass; }
|
|
67827
67911
|
/* harmony export */ });
|
|
67912
|
+
/* harmony import */ var _constants_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82758);
|
|
67913
|
+
/* harmony import */ var _helpers_utils_get_class_name_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(80568);
|
|
67828
67914
|
function _array_like_to_array(arr, len) {
|
|
67829
67915
|
if (len == null || len > arr.length) len = arr.length;
|
|
67830
67916
|
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
@@ -67920,7 +68006,10 @@ function _is_native_reflect_construct() {
|
|
|
67920
68006
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
67921
68007
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
67922
68008
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
67923
|
-
*/
|
|
68009
|
+
*/
|
|
68010
|
+
|
|
68011
|
+
var componentRegistry = new Map();
|
|
68012
|
+
/**
|
|
67924
68013
|
* Decorate components and set status isReady after constructor
|
|
67925
68014
|
* @param constructorFunction - Component constructor class
|
|
67926
68015
|
*/ function component(constructorFunction) {
|
|
@@ -67948,8 +68037,16 @@ function _is_native_reflect_construct() {
|
|
|
67948
68037
|
}
|
|
67949
68038
|
return newConstructorFunction;
|
|
67950
68039
|
}(constructorFunction);
|
|
68040
|
+
var name = (0,_helpers_utils_get_class_name_js__WEBPACK_IMPORTED_MODULE_1__.getClassName)(constructorFunction.prototype);
|
|
68041
|
+
if (componentRegistry.has(name) && !_constants_js__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
68042
|
+
throw new Error('Component with name "'.concat(name, '" is already registered'));
|
|
68043
|
+
}
|
|
68044
|
+
componentRegistry.set(name, newConstructorFunction);
|
|
67951
68045
|
return newConstructorFunction;
|
|
67952
68046
|
}
|
|
68047
|
+
function getComponentClass(name) {
|
|
68048
|
+
return componentRegistry.get(name);
|
|
68049
|
+
}
|
|
67953
68050
|
|
|
67954
68051
|
|
|
67955
68052
|
/***/ }),
|
|
@@ -68471,7 +68568,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
68471
68568
|
/* harmony export */ abort: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.abort; },
|
|
68472
68569
|
/* harmony export */ connection: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.connection; },
|
|
68473
68570
|
/* harmony export */ error: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.error; },
|
|
68474
|
-
/* harmony export */ isAbort: function() { return /* reexport safe */ _errors_index_js__WEBPACK_IMPORTED_MODULE_1__.isAbort; },
|
|
68475
68571
|
/* harmony export */ options: function() { return /* reexport safe */ _error_js__WEBPACK_IMPORTED_MODULE_0__.options; }
|
|
68476
68572
|
/* harmony export */ });
|
|
68477
68573
|
/* harmony import */ var _error_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(82760);
|
|
@@ -71313,24 +71409,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
71313
71409
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
71314
71410
|
|
|
71315
71411
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
71316
|
-
/* harmony export */ abort: function() { return /* binding */ abort; }
|
|
71317
|
-
/* harmony export */ isAbort: function() { return /* binding */ isAbort; }
|
|
71412
|
+
/* harmony export */ abort: function() { return /* binding */ abort; }
|
|
71318
71413
|
/* harmony export */ });
|
|
71319
|
-
/* harmony import */ var _checker_is_abort_error_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(12045);
|
|
71320
71414
|
/*!
|
|
71321
71415
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
71322
71416
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
71323
71417
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
71324
|
-
*/
|
|
71325
|
-
* @module helpers/utils
|
|
71326
|
-
*/
|
|
71327
|
-
function abort() {
|
|
71418
|
+
*/ function abort() {
|
|
71328
71419
|
var message = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 'Aborted';
|
|
71329
71420
|
return new DOMException(message, 'AbortError');
|
|
71330
71421
|
}
|
|
71331
|
-
/**
|
|
71332
|
-
* @deprecated use `isAbortError` instead
|
|
71333
|
-
*/ var isAbort = _checker_is_abort_error_js__WEBPACK_IMPORTED_MODULE_0__.isAbortError;
|
|
71334
71422
|
|
|
71335
71423
|
|
|
71336
71424
|
/***/ }),
|