survey-creator-react 1.9.81 → 1.9.82
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "survey-creator-react",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.82",
|
|
4
4
|
"description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Library.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Survey",
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"ace-builds": "^1.4.12"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"survey-core": "1.9.
|
|
33
|
-
"survey-react-ui": "1.9.
|
|
34
|
-
"survey-creator-core": "1.9.
|
|
32
|
+
"survey-core": "1.9.82",
|
|
33
|
+
"survey-react-ui": "1.9.82",
|
|
34
|
+
"survey-creator-core": "1.9.82",
|
|
35
35
|
"react": "^16.5.0 || ^17.0.1 || ^18.1.0",
|
|
36
36
|
"react-dom": "^16.5.0 || ^17.0.1 || ^18.1.0"
|
|
37
37
|
},
|
|
@@ -593,6 +593,7 @@ declare module "PageNavigator" {
|
|
|
593
593
|
protected createModel(): void;
|
|
594
594
|
protected getUpdatedModelProps(): string[];
|
|
595
595
|
protected getStateElement(): Base;
|
|
596
|
+
private get scrollableContainer();
|
|
596
597
|
componentDidMount(): void;
|
|
597
598
|
componentWillUnmount(): void;
|
|
598
599
|
renderElement(): JSX.Element;
|
|
@@ -739,6 +740,31 @@ declare module "PropertyGrid" {
|
|
|
739
740
|
}
|
|
740
741
|
export default PropertyGridComponent;
|
|
741
742
|
}
|
|
743
|
+
declare module "custom-questions/SpinEditor" {
|
|
744
|
+
import { QuestionSpinEditorModel } from "survey-creator-core";
|
|
745
|
+
import { SurveyQuestionText } from "survey-react-ui";
|
|
746
|
+
export class SurveyQuestionSpinEditor extends SurveyQuestionText {
|
|
747
|
+
constructor(props: any);
|
|
748
|
+
protected get question(): QuestionSpinEditorModel;
|
|
749
|
+
protected renderInput(): JSX.Element;
|
|
750
|
+
protected renderElement(): JSX.Element;
|
|
751
|
+
protected getValueCore(): string;
|
|
752
|
+
protected renderButtons(): JSX.Element;
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
declare module "custom-questions/ColorQuestion" {
|
|
756
|
+
import { QuestionColorModel } from "survey-creator-core";
|
|
757
|
+
import { SurveyQuestionText } from "survey-react-ui";
|
|
758
|
+
export class SurveyQuestionColor extends SurveyQuestionText {
|
|
759
|
+
constructor(props: any);
|
|
760
|
+
protected get question(): QuestionColorModel;
|
|
761
|
+
protected renderInput(): JSX.Element;
|
|
762
|
+
protected renderElement(): JSX.Element;
|
|
763
|
+
protected getValueCore(): string;
|
|
764
|
+
protected renderColorSwatch(): JSX.Element;
|
|
765
|
+
protected renderColorInput(): JSX.Element;
|
|
766
|
+
}
|
|
767
|
+
}
|
|
742
768
|
declare module "entries/index" {
|
|
743
769
|
export let Version: string;
|
|
744
770
|
export * from "SurveyCreator";
|
|
@@ -784,6 +810,8 @@ declare module "entries/index" {
|
|
|
784
810
|
export * from "events";
|
|
785
811
|
export * from "ObjectSelector";
|
|
786
812
|
export * from "PropertyGrid";
|
|
813
|
+
export * from "custom-questions/SpinEditor";
|
|
814
|
+
export * from "custom-questions/ColorQuestion";
|
|
787
815
|
export { editorLocalization, localization } from "survey-creator-core";
|
|
788
816
|
export { settings } from "survey-creator-core";
|
|
789
817
|
export { svgBundle } from "survey-creator-core";
|
package/survey-creator-react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator React v1.9.
|
|
2
|
+
* SurveyJS Creator React v1.9.82
|
|
3
3
|
* (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -223,7 +223,7 @@ var ImageItemValueAdornerComponent = /** @class */ (function (_super) {
|
|
|
223
223
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "sd-imagepicker__item sd-imagepicker__item--inline" },
|
|
224
224
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("label", { className: "sd-imagepicker__label" },
|
|
225
225
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { style: imageStyle, className: "sd-imagepicker__image" })))),
|
|
226
|
-
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-image-item-value-controls" }, this.model.allowAdd ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-image-item-value-controls__button svc-image-item-value-controls__add", onClick: function () { return _this.model.chooseNewFile(_this.model); } },
|
|
226
|
+
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-image-item-value-controls" }, this.model.allowAdd && !this.model.isUploading ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-image-item-value-controls__button svc-image-item-value-controls__add", onClick: function () { return _this.model.chooseNewFile(_this.model); } },
|
|
227
227
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: "icon-add-lg" }))) : null)));
|
|
228
228
|
}
|
|
229
229
|
else {
|
|
@@ -232,9 +232,9 @@ var ImageItemValueAdornerComponent = /** @class */ (function (_super) {
|
|
|
232
232
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-image-item-value-controls__button svc-image-item-value-controls__drag-area-indicator", onPointerDown: function (event) { return _this.model.onPointerDown(event); } },
|
|
233
233
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: "icon-drag-area-indicator" })),
|
|
234
234
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-image-item-value-controls" },
|
|
235
|
-
this.model.allowRemove ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-image-item-value-controls__button svc-image-item-value-controls__choose-file", onClick: function () { return _this.model.chooseFile(_this.model); } },
|
|
235
|
+
this.model.allowRemove && !this.model.isUploading ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-image-item-value-controls__button svc-image-item-value-controls__choose-file", onClick: function () { return _this.model.chooseFile(_this.model); } },
|
|
236
236
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: "icon-file" }))) : null,
|
|
237
|
-
this.model.allowRemove ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-image-item-value-controls__button svc-image-item-value-controls__remove ddd", onClick: function () { return _this.model.remove(_this.model); } },
|
|
237
|
+
this.model.allowRemove && !this.model.isUploading ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-image-item-value-controls__button svc-image-item-value-controls__remove ddd", onClick: function () { return _this.model.remove(_this.model); } },
|
|
238
238
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: "icon-delete" }))) : null)));
|
|
239
239
|
}
|
|
240
240
|
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { ref: this.rootRef, className: this.model.getRootCss(), key: this.props.element.key, "data-sv-drop-target-item-value": this.model.isDraggable ? this.model.item.value : undefined, onPointerDown: function (event) { return _this.model.onPointerDown(event); }, onDragStart: this.preventDragHandler },
|
|
@@ -387,7 +387,7 @@ var LogoImageComponent = /** @class */ (function (_super) {
|
|
|
387
387
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["LogoImage"], { data: this.props.data.survey })));
|
|
388
388
|
}
|
|
389
389
|
else {
|
|
390
|
-
content = this.model.allowEdit ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-logo-image-placeholder", onClick: function () { return _this.model.chooseFile(_this.model); } },
|
|
390
|
+
content = this.model.allowEdit && !this.model.isUploading ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("div", { className: "svc-logo-image-placeholder", onClick: function () { return _this.model.chooseFile(_this.model); } },
|
|
391
391
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("svg", null,
|
|
392
392
|
react__WEBPACK_IMPORTED_MODULE_1___default.a.createElement("use", { xlinkHref: "#icon-logo" })))) : null;
|
|
393
393
|
}
|
|
@@ -707,16 +707,29 @@ var SurveyPageNavigator = /** @class */ (function (_super) {
|
|
|
707
707
|
SurveyPageNavigator.prototype.getStateElement = function () {
|
|
708
708
|
return this.model;
|
|
709
709
|
};
|
|
710
|
+
Object.defineProperty(SurveyPageNavigator.prototype, "scrollableContainer", {
|
|
711
|
+
get: function () {
|
|
712
|
+
var el = this.containerRef.current;
|
|
713
|
+
if (!!el) {
|
|
714
|
+
var self_1 = this;
|
|
715
|
+
return el.parentElement.parentElement.parentElement;
|
|
716
|
+
}
|
|
717
|
+
return el;
|
|
718
|
+
},
|
|
719
|
+
enumerable: false,
|
|
720
|
+
configurable: true
|
|
721
|
+
});
|
|
710
722
|
SurveyPageNavigator.prototype.componentDidMount = function () {
|
|
711
723
|
_super.prototype.componentDidMount.call(this);
|
|
712
724
|
if (this.props.pageEditMode !== "bypage") {
|
|
713
725
|
var el = this.containerRef.current;
|
|
714
726
|
if (!!el) {
|
|
715
|
-
var
|
|
727
|
+
var self_2 = this;
|
|
716
728
|
el.parentElement.parentElement.parentElement.onscroll = function (ev) {
|
|
717
|
-
return
|
|
729
|
+
return self_2.model.onContainerScroll(ev.currentTarget);
|
|
718
730
|
};
|
|
719
|
-
|
|
731
|
+
self_2.model.setItemsContainer(el.parentElement);
|
|
732
|
+
self_2.model.setScrollableContainer(el.parentElement.parentElement.parentElement);
|
|
720
733
|
}
|
|
721
734
|
}
|
|
722
735
|
};
|
|
@@ -2394,7 +2407,7 @@ var QuestionImageAdornerComponent = /** @class */ (function (_super) {
|
|
|
2394
2407
|
};
|
|
2395
2408
|
QuestionImageAdornerComponent.prototype.renderElementPlaceholder = function () {
|
|
2396
2409
|
var _this = this;
|
|
2397
|
-
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-image-question-controls" }, this.model.allowEdit ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-image-question-controls__button svc-image-question-controls__choose-file", onClick: function () { return _this.imageModel.chooseFile(_this.imageModel); } },
|
|
2410
|
+
return (react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("div", { className: "svc-image-question-controls" }, this.model.allowEdit && !this.model.isUploading ? Object(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement("span", { className: "svc-image-question-controls__button svc-image-question-controls__choose-file", onClick: function () { return _this.imageModel.chooseFile(_this.imageModel); } },
|
|
2398
2411
|
react__WEBPACK_IMPORTED_MODULE_2___default.a.createElement(survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: 24, iconName: "icon-file" }))) : null));
|
|
2399
2412
|
};
|
|
2400
2413
|
return QuestionImageAdornerComponent;
|
|
@@ -2584,6 +2597,131 @@ survey_react_ui__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.reg
|
|
|
2584
2597
|
});
|
|
2585
2598
|
|
|
2586
2599
|
|
|
2600
|
+
/***/ }),
|
|
2601
|
+
|
|
2602
|
+
/***/ "./src/custom-questions/ColorQuestion.tsx":
|
|
2603
|
+
/*!************************************************!*\
|
|
2604
|
+
!*** ./src/custom-questions/ColorQuestion.tsx ***!
|
|
2605
|
+
\************************************************/
|
|
2606
|
+
/*! exports provided: SurveyQuestionColor */
|
|
2607
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2608
|
+
|
|
2609
|
+
"use strict";
|
|
2610
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2611
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionColor", function() { return SurveyQuestionColor; });
|
|
2612
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2613
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2614
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2615
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2616
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2617
|
+
|
|
2618
|
+
|
|
2619
|
+
|
|
2620
|
+
var SurveyQuestionColor = /** @class */ (function (_super) {
|
|
2621
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyQuestionColor, _super);
|
|
2622
|
+
function SurveyQuestionColor(props) {
|
|
2623
|
+
return _super.call(this, props) || this;
|
|
2624
|
+
}
|
|
2625
|
+
Object.defineProperty(SurveyQuestionColor.prototype, "question", {
|
|
2626
|
+
get: function () {
|
|
2627
|
+
return this.questionBase;
|
|
2628
|
+
},
|
|
2629
|
+
enumerable: false,
|
|
2630
|
+
configurable: true
|
|
2631
|
+
});
|
|
2632
|
+
SurveyQuestionColor.prototype.renderInput = function () {
|
|
2633
|
+
var _this = this;
|
|
2634
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
|
|
2635
|
+
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { id: this.question.inputId, disabled: this.isDisplayMode, className: this.question.cssClasses.control, ref: function (input) { return (_this.setControl(input)); }, placeholder: this.question.renderedPlaceholder, autoComplete: "off", onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onChange: this.question.onChange, onBeforeInput: function (event) { return _this.question.onBeforeInput(event.nativeEvent); }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy })));
|
|
2636
|
+
};
|
|
2637
|
+
SurveyQuestionColor.prototype.renderElement = function () {
|
|
2638
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.question.cssClasses.root },
|
|
2639
|
+
this.renderColorSwatch(),
|
|
2640
|
+
this.renderInput(),
|
|
2641
|
+
this.renderColorInput()));
|
|
2642
|
+
};
|
|
2643
|
+
SurveyQuestionColor.prototype.getValueCore = function () {
|
|
2644
|
+
return this.question.renderedValue;
|
|
2645
|
+
};
|
|
2646
|
+
SurveyQuestionColor.prototype.renderColorSwatch = function () {
|
|
2647
|
+
return react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: this.question.cssClasses.swatch, style: this.question.getSwatchStyle() });
|
|
2648
|
+
};
|
|
2649
|
+
SurveyQuestionColor.prototype.renderColorInput = function () {
|
|
2650
|
+
var _this = this;
|
|
2651
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("label", { className: this.question.cssClasses.colorDropdown },
|
|
2652
|
+
react__WEBPACK_IMPORTED_MODULE_1__["createElement"](survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.question.cssClasses.colorDrodownIcon, size: "auto" }),
|
|
2653
|
+
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { type: "color", value: this.question.renderedValue, className: this.question.cssClasses.colorInput, onChange: function (event) { return _this.question.onColorInputChange(event.nativeEvent); } })));
|
|
2654
|
+
};
|
|
2655
|
+
return SurveyQuestionColor;
|
|
2656
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SurveyQuestionText"]));
|
|
2657
|
+
|
|
2658
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["ReactQuestionFactory"].Instance.registerQuestion("color", function (props) {
|
|
2659
|
+
return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](SurveyQuestionColor, props);
|
|
2660
|
+
});
|
|
2661
|
+
|
|
2662
|
+
|
|
2663
|
+
/***/ }),
|
|
2664
|
+
|
|
2665
|
+
/***/ "./src/custom-questions/SpinEditor.tsx":
|
|
2666
|
+
/*!*********************************************!*\
|
|
2667
|
+
!*** ./src/custom-questions/SpinEditor.tsx ***!
|
|
2668
|
+
\*********************************************/
|
|
2669
|
+
/*! exports provided: SurveyQuestionSpinEditor */
|
|
2670
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2671
|
+
|
|
2672
|
+
"use strict";
|
|
2673
|
+
__webpack_require__.r(__webpack_exports__);
|
|
2674
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionSpinEditor", function() { return SurveyQuestionSpinEditor; });
|
|
2675
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
2676
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! react */ "react");
|
|
2677
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_1__);
|
|
2678
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-react-ui */ "survey-react-ui");
|
|
2679
|
+
/* harmony import */ var survey_react_ui__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__);
|
|
2680
|
+
|
|
2681
|
+
|
|
2682
|
+
|
|
2683
|
+
var SurveyQuestionSpinEditor = /** @class */ (function (_super) {
|
|
2684
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(SurveyQuestionSpinEditor, _super);
|
|
2685
|
+
function SurveyQuestionSpinEditor(props) {
|
|
2686
|
+
return _super.call(this, props) || this;
|
|
2687
|
+
}
|
|
2688
|
+
Object.defineProperty(SurveyQuestionSpinEditor.prototype, "question", {
|
|
2689
|
+
get: function () {
|
|
2690
|
+
return this.questionBase;
|
|
2691
|
+
},
|
|
2692
|
+
enumerable: false,
|
|
2693
|
+
configurable: true
|
|
2694
|
+
});
|
|
2695
|
+
SurveyQuestionSpinEditor.prototype.renderInput = function () {
|
|
2696
|
+
var _this = this;
|
|
2697
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"](react__WEBPACK_IMPORTED_MODULE_1__["Fragment"], null,
|
|
2698
|
+
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("input", { id: this.question.inputId, disabled: this.isDisplayMode, className: this.question.cssClasses.control, ref: function (input) { return (_this.setControl(input)); }, placeholder: this.question.renderedPlaceholder, autoComplete: "off", onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); }, onChange: this.question.onChange, onBeforeInput: function (event) { return _this.question.onBeforeInput(event.nativeEvent); }, onKeyDown: function (event) { return _this.question.onInputKeyDown(event.nativeEvent); }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy })));
|
|
2699
|
+
};
|
|
2700
|
+
SurveyQuestionSpinEditor.prototype.renderElement = function () {
|
|
2701
|
+
var _this = this;
|
|
2702
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("div", { className: this.question.cssClasses.root, onKeyDown: function (event) { return _this.question.onKeyDown(event.nativeEvent); } },
|
|
2703
|
+
this.renderInput(),
|
|
2704
|
+
this.renderButtons()));
|
|
2705
|
+
};
|
|
2706
|
+
SurveyQuestionSpinEditor.prototype.getValueCore = function () {
|
|
2707
|
+
return this.question.renderedValue;
|
|
2708
|
+
};
|
|
2709
|
+
SurveyQuestionSpinEditor.prototype.renderButtons = function () {
|
|
2710
|
+
var _this = this;
|
|
2711
|
+
return (react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("span", { className: this.question.cssClasses.buttonsContainer },
|
|
2712
|
+
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.question.cssClasses.arrowButton, onMouseDown: this.question.onDownButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); } },
|
|
2713
|
+
react__WEBPACK_IMPORTED_MODULE_1__["createElement"](survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.question.cssClasses.decreaseButtonIcon, size: "auto" })),
|
|
2714
|
+
react__WEBPACK_IMPORTED_MODULE_1__["createElement"]("button", { className: this.question.cssClasses.arrowButton, onMouseDown: this.question.onUpButtonMouseDown, onMouseUp: this.question.onButtonMouseUp, onBlur: function (event) { return _this.question.onBlur(event.nativeEvent); }, onFocus: function (event) { return _this.question.onFocus(event.nativeEvent); } },
|
|
2715
|
+
react__WEBPACK_IMPORTED_MODULE_1__["createElement"](survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.question.cssClasses.increaseButtonIcon, size: "auto" }))));
|
|
2716
|
+
};
|
|
2717
|
+
return SurveyQuestionSpinEditor;
|
|
2718
|
+
}(survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["SurveyQuestionText"]));
|
|
2719
|
+
|
|
2720
|
+
survey_react_ui__WEBPACK_IMPORTED_MODULE_2__["ReactQuestionFactory"].Instance.registerQuestion("spinedit", function (props) {
|
|
2721
|
+
return react__WEBPACK_IMPORTED_MODULE_1__["createElement"](SurveyQuestionSpinEditor, props);
|
|
2722
|
+
});
|
|
2723
|
+
|
|
2724
|
+
|
|
2587
2725
|
/***/ }),
|
|
2588
2726
|
|
|
2589
2727
|
/***/ "./src/entries/helpers.ts":
|
|
@@ -2651,7 +2789,7 @@ var __spreadArrays = function () {
|
|
|
2651
2789
|
/*!******************************!*\
|
|
2652
2790
|
!*** ./src/entries/index.ts ***!
|
|
2653
2791
|
\******************************/
|
|
2654
|
-
/*! exports provided: Version, SurveyCreatorComponent, SurveyCreator, RowWrapper, QuestionAdornerComponent, QuestionWrapperHeader, QuestionWrapperFooter, QuestionDropdownAdornerComponent, QuestionImageAdornerComponent, QuestionRatingAdornerComponent, QuestionWidgetAdornerComponent, CellQuestionAdornerComponent, CellQuestionDropdownAdornerComponent, CreatorSurveyPageComponent, PanelAdornerComponent, LogoImageComponent, SurveyQuestionLinkValue, SurveyElementEmbeddedSurvey, QuestionEditorContentComponent, ItemValueAdornerComponent, ImageItemValueAdornerComponent, MatrixCellAdornerComponent, SurveyResults, SurveyResultsByRow, SurveyCreatorToolboxTool, SurveyCreatorToolboxItem, SurveyCreatorToolboxCategory, Toolbox, AdaptiveToolbox, TabbedMenuComponent, TabbedMenuItemComponent, SurveyNavigation, SidebarComponent, TranslationLineSkeleton, ActionButton, SurveyLocStringEditor, SurveyLogicOpertor, TabDesignerComponent, TabEmbedComponent, TabJsonEditorAceComponent, TabJsonEditorTextareaComponent, TabLogicAddButtonComponent, TabLogicComponent, TabPreviewTestSurveyAgainComponent, TabPreviewSurveyComponent, TabTranslationComponent, SurveySimulator, ReactMouseEvent, ReactDragEvent, PropertyGridComponent, editorLocalization, localization, settings, svgBundle, SurveyLogic, SurveyLogicUI, SurveyQuestionEditorDefinition, ToolboxToolViewModel, PropertyGridEditorCollection, StylesManager */
|
|
2792
|
+
/*! exports provided: Version, SurveyCreatorComponent, SurveyCreator, RowWrapper, QuestionAdornerComponent, QuestionWrapperHeader, QuestionWrapperFooter, QuestionDropdownAdornerComponent, QuestionImageAdornerComponent, QuestionRatingAdornerComponent, QuestionWidgetAdornerComponent, CellQuestionAdornerComponent, CellQuestionDropdownAdornerComponent, CreatorSurveyPageComponent, PanelAdornerComponent, LogoImageComponent, SurveyQuestionLinkValue, SurveyElementEmbeddedSurvey, QuestionEditorContentComponent, ItemValueAdornerComponent, ImageItemValueAdornerComponent, MatrixCellAdornerComponent, SurveyResults, SurveyResultsByRow, SurveyCreatorToolboxTool, SurveyCreatorToolboxItem, SurveyCreatorToolboxCategory, Toolbox, AdaptiveToolbox, TabbedMenuComponent, TabbedMenuItemComponent, SurveyNavigation, SidebarComponent, TranslationLineSkeleton, ActionButton, SurveyLocStringEditor, SurveyLogicOpertor, TabDesignerComponent, TabEmbedComponent, TabJsonEditorAceComponent, TabJsonEditorTextareaComponent, TabLogicAddButtonComponent, TabLogicComponent, TabPreviewTestSurveyAgainComponent, TabPreviewSurveyComponent, TabTranslationComponent, SurveySimulator, ReactMouseEvent, ReactDragEvent, PropertyGridComponent, SurveyQuestionSpinEditor, SurveyQuestionColor, editorLocalization, localization, settings, svgBundle, SurveyLogic, SurveyLogicUI, SurveyQuestionEditorDefinition, ToolboxToolViewModel, PropertyGridEditorCollection, StylesManager */
|
|
2655
2793
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2656
2794
|
|
|
2657
2795
|
"use strict";
|
|
@@ -2798,32 +2936,38 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2798
2936
|
/* empty/unused harmony star reexport *//* harmony import */ var _PropertyGrid__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../PropertyGrid */ "./src/PropertyGrid.tsx");
|
|
2799
2937
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridComponent", function() { return _PropertyGrid__WEBPACK_IMPORTED_MODULE_42__["PropertyGridComponent"]; });
|
|
2800
2938
|
|
|
2801
|
-
/* harmony import */ var
|
|
2802
|
-
/* harmony
|
|
2803
|
-
|
|
2939
|
+
/* harmony import */ var _custom_questions_SpinEditor__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../custom-questions/SpinEditor */ "./src/custom-questions/SpinEditor.tsx");
|
|
2940
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionSpinEditor", function() { return _custom_questions_SpinEditor__WEBPACK_IMPORTED_MODULE_43__["SurveyQuestionSpinEditor"]; });
|
|
2941
|
+
|
|
2942
|
+
/* harmony import */ var _custom_questions_ColorQuestion__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../custom-questions/ColorQuestion */ "./src/custom-questions/ColorQuestion.tsx");
|
|
2943
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionColor", function() { return _custom_questions_ColorQuestion__WEBPACK_IMPORTED_MODULE_44__["SurveyQuestionColor"]; });
|
|
2944
|
+
|
|
2945
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! survey-creator-core */ "survey-creator-core");
|
|
2946
|
+
/* harmony import */ var survey_creator_core__WEBPACK_IMPORTED_MODULE_45___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core__WEBPACK_IMPORTED_MODULE_45__);
|
|
2947
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "editorLocalization", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_45__["editorLocalization"]; });
|
|
2804
2948
|
|
|
2805
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "localization", function() { return
|
|
2949
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "localization", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_45__["localization"]; });
|
|
2806
2950
|
|
|
2807
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return
|
|
2951
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_45__["settings"]; });
|
|
2808
2952
|
|
|
2809
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return
|
|
2953
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_45__["svgBundle"]; });
|
|
2810
2954
|
|
|
2811
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogic", function() { return
|
|
2955
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogic", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_45__["SurveyLogic"]; });
|
|
2812
2956
|
|
|
2813
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogicUI", function() { return
|
|
2957
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogicUI", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_45__["SurveyLogicUI"]; });
|
|
2814
2958
|
|
|
2815
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return
|
|
2959
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_45__["SurveyQuestionEditorDefinition"]; });
|
|
2816
2960
|
|
|
2817
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolboxToolViewModel", function() { return
|
|
2961
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolboxToolViewModel", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_45__["ToolboxToolViewModel"]; });
|
|
2818
2962
|
|
|
2819
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCollection", function() { return
|
|
2963
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCollection", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorCollection"]; });
|
|
2820
2964
|
|
|
2821
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StylesManager", function() { return
|
|
2965
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StylesManager", function() { return survey_creator_core__WEBPACK_IMPORTED_MODULE_45__["StylesManager"]; });
|
|
2822
2966
|
|
|
2823
|
-
/* harmony import */ var
|
|
2824
|
-
/* harmony import */ var
|
|
2967
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
2968
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_46___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_46__);
|
|
2825
2969
|
var Version;
|
|
2826
|
-
Version = "".concat("1.9.
|
|
2970
|
+
Version = "".concat("1.9.82");
|
|
2827
2971
|
// import "@survey/creator/survey-creator-core.css";
|
|
2828
2972
|
|
|
2829
2973
|
|
|
@@ -2866,6 +3010,9 @@ Version = "".concat("1.9.81");
|
|
|
2866
3010
|
|
|
2867
3011
|
|
|
2868
3012
|
|
|
3013
|
+
|
|
3014
|
+
|
|
3015
|
+
//custom questions
|
|
2869
3016
|
|
|
2870
3017
|
|
|
2871
3018
|
|
|
@@ -2876,7 +3023,7 @@ Version = "".concat("1.9.81");
|
|
|
2876
3023
|
|
|
2877
3024
|
|
|
2878
3025
|
|
|
2879
|
-
Object(
|
|
3026
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_46__["checkLibraryVersion"])("".concat("1.9.82"), "survey-creator-react");
|
|
2880
3027
|
|
|
2881
3028
|
|
|
2882
3029
|
/***/ }),
|