jodit 4.2.37 → 4.2.38
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 +11 -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 +17 -3
- 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 +17 -3
- 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 +16 -3
- 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 +16 -3
- 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 +1 -1
- package/es5/164.min.js +1 -1
- 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 +19 -3
- 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/esm/core/constants.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
4
4
|
* Copyright (c) 2013-2024 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
export const APP_VERSION = "4.2.
|
|
6
|
+
export const APP_VERSION = "4.2.38";
|
|
7
7
|
// prettier-ignore
|
|
8
8
|
export const ES = "es2020";
|
|
9
9
|
export const IS_ES_MODERN = true;
|
package/esm/core/ui/form/form.js
CHANGED
|
@@ -37,6 +37,7 @@ export declare class UIInput extends UIElement implements IUIInput {
|
|
|
37
37
|
protected onChangeValue(): void;
|
|
38
38
|
protected validators: Set<IUIInputValidator>;
|
|
39
39
|
validate(): boolean;
|
|
40
|
+
private __markInputInvalid;
|
|
40
41
|
/** @override **/
|
|
41
42
|
protected createContainer(options: Partial<this['state']>): HTMLElement;
|
|
42
43
|
/**
|
|
@@ -116,7 +116,19 @@ let UIInput = UIInput_1 = class UIInput extends UIElement {
|
|
|
116
116
|
}
|
|
117
117
|
validate() {
|
|
118
118
|
this.error = '';
|
|
119
|
-
|
|
119
|
+
const validate = toArray(this.validators).every(validator => validator(this));
|
|
120
|
+
this.__markInputInvalid();
|
|
121
|
+
return validate;
|
|
122
|
+
}
|
|
123
|
+
__markInputInvalid() {
|
|
124
|
+
if (this.error) {
|
|
125
|
+
this.nativeInput.setAttribute('aria-invalid', 'true');
|
|
126
|
+
this.nativeInput.setCustomValidity?.(this.error);
|
|
127
|
+
}
|
|
128
|
+
else {
|
|
129
|
+
this.nativeInput.removeAttribute('aria-invalid');
|
|
130
|
+
this.nativeInput.setCustomValidity?.('');
|
|
131
|
+
}
|
|
120
132
|
}
|
|
121
133
|
/** @override **/
|
|
122
134
|
createContainer(options) {
|
package/package.json
CHANGED
|
@@ -37,6 +37,7 @@ export declare class UIInput extends UIElement implements IUIInput {
|
|
|
37
37
|
protected onChangeValue(): void;
|
|
38
38
|
protected validators: Set<IUIInputValidator>;
|
|
39
39
|
validate(): boolean;
|
|
40
|
+
private __markInputInvalid;
|
|
40
41
|
/** @override **/
|
|
41
42
|
protected createContainer(options: Partial<this['state']>): HTMLElement;
|
|
42
43
|
/**
|