jodit-pro 4.2.8 → 4.2.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +116 -97
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +1 -1
- package/es2015/plugins/backup/backup.min.js +1 -1
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +1 -1
- package/es2015/plugins/button-generator/button-generator.min.js +1 -1
- package/es2015/plugins/change-case/change-case.js +1 -1
- package/es2015/plugins/change-case/change-case.min.js +1 -1
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +1 -1
- package/es2015/plugins/color-picker/color-picker.min.js +1 -1
- package/es2015/plugins/emoji/emoji.css +1 -1
- package/es2015/plugins/emoji/emoji.js +1 -1
- package/es2015/plugins/emoji/emoji.min.js +1 -1
- package/es2015/plugins/export-docs/export-docs.js +1 -1
- package/es2015/plugins/export-docs/export-docs.min.js +1 -1
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +1 -1
- package/es2015/plugins/finder/finder.min.js +1 -1
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +1 -1
- package/es2015/plugins/google-maps/google-maps.min.js +1 -1
- package/es2015/plugins/google-search/google-search.js +1 -1
- package/es2015/plugins/google-search/google-search.min.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +1 -1
- package/es2015/plugins/keyboard/keyboard.min.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.js +1 -1
- package/es2015/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2015/plugins/page-break/page-break.js +1 -1
- package/es2015/plugins/page-break/page-break.min.js +1 -1
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +1 -1
- package/es2015/plugins/paste-code/paste-code.min.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.js +1 -1
- package/es2015/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2015/plugins/todo-list/todo-list.css +1 -1
- package/es2015/plugins/todo-list/todo-list.js +1 -1
- package/es2015/plugins/todo-list/todo-list.min.js +1 -1
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +1 -1
- package/es2015/plugins/translate/translate.min.js +1 -1
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +116 -97
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +1 -1
- package/es2018/plugins/backup/backup.min.js +1 -1
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +1 -1
- package/es2018/plugins/button-generator/button-generator.min.js +1 -1
- package/es2018/plugins/change-case/change-case.js +1 -1
- package/es2018/plugins/change-case/change-case.min.js +1 -1
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +1 -1
- package/es2018/plugins/color-picker/color-picker.min.js +1 -1
- package/es2018/plugins/emoji/emoji.css +1 -1
- package/es2018/plugins/emoji/emoji.js +1 -1
- package/es2018/plugins/emoji/emoji.min.js +1 -1
- package/es2018/plugins/export-docs/export-docs.js +1 -1
- package/es2018/plugins/export-docs/export-docs.min.js +1 -1
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +1 -1
- package/es2018/plugins/finder/finder.min.js +1 -1
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +1 -1
- package/es2018/plugins/google-maps/google-maps.min.js +1 -1
- package/es2018/plugins/google-search/google-search.js +1 -1
- package/es2018/plugins/google-search/google-search.min.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +1 -1
- package/es2018/plugins/keyboard/keyboard.min.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.js +1 -1
- package/es2018/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2018/plugins/page-break/page-break.js +1 -1
- package/es2018/plugins/page-break/page-break.min.js +1 -1
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +1 -1
- package/es2018/plugins/paste-code/paste-code.min.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.js +1 -1
- package/es2018/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2018/plugins/todo-list/todo-list.css +1 -1
- package/es2018/plugins/todo-list/todo-list.js +1 -1
- package/es2018/plugins/todo-list/todo-list.min.js +1 -1
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +1 -1
- package/es2018/plugins/translate/translate.min.js +1 -1
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +116 -97
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +1 -1
- package/es2021/plugins/backup/backup.min.js +1 -1
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +1 -1
- package/es2021/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021/plugins/change-case/change-case.js +1 -1
- package/es2021/plugins/change-case/change-case.min.js +1 -1
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +1 -1
- package/es2021/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021/plugins/emoji/emoji.css +1 -1
- package/es2021/plugins/emoji/emoji.js +1 -1
- package/es2021/plugins/emoji/emoji.min.js +1 -1
- package/es2021/plugins/export-docs/export-docs.js +1 -1
- package/es2021/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +1 -1
- package/es2021/plugins/finder/finder.min.js +1 -1
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +1 -1
- package/es2021/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021/plugins/google-search/google-search.js +1 -1
- package/es2021/plugins/google-search/google-search.min.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +1 -1
- package/es2021/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021/plugins/page-break/page-break.js +1 -1
- package/es2021/plugins/page-break/page-break.min.js +1 -1
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +1 -1
- package/es2021/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021/plugins/todo-list/todo-list.css +1 -1
- package/es2021/plugins/todo-list/todo-list.js +1 -1
- package/es2021/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +1 -1
- package/es2021/plugins/translate/translate.min.js +1 -1
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +116 -97
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +1 -1
- package/es2021.en/plugins/backup/backup.min.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +1 -1
- package/es2021.en/plugins/button-generator/button-generator.min.js +1 -1
- package/es2021.en/plugins/change-case/change-case.js +1 -1
- package/es2021.en/plugins/change-case/change-case.min.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +1 -1
- package/es2021.en/plugins/color-picker/color-picker.min.js +1 -1
- package/es2021.en/plugins/emoji/emoji.css +1 -1
- package/es2021.en/plugins/emoji/emoji.js +1 -1
- package/es2021.en/plugins/emoji/emoji.min.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.js +1 -1
- package/es2021.en/plugins/export-docs/export-docs.min.js +1 -1
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +1 -1
- package/es2021.en/plugins/finder/finder.min.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +1 -1
- package/es2021.en/plugins/google-maps/google-maps.min.js +1 -1
- package/es2021.en/plugins/google-search/google-search.js +1 -1
- package/es2021.en/plugins/google-search/google-search.min.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +1 -1
- package/es2021.en/plugins/keyboard/keyboard.min.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.js +1 -1
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es2021.en/plugins/page-break/page-break.js +1 -1
- package/es2021.en/plugins/page-break/page-break.min.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +1 -1
- package/es2021.en/plugins/paste-code/paste-code.min.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.js +1 -1
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.css +1 -1
- package/es2021.en/plugins/todo-list/todo-list.js +1 -1
- package/es2021.en/plugins/todo-list/todo-list.min.js +1 -1
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +1 -1
- package/es2021.en/plugins/translate/translate.min.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +116 -97
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +1 -1
- package/es5/plugins/backup/backup.min.js +1 -1
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +1 -1
- package/es5/plugins/button-generator/button-generator.min.js +1 -1
- package/es5/plugins/change-case/change-case.js +1 -1
- package/es5/plugins/change-case/change-case.min.js +1 -1
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +1 -1
- package/es5/plugins/color-picker/color-picker.min.js +1 -1
- package/es5/plugins/emoji/emoji.css +1 -1
- package/es5/plugins/emoji/emoji.js +1 -1
- package/es5/plugins/emoji/emoji.min.js +1 -1
- package/es5/plugins/export-docs/export-docs.js +1 -1
- package/es5/plugins/export-docs/export-docs.min.js +1 -1
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +1 -1
- package/es5/plugins/finder/finder.min.js +1 -1
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +1 -1
- package/es5/plugins/google-maps/google-maps.min.js +1 -1
- package/es5/plugins/google-search/google-search.js +1 -1
- package/es5/plugins/google-search/google-search.min.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.js +1 -1
- package/es5/plugins/highlight-signature/highlight-signature.min.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.css +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.js +1 -1
- package/es5/plugins/iframe-editor/iframe-editor.min.js +1 -1
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +1 -1
- package/es5/plugins/keyboard/keyboard.min.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.js +1 -1
- package/es5/plugins/mobile-view/mobile-view.min.js +1 -1
- package/es5/plugins/page-break/page-break.js +1 -1
- package/es5/plugins/page-break/page-break.min.js +1 -1
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +1 -1
- package/es5/plugins/paste-code/paste-code.min.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.min.js +1 -1
- package/es5/plugins/todo-list/todo-list.css +1 -1
- package/es5/plugins/todo-list/todo-list.js +1 -1
- package/es5/plugins/todo-list/todo-list.min.js +1 -1
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +1 -1
- package/es5/plugins/translate/translate.min.js +1 -1
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/esm/config.js +1 -1
- package/esm/core/ui/form/range/range.d.ts +2 -2
- package/esm/core/ui/form/range/range.js +1 -1
- package/esm/index.js +1 -1
- package/esm/jodit-pro.d.ts +1 -1
- package/esm/jodit-pro.js +1 -1
- package/esm/plugins/autocomplete/autocomplete.d.ts +2 -2
- package/esm/plugins/autocomplete/autocomplete.js +1 -1
- package/esm/plugins/autocomplete/helpers.js +1 -1
- package/esm/plugins/autocomplete/interface.d.ts +1 -1
- package/esm/plugins/autocomplete/ui/autocomplete.d.ts +2 -2
- package/esm/plugins/autocomplete/ui/autocomplete.js +1 -1
- package/esm/plugins/autocomplete/ui/item.d.ts +2 -2
- package/esm/plugins/autocomplete/ui/item.js +1 -1
- package/esm/plugins/backup/backup.d.ts +2 -2
- package/esm/plugins/backup/backup.js +1 -1
- package/esm/plugins/backup/config.js +1 -1
- package/esm/plugins/backup/modules/store.d.ts +2 -2
- package/esm/plugins/backup/ui/box.d.ts +3 -3
- package/esm/plugins/backup/ui/box.js +1 -1
- package/esm/plugins/backup/ui/item.d.ts +3 -3
- package/esm/plugins/backup/ui/item.js +1 -1
- package/esm/plugins/backup/ui/list.d.ts +3 -3
- package/esm/plugins/backup/ui/list.js +1 -1
- package/esm/plugins/button-generator/button-generator.d.ts +2 -2
- package/esm/plugins/button-generator/button-generator.js +1 -1
- package/esm/plugins/button-generator/config.js +1 -1
- package/esm/plugins/button-generator/ui/button/button.d.ts +2 -2
- package/esm/plugins/button-generator/ui/button/button.js +1 -1
- package/esm/plugins/button-generator/ui/form/form.d.ts +2 -2
- package/esm/plugins/button-generator/ui/form/form.js +1 -1
- package/esm/plugins/button-generator/ui/generator/button-generator.d.ts +2 -2
- package/esm/plugins/button-generator/ui/generator/button-generator.js +1 -1
- package/esm/plugins/button-generator/ui/preview/preview.d.ts +2 -2
- package/esm/plugins/button-generator/ui/preview/preview.js +1 -1
- package/esm/plugins/change-case/change-case.d.ts +2 -2
- package/esm/plugins/change-case/change-case.js +1 -1
- package/esm/plugins/change-case/config.js +1 -1
- package/esm/plugins/color-picker/color-picker.d.ts +2 -2
- package/esm/plugins/color-picker/color-picker.js +1 -1
- package/esm/plugins/color-picker/ui/input/color-input.d.ts +2 -2
- package/esm/plugins/color-picker/ui/input/color-input.js +1 -1
- package/esm/plugins/emoji/config.js +1 -1
- package/esm/plugins/emoji/emoji.d.ts +2 -2
- package/esm/plugins/emoji/emoji.js +1 -1
- package/esm/plugins/emoji/ui/emoji.d.ts +3 -3
- package/esm/plugins/emoji/ui/emoji.js +1 -1
- package/esm/plugins/export-docs/config.d.ts +1 -1
- package/esm/plugins/export-docs/config.js +1 -1
- package/esm/plugins/export-docs/export-docs.d.ts +2 -2
- package/esm/plugins/export-docs/export-docs.js +1 -1
- package/esm/plugins/finder/browser.d.ts +4 -4
- package/esm/plugins/finder/browser.js +1 -1
- package/esm/plugins/finder/config.js +1 -1
- package/esm/plugins/finder/finder.d.ts +2 -2
- package/esm/plugins/finder/finder.js +1 -1
- package/esm/plugins/finder/helpers/context-menu.d.ts +3 -3
- package/esm/plugins/finder/helpers/context-menu.js +1 -1
- package/esm/plugins/finder/helpers/history-manager.d.ts +2 -2
- package/esm/plugins/finder/helpers/history-manager.js +1 -1
- package/esm/plugins/finder/helpers/loading-manager.d.ts +2 -2
- package/esm/plugins/finder/helpers/loading-manager.js +1 -1
- package/esm/plugins/finder/helpers/persistent-store.d.ts +2 -2
- package/esm/plugins/finder/helpers/persistent-store.js +1 -1
- package/esm/plugins/finder/helpers/state-manager.d.ts +2 -2
- package/esm/plugins/finder/helpers/state-manager.js +1 -1
- package/esm/plugins/finder/ui/assets/icons/index.js +1 -1
- package/esm/plugins/finder/ui/folder/folder.d.ts +2 -2
- package/esm/plugins/finder/ui/folder/folder.js +1 -1
- package/esm/plugins/finder/ui/header/header.d.ts +3 -3
- package/esm/plugins/finder/ui/header/header.js +1 -1
- package/esm/plugins/finder/ui/item/item.d.ts +2 -2
- package/esm/plugins/finder/ui/item/item.js +1 -1
- package/esm/plugins/finder/ui/lightboox/lightbox.d.ts +3 -3
- package/esm/plugins/finder/ui/lightboox/lightbox.js +1 -1
- package/esm/plugins/finder/ui/panel/panel.d.ts +10 -10
- package/esm/plugins/finder/ui/panel/panel.js +1 -1
- package/esm/plugins/finder/ui/preview/preview.d.ts +4 -4
- package/esm/plugins/finder/ui/preview/preview.js +1 -1
- package/esm/plugins/finder/ui/progress/progress.d.ts +3 -3
- package/esm/plugins/finder/ui/progress/progress.js +1 -1
- package/esm/plugins/finder/ui/settings/settings.d.ts +3 -3
- package/esm/plugins/finder/ui/settings/settings.js +1 -1
- package/esm/plugins/finder/ui/sidebar/sidebar.d.ts +4 -4
- package/esm/plugins/finder/ui/sidebar/sidebar.js +1 -1
- package/esm/plugins/finder/ui/source/source.d.ts +2 -2
- package/esm/plugins/finder/ui/source/source.js +1 -1
- package/esm/plugins/finder/ui/sources/sources.d.ts +2 -2
- package/esm/plugins/finder/ui/sources/sources.js +1 -1
- package/esm/plugins/finder/ui/statusbar/statusbar.d.ts +1 -1
- package/esm/plugins/finder/ui/statusbar/statusbar.js +1 -1
- package/esm/plugins/finder/ui/tree/tree.d.ts +2 -2
- package/esm/plugins/finder/ui/tree/tree.js +1 -1
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +7 -7
- package/esm/plugins/finder/ui/virtual-scroll/virtual-scroll.js +1 -1
- package/esm/plugins/google-maps/assets/index.js +1 -1
- package/esm/plugins/google-maps/config.js +1 -1
- package/esm/plugins/google-maps/google-maps.d.ts +2 -2
- package/esm/plugins/google-maps/google-maps.js +1 -1
- package/esm/plugins/google-maps/helpers/generate-js-script.d.ts +2 -2
- package/esm/plugins/google-maps/helpers/generate-js-script.js +1 -1
- package/esm/plugins/google-maps/helpers/generate-static-elements.d.ts +1 -1
- package/esm/plugins/google-maps/helpers/generate-static-elements.js +1 -1
- package/esm/plugins/google-maps/helpers/static-url.d.ts +1 -1
- package/esm/plugins/google-maps/helpers/static-url.js +1 -1
- package/esm/plugins/google-maps/ui/combo-box/combo-box.d.ts +1 -1
- package/esm/plugins/google-maps/ui/combo-box/combo-box.js +1 -1
- package/esm/plugins/google-maps/ui/editors/base.d.ts +2 -2
- package/esm/plugins/google-maps/ui/editors/base.js +1 -1
- package/esm/plugins/google-maps/ui/editors/index.js +1 -1
- package/esm/plugins/google-maps/ui/editors/marker/marker.d.ts +2 -2
- package/esm/plugins/google-maps/ui/editors/marker/marker.js +1 -1
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.d.ts +2 -2
- package/esm/plugins/google-maps/ui/editors/polygon/polygon.js +1 -1
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.d.ts +2 -2
- package/esm/plugins/google-maps/ui/editors/polyline/polyline.js +1 -1
- package/esm/plugins/google-maps/ui/index.js +1 -1
- package/esm/plugins/google-maps/ui/map/map.d.ts +4 -4
- package/esm/plugins/google-maps/ui/map/map.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/add-new-in-state.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/index.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/on-change-geometries.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/open-props-dialog.js +1 -1
- package/esm/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -2
- package/esm/plugins/google-maps/ui/map/modules/update-state-and-gme.js +1 -1
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +2 -2
- package/esm/plugins/google-maps/ui/maps-controls/maps-controls.js +1 -1
- package/esm/plugins/google-maps/ui/maps-props/maps-props.d.ts +2 -2
- package/esm/plugins/google-maps/ui/maps-props/maps-props.js +1 -1
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +2 -2
- package/esm/plugins/google-maps/ui/wysiwyg/wysiwyg.js +1 -1
- package/esm/plugins/google-search/google-search.d.ts +2 -2
- package/esm/plugins/google-search/google-search.js +1 -1
- package/esm/plugins/highlight-signature/highlight-signature.d.ts +2 -2
- package/esm/plugins/highlight-signature/highlight-signature.js +1 -1
- package/esm/plugins/iframe-editor/config.js +1 -1
- package/esm/plugins/iframe-editor/iframe-editor.d.ts +2 -2
- package/esm/plugins/iframe-editor/iframe-editor.js +1 -1
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +2 -2
- package/esm/plugins/iframe-editor/ui/iframe-editor/iframe-editor.js +1 -1
- package/esm/plugins/index.d.ts +3 -3
- package/esm/plugins/index.js +1 -1
- package/esm/plugins/keyboard/config.d.ts +1 -1
- package/esm/plugins/keyboard/config.js +1 -1
- package/esm/plugins/keyboard/keyboard.d.ts +2 -2
- package/esm/plugins/keyboard/keyboard.js +1 -1
- package/esm/plugins/keyboard/ui/keyboard/keyboard.d.ts +2 -2
- package/esm/plugins/keyboard/ui/keyboard/keyboard.js +1 -1
- package/esm/plugins/license/license.d.ts +3 -3
- package/esm/plugins/license/license.js +1 -1
- package/esm/plugins/mobile-view/config.js +1 -1
- package/esm/plugins/mobile-view/mobile-view.js +1 -1
- package/esm/plugins/page-break/config.js +1 -1
- package/esm/plugins/page-break/page-break.d.ts +2 -2
- package/esm/plugins/page-break/page-break.js +1 -1
- package/esm/plugins/paste-code/config.d.ts +1 -1
- package/esm/plugins/paste-code/config.js +1 -1
- package/esm/plugins/paste-code/paste-code.d.ts +2 -2
- package/esm/plugins/paste-code/paste-code.js +1 -1
- package/esm/plugins/paste-from-word/cases/clean-styles.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/clear-attributes.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/clear-class-name.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/clear-class-name.js +1 -1
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/convert-style-unit-to-pixels.js +1 -1
- package/esm/plugins/paste-from-word/cases/convert-to-list.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/convert-to-list.js +1 -1
- package/esm/plugins/paste-from-word/cases/index.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/index.js +1 -1
- package/esm/plugins/paste-from-word/cases/mark-page-break.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/normalize-image-props.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/process-image.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/process-image.js +1 -1
- package/esm/plugins/paste-from-word/cases/process-links.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/remove-extra-tags.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/remove-inside-comment.js +1 -1
- package/esm/plugins/paste-from-word/cases/replace-old-tags.d.ts +1 -1
- package/esm/plugins/paste-from-word/cases/table.d.ts +1 -1
- package/esm/plugins/paste-from-word/config.js +1 -1
- package/esm/plugins/paste-from-word/element/checkers.js +1 -1
- package/esm/plugins/paste-from-word/element/element.d.ts +1 -1
- package/esm/plugins/paste-from-word/element/element.js +1 -1
- package/esm/plugins/paste-from-word/element/index.js +1 -1
- package/esm/plugins/paste-from-word/element/render.d.ts +1 -1
- package/esm/plugins/paste-from-word/element/render.js +1 -1
- package/esm/plugins/paste-from-word/element/style.d.ts +1 -1
- package/esm/plugins/paste-from-word/element/style.js +1 -1
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +1 -1
- package/esm/plugins/paste-from-word/helpers/apply-styles-pro.js +1 -1
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.d.ts +1 -1
- package/esm/plugins/paste-from-word/helpers/calc-list-levels.js +1 -1
- package/esm/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
- package/esm/plugins/paste-from-word/helpers/index.js +1 -1
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
- package/esm/plugins/paste-from-word/helpers/transform-word-to-html.js +1 -1
- package/esm/plugins/paste-from-word/interface.d.ts +1 -1
- package/esm/plugins/paste-from-word/paste-from-word.d.ts +3 -3
- package/esm/plugins/paste-from-word/paste-from-word.js +1 -1
- package/esm/plugins/show-blocks/config.js +1 -1
- package/esm/plugins/show-blocks/show-blocks.d.ts +2 -2
- package/esm/plugins/show-blocks/show-blocks.js +1 -1
- package/esm/plugins/todo-list/config.d.ts +1 -1
- package/esm/plugins/todo-list/config.js +1 -1
- package/esm/plugins/todo-list/todo-list.d.ts +2 -2
- package/esm/plugins/todo-list/todo-list.js +1 -1
- package/esm/plugins/translate/config.js +1 -1
- package/esm/plugins/translate/interface.d.ts +1 -1
- package/esm/plugins/translate/providers/google/google.d.ts +2 -2
- package/esm/plugins/translate/providers/google/google.js +1 -1
- package/esm/plugins/translate/translate.d.ts +2 -2
- package/esm/plugins/translate/translate.js +1 -1
- package/esm/plugins/translate/ui/list/list.d.ts +2 -2
- package/esm/plugins/translate/ui/list/list.js +1 -1
- package/esm/plugins/translate/ui/settings/settings.d.ts +3 -3
- package/esm/plugins/translate/ui/settings/settings.js +1 -1
- package/esm/plugins/tune-block/config.d.ts +1 -1
- package/esm/plugins/tune-block/config.js +1 -1
- package/esm/plugins/tune-block/tune-block.d.ts +2 -2
- package/esm/plugins/tune-block/tune-block.js +1 -1
- package/esm/plugins/tune-block/ui/tuner/tuner.d.ts +2 -2
- package/esm/plugins/tune-block/ui/tuner/tuner.js +1 -1
- package/esm/traits/resize/resize.d.ts +1 -1
- package/esm/traits/resize/resize.js +1 -1
- package/esm/traits/select-items/select-items.d.ts +1 -1
- package/esm/traits/select-items/select-items.js +1 -1
- package/esm/types/view.d.ts +1 -1
- package/package.json +1 -1
- package/types/core/ui/form/range/range.d.ts +2 -2
- package/types/jodit-pro.d.ts +1 -1
- package/types/plugins/autocomplete/autocomplete.d.ts +2 -2
- package/types/plugins/autocomplete/interface.d.ts +1 -1
- package/types/plugins/autocomplete/ui/autocomplete.d.ts +2 -2
- package/types/plugins/autocomplete/ui/item.d.ts +2 -2
- package/types/plugins/backup/backup.d.ts +2 -2
- package/types/plugins/backup/modules/store.d.ts +2 -2
- package/types/plugins/backup/ui/box.d.ts +3 -3
- package/types/plugins/backup/ui/item.d.ts +3 -3
- package/types/plugins/backup/ui/list.d.ts +3 -3
- package/types/plugins/button-generator/button-generator.d.ts +2 -2
- package/types/plugins/button-generator/ui/button/button.d.ts +2 -2
- package/types/plugins/button-generator/ui/form/form.d.ts +2 -2
- package/types/plugins/button-generator/ui/generator/button-generator.d.ts +2 -2
- package/types/plugins/button-generator/ui/preview/preview.d.ts +2 -2
- package/types/plugins/change-case/change-case.d.ts +2 -2
- package/types/plugins/color-picker/color-picker.d.ts +2 -2
- package/types/plugins/color-picker/ui/input/color-input.d.ts +2 -2
- package/types/plugins/emoji/emoji.d.ts +2 -2
- package/types/plugins/emoji/ui/emoji.d.ts +3 -3
- package/types/plugins/export-docs/config.d.ts +1 -1
- package/types/plugins/export-docs/export-docs.d.ts +2 -2
- package/types/plugins/finder/browser.d.ts +4 -4
- package/types/plugins/finder/finder.d.ts +2 -2
- package/types/plugins/finder/helpers/context-menu.d.ts +3 -3
- package/types/plugins/finder/helpers/history-manager.d.ts +2 -2
- package/types/plugins/finder/helpers/loading-manager.d.ts +2 -2
- package/types/plugins/finder/helpers/persistent-store.d.ts +2 -2
- package/types/plugins/finder/helpers/state-manager.d.ts +2 -2
- package/types/plugins/finder/ui/folder/folder.d.ts +2 -2
- package/types/plugins/finder/ui/header/header.d.ts +3 -3
- package/types/plugins/finder/ui/item/item.d.ts +2 -2
- package/types/plugins/finder/ui/lightboox/lightbox.d.ts +3 -3
- package/types/plugins/finder/ui/panel/panel.d.ts +10 -10
- package/types/plugins/finder/ui/preview/preview.d.ts +4 -4
- package/types/plugins/finder/ui/progress/progress.d.ts +3 -3
- package/types/plugins/finder/ui/settings/settings.d.ts +3 -3
- package/types/plugins/finder/ui/sidebar/sidebar.d.ts +4 -4
- package/types/plugins/finder/ui/source/source.d.ts +2 -2
- package/types/plugins/finder/ui/sources/sources.d.ts +2 -2
- package/types/plugins/finder/ui/statusbar/statusbar.d.ts +1 -1
- package/types/plugins/finder/ui/tree/tree.d.ts +2 -2
- package/types/plugins/finder/ui/virtual-scroll/virtual-scroll.d.ts +7 -7
- package/types/plugins/google-maps/google-maps.d.ts +2 -2
- package/types/plugins/google-maps/helpers/generate-js-script.d.ts +2 -2
- package/types/plugins/google-maps/helpers/generate-static-elements.d.ts +1 -1
- package/types/plugins/google-maps/helpers/static-url.d.ts +1 -1
- package/types/plugins/google-maps/ui/combo-box/combo-box.d.ts +1 -1
- package/types/plugins/google-maps/ui/editors/base.d.ts +2 -2
- package/types/plugins/google-maps/ui/editors/marker/marker.d.ts +2 -2
- package/types/plugins/google-maps/ui/editors/polygon/polygon.d.ts +2 -2
- package/types/plugins/google-maps/ui/editors/polyline/polyline.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/map.d.ts +4 -4
- package/types/plugins/google-maps/ui/map/modules/add-new-in-state.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/modules/init-or-update-element-from-state.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/modules/on-change-geometries.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/modules/open-props-dialog.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/modules/remove-element.d.ts +2 -2
- package/types/plugins/google-maps/ui/map/modules/update-state-and-gme.d.ts +2 -2
- package/types/plugins/google-maps/ui/maps-controls/maps-controls.d.ts +2 -2
- package/types/plugins/google-maps/ui/maps-props/maps-props.d.ts +2 -2
- package/types/plugins/google-maps/ui/wysiwyg/wysiwyg.d.ts +2 -2
- package/types/plugins/google-search/google-search.d.ts +2 -2
- package/types/plugins/highlight-signature/highlight-signature.d.ts +2 -2
- package/types/plugins/iframe-editor/iframe-editor.d.ts +2 -2
- package/types/plugins/iframe-editor/ui/iframe-editor/iframe-editor.d.ts +2 -2
- package/types/plugins/index.d.ts +3 -3
- package/types/plugins/keyboard/config.d.ts +1 -1
- package/types/plugins/keyboard/keyboard.d.ts +2 -2
- package/types/plugins/keyboard/ui/keyboard/keyboard.d.ts +2 -2
- package/types/plugins/license/license.d.ts +3 -3
- package/types/plugins/page-break/page-break.d.ts +2 -2
- package/types/plugins/paste-code/config.d.ts +1 -1
- package/types/plugins/paste-code/paste-code.d.ts +2 -2
- package/types/plugins/paste-from-word/cases/clean-styles.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/clear-attributes.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/clear-class-name.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/convert-style-unit-to-pixels.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/convert-to-list.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/index.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/mark-page-break.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/normalize-image-props.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/process-image.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/process-links.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/remove-extra-tags.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/remove-inside-comment.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/replace-old-tags.d.ts +1 -1
- package/types/plugins/paste-from-word/cases/table.d.ts +1 -1
- package/types/plugins/paste-from-word/element/element.d.ts +1 -1
- package/types/plugins/paste-from-word/element/render.d.ts +1 -1
- package/types/plugins/paste-from-word/element/style.d.ts +1 -1
- package/types/plugins/paste-from-word/helpers/apply-styles-pro.d.ts +1 -1
- package/types/plugins/paste-from-word/helpers/calc-list-levels.d.ts +1 -1
- package/types/plugins/paste-from-word/helpers/helpers.d.ts +2 -2
- package/types/plugins/paste-from-word/helpers/transform-word-to-html.d.ts +2 -2
- package/types/plugins/paste-from-word/interface.d.ts +1 -1
- package/types/plugins/paste-from-word/paste-from-word.d.ts +3 -3
- package/types/plugins/show-blocks/show-blocks.d.ts +2 -2
- package/types/plugins/todo-list/config.d.ts +1 -1
- package/types/plugins/todo-list/todo-list.d.ts +2 -2
- package/types/plugins/translate/interface.d.ts +1 -1
- package/types/plugins/translate/providers/google/google.d.ts +2 -2
- package/types/plugins/translate/translate.d.ts +2 -2
- package/types/plugins/translate/ui/list/list.d.ts +2 -2
- package/types/plugins/translate/ui/settings/settings.d.ts +3 -3
- package/types/plugins/tune-block/config.d.ts +1 -1
- package/types/plugins/tune-block/tune-block.d.ts +2 -2
- package/types/plugins/tune-block/ui/tuner/tuner.d.ts +2 -2
- package/types/traits/resize/resize.d.ts +1 -1
- package/types/traits/select-items/select-items.d.ts +1 -1
- package/types/types/view.d.ts +1 -1
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
7
|
-
import { Plugin } from "
|
|
6
|
+
import type { IJodit } from "../../types";
|
|
7
|
+
import { Plugin } from "../../core/plugin";
|
|
8
8
|
import type { AutoCompleteSource, IAutoCompleteCustomFeed, IAutoCompleteItem } from "./interface";
|
|
9
9
|
declare module 'jodit/config' {
|
|
10
10
|
interface Config {
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,o,s){var r,i=arguments.length,p=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(e,t,o,s);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(p=(i<3?r(p):i>3?r(t,o,p):r(t,o))||p);return i>3&&p&&Object.defineProperty(t,o,p),p};import{KEY_DOWN as t,KEY_ENTER as o,KEY_ESC as s,KEY_TAB as r,KEY_UP as i}from"
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,o,s){var r,i=arguments.length,p=i<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)p=Reflect.decorate(e,t,o,s);else for(var n=e.length-1;n>=0;n--)(r=e[n])&&(p=(i<3?r(p):i>3?r(t,o,p):r(t,o))||p);return i>3&&p&&Object.defineProperty(t,o,p),p};import{KEY_DOWN as t,KEY_ENTER as o,KEY_ESC as s,KEY_TAB as r,KEY_UP as i}from"../../core/constants.js";import{autobind as p,debounce as n}from"../../core/decorators.js";import{Dom as l}from"../../core/dom/dom.js";import{isArray as u,isFunction as c,isPromise as a,isString as m,position as h,trim as f}from"../../core/helpers.js";import{Plugin as d}from"../../core/plugin.js";import{Popup as y}from"../../core/ui/popup/popup.js";import{Autocomplete as j}from"./ui/autocomplete.js";import{getTextLeftOfCursor as w,replaceTextLeftOfCursorAfterSpace as g}from"./helpers.js";import{Config as C}from"../../config.js";import{JoditPro as R}from"../../jodit-pro.js";C.prototype.autocomplete={sources:[],maxItems:50,isMatchedQuery:(e,t)=>0===t.toLowerCase().indexOf(e.toLowerCase()),itemRenderer:e=>e.title??e.value,insertValueRenderer:e=>e.value+" "};export class autocomplete extends d{constructor(e){super(e),this.hasStyle=!R.fatMode,this.sources=[]}afterInit(e){this.popup=new y(e),this.popup.setMod("padding",!1),this.list=new j(e),this.popup.setContent(this.list.container),e.e.on("select.autocomplete",(t=>{let o=t.value;c(t.insertValueRenderer)&&(o=t.insertValueRenderer(t)),l.isNode(o)||(o=e.createInside.fromHTML(o)),g(e.s.range,o),this.j.s.setCursorAfter(o),this.j.synchronizeValues(),this.popup.close()})).on("keydown.autocomplete",this.onKeyDown).on("keydown.autocomplete",this.onKeyControlDown,{top:!0}).on("beforeEnter.autocomplete",this.onEnter,{top:!0}).on("autocomplete.autocomplete",this.onAutoComplete).on("registerAutocompleteSource.autocomplete",this.registerAutocompleteSource)}registerAutocompleteSource(e){this.sources.push(e)}static isControlKey(e){return e===t||e===i||e===o||e===r}async onKeyDown(e){if(e.key===s)return void(this.popup.isOpened&&this.popup.close());const{s:t}=this.j;if(autocomplete.isControlKey(e.key)||!t.isInsideArea||!t.isCollapsed)return;const o=this.j.s.sel?.rangeCount?this.j.s.sel?.getRangeAt(0):null,r=o&&w(o).split(" ").pop();if(r&&f(r).length){const e=await this.onAutoComplete(r);if(e.length)return this.openPopup(e)}this.popup.isOpened&&this.popup.close()}onKeyControlDown(e){if(this.popup.isOpened&&autocomplete.isControlKey(e.key)){switch(e.key){case t:this.list.selectNext();break;case i:this.list.selectPrevious();break;case r:this.list.select()}return this.j.e.stopPropagation(e.type),!1}}onEnter(){if(this.popup.isOpened)return this.list.select(),!1}async onAutoComplete(e){const t=[];return await Promise.all(this.sources.concat(this.j.o.autocomplete.sources).map((async o=>{t.push(...await this.resolveFeed(e,o))}))),t}async resolveFeed(e,t,o){let s;if(a(t)&&(t=await t),c(t))s=await t(e);else if(u(t)){const o=t,{isMatchedQuery:r}=this.j.o.autocomplete;s=o.filter((t=>m(t)?r(e,t):r(e,t.value))).map((e=>m(e)?{title:e,value:e}:e))}else s=await this.resolveFeed(e,t.feed,t);if(this.j.isDestructed)return[];if(s&&u(s)){const{itemRenderer:e,insertValueRenderer:t,maxItems:r}=this.j.o.autocomplete;return s=s.map((s=>({itemRenderer:o?.itemRenderer??e,insertValueRenderer:o?.insertValueRenderer??t,...s}))),s.slice(0,r)}return[]}openPopup(e){this.list.build(e),this.popup.open((()=>{const{j:e}=this,t=e.s.range.getBoundingClientRect(),o={left:t.left,top:t.top,height:t.height,width:t.width};if(e.o.iframe&&e.iframe){const t=h(e.iframe,e);o.top+=t.top,o.left+=t.left}return o}))}beforeDestruct(e){e.e.off(this.list).off("keydown.autocomplete",this.onKeyDown).off("autocomplete.autocomplete",this.onAutoComplete).off(".autocomplete"),this.list.destruct(),this.popup.destruct()}}autocomplete.requires=["enter","license"],e([p],autocomplete.prototype,"registerAutocompleteSource",null),e([n()],autocomplete.prototype,"onKeyDown",null),e([p],autocomplete.prototype,"onKeyControlDown",null),e([p],autocomplete.prototype,"onEnter",null),e([p],autocomplete.prototype,"onAutoComplete",null),e([p],autocomplete.prototype,"resolveFeed",null),R.plugins.add("autocomplete",autocomplete);
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{Dom as t}from"
|
|
6
|
+
import{Dom as t}from"../../core/dom/dom.js";export function getTextLeftOfCursor(e){const{startContainer:r,startOffset:n}=e;if(t.isText(r))return r.nodeValue?.substr(0,n)??"";const o=r.childNodes[n];if(!o)return"";if(t.isText(o))return o.nodeValue??"";const s=t.findNotEmptyNeighbor(o,!0,r);return t.isText(s)?o.nodeValue??"":""}export function replaceTextLeftOfCursorAfterSpace(e,r){let{startContainer:n,startOffset:o}=e;if(t.isText(n)||(n=n.childNodes[o-1],t.isText(n)&&(o=n.nodeValue?.length??0)),t.isText(n)){const t=n.nodeValue??"",s=t.substring(0,o),i=t.substring(o),u=s.split(" ");u[u.length-1]="";const f=u.join(" ");return n.nodeValue=f+i,e.setStart(n,f.length),void e.insertNode(r)}}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { CanPromise, IDictionary } from "
|
|
6
|
+
import type { CanPromise, IDictionary } from "../../types";
|
|
7
7
|
export interface IAutoCompleteItem<T = IDictionary> {
|
|
8
8
|
value: string;
|
|
9
9
|
title?: string;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import { UIGroup } from "
|
|
6
|
+
import { UIGroup } from "../../../core/ui/group/group";
|
|
7
7
|
import { AutocompleteItem } from "./item";
|
|
8
8
|
|
|
9
|
-
import type { IAutoCompleteItem } from "
|
|
9
|
+
import type { IAutoCompleteItem } from "../interface";
|
|
10
10
|
export declare class Autocomplete extends UIGroup {
|
|
11
11
|
/** @override */
|
|
12
12
|
className(): string;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,n,o){var r,
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,n,o){var r,c=arguments.length,i=c<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(i=(c<3?r(i):c>3?r(t,n,i):r(t,n))||i);return c>3&&i&&Object.defineProperty(t,n,i),i};import{component as t,watch as n}from"../../../core/decorators.js";import{UIGroup as o}from"../../../core/ui/group/group.js";import{AutocompleteItem as r}from"./item.js";let c=class Autocomplete extends o{constructor(){super(...arguments),this.elements=[],this.currentSelection=-1}className(){return"Autocomplete"}onChangeSelection(e,t){null!=t&&this.elements[t]?.setMod("active",!1),this.elements[this.currentSelection].setMod("active",!0),this.elements[this.currentSelection].container.scrollIntoView(!1)}build(e){this.clear(),e.forEach(((e,t)=>{const n=new r(this.jodit,e);this.j.e.on(n.container,"mousedown touchstart",(e=>{e.preventDefault()})).on(n.container,"click",(()=>{this.currentSelection=t,this.select()})),this.append(n)})),this.currentSelection=0,this.onChangeSelection()}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}select(){this.j.e.fire("select.autocomplete",this.elements[this.currentSelection].item)}};e([n("currentSelection")],c.prototype,"onChangeSelection",null),c=e([t],c);export{c as Autocomplete};
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import { UIElement } from "
|
|
6
|
+
import { UIElement } from "../../../core/ui/element";
|
|
7
7
|
|
|
8
|
-
import type { IAutoCompleteItem } from "
|
|
8
|
+
import type { IAutoCompleteItem } from "../interface";
|
|
9
9
|
export declare class AutocompleteItem extends UIElement {
|
|
10
10
|
item: IAutoCompleteItem;
|
|
11
11
|
/** @override */
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{isFunction as e,isString as t}from"
|
|
6
|
+
import{isFunction as e,isString as t}from"../../../core/helpers/checker.js";import{UIElement as r}from"../../../core/ui/element.js";export class AutocompleteItem extends r{className(){return"AutocompleteItem"}constructor(r,o){super(r),this.item=o;const{container:n}=this;if(e(o.itemRenderer)){const e=o.itemRenderer(o);t(e)?n.innerHTML=e:n.appendChild(e)}else n.innerText=o.title??o.value}}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
7
|
-
import { Plugin } from "
|
|
6
|
+
import type { IJodit } from "../../types";
|
|
7
|
+
import { Plugin } from "../../core/plugin";
|
|
8
8
|
import "./config";
|
|
9
9
|
export declare class backup extends Plugin {
|
|
10
10
|
/** @override */
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var t=this&&this.__decorate||function(t,e,o,i){var s,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,i);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(n=(a<3?s(n):a>3?s(e,o,n):s(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};import{autobind as e}from"
|
|
6
|
+
var t=this&&this.__decorate||function(t,e,o,i){var s,a=arguments.length,n=a<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,i);else for(var r=t.length-1;r>=0;r--)(s=t[r])&&(n=(a<3?s(n):a>3?s(e,o,n):s(e,o))||n);return a>3&&n&&Object.defineProperty(e,o,n),n};import{autobind as e}from"../../core/decorators.js";import{Plugin as o}from"../../core/plugin.js";import{Button as i,UIBlock as s}from"../../core/ui/index.js";import"./config.js";import{DefaultStorage as a}from"./modules/store.js";import{UIBackupBox as n}from"./ui/box.js";import{JoditPro as r}from"../../jodit-pro.js";export class backup extends o{constructor(){super(...arguments),this.hasStyle=!r.fatMode,this.buttons=[{name:"backup.restore",group:"history"}],this.__box=new n(this.j),this.__dialog=null,this.__storage=this.jodit.o.backup.remoteStore??new a(this.jodit),this.timeout=0}afterInit(t){t.registerCommand("saveBackup",this.onSaveBackup).registerCommand("openBackupDialog",{exec:this.onOpenBackupDialog,hotkeys:t.o.backup.hotkeys});const startInterval=()=>{this.timeout=t.async.setTimeout((()=>{this.onSaveBackup(),startInterval()}),1e3*t.o.backup.interval)};startInterval(),t.e.on(this.__box,"choose",this.onSelectItem).on(t.ow,"beforeunload.backup",(()=>{this.onSaveBackup()}))}prepareDialog(){this.__dialog||(this.__dialog=this.j.dlg({minWidth:this.j.o.backup.dialogWidth,buttons:["fullsize","dialog.close"]}).setContent(this.__box.container)),this.__dialog.setHeader(this.jodit.i18n("Restore")),this.addButtonsToDialog()}onSaveBackup(){this.__storage.add({created:new Date,html:this.j.value})}async onOpenBackupDialog(){this.prepareDialog();const{__dialog:t}=this;if(!t)return;t.open().setModal(!0);const e=await this.__storage.items();this.__box.build([{created:new Date,html:this.j.value},...e]),t.calcAutoSize(),t.setPosition()}onSelectItem(t){this.__dialog?.close(),this.j.value=t.html,this.j.s.focus()}addButtonsToDialog(){const{jodit:t}=this,e=i(t,{name:"ok",tabIndex:0,variant:"primary",text:"Ok"}),o=i(t,{variant:"secondary",tabIndex:0,text:"Cancel"}),a=i(t,{name:"clear",tabIndex:0,variant:"secondary",text:"Remove all"});e.onAction((()=>{this.__box.chooseSelected()})),o.onAction((()=>{this.__dialog?.close()})),a.onAction((()=>{t.confirm("Are you sure?",void 0,(t=>{t&&(this.__storage.clear(),this.__dialog?.close())}))}));const n=new s(t,[a,o,e]);n.container.style.margin="0",n.container.style.justifyContent="flex-end",n.container.style.width="100%",this.__dialog?.setFooter(n)}beforeDestruct(){const{j:t}=this;t.async.clearTimeout(this.timeout),t.e.off(this.__box,"choose",this.onSelectItem).off(t.ow,"beforeunload.backup"),this.__box.destruct(),this.__dialog?.destruct()}}backup.requires=["license"],t([e],backup.prototype,"onSaveBackup",null),t([e],backup.prototype,"onOpenBackupDialog",null),t([e],backup.prototype,"onSelectItem",null),r.plugins.add("backup",backup);
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{extendLang as o}from"
|
|
6
|
+
import{extendLang as o}from"../../core/global.js";import{Icon as t}from"../../core/ui/icon.js";import e from"./assets/restore.svg.js";import*as r from"./langs/index.js";import{Config as s}from"../../config.js";s.prototype.backup={interval:30,limit:50,dialogWidth:700,hotkeys:["ctrl+shift+b","cmd+shift+b"]},s.prototype.controls.backup={store:{command:"saveBackup",text:"Save backup now"},restore:{tooltip:"Restore",list:["backup.store"],exec(o){o.execCommand("openBackupDialog")}}},t.set("restore",e),o(r);
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
7
|
-
import type { ISnapshotItem, ISnapshotStorage } from "
|
|
6
|
+
import type { IJodit } from "../../../types";
|
|
7
|
+
import type { ISnapshotItem, ISnapshotStorage } from "../interface";
|
|
8
8
|
export declare class DefaultStorage implements ISnapshotStorage {
|
|
9
9
|
private jodit;
|
|
10
10
|
private key;
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
7
|
-
import { UIElement } from "
|
|
6
|
+
import type { IJodit } from "../../../types";
|
|
7
|
+
import { UIElement } from "../../../core/ui/element";
|
|
8
8
|
|
|
9
|
-
import type { ISnapshotItem } from "
|
|
9
|
+
import type { ISnapshotItem } from "../interface";
|
|
10
10
|
export declare class UIBackupBox extends UIElement<IJodit> {
|
|
11
11
|
/** @override */
|
|
12
12
|
className(): string;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,s,i){var o,l=arguments.length,r=l<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,s,i){var o,l=arguments.length,r=l<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(e,t,s,i);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(r=(l<3?o(r):l>3?o(t,s,r):o(t,s))||r);return l>3&&r&&Object.defineProperty(t,s,r),r};import{autobind as t,component as s}from"../../../core/decorators.js";import{UIElement as i}from"../../../core/ui/element.js";import{UIBackupList as o}from"./list.js";let l=class UIBackupBox extends i{className(){return"UIBackupBox"}constructor(e){super(e),this.list=new o(this.j),this.preview=this.j.c.div(this.getFullElName("preview")),this.container.appendChild(this.list.container),this.container.appendChild(this.preview),this.list.container.classList.add(this.getFullElName("list")),e.e.on(this.list,"select",this.onSelectItem).on(this.list,"choose",this.onChooseItem)}build(e){this.preview.innerHTML="",this.list.build(e)}destruct(){return this.j.e.off(this.list,"select",this.onSelectItem),this.list.destruct(),super.destruct()}onSelectItem(e){this.latestSelected=e,this.preview.innerHTML=e.html||`<div class="${this.getFullElName("empty")}">${this.j.i18n("Empty")}</div>`}onChooseItem(e){this.j.e.fire(this,"choose",e)}chooseSelected(){this.onChooseItem(this.latestSelected)}};e([t],l.prototype,"onSelectItem",null),e([t],l.prototype,"onChooseItem",null),l=e([s],l);export{l as UIBackupBox};
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
7
|
-
import { UIElement } from "
|
|
6
|
+
import type { IJodit } from "../../../types";
|
|
7
|
+
import { UIElement } from "../../../core/ui";
|
|
8
8
|
|
|
9
|
-
import type { ISnapshotItem } from "
|
|
9
|
+
import type { ISnapshotItem } from "../interface";
|
|
10
10
|
export declare class UIBackupItem extends UIElement<IJodit> {
|
|
11
11
|
data: ISnapshotItem;
|
|
12
12
|
/** @override */
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{attr as t,isFunction as e,isString as
|
|
6
|
+
import{attr as t,isFunction as e,isString as o}from"../../../core/helpers.js";import{UIElement as r}from"../../../core/ui/index.js";export class UIBackupItem extends r{className(){return"UIBackupItem"}constructor(e,o){super(e),this.data=o,this.container.innerHTML=this.formatDate(o.created),t(this.container,"tabIndex",0)}formatDate(t){const r=new Date,a=o(t)?new Date(t):t,i=(r.getTime()-a.getTime())/1e3;return e(this.j.o.backup.formatDate)?this.j.o.backup.formatDate(a):i<.2?this.j.i18n("Current"):i<60?this.j.i18n("Less minute"):i<=3600?this.j.i18n("%s minutes ago",Math.floor(i/60)):i<=86400?this.j.i18n("%s hours ago",Math.floor(i/3600)):`${a.toDateString()} ${a.toLocaleTimeString()}`}focus(){this.container.focus()}}
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IDictionary, IJodit } from "
|
|
7
|
-
import { UIGroup } from "
|
|
6
|
+
import type { IDictionary, IJodit } from "../../../types";
|
|
7
|
+
import { UIGroup } from "../../../core/ui";
|
|
8
8
|
import { UIBackupItem } from "./item";
|
|
9
|
-
import type { ISnapshotItem } from "
|
|
9
|
+
import type { ISnapshotItem } from "../interface";
|
|
10
10
|
export declare class UIBackupList extends UIGroup<IJodit> {
|
|
11
11
|
/** @override */
|
|
12
12
|
className(): string;
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,o,n){var
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,o,n){var r,s=arguments.length,i=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,o):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,o,n);else for(var c=e.length-1;c>=0;c--)(r=e[c])&&(i=(s<3?r(i):s>3?r(t,o,i):r(t,o))||i);return s>3&&i&&Object.defineProperty(t,o,i),i};import{KEY_DOWN as t,KEY_ENTER as o,KEY_UP as n}from"../../../core/constants.js";import{autobind as r,component as s,watch as i}from"../../../core/decorators.js";import{attr as c}from"../../../core/helpers.js";import{UIGroup as l}from"../../../core/ui/index.js";import{UIBackupItem as h}from"./item.js";let a=class UIBackupList extends l{className(){return"UIBackupList"}createContainer(e){const t=super.createContainer(e);return c(t,"tabIndex","-1"),t}constructor(e){super(e),this.elements=[],this.currentSelection=-1,e.e.on(this.container,"keydown",(e=>{switch(e.key){case o:e.preventDefault(),e.stopPropagation(),this.onChoose(this.currentSelection);break;case t:this.selectNext();break;case n:this.selectPrevious()}}))}build(e){this.clear(),e.forEach(((e,t)=>{const o=new h(this.jodit,e);this.append(o),this.j.e.on(o.container,"focus",(()=>this.onSelect(t))).on(o.container,"click",(()=>this.onSelect(t))).on(o.container,"dblclick",(()=>this.onChoose(t)))})),this.currentSelection=0,this.onChangeCurrentSelection(void 0,-1,0)}onChangeCurrentSelection(e,t,o){this.elements[t]?.setMod("active",!1),this.elements[o]?.setMod("active",!0),this.elements[o]?.focus(),this.j.e.fire(this,"select",this.elements[o].data)}onSelect(e){this.currentSelection=e}onChoose(e){this.j.e.fire(this,"choose",this.elements[e??this.currentSelection].data)}selectNext(){this.currentSelection+1<=this.elements.length-1?this.currentSelection+=1:this.currentSelection=0}selectPrevious(){this.currentSelection-1>=0?this.currentSelection-=1:this.currentSelection=this.elements.length-1}};e([i("currentSelection")],a.prototype,"onChangeCurrentSelection",null),e([r],a.prototype,"onSelect",null),e([r],a.prototype,"onChoose",null),a=e([s],a);export{a as UIBackupList};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { CanUndef, IJodit } from "
|
|
7
|
-
import { Plugin } from "
|
|
6
|
+
import type { CanUndef, IJodit } from "../../types";
|
|
7
|
+
import { Plugin } from "../../core/plugin";
|
|
8
8
|
import "./config";
|
|
9
9
|
export declare class buttonGenerator extends Plugin {
|
|
10
10
|
/** @override */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t=this&&this.__decorate||function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s};import{autobind as e,watch as o}from"
|
|
1
|
+
var t=this&&this.__decorate||function(t,e,o,r){var n,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,o,r);else for(var a=t.length-1;a>=0;a--)(n=t[a])&&(s=(i<3?n(s):i>3?n(e,o,s):n(e,o))||s);return i>3&&s&&Object.defineProperty(e,o,s),s};import{autobind as e,watch as o}from"../../core/decorators.js";import{Dom as r}from"../../core/dom/dom.js";import{Plugin as n}from"../../core/plugin.js";import{Button as i}from"../../core/ui/button.js";import{Dialog as s}from"../../modules/dialog/dialog.js";import"./config.js";import{UIGButton as a}from"./ui/button/button.js";import{UIButtonGenerator as l}from"./ui/generator/button-generator.js";import{JoditPro as u}from"../../jodit-pro.js";export class buttonGenerator extends n{constructor(){super(...arguments),this.hasStyle=!u.fatMode,this.buttons=[{group:"form",name:"buttonGenerator"}]}afterInit(t){t.e.on("toggleButtonGenerator",this.toggleButtonGenerator).on("isButtonGeneratorOpened",(()=>this.__dialog?.isOpened))}toggleButtonGenerator(t){this.__dialog||(this.__dialog=new s({language:this.j.o.language,theme:this.j.o.theme}),this.__ui=new l(this.__dialog),this.__dialog.setHeader("Button Generator").setContent(this.__ui).setSize(730,700)),t&&!r.isTag(t,new Set(["button","a"]))&&(t=void 0);const e=this.__ui,o=this.__dialog;o.isOpened?o.close():(t&&a.extractStyle(e.state,t),e.target=t,e.update(),o.setFooter([i(o,"cancel","Cancel","default").onAction((()=>o.close())),i(o,"ok",t?"Update":"Insert","primary").onAction((()=>{t||(t=this.j.createInside.element(e.state.href?"a":"button"),this.j.s.insertNode(t,!0,!1)),a.applyStyle(e.state,t),t.className=e.state.className||"",this.jodit.e.fire("synchro"),o.close()}))]).open())}onDblClick(t){r.isTag(t.target,"button")&&this.toggleButtonGenerator(t.target)}beforeDestruct(t){this.__dialog?.destruct()}}buttonGenerator.requires=["license","color-picker"],t([e],buttonGenerator.prototype,"toggleButtonGenerator",null),t([o(":dblclick")],buttonGenerator.prototype,"onDblClick",null),u.plugins.add("button-generator",buttonGenerator);
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{isArray as o}from"
|
|
6
|
+
import{isArray as o}from"../../core/helpers/checker/is-array.js";import t from"./icon.svg.js";import{Config as e}from"../../config.js";e.prototype.controls.buttonGenerator={tooltip:"Button generator",icon:t,isActive:o=>Boolean(o.e.fire("isButtonGeneratorOpened")),exec:(o,t)=>{o.e.fire("toggleButtonGenerator",t)}},e.prototype.popup.button=["buttonGenerator"],o(e.prototype.popup.a)&&e.prototype.popup.a.push("buttonGenerator");
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IDictionary } from "
|
|
7
|
-
import { UIElement } from "
|
|
6
|
+
import type { IDictionary } from "../../../../types";
|
|
7
|
+
import { UIElement } from "../../../../core/ui";
|
|
8
8
|
|
|
9
9
|
export declare class UIGButton extends UIElement {
|
|
10
10
|
protected style: IDictionary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t,o=this&&this.__decorate||function(t,o,e,r){var d
|
|
1
|
+
var t,o=this&&this.__decorate||function(t,o,e,r){var a,d=arguments.length,n=d<3?o:null===r?r=Object.getOwnPropertyDescriptor(o,e):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,o,e,r);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(n=(d<3?a(n):d>3?a(o,e,n):a(o,e))||n);return d>3&&n&&Object.defineProperty(o,e,n),n};import{component as e,watch as r}from"../../../../core/decorators.js";import{css as a}from"../../../../core/helpers.js";import{isString as d}from"../../../../core/helpers/checker.js";import{assert as n}from"../../../../core/helpers/utils/assert.js";import{UIElement as s}from"../../../../core/ui/index.js";let i=t=class UIGButton extends s{className(){return"UIGButton"}constructor(t,o){super(t),this.style=o,this.__updateStyles()}__updateStyles(){const{style:o}=this,e=this.getElm("button");n(null!=e,"button element does not exist");const r=this.getElm("wrapper");n(null!=r,"wrapper element does not exist"),r.style.backgroundColor=o.previewBgColor,t.applyStyle(o,e)}static applyStyle(t,o){const _=t=>d(t)?t:t+"px";o.innerText=t.text||"css",o.setAttribute("href",t.href),a(o,{background:t.solid?null:`linear-gradient(to bottom, ${t.bgStart} 5%, ${t.bgEnd} 100%)`,backgroundColor:t.bgStart,borderRadius:_(t.borderRadius),border:`${_(t.borderSize)} solid ${t.borderColor}`,display:"inline-block",cursor:"pointer",color:t.fontColor,fontFamily:t.fontFamily,fontSize:_(t.fontSize),fontWeight:t.fontWeight?"bold":null,fontStyle:t.fontItalic?"italic":null,padding:`${_(t.paddingY)} ${_(t.paddingX)}`,textDecoration:"none"}),a(o,{textShadow:t.textShadow?[t.textShadowOffsetX,t.textShadowOffsetY,t.textShadowBlurRadius,t.textShadowColor].map(_).join(" "):null}),a(o,{boxShadow:t.boxShadow?[t.boxShadowInset?"inset":"",t.boxShadowOffsetX,t.boxShadowOffsetY,t.boxShadowBlurRadius,t.boxShadowSpreadRadius,t.boxShadowColor].map(_).join(" "):null})}update(){this.__updateStyles()}render(){return"<div>\n\t\t\t<div class='&__wrapper'>\n\t\t\t\t<button class='&__button'>css</button>\n\t\t\t</div>\n\t\t</div>"}static extractStyle(t,o){const e=o.ownerDocument.defaultView?.getComputedStyle(o)||{},extractShadow=(t,o,r,a)=>{const d=e[r];return!d||["none","inherit","initial","unset"].includes(d)?{[r]:!1}:(d.replace(/,\s/g,",").split(/\s+/).forEach((e=>{if(/[0-9.]+(px|pt|em|%)/.test(e)){const r=t.shift();r&&(o[r]=e)}else"inset"===e?o.boxShadowInset=!0:o[a]=e})),o[r]=!0,o)};Object.assign(t,{text:o.innerText,className:o.className,href:o.getAttribute("href")||"",...(()=>{const t={solid:!0,bgStart:e.backgroundColor??"#44c767",bgEnd:e.backgroundColor??"#44c767"},o=e.backgroundImage;if(o&&/linear-gradient/.test(o)){const e=/linear-gradient\((.+)\s+[0-9]+%,\s+(.+)\s+[0-9]+%\)/.exec(o);e&&(t.solid=!1,t.bgStart=e[1]||t.bgStart,t.bgEnd=e[2]||"#5cbf2a")}return t})(),borderColor:e?.borderColor??"#18ab29",borderRadius:e?.borderRadius??0,borderSize:e?.borderWidth??1,...extractShadow(["boxShadowOffsetX","boxShadowOffsetY","boxShadowBlurRadius","boxShadowSpreadRadius"],{boxShadowBlurRadius:0,boxShadowColor:"#3dc21b",boxShadowInset:!1,boxShadowOffsetX:0,boxShadowOffsetY:0,boxShadowSpreadRadius:0},"boxShadow","boxShadowColor"),fontColor:e.color,fontFamily:e.fontFamily,fontSize:e.fontSize,fontWeight:"bold"===e.fontWeight,fontItalic:"italic"===e.fontStyle,paddingX:e.paddingLeft,paddingY:e.paddingTop,...extractShadow(["textShadowOffsetX","textShadowOffsetY","textShadowBlurRadius"],{textShadowBlurRadius:0,textShadowColor:"#2f6627",textShadowOffsetX:0,textShadowOffsetY:1},"textShadow","textShadowColor")})}};o([r("style")],i.prototype,"__updateStyles",null),i=t=o([e],i);export{i as UIGButton};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IDictionary } from "
|
|
7
|
-
import { UIElement } from "
|
|
6
|
+
import type { IDictionary } from "../../../../types";
|
|
7
|
+
import { UIElement } from "../../../../core/ui";
|
|
8
8
|
|
|
9
9
|
export declare class UIFormButtonGenerator extends UIElement {
|
|
10
10
|
readonly state: IDictionary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Dom as t}from"
|
|
1
|
+
import{Dom as t}from"../../../../core/dom/dom.js";import{toArray as e}from"../../../../core/helpers/array/to-array.js";import{assert as n}from"../../../../core/helpers/utils/assert.js";import{UIElement as a,UIInput as i,UISelect as o}from"../../../../core/ui/index.js";import{UIRange as s}from"../../../../core/ui/form/range/range.js";export class UIFormButtonGenerator extends a{className(){return"UIFormButtonGenerator"}constructor(n,a,r){super(n),this.state=a,this.updateState=r,this.onUpdates=[];const getOnUpdate=(t,e)=>()=>{let n=this.state[e.name];/px/.test(n.toString())&&(n=n.toString().replace(/px/,"")),n.toString()!==t.value&&(t.value=n)};e(this.container.querySelectorAll("input,select")).forEach((n=>{if(t.isTag(n,"select")){const a=new o(this.j,{options:e(n.options).map((t=>({text:t.innerText,value:t.value}))),onChange:t=>{this.updateState(n.name,t)}});return t.replace(n,a.container,this.j.create,!1,!0),void this.onUpdates.push(getOnUpdate(a,n))}if(t.isTag(n,"input"))switch(n.type){case"range":{const e=new s(this.j,{label:n.placeholder,name:n.name,min:parseInt(n.min,0)||0,max:parseInt(n.max,0)||100,onChange:t=>{this.updateState(n.name,parseInt(t,10))}});return t.replace(n,e.container,this.j.create),void this.onUpdates.push(getOnUpdate(e,n))}case"text":{const e=new i(this.j,{placeholder:n.placeholder,name:n.name,onChange:t=>{this.updateState(n.name,t)}});return t.replace(n,e.container,this.j.create),void this.onUpdates.push(getOnUpdate(e,n))}case"checkbox":return n.onchange=()=>this.updateState(n.name,n.checked),void this.onUpdates.push((()=>{n.checked=this.state[n.name]}))}})),this.update()}update(){this.onUpdates.forEach((t=>t()));const t=this.getElm("box-shadow");n(null!=t,"box-shadow does not exists");const e=this.getElm("text-shadow");n(null!=e,"text-shadow does not exists"),t.style.display=this.state.boxShadow?"":"none",e.style.display=this.state.textShadow?"":"none"}render(){return"<div>\n\t\t\t<div class='&__group &__text'>\n\t\t\t\t<div class='&__title'>Text</div>\n\t\t\t\t<div class='&__row'>\n\t\t\t\t\t<div class='&__col'>\n\t\t\t\t\t\t<input type='text' name='text'/>\n\t\t\t\t\t\t<input type='text' name='className' placeholder='~Class name~'/>\n\t\t\t\t\t\t<input type='text' name='href' placeholder='~URL~'/>\n\t\t\t\t\t\t<select name='fontFamily'>\n \t\t\t\t\t\t\t<option value='Arial'>Arial</option>\n \t\t\t\t\t\t\t<option value='Courier New'>Courier New</option>\n \t\t\t\t\t\t\t<option value='Georgia'>Georgia</option>\n \t\t\t\t\t\t\t<option value='Impact'>Impact</option>\n \t\t\t\t\t\t\t<option value='Times New Roman'>Times New Roman</option>\n \t\t\t\t\t\t\t<option value='Trebuchet MS'>Trebuchet MS</option>\n \t\t\t\t\t\t\t<option value='Verdana'>Verdana</option>\n\t\t\t\t\t\t</select>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='&__col'>\n\t\t\t\t\t\t<input type='range' min='8' max='28' name='fontSize' placeholder='~Font Size~'/>\n\t\t\t\t\t\t<div class='&__checkboxes'>\n\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t<input type='checkbox' name='fontWeight'/> bold\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t\t<label>\n\t\t\t\t\t\t\t\t<input type='checkbox' name='fontItalic'/> italic\n\t\t\t\t\t\t\t</label>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class='&__group &__sizes'>\n\t\t\t\t<div class='&__title'>~Size~</div>\n\t\t\t\t<div class='&__row'>\n\t\t\t\t\t<div class='&__col'>\n\t\t\t\t\t\t<input type='range' name='paddingX' min='0' max='32' placeholder='~Vertical size~'/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='&__col'>\n\t\t\t\t\t\t<input type='range' name='paddingY' min='0' max='76' placeholder='~Horizontal size~'/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class='&__group &__borders'>\n\t\t\t\t<div class='&__title'>~Border~</div>\n\t\t\t\t<div class='&__row'>\n\t\t\t\t\t<div class='&__col'>\n\t\t\t\t\t\t<input type='range' name='borderRadius' min='0' max='42' placeholder='~Border Radius~'/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='&__col'>\n\t\t\t\t\t\t<input type='range' name='borderSize' min='0' max='12' placeholder='~Border Size~'/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class='&__group'>\n\t\t\t\t<div class='&__title'>~Box Shadow~ <input type='checkbox' name='boxShadow'/></div>\n\t\t\t\t<div class='&__row &__box-shadow'>\n\t\t\t\t\t<div class='&__col'>\n\t\t\t\t\t\t<input type='range' name='boxShadowOffsetX' min='-50' max='50' placeholder='~Vertical Position~'/>\n\t\t\t\t\t\t<input type='range' name='boxShadowBlurRadius' min='0' max='50' placeholder='~Blur Radius~'/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='&__col'>\n\t\t\t\t\t\t<input type='range' name='boxShadowOffsetY' min='-50' max='50' placeholder='~Horizontal Position~'/>\n\t\t\t\t\t\t<input type='range' name='boxShadowSpreadRadius' min='-50' max='50' placeholder='~Spread Radius~'/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t\t<div class='&__group'>\n\t\t\t\t<div class='&__title'>~Text Shadow~ <input type='checkbox' name='textShadow'/></div>\n\t\t\t\t<div class='&__row &__text-shadow'>\n\t\t\t\t\t<div class='&__col'>\n\t\t\t\t\t\t<input type='range' name='textShadowOffsetX' min='-50' max='50' placeholder='~Vertical Position~'/>\n\t\t\t\t\t\t<input type='range' name='textShadowBlurRadius' min='0' max='50' placeholder='~Blur Radius~'/>\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class='&__col'>\n\t\t\t\t\t\t<input type='range' name='textShadowOffsetY' min='-50' max='50' placeholder='~Horizontal Position~'/>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</div>"}}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { CanUndef, IDictionary } from "
|
|
7
|
-
import { UIElement } from "
|
|
6
|
+
import type { CanUndef, IDictionary } from "../../../../types";
|
|
7
|
+
import { UIElement } from "../../../../core/ui";
|
|
8
8
|
|
|
9
9
|
export declare class UIButtonGenerator extends UIElement {
|
|
10
10
|
/** @override */
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var t,e=this&&this.__decorate||function(t,e,o,s){var r,
|
|
6
|
+
var t,e=this&&this.__decorate||function(t,e,o,s){var r,a=arguments.length,i=a<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(t,e,o,s);else for(var d=t.length-1;d>=0;d--)(r=t[d])&&(i=(a<3?r(i):a>3?r(e,o,i):r(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i};import{autobind as o,component as s}from"../../../../core/decorators.js";import{assert as r}from"../../../../core/helpers/utils/assert.js";import{UIElement as a,UIGroup as i}from"../../../../core/ui/index.js";import d from"../../assets/styles.json.js";import{UIGButton as n}from"../button/button.js";import{UIFormButtonGenerator as f}from"../form/form.js";import{UIPreviewButtonGenerator as h}from"../preview/preview.js";let l=t=class UIButtonGenerator extends a{className(){return"UIButtonGenerator"}render(){return"<div>\n\t\t\t<div class='&__generator'>\n\t\t\t\t<div class='&__preview'></div>\n\t\t\t\t<div class='&__form'></div>\n\t\t\t</div>\n\t\t\t<div class='&__library'></div>\n\t\t</div>"}constructor(t){super(t),this.state={text:"",className:"",href:"",bgEnd:"#5cbf2a",bgStart:"#44c767",borderColor:"#18ab29",borderRadius:28,borderSize:1,boxShadow:!1,boxShadowBlurRadius:0,boxShadowColor:"#3dc21b",boxShadowInset:!1,boxShadowOffsetX:0,boxShadowOffsetY:0,boxShadowSpreadRadius:0,fontColor:"#fff",fontFamily:"Arial",fontSize:17,fontStyle:!1,fontWeight:!1,fontItalic:!1,paddingX:31,paddingY:16,previewBgColor:"#f5f5f5",solid:!0,textShadow:!0,textShadowBlurRadius:0,textShadowColor:"#2f6627",textShadowOffsetX:0,textShadowOffsetY:1},this.preview=new h(this.j,this.state,this.updateState),this.form=new f(this.j,this.state,this.updateState),this.generateLibrary();const e=this.getElm("preview");r(null!=e,"preview element does not exists"),e.appendChild(this.preview.container);const o=this.getElm("form");r(null!=o,"form element does not exists"),o.appendChild(this.form.container)}generateLibrary(){const e=new i(this.j);d.map(t.mapKey).forEach((t=>{const o=new n(this.j,t);o.setMod("mode","library"),e.append(o),this.j.e.on(o.container,"click",(()=>{const{text:e}=this.state;Object.assign(this.state,t),Object.assign(this.state,{className:"",text:e}),this.update()}))}));const o=this.getElm("library");r(null!=o,"library element does not exists"),o.appendChild(e.container)}static mapKey(t){return{bgEnd:t.be,bgStart:t.bs,borderColor:t.bc,borderRadius:t.br,borderSize:t.bse,boxShadow:t.bsh,boxShadowBlurRadius:t.bsbr,boxShadowColor:t.bsc,boxShadowInset:t.bsi,boxShadowOffsetX:t.bsox,boxShadowOffsetY:t.bsoy,boxShadowSpreadRadius:t.bssr,fontColor:t.fc,fontFamily:t.ff,fontSize:t.fs,fontStyle:t.fse,fontWeight:t.fw,paddingX:t.px,paddingY:t.py,previewBgColor:t.pbc,solid:t.s,text:t.t,textShadow:t.ts,textShadowBlurRadius:t.tsbr,textShadowColor:t.tsc,textShadowOffsetX:t.tsox,textShadowOffsetY:t.tsoy}}updateState(t,e){this.state[t]=e,this.update()}update(){this.isReady&&(this.form.update(),this.preview.update())}};e([o],l.prototype,"updateState",null),l=t=e([s],l);export{l as UIButtonGenerator};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IDictionary } from "
|
|
7
|
-
import { UIElement } from "
|
|
6
|
+
import type { IDictionary } from "../../../../types";
|
|
7
|
+
import { UIElement } from "../../../../core/ui";
|
|
8
8
|
|
|
9
9
|
export declare class UIPreviewButtonGenerator extends UIElement {
|
|
10
10
|
readonly state: IDictionary;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var t=this&&this.__decorate||function(t,e,o,s){var r,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,s);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(i<3?r(n):i>3?r(e,o,n):r(e,o))||n);return i>3&&n&&Object.defineProperty(e,o,n),n};import{component as e}from"
|
|
1
|
+
var t=this&&this.__decorate||function(t,e,o,s){var r,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,s);else for(var a=t.length-1;a>=0;a--)(r=t[a])&&(n=(i<3?r(n):i>3?r(e,o,n):r(e,o))||n);return i>3&&n&&Object.defineProperty(e,o,n),n};import{component as e}from"../../../../core/decorators.js";import{assert as o}from"../../../../core/helpers/utils/assert.js";import{UIElement as s}from"../../../../core/ui/index.js";import{UIGButton as r}from"../button/button.js";import{ColorInput as i}from"../../../color-picker/ui/input/color-input.js";let n=class UIPreviewButtonGenerator extends s{className(){return"UIPreviewButtonGenerator"}render(){return"<div>\n\t\t\t<div class='&__button'></div>\n\t\t\t<div class='&__colors'></div>\n\t\t</div>"}update(){this.button.update(),this.lockUpdate=!0,this.colors.forEach((t=>{t.value!==this.state[t.state.name]&&(t.value=this.state[t.state.name])})),this.lockUpdate=!1}constructor(t,e,s){super(t),this.state=e,this.updateState=s,this.button=new r(this.j,this.state),this.lockUpdate=!1,this.colors=["bgStart","bgEnd","fontColor","borderColor","boxShadowColor","textShadowColor","previewBgColor"].map((t=>new i(this.j,{name:t,onChange:e=>{this.lockUpdate||("bgEnd"===t&&e!==this.state.bgStart&&this.updateState("solid",!1),this.updateState(t,e))}}).setMod("slim",!0))),this.setMod("mode","default");const n=this.getElm("button");o(null!=n,"button element does not exists"),n.appendChild(this.button.container);const a=this.getElm("colors");o(null!=a,"colors element does not exists"),this.colors.forEach((t=>{a.appendChild(t.container)})),this.update()}};n=t([e],n);export{n as UIPreviewButtonGenerator};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
7
|
-
import { Plugin } from "
|
|
6
|
+
import type { IJodit } from "../../types";
|
|
7
|
+
import { Plugin } from "../../core/plugin";
|
|
8
8
|
import "./config";
|
|
9
9
|
export declare class changeCase extends Plugin {
|
|
10
10
|
/** @override */
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{Dom as e}from"
|
|
6
|
+
import{Dom as e}from"../../core/dom/dom.js";import{ucfirst as s}from"../../core/helpers/string/ucfirst.js";import{Plugin as t}from"../../core/plugin.js";import"./config.js";import{JoditPro as a}from"../../jodit-pro.js";export class changeCase extends t{constructor(){super(...arguments),this.buttons=[{name:"changeCase",group:"font-style"}]}afterInit(s){s.registerCommand("changeCase",{exec:(t,a,r)=>{r=r.toLowerCase();const o=s.s.range,{startContainer:n,startOffset:c}=o;if(s.s.isCollapsed()){const e=s.s.current(!0);e&&e.parentElement&&this.applyCase(r,e.parentElement),o.setStart(n,c),s.s.selectRange(o)}else{const t=o.cloneRange(),a=o.cloneRange(),n=s.createInside.fake(),c=s.createInside.fake();t.collapse(!0),a.collapse(!1),t.insertNode(n),a.insertNode(c),e.between(n,c,(e=>{this.applyCase(r,e)})),o.setStartAfter(n),o.setEndBefore(c),s.s.selectRange(o),e.safeRemove(n),e.safeRemove(c)}}})}applyCase(t,a){if(e.isText(a)){const e=a.nodeValue;e&&(a.nodeValue=(e=>{switch(t){case"lowercase":return e.toLowerCase();case"uppercase":return e.toUpperCase();default:return e.split(" ").map(s).join(" ")}})(e))}else e.each(a,(e=>{this.applyCase(t,e)}))}beforeDestruct(e){}}changeCase.requires=["license"],a.plugins.add("change-case",changeCase);
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{dataBind as o}from"
|
|
6
|
+
import{dataBind as o}from"../../core/helpers/utils/data-bind.js";import e from"./icon.svg.js";import{Config as c}from"../../config.js";c.prototype.controls.changeCase={tooltip:"Change case",icon:e,list:["lowercase","UPPERCASE","Title Case"],isDisabled:o=>!o.s.current(),exec(e,c,{control:s}){const a=s.command+"Selected",n=s.args&&s.args[0]||o(e,a);if(!n||!s.command)return!1;o(e,a,n),e.execCommand(s.command,null,n)},command:"changeCase"};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
7
|
-
import { Plugin } from "
|
|
6
|
+
import type { IJodit } from "../../types";
|
|
7
|
+
import { Plugin } from "../../core/plugin";
|
|
8
8
|
export declare class colorPicker extends Plugin {
|
|
9
9
|
/** @override */
|
|
10
10
|
static requires: string[];
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,r,o,t){var i
|
|
6
|
+
var e=this&&this.__decorate||function(e,r,o,t){var c,i=arguments.length,n=i<3?r:null===t?t=Object.getOwnPropertyDescriptor(r,o):t;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,r,o,t);else for(var l=e.length-1;l>=0;l--)(c=e[l])&&(n=(i<3?c(n):i>3?c(r,o,n):c(r,o))||n);return i>3&&n&&Object.defineProperty(r,o,n),n};import{autobind as r}from"../../core/decorators.js";import{Dom as o}from"../../core/dom/dom.js";import{Plugin as t}from"../../core/plugin.js";import{ColorInput as c}from"./ui/input/color-input.js";import{JoditPro as i}from"../../jodit-pro.js";export class colorPicker extends t{constructor(){super(...arguments),this.hasStyle=!i.fatMode}afterInit(e){e.e.on("afterGenerateColorPicker",this.onAfterGenerateColorPicker)}onAfterGenerateColorPicker(e,r,t,i){o.detach(r);const n=new c(this.j,{value:i||"#000",onChange:t});r.appendChild(n.container)}beforeDestruct(e){e.e.off("afterGenerateColorPicker",this.onAfterGenerateColorPicker)}}colorPicker.requires=["license"],e([r],colorPicker.prototype,"onAfterGenerateColorPicker",null),i.plugins.add("color-picker",colorPicker);
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IUIInput, IViewBased, ModType } from "
|
|
7
|
-
import { UIInput } from "
|
|
6
|
+
import type { IUIInput, IViewBased, ModType } from "../../../../types";
|
|
7
|
+
import { UIInput } from "../../../../core/ui";
|
|
8
8
|
|
|
9
9
|
export declare class ColorInput extends UIInput {
|
|
10
10
|
/** @override */
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,o,
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,o,r){var s,i=arguments.length,n=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(n=(i<3?s(n):i>3?s(t,o,n):s(t,o))||n);return i>3&&n&&Object.defineProperty(t,o,n),n};import{KEY_ESC as t}from"../../../../core/constants.js";import{component as o,watch as r}from"../../../../core/decorators.js";import{position as s}from"../../../../core/helpers.js";import{assert as i}from"../../../../core/helpers/utils/assert.js";import{Button as n,Popup as a,UIInput as l}from"../../../../core/ui/index.js";import{Dialog as c}from"../../../../modules.js";import*as h from"a-color-picker";let p=class ColorInput extends l{className(){return"ColorInput"}constructor(e,t){super(e,t);const o=new a(e);this.popup=o,this.trigger=n(this.j,"ok");const r=this.getElm("wrapper");i(null!=r,"wrapper element does not exist"),r.appendChild(this.trigger.container),this.trigger.container.classList.add(this.getFullElName("trigger")),this.trigger.onAction((()=>{this.state.onChange?.(this.value),o.close()})),o.setMod("padding",!1).setMod("max-height",!1);const l=this.j.create.div(this.getFullElName("picker")),p=h.createPicker(l,{paletteEditable:!0,showAlpha:!0,palette:"PALETTE_MATERIAL_CHROME"}).on("change",((e,t)=>{this.isFocused||(this.value=h.parseColor(t||"","hex"))}));this.j.e.on(this,"change",(()=>{var e;e=this.value,h.parseColor(e,"hex")!==p.color&&(p.color=this.value)})),o.setContent(l),this.j.e.on(this.nativeInput,"click",(()=>{o.parentElement=this,this.jodit instanceof c&&o.setZIndex(this.jodit.getZIndex()+1),o.open((()=>s(this.container)))})),this.onChangeValue(),this.onChangeSelfValue()}afterSetMode(e,t){"slim"===e&&t&&this.nativeInput.setAttribute("readonly","true")}onChangeSelfValue(){this.nativeInput.style.backgroundColor=this.value}onEscKeyDown(e){e.key===t&&this.popup?.close()}};e([r(":change")],p.prototype,"onChangeSelfValue",null),e([r("nativeInput:keydown")],p.prototype,"onEscKeyDown",null),p=e([o],p);export{p as ColorInput};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Emoji as o}from"./ui/emoji";import e from"./emoji.json";import t from"./emoji.svg.js";import{Config as r}from"
|
|
1
|
+
import{Emoji as o}from"./ui/emoji.js";import e from"./emoji.json.js";import t from"./emoji.svg.js";import{Config as r}from"../../config.js";r.prototype.emoji={data:()=>e,enableAutoComplete:!0,recentCountLimit:10},r.prototype.controls.emoji={tooltip:"Insert Emoji",icon:t,popup:(e,t,r)=>{e.s.save();const s=o.getInstance(e,(o=>{e.s.restore(),e.s.insertNode(e.createInside.text(o),!0),r()}));return e.e.one("beforePopupClose",(()=>{e.s.restore()})),s.container}};
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import type { IJodit } from "
|
|
7
|
-
import { Plugin } from "
|
|
6
|
+
import type { IJodit } from "../../types";
|
|
7
|
+
import { Plugin } from "../../core/plugin/plugin";
|
|
8
8
|
import "./config";
|
|
9
9
|
export declare class emoji extends Plugin {
|
|
10
10
|
/** @override */
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
var e=this&&this.__decorate||function(e,t,o,
|
|
6
|
+
var e=this&&this.__decorate||function(e,t,o,r){var i,s=arguments.length,n=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(e,t,o,r);else for(var m=e.length-1;m>=0;m--)(i=e[m])&&(n=(s<3?i(n):s>3?i(t,o,n):i(t,o))||n);return s>3&&n&&Object.defineProperty(t,o,n),n};import{autobind as t}from"../../core/decorators.js";import{trim as o}from"../../core/helpers/string/trim.js";import{Plugin as r}from"../../core/plugin/plugin.js";import"./config.js";import{Emoji as i}from"./ui/emoji.js";import{JoditPro as s}from"../../jodit-pro.js";export class emoji extends r{constructor(){super(...arguments),this.hasStyle=!s.fatMode,this.buttons=[{name:"emoji",group:"insert"}]}async afterInit(e){const t=await e.o.emoji.data();e.isInDestruct||(this.data={...t,emoji:t.emoji.map(i.normalizeEmoji)},e.o.emoji.enableAutoComplete&&e.e.fire("registerAutocompleteSource",this.onAutoComplete),e.async.requestIdleCallback((()=>{i.getInstance(e,(()=>{}))})))}onAutoComplete(e){return e.length>2&&":"===e[0]&&(e=e.substr(1).toLowerCase(),o(e).length)?this.data.emoji.filter((t=>0===t.description?.indexOf(e))).sort(((t,o)=>t.description.indexOf(e)-o.description.indexOf(e))).map((e=>({title:`${e.emoji} ${e.description}`,value:e.emoji}))):[]}beforeDestruct(e){}}emoji.requires=["autocomplete","license"],e([t],emoji.prototype,"onAutoComplete",null),s.plugins.add("emoji",emoji);
|