survey-creator-js 2.2.2 → 2.2.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/fesm/survey-creator-js.mjs +7 -4
- package/fesm/survey-creator-js.mjs.map +1 -1
- package/package.json +4 -4
- package/survey-creator-js.js +7 -4
- package/survey-creator-js.js.map +1 -1
- package/survey-creator-js.min.js +1 -1
- package/survey-creator-js.min.js.LICENSE.txt +1 -1
- package/typings/survey-creator-react/src/StringEditor.d.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator UI v2.2.
|
|
2
|
+
* SurveyJS Creator UI v2.2.4
|
|
3
3
|
* (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -1932,6 +1932,9 @@ class SurveyLocStringEditor extends CreatorModelElement {
|
|
|
1932
1932
|
this.onCompositionEnd = (event) => {
|
|
1933
1933
|
this.baseModel.onCompositionEnd(event.nativeEvent);
|
|
1934
1934
|
};
|
|
1935
|
+
this.onBeforeInput = (event) => {
|
|
1936
|
+
this.baseModel.onBeforeInput(event);
|
|
1937
|
+
};
|
|
1935
1938
|
this.onInput = (event) => {
|
|
1936
1939
|
this.baseModel.onInput(event.nativeEvent);
|
|
1937
1940
|
};
|
|
@@ -2047,7 +2050,7 @@ class SurveyLocStringEditor extends CreatorModelElement {
|
|
|
2047
2050
|
else {
|
|
2048
2051
|
control = (React.createElement("span", { role: "textbox", ref: this.svStringEditorRef, className: "sv-string-editor", contentEditable: this.contentEditable, tabIndex: this.baseModel.tabIndex, spellCheck: false, "aria-placeholder": this.placeholder, "aria-label": this.placeholder || "content editable", suppressContentEditableWarning: true,
|
|
2049
2052
|
// style={this.style}
|
|
2050
|
-
key: this.locString.renderedHtml, onBlur: this.onBlur, onInput: this.onInput, onPaste: this.onPaste, onCompositionStart: this.onCompositionStart, onCompositionEnd: this.onCompositionEnd, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onKeyUp: this.onKeyUp, onMouseUp: this.onMouseUp, onClick: this.edit }, this.locString.renderedHtml));
|
|
2053
|
+
key: this.locString.renderedHtml, onBlur: this.onBlur, onBeforeInput: this.onBeforeInput, onInput: this.onInput, onPaste: this.onPaste, onCompositionStart: this.onCompositionStart, onCompositionEnd: this.onCompositionEnd, onFocus: this.onFocus, onKeyDown: this.onKeyDown, onKeyUp: this.onKeyUp, onMouseUp: this.onMouseUp, onClick: this.edit }, this.locString.renderedHtml));
|
|
2051
2054
|
}
|
|
2052
2055
|
const counter = this.baseModel.showCharacterCounter ? (React.createElement(CharacterCounterComponent, { counter: this.baseModel.characterCounter, remainingCharacterCounter: this.baseModel.getCharacterCounterClass })) : null;
|
|
2053
2056
|
return (React.createElement("span", { className: this.className },
|
|
@@ -2842,8 +2845,8 @@ ReactQuestionFactory.Instance.registerQuestion("sv-boolean-switch", (props) => {
|
|
|
2842
2845
|
RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
|
|
2843
2846
|
|
|
2844
2847
|
let Version;
|
|
2845
|
-
Version = `${"2.2.
|
|
2846
|
-
checkLibraryVersion(`${"2.2.
|
|
2848
|
+
Version = `${"2.2.4"}`;
|
|
2849
|
+
checkLibraryVersion(`${"2.2.4"}`, "survey-creator-react");
|
|
2847
2850
|
|
|
2848
2851
|
function renderSurveyCreator(creator, element, props = {}) {
|
|
2849
2852
|
let node = element;
|