jodit 4.2.37 → 4.2.39
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 +39 -5
- package/es2015/jodit.css +4 -3
- package/es2015/jodit.fat.min.css +1 -1
- package/es2015/jodit.fat.min.js +2 -2
- package/es2015/jodit.js +43 -6
- package/es2015/jodit.min.css +1 -1
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2018/jodit.css +4 -3
- package/es2018/jodit.fat.min.css +1 -1
- package/es2018/jodit.fat.min.js +2 -2
- package/es2018/jodit.js +43 -6
- package/es2018/jodit.min.css +1 -1
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +4 -3
- package/es2021/jodit.fat.min.css +1 -1
- package/es2021/jodit.fat.min.js +2 -2
- package/es2021/jodit.js +42 -6
- package/es2021/jodit.min.css +1 -1
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021.en/jodit.css +4 -3
- package/es2021.en/jodit.fat.min.css +1 -1
- package/es2021.en/jodit.fat.min.js +2 -2
- package/es2021.en/jodit.js +42 -6
- package/es2021.en/jodit.min.css +1 -1
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es5/164.fat.min.js +2 -2
- package/es5/164.js +6 -6
- package/es5/164.min.js +2 -2
- package/es5/5.fat.min.js +1 -1
- package/es5/5.min.js +1 -1
- package/es5/jodit.css +4 -4
- package/es5/jodit.fat.min.css +1 -1
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +45 -6
- package/es5/jodit.min.css +3 -3
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.js +1 -1
- package/es5/plugins/debug/debug.min.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/esm/core/constants.js +1 -1
- package/esm/core/ui/form/form.js +1 -0
- package/esm/core/ui/form/inputs/input/input.d.ts +1 -0
- package/esm/core/ui/form/inputs/input/input.js +13 -1
- package/package.json +1 -1
- package/types/core/ui/form/inputs/input/input.d.ts +1 -0
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.2.
|
|
4
|
+
* Version: v4.2.39
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -1735,7 +1735,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1735
1735
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
1736
1736
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
1737
1737
|
*/
|
|
1738
|
-
const APP_VERSION = "4.2.
|
|
1738
|
+
const APP_VERSION = "4.2.39";
|
|
1739
1739
|
// prettier-ignore
|
|
1740
1740
|
const ES = "es2015";
|
|
1741
1741
|
const IS_ES_MODERN = true;
|
|
@@ -13862,6 +13862,7 @@ let UIForm = class UIForm extends jodit_core_ui_group_group__WEBPACK_IMPORTED_MO
|
|
|
13862
13862
|
const form = this.j.c.element('form');
|
|
13863
13863
|
form.classList.add(this.componentName);
|
|
13864
13864
|
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'dir', this.j.o.direction || 'auto');
|
|
13865
|
+
(0,jodit_core_helpers_utils__WEBPACK_IMPORTED_MODULE_1__.attr)(form, 'novalidate', '');
|
|
13865
13866
|
return form;
|
|
13866
13867
|
}
|
|
13867
13868
|
constructor(...args) {
|
|
@@ -14277,7 +14278,20 @@ let UIInput = UIInput_1 = class UIInput extends jodit_core_ui_element__WEBPACK_I
|
|
|
14277
14278
|
}
|
|
14278
14279
|
validate() {
|
|
14279
14280
|
this.error = '';
|
|
14280
|
-
|
|
14281
|
+
const validate = (0,jodit_core_helpers_array_to_array__WEBPACK_IMPORTED_MODULE_2__/* .toArray */ .$)(this.validators).every(validator => validator(this));
|
|
14282
|
+
this.__markInputInvalid();
|
|
14283
|
+
return validate;
|
|
14284
|
+
}
|
|
14285
|
+
__markInputInvalid() {
|
|
14286
|
+
var _a, _b, _c, _d;
|
|
14287
|
+
if (this.error) {
|
|
14288
|
+
this.nativeInput.setAttribute('aria-invalid', 'true');
|
|
14289
|
+
(_b = (_a = this.nativeInput).setCustomValidity) === null || _b === void 0 ? void 0 : _b.call(_a, this.error);
|
|
14290
|
+
}
|
|
14291
|
+
else {
|
|
14292
|
+
this.nativeInput.removeAttribute('aria-invalid');
|
|
14293
|
+
(_d = (_c = this.nativeInput).setCustomValidity) === null || _d === void 0 ? void 0 : _d.call(_c, '');
|
|
14294
|
+
}
|
|
14281
14295
|
}
|
|
14282
14296
|
/** @override **/
|
|
14283
14297
|
createContainer(options) {
|
|
@@ -44040,7 +44054,7 @@ module.exports = {assert(){}};;
|
|
|
44040
44054
|
/* harmony export */ Cg: function() { return /* binding */ __decorate; },
|
|
44041
44055
|
/* harmony export */ sH: function() { return /* binding */ __awaiter; }
|
|
44042
44056
|
/* harmony export */ });
|
|
44043
|
-
/* unused harmony exports __extends, __assign, __rest, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources */
|
|
44057
|
+
/* unused harmony exports __extends, __assign, __rest, __param, __esDecorate, __runInitializers, __propKey, __setFunctionName, __metadata, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn, __addDisposableResource, __disposeResources, __rewriteRelativeImportExtension */
|
|
44044
44058
|
/******************************************************************************
|
|
44045
44059
|
Copyright (c) Microsoft Corporation.
|
|
44046
44060
|
|
|
@@ -44306,10 +44320,19 @@ var __setModuleDefault = Object.create ? (function(o, v) {
|
|
|
44306
44320
|
o["default"] = v;
|
|
44307
44321
|
};
|
|
44308
44322
|
|
|
44323
|
+
var ownKeys = function(o) {
|
|
44324
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
44325
|
+
var ar = [];
|
|
44326
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
44327
|
+
return ar;
|
|
44328
|
+
};
|
|
44329
|
+
return ownKeys(o);
|
|
44330
|
+
};
|
|
44331
|
+
|
|
44309
44332
|
function __importStar(mod) {
|
|
44310
44333
|
if (mod && mod.__esModule) return mod;
|
|
44311
44334
|
var result = {};
|
|
44312
|
-
if (mod != null) for (var k
|
|
44335
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
44313
44336
|
__setModuleDefault(result, mod);
|
|
44314
44337
|
return result;
|
|
44315
44338
|
}
|
|
@@ -44390,12 +44413,25 @@ function __disposeResources(env) {
|
|
|
44390
44413
|
return next();
|
|
44391
44414
|
}
|
|
44392
44415
|
|
|
44416
|
+
function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
44417
|
+
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
44418
|
+
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
44419
|
+
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
44420
|
+
});
|
|
44421
|
+
}
|
|
44422
|
+
return path;
|
|
44423
|
+
}
|
|
44424
|
+
|
|
44393
44425
|
/* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ({
|
|
44394
44426
|
__extends,
|
|
44395
44427
|
__assign,
|
|
44396
44428
|
__rest,
|
|
44397
44429
|
__decorate,
|
|
44398
44430
|
__param,
|
|
44431
|
+
__esDecorate,
|
|
44432
|
+
__runInitializers,
|
|
44433
|
+
__propKey,
|
|
44434
|
+
__setFunctionName,
|
|
44399
44435
|
__metadata,
|
|
44400
44436
|
__awaiter,
|
|
44401
44437
|
__generator,
|
|
@@ -44418,6 +44454,7 @@ function __disposeResources(env) {
|
|
|
44418
44454
|
__classPrivateFieldIn,
|
|
44419
44455
|
__addDisposableResource,
|
|
44420
44456
|
__disposeResources,
|
|
44457
|
+
__rewriteRelativeImportExtension,
|
|
44421
44458
|
});
|
|
44422
44459
|
|
|
44423
44460
|
|
|
@@ -44584,7 +44621,7 @@ function __disposeResources(env) {
|
|
|
44584
44621
|
/******/
|
|
44585
44622
|
/************************************************************************/
|
|
44586
44623
|
var __webpack_exports__ = {};
|
|
44587
|
-
// This entry
|
|
44624
|
+
// This entry needs to be wrapped in an IIFE because it needs to be in strict mode.
|
|
44588
44625
|
!function() {
|
|
44589
44626
|
"use strict";
|
|
44590
44627
|
__webpack_require__.r(__webpack_exports__);
|