jodit 4.9.6 → 4.9.8
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 +6 -0
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.fat.min.js +3 -3
- package/es2015/jodit.js +10 -2
- package/es2015/jodit.min.js +3 -3
- 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.js +3 -3
- package/es2018/jodit.min.js +3 -3
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +1 -1
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.fat.min.js +3 -3
- package/es2021/jodit.js +10 -2
- package/es2021/jodit.min.js +3 -3
- 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 +1 -1
- package/es2021.en/jodit.fat.min.js +3 -3
- package/es2021.en/jodit.js +10 -2
- package/es2021.en/jodit.min.js +8 -8
- 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 +2 -2
- package/es5/jodit.fat.min.js +2 -2
- package/es5/jodit.js +13 -2
- package/es5/jodit.min.css +2 -2
- 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/ui/button/button/button.d.ts +1 -0
- package/esm/core/ui/button/button/button.js +10 -0
- package/package.json +1 -1
- package/types/core/ui/button/button/button.d.ts +1 -0
package/es5/polyfills.fat.min.js
CHANGED
package/es5/polyfills.js
CHANGED
package/es5/polyfills.min.js
CHANGED
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-2026 Valerii Chupurnov. All rights reserved. https://xdsoft.net
|
|
5
5
|
*/
|
|
6
|
-
export const APP_VERSION = "4.9.
|
|
6
|
+
export const APP_VERSION = "4.9.8";
|
|
7
7
|
// prettier-ignore
|
|
8
8
|
export const ES = "es2020";
|
|
9
9
|
export const IS_ES_MODERN = true;
|
|
@@ -47,6 +47,7 @@ export declare class UIButton extends UIElement implements IUIButton {
|
|
|
47
47
|
protected onChangeActivated(): void;
|
|
48
48
|
protected onChangeName(): void;
|
|
49
49
|
protected onChangeTooltip(): void;
|
|
50
|
+
private __updateAriaLabel;
|
|
50
51
|
protected onChangeTabIndex(): void;
|
|
51
52
|
protected onChangeIcon(): void;
|
|
52
53
|
/**
|
|
@@ -95,6 +95,7 @@ let UIButton = class UIButton extends UIElement {
|
|
|
95
95
|
}
|
|
96
96
|
onChangeText() {
|
|
97
97
|
this.text.textContent = this.jodit.i18n(this.state.text);
|
|
98
|
+
this.__updateAriaLabel();
|
|
98
99
|
}
|
|
99
100
|
onChangeTextSetMode() {
|
|
100
101
|
this.setMod('text-icons', Boolean(this.state.text.trim().length));
|
|
@@ -119,6 +120,15 @@ let UIButton = class UIButton extends UIElement {
|
|
|
119
120
|
attr(this.container, 'title', i8nTooltip);
|
|
120
121
|
}
|
|
121
122
|
attr(this.container, 'aria-label', i8nTooltip);
|
|
123
|
+
this.__updateAriaLabel();
|
|
124
|
+
}
|
|
125
|
+
__updateAriaLabel() {
|
|
126
|
+
const hasText = this.state.text.trim().length > 0;
|
|
127
|
+
const i8nTooltip = this.state.tooltip
|
|
128
|
+
? this.jodit.i18n(this.state.tooltip)
|
|
129
|
+
: null;
|
|
130
|
+
attr(this.container, 'aria-label', i8nTooltip);
|
|
131
|
+
attr(this.button, 'aria-label', !hasText ? i8nTooltip : null);
|
|
122
132
|
}
|
|
123
133
|
onChangeTabIndex() {
|
|
124
134
|
attr(this.container, 'tabindex', this.state.tabIndex);
|
package/package.json
CHANGED
|
@@ -47,6 +47,7 @@ export declare class UIButton extends UIElement implements IUIButton {
|
|
|
47
47
|
protected onChangeActivated(): void;
|
|
48
48
|
protected onChangeName(): void;
|
|
49
49
|
protected onChangeTooltip(): void;
|
|
50
|
+
private __updateAriaLabel;
|
|
50
51
|
protected onChangeTabIndex(): void;
|
|
51
52
|
protected onChangeIcon(): void;
|
|
52
53
|
/**
|