jodit-pro 4.2.13 → 4.2.19
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 +47 -1
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +489 -464
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/autocomplete/autocomplete.js +1 -1
- package/es2015/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2015/plugins/backup/backup.css +1 -1
- package/es2015/plugins/backup/backup.js +7 -7
- package/es2015/plugins/backup/backup.min.js +2 -2
- package/es2015/plugins/button-generator/button-generator.css +1 -1
- package/es2015/plugins/button-generator/button-generator.js +9 -9
- package/es2015/plugins/button-generator/button-generator.min.js +2 -2
- package/es2015/plugins/change-case/change-case.js +6 -6
- package/es2015/plugins/change-case/change-case.min.js +2 -2
- package/es2015/plugins/color-picker/color-picker.css +1 -1
- package/es2015/plugins/color-picker/color-picker.js +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 +11 -11
- package/es2015/plugins/emoji/emoji.min.js +2 -2
- package/es2015/plugins/export-docs/export-docs.js +7 -7
- package/es2015/plugins/export-docs/export-docs.min.js +2 -2
- package/es2015/plugins/finder/finder.css +1 -1
- package/es2015/plugins/finder/finder.js +33 -33
- package/es2015/plugins/finder/finder.min.js +2 -2
- package/es2015/plugins/google-maps/google-maps.css +1 -1
- package/es2015/plugins/google-maps/google-maps.js +2 -2
- package/es2015/plugins/google-maps/google-maps.min.js +2 -2
- package/es2015/plugins/google-search/google-search.js +6 -6
- package/es2015/plugins/google-search/google-search.min.js +2 -2
- 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 +8 -8
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2015/plugins/keyboard/keyboard.css +1 -1
- package/es2015/plugins/keyboard/keyboard.js +15 -15
- package/es2015/plugins/keyboard/keyboard.min.js +2 -2
- package/es2015/plugins/mobile-view/mobile-view.js +20 -9
- package/es2015/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2015/plugins/page-break/page-break.js +8 -8
- package/es2015/plugins/page-break/page-break.min.js +2 -2
- package/es2015/plugins/paste-code/paste-code.css +1 -1
- package/es2015/plugins/paste-code/paste-code.js +7 -7
- package/es2015/plugins/paste-code/paste-code.min.js +2 -2
- 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 +7 -7
- package/es2015/plugins/todo-list/todo-list.min.js +2 -2
- package/es2015/plugins/translate/translate.css +1 -1
- package/es2015/plugins/translate/translate.js +9 -9
- package/es2015/plugins/translate/translate.min.js +2 -2
- package/es2015/plugins/tune-block/tune-block.css +1 -1
- package/es2015/plugins/tune-block/tune-block.js +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +1 -1
- package/es2018/jodit.css +47 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +489 -466
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/autocomplete/autocomplete.js +1 -1
- package/es2018/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2018/plugins/backup/backup.css +1 -1
- package/es2018/plugins/backup/backup.js +7 -7
- package/es2018/plugins/backup/backup.min.js +2 -2
- package/es2018/plugins/button-generator/button-generator.css +1 -1
- package/es2018/plugins/button-generator/button-generator.js +9 -9
- package/es2018/plugins/button-generator/button-generator.min.js +2 -2
- package/es2018/plugins/change-case/change-case.js +6 -6
- package/es2018/plugins/change-case/change-case.min.js +2 -2
- package/es2018/plugins/color-picker/color-picker.css +1 -1
- package/es2018/plugins/color-picker/color-picker.js +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 +11 -11
- package/es2018/plugins/emoji/emoji.min.js +2 -2
- package/es2018/plugins/export-docs/export-docs.js +7 -7
- package/es2018/plugins/export-docs/export-docs.min.js +2 -2
- package/es2018/plugins/finder/finder.css +1 -1
- package/es2018/plugins/finder/finder.js +33 -33
- package/es2018/plugins/finder/finder.min.js +2 -2
- package/es2018/plugins/google-maps/google-maps.css +1 -1
- package/es2018/plugins/google-maps/google-maps.js +2 -2
- package/es2018/plugins/google-maps/google-maps.min.js +2 -2
- package/es2018/plugins/google-search/google-search.js +6 -6
- package/es2018/plugins/google-search/google-search.min.js +2 -2
- 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 +8 -8
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2018/plugins/keyboard/keyboard.css +1 -1
- package/es2018/plugins/keyboard/keyboard.js +15 -15
- package/es2018/plugins/keyboard/keyboard.min.js +2 -2
- package/es2018/plugins/mobile-view/mobile-view.js +20 -9
- package/es2018/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2018/plugins/page-break/page-break.js +8 -8
- package/es2018/plugins/page-break/page-break.min.js +2 -2
- package/es2018/plugins/paste-code/paste-code.css +1 -1
- package/es2018/plugins/paste-code/paste-code.js +7 -7
- package/es2018/plugins/paste-code/paste-code.min.js +2 -2
- 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 +7 -7
- package/es2018/plugins/todo-list/todo-list.min.js +2 -2
- package/es2018/plugins/translate/translate.css +1 -1
- package/es2018/plugins/translate/translate.js +9 -9
- package/es2018/plugins/translate/translate.min.js +2 -2
- package/es2018/plugins/tune-block/tune-block.css +1 -1
- package/es2018/plugins/tune-block/tune-block.js +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021/jodit.css +47 -1
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +489 -464
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021/plugins/backup/backup.css +1 -1
- package/es2021/plugins/backup/backup.js +7 -7
- package/es2021/plugins/backup/backup.min.js +2 -2
- package/es2021/plugins/button-generator/button-generator.css +1 -1
- package/es2021/plugins/button-generator/button-generator.js +9 -9
- package/es2021/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021/plugins/change-case/change-case.js +6 -6
- package/es2021/plugins/change-case/change-case.min.js +2 -2
- package/es2021/plugins/color-picker/color-picker.css +1 -1
- package/es2021/plugins/color-picker/color-picker.js +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 +11 -11
- package/es2021/plugins/emoji/emoji.min.js +2 -2
- package/es2021/plugins/export-docs/export-docs.js +7 -7
- package/es2021/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021/plugins/finder/finder.css +1 -1
- package/es2021/plugins/finder/finder.js +33 -33
- package/es2021/plugins/finder/finder.min.js +2 -2
- package/es2021/plugins/google-maps/google-maps.css +1 -1
- package/es2021/plugins/google-maps/google-maps.js +2 -2
- package/es2021/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021/plugins/google-search/google-search.js +6 -6
- package/es2021/plugins/google-search/google-search.min.js +2 -2
- 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 +8 -8
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021/plugins/keyboard/keyboard.css +1 -1
- package/es2021/plugins/keyboard/keyboard.js +15 -15
- package/es2021/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021/plugins/mobile-view/mobile-view.js +19 -9
- package/es2021/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021/plugins/page-break/page-break.js +8 -8
- package/es2021/plugins/page-break/page-break.min.js +2 -2
- package/es2021/plugins/paste-code/paste-code.css +1 -1
- package/es2021/plugins/paste-code/paste-code.js +7 -7
- package/es2021/plugins/paste-code/paste-code.min.js +2 -2
- 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 +7 -7
- package/es2021/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021/plugins/translate/translate.css +1 -1
- package/es2021/plugins/translate/translate.js +9 -9
- package/es2021/plugins/translate/translate.min.js +2 -2
- package/es2021/plugins/tune-block/tune-block.css +1 -1
- package/es2021/plugins/tune-block/tune-block.js +1 -1
- package/es2021/plugins/tune-block/tune-block.min.js +1 -1
- package/es2021.en/jodit.css +47 -1
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +489 -464
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/autocomplete/autocomplete.js +1 -1
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es2021.en/plugins/backup/backup.css +1 -1
- package/es2021.en/plugins/backup/backup.js +7 -7
- package/es2021.en/plugins/backup/backup.min.js +2 -2
- package/es2021.en/plugins/button-generator/button-generator.css +1 -1
- package/es2021.en/plugins/button-generator/button-generator.js +9 -9
- package/es2021.en/plugins/button-generator/button-generator.min.js +2 -2
- package/es2021.en/plugins/change-case/change-case.js +6 -6
- package/es2021.en/plugins/change-case/change-case.min.js +2 -2
- package/es2021.en/plugins/color-picker/color-picker.css +1 -1
- package/es2021.en/plugins/color-picker/color-picker.js +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 +11 -11
- package/es2021.en/plugins/emoji/emoji.min.js +2 -2
- package/es2021.en/plugins/export-docs/export-docs.js +7 -7
- package/es2021.en/plugins/export-docs/export-docs.min.js +2 -2
- package/es2021.en/plugins/finder/finder.css +1 -1
- package/es2021.en/plugins/finder/finder.js +33 -33
- package/es2021.en/plugins/finder/finder.min.js +2 -2
- package/es2021.en/plugins/google-maps/google-maps.css +1 -1
- package/es2021.en/plugins/google-maps/google-maps.js +2 -2
- package/es2021.en/plugins/google-maps/google-maps.min.js +2 -2
- package/es2021.en/plugins/google-search/google-search.js +6 -6
- package/es2021.en/plugins/google-search/google-search.min.js +2 -2
- 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 +8 -8
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es2021.en/plugins/keyboard/keyboard.css +1 -1
- package/es2021.en/plugins/keyboard/keyboard.js +15 -15
- package/es2021.en/plugins/keyboard/keyboard.min.js +2 -2
- package/es2021.en/plugins/mobile-view/mobile-view.js +19 -9
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es2021.en/plugins/page-break/page-break.js +8 -8
- package/es2021.en/plugins/page-break/page-break.min.js +2 -2
- package/es2021.en/plugins/paste-code/paste-code.css +1 -1
- package/es2021.en/plugins/paste-code/paste-code.js +7 -7
- package/es2021.en/plugins/paste-code/paste-code.min.js +2 -2
- 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 +7 -7
- package/es2021.en/plugins/todo-list/todo-list.min.js +2 -2
- package/es2021.en/plugins/translate/translate.css +1 -1
- package/es2021.en/plugins/translate/translate.js +9 -9
- package/es2021.en/plugins/translate/translate.min.js +2 -2
- package/es2021.en/plugins/tune-block/tune-block.css +1 -1
- package/es2021.en/plugins/tune-block/tune-block.js +1 -1
- package/es2021.en/plugins/tune-block/tune-block.min.js +1 -1
- package/es5/jodit.css +77 -2
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +493 -466
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/autocomplete/autocomplete.js +1 -1
- package/es5/plugins/autocomplete/autocomplete.min.js +1 -1
- package/es5/plugins/backup/backup.css +1 -1
- package/es5/plugins/backup/backup.js +7 -7
- package/es5/plugins/backup/backup.min.js +2 -2
- package/es5/plugins/button-generator/button-generator.css +1 -1
- package/es5/plugins/button-generator/button-generator.js +9 -9
- package/es5/plugins/button-generator/button-generator.min.js +2 -2
- package/es5/plugins/change-case/change-case.js +6 -6
- package/es5/plugins/change-case/change-case.min.js +2 -2
- package/es5/plugins/color-picker/color-picker.css +1 -1
- package/es5/plugins/color-picker/color-picker.js +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 +11 -11
- package/es5/plugins/emoji/emoji.min.js +2 -2
- package/es5/plugins/export-docs/export-docs.js +7 -7
- package/es5/plugins/export-docs/export-docs.min.js +2 -2
- package/es5/plugins/finder/finder.css +1 -1
- package/es5/plugins/finder/finder.js +33 -33
- package/es5/plugins/finder/finder.min.js +2 -2
- package/es5/plugins/google-maps/google-maps.css +1 -1
- package/es5/plugins/google-maps/google-maps.js +2 -2
- package/es5/plugins/google-maps/google-maps.min.js +2 -2
- package/es5/plugins/google-search/google-search.js +6 -6
- package/es5/plugins/google-search/google-search.min.js +2 -2
- 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 +8 -8
- package/es5/plugins/iframe-editor/iframe-editor.min.js +2 -2
- package/es5/plugins/keyboard/keyboard.css +1 -1
- package/es5/plugins/keyboard/keyboard.js +15 -15
- package/es5/plugins/keyboard/keyboard.min.js +2 -2
- package/es5/plugins/mobile-view/mobile-view.js +20 -9
- package/es5/plugins/mobile-view/mobile-view.min.js +2 -2
- package/es5/plugins/page-break/page-break.js +8 -8
- package/es5/plugins/page-break/page-break.min.js +2 -2
- package/es5/plugins/paste-code/paste-code.css +1 -1
- package/es5/plugins/paste-code/paste-code.js +7 -7
- package/es5/plugins/paste-code/paste-code.min.js +2 -2
- package/es5/plugins/paste-from-word/paste-from-word.js +1 -1
- package/es5/plugins/paste-from-word/paste-from-word.min.js +1 -1
- package/es5/plugins/show-blocks/show-blocks.js +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 +7 -7
- package/es5/plugins/todo-list/todo-list.min.js +2 -2
- package/es5/plugins/translate/translate.css +1 -1
- package/es5/plugins/translate/translate.js +9 -9
- package/es5/plugins/translate/translate.min.js +2 -2
- package/es5/plugins/tune-block/tune-block.css +1 -1
- package/es5/plugins/tune-block/tune-block.js +1 -1
- package/es5/plugins/tune-block/tune-block.min.js +1 -1
- package/esm/plugins/autocomplete/autocomplete.js +1 -1
- package/esm/plugins/backup/config.js +1 -1
- package/esm/plugins/button-generator/config.js +1 -1
- package/esm/plugins/change-case/config.js +1 -1
- package/esm/plugins/emoji/config.js +1 -1
- package/esm/plugins/export-docs/config.js +1 -1
- package/esm/plugins/finder/browser.js +1 -1
- package/esm/plugins/finder/interface.d.ts +69 -0
- package/esm/plugins/google-maps/config.js +1 -1
- package/esm/plugins/google-maps/interface.d.ts +109 -0
- package/esm/plugins/google-search/google-search.js +1 -1
- package/esm/plugins/iframe-editor/config.js +1 -1
- package/esm/plugins/keyboard/config.js +1 -1
- package/esm/plugins/keyboard/keyboard.js +1 -1
- package/esm/plugins/mobile-view/config.js +1 -1
- package/esm/plugins/page-break/config.js +1 -1
- package/esm/plugins/paste-code/config.js +1 -1
- package/esm/plugins/todo-list/config.js +1 -1
- package/esm/plugins/translate/config.js +1 -1
- package/package.json +1 -1
- package/types/plugins/finder/interface.d.ts +69 -0
- package/types/plugins/google-maps/interface.d.ts +109 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=this&&this.__decorate||function(e,t,o,r){var s,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};import{autobind as t}from"../../core/decorators.js";import{isString as o}from"../../core/helpers/checker.js";import{Plugin as r}from"../../core/plugin.js";import{UISelect as s}from"../../core/ui/index.js";import{
|
|
1
|
+
var e=this&&this.__decorate||function(e,t,o,r){var s,i=arguments.length,a=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,o):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,o,r);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(a=(i<3?s(a):i>3?s(t,o,a):s(t,o))||a);return i>3&&a&&Object.defineProperty(t,o,a),a};import{autobind as t}from"../../core/decorators.js";import{isString as o}from"../../core/helpers/checker.js";import{Plugin as r}from"../../core/plugin.js";import{UISelect as s}from"../../core/ui/index.js";import{Config as i}from"../../config.js";import{Dialog as a}from"../../modules.js";import"./config.js";import{UIKeyboard as n}from"./ui/keyboard/keyboard.js";import{JoditPro as d}from"../../jodit-pro.js";export class keyboard extends r{constructor(e){super(e),this.hasStyle=!d.fatMode,this.buttons=[{group:"insert",name:"keyboard"}];const{extraKeyButtons:t,extraKeyGroup:r}=e.o.keyboard;t.length&&t.forEach(((t,s)=>{const a=o(t)?t:t.key,n=o(t)||!t.hotkeys?[`ctrl+${s+1}`]:t.hotkeys;e.registerButton({name:`extraKeyboardButtons.${a}`,group:r});const{extraKeyboardButtons:d}=i.defaultOptions.controls;d[a]={name:a,tooltip:a,args:[a],hotkeys:n,command:"insertChar"}}))}afterInit(e){e.registerCommand("toggleKeyboard",this.toggleKeyboard).registerCommand("insertChar",this.insertChar),e.e.on("isKeyboardOpened",(()=>this.__keyboard?.isOpened))}insertChar(e,t,o){this.j.s.insertNode(this.j.createInside.text(o))}toggleKeyboard(){if(!this.__keyboard){this.__keyboard=new a({toolbarButtonSize:"tiny"});const e=new n(this.j);this.__keyboard.setMod("slim",!0).setMod("adaptive",!1).setContent(e);const{showLayoutSwitcher:t,layoutSwitchList:o,layoutList:r}=this.j.o.keyboard;if(t){const t=new s(this.__keyboard,{value:e.state.currentLayout,options:o.map((e=>({text:r[e]?.title??e,value:e}))),onChange(t){e.state.currentLayout=t}});t.setMod("size","tiny").setMod("width","auto").setMod("variant","outline"),this.__keyboard.setHeader(t)}}this.__keyboard.isOpened?this.__keyboard.close():this.__keyboard.open()}beforeDestruct(e){this.__keyboard?.destruct()}}keyboard.requires=["license"],e([t],keyboard.prototype,"insertChar",null),e([t],keyboard.prototype,"toggleKeyboard",null),d.plugins.add("keyboard",keyboard);
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{
|
|
6
|
+
import{isNumeric as e}from"../../core/helpers/checker/is-numeric.js";import{dataBind as o}from"../../core/helpers/utils/data-bind.js";import{Config as t}from"../../config.js";import i from"./icon.svg.js";t.prototype.mobileView={mode:"default"};export const dataBindStoredKey="buttonmobileSView";export const dataBindCurrentKey="buttonmobileCView";t.prototype.controls.mobileView={tooltip:"Mobile View",icon:i,command:"mobileView",isActive:e=>o(e,dataBindCurrentKey)&&"default"!==o(e,dataBindCurrentKey),isChildActive:(t,i)=>{let r=i.control?.args?.[0];return e(r)&&(r=Number(r)),(o(t,dataBindCurrentKey)||"default")===r},exec:e=>{if(!o(e,dataBindStoredKey))return!1;e.execCommand("mobileView",!1,o(e,dataBindStoredKey))},childExec:(o,t,{button:i})=>{const r=i.control?.args?.[0];o.execCommand("mobileView",!1,e(r)?Number(r):r)},list:{default:"Default",375:"iPhone SE",414:"iPhone XR",390:"iPhone 12 Pro",393:"Pixel 5",820:"iPad Air"}};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import e from"./assets/page-break.svg.js";import
|
|
6
|
+
import{Config as e}from"../../config.js";import r from"./assets/page-break.svg.js";import a from"./page-break.css.js";e.prototype.pageBreak={separator:'<div style="page-break-before: always"></div>'},e.prototype.controls.pageBreak={tooltip:"Insert page break",icon:r,command:"insertPageBreak"},e.prototype.iframeStyle=`${e.prototype.iframeStyle};${a.replace(/[\n\t]/g,"")}`;
|
|
@@ -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{htmlspecialchars as t}from"../../core/helpers/html/htmlspecialchars.js";import e
|
|
6
|
+
import{htmlspecialchars as t}from"../../core/helpers/html/htmlspecialchars.js";import{Config as e}from"../../config.js";import a from"./icon.svg.js";e.prototype.controls.pasteCode={icon:a,tooltip:"Paste code",command:"pasteCode"},e.prototype.pasteCode={globalHighlightLib:!1,canonicalLanguageCode(t){switch(t){case"ts":return"typescript";case"js":return"javascript";case"markup":return"html"}return t},highlightLib:{highlight:(t,e)=>"undefined"!=typeof Prism?Prism.highlight(t,Prism.languages[e]||Prism.languages.plain,e):t,isLangLoaded:t=>"undefined"!=typeof Prism&&Boolean(Prism.languages[t]),js:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/prism.min.js"],langUrl:t=>`https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/components/prism-${t}.min.js`,css:["https://cdnjs.cloudflare.com/ajax/libs/prism/1.25.0/themes/prism.min.css"]},defaultLanguage:"html",insertTemplate:(e,a,s)=>`<pre class="language-${a}">${t(s)}</pre>`,languages:[{value:"html",text:"HTML/XML"},{value:"plaintext",text:"Plain"},{value:"bash",text:"Bash"},{value:"javascript",text:"JavaScript"},{value:"css",text:"CSS"},{value:"php",text:"PHP"},{value:"ruby",text:"Ruby"},{value:"python",text:"Python"},{value:"java",text:"Java"},{value:"c",text:"C"},{value:"csharp",text:"C#"},{value:"cpp",text:"C++"}],dialog:{width:700,height:600}};
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* See LICENSE.md in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
5
|
*/
|
|
6
|
-
import{Dom as o}from"../../core/dom/dom.js";import{Icon as t}from"../../core/ui/icon.js";import s from"./assets/todo-list.svg.js";
|
|
6
|
+
import{Dom as o}from"../../core/dom/dom.js";import{Icon as t}from"../../core/ui/icon.js";import{Config as s}from"../../config.js";import i from"./assets/todo-list.svg.js";s.prototype.todoList={className:"todo-list",labelClassName:"todo-list__label",inputFactory:o=>o.createInside.element("input",{type:"checkbox",tabindex:-1})},s.prototype.controls.todoList={tooltip:"To-do List",icon:"todo-list",command:"todolist",isActive(t){const s=t.s.current();return Boolean(s&&o.closest(s,(t=>o.isElement(t)&&o.isTag(t,"ul")&&t.classList.contains("todo-list")),t.editor))}},t.set("todo-list",i);
|
|
@@ -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{Icon as t}from"../../core/ui/icon.js";import e
|
|
6
|
+
import{Icon as t}from"../../core/ui/icon.js";import{Config as e}from"../../config.js";import a from"./assets/swap.svg.js";import s from"./assets/translate.svg.js";e.prototype.translate={hotkeys:{translateSelection:["ctrl+shift+o","cmd+shift+o"],translateOptions:["ctrl+shift+p","cmd+shift+p"]},provider:"google",googleProviderOptions:{url:"https://translation.googleapis.com/language/translate/v2",key:""},defaultSourceLang:"",defaultTargetLang:"de"},e.prototype.controls.translate={translate:{tooltip:"Translate selected text",icon:"translate",command:"translate",exec(t){t.execCommand("translate")},list:["Options"],childExec(t,e,{control:a}){t.execCommand("translate"+a.name)},mods:{stroke:!1}}},t.set("translate",s).set("translate-swap",a);
|
package/package.json
CHANGED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
import type { IDialogOptions, IDictionary, IFileBrowser, IFileBrowserCallBackData, IFileBrowserOptions, IFileBrowserState, IObservable, Nullable } from "../../types";
|
|
7
|
+
import type { ContextMenuManager } from "./helpers/context-menu";
|
|
8
|
+
import type { LoadingManager } from "./helpers/loading-manager";
|
|
9
|
+
import type { PersistentStore } from "./helpers/persistent-store";
|
|
10
|
+
import type { StateManager } from "./helpers/state-manager";
|
|
11
|
+
import type { UIBrowserPanel } from "./ui/panel/panel";
|
|
12
|
+
import type { IViewOptionsPro } from "./types/view";
|
|
13
|
+
export interface IFileBrowserStatePro extends IFileBrowserState {
|
|
14
|
+
theme: string;
|
|
15
|
+
onSelectCallBack: Nullable<(data: IFileBrowserCallBackData) => void>;
|
|
16
|
+
showSideBar: boolean;
|
|
17
|
+
showSettings: boolean;
|
|
18
|
+
showFavorites: boolean;
|
|
19
|
+
showPreview: boolean;
|
|
20
|
+
lastSelectedIndex: number;
|
|
21
|
+
withFolders: boolean;
|
|
22
|
+
foldersPosition: 'top' | 'bottom' | 'default';
|
|
23
|
+
progress: number;
|
|
24
|
+
info: string;
|
|
25
|
+
metaInfo: Nullable<IDictionary>;
|
|
26
|
+
tileSize: 'xsmall' | 'small' | 'default' | 'large' | 'xlarge';
|
|
27
|
+
favorites: IFileBrowserState['activeElements'];
|
|
28
|
+
tree: IFileBrowserTreeItemPro[];
|
|
29
|
+
}
|
|
30
|
+
// @ts-ignore
|
|
31
|
+
export interface IFileBrowserOptionsPro extends IFileBrowserOptions, IDialogOptions, IViewOptionsPro {
|
|
32
|
+
toolbarButtons: IFileBrowserOptions['buttons'];
|
|
33
|
+
maxWidth: number;
|
|
34
|
+
previewOfficeURL: string;
|
|
35
|
+
license: string;
|
|
36
|
+
}
|
|
37
|
+
export interface IFileBrowserTreeItemPro {
|
|
38
|
+
type: 'file' | 'directory' | 'source';
|
|
39
|
+
name: string;
|
|
40
|
+
title?: string;
|
|
41
|
+
isCollapsed?: boolean;
|
|
42
|
+
isActive?: boolean;
|
|
43
|
+
path: string;
|
|
44
|
+
sourceName: string;
|
|
45
|
+
children: IFileBrowserTreeItemPro[];
|
|
46
|
+
}
|
|
47
|
+
export interface IFileBrowserPro extends IFileBrowser<IFileBrowserOptionsPro> {
|
|
48
|
+
readonly state: IFileBrowserStatePro & IObservable;
|
|
49
|
+
readonly persistent: PersistentStore;
|
|
50
|
+
readonly loadingManager: LoadingManager;
|
|
51
|
+
readonly stateManager: StateManager;
|
|
52
|
+
readonly historyManager: IHistoryManager;
|
|
53
|
+
readonly contextMenuManager: ContextMenuManager;
|
|
54
|
+
readonly panel: UIBrowserPanel;
|
|
55
|
+
}
|
|
56
|
+
export interface IHistoryManager {
|
|
57
|
+
canNext(): boolean;
|
|
58
|
+
canPrevious(): boolean;
|
|
59
|
+
push(item: IHistoryItem): void;
|
|
60
|
+
next(): void;
|
|
61
|
+
previous(): void;
|
|
62
|
+
updateCurrent(): void;
|
|
63
|
+
}
|
|
64
|
+
export interface IHistoryItem {
|
|
65
|
+
currentPath: IFileBrowserStatePro['currentPath'];
|
|
66
|
+
currentSource: IFileBrowserStatePro['currentSource'];
|
|
67
|
+
tree: IFileBrowserStatePro['tree'];
|
|
68
|
+
elements: IFileBrowserStatePro['elements'];
|
|
69
|
+
}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
3
|
+
* See LICENSE.md in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
5
|
+
*/
|
|
6
|
+
export type MapElementType = 'circle' | 'marker' | 'polyline' | 'polygon' | 'text';
|
|
7
|
+
export type CreateMode = 'hand' | MapElementType;
|
|
8
|
+
interface IMarkerState {
|
|
9
|
+
readonly type: 'marker';
|
|
10
|
+
readonly coordinates: [
|
|
11
|
+
number,
|
|
12
|
+
number
|
|
13
|
+
];
|
|
14
|
+
readonly showCaption?: boolean;
|
|
15
|
+
readonly title?: string;
|
|
16
|
+
readonly text?: string;
|
|
17
|
+
readonly icon?: string;
|
|
18
|
+
}
|
|
19
|
+
interface IPolylineState {
|
|
20
|
+
readonly type: 'polyline';
|
|
21
|
+
readonly coordinates: number[][];
|
|
22
|
+
readonly strokeColor?: string;
|
|
23
|
+
readonly strokeWeight?: number;
|
|
24
|
+
readonly fillColor?: string;
|
|
25
|
+
}
|
|
26
|
+
interface IPolygonState {
|
|
27
|
+
readonly type: 'polygon';
|
|
28
|
+
readonly coordinates: number[][];
|
|
29
|
+
readonly strokeColor?: string;
|
|
30
|
+
readonly fillColor?: string;
|
|
31
|
+
readonly strokeWeight?: number;
|
|
32
|
+
readonly fillOpacity?: number;
|
|
33
|
+
}
|
|
34
|
+
interface ICircleState {
|
|
35
|
+
readonly type: 'circle';
|
|
36
|
+
readonly coordinates: [
|
|
37
|
+
number,
|
|
38
|
+
number
|
|
39
|
+
];
|
|
40
|
+
readonly radius: number;
|
|
41
|
+
readonly strokeColor?: string;
|
|
42
|
+
readonly fillColor?: string;
|
|
43
|
+
readonly strokeWeight?: number;
|
|
44
|
+
readonly fillOpacity?: number;
|
|
45
|
+
}
|
|
46
|
+
interface ITextState {
|
|
47
|
+
readonly type: 'text';
|
|
48
|
+
readonly coordinates: [
|
|
49
|
+
number,
|
|
50
|
+
number
|
|
51
|
+
];
|
|
52
|
+
readonly text: string;
|
|
53
|
+
readonly size: number;
|
|
54
|
+
readonly color?: string;
|
|
55
|
+
}
|
|
56
|
+
export type IUIMapElementState = IMarkerState | IPolylineState | IPolygonState | ICircleState | ITextState;
|
|
57
|
+
export type IGMElement = google.maps.Marker | google.maps.Polygon | google.maps.Polyline | google.maps.Circle;
|
|
58
|
+
export type IUIMapElement = {
|
|
59
|
+
readonly uid: string;
|
|
60
|
+
readonly type: 'marker';
|
|
61
|
+
readonly gme: google.maps.Marker;
|
|
62
|
+
state: IMarkerState;
|
|
63
|
+
} | {
|
|
64
|
+
readonly uid: string;
|
|
65
|
+
readonly type: 'polygon';
|
|
66
|
+
readonly gme: google.maps.Polygon;
|
|
67
|
+
state: IPolygonState;
|
|
68
|
+
} | {
|
|
69
|
+
readonly uid: string;
|
|
70
|
+
readonly type: 'polyline';
|
|
71
|
+
readonly gme: google.maps.Polyline;
|
|
72
|
+
state: IPolylineState;
|
|
73
|
+
} | {
|
|
74
|
+
readonly uid: string;
|
|
75
|
+
readonly type: 'circle';
|
|
76
|
+
readonly gme: google.maps.Circle;
|
|
77
|
+
state: ICircleState;
|
|
78
|
+
} | {
|
|
79
|
+
readonly uid: string;
|
|
80
|
+
readonly type: 'text';
|
|
81
|
+
readonly gme: google.maps.Marker;
|
|
82
|
+
state: ITextState;
|
|
83
|
+
};
|
|
84
|
+
export interface IUIMapBaseState {
|
|
85
|
+
uid: string;
|
|
86
|
+
center: [
|
|
87
|
+
number,
|
|
88
|
+
number
|
|
89
|
+
];
|
|
90
|
+
size: [
|
|
91
|
+
number,
|
|
92
|
+
number
|
|
93
|
+
];
|
|
94
|
+
zoom: number;
|
|
95
|
+
type: 'hybrid' | 'roadmap' | 'satellite' | 'terrain';
|
|
96
|
+
layer: 'default' | 'traffic' | 'transit' | 'bicycling';
|
|
97
|
+
controls: {
|
|
98
|
+
zoomControl: boolean;
|
|
99
|
+
mapTypeControl: boolean;
|
|
100
|
+
scaleControl: boolean;
|
|
101
|
+
streetViewControl: boolean;
|
|
102
|
+
rotateControl: boolean;
|
|
103
|
+
fullscreenControl: boolean;
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
export interface IUIMapState extends IUIMapBaseState {
|
|
107
|
+
mode: CreateMode;
|
|
108
|
+
elements: IUIMapElementState[];
|
|
109
|
+
}
|