jodit-pro 4.6.9 → 4.6.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.nvmrc +1 -1
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +1382 -1370
- 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 +1227 -1160
- 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 +1227 -1160
- 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 +1227 -1160
- 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 +1565 -1610
- 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.12
|
|
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
|
}
|
|
@@ -127,7 +127,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
127
127
|
this.drawingManager = drawingManager;
|
|
128
128
|
google.maps.event.addListener(drawingManager, 'overlaycomplete', (event) => {
|
|
129
129
|
if (event.overlay) {
|
|
130
|
-
|
|
130
|
+
_modules__WEBPACK_IMPORTED_MODULE_3__/* .addNewInState */ .ST.call(this, event.overlay);
|
|
131
131
|
event.overlay.setMap(null);
|
|
132
132
|
}
|
|
133
133
|
});
|
|
@@ -153,7 +153,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
153
153
|
});
|
|
154
154
|
}
|
|
155
155
|
mapElements.length = elements.length;
|
|
156
|
-
elements.forEach((state, index) =>
|
|
156
|
+
elements.forEach((state, index) => _modules_init_or_update_element_from_state__WEBPACK_IMPORTED_MODULE_2__/* .initOrUpdateElementFromState */ .O.call(this, state, index));
|
|
157
157
|
}
|
|
158
158
|
onChangeCenter() {
|
|
159
159
|
const center = this.map.getCenter();
|
|
@@ -178,7 +178,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
178
178
|
}
|
|
179
179
|
onChangeBound() {
|
|
180
180
|
this.options.googleMaps.saveStateInStorage &&
|
|
181
|
-
this.j.storage.set(
|
|
181
|
+
this.j.storage.set(jodit_pro_plugins_google_maps_helpers_const__WEBPACK_IMPORTED_MODULE_10__/* .STORAGE_KEY */ .A, {
|
|
182
182
|
center: this.state.center,
|
|
183
183
|
size: this.state.size,
|
|
184
184
|
zoom: this.state.zoom,
|
|
@@ -190,7 +190,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
190
190
|
onChangeSize() {
|
|
191
191
|
const mapSize = this.getElm('map-size');
|
|
192
192
|
void 0;
|
|
193
|
-
(0,
|
|
193
|
+
(0,jodit_esm_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_7__/* .css */ .A)(mapSize, {
|
|
194
194
|
width: this.state.size[0],
|
|
195
195
|
height: this.state.size[1]
|
|
196
196
|
});
|
|
@@ -225,9 +225,9 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
225
225
|
constructor(jodit, state, options) {
|
|
226
226
|
super(jodit);
|
|
227
227
|
this.options = options;
|
|
228
|
-
this.toolbar = new
|
|
228
|
+
this.toolbar = new jodit_esm_modules_toolbar_collection_collection__WEBPACK_IMPORTED_MODULE_9__/* .ToolbarCollection */ .Q(this.jodit);
|
|
229
229
|
this.state = {
|
|
230
|
-
uid: 'jd' + (0,
|
|
230
|
+
uid: 'jd' + (0,jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_5__/* .uniqueUid */ .w9)() + new Date().toString().replace(/[^0-9]/g, ''),
|
|
231
231
|
layer: this.options.googleMaps.map.layer,
|
|
232
232
|
center: this.options.googleMaps.map.defaultCenter,
|
|
233
233
|
zoom: this.options.googleMaps.map.defaultZoom,
|
|
@@ -262,32 +262,32 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
262
262
|
palette.appendChild(this.toolbar.container);
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
|
-
(0,
|
|
266
|
-
(0,
|
|
265
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
266
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.hook)('ready')
|
|
267
267
|
], UIMap.prototype, "onReady", null);
|
|
268
|
-
(0,
|
|
269
|
-
(0,
|
|
268
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
269
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('?:changeCreateMode.gm')
|
|
270
270
|
], UIMap.prototype, "changeCreateMode", null);
|
|
271
|
-
(0,
|
|
272
|
-
(0,
|
|
271
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
272
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.mode')
|
|
273
273
|
], UIMap.prototype, "onChangeMode", null);
|
|
274
|
-
(0,
|
|
275
|
-
(0,
|
|
274
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
275
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.elements')
|
|
276
276
|
], UIMap.prototype, "onChangeElementsList", null);
|
|
277
|
-
(0,
|
|
278
|
-
(0,
|
|
279
|
-
(0,
|
|
280
|
-
(0,
|
|
277
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
278
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.center'),
|
|
279
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.wait)((ctx) => ctx.mapInitialized),
|
|
280
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.debounce)()
|
|
281
281
|
], UIMap.prototype, "onChangeCenter", null);
|
|
282
|
-
(0,
|
|
283
|
-
(0,
|
|
284
|
-
(0,
|
|
282
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
283
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.zoom'),
|
|
284
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.debounce)()
|
|
285
285
|
], UIMap.prototype, "onChangeZoom", null);
|
|
286
|
-
(0,
|
|
287
|
-
(0,
|
|
286
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
287
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.controls')
|
|
288
288
|
], UIMap.prototype, "onChangeControls", null);
|
|
289
|
-
(0,
|
|
290
|
-
(0,
|
|
289
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
290
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)([
|
|
291
291
|
'state.center',
|
|
292
292
|
'state.zoom',
|
|
293
293
|
'state.controls',
|
|
@@ -295,18 +295,18 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
295
295
|
'state.type',
|
|
296
296
|
'state.layer'
|
|
297
297
|
]),
|
|
298
|
-
(0,
|
|
299
|
-
(0,
|
|
298
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.wait)((ctx) => ctx.mapInitialized),
|
|
299
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.debounce)()
|
|
300
300
|
], UIMap.prototype, "onChangeBound", null);
|
|
301
|
-
(0,
|
|
302
|
-
(0,
|
|
303
|
-
(0,
|
|
301
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
302
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.size'),
|
|
303
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.debounce)()
|
|
304
304
|
], UIMap.prototype, "onChangeSize", null);
|
|
305
|
-
(0,
|
|
306
|
-
(0,
|
|
305
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
306
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.type')
|
|
307
307
|
], UIMap.prototype, "onChangeMapType", null);
|
|
308
|
-
(0,
|
|
309
|
-
(0,
|
|
308
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
309
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_4__.watch)('state.layer')
|
|
310
310
|
], UIMap.prototype, "onChangeLayer", null);
|
|
311
311
|
|
|
312
312
|
|
|
@@ -319,15 +319,15 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
319
319
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
320
320
|
/* harmony export */ A: function() { return /* binding */ ColorInput; }
|
|
321
321
|
/* harmony export */ });
|
|
322
|
-
/* harmony import */ var
|
|
323
|
-
/* harmony import */ var
|
|
324
|
-
/* harmony import */ var
|
|
325
|
-
/* harmony import */ var
|
|
326
|
-
/* harmony import */ var
|
|
327
|
-
/* harmony import */ var
|
|
328
|
-
/* harmony import */ var
|
|
329
|
-
/* harmony import */ var
|
|
330
|
-
/* harmony import */ var
|
|
322
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
323
|
+
/* harmony import */ var a_color_picker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(46146);
|
|
324
|
+
/* harmony import */ var a_color_picker__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(a_color_picker__WEBPACK_IMPORTED_MODULE_1__);
|
|
325
|
+
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82758);
|
|
326
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(65478);
|
|
327
|
+
/* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(21537);
|
|
328
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(38837);
|
|
329
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(67510);
|
|
330
|
+
/* harmony import */ var jodit_esm_modules__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(41409);
|
|
331
331
|
/*!
|
|
332
332
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
333
333
|
* See LICENSE.md in the project root for license information.
|
|
@@ -342,7 +342,7 @@ class UIMap extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIGroup */
|
|
|
342
342
|
|
|
343
343
|
|
|
344
344
|
|
|
345
|
-
let ColorInput = class ColorInput extends
|
|
345
|
+
let ColorInput = class ColorInput extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .UIInput */ .tS {
|
|
346
346
|
/** @override */
|
|
347
347
|
className() {
|
|
348
348
|
return 'ColorInput';
|
|
@@ -350,9 +350,9 @@ let ColorInput = class ColorInput extends jodit_esm_core_ui__WEBPACK_IMPORTED_MO
|
|
|
350
350
|
/** @override */
|
|
351
351
|
constructor(jodit, options) {
|
|
352
352
|
super(jodit, options);
|
|
353
|
-
const popup = new
|
|
353
|
+
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');
|
|
354
354
|
this.popup = popup;
|
|
355
|
-
this.trigger = (0,
|
|
355
|
+
this.trigger = (0,jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_6__/* .Button */ .$n)(this.j, 'ok');
|
|
356
356
|
const wrapper = this.getElm('wrapper');
|
|
357
357
|
void 0;
|
|
358
358
|
wrapper.appendChild(this.trigger.container);
|
|
@@ -364,13 +364,13 @@ let ColorInput = class ColorInput extends jodit_esm_core_ui__WEBPACK_IMPORTED_MO
|
|
|
364
364
|
});
|
|
365
365
|
popup.setMod('padding', false).setMod('max-height', false);
|
|
366
366
|
const pickerElement = this.j.create.div(this.getFullElName('picker'));
|
|
367
|
-
const picker =
|
|
367
|
+
const picker = a_color_picker__WEBPACK_IMPORTED_MODULE_1__.createPicker(pickerElement, {
|
|
368
368
|
paletteEditable: true,
|
|
369
369
|
showAlpha: true,
|
|
370
370
|
palette: 'PALETTE_MATERIAL_CHROME'
|
|
371
371
|
}).on('change', (picker, color) => {
|
|
372
372
|
if (!this.isFocused) {
|
|
373
|
-
this.value =
|
|
373
|
+
this.value = a_color_picker__WEBPACK_IMPORTED_MODULE_1__.parseColor(color || '', 'hex');
|
|
374
374
|
}
|
|
375
375
|
});
|
|
376
376
|
this.j.e.on(this, 'change', () => {
|
|
@@ -381,10 +381,10 @@ let ColorInput = class ColorInput extends jodit_esm_core_ui__WEBPACK_IMPORTED_MO
|
|
|
381
381
|
popup.setContent(pickerElement);
|
|
382
382
|
this.j.e.on(this.nativeInput, 'click', () => {
|
|
383
383
|
popup.parentElement = this;
|
|
384
|
-
if (this.jodit instanceof
|
|
384
|
+
if (this.jodit instanceof jodit_esm_modules__WEBPACK_IMPORTED_MODULE_7__.Dialog) {
|
|
385
385
|
popup.setZIndex(this.jodit.getZIndex() + 1);
|
|
386
386
|
}
|
|
387
|
-
popup.open(() => (0,
|
|
387
|
+
popup.open(() => (0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_4__.position)(this.container));
|
|
388
388
|
});
|
|
389
389
|
this.onChangeValue();
|
|
390
390
|
this.onChangeSelfValue();
|
|
@@ -399,19 +399,19 @@ let ColorInput = class ColorInput extends jodit_esm_core_ui__WEBPACK_IMPORTED_MO
|
|
|
399
399
|
}
|
|
400
400
|
onEscKeyDown(e) {
|
|
401
401
|
var _a;
|
|
402
|
-
if (e.key ===
|
|
402
|
+
if (e.key === jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_2__.KEY_ESC) {
|
|
403
403
|
(_a = this.popup) === null || _a === void 0 ? void 0 : _a.close();
|
|
404
404
|
}
|
|
405
405
|
}
|
|
406
406
|
};
|
|
407
|
-
(0,
|
|
408
|
-
(0,
|
|
407
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
408
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)(':change')
|
|
409
409
|
], ColorInput.prototype, "onChangeSelfValue", null);
|
|
410
|
-
(0,
|
|
411
|
-
(0,
|
|
410
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
411
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.watch)('nativeInput:keydown')
|
|
412
412
|
], ColorInput.prototype, "onEscKeyDown", null);
|
|
413
|
-
ColorInput = (0,
|
|
414
|
-
|
|
413
|
+
ColorInput = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
414
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_3__.component
|
|
415
415
|
], ColorInput);
|
|
416
416
|
|
|
417
417
|
|
|
@@ -425,10 +425,10 @@ ColorInput = (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
|
425
425
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
426
426
|
/* harmony export */ A: function() { return /* binding */ UIMarkerEditor; }
|
|
427
427
|
/* harmony export */ });
|
|
428
|
-
/* harmony import */ var
|
|
429
|
-
/* harmony import */ var
|
|
430
|
-
/* harmony import */ var
|
|
431
|
-
/* harmony import */ var
|
|
428
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
429
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
430
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_ui_editors_base__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(8367);
|
|
431
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_ui_wysiwyg_wysiwyg__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(12046);
|
|
432
432
|
/*!
|
|
433
433
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
434
434
|
* See LICENSE.md in the project root for license information.
|
|
@@ -438,19 +438,19 @@ ColorInput = (0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
|
438
438
|
|
|
439
439
|
|
|
440
440
|
|
|
441
|
-
let UIMarkerEditor = class UIMarkerEditor extends
|
|
441
|
+
let UIMarkerEditor = class UIMarkerEditor extends jodit_pro_plugins_google_maps_ui_editors_base__WEBPACK_IMPORTED_MODULE_2__/* .UIBaseEditor */ .R {
|
|
442
442
|
onReady() {
|
|
443
443
|
var _a;
|
|
444
444
|
super.onReady();
|
|
445
|
-
const editor = new
|
|
445
|
+
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));
|
|
446
446
|
this.append(editor, 'form');
|
|
447
447
|
}
|
|
448
448
|
};
|
|
449
|
-
(0,
|
|
450
|
-
(0,
|
|
449
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
450
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.hook)('ready')
|
|
451
451
|
], UIMarkerEditor.prototype, "onReady", null);
|
|
452
|
-
UIMarkerEditor = (0,
|
|
453
|
-
|
|
452
|
+
UIMarkerEditor = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
453
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
454
454
|
], UIMarkerEditor);
|
|
455
455
|
|
|
456
456
|
|
|
@@ -503,11 +503,11 @@ class UIBaseEditor extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIG
|
|
|
503
503
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
504
504
|
/* harmony export */ W: function() { return /* binding */ UIWysiwyg; }
|
|
505
505
|
/* harmony export */ });
|
|
506
|
-
/* harmony import */ var
|
|
507
|
-
/* harmony import */ var
|
|
508
|
-
/* harmony import */ var
|
|
509
|
-
/* harmony import */ var
|
|
510
|
-
/* harmony import */ var
|
|
506
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
507
|
+
/* harmony import */ var jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87325);
|
|
508
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(38837);
|
|
509
|
+
/* harmony import */ var jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48538);
|
|
510
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(34013);
|
|
511
511
|
/*!
|
|
512
512
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
513
513
|
* See LICENSE.md in the project root for license information.
|
|
@@ -519,7 +519,7 @@ class UIBaseEditor extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIG
|
|
|
519
519
|
|
|
520
520
|
|
|
521
521
|
|
|
522
|
-
let UIWysiwyg = class UIWysiwyg extends
|
|
522
|
+
let UIWysiwyg = class UIWysiwyg extends jodit_esm_core_ui_element__WEBPACK_IMPORTED_MODULE_3__/* .UIElement */ .D {
|
|
523
523
|
className() {
|
|
524
524
|
return 'UIWysiwyg';
|
|
525
525
|
}
|
|
@@ -527,7 +527,7 @@ let UIWysiwyg = class UIWysiwyg extends jodit_esm_core_ui_element__WEBPACK_IMPOR
|
|
|
527
527
|
super(jodit);
|
|
528
528
|
const wysiwyg = this.getElm('editor');
|
|
529
529
|
void 0;
|
|
530
|
-
const editor =
|
|
530
|
+
const editor = jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_4__/* .JoditPro */ .A.make(wysiwyg, {
|
|
531
531
|
buttons: ['bold', 'italic', 'image'],
|
|
532
532
|
height: 100,
|
|
533
533
|
minHeight: 100,
|
|
@@ -557,8 +557,8 @@ let UIWysiwyg = class UIWysiwyg extends jodit_esm_core_ui_element__WEBPACK_IMPOR
|
|
|
557
557
|
</div>`;
|
|
558
558
|
}
|
|
559
559
|
};
|
|
560
|
-
UIWysiwyg = (0,
|
|
561
|
-
|
|
560
|
+
UIWysiwyg = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
561
|
+
jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_1__/* .component */ .s
|
|
562
562
|
], UIWysiwyg);
|
|
563
563
|
|
|
564
564
|
|
|
@@ -619,11 +619,11 @@ UIWysiwyg = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .Cg)([
|
|
|
619
619
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
620
620
|
/* harmony export */ C: function() { return /* binding */ UIPolylineEditor; }
|
|
621
621
|
/* harmony export */ });
|
|
622
|
-
/* harmony import */ var
|
|
623
|
-
/* harmony import */ var
|
|
624
|
-
/* harmony import */ var
|
|
625
|
-
/* harmony import */ var
|
|
626
|
-
/* harmony import */ var
|
|
622
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
623
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
624
|
+
/* harmony import */ var jodit_esm_core_ui_form_inputs_input_input__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80256);
|
|
625
|
+
/* harmony import */ var jodit_pro_plugins_color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5693);
|
|
626
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_ui_editors_base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8367);
|
|
627
627
|
/*!
|
|
628
628
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
629
629
|
* See LICENSE.md in the project root for license information.
|
|
@@ -634,18 +634,18 @@ UIWysiwyg = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .Cg)([
|
|
|
634
634
|
|
|
635
635
|
|
|
636
636
|
|
|
637
|
-
let UIPolylineEditor = class UIPolylineEditor extends
|
|
637
|
+
let UIPolylineEditor = class UIPolylineEditor extends jodit_pro_plugins_google_maps_ui_editors_base__WEBPACK_IMPORTED_MODULE_4__/* .UIBaseEditor */ .R {
|
|
638
638
|
onReady() {
|
|
639
639
|
var _a, _b;
|
|
640
640
|
super.onReady();
|
|
641
641
|
this.append([
|
|
642
|
-
new
|
|
642
|
+
new jodit_esm_core_ui_form_inputs_input_input__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .t(this.j, {
|
|
643
643
|
label: 'Stroke weight',
|
|
644
644
|
value: (_a = this.state.strokeWeight) !== null && _a !== void 0 ? _a : 1,
|
|
645
645
|
type: 'number',
|
|
646
646
|
onChange: (value) => this.j.e.fire(this, 'change', 'strokeWeight', value)
|
|
647
647
|
}),
|
|
648
|
-
new
|
|
648
|
+
new jodit_pro_plugins_color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_3__/* .ColorInput */ .A(this.j, {
|
|
649
649
|
label: 'Stroke color',
|
|
650
650
|
value: (_b = this.state.strokeColor) !== null && _b !== void 0 ? _b : '#000',
|
|
651
651
|
onChange: (value) => this.j.e.fire(this, 'change', 'strokeColor', value)
|
|
@@ -653,11 +653,11 @@ let UIPolylineEditor = class UIPolylineEditor extends jodit_pro_plugins_google_m
|
|
|
653
653
|
], 'form');
|
|
654
654
|
}
|
|
655
655
|
};
|
|
656
|
-
(0,
|
|
657
|
-
(0,
|
|
656
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
657
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.hook)('ready')
|
|
658
658
|
], UIPolylineEditor.prototype, "onReady", null);
|
|
659
|
-
UIPolylineEditor = (0,
|
|
660
|
-
|
|
659
|
+
UIPolylineEditor = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
660
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
661
661
|
], UIPolylineEditor);
|
|
662
662
|
|
|
663
663
|
|
|
@@ -678,9 +678,9 @@ module.exports = "<svg width=\"72\" height=\"86\" viewBox=\"0 0 72 86\" fill=\"n
|
|
|
678
678
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
679
679
|
/* harmony export */ T: function() { return /* binding */ openPropsDialog; }
|
|
680
680
|
/* harmony export */ });
|
|
681
|
-
/* harmony import */ var
|
|
682
|
-
/* harmony import */ var
|
|
683
|
-
/* harmony import */ var
|
|
681
|
+
/* harmony import */ var _remove_element__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75197);
|
|
682
|
+
/* harmony import */ var _update_state_and_gme__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(93636);
|
|
683
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_ui_editors__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(12936);
|
|
684
684
|
/*!
|
|
685
685
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
686
686
|
* See LICENSE.md in the project root for license information.
|
|
@@ -706,14 +706,14 @@ function openPropsDialog(newElm, index) {
|
|
|
706
706
|
this.state.mode = 'hand';
|
|
707
707
|
switch (newElm.type) {
|
|
708
708
|
case 'polyline':
|
|
709
|
-
editor = new
|
|
709
|
+
editor = new jodit_pro_plugins_google_maps_ui_editors__WEBPACK_IMPORTED_MODULE_2__/* .UIPolylineEditor */ .C1(this.jodit, newElm.state, this.options);
|
|
710
710
|
break;
|
|
711
711
|
case 'marker':
|
|
712
|
-
editor = new
|
|
712
|
+
editor = new jodit_pro_plugins_google_maps_ui_editors__WEBPACK_IMPORTED_MODULE_2__/* .UIMarkerEditor */ .Ax(this.jodit, newElm.state, this.options);
|
|
713
713
|
break;
|
|
714
714
|
case 'circle':
|
|
715
715
|
case 'polygon':
|
|
716
|
-
editor = new
|
|
716
|
+
editor = new jodit_pro_plugins_google_maps_ui_editors__WEBPACK_IMPORTED_MODULE_2__/* .UIPolygonEditor */ .E6(this.jodit, newElm.state, this.options);
|
|
717
717
|
break;
|
|
718
718
|
}
|
|
719
719
|
if (!editor) {
|
|
@@ -722,10 +722,10 @@ function openPropsDialog(newElm, index) {
|
|
|
722
722
|
this.append(editor);
|
|
723
723
|
this.j.e
|
|
724
724
|
.on(editor, 'bin', () => {
|
|
725
|
-
|
|
725
|
+
_remove_element__WEBPACK_IMPORTED_MODULE_0__/* .removeElement */ .N.call(this, newElm);
|
|
726
726
|
})
|
|
727
727
|
.on(editor, 'change', (key, value) => {
|
|
728
|
-
|
|
728
|
+
_update_state_and_gme__WEBPACK_IMPORTED_MODULE_1__/* .updateStateAndGme */ .B.call(this, {
|
|
729
729
|
...newElm.state,
|
|
730
730
|
[key]: value
|
|
731
731
|
}, index);
|
|
@@ -758,8 +758,8 @@ function openPropsDialog(newElm, index) {
|
|
|
758
758
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
759
759
|
/* harmony export */ H: function() { return /* binding */ generateStaticElements; }
|
|
760
760
|
/* harmony export */ });
|
|
761
|
-
/* harmony import */ var
|
|
762
|
-
/* harmony import */ var
|
|
761
|
+
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(65533);
|
|
762
|
+
/* harmony import */ var jodit_esm_core_helpers_html_strip_tags__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91003);
|
|
763
763
|
/*!
|
|
764
764
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
765
765
|
* See LICENSE.md in the project root for license information.
|
|
@@ -773,11 +773,11 @@ function generateStaticElements(uiMap) {
|
|
|
773
773
|
var _a, _b, _c, _d, _e, _f;
|
|
774
774
|
switch (elm.type) {
|
|
775
775
|
case 'polygon':
|
|
776
|
-
return `&path=fillcolor:${(0,
|
|
776
|
+
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))}`;
|
|
777
777
|
case 'polyline':
|
|
778
|
-
return `&path=weight:${(_d = elm.strokeWeight) !== null && _d !== void 0 ? _d : 1}%7Ccolor:${(0,
|
|
778
|
+
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))}`;
|
|
779
779
|
case 'marker':
|
|
780
|
-
return `&markers=color:blue%7Clabel:${encodeURIComponent((0,
|
|
780
|
+
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 : '')
|
|
781
781
|
.charAt(0)
|
|
782
782
|
.toUpperCase())}%7C${elm.coordinates}`;
|
|
783
783
|
}
|
|
@@ -796,10 +796,10 @@ function generateStaticElements(uiMap) {
|
|
|
796
796
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
797
797
|
/* harmony export */ m: function() { return /* binding */ UIMapsPropsForm; }
|
|
798
798
|
/* harmony export */ });
|
|
799
|
-
/* harmony import */ var
|
|
800
|
-
/* harmony import */ var
|
|
801
|
-
/* harmony import */ var
|
|
802
|
-
/* harmony import */ var
|
|
799
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
800
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
801
|
+
/* harmony import */ var jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(76078);
|
|
802
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67510);
|
|
803
803
|
/*!
|
|
804
804
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
805
805
|
* See LICENSE.md in the project root for license information.
|
|
@@ -810,7 +810,7 @@ function generateStaticElements(uiMap) {
|
|
|
810
810
|
|
|
811
811
|
|
|
812
812
|
|
|
813
|
-
let UIMapsPropsForm = class UIMapsPropsForm extends
|
|
813
|
+
let UIMapsPropsForm = class UIMapsPropsForm extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UIForm */ .XV {
|
|
814
814
|
className() {
|
|
815
815
|
return 'UIMapsPropsForm';
|
|
816
816
|
}
|
|
@@ -821,33 +821,33 @@ let UIMapsPropsForm = class UIMapsPropsForm extends jodit_esm_core_ui__WEBPACK_I
|
|
|
821
821
|
const [w, h] = state.size;
|
|
822
822
|
const [x, y] = state.center;
|
|
823
823
|
this.append([
|
|
824
|
-
new
|
|
824
|
+
new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UIInput */ .tS(jodit, {
|
|
825
825
|
label: 'Width',
|
|
826
826
|
name: 'width',
|
|
827
827
|
value: w,
|
|
828
828
|
type: 'number',
|
|
829
829
|
onChange: this.onChangeSize
|
|
830
830
|
}),
|
|
831
|
-
new
|
|
831
|
+
new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UIInput */ .tS(jodit, {
|
|
832
832
|
label: 'Height',
|
|
833
833
|
name: 'height',
|
|
834
834
|
value: h,
|
|
835
835
|
type: 'number',
|
|
836
836
|
onChange: this.onChangeSize
|
|
837
837
|
}),
|
|
838
|
-
new
|
|
838
|
+
new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UIInput */ .tS(jodit, {
|
|
839
839
|
label: 'Latitude',
|
|
840
840
|
name: 'lat',
|
|
841
841
|
value: x,
|
|
842
842
|
onChange: this.onChangeCenter
|
|
843
843
|
}),
|
|
844
|
-
new
|
|
844
|
+
new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UIInput */ .tS(jodit, {
|
|
845
845
|
label: 'Longitude',
|
|
846
846
|
name: 'lng',
|
|
847
847
|
value: y,
|
|
848
848
|
onChange: this.onChangeCenter
|
|
849
849
|
}),
|
|
850
|
-
new
|
|
850
|
+
new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UISelect */ .$6(jodit, {
|
|
851
851
|
label: 'Map type',
|
|
852
852
|
value: state.type,
|
|
853
853
|
name: 'mapType',
|
|
@@ -861,7 +861,7 @@ let UIMapsPropsForm = class UIMapsPropsForm extends jodit_esm_core_ui__WEBPACK_I
|
|
|
861
861
|
state.type = value;
|
|
862
862
|
}
|
|
863
863
|
}),
|
|
864
|
-
new
|
|
864
|
+
new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UISelect */ .$6(jodit, {
|
|
865
865
|
label: 'Layer',
|
|
866
866
|
value: (_a = state.layer) !== null && _a !== void 0 ? _a : 'default',
|
|
867
867
|
name: 'layer',
|
|
@@ -878,14 +878,14 @@ let UIMapsPropsForm = class UIMapsPropsForm extends jodit_esm_core_ui__WEBPACK_I
|
|
|
878
878
|
]);
|
|
879
879
|
}
|
|
880
880
|
onChangeSize() {
|
|
881
|
-
const { width, height } = (0,
|
|
881
|
+
const { width, height } = (0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__/* .refs */ .DY)(this.container);
|
|
882
882
|
this.state.size = [
|
|
883
883
|
parseInt(width === null || width === void 0 ? void 0 : width.value, 10) || 0,
|
|
884
884
|
parseInt(height === null || height === void 0 ? void 0 : height.value, 10) || 0
|
|
885
885
|
];
|
|
886
886
|
}
|
|
887
887
|
onExternalChangeSize() {
|
|
888
|
-
const { width, height } = (0,
|
|
888
|
+
const { width, height } = (0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__/* .refs */ .DY)(this.container);
|
|
889
889
|
const [w, h] = this.state.size;
|
|
890
890
|
if (w.toString() !== width.value) {
|
|
891
891
|
width.value = w.toString();
|
|
@@ -895,14 +895,14 @@ let UIMapsPropsForm = class UIMapsPropsForm extends jodit_esm_core_ui__WEBPACK_I
|
|
|
895
895
|
}
|
|
896
896
|
}
|
|
897
897
|
onChangeCenter() {
|
|
898
|
-
const { lat, lng } = (0,
|
|
898
|
+
const { lat, lng } = (0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__/* .refs */ .DY)(this.container);
|
|
899
899
|
this.state.center = [
|
|
900
900
|
parseFloat(lat === null || lat === void 0 ? void 0 : lat.value) || 0,
|
|
901
901
|
parseFloat(lng === null || lng === void 0 ? void 0 : lng.value) || 0
|
|
902
902
|
];
|
|
903
903
|
}
|
|
904
904
|
onExternalChangeCenter() {
|
|
905
|
-
const { lat, lng } = (0,
|
|
905
|
+
const { lat, lng } = (0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__/* .refs */ .DY)(this.container);
|
|
906
906
|
const [x, y] = this.state.center;
|
|
907
907
|
if (x.toString() !== lat.value) {
|
|
908
908
|
lat.value = x.toString();
|
|
@@ -912,38 +912,38 @@ let UIMapsPropsForm = class UIMapsPropsForm extends jodit_esm_core_ui__WEBPACK_I
|
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
914
|
onExternalChangeType() {
|
|
915
|
-
const { mapType } = (0,
|
|
915
|
+
const { mapType } = (0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__/* .refs */ .DY)(this.container);
|
|
916
916
|
if (this.state.type !== mapType.value) {
|
|
917
917
|
mapType.value = this.state.type;
|
|
918
918
|
}
|
|
919
919
|
}
|
|
920
920
|
onExternalChangeLayer() {
|
|
921
|
-
const { layer } = (0,
|
|
921
|
+
const { layer } = (0,jodit_esm_core_helpers_utils_selector__WEBPACK_IMPORTED_MODULE_2__/* .refs */ .DY)(this.container);
|
|
922
922
|
if (this.state.layer !== layer.value) {
|
|
923
923
|
layer.value = this.state.layer;
|
|
924
924
|
}
|
|
925
925
|
}
|
|
926
926
|
};
|
|
927
|
-
(0,
|
|
928
|
-
|
|
927
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
928
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
929
929
|
], UIMapsPropsForm.prototype, "onChangeSize", null);
|
|
930
|
-
(0,
|
|
931
|
-
(0,
|
|
930
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
931
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('state.size')
|
|
932
932
|
], UIMapsPropsForm.prototype, "onExternalChangeSize", null);
|
|
933
|
-
(0,
|
|
934
|
-
|
|
933
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
934
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
935
935
|
], UIMapsPropsForm.prototype, "onChangeCenter", null);
|
|
936
|
-
(0,
|
|
937
|
-
(0,
|
|
936
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
937
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(['state.center'])
|
|
938
938
|
], UIMapsPropsForm.prototype, "onExternalChangeCenter", null);
|
|
939
|
-
(0,
|
|
940
|
-
(0,
|
|
939
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
940
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(['state.type'])
|
|
941
941
|
], UIMapsPropsForm.prototype, "onExternalChangeType", null);
|
|
942
|
-
(0,
|
|
943
|
-
(0,
|
|
942
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
943
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(['state.layer'])
|
|
944
944
|
], UIMapsPropsForm.prototype, "onExternalChangeLayer", null);
|
|
945
|
-
UIMapsPropsForm = (0,
|
|
946
|
-
|
|
945
|
+
UIMapsPropsForm = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
946
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
947
947
|
], UIMapsPropsForm);
|
|
948
948
|
|
|
949
949
|
|
|
@@ -964,9 +964,9 @@ module.exports = "<svg viewBox=\"0 0 77 86\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
964
964
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
965
965
|
/* harmony export */ A: function() { return /* binding */ UIComboBox; }
|
|
966
966
|
/* harmony export */ });
|
|
967
|
-
/* harmony import */ var
|
|
968
|
-
/* harmony import */ var
|
|
969
|
-
/* harmony import */ var
|
|
967
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
968
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
969
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67510);
|
|
970
970
|
/*!
|
|
971
971
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
972
972
|
* See LICENSE.md in the project root for license information.
|
|
@@ -976,7 +976,7 @@ module.exports = "<svg viewBox=\"0 0 77 86\" fill=\"none\" xmlns=\"http://www.w3
|
|
|
976
976
|
|
|
977
977
|
|
|
978
978
|
|
|
979
|
-
class UIComboBox extends
|
|
979
|
+
class UIComboBox extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UIInput */ .tS {
|
|
980
980
|
className() {
|
|
981
981
|
return 'UIComboBox';
|
|
982
982
|
}
|
|
@@ -1009,12 +1009,12 @@ class UIComboBox extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_1__/* .UIInp
|
|
|
1009
1009
|
// } catch (e) {}
|
|
1010
1010
|
}
|
|
1011
1011
|
}
|
|
1012
|
-
(0,
|
|
1013
|
-
(0,
|
|
1012
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
1013
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.hook)('ready')
|
|
1014
1014
|
], UIComboBox.prototype, "onReady", null);
|
|
1015
|
-
(0,
|
|
1016
|
-
(0,
|
|
1017
|
-
(0,
|
|
1015
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
1016
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('nativeInput:input'),
|
|
1017
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.debounce)()
|
|
1018
1018
|
], UIComboBox.prototype, "onInput", null);
|
|
1019
1019
|
|
|
1020
1020
|
|
|
@@ -1024,8 +1024,8 @@ class UIComboBox extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_1__/* .UIInp
|
|
|
1024
1024
|
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
1025
1025
|
|
|
1026
1026
|
"use strict";
|
|
1027
|
-
/* harmony import */ var
|
|
1028
|
-
/* harmony import */ var
|
|
1027
|
+
/* harmony import */ var _helpers_const__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(45751);
|
|
1028
|
+
/* harmony import */ var jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6441);
|
|
1029
1029
|
/*!
|
|
1030
1030
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1031
1031
|
* See LICENSE.md in the project root for license information.
|
|
@@ -1033,7 +1033,7 @@ class UIComboBox extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_1__/* .UIInp
|
|
|
1033
1033
|
*/
|
|
1034
1034
|
|
|
1035
1035
|
|
|
1036
|
-
|
|
1036
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.googleMaps = {
|
|
1037
1037
|
saveStateInStorage: true,
|
|
1038
1038
|
useStaticImage: false,
|
|
1039
1039
|
apiUrl: 'https://maps.googleapis.com/maps/api/js?key=${j.o.googleMaps.API_KEY}&libraries=geometry,places,drawing&language=${j.o.language}&callback=JoditGoogleReadyHandler',
|
|
@@ -1074,10 +1074,10 @@ jodit_esm_config__WEBPACK_IMPORTED_MODULE_0__/* .Config */ .T.prototype.googleMa
|
|
|
1074
1074
|
}
|
|
1075
1075
|
}
|
|
1076
1076
|
};
|
|
1077
|
-
|
|
1077
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.googleMaps = {
|
|
1078
1078
|
tooltip: 'Google Maps',
|
|
1079
1079
|
icon: 'map',
|
|
1080
|
-
command:
|
|
1080
|
+
command: _helpers_const__WEBPACK_IMPORTED_MODULE_0__/* .COMMAND_OPEN_DIALOG */ .C
|
|
1081
1081
|
};
|
|
1082
1082
|
const gmButton = (name) => ({
|
|
1083
1083
|
icon: `edit-${name}`,
|
|
@@ -1086,7 +1086,7 @@ const gmButton = (name) => ({
|
|
|
1086
1086
|
editor.e.fire('changeCreateMode.gm', name);
|
|
1087
1087
|
}
|
|
1088
1088
|
});
|
|
1089
|
-
|
|
1089
|
+
jodit_esm_config__WEBPACK_IMPORTED_MODULE_1__/* .Config */ .T.prototype.controls.gm = {
|
|
1090
1090
|
hand: gmButton('hand'),
|
|
1091
1091
|
marker: gmButton('marker'),
|
|
1092
1092
|
polyline: gmButton('polyline'),
|
|
@@ -2473,9 +2473,9 @@ module.exports = "<svg viewBox=\"0 0 76 76\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
2473
2473
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2474
2474
|
/* harmony export */ S: function() { return /* binding */ UIMapsControlsForm; }
|
|
2475
2475
|
/* harmony export */ });
|
|
2476
|
-
/* harmony import */ var
|
|
2477
|
-
/* harmony import */ var
|
|
2478
|
-
/* harmony import */ var
|
|
2476
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
2477
|
+
/* harmony import */ var jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87325);
|
|
2478
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67510);
|
|
2479
2479
|
/*!
|
|
2480
2480
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2481
2481
|
* See LICENSE.md in the project root for license information.
|
|
@@ -2485,7 +2485,7 @@ module.exports = "<svg viewBox=\"0 0 76 76\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
2485
2485
|
|
|
2486
2486
|
|
|
2487
2487
|
|
|
2488
|
-
let UIMapsControlsForm = class UIMapsControlsForm extends
|
|
2488
|
+
let UIMapsControlsForm = class UIMapsControlsForm extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UIForm */ .XV {
|
|
2489
2489
|
className() {
|
|
2490
2490
|
return 'UIMapsControlsForm';
|
|
2491
2491
|
}
|
|
@@ -2501,7 +2501,7 @@ let UIMapsControlsForm = class UIMapsControlsForm extends jodit_esm_core_ui__WEB
|
|
|
2501
2501
|
fullscreenControl: 'Fullscreen control'
|
|
2502
2502
|
};
|
|
2503
2503
|
const controls = Object.keys(controlsNames);
|
|
2504
|
-
this.append(controls.map((key) => new
|
|
2504
|
+
this.append(controls.map((key) => new jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2__/* .UICheckbox */ .cY(jodit, {
|
|
2505
2505
|
label: controlsNames[key],
|
|
2506
2506
|
name: key,
|
|
2507
2507
|
checked: this.state.controls[key],
|
|
@@ -2517,8 +2517,8 @@ let UIMapsControlsForm = class UIMapsControlsForm extends jodit_esm_core_ui__WEB
|
|
|
2517
2517
|
};
|
|
2518
2518
|
}
|
|
2519
2519
|
};
|
|
2520
|
-
UIMapsControlsForm = (0,
|
|
2521
|
-
|
|
2520
|
+
UIMapsControlsForm = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2521
|
+
jodit_esm_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_1__/* .component */ .s
|
|
2522
2522
|
], UIMapsControlsForm);
|
|
2523
2523
|
|
|
2524
2524
|
|
|
@@ -2532,10 +2532,10 @@ UIMapsControlsForm = (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__decorate */ .Cg)
|
|
|
2532
2532
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2533
2533
|
/* harmony export */ Q: function() { return /* binding */ UIRange; }
|
|
2534
2534
|
/* harmony export */ });
|
|
2535
|
-
/* harmony import */ var
|
|
2536
|
-
/* harmony import */ var
|
|
2537
|
-
/* harmony import */ var
|
|
2538
|
-
/* harmony import */ var
|
|
2535
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
2536
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
2537
|
+
/* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(21537);
|
|
2538
|
+
/* harmony import */ var jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67510);
|
|
2539
2539
|
/*!
|
|
2540
2540
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2541
2541
|
* See LICENSE.md in the project root for license information.
|
|
@@ -2546,7 +2546,7 @@ UIMapsControlsForm = (0,tslib__WEBPACK_IMPORTED_MODULE_1__/* .__decorate */ .Cg)
|
|
|
2546
2546
|
|
|
2547
2547
|
|
|
2548
2548
|
|
|
2549
|
-
let UIRange = class UIRange extends
|
|
2549
|
+
let UIRange = class UIRange extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UIInput */ .tS {
|
|
2550
2550
|
/** @override */
|
|
2551
2551
|
className() {
|
|
2552
2552
|
return 'UIRange';
|
|
@@ -2557,7 +2557,7 @@ let UIRange = class UIRange extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2
|
|
|
2557
2557
|
type: 'hidden'
|
|
2558
2558
|
});
|
|
2559
2559
|
this.state = {
|
|
2560
|
-
...
|
|
2560
|
+
...jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_3__/* .UIInput */ .tS.defaultState,
|
|
2561
2561
|
min: 0,
|
|
2562
2562
|
max: 100
|
|
2563
2563
|
};
|
|
@@ -2605,7 +2605,7 @@ let UIRange = class UIRange extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2
|
|
|
2605
2605
|
onChangeSelfValue() {
|
|
2606
2606
|
const handle = this.getElm('handle'), value = parseFloat(this.value) || 0;
|
|
2607
2607
|
void 0;
|
|
2608
|
-
(0,
|
|
2608
|
+
(0,jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_2__.css)(handle, {
|
|
2609
2609
|
left: ((value - this.state.min) / (this.state.max - this.state.min)) *
|
|
2610
2610
|
100 +
|
|
2611
2611
|
'%'
|
|
@@ -2619,20 +2619,20 @@ let UIRange = class UIRange extends jodit_esm_core_ui__WEBPACK_IMPORTED_MODULE_2
|
|
|
2619
2619
|
return super.destruct();
|
|
2620
2620
|
}
|
|
2621
2621
|
};
|
|
2622
|
-
(0,
|
|
2623
|
-
(0,
|
|
2622
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2623
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(['handle:mousedown', 'handle:touchstart'])
|
|
2624
2624
|
], UIRange.prototype, "onDragStart", null);
|
|
2625
|
-
(0,
|
|
2626
|
-
|
|
2625
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2626
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
2627
2627
|
], UIRange.prototype, "onDrag", null);
|
|
2628
|
-
(0,
|
|
2629
|
-
(0,
|
|
2628
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2629
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(['j.ow:mouseup', 'j.ow:touchend'])
|
|
2630
2630
|
], UIRange.prototype, "onDragEnd", null);
|
|
2631
|
-
(0,
|
|
2632
|
-
(0,
|
|
2631
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2632
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':change')
|
|
2633
2633
|
], UIRange.prototype, "onChangeSelfValue", null);
|
|
2634
|
-
UIRange = (0,
|
|
2635
|
-
|
|
2634
|
+
UIRange = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2635
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
2636
2636
|
], UIRange);
|
|
2637
2637
|
|
|
2638
2638
|
|
|
@@ -2646,8 +2646,8 @@ UIRange = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .Cg)([
|
|
|
2646
2646
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2647
2647
|
/* harmony export */ Q: function() { return /* binding */ onChangeGeometries; }
|
|
2648
2648
|
/* harmony export */ });
|
|
2649
|
-
/* harmony import */ var
|
|
2650
|
-
/* harmony import */ var
|
|
2649
|
+
/* harmony import */ var _update_state_and_gme__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93636);
|
|
2650
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65533);
|
|
2651
2651
|
/*!
|
|
2652
2652
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2653
2653
|
* See LICENSE.md in the project root for license information.
|
|
@@ -2660,11 +2660,11 @@ function onChangeGeometries(newElm, index) {
|
|
|
2660
2660
|
switch (newElm.type) {
|
|
2661
2661
|
case 'polyline':
|
|
2662
2662
|
case 'polygon': {
|
|
2663
|
-
const coordinates = (0,
|
|
2663
|
+
const coordinates = (0,jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_1__/* .pathToArray */ .AH)(newElm.gme.getPath()), newState = {
|
|
2664
2664
|
...newElm.state,
|
|
2665
2665
|
coordinates
|
|
2666
2666
|
};
|
|
2667
|
-
|
|
2667
|
+
_update_state_and_gme__WEBPACK_IMPORTED_MODULE_0__/* .updateStateAndGme */ .B.call(this, newState, index, true);
|
|
2668
2668
|
break;
|
|
2669
2669
|
}
|
|
2670
2670
|
case 'marker': {
|
|
@@ -2672,7 +2672,7 @@ function onChangeGeometries(newElm, index) {
|
|
|
2672
2672
|
...newElm.state,
|
|
2673
2673
|
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]
|
|
2674
2674
|
};
|
|
2675
|
-
|
|
2675
|
+
_update_state_and_gme__WEBPACK_IMPORTED_MODULE_0__/* .updateStateAndGme */ .B.call(this, newState, index, true);
|
|
2676
2676
|
break;
|
|
2677
2677
|
}
|
|
2678
2678
|
case 'circle': {
|
|
@@ -2681,7 +2681,7 @@ function onChangeGeometries(newElm, index) {
|
|
|
2681
2681
|
radius: newElm.gme.getRadius(),
|
|
2682
2682
|
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]
|
|
2683
2683
|
};
|
|
2684
|
-
|
|
2684
|
+
_update_state_and_gme__WEBPACK_IMPORTED_MODULE_0__/* .updateStateAndGme */ .B.call(this, newState, index, true);
|
|
2685
2685
|
break;
|
|
2686
2686
|
}
|
|
2687
2687
|
}
|
|
@@ -2765,11 +2765,11 @@ function isApiAvailable() {
|
|
|
2765
2765
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
2766
2766
|
/* harmony export */ E: function() { return /* binding */ UIPolygonEditor; }
|
|
2767
2767
|
/* harmony export */ });
|
|
2768
|
-
/* harmony import */ var
|
|
2769
|
-
/* harmony import */ var
|
|
2770
|
-
/* harmony import */ var
|
|
2771
|
-
/* harmony import */ var
|
|
2772
|
-
/* harmony import */ var
|
|
2768
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
2769
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(65478);
|
|
2770
|
+
/* harmony import */ var jodit_pro_core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(57066);
|
|
2771
|
+
/* harmony import */ var jodit_pro_plugins_color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(5693);
|
|
2772
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_ui_editors_polyline_polyline__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(15833);
|
|
2773
2773
|
/*!
|
|
2774
2774
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
2775
2775
|
* See LICENSE.md in the project root for license information.
|
|
@@ -2780,16 +2780,16 @@ function isApiAvailable() {
|
|
|
2780
2780
|
|
|
2781
2781
|
|
|
2782
2782
|
|
|
2783
|
-
let UIPolygonEditor = class UIPolygonEditor extends
|
|
2783
|
+
let UIPolygonEditor = class UIPolygonEditor extends jodit_pro_plugins_google_maps_ui_editors_polyline_polyline__WEBPACK_IMPORTED_MODULE_4__/* .UIPolylineEditor */ .C {
|
|
2784
2784
|
onReady() {
|
|
2785
2785
|
var _a, _b;
|
|
2786
2786
|
this.append([
|
|
2787
|
-
new
|
|
2787
|
+
new jodit_pro_plugins_color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_3__/* .ColorInput */ .A(this.j, {
|
|
2788
2788
|
label: 'Fill color',
|
|
2789
2789
|
value: (_a = this.state.fillColor) !== null && _a !== void 0 ? _a : '#000',
|
|
2790
2790
|
onChange: (value) => this.j.e.fire(this, 'change', 'fillColor', value)
|
|
2791
2791
|
}).setMod('trigger', false),
|
|
2792
|
-
new
|
|
2792
|
+
new jodit_pro_core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_2__/* .UIRange */ .Q(this.j, {
|
|
2793
2793
|
label: 'Opacity',
|
|
2794
2794
|
min: 0,
|
|
2795
2795
|
max: 1,
|
|
@@ -2801,11 +2801,11 @@ let UIPolygonEditor = class UIPolygonEditor extends jodit_pro_plugins_google_map
|
|
|
2801
2801
|
], 'form');
|
|
2802
2802
|
}
|
|
2803
2803
|
};
|
|
2804
|
-
(0,
|
|
2805
|
-
(0,
|
|
2804
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2805
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.hook)('ready')
|
|
2806
2806
|
], UIPolygonEditor.prototype, "onReady", null);
|
|
2807
|
-
UIPolygonEditor = (0,
|
|
2808
|
-
|
|
2807
|
+
UIPolygonEditor = (0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
2808
|
+
jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
2809
2809
|
], UIPolygonEditor);
|
|
2810
2810
|
|
|
2811
2811
|
|
|
@@ -3138,23 +3138,23 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3138
3138
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3139
3139
|
/* harmony export */ googleMaps: function() { return /* binding */ googleMaps; }
|
|
3140
3140
|
/* harmony export */ });
|
|
3141
|
-
/* harmony import */ var
|
|
3142
|
-
/* harmony import */ var
|
|
3143
|
-
/* harmony import */ var
|
|
3144
|
-
/* harmony import */ var
|
|
3145
|
-
/* harmony import */ var
|
|
3146
|
-
/* harmony import */ var
|
|
3147
|
-
/* harmony import */ var
|
|
3148
|
-
/* harmony import */ var
|
|
3149
|
-
/* harmony import */ var
|
|
3150
|
-
/* harmony import */ var
|
|
3151
|
-
/* harmony import */ var
|
|
3152
|
-
/* harmony import */ var
|
|
3153
|
-
/* harmony import */ var
|
|
3154
|
-
/* harmony import */ var
|
|
3155
|
-
/* harmony import */ var
|
|
3156
|
-
/* harmony import */ var
|
|
3157
|
-
/* harmony import */ var
|
|
3141
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(31635);
|
|
3142
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(44434);
|
|
3143
|
+
/* harmony import */ var _assets__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98742);
|
|
3144
|
+
/* harmony import */ var _helpers_const__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45751);
|
|
3145
|
+
/* harmony import */ var _helpers_generate_js_script__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(71593);
|
|
3146
|
+
/* harmony import */ var _helpers_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65533);
|
|
3147
|
+
/* harmony import */ var _helpers_static_url__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(98652);
|
|
3148
|
+
/* harmony import */ var _ui_combo_box_combo_box__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(43502);
|
|
3149
|
+
/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(50133);
|
|
3150
|
+
/* harmony import */ var jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(82758);
|
|
3151
|
+
/* harmony import */ var jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(65478);
|
|
3152
|
+
/* harmony import */ var jodit_esm_core_helpers__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(21537);
|
|
3153
|
+
/* harmony import */ var jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(50911);
|
|
3154
|
+
/* harmony import */ var jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(62843);
|
|
3155
|
+
/* harmony import */ var jodit_esm_modules_dialog_dialog__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(78584);
|
|
3156
|
+
/* harmony import */ var jodit_esm_modules_widget__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(92762);
|
|
3157
|
+
/* harmony import */ var jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(34013);
|
|
3158
3158
|
/*!
|
|
3159
3159
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3160
3160
|
* See LICENSE.md in the project root for license information.
|
|
@@ -3179,8 +3179,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3179
3179
|
|
|
3180
3180
|
|
|
3181
3181
|
// @ts-ignore
|
|
3182
|
-
window['JoditGoogleReadyHandler'] =
|
|
3183
|
-
class googleMaps extends
|
|
3182
|
+
window['JoditGoogleReadyHandler'] = _helpers_helpers__WEBPACK_IMPORTED_MODULE_5__/* .GoogleReadyHandler */ .hR;
|
|
3183
|
+
class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_12__/* .Plugin */ .k {
|
|
3184
3184
|
constructor() {
|
|
3185
3185
|
super(...arguments);
|
|
3186
3186
|
this.buttons = [
|
|
@@ -3192,7 +3192,7 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3192
3192
|
return 'google-maps';
|
|
3193
3193
|
}
|
|
3194
3194
|
afterInit(jodit) {
|
|
3195
|
-
jodit.registerCommand(
|
|
3195
|
+
jodit.registerCommand(_helpers_const__WEBPACK_IMPORTED_MODULE_3__/* .COMMAND_OPEN_DIALOG */ .C, () => {
|
|
3196
3196
|
void this.openMapEditor(null, {});
|
|
3197
3197
|
});
|
|
3198
3198
|
}
|
|
@@ -3212,11 +3212,11 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3212
3212
|
const jodit = this.j;
|
|
3213
3213
|
const dialog = this.getDialog();
|
|
3214
3214
|
const state = this.j.o.googleMaps.saveStateInStorage
|
|
3215
|
-
? dialog.storage.get(
|
|
3215
|
+
? dialog.storage.get(_helpers_const__WEBPACK_IMPORTED_MODULE_3__/* .STORAGE_KEY */ .A)
|
|
3216
3216
|
: undefined;
|
|
3217
3217
|
const { apiUrl } = this.jodit.o.googleMaps;
|
|
3218
|
-
if (!(0,
|
|
3219
|
-
void (0,
|
|
3218
|
+
if (!(0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_5__/* .isApiAvailable */ .uv)()) {
|
|
3219
|
+
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 : ''; }));
|
|
3220
3220
|
}
|
|
3221
3221
|
const openState = {
|
|
3222
3222
|
type: this.j.o.googleMaps.map.type,
|
|
@@ -3225,9 +3225,9 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3225
3225
|
...state,
|
|
3226
3226
|
...initialState
|
|
3227
3227
|
};
|
|
3228
|
-
const uiMap = new
|
|
3228
|
+
const uiMap = new _ui__WEBPACK_IMPORTED_MODULE_8__/* .UIMap */ .L6(dialog, openState, this.j.options);
|
|
3229
3229
|
uiMap.container.classList.add(dialog.getFullElName('map'));
|
|
3230
|
-
const search = new
|
|
3230
|
+
const search = new _ui_combo_box_combo_box__WEBPACK_IMPORTED_MODULE_7__/* .UIComboBox */ .A(jodit, {
|
|
3231
3231
|
icon: 'search',
|
|
3232
3232
|
placeholder: 'Search',
|
|
3233
3233
|
clearButton: true
|
|
@@ -3235,13 +3235,13 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3235
3235
|
search.container.classList.add(dialog.getFullElName('search'));
|
|
3236
3236
|
this.j.async
|
|
3237
3237
|
.promise((resolve) => {
|
|
3238
|
-
if ((0,
|
|
3238
|
+
if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_5__/* .isApiAvailable */ .uv)()) {
|
|
3239
3239
|
resolve(0);
|
|
3240
3240
|
return;
|
|
3241
3241
|
}
|
|
3242
3242
|
// TODO - Need check googleReady
|
|
3243
3243
|
const intervalChecker = () => {
|
|
3244
|
-
if ((0,
|
|
3244
|
+
if ((0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_5__/* .isApiAvailable */ .uv)()) {
|
|
3245
3245
|
resolve(0);
|
|
3246
3246
|
}
|
|
3247
3247
|
else {
|
|
@@ -3249,7 +3249,7 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3249
3249
|
}
|
|
3250
3250
|
};
|
|
3251
3251
|
intervalChecker();
|
|
3252
|
-
(0,
|
|
3252
|
+
(0,_helpers_helpers__WEBPACK_IMPORTED_MODULE_5__/* .googleReady */ .Lp)(resolve);
|
|
3253
3253
|
})
|
|
3254
3254
|
.then(() => {
|
|
3255
3255
|
uiMap.setStatus('ready');
|
|
@@ -3285,16 +3285,16 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3285
3285
|
.setHeader([
|
|
3286
3286
|
search,
|
|
3287
3287
|
' ',
|
|
3288
|
-
(0,
|
|
3288
|
+
(0,jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_13__/* .Button */ .$n)(jodit, 'eye').onAction(() => {
|
|
3289
3289
|
const image = this.jodit.createInside.element('img');
|
|
3290
|
-
image.src = (0,
|
|
3290
|
+
image.src = (0,_helpers_static_url__WEBPACK_IMPORTED_MODULE_6__/* .staticUrl */ .o)(uiMap);
|
|
3291
3291
|
image.dataset.googleMaps = btoa(uiMap.json());
|
|
3292
3292
|
const data = { value: image.outerHTML };
|
|
3293
3293
|
this.onAfterGetValueFromEditor(data);
|
|
3294
3294
|
jodit.execCommand('preview', null, data.value);
|
|
3295
3295
|
})
|
|
3296
3296
|
])
|
|
3297
|
-
.setContent((0,
|
|
3297
|
+
.setContent((0,jodit_esm_modules_widget__WEBPACK_IMPORTED_MODULE_15__/* .TabsWidget */ .Zg)(jodit, [
|
|
3298
3298
|
{
|
|
3299
3299
|
name: 'Map',
|
|
3300
3300
|
icon: 'map',
|
|
@@ -3302,17 +3302,17 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3302
3302
|
},
|
|
3303
3303
|
{
|
|
3304
3304
|
name: 'Settings',
|
|
3305
|
-
content: new
|
|
3305
|
+
content: new _ui__WEBPACK_IMPORTED_MODULE_8__/* .UIMapsPropsForm */ .mk(jodit, uiMap.state)
|
|
3306
3306
|
},
|
|
3307
3307
|
{
|
|
3308
3308
|
name: 'Controls',
|
|
3309
3309
|
icon: 'menu',
|
|
3310
|
-
content: new
|
|
3310
|
+
content: new _ui__WEBPACK_IMPORTED_MODULE_8__/* .UIMapsControlsForm */ .S0(jodit, uiMap.state)
|
|
3311
3311
|
}
|
|
3312
3312
|
]))
|
|
3313
3313
|
.setFooter([
|
|
3314
|
-
(0,
|
|
3315
|
-
(0,
|
|
3314
|
+
(0,jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_13__/* .Button */ .$n)(jodit, 'cancel', 'Cancel', 'default').onAction(() => dialog.close()),
|
|
3315
|
+
(0,jodit_esm_core_ui_button__WEBPACK_IMPORTED_MODULE_13__/* .Button */ .$n)(jodit, 'ok', target ? 'Save' : 'Insert', 'primary').onAction(() => {
|
|
3316
3316
|
uiMap.destruct();
|
|
3317
3317
|
search.destruct();
|
|
3318
3318
|
dialog.e.off('beforeClose', onCLose);
|
|
@@ -3325,7 +3325,7 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3325
3325
|
if (uiMap.state.elements.length &&
|
|
3326
3326
|
JSON.stringify(uiMap.state.elements) !==
|
|
3327
3327
|
JSON.stringify(openState.elements)) {
|
|
3328
|
-
if (!
|
|
3328
|
+
if (!jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_9__.IS_TEST && !confirm(this.i18n('Are you sure?'))) {
|
|
3329
3329
|
return false;
|
|
3330
3330
|
}
|
|
3331
3331
|
}
|
|
@@ -3337,7 +3337,7 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3337
3337
|
}
|
|
3338
3338
|
getDialog() {
|
|
3339
3339
|
if (!this.dialog) {
|
|
3340
|
-
const dialog = new
|
|
3340
|
+
const dialog = new jodit_esm_modules_dialog_dialog__WEBPACK_IMPORTED_MODULE_14__/* .Dialog */ .l({
|
|
3341
3341
|
language: this.j.o.language
|
|
3342
3342
|
});
|
|
3343
3343
|
dialog.container.classList.add(this.getFullElName(''));
|
|
@@ -3347,7 +3347,7 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3347
3347
|
}
|
|
3348
3348
|
insertMap(target, uiMap) {
|
|
3349
3349
|
const image = target !== null && target !== void 0 ? target : this.jodit.createInside.element('img');
|
|
3350
|
-
image.src = (0,
|
|
3350
|
+
image.src = (0,_helpers_static_url__WEBPACK_IMPORTED_MODULE_6__/* .staticUrl */ .o)(uiMap);
|
|
3351
3351
|
image.dataset.googleMaps = btoa(uiMap.json());
|
|
3352
3352
|
target || this.jodit.s.insertImage(image);
|
|
3353
3353
|
}
|
|
@@ -3358,7 +3358,7 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3358
3358
|
}
|
|
3359
3359
|
onAfterGetValueFromEditor(data, consumer) {
|
|
3360
3360
|
if (this.j.o.googleMaps.useStaticImage ||
|
|
3361
|
-
consumer ===
|
|
3361
|
+
consumer === jodit_esm_core_constants__WEBPACK_IMPORTED_MODULE_9__.SOURCE_CONSUMER) {
|
|
3362
3362
|
return;
|
|
3363
3363
|
}
|
|
3364
3364
|
data.value = data.value.replace(
|
|
@@ -3369,21 +3369,21 @@ class googleMaps extends jodit_esm_core_plugin__WEBPACK_IMPORTED_MODULE_8__/* .P
|
|
|
3369
3369
|
json = JSON.parse(this.j.ow.atob(jsonB64));
|
|
3370
3370
|
}
|
|
3371
3371
|
catch (_a) { }
|
|
3372
|
-
return `${_1} id="${json.uid}" ${q}data-google-maps${q}=${q2}${jsonB64}${q2}${rest}${(0,
|
|
3372
|
+
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)}`;
|
|
3373
3373
|
});
|
|
3374
3374
|
}
|
|
3375
3375
|
}
|
|
3376
3376
|
googleMaps.requires = ['license', 'color-picker'];
|
|
3377
|
-
(0,
|
|
3378
|
-
(0,
|
|
3377
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
3378
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_10__.watch)('?:openOnDblClick')
|
|
3379
3379
|
], googleMaps.prototype, "onOpenOnDblClick", null);
|
|
3380
|
-
(0,
|
|
3381
|
-
(0,
|
|
3380
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
3381
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_10__.watch)(':beforeSetNativeEditorValue')
|
|
3382
3382
|
], googleMaps.prototype, "onBeforeSetNativeEditorValue", null);
|
|
3383
|
-
(0,
|
|
3384
|
-
(0,
|
|
3383
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__/* .__decorate */ .Cg)([
|
|
3384
|
+
(0,jodit_esm_core_decorators__WEBPACK_IMPORTED_MODULE_10__.watch)(':afterGetValueFromEditor')
|
|
3385
3385
|
], googleMaps.prototype, "onAfterGetValueFromEditor", null);
|
|
3386
|
-
|
|
3386
|
+
jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_16__/* .JoditPro */ .A.plugins.add('google-maps', googleMaps);
|
|
3387
3387
|
|
|
3388
3388
|
|
|
3389
3389
|
/***/ }),
|
|
@@ -3395,12 +3395,12 @@ jodit_pro_jodit_pro__WEBPACK_IMPORTED_MODULE_12__/* .JoditPro */ .A.plugins.add(
|
|
|
3395
3395
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3396
3396
|
/* harmony export */ O: function() { return /* binding */ initOrUpdateElementFromState; }
|
|
3397
3397
|
/* harmony export */ });
|
|
3398
|
-
/* harmony import */ var
|
|
3399
|
-
/* harmony import */ var
|
|
3400
|
-
/* harmony import */ var
|
|
3401
|
-
/* harmony import */ var
|
|
3402
|
-
/* harmony import */ var
|
|
3403
|
-
/* harmony import */ var
|
|
3398
|
+
/* harmony import */ var _on_change_geometries__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(62187);
|
|
3399
|
+
/* harmony import */ var _open_props_dialog__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(32332);
|
|
3400
|
+
/* harmony import */ var _update_state_and_gme__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(93636);
|
|
3401
|
+
/* harmony import */ var jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(580);
|
|
3402
|
+
/* harmony import */ var jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(12153);
|
|
3403
|
+
/* harmony import */ var jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65533);
|
|
3404
3404
|
/*!
|
|
3405
3405
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3406
3406
|
* See LICENSE.md in the project root for license information.
|
|
@@ -3417,7 +3417,7 @@ function initOrUpdateElementFromState(state, index) {
|
|
|
3417
3417
|
const elm = this.mapElements[index];
|
|
3418
3418
|
if (elm) {
|
|
3419
3419
|
if (elm.state.type === state.type) {
|
|
3420
|
-
return
|
|
3420
|
+
return _update_state_and_gme__WEBPACK_IMPORTED_MODULE_2__/* .updateStateAndGme */ .B.call(this, state, index);
|
|
3421
3421
|
}
|
|
3422
3422
|
elm.gme.setMap(null);
|
|
3423
3423
|
}
|
|
@@ -3437,14 +3437,14 @@ function initOrUpdateElementFromState(state, index) {
|
|
|
3437
3437
|
draggable: true,
|
|
3438
3438
|
label: state.showCaption ? state.title : '',
|
|
3439
3439
|
title: state.title,
|
|
3440
|
-
icon: state.icon ?
|
|
3440
|
+
icon: state.icon ? jodit_esm_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__/* .Icon */ .I.get(state.icon) : undefined,
|
|
3441
3441
|
map: this.map
|
|
3442
3442
|
});
|
|
3443
3443
|
break;
|
|
3444
3444
|
case 'polyline':
|
|
3445
3445
|
case 'polygon':
|
|
3446
3446
|
{
|
|
3447
|
-
const coordinates = (0,
|
|
3447
|
+
const coordinates = (0,jodit_pro_plugins_google_maps_helpers_helpers__WEBPACK_IMPORTED_MODULE_5__/* .arrayToPath */ .A3)(state.coordinates);
|
|
3448
3448
|
gme = new google.maps[state.type === 'polygon' ? 'Polygon' : 'Polyline']({
|
|
3449
3449
|
path: coordinates,
|
|
3450
3450
|
strokeColor: state.strokeColor,
|
|
@@ -3473,21 +3473,21 @@ function initOrUpdateElementFromState(state, index) {
|
|
|
3473
3473
|
}
|
|
3474
3474
|
const newElm = {
|
|
3475
3475
|
type: state.type,
|
|
3476
|
-
uid: (0,
|
|
3476
|
+
uid: (0,jodit_esm_core_global__WEBPACK_IMPORTED_MODULE_3__/* .uniqueUid */ .w9)(),
|
|
3477
3477
|
state,
|
|
3478
3478
|
gme
|
|
3479
3479
|
};
|
|
3480
3480
|
'dragend radius_changed center_changed'
|
|
3481
3481
|
.split(' ')
|
|
3482
|
-
.forEach((event) => gme.addListener(event, () =>
|
|
3482
|
+
.forEach((event) => gme.addListener(event, () => _on_change_geometries__WEBPACK_IMPORTED_MODULE_0__/* .onChangeGeometries */ .Q.call(this, newElm, index)));
|
|
3483
3483
|
if (newElm.type === 'polygon' || newElm.type === 'polyline') {
|
|
3484
3484
|
'insert_at set_at remove_at'
|
|
3485
3485
|
.split(' ')
|
|
3486
3486
|
.forEach((event) => newElm.gme
|
|
3487
3487
|
.getPath()
|
|
3488
|
-
.addListener(event, () =>
|
|
3488
|
+
.addListener(event, () => _on_change_geometries__WEBPACK_IMPORTED_MODULE_0__/* .onChangeGeometries */ .Q.call(this, newElm, index)));
|
|
3489
3489
|
}
|
|
3490
|
-
gme.addListener('click', () =>
|
|
3490
|
+
gme.addListener('click', () => _open_props_dialog__WEBPACK_IMPORTED_MODULE_1__/* .openPropsDialog */ .T.call(this, newElm, index));
|
|
3491
3491
|
this.mapElements[index] = newElm;
|
|
3492
3492
|
}
|
|
3493
3493
|
|