jodit-pro 4.2.8 → 4.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +116 -97
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +116 -97
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +116 -97
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +116 -97
- 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 +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +116 -97
- 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 +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/esm/config.js +1 -1
- package/esm/core/ui/form/range/range.d.ts +2 -2
- package/esm/core/ui/form/range/range.js +1 -1
- package/esm/index.js +1 -1
- package/esm/jodit-pro.d.ts +1 -1
- package/esm/jodit-pro.js +1 -1
- package/esm/plugins/autocomplete/autocomplete.d.ts +2 -2
- package/esm/plugins/autocomplete/autocomplete.js +1 -1
- package/esm/plugins/autocomplete/helpers.js +1 -1
- package/esm/plugins/autocomplete/interface.d.ts +1 -1
- package/esm/plugins/autocomplete/ui/autocomplete.d.ts +2 -2
- package/esm/plugins/autocomplete/ui/autocomplete.js +1 -1
- package/esm/plugins/autocomplete/ui/item.d.ts +2 -2
- package/esm/plugins/autocomplete/ui/item.js +1 -1
- package/esm/plugins/backup/backup.d.ts +2 -2
- package/esm/plugins/backup/backup.js +1 -1
- package/esm/plugins/backup/config.js +1 -1
- package/esm/plugins/backup/modules/store.d.ts +2 -2
- package/esm/plugins/backup/ui/box.d.ts +3 -3
- package/esm/plugins/backup/ui/box.js +1 -1
- package/esm/plugins/backup/ui/item.d.ts +3 -3
- package/esm/plugins/backup/ui/item.js +1 -1
- package/esm/plugins/backup/ui/list.d.ts +3 -3
- package/esm/plugins/backup/ui/list.js +1 -1
- package/esm/plugins/button-generator/button-generator.d.ts +2 -2
- package/esm/plugins/button-generator/button-generator.js +1 -1
- package/esm/plugins/button-generator/config.js +1 -1
- package/esm/plugins/button-generator/ui/button/button.d.ts +2 -2
- package/esm/plugins/button-generator/ui/button/button.js +1 -1
- package/esm/plugins/button-generator/ui/form/form.d.ts +2 -2
- package/esm/plugins/button-generator/ui/form/form.js +1 -1
- package/esm/plugins/button-generator/ui/generator/button-generator.d.ts +2 -2
- package/esm/plugins/button-generator/ui/generator/button-generator.js +1 -1
- package/esm/plugins/button-generator/ui/preview/preview.d.ts +2 -2
- package/esm/plugins/button-generator/ui/preview/preview.js +1 -1
- package/esm/plugins/change-case/change-case.d.ts +2 -2
- package/esm/plugins/change-case/change-case.js +1 -1
- package/esm/plugins/change-case/config.js +1 -1
- package/esm/plugins/color-picker/color-picker.d.ts +2 -2
- package/esm/plugins/color-picker/color-picker.js +1 -1
- package/esm/plugins/color-picker/ui/input/color-input.d.ts +2 -2
- 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.d.ts +2 -2
- package/esm/plugins/emoji/emoji.js +1 -1
- package/esm/plugins/emoji/ui/emoji.d.ts +3 -3
- package/esm/plugins/emoji/ui/emoji.js +1 -1
- package/esm/plugins/export-docs/config.d.ts +1 -1
- package/esm/plugins/export-docs/config.js +1 -1
- package/esm/plugins/export-docs/export-docs.d.ts +2 -2
- package/esm/plugins/export-docs/export-docs.js +1 -1
- package/esm/plugins/finder/browser.d.ts +4 -4
- package/esm/plugins/finder/browser.js +1 -1
- package/esm/plugins/finder/config.js +1 -1
- package/esm/plugins/finder/finder.d.ts +2 -2
- package/esm/plugins/finder/finder.js +1 -1
- package/esm/plugins/finder/helpers/context-menu.d.ts +3 -3
- package/esm/plugins/finder/helpers/context-menu.js +1 -1
- package/esm/plugins/finder/helpers/history-manager.d.ts +2 -2
- package/esm/plugins/finder/helpers/history-manager.js +1 -1
- package/esm/plugins/finder/helpers/loading-manager.d.ts +2 -2
- package/esm/plugins/finder/helpers/loading-manager.js +1 -1
- package/esm/plugins/finder/helpers/persistent-store.d.ts +2 -2
- package/esm/plugins/finder/helpers/persistent-store.js +1 -1
- package/esm/plugins/finder/helpers/state-manager.d.ts +2 -2
- package/esm/plugins/finder/helpers/state-manager.js +1 -1
- package/esm/plugins/finder/ui/assets/icons/index.js +1 -1
- package/esm/plugins/finder/ui/folder/folder.d.ts +2 -2
- package/esm/plugins/finder/ui/folder/folder.js +1 -1
- package/esm/plugins/finder/ui/header/header.d.ts +3 -3
- package/esm/plugins/finder/ui/header/header.js +1 -1
- package/esm/plugins/finder/ui/item/item.d.ts +2 -2
- package/esm/plugins/finder/ui/item/item.js +1 -1
- package/esm/plugins/finder/ui/lightboox/lightbox.d.ts +3 -3
- package/esm/plugins/finder/ui/lightboox/lightbox.js +1 -1
- package/esm/plugins/finder/ui/panel/panel.d.ts +10 -10
- package/esm/plugins/finder/ui/panel/panel.js +1 -1
- package/esm/plugins/finder/ui/preview/preview.d.ts +4 -4
- package/esm/plugins/finder/ui/preview/preview.js +1 -1
- package/esm/plugins/finder/ui/progress/progress.d.ts +3 -3
- package/esm/plugins/finder/ui/progress/progress.js +1 -1
- package/esm/plugins/finder/ui/settings/settings.d.ts +3 -3
- package/esm/plugins/finder/ui/settings/settings.js +1 -1
- package/esm/plugins/finder/ui/sidebar/sidebar.d.ts +4 -4
- package/esm/plugins/finder/ui/sidebar/sidebar.js +1 -1
- package/esm/plugins/finder/ui/source/source.d.ts +2 -2
- package/esm/plugins/finder/ui/source/source.js +1 -1
- package/esm/plugins/finder/ui/sources/sources.d.ts +2 -2
- package/esm/plugins/finder/ui/sources/sources.js +1 -1
- package/esm/plugins/finder/ui/statusbar/statusbar.d.ts +1 -1
- package/esm/plugins/finder/ui/statusbar/statusbar.js +1 -1
- package/esm/plugins/finder/ui/tree/tree.d.ts +2 -2
- package/esm/plugins/finder/ui/tree/tree.js +1 -1
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +7 -7
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +1 -1
- package/esm/plugins/google-maps/assets/index.js +1 -1
- package/esm/plugins/google-maps/config.js +1 -1
- package/esm/plugins/google-maps/google-maps.d.ts +2 -2
- package/esm/plugins/google-maps/google-maps.js +1 -1
- package/esm/plugins/google-maps/helpers/generate-js-script.d.ts +2 -2
- package/esm/plugins/google-maps/helpers/generate-js-script.js +1 -1
- package/esm/plugins/google-maps/helpers/generate-static-elements.d.ts +1 -1
- package/esm/plugins/google-maps/helpers/generate-static-elements.js +1 -1
- package/esm/plugins/google-maps/helpers/static-url.d.ts +1 -1
- package/esm/plugins/google-maps/helpers/static-url.js +1 -1
- package/esm/plugins/google-maps/ui/combo-box/combo-box.d.ts +1 -1
- package/esm/plugins/google-maps/ui/combo-box/combo-box.js +1 -1
- package/esm/plugins/google-maps/ui/editors/base.d.ts +2 -2
- package/esm/plugins/google-maps/ui/editors/base.js +1 -1
- package/esm/plugins/google-maps/ui/editors/index.js +1 -1
- package/esm/plugins/google-maps/ui/editors/marker/marker.d.ts +2 -2
- package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -1
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.d.ts +2 -2
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +1 -1
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.d.ts +2 -2
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +1 -1
- package/esm/plugins/google-maps/ui/index.js +1 -1
- package/esm/plugins/google-maps/ui/map/map.d.ts +4 -4
- package/esm/plugins/google-maps/ui/map/map.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/index.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -2
- 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/on-change-geometries.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.js +1 -1
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +2 -2
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +1 -1
- package/esm/plugins/google-maps/ui/maps-props/maps-props.d.ts +2 -2
- package/esm/plugins/google-maps/ui/maps-props/maps-props.js +1 -1
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +2 -2
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +1 -1
- package/esm/plugins/google-search/google-search.d.ts +2 -2
- package/esm/plugins/google-search/google-search.js +1 -1
- package/esm/plugins/highlight-signature/highlight-signature.d.ts +2 -2
- package/esm/plugins/highlight-signature/highlight-signature.js +1 -1
- package/esm/plugins/iframe-editor/config.js +1 -1
- package/esm/plugins/iframe-editor/iframe-editor.d.ts +2 -2
- package/esm/plugins/iframe-editor/iframe-editor.js +1 -1
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +2 -2
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js +1 -1
- package/esm/plugins/index.d.ts +3 -3
- package/esm/plugins/index.js +1 -1
- package/esm/plugins/keyboard/config.d.ts +1 -1
- package/esm/plugins/keyboard/config.js +1 -1
- package/esm/plugins/keyboard/keyboard.d.ts +2 -2
- package/esm/plugins/keyboard/keyboard.js +1 -1
- package/esm/plugins/keyboard/ui/keyboard/keyboard.d.ts +2 -2
- package/esm/plugins/keyboard/ui/keyboard/keyboard.js +1 -1
- package/esm/plugins/license/license.d.ts +3 -3
- package/esm/plugins/license/license.js +1 -1
- package/esm/plugins/mobile-view/config.js +1 -1
- package/esm/plugins/mobile-view/mobile-view.js +1 -1
- package/esm/plugins/page-break/config.js +1 -1
- package/esm/plugins/page-break/page-break.d.ts +2 -2
- package/esm/plugins/page-break/page-break.js +1 -1
- package/esm/plugins/paste-code/config.d.ts +1 -1
- package/esm/plugins/paste-code/config.js +1 -1
- package/esm/plugins/paste-code/paste-code.d.ts +2 -2
- package/esm/plugins/paste-code/paste-code.js +1 -1
- package/esm/plugins/paste-from-word/cases/clean-styles.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/clear-attributes.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/clear-class-name.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/clear-class-name.js +1 -1
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +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.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/convert-to-list.js +1 -1
- package/esm/plugins/paste-from-word/cases/index.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/index.js +1 -1
- package/esm/plugins/paste-from-word/cases/mark-page-break.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/normalize-image-props.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/process-image.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/process-image.js +1 -1
- package/esm/plugins/paste-from-word/cases/process-links.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/remove-extra-tags.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.js +1 -1
- package/esm/plugins/paste-from-word/cases/replace-old-tags.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/table.d.ts +1 -1
- package/esm/plugins/paste-from-word/config.js +1 -1
- package/esm/plugins/paste-from-word/element/checkers.js +1 -1
- package/esm/plugins/paste-from-word/element/element.d.ts +1 -1
- package/esm/plugins/paste-from-word/element/element.js +1 -1
- package/esm/plugins/paste-from-word/element/index.js +1 -1
- package/esm/plugins/paste-from-word/element/render.d.ts +1 -1
- package/esm/plugins/paste-from-word/element/render.js +1 -1
- package/esm/plugins/paste-from-word/element/style.d.ts +1 -1
- package/esm/plugins/paste-from-word/element/style.js +1 -1
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +1 -1
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +1 -1
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.d.ts +1 -1
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +1 -1
- package/esm/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
- package/esm/plugins/paste-from-word/helpers/index.js +1 -1
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.js +1 -1
- package/esm/plugins/paste-from-word/interface.d.ts +1 -1
- package/esm/plugins/paste-from-word/paste-from-word.d.ts +3 -3
- package/esm/plugins/paste-from-word/paste-from-word.js +1 -1
- package/esm/plugins/show-blocks/config.js +1 -1
- package/esm/plugins/show-blocks/show-blocks.d.ts +2 -2
- package/esm/plugins/show-blocks/show-blocks.js +1 -1
- package/esm/plugins/todo-list/config.d.ts +1 -1
- package/esm/plugins/todo-list/config.js +1 -1
- package/esm/plugins/todo-list/todo-list.d.ts +2 -2
- package/esm/plugins/todo-list/todo-list.js +1 -1
- package/esm/plugins/translate/config.js +1 -1
- package/esm/plugins/translate/interface.d.ts +1 -1
- package/esm/plugins/translate/providers/google/google.d.ts +2 -2
- package/esm/plugins/translate/providers/google/google.js +1 -1
- package/esm/plugins/translate/translate.d.ts +2 -2
- package/esm/plugins/translate/translate.js +1 -1
- package/esm/plugins/translate/ui/list/list.d.ts +2 -2
- package/esm/plugins/translate/ui/list/list.js +1 -1
- package/esm/plugins/translate/ui/settings/settings.d.ts +3 -3
- package/esm/plugins/translate/ui/settings/settings.js +1 -1
- package/esm/plugins/tune-block/config.d.ts +1 -1
- package/esm/plugins/tune-block/config.js +1 -1
- package/esm/plugins/tune-block/tune-block.d.ts +2 -2
- package/esm/plugins/tune-block/tune-block.js +1 -1
- package/esm/plugins/tune-block/ui/tuner/tuner.d.ts +2 -2
- package/esm/plugins/tune-block/ui/tuner/tuner.js +1 -1
- package/esm/traits/resize/resize.d.ts +1 -1
- package/esm/traits/resize/resize.js +1 -1
- package/esm/traits/select-items/select-items.d.ts +1 -1
- package/esm/traits/select-items/select-items.js +1 -1
- package/esm/types/view.d.ts +1 -1
- package/package.json +1 -1
- package/types/core/ui/form/range/range.d.ts +2 -2
- package/types/jodit-pro.d.ts +1 -1
- package/types/plugins/autocomplete/autocomplete.d.ts +2 -2
- package/types/plugins/autocomplete/interface.d.ts +1 -1
- package/types/plugins/autocomplete/ui/autocomplete.d.ts +2 -2
- package/types/plugins/autocomplete/ui/item.d.ts +2 -2
- package/types/plugins/backup/backup.d.ts +2 -2
- package/types/plugins/backup/modules/store.d.ts +2 -2
- package/types/plugins/backup/ui/box.d.ts +3 -3
- package/types/plugins/backup/ui/item.d.ts +3 -3
- package/types/plugins/backup/ui/list.d.ts +3 -3
- package/types/plugins/button-generator/button-generator.d.ts +2 -2
- package/types/plugins/button-generator/ui/button/button.d.ts +2 -2
- package/types/plugins/button-generator/ui/form/form.d.ts +2 -2
- package/types/plugins/button-generator/ui/generator/button-generator.d.ts +2 -2
- package/types/plugins/button-generator/ui/preview/preview.d.ts +2 -2
- package/types/plugins/change-case/change-case.d.ts +2 -2
- package/types/plugins/color-picker/color-picker.d.ts +2 -2
- package/types/plugins/color-picker/ui/input/color-input.d.ts +2 -2
- package/types/plugins/emoji/emoji.d.ts +2 -2
- package/types/plugins/emoji/ui/emoji.d.ts +3 -3
- package/types/plugins/export-docs/config.d.ts +1 -1
- package/types/plugins/export-docs/export-docs.d.ts +2 -2
- package/types/plugins/finder/browser.d.ts +4 -4
- package/types/plugins/finder/finder.d.ts +2 -2
- package/types/plugins/finder/helpers/context-menu.d.ts +3 -3
- package/types/plugins/finder/helpers/history-manager.d.ts +2 -2
- package/types/plugins/finder/helpers/loading-manager.d.ts +2 -2
- package/types/plugins/finder/helpers/persistent-store.d.ts +2 -2
- package/types/plugins/finder/helpers/state-manager.d.ts +2 -2
- package/types/plugins/finder/ui/folder/folder.d.ts +2 -2
- package/types/plugins/finder/ui/header/header.d.ts +3 -3
- package/types/plugins/finder/ui/item/item.d.ts +2 -2
- package/types/plugins/finder/ui/lightboox/lightbox.d.ts +3 -3
- package/types/plugins/finder/ui/panel/panel.d.ts +10 -10
- package/types/plugins/finder/ui/preview/preview.d.ts +4 -4
- package/types/plugins/finder/ui/progress/progress.d.ts +3 -3
- package/types/plugins/finder/ui/settings/settings.d.ts +3 -3
- package/types/plugins/finder/ui/sidebar/sidebar.d.ts +4 -4
- package/types/plugins/finder/ui/source/source.d.ts +2 -2
- package/types/plugins/finder/ui/sources/sources.d.ts +2 -2
- package/types/plugins/finder/ui/statusbar/statusbar.d.ts +1 -1
- package/types/plugins/finder/ui/tree/tree.d.ts +2 -2
- package/types/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +7 -7
- package/types/plugins/google-maps/google-maps.d.ts +2 -2
- package/types/plugins/google-maps/helpers/generate-js-script.d.ts +2 -2
- package/types/plugins/google-maps/helpers/generate-static-elements.d.ts +1 -1
- package/types/plugins/google-maps/helpers/static-url.d.ts +1 -1
- package/types/plugins/google-maps/ui/combo-box/combo-box.d.ts +1 -1
- package/types/plugins/google-maps/ui/editors/base.d.ts +2 -2
- package/types/plugins/google-maps/ui/editors/marker/marker.d.ts +2 -2
- package/types/plugins/google-maps/ui/editors/polygon/polygon.d.ts +2 -2
- package/types/plugins/google-maps/ui/editors/polyline/polyline.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/map.d.ts +4 -4
- package/types/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -2
- package/types/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +2 -2
- package/types/plugins/google-maps/ui/maps-props/maps-props.d.ts +2 -2
- package/types/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +2 -2
- package/types/plugins/google-search/google-search.d.ts +2 -2
- package/types/plugins/highlight-signature/highlight-signature.d.ts +2 -2
- package/types/plugins/iframe-editor/iframe-editor.d.ts +2 -2
- package/types/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +2 -2
- package/types/plugins/index.d.ts +3 -3
- package/types/plugins/keyboard/config.d.ts +1 -1
- package/types/plugins/keyboard/keyboard.d.ts +2 -2
- package/types/plugins/keyboard/ui/keyboard/keyboard.d.ts +2 -2
- package/types/plugins/license/license.d.ts +3 -3
- package/types/plugins/page-break/page-break.d.ts +2 -2
- package/types/plugins/paste-code/config.d.ts +1 -1
- package/types/plugins/paste-code/paste-code.d.ts +2 -2
- package/types/plugins/paste-from-word/cases/clean-styles.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/clear-attributes.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/clear-class-name.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/convert-to-list.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/index.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/mark-page-break.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/normalize-image-props.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/process-image.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/process-links.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/remove-extra-tags.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/remove-inside-comment.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/replace-old-tags.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/table.d.ts +1 -1
- package/types/plugins/paste-from-word/element/element.d.ts +1 -1
- package/types/plugins/paste-from-word/element/render.d.ts +1 -1
- package/types/plugins/paste-from-word/element/style.d.ts +1 -1
- package/types/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +1 -1
- package/types/plugins/paste-from-word/helpers/calc-list-levels.d.ts +1 -1
- package/types/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
- package/types/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
- package/types/plugins/paste-from-word/interface.d.ts +1 -1
- package/types/plugins/paste-from-word/paste-from-word.d.ts +3 -3
- package/types/plugins/show-blocks/show-blocks.d.ts +2 -2
- package/types/plugins/todo-list/config.d.ts +1 -1
- package/types/plugins/todo-list/todo-list.d.ts +2 -2
- package/types/plugins/translate/interface.d.ts +1 -1
- package/types/plugins/translate/providers/google/google.d.ts +2 -2
- package/types/plugins/translate/translate.d.ts +2 -2
- package/types/plugins/translate/ui/list/list.d.ts +2 -2
- package/types/plugins/translate/ui/settings/settings.d.ts +3 -3
- package/types/plugins/tune-block/config.d.ts +1 -1
- package/types/plugins/tune-block/tune-block.d.ts +2 -2
- package/types/plugins/tune-block/ui/tuner/tuner.d.ts +2 -2
- package/types/traits/resize/resize.d.ts +1 -1
- package/types/traits/select-items/select-items.d.ts +1 -1
- package/types/types/view.d.ts +1 -1
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var t=this&&this.__decorate||function(t,e,s,
|
|
6
|
+
var t=this&&this.__decorate||function(t,e,s,a){var o,n=arguments.length,i=n<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};import{debounce as e,hook as s,wait as a,watch as o}from"../../../../core/decorators.js";import{uniqueUid as n}from"../../../../core/global.js";import{assert as i}from"../../../../core/helpers/utils/assert.js";import{css as l}from"../../../../core/helpers/utils/css.js";import{UIElement as r,UIGroup as p}from"../../../../core/ui/index.js";import{ToolbarCollection as h}from"../../../../modules/toolbar/collection/collection.js";import"../../config.js";import{initOrUpdateElementFromState as m}from"./modules/init-or-update-element-from-state.js";import{addNewInState as g}from"./modules/index.js";import{STORAGE_KEY as c}from"../../helpers/const.js";export class UIMap extends p{className(){return"UIMap"}json(){return JSON.stringify({...this.state,mode:"hand"})}async onReady(){await this.apiLoaded;const t=this.getElm("map-root");i(null!=t,"map-root element does not exists"),this.map=new google.maps.Map(t,{center:{lat:this.state.center[0],lng:this.state.center[1]},zoom:this.state.zoom,mapTypeId:this.state.type}),this.map.addListener("zoom_changed",(()=>{this.state.zoom=this.map.getZoom()??10})),this.map.addListener("center_changed",(()=>{this.state.center=[this.map?.getCenter()?.lat()??55,this.map?.getCenter()?.lng()??34]})),this.map.addListener("maptypeid_changed",(()=>{const t=this.map.getMapTypeId();t&&(this.state.type=t)})),this.initDrawManager(),this.onChangeElementsList(),this.onChangeSize(),this.onChangeControls(),this.onChangeLayer(),this.onChangeMapType(),this.onChangeMode(),this.mapInitialized=!0,this.j.async.requestIdleCallback((()=>{this.j.e.fire(this,"GoogleMapsIsReady")}))}initDrawManager(){try{const t=new google.maps.drawing.DrawingManager;t.setMap(this.map),t.setOptions({drawingControl:!1,polygonOptions:{...this.options.googleMaps.map.defaultStates.polygon,clickable:!0,editable:!0},polylineOptions:{...this.options.googleMaps.map.defaultStates.polyline,clickable:!0,editable:!0},markerOptions:{...this.options.googleMaps.map.defaultStates.marker,clickable:!0},circleOptions:{...this.options.googleMaps.map.defaultStates.circle,clickable:!0,editable:!0}}),this.drawingManager=t,google.maps.event.addListener(t,"overlaycomplete",(t=>{t.overlay&&(g.call(this,t.overlay),t.overlay.setMap(null))}))}catch{}}changeCreateMode(t){this.state.mode=this.state.mode===t?"hand":t}onChangeMode(){this.j.buffer.set("createMode.gm",this.state.mode),this.drawingManager?.setDrawingMode("hand"===this.state.mode?null:this.state.mode),this.j.e.fire("updateToolbar")}onChangeElementsList(){const{state:{elements:t},mapElements:e}=this;t.length<e.length&&e.slice(t.length).forEach((t=>{t.gme.setMap(null)})),e.length=t.length,t.forEach(((t,e)=>m.call(this,t,e)))}onChangeCenter(){const t=this.map.getCenter();t?.lat()===this.state.center[0]&&t?.lng()===this.state.center[1]||this.map.setCenter({lat:this.state.center[0],lng:this.state.center[1]})}onChangeZoom(){this.map?.setZoom(this.state.zoom)}onChangeControls(){let t;for(t in this.state.controls)this.map?.set(t,this.state.controls[t])}onChangeBound(){this.options.googleMaps.saveStateInStorage&&this.j.storage.set(c,{center:this.state.center,size:this.state.size,zoom:this.state.zoom,type:this.state.type,layer:this.state.layer,controls:this.state.controls})}onChangeSize(){const t=this.getElm("map-size");i(null!=t,"map-size element does not exists"),l(t,{width:this.state.size[0],height:this.state.size[1]})}onChangeMapType(){this.map.setMapTypeId(this.state.type)}onChangeLayer(){switch(this.layers.forEach((t=>t.setMap(null))),this.layers.length=0,this.state.layer){case"traffic":this.layers.push(new google.maps.TrafficLayer);break;case"transit":this.layers.push(new google.maps.TransitLayer);break;case"bicycling":this.layers.push(new google.maps.BicyclingLayer)}this.layers.forEach((t=>t.setMap(this.map)))}render(){return"<div>\n\t\t\t<div class='&__map-root'></div>\n\t\t\t<div class='&__map-size'></div>\n\t\t\t<div class='&__map-palette'></div>\n\t\t</div>"}appendChildToContainer(){}constructor(t,e,s){super(t),this.options=s,this.toolbar=new h(this.jodit),this.state={uid:"jd"+n()+(new Date).toString().replace(/[^0-9]/g,""),layer:this.options.googleMaps.map.layer,center:this.options.googleMaps.map.defaultCenter,zoom:this.options.googleMaps.map.defaultZoom,size:this.options.googleMaps.map.size,type:this.options.googleMaps.map.type,controls:{zoomControl:!0,mapTypeControl:!0,scaleControl:!0,streetViewControl:!0,rotateControl:!0,fullscreenControl:!0},mode:"hand",elements:[]},this.mapElements=[],this.apiLoaded=null,this.mapInitialized=!1,this.layers=[],Object.assign(this.state,e),this.toolbar.build(["gm.hand","gm.marker","gm.polyline","gm.polygon","gm.circle"]);const a=this.getElm("map-palette");i(null!=a,"palette element does not exists"),a.appendChild(this.toolbar.container)}}t([s("ready")],UIMap.prototype,"onReady",null),t([o("?:changeCreateMode.gm")],UIMap.prototype,"changeCreateMode",null),t([o("state.mode")],UIMap.prototype,"onChangeMode",null),t([o("state.elements")],UIMap.prototype,"onChangeElementsList",null),t([o("state.center"),a((t=>t.mapInitialized)),e()],UIMap.prototype,"onChangeCenter",null),t([o("state.zoom"),e()],UIMap.prototype,"onChangeZoom",null),t([o("state.controls")],UIMap.prototype,"onChangeControls",null),t([o(["state.center","state.zoom","state.controls","state.size","state.type","state.layer"]),a((t=>t.mapInitialized)),e()],UIMap.prototype,"onChangeBound",null),t([o("state.size"),e()],UIMap.prototype,"onChangeSize",null),t([o("state.type")],UIMap.prototype,"onChangeMapType",null),t([o("state.layer")],UIMap.prototype,"onChangeLayer",null);
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IGMElement } from "
|
|
7
|
-
import type { UIMap } from "
|
|
6
|
+
import type { IGMElement } from "../../../interface";
|
|
7
|
+
import type { UIMap } from "../map";
|
|
8
8
|
export declare function addNewInState(this: UIMap, mvc: IGMElement): void;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{pathToArray as t}from"
|
|
6
|
+
import{pathToArray as t}from"../../../helpers/helpers.js";export function addNewInState(e){switch(this.state.mode){case"polyline":case"polygon":{const{mode:s}=this.state;this.state.elements=[...this.state.elements,{type:s,coordinates:t(e.getPath()),...this.options.googleMaps.map.defaultStates[s]}];break}case"circle":{const t=e;this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[t.getCenter()?.lat()??0,t.getCenter()?.lng()??0],radius:t.getRadius(),...this.options.googleMaps.map.defaultStates.circle}];break}case"marker":{const t=e;this.state.elements=[...this.state.elements,{type:this.state.mode,coordinates:[t.getPosition()?.lat()??0,t.getPosition()?.lng()??0],...this.options.googleMaps.map.defaultStates.marker}];break}}}
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
export*from"./add-new-in-state";export*from"./on-change-geometries";export*from"./open-props-dialog";export*from"./remove-element";export*from"./update-state-and-gme";
|
|
6
|
+
export*from"./add-new-in-state.js";export*from"./on-change-geometries.js";export*from"./open-props-dialog.js";export*from"./remove-element.js";export*from"./update-state-and-gme.js";
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IUIMapElementState } from "
|
|
7
|
-
import type { UIMap } from "
|
|
6
|
+
import type { IUIMapElementState } from "../../../interface";
|
|
7
|
+
import type { UIMap } from "../map";
|
|
8
8
|
export declare function initOrUpdateElementFromState(this: UIMap, state: IUIMapElementState, index: number): void;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{uniqueUid as e}from"
|
|
6
|
+
import{uniqueUid as e}from"../../../../../core/global.js";import{Icon as t}from"../../../../../core/ui/icon.js";import{onChangeGeometries as o}from"./on-change-geometries.js";import{openPropsDialog as a}from"./open-props-dialog.js";import{updateStateAndGme as l}from"./update-state-and-gme.js";import{arrayToPath as i}from"../../../helpers/helpers.js";export function initOrUpdateElementFromState(r,s){const n=this.mapElements[s];if(n){if(n.state.type===r.type)return l.call(this,r,s);n.gme.setMap(null)}let p;switch(r.type){case"text":p=new google.maps.Marker({position:new google.maps.LatLng(r.coordinates[0],r.coordinates[1]),draggable:!0,title:r.text,map:this.map});break;case"marker":p=new google.maps.Marker({position:new google.maps.LatLng(r.coordinates[0],r.coordinates[1]),draggable:!0,label:r.showCaption?r.title:"",title:r.title,icon:r.icon?t.get(r.icon):null,map:this.map});break;case"polyline":case"polygon":{const e=i(r.coordinates);p=new google.maps["polygon"===r.type?"Polygon":"Polyline"]({path:e,strokeColor:r.strokeColor,fillColor:r.fillColor,strokeWeight:r.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:"polygon"===r.type?r.fillOpacity:1})}break;case"circle":p=new google.maps.Circle({center:new google.maps.LatLng(r.coordinates[0],r.coordinates[1]),radius:r.radius,strokeColor:r.strokeColor,fillColor:r.fillColor,strokeWeight:r.strokeWeight,editable:!0,draggable:!0,map:this.map,fillOpacity:r.fillOpacity??1})}const g={type:r.type,uid:e(),state:r,gme:p};"dragend radius_changed center_changed".split(" ").forEach((e=>p.addListener(e,(()=>o.call(this,g,s))))),"polygon"!==g.type&&"polyline"!==g.type||"insert_at set_at remove_at".split(" ").forEach((e=>g.gme.getPath().addListener(e,(()=>o.call(this,g,s))))),p.addListener("click",(()=>a.call(this,g,s))),this.mapElements[s]=g}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IUIMapElement } from "
|
|
7
|
-
import type { UIMap } from "
|
|
6
|
+
import type { IUIMapElement } from "../../../interface";
|
|
7
|
+
import type { UIMap } from "../map";
|
|
8
8
|
export declare function onChangeGeometries(this: UIMap, newElm: IUIMapElement, index: number): void;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{updateStateAndGme as e}from"./update-state-and-gme";import{pathToArray as t}from"
|
|
6
|
+
import{updateStateAndGme as e}from"./update-state-and-gme.js";import{pathToArray as t}from"../../../helpers/helpers.js";export function onChangeGeometries(a,s){switch(a.type){case"polyline":case"polygon":{const o=t(a.gme.getPath()),r={...a.state,coordinates:o};e.call(this,r,s,!0);break}case"marker":{const t=a.gme.getPosition(),o={...a.state,coordinates:[t?.lat()??0,t?.lng()??0]};e.call(this,o,s,!0);break}case"circle":{const t=a.gme.getCenter(),o={...a.state,radius:a.gme.getRadius(),coordinates:[t?.lat()??0,t?.lng()??0]};e.call(this,o,s,!0);break}}}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IUIMapElement } from "
|
|
7
|
-
import type { UIMap } from "
|
|
6
|
+
import type { IUIMapElement } from "../../../interface";
|
|
7
|
+
import type { UIMap } from "../map";
|
|
8
8
|
export declare function openPropsDialog(this: UIMap, newElm: IUIMapElement, index: number): void;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{removeElement as
|
|
6
|
+
import{removeElement as t}from"./remove-element.js";import{updateStateAndGme as e}from"./update-state-and-gme.js";import{UIMarkerEditor as o,UIPolygonEditor as i,UIPolylineEditor as n}from"../../editors/index.js";function getInfoWindow(){const t=new google.maps.InfoWindow({content:"<div>test</div>"});return t.addListener("domready",(()=>{this.setMod("info-opened",!0)})),t.addListener("closeclick",(()=>{this.setMod("info-opened",!1)})),t}export function openPropsDialog(s,a){let d;switch(this.state.mode="hand",s.type){case"polyline":d=new n(this.jodit,s.state,this.options);break;case"marker":d=new o(this.jodit,s.state,this.options);break;case"circle":case"polygon":d=new i(this.jodit,s.state,this.options)}if(!d)return;this.append(d),this.j.e.on(d,"bin",(()=>{t.call(this,s)})).on(d,"change",((t,o)=>{e.call(this,{...s.state,[t]:o},a)}));const r=getInfoWindow.call(this);if("polygon"===s.type||"polyline"===s.type){const t=s.gme.getPath().getAt(0);r.setPosition(t)}"circle"===s.type&&r.setPosition(s.gme.getCenter()),r.setContent(d.container),r.open(this.map,s.gme),r.addListener("closeclick",(()=>{d&&(this.remove(d),d.destruct())}))}
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IUIMapElement } from "
|
|
7
|
-
import type { UIMap } from "
|
|
6
|
+
import type { IUIMapElement } from "../../../interface";
|
|
7
|
+
import type { UIMap } from "../map";
|
|
8
8
|
export declare function removeElement(this: UIMap, newElm: IUIMapElement): void;
|
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IUIMapElement } from "
|
|
7
|
-
import type { UIMap } from "
|
|
6
|
+
import type { IUIMapElement } from "../../../interface";
|
|
7
|
+
import type { UIMap } from "../map";
|
|
8
8
|
export declare function updateStateAndGme(this: UIMap, newState: IUIMapElement['state'], index: number, silent?: boolean): void;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{arrayToPath as e}from"
|
|
6
|
+
import{arrayToPath as e}from"../../../helpers/helpers.js";export function updateStateAndGme(t,s,o=!1){const a=this.mapElements[s];if(a.state===t||a.state.type!==t.type)return;const i=a.state;if(!o){let s;for(s in t){const o=t[s],l=i[s];if(null!=o&&(null==l||o.toString()!==l.toString()))switch(s){case"strokeWeight":case"strokeColor":case"fillColor":case"fillOpacity":switch(a.type){case"polyline":case"circle":case"polygon":a.gme.setOptions({[s]:o})}break;case"coordinates":switch(a.type){case"polygon":case"polyline":a.gme.setPath(e(o))}}}}a.state=t,this.state.elements[s]=t}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import { UIForm } from "
|
|
6
|
+
import { UIForm } from "../../../../core/ui";
|
|
7
7
|
|
|
8
|
-
import type { UIMap } from "
|
|
8
|
+
import type { UIMap } from "../map/map";
|
|
9
9
|
export declare class UIMapsControlsForm extends UIForm {
|
|
10
10
|
readonly state: UIMap['state'];
|
|
11
11
|
className(): string;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var t=this&&this.__decorate||function(t,e,o,r){var n,c=arguments.length,s=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(s=(c<3?n(s):c>3?n(e,o,s):n(e,o))||s);return c>3&&s&&Object.defineProperty(e,o,s),s};import{component as e}from"
|
|
6
|
+
var t=this&&this.__decorate||function(t,e,o,r){var n,c=arguments.length,s=c<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(s=(c<3?n(s):c>3?n(e,o,s):n(e,o))||s);return c>3&&s&&Object.defineProperty(e,o,s),s};import{component as e}from"../../../../core/decorators/component/component.js";import{UICheckbox as o,UIForm as r}from"../../../../core/ui/index.js";let n=class UIMapsControlsForm extends r{className(){return"UIMapsControlsForm"}constructor(t,e){super(t),this.state=e;const r={zoomControl:"Zoom control",mapTypeControl:"Map Type control",scaleControl:"Scale control",streetViewControl:"Street View control ",rotateControl:"Rotate control",fullscreenControl:"Fullscreen control"},n=Object.keys(r);this.append(n.map((e=>new o(t,{label:r[e],name:e,checked:this.state.controls[e],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,e)}))))}onChangeSize(t,e){this.state.controls={...this.state.controls,[t]:"true"===e}}};n=t([e],n);export{n as UIMapsControlsForm};
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import { UIForm } from "
|
|
6
|
+
import { UIForm } from "../../../../core/ui";
|
|
7
7
|
|
|
8
|
-
import type { UIMap } from "
|
|
8
|
+
import type { UIMap } from "../map/map";
|
|
9
9
|
export declare class UIMapsPropsForm extends UIForm {
|
|
10
10
|
readonly state: UIMap['state'];
|
|
11
11
|
className(): string;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,a,n){var r,l=arguments.length,o=l<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,a):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,n);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(o=(l<3?r(o):l>3?r(t,a,o):r(t,a))||o);return l>3&&o&&Object.defineProperty(t,a,o),o};import{autobind as t,component as a,watch as n}from"
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,a,n){var r,l=arguments.length,o=l<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,a):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,a,n);else for(var i=e.length-1;i>=0;i--)(r=e[i])&&(o=(l<3?r(o):l>3?r(t,a,o):r(t,a))||o);return l>3&&o&&Object.defineProperty(t,a,o),o};import{autobind as t,component as a,watch as n}from"../../../../core/decorators.js";import{refs as r}from"../../../../core/helpers/utils/selector.js";import{UIForm as l,UIInput as o,UISelect as i}from"../../../../core/ui/index.js";let s=class UIMapsPropsForm extends l{className(){return"UIMapsPropsForm"}constructor(e,t){super(e),this.state=t;const[a,n]=t.size,[r,l]=t.center;this.append([new o(e,{label:"Width",name:"width",value:a,type:"number",onChange:this.onChangeSize}),new o(e,{label:"Height",name:"height",value:n,type:"number",onChange:this.onChangeSize}),new o(e,{label:"Latitude",name:"lat",value:r,onChange:this.onChangeCenter}),new o(e,{label:"Longitude",name:"lng",value:l,onChange:this.onChangeCenter}),new i(e,{label:"Map type",value:t.type,name:"mapType",options:[{value:"hybrid",text:"Hybrid"},{value:"roadmap",text:"Roadmap"},{value:"satellite",text:"Satellite"},{value:"terrain",text:"Terrain"}],onChange:e=>{t.type=e}}),new i(e,{label:"Layer",value:t.layer??"default",name:"layer",options:[{value:"default",text:"Default"},{value:"traffic",text:"Traffic"},{value:"transit",text:"Transit"},{value:"bicycling",text:"Bicycling"}],onChange:e=>{t.layer=e}})])}onChangeSize(){const{width:e,height:t}=r(this.container);this.state.size=[parseInt(e?.value,10)||0,parseInt(t?.value,10)||0]}onExternalChangeSize(){const{width:e,height:t}=r(this.container),[a,n]=this.state.size;a.toString()!==e.value&&(e.value=a.toString()),n.toString()!==t.value&&(t.value=n.toString())}onChangeCenter(){const{lat:e,lng:t}=r(this.container);this.state.center=[parseFloat(e?.value)||0,parseFloat(t?.value)||0]}onExternalChangeCenter(){const{lat:e,lng:t}=r(this.container),[a,n]=this.state.center;a.toString()!==e.value&&(e.value=a.toString()),n.toString()!==t.value&&(t.value=n.toString())}onExternalChangeType(){const{mapType:e}=r(this.container);this.state.type!==e.value&&(e.value=this.state.type)}onExternalChangeLayer(){const{layer:e}=r(this.container);this.state.layer!==e.value&&(e.value=this.state.layer)}};e([t],s.prototype,"onChangeSize",null),e([n("state.size")],s.prototype,"onExternalChangeSize",null),e([t],s.prototype,"onChangeCenter",null),e([n(["state.center"])],s.prototype,"onExternalChangeCenter",null),e([n(["state.type"])],s.prototype,"onExternalChangeType",null),e([n(["state.layer"])],s.prototype,"onExternalChangeLayer",null),s=e([a],s);export{s as UIMapsPropsForm};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
7
|
-
import { UIElement } from "
|
|
6
|
+
import type { IJodit } from "../../../../types";
|
|
7
|
+
import { UIElement } from "../../../../core/ui/element";
|
|
8
8
|
|
|
9
9
|
export declare class UIWysiwyg extends UIElement {
|
|
10
10
|
className(): string;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,o,
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,o,r){var i,s=arguments.length,l=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(l=(s<3?i(l):s>3?i(t,o,l):i(t,o))||l);return s>3&&l&&Object.defineProperty(t,o,l),l};import{component as t}from"../../../../core/decorators/component/component.js";import{assert as o}from"../../../../core/helpers/utils/assert.js";import{UIElement as r}from"../../../../core/ui/element.js";import{JoditPro as i}from"../../../../jodit-pro.js";let s=class UIWysiwyg extends r{className(){return"UIWysiwyg"}constructor(e,t,r,s){super(e);const l=this.getElm("editor");o(null!=l,"editor element does not exist");const n=i.make(l,{buttons:["bold","italic","image"],height:100,minHeight:100,allowResizeY:!1,allowResizeX:!1,disablePlugins:["mobile","backup","highlight-signature","tune-block","show-blocks"],toolbarButtonSize:"small",language:e.o.language,direction:e.o.direction,theme:e.o.theme,statusbar:!1,...t});n.value=r,n.e.on("change",(()=>s(n.value)))}render(){return"<div>\n\t\t\t<div class='&__label'>~Info~</div>\n\t\t\t<div class='&__editor'></div>\n\t\t</div>"}};s=e([t],s);export{s as UIWysiwyg};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
7
|
-
import { Plugin } from "
|
|
6
|
+
import type { IJodit } from "../../types";
|
|
7
|
+
import { Plugin } from "../../core/plugin";
|
|
8
8
|
export declare class googleSearch extends Plugin {
|
|
9
9
|
/** @override */
|
|
10
10
|
static requires: string[];
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{trim as o}from"
|
|
6
|
+
import{trim as o}from"../../core/helpers.js";import{Plugin as e}from"../../core/plugin.js";import r from"./icon.svg.js";import{Config as t}from"../../config.js";import{isEditorEmpty as s}from"../placeholder/placeholder.js";import{JoditPro as c}from"../../jodit-pro.js";t.prototype.controls.google={tooltip:"Google search",icon:r,isDisabled:o=>s(o.editor),command:"startSearch"};export class googleSearch extends e{constructor(){super(...arguments),this.buttons=[{name:"google",group:"search"}]}afterInit(e){e.registerCommand("startSearch",{exec:()=>{let r;const{s:t}=e;if(r=t.isCollapsed()?t.current()?.parentElement?.innerText:t.sel?.toString(),r){const e="https://www.google.com/search?q="+encodeURIComponent(o(r));window.open(e,"_blank")}}})}beforeDestruct(o){}}googleSearch.requires=["license"],c.plugins.add("google-search",googleSearch);
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { HTMLTagNames, IDictionary, IJodit } from "
|
|
7
|
-
import { Plugin } from "
|
|
6
|
+
import type { HTMLTagNames, IDictionary, IJodit } from "../../types";
|
|
7
|
+
import { Plugin } from "../../core/plugin/plugin";
|
|
8
8
|
declare module 'jodit/config' {
|
|
9
9
|
interface Config {
|
|
10
10
|
highlightSignature: {
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,r,i){var o,s=arguments.length,
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,r,i){var o,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,i);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(s<3?o(a):s>3?o(t,r,a):o(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};import{autobind as t,debounce as r}from"../../core/decorators.js";import{Dom as i}from"../../core/dom/dom.js";import{attr as o}from"../../core/helpers/utils/attr.js";import{Plugin as s}from"../../core/plugin/plugin.js";import{Config as a}from"../../config.js";import{JoditPro as n}from"../../jodit-pro.js";a.prototype.highlightSignature={schema:{},excludeTags:["pre"]};export class highlightSignature extends s{constructor(){super(...arguments),this.idleId=0}afterInit(e){Object.keys(e.o.highlightSignature.schema).length&&e.e.on("change afterSetMode",this.walkNodes).on("afterGetValueFromEditor",highlightSignature.removeUtilWrappers)}beforeDestruct(e){e.e.off("change afterSetMode",this.walkNodes).off("afterGetValueFromEditor",highlightSignature.removeUtilWrappers)}walkNodes(){if(!this.j.isEditorMode())return;this.checkUtilsBoxToSchema();const{j:e}=this,t=e.ed.createNodeIterator(e.editor,NodeFilter.SHOW_TEXT);this.j.async.cancelIdleCallback(this.idleId),this.workLoop(t)}runWorker(e,t){let r;this.j.e.mute();try{do{if(r=t.nextNode(),!r)return;if(this.checkNormalizing(r))return;this.checkReplaceSchemas(r)}while(r&&e.timeRemaining()>0)}finally{this.j.e.unmute()}this.workLoop(t)}workLoop(e){this.idleId=this.j.async.requestIdleCallback((t=>{this.runWorker(t,e)}),{timeout:this.j.defaultTimeout})}checkNormalizing(e){return!!i.isText(e.nextSibling)&&(this.j.editor.normalize(),this.walkNodes(),!0)}checkReplaceSchemas(e){if(highlightSignature.hasUtilWrapper(e))return;const t=e.nodeValue;if(null==t)return;const{j:r}=this,o=r.o.highlightSignature;for(const r in o.schema){const s=RegExp(r);if(s.test(t)){const a=t.match(s);if(!a||void 0===a.index)continue;const n=o.schema[r](this.j,a);if(n)return i.markTemporary(n,{dataHighlightSchema:r}),void this.replaceMatchedTextToElm(e,t,a,n)}}}replaceMatchedTextToElm(e,t,r,o){const{j:s}=this,{range:a}=s.s,n=a.startContainer===e,h=a.startOffset,l=r.index??0;e.nodeValue=t.substring(0,l);const c=t.substring(l+r[0].length);if(c.length){const t=s.createInside.text(c);i.after(e,t)}o.innerText=r[0],i.after(e,o),n&&this.restoreCursorPosition(h,e,o.firstChild,o.nextSibling)}static hasUtilWrapper(e){return i.isTemporary(e.parentElement)}static removeUtilWrappers(e){e.value=i.replaceTemporaryFromString(e.value)}restoreCursorPosition(e,...t){for(const r of t)if(r&&r.nodeValue){const t=r.nodeValue;if(t.length>=e){const t=this.j.s.createRange();t.setStart(r,e),this.j.s.selectRange(t,!1);break}e-=t.length}}checkUtilsBoxToSchema(){i.temporaryList(this.j.editor).forEach((e=>{const t=o(e,"dataHighlightSchema");if(!t)return;const r=RegExp(t),s=e.innerText??"";r.test(s)&&!s.replace(r,"").length||(this.j.s.save(),i.unwrap(e),this.j.s.restore())}))}}highlightSignature.requires=["license"],e([r()],highlightSignature.prototype,"walkNodes",null),e([t],highlightSignature.prototype,"runWorker",null),n.plugins.add("highlight-signature",highlightSignature);
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{Dom as o}from"
|
|
6
|
+
import{Dom as o}from"../../core/dom/dom.js";import{isArray as r}from"../../core/helpers/checker/is-array.js";import i from"./icon.svg.js";import{Config as e}from"../../config.js";e.prototype.controls.iframeEditor={icon:i,tooltip:"Iframe Editor",exec:(r,i)=>{o.isTag(i,"jodit")&&o.isTag(i.firstElementChild,"iframe")&&(i=i.firstElementChild),r.e.fire("toggleIframeEditor",o.isTag(i,"iframe")?i:null)}},r(e.prototype.popup.iframe)&&e.prototype.popup.iframe.push("iframeEditor");
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
7
|
-
import { Plugin } from "
|
|
6
|
+
import type { IJodit } from "../../types";
|
|
7
|
+
import { Plugin } from "../../core/plugin";
|
|
8
8
|
import "./config";
|
|
9
9
|
export declare class IframeEditor extends Plugin {
|
|
10
10
|
/** @override */
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,r,o){var i,s=arguments.length,a=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var d=e.length-1;d>=0;d--)(i=e[d])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};import{autobind as t,watch as r}from"
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,r,o){var i,s=arguments.length,a=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var d=e.length-1;d>=0;d--)(i=e[d])&&(a=(s<3?i(a):s>3?i(t,r,a):i(t,r))||a);return s>3&&a&&Object.defineProperty(t,r,a),a};import{autobind as t,watch as r}from"../../core/decorators.js";import{Dom as o}from"../../core/dom.js";import{attr as i,css as s}from"../../core/helpers.js";import{Plugin as a}from"../../core/plugin.js";import{Button as d}from"../../core/ui/button.js";import{Dialog as l}from"../../modules.js";import"./config.js";import{UIIframeEditor as c}from"./ui/iframe-editor/iframe-editor.js";import{JoditPro as n}from"../../jodit-pro.js";export class IframeEditor extends a{constructor(){super(...arguments),this.buttons=[{group:"form",name:"iframeEditor"}]}afterInit(e){e.e.on("toggleIframeEditor",this.toggleEditor)}toggleEditor(e){this.__dialog||(this.__dialog=new l({language:this.j.o.language,theme:this.j.o.theme}),this.__dialog.setHeader("Iframe Properties").setSize(470,400)),e&&!o.isTag(e,"iframe")&&(e=void 0);const t=new c(this.__dialog,{src:e?.src??"",name:e?.name??"",title:e?.title??"",frameBorder:"1"===e?.frameBorder||"yes"===e?.frameBorder,width:e?.offsetWidth??700,height:e?.offsetHeight??400});this.__dialog.setContent(t);const r=this.__dialog;r.isOpened?r.close():(r.setFooter([d(r,"cancel","Cancel","default").onAction((()=>r.close())),d(r,"ok",e?"Update":"Insert","primary").onAction((()=>{if(!t.srcField.value)return t.srcField.validate(),void t.srcField.focus();e||(e=this.j.createInside.element("iframe"),this.j.s.insertNode(e,!0,!1)),e.className=t.state.className||"",i(e,{src:t.state.src,title:t.state.title,name:t.state.name,frameborder:t.state.frameBorder?"1":"0",width:t.state.width,height:t.state.height}),o.isTag(e.parentElement,"jodit")&&s(e.parentElement,{width:t.state.width,height:t.state.height}),this.jodit.e.fire("synchro"),r.close()}))]).open(),this.jodit.async.requestIdleCallback((()=>{t.srcField.focus()})))}onDblClick(e){o.isTag(e.target,"iframe")&&this.toggleEditor(e.target)}beforeDestruct(e){this.__dialog?.destruct()}}IframeEditor.requires=["license","color-picker"],e([t],IframeEditor.prototype,"toggleEditor",null),e([r(":dblclick")],IframeEditor.prototype,"onDblClick",null),n.plugins.add("iframe-editor",IframeEditor);
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import { UIGroup, UIInput } from "
|
|
6
|
+
import { UIGroup, UIInput } from "../../../../core/ui";
|
|
7
7
|
|
|
8
|
-
import type { IframeEditorState } from "
|
|
8
|
+
import type { IframeEditorState } from "../../interface";
|
|
9
9
|
export declare class UIIframeEditor extends UIGroup {
|
|
10
10
|
className(): string;
|
|
11
11
|
readonly state: IframeEditorState;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,a,r){var s,n=arguments.length,i=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,a,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(n<3?s(i):n>3?s(t,a,i):s(t,a))||i);return n>3&&i&&Object.defineProperty(t,a,i),i};import{component as t}from"
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,a,r){var s,n=arguments.length,i=n<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,a):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,a,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(i=(n<3?s(i):n>3?s(t,a,i):s(t,a))||i);return n>3&&i&&Object.defineProperty(t,a,i),i};import{component as t}from"../../../../core/decorators/component/component.js";import{UIBlock as a,UICheckbox as r,UIGroup as s,UIInput as n}from"../../../../core/ui/index.js";let i=class UIIframeEditor extends s{className(){return"UIIframeEditor"}constructor(e,t){super(e),this.state={src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""},Object.assign(this.state,t),this.srcField=new n(e,{label:"URL",type:"url",required:!0,value:this.state.src,onChange:e=>{this.state.src=e}}),this.append([this.srcField,new a(e,[new n(e,{label:"Width",type:"number",value:this.state.width,onChange:e=>{this.state.width=parseInt(e,10)||0}}),new n(e,{label:"Height",type:"number",value:this.state.height,onChange:e=>{this.state.height=parseInt(e,10)||0}})],{className:this.getFullElName("block"),align:"center"}),new a(e,[new r(e,{label:"Show frame border",checked:Boolean(t.frameBorder),onChange:e=>{this.state.frameBorder="true"===e}})]),new n(e,{label:"Name",value:this.state.name,type:"text",onChange:e=>{this.state.name=e}}),new n(e,{label:"Title",value:this.state.title,type:"text",onChange:e=>{this.state.title=e}})])}};i=e([t],i);export{i as UIIframeEditor};
|
package/esm/plugins/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "
|
|
6
|
+
import "./license/license";
|
|
7
|
+
import "./autocomplete/autocomplete";
|
|
8
|
+
import "./paste-from-word/paste-from-word";
|
package/esm/plugins/index.js
CHANGED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import"
|
|
6
|
+
import"./license/license.js";import"./autocomplete/autocomplete.js";import"./paste-from-word/paste-from-word.js";
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { ButtonGroup, IDictionary } from "
|
|
6
|
+
import type { ButtonGroup, IDictionary } from "../../types";
|
|
7
7
|
import type { IKeys, ILayoutKeys } from "./interface";
|
|
8
8
|
declare module 'jodit/config' {
|
|
9
9
|
interface Config {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import t from"./icon.svg.js";import{Config as e}from"
|
|
1
|
+
import t from"./icon.svg.js";import{Config as e}from"../../config.js";e.prototype.keyboard={defaultLayoutSet:"en",showLayoutSwitcher:!0,extraKeyGroup:"other",extraKeyButtons:[],delayKeyRepeat:350,periodKeyRepeat:100,layoutList:{en:{title:"English",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},es:{title:"Español",keys:[["º ` ~","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _ |","¡ = +","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","i I","o O","p P","[ {","] }","ç Ç \\"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ñ Ñ ; :","' \"","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},de:{title:"Deutsch",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 * :","9 ( {","0 ) }","- _","= +","Backspace"],["Tab","q Q","w W","e E","r R","t T","z Z","u U","i I","o O","p P","ü Ü [","] }","\\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ö Ö ;","ä Ä ' \"","Enter"],["Shift","y Y","x X","c C","v V","b B","n N","m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},ru:{title:"Русский",keys:[["` ~ ±","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","й Й","ц Ц","у У","к К","е Е","н Н","г Г","ш Ш","щ Щ","з З","х Х [","ъ ] {","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ж Ж ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","ь Ь","б Б ,","ю Ю .","/ ?","Shift"],["Options","Space","Options"]]},tr:{title:"Türkçe",keys:[['" é` ~',"1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 ) }","- _ [","= + ]","Backspace"],["Tab","q Q","w W","e E","r R","t T","y Y","u U","ı I","o O","p P","ğ Ğ","ü Ü",", \\ |"],["Caps","a A","s S","d D","f F","g G","h H","j J","k K","l L","ş Ş","i̇ İ","Enter"],["Shift","z Z","x X","c C","v V","b B","n N","m M","ö Ö <","ç Ç >",". / ?","Shift"],["Options","Space","Options"]]},iw:{title:"Hebrew",keys:[["` ~ ±","1 ! §","2 @","3 #","4 $","5 %","6 ^","7 &","8 *","9 (","0 )","- _","= +","Backspace"],["Tab","/ q Q","' w W","ק e E","ר r R","א t T","ט y Y","ו u U","ן i I","ם o O","פ p P","[ {","] }","\\ |"],["Caps","ש a A","ד s S","ג d D","כ f F","ע g G","י h H","ח j J","ל k K","ך l L","ף ; :","' \"","Enter"],["Shift","ז z Z","ס x X","ב c C","ה v V","נ b B","מ n N","צ m M",", <",". >","/ ?","Shift"],["Options","Space","Options"]]},tata:{title:"Tata",keys:[["һ Һ` ~","1 ! §",'2 @ "',"3 # :","4 $ <","5 % >","6 ^ ±","7 &","8 *","9 ( {","0 )","- _","= +","Backspace"],["Tab","й Й","ө Ө","у У","к К","е Е","н Н","г Г","ш Ш","ә Ә","з З","х Х [","ү Ү ]","\\ | }"],["Caps","ф Ф","ы Ы","в В","а А","п П","р Р","о О","л Л","д Д","ң Ң ;","э Э '","Enter"],["Shift","я Я","ч Ч","с С","м М","и И","т Т","җ Җ","б Б ,","ю Ю .","ґ Ґ /","Shift"],["Options","Space","Options"]]}},layoutSwitchList:["en","es","de","ru","tr","iw","tata"],keySize:32,layout:[[1,1,1,1,1,1,1,1,1,1,1,1,1,2],[1.5,1,1,1,1,1,1,1,1,1,1,1,1,1.5],[1.8,1,1,1,1,1,1,1,1,1,1,1,2.2],[2.5,1,1,1,1,1,1,1,1,1,1,2.5],[3.5,9,3.5]]},e.prototype.controls.keyboard={tooltip:"Keyboard",icon:t,isActive:t=>Boolean(t.e.fire("isKeyboardOpened")),command:"toggleKeyboard"},e.prototype.controls.extraKeyboardButtons={};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
7
|
-
import { Plugin } from "
|
|
6
|
+
import type { IJodit } from "../../types";
|
|
7
|
+
import { Plugin } from "../../core/plugin";
|
|
8
8
|
import "./config";
|
|
9
9
|
export declare class keyboard extends Plugin {
|
|
10
10
|
/** @override */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=this&&this.__decorate||function(e,t,o,r){var s,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};import{autobind as t}from"
|
|
1
|
+
var e=this&&this.__decorate||function(e,t,o,r){var s,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};import{autobind as t}from"../../core/decorators.js";import{isString as o}from"../../core/helpers/checker.js";import{Plugin as r}from"../../core/plugin.js";import{UISelect as s}from"../../core/ui/index.js";import{Dialog as i}from"../../modules.js";import"./config.js";import{UIKeyboard as a}from"./ui/keyboard/keyboard.js";import{Config as n}from"../../config.js";import{JoditPro as d}from"../../jodit-pro.js";export class keyboard extends r{constructor(e){super(e),this.hasStyle=!d.fatMode,this.buttons=[{group:"insert",name:"keyboard"}];const{extraKeyButtons:t,extraKeyGroup:r}=e.o.keyboard;t.length&&t.forEach(((t,s)=>{const i=o(t)?t:t.key,a=o(t)||!t.hotkeys?[`ctrl+${s+1}`]:t.hotkeys;e.registerButton({name:`extraKeyboardButtons.${i}`,group:r});const{extraKeyboardButtons:d}=n.defaultOptions.controls;d[i]={name:i,tooltip:i,args:[i],hotkeys:a,command:"insertChar"}}))}afterInit(e){e.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),e.e.on("isKeyboardOpened",(()=>this.__keyboard?.isOpened))}insertChar(e,t,o){this.j.s.insertNode(this.j.createInside.text(o))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new i({toolbarButtonSize:"tiny"});const e=new a(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(e);const{showLayoutSwitcher:t,layoutSwitchList:o,layoutList:r}=this.j.o.keyboard;if(t){const t=new s(this.__keyboard,{value:e.state.currentLayout,options:o.map((e=>({text:r[e]?.title??e,value:e}))),onChange(t){e.state.currentLayout=t}});t.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(t)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(e){this.__keyboard?.destruct()}}keyboard.requires=["license"],e([t],keyboard.prototype,"insertChar",null),e([t],keyboard.prototype,"toggleKeyboard",null),d.plugins.add("keyboard",keyboard);
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
7
|
-
import { UIElement } from "
|
|
6
|
+
import type { IJodit } from "../../../../types";
|
|
7
|
+
import { UIElement } from "../../../../core/ui";
|
|
8
8
|
|
|
9
9
|
export declare class UIKeyboard extends UIElement<IJodit> {
|
|
10
10
|
/** @override */
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e
|
|
6
|
+
var t,e=this&&this.__decorate||function(t,e,s,o){var r,a=arguments.length,i=a<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,s,o);else for(var n=t.length-1;n>=0;n--)(r=t[n])&&(i=(a<3?r(i):a>3?r(e,s,i):r(e,s))||i);return a>3&&i&&Object.defineProperty(e,s,i),i};import{NBSP_SPACE as s}from"../../../../core/constants.js";import{autobind as o,component as r,hook as a,watch as i}from"../../../../core/decorators.js";import{attr as n}from"../../../../core/helpers/utils.js";import{Icon as c,UIElement as h}from"../../../../core/ui/index.js";import p from"../assets/backspace.svg.js";import l from"../assets/caps.svg.js";import u from"../assets/dots.svg.js";import y from"../assets/shift.svg.js";import d from"../assets/tab.svg.js";let f=t=class UIKeyboard extends h{className(){return"UIKeyboard"}render(){const{layout:t,keySize:e}=this.j.options.keyboard,s=t.length;return`<div>${(()=>{const o=[];for(let r=0;r<s;r+=1){const s=[];for(let o=0;o<t[r].length;o+=1)s.push(`<div style="width:${e*t[r][o]}px;height:${e}px;" class="&__key"></div>`);o.push(`<div class='&__row'>${s.join("\n")}</div>`)}return o.join("\n")})()}</div>`}onStateChange(){const{currentLayout:e,options:s,shift:o,caps:r}=this.state,{keys:a}=this.j.o.keyboard.layoutList[e];let i=0;for(let e=0;e<a.length;e+=1)for(let n=0;n<a[e].length;n+=1){const c=a[e][n].split(" ");let h=c[0];o&&(h=c[1]),!o&&r&&c[1]&&t.isLetter(c[0])&&(h=c[1]),s&&(h=c[2]),this.setKeyValue(i,h??c[0]),i+=1}}static isLetter(t){return t.toLowerCase()!==t.toUpperCase()}setKeyValue(e,s){const o=this._keys[e];if(!o)return;let r=!1;const{options:a,shift:i,caps:c}=this.state;switch(s){case"Caps":r=c;break;case"Options":r=a;break;case"Shift":r=i}o.innerHTML=t.decorate(s),o.classList.toggle(this.getFullElName("key","active",!0),r),n(o,"-key",s)}onKeyUp(){this.pressed&&this.stopPress()}onReady(){this.j.e.on(this.getElms("key"),"mouseenter",this.stopPress)}stopPress(){this.pressed&&(this.pressed=!1,this.j.async.clearTimeout(this.reKeyDownTimeout),this._keys.forEach((t=>{t.classList.remove(this.getFullElName("key","pressed",!0))})))}onKeyDown(t,e=0){const o=t.target;if(!o||!o.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,o.classList.add(this.getFullElName("key","pressed",!0));const r=n(o,"-key");switch(r){case"Caps":this.state.caps=!this.state.caps;break;case"Shift":this.state.shift=!this.state.shift;break;case"Options":this.state.options=!this.state.options;break;case"Enter":case"Backspace":this.j.e.fire("keydown",{key:r,preventDefault(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(s));break;default:this.state.shift&&(this.state.shift=!1),r&&this.j.s.insertNode(this.j.createInside.text(r))}const{periodKeyRepeat:a,delayKeyRepeat:i}=this.j.o.keyboard;return this.reKeyDownTimeout=this.j.async.setTimeout((()=>this.onKeyDown(t,a)),e||i),!1}constructor(t){super(t),this.state={caps:!1,shift:!1,options:!1,currentLayout:this.j.o.keyboard.defaultLayoutSet},this._keys=this.getElms("key"),this.pressed=!1,this.reKeyDownTimeout=0,this.onStateChange()}static decorate(t){switch(t){case"Space":return"";case"Enter":return c.get("enter");case"Backspace":return p;case"Shift":return y;case"Caps":return l;case"Options":return u;case"Tab":return d;default:return t}}};e([i(["state.currentLayout","state.options","state.shift","state.caps"])],f.prototype,"onStateChange",null),e([i(["ow:mouseup"])],f.prototype,"onKeyUp",null),e([a("ready")],f.prototype,"onReady",null),e([o],f.prototype,"stopPress",null),e([i(["container:mousedown","container:touchstart"])],f.prototype,"onKeyDown",null),f=t=e([r],f);export{f as UIKeyboard};
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IViewBased } from "
|
|
7
|
-
import { Plugin } from "
|
|
8
|
-
import type { IViewOptionsPro } from "
|
|
6
|
+
import type { IViewBased } from "../../types";
|
|
7
|
+
import { Plugin } from "../../core/plugin/plugin";
|
|
8
|
+
import type { IViewOptionsPro } from "../../types/view";
|
|
9
9
|
export declare class license<T extends IViewBased<IViewOptionsPro> = IViewBased<IViewOptionsPro>> extends Plugin<T> {
|
|
10
10
|
static make(jodit: IViewBased<IViewOptionsPro>): license;
|
|
11
11
|
/** @override */
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{IS_TEST as e}from"
|
|
6
|
+
import{IS_TEST as e}from"../../core/constants.js";import{Dom as t}from"../../core/dom/dom.js";import{isBoolean as o}from"../../core/helpers/checker/is-boolean.js";import{isString as s}from"../../core/helpers/checker/is-string.js";import{Plugin as r}from"../../core/plugin/plugin.js";import{validateLicense as i}from"./helpers/helpers.js";import{JoditPro as n}from"../../jodit-pro.js";export class license extends r{static make(e){return new license(e)}afterInit(t){this.j.e.on("checkReserve",(async()=>{const t=this.j.o.license,o=location.host;if(!s(t))return"";let r=i(t,o);return!r&&t[12]>"A"&&!e&&(r=await this.validateLicenseRemote(t,o)),r?"normal":""}))}beforeDestruct(e){}async validateLicenseRemote(e,s){const r="validateJoditLicenseRemote",n=this.j.storage.get(r);if(n&&i(n,s))return!0;const c=document.createElement("script");return c.src=`https://xdsoft.net/jodit/pro/api/licenses/validate/?code=${encodeURIComponent(e)}&host=${encodeURIComponent(s)}`,document.body.appendChild(c),this.j.async.promise((e=>{window.onJoditResolveKeyCode=n=>{try{if(o(n))return e(n);i(n,s)?(this.j.storage.set(r,n),e(!0)):e(!1)}finally{t.safeRemove(c)}},this.j.async.setTimeout((()=>{e(!1),t.safeRemove(c)}),3e3)}))}}n.plugins.add("license",license);
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{dataBind as e}from"
|
|
6
|
+
import{dataBind as e}from"../../core/helpers/utils/data-bind.js";import o from"./icon.svg.js";import{Config as i}from"../../config.js";i.prototype.mobileView={mode:"default"};export const dataBindStoredKey="buttonmobileSView";export const dataBindCurrentKey="buttonmobileCView";i.prototype.controls.mobileView={tooltip:"Mobile View",icon:o,command:"mobileView",isActive:o=>e(o,dataBindCurrentKey)&&"default"!==e(o,dataBindCurrentKey),isChildActive:(o,i)=>e(o,dataBindCurrentKey)===i.control.args?.[1],exec:o=>{if(!e(o,dataBindStoredKey))return!1;o.execCommand("mobileView",!1,e(o,dataBindStoredKey))},childExec:(e,o,{button:i})=>{e.execCommand("mobileView",!1,Number(i.control?.args?.[0]))},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}};
|