jodit-pro 4.13.38 → 4.13.44
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +28 -28
- package/es2015/jodit.js +83 -190
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.js +306 -168
- package/es2015/plugins/ai-assistant-pro/ai-assistant-pro.min.js +29 -29
- package/es2015/plugins/autocomplete/autocomplete.css +1 -1
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.css +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +241 -72
- package/es2015/plugins/google-maps/google-maps.min.js +4 -4
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2015/plugins/image-editor-pro/image-editor-pro.js +6 -12
- package/es2015/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/style/style.css +1 -1
- package/es2015/plugins/style/style.js +1 -1
- package/es2015/plugins/style/style.min.js +1 -1
- package/es2015/plugins/templates/templates.css +1 -1
- package/es2015/plugins/templates/templates.js +1 -1
- package/es2015/plugins/templates/templates.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +19 -19
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
- 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.css +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +7 -7
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/style/style.min.js +1 -1
- package/es2018/plugins/templates/templates.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +19 -19
- package/es2021/jodit.js +2 -2
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.js +204 -162
- package/es2021/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
- package/es2021/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.css +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +236 -75
- package/es2021/plugins/google-maps/google-maps.min.js +9 -9
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021/plugins/image-editor-pro/image-editor-pro.js +2 -4
- package/es2021/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/style/style.css +1 -1
- package/es2021/plugins/style/style.js +1 -1
- package/es2021/plugins/style/style.min.js +1 -1
- package/es2021/plugins/templates/templates.css +1 -1
- package/es2021/plugins/templates/templates.js +1 -1
- package/es2021/plugins/templates/templates.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +19 -19
- package/es2021.en/jodit.js +2 -2
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.js +204 -162
- package/es2021.en/plugins/ai-assistant-pro/ai-assistant-pro.min.js +15 -15
- package/es2021.en/plugins/autocomplete/autocomplete.css +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.css +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +236 -75
- package/es2021.en/plugins/google-maps/google-maps.min.js +9 -9
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.js +2 -4
- package/es2021.en/plugins/image-editor-pro/image-editor-pro.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/style/style.css +1 -1
- package/es2021.en/plugins/style/style.js +1 -1
- package/es2021.en/plugins/style/style.min.js +1 -1
- package/es2021.en/plugins/templates/templates.css +1 -1
- package/es2021.en/plugins/templates/templates.js +1 -1
- package/es2021.en/plugins/templates/templates.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +1788 -2701
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.css +1 -1
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.js +406 -275
- package/es5/plugins/ai-assistant-pro/ai-assistant-pro.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.css +1 -1
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +9 -9
- package/es5/plugins/backup/backup.min.js +2 -2
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +11 -18
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +10 -17
- package/es5/plugins/color-picker/color-picker.min.js +2 -2
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +7 -7
- package/es5/plugins/emoji/emoji.min.js +2 -2
- package/es5/plugins/export-docs/export-docs.js +11 -11
- package/es5/plugins/export-docs/export-docs.min.js +2 -2
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +4 -10
- package/es5/plugins/finder/finder.min.css +1 -1
- 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 +334 -114
- 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 +6 -6
- package/es5/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +6 -6
- package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es5/plugins/image-editor-pro/image-editor-pro.css +1 -1
- package/es5/plugins/image-editor-pro/image-editor-pro.js +29 -42
- package/es5/plugins/image-editor-pro/image-editor-pro.min.js +2 -2
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +6 -6
- package/es5/plugins/keyboard/keyboard.min.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.js +6 -6
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +6 -6
- 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 +13 -13
- 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 +8 -8
- package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es5/plugins/style/style.css +1 -1
- package/es5/plugins/style/style.js +1 -1
- package/es5/plugins/style/style.min.js +1 -1
- package/es5/plugins/templates/templates.css +1 -1
- package/es5/plugins/templates/templates.js +1 -1
- package/es5/plugins/templates/templates.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +18 -18
- package/es5/plugins/todo-list/todo-list.min.js +2 -2
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +7 -7
- package/es5/plugins/translate/translate.min.js +2 -2
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +7 -7
- package/es5/plugins/tune-block/tune-block.min.js +2 -2
- package/es5/polyfills.fat.min.js +2 -2
- package/es5/polyfills.js +225 -105
- package/es5/polyfills.min.js +2 -2
- package/esm/plugins/ai-assistant-pro/core/sanitize-utils.d.ts +18 -0
- package/esm/plugins/ai-assistant-pro/core/sanitize-utils.js +1 -0
- package/esm/plugins/ai-assistant-pro/tools/add-html/executor.js +1 -1
- package/esm/plugins/ai-assistant-pro/tools/replace-block/executor.js +1 -1
- package/esm/plugins/ai-assistant-pro/tools/replace-in-document/executor.js +1 -1
- package/esm/plugins/google-maps/config.js +1 -1
- package/esm/plugins/google-maps/ui/map/map.d.ts +3 -2
- package/esm/plugins/google-maps/ui/map/map.js +2 -2
- package/esm/plugins/google-maps/ui/map/modules/drawing-controller.d.ts +42 -0
- package/esm/plugins/google-maps/ui/map/modules/drawing-controller.js +1 -0
- package/package.json +1 -1
- package/types/plugins/ai-assistant-pro/core/sanitize-utils.d.ts +18 -0
- package/types/plugins/google-maps/ui/map/map.d.ts +3 -2
- package/types/plugins/google-maps/ui/map/modules/drawing-controller.d.ts +42 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valerii <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.13.
|
|
4
|
+
* Version: v4.13.44
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -72,11 +72,10 @@ module.exports = "<svg viewBox=\"0 0 47 61\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
72
72
|
|
|
73
73
|
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
74
74
|
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _instanceof(left, right) {
|
|
75
|
+
"@swc/helpers - instanceof";
|
|
75
76
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
76
77
|
return !!right[Symbol.hasInstance](left);
|
|
77
|
-
} else
|
|
78
|
-
return left instanceof right;
|
|
79
|
-
}
|
|
78
|
+
} else return left instanceof right;
|
|
80
79
|
}
|
|
81
80
|
function _type_of(obj) {
|
|
82
81
|
"@swc/helpers - typeof";
|
|
@@ -1742,7 +1741,7 @@ jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_7__.Icon.set('map', (_icon_svg__
|
|
|
1742
1741
|
jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__.Config.prototype.googleMaps = {
|
|
1743
1742
|
saveStateInStorage: true,
|
|
1744
1743
|
useStaticImage: false,
|
|
1745
|
-
apiUrl: 'https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places
|
|
1744
|
+
apiUrl: 'https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places&language=${j.o.language}&callback=JoditGoogleReadyHandler',
|
|
1746
1745
|
API_KEY: 'AIzaSyDjnR03hxN8fo0QJ85Jkkvk2DALTh3eynY',
|
|
1747
1746
|
dialog: {
|
|
1748
1747
|
size: [
|
|
@@ -1840,9 +1839,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1840
1839
|
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(18766);
|
|
1841
1840
|
/* harmony import */ var _swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(56075);
|
|
1842
1841
|
/* harmony import */ var _swc_helpers_to_consumable_array__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(94899);
|
|
1843
|
-
/* harmony import */ var
|
|
1844
|
-
/* harmony import */ var
|
|
1845
|
-
/* harmony import */ var
|
|
1842
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(31635);
|
|
1843
|
+
/* harmony import */ var _swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(62361);
|
|
1844
|
+
/* harmony import */ var _swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(23078);
|
|
1846
1845
|
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(55029);
|
|
1847
1846
|
/* harmony import */ var _assets__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(99413);
|
|
1848
1847
|
/* harmony import */ var _helpers_const__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(17298);
|
|
@@ -1945,7 +1944,7 @@ var googleMaps = /*#__PURE__*/ function(Plugin) {
|
|
|
1945
1944
|
value: function openMapEditor(target, initialState) {
|
|
1946
1945
|
return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function() {
|
|
1947
1946
|
var _this, _dialog, jodit, dialog, state, apiUrl, openState, uiMap, search, onCLose;
|
|
1948
|
-
return (0,
|
|
1947
|
+
return (0,_swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_9__._)(this, function(_state) {
|
|
1949
1948
|
_this = this;
|
|
1950
1949
|
jodit = this.j;
|
|
1951
1950
|
dialog = this.getDialog();
|
|
@@ -2121,18 +2120,18 @@ var googleMaps = /*#__PURE__*/ function(Plugin) {
|
|
|
2121
2120
|
}
|
|
2122
2121
|
]);
|
|
2123
2122
|
return googleMaps;
|
|
2124
|
-
}((0,
|
|
2123
|
+
}((0,_swc_helpers_wrap_native_super__WEBPACK_IMPORTED_MODULE_10__._)(jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_22__.Plugin));
|
|
2125
2124
|
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(googleMaps, "requires", [
|
|
2126
2125
|
'license',
|
|
2127
2126
|
'color-picker'
|
|
2128
2127
|
]);
|
|
2129
|
-
(0,
|
|
2128
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_8__.__decorate)([
|
|
2130
2129
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_20__.watch)('?:openOnDblClick')
|
|
2131
2130
|
], googleMaps.prototype, "onOpenOnDblClick", null);
|
|
2132
|
-
(0,
|
|
2131
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_8__.__decorate)([
|
|
2133
2132
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_20__.watch)(':beforeSetNativeEditorValue')
|
|
2134
2133
|
], googleMaps.prototype, "onBeforeSetNativeEditorValue", null);
|
|
2135
|
-
(0,
|
|
2134
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_8__.__decorate)([
|
|
2136
2135
|
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_20__.watch)(':afterGetValueFromEditor')
|
|
2137
2136
|
], googleMaps.prototype, "onAfterGetValueFromEditor", null);
|
|
2138
2137
|
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_26__.JoditPro.plugins.add('google-maps', googleMaps);
|
|
@@ -2772,24 +2771,27 @@ UIPolylineEditor = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__de
|
|
|
2772
2771
|
/* harmony import */ var _swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(20616);
|
|
2773
2772
|
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67709);
|
|
2774
2773
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(82749);
|
|
2775
|
-
/* harmony import */ var
|
|
2776
|
-
/* harmony import */ var
|
|
2777
|
-
/* harmony import */ var
|
|
2778
|
-
/* harmony import */ var
|
|
2779
|
-
/* harmony import */ var
|
|
2780
|
-
/* harmony import */ var
|
|
2781
|
-
/* harmony import */ var
|
|
2782
|
-
/* harmony import */ var
|
|
2783
|
-
/* harmony import */ var
|
|
2784
|
-
/* harmony import */ var
|
|
2785
|
-
/* harmony import */ var
|
|
2786
|
-
/* harmony import */ var
|
|
2787
|
-
/* harmony import */ var
|
|
2788
|
-
/* harmony import */ var
|
|
2789
|
-
/* harmony import */ var
|
|
2790
|
-
/* harmony import */ var
|
|
2791
|
-
/* harmony import */ var
|
|
2792
|
-
/* harmony import */ var
|
|
2774
|
+
/* harmony import */ var _swc_helpers_get__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(54816);
|
|
2775
|
+
/* harmony import */ var _swc_helpers_get_prototype_of__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(84669);
|
|
2776
|
+
/* harmony import */ var _swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18766);
|
|
2777
|
+
/* harmony import */ var _swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(56075);
|
|
2778
|
+
/* harmony import */ var _swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(11886);
|
|
2779
|
+
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31635);
|
|
2780
|
+
/* harmony import */ var _swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(62361);
|
|
2781
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_config__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(55029);
|
|
2782
|
+
/* harmony import */ var _modules_add_new_in_state__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(22125);
|
|
2783
|
+
/* harmony import */ var _modules_drawing_controller__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(76864);
|
|
2784
|
+
/* harmony import */ var _modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(1475);
|
|
2785
|
+
/* harmony import */ var jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(81577);
|
|
2786
|
+
/* harmony import */ var jodit_esm_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(97357);
|
|
2787
|
+
/* harmony import */ var jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(13525);
|
|
2788
|
+
/* harmony import */ var jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(37133);
|
|
2789
|
+
/* harmony import */ var jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(580);
|
|
2790
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(38837);
|
|
2791
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(41180);
|
|
2792
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(67510);
|
|
2793
|
+
/* harmony import */ var jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(11676);
|
|
2794
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(17298);
|
|
2793
2795
|
/*!
|
|
2794
2796
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2795
2797
|
* See LICENSE.md in the project root for license information.
|
|
@@ -2814,20 +2816,23 @@ UIPolylineEditor = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_6__.__de
|
|
|
2814
2816
|
|
|
2815
2817
|
|
|
2816
2818
|
|
|
2819
|
+
|
|
2820
|
+
|
|
2821
|
+
|
|
2817
2822
|
|
|
2818
2823
|
|
|
2819
2824
|
|
|
2820
2825
|
|
|
2821
2826
|
var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
2822
2827
|
"use strict";
|
|
2823
|
-
(0,
|
|
2828
|
+
(0,_swc_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__._)(UIMap, UIGroup);
|
|
2824
2829
|
function UIMap(jodit, state, options) {
|
|
2825
2830
|
(0,_swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_2__._)(this, UIMap);
|
|
2826
2831
|
var _this;
|
|
2827
2832
|
_this = (0,_swc_helpers_call_super__WEBPACK_IMPORTED_MODULE_1__._)(this, UIMap, [
|
|
2828
2833
|
jodit
|
|
2829
|
-
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "options", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "
|
|
2830
|
-
uid: 'jd' + (0,
|
|
2834
|
+
]), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "options", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "drawing", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "toolbar", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "mapElements", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "apiLoaded", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "mapInitialized", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "map", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_4__._)(_this, "layers", void 0), _this.options = options, _this.toolbar = new jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_24__.ToolbarCollection(_this.jodit), _this.state = {
|
|
2835
|
+
uid: 'jd' + (0,jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_20__.uniqueUid)() + new Date().toString().replace(/[^0-9]/g, ''),
|
|
2831
2836
|
layer: _this.options.googleMaps.map.layer,
|
|
2832
2837
|
center: _this.options.googleMaps.map.defaultCenter,
|
|
2833
2838
|
zoom: _this.options.googleMaps.map.defaultZoom,
|
|
@@ -2853,7 +2858,7 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2853
2858
|
'gm.circle'
|
|
2854
2859
|
]);
|
|
2855
2860
|
var palette = _this.getElm('map-palette');
|
|
2856
|
-
(0,
|
|
2861
|
+
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_21__.assert)(palette != null, 'palette element does not exists');
|
|
2857
2862
|
palette.appendChild(_this.toolbar.container);
|
|
2858
2863
|
return _this;
|
|
2859
2864
|
}
|
|
@@ -2867,7 +2872,7 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2867
2872
|
{
|
|
2868
2873
|
key: "json",
|
|
2869
2874
|
value: function json() {
|
|
2870
|
-
return JSON.stringify((0,
|
|
2875
|
+
return JSON.stringify((0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_9__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_8__._)({}, this.state), {
|
|
2871
2876
|
mode: 'hand'
|
|
2872
2877
|
}));
|
|
2873
2878
|
}
|
|
@@ -2877,7 +2882,7 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2877
2882
|
value: function onReady() {
|
|
2878
2883
|
return (0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function() {
|
|
2879
2884
|
var _this, container;
|
|
2880
|
-
return (0,
|
|
2885
|
+
return (0,_swc_helpers_ts_generator__WEBPACK_IMPORTED_MODULE_11__._)(this, function(_state) {
|
|
2881
2886
|
switch(_state.label){
|
|
2882
2887
|
case 0:
|
|
2883
2888
|
_this = this;
|
|
@@ -2888,7 +2893,7 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2888
2893
|
case 1:
|
|
2889
2894
|
_state.sent();
|
|
2890
2895
|
container = this.getElm('map-root');
|
|
2891
|
-
(0,
|
|
2896
|
+
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_21__.assert)(container != null, 'map-root element does not exists');
|
|
2892
2897
|
this.map = new google.maps.Map(container, {
|
|
2893
2898
|
center: {
|
|
2894
2899
|
lat: this.state.center[0],
|
|
@@ -2915,7 +2920,7 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2915
2920
|
_this.state.type = type;
|
|
2916
2921
|
}
|
|
2917
2922
|
});
|
|
2918
|
-
this.
|
|
2923
|
+
this.initDrawingController();
|
|
2919
2924
|
this.onChangeElementsList();
|
|
2920
2925
|
this.onChangeSize();
|
|
2921
2926
|
this.onChangeControls();
|
|
@@ -2935,38 +2940,13 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2935
2940
|
}
|
|
2936
2941
|
},
|
|
2937
2942
|
{
|
|
2938
|
-
key: "
|
|
2939
|
-
value: function
|
|
2943
|
+
key: "initDrawingController",
|
|
2944
|
+
value: function initDrawingController() {
|
|
2940
2945
|
var _this = this;
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
drawingControl: false,
|
|
2946
|
-
polygonOptions: (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_7__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_6__._)({}, this.options.googleMaps.map.defaultStates.polygon), {
|
|
2947
|
-
clickable: true,
|
|
2948
|
-
editable: true
|
|
2949
|
-
}),
|
|
2950
|
-
polylineOptions: (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_7__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_6__._)({}, this.options.googleMaps.map.defaultStates.polyline), {
|
|
2951
|
-
clickable: true,
|
|
2952
|
-
editable: true
|
|
2953
|
-
}),
|
|
2954
|
-
markerOptions: (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_7__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_6__._)({}, this.options.googleMaps.map.defaultStates.marker), {
|
|
2955
|
-
clickable: true
|
|
2956
|
-
}),
|
|
2957
|
-
circleOptions: (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_7__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_6__._)({}, this.options.googleMaps.map.defaultStates.circle), {
|
|
2958
|
-
clickable: true,
|
|
2959
|
-
editable: true
|
|
2960
|
-
})
|
|
2961
|
-
});
|
|
2962
|
-
this.drawingManager = drawingManager;
|
|
2963
|
-
google.maps.event.addListener(drawingManager, 'overlaycomplete', function(event) {
|
|
2964
|
-
if (event.overlay) {
|
|
2965
|
-
_modules_add_new_in_state__WEBPACK_IMPORTED_MODULE_11__.addNewInState.call(_this, event.overlay);
|
|
2966
|
-
event.overlay.setMap(null);
|
|
2967
|
-
}
|
|
2968
|
-
});
|
|
2969
|
-
} catch (unused) {}
|
|
2946
|
+
this.drawing = new _modules_drawing_controller__WEBPACK_IMPORTED_MODULE_14__.DrawingController(this.map, this.options.googleMaps.map.defaultStates, function(overlay) {
|
|
2947
|
+
_modules_add_new_in_state__WEBPACK_IMPORTED_MODULE_13__.addNewInState.call(_this, overlay);
|
|
2948
|
+
overlay.setMap(null);
|
|
2949
|
+
});
|
|
2970
2950
|
}
|
|
2971
2951
|
},
|
|
2972
2952
|
{
|
|
@@ -2978,9 +2958,9 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2978
2958
|
{
|
|
2979
2959
|
key: "onChangeMode",
|
|
2980
2960
|
value: function onChangeMode() {
|
|
2981
|
-
var
|
|
2961
|
+
var _this_drawing;
|
|
2982
2962
|
this.j.buffer.set('createMode.gm', this.state.mode);
|
|
2983
|
-
(
|
|
2963
|
+
(_this_drawing = this.drawing) === null || _this_drawing === void 0 ? void 0 : _this_drawing.setMode(this.state.mode);
|
|
2984
2964
|
this.j.e.fire('updateToolbar');
|
|
2985
2965
|
}
|
|
2986
2966
|
},
|
|
@@ -2996,7 +2976,7 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
2996
2976
|
}
|
|
2997
2977
|
mapElements.length = elements.length;
|
|
2998
2978
|
elements.forEach(function(state, index) {
|
|
2999
|
-
return
|
|
2979
|
+
return _modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_15__.initOrUpdateElementFromState.call(_this, state, index);
|
|
3000
2980
|
});
|
|
3001
2981
|
}
|
|
3002
2982
|
},
|
|
@@ -3032,7 +3012,7 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
3032
3012
|
{
|
|
3033
3013
|
key: "onChangeBound",
|
|
3034
3014
|
value: function onChangeBound() {
|
|
3035
|
-
this.options.googleMaps.saveStateInStorage && this.j.storage.set(
|
|
3015
|
+
this.options.googleMaps.saveStateInStorage && this.j.storage.set(jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_25__.STORAGE_KEY, {
|
|
3036
3016
|
center: this.state.center,
|
|
3037
3017
|
size: this.state.size,
|
|
3038
3018
|
zoom: this.state.zoom,
|
|
@@ -3046,8 +3026,8 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
3046
3026
|
key: "onChangeSize",
|
|
3047
3027
|
value: function onChangeSize() {
|
|
3048
3028
|
var mapSize = this.getElm('map-size');
|
|
3049
|
-
(0,
|
|
3050
|
-
(0,
|
|
3029
|
+
(0,jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_21__.assert)(mapSize != null, 'map-size element does not exists');
|
|
3030
|
+
(0,jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_22__.css)(mapSize, {
|
|
3051
3031
|
width: this.state.size[0],
|
|
3052
3032
|
height: this.state.size[1]
|
|
3053
3033
|
});
|
|
@@ -3083,6 +3063,14 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
3083
3063
|
});
|
|
3084
3064
|
}
|
|
3085
3065
|
},
|
|
3066
|
+
{
|
|
3067
|
+
key: "destruct",
|
|
3068
|
+
value: function destruct() {
|
|
3069
|
+
var _this_drawing;
|
|
3070
|
+
(_this_drawing = this.drawing) === null || _this_drawing === void 0 ? void 0 : _this_drawing.destruct();
|
|
3071
|
+
return (0,_swc_helpers_get__WEBPACK_IMPORTED_MODULE_5__._)((0,_swc_helpers_get_prototype_of__WEBPACK_IMPORTED_MODULE_6__._)(UIMap.prototype), "destruct", this).call(this);
|
|
3072
|
+
}
|
|
3073
|
+
},
|
|
3086
3074
|
{
|
|
3087
3075
|
key: "render",
|
|
3088
3076
|
value: function render() {
|
|
@@ -3095,35 +3083,35 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
3095
3083
|
}
|
|
3096
3084
|
]);
|
|
3097
3085
|
return UIMap;
|
|
3098
|
-
}(
|
|
3099
|
-
(0,
|
|
3100
|
-
(0,
|
|
3086
|
+
}(jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_23__.UIGroup);
|
|
3087
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3088
|
+
(0,jodit_esm_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_17__.hook)('ready')
|
|
3101
3089
|
], UIMap.prototype, "onReady", null);
|
|
3102
|
-
(0,
|
|
3103
|
-
(0,
|
|
3090
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3091
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('?:changeCreateMode.gm')
|
|
3104
3092
|
], UIMap.prototype, "changeCreateMode", null);
|
|
3105
|
-
(0,
|
|
3106
|
-
(0,
|
|
3093
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3094
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.mode')
|
|
3107
3095
|
], UIMap.prototype, "onChangeMode", null);
|
|
3108
|
-
(0,
|
|
3109
|
-
(0,
|
|
3096
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3097
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.elements')
|
|
3110
3098
|
], UIMap.prototype, "onChangeElementsList", null);
|
|
3111
|
-
(0,
|
|
3112
|
-
(0,
|
|
3113
|
-
(0,
|
|
3099
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3100
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.center'),
|
|
3101
|
+
(0,jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_18__.wait)(function(ctx) {
|
|
3114
3102
|
return ctx.mapInitialized;
|
|
3115
3103
|
}),
|
|
3116
|
-
(0,
|
|
3104
|
+
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_16__.debounce)()
|
|
3117
3105
|
], UIMap.prototype, "onChangeCenter", null);
|
|
3118
|
-
(0,
|
|
3119
|
-
(0,
|
|
3120
|
-
(0,
|
|
3106
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3107
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.zoom'),
|
|
3108
|
+
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_16__.debounce)()
|
|
3121
3109
|
], UIMap.prototype, "onChangeZoom", null);
|
|
3122
|
-
(0,
|
|
3123
|
-
(0,
|
|
3110
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3111
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.controls')
|
|
3124
3112
|
], UIMap.prototype, "onChangeControls", null);
|
|
3125
|
-
(0,
|
|
3126
|
-
(0,
|
|
3113
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3114
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)([
|
|
3127
3115
|
'state.center',
|
|
3128
3116
|
'state.zoom',
|
|
3129
3117
|
'state.controls',
|
|
@@ -3131,20 +3119,20 @@ var UIMap = /*#__PURE__*/ function(UIGroup) {
|
|
|
3131
3119
|
'state.type',
|
|
3132
3120
|
'state.layer'
|
|
3133
3121
|
]),
|
|
3134
|
-
(0,
|
|
3122
|
+
(0,jodit_esm_core_decorators_wait_wait__WEBPACK_IMPORTED_MODULE_18__.wait)(function(ctx) {
|
|
3135
3123
|
return ctx.mapInitialized;
|
|
3136
3124
|
}),
|
|
3137
|
-
(0,
|
|
3125
|
+
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_16__.debounce)()
|
|
3138
3126
|
], UIMap.prototype, "onChangeBound", null);
|
|
3139
|
-
(0,
|
|
3140
|
-
(0,
|
|
3141
|
-
(0,
|
|
3127
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3128
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.size'),
|
|
3129
|
+
(0,jodit_esm_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_16__.debounce)()
|
|
3142
3130
|
], UIMap.prototype, "onChangeSize", null);
|
|
3143
|
-
(0,
|
|
3144
|
-
(0,
|
|
3131
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3132
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.type')
|
|
3145
3133
|
], UIMap.prototype, "onChangeMapType", null);
|
|
3146
|
-
(0,
|
|
3147
|
-
(0,
|
|
3134
|
+
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_10__.__decorate)([
|
|
3135
|
+
(0,jodit_esm_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_19__.watch)('state.layer')
|
|
3148
3136
|
], UIMap.prototype, "onChangeLayer", null);
|
|
3149
3137
|
|
|
3150
3138
|
|
|
@@ -3218,6 +3206,244 @@ function addNewInState(mvc) {
|
|
|
3218
3206
|
}
|
|
3219
3207
|
|
|
3220
3208
|
|
|
3209
|
+
/***/ }),
|
|
3210
|
+
|
|
3211
|
+
/***/ 76864:
|
|
3212
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
3213
|
+
|
|
3214
|
+
"use strict";
|
|
3215
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3216
|
+
/* harmony export */ DrawingController: function() { return /* binding */ DrawingController; }
|
|
3217
|
+
/* harmony export */ });
|
|
3218
|
+
/* unused harmony export isDrawableMode */
|
|
3219
|
+
/* harmony import */ var _swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(20616);
|
|
3220
|
+
/* harmony import */ var _swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(67709);
|
|
3221
|
+
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82749);
|
|
3222
|
+
/* harmony import */ var _swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(56075);
|
|
3223
|
+
/* harmony import */ var _swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11886);
|
|
3224
|
+
/* harmony import */ var _swc_helpers_to_consumable_array__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94899);
|
|
3225
|
+
/*!
|
|
3226
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3227
|
+
* See LICENSE.md in the project root for license information.
|
|
3228
|
+
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
3229
|
+
*/
|
|
3230
|
+
|
|
3231
|
+
|
|
3232
|
+
|
|
3233
|
+
|
|
3234
|
+
|
|
3235
|
+
var DRAWABLE_MODES = [
|
|
3236
|
+
'marker',
|
|
3237
|
+
'polyline',
|
|
3238
|
+
'polygon',
|
|
3239
|
+
'circle'
|
|
3240
|
+
];
|
|
3241
|
+
function isDrawableMode(mode) {
|
|
3242
|
+
return DRAWABLE_MODES.includes(mode);
|
|
3243
|
+
}
|
|
3244
|
+
/**
|
|
3245
|
+
* Replacement for the removed `google.maps.drawing.DrawingManager`
|
|
3246
|
+
* (the Drawing Library was discontinued in Maps JS API v3.65):
|
|
3247
|
+
* draws markers, polylines, polygons and circles with plain map events.
|
|
3248
|
+
*
|
|
3249
|
+
* Click places a marker / a vertex / a circle center; for circles the
|
|
3250
|
+
* radius follows the cursor and a second click fixes it; polylines and
|
|
3251
|
+
* polygons are finished with a double click. The completed shape is
|
|
3252
|
+
* passed to `onComplete` and removed from the map — the caller
|
|
3253
|
+
* re-creates it from state, exactly as with DrawingManager overlays.
|
|
3254
|
+
*/ var DrawingController = /*#__PURE__*/ function() {
|
|
3255
|
+
"use strict";
|
|
3256
|
+
function DrawingController(map, defaultStates, onComplete) {
|
|
3257
|
+
(0,_swc_helpers_class_call_check__WEBPACK_IMPORTED_MODULE_0__._)(this, DrawingController);
|
|
3258
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "map", void 0);
|
|
3259
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "defaultStates", void 0);
|
|
3260
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "onComplete", void 0);
|
|
3261
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "mode", void 0);
|
|
3262
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "listeners", void 0);
|
|
3263
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "preview", void 0);
|
|
3264
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "previewCircle", void 0);
|
|
3265
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_2__._)(this, "vertices", void 0);
|
|
3266
|
+
this.map = map;
|
|
3267
|
+
this.defaultStates = defaultStates;
|
|
3268
|
+
this.onComplete = onComplete;
|
|
3269
|
+
this.mode = null;
|
|
3270
|
+
this.listeners = [];
|
|
3271
|
+
this.preview = null;
|
|
3272
|
+
this.previewCircle = null;
|
|
3273
|
+
this.vertices = [];
|
|
3274
|
+
}
|
|
3275
|
+
(0,_swc_helpers_create_class__WEBPACK_IMPORTED_MODULE_1__._)(DrawingController, [
|
|
3276
|
+
{
|
|
3277
|
+
key: "setMode",
|
|
3278
|
+
value: function setMode(mode) {
|
|
3279
|
+
var nextMode = isDrawableMode(mode) ? mode : null;
|
|
3280
|
+
if (nextMode === this.mode) {
|
|
3281
|
+
return;
|
|
3282
|
+
}
|
|
3283
|
+
this.cancel();
|
|
3284
|
+
this.unbind();
|
|
3285
|
+
this.mode = nextMode;
|
|
3286
|
+
if (nextMode) {
|
|
3287
|
+
this.bind();
|
|
3288
|
+
this.map.setOptions({
|
|
3289
|
+
draggableCursor: 'crosshair',
|
|
3290
|
+
disableDoubleClickZoom: true
|
|
3291
|
+
});
|
|
3292
|
+
} else {
|
|
3293
|
+
this.map.setOptions({
|
|
3294
|
+
draggableCursor: null,
|
|
3295
|
+
disableDoubleClickZoom: false
|
|
3296
|
+
});
|
|
3297
|
+
}
|
|
3298
|
+
}
|
|
3299
|
+
},
|
|
3300
|
+
{
|
|
3301
|
+
key: "destruct",
|
|
3302
|
+
value: function destruct() {
|
|
3303
|
+
this.cancel();
|
|
3304
|
+
this.unbind();
|
|
3305
|
+
this.mode = null;
|
|
3306
|
+
}
|
|
3307
|
+
},
|
|
3308
|
+
{
|
|
3309
|
+
key: "bind",
|
|
3310
|
+
value: function bind() {
|
|
3311
|
+
var _this = this;
|
|
3312
|
+
this.listeners = [
|
|
3313
|
+
this.map.addListener('click', function(e) {
|
|
3314
|
+
return _this.onClick(e);
|
|
3315
|
+
}),
|
|
3316
|
+
this.map.addListener('mousemove', function(e) {
|
|
3317
|
+
return _this.onMove(e);
|
|
3318
|
+
}),
|
|
3319
|
+
this.map.addListener('dblclick', function() {
|
|
3320
|
+
return _this.onDblClick();
|
|
3321
|
+
})
|
|
3322
|
+
];
|
|
3323
|
+
}
|
|
3324
|
+
},
|
|
3325
|
+
{
|
|
3326
|
+
key: "unbind",
|
|
3327
|
+
value: function unbind() {
|
|
3328
|
+
this.listeners.forEach(function(listener) {
|
|
3329
|
+
return listener.remove();
|
|
3330
|
+
});
|
|
3331
|
+
this.listeners = [];
|
|
3332
|
+
}
|
|
3333
|
+
},
|
|
3334
|
+
{
|
|
3335
|
+
key: "onClick",
|
|
3336
|
+
value: function onClick(e) {
|
|
3337
|
+
var point = e.latLng;
|
|
3338
|
+
if (!point) {
|
|
3339
|
+
return;
|
|
3340
|
+
}
|
|
3341
|
+
switch(this.mode){
|
|
3342
|
+
case 'marker':
|
|
3343
|
+
this.onComplete(new google.maps.Marker({
|
|
3344
|
+
position: point
|
|
3345
|
+
}));
|
|
3346
|
+
break;
|
|
3347
|
+
case 'circle':
|
|
3348
|
+
if (!this.previewCircle) {
|
|
3349
|
+
this.previewCircle = new google.maps.Circle((0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_4__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_3__._)({}, this.defaultStates.circle), {
|
|
3350
|
+
center: point,
|
|
3351
|
+
radius: 0,
|
|
3352
|
+
clickable: false,
|
|
3353
|
+
map: this.map
|
|
3354
|
+
}));
|
|
3355
|
+
} else {
|
|
3356
|
+
this.finishCircle();
|
|
3357
|
+
}
|
|
3358
|
+
break;
|
|
3359
|
+
case 'polyline':
|
|
3360
|
+
case 'polygon':
|
|
3361
|
+
this.vertices.push(point);
|
|
3362
|
+
this.updatePolyPreview(point);
|
|
3363
|
+
break;
|
|
3364
|
+
}
|
|
3365
|
+
}
|
|
3366
|
+
},
|
|
3367
|
+
{
|
|
3368
|
+
key: "onMove",
|
|
3369
|
+
value: function onMove(e) {
|
|
3370
|
+
var point = e.latLng;
|
|
3371
|
+
if (!point) {
|
|
3372
|
+
return;
|
|
3373
|
+
}
|
|
3374
|
+
if (this.previewCircle) {
|
|
3375
|
+
var center = this.previewCircle.getCenter();
|
|
3376
|
+
center && this.previewCircle.setRadius(google.maps.geometry.spherical.computeDistanceBetween(center, point));
|
|
3377
|
+
return;
|
|
3378
|
+
}
|
|
3379
|
+
if (this.vertices.length) {
|
|
3380
|
+
this.updatePolyPreview(point);
|
|
3381
|
+
}
|
|
3382
|
+
}
|
|
3383
|
+
},
|
|
3384
|
+
{
|
|
3385
|
+
key: "onDblClick",
|
|
3386
|
+
value: function onDblClick() {
|
|
3387
|
+
if (this.mode !== 'polyline' && this.mode !== 'polygon') {
|
|
3388
|
+
return;
|
|
3389
|
+
}
|
|
3390
|
+
// The double click is preceded by two single clicks at the same
|
|
3391
|
+
// point — collapse the duplicated trailing vertices
|
|
3392
|
+
var path = this.vertices.filter(function(point, i, list) {
|
|
3393
|
+
return i === 0 || !point.equals(list[i - 1]);
|
|
3394
|
+
});
|
|
3395
|
+
var minPoints = this.mode === 'polygon' ? 3 : 2;
|
|
3396
|
+
if (path.length >= minPoints && this.preview) {
|
|
3397
|
+
var shape = this.preview;
|
|
3398
|
+
shape.setPath(path);
|
|
3399
|
+
this.onComplete(shape);
|
|
3400
|
+
}
|
|
3401
|
+
this.cancel();
|
|
3402
|
+
}
|
|
3403
|
+
},
|
|
3404
|
+
{
|
|
3405
|
+
key: "finishCircle",
|
|
3406
|
+
value: function finishCircle() {
|
|
3407
|
+
var circle = this.previewCircle;
|
|
3408
|
+
if (circle) {
|
|
3409
|
+
this.previewCircle = null;
|
|
3410
|
+
this.onComplete(circle);
|
|
3411
|
+
circle.setMap(null);
|
|
3412
|
+
}
|
|
3413
|
+
}
|
|
3414
|
+
},
|
|
3415
|
+
{
|
|
3416
|
+
key: "updatePolyPreview",
|
|
3417
|
+
value: function updatePolyPreview(cursor) {
|
|
3418
|
+
var path = (0,_swc_helpers_to_consumable_array__WEBPACK_IMPORTED_MODULE_5__._)(this.vertices).concat([
|
|
3419
|
+
cursor
|
|
3420
|
+
]);
|
|
3421
|
+
if (!this.preview) {
|
|
3422
|
+
var options = (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_4__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_3__._)({}, this.defaultStates[this.mode === 'polygon' ? 'polygon' : 'polyline']), {
|
|
3423
|
+
clickable: false,
|
|
3424
|
+
map: this.map
|
|
3425
|
+
});
|
|
3426
|
+
this.preview = this.mode === 'polygon' ? new google.maps.Polygon(options) : new google.maps.Polyline(options);
|
|
3427
|
+
}
|
|
3428
|
+
this.preview.setPath(path);
|
|
3429
|
+
}
|
|
3430
|
+
},
|
|
3431
|
+
{
|
|
3432
|
+
key: "cancel",
|
|
3433
|
+
value: function cancel() {
|
|
3434
|
+
var _this_preview, _this_previewCircle;
|
|
3435
|
+
(_this_preview = this.preview) === null || _this_preview === void 0 ? void 0 : _this_preview.setMap(null);
|
|
3436
|
+
this.preview = null;
|
|
3437
|
+
(_this_previewCircle = this.previewCircle) === null || _this_previewCircle === void 0 ? void 0 : _this_previewCircle.setMap(null);
|
|
3438
|
+
this.previewCircle = null;
|
|
3439
|
+
this.vertices = [];
|
|
3440
|
+
}
|
|
3441
|
+
}
|
|
3442
|
+
]);
|
|
3443
|
+
return DrawingController;
|
|
3444
|
+
}();
|
|
3445
|
+
|
|
3446
|
+
|
|
3221
3447
|
/***/ }),
|
|
3222
3448
|
|
|
3223
3449
|
/***/ 1475:
|
|
@@ -3981,19 +4207,13 @@ UIWysiwyg = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_5__.__decorate)
|
|
|
3981
4207
|
|
|
3982
4208
|
"use strict";
|
|
3983
4209
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3984
|
-
/* harmony export */ _: function() { return /* binding */
|
|
4210
|
+
/* harmony export */ _: function() { return /* binding */ _instanceof; }
|
|
3985
4211
|
/* harmony export */ });
|
|
3986
4212
|
function _instanceof(left, right) {
|
|
4213
|
+
"@swc/helpers - instanceof";
|
|
3987
4214
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
3988
4215
|
return !!right[Symbol.hasInstance](left);
|
|
3989
|
-
} else
|
|
3990
|
-
return left instanceof right;
|
|
3991
|
-
}
|
|
3992
|
-
}
|
|
3993
|
-
function _instanceof1(left, right) {
|
|
3994
|
-
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
3995
|
-
return !!right[Symbol.hasInstance](left);
|
|
3996
|
-
} else return _instanceof(left, right);
|
|
4216
|
+
} else return left instanceof right;
|
|
3997
4217
|
}
|
|
3998
4218
|
|
|
3999
4219
|
|