jodit 4.0.17 → 4.1.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/.nvmrc +1 -1
- package/CHANGELOG.md +72 -9
- package/es2015/jodit.css +3504 -3426
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +3 -3
- package/es2015/jodit.js +12106 -6608
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +3 -3
- package/es2015/plugins/debug/debug.js +14 -14
- package/es2015/plugins/debug/debug.min.js +3 -3
- package/es2015/plugins/speech-recognize/speech-recognize.css +2 -2
- package/es2015/plugins/speech-recognize/speech-recognize.js +117 -122
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +3 -3
- package/es2018/jodit.css +3504 -3426
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +3 -3
- package/es2018/jodit.js +12077 -6579
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +3 -3
- package/es2018/plugins/debug/debug.js +14 -14
- package/es2018/plugins/debug/debug.min.js +3 -3
- package/es2018/plugins/speech-recognize/speech-recognize.css +2 -2
- package/es2018/plugins/speech-recognize/speech-recognize.js +117 -122
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +3 -3
- package/es2021/jodit.css +3504 -3426
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +3 -3
- package/es2021/jodit.js +12077 -6579
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +3 -3
- package/es2021/plugins/debug/debug.js +14 -14
- package/es2021/plugins/debug/debug.min.js +3 -3
- package/es2021/plugins/speech-recognize/speech-recognize.css +2 -2
- package/es2021/plugins/speech-recognize/speech-recognize.js +117 -122
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +3 -3
- package/es2021.en/jodit.css +3504 -3426
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +3 -3
- package/es2021.en/jodit.js +11824 -6379
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +3 -3
- package/es2021.en/plugins/debug/debug.js +14 -14
- package/es2021.en/plugins/debug/debug.min.js +3 -3
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +2 -2
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +76 -81
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +3 -3
- package/es5/jodit.css +4207 -4114
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +3 -3
- package/es5/jodit.js +7619 -7277
- package/es5/jodit.min.css +5 -5
- package/es5/jodit.min.js +3 -3
- package/es5/plugins/debug/debug.js +16 -16
- package/es5/plugins/debug/debug.min.js +3 -3
- package/es5/plugins/speech-recognize/speech-recognize.css +2 -2
- package/es5/plugins/speech-recognize/speech-recognize.js +122 -127
- package/es5/plugins/speech-recognize/speech-recognize.min.js +3 -3
- package/esm/config.d.ts +6 -19
- package/esm/config.js +18 -5
- package/esm/core/async/async.js +4 -4
- package/esm/core/component/component.d.ts +2 -2
- package/esm/core/component/component.js +4 -4
- package/esm/core/component/index.d.ts +1 -1
- package/esm/core/component/index.js +1 -1
- package/esm/core/constants.d.ts +1 -0
- package/esm/core/constants.js +2 -1
- package/esm/core/create/create.d.ts +3 -2
- package/esm/core/create/create.js +5 -4
- package/esm/core/decorators/autobind/autobind.d.ts +6 -0
- package/esm/core/decorators/autobind/autobind.js +6 -0
- package/esm/core/decorators/cache/cache.d.ts +2 -2
- package/esm/core/decorators/cache/cache.js +4 -4
- package/esm/core/decorators/debounce/debounce.d.ts +1 -1
- package/esm/core/decorators/debounce/debounce.js +2 -2
- package/esm/core/decorators/index.d.ts +3 -3
- package/esm/core/decorators/index.js +3 -3
- package/esm/core/decorators/wait/wait.js +1 -1
- package/esm/core/decorators/watch/watch.js +3 -3
- package/esm/core/dom/dom.js +2 -2
- package/esm/core/dom/lazy-walker.js +1 -1
- package/esm/core/event-emitter/event-emitter.js +4 -4
- package/esm/core/event-emitter/observable.d.ts +1 -1
- package/esm/core/event-emitter/observable.js +1 -1
- package/esm/core/event-emitter/store.js +1 -1
- package/esm/core/global.d.ts +1 -1
- package/esm/core/global.js +7 -7
- package/esm/core/helpers/array/as-array.d.ts +1 -1
- package/esm/core/helpers/array/to-array.js +1 -1
- package/esm/core/helpers/checker/index.d.ts +3 -3
- package/esm/core/helpers/checker/index.js +3 -3
- package/esm/core/helpers/checker/is-imp-interface.js +1 -1
- package/esm/core/helpers/checker/is-marker.js +1 -1
- package/esm/core/helpers/checker/is-url.d.ts +1 -1
- package/esm/core/helpers/checker/is-url.js +1 -1
- package/esm/core/helpers/checker/is-view-object.d.ts +1 -1
- package/esm/core/helpers/checker/is-view-object.js +1 -1
- package/esm/core/helpers/html/apply-styles.js +2 -2
- package/esm/core/helpers/html/clean-from-word.js +1 -1
- package/esm/core/helpers/html/index.d.ts +2 -2
- package/esm/core/helpers/html/index.js +2 -2
- package/esm/core/helpers/html/safe-html.js +1 -1
- package/esm/core/helpers/html/strip-tags.d.ts +1 -1
- package/esm/core/helpers/html/strip-tags.js +2 -2
- package/esm/core/helpers/index.d.ts +1 -1
- package/esm/core/helpers/index.js +1 -1
- package/esm/core/helpers/normalize/index.d.ts +2 -2
- package/esm/core/helpers/normalize/index.js +2 -2
- package/esm/core/helpers/normalize/normalize-css-value.js +2 -2
- package/esm/core/helpers/normalize/normalize-key-aliases.js +1 -1
- package/esm/core/helpers/size/get-scroll-parent.js +1 -1
- package/esm/core/helpers/size/index.d.ts +1 -1
- package/esm/core/helpers/size/index.js +1 -1
- package/esm/core/helpers/string/i18n.js +3 -3
- package/esm/core/helpers/string/trim.js +1 -1
- package/esm/core/helpers/utils/append-script.js +1 -1
- package/esm/core/helpers/utils/attr.js +1 -1
- package/esm/core/helpers/utils/config-proto.js +3 -3
- package/esm/core/helpers/utils/css.js +2 -2
- package/esm/core/helpers/utils/data-bind.d.ts +1 -1
- package/esm/core/helpers/utils/index.d.ts +1 -1
- package/esm/core/helpers/utils/index.js +1 -1
- package/esm/core/helpers/utils/print.js +2 -2
- package/esm/core/helpers/utils/reset.js +2 -2
- package/esm/core/helpers/utils/selector.d.ts +7 -6
- package/esm/core/helpers/utils/selector.js +6 -8
- package/esm/core/helpers/utils/set.js +2 -2
- package/esm/core/helpers/utils/utils.d.ts +4 -4
- package/esm/core/helpers/utils/utils.js +2 -2
- package/esm/core/plugin/helpers/init-instance.d.ts +1 -1
- package/esm/core/plugin/helpers/init-instance.js +3 -3
- package/esm/core/plugin/helpers/load.js +2 -2
- package/esm/core/plugin/helpers/make-instance.js +1 -1
- package/esm/core/plugin/index.d.ts +1 -1
- package/esm/core/plugin/index.js +1 -1
- package/esm/core/plugin/plugin-system.js +5 -5
- package/esm/core/plugin/plugin.js +1 -1
- package/esm/core/request/ajax.d.ts +1 -1
- package/esm/core/request/ajax.js +5 -5
- package/esm/core/selection/helpers/move-node-inside-start.js +1 -1
- package/esm/core/selection/index.d.ts +1 -1
- package/esm/core/selection/index.js +1 -1
- package/esm/core/selection/selection.js +5 -5
- package/esm/core/selection/style/api/extract.js +2 -2
- package/esm/core/selection/style/api/finite-state-machine.js +3 -2
- package/esm/core/selection/style/api/get-suit-child.d.ts +1 -1
- package/esm/core/selection/style/api/get-suit-parent.d.ts +1 -1
- package/esm/core/selection/style/api/has-same-style.js +2 -2
- package/esm/core/selection/style/api/index.d.ts +5 -5
- package/esm/core/selection/style/api/index.js +5 -5
- package/esm/core/selection/style/api/is-same-attributes.js +1 -1
- package/esm/core/selection/style/api/is-suit-element.d.ts +1 -1
- package/esm/core/selection/style/api/is-suit-element.js +1 -1
- package/esm/core/selection/style/api/list/toggle-ordered-list.d.ts +1 -1
- package/esm/core/selection/style/api/list/toggle-ordered-list.js +1 -1
- package/esm/core/selection/style/api/list/wrap-list.d.ts +1 -1
- package/esm/core/selection/style/api/list/wrap-list.js +1 -1
- package/esm/core/selection/style/api/toggle-attributes.d.ts +1 -1
- package/esm/core/selection/style/api/toggle-attributes.js +6 -6
- package/esm/core/selection/style/api/wrap-unwrapped-text.d.ts +1 -1
- package/esm/core/selection/style/api/wrap.d.ts +1 -1
- package/esm/core/selection/style/api/wrap.js +1 -1
- package/esm/core/selection/style/apply-style.d.ts +1 -1
- package/esm/core/selection/style/apply-style.js +1 -1
- package/esm/core/selection/style/commit-style.d.ts +2 -2
- package/esm/core/selection/style/commit-style.js +1 -1
- package/esm/core/selection/style/transactions.d.ts +1 -1
- package/esm/core/selection/style/transactions.js +3 -4
- package/esm/core/storage/index.d.ts +1 -1
- package/esm/core/storage/index.js +1 -1
- package/esm/core/traits/dlgs.d.ts +1 -1
- package/esm/core/traits/dlgs.js +1 -1
- package/esm/core/traits/mods.d.ts +1 -1
- package/esm/core/ui/button/button/button.d.ts +4 -4
- package/esm/core/ui/button/button/button.js +8 -11
- package/esm/core/ui/button/group/group.d.ts +1 -1
- package/esm/core/ui/button/group/group.js +2 -5
- package/esm/core/ui/button/tooltip/tooltip.d.ts +1 -1
- package/esm/core/ui/button/tooltip/tooltip.js +4 -9
- package/esm/core/ui/element.d.ts +1 -1
- package/esm/core/ui/element.js +4 -4
- package/esm/core/ui/form/block/block.d.ts +1 -1
- package/esm/core/ui/form/block/block.js +2 -5
- package/esm/core/ui/form/form.d.ts +1 -1
- package/esm/core/ui/form/form.js +5 -4
- package/esm/core/ui/form/index.d.ts +1 -1
- package/esm/core/ui/form/index.js +1 -1
- package/esm/core/ui/form/inputs/area/area.d.ts +2 -2
- package/esm/core/ui/form/inputs/area/area.js +2 -5
- package/esm/core/ui/form/inputs/checkbox/checkbox.d.ts +2 -2
- package/esm/core/ui/form/inputs/checkbox/checkbox.js +2 -5
- package/esm/core/ui/form/inputs/file/file.d.ts +1 -1
- package/esm/core/ui/form/inputs/file/file.js +1 -4
- package/esm/core/ui/form/inputs/index.d.ts +2 -2
- package/esm/core/ui/form/inputs/index.js +2 -2
- package/esm/core/ui/form/inputs/input/input.d.ts +1 -1
- package/esm/core/ui/form/inputs/input/input.js +5 -8
- package/esm/core/ui/form/inputs/select/select.d.ts +1 -1
- package/esm/core/ui/form/inputs/select/select.js +1 -4
- package/esm/core/ui/group/group.d.ts +2 -3
- package/esm/core/ui/group/group.js +3 -8
- package/esm/core/ui/group/list.d.ts +2 -2
- package/esm/core/ui/group/list.js +4 -7
- package/esm/core/ui/group/separator.d.ts +0 -3
- package/esm/core/ui/group/separator.js +1 -1
- package/esm/core/ui/group/spacer.d.ts +0 -3
- package/esm/core/ui/group/spacer.js +1 -1
- package/esm/core/ui/helpers/get-strong-control-types.js +2 -2
- package/esm/core/ui/icon.js +3 -3
- package/esm/core/ui/index.d.ts +3 -3
- package/esm/core/ui/index.js +3 -3
- package/esm/core/ui/popup/popup.d.ts +1 -1
- package/esm/core/ui/popup/popup.js +4 -9
- package/esm/core/ui/progress-bar/progress-bar.d.ts +1 -1
- package/esm/core/ui/progress-bar/progress-bar.js +0 -5
- package/esm/core/view/view-with-toolbar.d.ts +5 -5
- package/esm/core/view/view-with-toolbar.js +11 -13
- package/esm/core/view/view.d.ts +6 -6
- package/esm/core/view/view.js +15 -8
- package/esm/index.d.ts +2 -7
- package/esm/index.js +11 -4
- package/esm/jodit.d.ts +8 -8
- package/esm/jodit.js +14 -14
- package/esm/languages.js +2 -2
- package/esm/modules/context-menu/context-menu.d.ts +3 -3
- package/esm/modules/context-menu/context-menu.js +4 -9
- package/esm/modules/dialog/alert.js +2 -2
- package/esm/modules/dialog/confirm.js +1 -1
- package/esm/modules/dialog/dialog.d.ts +2 -2
- package/esm/modules/dialog/dialog.js +9 -12
- package/esm/modules/dialog/index.d.ts +2 -2
- package/esm/modules/dialog/index.js +2 -2
- package/esm/modules/dialog/prompt.js +1 -1
- package/esm/modules/file-browser/builders/context-menu.d.ts +1 -1
- package/esm/modules/file-browser/builders/context-menu.js +3 -3
- package/esm/modules/file-browser/config.d.ts +3 -0
- package/esm/modules/file-browser/config.js +2 -5
- package/esm/modules/file-browser/data-provider.d.ts +1 -1
- package/esm/modules/file-browser/data-provider.js +2 -2
- package/esm/modules/file-browser/file-browser.d.ts +3 -3
- package/esm/modules/file-browser/file-browser.js +13 -16
- package/esm/modules/file-browser/listeners/native-listeners.d.ts +1 -1
- package/esm/modules/file-browser/listeners/native-listeners.js +1 -1
- package/esm/modules/file-browser/listeners/self-listeners.js +4 -4
- package/esm/modules/file-browser/ui/files/files.d.ts +1 -1
- package/esm/modules/file-browser/ui/tree/tree.d.ts +1 -1
- package/esm/modules/history/history.d.ts +1 -1
- package/esm/modules/history/history.js +3 -3
- package/esm/modules/history/snapshot.js +1 -1
- package/esm/modules/image-editor/config.js +1 -1
- package/esm/modules/image-editor/image-editor.d.ts +2 -2
- package/esm/modules/image-editor/image-editor.js +4 -9
- package/esm/modules/index.d.ts +13 -12
- package/esm/modules/index.js +13 -12
- package/esm/modules/messages/message.js +1 -1
- package/esm/modules/messages/messages.d.ts +1 -1
- package/esm/modules/messages/messages.js +1 -6
- package/esm/modules/status-bar/status-bar.d.ts +3 -3
- package/esm/modules/status-bar/status-bar.js +3 -8
- package/esm/modules/table/table.js +3 -3
- package/esm/modules/toolbar/button/button.d.ts +3 -3
- package/esm/modules/toolbar/button/button.js +9 -14
- package/esm/modules/toolbar/button/content.d.ts +1 -1
- package/esm/modules/toolbar/button/content.js +3 -6
- package/esm/modules/toolbar/button/select/select.d.ts +1 -1
- package/esm/modules/toolbar/button/select/select.js +0 -3
- package/esm/modules/toolbar/collection/collection.d.ts +4 -4
- package/esm/modules/toolbar/collection/collection.js +3 -8
- package/esm/modules/toolbar/collection/editor-collection.d.ts +1 -1
- package/esm/modules/toolbar/collection/editor-collection.js +2 -5
- package/esm/modules/toolbar/factory.js +2 -2
- package/esm/modules/uploader/config.js +1 -1
- package/esm/modules/uploader/helpers/index.d.ts +2 -2
- package/esm/modules/uploader/helpers/index.js +2 -2
- package/esm/modules/uploader/helpers/process-old-browser-drag.js +1 -1
- package/esm/modules/uploader/helpers/send.js +1 -2
- package/esm/modules/uploader/uploader.d.ts +1 -1
- package/esm/modules/uploader/uploader.js +3 -8
- package/esm/modules/widget/color-picker/color-picker.d.ts +3 -3
- package/esm/modules/widget/color-picker/color-picker.js +4 -9
- package/esm/modules/widget/file-selector/file-selector.js +2 -2
- package/esm/modules/widget/index.d.ts +1 -1
- package/esm/modules/widget/index.js +1 -1
- package/esm/modules/widget/tabs/tabs.d.ts +1 -1
- package/esm/modules/widget/tabs/tabs.js +2 -7
- package/esm/plugins/about/about.d.ts +0 -5
- package/esm/plugins/about/about.js +3 -8
- package/esm/plugins/add-new-line/add-new-line.d.ts +1 -1
- package/esm/plugins/add-new-line/add-new-line.js +2 -7
- package/esm/plugins/add-new-line/config.js +1 -1
- package/esm/plugins/ai-assistant/ai-assistant.d.ts +27 -0
- package/esm/plugins/ai-assistant/ai-assistant.js +104 -0
- package/esm/plugins/ai-assistant/ai-assistant.svg.js +1 -0
- package/esm/plugins/ai-assistant/chat-bot.svg.js +1 -0
- package/esm/plugins/ai-assistant/config.d.ts +72 -0
- package/esm/plugins/ai-assistant/config.js +94 -0
- package/esm/plugins/ai-assistant/langs/en.d.ts +9 -0
- package/esm/plugins/ai-assistant/langs/en.js +14 -0
- package/esm/plugins/ai-assistant/langs/es.d.ts +40 -0
- package/esm/plugins/ai-assistant/langs/es.js +45 -0
- package/esm/plugins/ai-assistant/langs/index.d.ts +8 -0
- package/esm/plugins/ai-assistant/langs/index.js +8 -0
- package/esm/plugins/ai-assistant/ui/ui-ai-assistant.d.ts +34 -0
- package/esm/plugins/ai-assistant/ui/ui-ai-assistant.js +141 -0
- package/esm/plugins/backspace/backspace.js +5 -5
- package/esm/plugins/backspace/cases/check-join-neighbors.js +2 -2
- package/esm/plugins/backspace/cases/check-remove-char.js +2 -2
- package/esm/plugins/backspace/cases/check-remove-empty-parent.js +1 -1
- package/esm/plugins/backspace/cases/check-remove-unbreakable-element.js +1 -1
- package/esm/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +1 -1
- package/esm/plugins/backspace/cases/check-unwrap-first-list-item.js +1 -1
- package/esm/plugins/backspace/cases/index.d.ts +1 -1
- package/esm/plugins/backspace/cases/index.js +6 -6
- package/esm/plugins/bold/bold.js +4 -4
- package/esm/plugins/class-span/class-span.js +3 -3
- package/esm/plugins/clean-html/clean-html.js +5 -5
- package/esm/plugins/clean-html/config.js +1 -1
- package/esm/plugins/clean-html/helpers/get-hash.js +1 -1
- package/esm/plugins/clean-html/helpers/remove-format/remove-format-for-collapsed-selection.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/fill-empty-paragraph.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/filters/index.d.ts +2 -2
- package/esm/plugins/clean-html/helpers/visitor/filters/index.js +2 -2
- package/esm/plugins/clean-html/helpers/visitor/filters/try-remove-node.js +1 -1
- package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +1 -1
- package/esm/plugins/clean-html/helpers/visitor/visit-node-walker.js +1 -1
- package/esm/plugins/clipboard/clipboard.js +1 -1
- package/esm/plugins/clipboard/config.js +1 -1
- package/esm/plugins/color/color.js +1 -1
- package/esm/plugins/color/config.js +3 -3
- package/esm/plugins/copy-format/copy-format.js +2 -2
- package/esm/plugins/delete/delete.js +2 -2
- package/esm/plugins/drag-and-drop/drag-and-drop.js +2 -2
- package/esm/plugins/drag-and-drop-element/drag-and-drop-element.js +3 -3
- package/esm/plugins/dtd/dtd.js +3 -3
- package/esm/plugins/enter/enter.js +5 -5
- package/esm/plugins/enter/helpers/check-br.js +2 -2
- package/esm/plugins/enter/helpers/index.d.ts +2 -2
- package/esm/plugins/enter/helpers/index.js +2 -2
- package/esm/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +1 -1
- package/esm/plugins/enter/helpers/split-fragment.js +1 -1
- package/esm/plugins/file/file.js +2 -2
- package/esm/plugins/focus/focus.js +1 -1
- package/esm/plugins/font/config.js +4 -4
- package/esm/plugins/font/font.js +1 -1
- package/esm/plugins/format-block/config.js +2 -2
- package/esm/plugins/fullsize/config.d.ts +0 -3
- package/esm/plugins/fullsize/config.js +1 -4
- package/esm/plugins/fullsize/fullsize.d.ts +1 -1
- package/esm/plugins/fullsize/fullsize.js +2 -7
- package/esm/plugins/hotkeys/hotkeys.js +2 -2
- package/esm/plugins/hr/hr.js +1 -1
- package/esm/plugins/iframe/iframe.js +2 -2
- package/esm/plugins/image/image.js +3 -3
- package/esm/plugins/image-processor/image-processor.js +3 -3
- package/esm/plugins/image-properties/image-properties.d.ts +1 -1
- package/esm/plugins/image-properties/image-properties.js +6 -11
- package/esm/plugins/indent/config.js +2 -2
- package/esm/plugins/indent/indent.js +1 -1
- package/esm/plugins/index.d.ts +1 -0
- package/esm/plugins/inline-popup/config/config.js +9 -11
- package/esm/plugins/inline-popup/config/items/a.d.ts +1 -1
- package/esm/plugins/inline-popup/config/items/cells.d.ts +1 -1
- package/esm/plugins/inline-popup/config/items/img.d.ts +1 -1
- package/esm/plugins/inline-popup/config/items/img.js +1 -1
- package/esm/plugins/inline-popup/inline-popup.d.ts +1 -1
- package/esm/plugins/inline-popup/inline-popup.js +6 -11
- package/esm/plugins/justify/justify.js +3 -3
- package/esm/plugins/key-arrow-outside/key-arrow-outside.js +2 -2
- package/esm/plugins/limit/limit.js +1 -1
- package/esm/plugins/line-height/config.js +1 -1
- package/esm/plugins/line-height/line-height.js +3 -3
- package/esm/plugins/link/config.d.ts +1 -1
- package/esm/plugins/link/config.js +2 -2
- package/esm/plugins/link/link.js +2 -2
- package/esm/plugins/link/template.js +1 -1
- package/esm/plugins/media/media.js +1 -1
- package/esm/plugins/mobile/config.d.ts +3 -0
- package/esm/plugins/mobile/config.js +2 -5
- package/esm/plugins/mobile/mobile.js +1 -1
- package/esm/plugins/ordered-list/config.js +1 -1
- package/esm/plugins/ordered-list/ordered-list.js +1 -1
- package/esm/plugins/paste/config.js +3 -1
- package/esm/plugins/paste/helpers.js +2 -2
- package/esm/plugins/paste/paste.js +4 -4
- package/esm/plugins/paste-from-word/config.js +1 -1
- package/esm/plugins/paste-from-word/paste-from-word.d.ts +1 -1
- package/esm/plugins/paste-from-word/paste-from-word.js +3 -3
- package/esm/plugins/paste-storage/paste-storage.d.ts +1 -6
- package/esm/plugins/paste-storage/paste-storage.js +2 -7
- package/esm/plugins/placeholder/placeholder.d.ts +1 -1
- package/esm/plugins/placeholder/placeholder.js +5 -10
- package/esm/plugins/preview/preview.d.ts +1 -1
- package/esm/plugins/preview/preview.js +1 -6
- package/esm/plugins/print/print.js +4 -5
- package/esm/plugins/redo-undo/redo-undo.js +2 -2
- package/esm/plugins/resize-cells/resize-cells.d.ts +1 -1
- package/esm/plugins/resize-cells/resize-cells.js +2 -7
- package/esm/plugins/resize-handler/resize-handler.js +3 -3
- package/esm/plugins/resizer/resizer.d.ts +1 -1
- package/esm/plugins/resizer/resizer.js +3 -9
- package/esm/plugins/search/config.js +2 -2
- package/esm/plugins/search/helpers/index.d.ts +1 -1
- package/esm/plugins/search/helpers/index.js +1 -1
- package/esm/plugins/search/search.d.ts +1 -1
- package/esm/plugins/search/search.js +6 -6
- package/esm/plugins/search/ui/search.d.ts +1 -1
- package/esm/plugins/search/ui/search.js +2 -5
- package/esm/plugins/select/select.js +3 -3
- package/esm/plugins/select-cells/select-cells.js +4 -4
- package/esm/plugins/size/config.js +1 -1
- package/esm/plugins/size/size.d.ts +1 -1
- package/esm/plugins/size/size.js +2 -7
- package/esm/plugins/source/config.js +1 -1
- package/esm/plugins/source/editor/engines/area.js +1 -1
- package/esm/plugins/source/editor/engines/index.d.ts +1 -1
- package/esm/plugins/source/editor/engines/index.js +1 -1
- package/esm/plugins/source/source.d.ts +1 -1
- package/esm/plugins/source/source.js +4 -9
- package/esm/plugins/speech-recognize/config.js +3 -3
- package/esm/plugins/speech-recognize/helpers/recognize-manager.d.ts +1 -1
- package/esm/plugins/speech-recognize/helpers/recognize-manager.js +2 -2
- package/esm/plugins/speech-recognize/speech-recognize.d.ts +1 -1
- package/esm/plugins/speech-recognize/speech-recognize.js +5 -10
- package/esm/plugins/spellcheck/config.js +1 -1
- package/esm/plugins/spellcheck/spellcheck.js +3 -3
- package/esm/plugins/stat/stat.js +1 -1
- package/esm/plugins/sticky/sticky.d.ts +1 -1
- package/esm/plugins/sticky/sticky.js +3 -8
- package/esm/plugins/symbols/config.js +1 -1
- package/esm/plugins/symbols/symbols.d.ts +1 -1
- package/esm/plugins/symbols/symbols.js +3 -8
- package/esm/plugins/tab/tab.js +3 -3
- package/esm/plugins/table/config.js +2 -2
- package/esm/plugins/table/table.d.ts +1 -1
- package/esm/plugins/table/table.js +0 -5
- package/esm/plugins/table-keyboard-navigation/table-keyboard-navigation.js +1 -1
- package/esm/plugins/video/config.js +3 -3
- package/esm/plugins/wrap-nodes/config.d.ts +1 -1
- package/esm/plugins/wrap-nodes/wrap-nodes.js +3 -3
- package/esm/plugins/xpath/xpath.d.ts +1 -6
- package/esm/plugins/xpath/xpath.js +4 -9
- package/esm/polyfills.d.ts +10 -0
- package/esm/types/view.d.ts +1 -1
- package/package.json +2 -2
- package/types/config.d.ts +6 -19
- package/types/core/component/component.d.ts +2 -2
- package/types/core/component/index.d.ts +1 -1
- package/types/core/constants.d.ts +1 -0
- package/types/core/create/create.d.ts +3 -2
- package/types/core/decorators/autobind/autobind.d.ts +6 -0
- package/types/core/decorators/cache/cache.d.ts +2 -2
- package/types/core/decorators/debounce/debounce.d.ts +1 -1
- package/types/core/decorators/index.d.ts +3 -3
- package/types/core/event-emitter/observable.d.ts +1 -1
- package/types/core/global.d.ts +1 -1
- package/types/core/helpers/array/as-array.d.ts +1 -1
- package/types/core/helpers/checker/index.d.ts +3 -3
- package/types/core/helpers/checker/is-url.d.ts +1 -1
- package/types/core/helpers/checker/is-view-object.d.ts +1 -1
- package/types/core/helpers/html/index.d.ts +2 -2
- package/types/core/helpers/html/strip-tags.d.ts +1 -1
- package/types/core/helpers/index.d.ts +1 -1
- package/types/core/helpers/normalize/index.d.ts +2 -2
- package/types/core/helpers/size/index.d.ts +1 -1
- package/types/core/helpers/utils/data-bind.d.ts +1 -1
- package/types/core/helpers/utils/index.d.ts +1 -1
- package/types/core/helpers/utils/selector.d.ts +7 -6
- package/types/core/helpers/utils/utils.d.ts +4 -4
- package/types/core/plugin/helpers/init-instance.d.ts +1 -1
- package/types/core/plugin/index.d.ts +1 -1
- package/types/core/request/ajax.d.ts +1 -1
- package/types/core/selection/index.d.ts +1 -1
- package/types/core/selection/style/api/get-suit-child.d.ts +1 -1
- package/types/core/selection/style/api/get-suit-parent.d.ts +1 -1
- package/types/core/selection/style/api/index.d.ts +5 -5
- package/types/core/selection/style/api/is-suit-element.d.ts +1 -1
- package/types/core/selection/style/api/list/toggle-ordered-list.d.ts +1 -1
- package/types/core/selection/style/api/list/wrap-list.d.ts +1 -1
- package/types/core/selection/style/api/toggle-attributes.d.ts +1 -1
- package/types/core/selection/style/api/wrap-unwrapped-text.d.ts +1 -1
- package/types/core/selection/style/api/wrap.d.ts +1 -1
- package/types/core/selection/style/apply-style.d.ts +1 -1
- package/types/core/selection/style/commit-style.d.ts +2 -2
- package/types/core/selection/style/transactions.d.ts +1 -1
- package/types/core/storage/index.d.ts +1 -1
- package/types/core/traits/dlgs.d.ts +1 -1
- package/types/core/traits/mods.d.ts +1 -1
- package/types/core/ui/button/button/button.d.ts +4 -4
- package/types/core/ui/button/group/group.d.ts +1 -1
- package/types/core/ui/button/tooltip/tooltip.d.ts +1 -1
- package/types/core/ui/element.d.ts +1 -1
- package/types/core/ui/form/block/block.d.ts +1 -1
- package/types/core/ui/form/form.d.ts +1 -1
- package/types/core/ui/form/index.d.ts +1 -1
- package/types/core/ui/form/inputs/area/area.d.ts +2 -2
- package/types/core/ui/form/inputs/checkbox/checkbox.d.ts +2 -2
- package/types/core/ui/form/inputs/file/file.d.ts +1 -1
- package/types/core/ui/form/inputs/index.d.ts +2 -2
- package/types/core/ui/form/inputs/input/input.d.ts +1 -1
- package/types/core/ui/form/inputs/select/select.d.ts +1 -1
- package/types/core/ui/group/group.d.ts +2 -3
- package/types/core/ui/group/list.d.ts +2 -2
- package/types/core/ui/group/separator.d.ts +0 -3
- package/types/core/ui/group/spacer.d.ts +0 -3
- package/types/core/ui/index.d.ts +3 -3
- package/types/core/ui/popup/popup.d.ts +1 -1
- package/types/core/ui/progress-bar/progress-bar.d.ts +1 -1
- package/types/core/view/view-with-toolbar.d.ts +5 -5
- package/types/core/view/view.d.ts +6 -6
- package/types/index.d.ts +2 -7
- package/types/jodit.d.ts +8 -8
- package/types/modules/context-menu/context-menu.d.ts +3 -3
- package/types/modules/dialog/dialog.d.ts +2 -2
- package/types/modules/dialog/index.d.ts +2 -2
- package/types/modules/file-browser/builders/context-menu.d.ts +1 -1
- package/types/modules/file-browser/config.d.ts +3 -0
- package/types/modules/file-browser/data-provider.d.ts +1 -1
- package/types/modules/file-browser/file-browser.d.ts +3 -3
- package/types/modules/file-browser/listeners/native-listeners.d.ts +1 -1
- package/types/modules/file-browser/ui/files/files.d.ts +1 -1
- package/types/modules/file-browser/ui/tree/tree.d.ts +1 -1
- package/types/modules/history/history.d.ts +1 -1
- package/types/modules/image-editor/image-editor.d.ts +2 -2
- package/types/modules/index.d.ts +13 -12
- package/types/modules/messages/messages.d.ts +1 -1
- package/types/modules/status-bar/status-bar.d.ts +3 -3
- package/types/modules/toolbar/button/button.d.ts +3 -3
- package/types/modules/toolbar/button/content.d.ts +1 -1
- package/types/modules/toolbar/button/select/select.d.ts +1 -1
- package/types/modules/toolbar/collection/collection.d.ts +4 -4
- package/types/modules/toolbar/collection/editor-collection.d.ts +1 -1
- package/types/modules/uploader/helpers/index.d.ts +2 -2
- package/types/modules/uploader/uploader.d.ts +1 -1
- package/types/modules/widget/color-picker/color-picker.d.ts +3 -3
- package/types/modules/widget/index.d.ts +1 -1
- package/types/modules/widget/tabs/tabs.d.ts +1 -1
- package/types/plugins/about/about.d.ts +0 -5
- package/types/plugins/add-new-line/add-new-line.d.ts +1 -1
- package/types/plugins/ai-assistant/ai-assistant.d.ts +27 -0
- package/types/plugins/ai-assistant/config.d.ts +72 -0
- package/types/plugins/ai-assistant/langs/en.d.ts +9 -0
- package/types/plugins/ai-assistant/langs/es.d.ts +40 -0
- package/types/plugins/ai-assistant/langs/index.d.ts +8 -0
- package/types/plugins/ai-assistant/ui/ui-ai-assistant.d.ts +34 -0
- package/types/plugins/backspace/cases/check-unwrap-first-list-item.d.ts +1 -1
- package/types/plugins/backspace/cases/index.d.ts +1 -1
- package/types/plugins/clean-html/helpers/visitor/filters/index.d.ts +2 -2
- package/types/plugins/clean-html/helpers/visitor/visit-node-walker.d.ts +1 -1
- package/types/plugins/enter/helpers/index.d.ts +2 -2
- package/types/plugins/enter/helpers/move-cursor-out-from-specal-tags.d.ts +1 -1
- package/types/plugins/fullsize/config.d.ts +0 -3
- package/types/plugins/fullsize/fullsize.d.ts +1 -1
- package/types/plugins/image-properties/image-properties.d.ts +1 -1
- package/types/plugins/index.d.ts +1 -0
- package/types/plugins/inline-popup/config/items/a.d.ts +1 -1
- package/types/plugins/inline-popup/config/items/cells.d.ts +1 -1
- package/types/plugins/inline-popup/config/items/img.d.ts +1 -1
- package/types/plugins/inline-popup/inline-popup.d.ts +1 -1
- package/types/plugins/link/config.d.ts +1 -1
- package/types/plugins/mobile/config.d.ts +3 -0
- package/types/plugins/paste-from-word/paste-from-word.d.ts +1 -1
- package/types/plugins/paste-storage/paste-storage.d.ts +1 -6
- package/types/plugins/placeholder/placeholder.d.ts +1 -1
- package/types/plugins/preview/preview.d.ts +1 -1
- package/types/plugins/resize-cells/resize-cells.d.ts +1 -1
- package/types/plugins/resizer/resizer.d.ts +1 -1
- package/types/plugins/search/helpers/index.d.ts +1 -1
- package/types/plugins/search/search.d.ts +1 -1
- package/types/plugins/search/ui/search.d.ts +1 -1
- package/types/plugins/size/size.d.ts +1 -1
- package/types/plugins/source/editor/engines/index.d.ts +1 -1
- package/types/plugins/source/source.d.ts +1 -1
- package/types/plugins/speech-recognize/helpers/recognize-manager.d.ts +1 -1
- package/types/plugins/speech-recognize/speech-recognize.d.ts +1 -1
- package/types/plugins/sticky/sticky.d.ts +1 -1
- package/types/plugins/symbols/symbols.d.ts +1 -1
- package/types/plugins/table/table.d.ts +1 -1
- package/types/plugins/wrap-nodes/config.d.ts +1 -1
- package/types/plugins/xpath/xpath.d.ts +1 -6
- package/types/polyfills.d.ts +10 -0
- package/types/types/view.d.ts +1 -1
|
@@ -13,11 +13,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
|
+
import { IS_PROD } from "jodit/esm/core/constants.js";
|
|
17
|
+
import { autobind } from "jodit/esm/core/decorators/index.js";
|
|
16
18
|
import { ConfigProto, error, isFunction, normalizeRelativePath, set } from "jodit/esm/core/helpers/index.js";
|
|
17
19
|
import { Ajax } from "jodit/esm/core/request/index.js";
|
|
18
|
-
import { autobind } from "jodit/esm/core/decorators/index.js";
|
|
19
20
|
import { FileBrowserItem } from "jodit/esm/modules/file-browser/builders/item.js";
|
|
20
|
-
import { IS_PROD } from "jodit/esm/core/constants.js";
|
|
21
21
|
export const DEFAULT_SOURCE_NAME = 'default';
|
|
22
22
|
const possibleRules = new Set([
|
|
23
23
|
'allowFiles',
|
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module modules/file-browser
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
|
-
import type { IFileBrowser, IFileBrowserCallBackData, IFileBrowserOptions, IFileBrowserState, IFileBrowserDataProvider, IStorage, IUploader, CanUndef } from "jodit/esm/types";
|
|
11
|
-
import { FileBrowserFiles, FileBrowserTree } from "./ui";
|
|
9
|
+
import type { CanUndef, IFileBrowser, IFileBrowserCallBackData, IFileBrowserDataProvider, IFileBrowserOptions, IFileBrowserState, IStorage, IUploader } from "jodit/esm/types";
|
|
12
10
|
import { Dlgs } from "jodit/esm/core/traits/dlgs";
|
|
13
11
|
import { ViewWithToolbar } from "jodit/esm/core/view/view-with-toolbar";
|
|
14
12
|
import "./config";
|
|
13
|
+
import { FileBrowserFiles, FileBrowserTree } from "./ui";
|
|
14
|
+
|
|
15
15
|
export interface FileBrowser extends Dlgs {
|
|
16
16
|
}
|
|
17
17
|
export declare class FileBrowser extends ViewWithToolbar implements IFileBrowser, Dlgs {
|
|
@@ -13,28 +13,25 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
* @module modules/file-browser
|
|
18
|
-
*/
|
|
19
|
-
import { Config } from "jodit/esm/config.js";
|
|
16
|
+
import { STATUSES } from "jodit/esm/core/component/index.js";
|
|
20
17
|
import * as consts from "jodit/esm/core/constants.js";
|
|
21
|
-
import {
|
|
22
|
-
import { error, isFunction, isString, ConfigProto, trim, isAbort } from "jodit/esm/core/helpers/index.js";
|
|
23
|
-
import { makeDataProvider } from "./factories";
|
|
24
|
-
import { stateListeners } from "./listeners/state-listeners";
|
|
25
|
-
import { nativeListeners } from "./listeners/native-listeners";
|
|
26
|
-
import { selfListeners } from "./listeners/self-listeners";
|
|
27
|
-
import { DEFAULT_SOURCE_NAME } from "./data-provider";
|
|
18
|
+
import { IS_PROD } from "jodit/esm/core/constants.js";
|
|
28
19
|
import { autobind, cache, derive } from "jodit/esm/core/decorators/index.js";
|
|
29
|
-
import { FileBrowserFiles, FileBrowserTree } from "./ui";
|
|
30
20
|
import { observable } from "jodit/esm/core/event-emitter/index.js";
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { STATUSES } from "jodit/esm/core/component/index.js";
|
|
21
|
+
import { ConfigProto, error, isAbort, isFunction, isString, trim } from "jodit/esm/core/helpers/index.js";
|
|
22
|
+
import { Storage } from "jodit/esm/core/storage/index.js";
|
|
34
23
|
import { Dlgs } from "jodit/esm/core/traits/dlgs.js";
|
|
35
24
|
import { ViewWithToolbar } from "jodit/esm/core/view/view-with-toolbar.js";
|
|
36
25
|
import "./config";
|
|
37
|
-
import {
|
|
26
|
+
import { loadItems } from "./fetch/load-items";
|
|
27
|
+
import { loadTree } from "./fetch/load-tree";
|
|
28
|
+
import { nativeListeners } from "./listeners/native-listeners";
|
|
29
|
+
import { selfListeners } from "./listeners/self-listeners";
|
|
30
|
+
import { stateListeners } from "./listeners/state-listeners";
|
|
31
|
+
import { DEFAULT_SOURCE_NAME } from "./data-provider";
|
|
32
|
+
import { makeDataProvider } from "./factories";
|
|
33
|
+
import { FileBrowserFiles, FileBrowserTree } from "./ui";
|
|
34
|
+
import { Config } from "jodit/esm/config.js";
|
|
38
35
|
let FileBrowser = class FileBrowser extends ViewWithToolbar {
|
|
39
36
|
/** @override */
|
|
40
37
|
className() {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module modules/file-browser
|
|
8
8
|
*/
|
|
9
|
-
import type { HTMLTagNames,
|
|
9
|
+
import type { HTMLTagNames, IDictionary, IFileBrowser, IFileBrowserItem, Nullable } from "jodit/esm/types";
|
|
10
10
|
/**
|
|
11
11
|
* @private
|
|
12
12
|
*/
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { ctrlKey, attr } from "jodit/esm/core/helpers/index.js";
|
|
7
6
|
import { Dom } from "jodit/esm/core/dom/index.js";
|
|
7
|
+
import { attr, ctrlKey } from "jodit/esm/core/helpers/index.js";
|
|
8
8
|
import contextMenu from "jodit/esm/modules/file-browser/builders/context-menu.js";
|
|
9
9
|
import { elementsMap } from "jodit/esm/modules/file-browser/builders/elements-map.js";
|
|
10
10
|
import { loadTree } from "jodit/esm/modules/file-browser/fetch/load-tree.js";
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { isValidName } from "jodit/esm/core/helpers/checker/index.js";
|
|
7
6
|
import { normalizePath } from "jodit/esm/core/helpers/index.js";
|
|
8
|
-
import {
|
|
7
|
+
import { isValidName } from "jodit/esm/core/helpers/checker/index.js";
|
|
9
8
|
import { DEFAULT_SOURCE_NAME } from "jodit/esm/modules/file-browser/data-provider.js";
|
|
10
|
-
import { loadTree } from "jodit/esm/modules/file-browser/fetch/load-tree.js";
|
|
11
|
-
import { loadItems } from "jodit/esm/modules/file-browser/fetch/load-items.js";
|
|
12
9
|
import { deleteFile } from "jodit/esm/modules/file-browser/fetch/delete-file.js";
|
|
10
|
+
import { loadItems } from "jodit/esm/modules/file-browser/fetch/load-items.js";
|
|
11
|
+
import { loadTree } from "jodit/esm/modules/file-browser/fetch/load-tree.js";
|
|
12
|
+
import { openImageEditor } from "jodit/esm/modules/image-editor/image-editor.js";
|
|
13
13
|
/**
|
|
14
14
|
* @private
|
|
15
15
|
*/
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
6
|
import { UIGroup } from "jodit/esm/core/ui";
|
|
7
|
+
|
|
8
8
|
export declare class FileBrowserFiles extends UIGroup {
|
|
9
9
|
className(): string;
|
|
10
10
|
}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
6
|
import { UIGroup } from "jodit/esm/core/ui";
|
|
7
|
+
|
|
8
8
|
export declare class FileBrowserTree extends UIGroup {
|
|
9
9
|
className(): string;
|
|
10
10
|
}
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules/history
|
|
10
10
|
*/
|
|
11
|
-
import type {
|
|
11
|
+
import type { IDestructible, IHistory, IJodit, ISnapshot, SnapshotType } from "jodit/esm/types";
|
|
12
12
|
import { ViewComponent } from "jodit/esm/core/component";
|
|
13
13
|
import { Snapshot } from "./snapshot";
|
|
14
14
|
import { Stack } from "./stack";
|
|
@@ -13,12 +13,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
|
-
import { Config } from "jodit/esm/config.js";
|
|
17
16
|
import { ViewComponent } from "jodit/esm/core/component/index.js";
|
|
17
|
+
import { debounce } from "jodit/esm/core/decorators/index.js";
|
|
18
|
+
import { Command } from "./command";
|
|
18
19
|
import { Snapshot } from "./snapshot";
|
|
19
20
|
import { Stack } from "./stack";
|
|
20
|
-
import {
|
|
21
|
-
import { debounce } from "jodit/esm/core/decorators/index.js";
|
|
21
|
+
import { Config } from "jodit/esm/config.js";
|
|
22
22
|
Config.prototype.history = {
|
|
23
23
|
enable: true,
|
|
24
24
|
maxHistoryLength: Infinity,
|
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
6
|
import { ViewComponent } from "jodit/esm/core/component/index.js";
|
|
7
|
-
import { Dom } from "jodit/esm/core/dom/index.js";
|
|
8
7
|
import { IS_PROD, TEMP_ATTR } from "jodit/esm/core/constants.js";
|
|
8
|
+
import { Dom } from "jodit/esm/core/dom/index.js";
|
|
9
9
|
/**
|
|
10
10
|
* Module for creating snapshot of editor which includes html content and the current selection
|
|
11
11
|
*/
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
import { Config } from "jodit/esm/config.js";
|
|
7
6
|
import { Icon } from "jodit/esm/core/ui/icon.js";
|
|
8
7
|
import cropIcon from "./icons/crop.svg.js";
|
|
9
8
|
import resizeIcon from "./icons/resize.svg.js";
|
|
9
|
+
import { Config } from "jodit/esm/config.js";
|
|
10
10
|
Config.prototype.imageeditor = {
|
|
11
11
|
min_width: 20,
|
|
12
12
|
min_height: 20,
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules/image-editor
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
import type { ImageEditorActionBox, ImageEditorOptions, IFileBrowserDataProvider, IDialog, IViewWithToolbar, IDlgs } from "jodit/esm/types";
|
|
11
|
+
import type { IDialog, IDlgs, IFileBrowserDataProvider, ImageEditorActionBox, ImageEditorOptions, IViewWithToolbar } from "jodit/esm/types";
|
|
13
12
|
import { ViewComponent } from "jodit/esm/core/component";
|
|
14
13
|
import "./config";
|
|
14
|
+
|
|
15
15
|
interface onSave {
|
|
16
16
|
(
|
|
17
17
|
/**
|
|
@@ -14,19 +14,14 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
16
|
var ImageEditor_1;
|
|
17
|
-
/**
|
|
18
|
-
* [[include:modules/image-editor/README.md]]
|
|
19
|
-
* @packageDocumentation
|
|
20
|
-
* @module modules/image-editor
|
|
21
|
-
*/
|
|
22
|
-
import { Config } from "jodit/esm/config.js";
|
|
23
17
|
import { ViewComponent } from "jodit/esm/core/component/index.js";
|
|
24
|
-
import {
|
|
18
|
+
import { autobind, component, debounce, throttle } from "jodit/esm/core/decorators/index.js";
|
|
25
19
|
import { Dom } from "jodit/esm/core/dom/index.js";
|
|
20
|
+
import { $$, attr, call, css, refs, toArray, trim } from "jodit/esm/core/helpers/index.js";
|
|
26
21
|
import { Button } from "jodit/esm/core/ui/button/index.js";
|
|
27
|
-
import { form } from "./templates/form";
|
|
28
|
-
import { component, debounce, throttle, autobind } from "jodit/esm/core/decorators/index.js";
|
|
29
22
|
import "./config";
|
|
23
|
+
import { form } from "./templates/form";
|
|
24
|
+
import { Config } from "jodit/esm/config.js";
|
|
30
25
|
const jie = 'jodit-image-editor';
|
|
31
26
|
const TABS = {
|
|
32
27
|
resize: 'resize',
|
package/esm/modules/index.d.ts
CHANGED
|
@@ -8,30 +8,31 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
export { Component, ViewComponent, STATUSES } from "jodit/esm/core/component";
|
|
11
|
+
import { Component, STATUSES, ViewComponent } from "jodit/esm/core/component";
|
|
12
|
+
import * as Helpers from "jodit/esm/core/helpers";
|
|
13
|
+
export { Component, STATUSES, ViewComponent };
|
|
15
14
|
export { ContextMenu } from "./context-menu/context-menu";
|
|
16
15
|
export * from "./dialog/";
|
|
16
|
+
export * from "./file-browser";
|
|
17
|
+
export { Async } from "jodit/esm/core/async";
|
|
18
|
+
export { Create } from "jodit/esm/core/create";
|
|
17
19
|
export { Dom, LazyWalker } from "jodit/esm/core/dom";
|
|
20
|
+
export * from "jodit/esm/core/event-emitter";
|
|
18
21
|
export { Plugin } from "jodit/esm/core/plugin";
|
|
19
|
-
export
|
|
22
|
+
export * from "jodit/esm/core/request";
|
|
20
23
|
export * from "jodit/esm/core/ui";
|
|
21
24
|
export { View } from "jodit/esm/core/view/view";
|
|
22
25
|
export { ViewWithToolbar } from "jodit/esm/core/view/view-with-toolbar";
|
|
23
|
-
export * from "./file-browser";
|
|
24
|
-
import * as Helpers from "jodit/esm/core/helpers/";
|
|
25
26
|
export { Helpers };
|
|
26
|
-
export { ImageEditor } from "./image-editor/image-editor";
|
|
27
27
|
export { History } from "./history/history";
|
|
28
28
|
export { Snapshot } from "./history/snapshot";
|
|
29
|
-
export {
|
|
29
|
+
export { ImageEditor } from "./image-editor/image-editor";
|
|
30
|
+
export { UIMessages } from "./messages/messages";
|
|
30
31
|
export { StatusBar } from "./status-bar/status-bar";
|
|
31
32
|
export { Table } from "./table/table";
|
|
32
|
-
export { ToolbarEditorCollection } from "./toolbar/collection/editor-collection";
|
|
33
|
-
export { ToolbarCollection } from "./toolbar/collection/collection";
|
|
34
33
|
export * from "./toolbar/button";
|
|
34
|
+
export { ToolbarCollection } from "./toolbar/collection/collection";
|
|
35
|
+
export { ToolbarEditorCollection } from "./toolbar/collection/editor-collection";
|
|
35
36
|
export { Uploader } from "./uploader/uploader";
|
|
36
|
-
export { UIMessages } from "./messages/messages";
|
|
37
37
|
export { PluginSystem } from "jodit/esm/core/plugin/plugin-system";
|
|
38
|
+
export { CommitStyle, Selection } from "jodit/esm/core/selection";
|
package/esm/modules/index.js
CHANGED
|
@@ -8,30 +8,31 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export
|
|
14
|
-
export { Component, ViewComponent, STATUSES } from "jodit/esm/core/component/index.js";
|
|
11
|
+
import { Component, STATUSES, ViewComponent } from "jodit/esm/core/component/index.js";
|
|
12
|
+
import * as Helpers from "jodit/esm/core/helpers/index.js";
|
|
13
|
+
export { Component, STATUSES, ViewComponent };
|
|
15
14
|
export { ContextMenu } from "./context-menu/context-menu";
|
|
16
15
|
export * from "./dialog/";
|
|
16
|
+
export * from "./file-browser";
|
|
17
|
+
export { Async } from "jodit/esm/core/async/index.js";
|
|
18
|
+
export { Create } from "jodit/esm/core/create/index.js";
|
|
17
19
|
export { Dom, LazyWalker } from "jodit/esm/core/dom/index.js";
|
|
20
|
+
export * from "jodit/esm/core/event-emitter/index.js";
|
|
18
21
|
export { Plugin } from "jodit/esm/core/plugin/index.js";
|
|
19
|
-
export
|
|
22
|
+
export * from "jodit/esm/core/request/index.js";
|
|
20
23
|
export * from "jodit/esm/core/ui/index.js";
|
|
21
24
|
export { View } from "jodit/esm/core/view/view.js";
|
|
22
25
|
export { ViewWithToolbar } from "jodit/esm/core/view/view-with-toolbar.js";
|
|
23
|
-
export * from "./file-browser";
|
|
24
|
-
import * as Helpers from "jodit/esm/core/helpers/index.js";
|
|
25
26
|
export { Helpers };
|
|
26
|
-
export { ImageEditor } from "./image-editor/image-editor";
|
|
27
27
|
export { History } from "./history/history";
|
|
28
28
|
export { Snapshot } from "./history/snapshot";
|
|
29
|
-
export {
|
|
29
|
+
export { ImageEditor } from "./image-editor/image-editor";
|
|
30
|
+
export { UIMessages } from "./messages/messages";
|
|
30
31
|
export { StatusBar } from "./status-bar/status-bar";
|
|
31
32
|
export { Table } from "./table/table";
|
|
32
|
-
export { ToolbarEditorCollection } from "./toolbar/collection/editor-collection";
|
|
33
|
-
export { ToolbarCollection } from "./toolbar/collection/collection";
|
|
34
33
|
export * from "./toolbar/button";
|
|
34
|
+
export { ToolbarCollection } from "./toolbar/collection/collection";
|
|
35
|
+
export { ToolbarEditorCollection } from "./toolbar/collection/editor-collection";
|
|
35
36
|
export { Uploader } from "./uploader/uploader";
|
|
36
|
-
export { UIMessages } from "./messages/messages";
|
|
37
37
|
export { PluginSystem } from "jodit/esm/core/plugin/plugin-system.js";
|
|
38
|
+
export { CommitStyle, Selection } from "jodit/esm/core/selection/index.js";
|
|
@@ -13,8 +13,8 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
|
-
import { UIElement } from "jodit/esm/core/ui/index.js";
|
|
17
16
|
import { component } from "jodit/esm/core/decorators/component/component.js";
|
|
17
|
+
import { UIElement } from "jodit/esm/core/ui/index.js";
|
|
18
18
|
let UIMessage = class UIMessage extends UIElement {
|
|
19
19
|
className() {
|
|
20
20
|
return 'UIMessage';
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules/messages
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
11
|
import type { IMessages, IViewBased, MessageVariant } from "jodit/esm/types";
|
|
13
12
|
import { UIGroup } from "jodit/esm/core/ui/group/group";
|
|
13
|
+
|
|
14
14
|
/**
|
|
15
15
|
* Plugin display pop-up messages in the lower right corner of the editor
|
|
16
16
|
*/
|
|
@@ -13,14 +13,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
* [[include:modules/messages/README.md]]
|
|
18
|
-
* @packageDocumentation
|
|
19
|
-
* @module modules/messages
|
|
20
|
-
*/
|
|
16
|
+
import { component } from "jodit/esm/core/decorators/component/component.js";
|
|
21
17
|
import { css } from "jodit/esm/core/helpers/utils/css.js";
|
|
22
18
|
import { UIGroup } from "jodit/esm/core/ui/group/group.js";
|
|
23
|
-
import { component } from "jodit/esm/core/decorators/component/component.js";
|
|
24
19
|
import { UIMessage } from "jodit/esm/modules/messages/message.js";
|
|
25
20
|
/**
|
|
26
21
|
* Plugin display pop-up messages in the lower right corner of the editor
|
|
@@ -8,11 +8,11 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules/status-bar
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
import type { IJodit, IStatusBar, IDictionary, ModType } from "jodit/esm/types";
|
|
11
|
+
import type { IDictionary, IJodit, IStatusBar, ModType } from "jodit/esm/types";
|
|
13
12
|
import { ViewComponent } from "jodit/esm/core/component";
|
|
14
|
-
import { Mods } from "jodit/esm/core/traits/mods";
|
|
15
13
|
import { Elms } from "jodit/esm/core/traits/elms";
|
|
14
|
+
import { Mods } from "jodit/esm/core/traits/mods";
|
|
15
|
+
|
|
16
16
|
export interface StatusBar extends Mods, Elms {
|
|
17
17
|
}
|
|
18
18
|
export declare class StatusBar extends ViewComponent<IJodit> implements IStatusBar {
|
|
@@ -13,16 +13,11 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* @packageDocumentation
|
|
19
|
-
* @module modules/status-bar
|
|
20
|
-
*/
|
|
21
|
-
import { ViewComponent, STATUSES } from "jodit/esm/core/component/index.js";
|
|
16
|
+
import { STATUSES, ViewComponent } from "jodit/esm/core/component/index.js";
|
|
17
|
+
import { component, derive } from "jodit/esm/core/decorators/index.js";
|
|
22
18
|
import { Dom } from "jodit/esm/core/dom/dom.js";
|
|
23
|
-
import { Mods } from "jodit/esm/core/traits/mods.js";
|
|
24
19
|
import { Elms } from "jodit/esm/core/traits/elms.js";
|
|
25
|
-
import {
|
|
20
|
+
import { Mods } from "jodit/esm/core/traits/mods.js";
|
|
26
21
|
let StatusBar = class StatusBar extends ViewComponent {
|
|
27
22
|
className() {
|
|
28
23
|
return 'StatusBar';
|
|
@@ -13,12 +13,12 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
|
+
import { ViewComponent } from "jodit/esm/core/component/index.js";
|
|
16
17
|
import * as consts from "jodit/esm/core/constants.js";
|
|
18
|
+
import { debounce } from "jodit/esm/core/decorators/index.js";
|
|
17
19
|
import { Dom } from "jodit/esm/core/dom/index.js";
|
|
18
|
-
import { $$, attr, cssPath, isNumber, toArray, trim } from "jodit/esm/core/helpers/index.js";
|
|
19
|
-
import { ViewComponent } from "jodit/esm/core/component/index.js";
|
|
20
20
|
import { getContainer } from "jodit/esm/core/global.js";
|
|
21
|
-
import {
|
|
21
|
+
import { $$, attr, cssPath, isNumber, toArray, trim } from "jodit/esm/core/helpers/index.js";
|
|
22
22
|
const markedValue = new WeakMap();
|
|
23
23
|
export class Table extends ViewComponent {
|
|
24
24
|
constructor() {
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules/toolbar/button
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
11
|
import type { IControlTypeStrong, IToolbarButton, IToolbarCollection, IViewBased, Nullable } from "jodit/esm/types";
|
|
13
12
|
import { UIButton } from "jodit/esm/core/ui/button";
|
|
13
|
+
|
|
14
14
|
export declare class ToolbarButton<T extends IViewBased = IViewBased> extends UIButton implements IToolbarButton {
|
|
15
15
|
readonly control: IControlTypeStrong;
|
|
16
16
|
readonly target: Nullable<HTMLElement>;
|
|
@@ -20,7 +20,7 @@ export declare class ToolbarButton<T extends IViewBased = IViewBased> extends UI
|
|
|
20
20
|
theme: string;
|
|
21
21
|
currentValue: string;
|
|
22
22
|
hasTrigger: boolean;
|
|
23
|
-
size: "
|
|
23
|
+
size: "small" | "tiny" | "xsmall" | "middle" | "large";
|
|
24
24
|
name: string;
|
|
25
25
|
value: string | number | boolean; /** @override */
|
|
26
26
|
variant: import("jodit/esm/types").ButtonVariant;
|
|
@@ -70,7 +70,7 @@ export declare class ToolbarButton<T extends IViewBased = IViewBased> extends UI
|
|
|
70
70
|
protected onTriggerClick(e: MouseEvent): void;
|
|
71
71
|
private openedPopup;
|
|
72
72
|
/**
|
|
73
|
-
* Create
|
|
73
|
+
* Create an open popup list
|
|
74
74
|
*/
|
|
75
75
|
private __openControlList;
|
|
76
76
|
protected onOutsideClick(e: MouseEvent): void;
|
|
@@ -13,21 +13,16 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* @packageDocumentation
|
|
19
|
-
* @module modules/toolbar/button
|
|
20
|
-
*/
|
|
21
|
-
import { UIButton, UIButtonState } from "jodit/esm/core/ui/button/index.js";
|
|
22
|
-
import { autobind, component, watch, cacheHTML } from "jodit/esm/core/decorators/index.js";
|
|
16
|
+
import { STATUSES } from "jodit/esm/core/component/statuses.js";
|
|
17
|
+
import { autobind, cacheHTML, component, watch } from "jodit/esm/core/decorators/index.js";
|
|
23
18
|
import { Dom } from "jodit/esm/core/dom/index.js";
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
19
|
+
import { assert, attr, call, camelCase, isArray, isFunction, isJoditObject, isPlainObject, isString, keys, position } from "jodit/esm/core/helpers/index.js";
|
|
20
|
+
import { UIButton, UIButtonState } from "jodit/esm/core/ui/button/index.js";
|
|
21
|
+
import { findControlType } from "jodit/esm/core/ui/helpers/get-control-type.js";
|
|
27
22
|
import { Icon } from "jodit/esm/core/ui/icon.js";
|
|
23
|
+
import { Popup } from "jodit/esm/core/ui/popup/popup.js";
|
|
28
24
|
import { ToolbarCollection } from "jodit/esm/modules/toolbar/collection/collection.js";
|
|
29
|
-
import {
|
|
30
|
-
import { findControlType } from "jodit/esm/core/ui/helpers/get-control-type.js";
|
|
25
|
+
import { makeCollection } from "jodit/esm/modules/toolbar/factory.js";
|
|
31
26
|
let ToolbarButton = class ToolbarButton extends UIButton {
|
|
32
27
|
/** @override */
|
|
33
28
|
className() {
|
|
@@ -237,7 +232,7 @@ let ToolbarButton = class ToolbarButton extends UIButton {
|
|
|
237
232
|
}
|
|
238
233
|
}
|
|
239
234
|
/**
|
|
240
|
-
* Fired after popup was opened for some control button
|
|
235
|
+
* Fired after the popup was opened for some control button
|
|
241
236
|
*/
|
|
242
237
|
/**
|
|
243
238
|
* Close all opened popups
|
|
@@ -246,7 +241,7 @@ let ToolbarButton = class ToolbarButton extends UIButton {
|
|
|
246
241
|
}
|
|
247
242
|
}
|
|
248
243
|
/**
|
|
249
|
-
* Create
|
|
244
|
+
* Create an open popup list
|
|
250
245
|
*/
|
|
251
246
|
__openControlList(control) {
|
|
252
247
|
const controls = this.jodit.options.controls ?? {}, getControl = (key) => findControlType(key, controls);
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module modules/toolbar/button
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
9
|
import type { IControlTypeContent, IToolbarButton, IViewBased, Nullable } from "jodit/esm/types";
|
|
11
10
|
import { UIButton } from "jodit/esm/core/ui/button";
|
|
11
|
+
|
|
12
12
|
export declare class ToolbarContent<T extends IViewBased = IViewBased> extends UIButton implements IToolbarButton {
|
|
13
13
|
readonly control: IControlTypeContent;
|
|
14
14
|
readonly target: Nullable<HTMLElement>;
|
|
@@ -13,13 +13,10 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
|
-
/**
|
|
17
|
-
* @module modules/toolbar/button
|
|
18
|
-
*/
|
|
19
|
-
import { UIButton } from "jodit/esm/core/ui/button/index.js";
|
|
20
|
-
import { Dom } from "jodit/esm/core/dom/index.js";
|
|
21
|
-
import { isString, attr } from "jodit/esm/core/helpers/index.js";
|
|
22
16
|
import { component } from "jodit/esm/core/decorators/index.js";
|
|
17
|
+
import { Dom } from "jodit/esm/core/dom/index.js";
|
|
18
|
+
import { attr, isString } from "jodit/esm/core/helpers/index.js";
|
|
19
|
+
import { UIButton } from "jodit/esm/core/ui/button/index.js";
|
|
23
20
|
let ToolbarContent = class ToolbarContent extends UIButton {
|
|
24
21
|
/** @override */
|
|
25
22
|
className() {
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module modules/toolbar/button
|
|
8
8
|
*/
|
|
9
|
-
|
|
10
9
|
import type { IViewBased } from "jodit/esm/types";
|
|
11
10
|
import { ToolbarButton } from "../button";
|
|
11
|
+
|
|
12
12
|
export declare class ToolbarSelect<T extends IViewBased = IViewBased> extends ToolbarButton<T> {
|
|
13
13
|
className(): string;
|
|
14
14
|
update(): void;
|
|
@@ -13,9 +13,6 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
|
-
/**
|
|
17
|
-
* @module modules/toolbar/button
|
|
18
|
-
*/
|
|
19
16
|
import { component } from "jodit/esm/core/decorators/index.js";
|
|
20
17
|
import { isString } from "jodit/esm/core/helpers/checker/is-string.js";
|
|
21
18
|
import { ToolbarButton } from "../button";
|
|
@@ -8,15 +8,15 @@
|
|
|
8
8
|
* @packageDocumentation
|
|
9
9
|
* @module modules/toolbar/collection
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
import type { IToolbarButton, IToolbarCollection, IUIButton, Nullable, IControlTypeStrong, IViewBased, ButtonsGroups, IViewWithToolbar, IBound } from "jodit/esm/types";
|
|
11
|
+
import type { ButtonsGroups, IBound, IControlTypeStrong, IToolbarButton, IToolbarCollection, IUIButton, IViewBased, IViewWithToolbar, Nullable } from "jodit/esm/types";
|
|
13
12
|
import { UIList } from "jodit/esm/core/ui";
|
|
13
|
+
|
|
14
14
|
export declare class ToolbarCollection<T extends IViewWithToolbar = IViewWithToolbar> extends UIList<T> implements IToolbarCollection {
|
|
15
15
|
/** @override */
|
|
16
16
|
className(): string;
|
|
17
17
|
private readonly __listenEvents;
|
|
18
18
|
/**
|
|
19
|
-
* First button in list
|
|
19
|
+
* First button in a list
|
|
20
20
|
*/
|
|
21
21
|
get firstButton(): Nullable<IToolbarButton>;
|
|
22
22
|
protected makeButton(control: IControlTypeStrong, target?: Nullable<HTMLElement>): IUIButton;
|
|
@@ -26,7 +26,7 @@ export declare class ToolbarCollection<T extends IViewWithToolbar = IViewWithToo
|
|
|
26
26
|
*/
|
|
27
27
|
shouldBeActive(button: IToolbarButton): boolean | undefined;
|
|
28
28
|
/**
|
|
29
|
-
* Button should be disabled
|
|
29
|
+
* The Button should be disabled
|
|
30
30
|
*/
|
|
31
31
|
shouldBeDisabled(button: IToolbarButton): boolean | undefined;
|
|
32
32
|
/**
|
|
@@ -13,14 +13,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
13
13
|
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
14
14
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
15
15
|
};
|
|
16
|
-
|
|
17
|
-
* [[include:modules/toolbar/collection/README.md]]
|
|
18
|
-
* @packageDocumentation
|
|
19
|
-
* @module modules/toolbar/collection
|
|
20
|
-
*/
|
|
16
|
+
import { autobind, component, debounce, hook } from "jodit/esm/core/decorators/index.js";
|
|
21
17
|
import { error } from "jodit/esm/core/helpers/utils/error/error.js";
|
|
22
18
|
import { UIList, UITooltip } from "jodit/esm/core/ui/index.js";
|
|
23
|
-
import { component, autobind, debounce, hook } from "jodit/esm/core/decorators/index.js";
|
|
24
19
|
import { makeButton, makeSelect } from "jodit/esm/modules/toolbar/factory.js";
|
|
25
20
|
let ToolbarCollection = class ToolbarCollection extends UIList {
|
|
26
21
|
/** @override */
|
|
@@ -28,7 +23,7 @@ let ToolbarCollection = class ToolbarCollection extends UIList {
|
|
|
28
23
|
return 'ToolbarCollection';
|
|
29
24
|
}
|
|
30
25
|
/**
|
|
31
|
-
* First button in list
|
|
26
|
+
* First button in a list
|
|
32
27
|
*/
|
|
33
28
|
get firstButton() {
|
|
34
29
|
const [button] = this.buttons;
|
|
@@ -47,7 +42,7 @@ let ToolbarCollection = class ToolbarCollection extends UIList {
|
|
|
47
42
|
return undefined;
|
|
48
43
|
}
|
|
49
44
|
/**
|
|
50
|
-
* Button should be disabled
|
|
45
|
+
* The Button should be disabled
|
|
51
46
|
*/
|
|
52
47
|
shouldBeDisabled(button) {
|
|
53
48
|
return undefined;
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
/**
|
|
7
7
|
* @module modules/toolbar/collection
|
|
8
8
|
*/
|
|
9
|
+
import type { IBound, IJodit, IToolbarButton } from "jodit/esm/types";
|
|
9
10
|
import { ToolbarCollection } from "./collection";
|
|
10
|
-
import type { IToolbarButton, IJodit, IBound } from "jodit/esm/types";
|
|
11
11
|
export declare class ToolbarEditorCollection extends ToolbarCollection<IJodit> {
|
|
12
12
|
/** @override */
|
|
13
13
|
className(): string;
|