jodit-pro 4.7.3 → 4.7.6
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 +2 -2
- 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.fat.min.js +2 -2
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/config.js +1 -6
- package/esm/core/ui/form/range/range.js +1 -6
- package/esm/index.js +1 -6
- package/esm/jodit-pro.js +1 -6
- package/esm/plugins/all.js +1 -6
- package/esm/plugins/autocomplete/autocomplete.js +1 -6
- package/esm/plugins/autocomplete/config.js +1 -6
- package/esm/plugins/autocomplete/helpers.js +1 -6
- package/esm/plugins/autocomplete/interface.js +0 -6
- package/esm/plugins/autocomplete/ui/autocomplete.js +1 -6
- package/esm/plugins/autocomplete/ui/item.js +1 -6
- package/esm/plugins/backup/assets/restore.svg.js +1 -1
- package/esm/plugins/backup/backup.js +1 -6
- package/esm/plugins/backup/config.js +1 -6
- package/esm/plugins/backup/interface.js +0 -6
- package/esm/plugins/backup/langs/index.js +0 -6
- package/esm/plugins/backup/modules/store.js +1 -6
- package/esm/plugins/backup/ui/box.js +1 -6
- package/esm/plugins/backup/ui/item.js +1 -6
- package/esm/plugins/backup/ui/list.js +1 -6
- package/esm/plugins/button-generator/assets/check.svg.js +1 -1
- package/esm/plugins/button-generator/assets/styles.json.js +1 -1
- package/esm/plugins/button-generator/button-generator.js +1 -1
- package/esm/plugins/button-generator/config.js +1 -6
- package/esm/plugins/button-generator/icon.svg.js +1 -1
- package/esm/plugins/button-generator/ui/button/button.js +5 -1
- package/esm/plugins/button-generator/ui/form/form.js +79 -1
- package/esm/plugins/button-generator/ui/generator/button-generator.js +7 -6
- package/esm/plugins/button-generator/ui/preview/preview.js +4 -1
- package/esm/plugins/change-case/change-case.js +1 -6
- package/esm/plugins/change-case/config.js +1 -6
- package/esm/plugins/change-case/icon.svg.js +1 -1
- package/esm/plugins/color-picker/color-picker.js +1 -6
- package/esm/plugins/color-picker/ui/input/color-input.js +1 -6
- package/esm/plugins/emoji/config.js +1 -1
- package/esm/plugins/emoji/emoji.js +1 -6
- package/esm/plugins/emoji/emoji.json.js +1 -1
- package/esm/plugins/emoji/emoji.svg.js +1 -1
- package/esm/plugins/emoji/interface.js +0 -6
- package/esm/plugins/emoji/ui/emoji.js +1 -6
- package/esm/plugins/export-docs/assets/export.svg.js +1 -1
- package/esm/plugins/export-docs/config.js +1 -6
- package/esm/plugins/export-docs/export-docs.js +2 -6
- package/esm/plugins/finder/browser.js +1 -6
- package/esm/plugins/finder/config.js +1 -6
- package/esm/plugins/finder/finder.js +1 -6
- package/esm/plugins/finder/helpers/context-menu.js +1 -6
- package/esm/plugins/finder/helpers/helpers.js +1 -6
- package/esm/plugins/finder/helpers/history-manager.js +1 -6
- package/esm/plugins/finder/helpers/loading-manager.js +1 -6
- package/esm/plugins/finder/helpers/persistent-store.js +1 -6
- package/esm/plugins/finder/helpers/state-manager.js +1 -6
- package/esm/plugins/finder/langs/index.js +1 -6
- package/esm/plugins/finder/langs/ru.js +1 -6
- package/esm/plugins/finder/ui/assets/icons/heart.svg.js +1 -1
- package/esm/plugins/finder/ui/assets/icons/home.svg.js +1 -1
- package/esm/plugins/finder/ui/assets/icons/index.js +1 -6
- package/esm/plugins/finder/ui/assets/icons/new-folder.svg.js +1 -1
- package/esm/plugins/finder/ui/folder/folder.js +10 -6
- package/esm/plugins/finder/ui/header/header.js +1 -6
- package/esm/plugins/finder/ui/item/item.js +5 -6
- package/esm/plugins/finder/ui/lightboox/lightbox.js +6 -6
- package/esm/plugins/finder/ui/panel/panel.js +4 -6
- package/esm/plugins/finder/ui/preview/preview.js +6 -1
- package/esm/plugins/finder/ui/progress/progress.js +1 -1
- package/esm/plugins/finder/ui/settings/settings.js +5 -6
- package/esm/plugins/finder/ui/sidebar/sidebar.js +5 -1
- package/esm/plugins/finder/ui/source/source.js +4 -6
- package/esm/plugins/finder/ui/sources/sources.js +1 -6
- package/esm/plugins/finder/ui/statusbar/statusbar.js +5 -6
- package/esm/plugins/finder/ui/tree/tree.js +1 -6
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +5 -6
- package/esm/plugins/google-maps/assets/circle.svg.js +1 -1
- package/esm/plugins/google-maps/assets/hand.svg.js +1 -1
- package/esm/plugins/google-maps/assets/icon.svg.js +1 -1
- package/esm/plugins/google-maps/assets/index.js +1 -6
- package/esm/plugins/google-maps/assets/marker.svg.js +1 -1
- package/esm/plugins/google-maps/assets/polygon.svg.js +1 -1
- package/esm/plugins/google-maps/assets/polyline.svg.js +1 -1
- package/esm/plugins/google-maps/assets/text.svg.js +1 -1
- package/esm/plugins/google-maps/config.js +1 -6
- package/esm/plugins/google-maps/google-maps.js +1 -6
- package/esm/plugins/google-maps/helpers/const.js +1 -6
- package/esm/plugins/google-maps/helpers/generate-js-script.js +122 -1
- package/esm/plugins/google-maps/helpers/generate-static-elements.js +1 -6
- package/esm/plugins/google-maps/helpers/helpers.js +1 -6
- package/esm/plugins/google-maps/helpers/static-url.js +1 -6
- package/esm/plugins/google-maps/ui/combo-box/combo-box.js +1 -6
- package/esm/plugins/google-maps/ui/editors/base.js +5 -6
- package/esm/plugins/google-maps/ui/editors/index.js +1 -6
- package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -6
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +1 -6
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +1 -6
- package/esm/plugins/google-maps/ui/index.js +1 -6
- package/esm/plugins/google-maps/ui/map/map.js +5 -6
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.js +1 -6
- package/esm/plugins/google-maps/ui/map/modules/index.js +1 -6
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.js +1 -6
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.js +1 -6
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.js +1 -6
- package/esm/plugins/google-maps/ui/map/modules/remove-element.js +1 -6
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.js +1 -6
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +1 -6
- package/esm/plugins/google-maps/ui/maps-props/maps-props.js +1 -6
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +4 -6
- package/esm/plugins/google-search/google-search.js +1 -6
- package/esm/plugins/google-search/icon.svg.js +1 -1
- package/esm/plugins/highlight-signature/config.js +1 -1
- package/esm/plugins/highlight-signature/highlight-signature.js +1 -6
- package/esm/plugins/iframe-editor/config.js +1 -6
- package/esm/plugins/iframe-editor/icon.svg.js +1 -1
- package/esm/plugins/iframe-editor/iframe-editor.js +1 -6
- package/esm/plugins/iframe-editor/interface.js +0 -6
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js +1 -6
- package/esm/plugins/index.js +1 -1
- package/esm/plugins/keyboard/config.js +1 -1
- package/esm/plugins/keyboard/icon.svg.js +1 -1
- package/esm/plugins/keyboard/interface.js +0 -6
- package/esm/plugins/keyboard/keyboard.js +1 -1
- package/esm/plugins/keyboard/ui/assets/backspace.svg.js +1 -1
- package/esm/plugins/keyboard/ui/assets/caps.svg.js +1 -1
- package/esm/plugins/keyboard/ui/assets/dots.svg.js +1 -1
- package/esm/plugins/keyboard/ui/assets/shift.svg.js +1 -1
- package/esm/plugins/keyboard/ui/assets/tab.svg.js +1 -1
- package/esm/plugins/keyboard/ui/keyboard/keyboard.js +3 -6
- package/esm/plugins/license/helpers/helpers.js +1 -6
- package/esm/plugins/license/license.js +1 -6
- package/esm/plugins/mobile-view/config.js +1 -6
- package/esm/plugins/mobile-view/icon.svg.js +1 -1
- package/esm/plugins/mobile-view/mobile-view.js +1 -6
- package/esm/plugins/page-break/assets/page-break.svg.js +1 -1
- package/esm/plugins/page-break/config.js +1 -6
- package/esm/plugins/page-break/page-break.css.js +18 -6
- package/esm/plugins/page-break/page-break.js +1 -6
- package/esm/plugins/paste-code/config.js +1 -6
- package/esm/plugins/paste-code/icon.svg.js +1 -1
- package/esm/plugins/paste-code/paste-code.js +1 -6
- package/esm/plugins/paste-from-word/cases/clean-styles.js +1 -6
- package/esm/plugins/paste-from-word/cases/clear-attributes.js +1 -6
- package/esm/plugins/paste-from-word/cases/clear-class-name.js +1 -6
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.js +1 -6
- package/esm/plugins/paste-from-word/cases/convert-to-list.js +1 -6
- package/esm/plugins/paste-from-word/cases/index.js +1 -6
- package/esm/plugins/paste-from-word/cases/mark-page-break.js +1 -6
- package/esm/plugins/paste-from-word/cases/normalize-image-props.js +1 -6
- package/esm/plugins/paste-from-word/cases/process-image.js +1 -6
- package/esm/plugins/paste-from-word/cases/process-links.js +1 -6
- package/esm/plugins/paste-from-word/cases/remove-extra-tags.js +1 -6
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.js +1 -6
- package/esm/plugins/paste-from-word/cases/replace-old-tags.js +1 -6
- package/esm/plugins/paste-from-word/cases/table.js +1 -6
- package/esm/plugins/paste-from-word/config.js +1 -6
- package/esm/plugins/paste-from-word/constants.js +1 -6
- package/esm/plugins/paste-from-word/element/checkers.js +1 -6
- package/esm/plugins/paste-from-word/element/element.js +1 -6
- package/esm/plugins/paste-from-word/element/index.js +1 -6
- package/esm/plugins/paste-from-word/element/render.js +1 -6
- package/esm/plugins/paste-from-word/element/style.js +1 -6
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +1 -6
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +1 -6
- package/esm/plugins/paste-from-word/helpers/helpers.js +1 -6
- package/esm/plugins/paste-from-word/helpers/index.js +1 -6
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.js +1 -6
- package/esm/plugins/paste-from-word/interface.js +0 -6
- package/esm/plugins/paste-from-word/paste-from-word.js +1 -6
- package/esm/plugins/show-blocks/config.js +1 -6
- package/esm/plugins/show-blocks/langs/ar.js +1 -6
- package/esm/plugins/show-blocks/langs/cs_cz.js +1 -6
- package/esm/plugins/show-blocks/langs/de.js +1 -6
- package/esm/plugins/show-blocks/langs/es.js +1 -6
- package/esm/plugins/show-blocks/langs/fa.js +1 -6
- package/esm/plugins/show-blocks/langs/fr.js +1 -6
- package/esm/plugins/show-blocks/langs/he.js +1 -6
- package/esm/plugins/show-blocks/langs/hu.js +1 -6
- package/esm/plugins/show-blocks/langs/id.js +1 -6
- package/esm/plugins/show-blocks/langs/index.js +1 -6
- package/esm/plugins/show-blocks/langs/it.js +1 -6
- package/esm/plugins/show-blocks/langs/ja.js +1 -6
- package/esm/plugins/show-blocks/langs/ko.js +1 -6
- package/esm/plugins/show-blocks/langs/nl.js +1 -6
- package/esm/plugins/show-blocks/langs/pl.js +1 -6
- package/esm/plugins/show-blocks/langs/pt_br.js +1 -6
- package/esm/plugins/show-blocks/langs/ru.js +1 -6
- package/esm/plugins/show-blocks/langs/tr.js +1 -6
- package/esm/plugins/show-blocks/langs/zh_cn.js +1 -6
- package/esm/plugins/show-blocks/langs/zh_tw.js +1 -6
- package/esm/plugins/show-blocks/show-blocks.js +7 -6
- package/esm/plugins/show-blocks/show-blocks.svg.js +1 -1
- package/esm/plugins/todo-list/assets/todo-list.svg.js +1 -1
- package/esm/plugins/todo-list/config.js +1 -6
- package/esm/plugins/todo-list/todo-list.js +1 -6
- package/esm/plugins/translate/assets/swap.svg.js +1 -1
- package/esm/plugins/translate/assets/translate.svg.js +1 -1
- package/esm/plugins/translate/config.js +1 -6
- package/esm/plugins/translate/interface.js +0 -6
- package/esm/plugins/translate/providers/google/google.js +1 -6
- package/esm/plugins/translate/providers/languages.js +1 -6
- package/esm/plugins/translate/replace-text-fragments.js +1 -1
- package/esm/plugins/translate/translate.js +1 -6
- package/esm/plugins/translate/ui/list/list.js +7 -6
- package/esm/plugins/translate/ui/settings/settings.js +7 -6
- package/esm/plugins/tune-block/config.js +3 -6
- package/esm/plugins/tune-block/tune-block.js +1 -6
- package/esm/plugins/tune-block/ui/tuner/icon.svg.js +1 -1
- package/esm/plugins/tune-block/ui/tuner/tuner.js +3 -6
- package/esm/traits/resize/resize.js +1 -6
- package/esm/traits/select-items/select-items.js +1 -6
- package/package.json +1 -1
- package/esm/tsconfig.json +0 -17
- package/types/tsconfig.json +0 -17
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var t='<svg height="1792" viewBox="0 0 1792 1792" width="1792" xmlns="http://www.w3.org/2000/svg"> <path d="M1262 1075q-37 121-138 195t-228 74-228-74-138-195q-8-25 4-48.5t38-31.5q25-8 48.5 4t31.5 38q25 80 92.5 129.5t151.5 49.5 151.5-49.5 92.5-129.5q8-26 32-38t49-4 37 31.5 4 48.5zm-494-435q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm512 0q0 53-37.5 90.5t-90.5 37.5-90.5-37.5-37.5-90.5 37.5-90.5 90.5-37.5 90.5 37.5 37.5 90.5zm256 256q0-130-51-248.5t-136.5-204-204-136.5-248.5-51-248.5 51-204 136.5-136.5 204-51 248.5 51 248.5 136.5 204 204 136.5 248.5 51 248.5-51 204-136.5 136.5-204 51-248.5zm128 0q0 209-103 385.5t-279.5 279.5-385.5 103-385.5-103-279.5-279.5-103-385.5 103-385.5 279.5-279.5 385.5-103 385.5 103 279.5 279.5 103 385.5z"/> </svg> ';export{t as default};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
var t,e=this&&this.__decorate||function(t,e,i,s){var o,a=arguments.length,r=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,i,s);else for(var n=t.length-1;n>=0;n--)(o=t[n])&&(r=(a<3?o(r):a>3?o(e,i,r):o(e,i))||r);return a>3&&r&&Object.defineProperty(e,i,r),r};import{autobind as i,component as s,debounce as o,hook as a,persistent as r,throttle as n}from"jodit/esm/core/decorators/index.js";import{Dom as l}from"jodit/esm/core/dom/dom.js";import{attr as c,isString as h}from"jodit/esm/core/helpers/index.js";import{UIElement as d,UIInput as u}from"jodit/esm/core/ui/index.js";let m=t=class Emoji extends d{className(){return"Emoji"}get defaultList(){return this.recent.concat(this.data?this.data.emoji:[])}reset(){this.input.nativeInput.value="",this.setItems(this.defaultList),this.setActiveCategory(0)}setItems(t){var e,i;this.list.scrollTo(0,0),l.detach(this.list),l.append(this.list,this.generateEmojiList(t,null!==(i=null===(e=this.data)||void 0===e?void 0:e.categories)&&void 0!==i?i:[]))}createContainer(t){const e=this.j.c.div("jodit-emoji");this.input=new u(this.j,{name:"search",icon:"search",autocomplete:!1,clearButton:!0,placeholder:"Search emoji"}),this.input.container.classList.add(this.getFullElName("input")),this.categories=this.j.c.div(this.getFullElName("categories")),this.list=this.j.c.div(this.getFullElName("emojis"));const i=this.j.c.div(this.getFullElName("navigate"));return l.append(i,[this.categories,this.input.container]),l.append(e,[i,this.list]),e}constructor(e){super(e),this.data=null,this.recent=[],this.map={},this.activeIndex=0,this.cache={},this.setMod("loading",!0),(async()=>{this.data=await e.o.emoji.data(),this.setMod("loading",!1),this.data.emoji.forEach(e=>{const i=t.normalizeEmoji(e);this.map[i.emoji]=i}),this.setItems(this.defaultList),l.append(this.categories,this.generateCategoriesList(this.data.categories)),this.setActiveCategory(0)})()}setActiveCategory(t,e=!1){const i=this.getElms("category"),s=i[this.activeIndex];i[t]||(t=i.length-1);const o=i[t],a=this.getFullElName("category","active",!0);s&&s.classList.remove(a),o&&o.classList.add(a),e&&this.getElms("category-title")[t].scrollIntoView(),this.activeIndex=t}generateCategoriesList(t){return t.map((e,i)=>this.j.c.div(this.getFullElName("category"),{"data-index":i,title:e,style:{width:100/t.length+"%"}}))}generateEmojiList(e,i){let s="";return e.reduce((e,o,a)=>{var r,n;const l=-1===(o=t.normalizeEmoji(o)).category?"Recently":i[o.category];if(l!==s){s=l;const t=null!==(r=this.cache[s])&&void 0!==r?r:this.j.c.div(this.getFullElName("category-title"),s?this.j.i18n(s):"");this.cache[s]=t,e.push(t)}const c=null!==(n=this.cache[o.emoji+o.category])&&void 0!==n?n:this.j.c.div(this.getFullElName("emoji"),{"data-id":a,"data-value":o.emoji},o.emoji);return this.cache[o.emoji+o.category]=c,e.push(c),e},[])}static isShortCat(t){return t&&h(t.e)}static normalizeEmoji(e){return t.isShortCat(e)?{emoji:e.e,description:e.d,category:e.c,aliases:e.a,tags:e.t}:e}onInsertCode(t){this.jodit.e.fire(this,"insert",t);const e=this.map[t];if(e){const i=[...this.recent],s=i.findIndex(e=>e.emoji===t);-1!==s&&i.splice(s,1),i.unshift({...e,category:-1}),this.recent=i}}onScrollList(){const t=this.list.scrollTop,e=this.getElms("category-title");let i=0;e.forEach((e,s)=>{const o=e.offsetTop-this.list.offsetTop-20;t>o&&(i=s)}),this.setActiveCategory(i)}onClickCategory(t){this.clearFilter();const e=t.target;e.classList.contains(this.getFullElName("category"))&&this.setActiveCategory(parseInt(c(e,"-index")||"0",10)||0,!0)}onClickItem(t){const e=t.target;if(e.classList.contains(this.getFullElName("emoji"))){const t=c(e,"-value")||"";t&&this.onInsertCode(t)}t.preventDefault()}onInputFilter(){const e=this.input.value.toLowerCase();if(!e.length)return this.setItems(this.defaultList);this.setItems(this.defaultList.filter(i=>{var s,o,a;const r=t.normalizeEmoji(i);return(null===(s=r.description)||void 0===s?void 0:s.toLowerCase().includes(e))||(null===(o=r.tags)||void 0===o?void 0:o.join(" ").toLowerCase().includes(e))||(null===(a=r.aliases)||void 0===a?void 0:a.join(" ").toLowerCase().includes(e))}))}clearFilter(){this.input.nativeInput.value.length&&this.reset()}onReady(){this.j.e.on(this.input.nativeInput,"input",this.onInputFilter).on(this.categories,"click",this.onClickCategory).on(this.list,"scroll",this.onScrollList).on(this.list,"mousedown touchstart",this.onClickItem)}destruct(){return this.input.destruct(),super.destruct()}};e([r],m.prototype,"recent",void 0),e([n()],m.prototype,"onScrollList",null),e([i],m.prototype,"onClickCategory",null),e([i],m.prototype,"onClickItem",null),e([o()],m.prototype,"onInputFilter",null),e([a("ready")],m.prototype,"onReady",null),m=t=e([s],m);export{m as Emoji};
|
|
1
|
+
var j=Object.defineProperty;var f=(u,t)=>j(u,"name",{value:t,configurable:!0});var h,l=function(u,t,i,e){var o=arguments.length,s=o<3?t:e===null?e=Object.getOwnPropertyDescriptor(t,i):e,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(u,t,i,e);else for(var r=u.length-1;r>=0;r--)(a=u[r])&&(s=(o<3?a(s):o>3?a(t,i,s):a(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s},c;import{autobind as y,component as E,debounce as I,hook as L,persistent as F,throttle as w}from"jodit/esm/core/decorators/index.js";import{Dom as d}from"jodit/esm/core/dom/dom.js";import{attr as C,isString as N}from"jodit/esm/core/helpers/index.js";import{UIElement as _,UIInput as b}from"jodit/esm/core/ui/index.js";let n=c=(h=class extends _{className(){return"Emoji"}get defaultList(){return this.recent.concat(this.data?this.data.emoji:[])}reset(){this.input.nativeInput.value="",this.setItems(this.defaultList),this.setActiveCategory(0)}setItems(t){var i,e;this.list.scrollTo(0,0),d.detach(this.list),d.append(this.list,this.generateEmojiList(t,(e=(i=this.data)===null||i===void 0?void 0:i.categories)!==null&&e!==void 0?e:[]))}createContainer(t){const i=this.j.c.div("jodit-emoji");this.input=new b(this.j,{name:"search",icon:"search",autocomplete:!1,clearButton:!0,placeholder:"Search emoji"}),this.input.container.classList.add(this.getFullElName("input")),this.categories=this.j.c.div(this.getFullElName("categories")),this.list=this.j.c.div(this.getFullElName("emojis"));const e=this.j.c.div(this.getFullElName("navigate"));return d.append(e,[this.categories,this.input.container]),d.append(i,[e,this.list]),i}constructor(t){super(t),this.data=null,this.recent=[],this.map={},this.activeIndex=0,this.cache={},this.setMod("loading",!0),(async()=>(this.data=await t.o.emoji.data(),this.setMod("loading",!1),this.data.emoji.forEach(i=>{const e=c.normalizeEmoji(i);this.map[e.emoji]=e}),this.setItems(this.defaultList),d.append(this.categories,this.generateCategoriesList(this.data.categories)),this.setActiveCategory(0)))()}setActiveCategory(t,i=!1){const e=this.getElms("category"),o=e[this.activeIndex];e[t]||(t=e.length-1);const s=e[t],a=this.getFullElName("category","active",!0);o&&o.classList.remove(a),s&&s.classList.add(a),i&&this.getElms("category-title")[t].scrollIntoView(),this.activeIndex=t}generateCategoriesList(t){return t.map((i,e)=>this.j.c.div(this.getFullElName("category"),{"data-index":e,title:i,style:{width:100/t.length+"%"}}))}generateEmojiList(t,i){let e="";return t.reduce((o,s,a)=>{var r,p;s=c.normalizeEmoji(s);const g=s.category===-1?"Recently":i[s.category];if(g!==e){e=g;const v=(r=this.cache[e])!==null&&r!==void 0?r:this.j.c.div(this.getFullElName("category-title"),e?this.j.i18n(e):"");this.cache[e]=v,o.push(v)}const m=(p=this.cache[s.emoji+s.category])!==null&&p!==void 0?p:this.j.c.div(this.getFullElName("emoji"),{"data-id":a,"data-value":s.emoji},s.emoji);return this.cache[s.emoji+s.category]=m,o.push(m),o},[])}static isShortCat(t){return t&&N(t.e)}static normalizeEmoji(t){return c.isShortCat(t)?{emoji:t.e,description:t.d,category:t.c,aliases:t.a,tags:t.t}:t}onInsertCode(t){this.jodit.e.fire(this,"insert",t);const i=this.map[t];if(i){const e=[...this.recent],o=e.findIndex(s=>s.emoji===t);o!==-1&&e.splice(o,1),e.unshift({...i,category:-1}),this.recent=e}}onScrollList(){const t=this.list.scrollTop,i=this.getElms("category-title");let e=0;i.forEach((o,s)=>{const a=o.offsetTop-this.list.offsetTop-20;t>a&&(e=s)}),this.setActiveCategory(e)}onClickCategory(t){this.clearFilter();const i=t.target;i.classList.contains(this.getFullElName("category"))&&this.setActiveCategory(parseInt(C(i,"-index")||"0",10)||0,!0)}onClickItem(t){const i=t.target;if(i.classList.contains(this.getFullElName("emoji"))){const e=C(i,"-value")||"";e&&this.onInsertCode(e)}t.preventDefault()}onInputFilter(){const t=this.input.value.toLowerCase();if(!t.length)return this.setItems(this.defaultList);this.setItems(this.defaultList.filter(i=>{var e,o,s;const a=c.normalizeEmoji(i);return((e=a.description)===null||e===void 0?void 0:e.toLowerCase().includes(t))||((o=a.tags)===null||o===void 0?void 0:o.join(" ").toLowerCase().includes(t))||((s=a.aliases)===null||s===void 0?void 0:s.join(" ").toLowerCase().includes(t))}))}clearFilter(){this.input.nativeInput.value.length&&this.reset()}onReady(){this.j.e.on(this.input.nativeInput,"input",this.onInputFilter).on(this.categories,"click",this.onClickCategory).on(this.list,"scroll",this.onScrollList).on(this.list,"mousedown touchstart",this.onClickItem)}destruct(){return this.input.destruct(),super.destruct()}},f(h,"Emoji"),h);l([F],n.prototype,"recent",void 0),l([w()],n.prototype,"onScrollList",null),l([y],n.prototype,"onClickCategory",null),l([y],n.prototype,"onClickItem",null),l([I()],n.prototype,"onInputFilter",null),l([L("ready")],n.prototype,"onReady",null),n=c=l([E],n);export{n as Emoji};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var a='<svg viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"> <path d="M19,21H5a2,2,0,0,1-2-2V17a1,1,0,0,1,2,0v2H19V17a1,1,0,0,1,2,0v2A2,2,0,0,1,19,21Z"/> <path d="M18,5H6A1,1,0,0,1,6,3H18a1,1,0,0,1,0,2Z"/> <path d="M15.71,10.29l-3-3a1,1,0,0,0-.33-.21,1,1,0,0,0-.76,0,1,1,0,0,0-.33.21l-3,3a1,1,0,0,0-.21,1.09A1,1,0,0,0,9,12h2v3a1,1,0,0,0,2,0V12h2a1,1,0,0,0,.92-.62A1,1,0,0,0,15.71,10.29Z"/> </svg> ';export{a as default};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
import o from"./assets/export.svg.js";import{Config as t}from"jodit/esm/config.js";import{Dom as r}from"jodit/esm/core/dom/dom.js";t.prototype.exportDocs={css:"",pdf:{externalFonts:[],allow:!0,options:{defaultFont:"courier",format:"A4",page_orientation:"portrait"}}},t.prototype.controls.exportDocs={tooltip:"Export",isDisabled:o=>r.isEmptyContent(o.editor),icon:o,list:{exportToPdf:"Export to PDF"},command:"exportToPDF"};
|
|
1
|
+
var e=Object.defineProperty;var t=(o,p)=>e(o,"name",{value:p,configurable:!0});import i from"./assets/export.svg.js";import{Config as r}from"jodit/esm/config.js";import{Dom as n}from"jodit/esm/core/dom/dom.js";r.prototype.exportDocs={css:"",pdf:{externalFonts:[],allow:!0,options:{defaultFont:"courier",format:"A4",page_orientation:"portrait"}}},r.prototype.controls.exportDocs={tooltip:"Export",isDisabled:t(o=>n.isEmptyContent(o.editor),"isDisabled"),icon:i,list:{exportToPdf:"Export to PDF"},command:"exportToPDF"};
|
|
@@ -1,6 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
import"./config.js";import{Dom as e}from"jodit/esm/core/dom/index.js";import{ConfigDeepFlatten as o}from"jodit/esm/core/helpers/utils/config-proto.js";import{previewBox as s}from"jodit/esm/core/helpers/utils/print.js";import{Plugin as r}from"jodit/esm/core/plugin/index.js";import{Ajax as t}from"jodit/esm/core/request/ajax.js";import{generateCriticalCSS as i}from"jodit/esm/plugins/print/lib/generate-critical-css.js";import{JoditPro as p}from"../../jodit-pro.js";export class ExportDocs extends r{constructor(){super(...arguments),this.buttons=[{name:"exportDocs",group:"media"}]}afterInit(s){s.registerCommand("exportToPDF",async()=>{var r;const i=new t({...null!==(r=s.o.exportDocs.ajax)&&void 0!==r?r:s.o.filebrowser.ajax,method:"POST",responseType:"blob",onProgress(e){s.progressbar.show().progress(e)},data:{action:"generatePdf",html:ExportDocs.getValue(s),options:o(s.o.exportDocs.pdf).options}});s.e.on("beforeDestruct",i.destruct);try{const o=await i.send(),s=await o.blob(),r=this.j.create.a(),t="document.pdf";r.href=URL.createObjectURL(s),r.download=t,r.click(),e.safeRemove(r),URL.revokeObjectURL(r.href)}catch(e){e.message&&s.alert(e.message)}finally{s.progressbar.progress(100),await s.async.delay(200),s.progressbar.hide()}})}static getValue(e){const[o]=s(e),r=[];return e.o.exportDocs.pdf.externalFonts.forEach(e=>{/^</.test(e)?r.push(e):r.push(`<link rel="stylesheet" href="${e}">`)}),r.push(`<style>${i(e)}</style>`),r.push(`<style>${e.o.exportDocs.css}</style>`),r.push(o.innerHTML),r.join("\n")}beforeDestruct(){}}ExportDocs.requires=["license"],p.plugins.add("exportDocs",ExportDocs);
|
|
1
|
+
var m=Object.defineProperty;var p=(c,e)=>m(c,"name",{value:e,configurable:!0});import"./config.js";import{Dom as f}from"jodit/esm/core/dom/index.js";import{ConfigDeepFlatten as u}from"jodit/esm/core/helpers/utils/config-proto.js";import{previewBox as g}from"jodit/esm/core/helpers/utils/print.js";import{Plugin as h}from"jodit/esm/core/plugin/index.js";import{Ajax as b}from"jodit/esm/core/request/ajax.js";import{generateCriticalCSS as x}from"jodit/esm/plugins/print/lib/generate-critical-css.js";import{JoditPro as y}from"../../jodit-pro.js";const n=class n extends h{constructor(){super(...arguments),this.buttons=[{name:"exportDocs",group:"media"}]}afterInit(e){e.registerCommand("exportToPDF",async()=>{var o;const r=new b({...(o=e.o.exportDocs.ajax)!==null&&o!==void 0?o:e.o.filebrowser.ajax,method:"POST",responseType:"blob",onProgress(s){e.progressbar.show().progress(s)},data:{action:"generatePdf",html:n.getValue(e),options:u(e.o.exportDocs.pdf).options}});e.e.on("beforeDestruct",r.destruct);try{const l=await(await r.send()).blob(),t=this.j.create.a(),i="document.pdf";t.href=URL.createObjectURL(l),t.download=i,t.click(),f.safeRemove(t),URL.revokeObjectURL(t.href)}catch(s){s.message&&e.alert(s.message)}finally{e.progressbar.progress(100),await e.async.delay(200),e.progressbar.hide()}})}static getValue(e){const[o]=g(e),r=[];return e.o.exportDocs.pdf.externalFonts.forEach(s=>{/^</.test(s)?r.push(s):r.push(`<link rel="stylesheet" href="${s}">`)}),r.push(`<style>${x(e)}</style>`),r.push(`<style>${e.o.exportDocs.css}</style>`),r.push(o.innerHTML),r.join(`
|
|
2
|
+
`)}beforeDestruct(){}};p(n,"ExportDocs");let a=n;a.requires=["license"],y.plugins.add("exportDocs",a);export{a as ExportDocs};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,s,i){var o,r=arguments.length,a=r<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 n=e.length-1;n>=0;n--)(o=e[n])&&(a=(r<3?o(a):r>3?o(t,s,a):o(t,s))||a);return r>3&&a&&Object.defineProperty(t,s,a),a};import"./ui/assets/icons/index.js";import{ContextMenuManager as t}from"./helpers/context-menu.js";import{parentPath as s}from"./helpers/helpers.js";import{HistoryManager as i}from"./helpers/history-manager.js";import{LoadingManager as o}from"./helpers/loading-manager.js";import{PersistentStore as r}from"./helpers/persistent-store.js";import{StateManager as a}from"./helpers/state-manager.js";import{UIBrowserHeader as n}from"./ui/header/header.js";import{UILightBox as h}from"./ui/lightboox/lightbox.js";import{UIBrowserPanel as l}from"./ui/panel/panel.js";import{UIProgress as m}from"./ui/progress/progress.js";import{Config as d}from"jodit/esm/config.js";import{IS_PROD as c,KEY_DELETE as p,KEY_DOWN as u,KEY_ENTER as f,KEY_LEFT as g,KEY_RIGHT as w,KEY_UP as v}from"jodit/esm/core/constants.js";import{autobind as b,cache as y,component as j,derive as P,watch as R}from"jodit/esm/core/decorators/index.js";import{ConfigProto as M,css as F,isAbort as S,isString as E,isValidName as C}from"jodit/esm/core/helpers/index.js";import{Dlgs as x}from"jodit/esm/core/traits/dlgs.js";import{Dom as _,observable as B}from"jodit/esm/modules/index.js";import{Dialog as O}from"jodit/esm/modules/dialog/index.js";import{makeDataProvider as k}from"jodit/esm/modules/file-browser/factories.js";import{openImageEditor as I}from"jodit/esm/modules/image-editor/image-editor.js";import{JoditPro as L}from"../../jodit-pro.js";import{license as N}from"../license/license.js";let D=class FileBrowserPro extends O{className(){return"FileBrowserPro"}lock(e="any"){return this.container.classList.add("jodit_disabled"),super.lock(e)}unlock(){return this.container.classList.remove("jodit_disabled"),super.unlock()}status(e,t=!(e instanceof Error)){S(e)||(c||E(e)||console.error(e),this.message.message(E(e)?e:e.message,t?"success":"error",this.options.howLongShowMsg))}get progressbar(){return new m(this,this.stateManager.state)}constructor(e){super(M(Object.assign(e||{},{resizable:!0,draggable:!0,toolbarButtons:(null==e?void 0:e.toolbarButtons)||d.defaultOptions.filebrowser.buttons,buttons:L.atom(["filebrowser.settings","fullsize","dialog.close"])}),d.defaultOptions.filebrowser)),this.dataProvider=k(this,this.options),this.state=B({onSelectCallBack:null,theme:"default",showSideBar:!0,showFavorites:!0,showSettings:!1,showPreview:!1,withFolders:!0,foldersPosition:"bottom",info:"",metaInfo:null,currentPath:"",currentSource:"",currentBaseUrl:"",tree:[],activeElements:[],favorites:[],progress:0,lastSelectedIndex:0,elements:[],messages:[],sources:[],view:"tiles",tileSize:"default",sortBy:"name-asc",filterWord:"",onlyImages:!1}),this.persistent=new r(this,this.state),this.loadingManager=new o(this,this.state),this.stateManager=new a(this.state),this.historyManager=new i(this,this.state),this.contextMenuManager=new t(this),this.header=new n(this,this.options,this.stateManager),this.panel=new l(this,this.stateManager),this.files=this.panel,this.tree=this.panel,N.make(this),!this.persistent.theme&&this.options.theme&&(this.persistent.theme=this.options.theme),this.panel.append(this.progressbar),this.toolbar.setMod("mode","header"),this.setSize(Math.min(this.options.width,screen.width),Math.min(this.options.height,screen.height)).setHeader(this.header),this.onResizeWindow(),this.initUploader(),this.onChangeTheme(),this.fullFillOptions(),this.dataProvider.onProgress(e=>{0===e&&(e=30),this.state.progress=e}),this.e.on("beforeClose",this.removeGlobalListeners),this.e.fire("afterInit"),L.prototype.afterInitHook.call(this)}addDisclaimer(e){this.dialog.appendChild(e)}async open(e=this.o.defaultCallback,t){return this.state.onlyImages=Boolean(t),this.prepareOpening(e),super.open(this.panel.container),this.e.fire("update.filebrowser")}onResizeWindow(){F(this.dialog,{maxWidth:screen.width,minHeight:Math.min(this.options.height,screen.height),minWidth:Math.min(this.options.width,screen.width)})}onChangePath(){const{currentPath:e,currentSource:t}=this.state;this.uploader.setPath(e),this.uploader.setSource(t)}onChangeTheme(){this.setMod("theme",this.state.theme),this.header.setMod("theme",this.state.theme),this.panel.setMod("theme",this.state.theme),this.options.theme=this.state.theme}onToggleSettings(){this.state.showSettings=!this.state.showSettings}prepareOpening(e){this.registerGlobalListeners(),e&&(this.state.onSelectCallBack=t=>{this.close(),e(t)}),this.persistent.syncWithState()}registerGlobalListeners(){this.e.on(this.ow,"keydown",this.onKeyPress)}onKeyPress(e){const{activeElement:t}=this.od;if(!this.state.activeElements.length||!t||!_.isOrContains(this.panel.items.container,t))return;const s=this.state.elements;switch(e.key){case f:return this.onChooseItems();case p:return this.onFileRemove();case w:case g:case u:case v:{const t=e.key===w||e.key===u,i=this.state.lastSelectedIndex;let o;if([w,g].includes(e.key))o=t?s[i+1]?i+1:0:s[i-1]?i-1:s.length-1;else{const{countInRow:e}=this.panel;o=Math.round(((i+1)/e+(t?1:-1))*e-1)}return s[o]&&this.stateManager.addActive(s[o],e.shiftKey),!1}}}removeGlobalListeners(){this.e.off(this.ow,"keydown",this.onKeyPress)}onFileRemove(){this.state.activeElements.length&&this.confirm("Are you sure?","Delete",e=>{e&&this.__itemsRemove(this.state.activeElements)}).bindDestruct(this)}__itemsRemove(e){if(!e.length)return Promise.resolve();const t=[];return e.forEach(e=>{var i;t.push("folder"===e.type?this.__folderRemove(s(e.path),null!==(i=e.name)&&void 0!==i?i:"",e.sourceName):this.__removeFile(e.file||e.name||"",e.sourceName))}),this.state.activeElements.forEach(e=>{this.stateManager.isFavorite(e)&&this.stateManager.toggleFavorite(e)}),this.state.activeElements=[],Promise.allSettled(t).then(()=>Promise.allSettled([this.loadingManager.loadItems(),this.loadingManager.loadFolders()]))}__removeFile(e,t){return this.dataProvider.fileRemove(this.state.currentPath,e,t).then(t=>{this.status(t||this.i18n('File "%s" was deleted',e),!0)}).catch(this.status)}__folderRemove(e,t,i){return this.dataProvider.folderRemove(e,t,i).then(o=>{this.status(o||this.i18n('Folder "%s" was deleted',t),!0),this.state.currentPath===e&&(this.state.currentPath=s(e),this.state.currentSource=i)}).catch(this.status)}onFileEdit(){if(1===this.state.activeElements.length){const[e]=this.state.activeElements;I.call(this,e.fileURL,e.file||"",e.path,e.sourceName,void 0,this.status)}}onFolderRename(e){this.prompt("Enter new name","Rename",t=>{if(!C(t)||t===e.name)return this.status(this.i18n("Enter new name")),!1;this.dataProvider.folderRename(s(e.path),e.name,t,e.sourceName).then(i=>{this.state.activeElements=[],this.status(i,!0),this.state.currentPath=s(e.path)+"/"+t,this.state.currentSource=e.sourceName,this.historyManager.updateCurrent(),this.loadingManager.loadFolders()}).catch(this.status)},this.i18n("type name"),e.name).bindDestruct(this)}onFolderRemove(e){this.confirm("Are you sure?","Delete",t=>{t&&this.__itemsRemove([{type:"folder",name:e.name,path:e.path,sourceName:e.sourceName}])}).bindDestruct(this)}onFolderCreate(e){this.prompt("Enter Directory name","Create directory",t=>{const s=e.path||"/";this.dataProvider.createFolder(t,e.path||"/",e.sourceName).then(()=>{this.state.currentSource===e.sourceName&&this.state.currentPath===s?this.e.fire("update.filebrowser"):(this.state.currentSource=e.sourceName,this.state.currentPath=s),this.historyManager.updateCurrent()},this.status)},this.i18n("type name")).bindDestruct(this)}onFileRename(e){const t=e.file||e.name||"";1===this.state.activeElements.length&&t&&this.prompt("Enter new name","Rename",e=>{if(!C(e))return this.status(this.i18n("Enter new name")),!1;this.dataProvider.fileRename(this.state.currentPath,t,e,this.state.currentSource).then(e=>{this.state.activeElements=[],this.status(e,!0),this.loadingManager.loadItems()}).catch(this.status)},this.i18n("type name"),t).bindDestruct(this)}onChooseItems(){const e=this.stateManager.state.activeElements;if(e.length){if("folder"===e[0].type)return this.state.currentPath=this.state.currentPath+"/"+e[0].name,this.state.currentSource=e[0].sourceName,void this.e.fire("afterOpenFolder.filebrowser");this.state.onSelectCallBack?this.stateManager.callSelectHandler():this.onOpenLightBox(e[0])}}onOpenLightBox(e){h.open(this,e,this.state.elements)}initUploader(){const e=this,t=M(e.o.uploader||{},d.defaultOptions.uploader),uploadHandler=()=>this.loadingManager.loadItems();e.uploader=e.getInstance("Uploader",t),e.uploader.bind(e.panel.container,uploadHandler,e.status),e.e.on("bindUploader.filebrowser",t=>{e.uploader.bind(t,uploadHandler,e.status)})}destruct(){this.removeGlobalListeners(),this.header.destruct(),this.panel.destruct(),super.destruct()}fullFillOptions(){["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(e=>{null!=this.options[e]&&(this.options[e]=M(this.options[e],this.o.ajax))})}};e([b],D.prototype,"status",null),e([y],D.prototype,"progressbar",null),e([R(":resize",{context:window})],D.prototype,"onResizeWindow",null),e([R(["state.currentPath","state.currentSource"])],D.prototype,"onChangePath",null),e([R("state.theme")],D.prototype,"onChangeTheme",null),e([R(":toggleSettings.filebrowser")],D.prototype,"onToggleSettings",null),e([b],D.prototype,"onKeyPress",null),e([b],D.prototype,"removeGlobalListeners",null),e([R(":fileRemove.filebrowser")],D.prototype,"onFileRemove",null),e([R(":edit.filebrowser")],D.prototype,"onFileEdit",null),e([R(":folderRename.filebrowser")],D.prototype,"onFolderRename",null),e([R(":folderRemove.filebrowser")],D.prototype,"onFolderRemove",null),e([R(":folderCreate.filebrowser")],D.prototype,"onFolderCreate",null),e([R(":fileRename.filebrowser")],D.prototype,"onFileRename",null),e([R(":select.filebrowser")],D.prototype,"onChooseItems",null),e([R(":openLightBox.filebrowser")],D.prototype,"onOpenLightBox",null),D=e([j,P(x)],D);export{D as FileBrowserPro};Object.defineProperty(L.modules,"FileBrowserPro",{value:D,writable:!1,enumerable:!0,configurable:!0});
|
|
1
|
+
var E=Object.defineProperty;var d=(m,e)=>E(m,"name",{value:e,configurable:!0});var u,o=function(m,e,t,s){var r=arguments.length,n=r<3?e:s===null?s=Object.getOwnPropertyDescriptor(e,t):s,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(m,e,t,s);else for(var l=m.length-1;l>=0;l--)(h=m[l])&&(n=(r<3?h(n):r>3?h(e,t,n):h(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n};import"./ui/assets/icons/index.js";import{ContextMenuManager as M}from"./helpers/context-menu.js";import{parentPath as c}from"./helpers/helpers.js";import{HistoryManager as S}from"./helpers/history-manager.js";import{LoadingManager as F}from"./helpers/loading-manager.js";import{PersistentStore as _}from"./helpers/persistent-store.js";import{StateManager as C}from"./helpers/state-manager.js";import{UIBrowserHeader as I}from"./ui/header/header.js";import{UILightBox as B}from"./ui/lightboox/lightbox.js";import{UIBrowserPanel as O}from"./ui/panel/panel.js";import{UIProgress as L}from"./ui/progress/progress.js";import{Config as p}from"jodit/esm/config.js";import{IS_PROD as x,KEY_DELETE as D,KEY_DOWN as b,KEY_ENTER as k,KEY_LEFT as y,KEY_RIGHT as f,KEY_UP as U}from"jodit/esm/core/constants.js";import{autobind as g,cache as K,component as N,derive as z,watch as a}from"jodit/esm/core/decorators/index.js";import{ConfigProto as v,css as T,isAbort as j,isString as P,isValidName as R}from"jodit/esm/core/helpers/index.js";import{Dlgs as H}from"jodit/esm/core/traits/dlgs.js";import{Dom as W,observable as G}from"jodit/esm/modules/index.js";import{Dialog as Y}from"jodit/esm/modules/dialog/index.js";import{makeDataProvider as A}from"jodit/esm/modules/file-browser/factories.js";import{openImageEditor as J}from"jodit/esm/modules/image-editor/image-editor.js";import{JoditPro as w}from"../../jodit-pro.js";import{license as V}from"../license/license.js";let i=(u=class extends Y{className(){return"FileBrowserPro"}lock(e="any"){return this.container.classList.add("jodit_disabled"),super.lock(e)}unlock(){return this.container.classList.remove("jodit_disabled"),super.unlock()}status(e,t=!(e instanceof Error)){j(e)||(!x&&!P(e)&&console.error(e),this.message.message(P(e)?e:e.message,t?"success":"error",this.options.howLongShowMsg))}get progressbar(){return new L(this,this.stateManager.state)}constructor(e){super(v(Object.assign(e||{},{resizable:!0,draggable:!0,toolbarButtons:e?.toolbarButtons||p.defaultOptions.filebrowser.buttons,buttons:w.atom(["filebrowser.settings","fullsize","dialog.close"])}),p.defaultOptions.filebrowser)),this.dataProvider=A(this,this.options),this.state=G({onSelectCallBack:null,theme:"default",showSideBar:!0,showFavorites:!0,showSettings:!1,showPreview:!1,withFolders:!0,foldersPosition:"bottom",info:"",metaInfo:null,currentPath:"",currentSource:"",currentBaseUrl:"",tree:[],activeElements:[],favorites:[],progress:0,lastSelectedIndex:0,elements:[],messages:[],sources:[],view:"tiles",tileSize:"default",sortBy:"name-asc",filterWord:"",onlyImages:!1}),this.persistent=new _(this,this.state),this.loadingManager=new F(this,this.state),this.stateManager=new C(this.state),this.historyManager=new S(this,this.state),this.contextMenuManager=new M(this),this.header=new I(this,this.options,this.stateManager),this.panel=new O(this,this.stateManager),this.files=this.panel,this.tree=this.panel,V.make(this),!this.persistent.theme&&this.options.theme&&(this.persistent.theme=this.options.theme),this.panel.append(this.progressbar),this.toolbar.setMod("mode","header"),this.setSize(Math.min(this.options.width,screen.width),Math.min(this.options.height,screen.height)).setHeader(this.header),this.onResizeWindow(),this.initUploader(),this.onChangeTheme(),this.fullFillOptions(),this.dataProvider.onProgress(t=>{t===0&&(t=30),this.state.progress=t}),this.e.on("beforeClose",this.removeGlobalListeners),this.e.fire("afterInit"),w.prototype.afterInitHook.call(this)}addDisclaimer(e){this.dialog.appendChild(e)}async open(e=this.o.defaultCallback,t){return this.state.onlyImages=!!t,this.prepareOpening(e),super.open(this.panel.container),this.e.fire("update.filebrowser")}onResizeWindow(){T(this.dialog,{maxWidth:screen.width,minHeight:Math.min(this.options.height,screen.height),minWidth:Math.min(this.options.width,screen.width)})}onChangePath(){const{currentPath:e,currentSource:t}=this.state;this.uploader.setPath(e),this.uploader.setSource(t)}onChangeTheme(){this.setMod("theme",this.state.theme),this.header.setMod("theme",this.state.theme),this.panel.setMod("theme",this.state.theme),this.options.theme=this.state.theme}onToggleSettings(){this.state.showSettings=!this.state.showSettings}prepareOpening(e){this.registerGlobalListeners(),e&&(this.state.onSelectCallBack=t=>{this.close(),e(t)}),this.persistent.syncWithState()}registerGlobalListeners(){this.e.on(this.ow,"keydown",this.onKeyPress)}onKeyPress(e){const{activeElement:t}=this.od;if(!this.state.activeElements.length||!t||!W.isOrContains(this.panel.items.container,t))return;const s=this.state.elements;switch(e.key){case k:return this.onChooseItems();case D:return this.onFileRemove();case f:case y:case b:case U:{const r=e.key===f||e.key===b,n=this.state.lastSelectedIndex;let h;if([f,y].includes(e.key))r?h=s[n+1]?n+1:0:h=s[n-1]?n-1:s.length-1;else{const{countInRow:l}=this.panel;h=Math.round(((n+1)/l+(r?1:-1))*l-1)}return s[h]&&this.stateManager.addActive(s[h],e.shiftKey),!1}}}removeGlobalListeners(){this.e.off(this.ow,"keydown",this.onKeyPress)}onFileRemove(){this.state.activeElements.length&&this.confirm("Are you sure?","Delete",e=>{e&&this.__itemsRemove(this.state.activeElements)}).bindDestruct(this)}__itemsRemove(e){if(!e.length)return Promise.resolve();const t=[];return e.forEach(s=>{var r;t.push(s.type==="folder"?this.__folderRemove(c(s.path),(r=s.name)!==null&&r!==void 0?r:"",s.sourceName):this.__removeFile(s.file||s.name||"",s.sourceName))}),this.state.activeElements.forEach(s=>{this.stateManager.isFavorite(s)&&this.stateManager.toggleFavorite(s)}),this.state.activeElements=[],Promise.allSettled(t).then(()=>Promise.allSettled([this.loadingManager.loadItems(),this.loadingManager.loadFolders()]))}__removeFile(e,t){return this.dataProvider.fileRemove(this.state.currentPath,e,t).then(s=>{this.status(s||this.i18n('File "%s" was deleted',e),!0)}).catch(this.status)}__folderRemove(e,t,s){return this.dataProvider.folderRemove(e,t,s).then(r=>{this.status(r||this.i18n('Folder "%s" was deleted',t),!0),this.state.currentPath===e&&(this.state.currentPath=c(e),this.state.currentSource=s)}).catch(this.status)}onFileEdit(){if(this.state.activeElements.length===1){const[e]=this.state.activeElements;J.call(this,e.fileURL,e.file||"",e.path,e.sourceName,void 0,this.status)}}onFolderRename(e){this.prompt("Enter new name","Rename",t=>{if(!R(t)||t===e.name)return this.status(this.i18n("Enter new name")),!1;this.dataProvider.folderRename(c(e.path),e.name,t,e.sourceName).then(s=>{this.state.activeElements=[],this.status(s,!0),this.state.currentPath=c(e.path)+"/"+t,this.state.currentSource=e.sourceName,this.historyManager.updateCurrent(),this.loadingManager.loadFolders()}).catch(this.status)},this.i18n("type name"),e.name).bindDestruct(this)}onFolderRemove(e){this.confirm("Are you sure?","Delete",t=>{t&&this.__itemsRemove([{type:"folder",name:e.name,path:e.path,sourceName:e.sourceName}])}).bindDestruct(this)}onFolderCreate(e){this.prompt("Enter Directory name","Create directory",t=>{const s=e.path||"/";this.dataProvider.createFolder(t,e.path||"/",e.sourceName).then(()=>{this.state.currentSource===e.sourceName&&this.state.currentPath===s?this.e.fire("update.filebrowser"):(this.state.currentSource=e.sourceName,this.state.currentPath=s),this.historyManager.updateCurrent()},this.status)},this.i18n("type name")).bindDestruct(this)}onFileRename(e){const t=e.file||e.name||"";this.state.activeElements.length===1&&t&&this.prompt("Enter new name","Rename",s=>{if(!R(s))return this.status(this.i18n("Enter new name")),!1;this.dataProvider.fileRename(this.state.currentPath,t,s,this.state.currentSource).then(r=>{this.state.activeElements=[],this.status(r,!0),this.loadingManager.loadItems()}).catch(this.status)},this.i18n("type name"),t).bindDestruct(this)}onChooseItems(){const e=this.stateManager.state.activeElements;if(e.length){if(e[0].type==="folder"){this.state.currentPath=this.state.currentPath+"/"+e[0].name,this.state.currentSource=e[0].sourceName,this.e.fire("afterOpenFolder.filebrowser");return}this.state.onSelectCallBack?this.stateManager.callSelectHandler():this.onOpenLightBox(e[0])}}onOpenLightBox(e){B.open(this,e,this.state.elements)}initUploader(){const e=this,t=v(e.o.uploader||{},p.defaultOptions.uploader),s=d(()=>this.loadingManager.loadItems(),"uploadHandler");e.uploader=e.getInstance("Uploader",t),e.uploader.bind(e.panel.container,s,e.status),e.e.on("bindUploader.filebrowser",r=>{e.uploader.bind(r,s,e.status)})}destruct(){this.removeGlobalListeners(),this.header.destruct(),this.panel.destruct(),super.destruct()}fullFillOptions(){["getLocalFileByUrl","crop","resize","create","fileMove","folderMove","fileRename","folderRename","fileRemove","folderRemove","folder","items","permissions"].forEach(t=>{this.options[t]!=null&&(this.options[t]=v(this.options[t],this.o.ajax))})}},d(u,"FileBrowserPro"),u);o([g],i.prototype,"status",null),o([K],i.prototype,"progressbar",null),o([a(":resize",{context:window})],i.prototype,"onResizeWindow",null),o([a(["state.currentPath","state.currentSource"])],i.prototype,"onChangePath",null),o([a("state.theme")],i.prototype,"onChangeTheme",null),o([a(":toggleSettings.filebrowser")],i.prototype,"onToggleSettings",null),o([g],i.prototype,"onKeyPress",null),o([g],i.prototype,"removeGlobalListeners",null),o([a(":fileRemove.filebrowser")],i.prototype,"onFileRemove",null),o([a(":edit.filebrowser")],i.prototype,"onFileEdit",null),o([a(":folderRename.filebrowser")],i.prototype,"onFolderRename",null),o([a(":folderRemove.filebrowser")],i.prototype,"onFolderRemove",null),o([a(":folderCreate.filebrowser")],i.prototype,"onFolderCreate",null),o([a(":fileRename.filebrowser")],i.prototype,"onFileRename",null),o([a(":select.filebrowser")],i.prototype,"onChooseItems",null),o([a(":openLightBox.filebrowser")],i.prototype,"onOpenLightBox",null),i=o([N,z(H)],i);Object.defineProperty(w.modules,"FileBrowserPro",{value:i,writable:!1,enumerable:!0,configurable:!0});export{i as FileBrowserPro};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
import*as e from"./langs/index.js";import{Config as o}from"jodit/esm/config.js";import{extendLang as r}from"jodit/esm/core/global.js";const i=o.prototype.controls.filebrowser;i.settings={icon:"settings",tooltip:"Settings",exec:e=>{var o;(null!==(o=e.parent)&&void 0!==o?o:e).e.fire("toggleSettings.filebrowser")}},i.home={icon:"home",tooltip:"Home",exec:e=>{e.e.fire("goHome.filebrowser")}},i.preview={icon:"eye",tooltip:"Preview",isDisabled:e=>0===e.state.activeElements.length,exec:e=>{e.e.fire("togglePreview.filebrowser")}},i.next={icon:"angle-right",tooltip:"History next",isDisabled:e=>!e.historyManager.canNext(),exec:e=>{e.historyManager.next()}},i.previous={icon:"angle-left",tooltip:"History previous",isDisabled:e=>!e.historyManager.canPrevious(),exec:e=>{e.historyManager.previous()}},i["new-folder"]={icon:"new-folder",exec:e=>{e.e.fire("folderCreate.filebrowser",{path:e.state.currentPath,sourceName:e.state.currentSource})},tooltip:"New folder"},Object.assign(o.prototype.filebrowser,{buttons:["filebrowser.home","filebrowser.previous","filebrowser.next","|","filebrowser.upload","filebrowser.new-folder","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.preview","about"],sort:!1,pixelOffsetLoadNewChunk:300,width:800,height:400,previewOfficeURL:"https://view.officeapps.live.com/op/view.aspx?src="}),r(e);
|
|
1
|
+
var s=Object.defineProperty;var o=(e,i)=>s(e,"name",{value:i,configurable:!0});import*as l from"./langs/index.js";import{Config as t}from"jodit/esm/config.js";import{extendLang as n}from"jodit/esm/core/global.js";const r=t.prototype.controls.filebrowser;r.settings={icon:"settings",tooltip:"Settings",exec:o(e=>{var i;((i=e.parent)!==null&&i!==void 0?i:e).e.fire("toggleSettings.filebrowser")},"exec")},r.home={icon:"home",tooltip:"Home",exec:o(e=>{e.e.fire("goHome.filebrowser")},"exec")},r.preview={icon:"eye",tooltip:"Preview",isDisabled(e){return e.state.activeElements.length===0},exec:o(e=>{e.e.fire("togglePreview.filebrowser")},"exec")},r.next={icon:"angle-right",tooltip:"History next",isDisabled:o(e=>!e.historyManager.canNext(),"isDisabled"),exec:o(e=>{e.historyManager.next()},"exec")},r.previous={icon:"angle-left",tooltip:"History previous",isDisabled:o(e=>!e.historyManager.canPrevious(),"isDisabled"),exec:o(e=>{e.historyManager.previous()},"exec")},r["new-folder"]={icon:"new-folder",exec:o(e=>{e.e.fire("folderCreate.filebrowser",{path:e.state.currentPath,sourceName:e.state.currentSource})},"exec"),tooltip:"New folder"},Object.assign(t.prototype.filebrowser,{buttons:["filebrowser.home","filebrowser.previous","filebrowser.next","|","filebrowser.upload","filebrowser.new-folder","filebrowser.remove","filebrowser.update","filebrowser.select","filebrowser.edit","|","filebrowser.preview","about"],sort:!1,pixelOffsetLoadNewChunk:300,width:800,height:400,previewOfficeURL:"https://view.officeapps.live.com/op/view.aspx?src="}),n(l);
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
import"./config.js";import{FileBrowserPro as e}from"./browser.js";import{Plugin as t}from"jodit/esm/core/plugin/index.js";import{JoditPro as r}from"../../jodit-pro.js";export class finder extends t{constructor(){super(...arguments),this.hasStyle=!r.fatMode}afterInit(t){t.e.on("getInstanceFileBrowser",t=>(this.__instance||(this.__instance=new e(t)),this.__instance))}beforeDestruct(e){var t;e.e.off("getInstanceFileBrowser"),null===(t=this.__instance)||void 0===t||t.destruct()}}finder.requires=["license"],r.plugins.add("finder",finder);
|
|
1
|
+
var a=Object.defineProperty;var i=(n,e)=>a(n,"name",{value:e,configurable:!0});import"./config.js";import{FileBrowserPro as c}from"./browser.js";import{Plugin as l}from"jodit/esm/core/plugin/index.js";import{JoditPro as o}from"../../jodit-pro.js";const s=class s extends l{constructor(){super(...arguments),this.hasStyle=!o.fatMode}afterInit(e){e.e.on("getInstanceFileBrowser",t=>(this.__instance||(this.__instance=new c(t)),this.__instance))}beforeDestruct(e){var t;e.e.off("getInstanceFileBrowser"),(t=this.__instance)===null||t===void 0||t.destruct()}};i(s,"finder");let r=s;r.requires=["license"],o.plugins.add("finder",r);export{r as finder};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,o,n){var i,r=arguments.length,l=r<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)l=Reflect.decorate(e,t,o,n);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(l=(r<3?i(l):r>3?i(t,o,l):i(t,o))||l);return r>3&&l&&Object.defineProperty(t,o,l),l};import{ViewComponent as t}from"jodit/esm/core/component/view-component.js";import{component as o,watch as n}from"jodit/esm/core/decorators/index.js";import{makeContextMenu as i}from"jodit/esm/modules/file-browser/factories.js";let r=class ContextMenuManager extends t{className(){return"ContextMenuManager"}onFolderContext(e,t){return this.buildContextItemMenu(this.getFolderContextActions(e),t),!1}onItemContext(e,t,o){return this.buildContextItemMenu(this.getItemContextActions(e),o),!1}onSourceContext(e,t){return this.buildContextItemMenu(this.getSourceContextActions(e),t),!1}buildContextItemMenu(e,t){if(!this.j.o.contextMenu)return;const o=i(this.j).setMod("theme",this.j.state.theme);o.show(t.clientX,t.clientY,e.filter(e=>e&&!1!==e.enabled)),this.j.e.on(this.j,"afterClose",()=>{o.isOpened&&o.close()})}getItemContextActions(e){if(this.j.stateManager.isActive(e)||this.j.stateManager.addActive(e,this.j.state.activeElements.length>1),"folder"===e.type)return this.getFolderContextActions({type:"directory",children:[],name:e.name||"",path:e.path,sourceName:e.sourceName});const t=this.j.options,o=this.j.dataProvider,n=1===this.j.state.activeElements.length;return[{icon:"pencil",title:"Edit",enabled:Boolean(e.isImage)&&t.editImage&&n&&(o.canI("ImageResize")||o.canI("ImageCrop")),exec:()=>{this.j.e.fire("edit.filebrowser")}},{icon:"italic",title:"Rename",enabled:o.canI("FileRename")&&n,exec:()=>this.j.e.fire("fileRename.filebrowser",e)},{icon:"bin",title:"Delete",enabled:o.canI("FileRemove"),exec:()=>this.j.e.fire("fileRemove.filebrowser",e)},{icon:"eye",title:"Preview",enabled:Boolean(e.isImage||"file"===e.type)&&t.preview&&n,exec:()=>this.j.e.fire("openLightBox.filebrowser",e)},{icon:"upload",title:"Download",exec:()=>{e.fileURL&&this.j.ow.open(e.fileURL)}}]}getFolderContextActions(e){const t=this.j.dataProvider;return[{icon:"pencil",title:"Rename",exec:()=>{this.j.e.fire("folderRename.filebrowser",e)},enabled:t.canI("FolderRename")},{icon:"bin",title:"Delete",exec:()=>{this.j.e.fire("folderRemove.filebrowser",e)},enabled:t.canI("FolderRemove")},{icon:"plus",title:"Add folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",e)},enabled:t.canI("FolderCreate")}]}getSourceContextActions(e){return[{icon:"plus",title:"Create folder",exec:()=>{this.j.e.fire("folderCreate.filebrowser",e)}}]}};e([n(":contextmenuFolder.filebrowser")],r.prototype,"onFolderContext",null),e([n(":contextmenuItem.filebrowser")],r.prototype,"onItemContext",null),e([n(":contextmenuSource.filebrowser")],r.prototype,"onSourceContext",null),r=e([o],r);export{r as ContextMenuManager};
|
|
1
|
+
var u=Object.defineProperty;var i=(c,e)=>u(c,"name",{value:e,configurable:!0});var s,f=function(c,e,t,o){var n=arguments.length,r=n<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,t):o,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(c,e,t,o);else for(var d=c.length-1;d>=0;d--)(a=c[d])&&(r=(n<3?a(r):n>3?a(e,t,r):a(e,t))||r);return n>3&&r&&Object.defineProperty(e,t,r),r};import{ViewComponent as x}from"jodit/esm/core/component/view-component.js";import{component as p,watch as h}from"jodit/esm/core/decorators/index.js";import{makeContextMenu as m}from"jodit/esm/modules/file-browser/factories.js";let l=(s=class extends x{className(){return"ContextMenuManager"}onFolderContext(e,t){return this.buildContextItemMenu(this.getFolderContextActions(e),t),!1}onItemContext(e,t,o){return this.buildContextItemMenu(this.getItemContextActions(e),o),!1}onSourceContext(e,t){return this.buildContextItemMenu(this.getSourceContextActions(e),t),!1}buildContextItemMenu(e,t){if(!this.j.o.contextMenu)return;const o=m(this.j).setMod("theme",this.j.state.theme);o.show(t.clientX,t.clientY,e.filter(n=>n&&n.enabled!==!1)),this.j.e.on(this.j,"afterClose",()=>{o.isOpened&&o.close()})}getItemContextActions(e){if(this.j.stateManager.isActive(e)||this.j.stateManager.addActive(e,this.j.state.activeElements.length>1),e.type==="folder")return this.getFolderContextActions({type:"directory",children:[],name:e.name||"",path:e.path,sourceName:e.sourceName});const t=this.j.options,o=this.j.dataProvider,n=this.j.state.activeElements.length===1;return[{icon:"pencil",title:"Edit",enabled:!!e.isImage&&t.editImage&&n&&(o.canI("ImageResize")||o.canI("ImageCrop")),exec:i(()=>{this.j.e.fire("edit.filebrowser")},"exec")},{icon:"italic",title:"Rename",enabled:o.canI("FileRename")&&n,exec:i(()=>this.j.e.fire("fileRename.filebrowser",e),"exec")},{icon:"bin",title:"Delete",enabled:o.canI("FileRemove"),exec:i(()=>this.j.e.fire("fileRemove.filebrowser",e),"exec")},{icon:"eye",title:"Preview",enabled:!!(e.isImage||e.type==="file")&&t.preview&&n,exec:i(()=>this.j.e.fire("openLightBox.filebrowser",e),"exec")},{icon:"upload",title:"Download",exec:i(()=>{e.fileURL&&this.j.ow.open(e.fileURL)},"exec")}]}getFolderContextActions(e){const t=this.j.dataProvider;return[{icon:"pencil",title:"Rename",exec:i(()=>{this.j.e.fire("folderRename.filebrowser",e)},"exec"),enabled:t.canI("FolderRename")},{icon:"bin",title:"Delete",exec:i(()=>{this.j.e.fire("folderRemove.filebrowser",e)},"exec"),enabled:t.canI("FolderRemove")},{icon:"plus",title:"Add folder",exec:i(()=>{this.j.e.fire("folderCreate.filebrowser",e)},"exec"),enabled:t.canI("FolderCreate")}]}getSourceContextActions(e){return[{icon:"plus",title:"Create folder",exec:i(()=>{this.j.e.fire("folderCreate.filebrowser",e)},"exec")}]}},i(s,"ContextMenuManager"),s);f([h(":contextmenuFolder.filebrowser")],l.prototype,"onFolderContext",null),f([h(":contextmenuItem.filebrowser")],l.prototype,"onItemContext",null),f([h(":contextmenuSource.filebrowser")],l.prototype,"onSourceContext",null),l=f([p],l);export{l as ContextMenuManager};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
export const parentPath=t=>{const n=t.split("/").filter(t=>t.length);return n.pop(),n.join("/")||"/"};
|
|
1
|
+
var e=Object.defineProperty;var p=(n,t)=>e(n,"name",{value:t,configurable:!0});const s=p(n=>{const t=n.split("/").filter(r=>r.length);return t.pop(),t.join("/")||"/"},"parentPath");export{s as parentPath};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
var t=this&&this.__decorate||function(t,e,r,s){var o,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,r,s);else for(var h=t.length-1;h>=0;h--)(o=t[h])&&(n=(i<3?o(n):i>3?o(e,r,n):o(e,r))||n);return i>3&&n&&Object.defineProperty(e,r,n),n};import{ViewComponent as e}from"jodit/esm/core/component/view-component.js";import{component as r,watch as s}from"jodit/esm/core/decorators/index.js";import{fastClone as o}from"jodit/esm/core/helpers/utils/extend.js";let i=class HistoryManager extends e{className(){return"HistoryManager"}constructor(t,e){super(t),this.state=e,this.history=[],this.historyIndex=0}canNext(){return this.historyIndex<this.history.length-1}canPrevious(){return this.historyIndex>0}push(t){let{historyIndex:e}=this;const r=this.history[e];if(r&&r.currentSource===t.currentSource&&r.currentPath===t.currentPath)return;let s=[...this.history];s.length-1!==e&&(s=s.slice(0,e+1)),s.push(t),r&&(e+=1),this.history=s,this.historyIndex=e}next(){this.canNext()&&(this.historyIndex+=1,this.updateState())}previous(){this.canPrevious()&&(this.historyIndex-=1,this.updateState())}updateCurrent(){this.history[this.historyIndex]={currentSource:this.state.currentSource,currentPath:this.state.currentPath,tree:o(this.state.tree),elements:[...this.state.elements]}}onHome(){this.state.currentPath="",this.state.currentSource="",this.j.e.fire("afterOpenFolder.filebrowser update.filebrowser")}onOpenFolder(){this.push({tree:[],elements:[],currentPath:this.state.currentPath,currentSource:this.state.currentSource}),this.j.e.fire("changeSelection")}updateState(){const{tree:t,elements:e,currentSource:r,currentPath:s}=this.history[this.historyIndex];this.state.activeElements=[],this.state.elements=[...e],this.state.tree=[...t],this.state.currentSource=r,this.state.currentPath=s,this.j.e.fire("changeSelection")}};t([s(["state.elements","state.tree"])],i.prototype,"updateCurrent",null),t([s(":goHome.filebrowser")],i.prototype,"onHome",null),t([s(":afterOpenFolder.filebrowser")],i.prototype,"onOpenFolder",null),i=t([r],i);export{i as HistoryManager};
|
|
1
|
+
var f=Object.defineProperty;var p=(h,t)=>f(h,"name",{value:t,configurable:!0});var o,c=function(h,t,e,s){var r=arguments.length,n=r<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,e):s,u;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(h,t,e,s);else for(var a=h.length-1;a>=0;a--)(u=h[a])&&(n=(r<3?u(n):r>3?u(t,e,n):u(t,e))||n);return r>3&&n&&Object.defineProperty(t,e,n),n};import{ViewComponent as y}from"jodit/esm/core/component/view-component.js";import{component as d,watch as l}from"jodit/esm/core/decorators/index.js";import{fastClone as m}from"jodit/esm/core/helpers/utils/extend.js";let i=(o=class extends y{className(){return"HistoryManager"}constructor(t,e){super(t),this.state=e,this.history=[],this.historyIndex=0}canNext(){return this.historyIndex<this.history.length-1}canPrevious(){return this.historyIndex>0}push(t){let{historyIndex:e}=this;const s=this.history[e];if(s&&s.currentSource===t.currentSource&&s.currentPath===t.currentPath)return;let r=[...this.history];r.length-1!==e&&(r=r.slice(0,e+1)),r.push(t),s&&(e+=1),this.history=r,this.historyIndex=e}next(){this.canNext()&&(this.historyIndex+=1,this.updateState())}previous(){this.canPrevious()&&(this.historyIndex-=1,this.updateState())}updateCurrent(){this.history[this.historyIndex]={currentSource:this.state.currentSource,currentPath:this.state.currentPath,tree:m(this.state.tree),elements:[...this.state.elements]}}onHome(){this.state.currentPath="",this.state.currentSource="",this.j.e.fire("afterOpenFolder.filebrowser update.filebrowser")}onOpenFolder(){this.push({tree:[],elements:[],currentPath:this.state.currentPath,currentSource:this.state.currentSource}),this.j.e.fire("changeSelection")}updateState(){const{tree:t,elements:e,currentSource:s,currentPath:r}=this.history[this.historyIndex];this.state.activeElements=[],this.state.elements=[...e],this.state.tree=[...t],this.state.currentSource=s,this.state.currentPath=r,this.j.e.fire("changeSelection")}},p(o,"HistoryManager"),o);c([l(["state.elements","state.tree"])],i.prototype,"updateCurrent",null),c([l(":goHome.filebrowser")],i.prototype,"onHome",null),c([l(":afterOpenFolder.filebrowser")],i.prototype,"onOpenFolder",null),i=c([d],i);export{i as HistoryManager};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
var t=this&&this.__decorate||function(t,e,s,i){var o,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,s,i);else for(var r=t.length-1;r>=0;r--)(o=t[r])&&(n=(a<3?o(n):a>3?o(e,s,n):o(e,s))||n);return a>3&&n&&Object.defineProperty(e,s,n),n};import{ViewComponent as e}from"jodit/esm/core/component/index.js";import{component as s,debounce as i,watch as o}from"jodit/esm/core/decorators/index.js";let a=class LoadingManager extends e{className(){return"LoadingManager"}constructor(t,e){super(t),this.state=e,this.__tick=0,this.offset=0,this.countInOneChunk=20,this.stopLoadingParts=!1,this.__isLoadingPart=!1,this.__callQueueCount=0}async onUpdateFileBrowser(){this.state.activeElements=[],this.j.panel.setMod("loading",!0),await Promise.all([this.loadFolders(),this.loadItems()]),this.j.panel.setMod("loading",!1)}async loadFolders(){if(!this.j.isOpened)return;const{currentPath:t,currentSource:e}=this.state;try{const s=await this.j.dataProvider.tree(t,e);this.j.stateManager.fillTreeForPath(s,t),this.state.sources=s}catch(t){this.j.status(t)}}async loadItems(){if(this.j.isOpened)try{this.__tick+=1;const{__tick:t}=this;this.offset=0,this.stopLoadingParts=!1,this.__callQueueCount=0;const{items:e,loadedTotal:s}=await loadPartItems(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.state.elements=e,this.stopLoadingParts=s<this.countInOneChunk,await this.loadItemsChunk(t),await this.async.requestIdlePromise(),this.__tick!==t)return;for(;!this.stopLoadingParts&&this.j.panel.countInColumn*this.j.panel.countInRow>=this.state.elements.length;)if(await this.loadItemsChunk(t),this.__tick!==t)return}catch(t){this.j.status(t)}}async __loadItemsChunk(t){if(this.__isLoadingPart)this.__callQueueCount+=1;else{if(!this.stopLoadingParts){this.__isLoadingPart=!0,this.j.panel.items.setMod("chunk-loading",!0);try{this.offset+=this.countInOneChunk;const{items:e,loadedTotal:s}=await loadPartItems(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.__tick!==t)return;this.stopLoadingParts=s<this.countInOneChunk,e.length&&(this.state.elements=this.state.elements.concat(e))}catch(t){this.j.status(t)}return this.j.panel.items.setMod("chunk-loading",!1),this.__isLoadingPart=!1,this.__callQueueCount>0?(this.__callQueueCount-=1,this.__loadItemsChunk(t)):void 0}this.__callQueueCount=0}}loadItemsChunk(t=this.__tick){return t!==this.__tick?Promise.resolve():this.__loadItemsChunk(t)}};t([o(":update.filebrowser")],a.prototype,"onUpdateFileBrowser",null),t([o(["state.currentPath","state.currentSource"]),i(t=>({timeout:t.defaultTimeout,promisify:!0}))],a.prototype,"loadFolders",null),t([o(["state.currentPath","state.currentSource","state.sortBy","state.onlyImages","state.foldersPosition","state.filterWord"]),i(t=>({timeout:t.defaultTimeout,promisify:!0}))],a.prototype,"loadItems",null),t([i(t=>({timeout:t.defaultTimeout,promisify:!0}))],a.prototype,"loadItemsChunk",null),a=t([s],a);export{a as LoadingManager};function loadPartItems(t,e,s,i){const{currentPath:o,currentSource:a,sortBy:n,withFolders:r,foldersPosition:h,onlyImages:l,filterWord:u}=t;return e.itemsEx(o,a,{offset:s,limit:i,sortBy:n,withFolders:r,foldersPosition:h,onlyImages:l,filterWord:u})}
|
|
1
|
+
var g=Object.defineProperty;var c=(i,t)=>g(i,"name",{value:t,configurable:!0});var u,l=function(i,t,e,s){var n=arguments.length,o=n<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,e):s,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(i,t,e,s);else for(var h=i.length-1;h>=0;h--)(r=i[h])&&(o=(n<3?r(o):n>3?r(t,e,o):r(t,e))||o);return n>3&&o&&Object.defineProperty(t,e,o),o};import{ViewComponent as I}from"jodit/esm/core/component/index.js";import{component as C,debounce as d,watch as f}from"jodit/esm/core/decorators/index.js";let a=(u=class extends I{className(){return"LoadingManager"}constructor(t,e){super(t),this.state=e,this.__tick=0,this.offset=0,this.countInOneChunk=20,this.stopLoadingParts=!1,this.__isLoadingPart=!1,this.__callQueueCount=0}async onUpdateFileBrowser(){this.state.activeElements=[],this.j.panel.setMod("loading",!0),await Promise.all([this.loadFolders(),this.loadItems()]),this.j.panel.setMod("loading",!1)}async loadFolders(){if(!this.j.isOpened)return;const{currentPath:t,currentSource:e}=this.state;try{const s=await this.j.dataProvider.tree(t,e);this.j.stateManager.fillTreeForPath(s,t),this.state.sources=s}catch(s){this.j.status(s)}}async loadItems(){if(this.j.isOpened)try{this.__tick+=1;const{__tick:t}=this;this.offset=0,this.stopLoadingParts=!1,this.__callQueueCount=0;const{items:e,loadedTotal:s}=await _(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.state.elements=e,this.stopLoadingParts=s<this.countInOneChunk,await this.loadItemsChunk(t),await this.async.requestIdlePromise(),this.__tick!==t)return;for(;!this.stopLoadingParts&&this.j.panel.countInColumn*this.j.panel.countInRow>=this.state.elements.length;)if(await this.loadItemsChunk(t),this.__tick!==t)return}catch(t){this.j.status(t)}}async __loadItemsChunk(t){if(this.__isLoadingPart){this.__callQueueCount+=1;return}if(this.stopLoadingParts){this.__callQueueCount=0;return}this.__isLoadingPart=!0,this.j.panel.items.setMod("chunk-loading",!0);try{this.offset+=this.countInOneChunk;const{items:e,loadedTotal:s}=await _(this.state,this.j.dataProvider,this.offset,this.countInOneChunk);if(this.__tick!==t)return;this.stopLoadingParts=s<this.countInOneChunk,e.length&&(this.state.elements=this.state.elements.concat(e))}catch(e){this.j.status(e)}if(this.j.panel.items.setMod("chunk-loading",!1),this.__isLoadingPart=!1,this.__callQueueCount>0)return this.__callQueueCount-=1,this.__loadItemsChunk(t)}loadItemsChunk(t=this.__tick){return t!==this.__tick?Promise.resolve():this.__loadItemsChunk(t)}},c(u,"LoadingManager"),u);l([f(":update.filebrowser")],a.prototype,"onUpdateFileBrowser",null),l([f(["state.currentPath","state.currentSource"]),d(i=>({timeout:i.defaultTimeout,promisify:!0}))],a.prototype,"loadFolders",null),l([f(["state.currentPath","state.currentSource","state.sortBy","state.onlyImages","state.foldersPosition","state.filterWord"]),d(i=>({timeout:i.defaultTimeout,promisify:!0}))],a.prototype,"loadItems",null),l([d(i=>({timeout:i.defaultTimeout,promisify:!0}))],a.prototype,"loadItemsChunk",null),a=l([C],a);function _(i,t,e,s){const{currentPath:n,currentSource:o,sortBy:r,withFolders:h,foldersPosition:m,onlyImages:p,filterWord:P}=i;return t.itemsEx(n,o,{offset:e,limit:s,sortBy:r,withFolders:h,foldersPosition:m,onlyImages:p,filterWord:P})}c(_,"loadPartItems");export{a as LoadingManager};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
var
|
|
2
|
-
/*!
|
|
3
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4
|
-
* See LICENSE.md in the project root for license information.
|
|
5
|
-
* Copyright (c) 2013-2025 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 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};
|
|
1
|
+
var S=Object.defineProperty;var d=(n,o)=>S(n,"name",{value:o,configurable:!0});var a,e=function(n,o,h,l){var p=arguments.length,r=p<3?o:l===null?l=Object.getOwnPropertyDescriptor(o,h):l,w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(n,o,h,l);else for(var v=n.length-1;v>=0;v--)(w=n[v])&&(r=(p<3?w(r):p>3?w(o,h,r):w(o,h))||r);return p>3&&r&&Object.defineProperty(o,h,r),r};import{ViewComponent as y}from"jodit/esm/core/component/index.js";import{component as u,persistent as s,watch as i}from"jodit/esm/core/decorators/index.js";import{FileBrowserItem as f}from"jodit/esm/modules/file-browser/builders/item.js";let t=(a=class extends y{className(){return"PersistentStore"}constructor(o,h){super(o),this.state=h,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(o=>o instanceof f?o:f.create(o)),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}},d(a,"PersistentStore"),a);e([s],t.prototype,"theme",void 0),e([s],t.prototype,"sortBy",void 0),e([s],t.prototype,"view",void 0),e([s],t.prototype,"foldersPosition",void 0),e([s],t.prototype,"tileSize",void 0),e([s],t.prototype,"favorites",void 0),e([s],t.prototype,"showSideBar",void 0),e([s],t.prototype,"showPreview",void 0),e([s],t.prototype,"showFavorites",void 0),e([i("state.theme")],t.prototype,"onChangeThemeSetField",null),e([i("state.view")],t.prototype,"onChangeView",null),e([i("state.sortBy")],t.prototype,"onChangeSortBy",null),e([i("state.tileSize")],t.prototype,"onChangeTileSize",null),e([i("state.favorites")],t.prototype,"onChangeFavorites",null),e([i("state.showSideBar")],t.prototype,"onChangeShowSideBar",null),e([i("state.showPreview")],t.prototype,"onChangeShowPreview",null),e([i("state.showFavorites")],t.prototype,"onChangeShowFavorites",null),e([i("state.foldersPosition")],t.prototype,"onChangeFoldersPosition",null),t=e([u],t);export{t as PersistentStore};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,i,s){var r,a=arguments.length,n=a<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,i):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,i,s);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(n=(a<3?r(n):a>3?r(t,i,n):r(t,i))||n);return a>3&&n&&Object.defineProperty(t,i,n),n};import{autobind as t}from"jodit/esm/core/decorators/index.js";export class StateManager{constructor(e){this.state=e}getIndex(e,t=this.state.elements){return t.findIndex(t=>t.uniqueHashKey===e.uniqueHashKey)}isActive(e){return Boolean(this.state.activeElements.find(t=>t.uniqueHashKey===e.uniqueHashKey))}isFavorite(e){return Boolean(this.state.favorites.find(t=>t.uniqueHashKey===e.uniqueHashKey))}addActive(e,t){var i;this.state.metaInfo=e,this.state.info=null!==(i=e.file)&&void 0!==i?i:"",this.state.lastSelectedIndex=this.getIndex(e),this.state.activeElements=t?[...this.state.activeElements,e]:[e]}callSelectHandler(){var e;const t=this.state.activeElements;null===(e=this.state.onSelectCallBack)||void 0===e||e.call(this,{baseurl:"",files:t.map(e=>e.fileURL),isImages:t.map(e=>Boolean(e.isImage))})}setFilter(e){this.state.filterWord=e}toggleFavorite(e){const t=this.getIndex(e,this.state.favorites),i=[...this.state.favorites];-1===t?i.push(e):i.splice(t,1),this.state.favorites=i}fillTreeForPath(e,t){this.state.tree.length&&t&&"/"!==t?(this.removeActive(this.state.tree),e.forEach(e=>{let i=findItem(this.state.tree,e.name);i||(i=sourceToTreeItem(e),this.state.tree.push(i)),i.isActive=!0;const s=function findTreeItem(e,t){return e.split("/").reduce((e,t)=>e&&findItem(e.children,t),t)}(t,i);s&&(s.isActive=!0,s.children=filterFolders(e.folders).map(i=>folderToTreeItem(i,t+"/"+i,e.name)))}),this.state.tree=[...this.state.tree]):this.state.tree=e.map(sourceToTreeItem)}removeActive(e){e.forEach(e=>{e.isActive=!1,this.removeActive(e.children)})}get isFavoriteItems(){return this.state.favorites===this.state.elements}}function findItem(e,t){var i;return null!==(i=e.find(e=>e.name===t))&&void 0!==i?i:null}function filterFolders(e){return e.filter(e=>"."!==e&&".."!==e)}function sourceToTreeItem(e){return{type:"source",name:e.name,title:e.title,sourceName:e.name,path:"/",children:filterFolders(e.folders).map(t=>folderToTreeItem(t,t,e.name))}}function folderToTreeItem(e,t,i){return{type:"directory",name:e,path:t,sourceName:i,children:[]}}e([t],StateManager.prototype,"getIndex",null),e([t],StateManager.prototype,"isActive",null),e([t],StateManager.prototype,"isFavorite",null);
|
|
1
|
+
var I=Object.defineProperty;var l=(s,e)=>I(s,"name",{value:e,configurable:!0});var c=function(s,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,t,i);else for(var h=s.length-1;h>=0;h--)(a=s[h])&&(n=(r<3?a(n):r>3?a(e,t,n):a(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n};import{autobind as f}from"jodit/esm/core/decorators/index.js";const u=class u{constructor(e){this.state=e}getIndex(e,t=this.state.elements){return t.findIndex(i=>i.uniqueHashKey===e.uniqueHashKey)}isActive(e){return!!this.state.activeElements.find(t=>t.uniqueHashKey===e.uniqueHashKey)}isFavorite(e){return!!this.state.favorites.find(t=>t.uniqueHashKey===e.uniqueHashKey)}addActive(e,t){var i;this.state.metaInfo=e,this.state.info=(i=e.file)!==null&&i!==void 0?i:"",this.state.lastSelectedIndex=this.getIndex(e),this.state.activeElements=t?[...this.state.activeElements,e]:[e]}callSelectHandler(){var e;const t=this.state.activeElements;(e=this.state.onSelectCallBack)===null||e===void 0||e.call(this,{baseurl:"",files:t.map(i=>i.fileURL),isImages:t.map(i=>!!i.isImage)})}setFilter(e){this.state.filterWord=e}toggleFavorite(e){const t=this.getIndex(e,this.state.favorites),i=[...this.state.favorites];t===-1?i.push(e):i.splice(t,1),this.state.favorites=i}fillTreeForPath(e,t){if(!this.state.tree.length||!t||t==="/"){this.state.tree=e.map(m);return}this.removeActive(this.state.tree),e.forEach(i=>{let r=v(this.state.tree,i.name);r||(r=m(i),this.state.tree.push(r)),r.isActive=!0;const n=y(t,r);n&&(n.isActive=!0,n.children=d(i.folders).map(a=>p(a,t+"/"+a,i.name)))}),this.state.tree=[...this.state.tree]}removeActive(e){e.forEach(t=>{t.isActive=!1,this.removeActive(t.children)})}get isFavoriteItems(){return this.state.favorites===this.state.elements}};l(u,"StateManager");let o=u;c([f],o.prototype,"getIndex",null),c([f],o.prototype,"isActive",null),c([f],o.prototype,"isFavorite",null);function y(s,e){return s.split("/").reduce((t,i)=>t&&v(t.children,i),e)}l(y,"findTreeItem");function v(s,e){var t;return(t=s.find(i=>i.name===e))!==null&&t!==void 0?t:null}l(v,"findItem");function d(s){return s.filter(e=>e!=="."&&e!=="..")}l(d,"filterFolders");function m(s){return{type:"source",name:s.name,title:s.title,sourceName:s.name,path:"/",children:d(s.folders).map(e=>p(e,e,s.name))}}l(m,"sourceToTreeItem");function p(s,e,t){return{type:"directory",name:s,path:e,sourceName:t,children:[]}}l(p,"folderToTreeItem");export{o as StateManager};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
import r from"./ru.js";export{r as ru};
|
|
1
|
+
import r from"./ru.js";export{r as ru};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
module.exports={Favorites:"Избранное",Settings:"Настройки",Light:"Светлая",Dark:"Темная",Theme:"Тема",Show:"Показать",Hide:"Скрыть","Show favorites":"Показывать избранное",Tiles:"Плитка",List:"Список",Compact:"Компактный",View:"Отображение","Folders position":"Позиция папок","Sort by":"Сортировать по","Extra small":"Очень маленькие",Small:"Маленькие",Large:"Большие","Extra large":"Очень большие","Tile size":"Размер плитки"};
|
|
1
|
+
var s=(i,e)=>()=>(e||i((e={exports:{}}).exports,e),e.exports);var r=s((o,t)=>{t.exports={Favorites:"\u0418\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435",Settings:"\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438",Light:"\u0421\u0432\u0435\u0442\u043B\u0430\u044F",Dark:"\u0422\u0435\u043C\u043D\u0430\u044F",Theme:"\u0422\u0435\u043C\u0430",Show:"\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C",Hide:"\u0421\u043A\u0440\u044B\u0442\u044C","Show favorites":"\u041F\u043E\u043A\u0430\u0437\u044B\u0432\u0430\u0442\u044C \u0438\u0437\u0431\u0440\u0430\u043D\u043D\u043E\u0435",Tiles:"\u041F\u043B\u0438\u0442\u043A\u0430",List:"\u0421\u043F\u0438\u0441\u043E\u043A",Compact:"\u041A\u043E\u043C\u043F\u0430\u043A\u0442\u043D\u044B\u0439",View:"\u041E\u0442\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435","Folders position":"\u041F\u043E\u0437\u0438\u0446\u0438\u044F \u043F\u0430\u043F\u043E\u043A","Sort by":"\u0421\u043E\u0440\u0442\u0438\u0440\u043E\u0432\u0430\u0442\u044C \u043F\u043E","Extra small":"\u041E\u0447\u0435\u043D\u044C \u043C\u0430\u043B\u0435\u043D\u044C\u043A\u0438\u0435",Small:"\u041C\u0430\u043B\u0435\u043D\u044C\u043A\u0438\u0435",Large:"\u0411\u043E\u043B\u044C\u0448\u0438\u0435","Extra large":"\u041E\u0447\u0435\u043D\u044C \u0431\u043E\u043B\u044C\u0448\u0438\u0435","Tile size":"\u0420\u0430\u0437\u043C\u0435\u0440 \u043F\u043B\u0438\u0442\u043A\u0438"}});export default r();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var t='<svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"> <path d="M365.4,59.628c60.56,0,109.6,49.03,109.6,109.47c0,109.47-109.6,171.8-219.06,281.271 C146.47,340.898,37,278.568,37,169.099c0-60.44,49.04-109.47,109.47-109.47c54.73,0,82.1,27.37,109.47,82.1 C283.3,86.999,310.67,59.628,365.4,59.628z"/> </svg> ';export{t as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var h='<svg viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg"> <path d="M28.7,16.3l-12-13c-0.4-0.4-1.1-0.4-1.5,0l-12,13C3,16.6,2.9,17,3.1,17.4C3.2,17.8,3.6,18,4,18h3v10c0,0.6,0.4,1,1,1h16 c0.6,0,1-0.4,1-1V18h3c0.4,0,0.8-0.2,0.9-0.6C29.1,17,29,16.6,28.7,16.3z"/> </svg> ';export{h as default};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
6
|
-
import*as r from"./heart.svg.js";import*as e from"./home.svg.js";import*as o from"./new-folder.svg.js";import{Icon as s}from"jodit/esm/core/ui/index.js";s.set("heart",String(r)),s.set("home",String(e)),s.set("new-folder",String(o));
|
|
1
|
+
import*as o from"./heart.svg.js";import*as t from"./home.svg.js";import*as e from"./new-folder.svg.js";import{Icon as r}from"jodit/esm/core/ui/index.js";r.set("heart",String(o)),r.set("home",String(t)),r.set("new-folder",String(e));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
var L='<svg viewBox="0 0 252 252" xmlns="http://www.w3.org/2000/svg"> <path d="M0 16C0 7.16344 7.16344 0 16 0H85.6364C86.5205 0 87.3797 0.29288 88.0796 0.832871L120.92 26.1671C121.62 26.7071 122.48 27 123.364 27H227C235.837 27 243 34.1634 243 43V132.335C243 134.779 240.234 136.198 238.25 134.772L233 131L226.5 127L220 124L212.5 122L202.5 120L189 120.5L179.5 122.5L170.5 125.5L161.5 130.5L157 133.5L153 137L146.5 144L141 152L137 160L134 168L132.5 178L132 183.5V189.5L133 197.5L135 205.5L137.5 211.5L139.524 214.996C141.068 217.663 139.144 221 136.062 221H16C7.16344 221 0 213.837 0 205V16Z"/> <circle cx="197" cy="185" r="56"/> <path d="M188.364 215.955V151.591H204.636V215.955H188.364ZM164.318 191.909V175.636H228.682V191.909H164.318Z" fill="white"/> </svg> ';export{L as default};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
var f=Object.defineProperty;var d=(s,e)=>f(s,"name",{value:e,configurable:!0});var i,m=function(s,e,r,t){var o=arguments.length,n=o<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,r):t,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(s,e,r,t);else for(var c=s.length-1;c>=0;c--)(l=s[c])&&(n=(o<3?l(n):o>3?l(e,r,n):l(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n};import{component as u}from"jodit/esm/core/decorators/component/component.js";import{assert as v}from"jodit/esm/core/helpers/utils/assert.js";import{UIElement as p}from"jodit/esm/core/ui/index.js";let a=(i=class extends p{className(){return"UIBrowserFolder"}render(){return`<div>
|
|
2
|
+
<div class="&__icon">
|
|
3
|
+
<div class='&__loader'></div>
|
|
4
|
+
<div class="&__icon-wrapper">
|
|
5
|
+
*folder*
|
|
6
|
+
</div>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="&__name"></div>
|
|
9
|
+
<div class="&__arrow">*angle-right*</div>
|
|
10
|
+
</div>`}constructor(e,r){super(e),this.item=r,this.syncMod=!0;const t=this.getElm("name");v(t!=null,"name element does not exists"),t.innerText=r.name,e.e.on(this.container,"click",()=>(this.getMod("active")||this.setMod("loading",!0),e.e.fire("openFolder",r))).on(this.container,"contextmenu",o=>e.e.fire("contextmenuFolder.filebrowser",r,o))}},d(i,"UIBrowserFolder"),i);a=m([u],a);export{a as UIBrowserFolder};
|
|
@@ -1,6 +1 @@
|
|
|
1
|
-
|
|
2
|
-
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
-
* See LICENSE.md in the project root for license information.
|
|
4
|
-
* Copyright (c) 2013-2025 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
-
*/
|
|
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{component as t}from"jodit/esm/core/decorators/index.js";import{isString as r}from"jodit/esm/core/helpers/checker/is-string.js";import{UIGroup as o,UIInput as s}from"jodit/esm/core/ui/index.js";import{makeCollection as i}from"jodit/esm/modules/toolbar/factory.js";let a=class UIBrowserHeader extends o{className(){return"UIBrowserHeader"}constructor(e,t,r){super(e),this.options=t,this.stateManager=r,this.syncMod=!0,this.toolbar=i(this.j),this.filter=new s(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(){var e;return(null!==(e=this.options.toolbarButtons)&&void 0!==e?e:[]).filter(e=>{if(!r(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([t],a);export{a as UIBrowserHeader};
|
|
1
|
+
var h=Object.defineProperty;var c=(a,e)=>h(a,"name",{value:e,configurable:!0});var s,u=function(a,e,r,t){var i=arguments.length,o=i<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,r):t,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(a,e,r,t);else for(var l=a.length-1;l>=0;l--)(n=a[l])&&(o=(i<3?n(o):i>3?n(e,r,o):n(e,r))||o);return i>3&&o&&Object.defineProperty(e,r,o),o};import{component as f}from"jodit/esm/core/decorators/index.js";import{isString as p}from"jodit/esm/core/helpers/checker/is-string.js";import{UIGroup as m,UIInput as v}from"jodit/esm/core/ui/index.js";import{makeCollection as I}from"jodit/esm/modules/toolbar/factory.js";let d=(s=class extends m{className(){return"UIBrowserHeader"}constructor(e,r,t){super(e),this.options=r,this.stateManager=t,this.syncMod=!0,this.toolbar=I(this.j),this.filter=new v(this.j,{icon:"search",placeholder:"Filter",clearButton:!0,onChange:c(i=>{this.stateManager.setFilter(i)},"onChange")}),this.append(this.toolbar).append(this.filter),this.filter.container.classList.add(this.getFullElName("filter")),this.toolbar.setMod("mode","header").build(this.__getButtons())}__getButtons(){var e;return((e=this.options.toolbarButtons)!==null&&e!==void 0?e:[]).filter(t=>{if(!p(t))return!0;switch(t){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})}},c(s,"UIBrowserHeader"),s);d=u([f],d);export{d as UIBrowserHeader};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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{component as t,watch as i}from"jodit/esm/core/decorators/index.js";import{attr as r,css as s,ctrlKey as o}from"jodit/esm/core/helpers/index.js";import{assert as n}from"jodit/esm/core/helpers/utils/assert.js";import{UIElement as l}from"jodit/esm/core/ui/index.js";import{Dom as m}from"jodit/esm/modules/index.js";import{FileBrowserItem as c}from"jodit/esm/modules/file-browser/builders/item.js";let a=class UIBrowserItem extends l{className(){return"UIBrowserItem"}constructor(e,t){super(e),this.item=c.create(t),e.e.on(this.container,"click contextmenu dblclick",t=>(e.e.fire(t.type+"Item.filebrowser",this.item,o(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,o(e)||e.shiftKey,e),!1}update(){const e=this.getElm("image");n(null!=e,"image element does not exists"),s(e,"backgroundImage",`url(${encodeURI(this.item.imageURL)})`);const{type:t,file:i,time:o,size:l}=this.item;this.setMod("is-file",!1===this.item.isImage).setMod("type",null!=t?t:"file").setElementValue("name",i).setElementValue("time",o).setElementValue("filesize",l),r(this.container,"title","folder"!==t?`${i} ${o} ${l}`:i),super.update()}setElementValue(e,t){const i=this.getFullElName(e);let r=this.getElm(e);if(!t)return r&&m.safeRemove(r),this;if(!r){const e=this.getElm("info");n(null!=e,"wrapper element does not exist"),r=this.j.create.div(i),e.appendChild(r)}return r.innerText=t,this}};e([i("heart:click")],a.prototype,"onClickFavorite",null),e([i(["container:click","container:contextmenu","container:dblclick"])],a.prototype,"onAction",null),a=e([t],a);export{a as UIBrowserItem};
|
|
1
|
+
var d=Object.defineProperty;var f=(l,e)=>d(l,"name",{value:e,configurable:!0});var s,c=function(l,e,t,i){var r=arguments.length,n=r<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,m;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(l,e,t,i);else for(var a=l.length-1;a>=0;a--)(m=l[a])&&(n=(r<3?m(n):r>3?m(e,t,n):m(e,t))||n);return r>3&&n&&Object.defineProperty(e,t,n),n};import{component as v,watch as h}from"jodit/esm/core/decorators/index.js";import{attr as g,css as b,ctrlKey as p}from"jodit/esm/core/helpers/index.js";import{assert as u}from"jodit/esm/core/helpers/utils/assert.js";import{UIElement as I}from"jodit/esm/core/ui/index.js";import{Dom as w}from"jodit/esm/modules/index.js";import{FileBrowserItem as y}from"jodit/esm/modules/file-browser/builders/item.js";let o=(s=class extends I{className(){return"UIBrowserItem"}constructor(e,t){super(e),this.item=y.create(t),e.e.on(this.container,"click contextmenu dblclick",i=>(e.e.fire(i.type+"Item.filebrowser",this.item,p(i)||i.shiftKey,i),!1)),this.update()}render(){return`<div tabindex='-1'>
|
|
2
|
+
<div class='&__image'></div>
|
|
3
|
+
<div class='&__info'></div>
|
|
4
|
+
<div class='&__heart'>*heart*</div>
|
|
5
|
+
</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,p(e)||e.shiftKey,e),!1}update(){const e=this.getElm("image");u(e!=null,"image element does not exists"),b(e,"backgroundImage",`url(${encodeURI(this.item.imageURL)})`);const{type:t,file:i,time:r,size:n}=this.item;this.setMod("is-file",this.item.isImage===!1).setMod("type",t??"file").setElementValue("name",i).setElementValue("time",r).setElementValue("filesize",n),g(this.container,"title",t!=="folder"?`${i} ${r} ${n}`:i),super.update()}setElementValue(e,t){const i=this.getFullElName(e);let r=this.getElm(e);if(!t)return r&&w.safeRemove(r),this;if(!r){const n=this.getElm("info");u(n!=null,"wrapper element does not exist"),r=this.j.create.div(i),n.appendChild(r)}return r.innerText=t,this}},f(s,"UIBrowserItem"),s);c([h("heart:click")],o.prototype,"onClickFavorite",null),c([h(["container:click","container:contextmenu","container:dblclick"])],o.prototype,"onAction",null),o=c([v],o);export{o as UIBrowserItem};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
var p=Object.defineProperty;var d=(l,e)=>p(l,"name",{value:e,configurable:!0});var r,a=function(l,e,t,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,h;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(l,e,t,i);else for(var c=l.length-1;c>=0;c--)(h=l[c])&&(n=(s<3?h(n):s>3?h(e,t,n):h(e,t))||n);return s>3&&n&&Object.defineProperty(e,t,n),n},m;import{KEY_LEFT as f,KEY_RIGHT as v,KEY_SPACE as w}from"jodit/esm/core/constants.js";import{autobind as x,component as C,watch as u}from"jodit/esm/core/decorators/index.js";import{css as g,loadImage as k}from"jodit/esm/core/helpers/index.js";import{assert as y}from"jodit/esm/core/helpers/utils/assert.js";import{Dialog as I,Dom as _,UIElement as b}from"jodit/esm/modules/index.js";let o=m=(r=class extends b{className(){return"UILightBox"}render(){return`<div>
|
|
2
|
+
<div class='&__previous'>*angle-left*</div>
|
|
3
|
+
<div class='&__preview'></div>
|
|
4
|
+
<div class='&__loader'></div>
|
|
5
|
+
<div class='&__next'>*angle-right*</div>
|
|
6
|
+
</div>`}constructor(e,t,i){super(e),this.current=t,this.elements=i,this.dialog=new I;const{dialog:s}=this;s.setMod("theme",e.state.theme).toolbar.setMod("mode","header"),s.open(this),this.elements=this.elements.filter(n=>n.isImage),s.e.on(s,"afterClose",()=>{this.destruct()}),this.addGlobalListeners(),this.onChangeCurrent(),s.toolbar.build([{icon:"check",exec:d(()=>{e.stateManager.addActive(this.current,!1),e.e.fire("select.filebrowser"),s.close()},"exec")},"dialog.close"])}async onChangeCurrent(){const{current:e}=this;this.setMod("loading",!0);const t=this.getElm("preview");if(y(t!=null,"preview element does not exist"),_.detach(t),g(t,{backgroundImage:null}),e.isImage){const i=await k(e.fileURL,this.j);this.dialog.setPosition(),g(t,{width:Math.min(this.jodit.ow.innerWidth,i.naturalWidth),height:Math.min(this.jodit.ow.innerHeight-100,i.naturalHeight),backgroundImage:`url(${i.src})`})}else{const i=await this.makeIframe(e.fileURL);t.appendChild(i)}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(e,t,i){return new m(e,t,i)}addGlobalListeners(){this.j.e.on(this.j.od,"keydown",this.onKeyPress)}onKeyPress(e){if(e.key===f||e.key===v||e.key===w)return e.key===f?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()}},d(r,"UILightBox"),r);a([u("current")],o.prototype,"onChangeCurrent",null),a([u("previous:click")],o.prototype,"onPreviousClick",null),a([u("next:click")],o.prototype,"onNextClick",null),a([x],o.prototype,"onKeyPress",null),o=m=a([C],o);export{o as UILightBox};
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
*/
|
|
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{component as t,watch as s}from"jodit/esm/core/decorators/index.js";import{css as i,isNumber as o,scrollIntoViewIfNeeded as n}from"jodit/esm/core/helpers/index.js";import{UIGroup as a}from"jodit/esm/core/ui/index.js";import{UIPreview as r}from"../preview/preview.js";import{UIBrowserSettings as h}from"../settings/settings.js";import{UISidebar as l}from"../sidebar/sidebar.js";import{UIBrowserSources as g}from"../sources/sources.js";import{UIBrowserStatusBar as c}from"../statusbar/statusbar.js";import{UIVirtualScroll as m}from"../virtual-scroll/virtual-scroll.js";let d=class UIBrowserPanel extends a{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=i(e,"marginLeft");return Math.floor(this.items.container.offsetWidth/(e.offsetWidth+(o(t)?t:0)))}get countInColumn(){if(!this.items.elements.length)return 1;const{container:e}=this.items.elements[0],t=i(e,"marginTop");return Math.floor(this.items.container.offsetHeight/(e.offsetHeight+(o(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 l(this.jodit,[this.sources],this.stateManager.state),this.preview=new r(this.jodit,this.stateManager.state),this.statusbar=new c(this.j),this.items=new m(this.j,this.stateManager),this.settings=new h(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(){var e;const t=null===(e=this.items.elements[this.stateManager.state.lastSelectedIndex])||void 0===e?void 0:e.container;t&&(n(t,this.items.container,this.j.od),t.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([s("state.theme")],d.prototype,"onChangeTheme",null),e([s("state.elements")],d.prototype,"onChangeElements",null),e([s("state.activeElements")],d.prototype,"onChangeActiveElements",null),e([s(["state.favorites","state.elements"])],d.prototype,"onChangeFavorites",null),e([s("state.sources")],d.prototype,"onChangeSources",null),e([s("state.lastSelectedIndex")],d.prototype,"onChangeLastSelectedIndex",null),e([s("state.info")],d.prototype,"onChangeInfo",null),e([s(["state.currentPath","state.currentSource"])],d.prototype,"onChangePathOrSource",null),e([s("state.showSettings")],d.prototype,"onChangeShowSettings",null),e([s("state.showPreview")],d.prototype,"onChangeShowPreview",null),e([s("state.showSideBar")],d.prototype,"onChangeShowSideBar",null),e([s("state.view")],d.prototype,"onChangeView",null),e([s("state.tileSize")],d.prototype,"onChangeTileSize",null),e([s("state.showFavorites")],d.prototype,"onChangeShowFavorites",null),e([s(":dblclickItem.filebrowser")],d.prototype,"onItemDblClick",null),e([s(":clickItem.filebrowser")],d.prototype,"onItemClick",null),e([s(":togglePreview.filebrowser")],d.prototype,"onTogglePreview",null),e([s(":toggleFavoriteItem")],d.prototype,"onToggleFavoriteItem",null),e([s(":openFolder")],d.prototype,"onFolderClick",null),d=e([t],d);export{d as UIBrowserPanel};
|
|
1
|
+
var d=Object.defineProperty;var m=(r,e)=>d(r,"name",{value:e,configurable:!0});var a,i=function(r,e,s,h){var l=arguments.length,n=l<3?e:h===null?h=Object.getOwnPropertyDescriptor(e,s):h,g;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(r,e,s,h);else for(var c=r.length-1;c>=0;c--)(g=r[c])&&(n=(l<3?g(n):l>3?g(e,s,n):g(e,s))||n);return l>3&&n&&Object.defineProperty(e,s,n),n};import{component as w,watch as o}from"jodit/esm/core/decorators/index.js";import{css as u,isNumber as p,scrollIntoViewIfNeeded as f}from"jodit/esm/core/helpers/index.js";import{UIGroup as v}from"jodit/esm/core/ui/index.js";import{UIPreview as C}from"../preview/preview.js";import{UIBrowserSettings as S}from"../settings/settings.js";import{UISidebar as M}from"../sidebar/sidebar.js";import{UIBrowserSources as I}from"../sources/sources.js";import{UIBrowserStatusBar as b}from"../statusbar/statusbar.js";import{UIVirtualScroll as P}from"../virtual-scroll/virtual-scroll.js";let t=(a=class extends v{className(){return"UIBrowserPanel"}get countInRow(){if(this.state.view==="list"||!this.items.elements.length)return 1;const{container:e}=this.items.elements[0],s=u(e,"marginLeft");return Math.floor(this.items.container.offsetWidth/(e.offsetWidth+(p(s)?s:0)))}get countInColumn(){if(!this.items.elements.length)return 1;const{container:e}=this.items.elements[0],s=u(e,"marginTop");return Math.floor(this.items.container.offsetHeight/(e.offsetHeight+(p(s)?s:0)))}render(){return`<div>
|
|
2
|
+
<div class='&__content'></div>
|
|
3
|
+
<div class='&__footer'></div>
|
|
4
|
+
</div>`}constructor(e,s){super(e),this.stateManager=s,this.syncMod=!0,this.sources=new I(this.j),this.sidebar=new M(this.jodit,[this.sources],this.stateManager.state),this.preview=new C(this.jodit,this.stateManager.state),this.statusbar=new b(this.j),this.items=new P(this.j,this.stateManager),this.settings=new S(this.jodit,this.stateManager.state),this.state=s.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",!!this.stateManager.isActive(e.item))}),this.j.e.fire("changeSelection")}onChangeFavorites(){this.items.elements.forEach(e=>{e.setMod("favorite",!!this.stateManager.isFavorite(e.item))})}onChangeSources(){this.sources.build(this.stateManager.state.tree)}onChangeLastSelectedIndex(){var e;const s=(e=this.items.elements[this.stateManager.state.lastSelectedIndex])===null||e===void 0?void 0:e.container;s&&(f(s,this.items.container,this.j.od),s.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,s){this.stateManager.addActive(e,s)}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")}},m(a,"UIBrowserPanel"),a);i([o("state.theme")],t.prototype,"onChangeTheme",null),i([o("state.elements")],t.prototype,"onChangeElements",null),i([o("state.activeElements")],t.prototype,"onChangeActiveElements",null),i([o(["state.favorites","state.elements"])],t.prototype,"onChangeFavorites",null),i([o("state.sources")],t.prototype,"onChangeSources",null),i([o("state.lastSelectedIndex")],t.prototype,"onChangeLastSelectedIndex",null),i([o("state.info")],t.prototype,"onChangeInfo",null),i([o(["state.currentPath","state.currentSource"])],t.prototype,"onChangePathOrSource",null),i([o("state.showSettings")],t.prototype,"onChangeShowSettings",null),i([o("state.showPreview")],t.prototype,"onChangeShowPreview",null),i([o("state.showSideBar")],t.prototype,"onChangeShowSideBar",null),i([o("state.view")],t.prototype,"onChangeView",null),i([o("state.tileSize")],t.prototype,"onChangeTileSize",null),i([o("state.showFavorites")],t.prototype,"onChangeShowFavorites",null),i([o(":dblclickItem.filebrowser")],t.prototype,"onItemDblClick",null),i([o(":clickItem.filebrowser")],t.prototype,"onItemClick",null),i([o(":togglePreview.filebrowser")],t.prototype,"onTogglePreview",null),i([o(":toggleFavoriteItem")],t.prototype,"onToggleFavoriteItem",null),i([o(":openFolder")],t.prototype,"onFolderClick",null),t=i([w],t);export{t as UIBrowserPanel};
|
|
@@ -1 +1,6 @@
|
|
|
1
|
-
var
|
|
1
|
+
var v=Object.defineProperty;var h=(r,e)=>v(r,"name",{value:e,configurable:!0});var a,d=function(r,e,o,t){var s=arguments.length,i=s<3?e:t===null?t=Object.getOwnPropertyDescriptor(e,o):t,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,o,t);else for(var n=r.length-1;n>=0;n--)(l=r[n])&&(i=(s<3?l(i):s>3?l(e,o,i):l(e,o))||i);return s>3&&i&&Object.defineProperty(e,o,i),i};import{component as I,debounce as _,hook as M,watch as p}from"jodit/esm/core/decorators/index.js";import{Dom as y}from"jodit/esm/core/dom/dom.js";import{css as u,loadImage as b}from"jodit/esm/core/helpers/utils/index.js";import{assert as f}from"jodit/esm/core/helpers/utils/assert.js";import{UIGroup as w}from"jodit/esm/core/ui/group/group.js";import{UIBrowserItem as c}from"../item/item.js";import{UIResize as g}from"../../../../traits/resize/resize.js";let m=(a=class extends w{className(){return"UIPreview"}addResize(){g.remove(this),g.install(this,screen.width>450?"left":"top")}render(){return`<div>
|
|
2
|
+
<div class="&__image"></div>
|
|
3
|
+
<div class="&__info"></div>
|
|
4
|
+
<div class="&__loader"></div>
|
|
5
|
+
<div class="&__empty-message">~Select image~</div>
|
|
6
|
+
</div>`}constructor(e,o){super(e),this.state=o,this.lastLoadPromise=null,this.onChangeMetaInfo()}afterSetMod(e,o){e==="hidden"&&o===!1&&this.onChangeMetaInfo(),super.afterSetMod(e,o)}onChangeMetaInfo(){var e,o;if(this.getMod("hidden"))return;const{metaInfo:t}=this.state;this.setMod("empty",!t);const s=this.getElm("info");f(s!=null,"info element does not exists"),y.detach(s);const i=this.getElm("image");f(i!=null,"image element does not exists"),u(i,{backgroundImage:null}),t&&(this.setMod("is-file",t.isImage===!1).setMod("type",(e=t.type)!==null&&e!==void 0?e:"file"),c.prototype.setElementValue.call(this,"name",t.file),c.prototype.setElementValue.call(this,"time",t.time),c.prototype.setElementValue.call(this,"filesize",t.size),this.setMod("loading",!0),(o=this.lastLoadPromise)===null||o===void 0||o.rejectCallback(),this.lastLoadPromise=b(t.isImage?t.fileURL:t.imageURL,this.j),this.lastLoadPromise.then(l=>{const n=this.getElm("image");f(n!=null,"image element does not exist"),l&&u(n,{backgroundImage:`url(${l.src})`})}).finally(()=>{this.setMod("loading",!1)}).catch(()=>{}))}},h(a,"UIPreview"),a);d([M("ready"),p(":resize",{context:window}),_()],m.prototype,"addResize",null),d([p("state.metaInfo")],m.prototype,"onChangeMetaInfo",null),m=d([I],m);export{m as UIPreview};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var u=Object.defineProperty;var c=(o,e)=>u(o,"name",{value:e,configurable:!0});var r,f=function(o,e,s,i){var h=arguments.length,t=h<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,s):i,n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(o,e,s,i);else for(var p=o.length-1;p>=0;p--)(n=o[p])&&(t=(h<3?n(t):h>3?n(e,s,t):n(e,s))||t);return h>3&&t&&Object.defineProperty(e,s,t),t};import{component as a,watch as d}from"jodit/esm/core/decorators/index.js";import{ProgressBar as g}from"jodit/esm/core/ui/progress-bar/progress-bar.js";let l=(r=class extends g{className(){return"UIProgress"}constructor(e,s){super(e),this.state=s,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}},c(r,"UIProgress"),r);f([d("state.progress")],l.prototype,"onProgress",null),l=f([a],l);export{l as UIProgress};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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{component as t,watch as s}from"jodit/esm/core/decorators/index.js";import{assert as a}from"jodit/esm/core/helpers/utils/assert.js";import{Icon as i,UIButtonGroup as l,UIGroup as o,UISelect as n}from"jodit/esm/core/ui/index.js";let r=class UIBrowserSettings extends o{className(){return"UIBrowserSettings"}render(){return`<div>\n\t\t\t<div class="${this.getFullElName("close")}">${i.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");a(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");a(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 l(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 l(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 l(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 l(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 n(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 n(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([s("state.view")],r.prototype,"onChangeView",null),r=e([t],r);export{r as UIBrowserSettings};
|
|
1
|
+
var p=Object.defineProperty;var a=(o,e)=>p(o,"name",{value:e,configurable:!0});var l,c=function(o,e,t,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,r;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,t,i);else for(var v=o.length-1;v>=0;v--)(r=o[v])&&(s=(n<3?r(s):n>3?r(e,t,s):r(e,t))||s);return n>3&&s&&Object.defineProperty(e,t,s),s};import{component as f,watch as g}from"jodit/esm/core/decorators/index.js";import{assert as d}from"jodit/esm/core/helpers/utils/assert.js";import{Icon as x,UIButtonGroup as h,UIGroup as w,UISelect as m}from"jodit/esm/core/ui/index.js";let u=(l=class extends w{className(){return"UIBrowserSettings"}render(){return`<div>
|
|
2
|
+
<div class="${this.getFullElName("close")}">${x.get("cancel")}</div>
|
|
3
|
+
<div class="${this.getFullElName("title")}">${this.j.i18n("Settings")}</div>
|
|
4
|
+
<div class="${this.getFullElName("options")}"></div>
|
|
5
|
+
</div>`}appendChildToContainer(e){const t=this.getElm("options");d(t!=null,"options element does not exists"),t.appendChild(e)}afterSetMod(e,t){e==="hidden"&&t===!1&&this.generateSettings(),super.afterSetMod(e,t)}constructor(e,t){super(e),this.state=t;const i=this.getElm("close");d(i!=null,"close element does not exists"),e.e.on(i,"click",()=>{this.state.showSettings=!1})}onChangeView(){const e=this.getElm("tile-size");e&&(e.style.display=this.state.view==="tiles"?"block":"none")}generateSettings(){this.clear();const{j:e}=this;this.append([new h(e,{label:"Theme",name:"theme",value:this.state.theme,radio:!0,options:[{value:"default",text:"Light"},{value:"dark",text:"Dark"}],onChange:a(t=>{if(this.state.theme!=="default"&&this.state.theme!=="dark"){this.state.theme="default";return}this.state.theme=t[0].value},"onChange")}),new h(e,{label:"Show favorites",name:"showFavorites",value:this.state.showFavorites,radio:!0,options:[{value:!0,text:"Show"},{value:!1,text:"Hide"}],onChange:a(t=>{this.state.showFavorites=t[0].value},"onChange")}),new h(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:a(t=>{this.state.view=t[0].value},"onChange")}),new h(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:a(t=>{this.state.foldersPosition=t[0].value},"onChange")}),new m(e,{label:"Sort by",name:"sort-by",value:this.state.sortBy,options:[{value:"changed-asc",text:e.i18n("Sort by changed")+"(\u2B06)"},{value:"changed-desc",text:e.i18n("Sort by changed")+"(\u2B07)"},{value:"name-asc",text:e.i18n("Sort by name")+"(\u2B06)"},{value:"name-desc",text:e.i18n("Sort by name")+"(\u2B07)"},{value:"size-asc",text:e.i18n("Sort by size")+"(\u2B06)"},{value:"size-desc",text:e.i18n("Sort by size")+"(\u2B07)"}],onChange:a(t=>{this.state.sortBy=t},"onChange")}),new m(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:a(t=>{this.state.tileSize=t},"onChange")})]),this.onChangeView()}},a(l,"UIBrowserSettings"),l);c([g("state.view")],u.prototype,"onChangeView",null),u=c([f],u);export{u as UIBrowserSettings};
|