jodit 3.20.2 → 3.20.3
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/build/jodit.css +2 -2
- package/build/jodit.es2018.css +1 -1
- package/build/jodit.es2018.en.css +1 -1
- package/build/jodit.es2018.en.js +14 -12
- package/build/jodit.es2018.en.min.js +1 -1
- package/build/jodit.es2018.js +23 -12
- package/build/jodit.es2018.min.js +1 -1
- package/build/jodit.js +21 -10
- package/build/jodit.min.css +1 -1
- package/build/jodit.min.js +1 -1
- package/build/plugins/debug/debug.es2018.en.js +1 -1
- package/build/plugins/debug/debug.es2018.js +1 -1
- package/build/plugins/debug/debug.js +1 -1
- package/build/plugins/speech-recognize/speech-recognize.css +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.css +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.en.css +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.en.js +1 -1
- package/build/plugins/speech-recognize/speech-recognize.es2018.js +1 -1
- package/build/plugins/speech-recognize/speech-recognize.js +1 -1
- package/build/vdom.css +1 -1
- package/build/vdom.js +1 -1
- package/package.json +28 -24
- package/src/README.md +2 -0
- package/src/core/async/README.md +2 -0
- package/src/core/component/README.md +2 -0
- package/src/core/create/README.md +2 -0
- package/src/core/decorators/cache/README.md +2 -0
- package/src/core/decorators/component/README.md +2 -0
- package/src/core/decorators/debounce/README.md +2 -0
- package/src/core/decorators/hook/README.md +2 -0
- package/src/core/decorators/idle/README.md +2 -0
- package/src/core/decorators/nonenumerable/README.md +2 -0
- package/src/core/decorators/persistent/README.md +2 -0
- package/src/core/decorators/wait/README.md +2 -0
- package/src/core/decorators/watch/README.md +2 -0
- package/src/core/dom/README.md +2 -0
- package/src/core/event-emitter/README.md +2 -0
- package/src/core/helpers/README.md +2 -0
- package/src/core/plugin/README.md +2 -0
- package/src/core/request/README.md +2 -0
- package/src/core/selection/README.md +2 -0
- package/src/core/storage/README.md +2 -0
- package/src/core/vdom/README.md +2 -0
- package/src/core/view/README.md +2 -0
- package/src/index.ts +7 -4
- package/src/jodit.ts +4 -2
- package/src/langs/index.ts +7 -4
- package/src/langs/keys.js +7 -0
- package/src/modules/README.md +1 -1
- package/src/modules/dialog/README.md +2 -0
- package/src/modules/file-browser/README.md +12 -4
- package/src/modules/file-browser/file-browser.test.screenshot.js +1 -1
- package/src/modules/image-editor/README.md +1 -1
- package/src/modules/image-editor/image-editor.test.screenshot.js +1 -1
- package/src/modules/uploader/README.md +2 -0
- package/src/plugins/color/color.test.screenshot.js +26 -0
- package/src/plugins/image-properties/image-properties.test.screenshot.js +27 -0
- package/src/plugins/limit/limit.test.js +27 -0
- package/src/plugins/limit/limit.ts +1 -1
- package/src/plugins/link/link.test.screenshot.js +26 -0
- package/src/plugins/search/search.test.screenshot.js +38 -0
- package/src/plugins/symbols/symbols.test.screenshot.js +25 -0
- package/src/styles/icons/README.md +2 -0
- package/src/types/file-browser.d.ts +15 -0
- package/tsconfig.json +3 -0
- package/types/config.d.ts +0 -506
- package/types/core/async/async.d.ts +0 -32
- package/types/core/async/index.d.ts +0 -3
- package/types/core/component/component.d.ts +0 -81
- package/types/core/component/index.d.ts +0 -3
- package/types/core/component/statuses.d.ts +0 -3
- package/types/core/component/view-component.d.ts +0 -13
- package/types/core/constants.d.ts +0 -60
- package/types/core/create/create.d.ts +0 -32
- package/types/core/create/index.d.ts +0 -3
- package/types/core/decorators/component/component.d.ts +0 -9
- package/types/core/decorators/debounce/debounce.d.ts +0 -8
- package/types/core/decorators/hook/hook.d.ts +0 -8
- package/types/core/decorators/idle/idle.d.ts +0 -5
- package/types/core/decorators/index.d.ts +0 -5
- package/types/core/decorators/nonenumerable/nonenumerable.d.ts +0 -5
- package/types/core/decorators/persistent/persistent.d.ts +0 -5
- package/types/core/decorators/wait/wait.d.ts +0 -5
- package/types/core/decorators/watch/watch.d.ts +0 -8
- package/types/core/dom/dom.d.ts +0 -171
- package/types/core/dom/index.d.ts +0 -3
- package/types/core/dom/lazy-walker.d.ts +0 -3
- package/types/core/event-emitter/event-emitter.d.ts +0 -99
- package/types/core/event-emitter/eventify.d.ts +0 -25
- package/types/core/event-emitter/index.d.ts +0 -3
- package/types/core/event-emitter/observable.d.ts +0 -38
- package/types/core/event-emitter/store.d.ts +0 -3
- package/types/core/global.d.ts +0 -12
- package/types/core/helpers/array/as-array.d.ts +0 -3
- package/types/core/helpers/array/index.d.ts +0 -3
- package/types/core/helpers/array/split-array.d.ts +0 -6
- package/types/core/helpers/array/to-array.d.ts +0 -4
- package/types/core/helpers/async/index.d.ts +0 -3
- package/types/core/helpers/async/set-timeout.d.ts +0 -9
- package/types/core/helpers/checker/has-browser-color-picker.d.ts +0 -6
- package/types/core/helpers/checker/index.d.ts +0 -3
- package/types/core/helpers/checker/is-array.d.ts +0 -6
- package/types/core/helpers/checker/is-boolean.d.ts +0 -3
- package/types/core/helpers/checker/is-equal.d.ts +0 -3
- package/types/core/helpers/checker/is-function.d.ts +0 -6
- package/types/core/helpers/checker/is-html-from-word.d.ts +0 -6
- package/types/core/helpers/checker/is-html.d.ts +0 -3
- package/types/core/helpers/checker/is-imp-interface.d.ts +0 -12
- package/types/core/helpers/checker/is-int.d.ts +0 -3
- package/types/core/helpers/checker/is-jodit-object.d.ts +0 -6
- package/types/core/helpers/checker/is-native-function.d.ts +0 -6
- package/types/core/helpers/checker/is-number.d.ts +0 -6
- package/types/core/helpers/checker/is-numeric.d.ts +0 -3
- package/types/core/helpers/checker/is-plain-object.d.ts +0 -6
- package/types/core/helpers/checker/is-promise.d.ts +0 -3
- package/types/core/helpers/checker/is-string.d.ts +0 -6
- package/types/core/helpers/checker/is-url.d.ts +0 -6
- package/types/core/helpers/checker/is-valid-name.d.ts +0 -6
- package/types/core/helpers/checker/is-view-object.d.ts +0 -6
- package/types/core/helpers/checker/is-void.d.ts +0 -6
- package/types/core/helpers/checker/is-window.d.ts +0 -3
- package/types/core/helpers/color/color-to-hex.d.ts +0 -16
- package/types/core/helpers/color/index.d.ts +0 -3
- package/types/core/helpers/html/apply-styles.d.ts +0 -5
- package/types/core/helpers/html/clean-from-word.d.ts +0 -4
- package/types/core/helpers/html/htmlspecialchars.d.ts +0 -6
- package/types/core/helpers/html/index.d.ts +0 -3
- package/types/core/helpers/html/nl2br.d.ts +0 -6
- package/types/core/helpers/html/safe-html.d.ts +0 -3
- package/types/core/helpers/html/strip-tags.d.ts +0 -3
- package/types/core/helpers/index.d.ts +0 -5
- package/types/core/helpers/normalize/index.d.ts +0 -3
- package/types/core/helpers/normalize/normalize-color.d.ts +0 -6
- package/types/core/helpers/normalize/normalize-key-aliases.d.ts +0 -3
- package/types/core/helpers/normalize/normalize-license.d.ts +0 -3
- package/types/core/helpers/normalize/normalize-path.d.ts +0 -3
- package/types/core/helpers/normalize/normalize-relative-path.d.ts +0 -3
- package/types/core/helpers/normalize/normalize-size.d.ts +0 -6
- package/types/core/helpers/normalize/normalize-url.d.ts +0 -3
- package/types/core/helpers/size/get-content-width.d.ts +0 -3
- package/types/core/helpers/size/get-scroll-parent.d.ts +0 -3
- package/types/core/helpers/size/index.d.ts +0 -3
- package/types/core/helpers/size/inner-width.d.ts +0 -3
- package/types/core/helpers/size/offset.d.ts +0 -7
- package/types/core/helpers/size/position.d.ts +0 -3
- package/types/core/helpers/string/camel-case.d.ts +0 -6
- package/types/core/helpers/string/fuzzy-search-index.d.ts +0 -4
- package/types/core/helpers/string/i18n.d.ts +0 -31
- package/types/core/helpers/string/index.d.ts +0 -3
- package/types/core/helpers/string/kebab-case.d.ts +0 -3
- package/types/core/helpers/string/stringify.d.ts +0 -3
- package/types/core/helpers/string/trim.d.ts +0 -7
- package/types/core/helpers/string/ucfirst.d.ts +0 -6
- package/types/core/helpers/utils/align.d.ts +0 -12
- package/types/core/helpers/utils/append-script.d.ts +0 -12
- package/types/core/helpers/utils/assert.d.ts +0 -1
- package/types/core/helpers/utils/browser.d.ts +0 -14
- package/types/core/helpers/utils/build-query.d.ts +0 -6
- package/types/core/helpers/utils/complete-url.d.ts +0 -3
- package/types/core/helpers/utils/config-proto.d.ts +0 -33
- package/types/core/helpers/utils/convert-media-url-to-video-embed.d.ts +0 -3
- package/types/core/helpers/utils/css.d.ts +0 -6
- package/types/core/helpers/utils/ctrl-key.d.ts +0 -7
- package/types/core/helpers/utils/data-bind.d.ts +0 -3
- package/types/core/helpers/utils/default-language.d.ts +0 -3
- package/types/core/helpers/utils/error/error.d.ts +0 -3
- package/types/core/helpers/utils/error/errors/abort-error.d.ts +0 -3
- package/types/core/helpers/utils/error/errors/connection-error.d.ts +0 -3
- package/types/core/helpers/utils/error/errors/index.d.ts +0 -3
- package/types/core/helpers/utils/error/errors/options-error.d.ts +0 -3
- package/types/core/helpers/utils/error/index.d.ts +0 -3
- package/types/core/helpers/utils/get-class-name.d.ts +0 -3
- package/types/core/helpers/utils/get.d.ts +0 -22
- package/types/core/helpers/utils/human-size-to-bytes.d.ts +0 -7
- package/types/core/helpers/utils/index.d.ts +0 -3
- package/types/core/helpers/utils/mark-deprecated.d.ts +0 -10
- package/types/core/helpers/utils/parse-query.d.ts +0 -6
- package/types/core/helpers/utils/print.d.ts +0 -9
- package/types/core/helpers/utils/reset.d.ts +0 -10
- package/types/core/helpers/utils/scroll-into-view.d.ts +0 -3
- package/types/core/helpers/utils/selector.d.ts +0 -29
- package/types/core/helpers/utils/set.d.ts +0 -16
- package/types/core/helpers/utils/stack.d.ts +0 -3
- package/types/core/helpers/utils/utils.d.ts +0 -36
- package/types/core/helpers/utils/val.d.ts +0 -3
- package/types/core/plugin/index.d.ts +0 -3
- package/types/core/plugin/plugin-system.d.ts +0 -48
- package/types/core/plugin/plugin.d.ts +0 -10
- package/types/core/request/ajax.d.ts +0 -8
- package/types/core/request/config.d.ts +0 -6
- package/types/core/request/index.d.ts +0 -3
- package/types/core/request/response.d.ts +0 -3
- package/types/core/selection/helpers/index.d.ts +0 -3
- package/types/core/selection/helpers/move-node-inside-start.d.ts +0 -7
- package/types/core/selection/index.d.ts +0 -3
- package/types/core/selection/select.d.ts +0 -180
- package/types/core/selection/style/api/element-has-same-style.d.ts +0 -7
- package/types/core/selection/style/api/extract.d.ts +0 -16
- package/types/core/selection/style/api/finite-state-machine.d.ts +0 -3
- package/types/core/selection/style/api/get-suit-child.d.ts +0 -8
- package/types/core/selection/style/api/get-suit-parent.d.ts +0 -8
- package/types/core/selection/style/api/is-inside-invisible-element.d.ts +0 -4
- package/types/core/selection/style/api/is-normal-node.d.ts +0 -4
- package/types/core/selection/style/api/is-suit-element.d.ts +0 -24
- package/types/core/selection/style/api/toggle/toggle-css.d.ts +0 -4
- package/types/core/selection/style/api/toggle/toggle-ordered-list.d.ts +0 -4
- package/types/core/selection/style/api/toggle-commit-styles.d.ts +0 -5
- package/types/core/selection/style/api/unwrap-children.d.ts +0 -4
- package/types/core/selection/style/api/wrap-and-commit-style.d.ts +0 -4
- package/types/core/selection/style/api/wrap-ordered-list.d.ts +0 -5
- package/types/core/selection/style/api/wrap-unwrapped-text.d.ts +0 -4
- package/types/core/selection/style/apply-style.d.ts +0 -3
- package/types/core/selection/style/commit-style.d.ts +0 -9
- package/types/core/storage/engines/local-storage-provider.d.ts +0 -9
- package/types/core/storage/engines/memory-storage-provider.d.ts +0 -3
- package/types/core/storage/index.d.ts +0 -3
- package/types/core/storage/storage.d.ts +0 -5
- package/types/core/traits/dlgs.d.ts +0 -3
- package/types/core/traits/elms.d.ts +0 -9
- package/types/core/traits/index.d.ts +0 -3
- package/types/core/traits/mods.d.ts +0 -11
- package/types/core/ui/button/button/button.d.ts +0 -32
- package/types/core/ui/button/group/group.d.ts +0 -6
- package/types/core/ui/button/index.d.ts +0 -5
- package/types/core/ui/button/tooltip/tooltip.d.ts +0 -8
- package/types/core/ui/element.d.ts +0 -27
- package/types/core/ui/form/block/block.d.ts +0 -4
- package/types/core/ui/form/form.d.ts +0 -7
- package/types/core/ui/form/index.d.ts +0 -3
- package/types/core/ui/form/inputs/area/area.d.ts +0 -7
- package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +0 -8
- package/types/core/ui/form/inputs/file/file.d.ts +0 -4
- package/types/core/ui/form/inputs/index.d.ts +0 -3
- package/types/core/ui/form/inputs/input/input.d.ts +0 -18
- package/types/core/ui/form/inputs/select/select.d.ts +0 -10
- package/types/core/ui/form/validators/index.d.ts +0 -3
- package/types/core/ui/form/validators/input.d.ts +0 -9
- package/types/core/ui/form/validators/select.d.ts +0 -6
- package/types/core/ui/group/group.d.ts +0 -32
- package/types/core/ui/group/index.d.ts +0 -3
- package/types/core/ui/group/list.d.ts +0 -16
- package/types/core/ui/group/separator.d.ts +0 -3
- package/types/core/ui/group/spacer.d.ts +0 -3
- package/types/core/ui/helpers/buttons.d.ts +0 -3
- package/types/core/ui/helpers/get-control-type.d.ts +0 -6
- package/types/core/ui/helpers/get-strong-control-types.d.ts +0 -3
- package/types/core/ui/icon.d.ts +0 -15
- package/types/core/ui/index.d.ts +0 -5
- package/types/core/ui/popup/index.d.ts +0 -3
- package/types/core/ui/popup/popup.d.ts +0 -35
- package/types/core/ui/progress-bar/progress-bar.d.ts +0 -10
- package/types/core/vdom/helpers/index.d.ts +9 -0
- package/types/core/vdom/index.d.ts +8 -0
- package/types/core/vdom/interface.d.ts +48 -0
- package/types/core/vdom/render/index.d.ts +23 -0
- package/types/core/vdom/v-dom-jodit.d.ts +15 -0
- package/types/core/view/view-with-toolbar.d.ts +0 -22
- package/types/core/view/view.d.ts +0 -64
- package/types/index.d.ts +1 -6
- package/types/jodit.d.ts +5 -257
- package/types/langs/index.d.ts +0 -5
- package/types/modules/context-menu/context-menu.d.ts +0 -20
- package/types/modules/dialog/alert.d.ts +0 -17
- package/types/modules/dialog/confirm.d.ts +0 -17
- package/types/modules/dialog/dialog.d.ts +0 -115
- package/types/modules/dialog/index.d.ts +0 -5
- package/types/modules/dialog/prompt.d.ts +0 -20
- package/types/modules/file-browser/builders/context-menu.d.ts +0 -3
- package/types/modules/file-browser/builders/elements-map.d.ts +0 -6
- package/types/modules/file-browser/builders/item.d.ts +0 -3
- package/types/modules/file-browser/data-provider.d.ts +0 -69
- package/types/modules/file-browser/factories.d.ts +0 -3
- package/types/modules/file-browser/fetch/delete-file.d.ts +0 -6
- package/types/modules/file-browser/fetch/load-items.d.ts +0 -6
- package/types/modules/file-browser/fetch/load-tree.d.ts +0 -6
- package/types/modules/file-browser/file-browser.d.ts +0 -36
- package/types/modules/file-browser/index.d.ts +0 -5
- package/types/modules/file-browser/listeners/native-listeners.d.ts +0 -3
- package/types/modules/file-browser/listeners/self-listeners.d.ts +0 -3
- package/types/modules/file-browser/listeners/state-listeners.d.ts +0 -6
- package/types/modules/file-browser/ui/index.d.ts +0 -3
- package/types/modules/history/command.d.ts +0 -3
- package/types/modules/history/history.d.ts +0 -30
- package/types/modules/history/snapshot.d.ts +0 -40
- package/types/modules/history/stack.d.ts +0 -3
- package/types/modules/image-editor/image-editor.d.ts +1 -54
- package/types/modules/image-editor/templates/form.d.ts +0 -3
- package/types/modules/index.d.ts +0 -5
- package/types/modules/status-bar/status-bar.d.ts +0 -20
- package/types/modules/table/table.d.ts +0 -57
- package/types/modules/toolbar/button/button.d.ts +1 -41
- package/types/modules/toolbar/button/content.d.ts +0 -6
- package/types/modules/toolbar/button/index.d.ts +0 -3
- package/types/modules/toolbar/collection/collection.d.ts +0 -23
- package/types/modules/toolbar/collection/editor-collection.d.ts +0 -19
- package/types/modules/toolbar/factory.d.ts +0 -11
- package/types/modules/uploader/config.d.ts +0 -6
- package/types/modules/uploader/helpers/build-data.d.ts +0 -3
- package/types/modules/uploader/helpers/data-uri-to-blob.d.ts +0 -6
- package/types/modules/uploader/helpers/index.d.ts +0 -3
- package/types/modules/uploader/helpers/process-old-browser-drag.d.ts +0 -3
- package/types/modules/uploader/helpers/send-files.d.ts +0 -6
- package/types/modules/uploader/helpers/send.d.ts +0 -3
- package/types/modules/uploader/uploader.d.ts +0 -35
- package/types/modules/widget/color-picker/color-picker.d.ts +0 -22
- package/types/modules/widget/file-selector/file-selector.d.ts +0 -41
- package/types/modules/widget/index.d.ts +0 -5
- package/types/modules/widget/tabs/tabs.d.ts +0 -22
- package/types/plugins/about/about.d.ts +0 -5
- package/types/plugins/add-new-line/add-new-line.d.ts +0 -9
- package/types/plugins/add-new-line/config.d.ts +0 -22
- package/types/plugins/backspace/backspace.d.ts +0 -14
- package/types/plugins/backspace/cases/check-join-neighbors.d.ts +0 -6
- package/types/plugins/backspace/cases/check-join-two-lists.d.ts +0 -16
- package/types/plugins/backspace/cases/check-not-collapsed.d.ts +0 -16
- package/types/plugins/backspace/cases/check-remove-char.d.ts +0 -16
- package/types/plugins/backspace/cases/check-remove-content-not-editable.d.ts +0 -7
- package/types/plugins/backspace/cases/check-remove-empty-neighbor.d.ts +0 -16
- package/types/plugins/backspace/cases/check-remove-empty-parent.d.ts +0 -17
- package/types/plugins/backspace/cases/check-remove-unbreakable-element.d.ts +0 -17
- package/types/plugins/backspace/cases/check-table-cell.d.ts +0 -17
- package/types/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +0 -17
- package/types/plugins/backspace/cases/index.d.ts +1 -1
- package/types/plugins/backspace/helpers.d.ts +0 -7
- package/types/plugins/bold/bold.d.ts +0 -8
- package/types/plugins/class-span/class-span.d.ts +0 -27
- package/types/plugins/clean-html/clean-html.d.ts +0 -17
- package/types/plugins/clean-html/config.d.ts +0 -73
- package/types/plugins/clean-html/helpers/get-hash.d.ts +0 -6
- package/types/plugins/clean-html/helpers/index.d.ts +0 -3
- package/types/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.d.ts +0 -10
- package/types/plugins/clean-html/helpers/remove-format/remove-format-for-selection.d.ts +0 -7
- package/types/plugins/clean-html/helpers/visitor/filters/allow-attributes.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/filters/index.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/filters/remove-empty-text-node.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/filters/remove-inv-text-nodes.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/filters/replace-old-tags.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/filters/sanitize-attributes.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/filters/try-remove-node.d.ts +0 -6
- package/types/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +0 -6
- package/types/plugins/clipboard/clipboard.d.ts +0 -10
- package/types/plugins/color/color.d.ts +0 -8
- package/types/plugins/copy-format/copy-format.d.ts +0 -5
- package/types/plugins/copy-format/langs/index.d.ts +25 -0
- package/types/plugins/debug/debug.d.ts +11 -0
- package/types/plugins/drag-and-drop/drag-and-drop.d.ts +0 -5
- package/types/plugins/drag-and-drop-element/config.d.ts +0 -3
- package/types/plugins/drag-and-drop-element/drag-and-drop-element.d.ts +0 -26
- package/types/plugins/dtd/after-insert/index.d.ts +0 -4
- package/types/plugins/dtd/after-insert/remove-extra-br.d.ts +0 -9
- package/types/plugins/dtd/before-insert/check-block-nesting.d.ts +0 -9
- package/types/plugins/dtd/before-insert/index.d.ts +0 -4
- package/types/plugins/dtd/config.d.ts +0 -12
- package/types/plugins/enter/enter.d.ts +0 -11
- package/types/plugins/enter/helpers/check-br.d.ts +0 -7
- package/types/plugins/enter/helpers/check-unsplittable-box.d.ts +0 -7
- package/types/plugins/enter/helpers/get-block-wrapper.d.ts +0 -7
- package/types/plugins/enter/helpers/has-previous-block.d.ts +0 -6
- package/types/plugins/enter/helpers/index.d.ts +0 -3
- package/types/plugins/enter/helpers/insert-paragraph.d.ts +0 -7
- package/types/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +0 -6
- package/types/plugins/enter/helpers/process-empty-li-leaf.d.ts +0 -7
- package/types/plugins/enter/helpers/split-fragment.d.ts +0 -8
- package/types/plugins/enter/helpers/wrap-text.d.ts +0 -8
- package/types/plugins/error-messages/error-messages.d.ts +0 -14
- package/types/plugins/file/file.d.ts +0 -5
- package/types/plugins/focus/focus.d.ts +0 -5
- package/types/plugins/font/font.d.ts +0 -8
- package/types/plugins/format-block/format-block.d.ts +0 -8
- package/types/plugins/fullsize/config.d.ts +0 -22
- package/types/plugins/fullsize/fullsize.d.ts +0 -8
- package/types/plugins/hotkeys/config.d.ts +0 -3
- package/types/plugins/hotkeys/hotkeys.d.ts +0 -10
- package/types/plugins/hr/hr.d.ts +0 -5
- package/types/plugins/iframe/config.d.ts +0 -49
- package/types/plugins/iframe/iframe.d.ts +0 -9
- package/types/plugins/image/image.d.ts +0 -5
- package/types/plugins/image-processor/config.d.ts +0 -3
- package/types/plugins/image-processor/image-processor.d.ts +0 -8
- package/types/plugins/image-properties/config.d.ts +0 -42
- package/types/plugins/image-properties/image-properties.d.ts +0 -42
- package/types/plugins/image-properties/templates/form.d.ts +0 -3
- package/types/plugins/image-properties/templates/main-tab.d.ts +0 -3
- package/types/plugins/image-properties/templates/position-tab.d.ts +0 -3
- package/types/plugins/indent/config.d.ts +0 -3
- package/types/plugins/indent/helpers.d.ts +0 -4
- package/types/plugins/indent/indent.d.ts +0 -8
- package/types/plugins/index.d.ts +0 -5
- package/types/plugins/inline-popup/config/config.d.ts +0 -3
- package/types/plugins/inline-popup/config/items/a.d.ts +8 -0
- package/types/plugins/inline-popup/config/items/cells.d.ts +8 -0
- package/types/plugins/inline-popup/config/items/iframe.d.ts +8 -0
- package/types/plugins/inline-popup/config/items/img.d.ts +9 -0
- package/types/plugins/inline-popup/config/items/toolbar.d.ts +7 -0
- package/types/plugins/inline-popup/inline-popup.d.ts +0 -36
- package/types/plugins/justify/justify.d.ts +0 -8
- package/types/plugins/key-arrow-outside/key-arrow-outside.d.ts +0 -8
- package/types/plugins/limit/config.d.ts +0 -9
- package/types/plugins/limit/limit.d.ts +0 -22
- package/types/plugins/line-height/config.d.ts +0 -9
- package/types/plugins/line-height/langs/index.d.ts +25 -0
- package/types/plugins/line-height/line-height.d.ts +0 -5
- package/types/plugins/link/config.d.ts +0 -33
- package/types/plugins/link/link.d.ts +0 -11
- package/types/plugins/link/template.d.ts +0 -3
- package/types/plugins/media/config.d.ts +0 -9
- package/types/plugins/media/media.d.ts +0 -8
- package/types/plugins/mobile/config.d.ts +0 -6
- package/types/plugins/mobile/mobile.d.ts +0 -8
- package/types/plugins/ordered-list/ordered-list.d.ts +0 -8
- package/types/plugins/paste/config.d.ts +0 -19
- package/types/plugins/paste/helpers.d.ts +0 -12
- package/types/plugins/paste/interface.d.ts +0 -3
- package/types/plugins/paste/paste.d.ts +0 -31
- package/types/plugins/paste-from-word/config.d.ts +0 -21
- package/types/plugins/paste-from-word/paste-from-word.d.ts +0 -11
- package/types/plugins/paste-storage/paste-storage.d.ts +0 -8
- package/types/plugins/placeholder/config.d.ts +0 -31
- package/types/plugins/placeholder/placeholder.d.ts +0 -11
- package/types/plugins/powered-by-jodit/powered-by-jodit.d.ts +0 -8
- package/types/plugins/preview/preview.d.ts +0 -5
- package/types/plugins/print/lib/generate-critical-css.d.ts +0 -6
- package/types/plugins/print/print.d.ts +0 -5
- package/types/plugins/redo-undo/redo-undo.d.ts +0 -9
- package/types/plugins/resize-cells/resize-cells.d.ts +0 -42
- package/types/plugins/resize-handler/resize-handler.d.ts +0 -26
- package/types/plugins/resizer/config.d.ts +0 -31
- package/types/plugins/resizer/resizer.d.ts +0 -22
- package/types/plugins/search/config.d.ts +0 -21
- package/types/plugins/search/helpers/index.d.ts +0 -3
- package/types/plugins/search/helpers/sentence-finder.d.ts +0 -3
- package/types/plugins/search/helpers/wrap-ranges-texts-in-tmp-span.d.ts +0 -3
- package/types/plugins/search/search.d.ts +0 -22
- package/types/plugins/search/ui/search.d.ts +0 -6
- package/types/plugins/select/config.d.ts +0 -8
- package/types/plugins/select/select.d.ts +0 -19
- package/types/plugins/select-cells/select-cells.d.ts +0 -34
- package/types/plugins/size/size.d.ts +0 -27
- package/types/plugins/source/config.d.ts +0 -25
- package/types/plugins/source/editor/engines/ace.d.ts +0 -6
- package/types/plugins/source/editor/engines/area.d.ts +0 -3
- package/types/plugins/source/editor/engines/index.d.ts +0 -3
- package/types/plugins/source/editor/factory.d.ts +0 -3
- package/types/plugins/source/editor/sourceEditor.d.ts +0 -6
- package/types/plugins/source/source.d.ts +0 -17
- package/types/plugins/speech-recognize/config.d.ts +19 -0
- package/types/plugins/speech-recognize/constants.d.ts +7 -0
- package/types/plugins/speech-recognize/helpers/api.d.ts +7 -0
- package/types/plugins/speech-recognize/helpers/exec-spell-command.d.ts +7 -0
- package/types/plugins/speech-recognize/helpers/recognize-manager.d.ts +45 -0
- package/types/plugins/speech-recognize/helpers/sound.d.ts +11 -0
- package/types/plugins/speech-recognize/interface.d.ts +30 -0
- package/types/plugins/speech-recognize/langs/index.d.ts +25 -0
- package/types/plugins/speech-recognize/speech-recognize.d.ts +19 -0
- package/types/plugins/spellcheck/config.d.ts +0 -4
- package/types/plugins/spellcheck/langs/index.d.ts +25 -0
- package/types/plugins/spellcheck/spellcheck.d.ts +0 -5
- package/types/plugins/stat/stat.d.ts +0 -5
- package/types/plugins/sticky/config.d.ts +0 -19
- package/types/plugins/sticky/sticky.d.ts +0 -18
- package/types/plugins/symbols/langs/index.d.ts +25 -0
- package/types/plugins/symbols/symbols.d.ts +0 -11
- package/types/plugins/tab/cases/index.d.ts +0 -3
- package/types/plugins/tab/cases/on-tab-inside-li.d.ts +0 -8
- package/types/plugins/tab/config.d.ts +0 -3
- package/types/plugins/table/table.d.ts +0 -5
- package/types/plugins/table-keyboard-navigation/table-keyboard-navigation.d.ts +0 -8
- package/types/plugins/wrap-nodes/config.d.ts +0 -3
- package/types/plugins/xpath/xpath.d.ts +0 -5
- package/types/polyfills.d.ts +10 -0
- package/types/styles/icons/index.d.ts +0 -5
- package/types/types/core.d.ts +0 -3
- package/types/types/file-browser.d.ts +15 -0
- package/types/types/jodit.d.ts +1 -1
- package/types/types/storage.d.ts +0 -3
- package/types/types/traits.d.ts +2 -2
- package/types/types/types.d.ts +2 -2
- package/types/types/uploader.d.ts +1 -1
- package/src/modules/file-browser/__image_snapshots__/file-browser-test-screenshot-js-filebrowser-screenshot-testing-open-filebrowser-works-1-snap.png +0 -0
- package/src/modules/image-editor/__image_snapshots__/image-editor-test-screenshot-js-image-editor-screenshot-testing-open-image-editor-works-1-snap.png +0 -0
|
@@ -3,14 +3,10 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module ui/form/inputs
|
|
8
|
-
*/
|
|
9
6
|
import './input.less';
|
|
10
7
|
import type { IUIInput, IUIInputValidator, IViewBased } from 'jodit/types';
|
|
11
8
|
import { UIElement } from 'jodit/core/ui/element';
|
|
12
9
|
export declare class UIInput extends UIElement implements IUIInput {
|
|
13
|
-
/** @override */
|
|
14
10
|
className(): string;
|
|
15
11
|
nativeInput: IUIInput['nativeInput'];
|
|
16
12
|
private label;
|
|
@@ -27,28 +23,14 @@ export declare class UIInput extends UIElement implements IUIInput {
|
|
|
27
23
|
set error(value: string);
|
|
28
24
|
get value(): string;
|
|
29
25
|
set value(value: string);
|
|
30
|
-
/**
|
|
31
|
-
* Call on every state value changed
|
|
32
|
-
*/
|
|
33
26
|
protected onChangeStateValue(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Call on every native value changed
|
|
36
|
-
*/
|
|
37
27
|
protected onChangeValue(): void;
|
|
38
28
|
protected validators: Set<IUIInputValidator>;
|
|
39
29
|
validate(): boolean;
|
|
40
|
-
/** @override **/
|
|
41
30
|
protected createContainer(options: Partial<this['state']>): HTMLElement;
|
|
42
|
-
/**
|
|
43
|
-
* Create native input element
|
|
44
|
-
*/
|
|
45
31
|
protected createNativeInput(options?: Partial<this['state']>): IUIInput['nativeInput'];
|
|
46
|
-
/** @override **/
|
|
47
32
|
constructor(jodit: IViewBased, options?: Partial<IUIInput['state']>);
|
|
48
33
|
focus(): void;
|
|
49
34
|
get isFocused(): boolean;
|
|
50
|
-
/**
|
|
51
|
-
* Set `focused` mod on change focus
|
|
52
|
-
*/
|
|
53
35
|
private onChangeFocus;
|
|
54
36
|
}
|
|
@@ -3,26 +3,16 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module ui/form/inputs
|
|
8
|
-
*/
|
|
9
6
|
import './select.less';
|
|
10
7
|
import type { IUISelect, IViewBased } from 'jodit/types';
|
|
11
8
|
import { UIInput } from 'jodit/core/ui/form/inputs/input/input';
|
|
12
9
|
export declare class UISelect extends UIInput implements IUISelect {
|
|
13
|
-
/** @override */
|
|
14
10
|
className(): string;
|
|
15
|
-
/** @override */
|
|
16
11
|
nativeInput: IUISelect['nativeInput'];
|
|
17
|
-
/** @override */
|
|
18
12
|
static defaultState: IUISelect['state'];
|
|
19
|
-
/** @override */
|
|
20
13
|
state: IUISelect['state'];
|
|
21
|
-
/** @override **/
|
|
22
14
|
protected createContainer(state: Partial<IUISelect['state']>): HTMLElement;
|
|
23
|
-
/** @override **/
|
|
24
15
|
protected createNativeInput(): IUISelect['nativeInput'];
|
|
25
|
-
/** @override **/
|
|
26
16
|
protected updateValidators(): void;
|
|
27
17
|
constructor(jodit: IViewBased, state: Partial<IUISelect['state']>);
|
|
28
18
|
}
|
|
@@ -3,8 +3,5 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module ui/form
|
|
8
|
-
*/
|
|
9
6
|
export * as inputValidators from './input';
|
|
10
7
|
export * as selectValidators from './select';
|
|
@@ -3,15 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module ui/form
|
|
8
|
-
*/
|
|
9
6
|
import type { IUIInput, IUIInputValidator } from 'jodit/types';
|
|
10
|
-
/**
|
|
11
|
-
* Input is required
|
|
12
|
-
*/
|
|
13
7
|
export declare const required: IUIInputValidator<IUIInput>;
|
|
14
|
-
/**
|
|
15
|
-
* Input value should be valid URL
|
|
16
|
-
*/
|
|
17
8
|
export declare const url: IUIInputValidator<IUIInput>;
|
|
@@ -3,11 +3,5 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module ui/form
|
|
8
|
-
*/
|
|
9
6
|
import type { IUIInputValidator } from 'jodit/types';
|
|
10
|
-
/**
|
|
11
|
-
* Select is required
|
|
12
|
-
*/
|
|
13
7
|
export declare const required: IUIInputValidator<import("jodit/types").IUIInput>;
|
|
@@ -3,55 +3,23 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* [[include:core/ui/group/README.md]]
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
* @module ui/group
|
|
10
|
-
*/
|
|
11
6
|
import './group.less';
|
|
12
7
|
import type { IUIButtonState, IUIElement, IUIGroup, IViewBased, ModType } from 'jodit/types';
|
|
13
8
|
import type { IDictionary } from 'jodit/types';
|
|
14
9
|
import { UIElement } from '../element';
|
|
15
10
|
export declare class UIGroup<T extends IViewBased = IViewBased> extends UIElement<T> implements IUIGroup {
|
|
16
11
|
readonly options?: IDictionary<any, string> | undefined;
|
|
17
|
-
/** @override */
|
|
18
12
|
className(): string;
|
|
19
|
-
/**
|
|
20
|
-
* Synchronize mods to all children
|
|
21
|
-
*/
|
|
22
13
|
syncMod: boolean;
|
|
23
14
|
elements: IUIElement[];
|
|
24
|
-
/**
|
|
25
|
-
* All group children
|
|
26
|
-
*/
|
|
27
15
|
get allChildren(): IUIElement[];
|
|
28
16
|
buttonSize: IUIButtonState['size'];
|
|
29
|
-
/**
|
|
30
|
-
* Update all children
|
|
31
|
-
*/
|
|
32
17
|
update(): void;
|
|
33
|
-
/**
|
|
34
|
-
* Append new element into group
|
|
35
|
-
*/
|
|
36
18
|
append(elm: IUIElement | IUIElement[], distElement?: string): this;
|
|
37
|
-
/** @override */
|
|
38
19
|
afterSetMod(name: string, value: ModType): void;
|
|
39
|
-
/**
|
|
40
|
-
* Allow set another container for the box of all children
|
|
41
|
-
*/
|
|
42
20
|
protected appendChildToContainer(childContainer: HTMLElement): void;
|
|
43
|
-
/**
|
|
44
|
-
* Remove element from group
|
|
45
|
-
*/
|
|
46
21
|
remove(elm: IUIElement): this;
|
|
47
|
-
/**
|
|
48
|
-
* Clear group
|
|
49
|
-
*/
|
|
50
22
|
clear(): this;
|
|
51
|
-
/**
|
|
52
|
-
* @param elements - Items of group
|
|
53
|
-
*/
|
|
54
23
|
constructor(jodit: T, elements?: Array<IUIElement | void | null | false>, options?: IDictionary<any, string> | undefined);
|
|
55
|
-
/** @override */
|
|
56
24
|
destruct(): any;
|
|
57
25
|
}
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module ui/group
|
|
8
|
-
*/
|
|
9
6
|
export * from './group';
|
|
10
7
|
export * from './list';
|
|
11
8
|
export * from './separator';
|
|
@@ -3,36 +3,20 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module ui/group
|
|
8
|
-
*/
|
|
9
6
|
import './list.less';
|
|
10
7
|
import type { IControlTypeStrong, IUIButton, IUIList, IViewBased, Nullable, ButtonsOption } from 'jodit/types';
|
|
11
8
|
import { UIGroup } from 'jodit/core/ui/group/group';
|
|
12
9
|
export declare class UIList<T extends IViewBased = IViewBased> extends UIGroup<T> implements IUIList {
|
|
13
|
-
/** @override */
|
|
14
10
|
className(): string;
|
|
15
11
|
jodit: T;
|
|
16
12
|
mode: IUIList['mode'];
|
|
17
13
|
onChangeMode(): void;
|
|
18
14
|
constructor(jodit: T);
|
|
19
|
-
/**
|
|
20
|
-
* Make new group and append it in list of elements
|
|
21
|
-
*/
|
|
22
15
|
private makeGroup;
|
|
23
|
-
/**
|
|
24
|
-
* All buttons from list
|
|
25
|
-
*/
|
|
26
16
|
get buttons(): IUIButton[];
|
|
27
|
-
/**
|
|
28
|
-
* Helper for getting full plain button list
|
|
29
|
-
*/
|
|
30
17
|
getButtonsNames(): string[];
|
|
31
18
|
protected removeButtons: string[];
|
|
32
19
|
setRemoveButtons(removeButtons?: string[]): this;
|
|
33
20
|
build(items: ButtonsOption, target?: Nullable<HTMLElement>): IUIList;
|
|
34
|
-
/**
|
|
35
|
-
* Create button instance
|
|
36
|
-
*/
|
|
37
21
|
protected makeButton(control: IControlTypeStrong, target: Nullable<HTMLElement>): IUIButton;
|
|
38
22
|
}
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module ui/group
|
|
8
|
-
*/
|
|
9
6
|
import { UIElement } from 'jodit/core/ui/element';
|
|
10
7
|
export declare class UISeparator extends UIElement {
|
|
11
8
|
className(): string;
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module ui/group
|
|
8
|
-
*/
|
|
9
6
|
import { UIElement } from 'jodit/core/ui/element';
|
|
10
7
|
export declare class UISpacer extends UIElement {
|
|
11
8
|
className(): string;
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module ui
|
|
8
|
-
*/
|
|
9
6
|
import type { ButtonsGroup, ButtonsGroups, IControlType, IJodit } from 'jodit/types';
|
|
10
7
|
export declare const isButtonGroup: (item: ButtonsGroup | string | IControlType) => item is ButtonsGroup;
|
|
11
8
|
export declare function flatButtonsSet(buttons: ButtonsGroups, jodit: IJodit): Set<string | IControlType>;
|
|
@@ -3,12 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module ui
|
|
8
|
-
*/
|
|
9
6
|
import type { CanUndef, Controls, IControlType, IControlTypeStrong } from 'jodit/types';
|
|
10
|
-
/**
|
|
11
|
-
* Get control for button name
|
|
12
|
-
*/
|
|
13
7
|
export declare function getControlType(button: IControlType | string, controls: CanUndef<Controls>): IControlTypeStrong;
|
|
14
8
|
export declare function findControlType(path: string, controls: Controls): IControlTypeStrong | void;
|
|
@@ -3,8 +3,5 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module ui
|
|
8
|
-
*/
|
|
9
6
|
import type { Buttons, Controls, IControlTypeStrong, IDictionary } from 'jodit/types';
|
|
10
7
|
export declare function getStrongControlTypes(items: Buttons | IDictionary<string>, controls?: Controls): IControlTypeStrong[];
|
package/types/core/ui/icon.d.ts
CHANGED
|
@@ -3,27 +3,12 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module ui
|
|
8
|
-
*/
|
|
9
6
|
import type { CanUndef, IUIIconState, IViewBased } from 'jodit/types';
|
|
10
7
|
export declare class Icon {
|
|
11
8
|
private static icons;
|
|
12
9
|
private static getIcon;
|
|
13
|
-
/**
|
|
14
|
-
* Check if icon exist in store
|
|
15
|
-
*/
|
|
16
10
|
static exists(name: string): boolean;
|
|
17
|
-
/**
|
|
18
|
-
* Return SVG icon
|
|
19
|
-
*/
|
|
20
11
|
static get(name: string, defaultValue?: string): string;
|
|
21
|
-
/**
|
|
22
|
-
* Set SVG in store
|
|
23
|
-
*/
|
|
24
12
|
static set(name: string, value: string): typeof Icon;
|
|
25
|
-
/**
|
|
26
|
-
* Make icon html element
|
|
27
|
-
*/
|
|
28
13
|
static makeIcon(jodit: IViewBased, icon: IUIIconState): CanUndef<Node>;
|
|
29
14
|
}
|
package/types/core/ui/index.d.ts
CHANGED
|
@@ -3,11 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* [[include:core/ui/README.md]]
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
* @module ui
|
|
10
|
-
*/
|
|
11
6
|
export * from './element';
|
|
12
7
|
export * from './button';
|
|
13
8
|
export * from './popup';
|
|
@@ -3,69 +3,34 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* [[include:core/ui/popup/README.md]]
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
* @module ui/popup
|
|
10
|
-
*/
|
|
11
6
|
import './popup.less';
|
|
12
7
|
import type { IBound, IPopup, IUIElement, IViewBased, PopupStrategy } from 'jodit/types';
|
|
13
8
|
import { UIElement } from 'jodit/core/ui/element';
|
|
14
9
|
declare type getBoundFunc = () => IBound;
|
|
15
10
|
export declare class Popup extends UIElement implements IPopup {
|
|
16
11
|
readonly smart: boolean;
|
|
17
|
-
/** @override */
|
|
18
12
|
className(): string;
|
|
19
13
|
isOpened: boolean;
|
|
20
14
|
strategy: PopupStrategy;
|
|
21
15
|
viewBound: () => IBound;
|
|
22
16
|
private targetBound;
|
|
23
17
|
private childrenPopups;
|
|
24
|
-
/** @override */
|
|
25
18
|
updateParentElement(target: IUIElement): this;
|
|
26
|
-
/**
|
|
27
|
-
* Set popup content
|
|
28
|
-
*/
|
|
29
19
|
setContent(content: IUIElement | HTMLElement | string): this;
|
|
30
|
-
/**
|
|
31
|
-
* Open popup near with some bound
|
|
32
|
-
*/
|
|
33
20
|
open(getBound: getBoundFunc, keepPosition?: boolean, parentContainer?: HTMLElement): this;
|
|
34
21
|
private calculateZIndex;
|
|
35
|
-
/**
|
|
36
|
-
* Calculate static bound for point
|
|
37
|
-
*/
|
|
38
22
|
protected getKeepBound(getBound: getBoundFunc): getBoundFunc;
|
|
39
|
-
/**
|
|
40
|
-
* Update container position
|
|
41
|
-
*/
|
|
42
23
|
updatePosition(): this;
|
|
43
24
|
throttleUpdatePosition(): void;
|
|
44
|
-
/**
|
|
45
|
-
* Calculate start point
|
|
46
|
-
*/
|
|
47
25
|
private calculatePosition;
|
|
48
|
-
/**
|
|
49
|
-
* Check if one box is inside second
|
|
50
|
-
*/
|
|
51
26
|
private static boxInView;
|
|
52
|
-
/**
|
|
53
|
-
* Close popup
|
|
54
|
-
*/
|
|
55
27
|
close(): this;
|
|
56
|
-
/**
|
|
57
|
-
* Close popup if click was in outside
|
|
58
|
-
*/
|
|
59
28
|
private closeOnOutsideClick;
|
|
60
29
|
isOwnClick(e: MouseEvent): boolean;
|
|
61
30
|
private addGlobalListeners;
|
|
62
31
|
private removeGlobalListeners;
|
|
63
|
-
/**
|
|
64
|
-
* Set ZIndex
|
|
65
|
-
*/
|
|
66
32
|
setZIndex(index: number | string): void;
|
|
67
33
|
constructor(jodit: IViewBased, smart?: boolean);
|
|
68
|
-
/** @override **/
|
|
69
34
|
destruct(): any;
|
|
70
35
|
}
|
|
71
36
|
export {};
|
|
@@ -3,22 +3,12 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* [[include:core/ui/progress-bar/README.md]]
|
|
8
|
-
* @packageDocumentation
|
|
9
|
-
* @module ui/progress-bar
|
|
10
|
-
*/
|
|
11
6
|
import './progress-bar.less';
|
|
12
7
|
import type { IProgressBar } from 'jodit/types';
|
|
13
8
|
import { UIElement } from '../element';
|
|
14
9
|
export declare class ProgressBar extends UIElement implements IProgressBar {
|
|
15
|
-
/** @override */
|
|
16
10
|
className(): string;
|
|
17
|
-
/** @override */
|
|
18
11
|
protected render(): string;
|
|
19
|
-
/**
|
|
20
|
-
* Show progress bar
|
|
21
|
-
*/
|
|
22
12
|
show(): IProgressBar;
|
|
23
13
|
hide(): IProgressBar;
|
|
24
14
|
progress(percentage: number): IProgressBar;
|
|
@@ -0,0 +1,9 @@
|
|
|
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-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
import type { IDictionary } from 'jodit/types';
|
|
7
|
+
import type { IVDom } from '../interface';
|
|
8
|
+
export declare function attrsToDict(elm: Node): IDictionary<string>;
|
|
9
|
+
export declare function domToVDom(elm: Node, noNode?: boolean): IVDom;
|
|
@@ -0,0 +1,8 @@
|
|
|
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-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
export * from './interface';
|
|
7
|
+
export * from './render';
|
|
8
|
+
export * from './v-dom-jodit';
|
|
@@ -0,0 +1,48 @@
|
|
|
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-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
import type { HTMLTagNames, Nullable } from 'jodit/types';
|
|
7
|
+
export interface IVDomText {
|
|
8
|
+
readonly type: 'TEXT_ELEMENT';
|
|
9
|
+
readonly props: {
|
|
10
|
+
nodeValue: string;
|
|
11
|
+
children: [];
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
export interface IVDomElement {
|
|
15
|
+
readonly type: HTMLTagNames;
|
|
16
|
+
readonly props: {
|
|
17
|
+
children: IVDom[];
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export declare type IVDom = IVDomText | IVDomElement;
|
|
22
|
+
export interface IFiber {
|
|
23
|
+
effectTag?: 'PLACEMENT' | 'UPDATE' | 'DELETION';
|
|
24
|
+
parent?: IFiber;
|
|
25
|
+
sibling?: IFiber;
|
|
26
|
+
child?: IFiber;
|
|
27
|
+
alternate?: IFiber;
|
|
28
|
+
dom: Nullable<Node>;
|
|
29
|
+
type: IVDom['type'];
|
|
30
|
+
props: IVDom['props'];
|
|
31
|
+
}
|
|
32
|
+
export interface IRangeVDom {
|
|
33
|
+
start: IVDom;
|
|
34
|
+
startOffset: number;
|
|
35
|
+
end: IVDom;
|
|
36
|
+
endOffset: number;
|
|
37
|
+
}
|
|
38
|
+
export interface IVDomManipulate {
|
|
39
|
+
patch(vdom: IVDom, action: (v: IVDom) => IVDom): IVDomManipulate;
|
|
40
|
+
remove(vdom: IVDom): IVDomManipulate;
|
|
41
|
+
append(vdom: IVDom, newVDom: IVDom): IVDomManipulate;
|
|
42
|
+
prepend(vdom: IVDom, newVDom: IVDom): IVDomManipulate;
|
|
43
|
+
select(vdom: IVDom, range: IRangeVDom): IVDomManipulate;
|
|
44
|
+
}
|
|
45
|
+
export interface IVDomRender {
|
|
46
|
+
htmlToVDom(html: string): IVDom;
|
|
47
|
+
render(vdom: IVDom, root: HTMLElement): void;
|
|
48
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
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-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
import type { IVDom } from '../interface';
|
|
7
|
+
export declare class VDomRender {
|
|
8
|
+
private async;
|
|
9
|
+
private commitRoot;
|
|
10
|
+
private commitWork;
|
|
11
|
+
private commitDeletion;
|
|
12
|
+
render(element: IVDom, container: Node): void;
|
|
13
|
+
private nextUnitOfWork;
|
|
14
|
+
private currentRoot;
|
|
15
|
+
private wipRoot;
|
|
16
|
+
private deletions;
|
|
17
|
+
private workLoop;
|
|
18
|
+
constructor();
|
|
19
|
+
private performUnitOfWork;
|
|
20
|
+
private __updateHostComponent;
|
|
21
|
+
private __reconcileChildren;
|
|
22
|
+
htmlToVDom(html: string): IVDom;
|
|
23
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
|
+
*/
|
|
6
|
+
import './v-dom-jodit.less';
|
|
7
|
+
export declare class VDomJodit {
|
|
8
|
+
private container;
|
|
9
|
+
private vdom;
|
|
10
|
+
private render;
|
|
11
|
+
set value(v: string);
|
|
12
|
+
private constructor();
|
|
13
|
+
static make(elm: HTMLInputElement): VDomJodit;
|
|
14
|
+
private preventAllInputEvents;
|
|
15
|
+
}
|
|
@@ -3,9 +3,6 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2022 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
/**
|
|
7
|
-
* @module view
|
|
8
|
-
*/
|
|
9
6
|
import './view-with-toolbar.less';
|
|
10
7
|
import type { IViewWithToolbar, IToolbarCollection, IDictionary, IPluginButton, IViewOptions } from 'jodit/types';
|
|
11
8
|
import { View } from './view';
|
|
@@ -13,35 +10,16 @@ export declare abstract class ViewWithToolbar extends View implements IViewWithT
|
|
|
13
10
|
TOOLBAR: IToolbarCollection;
|
|
14
11
|
readonly toolbar: this['TOOLBAR'];
|
|
15
12
|
private defaultToolbarContainer;
|
|
16
|
-
/**
|
|
17
|
-
* Container for toolbar
|
|
18
|
-
*/
|
|
19
13
|
get toolbarContainer(): HTMLElement;
|
|
20
|
-
/**
|
|
21
|
-
* Change panel container
|
|
22
|
-
*/
|
|
23
14
|
setPanel(element: HTMLElement | string): void;
|
|
24
|
-
/**
|
|
25
|
-
* Helper for append toolbar in its place
|
|
26
|
-
*/
|
|
27
15
|
protected buildToolbar(): void;
|
|
28
16
|
registeredButtons: Set<IPluginButton>;
|
|
29
17
|
private groupToButtons;
|
|
30
18
|
getRegisteredButtonGroups(): IDictionary<string[]>;
|
|
31
|
-
/**
|
|
32
|
-
* Register button for group
|
|
33
|
-
*/
|
|
34
19
|
registerButton(btn: IPluginButton): this;
|
|
35
|
-
/**
|
|
36
|
-
* Remove button from group
|
|
37
|
-
*/
|
|
38
20
|
unregisterButton(btn: IPluginButton): this;
|
|
39
|
-
/**
|
|
40
|
-
* Prepare toolbar items and append buttons in groups
|
|
41
|
-
*/
|
|
42
21
|
private beforeToolbarBuild;
|
|
43
22
|
readonly isJodit: boolean;
|
|
44
|
-
/** @override **/
|
|
45
23
|
protected constructor(options?: Partial<IViewOptions>, isJodit?: boolean);
|
|
46
24
|
destruct(): void;
|
|
47
25
|
}
|