jodit-pro 4.6.10 → 4.6.13
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/.nvmrc +1 -1
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +1278 -1328
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +65 -65
- package/es2015/plugins/backup/backup.min.js +2 -2
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +110 -110
- package/es2015/plugins/button-generator/button-generator.min.js +2 -2
- package/es2015/plugins/change-case/change-case.js +7 -7
- package/es2015/plugins/change-case/change-case.min.js +2 -2
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +37 -37
- package/es2015/plugins/color-picker/color-picker.min.js +2 -2
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +47 -47
- package/es2015/plugins/emoji/emoji.min.js +2 -2
- package/es2015/plugins/export-docs/export-docs.js +18 -18
- package/es2015/plugins/export-docs/export-docs.min.js +2 -2
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +452 -452
- 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 +265 -265
- package/es2015/plugins/google-maps/google-maps.min.js +2 -2
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +2 -2
- package/es2015/plugins/highlight-signature/highlight-signature.js +23 -23
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +40 -40
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +60 -60
- package/es2015/plugins/keyboard/keyboard.min.js +2 -2
- package/es2015/plugins/mobile-view/mobile-view.js +26 -26
- package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2015/plugins/page-break/page-break.js +27 -27
- package/es2015/plugins/page-break/page-break.min.js +2 -2
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +51 -51
- 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 +2 -2
- package/es2015/plugins/show-blocks/show-blocks.js +27 -27
- package/es2015/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +62 -62
- package/es2015/plugins/todo-list/todo-list.min.js +2 -2
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +62 -62
- package/es2015/plugins/translate/translate.min.js +2 -2
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +50 -50
- package/es2015/plugins/tune-block/tune-block.min.js +2 -2
- package/es2018/jodit.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +1123 -1118
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +64 -64
- package/es2018/plugins/backup/backup.min.js +2 -2
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +110 -110
- package/es2018/plugins/button-generator/button-generator.min.js +2 -2
- package/es2018/plugins/change-case/change-case.js +7 -7
- package/es2018/plugins/change-case/change-case.min.js +2 -2
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +37 -37
- package/es2018/plugins/color-picker/color-picker.min.js +2 -2
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +45 -45
- package/es2018/plugins/emoji/emoji.min.js +2 -2
- package/es2018/plugins/export-docs/export-docs.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +2 -2
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +446 -446
- package/es2018/plugins/finder/finder.min.js +2 -2
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +262 -262
- package/es2018/plugins/google-maps/google-maps.min.js +2 -2
- package/es2018/plugins/google-search/google-search.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +2 -2
- package/es2018/plugins/highlight-signature/highlight-signature.js +23 -23
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +40 -40
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +60 -60
- package/es2018/plugins/keyboard/keyboard.min.js +2 -2
- package/es2018/plugins/mobile-view/mobile-view.js +26 -26
- package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2018/plugins/page-break/page-break.js +27 -27
- package/es2018/plugins/page-break/page-break.min.js +2 -2
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +49 -49
- package/es2018/plugins/paste-code/paste-code.min.js +2 -2
- package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2018/plugins/show-blocks/show-blocks.js +27 -27
- package/es2018/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +62 -62
- package/es2018/plugins/todo-list/todo-list.min.js +2 -2
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +61 -61
- package/es2018/plugins/translate/translate.min.js +2 -2
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +50 -50
- package/es2018/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +1123 -1118
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +64 -64
- package/es2021/plugins/backup/backup.min.js +2 -2
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +110 -110
- package/es2021/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021/plugins/change-case/change-case.js +7 -7
- package/es2021/plugins/change-case/change-case.min.js +2 -2
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +37 -37
- package/es2021/plugins/color-picker/color-picker.min.js +2 -2
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +45 -45
- package/es2021/plugins/emoji/emoji.min.js +2 -2
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +446 -446
- 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 +262 -262
- package/es2021/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +2 -2
- package/es2021/plugins/highlight-signature/highlight-signature.js +23 -23
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +40 -40
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +60 -60
- package/es2021/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021/plugins/mobile-view/mobile-view.js +26 -26
- package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021/plugins/page-break/page-break.js +27 -27
- package/es2021/plugins/page-break/page-break.min.js +2 -2
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +49 -49
- 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 +2 -2
- package/es2021/plugins/show-blocks/show-blocks.js +27 -27
- package/es2021/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +62 -62
- package/es2021/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +61 -61
- package/es2021/plugins/translate/translate.min.js +2 -2
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +50 -50
- package/es2021/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +1123 -1118
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +64 -64
- package/es2021.en/plugins/backup/backup.min.js +2 -2
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +110 -110
- package/es2021.en/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021.en/plugins/change-case/change-case.js +7 -7
- package/es2021.en/plugins/change-case/change-case.min.js +2 -2
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +37 -37
- package/es2021.en/plugins/color-picker/color-picker.min.js +2 -2
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +45 -45
- package/es2021.en/plugins/emoji/emoji.min.js +2 -2
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +446 -446
- 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 +262 -262
- package/es2021.en/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +2 -2
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +23 -23
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +40 -40
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +60 -60
- package/es2021.en/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021.en/plugins/mobile-view/mobile-view.js +26 -26
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021.en/plugins/page-break/page-break.js +27 -27
- package/es2021.en/plugins/page-break/page-break.min.js +2 -2
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +49 -49
- 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 +2 -2
- package/es2021.en/plugins/show-blocks/show-blocks.js +27 -27
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +62 -62
- package/es2021.en/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +61 -61
- package/es2021.en/plugins/translate/translate.min.js +2 -2
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +50 -50
- package/es2021.en/plugins/tune-block/tune-block.min.js +2 -2
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +1461 -1568
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +80 -80
- 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 +137 -137
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- package/es5/plugins/change-case/change-case.js +17 -17
- package/es5/plugins/change-case/change-case.min.js +2 -2
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +40 -40
- 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 +54 -54
- package/es5/plugins/emoji/emoji.min.js +2 -2
- package/es5/plugins/export-docs/export-docs.js +21 -21
- 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 +495 -495
- 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 +299 -299
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- package/es5/plugins/google-search/google-search.js +17 -17
- package/es5/plugins/google-search/google-search.min.js +2 -2
- package/es5/plugins/highlight-signature/highlight-signature.js +26 -26
- 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 +43 -43
- package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +62 -62
- package/es5/plugins/keyboard/keyboard.min.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.js +28 -28
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +29 -29
- 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 +55 -55
- 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 +2 -2
- package/es5/plugins/show-blocks/show-blocks.js +28 -28
- package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +64 -64
- 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 +77 -77
- 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 +65 -65
- package/es5/plugins/tune-block/tune-block.min.js +2 -2
- package/esm/index.js +1 -1
- package/esm/jodit-pro.js +1 -1
- package/esm/plugins/autocomplete/autocomplete.js +1 -1
- package/esm/plugins/autocomplete/ui/autocomplete.js +1 -1
- package/esm/plugins/backup/backup.js +1 -1
- package/esm/plugins/backup/modules/store.js +1 -1
- package/esm/plugins/backup/ui/list.js +1 -1
- package/esm/plugins/button-generator/button-generator.js +1 -1
- package/esm/plugins/button-generator/ui/button/button.js +1 -1
- package/esm/plugins/button-generator/ui/form/form.js +1 -1
- package/esm/plugins/button-generator/ui/generator/button-generator.js +1 -1
- package/esm/plugins/button-generator/ui/preview/preview.js +1 -1
- package/esm/plugins/change-case/change-case.js +1 -1
- package/esm/plugins/color-picker/ui/input/color-input.js +1 -1
- package/esm/plugins/emoji/config.js +1 -1
- package/esm/plugins/emoji/emoji.js +1 -1
- package/esm/plugins/emoji/ui/emoji.js +1 -1
- package/esm/plugins/export-docs/export-docs.js +1 -1
- package/esm/plugins/finder/browser.js +1 -1
- package/esm/plugins/finder/finder.js +1 -1
- package/esm/plugins/finder/helpers/context-menu.js +1 -1
- package/esm/plugins/finder/helpers/helpers.js +1 -1
- package/esm/plugins/finder/helpers/loading-manager.js +1 -1
- package/esm/plugins/finder/helpers/persistent-store.js +1 -1
- package/esm/plugins/finder/helpers/state-manager.js +1 -1
- package/esm/plugins/finder/ui/folder/folder.js +1 -1
- package/esm/plugins/finder/ui/header/header.js +1 -1
- package/esm/plugins/finder/ui/item/item.js +1 -1
- package/esm/plugins/finder/ui/lightboox/lightbox.js +1 -1
- package/esm/plugins/finder/ui/panel/panel.js +1 -1
- package/esm/plugins/finder/ui/preview/preview.js +1 -1
- package/esm/plugins/finder/ui/progress/progress.js +1 -1
- package/esm/plugins/finder/ui/settings/settings.js +1 -1
- package/esm/plugins/finder/ui/source/source.js +1 -1
- package/esm/plugins/finder/ui/sources/sources.js +1 -1
- package/esm/plugins/finder/ui/tree/tree.js +1 -1
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +1 -1
- package/esm/plugins/google-maps/google-maps.js +1 -1
- package/esm/plugins/google-maps/helpers/generate-static-elements.js +1 -1
- package/esm/plugins/google-maps/helpers/helpers.js +1 -1
- package/esm/plugins/google-maps/ui/combo-box/combo-box.js +1 -1
- package/esm/plugins/google-maps/ui/editors/base.js +1 -1
- package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -1
- package/esm/plugins/google-maps/ui/map/map.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.js +1 -1
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +1 -1
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +1 -1
- package/esm/plugins/highlight-signature/highlight-signature.js +1 -1
- package/esm/plugins/iframe-editor/iframe-editor.js +1 -1
- package/esm/plugins/keyboard/keyboard.js +1 -1
- package/esm/plugins/keyboard/ui/keyboard/keyboard.js +1 -1
- package/esm/plugins/license/helpers/helpers.js +1 -1
- package/esm/plugins/license/license.js +1 -1
- package/esm/plugins/mobile-view/mobile-view.js +1 -1
- package/esm/plugins/page-break/page-break.js +1 -1
- package/esm/plugins/paste-code/paste-code.js +1 -1
- package/esm/plugins/paste-from-word/cases/clean-styles.js +1 -1
- 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.js +1 -1
- package/esm/plugins/paste-from-word/cases/process-image.js +1 -1
- package/esm/plugins/paste-from-word/element/checkers.js +1 -1
- package/esm/plugins/paste-from-word/element/element.js +1 -1
- package/esm/plugins/paste-from-word/element/render.js +1 -1
- 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.js +1 -1
- package/esm/plugins/paste-from-word/helpers/helpers.js +1 -1
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.js +1 -1
- package/esm/plugins/show-blocks/show-blocks.js +1 -1
- package/esm/plugins/todo-list/config.js +1 -1
- package/esm/plugins/todo-list/todo-list.js +1 -1
- package/esm/plugins/translate/providers/google/google.js +1 -1
- package/esm/plugins/translate/translate.js +1 -1
- package/esm/plugins/translate/ui/list/list.js +1 -1
- package/esm/plugins/tune-block/ui/tuner/tuner.js +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit-pro - PRO Version of Jodit Editor
|
|
3
3
|
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
-
* Version: v4.6.
|
|
4
|
+
* Version: v4.6.13
|
|
5
5
|
* Url: https://xdsoft.net/jodit/pro/
|
|
6
6
|
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
7
|
*/
|
|
@@ -25,17 +25,17 @@ return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).pus
|
|
|
25
25
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
26
26
|
/* harmony export */ L: function() { return /* binding */ UIMap; }
|
|
27
27
|
/* harmony export */ });
|
|
28
|
-
/* harmony import */ var
|
|
29
|
-
/* harmony import */ var
|
|
30
|
-
/* harmony import */ var
|
|
31
|
-
/* harmony import */ var
|
|
32
|
-
/* harmony import */ var
|
|
33
|
-
/* harmony import */ var
|
|
34
|
-
/* harmony import */ var
|
|
35
|
-
/* harmony import */ var
|
|
36
|
-
/* harmony import */ var
|
|
37
|
-
/* harmony import */ var
|
|
38
|
-
/* harmony import */ var
|
|
28
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
29
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44434);
|
|
30
|
+
/* harmony import */ var _modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(97796);
|
|
31
|
+
/* harmony import */ var _modules__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(14686);
|
|
32
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(65478);
|
|
33
|
+
/* harmony import */ var jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(580);
|
|
34
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(38837);
|
|
35
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41180);
|
|
36
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(67510);
|
|
37
|
+
/* harmony import */ var jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(11676);
|
|
38
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(45751);
|
|
39
39
|
/*!
|
|
40
40
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
41
41
|
* See LICENSE.md in the project root for license information.
|
|
@@ -53,7 +53,7 @@ return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).pus
|
|
|
53
53
|
|
|
54
54
|
|
|
55
55
|
|
|
56
|
-
class UIMap extends
|
|
56
|
+
class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_8__/* .UIGroup */ .Ue {
|
|
57
57
|
className() {
|
|
58
58
|
return 'UIMap';
|
|
59
59
|
}
|
|
@@ -61,7 +61,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
61
61
|
return JSON.stringify(Object.assign(Object.assign({}, this.state), { mode: 'hand' }));
|
|
62
62
|
}
|
|
63
63
|
onReady() {
|
|
64
|
-
return (0,
|
|
64
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__awaiter */ .sH)(this, void 0, void 0, function* () {
|
|
65
65
|
yield this.apiLoaded;
|
|
66
66
|
const container = this.getElm('map-root');
|
|
67
67
|
void 0;
|
|
@@ -114,7 +114,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
114
114
|
this.drawingManager = drawingManager;
|
|
115
115
|
google.maps.event.addListener(drawingManager, 'overlaycomplete', (event) => {
|
|
116
116
|
if (event.overlay) {
|
|
117
|
-
|
|
117
|
+
_modules__WEBPACK_IMPORTED_MODULE_3__/* .addNewInState */ .ST.call(this, event.overlay);
|
|
118
118
|
event.overlay.setMap(null);
|
|
119
119
|
}
|
|
120
120
|
});
|
|
@@ -140,7 +140,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
mapElements.length = elements.length;
|
|
143
|
-
elements.forEach((state, index) =>
|
|
143
|
+
elements.forEach((state, index) => _modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_2__/* .initOrUpdateElementFromState */ .O.call(this, state, index));
|
|
144
144
|
}
|
|
145
145
|
onChangeCenter() {
|
|
146
146
|
const center = this.map.getCenter();
|
|
@@ -165,7 +165,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
165
165
|
}
|
|
166
166
|
onChangeBound() {
|
|
167
167
|
this.options.googleMaps.saveStateInStorage &&
|
|
168
|
-
this.j.storage.set(
|
|
168
|
+
this.j.storage.set(jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_10__/* .STORAGE_KEY */ .A, {
|
|
169
169
|
center: this.state.center,
|
|
170
170
|
size: this.state.size,
|
|
171
171
|
zoom: this.state.zoom,
|
|
@@ -177,7 +177,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
177
177
|
onChangeSize() {
|
|
178
178
|
const mapSize = this.getElm('map-size');
|
|
179
179
|
void 0;
|
|
180
|
-
(0,
|
|
180
|
+
(0,jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(mapSize, {
|
|
181
181
|
width: this.state.size[0],
|
|
182
182
|
height: this.state.size[1]
|
|
183
183
|
});
|
|
@@ -212,9 +212,9 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
212
212
|
constructor(jodit, state, options) {
|
|
213
213
|
super(jodit);
|
|
214
214
|
this.options = options;
|
|
215
|
-
this.toolbar = new
|
|
215
|
+
this.toolbar = new jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_9__/* .ToolbarCollection */ .Q(this.jodit);
|
|
216
216
|
this.state = {
|
|
217
|
-
uid: 'jd' + (0,
|
|
217
|
+
uid: 'jd' + (0,jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_5__/* .uniqueUid */ .w9)() + new Date().toString().replace(/[^0-9]/g, ''),
|
|
218
218
|
layer: this.options.googleMaps.map.layer,
|
|
219
219
|
center: this.options.googleMaps.map.defaultCenter,
|
|
220
220
|
zoom: this.options.googleMaps.map.defaultZoom,
|
|
@@ -249,32 +249,32 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
249
249
|
palette.appendChild(this.toolbar.container);
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
|
-
(0,
|
|
253
|
-
(0,
|
|
252
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
253
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.hook)('ready')
|
|
254
254
|
], UIMap.prototype, "onReady", null);
|
|
255
|
-
(0,
|
|
256
|
-
(0,
|
|
255
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
256
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('?:changeCreateMode.gm')
|
|
257
257
|
], UIMap.prototype, "changeCreateMode", null);
|
|
258
|
-
(0,
|
|
259
|
-
(0,
|
|
258
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
259
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.mode')
|
|
260
260
|
], UIMap.prototype, "onChangeMode", null);
|
|
261
|
-
(0,
|
|
262
|
-
(0,
|
|
261
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
262
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.elements')
|
|
263
263
|
], UIMap.prototype, "onChangeElementsList", null);
|
|
264
|
-
(0,
|
|
265
|
-
(0,
|
|
266
|
-
(0,
|
|
267
|
-
(0,
|
|
264
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
265
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.center'),
|
|
266
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.wait)((ctx) => ctx.mapInitialized),
|
|
267
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.debounce)()
|
|
268
268
|
], UIMap.prototype, "onChangeCenter", null);
|
|
269
|
-
(0,
|
|
270
|
-
(0,
|
|
271
|
-
(0,
|
|
269
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
270
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.zoom'),
|
|
271
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.debounce)()
|
|
272
272
|
], UIMap.prototype, "onChangeZoom", null);
|
|
273
|
-
(0,
|
|
274
|
-
(0,
|
|
273
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
274
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.controls')
|
|
275
275
|
], UIMap.prototype, "onChangeControls", null);
|
|
276
|
-
(0,
|
|
277
|
-
(0,
|
|
276
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
277
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)([
|
|
278
278
|
'state.center',
|
|
279
279
|
'state.zoom',
|
|
280
280
|
'state.controls',
|
|
@@ -282,18 +282,18 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
282
282
|
'state.type',
|
|
283
283
|
'state.layer'
|
|
284
284
|
]),
|
|
285
|
-
(0,
|
|
286
|
-
(0,
|
|
285
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.wait)((ctx) => ctx.mapInitialized),
|
|
286
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.debounce)()
|
|
287
287
|
], UIMap.prototype, "onChangeBound", null);
|
|
288
|
-
(0,
|
|
289
|
-
(0,
|
|
290
|
-
(0,
|
|
288
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
289
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.size'),
|
|
290
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.debounce)()
|
|
291
291
|
], UIMap.prototype, "onChangeSize", null);
|
|
292
|
-
(0,
|
|
293
|
-
(0,
|
|
292
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
293
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.type')
|
|
294
294
|
], UIMap.prototype, "onChangeMapType", null);
|
|
295
|
-
(0,
|
|
296
|
-
(0,
|
|
295
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
296
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.layer')
|
|
297
297
|
], UIMap.prototype, "onChangeLayer", null);
|
|
298
298
|
|
|
299
299
|
|
|
@@ -306,15 +306,15 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
306
306
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
307
307
|
/* harmony export */ A: function() { return /* binding */ ColorInput; }
|
|
308
308
|
/* harmony export */ });
|
|
309
|
-
/* harmony import */ var
|
|
310
|
-
/* harmony import */ var
|
|
311
|
-
/* harmony import */ var
|
|
312
|
-
/* harmony import */ var
|
|
313
|
-
/* harmony import */ var
|
|
314
|
-
/* harmony import */ var
|
|
315
|
-
/* harmony import */ var
|
|
316
|
-
/* harmony import */ var
|
|
317
|
-
/* harmony import */ var
|
|
309
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
310
|
+
/* harmony import */ var a_color_picker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(46146);
|
|
311
|
+
/* harmony import */ var a_color_picker__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(a_color_picker__WEBPACK_IMPORTED_MODULE_1__);
|
|
312
|
+
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82758);
|
|
313
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65478);
|
|
314
|
+
/* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
|
|
315
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(38837);
|
|
316
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(67510);
|
|
317
|
+
/* harmony import */ var jodit_esm_modules__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41409);
|
|
318
318
|
/*!
|
|
319
319
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
320
320
|
* See LICENSE.md in the project root for license information.
|
|
@@ -329,7 +329,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
329
329
|
|
|
330
330
|
|
|
331
331
|
|
|
332
|
-
let ColorInput = class ColorInput extends
|
|
332
|
+
let ColorInput = class ColorInput extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIInput */ .tS {
|
|
333
333
|
/** @override */
|
|
334
334
|
className() {
|
|
335
335
|
return 'ColorInput';
|
|
@@ -337,9 +337,9 @@ let ColorInput = class ColorInput extends jodit_esm_core_ui__WEBPACK_IMPORTED_MO
|
|
|
337
337
|
/** @override */
|
|
338
338
|
constructor(jodit, options) {
|
|
339
339
|
super(jodit, options);
|
|
340
|
-
const popup = new
|
|
340
|
+
const popup = new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .Popup */ .zD(jodit), parse = (c) => a_color_picker__WEBPACK_IMPORTED_MODULE_1__.parseColor(c, 'hex');
|
|
341
341
|
this.popup = popup;
|
|
342
|
-
this.trigger = (0,
|
|
342
|
+
this.trigger = (0,jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .Button */ .$n)(this.j, 'ok');
|
|
343
343
|
const wrapper = this.getElm('wrapper');
|
|
344
344
|
void 0;
|
|
345
345
|
wrapper.appendChild(this.trigger.container);
|
|
@@ -351,13 +351,13 @@ let ColorInput = class ColorInput extends jodit_esm_core_ui__WEBPACK_IMPORTED_MO
|
|
|
351
351
|
});
|
|
352
352
|
popup.setMod('padding', false).setMod('max-height', false);
|
|
353
353
|
const pickerElement = this.j.create.div(this.getFullElName('picker'));
|
|
354
|
-
const picker =
|
|
354
|
+
const picker = a_color_picker__WEBPACK_IMPORTED_MODULE_1__.createPicker(pickerElement, {
|
|
355
355
|
paletteEditable: true,
|
|
356
356
|
showAlpha: true,
|
|
357
357
|
palette: 'PALETTE_MATERIAL_CHROME'
|
|
358
358
|
}).on('change', (picker, color) => {
|
|
359
359
|
if (!this.isFocused) {
|
|
360
|
-
this.value =
|
|
360
|
+
this.value = a_color_picker__WEBPACK_IMPORTED_MODULE_1__.parseColor(color || '', 'hex');
|
|
361
361
|
}
|
|
362
362
|
});
|
|
363
363
|
this.j.e.on(this, 'change', () => {
|
|
@@ -368,10 +368,10 @@ let ColorInput = class ColorInput extends jodit_esm_core_ui__WEBPACK_IMPORTED_MO
|
|
|
368
368
|
popup.setContent(pickerElement);
|
|
369
369
|
this.j.e.on(this.nativeInput, 'click', () => {
|
|
370
370
|
popup.parentElement = this;
|
|
371
|
-
if (this.jodit instanceof
|
|
371
|
+
if (this.jodit instanceof jodit_esm_modules__WEBPACK_IMPORTED_MODULE_7__.Dialog) {
|
|
372
372
|
popup.setZIndex(this.jodit.getZIndex() + 1);
|
|
373
373
|
}
|
|
374
|
-
popup.open(() => (0,
|
|
374
|
+
popup.open(() => (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_4__.position)(this.container));
|
|
375
375
|
});
|
|
376
376
|
this.onChangeValue();
|
|
377
377
|
this.onChangeSelfValue();
|
|
@@ -386,19 +386,19 @@ let ColorInput = class ColorInput extends jodit_esm_core_ui__WEBPACK_IMPORTED_MO
|
|
|
386
386
|
}
|
|
387
387
|
onEscKeyDown(e) {
|
|
388
388
|
var _a;
|
|
389
|
-
if (e.key ===
|
|
389
|
+
if (e.key === jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_ESC) {
|
|
390
390
|
(_a = this.popup) === null || _a === void 0 ? void 0 : _a.close();
|
|
391
391
|
}
|
|
392
392
|
}
|
|
393
393
|
};
|
|
394
|
-
(0,
|
|
395
|
-
(0,
|
|
394
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
395
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':change')
|
|
396
396
|
], ColorInput.prototype, "onChangeSelfValue", null);
|
|
397
|
-
(0,
|
|
398
|
-
(0,
|
|
397
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
398
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('nativeInput:keydown')
|
|
399
399
|
], ColorInput.prototype, "onEscKeyDown", null);
|
|
400
|
-
ColorInput = (0,
|
|
401
|
-
|
|
400
|
+
ColorInput = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
401
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.component
|
|
402
402
|
], ColorInput);
|
|
403
403
|
|
|
404
404
|
|
|
@@ -412,10 +412,10 @@ ColorInput = (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
|
412
412
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
413
413
|
/* harmony export */ A: function() { return /* binding */ UIMarkerEditor; }
|
|
414
414
|
/* harmony export */ });
|
|
415
|
-
/* harmony import */ var
|
|
416
|
-
/* harmony import */ var
|
|
417
|
-
/* harmony import */ var
|
|
418
|
-
/* harmony import */ var
|
|
415
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
416
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
417
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_ui_editors_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8367);
|
|
418
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_ui_wysiwyg_wysiwyg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12046);
|
|
419
419
|
/*!
|
|
420
420
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
421
421
|
* See LICENSE.md in the project root for license information.
|
|
@@ -425,19 +425,19 @@ ColorInput = (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
|
425
425
|
|
|
426
426
|
|
|
427
427
|
|
|
428
|
-
let UIMarkerEditor = class UIMarkerEditor extends
|
|
428
|
+
let UIMarkerEditor = class UIMarkerEditor extends jodit_pro_plugins_google_maps_ui_editors_base__WEBPACK_IMPORTED_MODULE_2__/* .UIBaseEditor */ .R {
|
|
429
429
|
onReady() {
|
|
430
430
|
var _a;
|
|
431
431
|
super.onReady();
|
|
432
|
-
const editor = new
|
|
432
|
+
const editor = new jodit_pro_plugins_google_maps_ui_wysiwyg_wysiwyg__WEBPACK_IMPORTED_MODULE_3__/* .UIWysiwyg */ .W(this.j, this.options.googleMaps.inlineEditorOptions, (_a = this.state.text) !== null && _a !== void 0 ? _a : '', (value) => this.j.e.fire(this, 'change', 'text', value));
|
|
433
433
|
this.append(editor, 'form');
|
|
434
434
|
}
|
|
435
435
|
};
|
|
436
|
-
(0,
|
|
437
|
-
(0,
|
|
436
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
437
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.hook)('ready')
|
|
438
438
|
], UIMarkerEditor.prototype, "onReady", null);
|
|
439
|
-
UIMarkerEditor = (0,
|
|
440
|
-
|
|
439
|
+
UIMarkerEditor = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
440
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
441
441
|
], UIMarkerEditor);
|
|
442
442
|
|
|
443
443
|
|
|
@@ -490,11 +490,11 @@ class UIBaseEditor extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIG
|
|
|
490
490
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
491
491
|
/* harmony export */ W: function() { return /* binding */ UIWysiwyg; }
|
|
492
492
|
/* harmony export */ });
|
|
493
|
-
/* harmony import */ var
|
|
494
|
-
/* harmony import */ var
|
|
495
|
-
/* harmony import */ var
|
|
496
|
-
/* harmony import */ var
|
|
497
|
-
/* harmony import */ var
|
|
493
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
494
|
+
/* harmony import */ var jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87325);
|
|
495
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38837);
|
|
496
|
+
/* harmony import */ var jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48538);
|
|
497
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34013);
|
|
498
498
|
/*!
|
|
499
499
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
500
500
|
* See LICENSE.md in the project root for license information.
|
|
@@ -506,7 +506,7 @@ class UIBaseEditor extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIG
|
|
|
506
506
|
|
|
507
507
|
|
|
508
508
|
|
|
509
|
-
let UIWysiwyg = class UIWysiwyg extends
|
|
509
|
+
let UIWysiwyg = class UIWysiwyg extends jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElement */ .D {
|
|
510
510
|
className() {
|
|
511
511
|
return 'UIWysiwyg';
|
|
512
512
|
}
|
|
@@ -514,7 +514,7 @@ let UIWysiwyg = class UIWysiwyg extends jodit_esm_core_ui_element__WEBPACK_IMPOR
|
|
|
514
514
|
super(jodit);
|
|
515
515
|
const wysiwyg = this.getElm('editor');
|
|
516
516
|
void 0;
|
|
517
|
-
const editor =
|
|
517
|
+
const editor = jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_4__/* .JoditPro */ .A.make(wysiwyg, Object.assign({ buttons: ['bold', 'italic', 'image'], height: 100, minHeight: 100, allowResizeY: false, allowResizeX: false, disablePlugins: [
|
|
518
518
|
'mobile',
|
|
519
519
|
'backup',
|
|
520
520
|
'highlight-signature',
|
|
@@ -531,8 +531,8 @@ let UIWysiwyg = class UIWysiwyg extends jodit_esm_core_ui_element__WEBPACK_IMPOR
|
|
|
531
531
|
</div>`;
|
|
532
532
|
}
|
|
533
533
|
};
|
|
534
|
-
UIWysiwyg = (0,
|
|
535
|
-
|
|
534
|
+
UIWysiwyg = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
535
|
+
jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_1__/* .component */ .s
|
|
536
536
|
], UIWysiwyg);
|
|
537
537
|
|
|
538
538
|
|
|
@@ -593,11 +593,11 @@ UIWysiwyg = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .Cg)([
|
|
|
593
593
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
594
594
|
/* harmony export */ C: function() { return /* binding */ UIPolylineEditor; }
|
|
595
595
|
/* harmony export */ });
|
|
596
|
-
/* harmony import */ var
|
|
597
|
-
/* harmony import */ var
|
|
598
|
-
/* harmony import */ var
|
|
599
|
-
/* harmony import */ var
|
|
600
|
-
/* harmony import */ var
|
|
596
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
597
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
598
|
+
/* harmony import */ var jodit_esm_core_ui_form_inputs_input_input__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80256);
|
|
599
|
+
/* harmony import */ var jodit_pro_plugins_color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5693);
|
|
600
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_ui_editors_base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8367);
|
|
601
601
|
/*!
|
|
602
602
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
603
603
|
* See LICENSE.md in the project root for license information.
|
|
@@ -608,18 +608,18 @@ UIWysiwyg = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .Cg)([
|
|
|
608
608
|
|
|
609
609
|
|
|
610
610
|
|
|
611
|
-
let UIPolylineEditor = class UIPolylineEditor extends
|
|
611
|
+
let UIPolylineEditor = class UIPolylineEditor extends jodit_pro_plugins_google_maps_ui_editors_base__WEBPACK_IMPORTED_MODULE_4__/* .UIBaseEditor */ .R {
|
|
612
612
|
onReady() {
|
|
613
613
|
var _a, _b;
|
|
614
614
|
super.onReady();
|
|
615
615
|
this.append([
|
|
616
|
-
new
|
|
616
|
+
new jodit_esm_core_ui_form_inputs_input_input__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .t(this.j, {
|
|
617
617
|
label: 'Stroke weight',
|
|
618
618
|
value: (_a = this.state.strokeWeight) !== null && _a !== void 0 ? _a : 1,
|
|
619
619
|
type: 'number',
|
|
620
620
|
onChange: (value) => this.j.e.fire(this, 'change', 'strokeWeight', value)
|
|
621
621
|
}),
|
|
622
|
-
new
|
|
622
|
+
new jodit_pro_plugins_color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_3__/* .ColorInput */ .A(this.j, {
|
|
623
623
|
label: 'Stroke color',
|
|
624
624
|
value: (_b = this.state.strokeColor) !== null && _b !== void 0 ? _b : '#000',
|
|
625
625
|
onChange: (value) => this.j.e.fire(this, 'change', 'strokeColor', value)
|
|
@@ -627,11 +627,11 @@ let UIPolylineEditor = class UIPolylineEditor extends jodit_pro_plugins_google_m
|
|
|
627
627
|
], 'form');
|
|
628
628
|
}
|
|
629
629
|
};
|
|
630
|
-
(0,
|
|
631
|
-
(0,
|
|
630
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
631
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.hook)('ready')
|
|
632
632
|
], UIPolylineEditor.prototype, "onReady", null);
|
|
633
|
-
UIPolylineEditor = (0,
|
|
634
|
-
|
|
633
|
+
UIPolylineEditor = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
634
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
635
635
|
], UIPolylineEditor);
|
|
636
636
|
|
|
637
637
|
|
|
@@ -652,9 +652,9 @@ module.exports = "<svg width=\"72\" height=\"86\" viewBox=\"0 0 72 86\" fill=\"n
|
|
|
652
652
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
653
653
|
/* harmony export */ T: function() { return /* binding */ openPropsDialog; }
|
|
654
654
|
/* harmony export */ });
|
|
655
|
-
/* harmony import */ var
|
|
656
|
-
/* harmony import */ var
|
|
657
|
-
/* harmony import */ var
|
|
655
|
+
/* harmony import */ var _remove_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75197);
|
|
656
|
+
/* harmony import */ var _update_state_and_gme__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93636);
|
|
657
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_ui_editors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12936);
|
|
658
658
|
/*!
|
|
659
659
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
660
660
|
* See LICENSE.md in the project root for license information.
|
|
@@ -680,14 +680,14 @@ function openPropsDialog(newElm, index) {
|
|
|
680
680
|
this.state.mode = 'hand';
|
|
681
681
|
switch (newElm.type) {
|
|
682
682
|
case 'polyline':
|
|
683
|
-
editor = new
|
|
683
|
+
editor = new jodit_pro_plugins_google_maps_ui_editors__WEBPACK_IMPORTED_MODULE_2__/* .UIPolylineEditor */ .C1(this.jodit, newElm.state, this.options);
|
|
684
684
|
break;
|
|
685
685
|
case 'marker':
|
|
686
|
-
editor = new
|
|
686
|
+
editor = new jodit_pro_plugins_google_maps_ui_editors__WEBPACK_IMPORTED_MODULE_2__/* .UIMarkerEditor */ .Ax(this.jodit, newElm.state, this.options);
|
|
687
687
|
break;
|
|
688
688
|
case 'circle':
|
|
689
689
|
case 'polygon':
|
|
690
|
-
editor = new
|
|
690
|
+
editor = new jodit_pro_plugins_google_maps_ui_editors__WEBPACK_IMPORTED_MODULE_2__/* .UIPolygonEditor */ .E6(this.jodit, newElm.state, this.options);
|
|
691
691
|
break;
|
|
692
692
|
}
|
|
693
693
|
if (!editor) {
|
|
@@ -696,10 +696,10 @@ function openPropsDialog(newElm, index) {
|
|
|
696
696
|
this.append(editor);
|
|
697
697
|
this.j.e
|
|
698
698
|
.on(editor, 'bin', () => {
|
|
699
|
-
|
|
699
|
+
_remove_element__WEBPACK_IMPORTED_MODULE_0__/* .removeElement */ .N.call(this, newElm);
|
|
700
700
|
})
|
|
701
701
|
.on(editor, 'change', (key, value) => {
|
|
702
|
-
|
|
702
|
+
_update_state_and_gme__WEBPACK_IMPORTED_MODULE_1__/* .updateStateAndGme */ .B.call(this, Object.assign(Object.assign({}, newElm.state), { [key]: value }), index);
|
|
703
703
|
});
|
|
704
704
|
const w = getInfoWindow.call(this);
|
|
705
705
|
if (newElm.type === 'polygon' || newElm.type === 'polyline') {
|
|
@@ -729,8 +729,8 @@ function openPropsDialog(newElm, index) {
|
|
|
729
729
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
730
730
|
/* harmony export */ H: function() { return /* binding */ generateStaticElements; }
|
|
731
731
|
/* harmony export */ });
|
|
732
|
-
/* harmony import */ var
|
|
733
|
-
/* harmony import */ var
|
|
732
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65533);
|
|
733
|
+
/* harmony import */ var jodit_esm_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91003);
|
|
734
734
|
/*!
|
|
735
735
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
736
736
|
* See LICENSE.md in the project root for license information.
|
|
@@ -744,11 +744,11 @@ function generateStaticElements(uiMap) {
|
|
|
744
744
|
var _a, _b, _c, _d, _e, _f;
|
|
745
745
|
switch (elm.type) {
|
|
746
746
|
case 'polygon':
|
|
747
|
-
return `&path=fillcolor:${(0,
|
|
747
|
+
return `&path=fillcolor:${(0,_helpers__WEBPACK_IMPORTED_MODULE_0__/* .specialColor */ .Zt)((_a = elm.fillColor) !== null && _a !== void 0 ? _a : '#fff')}%7Cweight:${(_b = elm.strokeWeight) !== null && _b !== void 0 ? _b : 1}%7Ccolor:${(0,_helpers__WEBPACK_IMPORTED_MODULE_0__/* .specialColor */ .Zt)((_c = elm.strokeColor) !== null && _c !== void 0 ? _c : '#fff')}%7Cenc:${google.maps.geometry.encoding.encodePath((0,_helpers__WEBPACK_IMPORTED_MODULE_0__/* .arrayToPath */ .A3)(elm.coordinates))}`;
|
|
748
748
|
case 'polyline':
|
|
749
|
-
return `&path=weight:${(_d = elm.strokeWeight) !== null && _d !== void 0 ? _d : 1}%7Ccolor:${(0,
|
|
749
|
+
return `&path=weight:${(_d = elm.strokeWeight) !== null && _d !== void 0 ? _d : 1}%7Ccolor:${(0,_helpers__WEBPACK_IMPORTED_MODULE_0__/* .specialColor */ .Zt)((_e = elm.strokeColor) !== null && _e !== void 0 ? _e : '#fff')}%7Cenc:${google.maps.geometry.encoding.encodePath((0,_helpers__WEBPACK_IMPORTED_MODULE_0__/* .arrayToPath */ .A3)(elm.coordinates))}`;
|
|
750
750
|
case 'marker':
|
|
751
|
-
return `&markers=color:blue%7Clabel:${encodeURIComponent((0,
|
|
751
|
+
return `&markers=color:blue%7Clabel:${encodeURIComponent((0,jodit_esm_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_1__/* .stripTags */ .K)((_f = elm.text) !== null && _f !== void 0 ? _f : '')
|
|
752
752
|
.charAt(0)
|
|
753
753
|
.toUpperCase())}%7C${elm.coordinates}`;
|
|
754
754
|
}
|
|
@@ -767,10 +767,10 @@ function generateStaticElements(uiMap) {
|
|
|
767
767
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
768
768
|
/* harmony export */ m: function() { return /* binding */ UIMapsPropsForm; }
|
|
769
769
|
/* harmony export */ });
|
|
770
|
-
/* harmony import */ var
|
|
771
|
-
/* harmony import */ var
|
|
772
|
-
/* harmony import */ var
|
|
773
|
-
/* harmony import */ var
|
|
770
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
771
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
772
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(76078);
|
|
773
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67510);
|
|
774
774
|
/*!
|
|
775
775
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
776
776
|
* See LICENSE.md in the project root for license information.
|
|
@@ -781,7 +781,7 @@ function generateStaticElements(uiMap) {
|
|
|
781
781
|
|
|
782
782
|
|
|
783
783
|
|
|
784
|
-
let UIMapsPropsForm = class UIMapsPropsForm extends
|
|
784
|
+
let UIMapsPropsForm = class UIMapsPropsForm extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UIForm */ .XV {
|
|
785
785
|
className() {
|
|
786
786
|
return 'UIMapsPropsForm';
|
|
787
787
|
}
|
|
@@ -792,33 +792,33 @@ let UIMapsPropsForm = class UIMapsPropsForm extends jodit_esm_core_ui__WEBPACK_I
|
|
|
792
792
|
const [w, h] = state.size;
|
|
793
793
|
const [x, y] = state.center;
|
|
794
794
|
this.append([
|
|
795
|
-
new
|
|
795
|
+
new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UIInput */ .tS(jodit, {
|
|
796
796
|
label: 'Width',
|
|
797
797
|
name: 'width',
|
|
798
798
|
value: w,
|
|
799
799
|
type: 'number',
|
|
800
800
|
onChange: this.onChangeSize
|
|
801
801
|
}),
|
|
802
|
-
new
|
|
802
|
+
new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UIInput */ .tS(jodit, {
|
|
803
803
|
label: 'Height',
|
|
804
804
|
name: 'height',
|
|
805
805
|
value: h,
|
|
806
806
|
type: 'number',
|
|
807
807
|
onChange: this.onChangeSize
|
|
808
808
|
}),
|
|
809
|
-
new
|
|
809
|
+
new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UIInput */ .tS(jodit, {
|
|
810
810
|
label: 'Latitude',
|
|
811
811
|
name: 'lat',
|
|
812
812
|
value: x,
|
|
813
813
|
onChange: this.onChangeCenter
|
|
814
814
|
}),
|
|
815
|
-
new
|
|
815
|
+
new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UIInput */ .tS(jodit, {
|
|
816
816
|
label: 'Longitude',
|
|
817
817
|
name: 'lng',
|
|
818
818
|
value: y,
|
|
819
819
|
onChange: this.onChangeCenter
|
|
820
820
|
}),
|
|
821
|
-
new
|
|
821
|
+
new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UISelect */ .$6(jodit, {
|
|
822
822
|
label: 'Map type',
|
|
823
823
|
value: state.type,
|
|
824
824
|
name: 'mapType',
|
|
@@ -832,7 +832,7 @@ let UIMapsPropsForm = class UIMapsPropsForm extends jodit_esm_core_ui__WEBPACK_I
|
|
|
832
832
|
state.type = value;
|
|
833
833
|
}
|
|
834
834
|
}),
|
|
835
|
-
new
|
|
835
|
+
new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UISelect */ .$6(jodit, {
|
|
836
836
|
label: 'Layer',
|
|
837
837
|
value: (_a = state.layer) !== null && _a !== void 0 ? _a : 'default',
|
|
838
838
|
name: 'layer',
|
|
@@ -849,14 +849,14 @@ let UIMapsPropsForm = class UIMapsPropsForm extends jodit_esm_core_ui__WEBPACK_I
|
|
|
849
849
|
]);
|
|
850
850
|
}
|
|
851
851
|
onChangeSize() {
|
|
852
|
-
const { width, height } = (0,
|
|
852
|
+
const { width, height } = (0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__/* .refs */ .DY)(this.container);
|
|
853
853
|
this.state.size = [
|
|
854
854
|
parseInt(width === null || width === void 0 ? void 0 : width.value, 10) || 0,
|
|
855
855
|
parseInt(height === null || height === void 0 ? void 0 : height.value, 10) || 0
|
|
856
856
|
];
|
|
857
857
|
}
|
|
858
858
|
onExternalChangeSize() {
|
|
859
|
-
const { width, height } = (0,
|
|
859
|
+
const { width, height } = (0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__/* .refs */ .DY)(this.container);
|
|
860
860
|
const [w, h] = this.state.size;
|
|
861
861
|
if (w.toString() !== width.value) {
|
|
862
862
|
width.value = w.toString();
|
|
@@ -866,14 +866,14 @@ let UIMapsPropsForm = class UIMapsPropsForm extends jodit_esm_core_ui__WEBPACK_I
|
|
|
866
866
|
}
|
|
867
867
|
}
|
|
868
868
|
onChangeCenter() {
|
|
869
|
-
const { lat, lng } = (0,
|
|
869
|
+
const { lat, lng } = (0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__/* .refs */ .DY)(this.container);
|
|
870
870
|
this.state.center = [
|
|
871
871
|
parseFloat(lat === null || lat === void 0 ? void 0 : lat.value) || 0,
|
|
872
872
|
parseFloat(lng === null || lng === void 0 ? void 0 : lng.value) || 0
|
|
873
873
|
];
|
|
874
874
|
}
|
|
875
875
|
onExternalChangeCenter() {
|
|
876
|
-
const { lat, lng } = (0,
|
|
876
|
+
const { lat, lng } = (0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__/* .refs */ .DY)(this.container);
|
|
877
877
|
const [x, y] = this.state.center;
|
|
878
878
|
if (x.toString() !== lat.value) {
|
|
879
879
|
lat.value = x.toString();
|
|
@@ -883,38 +883,38 @@ let UIMapsPropsForm = class UIMapsPropsForm extends jodit_esm_core_ui__WEBPACK_I
|
|
|
883
883
|
}
|
|
884
884
|
}
|
|
885
885
|
onExternalChangeType() {
|
|
886
|
-
const { mapType } = (0,
|
|
886
|
+
const { mapType } = (0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__/* .refs */ .DY)(this.container);
|
|
887
887
|
if (this.state.type !== mapType.value) {
|
|
888
888
|
mapType.value = this.state.type;
|
|
889
889
|
}
|
|
890
890
|
}
|
|
891
891
|
onExternalChangeLayer() {
|
|
892
|
-
const { layer } = (0,
|
|
892
|
+
const { layer } = (0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__/* .refs */ .DY)(this.container);
|
|
893
893
|
if (this.state.layer !== layer.value) {
|
|
894
894
|
layer.value = this.state.layer;
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
897
|
};
|
|
898
|
-
(0,
|
|
899
|
-
|
|
898
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
899
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
900
900
|
], UIMapsPropsForm.prototype, "onChangeSize", null);
|
|
901
|
-
(0,
|
|
902
|
-
(0,
|
|
901
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
902
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('state.size')
|
|
903
903
|
], UIMapsPropsForm.prototype, "onExternalChangeSize", null);
|
|
904
|
-
(0,
|
|
905
|
-
|
|
904
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
905
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
906
906
|
], UIMapsPropsForm.prototype, "onChangeCenter", null);
|
|
907
|
-
(0,
|
|
908
|
-
(0,
|
|
907
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
908
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(['state.center'])
|
|
909
909
|
], UIMapsPropsForm.prototype, "onExternalChangeCenter", null);
|
|
910
|
-
(0,
|
|
911
|
-
(0,
|
|
910
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
911
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(['state.type'])
|
|
912
912
|
], UIMapsPropsForm.prototype, "onExternalChangeType", null);
|
|
913
|
-
(0,
|
|
914
|
-
(0,
|
|
913
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
914
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(['state.layer'])
|
|
915
915
|
], UIMapsPropsForm.prototype, "onExternalChangeLayer", null);
|
|
916
|
-
UIMapsPropsForm = (0,
|
|
917
|
-
|
|
916
|
+
UIMapsPropsForm = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
917
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
918
918
|
], UIMapsPropsForm);
|
|
919
919
|
|
|
920
920
|
|
|
@@ -935,9 +935,9 @@ module.exports = "<svg viewBox=\"0 0 77 86\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
935
935
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
936
936
|
/* harmony export */ A: function() { return /* binding */ UIComboBox; }
|
|
937
937
|
/* harmony export */ });
|
|
938
|
-
/* harmony import */ var
|
|
939
|
-
/* harmony import */ var
|
|
940
|
-
/* harmony import */ var
|
|
938
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
939
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
940
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67510);
|
|
941
941
|
/*!
|
|
942
942
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
943
943
|
* See LICENSE.md in the project root for license information.
|
|
@@ -947,7 +947,7 @@ module.exports = "<svg viewBox=\"0 0 77 86\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
947
947
|
|
|
948
948
|
|
|
949
949
|
|
|
950
|
-
class UIComboBox extends
|
|
950
|
+
class UIComboBox extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .tS {
|
|
951
951
|
className() {
|
|
952
952
|
return 'UIComboBox';
|
|
953
953
|
}
|
|
@@ -963,7 +963,7 @@ class UIComboBox extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_1__/* .UIInp
|
|
|
963
963
|
});
|
|
964
964
|
}
|
|
965
965
|
onInput() {
|
|
966
|
-
return (0,
|
|
966
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__awaiter */ .sH)(this, void 0, void 0, function* () {
|
|
967
967
|
// try {
|
|
968
968
|
// const results: google.maps.GeocoderResult[] = await this.search(
|
|
969
969
|
// this.value
|
|
@@ -982,12 +982,12 @@ class UIComboBox extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_1__/* .UIInp
|
|
|
982
982
|
});
|
|
983
983
|
}
|
|
984
984
|
}
|
|
985
|
-
(0,
|
|
986
|
-
(0,
|
|
985
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
986
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.hook)('ready')
|
|
987
987
|
], UIComboBox.prototype, "onReady", null);
|
|
988
|
-
(0,
|
|
989
|
-
(0,
|
|
990
|
-
(0,
|
|
988
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
989
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('nativeInput:input'),
|
|
990
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.debounce)()
|
|
991
991
|
], UIComboBox.prototype, "onInput", null);
|
|
992
992
|
|
|
993
993
|
|
|
@@ -997,8 +997,8 @@ class UIComboBox extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_1__/* .UIInp
|
|
|
997
997
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
998
998
|
|
|
999
999
|
"use strict";
|
|
1000
|
-
/* harmony import */ var
|
|
1001
|
-
/* harmony import */ var
|
|
1000
|
+
/* harmony import */ var _helpers_const__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45751);
|
|
1001
|
+
/* harmony import */ var jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6441);
|
|
1002
1002
|
/*!
|
|
1003
1003
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1004
1004
|
* See LICENSE.md in the project root for license information.
|
|
@@ -1006,7 +1006,7 @@ class UIComboBox extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_1__/* .UIInp
|
|
|
1006
1006
|
*/
|
|
1007
1007
|
|
|
1008
1008
|
|
|
1009
|
-
|
|
1009
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.googleMaps = {
|
|
1010
1010
|
saveStateInStorage: true,
|
|
1011
1011
|
useStaticImage: false,
|
|
1012
1012
|
apiUrl: 'https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler',
|
|
@@ -1047,10 +1047,10 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.googleMa
|
|
|
1047
1047
|
}
|
|
1048
1048
|
}
|
|
1049
1049
|
};
|
|
1050
|
-
|
|
1050
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.googleMaps = {
|
|
1051
1051
|
tooltip: 'Google Maps',
|
|
1052
1052
|
icon: 'map',
|
|
1053
|
-
command:
|
|
1053
|
+
command: _helpers_const__WEBPACK_IMPORTED_MODULE_0__/* .COMMAND_OPEN_DIALOG */ .C
|
|
1054
1054
|
};
|
|
1055
1055
|
const gmButton = (name) => ({
|
|
1056
1056
|
icon: `edit-${name}`,
|
|
@@ -1059,7 +1059,7 @@ const gmButton = (name) => ({
|
|
|
1059
1059
|
editor.e.fire('changeCreateMode.gm', name);
|
|
1060
1060
|
}
|
|
1061
1061
|
});
|
|
1062
|
-
|
|
1062
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.gm = {
|
|
1063
1063
|
hand: gmButton('hand'),
|
|
1064
1064
|
marker: gmButton('marker'),
|
|
1065
1065
|
polyline: gmButton('polyline'),
|
|
@@ -2446,9 +2446,9 @@ module.exports = "<svg viewBox=\"0 0 76 76\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
2446
2446
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2447
2447
|
/* harmony export */ S: function() { return /* binding */ UIMapsControlsForm; }
|
|
2448
2448
|
/* harmony export */ });
|
|
2449
|
-
/* harmony import */ var
|
|
2450
|
-
/* harmony import */ var
|
|
2451
|
-
/* harmony import */ var
|
|
2449
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
2450
|
+
/* harmony import */ var jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87325);
|
|
2451
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67510);
|
|
2452
2452
|
/*!
|
|
2453
2453
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2454
2454
|
* See LICENSE.md in the project root for license information.
|
|
@@ -2458,7 +2458,7 @@ module.exports = "<svg viewBox=\"0 0 76 76\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
2458
2458
|
|
|
2459
2459
|
|
|
2460
2460
|
|
|
2461
|
-
let UIMapsControlsForm = class UIMapsControlsForm extends
|
|
2461
|
+
let UIMapsControlsForm = class UIMapsControlsForm extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV {
|
|
2462
2462
|
className() {
|
|
2463
2463
|
return 'UIMapsControlsForm';
|
|
2464
2464
|
}
|
|
@@ -2474,7 +2474,7 @@ let UIMapsControlsForm = class UIMapsControlsForm extends jodit_esm_core_ui__WEB
|
|
|
2474
2474
|
fullscreenControl: 'Fullscreen control'
|
|
2475
2475
|
};
|
|
2476
2476
|
const controls = Object.keys(controlsNames);
|
|
2477
|
-
this.append(controls.map((key) => new
|
|
2477
|
+
this.append(controls.map((key) => new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UICheckbox */ .cY(jodit, {
|
|
2478
2478
|
label: controlsNames[key],
|
|
2479
2479
|
name: key,
|
|
2480
2480
|
checked: this.state.controls[key],
|
|
@@ -2487,8 +2487,8 @@ let UIMapsControlsForm = class UIMapsControlsForm extends jodit_esm_core_ui__WEB
|
|
|
2487
2487
|
this.state.controls = Object.assign(Object.assign({}, this.state.controls), { [key]: value === 'true' });
|
|
2488
2488
|
}
|
|
2489
2489
|
};
|
|
2490
|
-
UIMapsControlsForm = (0,
|
|
2491
|
-
|
|
2490
|
+
UIMapsControlsForm = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2491
|
+
jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_1__/* .component */ .s
|
|
2492
2492
|
], UIMapsControlsForm);
|
|
2493
2493
|
|
|
2494
2494
|
|
|
@@ -2502,10 +2502,10 @@ UIMapsControlsForm = (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__decorate */ .Cg)
|
|
|
2502
2502
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2503
2503
|
/* harmony export */ Q: function() { return /* binding */ UIRange; }
|
|
2504
2504
|
/* harmony export */ });
|
|
2505
|
-
/* harmony import */ var
|
|
2506
|
-
/* harmony import */ var
|
|
2507
|
-
/* harmony import */ var
|
|
2508
|
-
/* harmony import */ var
|
|
2505
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
2506
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
2507
|
+
/* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21537);
|
|
2508
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67510);
|
|
2509
2509
|
/*!
|
|
2510
2510
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2511
2511
|
* See LICENSE.md in the project root for license information.
|
|
@@ -2516,14 +2516,14 @@ UIMapsControlsForm = (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__decorate */ .Cg)
|
|
|
2516
2516
|
|
|
2517
2517
|
|
|
2518
2518
|
|
|
2519
|
-
let UIRange = class UIRange extends
|
|
2519
|
+
let UIRange = class UIRange extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UIInput */ .tS {
|
|
2520
2520
|
/** @override */
|
|
2521
2521
|
className() {
|
|
2522
2522
|
return 'UIRange';
|
|
2523
2523
|
}
|
|
2524
2524
|
constructor(jodit, options) {
|
|
2525
2525
|
super(jodit, Object.assign(Object.assign({}, options), { type: 'hidden' }));
|
|
2526
|
-
this.state = Object.assign(Object.assign({},
|
|
2526
|
+
this.state = Object.assign(Object.assign({}, jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UIInput */ .tS.defaultState), { min: 0, max: 100 });
|
|
2527
2527
|
this.startValue = 0;
|
|
2528
2528
|
this.startX = 0;
|
|
2529
2529
|
this.width = 100;
|
|
@@ -2568,7 +2568,7 @@ let UIRange = class UIRange extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2
|
|
|
2568
2568
|
onChangeSelfValue() {
|
|
2569
2569
|
const handle = this.getElm('handle'), value = parseFloat(this.value) || 0;
|
|
2570
2570
|
void 0;
|
|
2571
|
-
(0,
|
|
2571
|
+
(0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_2__.css)(handle, {
|
|
2572
2572
|
left: ((value - this.state.min) / (this.state.max - this.state.min)) *
|
|
2573
2573
|
100 +
|
|
2574
2574
|
'%'
|
|
@@ -2582,20 +2582,20 @@ let UIRange = class UIRange extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2
|
|
|
2582
2582
|
return super.destruct();
|
|
2583
2583
|
}
|
|
2584
2584
|
};
|
|
2585
|
-
(0,
|
|
2586
|
-
(0,
|
|
2585
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2586
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(['handle:mousedown', 'handle:touchstart'])
|
|
2587
2587
|
], UIRange.prototype, "onDragStart", null);
|
|
2588
|
-
(0,
|
|
2589
|
-
|
|
2588
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2589
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
2590
2590
|
], UIRange.prototype, "onDrag", null);
|
|
2591
|
-
(0,
|
|
2592
|
-
(0,
|
|
2591
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2592
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(['j.ow:mouseup', 'j.ow:touchend'])
|
|
2593
2593
|
], UIRange.prototype, "onDragEnd", null);
|
|
2594
|
-
(0,
|
|
2595
|
-
(0,
|
|
2594
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2595
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':change')
|
|
2596
2596
|
], UIRange.prototype, "onChangeSelfValue", null);
|
|
2597
|
-
UIRange = (0,
|
|
2598
|
-
|
|
2597
|
+
UIRange = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2598
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
2599
2599
|
], UIRange);
|
|
2600
2600
|
|
|
2601
2601
|
|
|
@@ -2609,8 +2609,8 @@ UIRange = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .Cg)([
|
|
|
2609
2609
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2610
2610
|
/* harmony export */ Q: function() { return /* binding */ onChangeGeometries; }
|
|
2611
2611
|
/* harmony export */ });
|
|
2612
|
-
/* harmony import */ var
|
|
2613
|
-
/* harmony import */ var
|
|
2612
|
+
/* harmony import */ var _update_state_and_gme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93636);
|
|
2613
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65533);
|
|
2614
2614
|
/*!
|
|
2615
2615
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2616
2616
|
* See LICENSE.md in the project root for license information.
|
|
@@ -2623,18 +2623,18 @@ function onChangeGeometries(newElm, index) {
|
|
|
2623
2623
|
switch (newElm.type) {
|
|
2624
2624
|
case 'polyline':
|
|
2625
2625
|
case 'polygon': {
|
|
2626
|
-
const coordinates = (0,
|
|
2627
|
-
|
|
2626
|
+
const coordinates = (0,jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_1__/* .pathToArray */ .AH)(newElm.gme.getPath()), newState = Object.assign(Object.assign({}, newElm.state), { coordinates });
|
|
2627
|
+
_update_state_and_gme__WEBPACK_IMPORTED_MODULE_0__/* .updateStateAndGme */ .B.call(this, newState, index, true);
|
|
2628
2628
|
break;
|
|
2629
2629
|
}
|
|
2630
2630
|
case 'marker': {
|
|
2631
2631
|
const pos = newElm.gme.getPosition(), newState = Object.assign(Object.assign({}, newElm.state), { coordinates: [(_a = pos === null || pos === void 0 ? void 0 : pos.lat()) !== null && _a !== void 0 ? _a : 0, (_b = pos === null || pos === void 0 ? void 0 : pos.lng()) !== null && _b !== void 0 ? _b : 0] });
|
|
2632
|
-
|
|
2632
|
+
_update_state_and_gme__WEBPACK_IMPORTED_MODULE_0__/* .updateStateAndGme */ .B.call(this, newState, index, true);
|
|
2633
2633
|
break;
|
|
2634
2634
|
}
|
|
2635
2635
|
case 'circle': {
|
|
2636
2636
|
const pos = newElm.gme.getCenter(), newState = Object.assign(Object.assign({}, newElm.state), { radius: newElm.gme.getRadius(), coordinates: [(_c = pos === null || pos === void 0 ? void 0 : pos.lat()) !== null && _c !== void 0 ? _c : 0, (_d = pos === null || pos === void 0 ? void 0 : pos.lng()) !== null && _d !== void 0 ? _d : 0] });
|
|
2637
|
-
|
|
2637
|
+
_update_state_and_gme__WEBPACK_IMPORTED_MODULE_0__/* .updateStateAndGme */ .B.call(this, newState, index, true);
|
|
2638
2638
|
break;
|
|
2639
2639
|
}
|
|
2640
2640
|
}
|
|
@@ -2718,11 +2718,11 @@ function isApiAvailable() {
|
|
|
2718
2718
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2719
2719
|
/* harmony export */ E: function() { return /* binding */ UIPolygonEditor; }
|
|
2720
2720
|
/* harmony export */ });
|
|
2721
|
-
/* harmony import */ var
|
|
2722
|
-
/* harmony import */ var
|
|
2723
|
-
/* harmony import */ var
|
|
2724
|
-
/* harmony import */ var
|
|
2725
|
-
/* harmony import */ var
|
|
2721
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
2722
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
2723
|
+
/* harmony import */ var jodit_pro_core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57066);
|
|
2724
|
+
/* harmony import */ var jodit_pro_plugins_color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5693);
|
|
2725
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_ui_editors_polyline_polyline__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(15833);
|
|
2726
2726
|
/*!
|
|
2727
2727
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2728
2728
|
* See LICENSE.md in the project root for license information.
|
|
@@ -2733,16 +2733,16 @@ function isApiAvailable() {
|
|
|
2733
2733
|
|
|
2734
2734
|
|
|
2735
2735
|
|
|
2736
|
-
let UIPolygonEditor = class UIPolygonEditor extends
|
|
2736
|
+
let UIPolygonEditor = class UIPolygonEditor extends jodit_pro_plugins_google_maps_ui_editors_polyline_polyline__WEBPACK_IMPORTED_MODULE_4__/* .UIPolylineEditor */ .C {
|
|
2737
2737
|
onReady() {
|
|
2738
2738
|
var _a, _b;
|
|
2739
2739
|
this.append([
|
|
2740
|
-
new
|
|
2740
|
+
new jodit_pro_plugins_color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_3__/* .ColorInput */ .A(this.j, {
|
|
2741
2741
|
label: 'Fill color',
|
|
2742
2742
|
value: (_a = this.state.fillColor) !== null && _a !== void 0 ? _a : '#000',
|
|
2743
2743
|
onChange: (value) => this.j.e.fire(this, 'change', 'fillColor', value)
|
|
2744
2744
|
}).setMod('trigger', false),
|
|
2745
|
-
new
|
|
2745
|
+
new jodit_pro_core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_2__/* .UIRange */ .Q(this.j, {
|
|
2746
2746
|
label: 'Opacity',
|
|
2747
2747
|
min: 0,
|
|
2748
2748
|
max: 1,
|
|
@@ -2754,11 +2754,11 @@ let UIPolygonEditor = class UIPolygonEditor extends jodit_pro_plugins_google_map
|
|
|
2754
2754
|
], 'form');
|
|
2755
2755
|
}
|
|
2756
2756
|
};
|
|
2757
|
-
(0,
|
|
2758
|
-
(0,
|
|
2757
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2758
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.hook)('ready')
|
|
2759
2759
|
], UIPolygonEditor.prototype, "onReady", null);
|
|
2760
|
-
UIPolygonEditor = (0,
|
|
2761
|
-
|
|
2760
|
+
UIPolygonEditor = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2761
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
2762
2762
|
], UIPolygonEditor);
|
|
2763
2763
|
|
|
2764
2764
|
|
|
@@ -3078,23 +3078,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3078
3078
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3079
3079
|
/* harmony export */ googleMaps: function() { return /* binding */ googleMaps; }
|
|
3080
3080
|
/* harmony export */ });
|
|
3081
|
-
/* harmony import */ var
|
|
3082
|
-
/* harmony import */ var
|
|
3083
|
-
/* harmony import */ var
|
|
3084
|
-
/* harmony import */ var
|
|
3085
|
-
/* harmony import */ var
|
|
3086
|
-
/* harmony import */ var
|
|
3087
|
-
/* harmony import */ var
|
|
3088
|
-
/* harmony import */ var
|
|
3089
|
-
/* harmony import */ var
|
|
3090
|
-
/* harmony import */ var
|
|
3091
|
-
/* harmony import */ var
|
|
3092
|
-
/* harmony import */ var
|
|
3093
|
-
/* harmony import */ var
|
|
3094
|
-
/* harmony import */ var
|
|
3095
|
-
/* harmony import */ var
|
|
3096
|
-
/* harmony import */ var
|
|
3097
|
-
/* harmony import */ var
|
|
3081
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
3082
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44434);
|
|
3083
|
+
/* harmony import */ var _assets__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98742);
|
|
3084
|
+
/* harmony import */ var _helpers_const__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45751);
|
|
3085
|
+
/* harmony import */ var _helpers_generate_js_script__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71593);
|
|
3086
|
+
/* harmony import */ var _helpers_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65533);
|
|
3087
|
+
/* harmony import */ var _helpers_static_url__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(98652);
|
|
3088
|
+
/* harmony import */ var _ui_combo_box_combo_box__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(43502);
|
|
3089
|
+
/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50133);
|
|
3090
|
+
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(82758);
|
|
3091
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(65478);
|
|
3092
|
+
/* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(21537);
|
|
3093
|
+
/* harmony import */ var jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(50911);
|
|
3094
|
+
/* harmony import */ var jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(62843);
|
|
3095
|
+
/* harmony import */ var jodit_esm_modules_dialog_dialog__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(78584);
|
|
3096
|
+
/* harmony import */ var jodit_esm_modules_widget__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(92762);
|
|
3097
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(34013);
|
|
3098
3098
|
/*!
|
|
3099
3099
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3100
3100
|
* See LICENSE.md in the project root for license information.
|
|
@@ -3119,8 +3119,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3119
3119
|
|
|
3120
3120
|
|
|
3121
3121
|
// @ts-ignore
|
|
3122
|
-
window['JoditGoogleReadyHandler'] =
|
|
3123
|
-
class googleMaps extends
|
|
3122
|
+
window['JoditGoogleReadyHandler'] = _helpers_helpers__WEBPACK_IMPORTED_MODULE_5__/* .GoogleReadyHandler */ .hR;
|
|
3123
|
+
class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_12__/* .Plugin */ .k {
|
|
3124
3124
|
constructor() {
|
|
3125
3125
|
super(...arguments);
|
|
3126
3126
|
this.buttons = [
|
|
@@ -3132,7 +3132,7 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3132
3132
|
return 'google-maps';
|
|
3133
3133
|
}
|
|
3134
3134
|
afterInit(jodit) {
|
|
3135
|
-
jodit.registerCommand(
|
|
3135
|
+
jodit.registerCommand(_helpers_const__WEBPACK_IMPORTED_MODULE_3__/* .COMMAND_OPEN_DIALOG */ .C, () => {
|
|
3136
3136
|
void this.openMapEditor(null, {});
|
|
3137
3137
|
});
|
|
3138
3138
|
}
|
|
@@ -3149,20 +3149,20 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3149
3149
|
}
|
|
3150
3150
|
}
|
|
3151
3151
|
openMapEditor(target, initialState) {
|
|
3152
|
-
return (0,
|
|
3152
|
+
return (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__awaiter */ .sH)(this, void 0, void 0, function* () {
|
|
3153
3153
|
const jodit = this.j;
|
|
3154
3154
|
const dialog = this.getDialog();
|
|
3155
3155
|
const state = this.j.o.googleMaps.saveStateInStorage
|
|
3156
|
-
? dialog.storage.get(
|
|
3156
|
+
? dialog.storage.get(_helpers_const__WEBPACK_IMPORTED_MODULE_3__/* .STORAGE_KEY */ .A)
|
|
3157
3157
|
: undefined;
|
|
3158
3158
|
const { apiUrl } = this.jodit.o.googleMaps;
|
|
3159
|
-
if (!(0,
|
|
3160
|
-
void (0,
|
|
3159
|
+
if (!(0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_5__/* .isApiAvailable */ .uv)()) {
|
|
3160
|
+
void (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_11__.appendScriptAsync)(this.jodit, apiUrl.replace(/\${([^}]+)}/g, (_, key) => { var _a; return (_a = this.get(key)) !== null && _a !== void 0 ? _a : ''; }));
|
|
3161
3161
|
}
|
|
3162
3162
|
const openState = Object.assign(Object.assign({ type: this.j.o.googleMaps.map.type, layer: this.j.o.googleMaps.map.layer, size: this.j.o.googleMaps.map.size }, state), initialState);
|
|
3163
|
-
const uiMap = new
|
|
3163
|
+
const uiMap = new _ui__WEBPACK_IMPORTED_MODULE_8__/* .UIMap */ .L6(dialog, openState, this.j.options);
|
|
3164
3164
|
uiMap.container.classList.add(dialog.getFullElName('map'));
|
|
3165
|
-
const search = new
|
|
3165
|
+
const search = new _ui_combo_box_combo_box__WEBPACK_IMPORTED_MODULE_7__/* .UIComboBox */ .A(jodit, {
|
|
3166
3166
|
icon: 'search',
|
|
3167
3167
|
placeholder: 'Search',
|
|
3168
3168
|
clearButton: true
|
|
@@ -3170,13 +3170,13 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3170
3170
|
search.container.classList.add(dialog.getFullElName('search'));
|
|
3171
3171
|
this.j.async
|
|
3172
3172
|
.promise((resolve) => {
|
|
3173
|
-
if ((0,
|
|
3173
|
+
if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_5__/* .isApiAvailable */ .uv)()) {
|
|
3174
3174
|
resolve(0);
|
|
3175
3175
|
return;
|
|
3176
3176
|
}
|
|
3177
3177
|
// TODO - Need check googleReady
|
|
3178
3178
|
const intervalChecker = () => {
|
|
3179
|
-
if ((0,
|
|
3179
|
+
if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_5__/* .isApiAvailable */ .uv)()) {
|
|
3180
3180
|
resolve(0);
|
|
3181
3181
|
}
|
|
3182
3182
|
else {
|
|
@@ -3184,7 +3184,7 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3184
3184
|
}
|
|
3185
3185
|
};
|
|
3186
3186
|
intervalChecker();
|
|
3187
|
-
(0,
|
|
3187
|
+
(0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_5__/* .googleReady */ .Lp)(resolve);
|
|
3188
3188
|
})
|
|
3189
3189
|
.then(() => {
|
|
3190
3190
|
uiMap.setStatus('ready');
|
|
@@ -3220,16 +3220,16 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3220
3220
|
.setHeader([
|
|
3221
3221
|
search,
|
|
3222
3222
|
' ',
|
|
3223
|
-
(0,
|
|
3223
|
+
(0,jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_13__/* .Button */ .$n)(jodit, 'eye').onAction(() => {
|
|
3224
3224
|
const image = this.jodit.createInside.element('img');
|
|
3225
|
-
image.src = (0,
|
|
3225
|
+
image.src = (0,_helpers_static_url__WEBPACK_IMPORTED_MODULE_6__/* .staticUrl */ .o)(uiMap);
|
|
3226
3226
|
image.dataset.googleMaps = btoa(uiMap.json());
|
|
3227
3227
|
const data = { value: image.outerHTML };
|
|
3228
3228
|
this.onAfterGetValueFromEditor(data);
|
|
3229
3229
|
jodit.execCommand('preview', null, data.value);
|
|
3230
3230
|
})
|
|
3231
3231
|
])
|
|
3232
|
-
.setContent((0,
|
|
3232
|
+
.setContent((0,jodit_esm_modules_widget__WEBPACK_IMPORTED_MODULE_15__/* .TabsWidget */ .Zg)(jodit, [
|
|
3233
3233
|
{
|
|
3234
3234
|
name: 'Map',
|
|
3235
3235
|
icon: 'map',
|
|
@@ -3237,17 +3237,17 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3237
3237
|
},
|
|
3238
3238
|
{
|
|
3239
3239
|
name: 'Settings',
|
|
3240
|
-
content: new
|
|
3240
|
+
content: new _ui__WEBPACK_IMPORTED_MODULE_8__/* .UIMapsPropsForm */ .mk(jodit, uiMap.state)
|
|
3241
3241
|
},
|
|
3242
3242
|
{
|
|
3243
3243
|
name: 'Controls',
|
|
3244
3244
|
icon: 'menu',
|
|
3245
|
-
content: new
|
|
3245
|
+
content: new _ui__WEBPACK_IMPORTED_MODULE_8__/* .UIMapsControlsForm */ .S0(jodit, uiMap.state)
|
|
3246
3246
|
}
|
|
3247
3247
|
]))
|
|
3248
3248
|
.setFooter([
|
|
3249
|
-
(0,
|
|
3250
|
-
(0,
|
|
3249
|
+
(0,jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_13__/* .Button */ .$n)(jodit, 'cancel', 'Cancel', 'default').onAction(() => dialog.close()),
|
|
3250
|
+
(0,jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_13__/* .Button */ .$n)(jodit, 'ok', target ? 'Save' : 'Insert', 'primary').onAction(() => {
|
|
3251
3251
|
uiMap.destruct();
|
|
3252
3252
|
search.destruct();
|
|
3253
3253
|
dialog.e.off('beforeClose', onCLose);
|
|
@@ -3260,7 +3260,7 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3260
3260
|
if (uiMap.state.elements.length &&
|
|
3261
3261
|
JSON.stringify(uiMap.state.elements) !==
|
|
3262
3262
|
JSON.stringify(openState.elements)) {
|
|
3263
|
-
if (!
|
|
3263
|
+
if (!jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_9__.IS_TEST && !confirm(this.i18n('Are you sure?'))) {
|
|
3264
3264
|
return false;
|
|
3265
3265
|
}
|
|
3266
3266
|
}
|
|
@@ -3273,7 +3273,7 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3273
3273
|
}
|
|
3274
3274
|
getDialog() {
|
|
3275
3275
|
if (!this.dialog) {
|
|
3276
|
-
const dialog = new
|
|
3276
|
+
const dialog = new jodit_esm_modules_dialog_dialog__WEBPACK_IMPORTED_MODULE_14__/* .Dialog */ .l({
|
|
3277
3277
|
language: this.j.o.language
|
|
3278
3278
|
});
|
|
3279
3279
|
dialog.container.classList.add(this.getFullElName(''));
|
|
@@ -3283,7 +3283,7 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3283
3283
|
}
|
|
3284
3284
|
insertMap(target, uiMap) {
|
|
3285
3285
|
const image = target !== null && target !== void 0 ? target : this.jodit.createInside.element('img');
|
|
3286
|
-
image.src = (0,
|
|
3286
|
+
image.src = (0,_helpers_static_url__WEBPACK_IMPORTED_MODULE_6__/* .staticUrl */ .o)(uiMap);
|
|
3287
3287
|
image.dataset.googleMaps = btoa(uiMap.json());
|
|
3288
3288
|
target || this.jodit.s.insertImage(image);
|
|
3289
3289
|
}
|
|
@@ -3294,7 +3294,7 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3294
3294
|
}
|
|
3295
3295
|
onAfterGetValueFromEditor(data, consumer) {
|
|
3296
3296
|
if (this.j.o.googleMaps.useStaticImage ||
|
|
3297
|
-
consumer ===
|
|
3297
|
+
consumer === jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_9__.SOURCE_CONSUMER) {
|
|
3298
3298
|
return;
|
|
3299
3299
|
}
|
|
3300
3300
|
data.value = data.value.replace(
|
|
@@ -3305,21 +3305,21 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3305
3305
|
json = JSON.parse(this.j.ow.atob(jsonB64));
|
|
3306
3306
|
}
|
|
3307
3307
|
catch (_a) { }
|
|
3308
|
-
return `${_1} id="${json.uid}" ${q}data-google-maps${q}=${q2}${jsonB64}${q2}${rest}${(0,
|
|
3308
|
+
return `${_1} id="${json.uid}" ${q}data-google-maps${q}=${q2}${jsonB64}${q2}${rest}${(0,_helpers_generate_js_script__WEBPACK_IMPORTED_MODULE_4__/* .generateJSScript */ .M)(this.j, json)}`;
|
|
3309
3309
|
});
|
|
3310
3310
|
}
|
|
3311
3311
|
}
|
|
3312
3312
|
googleMaps.requires = ['license', 'color-picker'];
|
|
3313
|
-
(0,
|
|
3314
|
-
(0,
|
|
3313
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
3314
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_10__.watch)('?:openOnDblClick')
|
|
3315
3315
|
], googleMaps.prototype, "onOpenOnDblClick", null);
|
|
3316
|
-
(0,
|
|
3317
|
-
(0,
|
|
3316
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
3317
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_10__.watch)(':beforeSetNativeEditorValue')
|
|
3318
3318
|
], googleMaps.prototype, "onBeforeSetNativeEditorValue", null);
|
|
3319
|
-
(0,
|
|
3320
|
-
(0,
|
|
3319
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
3320
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_10__.watch)(':afterGetValueFromEditor')
|
|
3321
3321
|
], googleMaps.prototype, "onAfterGetValueFromEditor", null);
|
|
3322
|
-
|
|
3322
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_16__/* .JoditPro */ .A.plugins.add('google-maps', googleMaps);
|
|
3323
3323
|
|
|
3324
3324
|
|
|
3325
3325
|
/***/ }),
|
|
@@ -3331,12 +3331,12 @@ jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_12__/* .JoditPro */ .A.plugins.add(
|
|
|
3331
3331
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3332
3332
|
/* harmony export */ O: function() { return /* binding */ initOrUpdateElementFromState; }
|
|
3333
3333
|
/* harmony export */ });
|
|
3334
|
-
/* harmony import */ var
|
|
3335
|
-
/* harmony import */ var
|
|
3336
|
-
/* harmony import */ var
|
|
3337
|
-
/* harmony import */ var
|
|
3338
|
-
/* harmony import */ var
|
|
3339
|
-
/* harmony import */ var
|
|
3334
|
+
/* harmony import */ var _on_change_geometries__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(62187);
|
|
3335
|
+
/* harmony import */ var _open_props_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(32332);
|
|
3336
|
+
/* harmony import */ var _update_state_and_gme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93636);
|
|
3337
|
+
/* harmony import */ var jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
|
|
3338
|
+
/* harmony import */ var jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12153);
|
|
3339
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65533);
|
|
3340
3340
|
/*!
|
|
3341
3341
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3342
3342
|
* See LICENSE.md in the project root for license information.
|
|
@@ -3353,7 +3353,7 @@ function initOrUpdateElementFromState(state, index) {
|
|
|
3353
3353
|
const elm = this.mapElements[index];
|
|
3354
3354
|
if (elm) {
|
|
3355
3355
|
if (elm.state.type === state.type) {
|
|
3356
|
-
return
|
|
3356
|
+
return _update_state_and_gme__WEBPACK_IMPORTED_MODULE_2__/* .updateStateAndGme */ .B.call(this, state, index);
|
|
3357
3357
|
}
|
|
3358
3358
|
elm.gme.setMap(null);
|
|
3359
3359
|
}
|
|
@@ -3373,14 +3373,14 @@ function initOrUpdateElementFromState(state, index) {
|
|
|
3373
3373
|
draggable: true,
|
|
3374
3374
|
label: state.showCaption ? state.title : '',
|
|
3375
3375
|
title: state.title,
|
|
3376
|
-
icon: state.icon ?
|
|
3376
|
+
icon: state.icon ? jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.get(state.icon) : undefined,
|
|
3377
3377
|
map: this.map
|
|
3378
3378
|
});
|
|
3379
3379
|
break;
|
|
3380
3380
|
case 'polyline':
|
|
3381
3381
|
case 'polygon':
|
|
3382
3382
|
{
|
|
3383
|
-
const coordinates = (0,
|
|
3383
|
+
const coordinates = (0,jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_5__/* .arrayToPath */ .A3)(state.coordinates);
|
|
3384
3384
|
gme = new google.maps[state.type === 'polygon' ? 'Polygon' : 'Polyline']({
|
|
3385
3385
|
path: coordinates,
|
|
3386
3386
|
strokeColor: state.strokeColor,
|
|
@@ -3409,21 +3409,21 @@ function initOrUpdateElementFromState(state, index) {
|
|
|
3409
3409
|
}
|
|
3410
3410
|
const newElm = {
|
|
3411
3411
|
type: state.type,
|
|
3412
|
-
uid: (0,
|
|
3412
|
+
uid: (0,jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_3__/* .uniqueUid */ .w9)(),
|
|
3413
3413
|
state,
|
|
3414
3414
|
gme
|
|
3415
3415
|
};
|
|
3416
3416
|
'dragend radius_changed center_changed'
|
|
3417
3417
|
.split(' ')
|
|
3418
|
-
.forEach((event) => gme.addListener(event, () =>
|
|
3418
|
+
.forEach((event) => gme.addListener(event, () => _on_change_geometries__WEBPACK_IMPORTED_MODULE_0__/* .onChangeGeometries */ .Q.call(this, newElm, index)));
|
|
3419
3419
|
if (newElm.type === 'polygon' || newElm.type === 'polyline') {
|
|
3420
3420
|
'insert_at set_at remove_at'
|
|
3421
3421
|
.split(' ')
|
|
3422
3422
|
.forEach((event) => newElm.gme
|
|
3423
3423
|
.getPath()
|
|
3424
|
-
.addListener(event, () =>
|
|
3424
|
+
.addListener(event, () => _on_change_geometries__WEBPACK_IMPORTED_MODULE_0__/* .onChangeGeometries */ .Q.call(this, newElm, index)));
|
|
3425
3425
|
}
|
|
3426
|
-
gme.addListener('click', () =>
|
|
3426
|
+
gme.addListener('click', () => _open_props_dialog__WEBPACK_IMPORTED_MODULE_1__/* .openPropsDialog */ .T.call(this, newElm, index));
|
|
3427
3427
|
this.mapElements[index] = newElm;
|
|
3428
3428
|
}
|
|
3429
3429
|
|