jodit 4.0.0-beta.67 → 4.0.0-beta.69
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/README.md +5 -4
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +2 -2
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +2 -2
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +2 -2
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +2 -2
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +2 -2
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/esm/config.d.ts +633 -0
- package/esm/config.js +2 -2
- package/esm/core/async/async.d.ts +73 -0
- package/esm/core/async/async.js +8 -8
- package/esm/core/async/index.d.ts +9 -0
- package/esm/core/async/index.js +1 -1
- package/esm/core/component/component.d.ts +121 -0
- package/esm/core/component/component.js +4 -4
- package/esm/core/component/index.d.ts +11 -0
- package/esm/core/component/index.js +3 -3
- package/esm/core/component/statuses.d.ts +14 -0
- package/esm/core/component/view-component.d.ts +29 -0
- package/esm/core/component/view-component.js +1 -1
- package/esm/core/constants.d.ts +128 -0
- package/esm/core/constants.js +8 -8
- package/esm/core/create/create.d.ts +58 -0
- package/esm/core/create/create.js +4 -4
- package/esm/core/create/index.d.ts +9 -0
- package/esm/core/create/index.js +1 -1
- package/esm/core/decorators/cache/cache.d.ts +16 -0
- package/esm/core/decorators/cache/cache.js +4 -4
- package/esm/core/decorators/component/component.d.ts +19 -0
- package/esm/core/decorators/debounce/debounce.d.ts +16 -0
- package/esm/core/decorators/debounce/debounce.js +4 -4
- package/esm/core/decorators/derive/derive.d.ts +6 -0
- package/esm/core/decorators/derive/derive.js +1 -1
- package/esm/core/decorators/hook/hook.d.ts +16 -0
- package/esm/core/decorators/hook/hook.js +2 -2
- package/esm/core/decorators/idle/idle.d.ts +12 -0
- package/esm/core/decorators/idle/idle.js +3 -3
- package/esm/core/decorators/index.d.ts +21 -0
- package/esm/core/decorators/index.js +11 -11
- package/esm/core/decorators/nonenumerable/nonenumerable.d.ts +11 -0
- package/esm/core/decorators/persistent/persistent.d.ts +12 -0
- package/esm/core/decorators/persistent/persistent.js +2 -2
- package/esm/core/decorators/wait/wait.d.ts +13 -0
- package/esm/core/decorators/wait/wait.js +3 -3
- package/esm/core/decorators/watch/watch.d.ts +20 -0
- package/esm/core/decorators/watch/watch.js +7 -7
- package/esm/core/dom/dom.d.ts +249 -0
- package/esm/core/dom/dom.js +6 -6
- package/esm/core/dom/index.d.ts +10 -0
- package/esm/core/dom/index.js +2 -2
- package/esm/core/dom/lazy-walker.d.ts +37 -0
- package/esm/core/dom/lazy-walker.js +9 -5
- package/esm/core/event-emitter/event-emitter.d.ts +138 -0
- package/esm/core/event-emitter/event-emitter.js +7 -7
- package/esm/core/event-emitter/eventify.d.ts +40 -0
- package/esm/core/event-emitter/index.d.ts +12 -0
- package/esm/core/event-emitter/index.js +4 -4
- package/esm/core/event-emitter/observable.d.ts +45 -0
- package/esm/core/event-emitter/observable.js +4 -4
- package/esm/core/event-emitter/store.d.ts +21 -0
- package/esm/core/event-emitter/store.js +2 -2
- package/esm/core/global.d.ts +27 -0
- package/esm/core/global.js +9 -9
- package/esm/core/helpers/array/as-array.d.ts +9 -0
- package/esm/core/helpers/array/as-array.js +1 -1
- package/esm/core/helpers/array/index.d.ts +11 -0
- package/esm/core/helpers/array/index.js +3 -3
- package/esm/core/helpers/array/split-array.d.ts +14 -0
- package/esm/core/helpers/array/to-array.d.ts +15 -0
- package/esm/core/helpers/array/to-array.js +2 -2
- package/esm/core/helpers/async/index.d.ts +9 -0
- package/esm/core/helpers/async/index.js +1 -1
- package/esm/core/helpers/async/set-timeout.d.ts +16 -0
- package/esm/core/helpers/checker/has-browser-color-picker.d.ts +12 -0
- package/esm/core/helpers/checker/index.d.ts +32 -0
- package/esm/core/helpers/checker/index.js +24 -24
- package/esm/core/helpers/checker/is-array.d.ts +12 -0
- package/esm/core/helpers/checker/is-boolean.d.ts +9 -0
- package/esm/core/helpers/checker/is-equal.d.ts +10 -0
- package/esm/core/helpers/checker/is-equal.js +1 -1
- package/esm/core/helpers/checker/is-function.d.ts +12 -0
- package/esm/core/helpers/checker/is-html-from-word.d.ts +12 -0
- package/esm/core/helpers/checker/is-html.d.ts +9 -0
- package/esm/core/helpers/checker/is-html.js +1 -1
- package/esm/core/helpers/checker/is-imp-interface.d.ts +21 -0
- package/esm/core/helpers/checker/is-imp-interface.js +3 -3
- package/esm/core/helpers/checker/is-int.d.ts +9 -0
- package/esm/core/helpers/checker/is-int.js +2 -2
- package/esm/core/helpers/checker/is-jodit-object.d.ts +13 -0
- package/esm/core/helpers/checker/is-jodit-object.js +1 -1
- package/esm/core/helpers/checker/is-license.d.ts +6 -0
- package/esm/core/helpers/checker/is-license.js +1 -1
- package/esm/core/helpers/checker/is-marker.d.ts +10 -0
- package/esm/core/helpers/checker/is-marker.js +2 -2
- package/esm/core/helpers/checker/is-native-function.d.ts +12 -0
- package/esm/core/helpers/checker/is-number.d.ts +12 -0
- package/esm/core/helpers/checker/is-numeric.d.ts +9 -0
- package/esm/core/helpers/checker/is-numeric.js +1 -1
- package/esm/core/helpers/checker/is-plain-object.d.ts +13 -0
- package/esm/core/helpers/checker/is-plain-object.js +1 -1
- package/esm/core/helpers/checker/is-promise.d.ts +9 -0
- package/esm/core/helpers/checker/is-set.d.ts +9 -0
- package/esm/core/helpers/checker/is-set.js +1 -1
- package/esm/core/helpers/checker/is-string.d.ts +13 -0
- package/esm/core/helpers/checker/is-string.js +1 -1
- package/esm/core/helpers/checker/is-url.d.ts +12 -0
- package/esm/core/helpers/checker/is-valid-name.d.ts +12 -0
- package/esm/core/helpers/checker/is-view-object.d.ts +13 -0
- package/esm/core/helpers/checker/is-view-object.js +1 -1
- package/esm/core/helpers/checker/is-void.d.ts +12 -0
- package/esm/core/helpers/checker/is-window.d.ts +9 -0
- package/esm/core/helpers/color/color-to-hex.d.ts +22 -0
- package/esm/core/helpers/color/index.d.ts +9 -0
- package/esm/core/helpers/color/index.js +1 -1
- package/esm/core/helpers/html/apply-styles.d.ts +11 -0
- package/esm/core/helpers/html/apply-styles.js +4 -4
- package/esm/core/helpers/html/clean-from-word.d.ts +10 -0
- package/esm/core/helpers/html/clean-from-word.js +3 -3
- package/esm/core/helpers/html/htmlspecialchars.d.ts +12 -0
- package/esm/core/helpers/html/index.d.ts +14 -0
- package/esm/core/helpers/html/index.js +6 -6
- package/esm/core/helpers/html/nl2br.d.ts +12 -0
- package/esm/core/helpers/html/safe-html.d.ts +15 -0
- package/esm/core/helpers/html/safe-html.js +2 -2
- package/esm/core/helpers/html/strip-tags.d.ts +13 -0
- package/esm/core/helpers/html/strip-tags.js +4 -4
- package/esm/core/helpers/index.d.ts +19 -0
- package/esm/core/helpers/index.js +9 -9
- package/esm/core/helpers/normalize/index.d.ts +16 -0
- package/esm/core/helpers/normalize/index.js +8 -8
- package/esm/core/helpers/normalize/normalize-color.d.ts +12 -0
- package/esm/core/helpers/normalize/normalize-color.js +2 -2
- package/esm/core/helpers/normalize/normalize-css-value.d.ts +8 -0
- package/esm/core/helpers/normalize/normalize-css-value.js +4 -4
- package/esm/core/helpers/normalize/normalize-key-aliases.d.ts +9 -0
- package/esm/core/helpers/normalize/normalize-key-aliases.js +2 -2
- package/esm/core/helpers/normalize/normalize-license.d.ts +9 -0
- package/esm/core/helpers/normalize/normalize-path.d.ts +9 -0
- package/esm/core/helpers/normalize/normalize-path.js +1 -1
- package/esm/core/helpers/normalize/normalize-relative-path.d.ts +9 -0
- package/esm/core/helpers/normalize/normalize-size.d.ts +12 -0
- package/esm/core/helpers/normalize/normalize-url.d.ts +9 -0
- package/esm/core/helpers/size/get-content-width.d.ts +9 -0
- package/esm/core/helpers/size/get-scroll-parent.d.ts +10 -0
- package/esm/core/helpers/size/get-scroll-parent.js +2 -2
- package/esm/core/helpers/size/index.d.ts +14 -0
- package/esm/core/helpers/size/index.js +6 -6
- package/esm/core/helpers/size/inner-width.d.ts +9 -0
- package/esm/core/helpers/size/object-size.d.ts +10 -0
- package/esm/core/helpers/size/object-size.js +1 -1
- package/esm/core/helpers/size/offset.d.ts +14 -0
- package/esm/core/helpers/size/position.d.ts +12 -0
- package/esm/core/helpers/size/position.js +1 -1
- package/esm/core/helpers/string/camel-case.d.ts +12 -0
- package/esm/core/helpers/string/fuzzy-search-index.d.ts +10 -0
- package/esm/core/helpers/string/fuzzy-search-index.js +1 -1
- package/esm/core/helpers/string/i18n.d.ts +39 -0
- package/esm/core/helpers/string/i18n.js +5 -5
- package/esm/core/helpers/string/index.d.ts +15 -0
- package/esm/core/helpers/string/index.js +7 -7
- package/esm/core/helpers/string/kebab-case.d.ts +10 -0
- package/esm/core/helpers/string/stringify.d.ts +12 -0
- package/esm/core/helpers/string/trim.d.ts +14 -0
- package/esm/core/helpers/string/trim.js +1 -1
- package/esm/core/helpers/string/ucfirst.d.ts +12 -0
- package/esm/core/helpers/utils/align.d.ts +21 -0
- package/esm/core/helpers/utils/align.js +2 -2
- package/esm/core/helpers/utils/append-script.d.ts +28 -0
- package/esm/core/helpers/utils/append-script.js +3 -3
- package/esm/core/helpers/utils/assert.d.ts +8 -0
- package/esm/core/helpers/utils/attr.d.ts +22 -0
- package/esm/core/helpers/utils/attr.js +3 -3
- package/esm/core/helpers/utils/browser.d.ts +20 -0
- package/esm/core/helpers/utils/build-query.d.ts +13 -0
- package/esm/core/helpers/utils/build-query.js +1 -1
- package/esm/core/helpers/utils/complete-url.d.ts +9 -0
- package/esm/core/helpers/utils/config-proto.d.ts +41 -0
- package/esm/core/helpers/utils/config-proto.js +7 -7
- package/esm/core/helpers/utils/convert-media-url-to-video-embed.d.ts +9 -0
- package/esm/core/helpers/utils/convert-media-url-to-video-embed.js +2 -2
- package/esm/core/helpers/utils/css.d.ts +17 -0
- package/esm/core/helpers/utils/css.js +5 -5
- package/esm/core/helpers/utils/ctrl-key.d.ts +13 -0
- package/esm/core/helpers/utils/data-bind.d.ts +10 -0
- package/esm/core/helpers/utils/data-bind.js +1 -1
- package/esm/core/helpers/utils/default-language.d.ts +9 -0
- package/esm/core/helpers/utils/default-language.js +1 -1
- package/esm/core/helpers/utils/error/error.d.ts +13 -0
- package/esm/core/helpers/utils/error/error.js +1 -1
- package/esm/core/helpers/utils/error/errors/abort-error.d.ts +11 -0
- package/esm/core/helpers/utils/error/errors/connection-error.d.ts +11 -0
- package/esm/core/helpers/utils/error/errors/index.d.ts +11 -0
- package/esm/core/helpers/utils/error/errors/index.js +3 -3
- package/esm/core/helpers/utils/error/errors/options-error.d.ts +11 -0
- package/esm/core/helpers/utils/error/index.d.ts +10 -0
- package/esm/core/helpers/utils/error/index.js +2 -2
- package/esm/core/helpers/utils/extend.d.ts +8 -0
- package/esm/core/helpers/utils/extend.js +1 -1
- package/esm/core/helpers/utils/get-class-name.d.ts +11 -0
- package/esm/core/helpers/utils/get-class-name.js +1 -1
- package/esm/core/helpers/utils/get.d.ts +29 -0
- package/esm/core/helpers/utils/get.js +2 -2
- package/esm/core/helpers/utils/human-size-to-bytes.d.ts +13 -0
- package/esm/core/helpers/utils/index.d.ts +36 -0
- package/esm/core/helpers/utils/index.js +28 -28
- package/esm/core/helpers/utils/mark-deprecated.d.ts +17 -0
- package/esm/core/helpers/utils/parse-query.d.ts +13 -0
- package/esm/core/helpers/utils/print.d.ts +16 -0
- package/esm/core/helpers/utils/print.js +5 -5
- package/esm/core/helpers/utils/reset.d.ts +18 -0
- package/esm/core/helpers/utils/reset.js +3 -3
- package/esm/core/helpers/utils/scroll-into-view.d.ts +14 -0
- package/esm/core/helpers/utils/scroll-into-view.js +1 -1
- package/esm/core/helpers/utils/selector.d.ts +41 -0
- package/esm/core/helpers/utils/selector.js +8 -8
- package/esm/core/helpers/utils/set.d.ts +23 -0
- package/esm/core/helpers/utils/set.js +4 -4
- package/esm/core/helpers/utils/stack.d.ts +17 -0
- package/esm/core/helpers/utils/utils.d.ts +39 -0
- package/esm/core/helpers/utils/utils.js +4 -4
- package/esm/core/helpers/utils/val.d.ts +9 -0
- package/esm/core/plugin/helpers/init-instance.d.ts +14 -0
- package/esm/core/plugin/helpers/init-instance.js +4 -4
- package/esm/core/plugin/helpers/load.d.ts +17 -0
- package/esm/core/plugin/helpers/load.js +4 -4
- package/esm/core/plugin/helpers/make-instance.d.ts +14 -0
- package/esm/core/plugin/helpers/make-instance.js +2 -2
- package/esm/core/plugin/helpers/utils.d.ts +9 -0
- package/esm/core/plugin/helpers/utils.js +1 -1
- package/esm/core/plugin/index.d.ts +10 -0
- package/esm/core/plugin/index.js +2 -2
- package/esm/core/plugin/interface.d.ts +14 -0
- package/esm/core/plugin/interface.js +0 -5
- package/esm/core/plugin/plugin-system.d.ts +46 -0
- package/esm/core/plugin/plugin-system.js +9 -9
- package/esm/core/plugin/plugin.d.ts +38 -0
- package/esm/core/plugin/plugin.js +9 -5
- package/esm/core/request/ajax.d.ts +28 -0
- package/esm/core/request/ajax.js +13 -9
- package/esm/core/request/config.d.ts +17 -0
- package/esm/core/request/config.js +1 -1
- package/esm/core/request/index.d.ts +10 -0
- package/esm/core/request/index.js +2 -2
- package/esm/core/request/response.d.ts +20 -0
- package/esm/core/selection/helpers/index.d.ts +10 -0
- package/esm/core/selection/helpers/index.js +2 -2
- package/esm/core/selection/helpers/move-node-inside-start.d.ts +15 -0
- package/esm/core/selection/helpers/move-node-inside-start.js +2 -2
- package/esm/core/selection/helpers/move-the-node-along-the-edge-outward.d.ts +10 -0
- package/esm/core/selection/helpers/move-the-node-along-the-edge-outward.js +1 -1
- package/esm/core/selection/index.d.ts +10 -0
- package/esm/core/selection/index.js +2 -2
- package/esm/core/selection/interface.d.ts +19 -0
- package/esm/core/selection/interface.js +0 -5
- package/esm/core/selection/selection.d.ts +231 -0
- package/esm/core/selection/selection.js +16 -12
- package/esm/core/selection/style/api/extract.d.ts +23 -0
- package/esm/core/selection/style/api/extract.js +4 -4
- package/esm/core/selection/style/api/finite-state-machine.d.ts +22 -0
- package/esm/core/selection/style/api/finite-state-machine.js +3 -3
- package/esm/core/selection/style/api/get-suit-child.d.ts +15 -0
- package/esm/core/selection/style/api/get-suit-child.js +3 -3
- package/esm/core/selection/style/api/get-suit-parent.d.ts +15 -0
- package/esm/core/selection/style/api/get-suit-parent.js +3 -3
- package/esm/core/selection/style/api/has-same-style.d.ts +15 -0
- package/esm/core/selection/style/api/has-same-style.js +5 -5
- package/esm/core/selection/style/api/index.d.ts +20 -0
- package/esm/core/selection/style/api/index.js +15 -15
- package/esm/core/selection/style/api/is-inside-invisible-element.d.ts +10 -0
- package/esm/core/selection/style/api/is-inside-invisible-element.js +1 -1
- package/esm/core/selection/style/api/is-normal-node.d.ts +11 -0
- package/esm/core/selection/style/api/is-normal-node.js +2 -2
- package/esm/core/selection/style/api/is-same-attributes.d.ts +12 -0
- package/esm/core/selection/style/api/is-same-attributes.js +4 -4
- package/esm/core/selection/style/api/is-suit-element.d.ts +28 -0
- package/esm/core/selection/style/api/is-suit-element.js +3 -3
- package/esm/core/selection/style/api/list/toggle-ordered-list.d.ts +11 -0
- package/esm/core/selection/style/api/list/toggle-ordered-list.js +6 -6
- package/esm/core/selection/style/api/list/wrap-list.d.ts +12 -0
- package/esm/core/selection/style/api/list/wrap-list.js +3 -3
- package/esm/core/selection/style/api/toggle-attributes.d.ts +11 -0
- package/esm/core/selection/style/api/toggle-attributes.js +10 -10
- package/esm/core/selection/style/api/unwrap-children.d.ts +11 -0
- package/esm/core/selection/style/api/unwrap-children.js +4 -4
- package/esm/core/selection/style/api/wrap-unwrapped-text.d.ts +11 -0
- package/esm/core/selection/style/api/wrap-unwrapped-text.js +2 -2
- package/esm/core/selection/style/api/wrap.d.ts +11 -0
- package/esm/core/selection/style/api/wrap.js +4 -4
- package/esm/core/selection/style/apply-style.d.ts +11 -0
- package/esm/core/selection/style/apply-style.js +3 -3
- package/esm/core/selection/style/commit-style.d.ts +36 -0
- package/esm/core/selection/style/commit-style.js +3 -3
- package/esm/core/selection/style/transactions.d.ts +30 -0
- package/esm/core/selection/style/transactions.js +6 -6
- package/esm/core/storage/engines/local-storage-provider.d.ts +25 -0
- package/esm/core/storage/engines/memory-storage-provider.d.ts +17 -0
- package/esm/core/storage/index.d.ts +11 -0
- package/esm/core/storage/index.js +3 -3
- package/esm/core/storage/storage.d.ts +23 -0
- package/esm/core/storage/storage.js +3 -3
- package/esm/core/traits/dlgs.d.ts +15 -0
- package/esm/core/traits/dlgs.js +3 -3
- package/esm/core/traits/elms.d.ts +19 -0
- package/esm/core/traits/elms.js +1 -1
- package/esm/core/traits/mods.d.ts +23 -0
- package/esm/core/traits/mods.js +1 -1
- package/esm/core/ui/button/button/button.d.ts +77 -0
- package/esm/core/ui/button/button/button.js +15 -12
- package/esm/core/ui/button/group/group.d.ts +37 -0
- package/esm/core/ui/button/group/group.js +10 -7
- package/esm/core/ui/button/index.d.ts +13 -0
- package/esm/core/ui/button/index.js +3 -3
- package/esm/core/ui/button/tooltip/tooltip.d.ts +33 -0
- package/esm/core/ui/button/tooltip/tooltip.js +13 -10
- package/esm/core/ui/element.d.ts +59 -0
- package/esm/core/ui/element.js +13 -9
- package/esm/core/ui/form/block/block.d.ts +29 -0
- package/esm/core/ui/form/block/block.js +9 -6
- package/esm/core/ui/form/form.d.ts +23 -0
- package/esm/core/ui/form/form.js +12 -8
- package/esm/core/ui/form/index.d.ts +11 -0
- package/esm/core/ui/form/index.js +3 -3
- package/esm/core/ui/form/inputs/area/area.d.ts +21 -0
- package/esm/core/ui/form/inputs/area/area.js +8 -5
- package/esm/core/ui/form/inputs/checkbox/checkbox.d.ts +26 -0
- package/esm/core/ui/form/inputs/checkbox/checkbox.js +9 -6
- package/esm/core/ui/form/inputs/file/file.d.ts +22 -0
- package/esm/core/ui/form/inputs/file/file.js +9 -6
- package/esm/core/ui/form/inputs/index.d.ts +13 -0
- package/esm/core/ui/form/inputs/index.js +5 -5
- package/esm/core/ui/form/inputs/input/input.d.ts +54 -0
- package/esm/core/ui/form/inputs/input/input.js +13 -10
- package/esm/core/ui/form/inputs/select/select.d.ts +28 -0
- package/esm/core/ui/form/inputs/select/select.js +10 -7
- package/esm/core/ui/form/validators/index.d.ts +10 -0
- package/esm/core/ui/form/validators/index.js +2 -2
- package/esm/core/ui/form/validators/input.d.ts +17 -0
- package/esm/core/ui/form/validators/input.js +2 -2
- package/esm/core/ui/form/validators/select.d.ts +13 -0
- package/esm/core/ui/form/validators/select.js +1 -1
- package/esm/core/ui/group/group.d.ts +57 -0
- package/esm/core/ui/group/group.js +12 -9
- package/esm/core/ui/group/index.d.ts +12 -0
- package/esm/core/ui/group/index.js +4 -4
- package/esm/core/ui/group/list.d.ts +38 -0
- package/esm/core/ui/group/list.js +16 -13
- package/esm/core/ui/group/separator.d.ts +12 -0
- package/esm/core/ui/group/separator.js +8 -4
- package/esm/core/ui/group/spacer.d.ts +12 -0
- package/esm/core/ui/group/spacer.js +8 -4
- package/esm/core/ui/helpers/buttons.d.ts +17 -0
- package/esm/core/ui/helpers/buttons.js +1 -1
- package/esm/core/ui/helpers/get-control-type.d.ts +18 -0
- package/esm/core/ui/helpers/get-control-type.js +2 -2
- package/esm/core/ui/helpers/get-strong-control-types.d.ts +13 -0
- package/esm/core/ui/helpers/get-strong-control-types.js +4 -4
- package/esm/core/ui/icon.d.ts +30 -0
- package/esm/core/ui/icon.js +3 -3
- package/esm/core/ui/index.d.ts +17 -0
- package/esm/core/ui/index.js +7 -7
- package/esm/core/ui/popup/index.d.ts +9 -0
- package/esm/core/ui/popup/index.js +1 -1
- package/esm/core/ui/popup/popup.d.ts +71 -0
- package/esm/core/ui/popup/popup.js +13 -10
- package/esm/core/ui/progress-bar/progress-bar.d.ts +26 -0
- package/esm/core/ui/progress-bar/progress-bar.js +2 -3
- package/esm/core/view/view-with-toolbar.d.ts +47 -0
- package/esm/core/view/view-with-toolbar.js +15 -12
- package/esm/core/view/view.d.ts +126 -0
- package/esm/core/view/view.js +16 -12
- package/esm/index.d.ts +17 -0
- package/esm/index.js +7 -16
- package/esm/jodit.d.ts +360 -0
- package/esm/jodit.js +15 -11
- package/esm/langs/ar.d.ts +212 -0
- package/esm/langs/cs_cz.d.ts +214 -0
- package/esm/langs/de.d.ts +217 -0
- package/esm/langs/en.d.ts +6 -0
- package/esm/langs/es.d.ts +217 -0
- package/esm/langs/fr.d.ts +209 -0
- package/esm/langs/he.d.ts +212 -0
- package/esm/langs/hu.d.ts +214 -0
- package/esm/langs/id.d.ts +214 -0
- package/esm/langs/it.d.ts +212 -0
- package/esm/langs/ja.d.ts +217 -0
- package/esm/langs/keys.d.ts +1 -0
- package/esm/langs/ko.d.ts +212 -0
- package/esm/langs/mn.d.ts +212 -0
- package/esm/langs/nl.d.ts +213 -0
- package/esm/langs/pl.d.ts +212 -0
- package/esm/langs/pt_br.d.ts +217 -0
- package/esm/langs/ru.d.ts +212 -0
- package/esm/langs/tr.d.ts +212 -0
- package/esm/langs/zh_cn.d.ts +213 -0
- package/esm/langs/zh_tw.d.ts +211 -0
- package/esm/languages.d.ts +13 -0
- package/esm/languages.js +22 -22
- package/esm/modules/context-menu/context-menu.d.ts +32 -0
- package/esm/modules/context-menu/context-menu.js +10 -7
- package/esm/modules/dialog/alert.d.ts +24 -0
- package/esm/modules/dialog/alert.js +5 -5
- package/esm/modules/dialog/confirm.d.ts +24 -0
- package/esm/modules/dialog/confirm.js +3 -3
- package/esm/modules/dialog/dialog.d.ts +181 -0
- package/esm/modules/dialog/dialog.js +19 -16
- package/esm/modules/dialog/index.d.ts +14 -0
- package/esm/modules/dialog/index.js +4 -4
- package/esm/modules/dialog/prompt.d.ts +27 -0
- package/esm/modules/dialog/prompt.js +4 -4
- package/esm/modules/file-browser/builders/context-menu.d.ts +11 -0
- package/esm/modules/file-browser/builders/context-menu.js +9 -9
- package/esm/modules/file-browser/builders/elements-map.d.ts +19 -0
- package/esm/modules/file-browser/builders/item.d.ts +23 -0
- package/esm/modules/file-browser/builders/item.js +1 -1
- package/esm/modules/file-browser/config.d.ts +11 -0
- package/esm/modules/file-browser/config.js +4 -4
- package/esm/modules/file-browser/data-provider.d.ts +112 -0
- package/esm/modules/file-browser/data-provider.js +11 -7
- package/esm/modules/file-browser/factories.d.ts +11 -0
- package/esm/modules/file-browser/factories.js +2 -2
- package/esm/modules/file-browser/fetch/delete-file.d.ts +14 -0
- package/esm/modules/file-browser/fetch/load-items.d.ts +14 -0
- package/esm/modules/file-browser/fetch/load-tree.d.ts +14 -0
- package/esm/modules/file-browser/fetch/load-tree.js +2 -2
- package/esm/modules/file-browser/file-browser.d.ts +76 -0
- package/esm/modules/file-browser/file-browser.js +26 -23
- package/esm/modules/file-browser/index.d.ts +11 -0
- package/esm/modules/file-browser/index.js +1 -1
- package/esm/modules/file-browser/listeners/native-listeners.d.ts +24 -0
- package/esm/modules/file-browser/listeners/native-listeners.js +5 -5
- package/esm/modules/file-browser/listeners/self-listeners.d.ts +13 -0
- package/esm/modules/file-browser/listeners/self-listeners.js +7 -7
- package/esm/modules/file-browser/listeners/state-listeners.d.ts +14 -0
- package/esm/modules/file-browser/listeners/state-listeners.js +5 -5
- package/esm/modules/file-browser/ui/files/files.d.ts +10 -0
- package/esm/modules/file-browser/ui/files/files.js +1 -2
- package/esm/modules/file-browser/ui/index.d.ts +10 -0
- package/esm/modules/file-browser/ui/index.js +2 -2
- package/esm/modules/file-browser/ui/tree/tree.d.ts +10 -0
- package/esm/modules/file-browser/ui/tree/tree.js +1 -2
- package/esm/modules/history/command.d.ts +19 -0
- package/esm/modules/history/history.d.ts +74 -0
- package/esm/modules/history/history.js +12 -8
- package/esm/modules/history/snapshot.d.ts +67 -0
- package/esm/modules/history/snapshot.js +3 -3
- package/esm/modules/history/stack.d.ts +26 -0
- package/esm/modules/image-editor/config.d.ts +11 -0
- package/esm/modules/image-editor/config.js +4 -4
- package/esm/modules/image-editor/image-editor.d.ts +120 -0
- package/esm/modules/image-editor/image-editor.js +14 -11
- package/esm/modules/image-editor/templates/form.d.ts +10 -0
- package/esm/modules/image-editor/templates/form.js +1 -1
- package/esm/modules/index.d.ts +37 -0
- package/esm/modules/index.js +26 -26
- package/esm/modules/messages/message.d.ts +17 -0
- package/esm/modules/messages/message.js +8 -4
- package/esm/modules/messages/messages.d.ts +36 -0
- package/esm/modules/messages/messages.js +10 -7
- package/esm/modules/status-bar/status-bar.d.ts +46 -0
- package/esm/modules/status-bar/status-bar.js +11 -8
- package/esm/modules/table/table.d.ts +91 -0
- package/esm/modules/table/table.js +12 -8
- package/esm/modules/toolbar/button/button.d.ts +84 -0
- package/esm/modules/toolbar/button/button.js +16 -13
- package/esm/modules/toolbar/button/content.d.ts +22 -0
- package/esm/modules/toolbar/button/content.js +10 -7
- package/esm/modules/toolbar/button/index.d.ts +10 -0
- package/esm/modules/toolbar/button/index.js +2 -2
- package/esm/modules/toolbar/collection/collection.d.ts +51 -0
- package/esm/modules/toolbar/collection/collection.js +10 -7
- package/esm/modules/toolbar/collection/editor-collection.d.ts +38 -0
- package/esm/modules/toolbar/collection/editor-collection.js +11 -7
- package/esm/modules/toolbar/factory.d.ts +19 -0
- package/esm/modules/toolbar/factory.js +5 -5
- package/esm/modules/uploader/config.d.ts +18 -0
- package/esm/modules/uploader/config.js +3 -3
- package/esm/modules/uploader/helpers/build-data.d.ts +10 -0
- package/esm/modules/uploader/helpers/build-data.js +1 -1
- package/esm/modules/uploader/helpers/data-uri-to-blob.d.ts +12 -0
- package/esm/modules/uploader/helpers/index.d.ts +16 -0
- package/esm/modules/uploader/helpers/index.js +5 -5
- package/esm/modules/uploader/helpers/process-old-browser-drag.d.ts +10 -0
- package/esm/modules/uploader/helpers/process-old-browser-drag.js +5 -5
- package/esm/modules/uploader/helpers/send-files.d.ts +13 -0
- package/esm/modules/uploader/helpers/send-files.js +2 -2
- package/esm/modules/uploader/helpers/send.d.ts +12 -0
- package/esm/modules/uploader/helpers/send.js +3 -3
- package/esm/modules/uploader/uploader.d.ts +60 -0
- package/esm/modules/uploader/uploader.js +6 -7
- package/esm/modules/widget/color-picker/color-picker.d.ts +30 -0
- package/esm/modules/widget/color-picker/color-picker.js +4 -5
- package/esm/modules/widget/file-selector/file-selector.d.ts +54 -0
- package/esm/modules/widget/file-selector/file-selector.js +4 -4
- package/esm/modules/widget/index.d.ts +13 -0
- package/esm/modules/widget/index.js +3 -3
- package/esm/modules/widget/tabs/tabs.d.ts +38 -0
- package/esm/modules/widget/tabs/tabs.js +5 -6
- package/esm/plugins/about/about.d.ts +11 -0
- package/esm/plugins/about/about.js +7 -8
- package/esm/plugins/add-new-line/add-new-line.d.ts +38 -0
- package/esm/plugins/add-new-line/add-new-line.js +11 -8
- package/esm/plugins/add-new-line/config.d.ts +36 -0
- package/esm/plugins/add-new-line/config.js +3 -3
- package/esm/plugins/backspace/backspace.d.ts +26 -0
- package/esm/plugins/backspace/backspace.js +9 -9
- package/esm/plugins/backspace/cases/check-join-neighbors.d.ts +14 -0
- package/esm/plugins/backspace/cases/check-join-neighbors.js +3 -3
- package/esm/plugins/backspace/cases/check-join-two-lists.d.ts +23 -0
- package/esm/plugins/backspace/cases/check-join-two-lists.js +3 -3
- package/esm/plugins/backspace/cases/check-not-collapsed.d.ts +23 -0
- package/esm/plugins/backspace/cases/check-remove-char.d.ts +24 -0
- package/esm/plugins/backspace/cases/check-remove-char.js +4 -4
- package/esm/plugins/backspace/cases/check-remove-content-not-editable.d.ts +14 -0
- package/esm/plugins/backspace/cases/check-remove-content-not-editable.js +3 -3
- package/esm/plugins/backspace/cases/check-remove-empty-neighbor.d.ts +23 -0
- package/esm/plugins/backspace/cases/check-remove-empty-neighbor.js +1 -1
- package/esm/plugins/backspace/cases/check-remove-empty-parent.d.ts +24 -0
- package/esm/plugins/backspace/cases/check-remove-empty-parent.js +3 -3
- package/esm/plugins/backspace/cases/check-remove-unbreakable-element.d.ts +24 -0
- package/esm/plugins/backspace/cases/check-remove-unbreakable-element.js +3 -3
- package/esm/plugins/backspace/cases/check-table-cell.d.ts +24 -0
- package/esm/plugins/backspace/cases/check-table-cell.js +1 -1
- package/esm/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +24 -0
- package/esm/plugins/backspace/cases/check-unwrap-first-list-item.js +2 -2
- package/esm/plugins/backspace/cases/index.d.ts +11 -0
- package/esm/plugins/backspace/cases/index.js +9 -9
- package/esm/plugins/backspace/config.d.ts +20 -0
- package/esm/plugins/backspace/config.js +1 -1
- package/esm/plugins/backspace/helpers.d.ts +19 -0
- package/esm/plugins/backspace/helpers.js +1 -1
- package/esm/plugins/backspace/interface.d.ts +49 -0
- package/esm/plugins/bold/bold.d.ts +17 -0
- package/esm/plugins/bold/bold.js +12 -12
- package/esm/plugins/bold/config.d.ts +6 -0
- package/esm/plugins/bold/config.js +1 -1
- package/esm/plugins/bold/interface.d.ts +33 -0
- package/esm/plugins/bold/interface.js +0 -5
- package/esm/plugins/class-span/class-span.d.ts +39 -0
- package/esm/plugins/class-span/class-span.js +7 -7
- package/esm/plugins/clean-html/clean-html.d.ts +40 -0
- package/esm/plugins/clean-html/clean-html.js +14 -10
- package/esm/plugins/clean-html/config.d.ts +96 -0
- package/esm/plugins/clean-html/config.js +3 -3
- package/esm/plugins/clean-html/helpers/get-hash.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/get-hash.js +2 -2
- package/esm/plugins/clean-html/helpers/index.d.ts +12 -0
- package/esm/plugins/clean-html/helpers/index.js +4 -4
- package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.d.ts +19 -0
- package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.js +2 -2
- package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-selection.d.ts +14 -0
- package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-selection.js +3 -3
- package/esm/plugins/clean-html/helpers/visitor/filters/allow-attributes.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/allow-attributes.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.js +2 -2
- package/esm/plugins/clean-html/helpers/visitor/filters/index.d.ts +18 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/index.js +7 -7
- package/esm/plugins/clean-html/helpers/visitor/filters/remove-empty-text-node.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/remove-empty-text-node.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/remove-inv-text-nodes.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/remove-inv-text-nodes.js +2 -2
- package/esm/plugins/clean-html/helpers/visitor/filters/replace-old-tags.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/replace-old-tags.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/sanitize-attributes.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/sanitize-attributes.js +2 -2
- package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +3 -3
- package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +13 -0
- package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.js +2 -2
- package/esm/plugins/clipboard/clipboard.d.ts +24 -0
- package/esm/plugins/clipboard/clipboard.js +4 -4
- package/esm/plugins/clipboard/config.d.ts +6 -0
- package/esm/plugins/clipboard/config.js +6 -6
- package/esm/plugins/color/color.d.ts +16 -0
- package/esm/plugins/color/color.js +3 -3
- package/esm/plugins/color/config.d.ts +6 -0
- package/esm/plugins/color/config.js +6 -6
- package/esm/plugins/copy-format/copy-format.d.ts +12 -0
- package/esm/plugins/copy-format/copy-format.js +7 -7
- package/esm/plugins/copy-format/langs/ar.d.ts +4 -0
- package/esm/plugins/copy-format/langs/cs_cz.d.ts +4 -0
- package/esm/plugins/copy-format/langs/de.d.ts +4 -0
- package/esm/plugins/copy-format/langs/es.d.ts +4 -0
- package/esm/plugins/copy-format/langs/fa.d.ts +4 -0
- package/esm/plugins/copy-format/langs/fr.d.ts +4 -0
- package/esm/plugins/copy-format/langs/he.d.ts +4 -0
- package/esm/plugins/copy-format/langs/hu.d.ts +4 -0
- package/esm/plugins/copy-format/langs/id.d.ts +4 -0
- package/esm/plugins/copy-format/langs/index.d.ts +26 -0
- package/esm/plugins/copy-format/langs/index.js +0 -25
- package/esm/plugins/copy-format/langs/it.d.ts +4 -0
- package/esm/plugins/copy-format/langs/ja.d.ts +4 -0
- package/esm/plugins/copy-format/langs/ko.d.ts +4 -0
- package/esm/plugins/copy-format/langs/mn.d.ts +4 -0
- package/esm/plugins/copy-format/langs/nl.d.ts +4 -0
- package/esm/plugins/copy-format/langs/pl.d.ts +4 -0
- package/esm/plugins/copy-format/langs/pt_br.d.ts +4 -0
- package/esm/plugins/copy-format/langs/ru.d.ts +4 -0
- package/esm/plugins/copy-format/langs/tr.d.ts +4 -0
- package/esm/plugins/copy-format/langs/zh_cn.d.ts +4 -0
- package/esm/plugins/copy-format/langs/zh_tw.d.ts +4 -0
- package/esm/plugins/debug/debug.d.ts +16 -0
- package/esm/plugins/delete/delete.d.ts +33 -0
- package/esm/plugins/delete/delete.js +6 -6
- package/esm/plugins/delete/interface.d.ts +13 -0
- package/esm/plugins/delete/interface.js +0 -5
- package/esm/plugins/drag-and-drop/drag-and-drop.d.ts +27 -0
- package/esm/plugins/drag-and-drop/drag-and-drop.js +13 -9
- package/esm/plugins/drag-and-drop-element/config.d.ts +14 -0
- package/esm/plugins/drag-and-drop-element/config.js +1 -1
- package/esm/plugins/drag-and-drop-element/drag-and-drop-element.d.ts +50 -0
- package/esm/plugins/drag-and-drop-element/drag-and-drop-element.js +12 -8
- package/esm/plugins/dtd/after-insert/index.d.ts +10 -0
- package/esm/plugins/dtd/after-insert/index.js +1 -1
- package/esm/plugins/dtd/after-insert/remove-extra-br.d.ts +16 -0
- package/esm/plugins/dtd/after-insert/remove-extra-br.js +1 -1
- package/esm/plugins/dtd/before-insert/check-block-nesting.d.ts +16 -0
- package/esm/plugins/dtd/before-insert/check-block-nesting.js +1 -1
- package/esm/plugins/dtd/before-insert/index.d.ts +10 -0
- package/esm/plugins/dtd/before-insert/index.js +1 -1
- package/esm/plugins/dtd/config.d.ts +27 -0
- package/esm/plugins/dtd/config.js +1 -1
- package/esm/plugins/dtd/dtd.d.ts +6 -0
- package/esm/plugins/dtd/dtd.js +12 -8
- package/esm/plugins/enter/enter.d.ts +26 -0
- package/esm/plugins/enter/enter.js +14 -10
- package/esm/plugins/enter/helpers/check-br.d.ts +14 -0
- package/esm/plugins/enter/helpers/check-br.js +3 -3
- package/esm/plugins/enter/helpers/check-unsplittable-box.d.ts +14 -0
- package/esm/plugins/enter/helpers/check-unsplittable-box.js +1 -1
- package/esm/plugins/enter/helpers/get-block-wrapper.d.ts +14 -0
- package/esm/plugins/enter/helpers/get-block-wrapper.js +2 -2
- package/esm/plugins/enter/helpers/has-previous-block.d.ts +13 -0
- package/esm/plugins/enter/helpers/has-previous-block.js +1 -1
- package/esm/plugins/enter/helpers/index.d.ts +17 -0
- package/esm/plugins/enter/helpers/index.js +9 -9
- package/esm/plugins/enter/helpers/insert-paragraph.d.ts +14 -0
- package/esm/plugins/enter/helpers/insert-paragraph.js +2 -2
- package/esm/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +14 -0
- package/esm/plugins/enter/helpers/move-cursor-out-from-specal-tags.js +1 -1
- package/esm/plugins/enter/helpers/process-empty-li-leaf.d.ts +14 -0
- package/esm/plugins/enter/helpers/process-empty-li-leaf.js +3 -3
- package/esm/plugins/enter/helpers/split-fragment.d.ts +15 -0
- package/esm/plugins/enter/helpers/split-fragment.js +3 -3
- package/esm/plugins/enter/helpers/wrap-text.d.ts +15 -0
- package/esm/plugins/enter/helpers/wrap-text.js +1 -1
- package/esm/plugins/enter/interface.d.ts +33 -0
- package/esm/plugins/enter/interface.js +0 -5
- package/esm/plugins/file/file.d.ts +12 -0
- package/esm/plugins/file/file.js +4 -4
- package/esm/plugins/focus/focus.d.ts +19 -0
- package/esm/plugins/focus/focus.js +3 -3
- package/esm/plugins/font/config.d.ts +11 -0
- package/esm/plugins/font/config.js +6 -6
- package/esm/plugins/font/font.d.ts +16 -0
- package/esm/plugins/font/font.js +3 -3
- package/esm/plugins/format-block/format-block.d.ts +15 -0
- package/esm/plugins/format-block/format-block.js +6 -6
- package/esm/plugins/fullsize/config.d.ts +34 -0
- package/esm/plugins/fullsize/config.js +5 -6
- package/esm/plugins/fullsize/fullsize.d.ts +17 -0
- package/esm/plugins/fullsize/fullsize.js +4 -5
- package/esm/plugins/hotkeys/config.d.ts +14 -0
- package/esm/plugins/hotkeys/config.js +1 -1
- package/esm/plugins/hotkeys/hotkeys.d.ts +26 -0
- package/esm/plugins/hotkeys/hotkeys.js +5 -5
- package/esm/plugins/hr/hr.d.ts +12 -0
- package/esm/plugins/hr/hr.js +5 -5
- package/esm/plugins/iframe/config.d.ts +65 -0
- package/esm/plugins/iframe/config.js +1 -1
- package/esm/plugins/iframe/iframe.d.ts +17 -0
- package/esm/plugins/iframe/iframe.js +5 -5
- package/esm/plugins/image/image.d.ts +12 -0
- package/esm/plugins/image/image.js +7 -7
- package/esm/plugins/image-processor/config.d.ts +16 -0
- package/esm/plugins/image-processor/config.js +1 -1
- package/esm/plugins/image-processor/image-processor.d.ts +29 -0
- package/esm/plugins/image-processor/image-processor.js +12 -8
- package/esm/plugins/image-properties/config.d.ts +89 -0
- package/esm/plugins/image-properties/config.js +1 -1
- package/esm/plugins/image-properties/image-properties.d.ts +72 -0
- package/esm/plugins/image-properties/image-properties.js +17 -14
- package/esm/plugins/image-properties/templates/form.d.ts +10 -0
- package/esm/plugins/image-properties/templates/form.js +1 -1
- package/esm/plugins/image-properties/templates/main-tab.d.ts +10 -0
- package/esm/plugins/image-properties/templates/main-tab.js +1 -1
- package/esm/plugins/image-properties/templates/position-tab.d.ts +10 -0
- package/esm/plugins/image-properties/templates/position-tab.js +1 -1
- package/esm/plugins/indent/config.d.ts +14 -0
- package/esm/plugins/indent/config.js +6 -6
- package/esm/plugins/indent/helpers.d.ts +10 -0
- package/esm/plugins/indent/helpers.js +1 -1
- package/esm/plugins/indent/indent.d.ts +16 -0
- package/esm/plugins/indent/indent.js +6 -6
- package/esm/plugins/index.d.ts +71 -0
- package/esm/plugins/index.js +17 -64
- package/esm/plugins/inline-popup/config/config.d.ts +18 -0
- package/esm/plugins/inline-popup/config/config.js +16 -16
- package/esm/plugins/inline-popup/config/items/a.d.ts +11 -0
- package/esm/plugins/inline-popup/config/items/a.js +1 -1
- package/esm/plugins/inline-popup/config/items/cells.d.ts +11 -0
- package/esm/plugins/inline-popup/config/items/cells.js +3 -3
- package/esm/plugins/inline-popup/config/items/iframe.d.ts +15 -0
- package/esm/plugins/inline-popup/config/items/iframe.js +1 -1
- package/esm/plugins/inline-popup/config/items/img.d.ts +12 -0
- package/esm/plugins/inline-popup/config/items/img.js +4 -4
- package/esm/plugins/inline-popup/config/items/toolbar.d.ts +10 -0
- package/esm/plugins/inline-popup/inline-popup.d.ts +71 -0
- package/esm/plugins/inline-popup/inline-popup.js +15 -12
- package/esm/plugins/justify/justify.d.ts +15 -0
- package/esm/plugins/justify/justify.js +7 -7
- package/esm/plugins/key-arrow-outside/key-arrow-outside.d.ts +20 -0
- package/esm/plugins/key-arrow-outside/key-arrow-outside.js +11 -7
- package/esm/plugins/limit/config.d.ts +22 -0
- package/esm/plugins/limit/config.js +1 -1
- package/esm/plugins/limit/limit.d.ts +39 -0
- package/esm/plugins/limit/limit.js +11 -7
- package/esm/plugins/line-height/config.d.ts +20 -0
- package/esm/plugins/line-height/config.js +4 -4
- package/esm/plugins/line-height/langs/ar.d.ts +4 -0
- package/esm/plugins/line-height/langs/cs_cz.d.ts +4 -0
- package/esm/plugins/line-height/langs/de.d.ts +4 -0
- package/esm/plugins/line-height/langs/es.d.ts +4 -0
- package/esm/plugins/line-height/langs/fa.d.ts +4 -0
- package/esm/plugins/line-height/langs/fr.d.ts +4 -0
- package/esm/plugins/line-height/langs/he.d.ts +4 -0
- package/esm/plugins/line-height/langs/hu.d.ts +4 -0
- package/esm/plugins/line-height/langs/id.d.ts +4 -0
- package/esm/plugins/line-height/langs/index.d.ts +26 -0
- package/esm/plugins/line-height/langs/index.js +0 -25
- package/esm/plugins/line-height/langs/it.d.ts +4 -0
- package/esm/plugins/line-height/langs/ja.d.ts +4 -0
- package/esm/plugins/line-height/langs/ko.d.ts +4 -0
- package/esm/plugins/line-height/langs/mn.d.ts +4 -0
- package/esm/plugins/line-height/langs/nl.d.ts +4 -0
- package/esm/plugins/line-height/langs/pl.d.ts +4 -0
- package/esm/plugins/line-height/langs/pt_br.d.ts +4 -0
- package/esm/plugins/line-height/langs/ru.d.ts +4 -0
- package/esm/plugins/line-height/langs/tr.d.ts +4 -0
- package/esm/plugins/line-height/langs/zh_cn.d.ts +4 -0
- package/esm/plugins/line-height/langs/zh_tw.d.ts +4 -0
- package/esm/plugins/line-height/line-height.d.ts +20 -0
- package/esm/plugins/line-height/line-height.js +13 -9
- package/esm/plugins/link/config.d.ts +57 -0
- package/esm/plugins/link/config.js +6 -6
- package/esm/plugins/link/link.d.ts +27 -0
- package/esm/plugins/link/link.js +12 -8
- package/esm/plugins/link/template.d.ts +10 -0
- package/esm/plugins/link/template.js +2 -2
- package/esm/plugins/media/config.d.ts +22 -0
- package/esm/plugins/media/config.js +1 -1
- package/esm/plugins/media/media.d.ts +16 -0
- package/esm/plugins/media/media.js +4 -4
- package/esm/plugins/mobile/config.d.ts +18 -0
- package/esm/plugins/mobile/config.js +5 -5
- package/esm/plugins/mobile/mobile.d.ts +16 -0
- package/esm/plugins/mobile/mobile.js +4 -4
- package/esm/plugins/ordered-list/config.d.ts +6 -0
- package/esm/plugins/ordered-list/config.js +5 -5
- package/esm/plugins/ordered-list/ordered-list.d.ts +22 -0
- package/esm/plugins/ordered-list/ordered-list.js +10 -6
- package/esm/plugins/paste/config.d.ts +34 -0
- package/esm/plugins/paste/config.js +3 -3
- package/esm/plugins/paste/helpers.d.ts +25 -0
- package/esm/plugins/paste/helpers.js +4 -4
- package/esm/plugins/paste/interface.d.ts +38 -0
- package/esm/plugins/paste/paste.d.ts +52 -0
- package/esm/plugins/paste/paste.js +14 -10
- package/esm/plugins/paste-from-word/config.d.ts +35 -0
- package/esm/plugins/paste-from-word/config.js +2 -2
- package/esm/plugins/paste-from-word/paste-from-word.d.ts +27 -0
- package/esm/plugins/paste-from-word/paste-from-word.js +13 -9
- package/esm/plugins/paste-storage/paste-storage.d.ts +30 -0
- package/esm/plugins/paste-storage/paste-storage.js +6 -7
- package/esm/plugins/placeholder/config.d.ts +44 -0
- package/esm/plugins/placeholder/config.js +1 -1
- package/esm/plugins/placeholder/placeholder.d.ts +32 -0
- package/esm/plugins/placeholder/placeholder.js +16 -13
- package/esm/plugins/powered-by-jodit/powered-by-jodit.d.ts +20 -0
- package/esm/plugins/powered-by-jodit/powered-by-jodit.js +1 -1
- package/esm/plugins/preview/preview.d.ts +13 -0
- package/esm/plugins/preview/preview.js +4 -5
- package/esm/plugins/print/lib/generate-critical-css.d.ts +13 -0
- package/esm/plugins/print/lib/generate-critical-css.js +1 -1
- package/esm/plugins/print/print.d.ts +12 -0
- package/esm/plugins/print/print.js +10 -10
- package/esm/plugins/redo-undo/redo-undo.d.ts +21 -0
- package/esm/plugins/redo-undo/redo-undo.js +7 -7
- package/esm/plugins/resize-cells/config.d.ts +11 -0
- package/esm/plugins/resize-cells/config.js +1 -1
- package/esm/plugins/resize-cells/resize-cells.d.ts +79 -0
- package/esm/plugins/resize-cells/resize-cells.js +13 -10
- package/esm/plugins/resize-handler/config.d.ts +12 -0
- package/esm/plugins/resize-handler/config.js +1 -1
- package/esm/plugins/resize-handler/resize-handler.d.ts +45 -0
- package/esm/plugins/resize-handler/resize-handler.js +12 -8
- package/esm/plugins/resizer/config.d.ts +50 -0
- package/esm/plugins/resizer/config.js +1 -1
- package/esm/plugins/resizer/resizer.d.ts +69 -0
- package/esm/plugins/resizer/resizer.js +15 -12
- package/esm/plugins/search/config.d.ts +37 -0
- package/esm/plugins/search/config.js +4 -4
- package/esm/plugins/search/helpers/index.d.ts +10 -0
- package/esm/plugins/search/helpers/index.js +2 -2
- package/esm/plugins/search/helpers/sentence-finder.d.ts +21 -0
- package/esm/plugins/search/helpers/sentence-finder.js +1 -1
- package/esm/plugins/search/helpers/wrap-ranges-texts-in-tmp-span.d.ts +29 -0
- package/esm/plugins/search/helpers/wrap-ranges-texts-in-tmp-span.js +2 -2
- package/esm/plugins/search/interface.d.ts +46 -0
- package/esm/plugins/search/interface.js +0 -5
- package/esm/plugins/search/search.d.ts +57 -0
- package/esm/plugins/search/search.js +15 -11
- package/esm/plugins/search/ui/search.d.ts +37 -0
- package/esm/plugins/search/ui/search.js +12 -9
- package/esm/plugins/select/config.d.ts +21 -0
- package/esm/plugins/select/config.js +1 -1
- package/esm/plugins/select/select.d.ts +36 -0
- package/esm/plugins/select/select.js +13 -9
- package/esm/plugins/select-cells/config.d.ts +11 -0
- package/esm/plugins/select-cells/config.js +1 -1
- package/esm/plugins/select-cells/select-cells.d.ts +59 -0
- package/esm/plugins/select-cells/select-cells.js +14 -10
- package/esm/plugins/size/config.d.ts +15 -0
- package/esm/plugins/size/config.js +1 -1
- package/esm/plugins/size/size.d.ts +46 -0
- package/esm/plugins/size/size.js +12 -9
- package/esm/plugins/source/config.d.ts +46 -0
- package/esm/plugins/source/config.js +4 -4
- package/esm/plugins/source/editor/engines/ace.d.ts +41 -0
- package/esm/plugins/source/editor/engines/ace.js +3 -3
- package/esm/plugins/source/editor/engines/area.d.ts +28 -0
- package/esm/plugins/source/editor/engines/area.js +3 -3
- package/esm/plugins/source/editor/engines/index.d.ts +10 -0
- package/esm/plugins/source/editor/engines/index.js +2 -2
- package/esm/plugins/source/editor/factory.d.ts +10 -0
- package/esm/plugins/source/editor/factory.js +2 -2
- package/esm/plugins/source/editor/sourceEditor.d.ts +27 -0
- package/esm/plugins/source/source.d.ts +56 -0
- package/esm/plugins/source/source.js +15 -12
- package/esm/plugins/speech-recognize/config.d.ts +60 -0
- package/esm/plugins/speech-recognize/config.js +7 -7
- package/esm/plugins/speech-recognize/constants.d.ts +11 -0
- package/esm/plugins/speech-recognize/helpers/api.d.ts +10 -0
- package/esm/plugins/speech-recognize/helpers/exec-spell-command.d.ts +10 -0
- package/esm/plugins/speech-recognize/helpers/recognize-manager.d.ts +48 -0
- package/esm/plugins/speech-recognize/helpers/recognize-manager.js +10 -6
- package/esm/plugins/speech-recognize/helpers/sound.d.ts +14 -0
- package/esm/plugins/speech-recognize/helpers/sound.js +1 -1
- package/esm/plugins/speech-recognize/interface.d.ts +42 -0
- package/esm/plugins/speech-recognize/langs/ar.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/cs_cz.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/de.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/es.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/fa.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/fr.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/he.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/hu.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/id.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/index.d.ts +26 -0
- package/esm/plugins/speech-recognize/langs/index.js +0 -26
- package/esm/plugins/speech-recognize/langs/it.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/ja.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/ko.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/mn.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/nl.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/pl.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/pt_br.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/ru.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/tr.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/zh_cn.d.ts +9 -0
- package/esm/plugins/speech-recognize/langs/zh_tw.d.ts +9 -0
- package/esm/plugins/speech-recognize/speech-recognize.d.ts +24 -0
- package/esm/plugins/speech-recognize/speech-recognize.js +16 -13
- package/esm/plugins/spellcheck/config.d.ts +15 -0
- package/esm/plugins/spellcheck/config.js +3 -3
- package/esm/plugins/spellcheck/langs/ar.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/cs_cz.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/de.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/es.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/fa.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/fr.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/he.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/hu.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/id.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/index.d.ts +26 -0
- package/esm/plugins/spellcheck/langs/index.js +0 -25
- package/esm/plugins/spellcheck/langs/it.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/ja.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/ko.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/mn.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/nl.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/pl.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/pt_br.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/ru.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/tr.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/zh_cn.d.ts +1 -0
- package/esm/plugins/spellcheck/langs/zh_tw.d.ts +1 -0
- package/esm/plugins/spellcheck/spellcheck.d.ts +20 -0
- package/esm/plugins/spellcheck/spellcheck.js +12 -8
- package/esm/plugins/stat/config.d.ts +13 -0
- package/esm/plugins/stat/config.js +1 -1
- package/esm/plugins/stat/stat.d.ts +20 -0
- package/esm/plugins/stat/stat.js +5 -5
- package/esm/plugins/sticky/config.d.ts +32 -0
- package/esm/plugins/sticky/config.js +1 -1
- package/esm/plugins/sticky/sticky.d.ts +38 -0
- package/esm/plugins/sticky/sticky.js +13 -10
- package/esm/plugins/symbols/config.d.ts +12 -0
- package/esm/plugins/symbols/config.js +3 -3
- package/esm/plugins/symbols/langs/ar.d.ts +1 -0
- package/esm/plugins/symbols/langs/cs_cz.d.ts +1 -0
- package/esm/plugins/symbols/langs/de.d.ts +1 -0
- package/esm/plugins/symbols/langs/es.d.ts +1 -0
- package/esm/plugins/symbols/langs/fa.d.ts +1 -0
- package/esm/plugins/symbols/langs/fr.d.ts +1 -0
- package/esm/plugins/symbols/langs/he.d.ts +1 -0
- package/esm/plugins/symbols/langs/hu.d.ts +1 -0
- package/esm/plugins/symbols/langs/id.d.ts +1 -0
- package/esm/plugins/symbols/langs/index.d.ts +26 -0
- package/esm/plugins/symbols/langs/index.js +0 -25
- package/esm/plugins/symbols/langs/it.d.ts +1 -0
- package/esm/plugins/symbols/langs/ja.d.ts +1 -0
- package/esm/plugins/symbols/langs/ko.d.ts +1 -0
- package/esm/plugins/symbols/langs/mn.d.ts +1 -0
- package/esm/plugins/symbols/langs/nl.d.ts +1 -0
- package/esm/plugins/symbols/langs/pl.d.ts +1 -0
- package/esm/plugins/symbols/langs/pt_br.d.ts +1 -0
- package/esm/plugins/symbols/langs/ru.d.ts +1 -0
- package/esm/plugins/symbols/langs/tr.d.ts +1 -0
- package/esm/plugins/symbols/langs/zh_cn.d.ts +1 -0
- package/esm/plugins/symbols/langs/zh_tw.d.ts +1 -0
- package/esm/plugins/symbols/symbols.d.ts +27 -0
- package/esm/plugins/symbols/symbols.js +7 -8
- package/esm/plugins/tab/cases/index.d.ts +9 -0
- package/esm/plugins/tab/cases/index.js +1 -1
- package/esm/plugins/tab/cases/on-tab-inside-li.d.ts +15 -0
- package/esm/plugins/tab/cases/on-tab-inside-li.js +2 -2
- package/esm/plugins/tab/config.d.ts +16 -0
- package/esm/plugins/tab/config.js +1 -1
- package/esm/plugins/tab/tab.d.ts +6 -0
- package/esm/plugins/tab/tab.js +12 -8
- package/esm/plugins/table/config.d.ts +14 -0
- package/esm/plugins/table/config.js +6 -6
- package/esm/plugins/table/table.d.ts +14 -0
- package/esm/plugins/table/table.js +2 -3
- package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.d.ts +15 -0
- package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +4 -4
- package/esm/plugins/video/config.d.ts +6 -0
- package/esm/plugins/video/config.js +7 -7
- package/esm/plugins/video/video.d.ts +6 -0
- package/esm/plugins/video/video.js +2 -2
- package/esm/plugins/wrap-nodes/config.d.ts +28 -0
- package/esm/plugins/wrap-nodes/config.js +1 -1
- package/esm/plugins/wrap-nodes/wrap-nodes.d.ts +6 -0
- package/esm/plugins/wrap-nodes/wrap-nodes.js +12 -8
- package/esm/plugins/xpath/config.d.ts +11 -0
- package/esm/plugins/xpath/config.js +1 -1
- package/esm/plugins/xpath/xpath.d.ts +12 -0
- package/esm/plugins/xpath/xpath.js +8 -9
- package/esm/styles/icons/index.d.ts +38 -0
- package/esm/styles/icons/index.js +27 -27
- package/esm/tsconfig.json +47 -0
- package/esm/types/ajax.d.ts +99 -0
- package/esm/types/async.d.ts +89 -0
- package/esm/types/context.d.ts +27 -0
- package/esm/types/core.d.ts +16 -0
- package/esm/types/create.d.ts +100 -0
- package/esm/types/dialog.d.ts +53 -0
- package/esm/types/events.d.ts +185 -0
- package/esm/types/file-browser.d.ts +346 -0
- package/esm/types/form.d.ts +14 -0
- package/esm/types/history.d.ts +56 -0
- package/esm/types/index.d.ts +33 -0
- package/esm/types/jodit.d.ts +171 -0
- package/esm/types/messages.d.ts +10 -0
- package/esm/types/plugin.d.ts +69 -0
- package/esm/types/popup.d.ts +40 -0
- package/esm/types/select.d.ts +96 -0
- package/esm/types/source.d.ts +33 -0
- package/esm/types/storage.d.ts +24 -0
- package/esm/types/style.d.ts +93 -0
- package/esm/types/toolbar.d.ts +383 -0
- package/esm/types/traits.d.ts +59 -0
- package/esm/types/types.d.ts +311 -0
- package/esm/types/ui.d.ts +196 -0
- package/esm/types/uploader.d.ts +158 -0
- package/esm/types/view.d.ts +164 -0
- package/esm/typings.d.ts +15 -0
- package/package.json +1 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* [[include:modules/status-bar/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module modules/status-bar
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type { IJodit, IStatusBar, IDictionary, ModType } from 'jodit/types';
|
|
13
|
+
import { ViewComponent } from 'jodit/core/component';
|
|
14
|
+
import { Mods } from 'jodit/core/traits/mods';
|
|
15
|
+
import { Elms } from 'jodit/core/traits/elms';
|
|
16
|
+
export interface StatusBar extends Mods, Elms {
|
|
17
|
+
}
|
|
18
|
+
export declare class StatusBar extends ViewComponent<IJodit> implements IStatusBar {
|
|
19
|
+
readonly target: HTMLElement;
|
|
20
|
+
className(): string;
|
|
21
|
+
container: HTMLDivElement;
|
|
22
|
+
/**
|
|
23
|
+
* Hide statusbar
|
|
24
|
+
*/
|
|
25
|
+
hide(): void;
|
|
26
|
+
/**
|
|
27
|
+
* Show statusbar
|
|
28
|
+
*/
|
|
29
|
+
show(): void;
|
|
30
|
+
/**
|
|
31
|
+
* Status bar is shown
|
|
32
|
+
*/
|
|
33
|
+
get isShown(): boolean;
|
|
34
|
+
readonly mods: IDictionary<ModType>;
|
|
35
|
+
/**
|
|
36
|
+
* Height of statusbar
|
|
37
|
+
*/
|
|
38
|
+
getHeight(): number;
|
|
39
|
+
private findEmpty;
|
|
40
|
+
/**
|
|
41
|
+
* Add element in statusbar
|
|
42
|
+
*/
|
|
43
|
+
append(child: HTMLElement, inTheRight?: boolean): void;
|
|
44
|
+
constructor(jodit: IJodit, target: HTMLElement);
|
|
45
|
+
destruct(): void;
|
|
46
|
+
}
|
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
7
7
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
-
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
+
else
|
|
11
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
12
|
+
if (d = decorators[i])
|
|
13
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
15
|
};
|
|
12
16
|
/**
|
|
@@ -14,12 +18,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
14
18
|
* @packageDocumentation
|
|
15
19
|
* @module modules/status-bar
|
|
16
20
|
*/
|
|
17
|
-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import { derive, component } from 'jodit/core/decorators';
|
|
21
|
+
import { ViewComponent, STATUSES } from "../../core/component/index.js";
|
|
22
|
+
import { Dom } from "../../core/dom/dom.js";
|
|
23
|
+
import { Mods } from "../../core/traits/mods.js";
|
|
24
|
+
import { Elms } from "../../core/traits/elms.js";
|
|
25
|
+
import { derive, component } from "../../core/decorators/index.js";
|
|
23
26
|
export let StatusBar = class StatusBar extends ViewComponent {
|
|
24
27
|
className() {
|
|
25
28
|
return 'StatusBar';
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* [[include:modules/table/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module modules/table
|
|
10
|
+
*/
|
|
11
|
+
import type { ICreate, IJodit } from 'jodit/types';
|
|
12
|
+
import { ViewComponent } from 'jodit/core/component';
|
|
13
|
+
export declare class Table extends ViewComponent<IJodit> {
|
|
14
|
+
/** @override */
|
|
15
|
+
className(): string;
|
|
16
|
+
private selected;
|
|
17
|
+
private static selectedByTable;
|
|
18
|
+
private recalculateStyles;
|
|
19
|
+
addSelection(td: HTMLTableCellElement): void;
|
|
20
|
+
removeSelection(td: HTMLTableCellElement): void;
|
|
21
|
+
/**
|
|
22
|
+
* Returns array of selected cells
|
|
23
|
+
*/
|
|
24
|
+
getAllSelectedCells(): HTMLTableCellElement[];
|
|
25
|
+
static getSelectedCellsByTable(table: HTMLTableElement): HTMLTableCellElement[];
|
|
26
|
+
/** @override **/
|
|
27
|
+
destruct(): any;
|
|
28
|
+
/**
|
|
29
|
+
* Returns rows count in the table
|
|
30
|
+
*/
|
|
31
|
+
static getRowsCount(table: HTMLTableElement): number;
|
|
32
|
+
/**
|
|
33
|
+
* Returns columns count in the table
|
|
34
|
+
*/
|
|
35
|
+
static getColumnsCount(table: HTMLTableElement): number;
|
|
36
|
+
/**
|
|
37
|
+
* Generate formal table martix columns*rows
|
|
38
|
+
* @param callback - if return false cycle break
|
|
39
|
+
*/
|
|
40
|
+
static formalMatrix(table: HTMLTableElement, callback?: (cell: HTMLTableCellElement, row: number, col: number, colSpan: number, rowSpan: number) => false | void): HTMLTableCellElement[][];
|
|
41
|
+
/**
|
|
42
|
+
* Get cell coordinate in formal table (without colspan and rowspan)
|
|
43
|
+
*/
|
|
44
|
+
static formalCoordinate(table: HTMLTableElement, cell: HTMLTableCellElement, max?: boolean): number[];
|
|
45
|
+
/**
|
|
46
|
+
* Inserts a new line after row what contains the selected cell
|
|
47
|
+
*
|
|
48
|
+
* @param line - Insert a new line after/before this
|
|
49
|
+
* line contains the selected cell
|
|
50
|
+
* @param after - Insert a new line after line contains the selected cell
|
|
51
|
+
*/
|
|
52
|
+
static appendRow(table: HTMLTableElement, line: false | HTMLTableRowElement, after: boolean, create: ICreate): void;
|
|
53
|
+
/**
|
|
54
|
+
* Remove row
|
|
55
|
+
*/
|
|
56
|
+
static removeRow(table: HTMLTableElement, rowIndex: number): void;
|
|
57
|
+
/**
|
|
58
|
+
* Insert column before / after all the columns containing the selected cells
|
|
59
|
+
*/
|
|
60
|
+
static appendColumn(table: HTMLTableElement, j: number, after: boolean, create: ICreate): void;
|
|
61
|
+
/**
|
|
62
|
+
* Remove column by index
|
|
63
|
+
*/
|
|
64
|
+
static removeColumn(table: HTMLTableElement, j: number): void;
|
|
65
|
+
/**
|
|
66
|
+
* Define bound for selected cells
|
|
67
|
+
*/
|
|
68
|
+
static getSelectedBound(table: HTMLTableElement, selectedCells: HTMLTableCellElement[]): number[][];
|
|
69
|
+
/**
|
|
70
|
+
* Try recalculate all coluns and rows after change
|
|
71
|
+
*/
|
|
72
|
+
static normalizeTable(table: HTMLTableElement): void;
|
|
73
|
+
/**
|
|
74
|
+
* It combines all of the selected cells into one. The contents of the cells will also be combined
|
|
75
|
+
*/
|
|
76
|
+
static mergeSelected(table: HTMLTableElement, jodit: IJodit): void;
|
|
77
|
+
/**
|
|
78
|
+
* Divides all selected by `jodit_focused_cell` class table cell in 2 parts vertical. Those division into 2 columns
|
|
79
|
+
*/
|
|
80
|
+
static splitHorizontal(table: HTMLTableElement, jodit: IJodit): void;
|
|
81
|
+
/**
|
|
82
|
+
* It splits all the selected cells into 2 parts horizontally. Those. are added new row
|
|
83
|
+
*/
|
|
84
|
+
static splitVertical(table: HTMLTableElement, jodit: IJodit): void;
|
|
85
|
+
/**
|
|
86
|
+
* Set column width used delta value
|
|
87
|
+
*/
|
|
88
|
+
static setColumnWidthByDelta(table: HTMLTableElement, column: number, delta: number, noUnmark: boolean, marked: HTMLTableCellElement[]): void;
|
|
89
|
+
private static mark;
|
|
90
|
+
private static unmark;
|
|
91
|
+
}
|
|
@@ -5,16 +5,20 @@
|
|
|
5
5
|
*/
|
|
6
6
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
7
7
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
-
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
+
else
|
|
11
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
12
|
+
if (d = decorators[i])
|
|
13
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
15
|
};
|
|
12
|
-
import * as consts from
|
|
13
|
-
import { Dom } from
|
|
14
|
-
import { $$, attr, cssPath, isNumber, toArray, trim } from
|
|
15
|
-
import { ViewComponent } from
|
|
16
|
-
import { getContainer } from
|
|
17
|
-
import { debounce } from
|
|
16
|
+
import * as consts from "../../core/constants.js";
|
|
17
|
+
import { Dom } from "../../core/dom/index.js";
|
|
18
|
+
import { $$, attr, cssPath, isNumber, toArray, trim } from "../../core/helpers/index.js";
|
|
19
|
+
import { ViewComponent } from "../../core/component/index.js";
|
|
20
|
+
import { getContainer } from "../../core/global.js";
|
|
21
|
+
import { debounce } from "../../core/decorators/index.js";
|
|
18
22
|
const markedValue = new WeakMap();
|
|
19
23
|
export class Table extends ViewComponent {
|
|
20
24
|
constructor() {
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* [[include:modules/toolbar/button/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module modules/toolbar/button
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type { IControlTypeStrong, IToolbarButton, IToolbarCollection, IViewBased, Nullable } from 'jodit/types';
|
|
13
|
+
import { UIButton } from 'jodit/core/ui/button';
|
|
14
|
+
export declare class ToolbarButton<T extends IViewBased = IViewBased> extends UIButton implements IToolbarButton {
|
|
15
|
+
readonly control: IControlTypeStrong;
|
|
16
|
+
readonly target: Nullable<HTMLElement>;
|
|
17
|
+
/** @override */
|
|
18
|
+
className(): string;
|
|
19
|
+
readonly state: {
|
|
20
|
+
theme: string;
|
|
21
|
+
currentValue: string;
|
|
22
|
+
hasTrigger: boolean;
|
|
23
|
+
size: "small" | "tiny" | "xsmall" | "middle" | "large";
|
|
24
|
+
name: string;
|
|
25
|
+
value: string | number | boolean; /** @override */
|
|
26
|
+
variant: import("jodit/types").ButtonVariant;
|
|
27
|
+
type: "button" | "submit";
|
|
28
|
+
disabled: boolean;
|
|
29
|
+
activated: boolean;
|
|
30
|
+
icon: import("jodit/types").IUIIconState;
|
|
31
|
+
text: string;
|
|
32
|
+
tooltip: string;
|
|
33
|
+
tabIndex: import("jodit/types").CanUndef<number>;
|
|
34
|
+
};
|
|
35
|
+
protected trigger: HTMLElement;
|
|
36
|
+
/**
|
|
37
|
+
* Get parent toolbar
|
|
38
|
+
*/
|
|
39
|
+
protected get toolbar(): Nullable<IToolbarCollection>;
|
|
40
|
+
/** @override **/
|
|
41
|
+
update(): void;
|
|
42
|
+
/**
|
|
43
|
+
* Calculates whether the button is active
|
|
44
|
+
*/
|
|
45
|
+
private calculateActivatedStatus;
|
|
46
|
+
/**
|
|
47
|
+
* Calculates whether an element is blocked for the user
|
|
48
|
+
*/
|
|
49
|
+
private calculateDisabledStatus;
|
|
50
|
+
/** @override */
|
|
51
|
+
protected onChangeActivated(): void;
|
|
52
|
+
/** @override */
|
|
53
|
+
protected onChangeText(): void;
|
|
54
|
+
/** @override */
|
|
55
|
+
protected onChangeTabIndex(): void;
|
|
56
|
+
protected createContainer(): HTMLElement;
|
|
57
|
+
/** @override */
|
|
58
|
+
focus(): void;
|
|
59
|
+
protected onChangeHasTrigger(): void;
|
|
60
|
+
/** @override */
|
|
61
|
+
protected onChangeDisabled(): void;
|
|
62
|
+
constructor(jodit: T, control: IControlTypeStrong, target?: Nullable<HTMLElement>);
|
|
63
|
+
/**
|
|
64
|
+
* Init constant data from control
|
|
65
|
+
*/
|
|
66
|
+
private __initFromControl;
|
|
67
|
+
/**
|
|
68
|
+
* Click on trigger button
|
|
69
|
+
*/
|
|
70
|
+
protected onTriggerClick(e: MouseEvent): void;
|
|
71
|
+
private openedPopup;
|
|
72
|
+
/**
|
|
73
|
+
* Create and open popup list
|
|
74
|
+
*/
|
|
75
|
+
private openControlList;
|
|
76
|
+
protected onOutsideClick(e: MouseEvent): void;
|
|
77
|
+
private openPopup;
|
|
78
|
+
private closePopup;
|
|
79
|
+
/**
|
|
80
|
+
* Click handler
|
|
81
|
+
*/
|
|
82
|
+
protected onClick(originalEvent: MouseEvent): void;
|
|
83
|
+
destruct(): any;
|
|
84
|
+
}
|
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
7
7
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
-
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
+
else
|
|
11
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
12
|
+
if (d = decorators[i])
|
|
13
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
15
|
};
|
|
12
16
|
/**
|
|
@@ -14,17 +18,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
14
18
|
* @packageDocumentation
|
|
15
19
|
* @module modules/toolbar/button
|
|
16
20
|
*/
|
|
17
|
-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import { findControlType } from 'jodit/core/ui/helpers/get-control-type';
|
|
21
|
+
import { UIButton, UIButtonState } from "../../../core/ui/button/index.js";
|
|
22
|
+
import { autobind, component, watch, cacheHTML } from "../../../core/decorators/index.js";
|
|
23
|
+
import { Dom } from "../../../core/dom/index.js";
|
|
24
|
+
import { Popup } from "../../../core/ui/popup/popup.js";
|
|
25
|
+
import { makeCollection } from "../factory.js";
|
|
26
|
+
import { isFunction, isString, position, camelCase, attr, isJoditObject, call, isArray, keys, isPlainObject, assert } from "../../../core/helpers/index.js";
|
|
27
|
+
import { Icon } from "../../../core/ui/icon.js";
|
|
28
|
+
import { ToolbarCollection } from "../collection/collection.js";
|
|
29
|
+
import { STATUSES } from "../../../core/component/statuses.js";
|
|
30
|
+
import { findControlType } from "../../../core/ui/helpers/get-control-type.js";
|
|
28
31
|
export let ToolbarButton = class ToolbarButton extends UIButton {
|
|
29
32
|
/** @override */
|
|
30
33
|
className() {
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module modules/toolbar/button
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import type { IControlTypeContent, IToolbarButton, IViewBased, Nullable } from 'jodit/types';
|
|
11
|
+
import { UIButton } from 'jodit/core/ui/button';
|
|
12
|
+
export declare class ToolbarContent<T extends IViewBased = IViewBased> extends UIButton implements IToolbarButton {
|
|
13
|
+
readonly control: IControlTypeContent;
|
|
14
|
+
readonly target: Nullable<HTMLElement>;
|
|
15
|
+
/** @override */
|
|
16
|
+
className(): string;
|
|
17
|
+
/** @override */
|
|
18
|
+
update(): void;
|
|
19
|
+
/** @override */
|
|
20
|
+
protected createContainer(): HTMLElement;
|
|
21
|
+
constructor(jodit: T, control: IControlTypeContent, target?: Nullable<HTMLElement>);
|
|
22
|
+
}
|
|
@@ -5,18 +5,21 @@
|
|
|
5
5
|
*/
|
|
6
6
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
7
7
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
-
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
+
else
|
|
11
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
12
|
+
if (d = decorators[i])
|
|
13
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
15
|
};
|
|
12
16
|
/**
|
|
13
17
|
* @module modules/toolbar/button
|
|
14
18
|
*/
|
|
15
|
-
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import { component } from 'jodit/core/decorators';
|
|
19
|
+
import { UIButton } from "../../../core/ui/button/index.js";
|
|
20
|
+
import { Dom } from "../../../core/dom/index.js";
|
|
21
|
+
import { isString, attr } from "../../../core/helpers/index.js";
|
|
22
|
+
import { component } from "../../../core/decorators/index.js";
|
|
20
23
|
export let ToolbarContent = class ToolbarContent extends UIButton {
|
|
21
24
|
/** @override */
|
|
22
25
|
className() {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module modules/toolbar/button
|
|
8
|
+
*/
|
|
9
|
+
export * from './button';
|
|
10
|
+
export * from './content';
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* [[include:modules/toolbar/collection/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module modules/toolbar/collection
|
|
10
|
+
*/
|
|
11
|
+
|
|
12
|
+
import type { IToolbarButton, IToolbarCollection, IUIButton, Nullable, IControlTypeStrong, IViewBased, ButtonsGroups, IViewWithToolbar, IBound } from 'jodit/types';
|
|
13
|
+
import { UIList } from 'jodit/core/ui';
|
|
14
|
+
export declare class ToolbarCollection<T extends IViewWithToolbar = IViewWithToolbar> extends UIList<T> implements IToolbarCollection {
|
|
15
|
+
/** @override */
|
|
16
|
+
className(): string;
|
|
17
|
+
private readonly __listenEvents;
|
|
18
|
+
/**
|
|
19
|
+
* First button in list
|
|
20
|
+
*/
|
|
21
|
+
get firstButton(): Nullable<IToolbarButton>;
|
|
22
|
+
protected makeButton(control: IControlTypeStrong, target?: Nullable<HTMLElement>): IUIButton;
|
|
23
|
+
/**
|
|
24
|
+
* Button should be active
|
|
25
|
+
*/
|
|
26
|
+
shouldBeActive(button: IToolbarButton): boolean | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Button should be disabled
|
|
29
|
+
*/
|
|
30
|
+
shouldBeDisabled(button: IToolbarButton): boolean | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Returns current target for button
|
|
33
|
+
*/
|
|
34
|
+
getTarget(button: IToolbarButton): Node | null;
|
|
35
|
+
private __immediateUpdate;
|
|
36
|
+
update: import("jodit/types").CallbackFunction<any>;
|
|
37
|
+
/**
|
|
38
|
+
* Set direction
|
|
39
|
+
*/
|
|
40
|
+
setDirection(direction: 'rtl' | 'ltr'): void;
|
|
41
|
+
private __tooltip;
|
|
42
|
+
constructor(jodit: IViewBased);
|
|
43
|
+
private __initEvents;
|
|
44
|
+
hide(): void;
|
|
45
|
+
show(): void;
|
|
46
|
+
showInline(bound?: IBound): void;
|
|
47
|
+
/** @override **/
|
|
48
|
+
build(items: ButtonsGroups, target?: Nullable<HTMLElement>): this;
|
|
49
|
+
/** @override **/
|
|
50
|
+
destruct(): void;
|
|
51
|
+
}
|
|
@@ -5,8 +5,12 @@
|
|
|
5
5
|
*/
|
|
6
6
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
7
7
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
-
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
+
else
|
|
11
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
12
|
+
if (d = decorators[i])
|
|
13
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
15
|
};
|
|
12
16
|
/**
|
|
@@ -14,11 +18,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
14
18
|
* @packageDocumentation
|
|
15
19
|
* @module modules/toolbar/collection
|
|
16
20
|
*/
|
|
17
|
-
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import { makeButton } from 'jodit/modules/toolbar/factory';
|
|
21
|
+
import { error } from "../../../core/helpers/utils/error/error.js";
|
|
22
|
+
import { UIList, UITooltip } from "../../../core/ui/index.js";
|
|
23
|
+
import { component, autobind } from "../../../core/decorators/index.js";
|
|
24
|
+
import { makeButton } from "../factory.js";
|
|
22
25
|
export let ToolbarCollection = class ToolbarCollection extends UIList {
|
|
23
26
|
/** @override */
|
|
24
27
|
className() {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module modules/toolbar/collection
|
|
8
|
+
*/
|
|
9
|
+
import { ToolbarCollection } from './collection';
|
|
10
|
+
import type { IToolbarButton, IJodit, IBound } from 'jodit/types';
|
|
11
|
+
export declare class ToolbarEditorCollection extends ToolbarCollection<IJodit> {
|
|
12
|
+
/** @override */
|
|
13
|
+
className(): string;
|
|
14
|
+
/** @override */
|
|
15
|
+
shouldBeDisabled(button: IToolbarButton): boolean;
|
|
16
|
+
/** @override */
|
|
17
|
+
shouldBeActive(button: IToolbarButton): boolean;
|
|
18
|
+
private checkActiveStatus;
|
|
19
|
+
/** @override */
|
|
20
|
+
getTarget(button: IToolbarButton): Node | null;
|
|
21
|
+
/** @override */
|
|
22
|
+
constructor(jodit: IJodit);
|
|
23
|
+
/**
|
|
24
|
+
* Adds an invisible element to the container that can handle the
|
|
25
|
+
* situation when the editor is inside the <label>
|
|
26
|
+
*
|
|
27
|
+
* @see https://github.com/jodit/jodit-react/issues/138
|
|
28
|
+
*/
|
|
29
|
+
private prependInvisibleInput;
|
|
30
|
+
/**
|
|
31
|
+
* Show the inline toolbar inside WYSIWYG editor.
|
|
32
|
+
* @param bound - you can set the place for displaying the toolbar,
|
|
33
|
+
* or the place will be in the place of the cursor
|
|
34
|
+
*/
|
|
35
|
+
showInline(bound?: IBound): void;
|
|
36
|
+
hide(): void;
|
|
37
|
+
show(): void;
|
|
38
|
+
}
|
|
@@ -5,18 +5,22 @@
|
|
|
5
5
|
*/
|
|
6
6
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
7
7
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
8
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
-
|
|
8
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
9
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
10
|
+
else
|
|
11
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
12
|
+
if (d = decorators[i])
|
|
13
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
10
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
11
15
|
};
|
|
12
16
|
/**
|
|
13
17
|
* @module modules/toolbar/collection
|
|
14
18
|
*/
|
|
15
|
-
import { ToolbarCollection } from
|
|
16
|
-
import * as consts from
|
|
17
|
-
import { Dom } from
|
|
18
|
-
import { css, isFunction } from
|
|
19
|
-
import { component } from
|
|
19
|
+
import { ToolbarCollection } from "./collection.js";
|
|
20
|
+
import * as consts from "../../../core/constants.js";
|
|
21
|
+
import { Dom } from "../../../core/dom/index.js";
|
|
22
|
+
import { css, isFunction } from "../../../core/helpers/index.js";
|
|
23
|
+
import { component } from "../../../core/decorators/index.js";
|
|
20
24
|
export let ToolbarEditorCollection = class ToolbarEditorCollection extends ToolbarCollection {
|
|
21
25
|
/** @override */
|
|
22
26
|
className() {
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* [[include:modules/toolbar/README.md]]
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @module modules/toolbar
|
|
10
|
+
*/
|
|
11
|
+
import type { IControlTypeStrong, IToolbarButton, IToolbarCollection, IUIElement, IViewBased, Nullable } from 'jodit/types';
|
|
12
|
+
/**
|
|
13
|
+
* Collection factory
|
|
14
|
+
*/
|
|
15
|
+
export declare function makeCollection(jodit: IViewBased, parentElement?: IUIElement): IToolbarCollection;
|
|
16
|
+
/**
|
|
17
|
+
* Button factory
|
|
18
|
+
*/
|
|
19
|
+
export declare function makeButton(jodit: IViewBased, control: IControlTypeStrong, target?: Nullable<HTMLElement>): IToolbarButton;
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { isFunction, isJoditObject } from
|
|
7
|
-
import { ToolbarCollection } from
|
|
8
|
-
import { ToolbarEditorCollection } from
|
|
9
|
-
import { ToolbarButton } from
|
|
10
|
-
import { ToolbarContent } from
|
|
6
|
+
import { isFunction, isJoditObject } from "../../core/helpers/index.js";
|
|
7
|
+
import { ToolbarCollection } from "./collection/collection.js";
|
|
8
|
+
import { ToolbarEditorCollection } from "./collection/editor-collection.js";
|
|
9
|
+
import { ToolbarButton } from "./button/button.js";
|
|
10
|
+
import { ToolbarContent } from "./button/content.js";
|
|
11
11
|
/**
|
|
12
12
|
* Collection factory
|
|
13
13
|
*/
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module modules/uploader
|
|
8
|
+
*/
|
|
9
|
+
import type { IUploader, IUploaderOptions } from 'jodit/types';
|
|
10
|
+
declare module 'jodit/config' {
|
|
11
|
+
interface Config {
|
|
12
|
+
/**
|
|
13
|
+
* Enable drag and drop file editor
|
|
14
|
+
*/
|
|
15
|
+
enableDragAndDropFileToEditor: boolean;
|
|
16
|
+
uploader: IUploaderOptions<IUploader>;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { Config } from
|
|
7
|
-
import { isArray } from
|
|
8
|
-
import { isJoditObject } from
|
|
6
|
+
import { Config } from "../../config.js";
|
|
7
|
+
import { isArray } from "../../core/helpers/checker/is-array.js";
|
|
8
|
+
import { isJoditObject } from "../../core/helpers/checker/is-jodit-object.js";
|
|
9
9
|
/**
|
|
10
10
|
* Module for processing download documents and images by Drag and Drop
|
|
11
11
|
* Drag and Drop files
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @module modules/uploader
|
|
8
|
+
*/
|
|
9
|
+
import type { BuildDataResult, IDictionary, IUploader } from 'jodit/types';
|
|
10
|
+
export declare function buildData(uploader: IUploader, data: FormData | IDictionary<string> | string): BuildDataResult;
|