jodit-pro 2.0.0-beta.12 → 2.0.0-beta.21
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 +19 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +2121 -105
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +2 -448
- package/es2015/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +24 -19
- package/es2015/plugins/backup/backup.min.js +2 -2
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +55 -46
- package/es2015/plugins/button-generator/button-generator.min.js +2 -2
- package/es2015/plugins/change-case/change-case.js +10 -7
- package/es2015/plugins/change-case/change-case.min.js +2 -2
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +10 -8
- package/es2015/plugins/color-picker/color-picker.min.js +2 -2
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +20 -15
- package/es2015/plugins/emoji/emoji.min.js +2 -2
- package/es2015/plugins/export-docs/export-docs.js +9 -6
- package/es2015/plugins/export-docs/export-docs.min.js +2 -2
- package/es2015/plugins/finder/finder.css +6 -6
- package/es2015/plugins/finder/finder.js +215 -199
- package/es2015/plugins/finder/finder.min.css +1 -1
- package/es2015/plugins/finder/finder.min.js +2 -2
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +149 -116
- package/es2015/plugins/google-maps/google-maps.min.js +2 -2
- package/es2015/plugins/google-search/google-search.js +7 -4
- package/es2015/plugins/google-search/google-search.min.js +2 -2
- package/es2015/plugins/highlight-signature/highlight-signature.js +9 -9
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +17 -14
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +36 -19
- package/es2015/plugins/keyboard/keyboard.min.js +2 -2
- package/es2015/plugins/mobile-view/mobile-view.js +13 -10
- package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2015/plugins/page-break/page-break.js +9 -6
- package/es2015/plugins/page-break/page-break.min.js +2 -2
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +9 -6
- package/es2015/plugins/paste-code/paste-code.min.js +2 -2
- package/es2015/plugins/paste-from-word/paste-from-word.js +2 -1516
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2015/plugins/show-blocks/show-blocks.js +15 -10
- package/es2015/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +7 -4
- package/es2015/plugins/todo-list/todo-list.min.js +2 -2
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +16 -10
- package/es2015/plugins/translate/translate.min.js +2 -2
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +3 -3
- package/es2015/plugins/tune-block/tune-block.min.js +2 -2
- package/es2018/jodit.css +19 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +2119 -105
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +2 -446
- package/es2018/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +24 -19
- package/es2018/plugins/backup/backup.min.js +2 -2
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +55 -46
- package/es2018/plugins/button-generator/button-generator.min.js +2 -2
- package/es2018/plugins/change-case/change-case.js +10 -7
- package/es2018/plugins/change-case/change-case.min.js +2 -2
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +10 -8
- package/es2018/plugins/color-picker/color-picker.min.js +2 -2
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +20 -15
- package/es2018/plugins/emoji/emoji.min.js +2 -2
- package/es2018/plugins/export-docs/export-docs.js +9 -6
- package/es2018/plugins/export-docs/export-docs.min.js +2 -2
- package/es2018/plugins/finder/finder.css +6 -6
- package/es2018/plugins/finder/finder.js +214 -198
- package/es2018/plugins/finder/finder.min.css +1 -1
- package/es2018/plugins/finder/finder.min.js +2 -2
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +131 -98
- package/es2018/plugins/google-maps/google-maps.min.js +2 -2
- package/es2018/plugins/google-search/google-search.js +7 -4
- package/es2018/plugins/google-search/google-search.min.js +2 -2
- package/es2018/plugins/highlight-signature/highlight-signature.js +9 -9
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +17 -14
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +36 -19
- package/es2018/plugins/keyboard/keyboard.min.js +2 -2
- package/es2018/plugins/mobile-view/mobile-view.js +13 -10
- package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2018/plugins/page-break/page-break.js +9 -6
- package/es2018/plugins/page-break/page-break.min.js +2 -2
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +9 -6
- package/es2018/plugins/paste-code/paste-code.min.js +2 -2
- package/es2018/plugins/paste-from-word/paste-from-word.js +2 -1516
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2018/plugins/show-blocks/show-blocks.js +15 -10
- package/es2018/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +7 -4
- package/es2018/plugins/todo-list/todo-list.min.js +2 -2
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +16 -10
- package/es2018/plugins/translate/translate.min.js +2 -2
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +3 -3
- package/es2018/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021/jodit.css +19 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +2098 -104
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +2 -438
- package/es2021/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +24 -19
- package/es2021/plugins/backup/backup.min.js +2 -2
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +55 -46
- package/es2021/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021/plugins/change-case/change-case.js +10 -7
- package/es2021/plugins/change-case/change-case.min.js +2 -2
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +10 -8
- package/es2021/plugins/color-picker/color-picker.min.js +2 -2
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +20 -15
- package/es2021/plugins/emoji/emoji.min.js +2 -2
- package/es2021/plugins/export-docs/export-docs.js +9 -6
- package/es2021/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021/plugins/finder/finder.css +6 -6
- package/es2021/plugins/finder/finder.js +214 -198
- package/es2021/plugins/finder/finder.min.css +1 -1
- package/es2021/plugins/finder/finder.min.js +2 -2
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +131 -98
- package/es2021/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021/plugins/google-search/google-search.js +7 -4
- package/es2021/plugins/google-search/google-search.min.js +2 -2
- package/es2021/plugins/highlight-signature/highlight-signature.js +9 -9
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +17 -14
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +36 -19
- package/es2021/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021/plugins/mobile-view/mobile-view.js +13 -10
- package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021/plugins/page-break/page-break.js +9 -6
- package/es2021/plugins/page-break/page-break.min.js +2 -2
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +9 -6
- package/es2021/plugins/paste-code/paste-code.min.js +2 -2
- package/es2021/plugins/paste-from-word/paste-from-word.js +2 -1503
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2021/plugins/show-blocks/show-blocks.js +15 -10
- package/es2021/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +7 -4
- package/es2021/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +16 -10
- package/es2021/plugins/translate/translate.min.js +2 -2
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +3 -3
- package/es2021/plugins/tune-block/tune-block.min.js +2 -2
- package/es2021.en/jodit.css +19 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +2098 -104
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +2 -438
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +24 -19
- package/es2021.en/plugins/backup/backup.min.js +2 -2
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +55 -46
- package/es2021.en/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021.en/plugins/change-case/change-case.js +10 -7
- package/es2021.en/plugins/change-case/change-case.min.js +2 -2
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +10 -8
- package/es2021.en/plugins/color-picker/color-picker.min.js +2 -2
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +20 -15
- package/es2021.en/plugins/emoji/emoji.min.js +2 -2
- package/es2021.en/plugins/export-docs/export-docs.js +9 -6
- package/es2021.en/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021.en/plugins/finder/finder.css +6 -6
- package/es2021.en/plugins/finder/finder.js +214 -198
- package/es2021.en/plugins/finder/finder.min.css +1 -1
- package/es2021.en/plugins/finder/finder.min.js +2 -2
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +131 -98
- package/es2021.en/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021.en/plugins/google-search/google-search.js +7 -4
- package/es2021.en/plugins/google-search/google-search.min.js +2 -2
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +9 -9
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +17 -14
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +36 -19
- package/es2021.en/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021.en/plugins/mobile-view/mobile-view.js +13 -10
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021.en/plugins/page-break/page-break.js +9 -6
- package/es2021.en/plugins/page-break/page-break.min.js +2 -2
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +9 -6
- package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +2 -1503
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es2021.en/plugins/show-blocks/show-blocks.js +15 -10
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +7 -4
- package/es2021.en/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +16 -10
- package/es2021.en/plugins/translate/translate.min.js +2 -2
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +3 -3
- package/es2021.en/plugins/tune-block/tune-block.min.js +2 -2
- package/es5/jodit.css +30 -51
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +2320 -108
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +2 -511
- package/es5/plugins/autocomplete/autocomplete.min.js +2 -2
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +26 -21
- package/es5/plugins/backup/backup.min.js +2 -2
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +59 -50
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- package/es5/plugins/change-case/change-case.js +10 -7
- package/es5/plugins/change-case/change-case.min.js +2 -2
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +11 -9
- package/es5/plugins/color-picker/color-picker.min.js +2 -2
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +20 -15
- package/es5/plugins/emoji/emoji.min.js +2 -2
- package/es5/plugins/export-docs/export-docs.js +9 -6
- package/es5/plugins/export-docs/export-docs.min.js +2 -2
- package/es5/plugins/finder/finder.css +6 -6
- package/es5/plugins/finder/finder.js +238 -222
- package/es5/plugins/finder/finder.min.css +1 -1
- package/es5/plugins/finder/finder.min.js +2 -2
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +164 -131
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- package/es5/plugins/google-search/google-search.js +9 -6
- package/es5/plugins/google-search/google-search.min.js +2 -2
- package/es5/plugins/highlight-signature/highlight-signature.js +9 -9
- package/es5/plugins/highlight-signature/highlight-signature.min.js +2 -2
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +18 -15
- package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +37 -20
- package/es5/plugins/keyboard/keyboard.min.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.js +13 -10
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +9 -6
- package/es5/plugins/page-break/page-break.min.js +2 -2
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +9 -6
- package/es5/plugins/paste-code/paste-code.min.js +2 -2
- package/es5/plugins/paste-from-word/paste-from-word.js +2 -1645
- package/es5/plugins/paste-from-word/paste-from-word.min.js +2 -2
- package/es5/plugins/show-blocks/show-blocks.js +16 -11
- package/es5/plugins/show-blocks/show-blocks.min.js +2 -2
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +7 -4
- package/es5/plugins/todo-list/todo-list.min.js +2 -2
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +17 -11
- package/es5/plugins/translate/translate.min.js +2 -2
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +3 -3
- package/es5/plugins/tune-block/tune-block.min.js +2 -2
- package/esm/config.d.ts +11 -0
- package/esm/config.js +6 -0
- package/esm/core/ui/form/range/range.d.ts +23 -0
- package/esm/core/ui/form/range/range.js +6 -0
- package/esm/index.d.ts +7 -0
- package/esm/index.js +6 -0
- package/esm/jodit-pro.d.ts +14 -0
- package/esm/jodit-pro.js +6 -0
- package/esm/plugins/autocomplete/autocomplete.d.ts +40 -0
- package/esm/plugins/autocomplete/autocomplete.js +6 -0
- package/esm/plugins/autocomplete/helpers.d.ts +25 -0
- package/esm/plugins/autocomplete/helpers.js +6 -0
- package/esm/plugins/autocomplete/interface.d.ts +19 -0
- package/esm/plugins/autocomplete/interface.js +6 -0
- package/esm/plugins/autocomplete/ui/autocomplete.d.ts +20 -0
- package/esm/plugins/autocomplete/ui/autocomplete.js +6 -0
- package/esm/plugins/autocomplete/ui/item.d.ts +14 -0
- package/esm/plugins/autocomplete/ui/item.js +6 -0
- package/esm/plugins/backup/assets/restore.svg.js +1 -0
- package/esm/plugins/backup/backup.d.ts +29 -0
- package/esm/plugins/backup/backup.js +6 -0
- package/esm/plugins/backup/config.d.ts +18 -0
- package/esm/plugins/backup/config.js +6 -0
- package/esm/plugins/backup/interface.d.ts +14 -0
- package/esm/plugins/backup/interface.js +6 -0
- package/esm/plugins/backup/langs/index.d.ts +6 -0
- package/esm/plugins/backup/langs/index.js +6 -0
- package/esm/plugins/backup/modules/store.d.ts +15 -0
- package/esm/plugins/backup/modules/store.js +6 -0
- package/esm/plugins/backup/ui/box.d.ts +29 -0
- package/esm/plugins/backup/ui/box.js +6 -0
- package/esm/plugins/backup/ui/item.d.ts +17 -0
- package/esm/plugins/backup/ui/item.js +6 -0
- package/esm/plugins/backup/ui/list.d.ts +24 -0
- package/esm/plugins/backup/ui/list.js +6 -0
- package/esm/plugins/button-generator/assets/check.svg.js +1 -0
- package/esm/plugins/button-generator/assets/styles.json +1162 -0
- package/esm/plugins/button-generator/assets/styles.json.js +1 -0
- package/esm/plugins/button-generator/button-generator.d.ts +25 -0
- package/esm/plugins/button-generator/button-generator.js +1 -0
- package/esm/plugins/button-generator/config.d.ts +6 -0
- package/esm/plugins/button-generator/config.js +6 -0
- package/esm/plugins/button-generator/icon.svg.js +1 -0
- package/esm/plugins/button-generator/ui/button/button.d.ts +21 -0
- package/esm/plugins/button-generator/ui/button/button.js +7 -0
- package/esm/plugins/button-generator/ui/form/form.d.ts +20 -0
- package/esm/plugins/button-generator/ui/form/form.js +6 -0
- package/esm/plugins/button-generator/ui/generator/button-generator.d.ts +22 -0
- package/esm/plugins/button-generator/ui/generator/button-generator.js +6 -0
- package/esm/plugins/button-generator/ui/preview/preview.d.ts +22 -0
- package/esm/plugins/button-generator/ui/preview/preview.js +6 -0
- package/esm/plugins/change-case/change-case.d.ts +22 -0
- package/esm/plugins/change-case/change-case.js +6 -0
- package/esm/plugins/change-case/config.d.ts +6 -0
- package/esm/plugins/change-case/config.js +6 -0
- package/esm/plugins/change-case/icon.svg.js +1 -0
- package/esm/plugins/color-picker/color-picker.d.ts +18 -0
- package/esm/plugins/color-picker/color-picker.js +6 -0
- package/esm/plugins/color-picker/ui/input/color-input.d.ts +19 -0
- package/esm/plugins/color-picker/ui/input/color-input.js +6 -0
- package/esm/plugins/emoji/config.d.ts +10 -0
- package/esm/plugins/emoji/config.js +1 -0
- package/esm/plugins/emoji/emoji.d.ts +22 -0
- package/esm/plugins/emoji/emoji.js +6 -0
- package/esm/plugins/emoji/emoji.json +5667 -0
- package/esm/plugins/emoji/emoji.json.js +1 -0
- package/esm/plugins/emoji/emoji.svg.js +1 -0
- package/esm/plugins/emoji/interface.d.ts +24 -0
- package/esm/plugins/emoji/interface.js +6 -0
- package/esm/plugins/emoji/ui/emoji.d.ts +54 -0
- package/esm/plugins/emoji/ui/emoji.js +6 -0
- package/esm/plugins/export-docs/assets/export.svg.js +1 -0
- package/esm/plugins/export-docs/config.d.ts +21 -0
- package/esm/plugins/export-docs/config.js +6 -0
- package/esm/plugins/export-docs/export-docs.d.ts +18 -0
- package/esm/plugins/export-docs/export-docs.js +6 -0
- package/esm/plugins/finder/browser.d.ts +70 -0
- package/esm/plugins/finder/browser.js +6 -0
- package/esm/plugins/finder/config.d.ts +6 -0
- package/esm/plugins/finder/config.js +6 -0
- package/esm/plugins/finder/finder.d.ts +19 -0
- package/esm/plugins/finder/finder.js +6 -0
- package/esm/plugins/finder/helpers/context-menu.d.ts +19 -0
- package/esm/plugins/finder/helpers/context-menu.js +6 -0
- package/esm/plugins/finder/helpers/helpers.d.ts +6 -0
- package/esm/plugins/finder/helpers/helpers.js +6 -0
- package/esm/plugins/finder/helpers/history-manager.d.ts +24 -0
- package/esm/plugins/finder/helpers/history-manager.js +6 -0
- package/esm/plugins/finder/helpers/loading-manager.d.ts +25 -0
- package/esm/plugins/finder/helpers/loading-manager.js +6 -0
- package/esm/plugins/finder/helpers/persistent-store.d.ts +32 -0
- package/esm/plugins/finder/helpers/persistent-store.js +6 -0
- package/esm/plugins/finder/helpers/state-manager.d.ts +21 -0
- package/esm/plugins/finder/helpers/state-manager.js +6 -0
- package/esm/plugins/finder/langs/index.d.ts +7 -0
- package/esm/plugins/finder/langs/ru.d.ts +22 -0
- package/esm/plugins/finder/ui/assets/icons/heart.svg.js +1 -0
- package/esm/plugins/finder/ui/assets/icons/home.svg.js +1 -0
- package/esm/plugins/finder/ui/assets/icons/index.d.ts +1 -0
- package/esm/plugins/finder/ui/assets/icons/index.js +6 -0
- package/esm/plugins/finder/ui/assets/icons/new-folder.svg.js +1 -0
- package/esm/plugins/finder/ui/folder/folder.d.ts +18 -0
- package/esm/plugins/finder/ui/folder/folder.js +6 -0
- package/esm/plugins/finder/ui/header/header.d.ts +21 -0
- package/esm/plugins/finder/ui/header/header.js +6 -0
- package/esm/plugins/finder/ui/item/item.d.ts +24 -0
- package/esm/plugins/finder/ui/item/item.js +6 -0
- package/esm/plugins/finder/ui/lightboox/lightbox.d.ts +27 -0
- package/esm/plugins/finder/ui/lightboox/lightbox.js +6 -0
- package/esm/plugins/finder/ui/panel/panel.d.ts +60 -0
- package/esm/plugins/finder/ui/panel/panel.js +6 -0
- package/esm/plugins/finder/ui/preview/preview.d.ts +25 -0
- package/esm/plugins/finder/ui/preview/preview.js +6 -0
- package/esm/plugins/finder/ui/progress/progress.d.ts +19 -0
- package/esm/plugins/finder/ui/progress/progress.js +6 -0
- package/esm/plugins/finder/ui/settings/settings.d.ts +25 -0
- package/esm/plugins/finder/ui/settings/settings.js +6 -0
- package/esm/plugins/finder/ui/sidebar/sidebar.d.ts +27 -0
- package/esm/plugins/finder/ui/sidebar/sidebar.js +6 -0
- package/esm/plugins/finder/ui/source/source.d.ts +19 -0
- package/esm/plugins/finder/ui/source/source.js +6 -0
- package/esm/plugins/finder/ui/sources/sources.d.ts +15 -0
- package/esm/plugins/finder/ui/sources/sources.js +6 -0
- package/esm/plugins/finder/ui/statusbar/statusbar.d.ts +14 -0
- package/esm/plugins/finder/ui/statusbar/statusbar.js +6 -0
- package/esm/plugins/finder/ui/tree/tree.d.ts +16 -0
- package/esm/plugins/finder/ui/tree/tree.js +6 -0
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +32 -0
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +6 -0
- package/esm/plugins/google-maps/assets/circle.svg.js +1 -0
- package/esm/plugins/google-maps/assets/hand.svg.js +1 -0
- package/esm/plugins/google-maps/assets/icon.svg.js +1 -0
- package/esm/plugins/google-maps/assets/index.d.ts +6 -0
- package/esm/plugins/google-maps/assets/index.js +6 -0
- package/esm/plugins/google-maps/assets/marker.svg.js +1 -0
- package/esm/plugins/google-maps/assets/polygon.svg.js +1 -0
- package/esm/plugins/google-maps/assets/polyline.svg.js +1 -0
- package/esm/plugins/google-maps/assets/text.svg.js +1 -0
- package/esm/plugins/google-maps/config.d.ts +45 -0
- package/esm/plugins/google-maps/config.js +6 -0
- package/esm/plugins/google-maps/google-maps.d.ts +29 -0
- package/esm/plugins/google-maps/google-maps.js +6 -0
- package/esm/plugins/google-maps/helpers/const.d.ts +7 -0
- package/esm/plugins/google-maps/helpers/const.js +6 -0
- package/esm/plugins/google-maps/helpers/generate-js-script.d.ts +8 -0
- package/esm/plugins/google-maps/helpers/generate-js-script.js +1 -0
- package/esm/plugins/google-maps/helpers/generate-static-elements.d.ts +7 -0
- package/esm/plugins/google-maps/helpers/generate-static-elements.js +6 -0
- package/esm/plugins/google-maps/helpers/helpers.d.ts +14 -0
- package/esm/plugins/google-maps/helpers/helpers.js +6 -0
- package/esm/plugins/google-maps/helpers/static-url.d.ts +7 -0
- package/esm/plugins/google-maps/helpers/static-url.js +6 -0
- package/esm/plugins/google-maps/ui/combo-box/combo-box.d.ts +12 -0
- package/esm/plugins/google-maps/ui/combo-box/combo-box.js +6 -0
- package/esm/plugins/google-maps/ui/editors/base.d.ts +15 -0
- package/esm/plugins/google-maps/ui/editors/base.js +6 -0
- package/esm/plugins/google-maps/ui/editors/index.d.ts +8 -0
- package/esm/plugins/google-maps/ui/editors/index.js +6 -0
- package/esm/plugins/google-maps/ui/editors/marker/marker.d.ts +10 -0
- package/esm/plugins/google-maps/ui/editors/marker/marker.js +6 -0
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.d.ts +10 -0
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +6 -0
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.d.ts +10 -0
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +6 -0
- package/esm/plugins/google-maps/ui/index.d.ts +10 -0
- package/esm/plugins/google-maps/ui/index.js +6 -0
- package/esm/plugins/google-maps/ui/map/map.d.ts +39 -0
- package/esm/plugins/google-maps/ui/map/map.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/index.d.ts +10 -0
- package/esm/plugins/google-maps/ui/map/modules/index.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/remove-element.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/remove-element.js +6 -0
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +8 -0
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.js +6 -0
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +14 -0
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +6 -0
- package/esm/plugins/google-maps/ui/maps-props/maps-props.d.ts +19 -0
- package/esm/plugins/google-maps/ui/maps-props/maps-props.js +6 -0
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +13 -0
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +6 -0
- package/esm/plugins/google-search/google-search.d.ts +17 -0
- package/esm/plugins/google-search/google-search.js +6 -0
- package/esm/plugins/google-search/icon.svg.js +1 -0
- package/esm/plugins/highlight-signature/highlight-signature.d.ts +54 -0
- package/esm/plugins/highlight-signature/highlight-signature.js +6 -0
- package/esm/plugins/iframe-editor/config.d.ts +6 -0
- package/esm/plugins/iframe-editor/config.js +6 -0
- package/esm/plugins/iframe-editor/icon.svg.js +1 -0
- package/esm/plugins/iframe-editor/iframe-editor.d.ts +22 -0
- package/esm/plugins/iframe-editor/iframe-editor.js +6 -0
- package/esm/plugins/iframe-editor/interface.d.ts +15 -0
- package/esm/plugins/iframe-editor/interface.js +6 -0
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +14 -0
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js +6 -0
- package/esm/plugins/index.d.ts +8 -0
- package/esm/plugins/index.js +6 -0
- package/esm/plugins/keyboard/config.d.ts +23 -0
- package/esm/plugins/keyboard/config.js +1 -0
- package/esm/plugins/keyboard/icon.svg.js +1 -0
- package/esm/plugins/keyboard/interface.d.ts +13 -0
- package/esm/plugins/keyboard/interface.js +6 -0
- package/esm/plugins/keyboard/keyboard.d.ts +27 -0
- package/esm/plugins/keyboard/keyboard.js +1 -0
- package/esm/plugins/keyboard/ui/assets/backspace.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/caps.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/dots.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/shift.svg.js +1 -0
- package/esm/plugins/keyboard/ui/assets/tab.svg.js +1 -0
- package/esm/plugins/keyboard/ui/keyboard/keyboard.d.ts +32 -0
- package/esm/plugins/keyboard/ui/keyboard/keyboard.js +6 -0
- package/esm/plugins/license/helpers/helpers.d.ts +14 -0
- package/esm/plugins/license/helpers/helpers.js +7 -0
- package/esm/plugins/license/license.d.ts +16 -0
- package/esm/plugins/license/license.js +6 -0
- package/esm/plugins/mobile-view/config.d.ts +14 -0
- package/esm/plugins/mobile-view/config.js +6 -0
- package/esm/plugins/mobile-view/icon.svg.js +1 -0
- package/esm/plugins/mobile-view/mobile-view.d.ts +6 -0
- package/esm/plugins/mobile-view/mobile-view.js +6 -0
- package/esm/plugins/page-break/assets/page-break.svg.js +1 -0
- package/esm/plugins/page-break/config.d.ts +13 -0
- package/esm/plugins/page-break/config.js +6 -0
- package/esm/plugins/page-break/page-break.css.d.ts +2 -0
- package/esm/plugins/page-break/page-break.css.js +6 -0
- package/esm/plugins/page-break/page-break.d.ts +23 -0
- package/esm/plugins/page-break/page-break.js +6 -0
- package/esm/plugins/paste-code/config.d.ts +36 -0
- package/esm/plugins/paste-code/config.js +6 -0
- package/esm/plugins/paste-code/icon.svg.js +1 -0
- package/esm/plugins/paste-code/paste-code.d.ts +30 -0
- package/esm/plugins/paste-code/paste-code.js +6 -0
- package/esm/plugins/paste-from-word/cases/clean-styles.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/clean-styles.js +6 -0
- package/esm/plugins/paste-from-word/cases/clear-attributes.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/clear-attributes.js +6 -0
- package/esm/plugins/paste-from-word/cases/clear-class-name.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/clear-class-name.js +6 -0
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.js +6 -0
- package/esm/plugins/paste-from-word/cases/convert-to-list.d.ts +11 -0
- package/esm/plugins/paste-from-word/cases/convert-to-list.js +6 -0
- package/esm/plugins/paste-from-word/cases/index.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/index.js +6 -0
- package/esm/plugins/paste-from-word/cases/mark-page-break.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/mark-page-break.js +6 -0
- package/esm/plugins/paste-from-word/cases/normalize-image-props.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/normalize-image-props.js +6 -0
- package/esm/plugins/paste-from-word/cases/process-image.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/process-image.js +6 -0
- package/esm/plugins/paste-from-word/cases/process-links.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/process-links.js +6 -0
- package/esm/plugins/paste-from-word/cases/remove-extra-tags.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/remove-extra-tags.js +6 -0
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.js +6 -0
- package/esm/plugins/paste-from-word/cases/replace-old-tags.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/replace-old-tags.js +6 -0
- package/esm/plugins/paste-from-word/cases/table.d.ts +7 -0
- package/esm/plugins/paste-from-word/cases/table.js +6 -0
- package/esm/plugins/paste-from-word/config.d.ts +24 -0
- package/esm/plugins/paste-from-word/config.js +6 -0
- package/esm/plugins/paste-from-word/constants.d.ts +20 -0
- package/esm/plugins/paste-from-word/constants.js +6 -0
- package/esm/plugins/paste-from-word/element/checkers.d.ts +14 -0
- package/esm/plugins/paste-from-word/element/checkers.js +6 -0
- package/esm/plugins/paste-from-word/element/element.d.ts +34 -0
- package/esm/plugins/paste-from-word/element/element.js +6 -0
- package/esm/plugins/paste-from-word/element/index.d.ts +8 -0
- package/esm/plugins/paste-from-word/element/index.js +6 -0
- package/esm/plugins/paste-from-word/element/render.d.ts +9 -0
- package/esm/plugins/paste-from-word/element/render.js +6 -0
- package/esm/plugins/paste-from-word/element/style.d.ts +20 -0
- package/esm/plugins/paste-from-word/element/style.js +6 -0
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +7 -0
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +6 -0
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.d.ts +7 -0
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +6 -0
- package/esm/plugins/paste-from-word/helpers/helpers.d.ts +19 -0
- package/esm/plugins/paste-from-word/helpers/helpers.js +6 -0
- package/esm/plugins/paste-from-word/helpers/index.d.ts +9 -0
- package/esm/plugins/paste-from-word/helpers/index.js +6 -0
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +8 -0
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.js +6 -0
- package/esm/plugins/paste-from-word/interface.d.ts +17 -0
- package/esm/plugins/paste-from-word/interface.js +6 -0
- package/esm/plugins/paste-from-word/paste-from-word.d.ts +14 -0
- package/esm/plugins/paste-from-word/paste-from-word.js +6 -0
- package/esm/plugins/show-blocks/config.d.ts +15 -0
- package/esm/plugins/show-blocks/config.js +6 -0
- package/esm/plugins/show-blocks/langs/ar.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/cs_cz.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/de.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/es.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/fa.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/fr.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/he.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/hu.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/id.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/index.d.ts +25 -0
- package/esm/plugins/show-blocks/langs/index.js +6 -0
- package/esm/plugins/show-blocks/langs/it.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/ja.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/ko.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/nl.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/pl.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/pt_br.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/ru.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/tr.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/zh_cn.d.ts +4 -0
- package/esm/plugins/show-blocks/langs/zh_tw.d.ts +4 -0
- package/esm/plugins/show-blocks/show-blocks.d.ts +39 -0
- package/esm/plugins/show-blocks/show-blocks.js +6 -0
- package/esm/plugins/show-blocks/show-blocks.svg.js +1 -0
- package/esm/plugins/todo-list/assets/todo-list.svg.js +1 -0
- package/esm/plugins/todo-list/config.d.ts +15 -0
- package/esm/plugins/todo-list/config.js +6 -0
- package/esm/plugins/todo-list/todo-list.d.ts +41 -0
- package/esm/plugins/todo-list/todo-list.js +6 -0
- package/esm/plugins/translate/assets/swap.svg.js +1 -0
- package/esm/plugins/translate/assets/translate.svg.js +1 -0
- package/esm/plugins/translate/config.d.ts +20 -0
- package/esm/plugins/translate/config.js +6 -0
- package/esm/plugins/translate/interface.d.ts +50 -0
- package/esm/plugins/translate/interface.js +6 -0
- package/esm/plugins/translate/providers/google/google.d.ts +14 -0
- package/esm/plugins/translate/providers/google/google.js +6 -0
- package/esm/plugins/translate/providers/languages.d.ts +140 -0
- package/esm/plugins/translate/providers/languages.js +6 -0
- package/esm/plugins/translate/translate.d.ts +20 -0
- package/esm/plugins/translate/translate.js +6 -0
- package/esm/plugins/translate/ui/list/list.d.ts +34 -0
- package/esm/plugins/translate/ui/list/list.js +6 -0
- package/esm/plugins/translate/ui/settings/settings.d.ts +35 -0
- package/esm/plugins/translate/ui/settings/settings.js +6 -0
- package/esm/plugins/tune-block/config.d.ts +13 -0
- package/esm/plugins/tune-block/config.js +6 -0
- package/esm/plugins/tune-block/tune-block.d.ts +30 -0
- package/esm/plugins/tune-block/tune-block.js +6 -0
- package/esm/plugins/tune-block/ui/tuner/icon.svg.js +1 -0
- package/esm/plugins/tune-block/ui/tuner/tuner.d.ts +53 -0
- package/esm/plugins/tune-block/ui/tuner/tuner.js +6 -0
- package/esm/traits/resize/resize.d.ts +17 -0
- package/esm/traits/resize/resize.js +6 -0
- package/esm/traits/select-items/select-items.d.ts +16 -0
- package/esm/traits/select-items/select-items.js +6 -0
- package/esm/tsconfig.json +19 -0
- package/esm/types/view.d.ts +9 -0
- package/esm/typings.d.ts +5 -0
- package/package.json +3 -2
- package/types/config.d.ts +11 -0
- package/types/core/ui/form/range/range.d.ts +23 -0
- package/types/index.d.ts +7 -0
- package/types/jodit-pro.d.ts +14 -0
- package/types/plugins/autocomplete/autocomplete.d.ts +40 -0
- package/types/plugins/autocomplete/helpers.d.ts +25 -0
- package/types/plugins/autocomplete/interface.d.ts +19 -0
- package/types/plugins/autocomplete/ui/autocomplete.d.ts +20 -0
- package/types/plugins/autocomplete/ui/item.d.ts +14 -0
- package/types/plugins/backup/backup.d.ts +29 -0
- package/types/plugins/backup/config.d.ts +18 -0
- package/types/plugins/backup/interface.d.ts +14 -0
- package/types/plugins/backup/langs/index.d.ts +6 -0
- package/types/plugins/backup/modules/store.d.ts +15 -0
- package/types/plugins/backup/ui/box.d.ts +29 -0
- package/types/plugins/backup/ui/item.d.ts +17 -0
- package/types/plugins/backup/ui/list.d.ts +24 -0
- package/types/plugins/button-generator/button-generator.d.ts +25 -0
- package/types/plugins/button-generator/config.d.ts +6 -0
- package/types/plugins/button-generator/ui/button/button.d.ts +21 -0
- package/types/plugins/button-generator/ui/form/form.d.ts +20 -0
- package/types/plugins/button-generator/ui/generator/button-generator.d.ts +22 -0
- package/types/plugins/button-generator/ui/preview/preview.d.ts +22 -0
- package/types/plugins/change-case/change-case.d.ts +22 -0
- package/types/plugins/change-case/config.d.ts +6 -0
- package/types/plugins/color-picker/color-picker.d.ts +18 -0
- package/types/plugins/color-picker/ui/input/color-input.d.ts +19 -0
- package/types/plugins/emoji/config.d.ts +10 -0
- package/types/plugins/emoji/emoji.d.ts +22 -0
- package/types/plugins/emoji/interface.d.ts +24 -0
- package/types/plugins/emoji/ui/emoji.d.ts +54 -0
- package/types/plugins/export-docs/config.d.ts +21 -0
- package/types/plugins/export-docs/export-docs.d.ts +18 -0
- package/types/plugins/finder/browser.d.ts +70 -0
- package/types/plugins/finder/config.d.ts +6 -0
- package/types/plugins/finder/finder.d.ts +19 -0
- package/types/plugins/finder/helpers/context-menu.d.ts +19 -0
- package/types/plugins/finder/helpers/helpers.d.ts +6 -0
- package/types/plugins/finder/helpers/history-manager.d.ts +24 -0
- package/types/plugins/finder/helpers/loading-manager.d.ts +25 -0
- package/types/plugins/finder/helpers/persistent-store.d.ts +32 -0
- package/types/plugins/finder/helpers/state-manager.d.ts +21 -0
- package/types/plugins/finder/langs/index.d.ts +7 -0
- package/types/plugins/finder/langs/ru.d.ts +22 -0
- package/types/plugins/finder/ui/assets/icons/index.d.ts +1 -0
- package/types/plugins/finder/ui/folder/folder.d.ts +18 -0
- package/types/plugins/finder/ui/header/header.d.ts +21 -0
- package/types/plugins/finder/ui/item/item.d.ts +24 -0
- package/types/plugins/finder/ui/lightboox/lightbox.d.ts +27 -0
- package/types/plugins/finder/ui/panel/panel.d.ts +60 -0
- package/types/plugins/finder/ui/preview/preview.d.ts +25 -0
- package/types/plugins/finder/ui/progress/progress.d.ts +19 -0
- package/types/plugins/finder/ui/settings/settings.d.ts +25 -0
- package/types/plugins/finder/ui/sidebar/sidebar.d.ts +27 -0
- package/types/plugins/finder/ui/source/source.d.ts +19 -0
- package/types/plugins/finder/ui/sources/sources.d.ts +15 -0
- package/types/plugins/finder/ui/statusbar/statusbar.d.ts +14 -0
- package/types/plugins/finder/ui/tree/tree.d.ts +16 -0
- package/types/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +32 -0
- package/types/plugins/google-maps/assets/index.d.ts +6 -0
- package/types/plugins/google-maps/config.d.ts +45 -0
- package/types/plugins/google-maps/google-maps.d.ts +29 -0
- package/types/plugins/google-maps/helpers/const.d.ts +7 -0
- package/types/plugins/google-maps/helpers/generate-js-script.d.ts +8 -0
- package/types/plugins/google-maps/helpers/generate-static-elements.d.ts +7 -0
- package/types/plugins/google-maps/helpers/helpers.d.ts +14 -0
- package/types/plugins/google-maps/helpers/static-url.d.ts +7 -0
- package/types/plugins/google-maps/ui/combo-box/combo-box.d.ts +12 -0
- package/types/plugins/google-maps/ui/editors/base.d.ts +15 -0
- package/types/plugins/google-maps/ui/editors/index.d.ts +8 -0
- package/types/plugins/google-maps/ui/editors/marker/marker.d.ts +10 -0
- package/types/plugins/google-maps/ui/editors/polygon/polygon.d.ts +10 -0
- package/types/plugins/google-maps/ui/editors/polyline/polyline.d.ts +10 -0
- package/types/plugins/google-maps/ui/index.d.ts +10 -0
- package/types/plugins/google-maps/ui/map/map.d.ts +39 -0
- package/types/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/index.d.ts +10 -0
- package/types/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/remove-element.d.ts +8 -0
- package/types/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +8 -0
- package/types/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +14 -0
- package/types/plugins/google-maps/ui/maps-props/maps-props.d.ts +19 -0
- package/types/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +13 -0
- package/types/plugins/google-search/google-search.d.ts +17 -0
- package/types/plugins/highlight-signature/highlight-signature.d.ts +54 -0
- package/types/plugins/iframe-editor/config.d.ts +6 -0
- package/types/plugins/iframe-editor/iframe-editor.d.ts +22 -0
- package/types/plugins/iframe-editor/interface.d.ts +15 -0
- package/types/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +14 -0
- package/types/plugins/index.d.ts +8 -0
- package/types/plugins/keyboard/config.d.ts +23 -0
- package/types/plugins/keyboard/interface.d.ts +13 -0
- package/types/plugins/keyboard/keyboard.d.ts +27 -0
- package/types/plugins/keyboard/ui/keyboard/keyboard.d.ts +32 -0
- package/types/plugins/license/helpers/helpers.d.ts +14 -0
- package/types/plugins/license/license.d.ts +16 -0
- package/types/plugins/mobile-view/config.d.ts +14 -0
- package/types/plugins/mobile-view/mobile-view.d.ts +6 -0
- package/types/plugins/page-break/config.d.ts +13 -0
- package/types/plugins/page-break/page-break.css.d.ts +2 -0
- package/types/plugins/page-break/page-break.d.ts +23 -0
- package/types/plugins/paste-code/config.d.ts +36 -0
- package/types/plugins/paste-code/paste-code.d.ts +30 -0
- package/types/plugins/paste-from-word/cases/clean-styles.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/clear-attributes.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/clear-class-name.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/convert-to-list.d.ts +11 -0
- package/types/plugins/paste-from-word/cases/index.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/mark-page-break.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/normalize-image-props.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/process-image.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/process-links.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/remove-extra-tags.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/remove-inside-comment.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/replace-old-tags.d.ts +7 -0
- package/types/plugins/paste-from-word/cases/table.d.ts +7 -0
- package/types/plugins/paste-from-word/config.d.ts +24 -0
- package/types/plugins/paste-from-word/constants.d.ts +20 -0
- package/types/plugins/paste-from-word/element/checkers.d.ts +14 -0
- package/types/plugins/paste-from-word/element/element.d.ts +34 -0
- package/types/plugins/paste-from-word/element/index.d.ts +8 -0
- package/types/plugins/paste-from-word/element/render.d.ts +9 -0
- package/types/plugins/paste-from-word/element/style.d.ts +20 -0
- package/types/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +7 -0
- package/types/plugins/paste-from-word/helpers/calc-list-levels.d.ts +7 -0
- package/types/plugins/paste-from-word/helpers/helpers.d.ts +19 -0
- package/types/plugins/paste-from-word/helpers/index.d.ts +9 -0
- package/types/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +8 -0
- package/types/plugins/paste-from-word/interface.d.ts +17 -0
- package/types/plugins/paste-from-word/paste-from-word.d.ts +14 -0
- package/types/plugins/show-blocks/config.d.ts +15 -0
- package/types/plugins/show-blocks/langs/ar.d.ts +4 -0
- package/types/plugins/show-blocks/langs/cs_cz.d.ts +4 -0
- package/types/plugins/show-blocks/langs/de.d.ts +4 -0
- package/types/plugins/show-blocks/langs/es.d.ts +4 -0
- package/types/plugins/show-blocks/langs/fa.d.ts +4 -0
- package/types/plugins/show-blocks/langs/fr.d.ts +4 -0
- package/types/plugins/show-blocks/langs/he.d.ts +4 -0
- package/types/plugins/show-blocks/langs/hu.d.ts +4 -0
- package/types/plugins/show-blocks/langs/id.d.ts +4 -0
- package/types/plugins/show-blocks/langs/index.d.ts +25 -0
- package/types/plugins/show-blocks/langs/it.d.ts +4 -0
- package/types/plugins/show-blocks/langs/ja.d.ts +4 -0
- package/types/plugins/show-blocks/langs/ko.d.ts +4 -0
- package/types/plugins/show-blocks/langs/nl.d.ts +4 -0
- package/types/plugins/show-blocks/langs/pl.d.ts +4 -0
- package/types/plugins/show-blocks/langs/pt_br.d.ts +4 -0
- package/types/plugins/show-blocks/langs/ru.d.ts +4 -0
- package/types/plugins/show-blocks/langs/tr.d.ts +4 -0
- package/types/plugins/show-blocks/langs/zh_cn.d.ts +4 -0
- package/types/plugins/show-blocks/langs/zh_tw.d.ts +4 -0
- package/types/plugins/show-blocks/show-blocks.d.ts +39 -0
- package/types/plugins/todo-list/config.d.ts +15 -0
- package/types/plugins/todo-list/todo-list.d.ts +41 -0
- package/types/plugins/translate/config.d.ts +20 -0
- package/types/plugins/translate/interface.d.ts +50 -0
- package/types/plugins/translate/providers/google/google.d.ts +14 -0
- package/types/plugins/translate/providers/languages.d.ts +140 -0
- package/types/plugins/translate/translate.d.ts +20 -0
- package/types/plugins/translate/ui/list/list.d.ts +34 -0
- package/types/plugins/translate/ui/settings/settings.d.ts +35 -0
- package/types/plugins/tune-block/config.d.ts +13 -0
- package/types/plugins/tune-block/tune-block.d.ts +30 -0
- package/types/plugins/tune-block/ui/tuner/tuner.d.ts +53 -0
- package/types/traits/resize/resize.d.ts +17 -0
- package/types/traits/select-items/select-items.d.ts +16 -0
- package/types/tsconfig.json +19 -0
- package/types/types/view.d.ts +9 -0
- package/types/typings.d.ts +5 -0
- package/es2015/plugins/autocomplete/autocomplete.css +0 -26
- package/es2015/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es2018/plugins/autocomplete/autocomplete.css +0 -26
- package/es2018/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es2021/plugins/autocomplete/autocomplete.css +0 -26
- package/es2021/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es2021.en/plugins/autocomplete/autocomplete.css +0 -26
- package/es2021.en/plugins/autocomplete/autocomplete.min.css +0 -1
- package/es5/plugins/autocomplete/autocomplete.css +0 -26
- package/es5/plugins/autocomplete/autocomplete.min.css +0 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import "./ui/assets/icons";
|
|
8
|
+
import type { IFileBrowserCallBackData, IFileBrowserDataProvider, IProgressBar, IFileBrowserItemWrapper, CanUndef, IUIGroup } from "jodit/esm/types";
|
|
9
|
+
import { Dialog } from "jodit/esm/modules/dialog";
|
|
10
|
+
import { Dlgs } from "jodit/esm/core/traits";
|
|
11
|
+
import type { IFileBrowserOptionsPro, IFileBrowserPro, IFileBrowserStatePro, IFileBrowserTreeItemPro, IHistoryManager } from "./interface";
|
|
12
|
+
import { UIBrowserPanel } from "./ui/panel/panel";
|
|
13
|
+
import { StateManager } from "./helpers/state-manager";
|
|
14
|
+
import { PersistentStore } from "./helpers/persistent-store";
|
|
15
|
+
import { ContextMenuManager } from "./helpers/context-menu";
|
|
16
|
+
import { LoadingManager } from "./helpers/loading-manager";
|
|
17
|
+
export interface FileBrowserPro extends Dlgs {
|
|
18
|
+
}
|
|
19
|
+
export declare class FileBrowserPro extends Dialog implements IFileBrowserPro {
|
|
20
|
+
readonly dataProvider: IFileBrowserDataProvider;
|
|
21
|
+
readonly state: IFileBrowserStatePro & import("jodit/esm/types").IObservable;
|
|
22
|
+
readonly persistent: PersistentStore;
|
|
23
|
+
loadingManager: LoadingManager;
|
|
24
|
+
stateManager: StateManager;
|
|
25
|
+
historyManager: IHistoryManager;
|
|
26
|
+
contextMenuManager: ContextMenuManager;
|
|
27
|
+
OPTIONS: IFileBrowserOptionsPro;
|
|
28
|
+
/** @override */
|
|
29
|
+
className(): string;
|
|
30
|
+
/** @override */
|
|
31
|
+
lock(name?: string): boolean;
|
|
32
|
+
unlock(): boolean;
|
|
33
|
+
status(message: string | Error, success?: boolean): void;
|
|
34
|
+
private header;
|
|
35
|
+
panel: UIBrowserPanel;
|
|
36
|
+
files: IUIGroup;
|
|
37
|
+
tree: IUIGroup;
|
|
38
|
+
get progressbar(): IProgressBar;
|
|
39
|
+
constructor(options?: IFileBrowserOptionsPro);
|
|
40
|
+
/** @override */
|
|
41
|
+
protected addDisclaimer(elm: HTMLElement): void;
|
|
42
|
+
open(callback?: CanUndef<(_: IFileBrowserCallBackData) => void>, onlyImages?: boolean): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Resize handler
|
|
45
|
+
*/
|
|
46
|
+
private onResizeWindow;
|
|
47
|
+
protected onChangePath(): void;
|
|
48
|
+
protected onChangeTheme(): void;
|
|
49
|
+
protected onToggleSettings(): void;
|
|
50
|
+
private prepareOpening;
|
|
51
|
+
private registerGlobalListeners;
|
|
52
|
+
private onKeyPress;
|
|
53
|
+
private removeGlobalListeners;
|
|
54
|
+
protected onFileRemove(): void;
|
|
55
|
+
private __itemsRemove;
|
|
56
|
+
private __removeFile;
|
|
57
|
+
private __folderRemove;
|
|
58
|
+
protected onFileEdit(): void;
|
|
59
|
+
protected onFolderRename(data: IFileBrowserTreeItemPro): void;
|
|
60
|
+
protected onFolderRemove(data: IFileBrowserTreeItemPro): void;
|
|
61
|
+
protected onFolderCreate(data: IFileBrowserTreeItemPro): void;
|
|
62
|
+
protected onFileRename(item: IFileBrowserItemWrapper): void;
|
|
63
|
+
protected onChooseItems(): void | false;
|
|
64
|
+
protected onOpenLightBox(item: IFileBrowserItemWrapper): void;
|
|
65
|
+
private uploader;
|
|
66
|
+
private initUploader;
|
|
67
|
+
/** @override */
|
|
68
|
+
destruct(): void;
|
|
69
|
+
private fullFillOptions;
|
|
70
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,s,r){var o,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,s):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,s,r);else for(var n=e.length-1;n>=0;n--)(o=e[n])&&(a=(i<3?o(a):i>3?o(t,s,a):o(t,s))||a);return i>3&&a&&Object.defineProperty(t,s,a),a};import"./ui/assets/icons";import{ConfigProto as t,css as s,isAbort as r,isString as o,isValidName as i}from"jodit/esm/core/helpers/index.js";import{Dom as a,observable as n}from"jodit/esm/modules/index.js";import{Dialog as l}from"jodit/esm/modules/dialog/index.js";import{autobind as h,cache as m,component as d,derive as c,watch as p}from"jodit/esm/core/decorators/index.js";import{KEY_ENTER as u,IS_PROD as f,KEY_DELETE as g,KEY_DOWN as w,KEY_LEFT as v,KEY_RIGHT as P,KEY_UP as b}from"jodit/esm/core/constants.js";import{openImageEditor as y}from"jodit/esm/modules/image-editor/image-editor.js";import{makeDataProvider as F}from"jodit/esm/modules/file-browser/factories.js";import{Dlgs as B}from"jodit/esm/core/traits/index.js";import{Config as R}from"jodit/esm/config.js";import{JoditPro as M}from"jodit-pro/esm/jodit-pro.js";import{license as j}from"jodit-pro/esm/plugins/license/license.js";import{UIBrowserPanel as S}from"./ui/panel/panel";import{StateManager as E}from"./helpers/state-manager";import{UIBrowserHeader as C}from"./ui/header/header";import{UIProgress as x}from"./ui/progress/progress";import{PersistentStore as _}from"./helpers/persistent-store";import{HistoryManager as O}from"./helpers/history-manager";import{ContextMenuManager as k}from"./helpers/context-menu";import{parentPath as I}from"./helpers/helpers";import{UILightBox as L}from"./ui/lightboox/lightbox";import{LoadingManager as N}from"./helpers/loading-manager";export let FileBrowserPro=class FileBrowserPro extends l{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)){r(e)||(f||o(e)||console.error(e),this.message.message(o(e)?e:e.message,t?"success":"error",this.options.howLongShowMsg))}get progressbar(){return new x(this,this.stateManager.state)}constructor(e){super(t(Object.assign(e||{},{resizable:!0,draggable:!0,toolbarButtons:e?.toolbarButtons||R.defaultOptions.filebrowser.buttons,buttons:M.atom(["filebrowser.settings","fullsize","dialog.close"])}),R.defaultOptions.filebrowser)),this.dataProvider=F(this,this.options),this.state=n({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 N(this,this.state),this.stateManager=new E(this.state),this.historyManager=new O(this,this.state),this.contextMenuManager=new k(this),this.header=new C(this,this.options,this.stateManager),this.panel=new S(this,this.stateManager),this.files=this.panel,this.tree=this.panel,j.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"),M.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(){s(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||!a.isOrContains(this.panel.items.container,t))return;const s=this.state.elements;switch(e.key){case u:return this.onChooseItems();case g:return this.onFileRemove();case P:case v:case w:case b:{const t=e.key===P||e.key===w,r=this.state.lastSelectedIndex;let o;if([P,v].includes(e.key))o=t?s[r+1]?r+1:0:s[r-1]?r-1:s.length-1;else{const{countInRow:e}=this.panel;o=Math.round(((r+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=>{t.push("folder"===e.type?this.__folderRemove(I(e.path),e.name??"",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,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=I(e),this.state.currentSource=s)})).catch(this.status)}onFileEdit(){if(1===this.state.activeElements.length){const[e]=this.state.activeElements;y.call(this,e.fileURL,e.file||"",e.path,e.sourceName,void 0,this.status)}}onFolderRename(e){this.prompt("Enter new name","Rename",(t=>{if(!i(t)||t===e.name)return this.status(this.i18n("Enter new name")),!1;this.dataProvider.folderRename(I(e.path),e.name,t,e.sourceName).then((s=>{this.state.activeElements=[],this.status(s,!0),this.state.currentPath=I(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(!i(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){L.open(this,e,this.state.elements)}initUploader(){const e=this,s=t(e.o.uploader||{},R.defaultOptions.uploader),uploadHandler=()=>this.loadingManager.loadItems();e.uploader=e.getInstance("Uploader",s),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]=t(this.options[e],this.o.ajax))}))}};e([h],FileBrowserPro.prototype,"status",null),e([m],FileBrowserPro.prototype,"progressbar",null),e([p(":resize",{context:window})],FileBrowserPro.prototype,"onResizeWindow",null),e([p(["state.currentPath","state.currentSource"])],FileBrowserPro.prototype,"onChangePath",null),e([p("state.theme")],FileBrowserPro.prototype,"onChangeTheme",null),e([p(":toggleSettings.filebrowser")],FileBrowserPro.prototype,"onToggleSettings",null),e([h],FileBrowserPro.prototype,"onKeyPress",null),e([h],FileBrowserPro.prototype,"removeGlobalListeners",null),e([p(":fileRemove.filebrowser")],FileBrowserPro.prototype,"onFileRemove",null),e([p(":edit.filebrowser")],FileBrowserPro.prototype,"onFileEdit",null),e([p(":folderRename.filebrowser")],FileBrowserPro.prototype,"onFolderRename",null),e([p(":folderRemove.filebrowser")],FileBrowserPro.prototype,"onFolderRemove",null),e([p(":folderCreate.filebrowser")],FileBrowserPro.prototype,"onFolderCreate",null),e([p(":fileRename.filebrowser")],FileBrowserPro.prototype,"onFileRename",null),e([p(":select.filebrowser")],FileBrowserPro.prototype,"onChooseItems",null),e([p(":openLightBox.filebrowser")],FileBrowserPro.prototype,"onOpenLightBox",null),FileBrowserPro=e([d,c(B)],FileBrowserPro),Object.defineProperty(M.modules,"FileBrowserPro",{value:FileBrowserPro,writable:!1,enumerable:!0,configurable:!0});
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{Config as e}from"jodit/esm/config.js";import{extendLang as o}from"jodit/esm/core/global.js";o(require("./langs"));const r=e.prototype.controls.filebrowser;r.settings={icon:"settings",tooltip:"Settings",exec:e=>{(e.parent??e).e.fire("toggleSettings.filebrowser")}},r.home={icon:"home",tooltip:"Home",exec:e=>{e.e.fire("goHome.filebrowser")}},r.preview={icon:"eye",tooltip:"Preview",isDisabled:e=>0===e.state.activeElements.length,exec:e=>{e.e.fire("togglePreview.filebrowser")}},r.next={icon:"angle-right",tooltip:"History next",isDisabled:e=>!e.historyManager.canNext(),exec:e=>{e.historyManager.next()}},r.previous={icon:"angle-left",tooltip:"History previous",isDisabled:e=>!e.historyManager.canPrevious(),exec:e=>{e.historyManager.previous()}},r["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(e.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="});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IJodit } from "jodit/esm/types";
|
|
7
|
+
import { Plugin } from "jodit/esm/core/plugin";
|
|
8
|
+
import "./config";
|
|
9
|
+
export declare class finder extends Plugin {
|
|
10
|
+
/** @override */
|
|
11
|
+
static requires: string[];
|
|
12
|
+
/** @override */
|
|
13
|
+
hasStyle: boolean;
|
|
14
|
+
/** @override */
|
|
15
|
+
protected afterInit(jodit: IJodit): void;
|
|
16
|
+
private __instance;
|
|
17
|
+
/** @override */
|
|
18
|
+
protected beforeDestruct(jodit: IJodit): void;
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{Plugin as e}from"jodit/esm/core/plugin/index.js";import{FileBrowserPro as t}from"./browser";import{JoditPro as r}from"jodit-pro/esm/jodit-pro.js";import"./config";export class finder extends e{constructor(){super(...arguments),this.hasStyle=!r.fatMode}afterInit(e){e.e.on("getInstanceFileBrowser",(e=>(this.__instance||(this.__instance=new t(e)),this.__instance)))}beforeDestruct(e){e.e.off("getInstanceFileBrowser"),this.__instance?.destruct()}}finder.requires=["license"],r.plugins.add("finder",finder);
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IFileBrowserItemWrapper } from "jodit/esm/types";
|
|
7
|
+
import { ViewComponent } from "jodit/esm/core/component/view-component";
|
|
8
|
+
import type { IFileBrowserPro, IFileBrowserTreeItemPro } from "jodit-pro/esm/plugins/finder/interface";
|
|
9
|
+
export declare class ContextMenuManager extends ViewComponent<IFileBrowserPro> {
|
|
10
|
+
/** @override */
|
|
11
|
+
className(): string;
|
|
12
|
+
protected onFolderContext(item: IFileBrowserTreeItemPro, e: MouseEvent): void | false;
|
|
13
|
+
protected onItemContext(item: IFileBrowserItemWrapper, _: unknown, e: MouseEvent): void | false;
|
|
14
|
+
protected onSourceContext(item: IFileBrowserTreeItemPro, e: MouseEvent): void | false;
|
|
15
|
+
private buildContextItemMenu;
|
|
16
|
+
private getItemContextActions;
|
|
17
|
+
private getFolderContextActions;
|
|
18
|
+
private getSourceContextActions;
|
|
19
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 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{makeContextMenu as t}from"jodit/esm/modules/file-browser/factories.js";import{ViewComponent as o}from"jodit/esm/core/component/view-component.js";import{component as n,watch as i}from"jodit/esm/core/decorators/index.js";export let ContextMenuManager=class ContextMenuManager extends o{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,o){if(!this.j.o.contextMenu)return;const n=t(this.j).setMod("theme",this.j.state.theme);n.show(o.clientX,o.clientY,e.filter((e=>e&&!1!==e.enabled))),this.j.e.on(this.j,"afterClose",(()=>{n.isOpened&&n.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([i(":contextmenuFolder.filebrowser")],ContextMenuManager.prototype,"onFolderContext",null),e([i(":contextmenuItem.filebrowser")],ContextMenuManager.prototype,"onItemContext",null),e([i(":contextmenuSource.filebrowser")],ContextMenuManager.prototype,"onSourceContext",null),ContextMenuManager=e([n],ContextMenuManager);
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
export declare const parentPath: (path: string) => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 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("/")||"/"};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import { ViewComponent } from "jodit/esm/core/component/view-component";
|
|
7
|
+
import type { IFileBrowserStatePro, IHistoryItem, IHistoryManager } from "jodit-pro/esm/plugins/finder/interface";
|
|
8
|
+
export declare class HistoryManager extends ViewComponent implements IHistoryManager {
|
|
9
|
+
readonly state: IFileBrowserStatePro;
|
|
10
|
+
private history;
|
|
11
|
+
private historyIndex;
|
|
12
|
+
/** @override */
|
|
13
|
+
className(): string;
|
|
14
|
+
constructor(jodit: ViewComponent['jodit'], state: IFileBrowserStatePro);
|
|
15
|
+
canNext(): boolean;
|
|
16
|
+
canPrevious(): boolean;
|
|
17
|
+
push(item: IHistoryItem): void;
|
|
18
|
+
next(): void;
|
|
19
|
+
previous(): void;
|
|
20
|
+
updateCurrent(): void;
|
|
21
|
+
protected onHome(): void;
|
|
22
|
+
protected onOpenFolder(): void;
|
|
23
|
+
private updateState;
|
|
24
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 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{fastClone as e}from"jodit/esm/core/helpers/utils/extend.js";import{ViewComponent as r}from"jodit/esm/core/component/view-component.js";import{component as s,watch as o}from"jodit/esm/core/decorators/index.js";export let HistoryManager=class HistoryManager extends r{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:e(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([o(["state.elements","state.tree"])],HistoryManager.prototype,"updateCurrent",null),t([o(":goHome.filebrowser")],HistoryManager.prototype,"onHome",null),t([o(":afterOpenFolder.filebrowser")],HistoryManager.prototype,"onOpenFolder",null),HistoryManager=t([s],HistoryManager);
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import { ViewComponent } from "jodit/esm/core/component";
|
|
7
|
+
import type { IFileBrowserPro, IFileBrowserStatePro } from "jodit-pro/esm/plugins/finder/interface";
|
|
8
|
+
export declare class LoadingManager extends ViewComponent<IFileBrowserPro> {
|
|
9
|
+
readonly state: IFileBrowserStatePro;
|
|
10
|
+
/** @override */
|
|
11
|
+
className(): string;
|
|
12
|
+
/** @override */
|
|
13
|
+
constructor(jodit: IFileBrowserPro, state: IFileBrowserStatePro);
|
|
14
|
+
protected onUpdateFileBrowser(): Promise<void>;
|
|
15
|
+
loadFolders(): Promise<void>;
|
|
16
|
+
private __tick;
|
|
17
|
+
loadItems(): Promise<void>;
|
|
18
|
+
private offset;
|
|
19
|
+
private countInOneChunk;
|
|
20
|
+
private stopLoadingParts;
|
|
21
|
+
private __isLoadingPart;
|
|
22
|
+
private __callQueueCount;
|
|
23
|
+
private __loadItemsChunk;
|
|
24
|
+
loadItemsChunk(tick?: number): Promise<void>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 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";export let LoadingManager=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)}};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})}t([o(":update.filebrowser")],LoadingManager.prototype,"onUpdateFileBrowser",null),t([o(["state.currentPath","state.currentSource"]),i((t=>({timeout:t.defaultTimeout,promisify:!0})))],LoadingManager.prototype,"loadFolders",null),t([o(["state.currentPath","state.currentSource","state.sortBy","state.onlyImages","state.foldersPosition","state.filterWord"]),i((t=>({timeout:t.defaultTimeout,promisify:!0})))],LoadingManager.prototype,"loadItems",null),t([i((t=>({timeout:t.defaultTimeout,promisify:!0})))],LoadingManager.prototype,"loadItemsChunk",null),LoadingManager=t([s],LoadingManager);
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import { ViewComponent } from "jodit/esm/core/component";
|
|
7
|
+
import type { IFileBrowserStatePro } from "jodit-pro/esm/plugins/finder/interface";
|
|
8
|
+
export declare class PersistentStore extends ViewComponent {
|
|
9
|
+
readonly state: IFileBrowserStatePro;
|
|
10
|
+
/** @override */
|
|
11
|
+
className(): string;
|
|
12
|
+
constructor(jodit: ViewComponent['jodit'], state: IFileBrowserStatePro);
|
|
13
|
+
theme: string;
|
|
14
|
+
protected sortBy: string;
|
|
15
|
+
protected view: IFileBrowserStatePro['view'];
|
|
16
|
+
protected foldersPosition: IFileBrowserStatePro['foldersPosition'];
|
|
17
|
+
protected tileSize: IFileBrowserStatePro['tileSize'];
|
|
18
|
+
protected favorites: IFileBrowserStatePro['favorites'];
|
|
19
|
+
protected showSideBar: boolean;
|
|
20
|
+
protected showPreview: boolean;
|
|
21
|
+
protected showFavorites: boolean;
|
|
22
|
+
protected onChangeThemeSetField(): void;
|
|
23
|
+
protected onChangeView(): void;
|
|
24
|
+
protected onChangeSortBy(): void;
|
|
25
|
+
protected onChangeTileSize(): void;
|
|
26
|
+
protected onChangeFavorites(): void;
|
|
27
|
+
protected onChangeShowSideBar(): void;
|
|
28
|
+
protected onChangeShowPreview(): void;
|
|
29
|
+
protected onChangeShowFavorites(): void;
|
|
30
|
+
protected onChangeFoldersPosition(): void;
|
|
31
|
+
syncWithState(): void;
|
|
32
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
var t=this&&this.__decorate||function(t,e,s,o){var i,r=arguments.length,h=r<3?e:null===o?o=Object.getOwnPropertyDescriptor(e,s):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)h=Reflect.decorate(t,e,s,o);else for(var n=t.length-1;n>=0;n--)(i=t[n])&&(h=(r<3?i(h):r>3?i(e,s,h):i(e,s))||h);return r>3&&h&&Object.defineProperty(e,s,h),h};
|
|
2
|
+
/*!
|
|
3
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
4
|
+
* See LICENSE.md in the project root for license information.
|
|
5
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
6
|
+
*/import{ViewComponent as e}from"jodit/esm/core/component/index.js";import{component as s,persistent as o,watch as i}from"jodit/esm/core/decorators/index.js";import{FileBrowserItem as r}from"jodit/esm/modules/file-browser/builders/item.js";export let PersistentStore=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([o],PersistentStore.prototype,"theme",void 0),t([o],PersistentStore.prototype,"sortBy",void 0),t([o],PersistentStore.prototype,"view",void 0),t([o],PersistentStore.prototype,"foldersPosition",void 0),t([o],PersistentStore.prototype,"tileSize",void 0),t([o],PersistentStore.prototype,"favorites",void 0),t([o],PersistentStore.prototype,"showSideBar",void 0),t([o],PersistentStore.prototype,"showPreview",void 0),t([o],PersistentStore.prototype,"showFavorites",void 0),t([i("state.theme")],PersistentStore.prototype,"onChangeThemeSetField",null),t([i("state.view")],PersistentStore.prototype,"onChangeView",null),t([i("state.sortBy")],PersistentStore.prototype,"onChangeSortBy",null),t([i("state.tileSize")],PersistentStore.prototype,"onChangeTileSize",null),t([i("state.favorites")],PersistentStore.prototype,"onChangeFavorites",null),t([i("state.showSideBar")],PersistentStore.prototype,"onChangeShowSideBar",null),t([i("state.showPreview")],PersistentStore.prototype,"onChangeShowPreview",null),t([i("state.showFavorites")],PersistentStore.prototype,"onChangeShowFavorites",null),t([i("state.foldersPosition")],PersistentStore.prototype,"onChangeFoldersPosition",null),PersistentStore=t([s],PersistentStore);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IFileBrowserItem, ISourcesFiles, IUniqueHash } from "jodit/esm/types/file-browser";
|
|
7
|
+
import type { IFileBrowserStatePro } from "jodit-pro/esm/plugins/finder/interface";
|
|
8
|
+
export declare class StateManager {
|
|
9
|
+
readonly state: IFileBrowserStatePro;
|
|
10
|
+
constructor(state: IFileBrowserStatePro);
|
|
11
|
+
getIndex(elm: IUniqueHash, elms?: IUniqueHash[]): number;
|
|
12
|
+
isActive(item: IUniqueHash): boolean;
|
|
13
|
+
isFavorite(item: IUniqueHash): boolean;
|
|
14
|
+
addActive(item: IFileBrowserItem, multi: boolean): void;
|
|
15
|
+
callSelectHandler(): void;
|
|
16
|
+
setFilter(value: string): void;
|
|
17
|
+
toggleFavorite(item: IFileBrowserItem): void;
|
|
18
|
+
fillTreeForPath(sources: ISourcesFiles, path: string): void;
|
|
19
|
+
private removeActive;
|
|
20
|
+
get isFavoriteItems(): boolean;
|
|
21
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,s,i){var r,a=arguments.length,n=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(n=(a<3?r(n):a>3?r(t,s,n):r(t,s))||n);return a>3&&n&&Object.defineProperty(t,s,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){this.state.metaInfo=e,this.state.info=e.file??"",this.state.lastSelectedIndex=this.getIndex(e),this.state.activeElements=t?[...this.state.activeElements,e]:[e]}callSelectHandler(){const e=this.state.activeElements;this.state.onSelectCallBack?.call(this,{baseurl:"",files:e.map((e=>e.fileURL)),isImages:e.map((e=>Boolean(e.isImage)))})}setFilter(e){this.state.filterWord=e}toggleFavorite(e){const t=this.getIndex(e,this.state.favorites),s=[...this.state.favorites];-1===t?s.push(e):s.splice(t,1),this.state.favorites=s}fillTreeForPath(e,t){this.state.tree.length&&t&&"/"!==t?(this.removeActive(this.state.tree),e.forEach((e=>{let s=findItem(this.state.tree,e.name);s||(s=sourceToTreeItem(e),this.state.tree.push(s)),s.isActive=!0;const i=function findTreeItem(e,t){return e.split("/").reduce(((e,t)=>e&&findItem(e.children,t)),t)}(t,s);i&&(i.isActive=!0,i.children=filterFolders(e.folders).map((s=>folderToTreeItem(s,t+"/"+s,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){return e.find((e=>e.name===t))??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,s){return{type:"directory",name:e,path:t,sourceName:s,children:[]}}e([t],StateManager.prototype,"getIndex",null),e([t],StateManager.prototype,"isActive",null),e([t],StateManager.prototype,"isFavorite",null);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
declare const _exports: {
|
|
2
|
+
Favorites: string;
|
|
3
|
+
Settings: string;
|
|
4
|
+
Light: string;
|
|
5
|
+
Dark: string;
|
|
6
|
+
Theme: string;
|
|
7
|
+
Show: string;
|
|
8
|
+
Hide: string;
|
|
9
|
+
'Show favorites': string;
|
|
10
|
+
Tiles: string;
|
|
11
|
+
List: string;
|
|
12
|
+
Compact: string;
|
|
13
|
+
View: string;
|
|
14
|
+
'Folders position': string;
|
|
15
|
+
'Sort by': string;
|
|
16
|
+
'Extra small': string;
|
|
17
|
+
Small: string;
|
|
18
|
+
Large: string;
|
|
19
|
+
'Extra large': string;
|
|
20
|
+
'Tile size': string;
|
|
21
|
+
};
|
|
22
|
+
export = _exports;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default'<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> ';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default'<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> ';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import{Icon as r}from"jodit/esm/core/ui/index.js";import*as e from"./heart.svg";import*as o from"./home.svg";import*as t from"./new-folder.svg";r.set("heart",String(e)),r.set("home",String(o)),r.set("new-folder",String(t));
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default'<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> ';
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { UIElement } from "jodit/esm/core/ui";
|
|
8
|
+
import type { IFileBrowserTreeItemPro } from "jodit-pro/esm/plugins/finder/interface";
|
|
9
|
+
export declare class UIBrowserFolder extends UIElement {
|
|
10
|
+
readonly item: IFileBrowserTreeItemPro;
|
|
11
|
+
/** @override */
|
|
12
|
+
syncMod: boolean;
|
|
13
|
+
/** @override */
|
|
14
|
+
className(): string;
|
|
15
|
+
/** @override */
|
|
16
|
+
protected render(): string;
|
|
17
|
+
constructor(jodit: UIElement['jodit'], item: IFileBrowserTreeItemPro);
|
|
18
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,r,o){var n,s=arguments.length,i=s<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,o);else for(var c=e.length-1;c>=0;c--)(n=e[c])&&(i=(s<3?n(i):s>3?n(t,r,i):n(t,r))||i);return s>3&&i&&Object.defineProperty(t,r,i),i};import{UIElement as t}from"jodit/esm/core/ui/index.js";import{component as r}from"jodit/esm/core/decorators/component/component.js";import{assert as o}from"jodit/esm/core/helpers/utils/assert.js";export let UIBrowserFolder=class UIBrowserFolder extends t{className(){return"UIBrowserFolder"}render(){return'<div>\n\t\t\t<div class="&__icon">\n\t\t\t\t<div class=\'&__loader\'></div>\n\t\t\t\t<div class="&__icon-wrapper">\n\t\t\t\t\t*folder*\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class="&__name"></div>\n\t\t\t<div class="&__arrow">*angle-right*</div>\n\t\t</div>'}constructor(e,t){super(e),this.item=t,this.syncMod=!0;const r=this.getElm("name");o(null!=r,"name element does not exists"),r.innerText=t.name,e.e.on(this.container,"click",(()=>(this.getMod("active")||this.setMod("loading",!0),e.e.fire("openFolder",t)))).on(this.container,"contextmenu",(r=>e.e.fire("contextmenuFolder.filebrowser",t,r)))}};UIBrowserFolder=e([r],UIBrowserFolder);
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import { UIGroup } from "jodit/esm/core/ui";
|
|
8
|
+
import type { StateManager } from "jodit-pro/esm/plugins/finder/helpers/state-manager";
|
|
9
|
+
import type { IFileBrowserPro, IFileBrowserOptionsPro } from "jodit-pro/esm/plugins/finder/interface";
|
|
10
|
+
export declare class UIBrowserHeader extends UIGroup<IFileBrowserPro> {
|
|
11
|
+
readonly options: IFileBrowserOptionsPro;
|
|
12
|
+
readonly stateManager: StateManager;
|
|
13
|
+
/** @override */
|
|
14
|
+
syncMod: boolean;
|
|
15
|
+
private toolbar;
|
|
16
|
+
private filter;
|
|
17
|
+
/** @override */
|
|
18
|
+
className(): string;
|
|
19
|
+
constructor(jodit: IFileBrowserPro, options: IFileBrowserOptionsPro, stateManager: StateManager);
|
|
20
|
+
private __getButtons;
|
|
21
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
var e=this&&this.__decorate||function(e,r,t,o){var s,i=arguments.length,a=i<3?r:null===o?o=Object.getOwnPropertyDescriptor(r,t):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,t,o);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(a=(i<3?s(a):i>3?s(r,t,a):s(r,t))||a);return i>3&&a&&Object.defineProperty(r,t,a),a};import{UIGroup as r,UIInput as t}from"jodit/esm/core/ui/index.js";import{component as o}from"jodit/esm/core/decorators/index.js";import{makeCollection as s}from"jodit/esm/modules/toolbar/factory.js";import{isString as i}from"jodit/esm/core/helpers/checker/is-string.js";export let UIBrowserHeader=class UIBrowserHeader extends r{className(){return"UIBrowserHeader"}constructor(e,r,o){super(e),this.options=r,this.stateManager=o,this.syncMod=!0,this.toolbar=s(this.j),this.filter=new t(this.j,{icon:"search",placeholder:"Filter",clearButton:!0,onChange:e=>{this.stateManager.setFilter(e)}}),this.append(this.toolbar).append(this.filter),this.filter.container.classList.add(this.getFullElName("filter")),this.toolbar.setMod("mode","header").build(this.__getButtons())}__getButtons(){return(this.options.toolbarButtons??[]).filter((e=>{if(!i(e))return!0;switch(e){case"filebrowser.edit":return this.j.dataProvider.canI("ImageResize")||this.j.dataProvider.canI("ImageCrop");case"filebrowser.new-folder":return this.j.dataProvider.canI("FolderCreate");case"filebrowser.upload":return this.j.dataProvider.canI("FileUpload");case"filebrowser.remove":return this.j.dataProvider.canI("FileRemove")}return!0}))}};UIBrowserHeader=e([o],UIBrowserHeader);
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { CanUndef, IFileBrowserItemElement, IFileBrowserItemWrapper, IViewBased } from "jodit/esm/types";
|
|
8
|
+
import { UIElement } from "jodit/esm/core/ui";
|
|
9
|
+
export declare class UIBrowserItem extends UIElement {
|
|
10
|
+
item: IFileBrowserItemWrapper;
|
|
11
|
+
/** @override */
|
|
12
|
+
className(): string;
|
|
13
|
+
constructor(jodit: IViewBased, item: IFileBrowserItemElement);
|
|
14
|
+
/** @override */
|
|
15
|
+
protected render(): string;
|
|
16
|
+
protected onClickFavorite(): false;
|
|
17
|
+
protected onAction(e: MouseEvent): false;
|
|
18
|
+
/** @override */
|
|
19
|
+
update(): void;
|
|
20
|
+
/**
|
|
21
|
+
* Create element and set value
|
|
22
|
+
*/
|
|
23
|
+
setElementValue(name: string, value: CanUndef<string>): this;
|
|
24
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,i,r){var o,s=arguments.length,n=s<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--)(o=e[l])&&(n=(s<3?o(n):s>3?o(t,i,n):o(t,i))||n);return s>3&&n&&Object.defineProperty(t,i,n),n};import{UIElement as t}from"jodit/esm/core/ui/index.js";import{component as i,watch as r}from"jodit/esm/core/decorators/index.js";import{FileBrowserItem as o}from"jodit/esm/modules/file-browser/builders/item.js";import{Dom as s}from"jodit/esm/modules/index.js";import{attr as n,css as l,ctrlKey as m}from"jodit/esm/core/helpers/index.js";import{assert as c}from"jodit/esm/core/helpers/utils/assert.js";export let UIBrowserItem=class UIBrowserItem extends t{className(){return"UIBrowserItem"}constructor(e,t){super(e),this.item=o.create(t),e.e.on(this.container,"click contextmenu dblclick",(t=>(e.e.fire(t.type+"Item.filebrowser",this.item,m(t)||t.shiftKey,t),!1)))}render(){return"<div tabindex='-1'>\n\t\t\t<div class='&__image'></div>\n\t\t\t<div class='&__info'></div>\n\t\t\t<div class='&__heart'>*heart*</div>\n\t\t</div>"}onClickFavorite(){return this.bubble((e=>{this.jodit.e.fire(e,"toggleFavoriteItem",this.item)})),!1}onAction(e){return this.jodit.e.fire(e.type+"Item.filebrowser",this.item,m(e)||e.shiftKey,e),!1}update(){const e=this.getElm("image");c(null!=e,"image element does not exists"),l(e,"backgroundImage",`url(${encodeURI(this.item.imageURL)})`);const{type:t,file:i,time:r,size:o}=this.item;this.setMod("is-file",!1===this.item.isImage).setMod("type",t??"file").setElementValue("name",i).setElementValue("time",r).setElementValue("filesize",o),n(this.container,"title","folder"!==t?`${i} ${r} ${o}`:i),super.update()}setElementValue(e,t){const i=this.getFullElName(e);let r=this.getElm(e);if(!t)return r&&s.safeRemove(r),this;if(!r){const e=this.getElm("info");c(null!=e,"wrapper element does not exist"),r=this.j.create.div(i),e.appendChild(r)}return r.innerText=t,this}};e([r("heart:click")],UIBrowserItem.prototype,"onClickFavorite",null),e([r(["container:click","container:contextmenu","container:dblclick"])],UIBrowserItem.prototype,"onAction",null),UIBrowserItem=e([i],UIBrowserItem);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { IFileBrowserItemWrapper } from "jodit/esm/types";
|
|
8
|
+
import { UIElement } from "jodit/esm/modules";
|
|
9
|
+
import type { IFileBrowserPro } from "jodit-pro/esm/plugins/finder/interface";
|
|
10
|
+
export declare class UILightBox extends UIElement<IFileBrowserPro> {
|
|
11
|
+
protected current: IFileBrowserItemWrapper;
|
|
12
|
+
protected elements: IFileBrowserItemWrapper[];
|
|
13
|
+
/** @override */
|
|
14
|
+
className(): string;
|
|
15
|
+
private dialog;
|
|
16
|
+
protected render(): string;
|
|
17
|
+
constructor(jodit: IFileBrowserPro, current: IFileBrowserItemWrapper, elements: IFileBrowserItemWrapper[]);
|
|
18
|
+
protected onChangeCurrent(): Promise<void>;
|
|
19
|
+
private makeIframe;
|
|
20
|
+
protected onPreviousClick(): void;
|
|
21
|
+
protected onNextClick(): void;
|
|
22
|
+
static open(jodit: IFileBrowserPro, current: IFileBrowserItemWrapper, elements: IFileBrowserItemWrapper[]): UILightBox;
|
|
23
|
+
private addGlobalListeners;
|
|
24
|
+
private onKeyPress;
|
|
25
|
+
private removeGlobalListeners;
|
|
26
|
+
destruct(): any;
|
|
27
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
var e,t=this&&this.__decorate||function(e,t,s,i){var o,r=arguments.length,n=r<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,s,i);else for(var l=e.length-1;l>=0;l--)(o=e[l])&&(n=(r<3?o(n):r>3?o(t,s,n):o(t,s))||n);return r>3&&n&&Object.defineProperty(t,s,n),n};import{Dialog as s,Dom as i,UIElement as o}from"jodit/esm/modules/index.js";import{component as r,watch as n,autobind as l}from"jodit/esm/core/decorators/index.js";import{css as h,loadImage as a}from"jodit/esm/core/helpers/index.js";import{KEY_LEFT as c,KEY_RIGHT as d,KEY_SPACE as m}from"jodit/esm/core/constants.js";import{assert as u}from"jodit/esm/core/helpers/utils/assert.js";export let UILightBox=e=class UILightBox extends o{className(){return"UILightBox"}render(){return"<div>\n\t\t\t<div class='&__previous'>*angle-left*</div>\n\t\t\t<div class='&__preview'></div>\n\t\t\t<div class='&__loader'></div>\n\t\t\t<div class='&__next'>*angle-right*</div>\n\t\t</div>"}constructor(e,t,i){super(e),this.current=t,this.elements=i,this.dialog=new s;const{dialog:o}=this;o.setMod("theme",e.state.theme).toolbar.setMod("mode","header"),o.open(this),this.elements=this.elements.filter((e=>e.isImage)),o.e.on(o,"afterClose",(()=>{this.destruct()})),this.addGlobalListeners(),this.onChangeCurrent(),o.toolbar.build([{icon:"check",exec:()=>{e.stateManager.addActive(this.current,!1),e.e.fire("select.filebrowser"),o.close()}},"dialog.close"])}async onChangeCurrent(){const{current:e}=this;this.setMod("loading",!0);const t=this.getElm("preview");if(u(null!=t,"preview element does not exist"),i.detach(t),h(t,{backgroundImage:null}),e.isImage){const s=await a(e.fileURL,this.j);this.dialog.setPosition(),h(t,{width:Math.min(this.jodit.ow.innerWidth,s.naturalWidth),height:Math.min(this.jodit.ow.innerHeight-100,s.naturalHeight),backgroundImage:`url(${s.src})`})}else{const s=await this.makeIframe(e.fileURL);t.appendChild(s)}this.dialog.setSize(),this.dialog.setPosition(),this.setMod("loading",!1)}makeIframe(e){const t=this.j.c.element("iframe");return t.classList.add(this.getFullElName("office-iframe")),t.src=/\.pdf/.test(e)?e:this.j.o.previewOfficeURL+encodeURIComponent(e),t}onPreviousClick(){const{current:e}=this;let t=this.j.stateManager.getIndex(e,this.elements);t<=0?t=this.elements.length-1:t-=1,this.current=this.elements[t]}onNextClick(){const{current:e}=this;let t=this.j.stateManager.getIndex(e,this.elements);t>=this.elements.length-1?t=0:t+=1,this.current=this.elements[t]}static open(t,s,i){return new e(t,s,i)}addGlobalListeners(){this.j.e.on(this.j.od,"keydown",this.onKeyPress)}onKeyPress(e){if(e.key===c||e.key===d||e.key===m)return e.key===c?this.onPreviousClick():this.onNextClick(),!1}removeGlobalListeners(){this.j.e.off(this.j.od,"keydown",this.onKeyPress)}destruct(){return this.removeGlobalListeners(),this.dialog.destruct(),super.destruct()}};t([n("current")],UILightBox.prototype,"onChangeCurrent",null),t([n("previous:click")],UILightBox.prototype,"onPreviousClick",null),t([n("next:click")],UILightBox.prototype,"onNextClick",null),t([l],UILightBox.prototype,"onKeyPress",null),UILightBox=e=t([r],UILightBox);
|