survey-creator-react 2.5.16 → 3.0.0-beta.1
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-react.mjs +4 -34
- package/fesm/survey-creator-react.mjs.map +1 -1
- package/fesm/ui-preset-editor/index.mjs +1 -1
- package/package.json +4 -4
- package/survey-creator-react.js +3 -44
- package/survey-creator-react.js.map +1 -1
- package/survey-creator-react.min.js +2 -2
- package/typings/entries/index-wc.d.ts +0 -1
- package/ui-preset-editor/index.js +1 -1
- package/ui-preset-editor/index.min.js +1 -1
- package/typings/custom-questions/TextWithResetQuestion.d.ts +0 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-react",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.0.0-beta.1",
|
|
4
4
|
"description": "A white-label drag-and-drop form builder for React that lets you design complex, interactive forms and surveys without writing code. It generates JSON schemas used by the SurveyJS Form Library to render dynamic forms in your React app.",
|
|
5
5
|
"author": "DevSoft Baltic OU <info@devsoftbaltic.com>",
|
|
6
6
|
"homepage": "https://surveyjs.io/",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"ace-builds": "^1.4.12",
|
|
61
61
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
|
|
62
62
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0 || ^19.0.0",
|
|
63
|
-
"survey-core": "
|
|
64
|
-
"survey-react-ui": "
|
|
65
|
-
"survey-creator-core": "
|
|
63
|
+
"survey-core": "3.0.0-beta.1",
|
|
64
|
+
"survey-react-ui": "3.0.0-beta.1",
|
|
65
|
+
"survey-creator-core": "3.0.0-beta.1"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
68
68
|
"ace-builds": {
|
package/survey-creator-react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator
|
|
2
|
+
* SurveyJS Creator v3.0.0-beta.1
|
|
3
3
|
* (c) 2015-2026 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -3667,46 +3667,6 @@
|
|
|
3667
3667
|
return React__namespace.createElement(SurveyQuestionFileEditor, props);
|
|
3668
3668
|
});
|
|
3669
3669
|
|
|
3670
|
-
var SurveyQuestionTextWithReset = /** @class */ (function (_super) {
|
|
3671
|
-
__extends(SurveyQuestionTextWithReset, _super);
|
|
3672
|
-
function SurveyQuestionTextWithReset() {
|
|
3673
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
3674
|
-
}
|
|
3675
|
-
Object.defineProperty(SurveyQuestionTextWithReset.prototype, "question", {
|
|
3676
|
-
get: function () {
|
|
3677
|
-
return this.questionBase;
|
|
3678
|
-
},
|
|
3679
|
-
enumerable: false,
|
|
3680
|
-
configurable: true
|
|
3681
|
-
});
|
|
3682
|
-
SurveyQuestionTextWithReset.prototype.renderElement = function () {
|
|
3683
|
-
var textElement = this.renderInput();
|
|
3684
|
-
var resetButton = this.renderResetButton();
|
|
3685
|
-
return (React__namespace.createElement("div", { className: this.question.getRootClass() },
|
|
3686
|
-
textElement,
|
|
3687
|
-
resetButton));
|
|
3688
|
-
};
|
|
3689
|
-
SurveyQuestionTextWithReset.prototype.renderInput = function () {
|
|
3690
|
-
return surveyReactUi.ReactQuestionFactory.Instance.createQuestion(this.question.wrappedQuestionTemplate, {
|
|
3691
|
-
question: this.question,
|
|
3692
|
-
isDisplayMode: this.question.isInputReadOnly,
|
|
3693
|
-
creator: this,
|
|
3694
|
-
});
|
|
3695
|
-
};
|
|
3696
|
-
SurveyQuestionTextWithReset.prototype.renderResetButton = function () {
|
|
3697
|
-
var _this = this;
|
|
3698
|
-
return (React__namespace.createElement("button", { className: this.question.cssClasses.resetButton, disabled: this.question.resetValueAdorner.isDisabled, title: this.question.resetValueAdorner.caption, onClick: function () { return _this.question.resetValueAdorner.resetValue(); } },
|
|
3699
|
-
React__namespace.createElement(surveyReactUi.SvgIcon, { iconName: this.question.cssClasses.resetButtonIcon, size: "auto" })));
|
|
3700
|
-
};
|
|
3701
|
-
return SurveyQuestionTextWithReset;
|
|
3702
|
-
}(surveyReactUi.SurveyQuestionElementBase));
|
|
3703
|
-
surveyReactUi.ReactQuestionFactory.Instance.registerQuestion("textwithreset", function (props) {
|
|
3704
|
-
return React__namespace.createElement(SurveyQuestionTextWithReset, props);
|
|
3705
|
-
});
|
|
3706
|
-
surveyReactUi.ReactQuestionFactory.Instance.registerQuestion("commentwithreset", function (props) {
|
|
3707
|
-
return React__namespace.createElement(SurveyQuestionTextWithReset, props);
|
|
3708
|
-
});
|
|
3709
|
-
|
|
3710
3670
|
var SurveyQuestionBooleanSwitch = /** @class */ (function (_super) {
|
|
3711
3671
|
__extends(SurveyQuestionBooleanSwitch, _super);
|
|
3712
3672
|
function SurveyQuestionBooleanSwitch() {
|
|
@@ -3732,8 +3692,8 @@
|
|
|
3732
3692
|
surveyCore.RendererFactory.Instance.registerRenderer("boolean", "switch", "sv-boolean-switch");
|
|
3733
3693
|
|
|
3734
3694
|
exports.Version = void 0;
|
|
3735
|
-
exports.Version = "".concat("
|
|
3736
|
-
surveyCore.checkLibraryVersion("".concat("
|
|
3695
|
+
exports.Version = "".concat("3.0.0-beta.1");
|
|
3696
|
+
surveyCore.checkLibraryVersion("".concat("3.0.0-beta.1"), "survey-creator-react");
|
|
3737
3697
|
|
|
3738
3698
|
Object.defineProperty(exports, "PropertyGridEditorCollection", {
|
|
3739
3699
|
enumerable: true,
|
|
@@ -3815,7 +3775,6 @@
|
|
|
3815
3775
|
exports.SurveyQuestionFileEditor = SurveyQuestionFileEditor;
|
|
3816
3776
|
exports.SurveyQuestionLinkValue = SurveyQuestionLinkValue;
|
|
3817
3777
|
exports.SurveyQuestionSpinEditor = SurveyQuestionSpinEditor;
|
|
3818
|
-
exports.SurveyQuestionTextWithReset = SurveyQuestionTextWithReset;
|
|
3819
3778
|
exports.SurveyResults = SurveyResults;
|
|
3820
3779
|
exports.SurveyResultsByRow = SurveyResultsByRow;
|
|
3821
3780
|
exports.SurveySimulator = SurveySimulator;
|