jodit 4.1.11 → 4.1.12
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 +27 -5
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +90 -62
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +3 -3
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2018/jodit.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +90 -62
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.js +3 -3
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +89 -62
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +3 -3
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +89 -62
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +3 -3
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/jodit.css +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +91 -63
- package/es5/jodit.min.css +2 -2
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +3 -3
- package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/esm/core/constants.js +1 -1
- package/esm/core/decorators/watch/watch.d.ts +0 -1
- package/esm/core/decorators/watch/watch.js +0 -1
- package/esm/modules/file-browser/data-provider.js +1 -0
- package/esm/modules/file-browser/file-browser.d.ts +3 -0
- package/esm/modules/file-browser/file-browser.js +27 -1
- package/esm/plugins/ai-assistant/ai-assistant.js +1 -1
- package/esm/plugins/ai-assistant/ui/ui-ai-assistant.js +1 -1
- package/package.json +1 -1
- package/types/core/decorators/watch/watch.d.ts +0 -1
- package/types/modules/file-browser/file-browser.d.ts +3 -0
package/es5/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.1.
|
|
4
|
+
* Version: v4.1.12
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -3098,7 +3098,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3098
3098
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
3099
3099
|
*/
|
|
3100
3100
|
|
|
3101
|
-
var APP_VERSION = "4.1.
|
|
3101
|
+
var APP_VERSION = "4.1.12";
|
|
3102
3102
|
// prettier-ignore
|
|
3103
3103
|
var ES = "es5";
|
|
3104
3104
|
var IS_ES_MODERN = false;
|
|
@@ -3836,14 +3836,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3836
3836
|
/* harmony export */ component: function() { return /* reexport safe */ _component_component__WEBPACK_IMPORTED_MODULE_2__.s; },
|
|
3837
3837
|
/* harmony export */ debounce: function() { return /* reexport safe */ _debounce_debounce__WEBPACK_IMPORTED_MODULE_3__.s; },
|
|
3838
3838
|
/* harmony export */ derive: function() { return /* reexport safe */ _derive_derive__WEBPACK_IMPORTED_MODULE_4__.C; },
|
|
3839
|
-
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _watch_watch__WEBPACK_IMPORTED_MODULE_10__.
|
|
3839
|
+
/* harmony export */ getPropertyDescriptor: function() { return /* reexport safe */ _watch_watch__WEBPACK_IMPORTED_MODULE_10__.N; },
|
|
3840
3840
|
/* harmony export */ hook: function() { return /* reexport safe */ _hook_hook__WEBPACK_IMPORTED_MODULE_5__.A; },
|
|
3841
3841
|
/* harmony export */ idle: function() { return /* reexport safe */ _idle_idle__WEBPACK_IMPORTED_MODULE_6__.N; },
|
|
3842
3842
|
/* harmony export */ nonenumerable: function() { return /* reexport safe */ _nonenumerable_nonenumerable__WEBPACK_IMPORTED_MODULE_7__.m; },
|
|
3843
3843
|
/* harmony export */ persistent: function() { return /* reexport safe */ _persistent_persistent__WEBPACK_IMPORTED_MODULE_8__.y; },
|
|
3844
3844
|
/* harmony export */ throttle: function() { return /* reexport safe */ _debounce_debounce__WEBPACK_IMPORTED_MODULE_3__.n; },
|
|
3845
3845
|
/* harmony export */ wait: function() { return /* reexport safe */ _wait_wait__WEBPACK_IMPORTED_MODULE_9__.u; },
|
|
3846
|
-
/* harmony export */ watch: function() { return /* reexport safe */ _watch_watch__WEBPACK_IMPORTED_MODULE_10__.
|
|
3846
|
+
/* harmony export */ watch: function() { return /* reexport safe */ _watch_watch__WEBPACK_IMPORTED_MODULE_10__.w; }
|
|
3847
3847
|
/* harmony export */ });
|
|
3848
3848
|
/* harmony import */ var _autobind_autobind__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(11961);
|
|
3849
3849
|
/* harmony import */ var _cache_cache__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87875);
|
|
@@ -4011,8 +4011,8 @@ function wait(condition) {
|
|
|
4011
4011
|
|
|
4012
4012
|
"use strict";
|
|
4013
4013
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
4014
|
-
/* harmony export */
|
|
4015
|
-
/* harmony export */
|
|
4014
|
+
/* harmony export */ N: function() { return /* binding */ getPropertyDescriptor; },
|
|
4015
|
+
/* harmony export */ w: function() { return /* binding */ watch; }
|
|
4016
4016
|
/* harmony export */ });
|
|
4017
4017
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(31635);
|
|
4018
4018
|
/* harmony import */ var jodit_core_component_statuses__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(64567);
|
|
@@ -4135,7 +4135,6 @@ function watch(observeFields, opts) {
|
|
|
4135
4135
|
}
|
|
4136
4136
|
};
|
|
4137
4137
|
}
|
|
4138
|
-
/* harmony default export */ __webpack_exports__.Ay = (watch);
|
|
4139
4138
|
|
|
4140
4139
|
|
|
4141
4140
|
/***/ }),
|
|
@@ -5824,7 +5823,7 @@ function observable(obj) {
|
|
|
5824
5823
|
var key = _key;
|
|
5825
5824
|
var prefix = prefixes.concat(key).filter(function (a) { return a.length; });
|
|
5826
5825
|
store[key] = dict[key];
|
|
5827
|
-
var descriptor = (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .getPropertyDescriptor */ .
|
|
5826
|
+
var descriptor = (0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .getPropertyDescriptor */ .N)(dict, key);
|
|
5828
5827
|
Object.defineProperty(dict, key, {
|
|
5829
5828
|
set: function (value) {
|
|
5830
5829
|
var oldValue = store[key];
|
|
@@ -17784,7 +17783,7 @@ var ViewWithToolbar = /** @class */ (function (_super) {
|
|
|
17784
17783
|
_super.prototype.destruct.call(this);
|
|
17785
17784
|
};
|
|
17786
17785
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
17787
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .
|
|
17786
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_1__/* .watch */ .w)(':rebuildToolbar')
|
|
17788
17787
|
], ViewWithToolbar.prototype, "buildToolbar", null);
|
|
17789
17788
|
(0,tslib__WEBPACK_IMPORTED_MODULE_7__/* .__decorate */ .Cg)([
|
|
17790
17789
|
jodit_core_decorators_autobind_autobind__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Ay
|
|
@@ -21407,6 +21406,7 @@ var DataProvider = /** @class */ (function () {
|
|
|
21407
21406
|
if (process) {
|
|
21408
21407
|
var respData = process.call(self, resp);
|
|
21409
21408
|
if (respData.data.permissions) {
|
|
21409
|
+
_this.parent.events.fire(_this, 'changePermissions', _this.__currentPermissions, respData.data.permissions);
|
|
21410
21410
|
_this.__currentPermissions = respData.data.permissions;
|
|
21411
21411
|
}
|
|
21412
21412
|
}
|
|
@@ -21882,25 +21882,26 @@ function loadTree(fb) {
|
|
|
21882
21882
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
21883
21883
|
/* harmony export */ V: function() { return /* binding */ FileBrowser; }
|
|
21884
21884
|
/* harmony export */ });
|
|
21885
|
-
/* harmony import */ var
|
|
21885
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(31635);
|
|
21886
21886
|
/* harmony import */ var jodit_core_component__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(77753);
|
|
21887
21887
|
/* harmony import */ var jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17352);
|
|
21888
21888
|
/* harmony import */ var jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22664);
|
|
21889
|
-
/* harmony import */ var
|
|
21890
|
-
/* harmony import */ var
|
|
21891
|
-
/* harmony import */ var
|
|
21892
|
-
/* harmony import */ var
|
|
21893
|
-
/* harmony import */ var
|
|
21894
|
-
/* harmony import */ var
|
|
21895
|
-
/* harmony import */ var
|
|
21896
|
-
/* harmony import */ var
|
|
21897
|
-
/* harmony import */ var
|
|
21898
|
-
/* harmony import */ var
|
|
21899
|
-
/* harmony import */ var
|
|
21900
|
-
/* harmony import */ var
|
|
21901
|
-
/* harmony import */ var
|
|
21902
|
-
/* harmony import */ var
|
|
21903
|
-
/* harmony import */ var
|
|
21889
|
+
/* harmony import */ var jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66927);
|
|
21890
|
+
/* harmony import */ var jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(50025);
|
|
21891
|
+
/* harmony import */ var jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(65147);
|
|
21892
|
+
/* harmony import */ var jodit_core_storage__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(63915);
|
|
21893
|
+
/* harmony import */ var jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(58597);
|
|
21894
|
+
/* harmony import */ var jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(14961);
|
|
21895
|
+
/* harmony import */ var _config__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(70265);
|
|
21896
|
+
/* harmony import */ var _fetch_load_items__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(9979);
|
|
21897
|
+
/* harmony import */ var _fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(31859);
|
|
21898
|
+
/* harmony import */ var _listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(62994);
|
|
21899
|
+
/* harmony import */ var _listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(18043);
|
|
21900
|
+
/* harmony import */ var _listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(80004);
|
|
21901
|
+
/* harmony import */ var _data_provider__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(75889);
|
|
21902
|
+
/* harmony import */ var _factories__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(83797);
|
|
21903
|
+
/* harmony import */ var _ui__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(10274);
|
|
21904
|
+
/* harmony import */ var jodit_config__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(36115);
|
|
21904
21905
|
/*!
|
|
21905
21906
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
21906
21907
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
@@ -21925,19 +21926,20 @@ function loadTree(fb) {
|
|
|
21925
21926
|
|
|
21926
21927
|
|
|
21927
21928
|
|
|
21929
|
+
|
|
21928
21930
|
|
|
21929
21931
|
|
|
21930
21932
|
var FileBrowser = /** @class */ (function (_super) {
|
|
21931
|
-
(0,
|
|
21933
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_18__/* .__extends */ .C6)(FileBrowser, _super);
|
|
21932
21934
|
function FileBrowser(options) {
|
|
21933
21935
|
var _this = _super.call(this, options) || this;
|
|
21934
21936
|
_this.browser = _this.c.div(_this.componentName);
|
|
21935
21937
|
_this.status_line = _this.c.div(_this.getFullElName('status'));
|
|
21936
|
-
_this.tree = new
|
|
21937
|
-
_this.files = new
|
|
21938
|
-
_this.state = (0,
|
|
21938
|
+
_this.tree = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserTree */ .V(_this);
|
|
21939
|
+
_this.files = new _ui__WEBPACK_IMPORTED_MODULE_16__/* .FileBrowserFiles */ .Q(_this);
|
|
21940
|
+
_this.state = (0,jodit_core_event_emitter__WEBPACK_IMPORTED_MODULE_4__/* .observable */ .sH)({
|
|
21939
21941
|
currentPath: '',
|
|
21940
|
-
currentSource:
|
|
21942
|
+
currentSource: _data_provider__WEBPACK_IMPORTED_MODULE_14__/* .DEFAULT_SOURCE_NAME */ .o,
|
|
21941
21943
|
currentBaseUrl: '',
|
|
21942
21944
|
activeElements: [],
|
|
21943
21945
|
elements: [],
|
|
@@ -21948,7 +21950,7 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
21948
21950
|
onlyImages: false
|
|
21949
21951
|
});
|
|
21950
21952
|
_this.errorHandler = function (resp) {
|
|
21951
|
-
if ((0,
|
|
21953
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isAbortError)(resp)) {
|
|
21952
21954
|
return;
|
|
21953
21955
|
}
|
|
21954
21956
|
if (resp instanceof Error) {
|
|
@@ -21964,9 +21966,10 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
21964
21966
|
_this.close = function () {
|
|
21965
21967
|
_this._dialog.close();
|
|
21966
21968
|
};
|
|
21969
|
+
_this.__prevButtons = [];
|
|
21967
21970
|
_this.attachEvents(options);
|
|
21968
21971
|
var self = _this;
|
|
21969
|
-
self.options = (0,
|
|
21972
|
+
self.options = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_17__/* .Config */ .T.defaultOptions.filebrowser);
|
|
21970
21973
|
self.browser.component = _this;
|
|
21971
21974
|
self.container = self.browser;
|
|
21972
21975
|
if (self.o.showFoldersPanel) {
|
|
@@ -21974,9 +21977,9 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
21974
21977
|
}
|
|
21975
21978
|
self.browser.appendChild(self.files.container);
|
|
21976
21979
|
self.browser.appendChild(self.status_line);
|
|
21977
|
-
|
|
21978
|
-
|
|
21979
|
-
|
|
21980
|
+
_listeners_self_listeners__WEBPACK_IMPORTED_MODULE_12__/* .selfListeners */ .c.call(self);
|
|
21981
|
+
_listeners_native_listeners__WEBPACK_IMPORTED_MODULE_11__/* .nativeListeners */ .nW.call(self);
|
|
21982
|
+
_listeners_state_listeners__WEBPACK_IMPORTED_MODULE_13__/* .stateListeners */ .r.call(self);
|
|
21980
21983
|
var keys = [
|
|
21981
21984
|
'getLocalFileByUrl',
|
|
21982
21985
|
'crop',
|
|
@@ -21994,7 +21997,7 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
21994
21997
|
];
|
|
21995
21998
|
keys.forEach(function (key) {
|
|
21996
21999
|
if (_this.options[key] != null) {
|
|
21997
|
-
_this.options[key] = (0,
|
|
22000
|
+
_this.options[key] = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(_this.options[key], _this.o.ajax);
|
|
21998
22001
|
}
|
|
21999
22002
|
});
|
|
22000
22003
|
var _a = _this.o
|
|
@@ -22036,7 +22039,7 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
22036
22039
|
};
|
|
22037
22040
|
Object.defineProperty(FileBrowser.prototype, "dataProvider", {
|
|
22038
22041
|
get: function () {
|
|
22039
|
-
return (0,
|
|
22042
|
+
return (0,_factories__WEBPACK_IMPORTED_MODULE_15__/* .makeDataProvider */ .S)(this, this.options);
|
|
22040
22043
|
},
|
|
22041
22044
|
enumerable: false,
|
|
22042
22045
|
configurable: true
|
|
@@ -22061,7 +22064,7 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
22061
22064
|
files: files_1,
|
|
22062
22065
|
isImages: isImages_1
|
|
22063
22066
|
};
|
|
22064
|
-
if ((0,
|
|
22067
|
+
if ((0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isFunction)(callback)) {
|
|
22065
22068
|
callback(data);
|
|
22066
22069
|
}
|
|
22067
22070
|
_this.close();
|
|
@@ -22092,7 +22095,7 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
22092
22095
|
* Container for set/get value
|
|
22093
22096
|
*/
|
|
22094
22097
|
get: function () {
|
|
22095
|
-
return
|
|
22098
|
+
return jodit_core_storage__WEBPACK_IMPORTED_MODULE_6__/* .Storage */ .wc.makeStorage(Boolean(this.o.saveStateInStorage), this.componentName);
|
|
22096
22099
|
},
|
|
22097
22100
|
enumerable: false,
|
|
22098
22101
|
configurable: true
|
|
@@ -22107,6 +22110,7 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
22107
22110
|
/**
|
|
22108
22111
|
* It displays a message in the status bar of filebrowser
|
|
22109
22112
|
*
|
|
22113
|
+
* @param message - The message that will be displayed
|
|
22110
22114
|
* @param success - true It will be shown a message light . If no option is specified ,
|
|
22111
22115
|
* ßan error will be shown the red
|
|
22112
22116
|
* @example
|
|
@@ -22115,13 +22119,13 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
22115
22119
|
* ```
|
|
22116
22120
|
*/
|
|
22117
22121
|
FileBrowser.prototype.status = function (message, success) {
|
|
22118
|
-
if (!message || (0,
|
|
22122
|
+
if (!message || (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isAbortError)(message)) {
|
|
22119
22123
|
return;
|
|
22120
22124
|
}
|
|
22121
|
-
if (!(0,
|
|
22125
|
+
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(message)) {
|
|
22122
22126
|
message = message.message;
|
|
22123
22127
|
}
|
|
22124
|
-
if (!(0,
|
|
22128
|
+
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(message) || !(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.trim)(message).length) {
|
|
22125
22129
|
return;
|
|
22126
22130
|
}
|
|
22127
22131
|
this.message.message(message, success ? 'success' : 'error', this.o.howLongShowMsg);
|
|
@@ -22152,7 +22156,7 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
22152
22156
|
.promise(function (resolve, reject) {
|
|
22153
22157
|
var _a;
|
|
22154
22158
|
if (!_this.o.items || !_this.o.items.url) {
|
|
22155
|
-
throw (0,
|
|
22159
|
+
throw (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.error)('Need set options.filebrowser.ajax.url');
|
|
22156
22160
|
}
|
|
22157
22161
|
var localTimeout = 0;
|
|
22158
22162
|
_this.e
|
|
@@ -22169,10 +22173,11 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
22169
22173
|
.off('select.filebrowser')
|
|
22170
22174
|
.on('select.filebrowser', _this.onSelect(callback));
|
|
22171
22175
|
var header = _this.c.div();
|
|
22172
|
-
(_a = _this.toolbar) === null || _a === void 0 ? void 0 : _a.
|
|
22176
|
+
(_a = _this.toolbar) === null || _a === void 0 ? void 0 : _a.appendTo(header);
|
|
22177
|
+
_this.__updateToolbarButtons();
|
|
22173
22178
|
_this._dialog.open(_this.browser, header);
|
|
22174
22179
|
_this.e.fire('sort.filebrowser', _this.state.sortBy);
|
|
22175
|
-
(0,
|
|
22180
|
+
(0,_fetch_load_tree__WEBPACK_IMPORTED_MODULE_10__/* .loadTree */ .r)(_this).then(resolve, reject);
|
|
22176
22181
|
})
|
|
22177
22182
|
.catch(function (e) {
|
|
22178
22183
|
if (!jodit_core_constants__WEBPACK_IMPORTED_MODULE_1__.IS_PROD) {
|
|
@@ -22185,7 +22190,7 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
22185
22190
|
var _a;
|
|
22186
22191
|
var options = ((_a = this.o.buttons) !== null && _a !== void 0 ? _a : []);
|
|
22187
22192
|
return options.filter(function (btn) {
|
|
22188
|
-
if (!(0,
|
|
22193
|
+
if (!(0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.isString)(btn)) {
|
|
22189
22194
|
return true;
|
|
22190
22195
|
}
|
|
22191
22196
|
switch (btn) {
|
|
@@ -22203,8 +22208,8 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
22203
22208
|
FileBrowser.prototype.initUploader = function (editor) {
|
|
22204
22209
|
var _this = this;
|
|
22205
22210
|
var _a;
|
|
22206
|
-
var self = this, options = (_a = editor === null || editor === void 0 ? void 0 : editor.options) === null || _a === void 0 ? void 0 : _a.uploader, uploaderOptions = (0,
|
|
22207
|
-
var uploadHandler = function () { return (0,
|
|
22211
|
+
var self = this, options = (_a = editor === null || editor === void 0 ? void 0 : editor.options) === null || _a === void 0 ? void 0 : _a.uploader, uploaderOptions = (0,jodit_core_helpers__WEBPACK_IMPORTED_MODULE_5__.ConfigProto)(options || {}, jodit_config__WEBPACK_IMPORTED_MODULE_17__/* .Config */ .T.defaultOptions.uploader);
|
|
22212
|
+
var uploadHandler = function () { return (0,_fetch_load_items__WEBPACK_IMPORTED_MODULE_19__/* .loadItems */ .f)(_this); };
|
|
22208
22213
|
self.uploader = self.getInstance('Uploader', uploaderOptions);
|
|
22209
22214
|
self.uploader
|
|
22210
22215
|
.setPath(self.state.currentPath)
|
|
@@ -22228,27 +22233,50 @@ var FileBrowser = /** @class */ (function (_super) {
|
|
|
22228
22233
|
this.events && this.e.off('.filebrowser');
|
|
22229
22234
|
this.uploader && this.uploader.destruct();
|
|
22230
22235
|
};
|
|
22231
|
-
|
|
22236
|
+
FileBrowser.prototype.__updateToolbarButtons = function () {
|
|
22237
|
+
var _a;
|
|
22238
|
+
var buttons = this.__getButtons();
|
|
22239
|
+
if (isEqualButtonList(this.__prevButtons, buttons)) {
|
|
22240
|
+
return;
|
|
22241
|
+
}
|
|
22242
|
+
this.__prevButtons = buttons;
|
|
22243
|
+
(_a = this.toolbar) === null || _a === void 0 ? void 0 : _a.build(buttons);
|
|
22244
|
+
};
|
|
22245
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_18__/* .__decorate */ .Cg)([
|
|
22232
22246
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.cache
|
|
22233
22247
|
], FileBrowser.prototype, "dataProvider", null);
|
|
22234
|
-
(0,
|
|
22248
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_18__/* .__decorate */ .Cg)([
|
|
22235
22249
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.cache
|
|
22236
22250
|
], FileBrowser.prototype, "_dialog", null);
|
|
22237
|
-
(0,
|
|
22251
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_18__/* .__decorate */ .Cg)([
|
|
22238
22252
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.cache
|
|
22239
22253
|
], FileBrowser.prototype, "storage", null);
|
|
22240
|
-
(0,
|
|
22254
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_18__/* .__decorate */ .Cg)([
|
|
22241
22255
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
22242
22256
|
], FileBrowser.prototype, "status", null);
|
|
22243
|
-
(0,
|
|
22257
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_18__/* .__decorate */ .Cg)([
|
|
22244
22258
|
jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.autobind
|
|
22245
22259
|
], FileBrowser.prototype, "open", null);
|
|
22246
|
-
|
|
22247
|
-
(0,
|
|
22260
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_18__/* .__decorate */ .Cg)([
|
|
22261
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_3__/* .watch */ .w)('dataProvider:changePermissions')
|
|
22262
|
+
], FileBrowser.prototype, "__updateToolbarButtons", null);
|
|
22263
|
+
FileBrowser = (0,tslib__WEBPACK_IMPORTED_MODULE_18__/* .__decorate */ .Cg)([
|
|
22264
|
+
(0,jodit_core_decorators__WEBPACK_IMPORTED_MODULE_2__.derive)(jodit_core_traits_dlgs__WEBPACK_IMPORTED_MODULE_7__/* .Dlgs */ .z)
|
|
22248
22265
|
], FileBrowser);
|
|
22249
22266
|
return FileBrowser;
|
|
22250
|
-
}(
|
|
22267
|
+
}(jodit_core_view_view_with_toolbar__WEBPACK_IMPORTED_MODULE_8__/* .ViewWithToolbar */ .T));
|
|
22251
22268
|
|
|
22269
|
+
function isEqualButtonList(prevButtons, buttons) {
|
|
22270
|
+
if (prevButtons.length !== buttons.length) {
|
|
22271
|
+
return false;
|
|
22272
|
+
}
|
|
22273
|
+
for (var i = 0; i < prevButtons.length; i++) {
|
|
22274
|
+
if (prevButtons[i] !== buttons[i]) {
|
|
22275
|
+
return false;
|
|
22276
|
+
}
|
|
22277
|
+
}
|
|
22278
|
+
return true;
|
|
22279
|
+
}
|
|
22252
22280
|
|
|
22253
22281
|
|
|
22254
22282
|
/***/ }),
|
|
@@ -27626,10 +27654,10 @@ var aiAssistant = /** @class */ (function (_super) {
|
|
|
27626
27654
|
/** @override */
|
|
27627
27655
|
aiAssistant.prototype.beforeDestruct = function (_) { };
|
|
27628
27656
|
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
|
|
27629
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/*
|
|
27657
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':generateAiAssistantForm.ai-assistant')
|
|
27630
27658
|
], aiAssistant.prototype, "onGenerateAiAssistantForm", null);
|
|
27631
27659
|
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
|
|
27632
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/*
|
|
27660
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':invokeAiAssistant')
|
|
27633
27661
|
], aiAssistant.prototype, "onInvokeAiAssistant", null);
|
|
27634
27662
|
return aiAssistant;
|
|
27635
27663
|
}(jodit_core_plugin_plugin__WEBPACK_IMPORTED_MODULE_2__/* .Plugin */ .k));
|
|
@@ -27984,13 +28012,13 @@ var UiAiAssistant = /** @class */ (function (_super) {
|
|
|
27984
28012
|
this.__insertAfterButton.state.disabled = value;
|
|
27985
28013
|
};
|
|
27986
28014
|
(0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
27987
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/*
|
|
28015
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':ai-assistant-response')
|
|
27988
28016
|
], UiAiAssistant.prototype, "onAiAssistentResponse", null);
|
|
27989
28017
|
(0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
27990
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/*
|
|
28018
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':ai-assistant-error')
|
|
27991
28019
|
], UiAiAssistant.prototype, "onAiAssistentError", null);
|
|
27992
28020
|
(0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
27993
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/*
|
|
28021
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)('promptInput:change')
|
|
27994
28022
|
], UiAiAssistant.prototype, "onChangePromptValue", null);
|
|
27995
28023
|
UiAiAssistant = (0,tslib__WEBPACK_IMPORTED_MODULE_4__/* .__decorate */ .Cg)([
|
|
27996
28024
|
jodit_core_decorators_component_component__WEBPACK_IMPORTED_MODULE_6__/* .component */ .s
|
|
@@ -31704,10 +31732,10 @@ var dtd = /** @class */ (function (_super) {
|
|
|
31704
31732
|
});
|
|
31705
31733
|
};
|
|
31706
31734
|
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
|
|
31707
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .
|
|
31735
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':beforeInsertNode')
|
|
31708
31736
|
], dtd.prototype, "__onBeforeInsertNode", null);
|
|
31709
31737
|
(0,tslib__WEBPACK_IMPORTED_MODULE_6__/* .__decorate */ .Cg)([
|
|
31710
|
-
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .
|
|
31738
|
+
(0,jodit_core_decorators_watch_watch__WEBPACK_IMPORTED_MODULE_0__/* .watch */ .w)(':afterInsertNode')
|
|
31711
31739
|
], dtd.prototype, "__onAfterInsertNode", null);
|
|
31712
31740
|
return dtd;
|
|
31713
31741
|
}(jodit_core_plugin__WEBPACK_IMPORTED_MODULE_2__/* .Plugin */ .k));
|
package/es5/jodit.min.css
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
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.1.
|
|
4
|
+
* Version: v4.1.12
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
8
8
|
/*!
|
|
9
9
|
* jodit - Jodit is an awesome and useful wysiwyg editor with filebrowser
|
|
10
10
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
11
|
-
* Version: v4.1.
|
|
11
|
+
* Version: v4.1.12
|
|
12
12
|
* Url: https://xdsoft.net/jodit/
|
|
13
13
|
* License(s): MIT
|
|
14
14
|
*/
|