jodit-pro 1.3.39 → 2.0.0-beta.10
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/.nvmrc +1 -0
- package/CHANGELOG.md +982 -0
- package/LICENSE.txt +1 -0
- package/README.md +27 -27
- package/SECURITY.md +10 -0
- package/es2015/jodit.css +4945 -0
- package/es2015/jodit.fat.min.css +1 -0
- package/es2015/jodit.fat.min.js +10 -0
- package/es2015/jodit.js +42706 -0
- package/es2015/jodit.min.css +1 -0
- package/es2015/jodit.min.js +10 -0
- package/es2015/plugins/autocomplete/autocomplete.css +26 -0
- package/es2015/plugins/autocomplete/autocomplete.js +473 -0
- package/es2015/plugins/autocomplete/autocomplete.min.js +10 -0
- package/es2015/plugins/backup/backup.css +48 -0
- package/es2015/plugins/backup/backup.js +567 -0
- package/{build/plugins/backup/backup.css → es2015/plugins/backup/backup.min.css} +1 -1
- package/es2015/plugins/backup/backup.min.js +10 -0
- package/es2015/plugins/button-generator/button-generator.css +316 -0
- package/es2015/plugins/button-generator/button-generator.js +1363 -0
- package/es2015/plugins/button-generator/button-generator.min.css +1 -0
- package/es2015/plugins/button-generator/button-generator.min.js +10 -0
- package/es2015/plugins/change-case/change-case.js +171 -0
- package/es2015/plugins/change-case/change-case.min.js +10 -0
- package/es2015/plugins/color-picker/color-picker.css +133 -0
- package/es2015/plugins/color-picker/color-picker.js +519 -0
- package/es2015/plugins/color-picker/color-picker.min.css +1 -0
- package/es2015/plugins/color-picker/color-picker.min.js +10 -0
- package/es2015/plugins/emoji/emoji.css +108 -0
- package/es2015/plugins/emoji/emoji.js +421 -0
- package/es2015/plugins/emoji/emoji.min.css +1 -0
- package/es2015/plugins/emoji/emoji.min.js +10 -0
- package/es2015/plugins/export-docs/export-docs.js +153 -0
- package/es2015/plugins/export-docs/export-docs.min.js +10 -0
- package/es2015/plugins/finder/finder.css +1342 -0
- package/es2015/plugins/finder/finder.js +3175 -0
- package/es2015/plugins/finder/finder.min.css +1 -0
- package/es2015/plugins/finder/finder.min.js +10 -0
- package/es2015/plugins/google-maps/google-maps.css +397 -0
- package/es2015/plugins/google-maps/google-maps.js +2492 -0
- package/es2015/plugins/google-maps/google-maps.min.css +1 -0
- package/es2015/plugins/google-maps/google-maps.min.js +10 -0
- package/es2015/plugins/google-search/google-search.js +108 -0
- package/es2015/plugins/google-search/google-search.min.js +10 -0
- package/es2015/plugins/highlight-signature/highlight-signature.js +233 -0
- package/es2015/plugins/highlight-signature/highlight-signature.min.js +10 -0
- package/es2015/plugins/iframe-editor/iframe-editor.css +16 -0
- package/es2015/plugins/iframe-editor/iframe-editor.js +310 -0
- package/es2015/plugins/iframe-editor/iframe-editor.min.js +10 -0
- package/es2015/plugins/keyboard/keyboard.css +48 -0
- package/es2015/plugins/keyboard/keyboard.js +539 -0
- package/es2015/plugins/keyboard/keyboard.min.js +10 -0
- package/es2015/plugins/mobile-view/mobile-view.js +170 -0
- package/es2015/plugins/mobile-view/mobile-view.min.js +10 -0
- package/es2015/plugins/page-break/page-break.js +181 -0
- package/es2015/plugins/page-break/page-break.min.js +10 -0
- package/es2015/plugins/paste-code/paste-code.css +21 -0
- package/es2015/plugins/paste-code/paste-code.js +320 -0
- package/es2015/plugins/paste-code/paste-code.min.js +10 -0
- package/es2015/plugins/paste-from-word/paste-from-word.js +1541 -0
- package/es2015/plugins/paste-from-word/paste-from-word.min.js +10 -0
- package/es2015/plugins/show-blocks/show-blocks.js +645 -0
- package/es2015/plugins/show-blocks/show-blocks.min.js +10 -0
- package/es2015/plugins/todo-list/todo-list.css +77 -0
- package/es2015/plugins/todo-list/todo-list.js +314 -0
- package/es2015/plugins/todo-list/todo-list.min.css +1 -0
- package/es2015/plugins/todo-list/todo-list.min.js +10 -0
- package/es2015/plugins/translate/translate.css +91 -0
- package/es2015/plugins/translate/translate.js +630 -0
- package/es2015/plugins/translate/translate.min.js +10 -0
- package/es2015/plugins/tune-block/tune-block.css +37 -0
- package/es2015/plugins/tune-block/tune-block.js +387 -0
- package/{build/plugins/tune-block/tune-block.css → es2015/plugins/tune-block/tune-block.min.css} +1 -1
- package/es2015/plugins/tune-block/tune-block.min.js +10 -0
- package/es2018/jodit.css +4945 -0
- package/es2018/jodit.fat.min.css +1 -0
- package/es2018/jodit.fat.min.js +10 -0
- package/es2018/jodit.js +42762 -0
- package/es2018/jodit.min.css +1 -0
- package/es2018/jodit.min.js +10 -0
- package/es2018/plugins/autocomplete/autocomplete.css +26 -0
- package/es2018/plugins/autocomplete/autocomplete.js +471 -0
- package/es2018/plugins/autocomplete/autocomplete.min.js +10 -0
- package/es2018/plugins/backup/backup.css +48 -0
- package/es2018/plugins/backup/backup.js +561 -0
- package/{build/plugins/backup/backup.es5.css → es2018/plugins/backup/backup.min.css} +1 -1
- package/es2018/plugins/backup/backup.min.js +10 -0
- package/es2018/plugins/button-generator/button-generator.css +316 -0
- package/es2018/plugins/button-generator/button-generator.js +1387 -0
- package/es2018/plugins/button-generator/button-generator.min.css +1 -0
- package/es2018/plugins/button-generator/button-generator.min.js +10 -0
- package/es2018/plugins/change-case/change-case.js +171 -0
- package/es2018/plugins/change-case/change-case.min.js +10 -0
- package/es2018/plugins/color-picker/color-picker.css +133 -0
- package/es2018/plugins/color-picker/color-picker.js +519 -0
- package/es2018/plugins/color-picker/color-picker.min.css +1 -0
- package/es2018/plugins/color-picker/color-picker.min.js +10 -0
- package/es2018/plugins/emoji/emoji.css +108 -0
- package/es2018/plugins/emoji/emoji.js +425 -0
- package/es2018/plugins/emoji/emoji.min.css +1 -0
- package/es2018/plugins/emoji/emoji.min.js +10 -0
- package/es2018/plugins/export-docs/export-docs.js +157 -0
- package/es2018/plugins/export-docs/export-docs.min.js +10 -0
- package/es2018/plugins/finder/finder.css +1342 -0
- package/es2018/plugins/finder/finder.js +3160 -0
- package/es2018/plugins/finder/finder.min.css +1 -0
- package/es2018/plugins/finder/finder.min.js +10 -0
- package/es2018/plugins/google-maps/google-maps.css +397 -0
- package/es2018/plugins/google-maps/google-maps.js +2556 -0
- package/es2018/plugins/google-maps/google-maps.min.css +1 -0
- package/es2018/plugins/google-maps/google-maps.min.js +10 -0
- package/es2018/plugins/google-search/google-search.js +108 -0
- package/es2018/plugins/google-search/google-search.min.js +10 -0
- package/es2018/plugins/highlight-signature/highlight-signature.js +233 -0
- package/es2018/plugins/highlight-signature/highlight-signature.min.js +10 -0
- package/es2018/plugins/iframe-editor/iframe-editor.css +16 -0
- package/es2018/plugins/iframe-editor/iframe-editor.js +310 -0
- package/es2018/plugins/iframe-editor/iframe-editor.min.js +10 -0
- package/es2018/plugins/keyboard/keyboard.css +48 -0
- package/es2018/plugins/keyboard/keyboard.js +539 -0
- package/es2018/plugins/keyboard/keyboard.min.js +10 -0
- package/es2018/plugins/mobile-view/mobile-view.js +170 -0
- package/es2018/plugins/mobile-view/mobile-view.min.js +10 -0
- package/es2018/plugins/page-break/page-break.js +181 -0
- package/es2018/plugins/page-break/page-break.min.js +10 -0
- package/es2018/plugins/paste-code/paste-code.css +21 -0
- package/es2018/plugins/paste-code/paste-code.js +318 -0
- package/es2018/plugins/paste-code/paste-code.min.js +10 -0
- package/es2018/plugins/paste-from-word/paste-from-word.js +1541 -0
- package/es2018/plugins/paste-from-word/paste-from-word.min.js +10 -0
- package/es2018/plugins/show-blocks/show-blocks.js +645 -0
- package/es2018/plugins/show-blocks/show-blocks.min.js +10 -0
- package/es2018/plugins/todo-list/todo-list.css +77 -0
- package/es2018/plugins/todo-list/todo-list.js +314 -0
- package/es2018/plugins/todo-list/todo-list.min.css +1 -0
- package/es2018/plugins/todo-list/todo-list.min.js +10 -0
- package/es2018/plugins/translate/translate.css +91 -0
- package/es2018/plugins/translate/translate.js +639 -0
- package/es2018/plugins/translate/translate.min.js +10 -0
- package/es2018/plugins/tune-block/tune-block.css +37 -0
- package/es2018/plugins/tune-block/tune-block.js +387 -0
- package/{build/plugins/tune-block/tune-block.es5.css → es2018/plugins/tune-block/tune-block.min.css} +1 -1
- package/es2018/plugins/tune-block/tune-block.min.js +10 -0
- package/es2021/jodit.css +4945 -0
- package/es2021/jodit.fat.min.css +1 -0
- package/es2021/jodit.fat.min.js +10 -0
- package/es2021/jodit.js +42643 -0
- package/es2021/jodit.min.css +1 -0
- package/es2021/jodit.min.js +10 -0
- package/es2021/plugins/autocomplete/autocomplete.css +26 -0
- package/es2021/plugins/autocomplete/autocomplete.js +463 -0
- package/es2021/plugins/autocomplete/autocomplete.min.css +1 -0
- package/es2021/plugins/autocomplete/autocomplete.min.js +10 -0
- package/es2021/plugins/backup/backup.css +48 -0
- package/es2021/plugins/backup/backup.js +554 -0
- package/es2021/plugins/backup/backup.min.css +1 -0
- package/es2021/plugins/backup/backup.min.js +10 -0
- package/es2021/plugins/button-generator/button-generator.css +316 -0
- package/es2021/plugins/button-generator/button-generator.js +1382 -0
- package/es2021/plugins/button-generator/button-generator.min.css +1 -0
- package/es2021/plugins/button-generator/button-generator.min.js +10 -0
- package/es2021/plugins/change-case/change-case.js +171 -0
- package/es2021/plugins/change-case/change-case.min.js +10 -0
- package/es2021/plugins/color-picker/color-picker.css +133 -0
- package/es2021/plugins/color-picker/color-picker.js +517 -0
- package/es2021/plugins/color-picker/color-picker.min.css +1 -0
- package/es2021/plugins/color-picker/color-picker.min.js +10 -0
- package/es2021/plugins/emoji/emoji.css +108 -0
- package/es2021/plugins/emoji/emoji.js +425 -0
- package/es2021/plugins/emoji/emoji.min.css +1 -0
- package/es2021/plugins/emoji/emoji.min.js +10 -0
- package/es2021/plugins/export-docs/export-docs.js +156 -0
- package/es2021/plugins/export-docs/export-docs.min.js +10 -0
- package/es2021/plugins/finder/finder.css +1342 -0
- package/es2021/plugins/finder/finder.js +3152 -0
- package/es2021/plugins/finder/finder.min.css +1 -0
- package/es2021/plugins/finder/finder.min.js +10 -0
- package/es2021/plugins/google-maps/google-maps.css +397 -0
- package/es2021/plugins/google-maps/google-maps.js +2540 -0
- package/es2021/plugins/google-maps/google-maps.min.css +1 -0
- package/es2021/plugins/google-maps/google-maps.min.js +10 -0
- package/es2021/plugins/google-search/google-search.js +107 -0
- package/es2021/plugins/google-search/google-search.min.js +10 -0
- package/es2021/plugins/highlight-signature/highlight-signature.js +231 -0
- package/es2021/plugins/highlight-signature/highlight-signature.min.js +10 -0
- package/es2021/plugins/iframe-editor/iframe-editor.css +16 -0
- package/es2021/plugins/iframe-editor/iframe-editor.js +308 -0
- package/es2021/plugins/iframe-editor/iframe-editor.min.css +1 -0
- package/es2021/plugins/iframe-editor/iframe-editor.min.js +10 -0
- package/es2021/plugins/keyboard/keyboard.css +48 -0
- package/es2021/plugins/keyboard/keyboard.js +537 -0
- package/es2021/plugins/keyboard/keyboard.min.css +1 -0
- package/es2021/plugins/keyboard/keyboard.min.js +10 -0
- package/es2021/plugins/mobile-view/mobile-view.js +168 -0
- package/es2021/plugins/mobile-view/mobile-view.min.js +10 -0
- package/es2021/plugins/page-break/page-break.js +181 -0
- package/es2021/plugins/page-break/page-break.min.js +10 -0
- package/es2021/plugins/paste-code/paste-code.css +21 -0
- package/es2021/plugins/paste-code/paste-code.js +318 -0
- package/es2021/plugins/paste-code/paste-code.min.css +1 -0
- package/es2021/plugins/paste-code/paste-code.min.js +10 -0
- package/es2021/plugins/paste-from-word/paste-from-word.js +1528 -0
- package/es2021/plugins/paste-from-word/paste-from-word.min.js +10 -0
- package/es2021/plugins/show-blocks/show-blocks.js +645 -0
- package/es2021/plugins/show-blocks/show-blocks.min.js +10 -0
- package/es2021/plugins/todo-list/todo-list.css +77 -0
- package/es2021/plugins/todo-list/todo-list.js +313 -0
- package/es2021/plugins/todo-list/todo-list.min.css +1 -0
- package/es2021/plugins/todo-list/todo-list.min.js +10 -0
- package/es2021/plugins/translate/translate.css +91 -0
- package/es2021/plugins/translate/translate.js +636 -0
- package/es2021/plugins/translate/translate.min.css +1 -0
- package/es2021/plugins/translate/translate.min.js +10 -0
- package/es2021/plugins/tune-block/tune-block.css +37 -0
- package/es2021/plugins/tune-block/tune-block.js +385 -0
- package/es2021/plugins/tune-block/tune-block.min.css +1 -0
- package/es2021/plugins/tune-block/tune-block.min.js +10 -0
- package/es2021.en/jodit.css +4945 -0
- package/es2021.en/jodit.fat.min.css +1 -0
- package/es2021.en/jodit.fat.min.js +10 -0
- package/es2021.en/jodit.js +40989 -0
- package/es2021.en/jodit.min.css +1 -0
- package/es2021.en/jodit.min.js +10 -0
- package/es2021.en/plugins/autocomplete/autocomplete.css +26 -0
- package/es2021.en/plugins/autocomplete/autocomplete.js +463 -0
- package/es2021.en/plugins/autocomplete/autocomplete.min.css +1 -0
- package/es2021.en/plugins/autocomplete/autocomplete.min.js +10 -0
- package/es2021.en/plugins/backup/backup.css +48 -0
- package/es2021.en/plugins/backup/backup.js +554 -0
- package/es2021.en/plugins/backup/backup.min.css +1 -0
- package/es2021.en/plugins/backup/backup.min.js +10 -0
- package/es2021.en/plugins/button-generator/button-generator.css +316 -0
- package/es2021.en/plugins/button-generator/button-generator.js +1382 -0
- package/es2021.en/plugins/button-generator/button-generator.min.css +1 -0
- package/es2021.en/plugins/button-generator/button-generator.min.js +10 -0
- package/es2021.en/plugins/change-case/change-case.js +171 -0
- package/es2021.en/plugins/change-case/change-case.min.js +10 -0
- package/es2021.en/plugins/color-picker/color-picker.css +133 -0
- package/es2021.en/plugins/color-picker/color-picker.js +517 -0
- package/es2021.en/plugins/color-picker/color-picker.min.css +1 -0
- package/es2021.en/plugins/color-picker/color-picker.min.js +10 -0
- package/es2021.en/plugins/emoji/emoji.css +108 -0
- package/es2021.en/plugins/emoji/emoji.js +425 -0
- package/es2021.en/plugins/emoji/emoji.min.css +1 -0
- package/es2021.en/plugins/emoji/emoji.min.js +10 -0
- package/es2021.en/plugins/export-docs/export-docs.js +156 -0
- package/es2021.en/plugins/export-docs/export-docs.min.js +10 -0
- package/es2021.en/plugins/finder/finder.css +1342 -0
- package/es2021.en/plugins/finder/finder.js +3117 -0
- package/es2021.en/plugins/finder/finder.min.css +1 -0
- package/es2021.en/plugins/finder/finder.min.js +10 -0
- package/es2021.en/plugins/google-maps/google-maps.css +397 -0
- package/es2021.en/plugins/google-maps/google-maps.js +2540 -0
- package/es2021.en/plugins/google-maps/google-maps.min.css +1 -0
- package/es2021.en/plugins/google-maps/google-maps.min.js +10 -0
- package/es2021.en/plugins/google-search/google-search.js +107 -0
- package/es2021.en/plugins/google-search/google-search.min.js +10 -0
- package/es2021.en/plugins/highlight-signature/highlight-signature.js +231 -0
- package/es2021.en/plugins/highlight-signature/highlight-signature.min.js +10 -0
- package/es2021.en/plugins/iframe-editor/iframe-editor.css +16 -0
- package/es2021.en/plugins/iframe-editor/iframe-editor.js +308 -0
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.css +1 -0
- package/es2021.en/plugins/iframe-editor/iframe-editor.min.js +10 -0
- package/es2021.en/plugins/keyboard/keyboard.css +48 -0
- package/es2021.en/plugins/keyboard/keyboard.js +537 -0
- package/es2021.en/plugins/keyboard/keyboard.min.css +1 -0
- package/es2021.en/plugins/keyboard/keyboard.min.js +10 -0
- package/es2021.en/plugins/mobile-view/mobile-view.js +168 -0
- package/es2021.en/plugins/mobile-view/mobile-view.min.js +10 -0
- package/es2021.en/plugins/page-break/page-break.js +181 -0
- package/es2021.en/plugins/page-break/page-break.min.js +10 -0
- package/es2021.en/plugins/paste-code/paste-code.css +21 -0
- package/es2021.en/plugins/paste-code/paste-code.js +318 -0
- package/es2021.en/plugins/paste-code/paste-code.min.css +1 -0
- package/es2021.en/plugins/paste-code/paste-code.min.js +10 -0
- package/es2021.en/plugins/paste-from-word/paste-from-word.js +1528 -0
- package/es2021.en/plugins/paste-from-word/paste-from-word.min.js +10 -0
- package/es2021.en/plugins/show-blocks/show-blocks.js +322 -0
- package/es2021.en/plugins/show-blocks/show-blocks.min.js +10 -0
- package/es2021.en/plugins/todo-list/todo-list.css +77 -0
- package/es2021.en/plugins/todo-list/todo-list.js +313 -0
- package/es2021.en/plugins/todo-list/todo-list.min.css +1 -0
- package/es2021.en/plugins/todo-list/todo-list.min.js +10 -0
- package/es2021.en/plugins/translate/translate.css +91 -0
- package/es2021.en/plugins/translate/translate.js +636 -0
- package/es2021.en/plugins/translate/translate.min.css +1 -0
- package/es2021.en/plugins/translate/translate.min.js +10 -0
- package/es2021.en/plugins/tune-block/tune-block.css +37 -0
- package/es2021.en/plugins/tune-block/tune-block.js +385 -0
- package/es2021.en/plugins/tune-block/tune-block.min.css +1 -0
- package/es2021.en/plugins/tune-block/tune-block.min.js +10 -0
- package/es5/jodit.css +5956 -0
- package/es5/jodit.fat.min.css +1 -0
- package/es5/jodit.fat.min.js +10 -0
- package/es5/jodit.js +49879 -0
- package/es5/jodit.min.css +15 -0
- package/es5/jodit.min.js +10 -0
- package/es5/plugins/autocomplete/autocomplete.css +26 -0
- package/es5/plugins/autocomplete/autocomplete.js +536 -0
- package/es5/plugins/autocomplete/autocomplete.min.css +1 -0
- package/es5/plugins/autocomplete/autocomplete.min.js +10 -0
- package/es5/plugins/backup/backup.css +48 -0
- package/es5/plugins/backup/backup.js +599 -0
- package/es5/plugins/backup/backup.min.css +1 -0
- package/es5/plugins/backup/backup.min.js +10 -0
- package/es5/plugins/button-generator/button-generator.css +316 -0
- package/es5/plugins/button-generator/button-generator.js +1310 -0
- package/es5/plugins/button-generator/button-generator.min.css +1 -0
- package/es5/plugins/button-generator/button-generator.min.js +10 -0
- package/es5/plugins/change-case/change-case.js +179 -0
- package/es5/plugins/change-case/change-case.min.js +10 -0
- package/es5/plugins/color-picker/color-picker.css +133 -0
- package/es5/plugins/color-picker/color-picker.js +525 -0
- package/es5/plugins/color-picker/color-picker.min.css +1 -0
- package/es5/plugins/color-picker/color-picker.min.js +10 -0
- package/es5/plugins/emoji/emoji.css +108 -0
- package/es5/plugins/emoji/emoji.js +459 -0
- package/es5/plugins/emoji/emoji.min.css +1 -0
- package/es5/plugins/emoji/emoji.min.js +10 -0
- package/es5/plugins/export-docs/export-docs.js +174 -0
- package/es5/plugins/export-docs/export-docs.min.js +10 -0
- package/es5/plugins/finder/finder.css +1342 -0
- package/es5/plugins/finder/finder.js +3335 -0
- package/es5/plugins/finder/finder.min.css +1 -0
- package/es5/plugins/finder/finder.min.js +10 -0
- package/es5/plugins/google-maps/google-maps.css +397 -0
- package/es5/plugins/google-maps/google-maps.js +2463 -0
- package/es5/plugins/google-maps/google-maps.min.css +1 -0
- package/es5/plugins/google-maps/google-maps.min.js +10 -0
- package/es5/plugins/google-search/google-search.js +113 -0
- package/es5/plugins/google-search/google-search.min.js +10 -0
- package/es5/plugins/highlight-signature/highlight-signature.js +253 -0
- package/es5/plugins/highlight-signature/highlight-signature.min.js +10 -0
- package/es5/plugins/iframe-editor/iframe-editor.css +16 -0
- package/es5/plugins/iframe-editor/iframe-editor.js +319 -0
- package/es5/plugins/iframe-editor/iframe-editor.min.css +1 -0
- package/es5/plugins/iframe-editor/iframe-editor.min.js +10 -0
- package/es5/plugins/keyboard/keyboard.css +48 -0
- package/es5/plugins/keyboard/keyboard.js +556 -0
- package/es5/plugins/keyboard/keyboard.min.css +1 -0
- package/es5/plugins/keyboard/keyboard.min.js +10 -0
- package/es5/plugins/mobile-view/mobile-view.js +176 -0
- package/es5/plugins/mobile-view/mobile-view.min.js +10 -0
- package/es5/plugins/page-break/page-break.js +169 -0
- package/es5/plugins/page-break/page-break.min.js +10 -0
- package/es5/plugins/paste-code/paste-code.css +21 -0
- package/es5/plugins/paste-code/paste-code.js +348 -0
- package/es5/plugins/paste-code/paste-code.min.css +1 -0
- package/es5/plugins/paste-code/paste-code.min.js +10 -0
- package/es5/plugins/paste-from-word/paste-from-word.js +1670 -0
- package/es5/plugins/paste-from-word/paste-from-word.min.js +10 -0
- package/es5/plugins/show-blocks/show-blocks.js +649 -0
- package/es5/plugins/show-blocks/show-blocks.min.js +10 -0
- package/es5/plugins/todo-list/todo-list.css +77 -0
- package/es5/plugins/todo-list/todo-list.js +324 -0
- package/es5/plugins/todo-list/todo-list.min.css +1 -0
- package/es5/plugins/todo-list/todo-list.min.js +10 -0
- package/es5/plugins/translate/translate.css +91 -0
- package/es5/plugins/translate/translate.js +657 -0
- package/es5/plugins/translate/translate.min.css +1 -0
- package/es5/plugins/translate/translate.min.js +10 -0
- package/es5/plugins/tune-block/tune-block.css +37 -0
- package/es5/plugins/tune-block/tune-block.js +397 -0
- package/es5/plugins/tune-block/tune-block.min.css +1 -0
- package/es5/plugins/tune-block/tune-block.min.js +10 -0
- package/examples/arabic.lang.html +8 -8
- package/examples/color-picker.html +6 -6
- package/examples/custom-icons.html +8 -8
- package/examples/custom-toolbar.html +8 -8
- package/examples/example.default.html +6 -6
- package/examples/fullsize.html +8 -8
- package/examples/index.html +6 -6
- package/examples/inline-mode.html +8 -8
- package/examples/oneinstance.html +8 -8
- package/examples/theme.html +6 -6
- package/package.json +6 -22
- package/LICENSE.md +0 -3
- package/build/jodit.css +0 -1
- package/build/jodit.es5.css +0 -8
- package/build/jodit.es5.js +0 -1
- package/build/jodit.fat.css +0 -1
- package/build/jodit.fat.es5.css +0 -1
- package/build/jodit.fat.es5.js +0 -1
- package/build/jodit.fat.js +0 -1
- package/build/jodit.js +0 -1
- package/build/plugins/autocomplete/autocomplete.es5.js +0 -1
- package/build/plugins/autocomplete/autocomplete.js +0 -1
- package/build/plugins/backup/backup.es5.js +0 -1
- package/build/plugins/backup/backup.js +0 -1
- package/build/plugins/button-generator/button-generator.css +0 -1
- package/build/plugins/button-generator/button-generator.es5.css +0 -1
- package/build/plugins/button-generator/button-generator.es5.js +0 -1
- package/build/plugins/button-generator/button-generator.js +0 -1
- package/build/plugins/change-case/change-case.es5.js +0 -1
- package/build/plugins/change-case/change-case.js +0 -1
- package/build/plugins/color-picker/color-picker.css +0 -1
- package/build/plugins/color-picker/color-picker.es5.css +0 -1
- package/build/plugins/color-picker/color-picker.es5.js +0 -1
- package/build/plugins/color-picker/color-picker.js +0 -1
- package/build/plugins/emoji/emoji.css +0 -1
- package/build/plugins/emoji/emoji.es5.css +0 -1
- package/build/plugins/emoji/emoji.es5.js +0 -1
- package/build/plugins/emoji/emoji.js +0 -1
- package/build/plugins/export-docs/export-docs.es5.js +0 -1
- package/build/plugins/export-docs/export-docs.js +0 -1
- package/build/plugins/finder/finder.css +0 -1
- package/build/plugins/finder/finder.es5.css +0 -1
- package/build/plugins/finder/finder.es5.js +0 -1
- package/build/plugins/finder/finder.js +0 -1
- package/build/plugins/google-maps/google-maps.css +0 -1
- package/build/plugins/google-maps/google-maps.es5.css +0 -1
- package/build/plugins/google-maps/google-maps.es5.js +0 -1
- package/build/plugins/google-maps/google-maps.js +0 -1
- package/build/plugins/google-search/google-search.es5.js +0 -1
- package/build/plugins/google-search/google-search.js +0 -1
- package/build/plugins/highlight-signature/highlight-signature.es5.js +0 -1
- package/build/plugins/highlight-signature/highlight-signature.js +0 -1
- package/build/plugins/iframe-editor/iframe-editor.es5.js +0 -1
- package/build/plugins/iframe-editor/iframe-editor.js +0 -1
- package/build/plugins/keyboard/keyboard.es5.js +0 -1
- package/build/plugins/keyboard/keyboard.js +0 -1
- package/build/plugins/mobile-view/mobile-view.css +0 -0
- package/build/plugins/mobile-view/mobile-view.es5.css +0 -0
- package/build/plugins/mobile-view/mobile-view.es5.js +0 -1
- package/build/plugins/mobile-view/mobile-view.js +0 -1
- package/build/plugins/page-break/page-break.css +0 -1
- package/build/plugins/page-break/page-break.es5.css +0 -1
- package/build/plugins/page-break/page-break.es5.js +0 -1
- package/build/plugins/page-break/page-break.js +0 -1
- package/build/plugins/paste-code/paste-code.es5.js +0 -1
- package/build/plugins/paste-code/paste-code.js +0 -1
- package/build/plugins/paste-from-word/paste-from-word.es5.js +0 -1
- package/build/plugins/paste-from-word/paste-from-word.js +0 -1
- package/build/plugins/show-blocks/show-blocks.es5.js +0 -1
- package/build/plugins/show-blocks/show-blocks.js +0 -1
- package/build/plugins/todo-list/todo-list.css +0 -1
- package/build/plugins/todo-list/todo-list.es5.css +0 -1
- package/build/plugins/todo-list/todo-list.es5.js +0 -1
- package/build/plugins/todo-list/todo-list.js +0 -1
- package/build/plugins/translate/translate.es5.js +0 -1
- package/build/plugins/translate/translate.js +0 -1
- package/build/plugins/tune-block/tune-block.es5.js +0 -1
- package/build/plugins/tune-block/tune-block.js +0 -1
- package/index.html +0 -268
- /package/{build/config.js → config.js} +0 -0
- /package/{build/plugins/autocomplete/autocomplete.css → es2015/plugins/autocomplete/autocomplete.min.css} +0 -0
- /package/{build/plugins/iframe-editor/iframe-editor.css → es2015/plugins/iframe-editor/iframe-editor.min.css} +0 -0
- /package/{build/plugins/keyboard/keyboard.css → es2015/plugins/keyboard/keyboard.min.css} +0 -0
- /package/{build/plugins/paste-code/paste-code.css → es2015/plugins/paste-code/paste-code.min.css} +0 -0
- /package/{build/plugins/translate/translate.css → es2015/plugins/translate/translate.min.css} +0 -0
- /package/{build/plugins/autocomplete/autocomplete.es5.css → es2018/plugins/autocomplete/autocomplete.min.css} +0 -0
- /package/{build/plugins/iframe-editor/iframe-editor.es5.css → es2018/plugins/iframe-editor/iframe-editor.min.css} +0 -0
- /package/{build/plugins/keyboard/keyboard.es5.css → es2018/plugins/keyboard/keyboard.min.css} +0 -0
- /package/{build/plugins/paste-code/paste-code.es5.css → es2018/plugins/paste-code/paste-code.min.css} +0 -0
- /package/{build/plugins/translate/translate.es5.css → es2018/plugins/translate/translate.min.css} +0 -0
|
@@ -0,0 +1,1363 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* jodit-pro - PRO Version of Jodit Editor
|
|
3
|
+
* Author: Chupurnov Valeriy <chupurnov@gmail.com>
|
|
4
|
+
* Version: v2.0.0-beta.10
|
|
5
|
+
* Url: https://xdsoft.net/jodit/pro/
|
|
6
|
+
* License(s): SEE LICENSE IN LICENSE.md
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
10
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
11
|
+
module.exports = factory();
|
|
12
|
+
else if(typeof define === 'function' && define.amd)
|
|
13
|
+
define([], factory);
|
|
14
|
+
else {
|
|
15
|
+
var a = factory();
|
|
16
|
+
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
17
|
+
}
|
|
18
|
+
})(self, function() {
|
|
19
|
+
return (self["webpackChunkjodit_pro"] = self["webpackChunkjodit_pro"] || []).push([[881],{
|
|
20
|
+
|
|
21
|
+
/***/ 3334:
|
|
22
|
+
/***/ (function(module) {
|
|
23
|
+
|
|
24
|
+
module.exports = "<svg stroke=\"black\" viewBox=\"0 0 32 32\" xml:space=\"preserve\" xmlns=\"http://www.w3.org/2000/svg\"> <style type=\"text/css\"> .st0{fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10;} </style> <path class=\"st0\" d=\"M29,23H3c-1.1,0-2-0.9-2-2V11c0-1.1,0.9-2,2-2h26c1.1,0,2,0.9,2,2v10C31,22.1,30.1,23,29,23z\"/> <path class=\"st0\" d=\"M13,19L13,19c-1.1,0-2-0.9-2-2v-2c0-1.1,0.9-2,2-2h0c1.1,0,2,0.9,2,2v2C15,18.1,14.1,19,13,19z\"/> <line class=\"st0\" x1=\"18\" x2=\"18\" y1=\"13\" y2=\"19\"/> <line class=\"st0\" x1=\"21\" x2=\"18\" y1=\"13\" y2=\"17\"/> <line class=\"st0\" x1=\"21\" x2=\"19\" y1=\"19\" y2=\"16\"/> </svg>"
|
|
25
|
+
|
|
26
|
+
/***/ }),
|
|
27
|
+
|
|
28
|
+
/***/ 28803:
|
|
29
|
+
/***/ (function(module) {
|
|
30
|
+
|
|
31
|
+
"use strict";
|
|
32
|
+
|
|
33
|
+
/*!
|
|
34
|
+
* a-color-picker (https://github.com/narsenico/a-color-picker)
|
|
35
|
+
*
|
|
36
|
+
* Copyright (c) 2017-2018, Gianfranco Caldi.
|
|
37
|
+
* Released under the MIT License.
|
|
38
|
+
*/
|
|
39
|
+
!function (e, t) { true ? module.exports = t() : 0; }("undefined" != typeof self ? self : this, function () {
|
|
40
|
+
return function (e) { var t = {}; function r(i) { if (t[i])
|
|
41
|
+
return t[i].exports; var o = t[i] = { i: i, l: !1, exports: {} }; return e[i].call(o.exports, o, o.exports, r), o.l = !0, o.exports; } return r.m = e, r.c = t, r.d = function (e, t, i) { r.o(e, t) || Object.defineProperty(e, t, { enumerable: !0, get: i }); }, r.r = function (e) { "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, { value: "Module" }), Object.defineProperty(e, "__esModule", { value: !0 }); }, r.t = function (e, t) { if (1 & t && (e = r(e)), 8 & t)
|
|
42
|
+
return e; if (4 & t && "object" == typeof e && e && e.__esModule)
|
|
43
|
+
return e; var i = Object.create(null); if (r.r(i), Object.defineProperty(i, "default", { enumerable: !0, value: e }), 2 & t && "string" != typeof e)
|
|
44
|
+
for (var o in e)
|
|
45
|
+
r.d(i, o, function (t) { return e[t]; }.bind(null, o)); return i; }, r.n = function (e) { var t = e && e.__esModule ? function () { return e.default; } : function () { return e; }; return r.d(t, "a", t), t; }, r.o = function (e, t) { return Object.prototype.hasOwnProperty.call(e, t); }, r.p = "", r(r.s = 1); }([function (e, t, r) {
|
|
46
|
+
"use strict";
|
|
47
|
+
/*!
|
|
48
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
49
|
+
*
|
|
50
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
51
|
+
* Released under the MIT License.
|
|
52
|
+
*/ var i = r(3);
|
|
53
|
+
function o(e) { return !0 === i(e) && "[object Object]" === Object.prototype.toString.call(e); }
|
|
54
|
+
e.exports = function (e) { var t, r; return !1 !== o(e) && "function" == typeof (t = e.constructor) && !1 !== o(r = t.prototype) && !1 !== r.hasOwnProperty("isPrototypeOf"); };
|
|
55
|
+
}, function (e, t, r) {
|
|
56
|
+
"use strict";
|
|
57
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), t.VERSION = t.PALETTE_MATERIAL_CHROME = t.PALETTE_MATERIAL_500 = t.COLOR_NAMES = t.getLuminance = t.intToRgb = t.rgbToInt = t.rgbToHsv = t.rgbToHsl = t.hslToRgb = t.rgbToHex = t.parseColor = t.parseColorToHsla = t.parseColorToHsl = t.parseColorToRgba = t.parseColorToRgb = t.from = t.createPicker = void 0;
|
|
58
|
+
var i = function () { function e(e, t) { for (var r = 0; r < t.length; r++) {
|
|
59
|
+
var i = t[r];
|
|
60
|
+
i.enumerable = i.enumerable || !1, i.configurable = !0, "value" in i && (i.writable = !0), Object.defineProperty(e, i.key, i);
|
|
61
|
+
} } return function (t, r, i) { return r && e(t.prototype, r), i && e(t, i), t; }; }(), o = function (e, t) { if (Array.isArray(e))
|
|
62
|
+
return e; if (Symbol.iterator in Object(e))
|
|
63
|
+
return function (e, t) { var r = [], i = !0, o = !1, n = void 0; try {
|
|
64
|
+
for (var s, a = e[Symbol.iterator](); !(i = (s = a.next()).done) && (r.push(s.value), !t || r.length !== t); i = !0)
|
|
65
|
+
;
|
|
66
|
+
}
|
|
67
|
+
catch (e) {
|
|
68
|
+
o = !0, n = e;
|
|
69
|
+
}
|
|
70
|
+
finally {
|
|
71
|
+
try {
|
|
72
|
+
!i && a.return && a.return();
|
|
73
|
+
}
|
|
74
|
+
finally {
|
|
75
|
+
if (o)
|
|
76
|
+
throw n;
|
|
77
|
+
}
|
|
78
|
+
} return r; }(e, t); throw new TypeError("Invalid attempt to destructure non-iterable instance"); }, n = r(2), s = l(r(0)), a = l(r(4));
|
|
79
|
+
function l(e) { return e && e.__esModule ? e : { default: e }; }
|
|
80
|
+
function c(e, t) { if (!(e instanceof t))
|
|
81
|
+
throw new TypeError("Cannot call a class as a function"); }
|
|
82
|
+
function u(e) { if (Array.isArray(e)) {
|
|
83
|
+
for (var t = 0, r = Array(e.length); t < e.length; t++)
|
|
84
|
+
r[t] = e[t];
|
|
85
|
+
return r;
|
|
86
|
+
} return Array.from(e); }
|
|
87
|
+
/*!
|
|
88
|
+
* a-color-picker
|
|
89
|
+
* https://github.com/narsenico/a-color-picker
|
|
90
|
+
*
|
|
91
|
+
* Copyright (c) 2017-2019, Gianfranco Caldi.
|
|
92
|
+
* Released under the MIT License.
|
|
93
|
+
*/ var h = "undefined" != typeof window && window.navigator.userAgent.indexOf("Edge") > -1, p = "undefined" != typeof window && window.navigator.userAgent.indexOf("rv:") > -1, d = { id: null, attachTo: "body", showHSL: !0, showRGB: !0, showHEX: !0, showAlpha: !1, color: "#ff0000", palette: null, paletteEditable: !1, useAlphaInPalette: "auto", slBarSize: [232, 150], hueBarSize: [150, 11], alphaBarSize: [150, 11] }, f = "COLOR", g = "RGBA_USER", b = "HSLA_USER";
|
|
94
|
+
function v(e, t, r) { return e ? e instanceof HTMLElement ? e : e instanceof NodeList ? e[0] : "string" == typeof e ? document.querySelector(e) : e.jquery ? e.get(0) : r ? t : null : t; }
|
|
95
|
+
function m(e) { var t = e.getContext("2d"), r = +e.width, i = +e.height, s = t.createLinearGradient(1, 1, 1, i - 1); return s.addColorStop(0, "white"), s.addColorStop(1, "black"), { setHue: function (e) { var o = t.createLinearGradient(1, 0, r - 1, 0); o.addColorStop(0, "hsla(" + e + ", 100%, 50%, 0)"), o.addColorStop(1, "hsla(" + e + ", 100%, 50%, 1)"), t.fillStyle = s, t.fillRect(0, 0, r, i), t.fillStyle = o, t.globalCompositeOperation = "multiply", t.fillRect(0, 0, r, i), t.globalCompositeOperation = "source-over"; }, grabColor: function (e, r) { return t.getImageData(e, r, 1, 1).data; }, findColor: function (e, t, s) { var a = (0, n.rgbToHsv)(e, t, s), l = o(a, 3), c = l[1], u = l[2]; return [c * r, i - u * i]; } }; }
|
|
96
|
+
function A(e, t, r) { return null === e ? t : /^\s*$/.test(e) ? r : !!/true|yes|1/i.test(e) || !/false|no|0/i.test(e) && t; }
|
|
97
|
+
function y(e, t, r) { if (null === e)
|
|
98
|
+
return t; if (/^\s*$/.test(e))
|
|
99
|
+
return r; var i = e.split(",").map(Number); return 2 === i.length && i[0] && i[1] ? i : t; }
|
|
100
|
+
var k = function () { function e(t, r) { if (c(this, e), r ? (t = v(t), this.options = Object.assign({}, d, r)) : t && (0, s.default)(t) ? (this.options = Object.assign({}, d, t), t = v(this.options.attachTo)) : (this.options = Object.assign({}, d), t = v((0, n.nvl)(t, this.options.attachTo))), !t)
|
|
101
|
+
throw new Error("Container not found: " + this.options.attachTo); !function (e, t) { var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : "acp-"; if (t.hasAttribute(r + "show-hsl") && (e.showHSL = A(t.getAttribute(r + "show-hsl"), d.showHSL, !0)), t.hasAttribute(r + "show-rgb") && (e.showRGB = A(t.getAttribute(r + "show-rgb"), d.showRGB, !0)), t.hasAttribute(r + "show-hex") && (e.showHEX = A(t.getAttribute(r + "show-hex"), d.showHEX, !0)), t.hasAttribute(r + "show-alpha") && (e.showAlpha = A(t.getAttribute(r + "show-alpha"), d.showAlpha, !0)), t.hasAttribute(r + "palette-editable") && (e.paletteEditable = A(t.getAttribute(r + "palette-editable"), d.paletteEditable, !0)), t.hasAttribute(r + "sl-bar-size") && (e.slBarSize = y(t.getAttribute(r + "sl-bar-size"), d.slBarSize, [232, 150])), t.hasAttribute(r + "hue-bar-size") && (e.hueBarSize = y(t.getAttribute(r + "hue-bar-size"), d.hueBarSize, [150, 11]), e.alphaBarSize = e.hueBarSize), t.hasAttribute(r + "palette")) {
|
|
102
|
+
var i = t.getAttribute(r + "palette");
|
|
103
|
+
switch (i) {
|
|
104
|
+
case "PALETTE_MATERIAL_500":
|
|
105
|
+
e.palette = n.PALETTE_MATERIAL_500;
|
|
106
|
+
break;
|
|
107
|
+
case "PALETTE_MATERIAL_CHROME":
|
|
108
|
+
case "":
|
|
109
|
+
e.palette = n.PALETTE_MATERIAL_CHROME;
|
|
110
|
+
break;
|
|
111
|
+
default: e.palette = i.split(/[;|]/);
|
|
112
|
+
}
|
|
113
|
+
} t.hasAttribute(r + "color") && (e.color = t.getAttribute(r + "color")); }(this.options, t), this.H = 0, this.S = 0, this.L = 0, this.R = 0, this.G = 0, this.B = 0, this.A = 1, this.palette = {}, this.element = document.createElement("div"), this.options.id && (this.element.id = this.options.id), this.element.className = "a-color-picker", this.element.innerHTML = a.default, t.appendChild(this.element); var i = this.element.querySelector(".a-color-picker-h"); this.setupHueCanvas(i), this.hueBarHelper = m(i), this.huePointer = this.element.querySelector(".a-color-picker-h+.a-color-picker-dot"); var o = this.element.querySelector(".a-color-picker-sl"); this.setupSlCanvas(o), this.slBarHelper = m(o), this.slPointer = this.element.querySelector(".a-color-picker-sl+.a-color-picker-dot"), this.preview = this.element.querySelector(".a-color-picker-preview"), this.setupClipboard(this.preview.querySelector(".a-color-picker-clipbaord")), this.options.showHSL ? (this.setupInput(this.inputH = this.element.querySelector(".a-color-picker-hsl>input[nameref=H]")), this.setupInput(this.inputS = this.element.querySelector(".a-color-picker-hsl>input[nameref=S]")), this.setupInput(this.inputL = this.element.querySelector(".a-color-picker-hsl>input[nameref=L]"))) : this.element.querySelector(".a-color-picker-hsl").remove(), this.options.showRGB ? (this.setupInput(this.inputR = this.element.querySelector(".a-color-picker-rgb>input[nameref=R]")), this.setupInput(this.inputG = this.element.querySelector(".a-color-picker-rgb>input[nameref=G]")), this.setupInput(this.inputB = this.element.querySelector(".a-color-picker-rgb>input[nameref=B]"))) : this.element.querySelector(".a-color-picker-rgb").remove(), this.options.showHEX ? this.setupInput(this.inputRGBHEX = this.element.querySelector("input[nameref=RGBHEX]")) : this.element.querySelector(".a-color-picker-rgbhex").remove(), this.options.paletteEditable || this.options.palette && this.options.palette.length > 0 ? this.setPalette(this.paletteRow = this.element.querySelector(".a-color-picker-palette")) : (this.paletteRow = this.element.querySelector(".a-color-picker-palette"), this.paletteRow.remove()), this.options.showAlpha ? (this.setupAlphaCanvas(this.element.querySelector(".a-color-picker-a")), this.alphaPointer = this.element.querySelector(".a-color-picker-a+.a-color-picker-dot")) : this.element.querySelector(".a-color-picker-alpha").remove(), this.element.style.width = this.options.slBarSize[0] + "px", this.onValueChanged(f, this.options.color); } return i(e, [{ key: "setupHueCanvas", value: function (e) { var t = this; e.width = this.options.hueBarSize[0], e.height = this.options.hueBarSize[1]; for (var r = e.getContext("2d"), i = r.createLinearGradient(0, 0, this.options.hueBarSize[0], 0), o = 0; o <= 1; o += 1 / 360)
|
|
114
|
+
i.addColorStop(o, "hsl(" + 360 * o + ", 100%, 50%)"); r.fillStyle = i, r.fillRect(0, 0, this.options.hueBarSize[0], this.options.hueBarSize[1]); var s = function (r) { var i = (0, n.limit)(r.clientX - e.getBoundingClientRect().left, 0, t.options.hueBarSize[0]), o = Math.round(360 * i / t.options.hueBarSize[0]); t.huePointer.style.left = i - 7 + "px", t.onValueChanged("H", o); }, a = function e() { document.removeEventListener("mousemove", s), document.removeEventListener("mouseup", e); }; e.addEventListener("mousedown", function (e) { s(e), document.addEventListener("mousemove", s), document.addEventListener("mouseup", a); }); } }, { key: "setupSlCanvas", value: function (e) { var t = this; e.width = this.options.slBarSize[0], e.height = this.options.slBarSize[1]; var r = function (r) { var i = (0, n.limit)(r.clientX - e.getBoundingClientRect().left, 0, t.options.slBarSize[0] - 1), o = (0, n.limit)(r.clientY - e.getBoundingClientRect().top, 0, t.options.slBarSize[1] - 1), s = t.slBarHelper.grabColor(i, o); t.slPointer.style.left = i - 7 + "px", t.slPointer.style.top = o - 7 + "px", t.onValueChanged("RGB", s); }, i = function e() { document.removeEventListener("mousemove", r), document.removeEventListener("mouseup", e); }; e.addEventListener("mousedown", function (e) { r(e), document.addEventListener("mousemove", r), document.addEventListener("mouseup", i); }); } }, { key: "setupAlphaCanvas", value: function (e) { var t = this; e.width = this.options.alphaBarSize[0], e.height = this.options.alphaBarSize[1]; var r = e.getContext("2d"), i = r.createLinearGradient(0, 0, e.width - 1, 0); i.addColorStop(0, "hsla(0, 0%, 50%, 0)"), i.addColorStop(1, "hsla(0, 0%, 50%, 1)"), r.fillStyle = i, r.fillRect(0, 0, this.options.alphaBarSize[0], this.options.alphaBarSize[1]); var o = function (r) { var i = (0, n.limit)(r.clientX - e.getBoundingClientRect().left, 0, t.options.alphaBarSize[0]), o = +(i / t.options.alphaBarSize[0]).toFixed(2); t.alphaPointer.style.left = i - 7 + "px", t.onValueChanged("ALPHA", o); }, s = function e() { document.removeEventListener("mousemove", o), document.removeEventListener("mouseup", e); }; e.addEventListener("mousedown", function (e) { o(e), document.addEventListener("mousemove", o), document.addEventListener("mouseup", s); }); } }, { key: "setupInput", value: function (e) { var t = this, r = +e.min, i = +e.max, o = e.getAttribute("nameref"); e.hasAttribute("select-on-focus") && e.addEventListener("focus", function () { e.select(); }), "text" === e.type ? e.addEventListener("change", function () { t.onValueChanged(o, e.value); }) : ((h || p) && e.addEventListener("keydown", function (s) { "Up" === s.key ? (e.value = (0, n.limit)(+e.value + 1, r, i), t.onValueChanged(o, e.value), s.returnValue = !1) : "Down" === s.key && (e.value = (0, n.limit)(+e.value - 1, r, i), t.onValueChanged(o, e.value), s.returnValue = !1); }), e.addEventListener("change", function () { var s = +e.value; t.onValueChanged(o, (0, n.limit)(s, r, i)); })); } }, { key: "setupClipboard", value: function (e) { var t = this; e.title = "click to copy", e.addEventListener("click", function () { e.value = (0, n.parseColor)([t.R, t.G, t.B, t.A], "hexcss4"), e.select(), document.execCommand("copy"); }); } }, { key: "setPalette", value: function (e) { var t = this, r = "auto" === this.options.useAlphaInPalette ? this.options.showAlpha : this.options.useAlphaInPalette, i = null; switch (this.options.palette) {
|
|
115
|
+
case "PALETTE_MATERIAL_500":
|
|
116
|
+
i = n.PALETTE_MATERIAL_500;
|
|
117
|
+
break;
|
|
118
|
+
case "PALETTE_MATERIAL_CHROME":
|
|
119
|
+
i = n.PALETTE_MATERIAL_CHROME;
|
|
120
|
+
break;
|
|
121
|
+
default: i = (0, n.ensureArray)(this.options.palette);
|
|
122
|
+
} if (this.options.paletteEditable || i.length > 0) {
|
|
123
|
+
var o = function (r, i, o) { var n = e.querySelector('.a-color-picker-palette-color[data-color="' + r + '"]') || document.createElement("div"); n.className = "a-color-picker-palette-color", n.style.backgroundColor = r, n.setAttribute("data-color", r), n.title = r, e.insertBefore(n, i), t.palette[r] = !0, o && t.onPaletteColorAdd(r); }, s = function (r, i) { r ? (e.removeChild(r), t.palette[r.getAttribute("data-color")] = !1, i && t.onPaletteColorRemove(r.getAttribute("data-color"))) : (e.querySelectorAll(".a-color-picker-palette-color[data-color]").forEach(function (t) { e.removeChild(t); }), Object.keys(t.palette).forEach(function (e) { t.palette[e] = !1; }), i && t.onPaletteColorRemove()); };
|
|
124
|
+
if (i.map(function (e) { return (0, n.parseColor)(e, r ? "rgbcss4" : "hex"); }).filter(function (e) { return !!e; }).forEach(function (e) { return o(e); }), this.options.paletteEditable) {
|
|
125
|
+
var a = document.createElement("div");
|
|
126
|
+
a.className = "a-color-picker-palette-color a-color-picker-palette-add", a.innerHTML = "+", e.appendChild(a), e.addEventListener("click", function (e) { /a-color-picker-palette-add/.test(e.target.className) ? e.shiftKey ? s(null, !0) : o(r ? (0, n.parseColor)([t.R, t.G, t.B, t.A], "rgbcss4") : (0, n.rgbToHex)(t.R, t.G, t.B), e.target, !0) : /a-color-picker-palette-color/.test(e.target.className) && (e.shiftKey ? s(e.target, !0) : t.onValueChanged(f, e.target.getAttribute("data-color"))); });
|
|
127
|
+
}
|
|
128
|
+
else
|
|
129
|
+
e.addEventListener("click", function (e) { /a-color-picker-palette-color/.test(e.target.className) && t.onValueChanged(f, e.target.getAttribute("data-color")); });
|
|
130
|
+
}
|
|
131
|
+
else
|
|
132
|
+
e.style.display = "none"; } }, { key: "updatePalette", value: function (e) { this.paletteRow.innerHTML = "", this.palette = {}, this.paletteRow.parentElement || this.element.appendChild(this.paletteRow), this.options.palette = e, this.setPalette(this.paletteRow); } }, { key: "onValueChanged", value: function (e, t) { var r = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : { silent: !1 }; switch (e) {
|
|
133
|
+
case "H":
|
|
134
|
+
this.H = t;
|
|
135
|
+
var i = (0, n.hslToRgb)(this.H, this.S, this.L), s = o(i, 3);
|
|
136
|
+
this.R = s[0], this.G = s[1], this.B = s[2], this.slBarHelper.setHue(t), this.updatePointerH(this.H), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B), this.updateInputRGBHEX(this.R, this.G, this.B);
|
|
137
|
+
break;
|
|
138
|
+
case "S":
|
|
139
|
+
this.S = t;
|
|
140
|
+
var a = (0, n.hslToRgb)(this.H, this.S, this.L), l = o(a, 3);
|
|
141
|
+
this.R = l[0], this.G = l[1], this.B = l[2], this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B), this.updateInputRGBHEX(this.R, this.G, this.B);
|
|
142
|
+
break;
|
|
143
|
+
case "L":
|
|
144
|
+
this.L = t;
|
|
145
|
+
var c = (0, n.hslToRgb)(this.H, this.S, this.L), u = o(c, 3);
|
|
146
|
+
this.R = u[0], this.G = u[1], this.B = u[2], this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B), this.updateInputRGBHEX(this.R, this.G, this.B);
|
|
147
|
+
break;
|
|
148
|
+
case "R":
|
|
149
|
+
this.R = t;
|
|
150
|
+
var h = (0, n.rgbToHsl)(this.R, this.G, this.B), p = o(h, 3);
|
|
151
|
+
this.H = p[0], this.S = p[1], this.L = p[2], this.slBarHelper.setHue(this.H), this.updatePointerH(this.H), this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGBHEX(this.R, this.G, this.B);
|
|
152
|
+
break;
|
|
153
|
+
case "G":
|
|
154
|
+
this.G = t;
|
|
155
|
+
var d = (0, n.rgbToHsl)(this.R, this.G, this.B), v = o(d, 3);
|
|
156
|
+
this.H = v[0], this.S = v[1], this.L = v[2], this.slBarHelper.setHue(this.H), this.updatePointerH(this.H), this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGBHEX(this.R, this.G, this.B);
|
|
157
|
+
break;
|
|
158
|
+
case "B":
|
|
159
|
+
this.B = t;
|
|
160
|
+
var m = (0, n.rgbToHsl)(this.R, this.G, this.B), A = o(m, 3);
|
|
161
|
+
this.H = A[0], this.S = A[1], this.L = A[2], this.slBarHelper.setHue(this.H), this.updatePointerH(this.H), this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGBHEX(this.R, this.G, this.B);
|
|
162
|
+
break;
|
|
163
|
+
case "RGB":
|
|
164
|
+
var y = o(t, 3);
|
|
165
|
+
this.R = y[0], this.G = y[1], this.B = y[2];
|
|
166
|
+
var k = (0, n.rgbToHsl)(this.R, this.G, this.B), F = o(k, 3);
|
|
167
|
+
this.H = F[0], this.S = F[1], this.L = F[2], this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B), this.updateInputRGBHEX(this.R, this.G, this.B);
|
|
168
|
+
break;
|
|
169
|
+
case g:
|
|
170
|
+
var E = o(t, 4);
|
|
171
|
+
this.R = E[0], this.G = E[1], this.B = E[2], this.A = E[3];
|
|
172
|
+
var H = (0, n.rgbToHsl)(this.R, this.G, this.B), B = o(H, 3);
|
|
173
|
+
this.H = B[0], this.S = B[1], this.L = B[2], this.slBarHelper.setHue(this.H), this.updatePointerH(this.H), this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B), this.updateInputRGBHEX(this.R, this.G, this.B), this.updatePointerA(this.A);
|
|
174
|
+
break;
|
|
175
|
+
case b:
|
|
176
|
+
var R = o(t, 4);
|
|
177
|
+
this.H = R[0], this.S = R[1], this.L = R[2], this.A = R[3];
|
|
178
|
+
var C = (0, n.hslToRgb)(this.H, this.S, this.L), S = o(C, 3);
|
|
179
|
+
this.R = S[0], this.G = S[1], this.B = S[2], this.slBarHelper.setHue(this.H), this.updatePointerH(this.H), this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B), this.updateInputRGBHEX(this.R, this.G, this.B), this.updatePointerA(this.A);
|
|
180
|
+
break;
|
|
181
|
+
case "RGBHEX":
|
|
182
|
+
var L = (0, n.cssColorToRgb)(t) || [this.R, this.G, this.B], w = o(L, 3);
|
|
183
|
+
this.R = w[0], this.G = w[1], this.B = w[2];
|
|
184
|
+
var T = (0, n.rgbToHsl)(this.R, this.G, this.B), x = o(T, 3);
|
|
185
|
+
this.H = x[0], this.S = x[1], this.L = x[2], this.slBarHelper.setHue(this.H), this.updatePointerH(this.H), this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B);
|
|
186
|
+
break;
|
|
187
|
+
case f:
|
|
188
|
+
var G = (0, n.parseColor)(t, "rgba") || [0, 0, 0, 1], I = o(G, 4);
|
|
189
|
+
this.R = I[0], this.G = I[1], this.B = I[2], this.A = I[3];
|
|
190
|
+
var P = (0, n.rgbToHsl)(this.R, this.G, this.B), D = o(P, 3);
|
|
191
|
+
this.H = D[0], this.S = D[1], this.L = D[2], this.slBarHelper.setHue(this.H), this.updatePointerH(this.H), this.updatePointerSL(this.H, this.S, this.L), this.updateInputHSL(this.H, this.S, this.L), this.updateInputRGB(this.R, this.G, this.B), this.updateInputRGBHEX(this.R, this.G, this.B), this.updatePointerA(this.A);
|
|
192
|
+
break;
|
|
193
|
+
case "ALPHA": this.A = t;
|
|
194
|
+
} 1 === this.A ? this.preview.style.backgroundColor = "rgb(" + this.R + "," + this.G + "," + this.B + ")" : this.preview.style.backgroundColor = "rgba(" + this.R + "," + this.G + "," + this.B + "," + this.A + ")", r && r.silent || this.onchange && this.onchange(this.preview.style.backgroundColor); } }, { key: "onPaletteColorAdd", value: function (e) { this.oncoloradd && this.oncoloradd(e); } }, { key: "onPaletteColorRemove", value: function (e) { this.oncolorremove && this.oncolorremove(e); } }, { key: "updateInputHSL", value: function (e, t, r) { this.options.showHSL && (this.inputH.value = e, this.inputS.value = t, this.inputL.value = r); } }, { key: "updateInputRGB", value: function (e, t, r) { this.options.showRGB && (this.inputR.value = e, this.inputG.value = t, this.inputB.value = r); } }, { key: "updateInputRGBHEX", value: function (e, t, r) { this.options.showHEX && (this.inputRGBHEX.value = (0, n.rgbToHex)(e, t, r)); } }, { key: "updatePointerH", value: function (e) { var t = this.options.hueBarSize[0] * e / 360; this.huePointer.style.left = t - 7 + "px"; } }, { key: "updatePointerSL", value: function (e, t, r) { var i = (0, n.hslToRgb)(e, t, r), s = o(i, 3), a = s[0], l = s[1], c = s[2], u = this.slBarHelper.findColor(a, l, c), h = o(u, 2), p = h[0], d = h[1]; p >= 0 && (this.slPointer.style.left = p - 7 + "px", this.slPointer.style.top = d - 7 + "px"); } }, { key: "updatePointerA", value: function (e) { if (this.options.showAlpha) {
|
|
195
|
+
var t = this.options.alphaBarSize[0] * e;
|
|
196
|
+
this.alphaPointer.style.left = t - 7 + "px";
|
|
197
|
+
} } }]), e; }(), F = function () { function e(t) { c(this, e), this.name = t, this.listeners = []; } return i(e, [{ key: "on", value: function (e) { e && this.listeners.push(e); } }, { key: "off", value: function (e) { this.listeners = e ? this.listeners.filter(function (t) { return t !== e; }) : []; } }, { key: "emit", value: function (e, t) { for (var r = this.listeners.slice(0), i = 0; i < r.length; i++)
|
|
198
|
+
r[i].apply(t, e); } }]), e; }();
|
|
199
|
+
function E(e, t) { var r = new k(e, t), i = { change: new F("change"), coloradd: new F("coloradd"), colorremove: new F("colorremove") }, s = !0, a = {}, l = { get element() { return r.element; }, get rgb() { return [r.R, r.G, r.B]; }, set rgb(e) { var t = o(e, 3), i = t[0], s = t[1], a = t[2], l = [(0, n.limit)(i, 0, 255), (0, n.limit)(s, 0, 255), (0, n.limit)(a, 0, 255)]; i = l[0], s = l[1], a = l[2], r.onValueChanged(g, [i, s, a, 1]); }, get hsl() { return [r.H, r.S, r.L]; }, set hsl(e) { var t = o(e, 3), i = t[0], s = t[1], a = t[2], l = [(0, n.limit)(i, 0, 360), (0, n.limit)(s, 0, 100), (0, n.limit)(a, 0, 100)]; i = l[0], s = l[1], a = l[2], r.onValueChanged(b, [i, s, a, 1]); }, get rgbhex() { return this.all.hex; }, get rgba() { return [r.R, r.G, r.B, r.A]; }, set rgba(e) { var t = o(e, 4), i = t[0], s = t[1], a = t[2], l = t[3], c = [(0, n.limit)(i, 0, 255), (0, n.limit)(s, 0, 255), (0, n.limit)(a, 0, 255), (0, n.limit)(l, 0, 1)]; i = c[0], s = c[1], a = c[2], l = c[3], r.onValueChanged(g, [i, s, a, l]); }, get hsla() { return [r.H, r.S, r.L, r.A]; }, set hsla(e) { var t = o(e, 4), i = t[0], s = t[1], a = t[2], l = t[3], c = [(0, n.limit)(i, 0, 360), (0, n.limit)(s, 0, 100), (0, n.limit)(a, 0, 100), (0, n.limit)(l, 0, 1)]; i = c[0], s = c[1], a = c[2], l = c[3], r.onValueChanged(b, [i, s, a, l]); }, get color() { return this.all.toString(); }, set color(e) { r.onValueChanged(f, e); }, setColor: function (e) { var t = arguments.length > 1 && void 0 !== arguments[1] && arguments[1]; r.onValueChanged(f, e, { silent: t }); }, get all() { if (s) {
|
|
200
|
+
var e = [r.R, r.G, r.B, r.A], t = r.A < 1 ? "rgba(" + r.R + "," + r.G + "," + r.B + "," + r.A + ")" : n.rgbToHex.apply(void 0, e);
|
|
201
|
+
(a = (0, n.parseColor)(e, a)).toString = function () { return t; }, s = !1;
|
|
202
|
+
} return Object.assign({}, a); }, get onchange() { return i.change && i.change.listeners[0]; }, set onchange(e) { this.off("change").on("change", e); }, get oncoloradd() { return i.coloradd && i.coloradd.listeners[0]; }, set oncoloradd(e) { this.off("coloradd").on("coloradd", e); }, get oncolorremove() { return i.colorremove && i.colorremove.listeners[0]; }, set oncolorremove(e) { this.off("colorremove").on("colorremove", e); }, get palette() { return Object.keys(r.palette).filter(function (e) { return r.palette[e]; }); }, set palette(e) { r.updatePalette(e); }, show: function () { r.element.classList.remove("hidden"); }, hide: function () { r.element.classList.add("hidden"); }, toggle: function () { r.element.classList.toggle("hidden"); }, on: function (e, t) { return e && i[e] && i[e].on(t), this; }, off: function (e, t) { return e && i[e] && i[e].off(t), this; }, destroy: function () { i.change.off(), i.coloradd.off(), i.colorremove.off(), r.element.remove(), i = null, r = null; } }; return r.onchange = function () { for (var e = arguments.length, t = Array(e), r = 0; r < e; r++)
|
|
203
|
+
t[r] = arguments[r]; s = !0, i.change.emit([l].concat(t), l); }, r.oncoloradd = function () { for (var e = arguments.length, t = Array(e), r = 0; r < e; r++)
|
|
204
|
+
t[r] = arguments[r]; i.coloradd.emit([l].concat(t), l); }, r.oncolorremove = function () { for (var e = arguments.length, t = Array(e), r = 0; r < e; r++)
|
|
205
|
+
t[r] = arguments[r]; i.colorremove.emit([l].concat(t), l); }, r.element.ctrl = l, l; }
|
|
206
|
+
if ("undefined" != typeof window && !document.querySelector('head>style[data-source="a-color-picker"]')) {
|
|
207
|
+
var H = r(5).toString(), B = document.createElement("style");
|
|
208
|
+
B.setAttribute("type", "text/css"), B.setAttribute("data-source", "a-color-picker"), B.innerHTML = H, document.querySelector("head").appendChild(B);
|
|
209
|
+
}
|
|
210
|
+
t.createPicker = E, t.from = function (e, t) { var r = function (e) { return e ? Array.isArray(e) ? e : e instanceof HTMLElement ? [e] : e instanceof NodeList ? [].concat(u(e)) : "string" == typeof e ? [].concat(u(document.querySelectorAll(e))) : e.jquery ? e.get() : [] : []; }(e).map(function (e, r) { var i = E(e, t); return i.index = r, i; }); return r.on = function (e, t) { return r.forEach(function (r) { return r.on(e, t); }), this; }, r.off = function (e) { return r.forEach(function (t) { return t.off(e); }), this; }, r; }, t.parseColorToRgb = n.parseColorToRgb, t.parseColorToRgba = n.parseColorToRgba, t.parseColorToHsl = n.parseColorToHsl, t.parseColorToHsla = n.parseColorToHsla, t.parseColor = n.parseColor, t.rgbToHex = n.rgbToHex, t.hslToRgb = n.hslToRgb, t.rgbToHsl = n.rgbToHsl, t.rgbToHsv = n.rgbToHsv, t.rgbToInt = n.rgbToInt, t.intToRgb = n.intToRgb, t.getLuminance = n.getLuminance, t.COLOR_NAMES = n.COLOR_NAMES, t.PALETTE_MATERIAL_500 = n.PALETTE_MATERIAL_500, t.PALETTE_MATERIAL_CHROME = n.PALETTE_MATERIAL_CHROME, t.VERSION = "1.2.1";
|
|
211
|
+
}, function (e, t, r) {
|
|
212
|
+
"use strict";
|
|
213
|
+
Object.defineProperty(t, "__esModule", { value: !0 }), t.nvl = t.ensureArray = t.limit = t.getLuminance = t.parseColor = t.parseColorToHsla = t.parseColorToHsl = t.cssHslaToHsla = t.cssHslToHsl = t.parseColorToRgba = t.parseColorToRgb = t.cssRgbaToRgba = t.cssRgbToRgb = t.cssColorToRgba = t.cssColorToRgb = t.intToRgb = t.rgbToInt = t.rgbToHsv = t.rgbToHsl = t.hslToRgb = t.rgbToHex = t.PALETTE_MATERIAL_CHROME = t.PALETTE_MATERIAL_500 = t.COLOR_NAMES = void 0;
|
|
214
|
+
var i = function (e, t) { if (Array.isArray(e))
|
|
215
|
+
return e; if (Symbol.iterator in Object(e))
|
|
216
|
+
return function (e, t) { var r = [], i = !0, o = !1, n = void 0; try {
|
|
217
|
+
for (var s, a = e[Symbol.iterator](); !(i = (s = a.next()).done) && (r.push(s.value), !t || r.length !== t); i = !0)
|
|
218
|
+
;
|
|
219
|
+
}
|
|
220
|
+
catch (e) {
|
|
221
|
+
o = !0, n = e;
|
|
222
|
+
}
|
|
223
|
+
finally {
|
|
224
|
+
try {
|
|
225
|
+
!i && a.return && a.return();
|
|
226
|
+
}
|
|
227
|
+
finally {
|
|
228
|
+
if (o)
|
|
229
|
+
throw n;
|
|
230
|
+
}
|
|
231
|
+
} return r; }(e, t); throw new TypeError("Invalid attempt to destructure non-iterable instance"); }, o = function (e) { return e && e.__esModule ? e : { default: e }; }(r(0));
|
|
232
|
+
function n(e) { if (Array.isArray(e)) {
|
|
233
|
+
for (var t = 0, r = Array(e.length); t < e.length; t++)
|
|
234
|
+
r[t] = e[t];
|
|
235
|
+
return r;
|
|
236
|
+
} return Array.from(e); }
|
|
237
|
+
var s = { aliceblue: "#F0F8FF", antiquewhite: "#FAEBD7", aqua: "#00FFFF", aquamarine: "#7FFFD4", azure: "#F0FFFF", beige: "#F5F5DC", bisque: "#FFE4C4", black: "#000000", blanchedalmond: "#FFEBCD", blue: "#0000FF", blueviolet: "#8A2BE2", brown: "#A52A2A", burlywood: "#DEB887", cadetblue: "#5F9EA0", chartreuse: "#7FFF00", chocolate: "#D2691E", coral: "#FF7F50", cornflowerblue: "#6495ED", cornsilk: "#FFF8DC", crimson: "#DC143C", cyan: "#00FFFF", darkblue: "#00008B", darkcyan: "#008B8B", darkgoldenrod: "#B8860B", darkgray: "#A9A9A9", darkgrey: "#A9A9A9", darkgreen: "#006400", darkkhaki: "#BDB76B", darkmagenta: "#8B008B", darkolivegreen: "#556B2F", darkorange: "#FF8C00", darkorchid: "#9932CC", darkred: "#8B0000", darksalmon: "#E9967A", darkseagreen: "#8FBC8F", darkslateblue: "#483D8B", darkslategray: "#2F4F4F", darkslategrey: "#2F4F4F", darkturquoise: "#00CED1", darkviolet: "#9400D3", deeppink: "#FF1493", deepskyblue: "#00BFFF", dimgray: "#696969", dimgrey: "#696969", dodgerblue: "#1E90FF", firebrick: "#B22222", floralwhite: "#FFFAF0", forestgreen: "#228B22", fuchsia: "#FF00FF", gainsboro: "#DCDCDC", ghostwhite: "#F8F8FF", gold: "#FFD700", goldenrod: "#DAA520", gray: "#808080", grey: "#808080", green: "#008000", greenyellow: "#ADFF2F", honeydew: "#F0FFF0", hotpink: "#FF69B4", "indianred ": "#CD5C5C", "indigo ": "#4B0082", ivory: "#FFFFF0", khaki: "#F0E68C", lavender: "#E6E6FA", lavenderblush: "#FFF0F5", lawngreen: "#7CFC00", lemonchiffon: "#FFFACD", lightblue: "#ADD8E6", lightcoral: "#F08080", lightcyan: "#E0FFFF", lightgoldenrodyellow: "#FAFAD2", lightgray: "#D3D3D3", lightgrey: "#D3D3D3", lightgreen: "#90EE90", lightpink: "#FFB6C1", lightsalmon: "#FFA07A", lightseagreen: "#20B2AA", lightskyblue: "#87CEFA", lightslategray: "#778899", lightslategrey: "#778899", lightsteelblue: "#B0C4DE", lightyellow: "#FFFFE0", lime: "#00FF00", limegreen: "#32CD32", linen: "#FAF0E6", magenta: "#FF00FF", maroon: "#800000", mediumaquamarine: "#66CDAA", mediumblue: "#0000CD", mediumorchid: "#BA55D3", mediumpurple: "#9370DB", mediumseagreen: "#3CB371", mediumslateblue: "#7B68EE", mediumspringgreen: "#00FA9A", mediumturquoise: "#48D1CC", mediumvioletred: "#C71585", midnightblue: "#191970", mintcream: "#F5FFFA", mistyrose: "#FFE4E1", moccasin: "#FFE4B5", navajowhite: "#FFDEAD", navy: "#000080", oldlace: "#FDF5E6", olive: "#808000", olivedrab: "#6B8E23", orange: "#FFA500", orangered: "#FF4500", orchid: "#DA70D6", palegoldenrod: "#EEE8AA", palegreen: "#98FB98", paleturquoise: "#AFEEEE", palevioletred: "#DB7093", papayawhip: "#FFEFD5", peachpuff: "#FFDAB9", peru: "#CD853F", pink: "#FFC0CB", plum: "#DDA0DD", powderblue: "#B0E0E6", purple: "#800080", rebeccapurple: "#663399", red: "#FF0000", rosybrown: "#BC8F8F", royalblue: "#4169E1", saddlebrown: "#8B4513", salmon: "#FA8072", sandybrown: "#F4A460", seagreen: "#2E8B57", seashell: "#FFF5EE", sienna: "#A0522D", silver: "#C0C0C0", skyblue: "#87CEEB", slateblue: "#6A5ACD", slategray: "#708090", slategrey: "#708090", snow: "#FFFAFA", springgreen: "#00FF7F", steelblue: "#4682B4", tan: "#D2B48C", teal: "#008080", thistle: "#D8BFD8", tomato: "#FF6347", turquoise: "#40E0D0", violet: "#EE82EE", wheat: "#F5DEB3", white: "#FFFFFF", whitesmoke: "#F5F5F5", yellow: "#FFFF00", yellowgreen: "#9ACD32" };
|
|
238
|
+
function a(e, t, r) { return e = +e, isNaN(e) ? t : e < t ? t : e > r ? r : e; }
|
|
239
|
+
function l(e, t) { return null == e ? t : e; }
|
|
240
|
+
function c(e, t, r) { var i = [a(e, 0, 255), a(t, 0, 255), a(r, 0, 255)]; return "#" + ("000000" + ((e = i[0]) << 16 | (t = i[1]) << 8 | (r = i[2])).toString(16)).slice(-6); }
|
|
241
|
+
function u(e, t, r) { var i = void 0, o = void 0, n = void 0, s = [a(e, 0, 360) / 360, a(t, 0, 100) / 100, a(r, 0, 100) / 100]; if (e = s[0], r = s[2], 0 == (t = s[1]))
|
|
242
|
+
i = o = n = r;
|
|
243
|
+
else {
|
|
244
|
+
var l = function (e, t, r) { return r < 0 && (r += 1), r > 1 && (r -= 1), r < 1 / 6 ? e + 6 * (t - e) * r : r < .5 ? t : r < 2 / 3 ? e + (t - e) * (2 / 3 - r) * 6 : e; }, c = r < .5 ? r * (1 + t) : r + t - r * t, u = 2 * r - c;
|
|
245
|
+
i = l(u, c, e + 1 / 3), o = l(u, c, e), n = l(u, c, e - 1 / 3);
|
|
246
|
+
} return [255 * i, 255 * o, 255 * n].map(Math.round); }
|
|
247
|
+
function h(e, t, r) { var i = [a(e, 0, 255) / 255, a(t, 0, 255) / 255, a(r, 0, 255) / 255]; e = i[0], t = i[1], r = i[2]; var o = Math.max(e, t, r), n = Math.min(e, t, r), s = void 0, l = void 0, c = (o + n) / 2; if (o == n)
|
|
248
|
+
s = l = 0;
|
|
249
|
+
else {
|
|
250
|
+
var u = o - n;
|
|
251
|
+
switch (l = c > .5 ? u / (2 - o - n) : u / (o + n), o) {
|
|
252
|
+
case e:
|
|
253
|
+
s = (t - r) / u + (t < r ? 6 : 0);
|
|
254
|
+
break;
|
|
255
|
+
case t:
|
|
256
|
+
s = (r - e) / u + 2;
|
|
257
|
+
break;
|
|
258
|
+
case r: s = (e - t) / u + 4;
|
|
259
|
+
}
|
|
260
|
+
s /= 6;
|
|
261
|
+
} return [360 * s, 100 * l, 100 * c].map(Math.round); }
|
|
262
|
+
function p(e, t, r) { return e << 16 | t << 8 | r; }
|
|
263
|
+
function d(e) { if (e) {
|
|
264
|
+
var t = s[e.toString().toLowerCase()], r = /^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F]))|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})))\s*$/i.exec(t || e) || [], o = i(r, 10), n = o[3], a = o[4], l = o[5], c = o[7], u = o[8], h = o[9];
|
|
265
|
+
if (void 0 !== n)
|
|
266
|
+
return [parseInt(n + n, 16), parseInt(a + a, 16), parseInt(l + l, 16)];
|
|
267
|
+
if (void 0 !== c)
|
|
268
|
+
return [parseInt(c, 16), parseInt(u, 16), parseInt(h, 16)];
|
|
269
|
+
} }
|
|
270
|
+
function f(e) { if (e) {
|
|
271
|
+
var t = s[e.toString().toLowerCase()], r = /^\s*#?((([0-9A-F])([0-9A-F])([0-9A-F])([0-9A-F])?)|(([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})?))\s*$/i.exec(t || e) || [], o = i(r, 12), n = o[3], a = o[4], l = o[5], c = o[6], u = o[8], h = o[9], p = o[10], d = o[11];
|
|
272
|
+
if (void 0 !== n)
|
|
273
|
+
return [parseInt(n + n, 16), parseInt(a + a, 16), parseInt(l + l, 16), c ? +(parseInt(c + c, 16) / 255).toFixed(2) : 1];
|
|
274
|
+
if (void 0 !== u)
|
|
275
|
+
return [parseInt(u, 16), parseInt(h, 16), parseInt(p, 16), d ? +(parseInt(d, 16) / 255).toFixed(2) : 1];
|
|
276
|
+
} }
|
|
277
|
+
function g(e) { if (e) {
|
|
278
|
+
var t = /^rgb\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(e) || [], r = i(t, 4), o = r[0], n = r[1], s = r[2], l = r[3];
|
|
279
|
+
return o ? [a(n, 0, 255), a(s, 0, 255), a(l, 0, 255)] : void 0;
|
|
280
|
+
} }
|
|
281
|
+
function b(e) { if (e) {
|
|
282
|
+
var t = /^rgba?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(e) || [], r = i(t, 6), o = r[0], n = r[1], s = r[2], c = r[3], u = r[5];
|
|
283
|
+
return o ? [a(n, 0, 255), a(s, 0, 255), a(c, 0, 255), a(l(u, 1), 0, 1)] : void 0;
|
|
284
|
+
} }
|
|
285
|
+
function v(e) { if (Array.isArray(e))
|
|
286
|
+
return [a(e[0], 0, 255), a(e[1], 0, 255), a(e[2], 0, 255), a(l(e[3], 1), 0, 1)]; var t = f(e) || b(e); return t && 3 === t.length && t.push(1), t; }
|
|
287
|
+
function m(e) { if (e) {
|
|
288
|
+
var t = /^hsl\((\d+)[\s,](\d+)[\s,](\d+)\)/i.exec(e) || [], r = i(t, 4), o = r[0], n = r[1], s = r[2], l = r[3];
|
|
289
|
+
return o ? [a(n, 0, 360), a(s, 0, 100), a(l, 0, 100)] : void 0;
|
|
290
|
+
} }
|
|
291
|
+
function A(e) { if (e) {
|
|
292
|
+
var t = /^hsla?\((\d+)\s*[\s,]\s*(\d+)\s*[\s,]\s*(\d+)(\s*[\s,]\s*(\d*(.\d+)?))?\)/i.exec(e) || [], r = i(t, 6), o = r[0], n = r[1], s = r[2], c = r[3], u = r[5];
|
|
293
|
+
return o ? [a(n, 0, 255), a(s, 0, 255), a(c, 0, 255), a(l(u, 1), 0, 1)] : void 0;
|
|
294
|
+
} }
|
|
295
|
+
function y(e) { if (Array.isArray(e))
|
|
296
|
+
return [a(e[0], 0, 360), a(e[1], 0, 100), a(e[2], 0, 100), a(l(e[3], 1), 0, 1)]; var t = A(e); return t && 3 === t.length && t.push(1), t; }
|
|
297
|
+
function k(e, t) { switch (t) {
|
|
298
|
+
case "rgb":
|
|
299
|
+
default: return e.slice(0, 3);
|
|
300
|
+
case "rgbcss": return "rgb(" + e[0] + ", " + e[1] + ", " + e[2] + ")";
|
|
301
|
+
case "rgbcss4": return "rgb(" + e[0] + ", " + e[1] + ", " + e[2] + ", " + e[3] + ")";
|
|
302
|
+
case "rgba": return e;
|
|
303
|
+
case "rgbacss": return "rgba(" + e[0] + ", " + e[1] + ", " + e[2] + ", " + e[3] + ")";
|
|
304
|
+
case "hsl": return h.apply(void 0, n(e));
|
|
305
|
+
case "hslcss": return "hsl(" + (e = h.apply(void 0, n(e)))[0] + ", " + e[1] + ", " + e[2] + ")";
|
|
306
|
+
case "hslcss4":
|
|
307
|
+
var r = h.apply(void 0, n(e));
|
|
308
|
+
return "hsl(" + r[0] + ", " + r[1] + ", " + r[2] + ", " + e[3] + ")";
|
|
309
|
+
case "hsla": return [].concat(n(h.apply(void 0, n(e))), [e[3]]);
|
|
310
|
+
case "hslacss":
|
|
311
|
+
var i = h.apply(void 0, n(e));
|
|
312
|
+
return "hsla(" + i[0] + ", " + i[1] + ", " + i[2] + ", " + e[3] + ")";
|
|
313
|
+
case "hex": return c.apply(void 0, n(e));
|
|
314
|
+
case "hexcss4": return c.apply(void 0, n(e)) + ("00" + parseInt(255 * e[3]).toString(16)).slice(-2);
|
|
315
|
+
case "int": return p.apply(void 0, n(e));
|
|
316
|
+
} }
|
|
317
|
+
t.COLOR_NAMES = s, t.PALETTE_MATERIAL_500 = ["#F44336", "#E91E63", "#E91E63", "#9C27B0", "#9C27B0", "#673AB7", "#673AB7", "#3F51B5", "#3F51B5", "#2196F3", "#2196F3", "#03A9F4", "#03A9F4", "#00BCD4", "#00BCD4", "#009688", "#009688", "#4CAF50", "#4CAF50", "#8BC34A", "#8BC34A", "#CDDC39", "#CDDC39", "#FFEB3B", "#FFEB3B", "#FFC107", "#FFC107", "#FF9800", "#FF9800", "#FF5722", "#FF5722", "#795548", "#795548", "#9E9E9E", "#9E9E9E", "#607D8B", "#607D8B"], t.PALETTE_MATERIAL_CHROME = ["#f44336", "#e91e63", "#9c27b0", "#673ab7", "#3f51b5", "#2196f3", "#03a9f4", "#00bcd4", "#009688", "#4caf50", "#8bc34a", "#cddc39", "#ffeb3b", "#ffc107", "#ff9800", "#ff5722", "#795548", "#9e9e9e", "#607d8b"], t.rgbToHex = c, t.hslToRgb = u, t.rgbToHsl = h, t.rgbToHsv = function (e, t, r) { var i = [a(e, 0, 255) / 255, a(t, 0, 255) / 255, a(r, 0, 255) / 255]; e = i[0], t = i[1], r = i[2]; var o, n = Math.max(e, t, r), s = Math.min(e, t, r), l = void 0, c = n, u = n - s; if (o = 0 === n ? 0 : u / n, n == s)
|
|
318
|
+
l = 0;
|
|
319
|
+
else {
|
|
320
|
+
switch (n) {
|
|
321
|
+
case e:
|
|
322
|
+
l = (t - r) / u + (t < r ? 6 : 0);
|
|
323
|
+
break;
|
|
324
|
+
case t:
|
|
325
|
+
l = (r - e) / u + 2;
|
|
326
|
+
break;
|
|
327
|
+
case r: l = (e - t) / u + 4;
|
|
328
|
+
}
|
|
329
|
+
l /= 6;
|
|
330
|
+
} return [l, o, c]; }, t.rgbToInt = p, t.intToRgb = function (e) { return [e >> 16 & 255, e >> 8 & 255, 255 & e]; }, t.cssColorToRgb = d, t.cssColorToRgba = f, t.cssRgbToRgb = g, t.cssRgbaToRgba = b, t.parseColorToRgb = function (e) { return Array.isArray(e) ? e = [a(e[0], 0, 255), a(e[1], 0, 255), a(e[2], 0, 255)] : d(e) || g(e); }, t.parseColorToRgba = v, t.cssHslToHsl = m, t.cssHslaToHsla = A, t.parseColorToHsl = function (e) { return Array.isArray(e) ? e = [a(e[0], 0, 360), a(e[1], 0, 100), a(e[2], 0, 100)] : m(e); }, t.parseColorToHsla = y, t.parseColor = function (e, t) { if (t = t || "rgb", null != e) {
|
|
331
|
+
var r = void 0;
|
|
332
|
+
if ((r = v(e)) || (r = y(e)) && (r = [].concat(n(u.apply(void 0, n(r))), [r[3]])))
|
|
333
|
+
return (0, o.default)(t) ? ["rgb", "rgbcss", "rgbcss4", "rgba", "rgbacss", "hsl", "hslcss", "hslcss4", "hsla", "hslacss", "hex", "hexcss4", "int"].reduce(function (e, t) { return e[t] = k(r, t), e; }, t || {}) : k(r, t.toString().toLowerCase());
|
|
334
|
+
} }, t.getLuminance = function (e, t, r) { return .2126 * (e = (e /= 255) < .03928 ? e / 12.92 : Math.pow((e + .055) / 1.055, 2.4)) + .7152 * (t = (t /= 255) < .03928 ? t / 12.92 : Math.pow((t + .055) / 1.055, 2.4)) + .0722 * ((r /= 255) < .03928 ? r / 12.92 : Math.pow((r + .055) / 1.055, 2.4)); }, t.limit = a, t.ensureArray = function (e) { return e ? Array.from(e) : []; }, t.nvl = l;
|
|
335
|
+
}, function (e, t, r) {
|
|
336
|
+
"use strict";
|
|
337
|
+
/*!
|
|
338
|
+
* isobject <https://github.com/jonschlinkert/isobject>
|
|
339
|
+
*
|
|
340
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
341
|
+
* Released under the MIT License.
|
|
342
|
+
*/ e.exports = function (e) { return null != e && "object" == typeof e && !1 === Array.isArray(e); };
|
|
343
|
+
}, function (e, t) { e.exports = '<div class="a-color-picker-row a-color-picker-stack a-color-picker-row-top"> <canvas class="a-color-picker-sl a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> <div class=a-color-picker-row> <div class="a-color-picker-stack a-color-picker-transparent a-color-picker-circle"> <div class=a-color-picker-preview> <input class=a-color-picker-clipbaord type=text> </div> </div> <div class=a-color-picker-column> <div class="a-color-picker-cell a-color-picker-stack"> <canvas class=a-color-picker-h></canvas> <div class=a-color-picker-dot></div> </div> <div class="a-color-picker-cell a-color-picker-alpha a-color-picker-stack" show-on-alpha> <canvas class="a-color-picker-a a-color-picker-transparent"></canvas> <div class=a-color-picker-dot></div> </div> </div> </div> <div class="a-color-picker-row a-color-picker-hsl" show-on-hsl> <label>H</label> <input nameref=H type=number maxlength=3 min=0 max=360 value=0> <label>S</label> <input nameref=S type=number maxlength=3 min=0 max=100 value=0> <label>L</label> <input nameref=L type=number maxlength=3 min=0 max=100 value=0> </div> <div class="a-color-picker-row a-color-picker-rgb" show-on-rgb> <label>R</label> <input nameref=R type=number maxlength=3 min=0 max=255 value=0> <label>G</label> <input nameref=G type=number maxlength=3 min=0 max=255 value=0> <label>B</label> <input nameref=B type=number maxlength=3 min=0 max=255 value=0> </div> <div class="a-color-picker-row a-color-picker-rgbhex a-color-picker-single-input" show-on-single-input> <label>HEX</label> <input nameref=RGBHEX type=text select-on-focus> </div> <div class="a-color-picker-row a-color-picker-palette"></div>'; }, function (e, t, r) { var i = r(6); e.exports = "string" == typeof i ? i : i.toString(); }, function (e, t, r) { (e.exports = r(7)(!1)).push([e.i, "/*!\n * a-color-picker\n * https://github.com/narsenico/a-color-picker\n *\n * Copyright (c) 2017-2018, Gianfranco Caldi.\n * Released under the MIT License.\n */.a-color-picker{background-color:#fff;padding:0;display:inline-flex;flex-direction:column;user-select:none;width:232px;font:400 10px Helvetica,Arial,sans-serif;border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.05),0 2px 4px rgba(0,0,0,.25)}.a-color-picker,.a-color-picker-row,.a-color-picker input{box-sizing:border-box}.a-color-picker-row{padding:15px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;user-select:none}.a-color-picker-row-top{padding:0}.a-color-picker-row:not(:first-child){border-top:1px solid #f5f5f5}.a-color-picker-column{display:flex;flex-direction:column}.a-color-picker-cell{flex:1 1 auto;margin-bottom:4px}.a-color-picker-cell:last-child{margin-bottom:0}.a-color-picker-stack{position:relative}.a-color-picker-dot{position:absolute;width:14px;height:14px;top:0;left:0;background:#fff;pointer-events:none;border-radius:50px;z-index:1000;box-shadow:0 1px 2px rgba(0,0,0,.75)}.a-color-picker-a,.a-color-picker-h,.a-color-picker-sl{cursor:cell}.a-color-picker-a+.a-color-picker-dot,.a-color-picker-h+.a-color-picker-dot{top:-2px}.a-color-picker-a,.a-color-picker-h{border-radius:2px}.a-color-picker-preview{box-sizing:border-box;width:30px;height:30px;user-select:none;border-radius:15px}.a-color-picker-circle{border-radius:50px;border:1px solid #eee}.a-color-picker-hsl,.a-color-picker-rgb,.a-color-picker-single-input{justify-content:space-evenly}.a-color-picker-hsl>label,.a-color-picker-rgb>label,.a-color-picker-single-input>label{padding:0 8px;flex:0 0 auto;color:#969696}.a-color-picker-hsl>input,.a-color-picker-rgb>input,.a-color-picker-single-input>input{text-align:center;padding:2px 0;width:0;flex:1 1 auto;border:1px solid #e0e0e0;line-height:20px}.a-color-picker-hsl>input::-webkit-inner-spin-button,.a-color-picker-rgb>input::-webkit-inner-spin-button,.a-color-picker-single-input>input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.a-color-picker-hsl>input:focus,.a-color-picker-rgb>input:focus,.a-color-picker-single-input>input:focus{border-color:#04a9f4;outline:none}.a-color-picker-transparent{background-image:linear-gradient(-45deg,#cdcdcd 25%,transparent 0),linear-gradient(45deg,#cdcdcd 25%,transparent 0),linear-gradient(-45deg,transparent 75%,#cdcdcd 0),linear-gradient(45deg,transparent 75%,#cdcdcd 0);background-size:11px 11px;background-position:0 0,0 -5.5px,-5.5px 5.5px,5.5px 0}.a-color-picker-sl{border-radius:3px 3px 0 0}.a-color-picker.hide-alpha [show-on-alpha],.a-color-picker.hide-hsl [show-on-hsl],.a-color-picker.hide-rgb [show-on-rgb],.a-color-picker.hide-single-input [show-on-single-input]{display:none}.a-color-picker-clipbaord{width:100%;height:100%;opacity:0;cursor:pointer}.a-color-picker-palette{flex-flow:wrap;flex-direction:row;justify-content:flex-start;padding:10px}.a-color-picker-palette-color{width:15px;height:15px;flex:0 1 15px;margin:3px;box-sizing:border-box;cursor:pointer;border-radius:3px;box-shadow:inset 0 0 0 1px rgba(0,0,0,.1)}.a-color-picker-palette-add{text-align:center;line-height:13px;color:#607d8b}.a-color-picker.hidden{display:none}", ""]); }, function (e, t) { e.exports = function (e) { var t = []; return t.toString = function () { return this.map(function (t) { var r = function (e, t) { var r = e[1] || "", i = e[3]; if (!i)
|
|
344
|
+
return r; if (t && "function" == typeof btoa) {
|
|
345
|
+
var o = function (e) { return "/*# sourceMappingURL=data:application/json;charset=utf-8;base64," + btoa(unescape(encodeURIComponent(JSON.stringify(e)))) + " */"; }(i), n = i.sources.map(function (e) { return "/*# sourceURL=" + i.sourceRoot + e + " */"; });
|
|
346
|
+
return [r].concat(n).concat([o]).join("\n");
|
|
347
|
+
} return [r].join("\n"); }(t, e); return t[2] ? "@media " + t[2] + "{" + r + "}" : r; }).join(""); }, t.i = function (e, r) { "string" == typeof e && (e = [[null, e, ""]]); for (var i = {}, o = 0; o < this.length; o++) {
|
|
348
|
+
var n = this[o][0];
|
|
349
|
+
"number" == typeof n && (i[n] = !0);
|
|
350
|
+
} for (o = 0; o < e.length; o++) {
|
|
351
|
+
var s = e[o];
|
|
352
|
+
"number" == typeof s[0] && i[s[0]] || (r && !s[2] ? s[2] = r : r && (s[2] = "(" + s[2] + ") and (" + r + ")"), t.push(s));
|
|
353
|
+
} }, t; }; }]);
|
|
354
|
+
});
|
|
355
|
+
|
|
356
|
+
|
|
357
|
+
/***/ }),
|
|
358
|
+
|
|
359
|
+
/***/ 48163:
|
|
360
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
361
|
+
|
|
362
|
+
"use strict";
|
|
363
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
364
|
+
/* harmony export */ "W": function() { return /* binding */ UIRange; }
|
|
365
|
+
/* harmony export */ });
|
|
366
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(97582);
|
|
367
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
|
|
368
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
|
|
369
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95582);
|
|
370
|
+
/* harmony import */ var autobind_decorator__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23185);
|
|
371
|
+
/*!
|
|
372
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
373
|
+
* See LICENSE.md in the project root for license information.
|
|
374
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
375
|
+
*/
|
|
376
|
+
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
let UIRange = class UIRange extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIInput */ .u3 {
|
|
383
|
+
/** @override */
|
|
384
|
+
className() {
|
|
385
|
+
return 'UIRange';
|
|
386
|
+
}
|
|
387
|
+
constructor(jodit, options) {
|
|
388
|
+
super(jodit, Object.assign(Object.assign({}, options), { type: 'hidden' }));
|
|
389
|
+
this.state = Object.assign(Object.assign({}, jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIInput.defaultState */ .u3.defaultState), { min: 0, max: 100 });
|
|
390
|
+
this.startValue = 0;
|
|
391
|
+
this.startX = 0;
|
|
392
|
+
this.width = 100;
|
|
393
|
+
Object.assign(this.state, options);
|
|
394
|
+
this.appendUIRange();
|
|
395
|
+
this.onChangeSelfValue();
|
|
396
|
+
}
|
|
397
|
+
appendUIRange() {
|
|
398
|
+
const slider = this.j.create.div(this.getFullElName('slider'));
|
|
399
|
+
this.container.appendChild(slider);
|
|
400
|
+
const handle = this.j.create.div(this.getFullElName('handle'));
|
|
401
|
+
slider.appendChild(handle);
|
|
402
|
+
const log = this.j.create.div(this.getFullElName('log'));
|
|
403
|
+
const label = this.getElm('label');
|
|
404
|
+
void 0;
|
|
405
|
+
label.appendChild(log);
|
|
406
|
+
}
|
|
407
|
+
onDragStart(e) {
|
|
408
|
+
this.startValue = parseFloat(this.value) || 0;
|
|
409
|
+
this.startX = e.clientX;
|
|
410
|
+
const slider = this.getElm('slider');
|
|
411
|
+
void 0;
|
|
412
|
+
this.width = slider.offsetWidth;
|
|
413
|
+
this.j.e.on(this.j.ow, 'mousemove', this.onDrag);
|
|
414
|
+
}
|
|
415
|
+
onDrag(e) {
|
|
416
|
+
const { min, max } = this.state;
|
|
417
|
+
const diff = ((e.clientX - this.startX) / this.width) *
|
|
418
|
+
(this.state.max - this.state.min);
|
|
419
|
+
let value = this.startValue + diff;
|
|
420
|
+
if (value < min) {
|
|
421
|
+
value = min;
|
|
422
|
+
}
|
|
423
|
+
if (value > max) {
|
|
424
|
+
value = max;
|
|
425
|
+
}
|
|
426
|
+
this.value = value.toString();
|
|
427
|
+
}
|
|
428
|
+
onDragEnd() {
|
|
429
|
+
this.j.e.off(this.j.ow, 'mousemove', this.onDrag);
|
|
430
|
+
}
|
|
431
|
+
onChangeSelfValue() {
|
|
432
|
+
const handle = this.getElm('handle'), value = parseFloat(this.value) || 0;
|
|
433
|
+
void 0;
|
|
434
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.css)(handle, {
|
|
435
|
+
left: ((value - this.state.min) / (this.state.max - this.state.min)) *
|
|
436
|
+
100 +
|
|
437
|
+
'%'
|
|
438
|
+
});
|
|
439
|
+
const log = this.getElm('log');
|
|
440
|
+
void 0;
|
|
441
|
+
log.innerText = value.toString();
|
|
442
|
+
}
|
|
443
|
+
destruct() {
|
|
444
|
+
this.onDragEnd();
|
|
445
|
+
return super.destruct();
|
|
446
|
+
}
|
|
447
|
+
};
|
|
448
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
449
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(['handle:mousedown', 'handle:touchstart'])
|
|
450
|
+
], UIRange.prototype, "onDragStart", null);
|
|
451
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
452
|
+
autobind_decorator__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .ZP
|
|
453
|
+
], UIRange.prototype, "onDrag", null);
|
|
454
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
455
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(['j.ow:mouseup', 'j.ow:touchend'])
|
|
456
|
+
], UIRange.prototype, "onDragEnd", null);
|
|
457
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
458
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':change')
|
|
459
|
+
], UIRange.prototype, "onChangeSelfValue", null);
|
|
460
|
+
UIRange = (0,tslib__WEBPACK_IMPORTED_MODULE_3__/* .__decorate */ .gn)([
|
|
461
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
462
|
+
], UIRange);
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
/***/ }),
|
|
466
|
+
|
|
467
|
+
/***/ 64122:
|
|
468
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
469
|
+
|
|
470
|
+
"use strict";
|
|
471
|
+
__webpack_require__.r(__webpack_exports__);
|
|
472
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
473
|
+
/* harmony export */ "buttonGenerator": function() { return /* binding */ buttonGenerator; }
|
|
474
|
+
/* harmony export */ });
|
|
475
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(97582);
|
|
476
|
+
/* harmony import */ var jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7324);
|
|
477
|
+
/* harmony import */ var _JoditPro__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88292);
|
|
478
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50526);
|
|
479
|
+
/* harmony import */ var jodit_modules_dialog_dialog__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(1875);
|
|
480
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(44913);
|
|
481
|
+
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29788);
|
|
482
|
+
/* harmony import */ var _ui_generator_button_generator__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(7216);
|
|
483
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(76155);
|
|
484
|
+
/* harmony import */ var _ui_button_button__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(66629);
|
|
485
|
+
|
|
486
|
+
|
|
487
|
+
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
class buttonGenerator extends jodit_core_plugin__WEBPACK_IMPORTED_MODULE_0__/* .Plugin */ .S {
|
|
496
|
+
constructor() {
|
|
497
|
+
super(...arguments);
|
|
498
|
+
/** @override */
|
|
499
|
+
this.hasStyle = !_JoditPro__WEBPACK_IMPORTED_MODULE_1__/* .JoditPro.fatMode */ .y.fatMode;
|
|
500
|
+
/** @override */
|
|
501
|
+
this.buttons = [
|
|
502
|
+
{
|
|
503
|
+
group: 'form',
|
|
504
|
+
name: 'buttonGenerator'
|
|
505
|
+
}
|
|
506
|
+
];
|
|
507
|
+
}
|
|
508
|
+
afterInit(jodit) {
|
|
509
|
+
jodit.e
|
|
510
|
+
.on('toggleButtonGenerator', this.toggleButtonGenerator)
|
|
511
|
+
.on('isButtonGeneratorOpened', () => { var _a; return (_a = this.__dialog) === null || _a === void 0 ? void 0 : _a.isOpened; });
|
|
512
|
+
}
|
|
513
|
+
toggleButtonGenerator(target) {
|
|
514
|
+
if (!this.__dialog) {
|
|
515
|
+
this.__dialog = new jodit_modules_dialog_dialog__WEBPACK_IMPORTED_MODULE_3__/* .Dialog */ .V({
|
|
516
|
+
language: this.j.o.language,
|
|
517
|
+
theme: this.j.o.theme
|
|
518
|
+
});
|
|
519
|
+
this.__ui = new _ui_generator_button_generator__WEBPACK_IMPORTED_MODULE_6__/* .UIButtonGenerator */ .t(this.__dialog);
|
|
520
|
+
this.__dialog
|
|
521
|
+
.setHeader('Button Generator')
|
|
522
|
+
.setContent(this.__ui)
|
|
523
|
+
.setSize(730, 700);
|
|
524
|
+
}
|
|
525
|
+
if (target && !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom.isTag */ .i.isTag(target, new Set(['button', 'a']))) {
|
|
526
|
+
target = undefined;
|
|
527
|
+
}
|
|
528
|
+
const ui = this.__ui;
|
|
529
|
+
const dlg = this.__dialog;
|
|
530
|
+
if (dlg.isOpened) {
|
|
531
|
+
dlg.close();
|
|
532
|
+
}
|
|
533
|
+
else {
|
|
534
|
+
target && _ui_button_button__WEBPACK_IMPORTED_MODULE_8__/* .UIGButton.extractStyle */ .L.extractStyle(ui.state, target);
|
|
535
|
+
ui.target = target;
|
|
536
|
+
ui.update();
|
|
537
|
+
dlg.setFooter([
|
|
538
|
+
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_5__/* .Button */ .zx)(dlg, 'cancel', 'Cancel', 'default').onAction(() => dlg.close()),
|
|
539
|
+
(0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_5__/* .Button */ .zx)(dlg, 'ok', target ? 'Update' : 'Insert', 'primary').onAction(() => {
|
|
540
|
+
if (!target) {
|
|
541
|
+
target = this.j.createInside.element(ui.state.href ? 'a' : 'button');
|
|
542
|
+
this.j.s.insertNode(target, true, false);
|
|
543
|
+
}
|
|
544
|
+
_ui_button_button__WEBPACK_IMPORTED_MODULE_8__/* .UIGButton.applyStyle */ .L.applyStyle(ui.state, target);
|
|
545
|
+
target.className = ui.state.className || '';
|
|
546
|
+
this.jodit.e.fire('synchro');
|
|
547
|
+
dlg.close();
|
|
548
|
+
})
|
|
549
|
+
]).open();
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* DBLClick handler
|
|
554
|
+
*/
|
|
555
|
+
onDblClick(e) {
|
|
556
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_4__/* .Dom.isTag */ .i.isTag(e.target, 'button')) {
|
|
557
|
+
this.toggleButtonGenerator(e.target);
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
beforeDestruct(jodit) {
|
|
561
|
+
var _a;
|
|
562
|
+
(_a = this.__dialog) === null || _a === void 0 ? void 0 : _a.destruct();
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
/** @override */
|
|
566
|
+
buttonGenerator.requires = ['license', 'color-picker'];
|
|
567
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
|
|
568
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
569
|
+
], buttonGenerator.prototype, "toggleButtonGenerator", null);
|
|
570
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_9__/* .__decorate */ .gn)([
|
|
571
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)(':dblclick')
|
|
572
|
+
], buttonGenerator.prototype, "onDblClick", null);
|
|
573
|
+
_JoditPro__WEBPACK_IMPORTED_MODULE_1__/* .JoditPro.plugins.add */ .y.plugins.add('button-generator', buttonGenerator);
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
/***/ }),
|
|
577
|
+
|
|
578
|
+
/***/ 76155:
|
|
579
|
+
/***/ (function(__unused_webpack_module, __unused_webpack___webpack_exports__, __webpack_require__) {
|
|
580
|
+
|
|
581
|
+
"use strict";
|
|
582
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77628);
|
|
583
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(71350);
|
|
584
|
+
/*!
|
|
585
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
586
|
+
* See LICENSE.md in the project root for license information.
|
|
587
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
588
|
+
*/
|
|
589
|
+
|
|
590
|
+
|
|
591
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.controls.buttonGenerator = {
|
|
592
|
+
tooltip: 'Button generator',
|
|
593
|
+
icon: __webpack_require__(3334),
|
|
594
|
+
isActive(editor) {
|
|
595
|
+
return Boolean(editor.e.fire('isButtonGeneratorOpened'));
|
|
596
|
+
},
|
|
597
|
+
exec: (editor, btn) => {
|
|
598
|
+
editor.e.fire('toggleButtonGenerator', btn);
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
// @ts-ignore
|
|
602
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.popup.button = ['buttonGenerator'];
|
|
603
|
+
// @ts-ignore
|
|
604
|
+
if ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_1__/* .isArray */ .kJ)(jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.popup.a)) {
|
|
605
|
+
// @ts-ignore
|
|
606
|
+
jodit_config__WEBPACK_IMPORTED_MODULE_0__.Config.prototype.popup.a.push('buttonGenerator');
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
/***/ }),
|
|
611
|
+
|
|
612
|
+
/***/ 66629:
|
|
613
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
614
|
+
|
|
615
|
+
"use strict";
|
|
616
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
617
|
+
/* harmony export */ "L": function() { return /* binding */ UIGButton; }
|
|
618
|
+
/* harmony export */ });
|
|
619
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(97582);
|
|
620
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
|
|
621
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(95582);
|
|
622
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50526);
|
|
623
|
+
/* harmony import */ var jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71350);
|
|
624
|
+
var UIGButton_1;
|
|
625
|
+
|
|
626
|
+
/*!
|
|
627
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
628
|
+
* See LICENSE.md in the project root for license information.
|
|
629
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
630
|
+
*/
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
|
|
635
|
+
|
|
636
|
+
|
|
637
|
+
let UIGButton = UIGButton_1 = class UIGButton extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIElement */ .u1 {
|
|
638
|
+
/** @override */
|
|
639
|
+
className() {
|
|
640
|
+
return 'UIGButton';
|
|
641
|
+
}
|
|
642
|
+
/** @override */
|
|
643
|
+
constructor(jodit, style) {
|
|
644
|
+
super(jodit);
|
|
645
|
+
this.style = style;
|
|
646
|
+
}
|
|
647
|
+
updateStyles() {
|
|
648
|
+
const { style } = this;
|
|
649
|
+
const btn = this.getElm('button');
|
|
650
|
+
void 0;
|
|
651
|
+
const wrapper = this.getElm('wrapper');
|
|
652
|
+
void 0;
|
|
653
|
+
wrapper.style.backgroundColor = style.previewBgColor;
|
|
654
|
+
UIGButton_1.applyStyle(style, btn);
|
|
655
|
+
}
|
|
656
|
+
static applyStyle(style, btn) {
|
|
657
|
+
const _ = (v) => ((0,jodit_core_helpers_checker__WEBPACK_IMPORTED_MODULE_3__/* .isString */ .HD)(v) ? v : v + 'px');
|
|
658
|
+
btn.innerText = style.text || 'css';
|
|
659
|
+
btn.setAttribute('href', style.href);
|
|
660
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.css)(btn, {
|
|
661
|
+
background: !style.solid
|
|
662
|
+
? `linear-gradient(to bottom, ${style.bgStart} 5%, ${style.bgEnd} 100%)`
|
|
663
|
+
: null,
|
|
664
|
+
backgroundColor: style.bgStart,
|
|
665
|
+
borderRadius: _(style.borderRadius),
|
|
666
|
+
border: `${_(style.borderSize)} solid ${style.borderColor}`,
|
|
667
|
+
display: 'inline-block',
|
|
668
|
+
cursor: 'pointer',
|
|
669
|
+
color: style.fontColor,
|
|
670
|
+
fontFamily: style.fontFamily,
|
|
671
|
+
fontSize: _(style.fontSize),
|
|
672
|
+
fontWeight: style.fontWeight ? 'bold' : null,
|
|
673
|
+
fontStyle: style.fontItalic ? 'italic' : null,
|
|
674
|
+
padding: `${_(style.paddingY)} ${_(style.paddingX)}`,
|
|
675
|
+
textDecoration: 'none'
|
|
676
|
+
});
|
|
677
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.css)(btn, {
|
|
678
|
+
textShadow: style.textShadow
|
|
679
|
+
? [
|
|
680
|
+
style.textShadowOffsetX,
|
|
681
|
+
style.textShadowOffsetY,
|
|
682
|
+
style.textShadowBlurRadius,
|
|
683
|
+
style.textShadowColor
|
|
684
|
+
]
|
|
685
|
+
.map(_)
|
|
686
|
+
.join(' ')
|
|
687
|
+
: null
|
|
688
|
+
});
|
|
689
|
+
(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_1__.css)(btn, {
|
|
690
|
+
boxShadow: style.boxShadow
|
|
691
|
+
? [
|
|
692
|
+
style.boxShadowInset ? 'inset' : '',
|
|
693
|
+
style.boxShadowOffsetX,
|
|
694
|
+
style.boxShadowOffsetY,
|
|
695
|
+
style.boxShadowBlurRadius,
|
|
696
|
+
style.boxShadowSpreadRadius,
|
|
697
|
+
style.boxShadowColor
|
|
698
|
+
]
|
|
699
|
+
.map(_)
|
|
700
|
+
.join(' ')
|
|
701
|
+
: null
|
|
702
|
+
});
|
|
703
|
+
}
|
|
704
|
+
update() {
|
|
705
|
+
this.updateStyles();
|
|
706
|
+
}
|
|
707
|
+
/** @override */
|
|
708
|
+
render() {
|
|
709
|
+
return `<div>
|
|
710
|
+
<div class='&__wrapper'>
|
|
711
|
+
<button class='&__button'>css</button>
|
|
712
|
+
</div>
|
|
713
|
+
</div>`;
|
|
714
|
+
}
|
|
715
|
+
static extractStyle(state, target) {
|
|
716
|
+
var _a, _b, _c, _d;
|
|
717
|
+
const style = ((_a = target.ownerDocument.defaultView) === null || _a === void 0 ? void 0 : _a.getComputedStyle(target)) ||
|
|
718
|
+
{};
|
|
719
|
+
const extractColors = () => {
|
|
720
|
+
var _a, _b;
|
|
721
|
+
const result = {
|
|
722
|
+
solid: true,
|
|
723
|
+
bgStart: (_a = style.backgroundColor) !== null && _a !== void 0 ? _a : '#44c767',
|
|
724
|
+
bgEnd: (_b = style.backgroundColor) !== null && _b !== void 0 ? _b : '#44c767'
|
|
725
|
+
};
|
|
726
|
+
const img = style.backgroundImage;
|
|
727
|
+
if (img && /linear-gradient/.test(img)) {
|
|
728
|
+
const colors = /linear-gradient\((.+)\s+[0-9]+%,\s+(.+)\s+[0-9]+%\)/.exec(img);
|
|
729
|
+
if (colors) {
|
|
730
|
+
result.solid = false;
|
|
731
|
+
result.bgStart = colors[1] || result.bgStart;
|
|
732
|
+
result.bgEnd = colors[2] || '#5cbf2a';
|
|
733
|
+
}
|
|
734
|
+
}
|
|
735
|
+
return result;
|
|
736
|
+
};
|
|
737
|
+
const extractShadow = (order, result, keyEnable, keyColor) => {
|
|
738
|
+
const boxShadow = style[keyEnable];
|
|
739
|
+
if (!boxShadow ||
|
|
740
|
+
['none', 'inherit', 'initial', 'unset'].includes(boxShadow)) {
|
|
741
|
+
return {
|
|
742
|
+
[keyEnable]: false
|
|
743
|
+
};
|
|
744
|
+
}
|
|
745
|
+
const components = boxShadow.replace(/,\s/g, ',').split(/\s+/);
|
|
746
|
+
components.forEach((part) => {
|
|
747
|
+
if (/[0-9.]+(px|pt|em|%)/.test(part)) {
|
|
748
|
+
const key = order.shift();
|
|
749
|
+
if (key) {
|
|
750
|
+
result[key] = part;
|
|
751
|
+
}
|
|
752
|
+
}
|
|
753
|
+
else if (part === 'inset') {
|
|
754
|
+
result.boxShadowInset = true;
|
|
755
|
+
}
|
|
756
|
+
else {
|
|
757
|
+
result[keyColor] = part;
|
|
758
|
+
}
|
|
759
|
+
});
|
|
760
|
+
result[keyEnable] = true;
|
|
761
|
+
return result;
|
|
762
|
+
};
|
|
763
|
+
Object.assign(state, Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ text: target.innerText, className: target.className, href: target.getAttribute('href') || '' }, extractColors()), { borderColor: (_b = style === null || style === void 0 ? void 0 : style.borderColor) !== null && _b !== void 0 ? _b : '#18ab29', borderRadius: (_c = style === null || style === void 0 ? void 0 : style.borderRadius) !== null && _c !== void 0 ? _c : 0, borderSize: (_d = style === null || style === void 0 ? void 0 : style.borderWidth) !== null && _d !== void 0 ? _d : 1 }), extractShadow([
|
|
764
|
+
'boxShadowOffsetX',
|
|
765
|
+
'boxShadowOffsetY',
|
|
766
|
+
'boxShadowBlurRadius',
|
|
767
|
+
'boxShadowSpreadRadius'
|
|
768
|
+
], {
|
|
769
|
+
boxShadowBlurRadius: 0,
|
|
770
|
+
boxShadowColor: '#3dc21b',
|
|
771
|
+
boxShadowInset: false,
|
|
772
|
+
boxShadowOffsetX: 0,
|
|
773
|
+
boxShadowOffsetY: 0,
|
|
774
|
+
boxShadowSpreadRadius: 0
|
|
775
|
+
}, 'boxShadow', 'boxShadowColor')), { fontColor: style.color, fontFamily: style.fontFamily, fontSize: style.fontSize, fontWeight: style.fontWeight === 'bold', fontItalic: style.fontStyle === 'italic', paddingX: style.paddingLeft, paddingY: style.paddingTop }), extractShadow([
|
|
776
|
+
'textShadowOffsetX',
|
|
777
|
+
'textShadowOffsetY',
|
|
778
|
+
'textShadowBlurRadius'
|
|
779
|
+
], {
|
|
780
|
+
textShadowBlurRadius: 0,
|
|
781
|
+
textShadowColor: '#2f6627',
|
|
782
|
+
textShadowOffsetX: 0,
|
|
783
|
+
textShadowOffsetY: 1
|
|
784
|
+
}, 'textShadow', 'textShadowColor')));
|
|
785
|
+
}
|
|
786
|
+
};
|
|
787
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
|
|
788
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.watch)('style')
|
|
789
|
+
], UIGButton.prototype, "updateStyles", null);
|
|
790
|
+
UIGButton = UIGButton_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .gn)([
|
|
791
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.component
|
|
792
|
+
], UIGButton);
|
|
793
|
+
|
|
794
|
+
|
|
795
|
+
/***/ }),
|
|
796
|
+
|
|
797
|
+
/***/ 53231:
|
|
798
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
799
|
+
|
|
800
|
+
"use strict";
|
|
801
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
802
|
+
/* harmony export */ "h": function() { return /* binding */ UIFormButtonGenerator; }
|
|
803
|
+
/* harmony export */ });
|
|
804
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
|
|
805
|
+
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84621);
|
|
806
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(44913);
|
|
807
|
+
/* harmony import */ var _core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48163);
|
|
808
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(52378);
|
|
809
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__);
|
|
810
|
+
/*!
|
|
811
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
812
|
+
* See LICENSE.md in the project root for license information.
|
|
813
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
814
|
+
*/
|
|
815
|
+
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
|
|
819
|
+
|
|
820
|
+
|
|
821
|
+
class UIFormButtonGenerator extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIElement */ .u1 {
|
|
822
|
+
/** @override */
|
|
823
|
+
className() {
|
|
824
|
+
return 'UIFormButtonGenerator';
|
|
825
|
+
}
|
|
826
|
+
/** @override */
|
|
827
|
+
constructor(jodit, state, updateState) {
|
|
828
|
+
super(jodit);
|
|
829
|
+
this.state = state;
|
|
830
|
+
this.updateState = updateState;
|
|
831
|
+
this.onUpdates = [];
|
|
832
|
+
const getOnUpdate = (uiInput, input) => () => {
|
|
833
|
+
let newValue = this.state[input.name];
|
|
834
|
+
if (/px/.test(newValue.toString())) {
|
|
835
|
+
newValue = newValue.toString().replace(/px/, '');
|
|
836
|
+
}
|
|
837
|
+
if (newValue.toString() !== uiInput.value) {
|
|
838
|
+
uiInput.value = newValue;
|
|
839
|
+
}
|
|
840
|
+
};
|
|
841
|
+
(0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__/* .toArray */ .q)(this.container.querySelectorAll('input,select')).forEach((input) => {
|
|
842
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom.isTag */ .i.isTag(input, 'select')) {
|
|
843
|
+
const uiInput = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UISelect */ .Cj(this.j, {
|
|
844
|
+
options: (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__/* .toArray */ .q)(input.options).map((opt) => ({
|
|
845
|
+
text: opt.innerText,
|
|
846
|
+
value: opt.value
|
|
847
|
+
})),
|
|
848
|
+
onChange: (value) => {
|
|
849
|
+
this.updateState(input.name, value);
|
|
850
|
+
}
|
|
851
|
+
});
|
|
852
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom.replace */ .i.replace(input, uiInput.container, this.j.create, false, true);
|
|
853
|
+
this.onUpdates.push(getOnUpdate(uiInput, input));
|
|
854
|
+
return;
|
|
855
|
+
}
|
|
856
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom.isTag */ .i.isTag(input, 'input')) {
|
|
857
|
+
switch (input.type) {
|
|
858
|
+
case 'range': {
|
|
859
|
+
const uiInput = new _core_ui_form_range_range__WEBPACK_IMPORTED_MODULE_3__/* .UIRange */ .W(this.j, {
|
|
860
|
+
label: input.placeholder,
|
|
861
|
+
name: input.name,
|
|
862
|
+
min: parseInt(input.min, 0) || 0,
|
|
863
|
+
max: parseInt(input.max, 0) || 100,
|
|
864
|
+
onChange: (value) => {
|
|
865
|
+
this.updateState(input.name, parseInt(value, 10));
|
|
866
|
+
}
|
|
867
|
+
});
|
|
868
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom.replace */ .i.replace(input, uiInput.container, this.j.create);
|
|
869
|
+
this.onUpdates.push(getOnUpdate(uiInput, input));
|
|
870
|
+
return;
|
|
871
|
+
}
|
|
872
|
+
case 'text': {
|
|
873
|
+
const uiInput = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIInput */ .u3(this.j, {
|
|
874
|
+
placeholder: input.placeholder,
|
|
875
|
+
name: input.name,
|
|
876
|
+
onChange: (value) => {
|
|
877
|
+
this.updateState(input.name, value);
|
|
878
|
+
}
|
|
879
|
+
});
|
|
880
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_2__/* .Dom.replace */ .i.replace(input, uiInput.container, this.j.create);
|
|
881
|
+
this.onUpdates.push(getOnUpdate(uiInput, input));
|
|
882
|
+
return;
|
|
883
|
+
}
|
|
884
|
+
case 'checkbox':
|
|
885
|
+
input.onchange = () => this.updateState(input.name, input.checked);
|
|
886
|
+
this.onUpdates.push(() => {
|
|
887
|
+
input.checked = this.state[input.name];
|
|
888
|
+
});
|
|
889
|
+
return;
|
|
890
|
+
}
|
|
891
|
+
}
|
|
892
|
+
});
|
|
893
|
+
this.update();
|
|
894
|
+
}
|
|
895
|
+
update() {
|
|
896
|
+
this.onUpdates.forEach((cb) => cb());
|
|
897
|
+
const boxShadow = this.getElm('box-shadow');
|
|
898
|
+
void 0;
|
|
899
|
+
const textShadow = this.getElm('text-shadow');
|
|
900
|
+
void 0;
|
|
901
|
+
boxShadow.style.display = this.state.boxShadow ? '' : 'none';
|
|
902
|
+
textShadow.style.display = this.state.textShadow ? '' : 'none';
|
|
903
|
+
}
|
|
904
|
+
/** @override */
|
|
905
|
+
render() {
|
|
906
|
+
return `<div>
|
|
907
|
+
<div class='&__group &__text'>
|
|
908
|
+
<div class='&__title'>Text</div>
|
|
909
|
+
<div class='&__row'>
|
|
910
|
+
<div class='&__col'>
|
|
911
|
+
<input type='text' name='text'/>
|
|
912
|
+
<input type='text' name='className' placeholder='~Class name~'/>
|
|
913
|
+
<input type='text' name='href' placeholder='~URL~'/>
|
|
914
|
+
<select name='fontFamily'>
|
|
915
|
+
<option value='Arial'>Arial</option>
|
|
916
|
+
<option value='Courier New'>Courier New</option>
|
|
917
|
+
<option value='Georgia'>Georgia</option>
|
|
918
|
+
<option value='Impact'>Impact</option>
|
|
919
|
+
<option value='Times New Roman'>Times New Roman</option>
|
|
920
|
+
<option value='Trebuchet MS'>Trebuchet MS</option>
|
|
921
|
+
<option value='Verdana'>Verdana</option>
|
|
922
|
+
</select>
|
|
923
|
+
</div>
|
|
924
|
+
<div class='&__col'>
|
|
925
|
+
<input type='range' min='8' max='28' name='fontSize' placeholder='~Font Size~'/>
|
|
926
|
+
<div class='&__checkboxes'>
|
|
927
|
+
<label>
|
|
928
|
+
<input type='checkbox' name='fontWeight'/> bold
|
|
929
|
+
</label>
|
|
930
|
+
<label>
|
|
931
|
+
<input type='checkbox' name='fontItalic'/> italic
|
|
932
|
+
</label>
|
|
933
|
+
</div>
|
|
934
|
+
</div>
|
|
935
|
+
</div>
|
|
936
|
+
</div>
|
|
937
|
+
<div class='&__group &__sizes'>
|
|
938
|
+
<div class='&__title'>~Size~</div>
|
|
939
|
+
<div class='&__row'>
|
|
940
|
+
<div class='&__col'>
|
|
941
|
+
<input type='range' name='paddingX' min='0' max='32' placeholder='~Vertical size~'/>
|
|
942
|
+
</div>
|
|
943
|
+
<div class='&__col'>
|
|
944
|
+
<input type='range' name='paddingY' min='0' max='76' placeholder='~Horizontal size~'/>
|
|
945
|
+
</div>
|
|
946
|
+
</div>
|
|
947
|
+
</div>
|
|
948
|
+
<div class='&__group &__borders'>
|
|
949
|
+
<div class='&__title'>~Border~</div>
|
|
950
|
+
<div class='&__row'>
|
|
951
|
+
<div class='&__col'>
|
|
952
|
+
<input type='range' name='borderRadius' min='0' max='42' placeholder='~Border Radius~'/>
|
|
953
|
+
</div>
|
|
954
|
+
<div class='&__col'>
|
|
955
|
+
<input type='range' name='borderSize' min='0' max='12' placeholder='~Border Size~'/>
|
|
956
|
+
</div>
|
|
957
|
+
</div>
|
|
958
|
+
</div>
|
|
959
|
+
<div class='&__group'>
|
|
960
|
+
<div class='&__title'>~Box Shadow~ <input type='checkbox' name='boxShadow'/></div>
|
|
961
|
+
<div class='&__row &__box-shadow'>
|
|
962
|
+
<div class='&__col'>
|
|
963
|
+
<input type='range' name='boxShadowOffsetX' min='-50' max='50' placeholder='~Vertical Position~'/>
|
|
964
|
+
<input type='range' name='boxShadowBlurRadius' min='0' max='50' placeholder='~Blur Radius~'/>
|
|
965
|
+
</div>
|
|
966
|
+
<div class='&__col'>
|
|
967
|
+
<input type='range' name='boxShadowOffsetY' min='-50' max='50' placeholder='~Horizontal Position~'/>
|
|
968
|
+
<input type='range' name='boxShadowSpreadRadius' min='-50' max='50' placeholder='~Spread Radius~'/>
|
|
969
|
+
</div>
|
|
970
|
+
</div>
|
|
971
|
+
</div>
|
|
972
|
+
<div class='&__group'>
|
|
973
|
+
<div class='&__title'>~Text Shadow~ <input type='checkbox' name='textShadow'/></div>
|
|
974
|
+
<div class='&__row &__text-shadow'>
|
|
975
|
+
<div class='&__col'>
|
|
976
|
+
<input type='range' name='textShadowOffsetX' min='-50' max='50' placeholder='~Vertical Position~'/>
|
|
977
|
+
<input type='range' name='textShadowBlurRadius' min='0' max='50' placeholder='~Blur Radius~'/>
|
|
978
|
+
</div>
|
|
979
|
+
<div class='&__col'>
|
|
980
|
+
<input type='range' name='textShadowOffsetY' min='-50' max='50' placeholder='~Horizontal Position~'/>
|
|
981
|
+
</div>
|
|
982
|
+
</div>
|
|
983
|
+
</div>
|
|
984
|
+
</div>`;
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
/***/ }),
|
|
990
|
+
|
|
991
|
+
/***/ 7216:
|
|
992
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
993
|
+
|
|
994
|
+
"use strict";
|
|
995
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
996
|
+
/* harmony export */ "t": function() { return /* binding */ UIButtonGenerator; }
|
|
997
|
+
/* harmony export */ });
|
|
998
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(97582);
|
|
999
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
|
|
1000
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
|
|
1001
|
+
/* harmony import */ var _preview_preview__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(73314);
|
|
1002
|
+
/* harmony import */ var _button_button__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66629);
|
|
1003
|
+
/* harmony import */ var _form_form__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(53231);
|
|
1004
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(95582);
|
|
1005
|
+
/*!
|
|
1006
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1007
|
+
* See LICENSE.md in the project root for license information.
|
|
1008
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1009
|
+
*/
|
|
1010
|
+
var UIButtonGenerator_1;
|
|
1011
|
+
|
|
1012
|
+
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
|
|
1016
|
+
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
const styles = __webpack_require__(93050);
|
|
1020
|
+
let UIButtonGenerator = UIButtonGenerator_1 = class UIButtonGenerator extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIElement */ .u1 {
|
|
1021
|
+
/** @override */
|
|
1022
|
+
className() {
|
|
1023
|
+
return 'UIButtonGenerator';
|
|
1024
|
+
}
|
|
1025
|
+
render() {
|
|
1026
|
+
return `<div>
|
|
1027
|
+
<div class='&__generator'>
|
|
1028
|
+
<div class='&__preview'></div>
|
|
1029
|
+
<div class='&__form'></div>
|
|
1030
|
+
</div>
|
|
1031
|
+
<div class='&__library'></div>
|
|
1032
|
+
</div>`;
|
|
1033
|
+
}
|
|
1034
|
+
constructor(jodit) {
|
|
1035
|
+
super(jodit);
|
|
1036
|
+
this.state = {
|
|
1037
|
+
text: '',
|
|
1038
|
+
className: '',
|
|
1039
|
+
href: '',
|
|
1040
|
+
bgEnd: '#5cbf2a',
|
|
1041
|
+
bgStart: '#44c767',
|
|
1042
|
+
borderColor: '#18ab29',
|
|
1043
|
+
borderRadius: 28,
|
|
1044
|
+
borderSize: 1,
|
|
1045
|
+
boxShadow: false,
|
|
1046
|
+
boxShadowBlurRadius: 0,
|
|
1047
|
+
boxShadowColor: '#3dc21b',
|
|
1048
|
+
boxShadowInset: false,
|
|
1049
|
+
boxShadowOffsetX: 0,
|
|
1050
|
+
boxShadowOffsetY: 0,
|
|
1051
|
+
boxShadowSpreadRadius: 0,
|
|
1052
|
+
fontColor: '#fff',
|
|
1053
|
+
fontFamily: 'Arial',
|
|
1054
|
+
fontSize: 17,
|
|
1055
|
+
fontStyle: false,
|
|
1056
|
+
fontWeight: false,
|
|
1057
|
+
fontItalic: false,
|
|
1058
|
+
paddingX: 31,
|
|
1059
|
+
paddingY: 16,
|
|
1060
|
+
previewBgColor: '#f5f5f5',
|
|
1061
|
+
solid: true,
|
|
1062
|
+
textShadow: true,
|
|
1063
|
+
textShadowBlurRadius: 0,
|
|
1064
|
+
textShadowColor: '#2f6627',
|
|
1065
|
+
textShadowOffsetX: 0,
|
|
1066
|
+
textShadowOffsetY: 1
|
|
1067
|
+
};
|
|
1068
|
+
this.preview = new _preview_preview__WEBPACK_IMPORTED_MODULE_2__/* .UIPreviewButtonGenerator */ .o(this.j, this.state, this.updateState);
|
|
1069
|
+
this.form = new _form_form__WEBPACK_IMPORTED_MODULE_4__/* .UIFormButtonGenerator */ .h(this.j, this.state, this.updateState);
|
|
1070
|
+
this.generateLibrary();
|
|
1071
|
+
const preview = this.getElm('preview');
|
|
1072
|
+
void 0;
|
|
1073
|
+
preview.appendChild(this.preview.container);
|
|
1074
|
+
const form = this.getElm('form');
|
|
1075
|
+
void 0;
|
|
1076
|
+
form.appendChild(this.form.container);
|
|
1077
|
+
}
|
|
1078
|
+
generateLibrary() {
|
|
1079
|
+
const group = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIGroup */ .qe(this.j);
|
|
1080
|
+
styles.map(UIButtonGenerator_1.mapKey).forEach((style) => {
|
|
1081
|
+
const button = new _button_button__WEBPACK_IMPORTED_MODULE_3__/* .UIGButton */ .L(this.j, style);
|
|
1082
|
+
button.setMod('mode', 'library');
|
|
1083
|
+
group.append(button);
|
|
1084
|
+
this.j.e.on(button.container, 'click', () => {
|
|
1085
|
+
const { text } = this.state;
|
|
1086
|
+
Object.assign(this.state, style);
|
|
1087
|
+
Object.assign(this.state, {
|
|
1088
|
+
className: '',
|
|
1089
|
+
text
|
|
1090
|
+
});
|
|
1091
|
+
this.update();
|
|
1092
|
+
});
|
|
1093
|
+
});
|
|
1094
|
+
const library = this.getElm('library');
|
|
1095
|
+
void 0;
|
|
1096
|
+
library.appendChild(group.container);
|
|
1097
|
+
}
|
|
1098
|
+
static mapKey(o) {
|
|
1099
|
+
return {
|
|
1100
|
+
bgEnd: o.be,
|
|
1101
|
+
bgStart: o.bs,
|
|
1102
|
+
borderColor: o.bc,
|
|
1103
|
+
borderRadius: o.br,
|
|
1104
|
+
borderSize: o.bse,
|
|
1105
|
+
boxShadow: o.bsh,
|
|
1106
|
+
boxShadowBlurRadius: o.bsbr,
|
|
1107
|
+
boxShadowColor: o.bsc,
|
|
1108
|
+
boxShadowInset: o.bsi,
|
|
1109
|
+
boxShadowOffsetX: o.bsox,
|
|
1110
|
+
boxShadowOffsetY: o.bsoy,
|
|
1111
|
+
boxShadowSpreadRadius: o.bssr,
|
|
1112
|
+
fontColor: o.fc,
|
|
1113
|
+
fontFamily: o.ff,
|
|
1114
|
+
fontSize: o.fs,
|
|
1115
|
+
fontStyle: o.fse,
|
|
1116
|
+
fontWeight: o.fw,
|
|
1117
|
+
paddingX: o.px,
|
|
1118
|
+
paddingY: o.py,
|
|
1119
|
+
previewBgColor: o.pbc,
|
|
1120
|
+
solid: o.s,
|
|
1121
|
+
text: o.t,
|
|
1122
|
+
textShadow: o.ts,
|
|
1123
|
+
textShadowBlurRadius: o.tsbr,
|
|
1124
|
+
textShadowColor: o.tsc,
|
|
1125
|
+
textShadowOffsetX: o.tsox,
|
|
1126
|
+
textShadowOffsetY: o.tsoy
|
|
1127
|
+
};
|
|
1128
|
+
}
|
|
1129
|
+
updateState(name, value) {
|
|
1130
|
+
this.state[name] = value;
|
|
1131
|
+
this.update();
|
|
1132
|
+
}
|
|
1133
|
+
update() {
|
|
1134
|
+
if (this.isReady) {
|
|
1135
|
+
this.form.update();
|
|
1136
|
+
this.preview.update();
|
|
1137
|
+
}
|
|
1138
|
+
}
|
|
1139
|
+
};
|
|
1140
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn)([
|
|
1141
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.autobind
|
|
1142
|
+
], UIButtonGenerator.prototype, "updateState", null);
|
|
1143
|
+
UIButtonGenerator = UIButtonGenerator_1 = (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn)([
|
|
1144
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
1145
|
+
], UIButtonGenerator);
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
/***/ }),
|
|
1149
|
+
|
|
1150
|
+
/***/ 73314:
|
|
1151
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1152
|
+
|
|
1153
|
+
"use strict";
|
|
1154
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1155
|
+
/* harmony export */ "o": function() { return /* binding */ UIPreviewButtonGenerator; }
|
|
1156
|
+
/* harmony export */ });
|
|
1157
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(97582);
|
|
1158
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
|
|
1159
|
+
/* harmony import */ var _button_button__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66629);
|
|
1160
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50526);
|
|
1161
|
+
/* harmony import */ var _color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(39445);
|
|
1162
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(95582);
|
|
1163
|
+
|
|
1164
|
+
/*!
|
|
1165
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1166
|
+
* See LICENSE.md in the project root for license information.
|
|
1167
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1168
|
+
*/
|
|
1169
|
+
|
|
1170
|
+
|
|
1171
|
+
|
|
1172
|
+
|
|
1173
|
+
|
|
1174
|
+
|
|
1175
|
+
let UIPreviewButtonGenerator = class UIPreviewButtonGenerator extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIElement */ .u1 {
|
|
1176
|
+
/** @override */
|
|
1177
|
+
className() {
|
|
1178
|
+
return 'UIPreviewButtonGenerator';
|
|
1179
|
+
}
|
|
1180
|
+
/** @override */
|
|
1181
|
+
render() {
|
|
1182
|
+
return `<div>
|
|
1183
|
+
<div class='&__button'></div>
|
|
1184
|
+
<div class='&__colors'></div>
|
|
1185
|
+
</div>`;
|
|
1186
|
+
}
|
|
1187
|
+
update() {
|
|
1188
|
+
this.button.update();
|
|
1189
|
+
this.lockUpdate = true;
|
|
1190
|
+
this.colors.forEach((input) => {
|
|
1191
|
+
if (input.value !== this.state[input.state.name]) {
|
|
1192
|
+
input.value = this.state[input.state.name];
|
|
1193
|
+
}
|
|
1194
|
+
});
|
|
1195
|
+
this.lockUpdate = false;
|
|
1196
|
+
}
|
|
1197
|
+
/** @override */
|
|
1198
|
+
constructor(jodit, state, updateState) {
|
|
1199
|
+
super(jodit);
|
|
1200
|
+
this.state = state;
|
|
1201
|
+
this.updateState = updateState;
|
|
1202
|
+
this.button = new _button_button__WEBPACK_IMPORTED_MODULE_1__/* .UIGButton */ .L(this.j, this.state);
|
|
1203
|
+
this.lockUpdate = false;
|
|
1204
|
+
this.colors = [
|
|
1205
|
+
'bgStart',
|
|
1206
|
+
'bgEnd',
|
|
1207
|
+
'fontColor',
|
|
1208
|
+
'borderColor',
|
|
1209
|
+
'boxShadowColor',
|
|
1210
|
+
'textShadowColor',
|
|
1211
|
+
'previewBgColor'
|
|
1212
|
+
].map((key) => {
|
|
1213
|
+
return new _color_picker_ui_input_color_input__WEBPACK_IMPORTED_MODULE_3__/* .ColorInput */ .T(this.j, {
|
|
1214
|
+
name: key,
|
|
1215
|
+
onChange: (value) => {
|
|
1216
|
+
if (!this.lockUpdate) {
|
|
1217
|
+
if (key === 'bgEnd' && value !== this.state.bgStart) {
|
|
1218
|
+
this.updateState('solid', false);
|
|
1219
|
+
}
|
|
1220
|
+
this.updateState(key, value);
|
|
1221
|
+
}
|
|
1222
|
+
}
|
|
1223
|
+
}).setMod('slim', true);
|
|
1224
|
+
});
|
|
1225
|
+
this.setMod('mode', 'default');
|
|
1226
|
+
const button = this.getElm('button');
|
|
1227
|
+
void 0;
|
|
1228
|
+
button.appendChild(this.button.container);
|
|
1229
|
+
const colors = this.getElm('colors');
|
|
1230
|
+
void 0;
|
|
1231
|
+
this.colors.forEach((input) => {
|
|
1232
|
+
colors.appendChild(input.container);
|
|
1233
|
+
});
|
|
1234
|
+
this.update();
|
|
1235
|
+
}
|
|
1236
|
+
};
|
|
1237
|
+
UIPreviewButtonGenerator = (0,tslib__WEBPACK_IMPORTED_MODULE_5__/* .__decorate */ .gn)([
|
|
1238
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.component
|
|
1239
|
+
], UIPreviewButtonGenerator);
|
|
1240
|
+
|
|
1241
|
+
|
|
1242
|
+
/***/ }),
|
|
1243
|
+
|
|
1244
|
+
/***/ 39445:
|
|
1245
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
1246
|
+
|
|
1247
|
+
"use strict";
|
|
1248
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1249
|
+
/* harmony export */ "T": function() { return /* binding */ ColorInput; }
|
|
1250
|
+
/* harmony export */ });
|
|
1251
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(97582);
|
|
1252
|
+
/* harmony import */ var jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(75004);
|
|
1253
|
+
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(50526);
|
|
1254
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(95582);
|
|
1255
|
+
/* harmony import */ var a_color_picker__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(28803);
|
|
1256
|
+
/* harmony import */ var a_color_picker__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(a_color_picker__WEBPACK_IMPORTED_MODULE_3__);
|
|
1257
|
+
/* harmony import */ var jodit_modules__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(8079);
|
|
1258
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(11612);
|
|
1259
|
+
/*!
|
|
1260
|
+
* Jodit Editor PRO (https://xdsoft.net/jodit/)
|
|
1261
|
+
* See LICENSE.md in the project root for license information.
|
|
1262
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net/jodit/pro/
|
|
1263
|
+
*/
|
|
1264
|
+
|
|
1265
|
+
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
|
|
1269
|
+
|
|
1270
|
+
|
|
1271
|
+
|
|
1272
|
+
|
|
1273
|
+
let ColorInput = class ColorInput extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .UIInput */ .u3 {
|
|
1274
|
+
/** @override */
|
|
1275
|
+
className() {
|
|
1276
|
+
return 'ColorInput';
|
|
1277
|
+
}
|
|
1278
|
+
/** @override */
|
|
1279
|
+
constructor(jodit, options) {
|
|
1280
|
+
super(jodit, options);
|
|
1281
|
+
const popup = new jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .Popup */ .GI(jodit), parse = (c) => a_color_picker__WEBPACK_IMPORTED_MODULE_3__.parseColor(c, 'hex');
|
|
1282
|
+
this.popup = popup;
|
|
1283
|
+
this.trigger = (0,jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__/* .Button */ .zx)(this.j, 'ok');
|
|
1284
|
+
const wrapper = this.getElm('wrapper');
|
|
1285
|
+
void 0;
|
|
1286
|
+
wrapper.appendChild(this.trigger.container);
|
|
1287
|
+
this.trigger.container.classList.add(this.getFullElName('trigger'));
|
|
1288
|
+
this.trigger.onAction(() => {
|
|
1289
|
+
var _a, _b;
|
|
1290
|
+
(_b = (_a = this.state).onChange) === null || _b === void 0 ? void 0 : _b.call(_a, this.value);
|
|
1291
|
+
popup.close();
|
|
1292
|
+
});
|
|
1293
|
+
popup.setMod('padding', false).setMod('max-height', false);
|
|
1294
|
+
const pickerElement = this.j.create.div(this.getFullElName('picker'));
|
|
1295
|
+
const picker = a_color_picker__WEBPACK_IMPORTED_MODULE_3__.createPicker(pickerElement, {
|
|
1296
|
+
paletteEditable: true,
|
|
1297
|
+
showAlpha: true,
|
|
1298
|
+
palette: 'PALETTE_MATERIAL_CHROME'
|
|
1299
|
+
}).on('change', (picker, color) => {
|
|
1300
|
+
if (!this.isFocused) {
|
|
1301
|
+
this.value = a_color_picker__WEBPACK_IMPORTED_MODULE_3__.parseColor(color || '', 'hex');
|
|
1302
|
+
}
|
|
1303
|
+
});
|
|
1304
|
+
this.j.e.on(this, 'change', () => {
|
|
1305
|
+
if (parse(this.value) !== picker.color) {
|
|
1306
|
+
picker.color = this.value;
|
|
1307
|
+
}
|
|
1308
|
+
});
|
|
1309
|
+
popup.setContent(pickerElement);
|
|
1310
|
+
this.j.e.on(this.nativeInput, 'click', () => {
|
|
1311
|
+
popup.parentElement = this;
|
|
1312
|
+
if (this.jodit instanceof jodit_modules__WEBPACK_IMPORTED_MODULE_4__.Dialog) {
|
|
1313
|
+
popup.setZIndex(this.jodit.getZIndex() + 1);
|
|
1314
|
+
}
|
|
1315
|
+
popup.open(() => (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_2__.position)(this.container));
|
|
1316
|
+
});
|
|
1317
|
+
this.onChangeValue();
|
|
1318
|
+
this.onChangeSelfValue();
|
|
1319
|
+
}
|
|
1320
|
+
afterSetMode(name, value) {
|
|
1321
|
+
if (name === 'slim' && value) {
|
|
1322
|
+
this.nativeInput.setAttribute('readonly', 'true');
|
|
1323
|
+
}
|
|
1324
|
+
}
|
|
1325
|
+
onChangeSelfValue() {
|
|
1326
|
+
this.nativeInput.style.backgroundColor = this.value;
|
|
1327
|
+
}
|
|
1328
|
+
onEscKeyDown(e) {
|
|
1329
|
+
var _a;
|
|
1330
|
+
if (e.key === jodit_core_constants__WEBPACK_IMPORTED_MODULE_5__.KEY_ESC) {
|
|
1331
|
+
(_a = this.popup) === null || _a === void 0 ? void 0 : _a.close();
|
|
1332
|
+
}
|
|
1333
|
+
}
|
|
1334
|
+
};
|
|
1335
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn)([
|
|
1336
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)(':change')
|
|
1337
|
+
], ColorInput.prototype, "onChangeSelfValue", null);
|
|
1338
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn)([
|
|
1339
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.watch)('nativeInput:keydown')
|
|
1340
|
+
], ColorInput.prototype, "onEscKeyDown", null);
|
|
1341
|
+
ColorInput = (0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .gn)([
|
|
1342
|
+
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_1__.component
|
|
1343
|
+
], ColorInput);
|
|
1344
|
+
|
|
1345
|
+
|
|
1346
|
+
/***/ }),
|
|
1347
|
+
|
|
1348
|
+
/***/ 93050:
|
|
1349
|
+
/***/ (function(module) {
|
|
1350
|
+
|
|
1351
|
+
"use strict";
|
|
1352
|
+
module.exports = JSON.parse('[{"be":"#5cbf2a","bs":"#44c767","bc":"#18ab29","br":"28px","bse":"1px","bsh":false,"bsbr":0,"bsc":"#3dc21b","bsi":false,"bsox":0,"bsoy":0,"bssr":0,"fc":"#fff","ff":"Arial","fs":"17px","fse":false,"fw":false,"px":"31px","py":"16px","pbc":"#f5f5f5","s":true,"t":"green","ts":true,"tsbr":0,"tsc":"#2f6627","tsox":0,"tsoy":"1px"},{"be":"#476e9e","bs":"#7892c2","bc":"#4e6096","br":"10px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#9fb4f2","bsi":false,"bsox":0,"bsoy":0,"bssr":"2px","fc":"#fff","ff":"Arial","fs":"19px","fse":false,"fw":false,"px":"37px","py":"12px","pbc":"#f5f5f5","s":false,"t":"blue","ts":true,"tsbr":0,"tsc":"#283966","tsox":0,"tsoy":"1px"},{"be":"#408c99","bs":"#599bb3","bc":"#29668f","br":"8px","bse":0,"bsh":true,"bsbr":"14px","bsc":"#276873","bsi":false,"bsox":0,"bsoy":"10px","bssr":"-7px","fc":"#fff","ff":"Arial","fs":"20px","fse":false,"fw":true,"px":"32px","py":"13px","pbc":"#f5f5f5","s":false,"t":"turquoise","ts":true,"tsbr":0,"tsc":"#3d768a","tsox":0,"tsoy":"1px"},{"be":"#6c7c7c","bs":"#768d87","bc":"#566963","br":"5px","bse":"1px","bsh":true,"bsbr":"3px","bsc":"#91b8b3","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"23px","py":"11px","pbc":"#e8e7e2","s":false,"t":"dark grey","ts":true,"tsbr":0,"tsc":"#2b665e","tsox":0,"tsoy":"-1px"},{"be":"#72b352","bs":"#77b55a","bc":"#4b8f29","br":"4px","bse":"1px","bsh":true,"bsbr":"14px","bsc":"#3e7327","bsi":false,"bsox":0,"bsoy":"10px","bssr":"-7px","fc":"#fff","ff":"Arial","fs":"13px","fse":false,"fw":true,"px":"12px","py":"6px","pbc":"#f5f5f5","s":false,"t":"green","ts":true,"tsbr":0,"tsc":"#5b8a3c","tsox":0,"tsoy":"1px"},{"be":"#eb675e","bs":"#e4685d","bc":"#fff","br":"4px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#e67a73","bsi":true,"bsox":0,"bsoy":"39px","bssr":"-24px","fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":false,"px":"15px","py":"6px","pbc":"#f2f2f2","s":true,"t":"light red","ts":true,"tsbr":0,"tsc":"#b23e35","tsox":0,"tsoy":"1px"},{"be":"#b34332","bs":"#a73f2d","bc":"#241d13","br":0,"bse":"1px","bsh":true,"bsbr":0,"bsc":"#b54b3a","bsi":true,"bsox":0,"bsoy":"34px","bssr":"-15px","fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"23px","py":"9px","pbc":"#2a2218","s":true,"t":"brown","ts":true,"tsbr":0,"tsc":"#7a2a1d","tsox":0,"tsoy":"-1px"},{"be":"#0688fa","bs":"#2dabf9","bc":"#0b0e07","br":"3px","bse":"1px","bsh":true,"bsbr":"7px","bsc":"#29bbff","bsi":true,"bsox":0,"bsoy":"-3px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":false,"px":"23px","py":"9px","pbc":"#1c1c1e","s":false,"t":"blue","ts":true,"tsbr":0,"tsc":"#263666","tsox":0,"tsoy":"1px"},{"be":"#415989","bs":"#2e466e","bc":"#1f2f47","br":"17px","bse":"1px","bsh":true,"bsbr":"15px","bsc":"#23395e","bsi":true,"bsox":0,"bsoy":0,"bssr":"3px","fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":false,"px":"13px","py":"6px","pbc":"#3f5c93","s":false,"t":"blue","ts":true,"tsbr":0,"tsc":"#263666","tsox":0,"tsoy":"1px"},{"be":"#bc3315","bs":"#d0451b","bc":"#942911","br":"3px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#cf866c","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"13px","fse":false,"fw":false,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"codecanyon","ts":true,"tsbr":0,"tsc":"#854629","tsox":0,"tsoy":"1px"},{"be":"#ccc2a6","bs":"#eae0c2","bc":"#333029","br":"15px","bse":"2px","bsh":true,"bsbr":0,"bsc":"#1c1b18","bsi":false,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#505739","ff":"Arial","fs":"14px","fse":false,"fw":true,"px":"16px","py":"12px","pbc":"#2d2e29","s":false,"t":"creme","ts":true,"tsbr":0,"tsc":"#fff","tsox":0,"tsoy":"1px"},{"be":"#634b30","bs":"#7d5d3b","bc":"#54381e","br":"3px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#a6827e","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"13px","fse":false,"fw":false,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"themeforest","ts":true,"tsbr":0,"tsc":"#4d3534","tsox":0,"tsoy":"1px"},{"be":"#0061a7","bs":"#007dc1","bc":"#124d77","br":"3px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#54a3f7","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"13px","fse":false,"fw":false,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"graphicriver","ts":true,"tsbr":0,"tsc":"#154682","tsox":0,"tsoy":"1px"},{"be":"#019ad2","bs":"#33bdef","bc":"#057fd0","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#f0f7fa","bsi":false,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#e2e2e2","s":false,"t":"twitter","ts":true,"tsbr":0,"tsc":"#5b6178","tsox":0,"tsoy":"-1px"},{"be":"#ffab23","bs":"#ffec64","bc":"#ffaa22","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#fff6af","bsi":false,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#333333","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#e2e2e2","s":false,"t":"twitter","ts":true,"tsbr":0,"tsc":"#ffee66","tsox":0,"tsoy":"1px"},{"be":"#68a54b","bs":"#74ad5a","bc":"#3b6e22","br":0,"bse":"1px","bsh":true,"bsbr":0,"bsc":"#9acc85","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"13px","fse":false,"fw":true,"px":"12px","py":"6px","pbc":"#f5f5f5","s":false,"t":"facebook","ts":false,"tsbr":0,"tsc":"#92b879","tsox":0,"tsoy":"1px"},{"be":"#5972a7","bs":"#637aad","bc":"#314179","br":0,"bse":"1px","bsh":true,"bsbr":0,"bsc":"#7a8eb9","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"13px","fse":false,"fw":true,"px":"12px","py":"6px","pbc":"#3b5898","s":false,"t":"facebook","ts":false,"tsbr":0,"tsc":"#7a8eb9","tsox":0,"tsoy":"1px"},{"be":"#bab1ba","bs":"#ededed","bc":"#d6bcd6","br":"15px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#899599","bsi":false,"bsox":"3px","bsoy":"4px","bssr":0,"fc":"#3a8a9e","ff":"Arial","fs":"17px","fse":false,"fw":false,"px":"25px","py":"7px","pbc":"#f5f5f5","s":false,"t":"grey","ts":true,"tsbr":0,"tsc":"#e1e2ed","tsox":0,"tsoy":"1px"},{"be":"#f24437","bs":"#c62d1f","bc":"#d02718","br":"18px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#8a2a21","bsi":false,"bsox":"3px","bsoy":"4px","bssr":0,"fc":"#fff","ff":"Arial","fs":"17px","fse":false,"fw":false,"px":"25px","py":"7px","pbc":"#f5f5f5","s":false,"t":"red","ts":true,"tsbr":0,"tsc":"#810e05","tsox":0,"tsoy":"1px"},{"be":"#378de5","bs":"#79bbff","bc":"#337bc4","br":"5px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#1564ad","bsi":false,"bsox":"3px","bsoy":"4px","bssr":0,"fc":"#fff","ff":"Arial","fs":"17px","fse":false,"fw":true,"px":"44px","py":"12px","pbc":"#f5f5f5","s":false,"t":"blue","ts":true,"tsbr":0,"tsc":"#528ecc","tsox":0,"tsoy":"1px"},{"be":"#9ba892","bs":"#dbe6c4","bc":"#b2b8ad","br":"6px","bse":"1px","bsh":true,"bsbr":"14px","bsc":"#f2fadc","bsi":true,"bsox":0,"bsoy":0,"bssr":"-3px","fc":"#757d6f","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"olive","ts":true,"tsbr":0,"tsc":"#ced9bf","tsox":0,"tsoy":"1px"},{"be":"#bc80ea","bs":"#dfbdfa","bc":"#c584f3","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#efdcfb","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"purple","ts":true,"tsbr":0,"tsc":"#9752cc","tsox":0,"tsoy":"1px"},{"be":"#80b5ea","bs":"#bddbfa","bc":"#84bbf3","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#dcecfb","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"light blue","ts":true,"tsbr":0,"tsc":"#528ecc","tsox":0,"tsoy":"1px"},{"be":"#f6f6f6","bs":"#fff","bc":"#dcdcdc","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#fff","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#666666","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"white","ts":true,"tsbr":0,"tsc":"#fff","tsox":0,"tsoy":"1px"},{"be":"#e4685d","bs":"#fc8d83","bc":"#d83526","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#f7c5c0","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"light red","ts":true,"tsbr":0,"tsc":"#b23e35","tsox":0,"tsoy":"1px"},{"be":"#468ccf","bs":"#63b8ee","bc":"#3866a3","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#bee2f9","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#14396a","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"dark blue","ts":true,"tsbr":0,"tsc":"#7cacde","tsox":0,"tsoy":"1px"},{"be":"#ffab23","bs":"#ffec64","bc":"#ffaa22","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#fff6af","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#333333","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"orange","ts":true,"tsbr":0,"tsc":"#ffee66","tsox":0,"tsoy":"1px"},{"be":"#77a809","bs":"#89c403","bc":"#74b807","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#a4e271","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"green","ts":true,"tsbr":0,"tsc":"#528009","tsox":0,"tsoy":"1px"},{"be":"#e9e9e9","bs":"#f9f9f9","bc":"#dcdcdc","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#fff","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#666666","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"light grey","ts":true,"tsbr":0,"tsc":"#fff","tsox":0,"tsoy":"1px"},{"be":"#a20dbd","bs":"#c123de","bc":"#a511c0","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#e184f3","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"purple","ts":true,"tsbr":0,"tsc":"#9b14b3","tsox":0,"tsoy":"1px"},{"be":"#1e62d0","bs":"#3d94f6","bc":"#337fed","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#97c4fe","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"blue","ts":true,"tsbr":0,"tsc":"#1570cd","tsox":0,"tsoy":"1px"},{"be":"#ef027d","bs":"#ff5bb0","bc":"#ee1eb5","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#fbafe3","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"pink","ts":true,"tsbr":0,"tsc":"#c70067","tsox":0,"tsoy":"1px"},{"be":"#f2ab1e","bs":"#f0c911","bc":"#e65f44","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#f9eca0","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#c92200","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"orange","ts":true,"tsbr":0,"tsc":"#ded17c","tsox":0,"tsoy":"1px"},{"be":"#c62d1f","bs":"#f24537","bc":"#d02718","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#f5978e","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"red","ts":true,"tsbr":0,"tsc":"#810e05","tsox":0,"tsoy":"1px"},{"be":"#a5cc52","bs":"#b8e356","bc":"#83c41a","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#d9fbbe","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"light green","ts":true,"tsbr":0,"tsc":"#86ae47","tsox":0,"tsoy":"1px"},{"be":"#fb9e25","bs":"#ffc477","bc":"#eeb44f","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#fce2c1","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"light orange","ts":true,"tsbr":0,"tsc":"#cc9f52","tsox":0,"tsoy":"1px"},{"be":"#dfdfdf","bs":"#ededed","bc":"#dcdcdc","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#fff","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#777777","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"grey","ts":true,"tsbr":0,"tsc":"#fff","tsox":0,"tsoy":"1px"},{"be":"#378de5","bs":"#79bbff","bc":"#84bbf3","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#bbdaf7","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"blue","ts":true,"tsbr":0,"tsc":"#528ecc","tsox":0,"tsoy":"1px"},{"be":"#5cb811","bs":"#77d42a","bc":"#268a16","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#caefab","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#306108","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"green","ts":true,"tsbr":0,"tsc":"#aade7c","tsox":0,"tsoy":"1px"},{"be":"#ce0100","bs":"#fe1a00","bc":"#d83526","br":"6px","bse":"1px","bsh":true,"bsbr":0,"bsc":"#f29c93","bsi":true,"bsox":0,"bsoy":"1px","bssr":0,"fc":"#fff","ff":"Arial","fs":"15px","fse":false,"fw":true,"px":"24px","py":"6px","pbc":"#f5f5f5","s":false,"t":"red","ts":true,"tsbr":0,"tsc":"#b23e35","tsox":0,"tsoy":"1px"}]');
|
|
1353
|
+
|
|
1354
|
+
/***/ })
|
|
1355
|
+
|
|
1356
|
+
},
|
|
1357
|
+
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
1358
|
+
/******/ var __webpack_exec__ = function(moduleId) { return __webpack_require__(__webpack_require__.s = moduleId); }
|
|
1359
|
+
/******/ var __webpack_exports__ = (__webpack_exec__(64122));
|
|
1360
|
+
/******/ return __webpack_exports__;
|
|
1361
|
+
/******/ }
|
|
1362
|
+
]);
|
|
1363
|
+
});
|