jodit 4.8.9 → 4.9.4
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/CHANGELOG.md +44 -0
- package/es2015/jodit.css +1663 -1663
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +14 -14
- package/es2015/jodit.js +496 -381
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +14 -14
- package/es2015/plugins/debug/debug.css +1 -1
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +25 -25
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +14 -14
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1663 -1663
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +19 -19
- package/es2021/jodit.js +496 -381
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +19 -19
- package/es2021/plugins/debug/debug.css +1 -1
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +1663 -1663
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +19 -19
- package/es2021.en/jodit.js +496 -381
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +29 -29
- package/es2021.en/plugins/debug/debug.css +1 -1
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/jodit.css +2009 -2009
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +506 -390
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.css +1 -1
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/polyfills.fat.min.js +1 -1
- package/es5/polyfills.js +1 -1
- package/es5/polyfills.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/core/decorators/component/component.d.ts +4 -3
- package/esm/core/decorators/component/component.js +11 -0
- package/esm/core/decorators/watch/watch.d.ts +1 -2
- package/esm/core/decorators/watch/watch.js +1 -8
- package/esm/core/dom/dom.d.ts +5 -0
- package/esm/core/dom/dom.js +24 -5
- package/esm/core/dom/lazy-walker.js +1 -1
- package/esm/core/event-emitter/global.d.ts +2 -0
- package/esm/core/event-emitter/global.js +2 -0
- package/esm/core/event-emitter/observable.js +1 -1
- package/esm/core/global.d.ts +2 -2
- package/esm/core/global.js +7 -4
- package/esm/core/helpers/checker/is-marker.d.ts +1 -0
- package/esm/core/helpers/checker/is-marker.js +2 -4
- package/esm/core/helpers/utils/attr.js +3 -1
- package/esm/core/helpers/utils/error/errors/abort-error.d.ts +0 -5
- package/esm/core/helpers/utils/error/errors/abort-error.js +0 -8
- package/esm/core/helpers/utils/selector.js +2 -1
- package/esm/core/helpers/utils/utils.d.ts +2 -1
- package/esm/core/helpers/utils/utils.js +8 -0
- package/esm/core/plugin/helpers/init-instance.d.ts +2 -2
- package/esm/core/plugin/helpers/init-instance.js +2 -3
- package/esm/core/plugin/plugin-system.d.ts +5 -1
- package/esm/core/plugin/plugin-system.js +8 -5
- package/esm/core/selection/style/api/list/wrap-list.js +3 -2
- package/esm/core/selection/style/transactions.js +1 -1
- package/esm/core/ui/button/button/button.js +6 -3
- package/esm/core/ui/element.d.ts +2 -3
- package/esm/core/ui/group/list.d.ts +0 -1
- package/esm/core/ui/group/list.js +8 -6
- package/esm/modules/file-browser/builders/context-menu.js +3 -2
- package/esm/modules/file-browser/builders/utils.d.ts +12 -0
- package/esm/modules/file-browser/builders/utils.js +12 -0
- package/esm/modules/file-browser/listeners/native-listeners.d.ts +1 -12
- package/esm/modules/file-browser/listeners/native-listeners.js +3 -13
- package/esm/modules/history/command.d.ts +2 -3
- package/esm/modules/history/history.d.ts +1 -1
- package/esm/modules/history/history.js +2 -2
- package/esm/modules/toolbar/button/button.d.ts +0 -5
- package/esm/modules/toolbar/button/button.js +21 -11
- package/esm/modules/toolbar/collection/collection.d.ts +1 -2
- package/esm/modules/toolbar/collection/collection.js +6 -3
- package/esm/modules/toolbar/factory.js +8 -6
- package/esm/plugins/about/about.js +2 -2
- package/package.json +1 -1
- package/types/core/decorators/component/component.d.ts +4 -3
- package/types/core/decorators/watch/watch.d.ts +1 -2
- package/types/core/dom/dom.d.ts +5 -0
- package/types/core/event-emitter/global.d.ts +2 -0
- package/types/core/global.d.ts +2 -2
- package/types/core/helpers/checker/is-marker.d.ts +1 -0
- package/types/core/helpers/utils/error/errors/abort-error.d.ts +0 -5
- package/types/core/helpers/utils/utils.d.ts +2 -1
- package/types/core/plugin/helpers/init-instance.d.ts +2 -2
- package/types/core/plugin/plugin-system.d.ts +5 -1
- package/types/core/ui/element.d.ts +2 -3
- package/types/core/ui/group/list.d.ts +0 -1
- package/types/modules/file-browser/builders/utils.d.ts +12 -0
- package/types/modules/file-browser/listeners/native-listeners.d.ts +1 -12
- package/types/modules/history/command.d.ts +2 -3
- package/types/modules/history/history.d.ts +1 -1
- package/types/modules/toolbar/button/button.d.ts +0 -5
- package/types/modules/toolbar/collection/collection.d.ts +1 -2
package/es2015/jodit.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.
|
|
4
|
+
* Version: v4.9.4
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -216,7 +216,7 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
|
|
|
216
216
|
/* harmony export */ });
|
|
217
217
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
218
218
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
|
|
219
|
-
/* harmony import */ var
|
|
219
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49574);
|
|
220
220
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23211);
|
|
221
221
|
/* harmony import */ var jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(60216);
|
|
222
222
|
/*!
|
|
@@ -306,7 +306,7 @@ class LazyWalker extends jodit_core_event_emitter_eventify__WEBPACK_IMPORTED_MOD
|
|
|
306
306
|
}
|
|
307
307
|
}
|
|
308
308
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
309
|
-
|
|
309
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
310
310
|
], LazyWalker.prototype, "__workPerform", null);
|
|
311
311
|
|
|
312
312
|
|
|
@@ -1836,12 +1836,9 @@ function trimChars(value, chars) {
|
|
|
1836
1836
|
/* harmony export */ makeCollection: function() { return /* binding */ makeCollection; },
|
|
1837
1837
|
/* harmony export */ makeSelect: function() { return /* binding */ makeSelect; }
|
|
1838
1838
|
/* harmony export */ });
|
|
1839
|
-
/* harmony import */ var
|
|
1840
|
-
/* harmony import */ var
|
|
1841
|
-
/* harmony import */ var
|
|
1842
|
-
/* harmony import */ var _button_select_select__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(61764);
|
|
1843
|
-
/* harmony import */ var _collection_collection__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42573);
|
|
1844
|
-
/* harmony import */ var _collection_editor_collection__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(6209);
|
|
1839
|
+
/* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91672);
|
|
1840
|
+
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(91565);
|
|
1841
|
+
/* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24497);
|
|
1845
1842
|
/*!
|
|
1846
1843
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
1847
1844
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -1853,13 +1850,12 @@ function trimChars(value, chars) {
|
|
|
1853
1850
|
*/
|
|
1854
1851
|
|
|
1855
1852
|
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
1853
|
/**
|
|
1860
1854
|
* Collection factory
|
|
1861
1855
|
*/ function makeCollection(jodit, parentElement) {
|
|
1862
|
-
const
|
|
1856
|
+
const ToolbarCollection = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarCollection');
|
|
1857
|
+
const ToolbarEditorCollection = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarEditorCollection');
|
|
1858
|
+
const collection = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_2__.isJoditObject)(jodit) ? new ToolbarEditorCollection(jodit) : new ToolbarCollection(jodit);
|
|
1863
1859
|
if (jodit.o.textIcons) {
|
|
1864
1860
|
collection.container.classList.add('jodit_text_icons');
|
|
1865
1861
|
}
|
|
@@ -1874,15 +1870,18 @@ function trimChars(value, chars) {
|
|
|
1874
1870
|
/**
|
|
1875
1871
|
* Button factory
|
|
1876
1872
|
*/ function makeButton(jodit, control, target = null) {
|
|
1877
|
-
if ((0,
|
|
1878
|
-
|
|
1873
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_1__.isFunction)(control.getContent)) {
|
|
1874
|
+
const ToolbarContent = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarContent');
|
|
1875
|
+
return new ToolbarContent(jodit, control, target);
|
|
1879
1876
|
}
|
|
1880
|
-
const
|
|
1877
|
+
const ToolbarButton = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarButton');
|
|
1878
|
+
const button = new ToolbarButton(jodit, control, target);
|
|
1881
1879
|
button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
|
|
1882
1880
|
return button;
|
|
1883
1881
|
}
|
|
1884
1882
|
function makeSelect(view, control, target = null) {
|
|
1885
|
-
|
|
1883
|
+
const ToolbarSelect = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_0__.getComponentClass)('ToolbarSelect');
|
|
1884
|
+
return new ToolbarSelect(view, control, target);
|
|
1886
1885
|
}
|
|
1887
1886
|
|
|
1888
1887
|
|
|
@@ -3677,9 +3676,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('pasteStorage',
|
|
|
3677
3676
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3678
3677
|
/* harmony export */ attr: function() { return /* binding */ attr; }
|
|
3679
3678
|
/* harmony export */ });
|
|
3680
|
-
/* harmony import */ var
|
|
3681
|
-
/* harmony import */ var
|
|
3682
|
-
/* harmony import */ var
|
|
3679
|
+
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(91565);
|
|
3680
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(62101);
|
|
3681
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(85932);
|
|
3682
|
+
/* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74264);
|
|
3683
|
+
/* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80991);
|
|
3683
3684
|
/*!
|
|
3684
3685
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
3685
3686
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -3689,19 +3690,21 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('pasteStorage',
|
|
|
3689
3690
|
*/
|
|
3690
3691
|
|
|
3691
3692
|
|
|
3693
|
+
|
|
3694
|
+
|
|
3692
3695
|
/**
|
|
3693
3696
|
* Alias for `elm.getAttribute` but if set second argument `-{key}`
|
|
3694
3697
|
* it will also check `data-{key}` attribute
|
|
3695
3698
|
* if set `value` it is alias for setAttribute with the same logic
|
|
3696
3699
|
*/ function attr(elm, keyOrAttributes, value) {
|
|
3697
|
-
if (!elm || !(0,
|
|
3700
|
+
if (!elm || !(0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_0__.isFunction)(elm.getAttribute)) {
|
|
3698
3701
|
return null;
|
|
3699
3702
|
}
|
|
3700
|
-
if (!(0,
|
|
3703
|
+
if (!(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_2__.isString)(keyOrAttributes)) {
|
|
3701
3704
|
Object.keys(keyOrAttributes).forEach((key)=>{
|
|
3702
3705
|
const value = keyOrAttributes[key];
|
|
3703
|
-
if ((0,
|
|
3704
|
-
(0,
|
|
3706
|
+
if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_1__.isPlainObject)(value) && key === 'style') {
|
|
3707
|
+
(0,_css__WEBPACK_IMPORTED_MODULE_4__.css)(elm, value);
|
|
3705
3708
|
} else {
|
|
3706
3709
|
if (key === 'className') {
|
|
3707
3710
|
key = 'class';
|
|
@@ -3711,7 +3714,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_3__.pluginSystem.add('pasteStorage',
|
|
|
3711
3714
|
});
|
|
3712
3715
|
return null;
|
|
3713
3716
|
}
|
|
3714
|
-
let key = (0,
|
|
3717
|
+
let key = (0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__.CamelCaseToKebabCase)(keyOrAttributes);
|
|
3715
3718
|
if (/^-/.test(key)) {
|
|
3716
3719
|
const res = attr(elm, `data${key}`);
|
|
3717
3720
|
if (res) {
|
|
@@ -6028,23 +6031,20 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
|
|
|
6028
6031
|
|
|
6029
6032
|
"use strict";
|
|
6030
6033
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
6031
|
-
/* harmony export */ abort: function() { return /* binding */ abort; }
|
|
6032
|
-
/* harmony export */ isAbort: function() { return /* binding */ isAbort; }
|
|
6034
|
+
/* harmony export */ abort: function() { return /* binding */ abort; }
|
|
6033
6035
|
/* harmony export */ });
|
|
6034
|
-
/* harmony import */ var jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(72068);
|
|
6035
6036
|
/*!
|
|
6036
6037
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
6037
6038
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
6038
6039
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
6039
6040
|
*/ /**
|
|
6040
6041
|
* @module helpers/utils
|
|
6041
|
-
*/
|
|
6042
|
-
|
|
6042
|
+
*/ /**
|
|
6043
|
+
* `AbortError` is not a separate exception, but rather a {@link DOMException} with a special `name`.
|
|
6044
|
+
* https://webidl.spec.whatwg.org/#aborterror
|
|
6045
|
+
*/ function abort(message = 'Aborted') {
|
|
6043
6046
|
return new DOMException(message, 'AbortError');
|
|
6044
6047
|
}
|
|
6045
|
-
/**
|
|
6046
|
-
* @deprecated use `isAbortError` instead
|
|
6047
|
-
*/ const isAbort = jodit_core_helpers_checker_is_abort_error__WEBPACK_IMPORTED_MODULE_0__.isAbortError;
|
|
6048
6048
|
|
|
6049
6049
|
|
|
6050
6050
|
/***/ }),
|
|
@@ -9524,15 +9524,27 @@ module.exports = "<svg viewBox=\"0 0 500 500\" xmlns=\"http://www.w3.org/2000/sv
|
|
|
9524
9524
|
/* harmony import */ var _swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(15366);
|
|
9525
9525
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31635);
|
|
9526
9526
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(69364);
|
|
9527
|
-
/* harmony import */ var
|
|
9528
|
-
/* harmony import */ var
|
|
9529
|
-
/* harmony import */ var
|
|
9530
|
-
/* harmony import */ var
|
|
9531
|
-
/* harmony import */ var
|
|
9532
|
-
/* harmony import */ var
|
|
9533
|
-
/* harmony import */ var
|
|
9534
|
-
/* harmony import */ var
|
|
9535
|
-
/* harmony import */ var
|
|
9527
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49574);
|
|
9528
|
+
/* harmony import */ var jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(51676);
|
|
9529
|
+
/* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91672);
|
|
9530
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(68616);
|
|
9531
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(23211);
|
|
9532
|
+
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(17312);
|
|
9533
|
+
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(91565);
|
|
9534
|
+
/* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(24497);
|
|
9535
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(62101);
|
|
9536
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(85932);
|
|
9537
|
+
/* harmony import */ var jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(86878);
|
|
9538
|
+
/* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(57821);
|
|
9539
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(28712);
|
|
9540
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__);
|
|
9541
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(7909);
|
|
9542
|
+
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(71125);
|
|
9543
|
+
/* harmony import */ var jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(59400);
|
|
9544
|
+
/* harmony import */ var jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(15982);
|
|
9545
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(29434);
|
|
9546
|
+
/* harmony import */ var jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(51116);
|
|
9547
|
+
/* harmony import */ var _factory__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(4274);
|
|
9536
9548
|
/*!
|
|
9537
9549
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
9538
9550
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -9556,18 +9568,31 @@ module.exports = "<svg viewBox=\"0 0 500 500\" xmlns=\"http://www.w3.org/2000/sv
|
|
|
9556
9568
|
|
|
9557
9569
|
|
|
9558
9570
|
|
|
9559
|
-
|
|
9560
|
-
|
|
9571
|
+
|
|
9572
|
+
|
|
9573
|
+
|
|
9574
|
+
|
|
9575
|
+
|
|
9576
|
+
|
|
9577
|
+
|
|
9578
|
+
|
|
9579
|
+
|
|
9580
|
+
|
|
9581
|
+
|
|
9582
|
+
class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__.UIButton {
|
|
9583
|
+
className() {
|
|
9561
9584
|
return 'ToolbarButton';
|
|
9562
9585
|
}
|
|
9563
9586
|
/**
|
|
9564
9587
|
* Get parent toolbar
|
|
9565
9588
|
*/ get toolbar() {
|
|
9566
|
-
|
|
9589
|
+
const ToolbarCollection = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_7__.getComponentClass)('ToolbarCollection');
|
|
9590
|
+
return this.closest(ToolbarCollection);
|
|
9567
9591
|
}
|
|
9568
|
-
|
|
9592
|
+
update() {
|
|
9569
9593
|
var _control_value, _control_update;
|
|
9570
|
-
const { control, state } = this
|
|
9594
|
+
const { control, state } = this;
|
|
9595
|
+
const tc = this.toolbar;
|
|
9571
9596
|
if (!tc) {
|
|
9572
9597
|
return;
|
|
9573
9598
|
}
|
|
@@ -9583,7 +9608,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UI
|
|
|
9583
9608
|
* Calculates whether the button is active
|
|
9584
9609
|
*/ __calculateActivatedStatus(tc) {
|
|
9585
9610
|
var _this_control_isActive, _this_control;
|
|
9586
|
-
if ((0,
|
|
9611
|
+
if ((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_12__.isJoditObject)(this.j) && !this.j.editorIsActive) {
|
|
9587
9612
|
return false;
|
|
9588
9613
|
}
|
|
9589
9614
|
if ((_this_control_isActive = (_this_control = this.control).isActive) === null || _this_control_isActive === void 0 ? void 0 : _this_control_isActive.call(_this_control, this.j, this)) {
|
|
@@ -9606,33 +9631,33 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UI
|
|
|
9606
9631
|
}
|
|
9607
9632
|
return Boolean(tc && tc.shouldBeDisabled(this));
|
|
9608
9633
|
}
|
|
9609
|
-
|
|
9610
|
-
(0,
|
|
9634
|
+
onChangeActivated() {
|
|
9635
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.button, 'aria-pressed', this.state.activated);
|
|
9611
9636
|
super.onChangeActivated();
|
|
9612
9637
|
}
|
|
9613
|
-
|
|
9614
|
-
if ((0,
|
|
9638
|
+
onChangeText() {
|
|
9639
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(this.control.template)) {
|
|
9615
9640
|
this.text.innerHTML = this.control.template(this.j, this.control.name, this.j.i18n(this.state.text));
|
|
9616
9641
|
} else {
|
|
9617
9642
|
super.onChangeText();
|
|
9618
9643
|
}
|
|
9619
9644
|
this.setMod('text-icons', Boolean(this.text.innerText.trim().length));
|
|
9620
9645
|
}
|
|
9621
|
-
|
|
9622
|
-
(0,
|
|
9646
|
+
onChangeTabIndex() {
|
|
9647
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.button, 'tabindex', this.state.tabIndex);
|
|
9623
9648
|
}
|
|
9624
9649
|
createContainer() {
|
|
9625
9650
|
const cn = this.componentName;
|
|
9626
9651
|
const container = this.j.c.span(cn);
|
|
9627
9652
|
const button = super.createContainer();
|
|
9628
|
-
(0,
|
|
9653
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(container, 'role', 'listitem');
|
|
9629
9654
|
button.classList.remove(cn);
|
|
9630
9655
|
button.classList.add(cn + '__button');
|
|
9631
9656
|
Object.defineProperty(button, 'component', {
|
|
9632
9657
|
value: this
|
|
9633
9658
|
});
|
|
9634
9659
|
container.appendChild(button);
|
|
9635
|
-
const trigger = this.j.c.fromHTML(`<span role="trigger" class="${cn}__trigger">${
|
|
9660
|
+
const trigger = this.j.c.fromHTML(`<span role="trigger" class="${cn}__trigger">${jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_22__.Icon.get('chevron')}</span>`);
|
|
9636
9661
|
// For caching
|
|
9637
9662
|
button.appendChild(trigger);
|
|
9638
9663
|
return container;
|
|
@@ -9645,15 +9670,15 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UI
|
|
|
9645
9670
|
if (this.state.hasTrigger) {
|
|
9646
9671
|
this.container.appendChild(this.trigger);
|
|
9647
9672
|
} else {
|
|
9648
|
-
|
|
9673
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(this.trigger);
|
|
9649
9674
|
}
|
|
9650
9675
|
this.setMod('with-trigger', this.state.hasTrigger || null);
|
|
9651
9676
|
}
|
|
9652
9677
|
/** @override */ onChangeDisabled() {
|
|
9653
9678
|
const disabled = this.state.disabled ? 'disabled' : null;
|
|
9654
|
-
(0,
|
|
9655
|
-
(0,
|
|
9656
|
-
(0,
|
|
9679
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.trigger, 'disabled', disabled);
|
|
9680
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.button, 'disabled', disabled);
|
|
9681
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_18__.attr)(this.container, 'disabled', disabled);
|
|
9657
9682
|
}
|
|
9658
9683
|
/**
|
|
9659
9684
|
* Init constant data from control
|
|
@@ -9662,8 +9687,8 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UI
|
|
|
9662
9687
|
this.updateSize();
|
|
9663
9688
|
state.name = ctr.name;
|
|
9664
9689
|
const { textIcons } = this.j.o;
|
|
9665
|
-
if (textIcons === true || (0,
|
|
9666
|
-
state.icon = (0,
|
|
9690
|
+
if (textIcons === true || (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(textIcons) && textIcons(ctr.name) || ctr.template) {
|
|
9691
|
+
state.icon = (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__.UIButtonState)().icon;
|
|
9667
9692
|
state.text = ctr.text || ctr.name;
|
|
9668
9693
|
} else {
|
|
9669
9694
|
if (ctr.iconURL) {
|
|
@@ -9671,14 +9696,14 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UI
|
|
|
9671
9696
|
} else {
|
|
9672
9697
|
var _this_j_o_extraIcons;
|
|
9673
9698
|
const name = ctr.icon || ctr.name;
|
|
9674
|
-
state.icon.name =
|
|
9699
|
+
state.icon.name = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_22__.Icon.exists(name) || ((_this_j_o_extraIcons = this.j.o.extraIcons) === null || _this_j_o_extraIcons === void 0 ? void 0 : _this_j_o_extraIcons[name]) ? name : '';
|
|
9675
9700
|
}
|
|
9676
9701
|
if (!ctr.iconURL && !state.icon.name) {
|
|
9677
9702
|
state.text = ctr.text || ctr.name;
|
|
9678
9703
|
}
|
|
9679
9704
|
}
|
|
9680
9705
|
if (ctr.tooltip) {
|
|
9681
|
-
state.tooltip = (0,
|
|
9706
|
+
state.tooltip = (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(ctr.tooltip) ? ctr.tooltip(this.j, ctr, this) : ctr.tooltip;
|
|
9682
9707
|
}
|
|
9683
9708
|
state.hasTrigger = Boolean(ctr.list || ctr.popup && ctr.exec);
|
|
9684
9709
|
}
|
|
@@ -9696,17 +9721,17 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UI
|
|
|
9696
9721
|
if (ctr.list) {
|
|
9697
9722
|
return this.__openControlList(ctr);
|
|
9698
9723
|
}
|
|
9699
|
-
if ((0,
|
|
9724
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(ctr.popup)) {
|
|
9700
9725
|
const popup = this.openPopup();
|
|
9701
9726
|
popup.parentElement = this;
|
|
9702
9727
|
try {
|
|
9703
|
-
if (this.j.e.fire((0,
|
|
9728
|
+
if (this.j.e.fire((0,jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_16__.camelCase)(`before-${ctr.name}-open-popup`), this.target, ctr, popup) !== false) {
|
|
9704
9729
|
var _ref, _ref1;
|
|
9705
9730
|
var _this_toolbar;
|
|
9706
9731
|
const target = (_ref = (_ref1 = (_this_toolbar = this.toolbar) === null || _this_toolbar === void 0 ? void 0 : _this_toolbar.getTarget(this)) !== null && _ref1 !== void 0 ? _ref1 : this.target) !== null && _ref !== void 0 ? _ref : null;
|
|
9707
9732
|
const elm = ctr.popup(this.j, target, this.__closePopup, this);
|
|
9708
9733
|
if (elm) {
|
|
9709
|
-
popup.setContent((0,
|
|
9734
|
+
popup.setContent((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(elm) ? this.j.c.fromHTML(elm) : elm).open(()=>(0,jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_15__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
9710
9735
|
} else {
|
|
9711
9736
|
this.__closePopup();
|
|
9712
9737
|
}
|
|
@@ -9719,26 +9744,28 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UI
|
|
|
9719
9744
|
* Fired after the popup was opened for some control button
|
|
9720
9745
|
*/ /**
|
|
9721
9746
|
* Close all opened popups
|
|
9722
|
-
*/ this.j.e.fire((0,
|
|
9747
|
+
*/ this.j.e.fire((0,jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_16__.camelCase)(`after-${ctr.name}-open-popup`), popup.container);
|
|
9723
9748
|
}
|
|
9724
9749
|
}
|
|
9725
9750
|
/**
|
|
9726
9751
|
* Create an open popup list
|
|
9727
9752
|
*/ __openControlList(control) {
|
|
9728
9753
|
var _this_jodit_options_controls;
|
|
9729
|
-
const controls = (_this_jodit_options_controls = this.jodit.options.controls) !== null && _this_jodit_options_controls !== void 0 ? _this_jodit_options_controls : {}, getControl = (key)=>(0,
|
|
9730
|
-
const list = control.list
|
|
9754
|
+
const controls = (_this_jodit_options_controls = this.jodit.options.controls) !== null && _this_jodit_options_controls !== void 0 ? _this_jodit_options_controls : {}, getControl = (key)=>(0,jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_21__.findControlType)(key, controls);
|
|
9755
|
+
const list = control.list;
|
|
9756
|
+
const menu = this.openPopup();
|
|
9757
|
+
const toolbar = (0,_factory__WEBPACK_IMPORTED_MODULE_24__.makeCollection)(this.j);
|
|
9731
9758
|
menu.parentElement = this;
|
|
9732
9759
|
toolbar.parentElement = menu;
|
|
9733
9760
|
toolbar.mode = 'vertical';
|
|
9734
|
-
const isListItem = (key)=>(0,
|
|
9761
|
+
const isListItem = (key)=>(0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_13__.isPlainObject)(key) && 'title' in key && 'value' in key;
|
|
9735
9762
|
const getButton = (key, value)=>{
|
|
9736
|
-
if ((0,
|
|
9763
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(value) && getControl(value)) {
|
|
9737
9764
|
return (0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({
|
|
9738
9765
|
name: value.toString()
|
|
9739
9766
|
}, getControl(value));
|
|
9740
9767
|
}
|
|
9741
|
-
if ((0,
|
|
9768
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(key) && getControl(key)) {
|
|
9742
9769
|
return (0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({
|
|
9743
9770
|
name: key.toString()
|
|
9744
9771
|
}, getControl(key), typeof value === 'object' ? value : {});
|
|
@@ -9769,26 +9796,26 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UI
|
|
|
9769
9796
|
value
|
|
9770
9797
|
]
|
|
9771
9798
|
};
|
|
9772
|
-
if ((0,
|
|
9799
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_14__.isString)(value)) {
|
|
9773
9800
|
childControl.text = value;
|
|
9774
9801
|
}
|
|
9775
9802
|
return childControl;
|
|
9776
9803
|
};
|
|
9777
|
-
toolbar.build((0,
|
|
9778
|
-
menu.setContent(toolbar).open(()=>(0,
|
|
9804
|
+
toolbar.build((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_10__.isArray)(list) ? list.map(getButton) : (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_19__.keys)(list, false).map((key)=>getButton(key, list[key])), this.target);
|
|
9805
|
+
menu.setContent(toolbar).open(()=>(0,jodit_core_helpers_size__WEBPACK_IMPORTED_MODULE_15__.position)(this.container), false, this.j.o.allowTabNavigation ? this.container : undefined);
|
|
9779
9806
|
this.state.activated = true;
|
|
9780
9807
|
}
|
|
9781
9808
|
onOutsideClick(e) {
|
|
9782
9809
|
if (!this.openedPopup) {
|
|
9783
9810
|
return;
|
|
9784
9811
|
}
|
|
9785
|
-
if (!e || !
|
|
9812
|
+
if (!e || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isNode(e.target) || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isOrContains(this.container, e.target) && !this.openedPopup.isOwnClick(e)) {
|
|
9786
9813
|
this.__closePopup();
|
|
9787
9814
|
}
|
|
9788
9815
|
}
|
|
9789
9816
|
openPopup() {
|
|
9790
9817
|
this.__closePopup();
|
|
9791
|
-
this.openedPopup = new
|
|
9818
|
+
this.openedPopup = new jodit_core_ui_popup_popup__WEBPACK_IMPORTED_MODULE_23__.Popup(this.j, false);
|
|
9792
9819
|
this.j.e.on(this.ow, 'mousedown touchstart', this.onOutsideClick).on('escape closeAllPopups', this.onOutsideClick);
|
|
9793
9820
|
return this.openedPopup;
|
|
9794
9821
|
}
|
|
@@ -9805,7 +9832,7 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UI
|
|
|
9805
9832
|
* Click handler
|
|
9806
9833
|
*/ onClick(originalEvent) {
|
|
9807
9834
|
const { control: ctr } = this;
|
|
9808
|
-
if ((0,
|
|
9835
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(ctr.exec)) {
|
|
9809
9836
|
var _ref, _ref1;
|
|
9810
9837
|
var _this_toolbar;
|
|
9811
9838
|
const target = (_ref = (_ref1 = (_this_toolbar = this.toolbar) === null || _this_toolbar === void 0 ? void 0 : _this_toolbar.getTarget(this)) !== null && _ref1 !== void 0 ? _ref1 : this.target) !== null && _ref !== void 0 ? _ref : null;
|
|
@@ -9832,11 +9859,11 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UI
|
|
|
9832
9859
|
if (ctr.list) {
|
|
9833
9860
|
return this.__openControlList(ctr);
|
|
9834
9861
|
}
|
|
9835
|
-
if ((0,
|
|
9862
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_11__.isFunction)(ctr.popup)) {
|
|
9836
9863
|
return this.onTriggerClick(originalEvent);
|
|
9837
9864
|
}
|
|
9838
9865
|
if (ctr.command || ctr.name) {
|
|
9839
|
-
(0,
|
|
9866
|
+
(0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_19__.call)((0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_12__.isJoditObject)(this.j) ? this.j.execCommand.bind(this.j) : this.j.od.execCommand.bind(this.j.od), ctr.command || ctr.name, false, ctr.args && ctr.args[0]);
|
|
9840
9867
|
this.j.e.fire('closeAllPopups');
|
|
9841
9868
|
}
|
|
9842
9869
|
}
|
|
@@ -9845,20 +9872,20 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UI
|
|
|
9845
9872
|
return super.destruct();
|
|
9846
9873
|
}
|
|
9847
9874
|
constructor(jodit, control, target = null){
|
|
9848
|
-
super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "control", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "target", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "trigger", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "openedPopup", void 0), this.control = control, this.target = target, this.state = (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, (0,
|
|
9875
|
+
super(jodit), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "control", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "target", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "state", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "trigger", void 0), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "openedPopup", void 0), this.control = control, this.target = target, this.state = (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_2__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_1__._)({}, (0,jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_20__.UIButtonState)()), {
|
|
9849
9876
|
theme: 'toolbar',
|
|
9850
9877
|
currentValue: '',
|
|
9851
9878
|
hasTrigger: false
|
|
9852
9879
|
}), this.openedPopup = null;
|
|
9853
9880
|
const button = this.getElm('button');
|
|
9854
|
-
(0,
|
|
9881
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__.assert)(button, 'Element button should exists');
|
|
9855
9882
|
this.button = button;
|
|
9856
9883
|
Object.defineProperty(button, 'component', {
|
|
9857
9884
|
value: this,
|
|
9858
9885
|
configurable: true
|
|
9859
9886
|
});
|
|
9860
9887
|
const trigger = this.getElm('trigger');
|
|
9861
|
-
(0,
|
|
9888
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_17__.assert)(trigger, 'Element trigger should exists');
|
|
9862
9889
|
this.trigger = trigger;
|
|
9863
9890
|
trigger.remove();
|
|
9864
9891
|
// Prevent lost focus
|
|
@@ -9879,24 +9906,24 @@ class ToolbarButton extends jodit_core_ui_button__WEBPACK_IMPORTED_MODULE_8__.UI
|
|
|
9879
9906
|
}
|
|
9880
9907
|
}
|
|
9881
9908
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_3__.__decorate)([
|
|
9882
|
-
|
|
9909
|
+
jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_6__.cacheHTML
|
|
9883
9910
|
], ToolbarButton.prototype, "createContainer", null);
|
|
9884
9911
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_3__.__decorate)([
|
|
9885
|
-
(0,
|
|
9912
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('state.hasTrigger', {
|
|
9886
9913
|
immediately: false
|
|
9887
9914
|
})
|
|
9888
9915
|
], ToolbarButton.prototype, "onChangeHasTrigger", null);
|
|
9889
9916
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_3__.__decorate)([
|
|
9890
|
-
(0,
|
|
9917
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_8__.watch)('trigger:click')
|
|
9891
9918
|
], ToolbarButton.prototype, "onTriggerClick", null);
|
|
9892
9919
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_3__.__decorate)([
|
|
9893
|
-
|
|
9920
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
9894
9921
|
], ToolbarButton.prototype, "onOutsideClick", null);
|
|
9895
9922
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_3__.__decorate)([
|
|
9896
|
-
|
|
9923
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_5__.autobind
|
|
9897
9924
|
], ToolbarButton.prototype, "__closePopup", null);
|
|
9898
9925
|
ToolbarButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_3__.__decorate)([
|
|
9899
|
-
|
|
9926
|
+
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_7__.component
|
|
9900
9927
|
], ToolbarButton);
|
|
9901
9928
|
|
|
9902
9929
|
|
|
@@ -10176,8 +10203,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_4__.pluginSystem.add('wrapNodes', wra
|
|
|
10176
10203
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
10177
10204
|
/* harmony export */ isMarker: function() { return /* binding */ isMarker; }
|
|
10178
10205
|
/* harmony export */ });
|
|
10179
|
-
/* harmony import */ var
|
|
10180
|
-
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(23211);
|
|
10206
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
10181
10207
|
/*!
|
|
10182
10208
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10183
10209
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10185,11 +10211,11 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_4__.pluginSystem.add('wrapNodes', wra
|
|
|
10185
10211
|
*/ /**
|
|
10186
10212
|
* @module helpers/checker
|
|
10187
10213
|
*/
|
|
10188
|
-
|
|
10189
10214
|
/**
|
|
10190
10215
|
* Define element is selection helper
|
|
10216
|
+
* @deprecated use Dom.isMarker instead
|
|
10191
10217
|
*/ function isMarker(elm) {
|
|
10192
|
-
return
|
|
10218
|
+
return jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isMarker(elm);
|
|
10193
10219
|
}
|
|
10194
10220
|
|
|
10195
10221
|
|
|
@@ -10235,9 +10261,20 @@ class Elms {
|
|
|
10235
10261
|
/* harmony export */ });
|
|
10236
10262
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
|
|
10237
10263
|
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(88475);
|
|
10238
|
-
/* harmony import */ var
|
|
10239
|
-
/* harmony import */ var
|
|
10240
|
-
/* harmony import */ var
|
|
10264
|
+
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(17312);
|
|
10265
|
+
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91565);
|
|
10266
|
+
/* harmony import */ var jodit_core_helpers_checker_is_html__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46248);
|
|
10267
|
+
/* harmony import */ var jodit_core_helpers_checker_is_set__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(3213);
|
|
10268
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85932);
|
|
10269
|
+
/* harmony import */ var jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18303);
|
|
10270
|
+
/* harmony import */ var jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(4040);
|
|
10271
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28712);
|
|
10272
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__);
|
|
10273
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7909);
|
|
10274
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(80991);
|
|
10275
|
+
/* harmony import */ var jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(36400);
|
|
10276
|
+
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(33201);
|
|
10277
|
+
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(71125);
|
|
10241
10278
|
/*!
|
|
10242
10279
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
10243
10280
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -10252,6 +10289,16 @@ class Elms {
|
|
|
10252
10289
|
|
|
10253
10290
|
|
|
10254
10291
|
|
|
10292
|
+
|
|
10293
|
+
|
|
10294
|
+
|
|
10295
|
+
|
|
10296
|
+
|
|
10297
|
+
|
|
10298
|
+
|
|
10299
|
+
|
|
10300
|
+
|
|
10301
|
+
|
|
10255
10302
|
/**
|
|
10256
10303
|
* Module for working with DOM
|
|
10257
10304
|
*/ class Dom {
|
|
@@ -10281,7 +10328,7 @@ class Elms {
|
|
|
10281
10328
|
return Dom.__wrapElements(tag, editor, first, last);
|
|
10282
10329
|
}
|
|
10283
10330
|
static __wrapElements(tag, editor, first, last) {
|
|
10284
|
-
const wrapper = (0,
|
|
10331
|
+
const wrapper = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(tag) ? editor.createInside.element(tag) : tag;
|
|
10285
10332
|
if (first.parentNode) {
|
|
10286
10333
|
first.parentNode.insertBefore(wrapper, first);
|
|
10287
10334
|
}
|
|
@@ -10326,10 +10373,10 @@ class Elms {
|
|
|
10326
10373
|
/**
|
|
10327
10374
|
* Wrap node inside another node
|
|
10328
10375
|
*/ static wrap(current, tag, create) {
|
|
10329
|
-
const wrapper = (0,
|
|
10376
|
+
const wrapper = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(tag) ? create.element(tag) : tag;
|
|
10330
10377
|
if (Dom.isNode(current)) {
|
|
10331
10378
|
if (!current.parentNode) {
|
|
10332
|
-
throw (0,
|
|
10379
|
+
throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_13__.error)('Element should be in DOM');
|
|
10333
10380
|
}
|
|
10334
10381
|
current.parentNode.insertBefore(wrapper, current);
|
|
10335
10382
|
wrapper.appendChild(current);
|
|
@@ -10370,13 +10417,13 @@ class Elms {
|
|
|
10370
10417
|
}
|
|
10371
10418
|
}
|
|
10372
10419
|
static replace(elm, newTagName, create, withAttributes = false, notMoveContent = false) {
|
|
10373
|
-
if ((0,
|
|
10374
|
-
(0,
|
|
10420
|
+
if ((0,jodit_core_helpers_checker_is_html__WEBPACK_IMPORTED_MODULE_4__.isHTML)(newTagName)) {
|
|
10421
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__.assert)(create, 'Need create instance for new tag');
|
|
10375
10422
|
newTagName = create.fromHTML(newTagName);
|
|
10376
10423
|
}
|
|
10377
10424
|
let tag;
|
|
10378
|
-
if ((0,
|
|
10379
|
-
(0,
|
|
10425
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(newTagName)) {
|
|
10426
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__.assert)(create, 'Need create instance for new tag');
|
|
10380
10427
|
tag = create.element(newTagName);
|
|
10381
10428
|
} else {
|
|
10382
10429
|
tag = newTagName;
|
|
@@ -10417,12 +10464,12 @@ class Elms {
|
|
|
10417
10464
|
return true;
|
|
10418
10465
|
}
|
|
10419
10466
|
let cond;
|
|
10420
|
-
if (!(0,
|
|
10467
|
+
if (!(0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__.isFunction)(condNoEmptyElement)) {
|
|
10421
10468
|
cond = (elm)=>condNoEmptyElement.has(elm.nodeName.toLowerCase());
|
|
10422
10469
|
} else {
|
|
10423
10470
|
cond = condNoEmptyElement;
|
|
10424
10471
|
}
|
|
10425
|
-
const emptyText = (node)=>node.nodeValue == null || (0,
|
|
10472
|
+
const emptyText = (node)=>node.nodeValue == null || (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__.trim)(node.nodeValue).length === 0;
|
|
10426
10473
|
if (Dom.isText(node)) {
|
|
10427
10474
|
return emptyText(node);
|
|
10428
10475
|
}
|
|
@@ -10436,7 +10483,7 @@ class Elms {
|
|
|
10436
10483
|
* Returns true if it is a DOM node
|
|
10437
10484
|
*/ static isNode(object) {
|
|
10438
10485
|
// Duck-typing
|
|
10439
|
-
return Boolean(object && (0,
|
|
10486
|
+
return Boolean(object && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(object.nodeName) && typeof object.nodeType === 'number' && object.childNodes && (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__.isFunction)(object.appendChild));
|
|
10440
10487
|
}
|
|
10441
10488
|
/**
|
|
10442
10489
|
* Check if element is table cell
|
|
@@ -10462,7 +10509,7 @@ class Elms {
|
|
|
10462
10509
|
* Check the `node` is a block element
|
|
10463
10510
|
* @param node - Object to check
|
|
10464
10511
|
*/ static isBlock(node) {
|
|
10465
|
-
return !(0,
|
|
10512
|
+
return !(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_7__.isVoid)(node) && typeof node === 'object' && Dom.isNode(node) && jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_BLOCK.test(node.nodeName);
|
|
10466
10513
|
}
|
|
10467
10514
|
/**
|
|
10468
10515
|
* Check if element is text node
|
|
@@ -10510,12 +10557,12 @@ class Elms {
|
|
|
10510
10557
|
return Dom.isElement(node) && !/^(BR|HR)$/i.test(node.tagName) && [
|
|
10511
10558
|
'inline',
|
|
10512
10559
|
'inline-block'
|
|
10513
|
-
].indexOf((0,
|
|
10560
|
+
].indexOf((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_11__.css)(node, 'display').toString()) !== -1;
|
|
10514
10561
|
}
|
|
10515
10562
|
/**
|
|
10516
10563
|
* It's block and it can be split
|
|
10517
10564
|
*/ static canSplitBlock(node) {
|
|
10518
|
-
return !(0,
|
|
10565
|
+
return !(0,jodit_core_helpers_checker_is_void__WEBPACK_IMPORTED_MODULE_7__.isVoid)(node) && Dom.isHTMLElement(node) && Dom.isBlock(node) && !/^(TD|TH|CAPTION|FORM)$/.test(node.nodeName) && node.style !== undefined && !/^(fixed|absolute)/i.test(node.style.position);
|
|
10519
10566
|
}
|
|
10520
10567
|
/**
|
|
10521
10568
|
* Get last matched node inside root
|
|
@@ -10670,13 +10717,13 @@ class Elms {
|
|
|
10670
10717
|
*/ static findNotEmptySibling(node, left) {
|
|
10671
10718
|
return Dom.findSibling(node, left, (n)=>{
|
|
10672
10719
|
var _n_nodeValue;
|
|
10673
|
-
return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || ((_n_nodeValue = n.nodeValue) === null || _n_nodeValue === void 0 ? void 0 : _n_nodeValue.length) && (0,
|
|
10720
|
+
return !Dom.isEmptyTextNode(n) && Boolean(!Dom.isText(n) || ((_n_nodeValue = n.nodeValue) === null || _n_nodeValue === void 0 ? void 0 : _n_nodeValue.length) && (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__.trim)(n.nodeValue));
|
|
10674
10721
|
});
|
|
10675
10722
|
}
|
|
10676
10723
|
/**
|
|
10677
10724
|
* Returns the nearest non-empty neighbor
|
|
10678
10725
|
*/ static findNotEmptyNeighbor(node, left, root) {
|
|
10679
|
-
return (0,
|
|
10726
|
+
return (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_14__.call)(left ? Dom.prev : Dom.next, node, (n)=>Boolean(n && (!(Dom.isText(n) || Dom.isComment(n)) || (0,jodit_core_helpers_string_trim__WEBPACK_IMPORTED_MODULE_8__.trim)((n === null || n === void 0 ? void 0 : n.nodeValue) || '').length)), root);
|
|
10680
10727
|
}
|
|
10681
10728
|
static sibling(node, left) {
|
|
10682
10729
|
return left ? node.previousSibling : node.nextSibling;
|
|
@@ -10705,10 +10752,10 @@ class Elms {
|
|
|
10705
10752
|
static closest(node, tagsOrCondition, root) {
|
|
10706
10753
|
let condition;
|
|
10707
10754
|
const lc = (s)=>s.toLowerCase();
|
|
10708
|
-
if ((0,
|
|
10755
|
+
if ((0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_3__.isFunction)(tagsOrCondition)) {
|
|
10709
10756
|
condition = tagsOrCondition;
|
|
10710
|
-
} else if ((0,
|
|
10711
|
-
const set = (0,
|
|
10757
|
+
} else if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_2__.isArray)(tagsOrCondition) || (0,jodit_core_helpers_checker_is_set__WEBPACK_IMPORTED_MODULE_5__.isSet)(tagsOrCondition)) {
|
|
10758
|
+
const set = (0,jodit_core_helpers_checker_is_set__WEBPACK_IMPORTED_MODULE_5__.isSet)(tagsOrCondition) ? tagsOrCondition : new Set(tagsOrCondition.map(lc));
|
|
10712
10759
|
condition = (tag)=>Boolean(tag && set.has(lc(tag.nodeName)));
|
|
10713
10760
|
} else {
|
|
10714
10761
|
condition = (tag)=>Boolean(tag && lc(tagsOrCondition) === lc(tag.nodeName));
|
|
@@ -10767,7 +10814,7 @@ class Elms {
|
|
|
10767
10814
|
root.insertBefore(newElement, root.firstChild);
|
|
10768
10815
|
}
|
|
10769
10816
|
static append(root, newElement) {
|
|
10770
|
-
if ((0,
|
|
10817
|
+
if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_2__.isArray)(newElement)) {
|
|
10771
10818
|
newElement.forEach((node)=>{
|
|
10772
10819
|
this.append(root, node);
|
|
10773
10820
|
});
|
|
@@ -10831,7 +10878,7 @@ class Elms {
|
|
|
10831
10878
|
if (!node) {
|
|
10832
10879
|
return;
|
|
10833
10880
|
}
|
|
10834
|
-
(0,
|
|
10881
|
+
(0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_12__.dataBind)(node, '__old_display', node.style.display);
|
|
10835
10882
|
node.style.display = 'none';
|
|
10836
10883
|
}
|
|
10837
10884
|
/**
|
|
@@ -10840,7 +10887,7 @@ class Elms {
|
|
|
10840
10887
|
if (!node) {
|
|
10841
10888
|
return;
|
|
10842
10889
|
}
|
|
10843
|
-
const display = (0,
|
|
10890
|
+
const display = (0,jodit_core_helpers_utils_data_bind__WEBPACK_IMPORTED_MODULE_12__.dataBind)(node, '__old_display');
|
|
10844
10891
|
if (node.style.display === 'none') {
|
|
10845
10892
|
node.style.display = display || '';
|
|
10846
10893
|
}
|
|
@@ -10866,8 +10913,8 @@ class Elms {
|
|
|
10866
10913
|
/**
|
|
10867
10914
|
* Marks an item as temporary
|
|
10868
10915
|
*/ static markTemporary(element, attributes) {
|
|
10869
|
-
attributes && (0,
|
|
10870
|
-
(0,
|
|
10916
|
+
attributes && (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(element, attributes);
|
|
10917
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(element, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR, true);
|
|
10871
10918
|
return element;
|
|
10872
10919
|
}
|
|
10873
10920
|
/**
|
|
@@ -10876,7 +10923,12 @@ class Elms {
|
|
|
10876
10923
|
if (!Dom.isElement(element)) {
|
|
10877
10924
|
return false;
|
|
10878
10925
|
}
|
|
10879
|
-
return
|
|
10926
|
+
return Dom.isMarker(element) || (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(element, jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR) === 'true';
|
|
10927
|
+
}
|
|
10928
|
+
/**
|
|
10929
|
+
* Define element is selection helper
|
|
10930
|
+
*/ static isMarker(elm) {
|
|
10931
|
+
return Dom.isNode(elm) && Dom.isTag(elm, 'span') && elm.hasAttribute('data-' + jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.MARKER_CLASS);
|
|
10880
10932
|
}
|
|
10881
10933
|
/**
|
|
10882
10934
|
* Replace temporary elements from string
|
|
@@ -10885,8 +10937,9 @@ class Elms {
|
|
|
10885
10937
|
}
|
|
10886
10938
|
/**
|
|
10887
10939
|
* Get temporary list
|
|
10940
|
+
* @deprecated
|
|
10888
10941
|
*/ static temporaryList(root) {
|
|
10889
|
-
return (0,
|
|
10942
|
+
return (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_1__.toArray)(root.querySelectorAll(`[${jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.TEMP_ATTR}]`));
|
|
10890
10943
|
}
|
|
10891
10944
|
constructor(){
|
|
10892
10945
|
throw new Error('Dom is static module');
|
|
@@ -12399,16 +12452,16 @@ UISpacer = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_0__.__decorate)(
|
|
|
12399
12452
|
/* harmony export */ pluginSystem: function() { return /* binding */ pluginSystem; },
|
|
12400
12453
|
/* harmony export */ uniqueUid: function() { return /* binding */ uniqueUid; }
|
|
12401
12454
|
/* harmony export */ });
|
|
12402
|
-
/* harmony import */ var
|
|
12403
|
-
/* harmony import */ var
|
|
12404
|
-
/* harmony import */ var
|
|
12405
|
-
/* harmony import */ var
|
|
12406
|
-
/* harmony import */ var
|
|
12455
|
+
/* harmony import */ var jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(24497);
|
|
12456
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(85932);
|
|
12457
|
+
/* harmony import */ var jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31534);
|
|
12458
|
+
/* harmony import */ var jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74264);
|
|
12459
|
+
/* harmony import */ var jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(80991);
|
|
12407
12460
|
/* harmony import */ var jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(421);
|
|
12408
12461
|
/* harmony import */ var jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85305);
|
|
12409
|
-
/* harmony import */ var
|
|
12410
|
-
/* harmony import */ var
|
|
12411
|
-
/* harmony import */ var
|
|
12462
|
+
/* harmony import */ var _event_emitter_global__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(42689);
|
|
12463
|
+
/* harmony import */ var _constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(81937);
|
|
12464
|
+
/* harmony import */ var _dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(27795);
|
|
12412
12465
|
/*!
|
|
12413
12466
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
12414
12467
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -12442,14 +12495,16 @@ const uuids = new Set();
|
|
|
12442
12495
|
uuids.add(uid);
|
|
12443
12496
|
return uid;
|
|
12444
12497
|
}
|
|
12445
|
-
const pluginSystem = new jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_6__.PluginSystem(
|
|
12498
|
+
const pluginSystem = new jodit_core_plugin_plugin_system__WEBPACK_IMPORTED_MODULE_6__.PluginSystem({
|
|
12499
|
+
getContainer
|
|
12500
|
+
});
|
|
12446
12501
|
const modules = {};
|
|
12447
12502
|
const extendLang = (langs)=>{
|
|
12448
12503
|
Object.keys(langs).forEach((key)=>{
|
|
12449
|
-
if (
|
|
12450
|
-
Object.assign(
|
|
12504
|
+
if (_constants__WEBPACK_IMPORTED_MODULE_8__.lang[key]) {
|
|
12505
|
+
Object.assign(_constants__WEBPACK_IMPORTED_MODULE_8__.lang[key], langs[key]);
|
|
12451
12506
|
} else {
|
|
12452
|
-
|
|
12507
|
+
_constants__WEBPACK_IMPORTED_MODULE_8__.lang[key] = langs[key];
|
|
12453
12508
|
}
|
|
12454
12509
|
});
|
|
12455
12510
|
};
|
|
@@ -12457,27 +12512,27 @@ const boxes = new WeakMap();
|
|
|
12457
12512
|
/**
|
|
12458
12513
|
* Create unique box(HTMLCotainer) and remove it after destroy
|
|
12459
12514
|
*/ function getContainer(jodit, classFunc, tag = 'div', createInsideEditor = false) {
|
|
12460
|
-
const name = (0,
|
|
12515
|
+
const name = (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_1__.isString)(classFunc) ? classFunc : classFunc ? (0,jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_5__.getClassName)(classFunc.prototype) : 'jodit-utils';
|
|
12461
12516
|
const data = boxes.get(jodit) || {}, key = name + tag;
|
|
12462
|
-
const view = (0,
|
|
12517
|
+
const view = (0,jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_2__.isViewObject)(jodit) ? jodit : jodit.j;
|
|
12463
12518
|
let body = null;
|
|
12464
12519
|
if (!data[key]) {
|
|
12465
12520
|
let c = view.c;
|
|
12466
12521
|
body = getPopupViewRoot(view.o, view.container, jodit.od.body);
|
|
12467
|
-
if (createInsideEditor && (0,
|
|
12522
|
+
if (createInsideEditor && (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.od !== jodit.ed) {
|
|
12468
12523
|
c = jodit.createInside;
|
|
12469
12524
|
const place = tag === 'style' ? jodit.ed.head : jodit.ed.body;
|
|
12470
|
-
body = (0,
|
|
12525
|
+
body = (0,jodit_core_helpers_checker_is_jodit_object__WEBPACK_IMPORTED_MODULE_0__.isJoditObject)(jodit) && jodit.o.shadowRoot ? jodit.o.shadowRoot : place;
|
|
12471
12526
|
}
|
|
12472
12527
|
const box = c.element(tag, {
|
|
12473
|
-
className: `jodit jodit-${(0,
|
|
12528
|
+
className: `jodit jodit-${(0,jodit_core_helpers_string_kebab_case__WEBPACK_IMPORTED_MODULE_3__.kebabCase)(name)}-container jodit-box`
|
|
12474
12529
|
});
|
|
12475
12530
|
box.classList.add(`jodit_theme_${view.o.theme || 'default'}`);
|
|
12476
12531
|
body.appendChild(box);
|
|
12477
12532
|
data[key] = box;
|
|
12478
12533
|
jodit.hookStatus('beforeDestruct', ()=>{
|
|
12479
12534
|
view.events.off(box);
|
|
12480
|
-
|
|
12535
|
+
_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.safeRemove(box);
|
|
12481
12536
|
delete data[key];
|
|
12482
12537
|
if (Object.keys(data).length) {
|
|
12483
12538
|
boxes.delete(jodit);
|
|
@@ -12495,14 +12550,15 @@ const boxes = new WeakMap();
|
|
|
12495
12550
|
* @internal
|
|
12496
12551
|
*/ function getPopupViewRoot(o, container, defaultRoot) {
|
|
12497
12552
|
var _ref, _ref1, _o_popupRoot;
|
|
12498
|
-
return (_ref = (_ref1 = (_o_popupRoot = o.popupRoot) !== null && _o_popupRoot !== void 0 ? _o_popupRoot : o.shadowRoot) !== null && _ref1 !== void 0 ? _ref1 :
|
|
12553
|
+
return (_ref = (_ref1 = (_o_popupRoot = o.popupRoot) !== null && _o_popupRoot !== void 0 ? _o_popupRoot : o.shadowRoot) !== null && _ref1 !== void 0 ? _ref1 : _dom__WEBPACK_IMPORTED_MODULE_9__.Dom.closest(container, (parentElement)=>_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isHTMLElement(parentElement) && (_dom__WEBPACK_IMPORTED_MODULE_9__.Dom.isTag(parentElement, 'dialog') || [
|
|
12499
12554
|
'fixed',
|
|
12500
12555
|
'absolute'
|
|
12501
|
-
].includes((0,
|
|
12556
|
+
].includes((0,jodit_core_helpers_utils_css__WEBPACK_IMPORTED_MODULE_4__.css)(parentElement, 'position'))), defaultRoot)) !== null && _ref !== void 0 ? _ref : defaultRoot;
|
|
12502
12557
|
}
|
|
12503
12558
|
/**
|
|
12504
12559
|
* Global event emitter
|
|
12505
|
-
|
|
12560
|
+
* @deprecated use `import { eventEmitter } from 'jodit/core/event-emitter/global';`
|
|
12561
|
+
*/ const eventEmitter = _event_emitter_global__WEBPACK_IMPORTED_MODULE_7__.eventEmitter;
|
|
12506
12562
|
|
|
12507
12563
|
|
|
12508
12564
|
/***/ }),
|
|
@@ -12924,7 +12980,8 @@ module.exports = {assert(){}};;
|
|
|
12924
12980
|
/* harmony import */ var jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(88475);
|
|
12925
12981
|
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(85932);
|
|
12926
12982
|
/* harmony import */ var jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(57821);
|
|
12927
|
-
/* harmony import */ var
|
|
12983
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(7909);
|
|
12984
|
+
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33201);
|
|
12928
12985
|
/*!
|
|
12929
12986
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
12930
12987
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -12937,6 +12994,7 @@ module.exports = {assert(){}};;
|
|
|
12937
12994
|
|
|
12938
12995
|
|
|
12939
12996
|
|
|
12997
|
+
|
|
12940
12998
|
let temp = 1;
|
|
12941
12999
|
const $$temp = ()=>{
|
|
12942
13000
|
temp++;
|
|
@@ -12981,7 +13039,7 @@ const $$temp = ()=>{
|
|
|
12981
13039
|
root = root.container;
|
|
12982
13040
|
}
|
|
12983
13041
|
return $$('[ref],[data-ref]', root).reduce((def, child)=>{
|
|
12984
|
-
const key = (0,
|
|
13042
|
+
const key = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_5__.attr)(child, '-ref');
|
|
12985
13043
|
if (key && (0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_3__.isString)(key)) {
|
|
12986
13044
|
def[(0,jodit_core_helpers_string_camel_case__WEBPACK_IMPORTED_MODULE_4__.camelCase)(key)] = child;
|
|
12987
13045
|
def[key] = child;
|
|
@@ -13026,12 +13084,12 @@ const $$temp = ()=>{
|
|
|
13026
13084
|
try {
|
|
13027
13085
|
resolved = od.querySelector(element);
|
|
13028
13086
|
} catch (unused) {
|
|
13029
|
-
throw (0,
|
|
13087
|
+
throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_6__.error)('String "' + element + '" should be valid HTML selector');
|
|
13030
13088
|
}
|
|
13031
13089
|
}
|
|
13032
13090
|
// Duck checking
|
|
13033
13091
|
if (!resolved || typeof resolved !== 'object' || !jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.isElement(resolved) || !resolved.cloneNode) {
|
|
13034
|
-
throw (0,
|
|
13092
|
+
throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_6__.error)('Element "' + element + '" should be string or HTMLElement instance');
|
|
13035
13093
|
}
|
|
13036
13094
|
return resolved;
|
|
13037
13095
|
}
|
|
@@ -13548,8 +13606,7 @@ UIImageMainTab = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_2__.__deco
|
|
|
13548
13606
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
13549
13607
|
/* harmony export */ ConnectionError: function() { return /* reexport safe */ _connection_error__WEBPACK_IMPORTED_MODULE_1__.ConnectionError; },
|
|
13550
13608
|
/* harmony export */ OptionsError: function() { return /* reexport safe */ _options_error__WEBPACK_IMPORTED_MODULE_2__.OptionsError; },
|
|
13551
|
-
/* harmony export */ abort: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.abort; }
|
|
13552
|
-
/* harmony export */ isAbort: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.isAbort; }
|
|
13609
|
+
/* harmony export */ abort: function() { return /* reexport safe */ _abort_error__WEBPACK_IMPORTED_MODULE_0__.abort; }
|
|
13553
13610
|
/* harmony export */ });
|
|
13554
13611
|
/* harmony import */ var _abort_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(14228);
|
|
13555
13612
|
/* harmony import */ var _connection_error__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(58250);
|
|
@@ -14930,7 +14987,6 @@ class Response {
|
|
|
14930
14987
|
/* harmony export */ abort: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.abort; },
|
|
14931
14988
|
/* harmony export */ connection: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.connection; },
|
|
14932
14989
|
/* harmony export */ error: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.error; },
|
|
14933
|
-
/* harmony export */ isAbort: function() { return /* reexport safe */ _errors___WEBPACK_IMPORTED_MODULE_1__.isAbort; },
|
|
14934
14990
|
/* harmony export */ options: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_0__.options; }
|
|
14935
14991
|
/* harmony export */ });
|
|
14936
14992
|
/* harmony import */ var _error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(38027);
|
|
@@ -15287,15 +15343,14 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
|
|
|
15287
15343
|
|
|
15288
15344
|
"use strict";
|
|
15289
15345
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
15290
|
-
/* harmony export */ elementToItem: function() { return /* binding */ elementToItem; },
|
|
15291
|
-
/* harmony export */ getItem: function() { return /* binding */ getItem; },
|
|
15292
15346
|
/* harmony export */ nativeListeners: function() { return /* binding */ nativeListeners; }
|
|
15293
15347
|
/* harmony export */ });
|
|
15294
|
-
/* harmony import */ var
|
|
15295
|
-
/* harmony import */ var
|
|
15348
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7909);
|
|
15349
|
+
/* harmony import */ var jodit_core_helpers_utils_ctrl_key__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(77213);
|
|
15296
15350
|
/* harmony import */ var jodit_modules_file_browser_builders_context_menu__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(61334);
|
|
15297
15351
|
/* harmony import */ var jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(31125);
|
|
15298
|
-
/* harmony import */ var
|
|
15352
|
+
/* harmony import */ var jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66206);
|
|
15353
|
+
/* harmony import */ var jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(53202);
|
|
15299
15354
|
/*!
|
|
15300
15355
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
15301
15356
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -15307,15 +15362,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
|
|
|
15307
15362
|
|
|
15308
15363
|
|
|
15309
15364
|
|
|
15310
|
-
|
|
15311
|
-
* @private
|
|
15312
|
-
*/ const getItem = (node, root, tag = 'a')=>jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(node, (elm)=>jodit_core_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(elm, tag), root);
|
|
15313
|
-
/**
|
|
15314
|
-
* @private
|
|
15315
|
-
*/ const elementToItem = (elm, elementsMap)=>{
|
|
15316
|
-
const { key } = elm.dataset, { item } = elementsMap[key || ''];
|
|
15317
|
-
return item;
|
|
15318
|
-
};
|
|
15365
|
+
|
|
15319
15366
|
/**
|
|
15320
15367
|
* @private
|
|
15321
15368
|
*/ function nativeListeners() {
|
|
@@ -15323,7 +15370,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
|
|
|
15323
15370
|
const elmMap = (0,jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_3__.elementsMap)(this);
|
|
15324
15371
|
const self = this;
|
|
15325
15372
|
self.e.on(self.tree.container, 'dragstart', (e)=>{
|
|
15326
|
-
const a = getItem(e.target, self.container);
|
|
15373
|
+
const a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
|
|
15327
15374
|
if (!a) {
|
|
15328
15375
|
return;
|
|
15329
15376
|
}
|
|
@@ -15332,39 +15379,39 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
|
|
|
15332
15379
|
}
|
|
15333
15380
|
}).on(self.tree.container, 'drop', (e)=>{
|
|
15334
15381
|
if ((self.o.moveFile || self.o.moveFolder) && dragElement) {
|
|
15335
|
-
let path = (0,
|
|
15382
|
+
let path = (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_0__.attr)(dragElement, '-path') || '';
|
|
15336
15383
|
// move folder
|
|
15337
15384
|
if (!self.o.moveFolder && dragElement.classList.contains(this.tree.getFullElName('item'))) {
|
|
15338
15385
|
return false;
|
|
15339
15386
|
}
|
|
15340
15387
|
// move file
|
|
15341
15388
|
if (dragElement.classList.contains(this.files.getFullElName('item'))) {
|
|
15342
|
-
path += (0,
|
|
15389
|
+
path += (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_0__.attr)(dragElement, '-name');
|
|
15343
15390
|
if (!self.o.moveFile) {
|
|
15344
15391
|
return false;
|
|
15345
15392
|
}
|
|
15346
15393
|
}
|
|
15347
|
-
const a = getItem(e.target, self.container);
|
|
15394
|
+
const a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
|
|
15348
15395
|
if (!a) {
|
|
15349
15396
|
return;
|
|
15350
15397
|
}
|
|
15351
|
-
self.dataProvider.move(path, (0,
|
|
15398
|
+
self.dataProvider.move(path, (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_0__.attr)(a, '-path') || '', (0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_0__.attr)(a, '-source') || '', dragElement.classList.contains(this.files.getFullElName('item'))).then(()=>(0,jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_5__.loadTree)(this)).catch(self.status);
|
|
15352
15399
|
dragElement = false;
|
|
15353
15400
|
}
|
|
15354
15401
|
}).on(self.files.container, 'contextmenu', (0,jodit_modules_file_browser_builders_context_menu__WEBPACK_IMPORTED_MODULE_2__["default"])(self)).on(self.files.container, 'click', (e)=>{
|
|
15355
|
-
if (!(0,
|
|
15402
|
+
if (!(0,jodit_core_helpers_utils_ctrl_key__WEBPACK_IMPORTED_MODULE_1__.ctrlKey)(e)) {
|
|
15356
15403
|
this.state.activeElements = [];
|
|
15357
15404
|
}
|
|
15358
15405
|
}).on(self.files.container, 'click', (e)=>{
|
|
15359
|
-
const a = getItem(e.target, self.container);
|
|
15406
|
+
const a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
|
|
15360
15407
|
if (!a) {
|
|
15361
15408
|
return;
|
|
15362
15409
|
}
|
|
15363
|
-
const item = elementToItem(a, elmMap);
|
|
15410
|
+
const item = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__.elementToItem)(a, elmMap);
|
|
15364
15411
|
if (!item) {
|
|
15365
15412
|
return;
|
|
15366
15413
|
}
|
|
15367
|
-
if (!(0,
|
|
15414
|
+
if (!(0,jodit_core_helpers_utils_ctrl_key__WEBPACK_IMPORTED_MODULE_1__.ctrlKey)(e)) {
|
|
15368
15415
|
self.state.activeElements = [
|
|
15369
15416
|
item
|
|
15370
15417
|
];
|
|
@@ -15378,7 +15425,7 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('video', video);
|
|
|
15378
15425
|
return false;
|
|
15379
15426
|
}).on(self.files.container, 'dragstart', (e)=>{
|
|
15380
15427
|
if (self.o.moveFile) {
|
|
15381
|
-
const a = getItem(e.target, self.container);
|
|
15428
|
+
const a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_4__.getItem)(e.target, self.container);
|
|
15382
15429
|
if (!a) {
|
|
15383
15430
|
return;
|
|
15384
15431
|
}
|
|
@@ -17851,9 +17898,13 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('color', color);
|
|
|
17851
17898
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
17852
17899
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
|
|
17853
17900
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(84839);
|
|
17854
|
-
/* harmony import */ var
|
|
17855
|
-
/* harmony import */ var
|
|
17856
|
-
/* harmony import */ var
|
|
17901
|
+
/* harmony import */ var jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(49574);
|
|
17902
|
+
/* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91672);
|
|
17903
|
+
/* harmony import */ var jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(29200);
|
|
17904
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(68616);
|
|
17905
|
+
/* harmony import */ var jodit_core_helpers_utils_error_error__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(38027);
|
|
17906
|
+
/* harmony import */ var jodit_core_ui_group_list__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(97959);
|
|
17907
|
+
/* harmony import */ var jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(4274);
|
|
17857
17908
|
/*!
|
|
17858
17909
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
17859
17910
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -17869,8 +17920,12 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('color', color);
|
|
|
17869
17920
|
|
|
17870
17921
|
|
|
17871
17922
|
|
|
17872
|
-
|
|
17873
|
-
|
|
17923
|
+
|
|
17924
|
+
|
|
17925
|
+
|
|
17926
|
+
|
|
17927
|
+
class ToolbarCollection extends jodit_core_ui_group_list__WEBPACK_IMPORTED_MODULE_8__.UIList {
|
|
17928
|
+
className() {
|
|
17874
17929
|
return 'ToolbarCollection';
|
|
17875
17930
|
}
|
|
17876
17931
|
/**
|
|
@@ -17880,10 +17935,10 @@ class ToolbarCollection extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UILis
|
|
|
17880
17935
|
return button || null;
|
|
17881
17936
|
}
|
|
17882
17937
|
makeButton(control, target = null) {
|
|
17883
|
-
return (0,
|
|
17938
|
+
return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_9__.makeButton)(this.j, control, target);
|
|
17884
17939
|
}
|
|
17885
17940
|
makeSelect(control, target = null) {
|
|
17886
|
-
return (0,
|
|
17941
|
+
return (0,jodit_modules_toolbar_factory__WEBPACK_IMPORTED_MODULE_9__.makeSelect)(this.j, control, target);
|
|
17887
17942
|
}
|
|
17888
17943
|
/**
|
|
17889
17944
|
* Button should be active
|
|
@@ -17926,7 +17981,7 @@ class ToolbarCollection extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UILis
|
|
|
17926
17981
|
this.appendTo(this.j.toolbarContainer);
|
|
17927
17982
|
}
|
|
17928
17983
|
showInline(bound) {
|
|
17929
|
-
throw (0,
|
|
17984
|
+
throw (0,jodit_core_helpers_utils_error_error__WEBPACK_IMPORTED_MODULE_7__.error)('The method is not implemented for this class.');
|
|
17930
17985
|
}
|
|
17931
17986
|
/** @override **/ build(items, target = null) {
|
|
17932
17987
|
const itemsWithGroupps = this.j.e.fire('beforeToolbarBuild', items);
|
|
@@ -17948,20 +18003,34 @@ class ToolbarCollection extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_4__.UILis
|
|
|
17948
18003
|
}
|
|
17949
18004
|
}
|
|
17950
18005
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
17951
|
-
(0,
|
|
17952
|
-
|
|
18006
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_6__.watch)(':afterInit'),
|
|
18007
|
+
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_3__.autobind
|
|
17953
18008
|
], ToolbarCollection.prototype, "__immediateUpdate", null);
|
|
17954
18009
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
17955
18010
|
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.debounce)((ctx)=>ctx.j.defaultTimeout, true)
|
|
17956
18011
|
], ToolbarCollection.prototype, "update", null);
|
|
17957
18012
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
17958
|
-
(0,
|
|
18013
|
+
(0,jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_5__.hook)('ready')
|
|
17959
18014
|
], ToolbarCollection.prototype, "__initEvents", null);
|
|
17960
18015
|
ToolbarCollection = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
17961
|
-
|
|
18016
|
+
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__.component
|
|
17962
18017
|
], ToolbarCollection);
|
|
17963
18018
|
|
|
17964
18019
|
|
|
18020
|
+
/***/ }),
|
|
18021
|
+
|
|
18022
|
+
/***/ 42689:
|
|
18023
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
18024
|
+
|
|
18025
|
+
"use strict";
|
|
18026
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
18027
|
+
/* harmony export */ eventEmitter: function() { return /* binding */ eventEmitter; }
|
|
18028
|
+
/* harmony export */ });
|
|
18029
|
+
/* harmony import */ var _event_emitter__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(93747);
|
|
18030
|
+
|
|
18031
|
+
const eventEmitter = new _event_emitter__WEBPACK_IMPORTED_MODULE_0__.EventEmitter();
|
|
18032
|
+
|
|
18033
|
+
|
|
17965
18034
|
/***/ }),
|
|
17966
18035
|
|
|
17967
18036
|
/***/ 42766:
|
|
@@ -21947,12 +22016,10 @@ module.exports = "<svg viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
21947
22016
|
"use strict";
|
|
21948
22017
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21949
22018
|
/* harmony export */ FiniteStateMachine: function() { return /* reexport safe */ _finite_state_machine__WEBPACK_IMPORTED_MODULE_1__.FiniteStateMachine; },
|
|
21950
|
-
/* harmony export */ elementsEqualAttributes: function() { return /* reexport safe */ _is_same_attributes__WEBPACK_IMPORTED_MODULE_7__.elementsEqualAttributes; },
|
|
21951
22019
|
/* harmony export */ extractSelectedPart: function() { return /* reexport safe */ _extract__WEBPACK_IMPORTED_MODULE_0__.extractSelectedPart; },
|
|
21952
22020
|
/* harmony export */ getSuitChild: function() { return /* reexport safe */ _get_suit_child__WEBPACK_IMPORTED_MODULE_2__.getSuitChild; },
|
|
21953
22021
|
/* harmony export */ getSuitParent: function() { return /* reexport safe */ _get_suit_parent__WEBPACK_IMPORTED_MODULE_3__.getSuitParent; },
|
|
21954
22022
|
/* harmony export */ isInsideInvisibleElement: function() { return /* reexport safe */ _is_inside_invisible_element__WEBPACK_IMPORTED_MODULE_5__.isInsideInvisibleElement; },
|
|
21955
|
-
/* harmony export */ isSameAttributes: function() { return /* reexport safe */ _is_same_attributes__WEBPACK_IMPORTED_MODULE_7__.isSameAttributes; },
|
|
21956
22023
|
/* harmony export */ suitableClosest: function() { return /* reexport safe */ _is_suit_element__WEBPACK_IMPORTED_MODULE_8__.suitableClosest; },
|
|
21957
22024
|
/* harmony export */ toggleAttributes: function() { return /* reexport safe */ _toggle_attributes__WEBPACK_IMPORTED_MODULE_11__.toggleAttributes; },
|
|
21958
22025
|
/* harmony export */ toggleOrderedList: function() { return /* reexport safe */ _list_toggle_ordered_list__WEBPACK_IMPORTED_MODULE_9__.toggleOrderedList; },
|
|
@@ -22734,14 +22801,17 @@ module.exports["default"] = ["Type something","About Jodit","Jodit Editor","Jodi
|
|
|
22734
22801
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
22735
22802
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
|
|
22736
22803
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(69364);
|
|
22737
|
-
/* harmony import */ var
|
|
22738
|
-
/* harmony import */ var
|
|
22739
|
-
/* harmony import */ var
|
|
22740
|
-
/* harmony import */ var
|
|
22741
|
-
/* harmony import */ var
|
|
22742
|
-
/* harmony import */ var
|
|
22743
|
-
/* harmony import */ var
|
|
22744
|
-
/* harmony import */ var
|
|
22804
|
+
/* harmony import */ var jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(51676);
|
|
22805
|
+
/* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(91672);
|
|
22806
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(68616);
|
|
22807
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(23211);
|
|
22808
|
+
/* harmony import */ var jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91565);
|
|
22809
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(85932);
|
|
22810
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(28712);
|
|
22811
|
+
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__);
|
|
22812
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(7909);
|
|
22813
|
+
/* harmony import */ var jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(96007);
|
|
22814
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(29434);
|
|
22745
22815
|
/*!
|
|
22746
22816
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
22747
22817
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -22760,6 +22830,8 @@ module.exports["default"] = ["Type something","About Jodit","Jodit Editor","Jodi
|
|
|
22760
22830
|
|
|
22761
22831
|
|
|
22762
22832
|
|
|
22833
|
+
|
|
22834
|
+
|
|
22763
22835
|
const UIButtonState = ()=>({
|
|
22764
22836
|
size: 'middle',
|
|
22765
22837
|
type: 'button',
|
|
@@ -22778,7 +22850,7 @@ const UIButtonState = ()=>({
|
|
|
22778
22850
|
text: '',
|
|
22779
22851
|
tabIndex: undefined
|
|
22780
22852
|
});
|
|
22781
|
-
class UIButton extends
|
|
22853
|
+
class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_11__.UIElement {
|
|
22782
22854
|
/** @override */ className() {
|
|
22783
22855
|
return 'UIButton';
|
|
22784
22856
|
}
|
|
@@ -22792,29 +22864,30 @@ class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElem
|
|
|
22792
22864
|
* DOM container for text content
|
|
22793
22865
|
*/ get text() {
|
|
22794
22866
|
const text = this.getElm('text');
|
|
22795
|
-
(0,
|
|
22867
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__.assert)(text, 'Text element not found');
|
|
22796
22868
|
return text;
|
|
22797
22869
|
}
|
|
22798
22870
|
/**
|
|
22799
22871
|
* DOM container for icon
|
|
22800
22872
|
*/ get icon() {
|
|
22801
22873
|
const icon = this.getElm('icon');
|
|
22802
|
-
(0,
|
|
22874
|
+
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_9__.assert)(icon, 'Icon element not found');
|
|
22803
22875
|
return icon;
|
|
22804
22876
|
}
|
|
22805
22877
|
onChangeSize() {
|
|
22806
22878
|
this.setMod('size', this.state.size);
|
|
22807
22879
|
}
|
|
22808
22880
|
onChangeType() {
|
|
22809
|
-
(0,
|
|
22881
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'type', this.state.type);
|
|
22810
22882
|
}
|
|
22811
22883
|
onChangeRole() {
|
|
22812
|
-
(0,
|
|
22884
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'role', this.state.role);
|
|
22813
22885
|
}
|
|
22814
22886
|
/**
|
|
22815
22887
|
* Set size from a parent list
|
|
22816
22888
|
*/ updateSize() {
|
|
22817
|
-
const
|
|
22889
|
+
const UIList = (0,jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__.getComponentClass)('UIList');
|
|
22890
|
+
const pe = this.closest(UIList);
|
|
22818
22891
|
if (pe) {
|
|
22819
22892
|
this.state.size = pe.buttonSize;
|
|
22820
22893
|
return;
|
|
@@ -22830,34 +22903,34 @@ class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElem
|
|
|
22830
22903
|
this.setMod('text-icons', Boolean(this.state.text.trim().length));
|
|
22831
22904
|
}
|
|
22832
22905
|
onChangeDisabled() {
|
|
22833
|
-
(0,
|
|
22906
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'disabled', this.state.disabled || null);
|
|
22834
22907
|
}
|
|
22835
22908
|
onChangeActivated() {
|
|
22836
|
-
(0,
|
|
22909
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'aria-pressed', this.state.activated);
|
|
22837
22910
|
}
|
|
22838
22911
|
onChangeName() {
|
|
22839
22912
|
this.container.classList.add(`${this.componentName}_${this.clearName(this.state.name)}`);
|
|
22840
22913
|
this.name = this.state.name;
|
|
22841
|
-
(0,
|
|
22842
|
-
(0,
|
|
22914
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'data-ref', this.state.name);
|
|
22915
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'ref', this.state.name);
|
|
22843
22916
|
}
|
|
22844
22917
|
onChangeTooltip() {
|
|
22845
22918
|
const i8nTooltip = this.state.tooltip ? this.jodit.i18n(this.state.tooltip) : null;
|
|
22846
22919
|
if (this.get('j.o.useNativeTooltip')) {
|
|
22847
|
-
(0,
|
|
22920
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'title', i8nTooltip);
|
|
22848
22921
|
}
|
|
22849
|
-
(0,
|
|
22922
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'aria-label', i8nTooltip);
|
|
22850
22923
|
}
|
|
22851
22924
|
onChangeTabIndex() {
|
|
22852
|
-
(0,
|
|
22925
|
+
(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_10__.attr)(this.container, 'tabindex', this.state.tabIndex);
|
|
22853
22926
|
}
|
|
22854
22927
|
onChangeIcon() {
|
|
22855
22928
|
const textIcons = this.get('j.o.textIcons');
|
|
22856
|
-
if (textIcons === true || (0,
|
|
22929
|
+
if (textIcons === true || (0,jodit_core_helpers_checker_is_function__WEBPACK_IMPORTED_MODULE_7__.isFunction)(textIcons) && textIcons(this.state.name)) {
|
|
22857
22930
|
return;
|
|
22858
22931
|
}
|
|
22859
|
-
|
|
22860
|
-
const iconElement =
|
|
22932
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__.Dom.detach(this.icon);
|
|
22933
|
+
const iconElement = jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_12__.Icon.makeIcon(this.j, this.state.icon);
|
|
22861
22934
|
iconElement && this.icon.appendChild(iconElement);
|
|
22862
22935
|
}
|
|
22863
22936
|
/**
|
|
@@ -22869,7 +22942,7 @@ class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElem
|
|
|
22869
22942
|
* Element has focus
|
|
22870
22943
|
*/ isFocused() {
|
|
22871
22944
|
const { activeElement } = this.od;
|
|
22872
|
-
return Boolean(activeElement &&
|
|
22945
|
+
return Boolean(activeElement && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_6__.Dom.isOrContains(this.container, activeElement));
|
|
22873
22946
|
}
|
|
22874
22947
|
/** @override */ createContainer() {
|
|
22875
22948
|
const cn = this.componentName;
|
|
@@ -22923,83 +22996,83 @@ class UIButton extends jodit_core_ui_element__WEBPACK_IMPORTED_MODULE_8__.UIElem
|
|
|
22923
22996
|
}
|
|
22924
22997
|
}
|
|
22925
22998
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22926
|
-
|
|
22999
|
+
jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_3__.cache
|
|
22927
23000
|
], UIButton.prototype, "text", null);
|
|
22928
23001
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22929
|
-
|
|
23002
|
+
jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_3__.cache
|
|
22930
23003
|
], UIButton.prototype, "icon", null);
|
|
22931
23004
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22932
|
-
(0,
|
|
23005
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.size', {
|
|
22933
23006
|
immediately: false
|
|
22934
23007
|
})
|
|
22935
23008
|
], UIButton.prototype, "onChangeSize", null);
|
|
22936
23009
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22937
|
-
(0,
|
|
23010
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.type', {
|
|
22938
23011
|
immediately: false
|
|
22939
23012
|
})
|
|
22940
23013
|
], UIButton.prototype, "onChangeType", null);
|
|
22941
23014
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22942
|
-
(0,
|
|
23015
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.role', {
|
|
22943
23016
|
immediately: false
|
|
22944
23017
|
})
|
|
22945
23018
|
], UIButton.prototype, "onChangeRole", null);
|
|
22946
23019
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22947
|
-
(0,
|
|
23020
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('parentElement')
|
|
22948
23021
|
], UIButton.prototype, "updateSize", null);
|
|
22949
23022
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22950
|
-
(0,
|
|
23023
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.variant', {
|
|
22951
23024
|
immediately: false
|
|
22952
23025
|
})
|
|
22953
23026
|
], UIButton.prototype, "onChangeStatus", null);
|
|
22954
23027
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22955
|
-
(0,
|
|
23028
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.text', {
|
|
22956
23029
|
immediately: false
|
|
22957
23030
|
})
|
|
22958
23031
|
], UIButton.prototype, "onChangeText", null);
|
|
22959
23032
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22960
|
-
(0,
|
|
23033
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.text', {
|
|
22961
23034
|
immediately: false
|
|
22962
23035
|
})
|
|
22963
23036
|
], UIButton.prototype, "onChangeTextSetMode", null);
|
|
22964
23037
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22965
|
-
(0,
|
|
23038
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.disabled')
|
|
22966
23039
|
], UIButton.prototype, "onChangeDisabled", null);
|
|
22967
23040
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22968
|
-
(0,
|
|
23041
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.activated')
|
|
22969
23042
|
], UIButton.prototype, "onChangeActivated", null);
|
|
22970
23043
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22971
|
-
(0,
|
|
23044
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.name', {
|
|
22972
23045
|
immediately: false
|
|
22973
23046
|
})
|
|
22974
23047
|
], UIButton.prototype, "onChangeName", null);
|
|
22975
23048
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22976
|
-
(0,
|
|
23049
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.tooltip', {
|
|
22977
23050
|
immediately: false
|
|
22978
23051
|
})
|
|
22979
23052
|
], UIButton.prototype, "onChangeTooltip", null);
|
|
22980
23053
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22981
|
-
(0,
|
|
23054
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.tabIndex', {
|
|
22982
23055
|
immediately: false
|
|
22983
23056
|
})
|
|
22984
23057
|
], UIButton.prototype, "onChangeTabIndex", null);
|
|
22985
23058
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22986
|
-
(0,
|
|
23059
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('state.icon', {
|
|
22987
23060
|
immediately: false
|
|
22988
23061
|
})
|
|
22989
23062
|
], UIButton.prototype, "onChangeIcon", null);
|
|
22990
23063
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22991
|
-
|
|
23064
|
+
jodit_core_decorators_cache_cache__WEBPACK_IMPORTED_MODULE_3__.cacheHTML
|
|
22992
23065
|
], UIButton.prototype, "createContainer", null);
|
|
22993
23066
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22994
|
-
(0,
|
|
23067
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('button:click')
|
|
22995
23068
|
], UIButton.prototype, "__onActionFire", null);
|
|
22996
23069
|
UIButton = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
22997
|
-
|
|
23070
|
+
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_4__.component
|
|
22998
23071
|
], UIButton);
|
|
22999
23072
|
function Button(jodit, stateOrText, text, variant) {
|
|
23000
23073
|
const button = new UIButton(jodit);
|
|
23001
23074
|
button.state.tabIndex = jodit.o.allowTabNavigation ? 0 : -1;
|
|
23002
|
-
if ((0,
|
|
23075
|
+
if ((0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_8__.isString)(stateOrText)) {
|
|
23003
23076
|
button.state.icon.name = stateOrText;
|
|
23004
23077
|
button.state.name = stateOrText;
|
|
23005
23078
|
if (variant) {
|
|
@@ -23033,8 +23106,8 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
|
|
|
23033
23106
|
/* harmony export */ });
|
|
23034
23107
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
23035
23108
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
|
|
23036
|
-
/* harmony import */ var
|
|
23037
|
-
/* harmony import */ var
|
|
23109
|
+
/* harmony import */ var jodit_core_component_view_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(59609);
|
|
23110
|
+
/* harmony import */ var jodit_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(55184);
|
|
23038
23111
|
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(5266);
|
|
23039
23112
|
/* harmony import */ var _command__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(8838);
|
|
23040
23113
|
/* harmony import */ var _snapshot__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(46363);
|
|
@@ -23062,7 +23135,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.history = {
|
|
|
23062
23135
|
};
|
|
23063
23136
|
/**
|
|
23064
23137
|
* The module monitors the status of the editor and creates / deletes the required number of Undo / Redo shots .
|
|
23065
|
-
*/ class History extends
|
|
23138
|
+
*/ class History extends jodit_core_component_view_component__WEBPACK_IMPORTED_MODULE_2__.ViewComponent {
|
|
23066
23139
|
/** @override */ className() {
|
|
23067
23140
|
return 'History';
|
|
23068
23141
|
}
|
|
@@ -23184,7 +23257,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.history = {
|
|
|
23184
23257
|
}
|
|
23185
23258
|
}
|
|
23186
23259
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
23187
|
-
(0,
|
|
23260
|
+
(0,jodit_core_decorators_debounce_debounce__WEBPACK_IMPORTED_MODULE_3__.debounce)()
|
|
23188
23261
|
], History.prototype, "onChange", null);
|
|
23189
23262
|
|
|
23190
23263
|
|
|
@@ -23569,9 +23642,8 @@ class FileBrowserTree extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__.UIGroup
|
|
|
23569
23642
|
/* harmony export */ init: function() { return /* binding */ init; }
|
|
23570
23643
|
/* harmony export */ });
|
|
23571
23644
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
|
|
23572
|
-
/* harmony import */ var
|
|
23573
|
-
/* harmony import */ var
|
|
23574
|
-
/* harmony import */ var _load__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(3050);
|
|
23645
|
+
/* harmony import */ var jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(52433);
|
|
23646
|
+
/* harmony import */ var _load__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3050);
|
|
23575
23647
|
/*!
|
|
23576
23648
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
23577
23649
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -23581,12 +23653,11 @@ class FileBrowserTree extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__.UIGroup
|
|
|
23581
23653
|
*/
|
|
23582
23654
|
|
|
23583
23655
|
|
|
23584
|
-
|
|
23585
23656
|
/**
|
|
23586
23657
|
* Init plugin if it has no dependencies, in another case wait requires plugins will be init
|
|
23587
23658
|
* @private
|
|
23588
|
-
*/ function init(jodit, pluginName, plugin, instance, doneList, waitingList) {
|
|
23589
|
-
if ((0,
|
|
23659
|
+
*/ function init(jodit, pluginName, plugin, instance, doneList, waitingList, getContainer) {
|
|
23660
|
+
if ((0,jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_1__.isInitable)(instance)) {
|
|
23590
23661
|
try {
|
|
23591
23662
|
instance.init(jodit);
|
|
23592
23663
|
} catch (e) {
|
|
@@ -23599,12 +23670,12 @@ class FileBrowserTree extends jodit_core_ui__WEBPACK_IMPORTED_MODULE_0__.UIGroup
|
|
|
23599
23670
|
doneList.set(pluginName, instance);
|
|
23600
23671
|
waitingList.delete(pluginName);
|
|
23601
23672
|
if (instance.hasStyle) {
|
|
23602
|
-
(0,
|
|
23673
|
+
(0,_load__WEBPACK_IMPORTED_MODULE_2__.loadStyle)(jodit, pluginName).catch((e)=>{
|
|
23603
23674
|
!jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD && console.error(e);
|
|
23604
23675
|
});
|
|
23605
23676
|
}
|
|
23606
23677
|
if (instance.styles) {
|
|
23607
|
-
const style =
|
|
23678
|
+
const style = getContainer(jodit, pluginName, 'style');
|
|
23608
23679
|
style.innerHTML = instance.styles;
|
|
23609
23680
|
}
|
|
23610
23681
|
}
|
|
@@ -25172,16 +25243,10 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
|
|
|
25172
25243
|
"use strict";
|
|
25173
25244
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
25174
25245
|
/* harmony export */ CommitStyle: function() { return /* reexport safe */ _style_commit_style__WEBPACK_IMPORTED_MODULE_1__.CommitStyle; },
|
|
25175
|
-
/* harmony export */
|
|
25176
|
-
/* harmony export */ REPLACE: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.REPLACE; },
|
|
25177
|
-
/* harmony export */ Selection: function() { return /* reexport safe */ _selection__WEBPACK_IMPORTED_MODULE_0__.Selection; },
|
|
25178
|
-
/* harmony export */ UNSET: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.UNSET; },
|
|
25179
|
-
/* harmony export */ UNWRAP: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.UNWRAP; },
|
|
25180
|
-
/* harmony export */ WRAP: function() { return /* reexport safe */ _style_constants__WEBPACK_IMPORTED_MODULE_2__.WRAP; }
|
|
25246
|
+
/* harmony export */ Selection: function() { return /* reexport safe */ _selection__WEBPACK_IMPORTED_MODULE_0__.Selection; }
|
|
25181
25247
|
/* harmony export */ });
|
|
25182
25248
|
/* harmony import */ var _selection__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(98595);
|
|
25183
25249
|
/* harmony import */ var _style_commit_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(84578);
|
|
25184
|
-
/* harmony import */ var _style_constants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(98394);
|
|
25185
25250
|
/*!
|
|
25186
25251
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
25187
25252
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -25589,14 +25654,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25589
25654
|
"use strict";
|
|
25590
25655
|
/* harmony import */ var _swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(49376);
|
|
25591
25656
|
/* harmony import */ var jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(27795);
|
|
25592
|
-
/* harmony import */ var
|
|
25593
|
-
/* harmony import */ var
|
|
25594
|
-
/* harmony import */ var
|
|
25595
|
-
/* harmony import */ var
|
|
25596
|
-
/* harmony import */ var
|
|
25597
|
-
/* harmony import */ var
|
|
25598
|
-
/* harmony import */ var
|
|
25599
|
-
/* harmony import */ var
|
|
25657
|
+
/* harmony import */ var jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(7909);
|
|
25658
|
+
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(33201);
|
|
25659
|
+
/* harmony import */ var jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29434);
|
|
25660
|
+
/* harmony import */ var jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31125);
|
|
25661
|
+
/* harmony import */ var jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(66206);
|
|
25662
|
+
/* harmony import */ var jodit_modules_file_browser_factories__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(18272);
|
|
25663
|
+
/* harmony import */ var jodit_modules_file_browser_fetch_delete_file__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(1305);
|
|
25664
|
+
/* harmony import */ var jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(53202);
|
|
25665
|
+
/* harmony import */ var jodit_modules_image_editor_image_editor__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(43271);
|
|
25600
25666
|
/*!
|
|
25601
25667
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
25602
25668
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -25613,21 +25679,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25613
25679
|
|
|
25614
25680
|
|
|
25615
25681
|
|
|
25616
|
-
|
|
25682
|
+
|
|
25683
|
+
const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = 'next', right = 'right')=>`<div class="${CLASS_PREVIEW}__navigation ${CLASS_PREVIEW}__navigation_arrow_${next}">` + '' + jodit_core_ui_icon__WEBPACK_IMPORTED_MODULE_4__.Icon.get('angle-' + right) + '</a>';
|
|
25617
25684
|
/* harmony default export */ __webpack_exports__["default"] = ((self)=>{
|
|
25618
25685
|
if (!self.o.contextMenu) {
|
|
25619
25686
|
return ()=>{};
|
|
25620
25687
|
}
|
|
25621
|
-
const contextmenu = (0,
|
|
25688
|
+
const contextmenu = (0,jodit_modules_file_browser_factories__WEBPACK_IMPORTED_MODULE_7__.makeContextMenu)(self);
|
|
25622
25689
|
return (e)=>{
|
|
25623
|
-
const a = (0,
|
|
25690
|
+
const a = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_6__.getItem)(e.target, self.container);
|
|
25624
25691
|
if (!a) {
|
|
25625
25692
|
return;
|
|
25626
25693
|
}
|
|
25627
25694
|
let item = a;
|
|
25628
|
-
const opt = self.options, ga = (key)=>(0,
|
|
25695
|
+
const opt = self.options, ga = (key)=>(0,jodit_core_helpers_utils_attr__WEBPACK_IMPORTED_MODULE_2__.attr)(item, key) || '';
|
|
25629
25696
|
self.async.setTimeout(()=>{
|
|
25630
|
-
const selectedItem = (0,
|
|
25697
|
+
const selectedItem = (0,jodit_modules_file_browser_builders_utils__WEBPACK_IMPORTED_MODULE_6__.elementToItem)(a, (0,jodit_modules_file_browser_builders_elements_map__WEBPACK_IMPORTED_MODULE_5__.elementsMap)(self));
|
|
25631
25698
|
if (!selectedItem) {
|
|
25632
25699
|
return;
|
|
25633
25700
|
}
|
|
@@ -25638,7 +25705,7 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
|
|
|
25638
25705
|
ga('data-is-file') !== '1' && opt.editImage && (self.dataProvider.canI('ImageResize') || self.dataProvider.canI('ImageCrop')) ? {
|
|
25639
25706
|
icon: 'pencil',
|
|
25640
25707
|
title: 'Edit',
|
|
25641
|
-
exec: ()=>
|
|
25708
|
+
exec: ()=>jodit_modules_image_editor_image_editor__WEBPACK_IMPORTED_MODULE_10__.openImageEditor.call(self, ga('href'), ga('data-name'), ga('data-path'), ga('data-source'))
|
|
25642
25709
|
} : false,
|
|
25643
25710
|
self.dataProvider.canI('FileRename') ? {
|
|
25644
25711
|
icon: 'italic',
|
|
@@ -25652,12 +25719,12 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
|
|
|
25652
25719
|
title: 'Delete',
|
|
25653
25720
|
exec: ()=>(0,_swc_helpers_async_to_generator__WEBPACK_IMPORTED_MODULE_0__._)(function*() {
|
|
25654
25721
|
try {
|
|
25655
|
-
yield (0,
|
|
25722
|
+
yield (0,jodit_modules_file_browser_fetch_delete_file__WEBPACK_IMPORTED_MODULE_8__.deleteFile)(self, ga('data-name'), ga('data-source'));
|
|
25656
25723
|
} catch (e) {
|
|
25657
25724
|
return self.status(e);
|
|
25658
25725
|
}
|
|
25659
25726
|
self.state.activeElements = [];
|
|
25660
|
-
return (0,
|
|
25727
|
+
return (0,jodit_modules_file_browser_fetch_load_tree__WEBPACK_IMPORTED_MODULE_9__.loadTree)(self).catch(self.status);
|
|
25661
25728
|
})()
|
|
25662
25729
|
} : false,
|
|
25663
25730
|
opt.preview ? {
|
|
@@ -25707,7 +25774,7 @@ const CLASS_PREVIEW = 'jodit-file-browser-preview', preview_tpl_next = (next = '
|
|
|
25707
25774
|
item = jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.prevWithClass(item, self.files.getFullElName('item'));
|
|
25708
25775
|
}
|
|
25709
25776
|
if (!item) {
|
|
25710
|
-
throw (0,
|
|
25777
|
+
throw (0,jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_3__.error)('Need element');
|
|
25711
25778
|
}
|
|
25712
25779
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.detach(temp_content);
|
|
25713
25780
|
jodit_core_dom__WEBPACK_IMPORTED_MODULE_1__.Dom.detach(preview_box);
|
|
@@ -27476,6 +27543,29 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27476
27543
|
|
|
27477
27544
|
|
|
27478
27545
|
|
|
27546
|
+
/***/ }),
|
|
27547
|
+
|
|
27548
|
+
/***/ 66206:
|
|
27549
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
27550
|
+
|
|
27551
|
+
"use strict";
|
|
27552
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
27553
|
+
/* harmony export */ elementToItem: function() { return /* binding */ elementToItem; },
|
|
27554
|
+
/* harmony export */ getItem: function() { return /* binding */ getItem; }
|
|
27555
|
+
/* harmony export */ });
|
|
27556
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
27557
|
+
|
|
27558
|
+
/**
|
|
27559
|
+
* @private
|
|
27560
|
+
*/ const getItem = (node, root, tag = 'a')=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.closest(node, (elm)=>jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(elm, tag), root);
|
|
27561
|
+
/**
|
|
27562
|
+
* @private
|
|
27563
|
+
*/ const elementToItem = (elm, elementsMap)=>{
|
|
27564
|
+
const { key } = elm.dataset, { item } = elementsMap[key || ''];
|
|
27565
|
+
return item;
|
|
27566
|
+
};
|
|
27567
|
+
|
|
27568
|
+
|
|
27479
27569
|
/***/ }),
|
|
27480
27570
|
|
|
27481
27571
|
/***/ 66547:
|
|
@@ -28138,7 +28228,6 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.controls.filebrowser
|
|
|
28138
28228
|
|
|
28139
28229
|
"use strict";
|
|
28140
28230
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
28141
|
-
/* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
|
|
28142
28231
|
/* harmony export */ watch: function() { return /* binding */ watch; }
|
|
28143
28232
|
/* harmony export */ });
|
|
28144
28233
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(69364);
|
|
@@ -28148,6 +28237,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.controls.filebrowser
|
|
|
28148
28237
|
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(62101);
|
|
28149
28238
|
/* harmony import */ var jodit_core_helpers_checker_is_view_object__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31534);
|
|
28150
28239
|
/* harmony import */ var jodit_core_helpers_utils_error__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33201);
|
|
28240
|
+
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(71125);
|
|
28151
28241
|
/*!
|
|
28152
28242
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
28153
28243
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -28163,14 +28253,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_6__.Config.prototype.controls.filebrowser
|
|
|
28163
28253
|
|
|
28164
28254
|
|
|
28165
28255
|
|
|
28166
|
-
|
|
28167
|
-
let desc;
|
|
28168
|
-
do {
|
|
28169
|
-
desc = Object.getOwnPropertyDescriptor(obj, prop);
|
|
28170
|
-
obj = Object.getPrototypeOf(obj);
|
|
28171
|
-
}while (!desc && obj)
|
|
28172
|
-
return desc;
|
|
28173
|
-
}
|
|
28256
|
+
|
|
28174
28257
|
/**
|
|
28175
28258
|
* Watch decorator. Added observer for some change in field value
|
|
28176
28259
|
*/ function watch(observeFields, opts) {
|
|
@@ -28217,7 +28300,7 @@ function getPropertyDescriptor(obj, prop) {
|
|
|
28217
28300
|
const observableValue = (0,jodit_core_event_emitter_observable__WEBPACK_IMPORTED_MODULE_1__.observable)(value);
|
|
28218
28301
|
observableValue.on(`change.${teil.join('.')}`, callback);
|
|
28219
28302
|
}
|
|
28220
|
-
const descriptor = getPropertyDescriptor(target, key);
|
|
28303
|
+
const descriptor = (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_7__.getPropertyDescriptor)(target, key);
|
|
28221
28304
|
Object.defineProperty(component, key, {
|
|
28222
28305
|
configurable: true,
|
|
28223
28306
|
set (v) {
|
|
@@ -29015,10 +29098,10 @@ jodit_core_global__WEBPACK_IMPORTED_MODULE_0__.pluginSystem.add('fullsize', full
|
|
|
29015
29098
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
29016
29099
|
/* harmony export */ observable: function() { return /* binding */ observable; }
|
|
29017
29100
|
/* harmony export */ });
|
|
29018
|
-
/* harmony import */ var
|
|
29019
|
-
/* harmony import */ var
|
|
29020
|
-
/* harmony import */ var
|
|
29021
|
-
/* harmony import */ var
|
|
29101
|
+
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(17312);
|
|
29102
|
+
/* harmony import */ var jodit_core_helpers_checker_is_equal__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94013);
|
|
29103
|
+
/* harmony import */ var jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(62101);
|
|
29104
|
+
/* harmony import */ var jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(71125);
|
|
29022
29105
|
/*!
|
|
29023
29106
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
29024
29107
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -29074,7 +29157,7 @@ function isObservableObject(obj) {
|
|
|
29074
29157
|
const __lockEvent = {};
|
|
29075
29158
|
const __onEvents = {};
|
|
29076
29159
|
const on = (event, callback)=>{
|
|
29077
|
-
if ((0,
|
|
29160
|
+
if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__.isArray)(event)) {
|
|
29078
29161
|
event.map((e)=>on(e, callback));
|
|
29079
29162
|
return obj;
|
|
29080
29163
|
}
|
|
@@ -29085,7 +29168,7 @@ function isObservableObject(obj) {
|
|
|
29085
29168
|
return obj;
|
|
29086
29169
|
};
|
|
29087
29170
|
const fire = (event, ...attr)=>{
|
|
29088
|
-
if ((0,
|
|
29171
|
+
if ((0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_0__.isArray)(event)) {
|
|
29089
29172
|
event.map((e)=>fire(e, ...attr));
|
|
29090
29173
|
return;
|
|
29091
29174
|
}
|
|
@@ -29111,16 +29194,16 @@ function isObservableObject(obj) {
|
|
|
29111
29194
|
const key = _key;
|
|
29112
29195
|
const prefix = prefixes.concat(key).filter((a)=>a.length);
|
|
29113
29196
|
store[key] = dict[key];
|
|
29114
|
-
const descriptor = (0,
|
|
29197
|
+
const descriptor = (0,jodit_core_helpers_utils_utils__WEBPACK_IMPORTED_MODULE_3__.getPropertyDescriptor)(dict, key);
|
|
29115
29198
|
Object.defineProperty(dict, key, {
|
|
29116
29199
|
set: (value)=>{
|
|
29117
29200
|
const oldValue = store[key];
|
|
29118
|
-
if (!(0,
|
|
29201
|
+
if (!(0,jodit_core_helpers_checker_is_equal__WEBPACK_IMPORTED_MODULE_1__.isFastEqual)(store[key], value)) {
|
|
29119
29202
|
fire([
|
|
29120
29203
|
'beforeChange',
|
|
29121
29204
|
`beforeChange.${prefix.join('.')}`
|
|
29122
29205
|
], key, value);
|
|
29123
|
-
if ((0,
|
|
29206
|
+
if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(value)) {
|
|
29124
29207
|
initAccessors(value, prefix);
|
|
29125
29208
|
}
|
|
29126
29209
|
if (descriptor && descriptor.set) {
|
|
@@ -29148,7 +29231,7 @@ function isObservableObject(obj) {
|
|
|
29148
29231
|
enumerable: true,
|
|
29149
29232
|
configurable: true
|
|
29150
29233
|
});
|
|
29151
|
-
if ((0,
|
|
29234
|
+
if ((0,jodit_core_helpers_checker_is_plain_object__WEBPACK_IMPORTED_MODULE_2__.isPlainObject)(store[key])) {
|
|
29152
29235
|
initAccessors(store[key], prefix);
|
|
29153
29236
|
}
|
|
29154
29237
|
});
|
|
@@ -29206,6 +29289,7 @@ module.exports = "<svg xmlns='http://www.w3.org/2000/svg' viewBox=\"0 0 1792 179
|
|
|
29206
29289
|
/* harmony export */ call: function() { return /* binding */ call; },
|
|
29207
29290
|
/* harmony export */ callPromise: function() { return /* binding */ callPromise; },
|
|
29208
29291
|
/* harmony export */ getDataTransfer: function() { return /* binding */ getDataTransfer; },
|
|
29292
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* binding */ getPropertyDescriptor; },
|
|
29209
29293
|
/* harmony export */ keys: function() { return /* binding */ keys; },
|
|
29210
29294
|
/* harmony export */ loadImage: function() { return /* binding */ loadImage; },
|
|
29211
29295
|
/* harmony export */ markOwner: function() { return /* binding */ markOwner; },
|
|
@@ -29303,6 +29387,14 @@ const keys = (obj, own = true)=>{
|
|
|
29303
29387
|
return null;
|
|
29304
29388
|
}
|
|
29305
29389
|
};
|
|
29390
|
+
function getPropertyDescriptor(obj, prop) {
|
|
29391
|
+
let desc;
|
|
29392
|
+
do {
|
|
29393
|
+
desc = Object.getOwnPropertyDescriptor(obj, prop);
|
|
29394
|
+
obj = Object.getPrototypeOf(obj);
|
|
29395
|
+
}while (!desc && obj)
|
|
29396
|
+
return desc;
|
|
29397
|
+
}
|
|
29306
29398
|
|
|
29307
29399
|
|
|
29308
29400
|
/***/ }),
|
|
@@ -33259,8 +33351,8 @@ function send(uploader, data) {
|
|
|
33259
33351
|
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(23211);
|
|
33260
33352
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28712);
|
|
33261
33353
|
/* harmony import */ var jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__);
|
|
33262
|
-
/* harmony import */ var
|
|
33263
|
-
/* harmony import */ var
|
|
33354
|
+
/* harmony import */ var jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(51640);
|
|
33355
|
+
/* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(98394);
|
|
33264
33356
|
/*!
|
|
33265
33357
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
33266
33358
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -33291,19 +33383,19 @@ const transactions = {
|
|
|
33291
33383
|
[states.START]: {
|
|
33292
33384
|
exec (value) {
|
|
33293
33385
|
const { element, jodit, style, mode, collapsed } = value;
|
|
33294
|
-
if ((0,
|
|
33386
|
+
if ((0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_5__.isInsideInvisibleElement)(element, jodit.editor) || !collapsed && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.isEmptyContent(element)) {
|
|
33295
33387
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, value), {
|
|
33296
33388
|
next: states.END
|
|
33297
33389
|
});
|
|
33298
33390
|
}
|
|
33299
|
-
const elm = (0,
|
|
33391
|
+
const elm = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_5__.getSuitParent)(style, element, jodit.editor) || (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_5__.getSuitChild)(style, element);
|
|
33300
33392
|
if (elm) {
|
|
33301
33393
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, value), {
|
|
33302
33394
|
next: states.ELEMENT,
|
|
33303
33395
|
element: elm
|
|
33304
33396
|
});
|
|
33305
33397
|
}
|
|
33306
|
-
const suit = (0,
|
|
33398
|
+
const suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_5__.suitableClosest)(style, element, jodit.editor);
|
|
33307
33399
|
if (style.elementIsList && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.isList(suit)) {
|
|
33308
33400
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, value), {
|
|
33309
33401
|
next: states.LIST
|
|
@@ -33315,14 +33407,14 @@ const transactions = {
|
|
|
33315
33407
|
});
|
|
33316
33408
|
}
|
|
33317
33409
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, value), {
|
|
33318
|
-
next: mode !==
|
|
33410
|
+
next: mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_6__.UNWRAP ? states.UNWRAP_CHILDREN : states.END
|
|
33319
33411
|
});
|
|
33320
33412
|
}
|
|
33321
33413
|
},
|
|
33322
33414
|
[states.LIST]: {
|
|
33323
33415
|
exec (value) {
|
|
33324
33416
|
const { element, jodit, mode } = value;
|
|
33325
|
-
if (mode !==
|
|
33417
|
+
if (mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_6__.INITIAL && mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_6__.UNWRAP && mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_6__.REPLACE) {
|
|
33326
33418
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, value), {
|
|
33327
33419
|
next: states.END
|
|
33328
33420
|
});
|
|
@@ -33348,7 +33440,7 @@ const transactions = {
|
|
|
33348
33440
|
[states.TOGGLE_LIST]: {
|
|
33349
33441
|
exec (value) {
|
|
33350
33442
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, value), {
|
|
33351
|
-
mode: (0,
|
|
33443
|
+
mode: (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_5__.toggleOrderedList)(value.style, value.element, value.jodit, value.mode),
|
|
33352
33444
|
next: states.END
|
|
33353
33445
|
});
|
|
33354
33446
|
}
|
|
@@ -33357,14 +33449,14 @@ const transactions = {
|
|
|
33357
33449
|
exec (value) {
|
|
33358
33450
|
var _style_options_attributes;
|
|
33359
33451
|
const { element, jodit, style } = value;
|
|
33360
|
-
const suit = (0,
|
|
33452
|
+
const suit = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_5__.suitableClosest)(style, element, jodit.editor);
|
|
33361
33453
|
(0,jodit_core_helpers_utils_assert__WEBPACK_IMPORTED_MODULE_4__.assert)(suit, 'This place should have an element');
|
|
33362
33454
|
// If we're applying inline styles to a block element, don't split the block
|
|
33363
33455
|
const isApplyingInlineStyle = !style.elementIsBlock && ((_style_options_attributes = style.options.attributes) === null || _style_options_attributes === void 0 ? void 0 : _style_options_attributes.style);
|
|
33364
33456
|
const shouldNotSplitBlock = isApplyingInlineStyle && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.isBlock(suit);
|
|
33365
33457
|
if (!shouldNotSplitBlock) {
|
|
33366
33458
|
if (!style.elementIsBlock) {
|
|
33367
|
-
(0,
|
|
33459
|
+
(0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_5__.extractSelectedPart)(suit, element, jodit);
|
|
33368
33460
|
}
|
|
33369
33461
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, value), {
|
|
33370
33462
|
element: suit,
|
|
@@ -33380,13 +33472,13 @@ const transactions = {
|
|
|
33380
33472
|
[states.UNWRAP_CHILDREN]: {
|
|
33381
33473
|
exec (value) {
|
|
33382
33474
|
const { element, style } = value;
|
|
33383
|
-
if (!(0,
|
|
33475
|
+
if (!(0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_5__.unwrapChildren)(style, element)) {
|
|
33384
33476
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, value), {
|
|
33385
33477
|
next: states.WRAP
|
|
33386
33478
|
});
|
|
33387
33479
|
}
|
|
33388
33480
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, value), {
|
|
33389
|
-
mode:
|
|
33481
|
+
mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_6__.UNWRAP,
|
|
33390
33482
|
next: states.END
|
|
33391
33483
|
});
|
|
33392
33484
|
}
|
|
@@ -33394,10 +33486,10 @@ const transactions = {
|
|
|
33394
33486
|
[states.WRAP]: {
|
|
33395
33487
|
exec (value) {
|
|
33396
33488
|
const { element, jodit, style } = value;
|
|
33397
|
-
const wrapper = (0,
|
|
33489
|
+
const wrapper = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_5__.wrap)(style, element, jodit);
|
|
33398
33490
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, value), {
|
|
33399
33491
|
next: style.elementIsList ? states.END : states.CHANGE,
|
|
33400
|
-
mode:
|
|
33492
|
+
mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_6__.WRAP,
|
|
33401
33493
|
element: wrapper
|
|
33402
33494
|
});
|
|
33403
33495
|
}
|
|
@@ -33405,7 +33497,7 @@ const transactions = {
|
|
|
33405
33497
|
[states.ELEMENT]: {
|
|
33406
33498
|
exec (value) {
|
|
33407
33499
|
const { style, element, jodit } = value;
|
|
33408
|
-
if ((0,
|
|
33500
|
+
if ((0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_5__.toggleAttributes)(style, element, jodit, jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_6__.INITIAL, true) !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_6__.INITIAL) {
|
|
33409
33501
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, value), {
|
|
33410
33502
|
next: states.CHANGE
|
|
33411
33503
|
});
|
|
@@ -33424,8 +33516,8 @@ const transactions = {
|
|
|
33424
33516
|
[states.CHANGE]: {
|
|
33425
33517
|
exec (value) {
|
|
33426
33518
|
const { style, element, jodit, mode } = value;
|
|
33427
|
-
const newMode = (0,
|
|
33428
|
-
if (mode !==
|
|
33519
|
+
const newMode = (0,jodit_core_selection_style_api__WEBPACK_IMPORTED_MODULE_5__.toggleAttributes)(style, element, jodit, value.mode);
|
|
33520
|
+
if (mode !== jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_6__.WRAP && newMode === jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_6__.UNSET && !element.attributes.length && jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.isTag(element, style.element)) {
|
|
33429
33521
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, value), {
|
|
33430
33522
|
next: states.UNWRAP
|
|
33431
33523
|
});
|
|
@@ -33445,7 +33537,7 @@ const transactions = {
|
|
|
33445
33537
|
}
|
|
33446
33538
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.unwrap(value.element);
|
|
33447
33539
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, value), {
|
|
33448
|
-
mode:
|
|
33540
|
+
mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_6__.UNWRAP,
|
|
33449
33541
|
next: states.END
|
|
33450
33542
|
});
|
|
33451
33543
|
}
|
|
@@ -33454,7 +33546,7 @@ const transactions = {
|
|
|
33454
33546
|
exec (value) {
|
|
33455
33547
|
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_3__.Dom.replace(value.element, value.style.defaultTag, value.jodit.createInside, true);
|
|
33456
33548
|
return (0,_swc_helpers_object_spread_props__WEBPACK_IMPORTED_MODULE_1__._)((0,_swc_helpers_object_spread__WEBPACK_IMPORTED_MODULE_0__._)({}, value), {
|
|
33457
|
-
mode:
|
|
33549
|
+
mode: jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_6__.REPLACE,
|
|
33458
33550
|
next: states.END
|
|
33459
33551
|
});
|
|
33460
33552
|
}
|
|
@@ -34757,7 +34849,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
34757
34849
|
* ```
|
|
34758
34850
|
* @packageDocumentation
|
|
34759
34851
|
* @module constants
|
|
34760
|
-
*/ const APP_VERSION = "4.
|
|
34852
|
+
*/ const APP_VERSION = "4.9.4";
|
|
34761
34853
|
// prettier-ignore
|
|
34762
34854
|
const ES = "es2015";
|
|
34763
34855
|
const IS_ES_MODERN = true;
|
|
@@ -35615,7 +35707,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35615
35707
|
/* harmony export */ component: function() { return /* reexport safe */ _component_component__WEBPACK_IMPORTED_MODULE_2__.component; },
|
|
35616
35708
|
/* harmony export */ debounce: function() { return /* reexport safe */ _debounce_debounce__WEBPACK_IMPORTED_MODULE_3__.debounce; },
|
|
35617
35709
|
/* harmony export */ derive: function() { return /* reexport safe */ _derive_derive__WEBPACK_IMPORTED_MODULE_4__.derive; },
|
|
35618
|
-
/* harmony export */
|
|
35710
|
+
/* harmony export */ getComponentClass: function() { return /* reexport safe */ _component_component__WEBPACK_IMPORTED_MODULE_2__.getComponentClass; },
|
|
35619
35711
|
/* harmony export */ hook: function() { return /* reexport safe */ _hook_hook__WEBPACK_IMPORTED_MODULE_5__.hook; },
|
|
35620
35712
|
/* harmony export */ idle: function() { return /* reexport safe */ _idle_idle__WEBPACK_IMPORTED_MODULE_6__.idle; },
|
|
35621
35713
|
/* harmony export */ nonenumerable: function() { return /* reexport safe */ _nonenumerable_nonenumerable__WEBPACK_IMPORTED_MODULE_7__.nonenumerable; },
|
|
@@ -35695,13 +35787,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35695
35787
|
/* harmony export */ });
|
|
35696
35788
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
35697
35789
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(81937);
|
|
35698
|
-
/* harmony import */ var
|
|
35699
|
-
/* harmony import */ var
|
|
35700
|
-
/* harmony import */ var
|
|
35701
|
-
/* harmony import */ var
|
|
35702
|
-
/* harmony import */ var
|
|
35703
|
-
/* harmony import */ var
|
|
35704
|
-
/* harmony import */ var
|
|
35790
|
+
/* harmony import */ var jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42689);
|
|
35791
|
+
/* harmony import */ var jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(32328);
|
|
35792
|
+
/* harmony import */ var jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(17312);
|
|
35793
|
+
/* harmony import */ var jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(52433);
|
|
35794
|
+
/* harmony import */ var jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(85932);
|
|
35795
|
+
/* harmony import */ var jodit_core_plugin_helpers_init_instance__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(55810);
|
|
35796
|
+
/* harmony import */ var jodit_core_plugin_helpers_load__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(3050);
|
|
35797
|
+
/* harmony import */ var jodit_core_plugin_helpers_make_instance__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(25974);
|
|
35798
|
+
/* harmony import */ var jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(86189);
|
|
35705
35799
|
/*!
|
|
35706
35800
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
35707
35801
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -35718,6 +35812,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35718
35812
|
|
|
35719
35813
|
|
|
35720
35814
|
|
|
35815
|
+
|
|
35816
|
+
|
|
35721
35817
|
/**
|
|
35722
35818
|
* Jodit plugin system
|
|
35723
35819
|
* @example
|
|
@@ -35736,18 +35832,18 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35736
35832
|
/**
|
|
35737
35833
|
* Add plugin in store
|
|
35738
35834
|
*/ add(name, plugin) {
|
|
35739
|
-
this.__items.set((0,
|
|
35740
|
-
|
|
35835
|
+
this.__items.set((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_10__.normalizeName)(name), plugin);
|
|
35836
|
+
jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_2__.eventEmitter.fire(`plugin:${name}:ready`);
|
|
35741
35837
|
}
|
|
35742
35838
|
/**
|
|
35743
35839
|
* Get plugin from store
|
|
35744
35840
|
*/ get(name) {
|
|
35745
|
-
return this.__items.get((0,
|
|
35841
|
+
return this.__items.get((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_10__.normalizeName)(name));
|
|
35746
35842
|
}
|
|
35747
35843
|
/**
|
|
35748
35844
|
* Remove plugin from store
|
|
35749
35845
|
*/ remove(name) {
|
|
35750
|
-
this.__items.delete((0,
|
|
35846
|
+
this.__items.delete((0,jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_10__.normalizeName)(name));
|
|
35751
35847
|
}
|
|
35752
35848
|
__getFullPluginsList(filter) {
|
|
35753
35849
|
const results = [];
|
|
@@ -35779,7 +35875,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35779
35875
|
return;
|
|
35780
35876
|
}
|
|
35781
35877
|
const requires = plugin === null || plugin === void 0 ? void 0 : plugin.requires;
|
|
35782
|
-
if (requires && (0,
|
|
35878
|
+
if (requires && (0,jodit_core_helpers_checker_is_array__WEBPACK_IMPORTED_MODULE_4__.isArray)(requires) && requires.length) {
|
|
35783
35879
|
if (requires.some((req)=>disableList.has(req))) {
|
|
35784
35880
|
return;
|
|
35785
35881
|
}
|
|
@@ -35789,13 +35885,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35789
35885
|
}
|
|
35790
35886
|
}
|
|
35791
35887
|
commit = true;
|
|
35792
|
-
const instance = (0,
|
|
35888
|
+
const instance = (0,jodit_core_plugin_helpers_make_instance__WEBPACK_IMPORTED_MODULE_9__.makeInstance)(jodit, plugin);
|
|
35793
35889
|
if (!instance) {
|
|
35794
35890
|
doneList.set(name, null);
|
|
35795
35891
|
waitingList.delete(name);
|
|
35796
35892
|
return;
|
|
35797
35893
|
}
|
|
35798
|
-
(0,
|
|
35894
|
+
(0,jodit_core_plugin_helpers_init_instance__WEBPACK_IMPORTED_MODULE_7__.init)(jodit, name, plugin, instance, doneList, waitingList, this.opts.getContainer);
|
|
35799
35895
|
pluginsMap[name] = instance;
|
|
35800
35896
|
});
|
|
35801
35897
|
if (commit) {
|
|
@@ -35804,7 +35900,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35804
35900
|
}
|
|
35805
35901
|
};
|
|
35806
35902
|
if (extraList && extraList.length) {
|
|
35807
|
-
(0,
|
|
35903
|
+
(0,jodit_core_plugin_helpers_load__WEBPACK_IMPORTED_MODULE_8__.loadExtras)(this.__items, jodit, extraList, initPlugins);
|
|
35808
35904
|
}
|
|
35809
35905
|
initPlugins();
|
|
35810
35906
|
bindOnBeforeDestruct(jodit, pluginsMap);
|
|
@@ -35821,13 +35917,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35821
35917
|
}
|
|
35822
35918
|
const onReady = ()=>{
|
|
35823
35919
|
resolve();
|
|
35824
|
-
|
|
35920
|
+
jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_2__.eventEmitter.off(`plugin:${name}:ready`, onReady);
|
|
35825
35921
|
};
|
|
35826
|
-
|
|
35922
|
+
jodit_core_event_emitter_global__WEBPACK_IMPORTED_MODULE_2__.eventEmitter.on(`plugin:${name}:ready`, onReady);
|
|
35827
35923
|
});
|
|
35828
35924
|
}
|
|
35829
|
-
constructor(){
|
|
35830
|
-
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "
|
|
35925
|
+
constructor(opts){
|
|
35926
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "opts", void 0);
|
|
35927
|
+
(0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "__items", void 0);
|
|
35928
|
+
this.opts = opts;
|
|
35929
|
+
this.__items = new Map();
|
|
35831
35930
|
}
|
|
35832
35931
|
}
|
|
35833
35932
|
/**
|
|
@@ -35836,7 +35935,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35836
35935
|
jodit.e.on('beforeDestruct', ()=>{
|
|
35837
35936
|
Object.keys(plugins).forEach((name)=>{
|
|
35838
35937
|
const instance = plugins[name];
|
|
35839
|
-
if ((0,
|
|
35938
|
+
if ((0,jodit_core_helpers_checker_is_imp_interface__WEBPACK_IMPORTED_MODULE_5__.isDestructable)(instance)) {
|
|
35840
35939
|
instance.destruct(jodit);
|
|
35841
35940
|
}
|
|
35842
35941
|
delete plugins[name];
|
|
@@ -35845,10 +35944,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
35845
35944
|
});
|
|
35846
35945
|
}
|
|
35847
35946
|
function getSpecialLists(jodit) {
|
|
35848
|
-
const extraList = jodit.o.extraPlugins.map((s)=>(0,
|
|
35947
|
+
const extraList = jodit.o.extraPlugins.map((s)=>(0,jodit_core_helpers_checker_is_string__WEBPACK_IMPORTED_MODULE_6__.isString)(s) ? {
|
|
35849
35948
|
name: s
|
|
35850
35949
|
} : s);
|
|
35851
|
-
const disableList = new Set((0,
|
|
35950
|
+
const disableList = new Set((0,jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_3__.splitArray)(jodit.o.disablePlugins).map(jodit_core_plugin_helpers_utils__WEBPACK_IMPORTED_MODULE_10__.normalizeName));
|
|
35852
35951
|
const filter = jodit.o.safeMode ? new Set(jodit.o.safePluginsList) : null;
|
|
35853
35952
|
return {
|
|
35854
35953
|
extraList,
|
|
@@ -38202,17 +38301,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38202
38301
|
|
|
38203
38302
|
"use strict";
|
|
38204
38303
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
38205
|
-
/* harmony export */ component: function() { return /* binding */ component; }
|
|
38304
|
+
/* harmony export */ component: function() { return /* binding */ component; },
|
|
38305
|
+
/* harmony export */ getComponentClass: function() { return /* binding */ getComponentClass; }
|
|
38206
38306
|
/* harmony export */ });
|
|
38307
|
+
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(81937);
|
|
38308
|
+
/* harmony import */ var jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(421);
|
|
38207
38309
|
/*!
|
|
38208
38310
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
38209
38311
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
38210
38312
|
* Copyright (c) 2013-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
38211
|
-
*/
|
|
38212
|
-
|
|
38213
|
-
|
|
38214
|
-
|
|
38215
|
-
*/ /**
|
|
38313
|
+
*/
|
|
38314
|
+
|
|
38315
|
+
const componentRegistry = new Map();
|
|
38316
|
+
/**
|
|
38216
38317
|
* Decorate components and set status isReady after constructor
|
|
38217
38318
|
* @param constructorFunction - Component constructor class
|
|
38218
38319
|
*/ function component(constructorFunction) {
|
|
@@ -38231,8 +38332,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38231
38332
|
}
|
|
38232
38333
|
}
|
|
38233
38334
|
}
|
|
38335
|
+
const name = (0,jodit_core_helpers_utils_get_class_name__WEBPACK_IMPORTED_MODULE_1__.getClassName)(constructorFunction.prototype);
|
|
38336
|
+
if (componentRegistry.has(name) && !jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.IS_PROD) {
|
|
38337
|
+
throw new Error(`Component with name "${name}" is already registered`);
|
|
38338
|
+
}
|
|
38339
|
+
componentRegistry.set(name, newConstructorFunction);
|
|
38234
38340
|
return newConstructorFunction;
|
|
38235
38341
|
}
|
|
38342
|
+
function getComponentClass(name) {
|
|
38343
|
+
return componentRegistry.get(name);
|
|
38344
|
+
}
|
|
38236
38345
|
|
|
38237
38346
|
|
|
38238
38347
|
/***/ }),
|
|
@@ -38683,11 +38792,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
38683
38792
|
/* harmony export */ get: function() { return /* reexport safe */ _get__WEBPACK_IMPORTED_MODULE_15__.get; },
|
|
38684
38793
|
/* harmony export */ getClassName: function() { return /* reexport safe */ _get_class_name__WEBPACK_IMPORTED_MODULE_16__.getClassName; },
|
|
38685
38794
|
/* harmony export */ getDataTransfer: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_26__.getDataTransfer; },
|
|
38795
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_26__.getPropertyDescriptor; },
|
|
38686
38796
|
/* harmony export */ getXPathByElement: function() { return /* reexport safe */ _selector__WEBPACK_IMPORTED_MODULE_23__.getXPathByElement; },
|
|
38687
38797
|
/* harmony export */ hAlignElement: function() { return /* reexport safe */ _align__WEBPACK_IMPORTED_MODULE_0__.hAlignElement; },
|
|
38688
38798
|
/* harmony export */ humanSizeToBytes: function() { return /* reexport safe */ _human_size_to_bytes__WEBPACK_IMPORTED_MODULE_17__.humanSizeToBytes; },
|
|
38689
38799
|
/* harmony export */ inView: function() { return /* reexport safe */ _scroll_into_view__WEBPACK_IMPORTED_MODULE_22__.inView; },
|
|
38690
|
-
/* harmony export */ isAbort: function() { return /* reexport safe */ _error__WEBPACK_IMPORTED_MODULE_13__.isAbort; },
|
|
38691
38800
|
/* harmony export */ isAtom: function() { return /* reexport safe */ _extend__WEBPACK_IMPORTED_MODULE_14__.isAtom; },
|
|
38692
38801
|
/* harmony export */ keepNames: function() { return /* reexport safe */ _get_class_name__WEBPACK_IMPORTED_MODULE_16__.keepNames; },
|
|
38693
38802
|
/* harmony export */ keys: function() { return /* reexport safe */ _utils__WEBPACK_IMPORTED_MODULE_26__.keys; },
|
|
@@ -39425,7 +39534,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.about = {
|
|
|
39425
39534
|
}), i = editor.i18n.bind(editor);
|
|
39426
39535
|
dialog.setMod('theme', editor.o.theme).setHeader(i('About Jodit')).setContent(`<div class="jodit-about">
|
|
39427
39536
|
<div>${i('Jodit Editor')} v.${editor.getVersion()}</div>
|
|
39428
|
-
<div>${i('License: %s', !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.isLicense)(editor.o.license) ? 'MIT' : (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.normalizeLicense)(editor.o.license))}</div>
|
|
39537
|
+
<div>${i('License: %s', !(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.isLicense)(editor.o.license) ? editor.o.license || 'MIT' : (0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.normalizeLicense)(editor.o.license))}</div>
|
|
39429
39538
|
<div>
|
|
39430
39539
|
<a href="${jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE}" target="_blank">${jodit_core_constants__WEBPACK_IMPORTED_MODULE_0__.HOMEPAGE}</a>
|
|
39431
39540
|
</div>
|
|
@@ -39433,7 +39542,7 @@ jodit_config__WEBPACK_IMPORTED_MODULE_4__.Config.prototype.controls.about = {
|
|
|
39433
39542
|
<a href="https://xdsoft.net/jodit/docs/" target="_blank">${i("Jodit User's Guide")}</a>
|
|
39434
39543
|
${i('contains detailed help for using')}
|
|
39435
39544
|
</div>
|
|
39436
|
-
<div>${i('Copyright © XDSoft.net - Chupurnov
|
|
39545
|
+
<div>${i('Copyright © XDSoft.net - Chupurnov Valerii. All rights reserved.')}</div>
|
|
39437
39546
|
</div>`);
|
|
39438
39547
|
(0,jodit_core_helpers___WEBPACK_IMPORTED_MODULE_2__.css)(dialog.dialog, {
|
|
39439
39548
|
minHeight: 200,
|
|
@@ -40861,9 +40970,10 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.paragraph =
|
|
|
40861
40970
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
40862
40971
|
/* harmony export */ wrapList: function() { return /* binding */ wrapList; }
|
|
40863
40972
|
/* harmony export */ });
|
|
40864
|
-
/* harmony import */ var
|
|
40865
|
-
/* harmony import */ var
|
|
40866
|
-
/* harmony import */ var
|
|
40973
|
+
/* harmony import */ var jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(23211);
|
|
40974
|
+
/* harmony import */ var jodit_core_selection_style_api_is_same_attributes__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(95971);
|
|
40975
|
+
/* harmony import */ var jodit_core_selection_style_api_toggle_attributes__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(82794);
|
|
40976
|
+
/* harmony import */ var jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(98394);
|
|
40867
40977
|
/*!
|
|
40868
40978
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
40869
40979
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -40871,32 +40981,33 @@ jodit_config__WEBPACK_IMPORTED_MODULE_3__.Config.prototype.controls.paragraph =
|
|
|
40871
40981
|
*/
|
|
40872
40982
|
|
|
40873
40983
|
|
|
40984
|
+
|
|
40874
40985
|
/**
|
|
40875
40986
|
* Replaces non-leaf items with leaf items and either creates a new list or
|
|
40876
40987
|
* adds a new item to the nearest old list
|
|
40877
40988
|
* @private
|
|
40878
40989
|
*/ function wrapList(commitStyle, wrapper, jodit) {
|
|
40879
|
-
const result = jodit.e.fire(`${
|
|
40880
|
-
const newWrapper = result !== null && result !== void 0 ? result :
|
|
40990
|
+
const result = jodit.e.fire(`${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__._PREFIX}BeforeWrapList`, jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__.REPLACE, wrapper, commitStyle);
|
|
40991
|
+
const newWrapper = result !== null && result !== void 0 ? result : jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.replace(wrapper, 'li', jodit.createInside);
|
|
40881
40992
|
const prev = newWrapper.previousElementSibling;
|
|
40882
40993
|
const next = newWrapper.nextElementSibling;
|
|
40883
|
-
let list =
|
|
40884
|
-
list !== null && list !== void 0 ? list : list =
|
|
40885
|
-
if (!
|
|
40994
|
+
let list = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(prev, commitStyle.element) ? prev : null;
|
|
40995
|
+
list !== null && list !== void 0 ? list : list = jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(next, commitStyle.element) ? next : null;
|
|
40996
|
+
if (!jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isList(list) || !(0,jodit_core_selection_style_api_is_same_attributes__WEBPACK_IMPORTED_MODULE_1__.isSameAttributes)(list, commitStyle.options.attributes)) {
|
|
40886
40997
|
list = jodit.createInside.element(commitStyle.element);
|
|
40887
|
-
(0,
|
|
40888
|
-
|
|
40998
|
+
(0,jodit_core_selection_style_api_toggle_attributes__WEBPACK_IMPORTED_MODULE_2__.toggleAttributes)(commitStyle, list, jodit, jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__.INITIAL);
|
|
40999
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.before(newWrapper, list);
|
|
40889
41000
|
}
|
|
40890
41001
|
if (prev === list) {
|
|
40891
|
-
|
|
41002
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, newWrapper);
|
|
40892
41003
|
} else {
|
|
40893
|
-
|
|
41004
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.prepend(list, newWrapper);
|
|
40894
41005
|
}
|
|
40895
|
-
if (
|
|
40896
|
-
|
|
40897
|
-
|
|
41006
|
+
if (jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.isTag(list.nextElementSibling, commitStyle.element) && (0,jodit_core_selection_style_api_is_same_attributes__WEBPACK_IMPORTED_MODULE_1__.elementsEqualAttributes)(list, list.nextElementSibling)) {
|
|
41007
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.append(list, Array.from(list.nextElementSibling.childNodes));
|
|
41008
|
+
jodit_core_dom_dom__WEBPACK_IMPORTED_MODULE_0__.Dom.safeRemove(list.nextElementSibling);
|
|
40898
41009
|
}
|
|
40899
|
-
jodit.e.fire(`${
|
|
41010
|
+
jodit.e.fire(`${jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__._PREFIX}AfterWrapList`, jodit_core_selection_style_constants__WEBPACK_IMPORTED_MODULE_3__.WRAP, list, commitStyle);
|
|
40900
41011
|
return list;
|
|
40901
41012
|
}
|
|
40902
41013
|
|
|
@@ -41010,15 +41121,17 @@ module.exports["default"] = ["Napisz coś","O Jodit","Edytor Jodit","Instrukcja
|
|
|
41010
41121
|
/* harmony import */ var _swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(25045);
|
|
41011
41122
|
/* harmony import */ var _swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(31635);
|
|
41012
41123
|
/* harmony import */ var jodit_core_component_component__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80251);
|
|
41013
|
-
/* harmony import */ var
|
|
41014
|
-
/* harmony import */ var
|
|
41015
|
-
/* harmony import */ var
|
|
41016
|
-
/* harmony import */ var
|
|
41017
|
-
/* harmony import */ var
|
|
41018
|
-
/* harmony import */ var
|
|
41019
|
-
/* harmony import */ var
|
|
41020
|
-
/* harmony import */ var
|
|
41021
|
-
/* harmony import */ var
|
|
41124
|
+
/* harmony import */ var jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91672);
|
|
41125
|
+
/* harmony import */ var jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29200);
|
|
41126
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(68616);
|
|
41127
|
+
/* harmony import */ var jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(32328);
|
|
41128
|
+
/* harmony import */ var jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(53681);
|
|
41129
|
+
/* harmony import */ var jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(63468);
|
|
41130
|
+
/* harmony import */ var jodit_core_ui_group_separator__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(35676);
|
|
41131
|
+
/* harmony import */ var jodit_core_ui_group_spacer__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(27987);
|
|
41132
|
+
/* harmony import */ var jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(2496);
|
|
41133
|
+
/* harmony import */ var jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(15982);
|
|
41134
|
+
/* harmony import */ var jodit_core_ui_helpers_get_strong_control_types__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(40253);
|
|
41022
41135
|
/*!
|
|
41023
41136
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
41024
41137
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -41038,7 +41151,9 @@ module.exports["default"] = ["Napisz coś","O Jodit","Edytor Jodit","Instrukcja
|
|
|
41038
41151
|
|
|
41039
41152
|
|
|
41040
41153
|
|
|
41041
|
-
|
|
41154
|
+
|
|
41155
|
+
|
|
41156
|
+
class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_8__.UIGroup {
|
|
41042
41157
|
/** @override */ className() {
|
|
41043
41158
|
return 'UIList';
|
|
41044
41159
|
}
|
|
@@ -41048,24 +41163,24 @@ class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGr
|
|
|
41048
41163
|
/**
|
|
41049
41164
|
* Make new group and append it in list of elements
|
|
41050
41165
|
*/ makeGroup() {
|
|
41051
|
-
return new
|
|
41166
|
+
return new jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_8__.UIGroup(this.jodit);
|
|
41052
41167
|
}
|
|
41053
41168
|
/**
|
|
41054
41169
|
* All buttons from list
|
|
41055
41170
|
*/ get buttons() {
|
|
41056
|
-
return this.allChildren.filter((elm)=>jodit_core_component_component__WEBPACK_IMPORTED_MODULE_2__.Component.isInstanceOf(elm,
|
|
41171
|
+
return this.allChildren.filter((elm)=>jodit_core_component_component__WEBPACK_IMPORTED_MODULE_2__.Component.isInstanceOf(elm, jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_7__.UIButton));
|
|
41057
41172
|
}
|
|
41058
41173
|
/**
|
|
41059
41174
|
* Helper for getting full plain button list
|
|
41060
41175
|
*/ getButtonsNames() {
|
|
41061
|
-
return this.buttons.map((a)=>a instanceof
|
|
41176
|
+
return this.buttons.map((a)=>a instanceof jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_7__.UIButton && a.state.name || '').filter((a)=>a !== '');
|
|
41062
41177
|
}
|
|
41063
41178
|
setRemoveButtons(removeButtons) {
|
|
41064
41179
|
this.removeButtons = removeButtons || [];
|
|
41065
41180
|
return this;
|
|
41066
41181
|
}
|
|
41067
41182
|
build(items, target = null) {
|
|
41068
|
-
items = (0,
|
|
41183
|
+
items = (0,jodit_core_helpers_array_split_array__WEBPACK_IMPORTED_MODULE_6__.splitArray)(items);
|
|
41069
41184
|
this.clear();
|
|
41070
41185
|
let lastBtnSeparator = false;
|
|
41071
41186
|
let line = this.makeGroup();
|
|
@@ -41085,13 +41200,13 @@ class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGr
|
|
|
41085
41200
|
case '|':
|
|
41086
41201
|
if (!lastBtnSeparator) {
|
|
41087
41202
|
lastBtnSeparator = true;
|
|
41088
|
-
elm = new
|
|
41203
|
+
elm = new jodit_core_ui_group_separator__WEBPACK_IMPORTED_MODULE_9__.UISeparator(this.j);
|
|
41089
41204
|
}
|
|
41090
41205
|
break;
|
|
41091
41206
|
case '---':
|
|
41092
41207
|
{
|
|
41093
41208
|
group.setMod('before-spacer', true);
|
|
41094
|
-
const space = new
|
|
41209
|
+
const space = new jodit_core_ui_group_spacer__WEBPACK_IMPORTED_MODULE_10__.UISpacer(this.j);
|
|
41095
41210
|
line.append(space);
|
|
41096
41211
|
group = this.makeGroup();
|
|
41097
41212
|
line.append(group);
|
|
@@ -41122,20 +41237,20 @@ class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGr
|
|
|
41122
41237
|
return !this.removeButtons.includes(b.name) && (!b.isVisible || ((_b_isVisible = b.isVisible) === null || _b_isVisible === void 0 ? void 0 : _b_isVisible.call(b, this.j, b)));
|
|
41123
41238
|
};
|
|
41124
41239
|
items.forEach((item)=>{
|
|
41125
|
-
if ((0,
|
|
41240
|
+
if ((0,jodit_core_ui_helpers_buttons__WEBPACK_IMPORTED_MODULE_11__.isButtonGroup)(item)) {
|
|
41126
41241
|
const buttons = item.buttons.filter((b)=>b);
|
|
41127
41242
|
if (buttons.length) {
|
|
41128
41243
|
group = this.makeGroup();
|
|
41129
41244
|
group.setMod('separated', true).setMod('group', item.group);
|
|
41130
41245
|
line.append(group);
|
|
41131
|
-
(0,
|
|
41246
|
+
(0,jodit_core_ui_helpers_get_strong_control_types__WEBPACK_IMPORTED_MODULE_13__.getStrongControlTypes)(buttons, this.j.o.controls).filter(isNotRemoved).forEach(addButton);
|
|
41132
41247
|
}
|
|
41133
41248
|
} else {
|
|
41134
41249
|
if (!group) {
|
|
41135
41250
|
group = this.makeGroup();
|
|
41136
41251
|
line.append(group);
|
|
41137
41252
|
}
|
|
41138
|
-
const control = (0,
|
|
41253
|
+
const control = (0,jodit_core_ui_helpers_get_control_type__WEBPACK_IMPORTED_MODULE_12__.getControlType)(item, this.j.o.controls);
|
|
41139
41254
|
isNotRemoved(control) && addButton(control);
|
|
41140
41255
|
}
|
|
41141
41256
|
});
|
|
@@ -41148,20 +41263,20 @@ class UIList extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MODULE_6__.UIGr
|
|
|
41148
41263
|
/**
|
|
41149
41264
|
* Create button instance
|
|
41150
41265
|
*/ makeButton(control, target) {
|
|
41151
|
-
return new
|
|
41266
|
+
return new jodit_core_ui_button_button_button__WEBPACK_IMPORTED_MODULE_7__.UIButton(this.j, {
|
|
41152
41267
|
name: control.name
|
|
41153
41268
|
});
|
|
41154
41269
|
}
|
|
41155
|
-
constructor(
|
|
41156
|
-
super(
|
|
41270
|
+
constructor(...args){
|
|
41271
|
+
super(...args), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "mode", 'horizontal'), (0,_swc_helpers_define_property__WEBPACK_IMPORTED_MODULE_0__._)(this, "removeButtons", []);
|
|
41157
41272
|
}
|
|
41158
41273
|
}
|
|
41159
41274
|
(0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
41160
|
-
(0,
|
|
41161
|
-
(0,
|
|
41275
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_5__.watch)('mode'),
|
|
41276
|
+
(0,jodit_core_decorators_hook_hook__WEBPACK_IMPORTED_MODULE_4__.hook)('ready')
|
|
41162
41277
|
], UIList.prototype, "__onChangeMode", null);
|
|
41163
41278
|
UIList = (0,_swc_helpers_ts_decorate__WEBPACK_IMPORTED_MODULE_1__.__decorate)([
|
|
41164
|
-
|
|
41279
|
+
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_3__.component
|
|
41165
41280
|
], UIList);
|
|
41166
41281
|
|
|
41167
41282
|
|