jodit-pro 2.0.0-beta.28 → 2.0.0-beta.32
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 +320 -41
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +499 -333
- package/es2015/jodit.min.css +1 -1
- 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 +3 -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 +6 -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 +2 -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 +4 -3
- package/es2015/plugins/emoji/emoji.min.js +2 -2
- 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 +21 -2
- package/es2015/plugins/finder/finder.min.js +2 -2
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +9 -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 +2 -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 +2 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +13 -16
- package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
- 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 +2 -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 +3 -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 +5 -4
- package/es2015/plugins/tune-block/tune-block.min.js +2 -2
- package/es2018/jodit.css +320 -41
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +500 -332
- package/es2018/jodit.min.css +1 -1
- 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 +3 -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 +6 -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 +2 -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 +4 -3
- 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 +1 -1
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +21 -2
- 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 +9 -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 +2 -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 +2 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.js +13 -16
- package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
- 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 +2 -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 +3 -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 +5 -4
- package/es2018/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021/jodit.css +320 -41
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +490 -330
- package/es2021/jodit.min.css +1 -1
- 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 +3 -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 +6 -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 +2 -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 +4 -3
- 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 +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +21 -2
- package/es2021/plugins/finder/finder.min.js +2 -2
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +9 -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 +2 -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 +2 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +13 -15
- package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
- 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 +2 -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 +3 -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 +5 -4
- package/es2021/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021.en/jodit.css +320 -41
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +490 -330
- package/es2021.en/jodit.min.css +1 -1
- 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 +3 -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 +6 -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 +2 -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 +4 -3
- 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 +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +21 -2
- package/es2021.en/plugins/finder/finder.min.js +2 -2
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +9 -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 +2 -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 +2 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +13 -15
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
- 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 +2 -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 +3 -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 +5 -4
- package/es2021.en/plugins/tune-block/tune-block.min.js +2 -2
- package/es5/jodit.css +397 -54
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +645 -465
- package/es5/jodit.min.css +3 -3
- 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 +5 -3
- 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 +8 -3
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- package/es5/plugins/change-case/change-case.js +2 -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 +3 -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 +5 -3
- package/es5/plugins/emoji/emoji.min.js +2 -2
- package/es5/plugins/export-docs/export-docs.js +3 -3
- 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 +33 -19
- 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 +25 -22
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- package/es5/plugins/google-search/google-search.js +2 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +2 -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 +3 -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 +9 -13
- package/es5/plugins/keyboard/keyboard.min.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.js +15 -17
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +2 -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 +5 -6
- package/es5/plugins/paste-code/paste-code.min.js +2 -2
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +3 -3
- 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 +3 -3
- 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 +6 -5
- 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 +6 -4
- package/es5/plugins/tune-block/tune-block.min.js +2 -2
- package/esm/config.js +1 -1
- package/esm/core/ui/form/range/range.js +1 -1
- package/esm/plugins/autocomplete/ui/autocomplete.js +1 -1
- package/esm/plugins/backup/ui/box.js +1 -1
- package/esm/plugins/backup/ui/list.js +1 -1
- package/esm/plugins/button-generator/ui/button/button.js +2 -2
- package/esm/plugins/button-generator/ui/generator/button-generator.js +1 -1
- package/esm/plugins/button-generator/ui/preview/preview.js +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/ui/emoji.js +1 -1
- package/esm/plugins/finder/browser.js +1 -1
- package/esm/plugins/finder/helpers/context-menu.js +1 -1
- package/esm/plugins/finder/helpers/history-manager.js +1 -1
- package/esm/plugins/finder/helpers/loading-manager.js +1 -1
- package/esm/plugins/finder/helpers/persistent-store.js +2 -2
- 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 +2 -2
- package/esm/plugins/finder/ui/progress/progress.js +2 -2
- package/esm/plugins/finder/ui/settings/settings.js +1 -1
- package/esm/plugins/finder/ui/sidebar/sidebar.js +2 -2
- 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/statusbar/statusbar.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/ui/editors/marker/marker.js +1 -1
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +1 -1
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +1 -1
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +1 -1
- package/esm/plugins/google-maps/ui/maps-props/maps-props.js +1 -1
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +1 -1
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js +1 -1
- package/esm/plugins/keyboard/ui/keyboard/keyboard.js +1 -1
- package/esm/plugins/mobile-view/config.js +1 -1
- package/esm/plugins/paste-code/paste-code.js +1 -1
- package/esm/plugins/paste-from-word/element/style.js +1 -1
- package/esm/plugins/translate/ui/list/list.js +1 -1
- package/esm/plugins/translate/ui/settings/settings.js +1 -1
- package/esm/plugins/tune-block/config.js +1 -1
- package/esm/plugins/tune-block/ui/tuner/tuner.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var t=this&&this.__decorate||function(t,e,s
|
|
1
|
+
var t=this&&this.__decorate||function(t,e,o,s){var i,r=arguments.length,h=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,o,s);else for(var a=t.length-1;a>=0;a--)(i=t[a])&&(h=(r<3?i(h):r>3?i(e,o,h):i(e,o))||h);return r>3&&h&&Object.defineProperty(e,o,h),h};
|
|
2
2
|
/*!
|
|
3
3
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4
4
|
* See LICENSE.md in the project root for license information.
|
|
5
5
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
6
|
-
*/import{ViewComponent as e}from"jodit/esm/core/component/index.js";import{component as
|
|
6
|
+
*/import{ViewComponent as e}from"jodit/esm/core/component/index.js";import{component as o,persistent as s,watch as i}from"jodit/esm/core/decorators/index.js";import{FileBrowserItem as r}from"jodit/esm/modules/file-browser/builders/item.js";let h=class PersistentStore extends e{className(){return"PersistentStore"}constructor(t,e){super(t),this.state=e,this.sortBy="changed-desc",this.view="tiles",this.foldersPosition="top",this.tileSize="default",this.favorites=[],this.showSideBar=!0,this.showPreview=!1,this.showFavorites=!0}onChangeThemeSetField(){this.theme=this.state.theme}onChangeView(){this.view=this.state.view}onChangeSortBy(){this.sortBy=this.state.sortBy}onChangeTileSize(){this.tileSize=this.state.tileSize}onChangeFavorites(){this.favorites=this.state.favorites}onChangeShowSideBar(){this.showSideBar=this.state.showSideBar}onChangeShowPreview(){this.showPreview=this.state.showPreview}onChangeShowFavorites(){this.showFavorites=this.state.showFavorites}onChangeFoldersPosition(){this.foldersPosition=this.state.foldersPosition}syncWithState(){this.state.tileSize=this.tileSize,this.state.favorites=this.favorites.map((t=>t instanceof r?t:r.create(t))),this.state.view=this.view,this.state.theme=this.theme,this.state.showSideBar=this.showSideBar,this.state.showPreview=this.showPreview,this.state.showFavorites=this.showFavorites,this.state.sortBy=this.sortBy,this.state.foldersPosition=this.foldersPosition}};t([s],h.prototype,"theme",void 0),t([s],h.prototype,"sortBy",void 0),t([s],h.prototype,"view",void 0),t([s],h.prototype,"foldersPosition",void 0),t([s],h.prototype,"tileSize",void 0),t([s],h.prototype,"favorites",void 0),t([s],h.prototype,"showSideBar",void 0),t([s],h.prototype,"showPreview",void 0),t([s],h.prototype,"showFavorites",void 0),t([i("state.theme")],h.prototype,"onChangeThemeSetField",null),t([i("state.view")],h.prototype,"onChangeView",null),t([i("state.sortBy")],h.prototype,"onChangeSortBy",null),t([i("state.tileSize")],h.prototype,"onChangeTileSize",null),t([i("state.favorites")],h.prototype,"onChangeFavorites",null),t([i("state.showSideBar")],h.prototype,"onChangeShowSideBar",null),t([i("state.showPreview")],h.prototype,"onChangeShowPreview",null),t([i("state.showFavorites")],h.prototype,"onChangeShowFavorites",null),t([i("state.foldersPosition")],h.prototype,"onChangeFoldersPosition",null),h=t([o],h);export{h as PersistentStore};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var
|
|
6
|
+
var t=this&&this.__decorate||function(t,e,r,o){var n,i=arguments.length,s=i<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,o);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(s=(i<3?n(s):i>3?n(e,r,s):n(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};import{UIElement as e}from"jodit/esm/core/ui/index.js";import{component as r}from"jodit/esm/core/decorators/component/component.js";import{assert as o}from"jodit/esm/core/helpers/utils/assert.js";let n=class UIBrowserFolder extends e{className(){return"UIBrowserFolder"}render(){return'<div>\n\t\t\t<div class="&__icon">\n\t\t\t\t<div class=\'&__loader\'></div>\n\t\t\t\t<div class="&__icon-wrapper">\n\t\t\t\t\t*folder*\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="&__name"></div>\n\t\t\t<div class="&__arrow">*angle-right*</div>\n\t\t</div>'}constructor(t,e){super(t),this.item=e,this.syncMod=!0;const r=this.getElm("name");o(null!=r,"name element does not exists"),r.innerText=e.name,t.e.on(this.container,"click",(()=>(this.getMod("active")||this.setMod("loading",!0),t.e.fire("openFolder",e)))).on(this.container,"contextmenu",(r=>t.e.fire("contextmenuFolder.filebrowser",e,r)))}};n=t([r],n);export{n as UIBrowserFolder};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,r,
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,r,o){var s,i=arguments.length,a=i<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 n=e.length-1;n>=0;n--)(s=e[n])&&(a=(i<3?s(a):i>3?s(t,r,a):s(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a};import{UIGroup as t,UIInput as r}from"jodit/esm/core/ui/index.js";import{component as o}from"jodit/esm/core/decorators/index.js";import{makeCollection as s}from"jodit/esm/modules/toolbar/factory.js";import{isString as i}from"jodit/esm/core/helpers/checker/is-string.js";let a=class UIBrowserHeader extends t{className(){return"UIBrowserHeader"}constructor(e,t,o){super(e),this.options=t,this.stateManager=o,this.syncMod=!0,this.toolbar=s(this.j),this.filter=new r(this.j,{icon:"search",placeholder:"Filter",clearButton:!0,onChange:e=>{this.stateManager.setFilter(e)}}),this.append(this.toolbar).append(this.filter),this.filter.container.classList.add(this.getFullElName("filter")),this.toolbar.setMod("mode","header").build(this.__getButtons())}__getButtons(){return(this.options.toolbarButtons??[]).filter((e=>{if(!i(e))return!0;switch(e){case"filebrowser.edit":return this.j.dataProvider.canI("ImageResize")||this.j.dataProvider.canI("ImageCrop");case"filebrowser.new-folder":return this.j.dataProvider.canI("FolderCreate");case"filebrowser.upload":return this.j.dataProvider.canI("FileUpload");case"filebrowser.remove":return this.j.dataProvider.canI("FileRemove")}return!0}))}};a=e([o],a);export{a as UIBrowserHeader};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};import{UIElement as t}from"jodit/esm/core/ui/index.js";import{component as i,watch as r}from"jodit/esm/core/decorators/index.js";import{FileBrowserItem as s}from"jodit/esm/modules/file-browser/builders/item.js";import{Dom as o}from"jodit/esm/modules/index.js";import{attr as n,css as l,ctrlKey as m}from"jodit/esm/core/helpers/index.js";import{assert as c}from"jodit/esm/core/helpers/utils/assert.js";
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,i,r){var s,o=arguments.length,n=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,r);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(n=(o<3?s(n):o>3?s(t,i,n):s(t,i))||n);return o>3&&n&&Object.defineProperty(t,i,n),n};import{UIElement as t}from"jodit/esm/core/ui/index.js";import{component as i,watch as r}from"jodit/esm/core/decorators/index.js";import{FileBrowserItem as s}from"jodit/esm/modules/file-browser/builders/item.js";import{Dom as o}from"jodit/esm/modules/index.js";import{attr as n,css as l,ctrlKey as m}from"jodit/esm/core/helpers/index.js";import{assert as c}from"jodit/esm/core/helpers/utils/assert.js";let a=class UIBrowserItem extends t{className(){return"UIBrowserItem"}constructor(e,t){super(e),this.item=s.create(t),e.e.on(this.container,"click contextmenu dblclick",(t=>(e.e.fire(t.type+"Item.filebrowser",this.item,m(t)||t.shiftKey,t),!1))),this.update()}render(){return"<div tabindex='-1'>\n\t\t\t<div class='&__image'></div>\n\t\t\t<div class='&__info'></div>\n\t\t\t<div class='&__heart'>*heart*</div>\n\t\t</div>"}onClickFavorite(){return this.bubble((e=>{this.jodit.e.fire(e,"toggleFavoriteItem",this.item)})),!1}onAction(e){return this.jodit.e.fire(e.type+"Item.filebrowser",this.item,m(e)||e.shiftKey,e),!1}update(){const e=this.getElm("image");c(null!=e,"image element does not exists"),l(e,"backgroundImage",`url(${encodeURI(this.item.imageURL)})`);const{type:t,file:i,time:r,size:s}=this.item;this.setMod("is-file",!1===this.item.isImage).setMod("type",t??"file").setElementValue("name",i).setElementValue("time",r).setElementValue("filesize",s),n(this.container,"title","folder"!==t?`${i} ${r} ${s}`:i),super.update()}setElementValue(e,t){const i=this.getFullElName(e);let r=this.getElm(e);if(!t)return r&&o.safeRemove(r),this;if(!r){const e=this.getElm("info");c(null!=e,"wrapper element does not exist"),r=this.j.create.div(i),e.appendChild(r)}return r.innerText=t,this}};e([r("heart:click")],a.prototype,"onClickFavorite",null),e([r(["container:click","container:contextmenu","container:dblclick"])],a.prototype,"onAction",null),a=e([i],a);export{a as UIBrowserItem};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e,t=this&&this.__decorate||function(e,t,s,i){var o,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(r<3?o(n):r>3?o(t,s,n):o(t,s))||n);return r>3&&n&&Object.defineProperty(t,s,n),n};import{Dialog as s,Dom as i,UIElement as o}from"jodit/esm/modules/index.js";import{component as r,watch as n,autobind as l}from"jodit/esm/core/decorators/index.js";import{css as
|
|
6
|
+
var e,t=this&&this.__decorate||function(e,t,s,i){var o,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(r<3?o(n):r>3?o(t,s,n):o(t,s))||n);return r>3&&n&&Object.defineProperty(t,s,n),n};import{Dialog as s,Dom as i,UIElement as o}from"jodit/esm/modules/index.js";import{component as r,watch as n,autobind as l}from"jodit/esm/core/decorators/index.js";import{css as a,loadImage as c}from"jodit/esm/core/helpers/index.js";import{KEY_LEFT as h,KEY_RIGHT as d,KEY_SPACE as m}from"jodit/esm/core/constants.js";import{assert as u}from"jodit/esm/core/helpers/utils/assert.js";let g=e=class UILightBox extends o{className(){return"UILightBox"}render(){return"<div>\n\t\t\t<div class='&__previous'>*angle-left*</div>\n\t\t\t<div class='&__preview'></div>\n\t\t\t<div class='&__loader'></div>\n\t\t\t<div class='&__next'>*angle-right*</div>\n\t\t</div>"}constructor(e,t,i){super(e),this.current=t,this.elements=i,this.dialog=new s;const{dialog:o}=this;o.setMod("theme",e.state.theme).toolbar.setMod("mode","header"),o.open(this),this.elements=this.elements.filter((e=>e.isImage)),o.e.on(o,"afterClose",(()=>{this.destruct()})),this.addGlobalListeners(),this.onChangeCurrent(),o.toolbar.build([{icon:"check",exec:()=>{e.stateManager.addActive(this.current,!1),e.e.fire("select.filebrowser"),o.close()}},"dialog.close"])}async onChangeCurrent(){const{current:e}=this;this.setMod("loading",!0);const t=this.getElm("preview");if(u(null!=t,"preview element does not exist"),i.detach(t),a(t,{backgroundImage:null}),e.isImage){const s=await c(e.fileURL,this.j);this.dialog.setPosition(),a(t,{width:Math.min(this.jodit.ow.innerWidth,s.naturalWidth),height:Math.min(this.jodit.ow.innerHeight-100,s.naturalHeight),backgroundImage:`url(${s.src})`})}else{const s=await this.makeIframe(e.fileURL);t.appendChild(s)}this.dialog.setSize(),this.dialog.setPosition(),this.setMod("loading",!1)}makeIframe(e){const t=this.j.c.element("iframe");return t.classList.add(this.getFullElName("office-iframe")),t.src=/\.pdf/.test(e)?e:this.j.o.previewOfficeURL+encodeURIComponent(e),t}onPreviousClick(){const{current:e}=this;let t=this.j.stateManager.getIndex(e,this.elements);t<=0?t=this.elements.length-1:t-=1,this.current=this.elements[t]}onNextClick(){const{current:e}=this;let t=this.j.stateManager.getIndex(e,this.elements);t>=this.elements.length-1?t=0:t+=1,this.current=this.elements[t]}static open(t,s,i){return new e(t,s,i)}addGlobalListeners(){this.j.e.on(this.j.od,"keydown",this.onKeyPress)}onKeyPress(e){if(e.key===h||e.key===d||e.key===m)return e.key===h?this.onPreviousClick():this.onNextClick(),!1}removeGlobalListeners(){this.j.e.off(this.j.od,"keydown",this.onKeyPress)}destruct(){return this.removeGlobalListeners(),this.dialog.destruct(),super.destruct()}};t([n("current")],g.prototype,"onChangeCurrent",null),t([n("previous:click")],g.prototype,"onPreviousClick",null),t([n("next:click")],g.prototype,"onNextClick",null),t([l],g.prototype,"onKeyPress",null),g=e=t([r],g);export{g as UILightBox};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,s,
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,s,i){var o,n=arguments.length,a=n<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,i);else for(var r=e.length-1;r>=0;r--)(o=e[r])&&(a=(n<3?o(a):n>3?o(t,s,a):o(t,s))||a);return n>3&&a&&Object.defineProperty(t,s,a),a};import{UIGroup as t}from"jodit/esm/core/ui/index.js";import{component as s,watch as i}from"jodit/esm/core/decorators/index.js";import{css as o,isNumber as n,scrollIntoViewIfNeeded as a}from"jodit/esm/core/helpers/index.js";import{UIVirtualScroll as r}from"jodit-pro/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js";import{UISidebar as h}from"jodit-pro/esm/plugins/finder/ui/sidebar/sidebar.js";import{UIBrowserSettings as l}from"jodit-pro/esm/plugins/finder/ui/settings/settings.js";import{UIBrowserSources as g}from"jodit-pro/esm/plugins/finder/ui/sources/sources.js";import{UIBrowserStatusBar as c}from"jodit-pro/esm/plugins/finder/ui/statusbar/statusbar.js";import{UIPreview as d}from"jodit-pro/esm/plugins/finder/ui/preview/preview.js";let p=class UIBrowserPanel extends t{className(){return"UIBrowserPanel"}get countInRow(){if("list"===this.state.view)return 1;if(!this.items.elements.length)return 1;const{container:e}=this.items.elements[0],t=o(e,"marginLeft");return Math.floor(this.items.container.offsetWidth/(e.offsetWidth+(n(t)?t:0)))}get countInColumn(){if(!this.items.elements.length)return 1;const{container:e}=this.items.elements[0],t=o(e,"marginTop");return Math.floor(this.items.container.offsetHeight/(e.offsetHeight+(n(t)?t:0)))}render(){return"<div>\n\t\t\t<div class='&__content'></div>\n\t\t\t<div class='&__footer'></div>\n\t\t</div>"}constructor(e,t){super(e),this.stateManager=t,this.syncMod=!0,this.sources=new g(this.j),this.sidebar=new h(this.jodit,[this.sources],this.stateManager.state),this.preview=new d(this.jodit,this.stateManager.state),this.statusbar=new c(this.j),this.items=new r(this.j,this.stateManager),this.settings=new l(this.jodit,this.stateManager.state),this.state=t.state,this.append(this.sidebar,"content"),this.append(this.items,"content"),this.append(this.settings,"content"),this.append(this.preview,"content"),this.append(this.statusbar,"footer"),this.onChangeElements(),this.onChangeSources(),this.onChangeView(),this.onChangeTileSize(),this.onChangeShowFavorites(),this.onChangeActiveElements(),this.onChangeFavorites(),this.onChangeShowSideBar(),this.onChangeShowSettings(),this.onChangeShowPreview(),this.onChangeTheme()}onChangeTheme(){this.setMod("theme",this.stateManager.state.theme)}onChangeElements(){this.items.build(this.stateManager.state.elements)}onChangeActiveElements(){this.state.activeElements.length||(this.state.info="",this.state.metaInfo=null),this.items.elements.forEach((e=>{e.setMod("active",Boolean(this.stateManager.isActive(e.item)))})),this.j.e.fire("changeSelection")}onChangeFavorites(){this.items.elements.forEach((e=>{e.setMod("favorite",Boolean(this.stateManager.isFavorite(e.item)))}))}onChangeSources(){this.sources.build(this.stateManager.state.tree)}onChangeLastSelectedIndex(){const e=this.items.elements[this.stateManager.state.lastSelectedIndex]?.container;e&&(a(e,this.items.container,this.j.od),e.focus())}onChangeInfo(){this.statusbar.value(this.state.info,"center")}onChangePathOrSource(){this.statusbar.value(this.state.currentPath?`${this.state.currentPath} (${this.state.currentSource})`:this.i18n("Home"),"left")}onChangeShowSettings(){this.settings.setMod("hidden",!this.stateManager.state.showSettings)}onChangeShowPreview(){this.preview.setMod("hidden",!this.stateManager.state.showPreview)}onChangeShowSideBar(){this.sidebar.setMod("hidden",!this.stateManager.state.showSideBar)}onChangeView(){this.items.setMod("view",this.stateManager.state.view)}onChangeTileSize(){this.items.setMod("size",this.stateManager.state.tileSize)}onChangeShowFavorites(){this.sidebar.setMod("show-favorites",this.stateManager.state.showFavorites),this.items.setMod("show-favorites",this.stateManager.state.showFavorites)}onItemDblClick(){return this.j.e.fire("select.filebrowser"),!1}onItemClick(e,t){this.stateManager.addActive(e,t)}onTogglePreview(){return this.state.showPreview=!this.state.showPreview,!1}onToggleFavoriteItem(e){this.stateManager.toggleFavorite(e)}onFolderClick(e){this.stateManager.state.currentSource=e.sourceName,this.stateManager.state.currentPath=e.path||"/",this.j.e.fire("afterOpenFolder.filebrowser")}};e([i("state.theme")],p.prototype,"onChangeTheme",null),e([i("state.elements")],p.prototype,"onChangeElements",null),e([i("state.activeElements")],p.prototype,"onChangeActiveElements",null),e([i(["state.favorites","state.elements"])],p.prototype,"onChangeFavorites",null),e([i("state.sources")],p.prototype,"onChangeSources",null),e([i("state.lastSelectedIndex")],p.prototype,"onChangeLastSelectedIndex",null),e([i("state.info")],p.prototype,"onChangeInfo",null),e([i(["state.currentPath","state.currentSource"])],p.prototype,"onChangePathOrSource",null),e([i("state.showSettings")],p.prototype,"onChangeShowSettings",null),e([i("state.showPreview")],p.prototype,"onChangeShowPreview",null),e([i("state.showSideBar")],p.prototype,"onChangeShowSideBar",null),e([i("state.view")],p.prototype,"onChangeView",null),e([i("state.tileSize")],p.prototype,"onChangeTileSize",null),e([i("state.showFavorites")],p.prototype,"onChangeShowFavorites",null),e([i(":dblclickItem.filebrowser")],p.prototype,"onItemDblClick",null),e([i(":clickItem.filebrowser")],p.prototype,"onItemClick",null),e([i(":togglePreview.filebrowser")],p.prototype,"onTogglePreview",null),e([i(":toggleFavoriteItem")],p.prototype,"onToggleFavoriteItem",null),e([i(":openFolder")],p.prototype,"onFolderClick",null),p=e([s],p);export{p as UIBrowserPanel};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var e=this&&this.__decorate||function(e,t,i
|
|
1
|
+
var e=this&&this.__decorate||function(e,t,s,i){var o,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(r<3?o(n):r>3?o(t,s,n):o(t,s))||n);return r>3&&n&&Object.defineProperty(t,s,n),n};
|
|
2
2
|
/*!
|
|
3
3
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4
4
|
* See LICENSE.md in the project root for license information.
|
|
5
5
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
6
|
-
*/import{UIGroup as t}from"jodit/esm/core/ui/group/group.js";import{component as
|
|
6
|
+
*/import{UIGroup as t}from"jodit/esm/core/ui/group/group.js";import{component as s,debounce as i,hook as o,watch as r}from"jodit/esm/core/decorators/index.js";import{css as n,loadImage as l}from"jodit/esm/core/helpers/utils/index.js";import{Dom as a}from"jodit/esm/core/dom/dom.js";import{assert as d}from"jodit/esm/core/helpers/utils/assert.js";import{UIResize as m}from"jodit-pro/esm/traits/resize/resize.js";import{UIBrowserItem as c}from"jodit-pro/esm/plugins/finder/ui/item/item.js";let h=class UIPreview extends t{className(){return"UIPreview"}addResize(){m.remove(this),m.install(this,screen.width>450?"left":"top")}render(){return'<div>\n\t\t\t\t<div class="&__image"></div>\n\t\t\t\t<div class="&__info"></div>\n\t\t\t\t<div class="&__loader"></div>\n\t\t\t\t<div class="&__empty-message">~Select image~</div>\n\t\t\t</div>'}constructor(e,t){super(e),this.state=t,this.lastLoadPromise=null,this.onChangeMetaInfo()}afterSetMod(e,t){"hidden"===e&&!1===t&&this.onChangeMetaInfo(),super.afterSetMod(e,t)}onChangeMetaInfo(){if(this.getMod("hidden"))return;const{metaInfo:e}=this.state;this.setMod("empty",!e);const t=this.getElm("info");d(null!=t,"info element does not exists"),a.detach(t);const s=this.getElm("image");d(null!=s,"image element does not exists"),n(s,{backgroundImage:null}),e&&(this.setMod("is-file",!1===e.isImage).setMod("type",e.type??"file"),c.prototype.setElementValue.call(this,"name",e.file),c.prototype.setElementValue.call(this,"time",e.time),c.prototype.setElementValue.call(this,"filesize",e.size),this.setMod("loading",!0),this.lastLoadPromise?.rejectCallback(),this.lastLoadPromise=l(e.isImage?e.fileURL:e.imageURL,this.j),this.lastLoadPromise.then((e=>{const t=this.getElm("image");d(null!=t,"image element does not exist"),e&&n(t,{backgroundImage:`url(${e.src})`})})).finally((()=>{this.setMod("loading",!1)})).catch((()=>{})))}};e([o("ready"),r(":resize",{context:window}),i()],h.prototype,"addResize",null),e([r("state.metaInfo")],h.prototype,"onChangeMetaInfo",null),h=e([s],h);export{h as UIPreview};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var e=this&&this.__decorate||function(e,s,r
|
|
1
|
+
var e=this&&this.__decorate||function(e,t,s,r){var o,i=arguments.length,h=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(h=(i<3?o(h):i>3?o(t,s,h):o(t,s))||h);return i>3&&h&&Object.defineProperty(t,s,h),h};
|
|
2
2
|
/*!
|
|
3
3
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4
4
|
* See LICENSE.md in the project root for license information.
|
|
5
5
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
6
|
-
*/import{ProgressBar as
|
|
6
|
+
*/import{ProgressBar as t}from"jodit/esm/core/ui/progress-bar/progress-bar.js";import{component as s,watch as r}from"jodit/esm/core/decorators/index.js";let o=class UIProgress extends t{className(){return"UIProgress"}constructor(e,t){super(e),this.state=t,this.onProgress()}onProgress(){this.state.progress?this.show():this.hide(),this.progress(this.state.progress)}hide(){return this.setMod("hidden",!0),this}progress(e){return this.container.style.width=e.toFixed(2)+"%",e>=98&&this.j.async.setTimeout((()=>{this.hide()}),{label:"progress",timeout:300}),this}show(){return this.setMod("hidden",!1),this}};e([r("state.progress")],o.prototype,"onProgress",null),o=e([s],o);export{o as UIProgress};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,s,a){var i,
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,s,a){var i,l=arguments.length,o=l<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,s):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,s,a);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(o=(l<3?i(o):l>3?i(t,s,o):i(t,s))||o);return l>3&&o&&Object.defineProperty(t,s,o),o};import{Icon as t,UIButtonGroup as s,UIGroup as a,UISelect as i}from"jodit/esm/core/ui/index.js";import{component as l,watch as o}from"jodit/esm/core/decorators/index.js";import{assert as n}from"jodit/esm/core/helpers/utils/assert.js";let r=class UIBrowserSettings extends a{className(){return"UIBrowserSettings"}render(){return`<div>\n\t\t\t<div class="${this.getFullElName("close")}">${t.get("cancel")}</div>\n\t\t\t<div class="${this.getFullElName("title")}">${this.j.i18n("Settings")}</div>\n\t\t\t<div class="${this.getFullElName("options")}"></div>\n\t\t</div>`}appendChildToContainer(e){const t=this.getElm("options");n(null!=t,"options element does not exists"),t.appendChild(e)}afterSetMod(e,t){"hidden"===e&&!1===t&&this.generateSettings(),super.afterSetMod(e,t)}constructor(e,t){super(e),this.state=t;const s=this.getElm("close");n(null!=s,"close element does not exists"),e.e.on(s,"click",(()=>{this.state.showSettings=!1}))}onChangeView(){const e=this.getElm("tile-size");e&&(e.style.display="tiles"===this.state.view?"block":"none")}generateSettings(){this.clear();const{j:e}=this;this.append([new s(e,{label:"Theme",name:"theme",value:this.state.theme,radio:!0,options:[{value:"default",text:"Light"},{value:"dark",text:"Dark"}],onChange:e=>{"default"===this.state.theme||"dark"===this.state.theme?this.state.theme=e[0].value:this.state.theme="default"}}),new s(e,{label:"Show favorites",name:"showFavorites",value:this.state.showFavorites,radio:!0,options:[{value:!0,text:"Show"},{value:!1,text:"Hide"}],onChange:e=>{this.state.showFavorites=e[0].value}}),new s(e,{label:"View",name:"view",value:this.state.view,radio:!0,options:[{value:"tiles",text:"Tiles"},{value:"list",text:"List"},{value:"compact",text:"Compact"}],onChange:e=>{this.state.view=e[0].value}}),new s(e,{label:"Folders position",name:"foldersPosition",value:this.state.foldersPosition,radio:!0,options:[{value:"top",text:"Top"},{value:"bottom",text:"Bottom"},{value:"default",text:"Default"}],onChange:e=>{this.state.foldersPosition=e[0].value}}),new i(e,{label:"Sort by",name:"sort-by",value:this.state.sortBy,options:[{value:"changed-asc",text:e.i18n("Sort by changed")+"(⬆)"},{value:"changed-desc",text:e.i18n("Sort by changed")+"(⬇)"},{value:"name-asc",text:e.i18n("Sort by name")+"(⬆)"},{value:"name-desc",text:e.i18n("Sort by name")+"(⬇)"},{value:"size-asc",text:e.i18n("Sort by size")+"(⬆)"},{value:"size-desc",text:e.i18n("Sort by size")+"(⬇)"}],onChange:e=>{this.state.sortBy=e}}),new i(e,{label:"Tile size",name:"tile-size",value:this.state.tileSize,options:[{value:"xsmall",text:"Extra small"},{value:"small",text:"Small"},{value:"default",text:"Default"},{value:"large",text:"Large"},{value:"xlarge",text:"Extra large"}],onChange:e=>{this.state.tileSize=e}})]),this.onChangeView()}};e([o("state.view")],r.prototype,"onChangeView",null),r=e([l],r);export{r as UIBrowserSettings};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
var
|
|
1
|
+
var t=this&&this.__decorate||function(t,e,o,i){var r,s=arguments.length,n=s<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,i);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(s<3?r(n):s>3?r(e,o,n):r(e,o))||n);return s>3&&n&&Object.defineProperty(e,o,n),n};
|
|
2
2
|
/*!
|
|
3
3
|
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4
4
|
* See LICENSE.md in the project root for license information.
|
|
5
5
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
6
|
-
*/import{UIGroup as
|
|
6
|
+
*/import{UIGroup as e}from"jodit/esm/core/ui/group/group.js";import{component as o,debounce as i,hook as r,watch as s}from"jodit/esm/core/decorators/index.js";import{assert as n}from"jodit/esm/core/helpers/utils/assert.js";import{UIResize as a}from"jodit-pro/esm/traits/resize/resize.js";let l=class UISidebar extends e{className(){return"UISidebar"}render(){return"<div>\n\t\t\t<div class='&__hide-btn'>*angle-left*</div>\n\t\t\t<div class='&__favorites'>*heart* ~Favorites~</div>\n\t\t\t<div class='&__box'></div>\n\t\t</div>"}appendChildToContainer(t){const e=this.getElm("box");n(null!=e,"box element does not exists"),e.appendChild(t)}addResize(){a.remove(this),a.install(this,screen.width>450?"right":"bottom")}constructor(t,e,o){super(t,e),this.state=o,this.onChangeFavorites()}onChangeFavorites(){this.setMod("has-favorites",Boolean(this.state.favorites.length))}onClickHideButton(){return this.state.showSideBar=!this.state.showSideBar,!1}onClickFavorites(){return this.state.elements=this.state.favorites,!1}};t([r("ready"),s(":resize",{context:window}),i()],l.prototype,"addResize",null),t([s("state.favorites")],l.prototype,"onChangeFavorites",null),t([s("hide-btn:click")],l.prototype,"onClickHideButton",null),t([s("favorites:click")],l.prototype,"onClickFavorites",null),l=t([o],l);export{l as UISidebar};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,r,o){var s
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,r,o){var n,s=arguments.length,i=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(i=(s<3?n(i):s>3?n(t,r,i):n(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i};import{UIElement as t}from"jodit/esm/core/ui/element.js";import{component as r}from"jodit/esm/core/decorators/component/component.js";import{assert as o}from"jodit/esm/core/helpers/utils/assert.js";import{UITree as n}from"jodit-pro/esm/plugins/finder/ui/tree/tree.js";let s=class UIBrowserSource extends t{className(){return"UIBrowserSource"}render(){return'<div>\n\t\t\t<div class="&__name"></div>\n\t\t\t<div class="&__tree"></div>\n\t\t</div>'}constructor(e,t){super(e,t),this.data=t,this.tree=new n(this.j,this.data.children),this.syncMod=!0;const r=this.getElm("name");o(null!=r,"name element does not exists"),r.innerText=t.title||t.name;const s=this.getElm("tree");o(null!=s,"tree element does not exists"),s.appendChild(this.tree.container),e.e.on(this.container,"contextmenu",(r=>e.e.fire("contextmenuSource.filebrowser",t,r)))}};s=e([r],s);export{s as UIBrowserSource};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,r,o
|
|
6
|
+
var e=this&&this.__decorate||function(e,r,t,o){var s,c=arguments.length,i=c<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,r,t,o);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(i=(c<3?s(i):c>3?s(r,t,i):s(r,t))||i);return c>3&&i&&Object.defineProperty(r,t,i),i};import{UIGroup as r}from"jodit/esm/core/ui/index.js";import{component as t}from"jodit/esm/core/decorators/index.js";import{UIBrowserSource as o}from"jodit-pro/esm/plugins/finder/ui/source/source.js";let s=class UIBrowserSources extends r{constructor(){super(...arguments),this.syncMod=!0}className(){return"UIBrowserSources"}build(e){this.clear(),e.forEach((e=>{this.append(new o(this.jodit,e))}))}};s=e([t],s);export{s as UIBrowserSources};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var t=this&&this.__decorate||function(t,e,r,s){var o,i=arguments.length,l=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,r,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(l=(i<3?o(l):i>3?o(e,r,l):o(e,r))||l);return i>3&&l&&Object.defineProperty(e,r,l),l};import{UIElement as e}from"jodit/esm/core/ui/index.js";import{component as r}from"jodit/esm/core/decorators/index.js";import{assert as s}from"jodit/esm/core/helpers/utils/assert.js";
|
|
6
|
+
var t=this&&this.__decorate||function(t,e,r,s){var o,i=arguments.length,l=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(t,e,r,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(l=(i<3?o(l):i>3?o(e,r,l):o(e,r))||l);return i>3&&l&&Object.defineProperty(e,r,l),l};import{UIElement as e}from"jodit/esm/core/ui/index.js";import{component as r}from"jodit/esm/core/decorators/index.js";import{assert as s}from"jodit/esm/core/helpers/utils/assert.js";let o=class UIBrowserStatusBar extends e{className(){return"UIBrowserStatusBar"}render(){return"<div>\n\t\t\t<div class='&__slot-left'></div>\n\t\t\t<div class='&__slot-center'></div>\n\t\t\t<div class='&__slot-right'></div>\n\t\t</div>"}value(t,e="left"){const r=this.getElm(`slot-${e}`);return s(null!=r,"Slot does not exists"),r.innerText=t,this}};o=t([r],o);export{o as UIBrowserStatusBar};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e,t=this&&this.__decorate||function(e,t,r
|
|
6
|
+
var e,t=this&&this.__decorate||function(e,t,o,r){var i,s=arguments.length,c=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(i=e[n])&&(c=(s<3?i(c):s>3?i(t,o,c):i(t,o))||c);return s>3&&c&&Object.defineProperty(t,o,c),c};import{UIGroup as o}from"jodit/esm/core/ui/group/group.js";import{component as r}from"jodit/esm/core/decorators/component/component.js";import{UIBrowserFolder as i}from"jodit-pro/esm/plugins/finder/ui/folder/folder.js";let s=e=class UITree extends o{className(){return"UITree"}constructor(e,t){super(e),this.syncMod=!0,this.build(t)}build(t){this.clear(),t.forEach((t=>{const o=new i(this.jodit,t);this.append(o),t.isActive&&o.setMod("active",!0),t.children.length&&this.append(new e(this.jodit,t.children))}))}};s=e=t([r],s);export{s as UITree};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e,t=this&&this.__decorate||function(e,t,r
|
|
6
|
+
var e,t=this&&this.__decorate||function(e,t,s,r){var o,i=arguments.length,n=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,r);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(i<3?o(n):i>3?o(t,s,n):o(t,s))||n);return i>3&&n&&Object.defineProperty(t,s,n),n};import{UIGroup as s}from"jodit/esm/core/ui/group/group.js";import{component as r,watch as o,throttle as i}from"jodit/esm/core/decorators/index.js";import{FileBrowserItem as n}from"jodit/esm/modules/file-browser/builders/item.js";import{position as l}from"jodit/esm/core/helpers/size/position.js";import{UISelectItems as a}from"jodit-pro/esm/traits/select-items/select-items.js";import{UIBrowserItem as c}from"jodit-pro/esm/plugins/finder/ui/item/item.js";let d=e=class UIVirtualScroll extends s{className(){return"UIVirtualScroll"}render(){return"<div>\n\t\t\t\t<div class=\"&__empty-message\">~There are no files~</div>\n\t\t\t\t<div class='&__loader'></div>\n\t\t\t\t<div class='&__drag-area'>~Drop image~</div>\n\t\t\t</div>"}constructor(e,t){super(e),this.stateManager=t,this.syncMod=!0,this.addItemsSelector()}reconcile(e){const t=this.elements.findIndex(((t,s)=>!e[s]||t.item.uniqueHashKey!==n.create(e[s]).uniqueHashKey));if(t>-1){for(let e=t;e<this.elements.length;e+=1)this.elements[e].destruct();this.elements.length=t}return t}build(e){const t=this.reconcile(e);e.slice(t>-1?t:this.elements.length).forEach((e=>{const t=new c(this.jodit,e);Object.keys(this.mods).forEach((e=>{t.setMod(e,this.mods[e])})),this.append(t)})),this.setMod("empty",!this.elements.length)}onScrollLoadChunk(){!this.stateManager.isFavoriteItems&&this.container.scrollHeight-(this.container.scrollTop+this.container.offsetHeight)<this.j.o.pixelOffsetLoadNewChunk&&this.j.loadingManager.loadItemsChunk()}onDragOver(e){e.preventDefault(),this.setMod("dragover",!0)}onDragLeave(e){e.preventDefault(),this.setMod("dragover",!1)}addItemsSelector(){a.install(this)}static intersectRect(e,t){return!(t.left>e.left+e.width||t.left+t.width<e.left||t.top>e.top+e.height||t.top+t.height<e.top)}onSelectItems(t){const s=[];this.elements.forEach((r=>{const o=l(r.container);e.intersectRect(o,t)&&s.push(r.item)})),this.stateManager.state.activeElements=s}};t([o(":afterResize"),o(":resize"),o("container:scroll"),i()],d.prototype,"onScrollLoadChunk",null),t([o("container:dragover")],d.prototype,"onDragOver",null),t([o(["container:dragleave","container:drop"])],d.prototype,"onDragLeave",null),d=e=t([r],d);export{d as UIVirtualScroll};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,o,r){var i,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,o,r){var i,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var p=e.length-1;p>=0;p--)(i=e[p])&&(n=(s<3?i(n):s>3?i(t,o,n):i(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};import{component as t,hook as o}from"jodit/esm/core/decorators/index.js";import{UIWysiwyg as r}from"jodit-pro/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js";import{UIBaseEditor as i}from"jodit-pro/esm/plugins/google-maps/ui/editors/base.js";let s=class UIMarkerEditor extends i{onReady(){super.onReady();const e=new r(this.j,this.options.googleMaps.inlineEditorOptions,this.state.text??"",(e=>this.j.e.fire(this,"change","text",e)));this.append(e,"form")}};e([o("ready")],s.prototype,"onReady",null),s=e([t],s);export{s as UIMarkerEditor};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var
|
|
6
|
+
var e=this&&this.__decorate||function(e,o,t,r){var i,l=arguments.length,n=l<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,t):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,o,t,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(n=(l<3?i(n):l>3?i(o,t,n):i(o,t))||n);return l>3&&n&&Object.defineProperty(o,t,n),n};import{component as o,hook as t}from"jodit/esm/core/decorators/index.js";import{ColorInput as r}from"jodit-pro/esm/plugins/color-picker/ui/input/color-input.js";import{UIRange as i}from"jodit-pro/esm/core/ui/form/range/range.js";import{UIPolylineEditor as l}from"jodit-pro/esm/plugins/google-maps/ui/editors/polyline/polyline.js";let n=class UIPolygonEditor extends l{onReady(){this.append([new r(this.j,{label:"Fill color",value:this.state.fillColor??"#000",onChange:e=>this.j.e.fire(this,"change","fillColor",e)}).setMod("trigger",!1),new i(this.j,{label:"Opacity",min:0,max:1,value:this.state.fillOpacity??1,onChange:e=>{this.j.e.fire(this,"change","fillOpacity",parseFloat(e)||0)}}).setMod("log",!1)],"form")}};e([t("ready")],n.prototype,"onReady",null),n=e([o],n);export{n as UIPolygonEditor};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,o,r){var i,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(s<3?i(n):s>3?i(t,o,n):i(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};import{component as t,hook as o}from"jodit/esm/core/decorators/index.js";import{UIInput as r}from"jodit/esm/core/ui/form/inputs/input/input.js";import{ColorInput as i}from"jodit-pro/esm/plugins/color-picker/ui/input/color-input.js";import{UIBaseEditor as s}from"jodit-pro/esm/plugins/google-maps/ui/editors/base.js";
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,o,r){var i,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(n=(s<3?i(n):s>3?i(t,o,n):i(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};import{component as t,hook as o}from"jodit/esm/core/decorators/index.js";import{UIInput as r}from"jodit/esm/core/ui/form/inputs/input/input.js";import{ColorInput as i}from"jodit-pro/esm/plugins/color-picker/ui/input/color-input.js";import{UIBaseEditor as s}from"jodit-pro/esm/plugins/google-maps/ui/editors/base.js";let n=class UIPolylineEditor extends s{onReady(){super.onReady(),this.append([new r(this.j,{label:"Stroke weight",value:this.state.strokeWeight??1,type:"number",onChange:e=>this.j.e.fire(this,"change","strokeWeight",e)}),new i(this.j,{label:"Stroke color",value:this.state.strokeColor??"#000",onChange:e=>this.j.e.fire(this,"change","strokeColor",e)}).setMod("trigger",!1)],"form")}};e([o("ready")],n.prototype,"onReady",null),n=e([t],n);export{n as UIPolylineEditor};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var
|
|
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{UICheckbox as e,UIForm as o}from"jodit/esm/core/ui/index.js";import{component as r}from"jodit/esm/core/decorators/component/component.js";let n=class UIMapsControlsForm extends o{className(){return"UIMapsControlsForm"}constructor(t,o){super(t),this.state=o;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((o=>new e(t,{label:r[o],name:o,checked:this.state.controls[o],switch:!0,type:"checkbox",onChange:this.onChangeSize.bind(this,o)}))))}onChangeSize(t,e){this.state.controls={...this.state.controls,[t]:"true"===e}}};n=t([r],n);export{n as UIMapsControlsForm};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 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
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,a,n){var l,r=arguments.length,o=r<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--)(l=e[i])&&(o=(r<3?l(o):r>3?l(t,a,o):l(t,a))||o);return r>3&&o&&Object.defineProperty(t,a,o),o};import{UIForm as t,UIInput as a,UISelect as n}from"jodit/esm/core/ui/index.js";import{refs as l}from"jodit/esm/core/helpers/utils/selector.js";import{component as r,autobind as o,watch as i}from"jodit/esm/core/decorators/index.js";let s=class UIMapsPropsForm extends t{className(){return"UIMapsPropsForm"}constructor(e,t){super(e),this.state=t;const[l,r]=t.size,[o,i]=t.center;this.append([new a(e,{label:"Width",name:"width",value:l,type:"number",onChange:this.onChangeSize}),new a(e,{label:"Height",name:"height",value:r,type:"number",onChange:this.onChangeSize}),new a(e,{label:"Latitude",name:"lat",value:o,onChange:this.onChangeCenter}),new a(e,{label:"Longitude",name:"lng",value:i,onChange:this.onChangeCenter}),new n(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 n(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}=l(this);this.state.size=[parseInt(e?.value,10)||0,parseInt(t?.value,10)||0]}onExternalChangeSize(){const{width:e,height:t}=l(this),[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}=l(this);this.state.center=[parseFloat(e?.value)||0,parseFloat(t?.value)||0]}onExternalChangeCenter(){const{lat:e,lng:t}=l(this),[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}=l(this);this.state.type!==e.value&&(e.value=this.state.type)}onExternalChangeLayer(){const{layer:e}=l(this);this.state.layer!==e.value&&(e.value=this.state.layer)}};e([o],s.prototype,"onChangeSize",null),e([i("state.size")],s.prototype,"onExternalChangeSize",null),e([o],s.prototype,"onChangeCenter",null),e([i(["state.center"])],s.prototype,"onExternalChangeCenter",null),e([i(["state.type"])],s.prototype,"onExternalChangeType",null),e([i(["state.layer"])],s.prototype,"onExternalChangeLayer",null),s=e([r],s);export{s as UIMapsPropsForm};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,o,i){var r,s=arguments.length,l=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(l=(s<3?r(l):s>3?r(t,o,l):r(t,o))||l);return s>3&&l&&Object.defineProperty(t,o,l),l};import{UIElement as t}from"jodit/esm/core/ui/element.js";import{component as o}from"jodit/esm/core/decorators/component/component.js";import{assert as i}from"jodit/esm/core/helpers/utils/assert.js";import{JoditPro as r}from"jodit-pro/esm/jodit-pro.js";
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,o,i){var r,s=arguments.length,l=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(l=(s<3?r(l):s>3?r(t,o,l):r(t,o))||l);return s>3&&l&&Object.defineProperty(t,o,l),l};import{UIElement as t}from"jodit/esm/core/ui/element.js";import{component as o}from"jodit/esm/core/decorators/component/component.js";import{assert as i}from"jodit/esm/core/helpers/utils/assert.js";import{JoditPro as r}from"jodit-pro/esm/jodit-pro.js";let s=class UIWysiwyg extends t{className(){return"UIWysiwyg"}constructor(e,t,o,s){super(e);const l=this.getElm("editor");i(null!=l,"editor element does not exist");const n=r.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=o,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([o],s);export{s as UIWysiwyg};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,r
|
|
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{UIBlock as t,UICheckbox as a,UIGroup as r,UIInput as s}from"jodit/esm/core/ui/index.js";import{component as n}from"jodit/esm/core/decorators/component/component.js";let i=class UIIframeEditor extends r{className(){return"UIIframeEditor"}constructor(e,r){super(e),this.state={src:"",className:"",width:400,height:200,frameBorder:!1,enableScrollbars:!1,name:"",title:""},Object.assign(this.state,r),this.srcField=new s(e,{label:"URL",type:"url",required:!0,value:this.state.src,onChange:e=>{this.state.src=e}}),this.append([this.srcField,new t(e,[new s(e,{label:"Width",type:"number",value:this.state.width,onChange:e=>{this.state.width=parseInt(e,10)||0}}),new s(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 t(e,[new a(e,{label:"Show frame border",checked:Boolean(r.frameBorder),onChange:e=>{this.state.frameBorder="true"===e}})]),new s(e,{label:"Name",value:this.state.name,type:"text",onChange:e=>{this.state.name=e}}),new s(e,{label:"Title",value:this.state.title,type:"text",onChange:e=>{this.state.title=e}})])}};i=e([n],i);export{i as UIIframeEditor};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e,t=this&&this.__decorate||function(e,t,s,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(a=(i<3?r(a):i>3?r(t,s,a):r(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};import{Icon as s,UIElement as o}from"jodit/esm/core/ui/index.js";import{component as r,hook as i,watch as a}from"jodit/esm/core/decorators/index.js";import{attr as n}from"jodit/esm/core/helpers/utils/index.js";import{NBSP_SPACE as c}from"jodit/esm/core/constants.js";import{autobind as p}from"jodit/esm/core/decorators/index.js";import h from"jodit-pro/esm/plugins/keyboard/ui/assets/backspace.svg.js";import
|
|
6
|
+
var e,t=this&&this.__decorate||function(e,t,s,o){var r,i=arguments.length,a=i<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,o);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(a=(i<3?r(a):i>3?r(t,s,a):r(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};import{Icon as s,UIElement as o}from"jodit/esm/core/ui/index.js";import{component as r,hook as i,watch as a}from"jodit/esm/core/decorators/index.js";import{attr as n}from"jodit/esm/core/helpers/utils/index.js";import{NBSP_SPACE as c}from"jodit/esm/core/constants.js";import{autobind as p}from"jodit/esm/core/decorators/index.js";import h from"jodit-pro/esm/plugins/keyboard/ui/assets/backspace.svg.js";import l from"jodit-pro/esm/plugins/keyboard/ui/assets/shift.svg.js";import u from"jodit-pro/esm/plugins/keyboard/ui/assets/caps.svg.js";import d from"jodit-pro/esm/plugins/keyboard/ui/assets/dots.svg.js";import y from"jodit-pro/esm/plugins/keyboard/ui/assets/tab.svg.js";let m=e=class UIKeyboard extends o{className(){return"UIKeyboard"}render(){const{layout:e,keySize:t}=this.j.options.keyboard,s=e.length;return`<div>${(()=>{const o=[];for(let r=0;r<s;r+=1){const s=[];for(let o=0;o<e[r].length;o+=1)s.push(`<div style="width:${t*e[r][o]}px;height:${t}px;" class="&__key"></div>`);o.push(`<div class='&__row'>${s.join("\n")}</div>`)}return o.join("\n")})()}</div>`}onStateChange(){const{currentLayout:t,options:s,shift:o,caps:r}=this.state,{keys:i}=this.j.o.keyboard.layoutList[t];let a=0;for(let t=0;t<i.length;t+=1)for(let n=0;n<i[t].length;n+=1){const c=i[t][n].split(" ");let p=c[0];o&&(p=c[1]),!o&&r&&c[1]&&e.isLetter(c[0])&&(p=c[1]),s&&(p=c[2]),this.setKeyValue(a,p??c[0]),a+=1}}static isLetter(e){return e.toLowerCase()!==e.toUpperCase()}setKeyValue(t,s){const o=this._keys[t];if(!o)return;let r=!1;const{options:i,shift:a,caps:c}=this.state;switch(s){case"Caps":r=c;break;case"Options":r=i;break;case"Shift":r=a}o.innerHTML=e.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((e=>{e.classList.remove(this.getFullElName("key","pressed",!0))})))}onKeyDown(e,t=0){const s=e.target;if(!s||!s.classList.contains(this.getFullElName("key")))return!1;this.pressed=!0,s.classList.add(this.getFullElName("key","pressed",!0));const o=n(s,"-key");switch(o){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:o,preventDefault(){}});break;case"Space":case"Tab":this.j.s.insertNode(this.j.createInside.text(c));break;default:this.state.shift&&(this.state.shift=!1),o&&this.j.s.insertNode(this.j.createInside.text(o))}const{periodKeyRepeat:r,delayKeyRepeat:i}=this.j.o.keyboard;return this.reKeyDownTimeout=this.j.async.setTimeout((()=>this.onKeyDown(e,r)),t||i),!1}constructor(e){super(e),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(e){switch(e){case"Space":return"";case"Enter":return s.get("enter");case"Backspace":return h;case"Shift":return l;case"Caps":return u;case"Options":return d;case"Tab":return y;default:return e}}};t([a(["state.currentLayout","state.options","state.shift","state.caps"])],m.prototype,"onStateChange",null),t([a(["ow:mouseup"])],m.prototype,"onKeyUp",null),t([i("ready")],m.prototype,"onReady",null),t([p],m.prototype,"stopPress",null),t([a(["container:mousedown","container:touchstart"])],m.prototype,"onKeyDown",null),m=e=t([r],m);export{m as UIKeyboard};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{Config as e}from"jodit/esm/config.js";import{dataBind as
|
|
6
|
+
import{Config as e}from"jodit/esm/config.js";import{dataBind as o}from"jodit/esm/core/helpers/utils/data-bind.js";import i from"./icon.svg";e.prototype.mobileView={mode:"default"};export const dataBindStoredKey="buttonmobileSView";export const dataBindCurrentKey="buttonmobileCView";e.prototype.controls.mobileView={tooltip:"Mobile View",icon:i,command:"mobileView",isActive:e=>o(e,dataBindCurrentKey)&&"default"!==o(e,dataBindCurrentKey),isChildActive:(e,i)=>o(e,dataBindCurrentKey)===i.control.args?.[1],exec:e=>{if(!o(e,dataBindStoredKey))return!1;e.execCommand("mobileView",!1,o(e,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"}};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 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,i){var s,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,o,i);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(r=(a<3?s(r):a>3?s(t,o,r):s(t,o))||r);return a>3&&r&&Object.defineProperty(t,o,r),r};import"./config";import{Plugin as t}from"jodit/esm/core/plugin/index.js";import{UIForm as o,UITextArea as i,UISelect as s,Button as a}from"jodit/esm/core/ui/index.js";import{autobind as r,component as n,watch as l,debounce as d}from"jodit/esm/core/decorators/index.js";import{$$ as c,appendScriptAsync as p,attr as g,loadNext as h,loadNextStyle as u,refs as m,stripTags as f}from"jodit/esm/core/helpers/index.js";import{JoditPro as C}from"jodit-pro/esm/jodit-pro.js";import{Dialog as j,Dom as E}from"jodit/esm/modules/index.js";let b=class pasteCode extends t{constructor(){super(...arguments),this.buttons=[{name:"pasteCode",group:"clipboard"}],this.prismJSIsLoaded=!1}afterInit(e){e.registerCommand("pasteCode",(()=>this.openCodeEditDialog()))}openCodeEditDialog(e,t,o){const i=this.j,s=this.createForm(),{code:a,language:r}=m(s);e&&(r.value=e),t&&(a.value=t),i.async.requestIdleCallback((()=>{a.focus()})),i.s.save(),this.createDialog((()=>{if(!s.validate())return!1;{i.s.restore();const e=i.createInside.fromHTML(i.o.pasteCode.insertTemplate(i,r.value,a.value));if(o)E.replace(o,e,i.createInside,!1,!0);else{const t=i.s.current(),o=E.up(t,E.isBlock,i.editor);o?E.after(o,e):i.s.insertNode(e)}this.onChange()}}),(()=>{i.s.restore()})).setContent(s.container).open(!0)}beforeDestruct(e){}createForm(){const{jodit:e}=this;return new o(e,[new s(e,{name:"language",label:"Language",value:e.o.pasteCode.defaultLanguage,options:e.o.pasteCode.languages,required:!0}),new i(e,{label:"Code view",resizable:!1,name:"code",required:!0,className:"jodit-paste-code__textarea"})],{className:"jodit-paste-code"})}createDialog(e,t){const o=new j({language:this.j.o.language});return o.setHeader("Insert/Edit Code Sample").setSize(this.j.o.pasteCode.dialog.width,this.j.o.pasteCode.dialog.height).setFooter([a(o,"","Cancel","default").onAction((()=>{o.close(),t()})),a(o,"save","Save","primary").onAction((()=>{o.close(),e()}))]),o}onChange(){c("pre",this.j.editor).forEach((e=>{g(e,"contenteditable")||(g(e,"contenteditable",!1),this.highlightCode(e))}))}async highlightCode(e){const{globalHighlightLib:t,highlightLib:{css:o,js:i,langUrl:s,highlight:a,isLangLoaded:r}}=this.j.o.pasteCode;this.prismJSIsLoaded||t||(await Promise.all([u(this.jodit,o),h(this.jodit,i)]),this.prismJSIsLoaded=!0);const n=this.parseLanguage(e);r(n)||t||await p(this.jodit,s(n)).catch((()=>null));let l=e;e.firstElementChild===e.lastElementChild&&E.isTag(e.firstElementChild,"code")&&(l=e.firstElementChild),l.innerHTML=a(l.innerText,n)}onPreEdit(e){const t=E.isNode(e)&&E.isTag(e,"pre")?e:E.closest(e.target,"pre",this.j.editor);if(t){const e=this.parseLanguage(t);this.openCodeEditDialog(e,t.innerText,t)}}parseLanguage(e){let t=null;const getLang=e=>e.classList.forEach((e=>{if(/language-/.test(e)){const o=/language-(.*)/.exec(e);o&&o[1]&&(t=o[1])}}));return getLang(e),null==t&&e.firstElementChild===e.lastElementChild&&E.isTag(e.firstElementChild,"code")&&getLang(e.firstElementChild),this.jodit.o.pasteCode.canonicalLanguageCode(t||"html")}onAfterGetValueFromEditor(e){const strip=(e,t,o,i,s,a)=>`${t.trim()}${i}${f(s,this.j.ed,new Set(["br"]))}${a}`;e.value=e.value.replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>\s*<code[^>]*>)(.*?)(<\/code>\s*<\/pre>)/gis,strip).replace(/(<pre[^>]*)contenteditable\s*=\s*(['"]?)false\2([^>]*>)(.*?)(<\/pre>)/gis,strip)}};b.requires=["license"],e([r],b.prototype,"openCodeEditDialog",null),e([l("?:change"),d()],b.prototype,"onChange",null),e([l(["?:dblclick","?:editPreInPasteCode"])],b.prototype,"onPreEdit",null),e([l("?:afterGetValueFromEditor")],b.prototype,"onAfterGetValueFromEditor",null),b=e([n],b);export{b as pasteCode};C.plugins.add("paste-code",b);
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var t=this&&this.__decorate||function(t,e,r,s){var i,o=arguments.length,a=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,s);else for(var
|
|
6
|
+
var t=this&&this.__decorate||function(t,e,r,s){var i,o=arguments.length,a=o<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,r,s);else for(var d=t.length-1;d>=0;d--)(i=t[d])&&(a=(o<3?i(a):o>3?i(e,r,a):i(e,r))||a);return o>3&&a&&Object.defineProperty(e,r,a),a};import{isString as e,kebabCase as r,trim as s}from"jodit/esm/core/helpers/index.js";import{autobind as i}from"jodit/esm/core/decorators/index.js";import{calcMarginParts as o}from"jodit-pro/esm/plugins/paste-from-word/helpers/index.js";let a=class Style{constructor(t){this._data=readStyles(t)}get keys(){return Object.keys(this._data)}forEach(t){this.keys.forEach((e=>t(e)))}clear(){this._data={}}set(t,e){this._data[t]=e}get(t){return this._data[t]??null}has(t){return void 0!==this._data[t]}add(t,e){return this._data=readStyles(this.str()+";"+`${t}:${e}`),this}str(t=(t=>!0)){const s=Object.keys(this._data).filter((e=>e&&!/^mso-/.test(e)&&t(e)&&null!=this.get(e))),n=t=>e(t)?/^0[a-z]+$/i.test(t)?"0":t:t.toString();return["padding","margin"].forEach((t=>{if(this._data[t]){const e=s.indexOf(t),r=o(this._data[t]);["top","right","bottom","left"].forEach(((i,o)=>{const a=`${t}-${i}`,d=this._data[a];null!=d&&(s.indexOf(a)<e||n(r[o])===n(d))&&-1!==s.indexOf(a)&&s.splice(s.indexOf(a),1)}))}})),s.length?s.map((t=>`${r(t)}:${this.get(t)}`)).join(";"):""}};a=t([i],a);export{a as Style};function readStyles(t){return function uniqueMax(t){const e={},r=[];for(let s=t.length-1;s>=0;s-=1){const i=t[s][0];e[i]||(e[i]=!0,r.unshift(t[s]))}return r}((t??"").replace(/"/g,'"').split(";").filter(Boolean).map((t=>s(t).split(":").map(s)))).reduce(((t,[e,r])=>(e&&r&&(t[e]=r),t)),{})}
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var t=this&&this.__decorate||function(t,e,i,
|
|
6
|
+
var t=this&&this.__decorate||function(t,e,i,o){var s,n=arguments.length,r=n<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,i):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,o);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(n<3?s(r):n>3?s(e,i,r):s(e,i))||r);return n>3&&r&&Object.defineProperty(e,i,r),r};import{UIElement as e}from"jodit/esm/core/ui/element.js";import{component as i,debounce as o,watch as s}from"jodit/esm/core/decorators/index.js";import{Dom as n}from"jodit/esm/core/dom/dom.js";import{attr as r}from"jodit/esm/core/helpers/utils/attr.js";import{UIInput as a}from"jodit/esm/core/ui/form/inputs/input/input.js";import{scrollIntoViewIfNeeded as c}from"jodit/esm/core/helpers/index.js";import{KEY_ENTER as l}from"jodit/esm/core/constants.js";let d=class UITranslateList extends e{className(){return"UITranslateList"}get items(){return this.getElms("item")}render(t){const e=[];return Object.keys(t.list).sort().forEach((i=>{const o=t.list[i];e.push(`<a role='button' tabindex='0' class='&__item' data-lang='${o}'>\n\t\t\t\t\t\t<span class='&__item-key'>${o}</span>\n\t\t\t\t\t\t<span class='&__item-title'>${this.j.i18n(i)}</span>\n\t\t\t\t\t</a>`)})),`<div class='&'>\n\t\t\t<div class='&__input'></div>\n\t\t\t<div class='&__list'>${e.join("")}</div>\n\t\t</div>`}constructor(t,e){super(t,e),this.options=e,this.state={active:""},this.state.active=e.active;const i=new a(t,{placeholder:t.i18n("Filter"),icon:"search",onChange:this.__onChangeFilter,clearButton:!0});this.getElm("input")?.appendChild(i.container),this.__onActiveChange()}__onChangeFilter(t){this.items.forEach((e=>{const i=e.textContent?.toLowerCase()??"";r(e,"data-hidden","true"!==r(e,"data-active")&&!i.includes(t.toLowerCase()))}))}__scrollToActive(){const t=this.container.querySelector('[data-active="true"]'),e=this.getElm("list");t&&e&&c(t,e,this.j.od)}onClickItem(t){if("keydown"===t.type&&"key"in t&&t.key!==l)return;const e=t.target;if(n.isHTMLElement(e)&&e.getAttribute("data-lang")){const t=r(e,"data-lang");this.options.onChange(t),this.state.active=t}}__onActiveChange(){this.items.forEach((t=>r(t,"data-active",r(t,"data-lang")===this.state.active))),this.__scrollToActive()}};t([o()],d.prototype,"__onChangeFilter",null),t([s(":afterOpen")],d.prototype,"__scrollToActive",null),t([s(["container:click","container:keydown"])],d.prototype,"onClickItem",null),t([s("state.active"),o()],d.prototype,"__onActiveChange",null),d=t([i],d);export{d as UITranslateList};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var t=this&&this.__decorate||function(t,s,e,
|
|
6
|
+
var t=this&&this.__decorate||function(t,s,e,i){var a,r=arguments.length,n=r<3?s:null===i?i=Object.getOwnPropertyDescriptor(s,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,s,e,i);else for(var o=t.length-1;o>=0;o--)(a=t[o])&&(n=(r<3?a(n):r>3?a(s,e,n):a(s,e))||n);return r>3&&n&&Object.defineProperty(s,e,n),n};import{UIElement as s}from"jodit/esm/core/ui/index.js";import{component as e,watch as i}from"jodit/esm/core/decorators/index.js";import{UITranslateList as a}from"jodit-pro/esm/plugins/translate/ui/list/list.js";let r=class UITranslateSettings extends s{className(){return"UITranslateSettings"}render(){return"<div>\n\t\t\t<div class='&__list &__source-list'></div>\n\t\t\t<div class='&__arrow'>\n\t\t\t\t<a class='&__arrow-swap'>*translate-swap*</a>\n\t\t\t</div>\n\t\t\t<div class='&__list &__target-list'></div>\n\t\t</div>"}constructor(t,s,e){super(t),this.state=s,this.options=e,this.__sourceList=new a(t,{list:e.sourceList,active:s.sourceLang,onChange:t=>{this.state.sourceLang=t,this.options.onChange({...this.state})}}),this.getElm("source-list")?.appendChild(this.__sourceList.container),this.__targetList=new a(t,{list:e.targetList,active:s.targetLang,onChange:t=>{this.state.targetLang=t,this.options.onChange({...this.state})}}),this.getElm("target-list")?.appendChild(this.__targetList.container)}__onSwap(){const t=this.state.sourceLang;this.state.sourceLang=this.state.targetLang,this.state.targetLang=t,this.__sourceList.state.active=this.state.sourceLang,this.__targetList.state.active=this.state.targetLang,this.options.onChange({...this.state})}};t([i("arrow-swap:click")],r.prototype,"__onSwap",null),r=t([e],r);export{r as UITranslateSettings};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{Config as e}from"jodit/esm/config.js";import{Dom as o}from"jodit/esm/core/dom/index.js";import{call as t}from"jodit/esm/core/helpers/index.js";const n=["tune.up","tune.remove","tune.down"],r=["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n",...n];function headerControl(e){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+e.toUpperCase()+"</text></svg>",isActive:(o,t
|
|
6
|
+
import{Config as e}from"jodit/esm/config.js";import{Dom as o}from"jodit/esm/core/dom/index.js";import{call as t}from"jodit/esm/core/helpers/index.js";const n=["tune.up","tune.remove","tune.down"],r=["tune.h1","tune.h2","tune.h3","\n","tune.h4","tune.h5","tune.h6","\n",...n];function headerControl(e){return{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><text dominant-baseline="text-before-edge" style="font: 45px sans-serif" x="0" y="0">'+e.toUpperCase()+"</text></svg>",isActive:(o,t)=>t?.target?.tagName.toLowerCase()===e,exec(t,n){if(n){t.selection.save();const r=o.replace(n,e,t.createInside);t.selection.restore(),t.e.fire("synchro"),t.e.fire("afterExecTune.tune",r)}return!0}}}function moveTo(e){const n=e?"previousSibling":"nextSibling";return{icon:e?"angle-up":"angle-down",isDisabled:(e,o)=>!o?.target?.[n],exec(r,i){const s=i?.[n];return i&&s&&(r.selection.save(),t(e?o.before:o.after,s,i),r.selection.restore()),r.e.fire("synchro"),r.e.fire("afterExecTune.tune"),!0}}}e.prototype.tuneBlock={popup:{p:n,table:n,img:n,blockquote:n,div:n,pre:["tune.editPre",...n],h1:r,h2:r,h3:r,h4:r,h5:r,h6:r}},e.prototype.controls.tune={h1:headerControl("h1"),h2:headerControl("h2"),h3:headerControl("h3"),h4:headerControl("h4"),h5:headerControl("h5"),h6:headerControl("h6"),up:moveTo(!0),down:moveTo(!1),editPre:{icon:"pencil",exec(e,o){e.e.fire("editPreInPasteCode",o)}},remove:{icon:"bin",exec(e,t){o.safeRemove(t),e.e.fire("synchro"),e.e.fire("closeTuner.tune"),e.e.fire("hideTuner.tune")}}};
|