survey-react 1.9.110 → 1.9.112
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/defaultV2.css +784 -675
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +310 -241
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +66 -53
- package/survey.css.map +1 -1
- package/survey.min.css +2 -2
- package/survey.react.d.ts +360 -207
- package/survey.react.js +770 -394
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.112
|
3
3
|
* Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -1816,7 +1816,7 @@ var Base = /** @class */ (function () {
|
|
1816
1816
|
*
|
1817
1817
|
* - `sender`: `this`\
|
1818
1818
|
* A SurveyJS object whose property has changed.
|
1819
|
-
* - `options.name`: `
|
1819
|
+
* - `options.name`: `string`\
|
1820
1820
|
* The name of the changed property.
|
1821
1821
|
* - `options.newValue`: `any`\
|
1822
1822
|
* A new value for the property.
|
@@ -1833,7 +1833,7 @@ var Base = /** @class */ (function () {
|
|
1833
1833
|
* A SurveyJS object whose property contains an array of `ItemValue` objects.
|
1834
1834
|
* - `options.obj`: [`ItemValue`](https://surveyjs.io/form-library/documentation/itemvalue)\
|
1835
1835
|
* An `ItemValue` object.
|
1836
|
-
* - `options.propertyName`: `
|
1836
|
+
* - `options.propertyName`: `string`\
|
1837
1837
|
* The name of the property to which an array of `ItemValue` objects is assigned (for example, `"choices"` or `"rows"`).
|
1838
1838
|
* - `options.name`: `"text"` | `"value"`\
|
1839
1839
|
* The name of the changed property.
|
@@ -3563,11 +3563,11 @@ var ChoicesRestful = /** @class */ (function (_super) {
|
|
3563
3563
|
configurable: true
|
3564
3564
|
});
|
3565
3565
|
ChoicesRestful.prototype.clear = function () {
|
3566
|
-
this.url =
|
3567
|
-
this.path =
|
3568
|
-
this.valueName =
|
3569
|
-
this.titleName =
|
3570
|
-
this.imageLinkName =
|
3566
|
+
this.url = undefined;
|
3567
|
+
this.path = undefined;
|
3568
|
+
this.valueName = undefined;
|
3569
|
+
this.titleName = undefined;
|
3570
|
+
this.imageLinkName = undefined;
|
3571
3571
|
var properties = this.getCustomPropertiesNames();
|
3572
3572
|
for (var i = 0; i < properties.length; i++) {
|
3573
3573
|
if (this[properties[i]])
|
@@ -4077,7 +4077,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
4077
4077
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ConditionRunner", function() { return ConditionRunner; });
|
4078
4078
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ExpressionRunner", function() { return ExpressionRunner; });
|
4079
4079
|
/* harmony import */ var _conditionProcessValue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./conditionProcessValue */ "./src/conditionProcessValue.ts");
|
4080
|
-
/* harmony import */ var
|
4080
|
+
/* harmony import */ var _console_warnings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./console-warnings */ "./src/console-warnings.ts");
|
4081
|
+
/* harmony import */ var _conditionsParser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./conditionsParser */ "./src/conditionsParser.ts");
|
4081
4082
|
var __extends = (undefined && undefined.__extends) || (function () {
|
4082
4083
|
var extendStatics = function (d, b) {
|
4083
4084
|
extendStatics = Object.setPrototypeOf ||
|
@@ -4095,10 +4096,11 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
4095
4096
|
})();
|
4096
4097
|
|
4097
4098
|
|
4099
|
+
|
4098
4100
|
var ExpressionExecutor = /** @class */ (function () {
|
4099
4101
|
function ExpressionExecutor(expression) {
|
4100
4102
|
this.processValue = new _conditionProcessValue__WEBPACK_IMPORTED_MODULE_0__["ProcessValue"]();
|
4101
|
-
this.parser = new
|
4103
|
+
this.parser = new _conditionsParser__WEBPACK_IMPORTED_MODULE_2__["ConditionsParser"]();
|
4102
4104
|
this.isAsyncValue = false;
|
4103
4105
|
this.hasFunctionValue = false;
|
4104
4106
|
this.setExpression(expression);
|
@@ -4143,8 +4145,12 @@ var ExpressionExecutor = /** @class */ (function () {
|
|
4143
4145
|
ExpressionExecutor.prototype.run = function (values, properties) {
|
4144
4146
|
var _this = this;
|
4145
4147
|
if (properties === void 0) { properties = null; }
|
4146
|
-
if (!this.operand)
|
4148
|
+
if (!this.operand) {
|
4149
|
+
if (!!this.expression) {
|
4150
|
+
_console_warnings__WEBPACK_IMPORTED_MODULE_1__["ConsoleWarnings"].warn("Invalid expression: " + this.expression);
|
4151
|
+
}
|
4147
4152
|
return null;
|
4153
|
+
}
|
4148
4154
|
this.processValue.values = values;
|
4149
4155
|
this.processValue.properties = properties;
|
4150
4156
|
if (!this.isAsync)
|
@@ -4497,12 +4503,12 @@ var CoverCell = /** @class */ (function () {
|
|
4497
4503
|
enumerable: false,
|
4498
4504
|
configurable: true
|
4499
4505
|
});
|
4500
|
-
Object.defineProperty(CoverCell.prototype, "
|
4506
|
+
Object.defineProperty(CoverCell.prototype, "textAreaWidth", {
|
4501
4507
|
get: function () {
|
4502
|
-
if (!this.cover.
|
4508
|
+
if (!this.cover.textAreaWidth) {
|
4503
4509
|
return "";
|
4504
4510
|
}
|
4505
|
-
return "" + this.cover.
|
4511
|
+
return "" + this.cover.textAreaWidth + "px";
|
4506
4512
|
},
|
4507
4513
|
enumerable: false,
|
4508
4514
|
configurable: true
|
@@ -4520,6 +4526,9 @@ var Cover = /** @class */ (function (_super) {
|
|
4520
4526
|
["top", "middle", "bottom"].forEach(function (positionY) {
|
4521
4527
|
return ["left", "center", "right"].forEach(function (positionX) { return _this.cells.push(new CoverCell(_this, positionX, positionY)); });
|
4522
4528
|
});
|
4529
|
+
_this.updateCoverClasses();
|
4530
|
+
_this.updateContentClasses();
|
4531
|
+
_this.updateBackgroundImageClasses();
|
4523
4532
|
return _this;
|
4524
4533
|
}
|
4525
4534
|
Cover.prototype.calcBackgroundSize = function (backgroundImageFit) {
|
@@ -4527,10 +4536,37 @@ var Cover = /** @class */ (function (_super) {
|
|
4527
4536
|
return "100% 100%";
|
4528
4537
|
}
|
4529
4538
|
if (backgroundImageFit === "tile") {
|
4530
|
-
return "
|
4539
|
+
return "auto";
|
4531
4540
|
}
|
4532
4541
|
return backgroundImageFit;
|
4533
4542
|
};
|
4543
|
+
Cover.prototype.updateCoverClasses = function () {
|
4544
|
+
this.coverClasses = new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_2__["CssClassBuilder"]()
|
4545
|
+
.append("sv-cover")
|
4546
|
+
.append("sv-conver__without-background", (!this.backgroundColor || this.backgroundColor === "trasparent") && !this.backgroundImage)
|
4547
|
+
.append("sv-conver__overlap", this.overlapEnabled)
|
4548
|
+
.toString();
|
4549
|
+
};
|
4550
|
+
Cover.prototype.updateContentClasses = function () {
|
4551
|
+
this.contentClasses = new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_2__["CssClassBuilder"]()
|
4552
|
+
.append("sv-conver__content")
|
4553
|
+
.append("sv-conver__content--static", this.inheritWidthFrom === "survey" && !!this.survey && this.survey.calculateWidthMode() === "static")
|
4554
|
+
.append("sv-conver__content--responsive", this.inheritWidthFrom === "page" || (!!this.survey && this.survey.calculateWidthMode() === "responsive"))
|
4555
|
+
.toString();
|
4556
|
+
};
|
4557
|
+
Cover.prototype.updateBackgroundImageClasses = function () {
|
4558
|
+
this.backgroundImageClasses = new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_2__["CssClassBuilder"]()
|
4559
|
+
.append("sv-cover__background-image")
|
4560
|
+
.append("sv-cover__background-image--contain", this.backgroundImageFit === "contain")
|
4561
|
+
.append("sv-cover__background-image--tile", this.backgroundImageFit === "tile")
|
4562
|
+
.toString();
|
4563
|
+
};
|
4564
|
+
Cover.prototype.fromTheme = function (theme) {
|
4565
|
+
_super.prototype.fromJSON.call(this, theme.header);
|
4566
|
+
if (!!theme.cssVariables) {
|
4567
|
+
this.backgroundColor = theme.cssVariables["--sjs-cover-backcolor"];
|
4568
|
+
}
|
4569
|
+
};
|
4534
4570
|
Cover.prototype.getType = function () {
|
4535
4571
|
return "cover";
|
4536
4572
|
};
|
@@ -4541,41 +4577,30 @@ var Cover = /** @class */ (function (_super) {
|
|
4541
4577
|
enumerable: false,
|
4542
4578
|
configurable: true
|
4543
4579
|
});
|
4544
|
-
Object.defineProperty(Cover.prototype, "
|
4580
|
+
Object.defineProperty(Cover.prototype, "renderedtextAreaWidth", {
|
4545
4581
|
get: function () {
|
4546
|
-
return this.
|
4582
|
+
return this.textAreaWidth ? this.textAreaWidth + "px" : undefined;
|
4547
4583
|
},
|
4548
4584
|
enumerable: false,
|
4549
4585
|
configurable: true
|
4550
4586
|
});
|
4551
|
-
Object.defineProperty(Cover.prototype, "
|
4587
|
+
Object.defineProperty(Cover.prototype, "survey", {
|
4552
4588
|
get: function () {
|
4553
|
-
return
|
4554
|
-
.append("sv-cover")
|
4555
|
-
.append("sv-conver__without-background", !this.backgroundColor && !this.backgroundImage)
|
4556
|
-
.toString();
|
4589
|
+
return this._survey;
|
4557
4590
|
},
|
4558
|
-
|
4559
|
-
|
4560
|
-
|
4561
|
-
|
4562
|
-
|
4563
|
-
|
4564
|
-
.
|
4565
|
-
|
4566
|
-
|
4567
|
-
|
4568
|
-
|
4569
|
-
|
4570
|
-
|
4571
|
-
});
|
4572
|
-
Object.defineProperty(Cover.prototype, "backgroundImageClasses", {
|
4573
|
-
get: function () {
|
4574
|
-
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_2__["CssClassBuilder"]()
|
4575
|
-
.append("sv-cover__background-image")
|
4576
|
-
.append("sv-cover__background-image--contain", this.backgroundImageFit === "contain")
|
4577
|
-
.append("sv-cover__background-image--tile", this.backgroundImageFit === "tile")
|
4578
|
-
.toString();
|
4591
|
+
set: function (newValue) {
|
4592
|
+
var _this = this;
|
4593
|
+
if (this._survey === newValue)
|
4594
|
+
return;
|
4595
|
+
this._survey = newValue;
|
4596
|
+
if (!!newValue) {
|
4597
|
+
this.updateContentClasses();
|
4598
|
+
this._survey.onPropertyChanged.add(function (sender, options) {
|
4599
|
+
if (options.name == "widthMode") {
|
4600
|
+
_this.updateContentClasses();
|
4601
|
+
}
|
4602
|
+
});
|
4603
|
+
}
|
4579
4604
|
},
|
4580
4605
|
enumerable: false,
|
4581
4606
|
configurable: true
|
@@ -4593,24 +4618,33 @@ var Cover = /** @class */ (function (_super) {
|
|
4593
4618
|
enumerable: false,
|
4594
4619
|
configurable: true
|
4595
4620
|
});
|
4621
|
+
Cover.prototype.propertyValueChanged = function (name, oldValue, newValue) {
|
4622
|
+
_super.prototype.propertyValueChanged.call(this, name, oldValue, newValue);
|
4623
|
+
if (name === "backgroundColor" || name === "backgroundImage" || name === "overlapEnabled") {
|
4624
|
+
this.updateCoverClasses();
|
4625
|
+
}
|
4626
|
+
if (name === "inheritWidthFrom") {
|
4627
|
+
this.updateContentClasses();
|
4628
|
+
}
|
4629
|
+
if (name === "backgroundImageFit") {
|
4630
|
+
this.updateBackgroundImageClasses();
|
4631
|
+
}
|
4632
|
+
};
|
4596
4633
|
__decorate([
|
4597
4634
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
4598
4635
|
], Cover.prototype, "height", void 0);
|
4599
4636
|
__decorate([
|
4600
4637
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
4601
|
-
], Cover.prototype, "
|
4638
|
+
], Cover.prototype, "inheritWidthFrom", void 0);
|
4602
4639
|
__decorate([
|
4603
4640
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
4604
|
-
], Cover.prototype, "
|
4641
|
+
], Cover.prototype, "textAreaWidth", void 0);
|
4605
4642
|
__decorate([
|
4606
4643
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
4607
|
-
], Cover.prototype, "
|
4644
|
+
], Cover.prototype, "textGlowEnabled", void 0);
|
4608
4645
|
__decorate([
|
4609
4646
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
4610
|
-
], Cover.prototype, "
|
4611
|
-
__decorate([
|
4612
|
-
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
4613
|
-
], Cover.prototype, "overlap", void 0);
|
4647
|
+
], Cover.prototype, "overlapEnabled", void 0);
|
4614
4648
|
__decorate([
|
4615
4649
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
4616
4650
|
], Cover.prototype, "backgroundColor", void 0);
|
@@ -4657,18 +4691,25 @@ var Cover = /** @class */ (function (_super) {
|
|
4657
4691
|
__decorate([
|
4658
4692
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
4659
4693
|
], Cover.prototype, "descriptionStyle", void 0);
|
4694
|
+
__decorate([
|
4695
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
4696
|
+
], Cover.prototype, "coverClasses", void 0);
|
4697
|
+
__decorate([
|
4698
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
4699
|
+
], Cover.prototype, "contentClasses", void 0);
|
4700
|
+
__decorate([
|
4701
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
4702
|
+
], Cover.prototype, "backgroundImageClasses", void 0);
|
4660
4703
|
return Cover;
|
4661
4704
|
}(_base__WEBPACK_IMPORTED_MODULE_0__["Base"]));
|
4662
4705
|
|
4663
4706
|
_jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("cover", [
|
4664
4707
|
{ name: "height:number", minValue: 0, default: 256 },
|
4665
|
-
{ name: "
|
4666
|
-
{ name: "
|
4667
|
-
{ name: "
|
4668
|
-
{ name: "
|
4669
|
-
{ name: "
|
4670
|
-
{ name: "backgroundColor" },
|
4671
|
-
{ name: "backgroundImage" },
|
4708
|
+
{ name: "inheritWidthFrom", default: "survey" },
|
4709
|
+
{ name: "textAreaWidth:number", minValue: 0, default: 512 },
|
4710
|
+
{ name: "textGlowEnabled:boolean" },
|
4711
|
+
{ name: "overlapEnabled:boolean" },
|
4712
|
+
{ name: "backgroundImage:file" },
|
4672
4713
|
{ name: "backgroundImageOpacity:number", minValue: 0, maxValue: 1, default: 1 },
|
4673
4714
|
{ name: "backgroundImageFit", default: "cover", choices: ["cover", "fill", "contain"] },
|
4674
4715
|
{ name: "logoPositionX", default: "right" },
|
@@ -5590,6 +5631,8 @@ var defaultV2Css = {
|
|
5590
5631
|
rootReadOnly: "sd-root--readonly",
|
5591
5632
|
rootCompact: "sd-root--compact",
|
5592
5633
|
rootFitToContainer: "sd-root-modern--full-container",
|
5634
|
+
rootWrapper: "sd-root-modern__wrapper",
|
5635
|
+
rootWrapperFixed: "sd-root-modern__wrapper--fixed",
|
5593
5636
|
rootBackgroundImage: "sd-root_background-image",
|
5594
5637
|
container: "sd-container-modern",
|
5595
5638
|
header: "sd-title sd-container-modern__title",
|
@@ -7677,7 +7720,7 @@ var DragDropRankingChoices = /** @class */ (function (_super) {
|
|
7677
7720
|
DragDropRankingChoices.prototype.createDraggedElementShortcut = function (text, draggedElementNode, event) {
|
7678
7721
|
var draggedElementShortcut = document.createElement("div");
|
7679
7722
|
draggedElementShortcut.className = this.shortcutClass + " sv-ranking-shortcut";
|
7680
|
-
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n border-radius: calc(12.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n min-width: 100px;\n box-shadow: var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));\n background-color: var(--sjs-general-backcolor, var(--background, #fff));\n font-family: var(--font-family, 'Open Sans');\n ";
|
7723
|
+
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n border-radius: calc(12.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n min-width: 100px;\n max-width: 400px;\n box-shadow: var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));\n background-color: var(--sjs-general-backcolor, var(--background, #fff));\n font-family: var(--font-family, 'Open Sans');\n ";
|
7681
7724
|
var isDeepClone = true;
|
7682
7725
|
var clone = draggedElementNode.cloneNode(isDeepClone);
|
7683
7726
|
draggedElementShortcut.appendChild(clone);
|
@@ -8197,6 +8240,8 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
8197
8240
|
};
|
8198
8241
|
DropdownListModel.prototype.onSetFilterString = function () {
|
8199
8242
|
var _this = this;
|
8243
|
+
if (!this.filterString && !this.popupModel.isVisible)
|
8244
|
+
return;
|
8200
8245
|
if (!!this.filterString && !this.popupModel.isVisible) {
|
8201
8246
|
this.popupModel.isVisible = true;
|
8202
8247
|
}
|
@@ -8382,11 +8427,11 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
8382
8427
|
return;
|
8383
8428
|
this._popupModel.toggleVisibility();
|
8384
8429
|
this.focusItemOnClickAndPopup();
|
8385
|
-
|
8386
|
-
|
8387
|
-
|
8388
|
-
|
8389
|
-
|
8430
|
+
this.question.focus();
|
8431
|
+
};
|
8432
|
+
DropdownListModel.prototype.chevronPointerDown = function (event) {
|
8433
|
+
if (this._popupModel.isVisible) {
|
8434
|
+
event.preventDefault();
|
8390
8435
|
}
|
8391
8436
|
};
|
8392
8437
|
DropdownListModel.prototype.onPropertyChangedHandler = function (sender, options) {
|
@@ -8526,11 +8571,11 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
8526
8571
|
this._popupModel.isVisible = true;
|
8527
8572
|
return;
|
8528
8573
|
}
|
8574
|
+
Object(_utils_utils__WEBPACK_IMPORTED_MODULE_8__["doKey2ClickBlur"])(event);
|
8575
|
+
this._popupModel.isVisible = false;
|
8529
8576
|
this.resetFilterString();
|
8530
8577
|
this.inputString = null;
|
8531
8578
|
this.hintString = "";
|
8532
|
-
Object(_utils_utils__WEBPACK_IMPORTED_MODULE_8__["doKey2ClickBlur"])(event);
|
8533
|
-
this._popupModel.isVisible = false;
|
8534
8579
|
event.stopPropagation();
|
8535
8580
|
};
|
8536
8581
|
DropdownListModel.prototype.onFocus = function (event) {
|
@@ -9631,8 +9676,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
9631
9676
|
//import "../../modern.scss";
|
9632
9677
|
var Version;
|
9633
9678
|
var ReleaseDate;
|
9634
|
-
Version = "" + "1.9.
|
9635
|
-
ReleaseDate = "" + "2023-
|
9679
|
+
Version = "" + "1.9.112";
|
9680
|
+
ReleaseDate = "" + "2023-10-10";
|
9636
9681
|
function checkLibraryVersion(ver, libraryName) {
|
9637
9682
|
if (Version != ver) {
|
9638
9683
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
@@ -10725,7 +10770,7 @@ var defaultBootstrapMaterialCss = _plugins_themes_bootstrapmaterial_cssbootstrap
|
|
10725
10770
|
/*!***************************************!*\
|
10726
10771
|
!*** ./src/entries/react-ui-model.ts ***!
|
10727
10772
|
\***************************************/
|
10728
|
-
/*! exports provided: Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, RatingItem, RatingItemStar, RatingItemSmiley, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, CoverCellComponent, CoverComponent, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent */
|
10773
|
+
/*! exports provided: Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, RatingItem, RatingItemStar, RatingItemSmiley, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, CoverCellComponent, CoverComponent, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent */
|
10729
10774
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10730
10775
|
|
10731
10776
|
"use strict";
|
@@ -10826,173 +10871,176 @@ __webpack_require__.r(__webpack_exports__);
|
|
10826
10871
|
/* harmony import */ var _react_reactquestion_file__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../react/reactquestion_file */ "./src/react/reactquestion_file.tsx");
|
10827
10872
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionFile", function() { return _react_reactquestion_file__WEBPACK_IMPORTED_MODULE_25__["SurveyQuestionFile"]; });
|
10828
10873
|
|
10829
|
-
/* harmony import */ var
|
10830
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyFileChooseButton", function() { return
|
10874
|
+
/* harmony import */ var _react_components_file_file_choose_button__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../react/components/file/file-choose-button */ "./src/react/components/file/file-choose-button.tsx");
|
10875
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyFileChooseButton", function() { return _react_components_file_file_choose_button__WEBPACK_IMPORTED_MODULE_26__["SurveyFileChooseButton"]; });
|
10876
|
+
|
10877
|
+
/* harmony import */ var _react_components_file_file_preview__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../react/components/file/file-preview */ "./src/react/components/file/file-preview.tsx");
|
10878
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyFilePreview", function() { return _react_components_file_file_preview__WEBPACK_IMPORTED_MODULE_27__["SurveyFilePreview"]; });
|
10831
10879
|
|
10832
|
-
/* harmony import */ var
|
10833
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMultipleText", function() { return
|
10880
|
+
/* harmony import */ var _react_reactquestion_multipletext__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../react/reactquestion_multipletext */ "./src/react/reactquestion_multipletext.tsx");
|
10881
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMultipleText", function() { return _react_reactquestion_multipletext__WEBPACK_IMPORTED_MODULE_28__["SurveyQuestionMultipleText"]; });
|
10834
10882
|
|
10835
|
-
/* harmony import */ var
|
10836
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRadiogroup", function() { return
|
10883
|
+
/* harmony import */ var _react_reactquestion_radiogroup__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../react/reactquestion_radiogroup */ "./src/react/reactquestion_radiogroup.tsx");
|
10884
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRadiogroup", function() { return _react_reactquestion_radiogroup__WEBPACK_IMPORTED_MODULE_29__["SurveyQuestionRadiogroup"]; });
|
10837
10885
|
|
10838
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRadioItem", function() { return
|
10886
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRadioItem", function() { return _react_reactquestion_radiogroup__WEBPACK_IMPORTED_MODULE_29__["SurveyQuestionRadioItem"]; });
|
10839
10887
|
|
10840
|
-
/* harmony import */ var
|
10841
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionText", function() { return
|
10888
|
+
/* harmony import */ var _react_reactquestion_text__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../react/reactquestion_text */ "./src/react/reactquestion_text.tsx");
|
10889
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionText", function() { return _react_reactquestion_text__WEBPACK_IMPORTED_MODULE_30__["SurveyQuestionText"]; });
|
10842
10890
|
|
10843
|
-
/* harmony import */ var
|
10844
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionBoolean", function() { return
|
10891
|
+
/* harmony import */ var _react_boolean__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../react/boolean */ "./src/react/boolean.tsx");
|
10892
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionBoolean", function() { return _react_boolean__WEBPACK_IMPORTED_MODULE_31__["SurveyQuestionBoolean"]; });
|
10845
10893
|
|
10846
|
-
/* harmony import */ var
|
10847
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionBooleanCheckbox", function() { return
|
10894
|
+
/* harmony import */ var _react_boolean_checkbox__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../react/boolean-checkbox */ "./src/react/boolean-checkbox.tsx");
|
10895
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionBooleanCheckbox", function() { return _react_boolean_checkbox__WEBPACK_IMPORTED_MODULE_32__["SurveyQuestionBooleanCheckbox"]; });
|
10848
10896
|
|
10849
|
-
/* harmony import */ var
|
10850
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionBooleanRadio", function() { return
|
10897
|
+
/* harmony import */ var _react_boolean_radio__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../react/boolean-radio */ "./src/react/boolean-radio.tsx");
|
10898
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionBooleanRadio", function() { return _react_boolean_radio__WEBPACK_IMPORTED_MODULE_33__["SurveyQuestionBooleanRadio"]; });
|
10851
10899
|
|
10852
|
-
/* harmony import */ var
|
10853
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEmpty", function() { return
|
10900
|
+
/* harmony import */ var _react_reactquestion_empty__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../react/reactquestion_empty */ "./src/react/reactquestion_empty.tsx");
|
10901
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEmpty", function() { return _react_reactquestion_empty__WEBPACK_IMPORTED_MODULE_34__["SurveyQuestionEmpty"]; });
|
10854
10902
|
|
10855
|
-
/* harmony import */ var
|
10856
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdownCell", function() { return
|
10903
|
+
/* harmony import */ var _react_reactquestion_matrixdropdownbase__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../react/reactquestion_matrixdropdownbase */ "./src/react/reactquestion_matrixdropdownbase.tsx");
|
10904
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdownCell", function() { return _react_reactquestion_matrixdropdownbase__WEBPACK_IMPORTED_MODULE_35__["SurveyQuestionMatrixDropdownCell"]; });
|
10857
10905
|
|
10858
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdownBase", function() { return
|
10906
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdownBase", function() { return _react_reactquestion_matrixdropdownbase__WEBPACK_IMPORTED_MODULE_35__["SurveyQuestionMatrixDropdownBase"]; });
|
10859
10907
|
|
10860
|
-
/* harmony import */ var
|
10861
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdown", function() { return
|
10908
|
+
/* harmony import */ var _react_reactquestion_matrixdropdown__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../react/reactquestion_matrixdropdown */ "./src/react/reactquestion_matrixdropdown.tsx");
|
10909
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdown", function() { return _react_reactquestion_matrixdropdown__WEBPACK_IMPORTED_MODULE_36__["SurveyQuestionMatrixDropdown"]; });
|
10862
10910
|
|
10863
|
-
/* harmony import */ var
|
10864
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamic", function() { return
|
10911
|
+
/* harmony import */ var _react_reactquestion_matrixdynamic__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../react/reactquestion_matrixdynamic */ "./src/react/reactquestion_matrixdynamic.tsx");
|
10912
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamic", function() { return _react_reactquestion_matrixdynamic__WEBPACK_IMPORTED_MODULE_37__["SurveyQuestionMatrixDynamic"]; });
|
10865
10913
|
|
10866
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamicAddButton", function() { return
|
10914
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamicAddButton", function() { return _react_reactquestion_matrixdynamic__WEBPACK_IMPORTED_MODULE_37__["SurveyQuestionMatrixDynamicAddButton"]; });
|
10867
10915
|
|
10868
|
-
/* harmony import */ var
|
10869
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamic", function() { return
|
10916
|
+
/* harmony import */ var _react_reactquestion_paneldynamic__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../react/reactquestion_paneldynamic */ "./src/react/reactquestion_paneldynamic.tsx");
|
10917
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamic", function() { return _react_reactquestion_paneldynamic__WEBPACK_IMPORTED_MODULE_38__["SurveyQuestionPanelDynamic"]; });
|
10870
10918
|
|
10871
|
-
/* harmony import */ var
|
10872
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgress", function() { return
|
10919
|
+
/* harmony import */ var _react_reactSurveyProgress__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../react/reactSurveyProgress */ "./src/react/reactSurveyProgress.tsx");
|
10920
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgress", function() { return _react_reactSurveyProgress__WEBPACK_IMPORTED_MODULE_39__["SurveyProgress"]; });
|
10873
10921
|
|
10874
|
-
/* harmony import */ var
|
10875
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressButtons", function() { return
|
10922
|
+
/* harmony import */ var _react_reactSurveyProgressButtons__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../react/reactSurveyProgressButtons */ "./src/react/reactSurveyProgressButtons.tsx");
|
10923
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressButtons", function() { return _react_reactSurveyProgressButtons__WEBPACK_IMPORTED_MODULE_40__["SurveyProgressButtons"]; });
|
10876
10924
|
|
10877
|
-
/* harmony import */ var
|
10878
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressToc", function() { return
|
10925
|
+
/* harmony import */ var _react_reactSurveyProgressToc__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../react/reactSurveyProgressToc */ "./src/react/reactSurveyProgressToc.tsx");
|
10926
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressToc", function() { return _react_reactSurveyProgressToc__WEBPACK_IMPORTED_MODULE_41__["SurveyProgressToc"]; });
|
10879
10927
|
|
10880
|
-
/* harmony import */ var
|
10881
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRating", function() { return
|
10928
|
+
/* harmony import */ var _react_reactquestion_rating__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../react/reactquestion_rating */ "./src/react/reactquestion_rating.tsx");
|
10929
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRating", function() { return _react_reactquestion_rating__WEBPACK_IMPORTED_MODULE_42__["SurveyQuestionRating"]; });
|
10882
10930
|
|
10883
|
-
/* harmony import */ var
|
10884
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRatingDropdown", function() { return
|
10931
|
+
/* harmony import */ var _react_rating_dropdown__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../react/rating-dropdown */ "./src/react/rating-dropdown.tsx");
|
10932
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRatingDropdown", function() { return _react_rating_dropdown__WEBPACK_IMPORTED_MODULE_43__["SurveyQuestionRatingDropdown"]; });
|
10885
10933
|
|
10886
|
-
/* harmony import */ var
|
10887
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionExpression", function() { return
|
10934
|
+
/* harmony import */ var _react_reactquestion_expression__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../react/reactquestion_expression */ "./src/react/reactquestion_expression.tsx");
|
10935
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionExpression", function() { return _react_reactquestion_expression__WEBPACK_IMPORTED_MODULE_44__["SurveyQuestionExpression"]; });
|
10888
10936
|
|
10889
|
-
/* harmony import */ var
|
10890
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupSurvey", function() { return
|
10937
|
+
/* harmony import */ var _react_react_popup_survey__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../react/react-popup-survey */ "./src/react/react-popup-survey.tsx");
|
10938
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupSurvey", function() { return _react_react_popup_survey__WEBPACK_IMPORTED_MODULE_45__["PopupSurvey"]; });
|
10891
10939
|
|
10892
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyWindow", function() { return
|
10940
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyWindow", function() { return _react_react_popup_survey__WEBPACK_IMPORTED_MODULE_45__["SurveyWindow"]; });
|
10893
10941
|
|
10894
|
-
/* harmony import */ var
|
10895
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReactQuestionFactory", function() { return
|
10942
|
+
/* harmony import */ var _react_reactquestion_factory__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../react/reactquestion_factory */ "./src/react/reactquestion_factory.tsx");
|
10943
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReactQuestionFactory", function() { return _react_reactquestion_factory__WEBPACK_IMPORTED_MODULE_46__["ReactQuestionFactory"]; });
|
10896
10944
|
|
10897
|
-
/* harmony import */ var
|
10898
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReactElementFactory", function() { return
|
10945
|
+
/* harmony import */ var _react_element_factory__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ../react/element-factory */ "./src/react/element-factory.tsx");
|
10946
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReactElementFactory", function() { return _react_element_factory__WEBPACK_IMPORTED_MODULE_47__["ReactElementFactory"]; });
|
10899
10947
|
|
10900
|
-
/* harmony import */ var
|
10901
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionImagePicker", function() { return
|
10948
|
+
/* harmony import */ var _react_imagepicker__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../react/imagepicker */ "./src/react/imagepicker.tsx");
|
10949
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionImagePicker", function() { return _react_imagepicker__WEBPACK_IMPORTED_MODULE_48__["SurveyQuestionImagePicker"]; });
|
10902
10950
|
|
10903
|
-
/* harmony import */ var
|
10904
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionImage", function() { return
|
10951
|
+
/* harmony import */ var _react_image__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../react/image */ "./src/react/image.tsx");
|
10952
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionImage", function() { return _react_image__WEBPACK_IMPORTED_MODULE_49__["SurveyQuestionImage"]; });
|
10905
10953
|
|
10906
|
-
/* harmony import */ var
|
10907
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionSignaturePad", function() { return
|
10954
|
+
/* harmony import */ var _react_signaturepad__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ../react/signaturepad */ "./src/react/signaturepad.tsx");
|
10955
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionSignaturePad", function() { return _react_signaturepad__WEBPACK_IMPORTED_MODULE_50__["SurveyQuestionSignaturePad"]; });
|
10908
10956
|
|
10909
|
-
/* harmony import */ var
|
10910
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionButtonGroup", function() { return
|
10957
|
+
/* harmony import */ var _react_reactquestion_buttongroup__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../react/reactquestion_buttongroup */ "./src/react/reactquestion_buttongroup.tsx");
|
10958
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionButtonGroup", function() { return _react_reactquestion_buttongroup__WEBPACK_IMPORTED_MODULE_51__["SurveyQuestionButtonGroup"]; });
|
10911
10959
|
|
10912
|
-
/* harmony import */ var
|
10913
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionCustom", function() { return
|
10960
|
+
/* harmony import */ var _react_reactquestion_custom__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../react/reactquestion_custom */ "./src/react/reactquestion_custom.tsx");
|
10961
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionCustom", function() { return _react_reactquestion_custom__WEBPACK_IMPORTED_MODULE_52__["SurveyQuestionCustom"]; });
|
10914
10962
|
|
10915
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionComposite", function() { return
|
10963
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionComposite", function() { return _react_reactquestion_custom__WEBPACK_IMPORTED_MODULE_52__["SurveyQuestionComposite"]; });
|
10916
10964
|
|
10917
|
-
/* harmony import */ var
|
10918
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return
|
10965
|
+
/* harmony import */ var _react_components_popup_popup__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../react/components/popup/popup */ "./src/react/components/popup/popup.tsx");
|
10966
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return _react_components_popup_popup__WEBPACK_IMPORTED_MODULE_53__["Popup"]; });
|
10919
10967
|
|
10920
|
-
/* harmony import */ var
|
10921
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "List", function() { return
|
10968
|
+
/* harmony import */ var _react_components_list_list__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../react/components/list/list */ "./src/react/components/list/list.tsx");
|
10969
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "List", function() { return _react_components_list_list__WEBPACK_IMPORTED_MODULE_54__["List"]; });
|
10922
10970
|
|
10923
|
-
/* harmony import */ var
|
10924
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TitleActions", function() { return
|
10971
|
+
/* harmony import */ var _react_components_title_title_actions__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../react/components/title/title-actions */ "./src/react/components/title/title-actions.tsx");
|
10972
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TitleActions", function() { return _react_components_title_title_actions__WEBPACK_IMPORTED_MODULE_55__["TitleActions"]; });
|
10925
10973
|
|
10926
|
-
/* harmony import */ var
|
10927
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TitleElement", function() { return
|
10974
|
+
/* harmony import */ var _react_components_title_title_element__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../react/components/title/title-element */ "./src/react/components/title/title-element.tsx");
|
10975
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TitleElement", function() { return _react_components_title_title_element__WEBPACK_IMPORTED_MODULE_56__["TitleElement"]; });
|
10928
10976
|
|
10929
|
-
/* harmony import */ var
|
10930
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyActionBar", function() { return
|
10977
|
+
/* harmony import */ var _react_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../react/components/action-bar/action-bar */ "./src/react/components/action-bar/action-bar.tsx");
|
10978
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyActionBar", function() { return _react_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_57__["SurveyActionBar"]; });
|
10931
10979
|
|
10932
|
-
/* harmony import */ var
|
10933
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogoImage", function() { return
|
10980
|
+
/* harmony import */ var _react_components_survey_header_logo_image__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../react/components/survey-header/logo-image */ "./src/react/components/survey-header/logo-image.tsx");
|
10981
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogoImage", function() { return _react_components_survey_header_logo_image__WEBPACK_IMPORTED_MODULE_58__["LogoImage"]; });
|
10934
10982
|
|
10935
|
-
/* harmony import */ var
|
10936
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyHeader", function() { return
|
10983
|
+
/* harmony import */ var _react_components_survey_header_survey_header__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../react/components/survey-header/survey-header */ "./src/react/components/survey-header/survey-header.tsx");
|
10984
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyHeader", function() { return _react_components_survey_header_survey_header__WEBPACK_IMPORTED_MODULE_59__["SurveyHeader"]; });
|
10937
10985
|
|
10938
|
-
/* harmony import */ var
|
10939
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SvgIcon", function() { return
|
10986
|
+
/* harmony import */ var _react_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../react/components/svg-icon/svg-icon */ "./src/react/components/svg-icon/svg-icon.tsx");
|
10987
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SvgIcon", function() { return _react_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_60__["SvgIcon"]; });
|
10940
10988
|
|
10941
|
-
/* harmony import */ var
|
10942
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamicRemoveButton", function() { return
|
10989
|
+
/* harmony import */ var _react_components_matrix_actions_remove_button_remove_button__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../react/components/matrix-actions/remove-button/remove-button */ "./src/react/components/matrix-actions/remove-button/remove-button.tsx");
|
10990
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamicRemoveButton", function() { return _react_components_matrix_actions_remove_button_remove_button__WEBPACK_IMPORTED_MODULE_61__["SurveyQuestionMatrixDynamicRemoveButton"]; });
|
10943
10991
|
|
10944
|
-
/* harmony import */ var
|
10945
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDetailButton", function() { return
|
10992
|
+
/* harmony import */ var _react_components_matrix_actions_detail_button_detail_button__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../react/components/matrix-actions/detail-button/detail-button */ "./src/react/components/matrix-actions/detail-button/detail-button.tsx");
|
10993
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDetailButton", function() { return _react_components_matrix_actions_detail_button_detail_button__WEBPACK_IMPORTED_MODULE_62__["SurveyQuestionMatrixDetailButton"]; });
|
10946
10994
|
|
10947
|
-
/* harmony import */ var
|
10948
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamicDragDropIcon", function() { return
|
10995
|
+
/* harmony import */ var _react_components_matrix_actions_drag_drop_icon_drag_drop_icon__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ../react/components/matrix-actions/drag-drop-icon/drag-drop-icon */ "./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx");
|
10996
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamicDragDropIcon", function() { return _react_components_matrix_actions_drag_drop_icon_drag_drop_icon__WEBPACK_IMPORTED_MODULE_63__["SurveyQuestionMatrixDynamicDragDropIcon"]; });
|
10949
10997
|
|
10950
|
-
/* harmony import */ var
|
10951
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicAddButton", function() { return
|
10998
|
+
/* harmony import */ var _react_components_paneldynamic_actions_paneldynamic_add_btn__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ../react/components/paneldynamic-actions/paneldynamic-add-btn */ "./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx");
|
10999
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicAddButton", function() { return _react_components_paneldynamic_actions_paneldynamic_add_btn__WEBPACK_IMPORTED_MODULE_64__["SurveyQuestionPanelDynamicAddButton"]; });
|
10952
11000
|
|
10953
|
-
/* harmony import */ var
|
10954
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicRemoveButton", function() { return
|
11001
|
+
/* harmony import */ var _react_components_paneldynamic_actions_paneldynamic_remove_btn__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ../react/components/paneldynamic-actions/paneldynamic-remove-btn */ "./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx");
|
11002
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicRemoveButton", function() { return _react_components_paneldynamic_actions_paneldynamic_remove_btn__WEBPACK_IMPORTED_MODULE_65__["SurveyQuestionPanelDynamicRemoveButton"]; });
|
10955
11003
|
|
10956
|
-
/* harmony import */ var
|
10957
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicPrevButton", function() { return
|
11004
|
+
/* harmony import */ var _react_components_paneldynamic_actions_paneldynamic_prev_btn__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ../react/components/paneldynamic-actions/paneldynamic-prev-btn */ "./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx");
|
11005
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicPrevButton", function() { return _react_components_paneldynamic_actions_paneldynamic_prev_btn__WEBPACK_IMPORTED_MODULE_66__["SurveyQuestionPanelDynamicPrevButton"]; });
|
10958
11006
|
|
10959
|
-
/* harmony import */ var
|
10960
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicNextButton", function() { return
|
11007
|
+
/* harmony import */ var _react_components_paneldynamic_actions_paneldynamic_next_btn__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ../react/components/paneldynamic-actions/paneldynamic-next-btn */ "./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx");
|
11008
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicNextButton", function() { return _react_components_paneldynamic_actions_paneldynamic_next_btn__WEBPACK_IMPORTED_MODULE_67__["SurveyQuestionPanelDynamicNextButton"]; });
|
10961
11009
|
|
10962
|
-
/* harmony import */ var
|
10963
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicProgressText", function() { return
|
11010
|
+
/* harmony import */ var _react_components_paneldynamic_actions_paneldynamic_progress_text__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ../react/components/paneldynamic-actions/paneldynamic-progress-text */ "./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx");
|
11011
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicProgressText", function() { return _react_components_paneldynamic_actions_paneldynamic_progress_text__WEBPACK_IMPORTED_MODULE_68__["SurveyQuestionPanelDynamicProgressText"]; });
|
10964
11012
|
|
10965
|
-
/* harmony import */ var
|
10966
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyNavigationButton", function() { return
|
11013
|
+
/* harmony import */ var _react_components_survey_actions_survey_nav_button__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ../react/components/survey-actions/survey-nav-button */ "./src/react/components/survey-actions/survey-nav-button.tsx");
|
11014
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyNavigationButton", function() { return _react_components_survey_actions_survey_nav_button__WEBPACK_IMPORTED_MODULE_69__["SurveyNavigationButton"]; });
|
10967
11015
|
|
10968
|
-
/* harmony import */ var
|
10969
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixRow", function() { return
|
11016
|
+
/* harmony import */ var _react_components_matrix_row__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ../react/components/matrix/row */ "./src/react/components/matrix/row.tsx");
|
11017
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixRow", function() { return _react_components_matrix_row__WEBPACK_IMPORTED_MODULE_70__["MatrixRow"]; });
|
10970
11018
|
|
10971
|
-
/* harmony import */ var
|
10972
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Skeleton", function() { return
|
11019
|
+
/* harmony import */ var _react_components_skeleton__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ../react/components/skeleton */ "./src/react/components/skeleton.tsx");
|
11020
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Skeleton", function() { return _react_components_skeleton__WEBPACK_IMPORTED_MODULE_71__["Skeleton"]; });
|
10973
11021
|
|
10974
|
-
/* harmony import */ var
|
10975
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotifierComponent", function() { return
|
11022
|
+
/* harmony import */ var _react_components_notifier__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ../react/components/notifier */ "./src/react/components/notifier.tsx");
|
11023
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotifierComponent", function() { return _react_components_notifier__WEBPACK_IMPORTED_MODULE_72__["NotifierComponent"]; });
|
10976
11024
|
|
10977
|
-
/* harmony import */ var
|
10978
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentsContainer", function() { return
|
11025
|
+
/* harmony import */ var _react_components_components_container__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ../react/components/components-container */ "./src/react/components/components-container.tsx");
|
11026
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentsContainer", function() { return _react_components_components_container__WEBPACK_IMPORTED_MODULE_73__["ComponentsContainer"]; });
|
10979
11027
|
|
10980
|
-
/* harmony import */ var
|
10981
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CharacterCounterComponent", function() { return
|
11028
|
+
/* harmony import */ var _react_components_character_counter__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ../react/components/character-counter */ "./src/react/components/character-counter.tsx");
|
11029
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CharacterCounterComponent", function() { return _react_components_character_counter__WEBPACK_IMPORTED_MODULE_74__["CharacterCounterComponent"]; });
|
10982
11030
|
|
10983
|
-
/* harmony import */ var
|
10984
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoverCellComponent", function() { return
|
11031
|
+
/* harmony import */ var _react_components_cover__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ../react/components/cover */ "./src/react/components/cover.tsx");
|
11032
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoverCellComponent", function() { return _react_components_cover__WEBPACK_IMPORTED_MODULE_75__["CoverCellComponent"]; });
|
10985
11033
|
|
10986
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoverComponent", function() { return
|
11034
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CoverComponent", function() { return _react_components_cover__WEBPACK_IMPORTED_MODULE_75__["CoverComponent"]; });
|
10987
11035
|
|
10988
|
-
/* harmony import */ var
|
10989
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringViewer", function() { return
|
11036
|
+
/* harmony import */ var _react_string_viewer__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ../react/string-viewer */ "./src/react/string-viewer.tsx");
|
11037
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringViewer", function() { return _react_string_viewer__WEBPACK_IMPORTED_MODULE_76__["SurveyLocStringViewer"]; });
|
10990
11038
|
|
10991
|
-
/* harmony import */ var
|
10992
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringEditor", function() { return
|
11039
|
+
/* harmony import */ var _react_string_editor__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ../react/string-editor */ "./src/react/string-editor.tsx");
|
11040
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringEditor", function() { return _react_string_editor__WEBPACK_IMPORTED_MODULE_77__["SurveyLocStringEditor"]; });
|
10993
11041
|
|
10994
|
-
/* harmony import */ var
|
10995
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoadingIndicatorComponent", function() { return
|
11042
|
+
/* harmony import */ var _react_components_loading_indicator__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ../react/components/loading-indicator */ "./src/react/components/loading-indicator.tsx");
|
11043
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LoadingIndicatorComponent", function() { return _react_components_loading_indicator__WEBPACK_IMPORTED_MODULE_78__["LoadingIndicatorComponent"]; });
|
10996
11044
|
|
10997
11045
|
// react
|
10998
11046
|
|
@@ -11071,6 +11119,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
11071
11119
|
|
11072
11120
|
|
11073
11121
|
|
11122
|
+
|
11074
11123
|
|
11075
11124
|
|
11076
11125
|
//Uncomment to include the "date" question type.
|
@@ -11083,7 +11132,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
11083
11132
|
/*!******************************!*\
|
11084
11133
|
!*** ./src/entries/react.ts ***!
|
11085
11134
|
\******************************/
|
11086
|
-
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryNavigateToPage, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, createDropdownActionModel, createDropdownActionModelAdvanced, getActionDropdownButtonTarget, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, DragOrClickHelper, Model, bootstrapThemeName, bootstrapThemeColors, bootstrapThemeCssRules, bootstrapMaterialThemeName, bootstrapMaterialThemeColors, bootstrapMaterialThemeCssRules, defaultBootstrapCss, defaultBootstrapMaterialCss, Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, RatingItem, RatingItemStar, RatingItemSmiley, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, CoverCellComponent, CoverComponent, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent */
|
11135
|
+
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryNavigateToPage, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, createDropdownActionModel, createDropdownActionModelAdvanced, getActionDropdownButtonTarget, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, DragOrClickHelper, Model, bootstrapThemeName, bootstrapThemeColors, bootstrapThemeCssRules, bootstrapMaterialThemeName, bootstrapMaterialThemeColors, bootstrapMaterialThemeCssRules, defaultBootstrapCss, defaultBootstrapMaterialCss, Survey, attachKey2click, ReactSurveyElementsWrapper, SurveyNavigationBase, SurveyTimerPanel, SurveyPage, SurveyRow, SurveyPanel, SurveyFlowPanel, SurveyQuestion, SurveyElementErrors, SurveyQuestionAndErrorsCell, ReactSurveyElement, SurveyElementBase, SurveyQuestionElementBase, SurveyQuestionCommentItem, SurveyQuestionComment, SurveyQuestionCheckbox, SurveyQuestionCheckboxItem, SurveyQuestionRanking, SurveyQuestionRankingItem, RatingItem, RatingItemStar, RatingItemSmiley, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, SurveyFileChooseButton, SurveyFilePreview, SurveyQuestionMultipleText, SurveyQuestionRadiogroup, SurveyQuestionRadioItem, SurveyQuestionText, SurveyQuestionBoolean, SurveyQuestionBooleanCheckbox, SurveyQuestionBooleanRadio, SurveyQuestionEmpty, SurveyQuestionMatrixDropdownCell, SurveyQuestionMatrixDropdownBase, SurveyQuestionMatrixDropdown, SurveyQuestionMatrixDynamic, SurveyQuestionMatrixDynamicAddButton, SurveyQuestionPanelDynamic, SurveyProgress, SurveyProgressButtons, SurveyProgressToc, SurveyQuestionRating, SurveyQuestionRatingDropdown, SurveyQuestionExpression, PopupSurvey, SurveyWindow, ReactQuestionFactory, ReactElementFactory, SurveyQuestionImagePicker, SurveyQuestionImage, SurveyQuestionSignaturePad, SurveyQuestionButtonGroup, SurveyQuestionCustom, SurveyQuestionComposite, Popup, List, TitleActions, TitleElement, SurveyActionBar, LogoImage, SurveyHeader, SvgIcon, SurveyQuestionMatrixDynamicRemoveButton, SurveyQuestionMatrixDetailButton, SurveyQuestionMatrixDynamicDragDropIcon, SurveyQuestionPanelDynamicAddButton, SurveyQuestionPanelDynamicRemoveButton, SurveyQuestionPanelDynamicPrevButton, SurveyQuestionPanelDynamicNextButton, SurveyQuestionPanelDynamicProgressText, SurveyNavigationButton, MatrixRow, Skeleton, NotifierComponent, ComponentsContainer, CharacterCounterComponent, CoverCellComponent, CoverComponent, SurveyLocStringViewer, SurveyLocStringEditor, LoadingIndicatorComponent */
|
11087
11136
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
11088
11137
|
|
11089
11138
|
"use strict";
|
@@ -11606,6 +11655,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
11606
11655
|
|
11607
11656
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyFileChooseButton", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["SurveyFileChooseButton"]; });
|
11608
11657
|
|
11658
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyFilePreview", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["SurveyFilePreview"]; });
|
11659
|
+
|
11609
11660
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMultipleText", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["SurveyQuestionMultipleText"]; });
|
11610
11661
|
|
11611
11662
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRadiogroup", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["SurveyQuestionRadiogroup"]; });
|
@@ -16157,6 +16208,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
16157
16208
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "registerFunction", function() { return registerFunction; });
|
16158
16209
|
/* harmony import */ var _helpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers */ "./src/helpers.ts");
|
16159
16210
|
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./settings */ "./src/settings.ts");
|
16211
|
+
/* harmony import */ var _console_warnings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./console-warnings */ "./src/console-warnings.ts");
|
16212
|
+
|
16160
16213
|
|
16161
16214
|
|
16162
16215
|
var FunctionFactory = /** @class */ (function () {
|
@@ -16193,8 +16246,10 @@ var FunctionFactory = /** @class */ (function () {
|
|
16193
16246
|
FunctionFactory.prototype.run = function (name, params, properties) {
|
16194
16247
|
if (properties === void 0) { properties = null; }
|
16195
16248
|
var func = this.functionHash[name];
|
16196
|
-
if (!func)
|
16249
|
+
if (!func) {
|
16250
|
+
_console_warnings__WEBPACK_IMPORTED_MODULE_2__["ConsoleWarnings"].warn("Unknown function name: " + name);
|
16197
16251
|
return null;
|
16252
|
+
}
|
16198
16253
|
var classRunner = {
|
16199
16254
|
func: func,
|
16200
16255
|
};
|
@@ -22322,6 +22377,8 @@ var englishStrings = {
|
|
22322
22377
|
tagboxDoneButtonCaption: "OK",
|
22323
22378
|
selectToRankEmptyRankedAreaText: "All choices are ranked",
|
22324
22379
|
selectToRankEmptyUnrankedAreaText: "Drag and drop choices here to rank them",
|
22380
|
+
ok: "OK",
|
22381
|
+
cancel: "Cancel",
|
22325
22382
|
};
|
22326
22383
|
// Uncomment the lines below if you create a custom dictionary.
|
22327
22384
|
// Replace "en" with a custom locale code (for example, "fr" or "de"),
|
@@ -28319,6 +28376,7 @@ var Notifier = /** @class */ (function (_super) {
|
|
28319
28376
|
_this.timeout = _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].notifications.lifetime;
|
28320
28377
|
_this.timer = undefined;
|
28321
28378
|
_this.actionsVisibility = {};
|
28379
|
+
_this.showActions = true;
|
28322
28380
|
_this.actionBar = new _actions_container__WEBPACK_IMPORTED_MODULE_4__["ActionContainer"]();
|
28323
28381
|
_this.actionBar.updateCallback = function (isResetInitialized) {
|
28324
28382
|
_this.actionBar.actions.forEach(function (action) { return action.cssClasses = {}; });
|
@@ -28337,7 +28395,7 @@ var Notifier = /** @class */ (function (_super) {
|
|
28337
28395
|
};
|
28338
28396
|
Notifier.prototype.updateActionsVisibility = function (type) {
|
28339
28397
|
var _this = this;
|
28340
|
-
this.actionBar.actions.forEach(function (action) { return action.visible = (_this.actionsVisibility[action.id] === type); });
|
28398
|
+
this.actionBar.actions.forEach(function (action) { return action.visible = _this.showActions && (_this.actionsVisibility[action.id] === type); });
|
28341
28399
|
};
|
28342
28400
|
Notifier.prototype.notify = function (message, type, waitUserAction) {
|
28343
28401
|
var _this = this;
|
@@ -29645,8 +29703,8 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
29645
29703
|
};
|
29646
29704
|
/**
|
29647
29705
|
* Validates questions within this panel or page and returns `false` if the validation fails.
|
29648
|
-
* @param fireCallback *Optional
|
29649
|
-
* @param focusOnFirstError *Optional
|
29706
|
+
* @param fireCallback *(Optional)* Pass `false` if you do not want to show validation errors in the UI.
|
29707
|
+
* @param focusOnFirstError *(Optional)* Pass `true` if you want to focus the first question with a validation error.
|
29650
29708
|
* @see [Data Validation](https://surveyjs.io/form-library/documentation/data-validation)
|
29651
29709
|
*/
|
29652
29710
|
PanelModelBase.prototype.validate = function (fireCallback, focusOnFirstError, rec) {
|
@@ -32310,6 +32368,7 @@ function setStyles() {
|
|
32310
32368
|
".sv-popup__button:disabled:hover": "box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.15);",
|
32311
32369
|
".sv-popup__button.sv-popup__button--apply": "background-color: var(--primary, #19b394); color: var(--primary-foreground, #fff);",
|
32312
32370
|
".sv-popup__button.sv-popup__button--apply:disabled": "background-color: var(--background-dim, #f3f3f3);",
|
32371
|
+
".sv-popup__button.sv-popup__button--danger": "background-color: var(--sjs-special-red, #E50A3E); color: var(--primary-foreground, #fff);",
|
32313
32372
|
//eo popup
|
32314
32373
|
//list
|
32315
32374
|
".sv-list": "padding: 0; margin: 0; background: var(--background, #fff); list-style-type: none; overflow-y: auto;",
|
@@ -33075,6 +33134,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
33075
33134
|
|
33076
33135
|
|
33077
33136
|
function createPopupModalViewModel(options, rootElement) {
|
33137
|
+
var _a;
|
33078
33138
|
var popupModel = new _popup__WEBPACK_IMPORTED_MODULE_0__["PopupModel"](options.componentName, options.data, "top", "left", false, true, options.onCancel, options.onApply, function () {
|
33079
33139
|
options.onHide();
|
33080
33140
|
if (!!container) {
|
@@ -33082,6 +33142,7 @@ function createPopupModalViewModel(options, rootElement) {
|
|
33082
33142
|
}
|
33083
33143
|
}, options.onShow, options.cssClass, options.title);
|
33084
33144
|
popupModel.displayMode = options.displayMode || "popup";
|
33145
|
+
popupModel.isFocusedContent = (_a = options.isFocusedContent) !== null && _a !== void 0 ? _a : true;
|
33085
33146
|
var popupViewModel = new _popup_modal_view_model__WEBPACK_IMPORTED_MODULE_2__["PopupModalViewModel"](popupModel);
|
33086
33147
|
if (!!rootElement && !!rootElement.appendChild) {
|
33087
33148
|
var container = document.createElement("div");
|
@@ -33722,6 +33783,14 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
33722
33783
|
|
33723
33784
|
|
33724
33785
|
|
33786
|
+
var TriggerExpressionInfo = /** @class */ (function () {
|
33787
|
+
function TriggerExpressionInfo(name, canRun, doComplete) {
|
33788
|
+
this.name = name;
|
33789
|
+
this.canRun = canRun;
|
33790
|
+
this.doComplete = doComplete;
|
33791
|
+
}
|
33792
|
+
return TriggerExpressionInfo;
|
33793
|
+
}());
|
33725
33794
|
/**
|
33726
33795
|
* A base class for all questions.
|
33727
33796
|
*/
|
@@ -33739,12 +33808,13 @@ var Question = /** @class */ (function (_super) {
|
|
33739
33808
|
*
|
33740
33809
|
* - `sender`: `SurveyModel`\
|
33741
33810
|
* A survey instance that contains the question whose ready state has changed.
|
33742
|
-
* - `options.isReady`: `
|
33811
|
+
* - `options.isReady`: `boolean`\
|
33743
33812
|
* Indicates whether the question is ready.
|
33744
|
-
* - `options.oldIsReady`: `
|
33813
|
+
* - `options.oldIsReady`: `boolean`\
|
33745
33814
|
* Indicates the previous ready state.
|
33746
33815
|
*/
|
33747
33816
|
_this.onReadyChanged = _this.addEvent();
|
33817
|
+
_this.triggersInfo = [];
|
33748
33818
|
_this.isRunningValidatorsValue = false;
|
33749
33819
|
_this.isValueChangedInSurvey = false;
|
33750
33820
|
_this.allowNotifyValueChanged = true;
|
@@ -33762,6 +33832,11 @@ var Question = /** @class */ (function (_super) {
|
|
33762
33832
|
};
|
33763
33833
|
_this.locTitle.storeDefaultText = true;
|
33764
33834
|
_this.createLocalizableString("requiredErrorText", _this);
|
33835
|
+
_this.addTriggerInfo("resetValueIf", function () { return !_this.isEmpty(); }, function () {
|
33836
|
+
_this.clearValue();
|
33837
|
+
_this.updateValueWithDefaults();
|
33838
|
+
});
|
33839
|
+
_this.addTriggerInfo("setValueIf", function () { return true; }, function () { return _this.runSetValueExpression(); });
|
33765
33840
|
_this.registerPropertyChangedHandlers(["width"], function () {
|
33766
33841
|
_this.updateQuestionCss();
|
33767
33842
|
if (!!_this.parent) {
|
@@ -33801,7 +33876,6 @@ var Question = /** @class */ (function (_super) {
|
|
33801
33876
|
};
|
33802
33877
|
Question.prototype.setIsMobile = function (val) {
|
33803
33878
|
this.isMobile = val && (this.allowMobileInDesignMode() || !this.isDesignMode);
|
33804
|
-
this.renderMinWidth = !val;
|
33805
33879
|
};
|
33806
33880
|
Question.prototype.createLocTitleProperty = function () {
|
33807
33881
|
var _this = this;
|
@@ -34214,31 +34288,60 @@ var Question = /** @class */ (function (_super) {
|
|
34214
34288
|
requiredAnsweredQuestionCount: !this.isEmpty() && this.isRequired ? 1 : 0,
|
34215
34289
|
};
|
34216
34290
|
};
|
34217
|
-
Question.prototype.
|
34291
|
+
Question.prototype.runSetValueExpression = function () {
|
34218
34292
|
var _this = this;
|
34219
|
-
if (
|
34220
|
-
|
34221
|
-
|
34293
|
+
if (!this.setValueExpression) {
|
34294
|
+
this.clearValue();
|
34295
|
+
}
|
34296
|
+
else {
|
34297
|
+
if (!this.setValueExpressionRunner) {
|
34298
|
+
this.setValueExpressionRunner = new _conditions__WEBPACK_IMPORTED_MODULE_6__["ExpressionRunner"](this.setValueExpression);
|
34299
|
+
this.setValueExpressionRunner.onRunComplete = function (res) {
|
34300
|
+
if (!_this.isTwoValueEquals(_this.value, res)) {
|
34301
|
+
_this.value = res;
|
34302
|
+
}
|
34303
|
+
};
|
34304
|
+
}
|
34305
|
+
else {
|
34306
|
+
this.setValueExpressionRunner.expression = this.setValueExpression;
|
34307
|
+
}
|
34308
|
+
this.setValueExpressionRunner.run(this.getDataFilteredValues(), this.getDataFilteredProperties());
|
34309
|
+
}
|
34310
|
+
};
|
34311
|
+
Question.prototype.addTriggerInfo = function (name, canRun, doComplete) {
|
34312
|
+
this.triggersInfo.push(new TriggerExpressionInfo(name, canRun, doComplete));
|
34313
|
+
};
|
34314
|
+
Question.prototype.runTriggerInfo = function (info, name, value) {
|
34315
|
+
var expression = this[info.name];
|
34316
|
+
if (!expression || info.isRunning || !info.canRun())
|
34222
34317
|
return;
|
34223
|
-
if (!
|
34224
|
-
|
34225
|
-
|
34226
|
-
_this.isRunningResetValueIf = false;
|
34318
|
+
if (!info.runner) {
|
34319
|
+
info.runner = new _conditions__WEBPACK_IMPORTED_MODULE_6__["ExpressionRunner"](expression);
|
34320
|
+
info.runner.onRunComplete = function (res) {
|
34227
34321
|
if (res === true) {
|
34228
|
-
|
34229
|
-
_this.updateValueWithDefaults();
|
34322
|
+
info.doComplete();
|
34230
34323
|
}
|
34324
|
+
info.isRunning = false;
|
34231
34325
|
};
|
34232
34326
|
}
|
34233
34327
|
else {
|
34234
|
-
|
34328
|
+
info.runner.expression = expression;
|
34235
34329
|
}
|
34236
34330
|
var keys = {};
|
34237
34331
|
keys[name] = value;
|
34238
|
-
if (!new _conditionProcessValue__WEBPACK_IMPORTED_MODULE_13__["ProcessValue"]().isAnyKeyChanged(keys,
|
34332
|
+
if (!new _conditionProcessValue__WEBPACK_IMPORTED_MODULE_13__["ProcessValue"]().isAnyKeyChanged(keys, info.runner.getVariables()))
|
34333
|
+
return;
|
34334
|
+
info.isRunning = true;
|
34335
|
+
info.runner.run(this.getDataFilteredValues(), this.getDataFilteredProperties());
|
34336
|
+
};
|
34337
|
+
Question.prototype.runTriggers = function (name, value) {
|
34338
|
+
var _this = this;
|
34339
|
+
if (this.isReadOnly || this.isSettingQuestionValue ||
|
34340
|
+
(this.parentQuestion && this.parentQuestion.getValueName() === name))
|
34239
34341
|
return;
|
34240
|
-
this.
|
34241
|
-
|
34342
|
+
this.triggersInfo.forEach(function (info) {
|
34343
|
+
_this.runTriggerInfo(info, name, value);
|
34344
|
+
});
|
34242
34345
|
};
|
34243
34346
|
Question.prototype.runConditions = function () {
|
34244
34347
|
if (this.data && !this.isLoadingFromJson) {
|
@@ -34657,6 +34760,7 @@ var Question = /** @class */ (function (_super) {
|
|
34657
34760
|
};
|
34658
34761
|
Question.prototype.afterRender = function (el) {
|
34659
34762
|
var _this = this;
|
34763
|
+
this.afterRenderCore(el);
|
34660
34764
|
if (!this.survey)
|
34661
34765
|
return;
|
34662
34766
|
this.survey.afterRenderQuestion(this, el);
|
@@ -34675,6 +34779,8 @@ var Question = /** @class */ (function (_super) {
|
|
34675
34779
|
}
|
34676
34780
|
this.checkForResponsiveness(el);
|
34677
34781
|
};
|
34782
|
+
Question.prototype.afterRenderCore = function (el) {
|
34783
|
+
};
|
34678
34784
|
Question.prototype.getCommentElementsId = function () {
|
34679
34785
|
return [this.commentId];
|
34680
34786
|
};
|
@@ -35386,27 +35492,27 @@ var Question = /** @class */ (function (_super) {
|
|
35386
35492
|
*
|
35387
35493
|
* | Question type | Value type(s) |
|
35388
35494
|
* | ------------- | ------------- |
|
35389
|
-
* | Checkboxes | `Array<
|
35390
|
-
* | Dropdown | `
|
35391
|
-
* | Dynamic Matrix | `Array<
|
35392
|
-
* | Dynamic Panel | `Array<
|
35393
|
-
* | Expression | `
|
35495
|
+
* | Checkboxes | `Array<string \| number>` |
|
35496
|
+
* | Dropdown | `string` \| `number` |
|
35497
|
+
* | Dynamic Matrix | `Array<object>` |
|
35498
|
+
* | Dynamic Panel | `Array<object>` |
|
35499
|
+
* | Expression | `string` \| `number` \| `boolean` |
|
35394
35500
|
* | File Upload | `File` \| `Array<File>` |
|
35395
35501
|
* | HTML | (no value) |
|
35396
35502
|
* | Image | (no value) |
|
35397
|
-
* | Image Picker | `Array<
|
35398
|
-
* | Long Text | `
|
35399
|
-
* | Multi-Select Dropdown | `
|
35400
|
-
* | Multi-Select Matrix | `
|
35401
|
-
* | Multiple Textboxes | `Array<
|
35503
|
+
* | Image Picker | `Array<string \| number>` |
|
35504
|
+
* | Long Text | `string` |
|
35505
|
+
* | Multi-Select Dropdown | `object` |
|
35506
|
+
* | Multi-Select Matrix | `object` |
|
35507
|
+
* | Multiple Textboxes | `Array<string>` |
|
35402
35508
|
* | Panel | (no value) |
|
35403
|
-
* | Radio Button Group | `
|
35404
|
-
* | Ranking | `Array<
|
35405
|
-
* | Rating Scale | `
|
35406
|
-
* | Signature | `
|
35407
|
-
* | Single-Line Input | `
|
35408
|
-
* | Single-Select Matrix | `
|
35409
|
-
* | Yes/No (Boolean) | `
|
35509
|
+
* | Radio Button Group | `string` \| `number` |
|
35510
|
+
* | Ranking | `Array<string \| number>` |
|
35511
|
+
* | Rating Scale | `number` \| `string` |
|
35512
|
+
* | Signature | `string` (base64-encoded image) |
|
35513
|
+
* | Single-Line Input | `string` \| `number` \| `Date` |
|
35514
|
+
* | Single-Select Matrix | `object` |
|
35515
|
+
* | Yes/No (Boolean) | `boolean` \| `string` |
|
35410
35516
|
*/
|
35411
35517
|
get: function () {
|
35412
35518
|
return this.getValueCore();
|
@@ -35621,6 +35727,7 @@ var Question = /** @class */ (function (_super) {
|
|
35621
35727
|
*
|
35622
35728
|
* An expression can also include built-in and custom functions for advanced calculations. For example, if the `defaultValue` should be today's date, set the `defaultValueExpression` to `"today()"`, and the corresponding built-in function will be executed each time the survey is loaded. Refer to the following help topic for more information: [Built-In Functions](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#built-in-functions).
|
35623
35729
|
* @see defaultValue
|
35730
|
+
* @see setValueExpression
|
35624
35731
|
*/
|
35625
35732
|
get: function () {
|
35626
35733
|
return this.getPropertyValue("defaultValueExpression");
|
@@ -35640,6 +35747,7 @@ var Question = /** @class */ (function (_super) {
|
|
35640
35747
|
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
35641
35748
|
*
|
35642
35749
|
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
35750
|
+
* @see setValueIf
|
35643
35751
|
*/
|
35644
35752
|
get: function () {
|
35645
35753
|
return this.getPropertyValue("resetValueIf");
|
@@ -35650,6 +35758,41 @@ var Question = /** @class */ (function (_super) {
|
|
35650
35758
|
enumerable: false,
|
35651
35759
|
configurable: true
|
35652
35760
|
});
|
35761
|
+
Object.defineProperty(Question.prototype, "setValueIf", {
|
35762
|
+
/**
|
35763
|
+
* A Boolean expression. If it evaluates to `true`, the question value is set to a value calculated using the [`setValueExpression`](#setValueExpression).
|
35764
|
+
*
|
35765
|
+
* A survey parses and runs all expressions on startup. If any values used in the expression change, the survey re-evaluates it.
|
35766
|
+
*
|
35767
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
35768
|
+
* @see resetValueIf
|
35769
|
+
*/
|
35770
|
+
get: function () {
|
35771
|
+
return this.getPropertyValue("setValueIf");
|
35772
|
+
},
|
35773
|
+
set: function (val) {
|
35774
|
+
this.setPropertyValue("setValueIf", val);
|
35775
|
+
},
|
35776
|
+
enumerable: false,
|
35777
|
+
configurable: true
|
35778
|
+
});
|
35779
|
+
Object.defineProperty(Question.prototype, "setValueExpression", {
|
35780
|
+
/**
|
35781
|
+
* An expression used to calculate the question value. Applies only when the [`setValueIf`](#setValueIf) expression evaluates to `true`.
|
35782
|
+
*
|
35783
|
+
* [Expressions](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#expressions (linkStyle))
|
35784
|
+
* @see defaultValueExpression
|
35785
|
+
* @see resetValueIf
|
35786
|
+
*/
|
35787
|
+
get: function () {
|
35788
|
+
return this.getPropertyValue("setValueExpression");
|
35789
|
+
},
|
35790
|
+
set: function (val) {
|
35791
|
+
this.setPropertyValue("setValueExpression", val);
|
35792
|
+
},
|
35793
|
+
enumerable: false,
|
35794
|
+
configurable: true
|
35795
|
+
});
|
35653
35796
|
Object.defineProperty(Question.prototype, "resizeStyle", {
|
35654
35797
|
get: function () {
|
35655
35798
|
return this.allowResizeComment ? "both" : "none";
|
@@ -36040,7 +36183,7 @@ var Question = /** @class */ (function (_super) {
|
|
36040
36183
|
};
|
36041
36184
|
/**
|
36042
36185
|
* Validates this question and returns `false` if the validation fails.
|
36043
|
-
* @param fireCallback *Optional
|
36186
|
+
* @param fireCallback *(Optional)* Pass `false` if you do not want to show validation errors in the UI.
|
36044
36187
|
* @see [Data Validation](https://surveyjs.io/form-library/documentation/data-validation)
|
36045
36188
|
*/
|
36046
36189
|
Question.prototype.validate = function (fireCallback, rec) {
|
@@ -36181,8 +36324,10 @@ var Question = /** @class */ (function (_super) {
|
|
36181
36324
|
if (!this.checkIsValueCorrect(newValue))
|
36182
36325
|
return;
|
36183
36326
|
this.isOldAnswered = this.isAnswered;
|
36327
|
+
this.isSettingQuestionValue = true;
|
36184
36328
|
this.setNewValueInData(newValue);
|
36185
36329
|
this.allowNotifyValueChanged && this.onValueChanged();
|
36330
|
+
this.isSettingQuestionValue = false;
|
36186
36331
|
if (this.isAnswered !== this.isOldAnswered) {
|
36187
36332
|
this.updateQuestionCss();
|
36188
36333
|
}
|
@@ -36765,10 +36910,9 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("question", [
|
|
36765
36910
|
},
|
36766
36911
|
{ name: "valueName", onSettingValue: function (obj, val) { return makeNameValid(val); } },
|
36767
36912
|
"enableIf:condition",
|
36768
|
-
|
36769
|
-
|
36770
|
-
|
36771
|
-
},
|
36913
|
+
"resetValueIf:condition",
|
36914
|
+
"setValueIf:condition",
|
36915
|
+
{ name: "setValueExpression:expression", visibleIf: function (obj) { return !!obj.setValueIf; } },
|
36772
36916
|
"defaultValue:value",
|
36773
36917
|
{
|
36774
36918
|
name: "defaultValueExpression:expression",
|
@@ -37689,8 +37833,10 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
37689
37833
|
customValues[_i - 1] = arguments[_i];
|
37690
37834
|
}
|
37691
37835
|
_this.waitingGetChoiceDisplayValueResponse = false;
|
37692
|
-
if (!displayValues || !displayValues.length)
|
37836
|
+
if (!displayValues || !displayValues.length) {
|
37837
|
+
_this.updateIsReady();
|
37693
37838
|
return;
|
37839
|
+
}
|
37694
37840
|
var items = displayValues.map(function (displayValue, index) { return _this.createItemValue(valueArray[index], displayValue); });
|
37695
37841
|
_this.setCustomValuesIntoItems(items, customValues);
|
37696
37842
|
if (Array.isArray(value)) {
|
@@ -41003,8 +41149,8 @@ var QuestionCustomModelBase = /** @class */ (function (_super) {
|
|
41003
41149
|
QuestionCustomModelBase.prototype.afterRenderQuestionElement = function (el) {
|
41004
41150
|
//Do nothing
|
41005
41151
|
};
|
41006
|
-
QuestionCustomModelBase.prototype.
|
41007
|
-
_super.prototype.
|
41152
|
+
QuestionCustomModelBase.prototype.afterRenderCore = function (el) {
|
41153
|
+
_super.prototype.afterRenderCore.call(this, el);
|
41008
41154
|
if (!!this.customQuestion) {
|
41009
41155
|
this.customQuestion.onAfterRender(this, el);
|
41010
41156
|
}
|
@@ -41201,8 +41347,8 @@ var QuestionCustomModel = /** @class */ (function (_super) {
|
|
41201
41347
|
_super.prototype.focus.call(this, onError);
|
41202
41348
|
}
|
41203
41349
|
};
|
41204
|
-
QuestionCustomModel.prototype.
|
41205
|
-
_super.prototype.
|
41350
|
+
QuestionCustomModel.prototype.afterRenderCore = function (el) {
|
41351
|
+
_super.prototype.afterRenderCore.call(this, el);
|
41206
41352
|
if (!!this.contentQuestion) {
|
41207
41353
|
this.contentQuestion.afterRender(el);
|
41208
41354
|
}
|
@@ -42462,11 +42608,6 @@ var QuestionExpressionModel = /** @class */ (function (_super) {
|
|
42462
42608
|
}
|
42463
42609
|
return val.toString();
|
42464
42610
|
};
|
42465
|
-
QuestionExpressionModel.prototype.convertToCorrectValue = function (val) {
|
42466
|
-
if (Array.isArray(val))
|
42467
|
-
return val.join(", ");
|
42468
|
-
return val;
|
42469
|
-
};
|
42470
42611
|
return QuestionExpressionModel;
|
42471
42612
|
}(_question__WEBPACK_IMPORTED_MODULE_1__["Question"]));
|
42472
42613
|
|
@@ -42761,7 +42902,7 @@ var QuestionFileModel = /** @class */ (function (_super) {
|
|
42761
42902
|
*
|
42762
42903
|
* - `sender`: `SurveyModel`\
|
42763
42904
|
* A survey instance that raised the event.
|
42764
|
-
* - `options.state`: `
|
42905
|
+
* - `options.state`: `string`\
|
42765
42906
|
* The current upload state: `"empty"`, `"loading"`, `"loaded"`, or `"error"`.
|
42766
42907
|
*/
|
42767
42908
|
_this.onUploadStateChanged = _this.addEvent();
|
@@ -43369,7 +43510,14 @@ var QuestionFileModel = /** @class */ (function (_super) {
|
|
43369
43510
|
get: function () {
|
43370
43511
|
var isShowLoadingIndicator = this.showLoadingIndicator;
|
43371
43512
|
var isPlayingVideo = this.isPlayingVideo;
|
43372
|
-
return
|
43513
|
+
return !isShowLoadingIndicator && !isPlayingVideo;
|
43514
|
+
},
|
43515
|
+
enumerable: false,
|
43516
|
+
configurable: true
|
43517
|
+
});
|
43518
|
+
Object.defineProperty(QuestionFileModel.prototype, "showPreviewContainer", {
|
43519
|
+
get: function () {
|
43520
|
+
return this.previewValue && this.previewValue.length > 0;
|
43373
43521
|
},
|
43374
43522
|
enumerable: false,
|
43375
43523
|
configurable: true
|
@@ -44020,6 +44168,13 @@ var QuestionHtmlModel = /** @class */ (function (_super) {
|
|
44020
44168
|
QuestionHtmlModel.prototype.processHtml = function (html) {
|
44021
44169
|
return this.survey ? this.survey.processHtml(html, "html-question") : this.html;
|
44022
44170
|
};
|
44171
|
+
Object.defineProperty(QuestionHtmlModel.prototype, "isNewA11yStructure", {
|
44172
|
+
get: function () {
|
44173
|
+
return true;
|
44174
|
+
},
|
44175
|
+
enumerable: false,
|
44176
|
+
configurable: true
|
44177
|
+
});
|
44023
44178
|
return QuestionHtmlModel;
|
44024
44179
|
}(_questionnonvalue__WEBPACK_IMPORTED_MODULE_0__["QuestionNonValue"]));
|
44025
44180
|
|
@@ -44346,7 +44501,7 @@ function getCorrectImageLink(val) {
|
|
44346
44501
|
return youtubeUrl + youtubeEmbed + "/" + id;
|
44347
44502
|
}
|
44348
44503
|
_jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("image", [
|
44349
|
-
{ name: "imageLink", serializationProperty: "locImageLink" },
|
44504
|
+
{ name: "imageLink:file", serializationProperty: "locImageLink" },
|
44350
44505
|
{ name: "altText", serializationProperty: "locAltText", alternativeName: "text", category: "general" },
|
44351
44506
|
{
|
44352
44507
|
name: "contentMode",
|
@@ -44923,7 +45078,7 @@ var QuestionImagePickerModel = /** @class */ (function (_super) {
|
|
44923
45078
|
return QuestionImagePickerModel;
|
44924
45079
|
}(_question_baseselect__WEBPACK_IMPORTED_MODULE_2__["QuestionCheckboxBase"]));
|
44925
45080
|
|
44926
|
-
_jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addClass("imageitemvalue", [{ name: "imageLink", serializationProperty: "locImageLink" }], function (value) { return new ImageItemValue(value); }, "itemvalue");
|
45081
|
+
_jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addClass("imageitemvalue", [{ name: "imageLink:file", serializationProperty: "locImageLink" }], function (value) { return new ImageItemValue(value); }, "itemvalue");
|
44927
45082
|
_jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addClass("responsiveImageSize", [], undefined, "number");
|
44928
45083
|
_jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addClass("imagepicker", [
|
44929
45084
|
{ name: "showOtherItem", visible: false },
|
@@ -48157,7 +48312,10 @@ var QuestionMatrixDropdownModelBase = /** @class */ (function (_super) {
|
|
48157
48312
|
return false;
|
48158
48313
|
};
|
48159
48314
|
QuestionMatrixDropdownModelBase.prototype.addDuplicationError = function (question) {
|
48160
|
-
question.
|
48315
|
+
var keyError = question.errors.find(function (error) { return error.getErrorType() === "keyduplicationerror"; });
|
48316
|
+
if (!keyError) {
|
48317
|
+
question.addError(new _error__WEBPACK_IMPORTED_MODULE_10__["KeyDuplicationError"](this.keyDuplicationError, this));
|
48318
|
+
}
|
48161
48319
|
};
|
48162
48320
|
QuestionMatrixDropdownModelBase.prototype.getFirstQuestionToFocus = function (withError) {
|
48163
48321
|
return this.getFirstCellQuestion(withError);
|
@@ -48989,6 +49147,26 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
48989
49147
|
enumerable: false,
|
48990
49148
|
configurable: true
|
48991
49149
|
});
|
49150
|
+
Object.defineProperty(MatrixDropdownColumn.prototype, "setValueIf", {
|
49151
|
+
get: function () {
|
49152
|
+
return this.templateQuestion.setValueIf;
|
49153
|
+
},
|
49154
|
+
set: function (val) {
|
49155
|
+
this.templateQuestion.setValueIf = val;
|
49156
|
+
},
|
49157
|
+
enumerable: false,
|
49158
|
+
configurable: true
|
49159
|
+
});
|
49160
|
+
Object.defineProperty(MatrixDropdownColumn.prototype, "setValueExpession", {
|
49161
|
+
get: function () {
|
49162
|
+
return this.templateQuestion.setValueExpession;
|
49163
|
+
},
|
49164
|
+
set: function (val) {
|
49165
|
+
this.templateQuestion.setValueExpession = val;
|
49166
|
+
},
|
49167
|
+
enumerable: false,
|
49168
|
+
configurable: true
|
49169
|
+
});
|
48992
49170
|
Object.defineProperty(MatrixDropdownColumn.prototype, "isUnique", {
|
48993
49171
|
get: function () {
|
48994
49172
|
return this.getPropertyValue("isUnique");
|
@@ -49439,12 +49617,13 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addClass("matrixdropdownc
|
|
49439
49617
|
"visibleIf:condition",
|
49440
49618
|
"enableIf:condition",
|
49441
49619
|
"requiredIf:condition",
|
49620
|
+
"resetValueIf:condition",
|
49621
|
+
"setValueIf:condition",
|
49622
|
+
{ name: "setValueExpression:expression", visibleIf: function (obj) { return !!obj.setValueIf; } },
|
49442
49623
|
{
|
49443
49624
|
name: "showInMultipleColumns:boolean",
|
49444
49625
|
dependsOn: "cellType",
|
49445
49626
|
visibleIf: function (obj) {
|
49446
|
-
if (!obj)
|
49447
|
-
return false;
|
49448
49627
|
return obj.isSupportMultipleColumns;
|
49449
49628
|
},
|
49450
49629
|
},
|
@@ -50297,9 +50476,7 @@ var QuestionMatrixDropdownRenderedTable = /** @class */ (function (_super) {
|
|
50297
50476
|
var renderedCell = this.createTextCell(row.locText);
|
50298
50477
|
renderedCell.row = row;
|
50299
50478
|
res.cells.push(renderedCell);
|
50300
|
-
|
50301
|
-
this.setHeaderCellWidth(null, renderedCell);
|
50302
|
-
}
|
50479
|
+
this.setHeaderCellWidth(null, renderedCell);
|
50303
50480
|
renderedCell.className = new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_5__["CssClassBuilder"]()
|
50304
50481
|
.append(renderedCell.className)
|
50305
50482
|
.append(this.cssClasses.rowTextCell)
|
@@ -51123,7 +51300,7 @@ var QuestionMatrixDynamicModel = /** @class */ (function (_super) {
|
|
51123
51300
|
};
|
51124
51301
|
/**
|
51125
51302
|
* Creates and adds a new row to the matrix.
|
51126
|
-
* @param setFocus *Optional
|
51303
|
+
* @param setFocus *(Optional)* Pass `true` to focus the cell in the first column.
|
51127
51304
|
*/
|
51128
51305
|
QuestionMatrixDynamicModel.prototype.addRow = function (setFocus) {
|
51129
51306
|
var oldRowCount = this.rowCount;
|
@@ -51261,7 +51438,7 @@ var QuestionMatrixDynamicModel = /** @class */ (function (_super) {
|
|
51261
51438
|
/**
|
51262
51439
|
* Removes a matrix row with a specified index.
|
51263
51440
|
* @param index A zero-based row index.
|
51264
|
-
* @param confirmDelete *Optional
|
51441
|
+
* @param confirmDelete *(Optional)* A Boolean value that specifies whether to display a confirmation dialog. If you do not specify this parameter, the [`confirmDelete`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model#confirmDelete) property value is used.
|
51265
51442
|
*/
|
51266
51443
|
QuestionMatrixDynamicModel.prototype.removeRow = function (index, confirmDelete) {
|
51267
51444
|
var _this = this;
|
@@ -53195,8 +53372,8 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
53195
53372
|
*
|
53196
53373
|
* The template can contain the following placeholders:
|
53197
53374
|
*
|
53198
|
-
* - `{panelIndex}` - A
|
53199
|
-
* - `{visiblePanelIndex}` - A
|
53375
|
+
* - `{panelIndex}` - A panel index within the collection of all panels. Starts with 1.
|
53376
|
+
* - `{visiblePanelIndex}` - A panel index within the collection of visible panels. Starts with 1.
|
53200
53377
|
* @see template
|
53201
53378
|
* @see templateDescription
|
53202
53379
|
* @see templateElements
|
@@ -53225,8 +53402,12 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
53225
53402
|
*
|
53226
53403
|
* The template can contain the following placeholders:
|
53227
53404
|
*
|
53228
|
-
* - `{panelIndex}` - A
|
53229
|
-
* - `{visiblePanelIndex}` - A
|
53405
|
+
* - `{panelIndex}` - A panel index within the collection of all panels. Starts with 1.
|
53406
|
+
* - `{visiblePanelIndex}` - A panel index within the collection of visible panels. Starts with 1.
|
53407
|
+
*
|
53408
|
+
* If you want to customize individual tab titles, handle `SurveyModel`'s [`onGetDynamicPanelTabTitle`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#onGetDynamicPanelTabTitle) event.
|
53409
|
+
*
|
53410
|
+
* [View Demo](/form-library/examples/tabbed-interface-for-duplicate-group-option/ (linkStyle))
|
53230
53411
|
* @see templateTitle
|
53231
53412
|
* @see renderMode
|
53232
53413
|
*/
|
@@ -53692,10 +53873,8 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
53692
53873
|
};
|
53693
53874
|
QuestionPanelDynamicModel.prototype.setIsMobile = function (val) {
|
53694
53875
|
_super.prototype.setIsMobile.call(this, val);
|
53695
|
-
(this.panels || []).forEach(function (panel) { return panel.
|
53696
|
-
|
53697
|
-
element.isMobile = val;
|
53698
|
-
}
|
53876
|
+
(this.panels || []).forEach(function (panel) { return panel.getQuestions(true).forEach(function (question) {
|
53877
|
+
question.setIsMobile(val);
|
53699
53878
|
}); });
|
53700
53879
|
};
|
53701
53880
|
Object.defineProperty(QuestionPanelDynamicModel.prototype, "panelCount", {
|
@@ -54003,11 +54182,11 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
54003
54182
|
*
|
54004
54183
|
* Possible values:
|
54005
54184
|
*
|
54006
|
-
* - `"list"` - Renders panels one under the other. [View Demo](https://surveyjs.io/form-library/examples/how-to-use-expressions-in-dynamic-panel/)
|
54185
|
+
* - `"list"` (default) - Renders panels one under the other. [View Demo](https://surveyjs.io/form-library/examples/how-to-use-expressions-in-dynamic-panel/)
|
54007
54186
|
* - `"progressTop"` - Renders each panel as a card and displays a progress bar at the top. [View Demo](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/)
|
54008
54187
|
* - `"progressBottom"` - Renders each panel panel as a card and displays a progress bar at the bottom.
|
54009
54188
|
* - `"progressTopBottom"` - Renders each panel as a card and displays a progress bar at the top and bottom.
|
54010
|
-
* - `"tab"` - Renders each panel within a tab. Use the [`templateTabTitle`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#templateTabTitle) to specify a template for tab titles.
|
54189
|
+
* - `"tab"` - Renders each panel within a tab. Use the [`templateTabTitle`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#templateTabTitle) to specify a template for tab titles. [View Demo](/form-library/examples/tabbed-interface-for-duplicate-group-option/)
|
54011
54190
|
*/
|
54012
54191
|
get: function () {
|
54013
54192
|
return this.getPropertyValue("renderMode");
|
@@ -56242,6 +56421,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
56242
56421
|
/* harmony import */ var _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/cssClassBuilder */ "./src/utils/cssClassBuilder.ts");
|
56243
56422
|
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./base */ "./src/base.ts");
|
56244
56423
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/utils */ "./src/utils/utils.ts");
|
56424
|
+
/* harmony import */ var _utils_devices__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/devices */ "./src/utils/devices.ts");
|
56245
56425
|
var __extends = (undefined && undefined.__extends) || (function () {
|
56246
56426
|
var extendStatics = function (d, b) {
|
56247
56427
|
extendStatics = Object.setPrototypeOf ||
|
@@ -56272,6 +56452,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
56272
56452
|
|
56273
56453
|
|
56274
56454
|
|
56455
|
+
|
56275
56456
|
var RenderedRatingItem = /** @class */ (function (_super) {
|
56276
56457
|
__extends(RenderedRatingItem, _super);
|
56277
56458
|
function RenderedRatingItem(itemValue, locString) {
|
@@ -56784,6 +56965,8 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
56784
56965
|
}
|
56785
56966
|
};
|
56786
56967
|
QuestionRatingModel.prototype.onItemMouseIn = function (item) {
|
56968
|
+
if (_utils_devices__WEBPACK_IMPORTED_MODULE_9__["IsTouch"])
|
56969
|
+
return;
|
56787
56970
|
if (this.isReadOnly || !item.itemValue.isEnabled || this.isDesignMode)
|
56788
56971
|
return;
|
56789
56972
|
var high = true;
|
@@ -56801,6 +56984,8 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
56801
56984
|
}
|
56802
56985
|
};
|
56803
56986
|
QuestionRatingModel.prototype.onItemMouseOut = function (item) {
|
56987
|
+
if (_utils_devices__WEBPACK_IMPORTED_MODULE_9__["IsTouch"])
|
56988
|
+
return;
|
56804
56989
|
this.renderedRateItems.forEach(function (item) { return item.highlight = "none"; });
|
56805
56990
|
};
|
56806
56991
|
Object.defineProperty(QuestionRatingModel.prototype, "itemSmallMode", {
|
@@ -57674,7 +57859,7 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addClass("signaturepad",
|
|
57674
57859
|
default: true,
|
57675
57860
|
},
|
57676
57861
|
{
|
57677
|
-
name: "backgroundImage",
|
57862
|
+
name: "backgroundImage:file",
|
57678
57863
|
category: "general",
|
57679
57864
|
},
|
57680
57865
|
{
|
@@ -60046,9 +60231,9 @@ var CoverCellComponent = /** @class */ (function (_super) {
|
|
60046
60231
|
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.model.css, style: this.model.style },
|
60047
60232
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-cover__cell-content", style: this.model.contentStyle },
|
60048
60233
|
this.model.showLogo ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-cover__logo" }, this.renderLogoImage())) : null,
|
60049
|
-
this.model.showTitle ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-cover__title", style: { maxWidth: this.model.
|
60234
|
+
this.model.showTitle ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-cover__title", style: { maxWidth: this.model.textAreaWidth } },
|
60050
60235
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_title_title_element__WEBPACK_IMPORTED_MODULE_3__["TitleElement"], { element: this.model.survey }))) : null,
|
60051
|
-
this.model.showDescription ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-cover__description", style: { maxWidth: this.model.
|
60236
|
+
this.model.showDescription ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: "sv-cover__description", style: { maxWidth: this.model.textAreaWidth } },
|
60052
60237
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("h5", { className: this.model.survey.css.description }, _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["SurveyElementBase"].renderLocString(this.model.survey.locDescription)))) : null)));
|
60053
60238
|
};
|
60054
60239
|
return CoverCellComponent;
|
@@ -60071,10 +60256,10 @@ var CoverComponent = /** @class */ (function (_super) {
|
|
60071
60256
|
};
|
60072
60257
|
CoverComponent.prototype.renderElement = function () {
|
60073
60258
|
this.model.survey = this.props.survey;
|
60074
|
-
if (!(this.props.survey.
|
60259
|
+
if (!(this.props.survey.headerView === "advanced" && this.props.survey.renderedHasHeader)) {
|
60075
60260
|
return null;
|
60076
60261
|
}
|
60077
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.model.coverClasses, style: { height: this.model.renderedHeight
|
60262
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.model.coverClasses, style: { height: this.model.renderedHeight } },
|
60078
60263
|
this.model.backgroundImage ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { style: this.model.backgroundImageStyle, className: this.model.backgroundImageClasses }) : null,
|
60079
60264
|
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.model.contentClasses }, this.model.cells.map(function (cell, index) { return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(CoverCellComponent, { key: index, model: cell }); }))));
|
60080
60265
|
};
|
@@ -60088,10 +60273,10 @@ _element_factory__WEBPACK_IMPORTED_MODULE_2__["ReactElementFactory"].Instance.re
|
|
60088
60273
|
|
60089
60274
|
/***/ }),
|
60090
60275
|
|
60091
|
-
/***/ "./src/react/components/file
|
60092
|
-
|
60093
|
-
!*** ./src/react/components/file
|
60094
|
-
|
60276
|
+
/***/ "./src/react/components/file/file-choose-button.tsx":
|
60277
|
+
/*!**********************************************************!*\
|
60278
|
+
!*** ./src/react/components/file/file-choose-button.tsx ***!
|
60279
|
+
\**********************************************************/
|
60095
60280
|
/*! exports provided: SurveyFileChooseButton */
|
60096
60281
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
60097
60282
|
|
@@ -60149,6 +60334,91 @@ _element_factory__WEBPACK_IMPORTED_MODULE_4__["ReactElementFactory"].Instance.re
|
|
60149
60334
|
});
|
60150
60335
|
|
60151
60336
|
|
60337
|
+
/***/ }),
|
60338
|
+
|
60339
|
+
/***/ "./src/react/components/file/file-preview.tsx":
|
60340
|
+
/*!****************************************************!*\
|
60341
|
+
!*** ./src/react/components/file/file-preview.tsx ***!
|
60342
|
+
\****************************************************/
|
60343
|
+
/*! exports provided: SurveyFilePreview */
|
60344
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
60345
|
+
|
60346
|
+
"use strict";
|
60347
|
+
__webpack_require__.r(__webpack_exports__);
|
60348
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyFilePreview", function() { return SurveyFilePreview; });
|
60349
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
60350
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
60351
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../reactquestion_element */ "./src/react/reactquestion_element.tsx");
|
60352
|
+
/* harmony import */ var _svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../svg-icon/svg-icon */ "./src/react/components/svg-icon/svg-icon.tsx");
|
60353
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../element-factory */ "./src/react/element-factory.tsx");
|
60354
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
60355
|
+
var extendStatics = function (d, b) {
|
60356
|
+
extendStatics = Object.setPrototypeOf ||
|
60357
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
60358
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
60359
|
+
return extendStatics(d, b);
|
60360
|
+
};
|
60361
|
+
return function (d, b) {
|
60362
|
+
if (typeof b !== "function" && b !== null)
|
60363
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
60364
|
+
extendStatics(d, b);
|
60365
|
+
function __() { this.constructor = d; }
|
60366
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
60367
|
+
};
|
60368
|
+
})();
|
60369
|
+
|
60370
|
+
|
60371
|
+
|
60372
|
+
|
60373
|
+
var SurveyFilePreview = /** @class */ (function (_super) {
|
60374
|
+
__extends(SurveyFilePreview, _super);
|
60375
|
+
function SurveyFilePreview() {
|
60376
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
60377
|
+
}
|
60378
|
+
Object.defineProperty(SurveyFilePreview.prototype, "question", {
|
60379
|
+
get: function () {
|
60380
|
+
return this.props.question;
|
60381
|
+
},
|
60382
|
+
enumerable: false,
|
60383
|
+
configurable: true
|
60384
|
+
});
|
60385
|
+
SurveyFilePreview.prototype.renderFileSign = function (className, val) {
|
60386
|
+
var _this = this;
|
60387
|
+
if (!className || !val.name)
|
60388
|
+
return null;
|
60389
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: className },
|
60390
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("a", { href: val.content, onClick: function (event) {
|
60391
|
+
_this.question.doDownloadFile(event, val);
|
60392
|
+
}, title: val.name, download: val.name, style: { width: this.question.imageWidth } }, val.name)));
|
60393
|
+
};
|
60394
|
+
SurveyFilePreview.prototype.renderElement = function () {
|
60395
|
+
var _this = this;
|
60396
|
+
var previews = this.question.previewValue.map(function (val, index) {
|
60397
|
+
if (!val)
|
60398
|
+
return null;
|
60399
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { key: _this.question.inputId + "_" + index, className: _this.question.cssClasses.preview, style: { display: _this.question.isPreviewVisible(index) ? undefined : "none" } },
|
60400
|
+
_this.renderFileSign(_this.question.cssClasses.fileSign, val),
|
60401
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: _this.question.cssClasses.imageWrapper },
|
60402
|
+
_this.question.canPreviewImage(val) ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("img", { src: val.content, style: { height: _this.question.imageHeight, width: _this.question.imageWidth }, alt: "File preview" })) : (_this.question.cssClasses.defaultImage ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: _this.question.cssClasses.defaultImageIconId, size: "auto", className: _this.question.cssClasses.defaultImage })) : null),
|
60403
|
+
val.name && !_this.question.isReadOnly ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: _this.question.getRemoveButtonCss(), onClick: function () { return _this.question.doRemoveFile(val); } },
|
60404
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("span", { className: _this.question.cssClasses.removeFile }, _this.question.removeFileCaption),
|
60405
|
+
(_this.question.cssClasses.removeFileSvgIconId) ?
|
60406
|
+
(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { title: _this.question.removeFileCaption, iconName: _this.question.cssClasses.removeFileSvgIconId, size: "auto", className: _this.question.cssClasses.removeFileSvg })) : null)) : null),
|
60407
|
+
_this.renderFileSign(_this.question.cssClasses.fileSignBottom, val)));
|
60408
|
+
});
|
60409
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: this.question.cssClasses.fileList || undefined }, previews);
|
60410
|
+
};
|
60411
|
+
SurveyFilePreview.prototype.canRender = function () {
|
60412
|
+
return this.question.showPreviewContainer;
|
60413
|
+
};
|
60414
|
+
return SurveyFilePreview;
|
60415
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_1__["SurveyElementBase"]));
|
60416
|
+
|
60417
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_3__["ReactElementFactory"].Instance.registerElement("sv-file-preview", function (props) {
|
60418
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(SurveyFilePreview, props);
|
60419
|
+
});
|
60420
|
+
|
60421
|
+
|
60152
60422
|
/***/ }),
|
60153
60423
|
|
60154
60424
|
/***/ "./src/react/components/list/list-item.tsx":
|
@@ -62264,6 +62534,10 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
62264
62534
|
var _a;
|
62265
62535
|
(_a = _this.question.dropdownListModel) === null || _a === void 0 ? void 0 : _a.onClick(event);
|
62266
62536
|
};
|
62537
|
+
_this.chevronPointerDown = function (event) {
|
62538
|
+
var _a;
|
62539
|
+
(_a = _this.question.dropdownListModel) === null || _a === void 0 ? void 0 : _a.chevronPointerDown(event);
|
62540
|
+
};
|
62267
62541
|
_this.clear = function (event) {
|
62268
62542
|
var _a;
|
62269
62543
|
(_a = _this.question.dropdownListModel) === null || _a === void 0 ? void 0 : _a.onClear(event);
|
@@ -62346,7 +62620,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
62346
62620
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, dropdownListModel.inputStringRendered),
|
62347
62621
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, dropdownListModel.hintStringSuffix))) : null,
|
62348
62622
|
valueElement,
|
62349
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, role: dropdownListModel.filterStringEnabled ? this.question.ariaRole : undefined, "aria-
|
62623
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, role: dropdownListModel.filterStringEnabled ? this.question.ariaRole : undefined, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant, placeholder: dropdownListModel.placeholderRendered, readOnly: !dropdownListModel.searchEnabled ? true : undefined, tabIndex: dropdownListModel.inputReadOnly ? undefined : -1, disabled: this.question.isInputReadOnly, inputMode: dropdownListModel.inputMode, onChange: function (e) { onInputChange(e); }, onBlur: this.blur, onFocus: this.focus })),
|
62350
62624
|
this.createClearButton()));
|
62351
62625
|
};
|
62352
62626
|
SurveyQuestionDropdownBase.prototype.createClearButton = function () {
|
@@ -62359,7 +62633,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
62359
62633
|
SurveyQuestionDropdownBase.prototype.createChevronButton = function () {
|
62360
62634
|
if (!this.question.cssClasses.chevronButtonIconId)
|
62361
62635
|
return null;
|
62362
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.chevronButton },
|
62636
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.chevronButton, onPointerDown: this.chevronPointerDown },
|
62363
62637
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { className: this.question.cssClasses.chevronButtonSvg, iconName: this.question.cssClasses.chevronButtonIconId, size: "auto" })));
|
62364
62638
|
};
|
62365
62639
|
SurveyQuestionDropdownBase.prototype.renderOther = function (cssClasses) {
|
@@ -63910,8 +64184,8 @@ var Survey = /** @class */ (function (_super) {
|
|
63910
64184
|
else {
|
63911
64185
|
renderResult = this.renderSurvey();
|
63912
64186
|
}
|
63913
|
-
var backgroundImage = !!this.survey.
|
63914
|
-
var header = this.survey.
|
64187
|
+
var backgroundImage = !!this.survey.backgroundImage ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.rootBackgroundImage, style: this.survey.backgroundImageStyle }) : null;
|
64188
|
+
var header = this.survey.headerView === "basic" ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_survey_header_survey_header__WEBPACK_IMPORTED_MODULE_5__["SurveyHeader"], { survey: this.survey }) : null;
|
63915
64189
|
var onSubmit = function (event) {
|
63916
64190
|
event.preventDefault();
|
63917
64191
|
};
|
@@ -63922,16 +64196,17 @@ var Survey = /** @class */ (function (_super) {
|
|
63922
64196
|
var rootCss = this.survey.getRootCss();
|
63923
64197
|
var cssClasses = this.rootNodeClassName ? this.rootNodeClassName + " " + rootCss : rootCss;
|
63924
64198
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.rootNodeId, ref: this.rootRef, className: cssClasses, style: this.survey.themeVariables },
|
63925
|
-
|
63926
|
-
|
63927
|
-
|
63928
|
-
|
63929
|
-
|
63930
|
-
|
63931
|
-
|
63932
|
-
|
63933
|
-
|
63934
|
-
|
64199
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.survey.wrapperFormCss },
|
64200
|
+
backgroundImage,
|
64201
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("form", { onSubmit: onSubmit },
|
64202
|
+
customHeader,
|
64203
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.css.container },
|
64204
|
+
header,
|
64205
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "header", needRenderWrapper: false }),
|
64206
|
+
renderResult,
|
64207
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_components_container__WEBPACK_IMPORTED_MODULE_10__["ComponentsContainer"], { survey: this.survey, container: "footer", needRenderWrapper: false }))),
|
64208
|
+
this.survey.showBrandInfo ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_brand_info__WEBPACK_IMPORTED_MODULE_8__["BrandInfo"], null) : null,
|
64209
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_notifier__WEBPACK_IMPORTED_MODULE_9__["NotifierComponent"], { notifier: this.survey.notifier }))));
|
63935
64210
|
};
|
63936
64211
|
Survey.prototype.renderElement = function () {
|
63937
64212
|
return this.doRender();
|
@@ -64243,7 +64518,7 @@ var SurveyProgress = /** @class */ (function (_super) {
|
|
64243
64518
|
width: this.progress + "%",
|
64244
64519
|
};
|
64245
64520
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.survey.getProgressCssClasses(this.props.container) },
|
64246
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { style: progressStyle, className: this.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100 },
|
64521
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { style: progressStyle, className: this.css.progressBar, role: "progressbar", "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": "progress" },
|
64247
64522
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: survey_core__WEBPACK_IMPORTED_MODULE_1__["SurveyProgressModel"].getProgressTextInBarCss(this.css) }, this.progressText)),
|
64248
64523
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: survey_core__WEBPACK_IMPORTED_MODULE_1__["SurveyProgressModel"].getProgressTextUnderBarCss(this.css) }, this.progressText)));
|
64249
64524
|
};
|
@@ -66154,14 +66429,8 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
66154
66429
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, this.question.clearButtonCaption),
|
66155
66430
|
(!!this.question.cssClasses.removeButtonIconId) ? react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: this.question.cssClasses.removeButtonIconId, size: "auto", title: this.question.clearButtonCaption }) : null)) : null;
|
66156
66431
|
};
|
66157
|
-
SurveyQuestionFile.prototype.
|
66158
|
-
|
66159
|
-
if (!className || !val.name)
|
66160
|
-
return null;
|
66161
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: className },
|
66162
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("a", { href: val.content, onClick: function (event) {
|
66163
|
-
_this.question.doDownloadFile(event, val);
|
66164
|
-
}, title: val.name, download: val.name, style: { width: this.question.imageWidth } }, val.name)));
|
66432
|
+
SurveyQuestionFile.prototype.renderPreview = function () {
|
66433
|
+
return _entries_react_ui_model__WEBPACK_IMPORTED_MODULE_7__["ReactElementFactory"].Instance.createElement("sv-file-preview", { question: this.question });
|
66165
66434
|
};
|
66166
66435
|
SurveyQuestionFile.prototype.renderLoadingIndicator = function () {
|
66167
66436
|
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.loadingIndicator },
|
@@ -66174,23 +66443,6 @@ var SurveyQuestionFile = /** @class */ (function (_super) {
|
|
66174
66443
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("video", { autoPlay: true, playsInline: true, id: this.question.videoId, className: this.question.cssClasses.video }),
|
66175
66444
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_action_bar_action_bar_item__WEBPACK_IMPORTED_MODULE_6__["SurveyAction"], { item: this.question.takePictureAction })));
|
66176
66445
|
};
|
66177
|
-
SurveyQuestionFile.prototype.renderPreview = function () {
|
66178
|
-
var _this = this;
|
66179
|
-
var previews = this.question.previewValue.map(function (val, index) {
|
66180
|
-
if (!val)
|
66181
|
-
return null;
|
66182
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { key: _this.question.inputId + "_" + index, className: _this.question.cssClasses.preview, style: { display: _this.question.isPreviewVisible(index) ? undefined : "none" } },
|
66183
|
-
_this.renderFileSign(_this.question.cssClasses.fileSign, val),
|
66184
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: _this.question.cssClasses.imageWrapper },
|
66185
|
-
_this.question.canPreviewImage(val) ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("img", { src: val.content, style: { height: _this.question.imageHeight, width: _this.question.imageWidth }, alt: "File preview" })) : (_this.question.cssClasses.defaultImage ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { iconName: _this.question.cssClasses.defaultImageIconId, size: "auto", className: _this.question.cssClasses.defaultImage })) : null),
|
66186
|
-
val.name && !_this.question.isReadOnly ? (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: _this.question.getRemoveButtonCss(), onClick: function () { return _this.question.doRemoveFile(val); } },
|
66187
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { className: _this.question.cssClasses.removeFile }, _this.question.removeFileCaption),
|
66188
|
-
(_this.question.cssClasses.removeFileSvgIconId) ?
|
66189
|
-
(react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_2__["SvgIcon"], { title: _this.question.removeFileCaption, iconName: _this.question.cssClasses.removeFileSvgIconId, size: "auto", className: _this.question.cssClasses.removeFileSvg })) : null)) : null),
|
66190
|
-
_this.renderFileSign(_this.question.cssClasses.fileSignBottom, val)));
|
66191
|
-
});
|
66192
|
-
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.fileList || undefined }, previews);
|
66193
|
-
};
|
66194
66446
|
return SurveyQuestionFile;
|
66195
66447
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_3__["SurveyQuestionElementBase"]));
|
66196
66448
|
|
@@ -66853,6 +67105,7 @@ var SurveyQuestionMatrixDropdownCell = /** @class */ (function (_super) {
|
|
66853
67105
|
column: this.cell.cell.column,
|
66854
67106
|
};
|
66855
67107
|
this.question.survey.matrixAfterCellRender(this.question, options);
|
67108
|
+
this.question.afterRenderCore(el);
|
66856
67109
|
}
|
66857
67110
|
};
|
66858
67111
|
SurveyQuestionMatrixDropdownCell.prototype.getShowErrors = function () {
|
@@ -68794,7 +69047,7 @@ var TagboxFilterString = /** @class */ (function (_super) {
|
|
68794
69047
|
(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.hintSuffix },
|
68795
69048
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, this.model.inputStringRendered),
|
68796
69049
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, this.model.hintStringSuffix))) : null,
|
68797
|
-
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), inputMode: this.model.inputMode, ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, disabled: this.question.isInputReadOnly, readOnly: !this.model.searchEnabled ? true : undefined, size: !this.model.inputStringRendered ? 1 : undefined, role: this.model.filterStringEnabled ? this.question.ariaRole : undefined, "aria-
|
69050
|
+
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("input", { type: "text", autoComplete: "off", id: this.question.getInputId(), inputMode: this.model.inputMode, ref: function (element) { return (_this.inputElement = element); }, className: this.question.cssClasses.filterStringInput, disabled: this.question.isInputReadOnly, readOnly: !this.model.searchEnabled ? true : undefined, size: !this.model.inputStringRendered ? 1 : undefined, role: this.model.filterStringEnabled ? this.question.ariaRole : undefined, "aria-expanded": this.question.ariaExpanded === null ? undefined : this.question.ariaExpanded === "true", "aria-controls": this.model.listElementId, "aria-activedescendant": this.model.ariaActivedescendant, placeholder: this.model.filterStringPlaceholder, onKeyDown: function (e) { _this.keyhandler(e); }, onChange: function (e) { _this.onChange(e); }, onBlur: function (e) { _this.onBlur(e); }, onFocus: function (e) { _this.onFocus(e); } }))));
|
68798
69051
|
};
|
68799
69052
|
return TagboxFilterString;
|
68800
69053
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_3__["SurveyElementBase"]));
|
@@ -68931,6 +69184,8 @@ var RendererFactory = /** @class */ (function () {
|
|
68931
69184
|
"use strict";
|
68932
69185
|
__webpack_require__.r(__webpack_exports__);
|
68933
69186
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
|
69187
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils/utils */ "./src/utils/utils.ts");
|
69188
|
+
|
68934
69189
|
var document = globalThis.document;
|
68935
69190
|
var defaultEnvironment = (!!document ? {
|
68936
69191
|
root: document,
|
@@ -68972,10 +69227,10 @@ var settings = {
|
|
68972
69227
|
*
|
68973
69228
|
* Nested properties:
|
68974
69229
|
*
|
68975
|
-
* - `showEmptyDescriptions`: `
|
69230
|
+
* - `showEmptyDescriptions`: `boolean`\
|
68976
69231
|
* Specifies whether to display an empty description for pages and panels. Default value: `true`.
|
68977
69232
|
*
|
68978
|
-
* - `showEmptyTitles`: `
|
69233
|
+
* - `showEmptyTitles`: `boolean`\
|
68979
69234
|
* Specifies whether to display an empty title for pages and panels. Default value: `true`.
|
68980
69235
|
*/
|
68981
69236
|
designMode: {
|
@@ -68999,13 +69254,13 @@ var settings = {
|
|
68999
69254
|
*
|
69000
69255
|
* Nested properties:
|
69001
69256
|
*
|
69002
|
-
* - `useLocalTimeZone`: `
|
69257
|
+
* - `useLocalTimeZone`: `boolean`\
|
69003
69258
|
* Disable this property if you want internal SurveyJS functions to use methods that work with UTC date and time (`setUTCDate()` `setUTCHours()`, etc.) instead of methods that work with local date and time (`setYear`, `setHours()`, etc.). Default value: `true`.
|
69004
69259
|
*
|
69005
|
-
* - `defaultLocaleName`: `
|
69260
|
+
* - `defaultLocaleName`: `string`\
|
69006
69261
|
* A property key that stores a translation for the default locale. Default value: `"default"`.
|
69007
69262
|
*
|
69008
|
-
* - `storeDuplicatedTranslations`: `
|
69263
|
+
* - `storeDuplicatedTranslations`: `boolean`\
|
69009
69264
|
* Specifies whether surveys should store translation strings that equal the translation strings in the default locale. Default value: `false`.
|
69010
69265
|
*/
|
69011
69266
|
localization: {
|
@@ -69035,16 +69290,16 @@ var settings = {
|
|
69035
69290
|
*
|
69036
69291
|
* Nested properties:
|
69037
69292
|
*
|
69038
|
-
* - `encodeUrlParams`: `
|
69293
|
+
* - `encodeUrlParams`: `boolean`\
|
69039
69294
|
* Specifies whether to encode URL parameters when you access a web service. Default value: `true`.
|
69040
69295
|
*
|
69041
|
-
* - `cacheLoadedChoices`: `
|
69296
|
+
* - `cacheLoadedChoices`: `boolean`\
|
69042
69297
|
* Specifies whether to cache [choices](https://surveyjs.io/form-library/documentation/api-reference/checkbox-question-model#choicesByUrl) loaded from a web service. Default value: `true`.
|
69043
69298
|
*
|
69044
|
-
* - `disableQuestionWhileLoadingChoices`: `
|
69299
|
+
* - `disableQuestionWhileLoadingChoices`: `boolean`\
|
69045
69300
|
* Disables a question while its choices are being loaded from a web service. Default value: `false`.
|
69046
69301
|
*
|
69047
|
-
* - `surveyServiceUrl`: `
|
69302
|
+
* - `surveyServiceUrl`: `string`\
|
69048
69303
|
* The URL of the SurveyJS Service API endpoint.
|
69049
69304
|
*/
|
69050
69305
|
web: {
|
@@ -69082,14 +69337,14 @@ var settings = {
|
|
69082
69337
|
*
|
69083
69338
|
* Nested properties:
|
69084
69339
|
*
|
69085
|
-
* - `changeNavigationButtonsOnComplete`: `
|
69340
|
+
* - `changeNavigationButtonsOnComplete`: `boolean`\
|
69086
69341
|
* Specifies whether to re-evaluate an expression associated with the [Complete trigger](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#complete) immediately when a question value changes. If the expression evaluates to `true`, the trigger is executed. Default value: `false`.\
|
69087
69342
|
* Keep this property set to `false` if you want to re-evaluate the Complete trigger's expression only when the respondents navigate to another page.
|
69088
69343
|
*
|
69089
|
-
* - `executeCompleteOnValueChanged`: `
|
69344
|
+
* - `executeCompleteOnValueChanged`: `boolean`\
|
69090
69345
|
* Specifies whether to replace the Next button with the Complete button when the [Complete trigger](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#complete) is going to be executed. Default value: `true`.
|
69091
69346
|
*
|
69092
|
-
* - `executeSkipOnValueChanged`: `
|
69347
|
+
* - `executeSkipOnValueChanged`: `boolean`\
|
69093
69348
|
* Specifies whether to re-evaluate an expression associated with the [Skip trigger](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#skip) immediately when a question value changes. If the expression evaluates to `true`, the trigger is executed. Default value: `true`.\
|
69094
69349
|
* Disable this property if you want to re-evaluate the Skip trigger's expression only when respondents navigate to another page.
|
69095
69350
|
*/
|
@@ -69120,13 +69375,13 @@ var settings = {
|
|
69120
69375
|
*
|
69121
69376
|
* Nested properties:
|
69122
69377
|
*
|
69123
|
-
* - `itemValueSerializeAsObject`: `
|
69378
|
+
* - `itemValueSerializeAsObject`: `boolean`\
|
69124
69379
|
* Enable this property if you want to serialize [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) instances as objects even when they include only the `value` property. Default value: `false`. View an example below.
|
69125
69380
|
*
|
69126
|
-
* - `itemValueSerializeDisplayText`: `
|
69381
|
+
* - `itemValueSerializeDisplayText`: `boolean`\
|
69127
69382
|
* Enable this property if you want to serialize the `text` property of [`ItemValue`](https://surveyjs.io/form-library/documentation/api-reference/itemvalue) objects even when it is empty or equal to the `value` property. Default value: `false`. View an example below.
|
69128
69383
|
*
|
69129
|
-
* - `localizableStringSerializeAsObject`: `
|
69384
|
+
* - `localizableStringSerializeAsObject`: `boolean`\
|
69130
69385
|
* Enable this property if you want to serialize [`LocalizableString`](https://surveyjs.io/form-library/documentation/api-reference/localizablestring) instances as objects even when they include only a translation string for the default locale. For example, `"Custom String"` will be serialized as `{ default: "Custom String" }`. Default value: `false`.
|
69131
69386
|
*
|
69132
69387
|
* ```js
|
@@ -69170,7 +69425,7 @@ var settings = {
|
|
69170
69425
|
*
|
69171
69426
|
* Nested properties:
|
69172
69427
|
*
|
69173
|
-
* - `enabled`: `
|
69428
|
+
* - `enabled`: `boolean`\
|
69174
69429
|
* Specifies whether to add questions to the DOM only when they get into the viewport. Default value: `false`.
|
69175
69430
|
*
|
69176
69431
|
* > Lazy rendering is an experimental feature that may not work as expected in all use cases.
|
@@ -69193,28 +69448,28 @@ var settings = {
|
|
69193
69448
|
*
|
69194
69449
|
* Nested properties:
|
69195
69450
|
*
|
69196
|
-
* - `defaultRowName`: `
|
69451
|
+
* - `defaultRowName`: `string`\
|
69197
69452
|
* A property key that stores an object with default cell values. Default value: "default".
|
69198
69453
|
*
|
69199
|
-
* - `defaultCellType`: `
|
69454
|
+
* - `defaultCellType`: `string`\
|
69200
69455
|
* The default type of matrix cells. Default value: `"dropdown"`.\
|
69201
69456
|
* You can specify this setting for individual questions or matrix columns: [`cellType`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model#cellType). Refer to the `cellType` property description for information on possible values.
|
69202
69457
|
*
|
69203
|
-
* - `totalsSuffix`: `
|
69458
|
+
* - `totalsSuffix`: `string`\
|
69204
69459
|
* A suffix added to the name of the property that stores total values. The resulting property name consists of the matrix name and the suffix. Default value: `"-total"`.
|
69205
69460
|
*
|
69206
|
-
* - `maxRowCount`: `
|
69461
|
+
* - `maxRowCount`: `number`\
|
69207
69462
|
* A maximum number of rows in a Dynamic Matrix. Default value: 1000.\
|
69208
69463
|
* You can specify this setting for an individual Dynamic Matrix: [`maxRowCount`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model#maxRowCount).
|
69209
69464
|
*
|
69210
|
-
* - `maxRowCountInCondition`: `
|
69465
|
+
* - `maxRowCountInCondition`: `number`\
|
69211
69466
|
* A maximum number of matrix rows included in the Condition drop-down menu in Survey Creator. This menu is used to configure conditional survey logic. Default value: 1.\
|
69212
69467
|
* If you set this property to 0, the Condition menu does not include any matrix rows. Users still can specify conditions that use matrix rows but only with Manual Entry.
|
69213
69468
|
*
|
69214
|
-
* - `renderRemoveAsIcon`: `
|
69469
|
+
* - `renderRemoveAsIcon`: `boolean`\
|
69215
69470
|
* Disable this property if you want to render the Remove action in Dynamic Matrix as a button. Otherwise, the action is rendered as an icon. Default value: `true`.
|
69216
69471
|
*
|
69217
|
-
* - `columnWidthsByType`: `
|
69472
|
+
* - `columnWidthsByType`: `object`\
|
69218
69473
|
* An object that specifies fixed and minimum column width based on the column type.\
|
69219
69474
|
* Example: `settings.matrix.columnWidthsByType = { "tagbox": { minWidth: "240px", width: "300px" } }`
|
69220
69475
|
*
|
@@ -69268,11 +69523,11 @@ var settings = {
|
|
69268
69523
|
*
|
69269
69524
|
* Nested properties:
|
69270
69525
|
*
|
69271
|
-
* - `maxPanelCount`: `
|
69526
|
+
* - `maxPanelCount`: `number`\
|
69272
69527
|
* A maximum number of panels in Dynamic Panel. Default value: 100.\
|
69273
69528
|
* You can specify this setting for an individual Dynamic Panel: [`maxPanelCount`](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#maxPanelCount).
|
69274
69529
|
*
|
69275
|
-
* - `maxPanelCountInCondition`: `
|
69530
|
+
* - `maxPanelCountInCondition`: `number`\
|
69276
69531
|
* A maximum number of Dynamic Panel panels included in the Condition drop-down menu in Survey Creator. This menu is used to configure conditional survey logic. Default value: 1.\
|
69277
69532
|
* If you set this property to 0, the Condition menu does not include any panel questions. Users still can specify conditions that use panel questions but only with Manual Entry.
|
69278
69533
|
*/
|
@@ -69325,10 +69580,10 @@ var settings = {
|
|
69325
69580
|
*
|
69326
69581
|
* Nested properties:
|
69327
69582
|
*
|
69328
|
-
* - `includeQuestionsWithHiddenNumber`: `
|
69583
|
+
* - `includeQuestionsWithHiddenNumber`: `boolean`\
|
69329
69584
|
* Specifies whether to number questions whose [`hideNumber`](https://surveyjs.io/form-library/documentation/api-reference/question#hideNumber) property is enabled. Default value: `false`.
|
69330
69585
|
*
|
69331
|
-
* - `includeQuestionsWithHiddenTitle`: `
|
69586
|
+
* - `includeQuestionsWithHiddenTitle`: `boolean`\
|
69332
69587
|
* Specifies whether to number questions whose [`titleLocation`](https://surveyjs.io/form-library/documentation/api-reference/question#titleLocation) property is set to `"hidden"`. Default value: `false`.
|
69333
69588
|
*/
|
69334
69589
|
numbering: {
|
@@ -69362,10 +69617,10 @@ var settings = {
|
|
69362
69617
|
*
|
69363
69618
|
* Nested properties:
|
69364
69619
|
*
|
69365
|
-
* - `trimStrings`: `
|
69620
|
+
* - `trimStrings`: `boolean`\
|
69366
69621
|
* Specifies whether to remove whitespace from both ends of a string before the comparison. Default value: `true`.
|
69367
69622
|
*
|
69368
|
-
* - `caseSensitive`: `
|
69623
|
+
* - `caseSensitive`: `boolean`\
|
69369
69624
|
* Specifies whether to differentiate between capital and lower-case letters. Default value: `false`.
|
69370
69625
|
*/
|
69371
69626
|
comparator: {
|
@@ -69403,7 +69658,7 @@ var settings = {
|
|
69403
69658
|
*/
|
69404
69659
|
tagboxCloseOnSelect: false,
|
69405
69660
|
/**
|
69406
|
-
* A property that allows you to display a custom confirm dialog
|
69661
|
+
* A property that allows you to display a custom confirm dialog.
|
69407
69662
|
*
|
69408
69663
|
* Set this property to a function that renders your custom dialog window. This function should return `true` if a user confirms an action or `false` otherwise.
|
69409
69664
|
* @param message A message to be displayed in the confirm dialog window.
|
@@ -69412,14 +69667,25 @@ var settings = {
|
|
69412
69667
|
return confirm(message);
|
69413
69668
|
},
|
69414
69669
|
/**
|
69415
|
-
* A property that allows you to display a custom confirm dialog
|
69670
|
+
* A property that allows you to display a custom confirm dialog in async mode or activate the standard browser dialog.
|
69671
|
+
*
|
69672
|
+
* To display a custom confirm dialog, set this property to a function that renders it. This function should return `true` to be enabled; otherwise, a survey executes the [`confirmActionFunc`](#confirmActionFunc) function. Pass the dialog result as the `callback` parameter: `true` if a user confirms an action, `false` otherwise.
|
69673
|
+
*
|
69674
|
+
* To activate the standard browser dialog, set the `confirmActionAsync` property to a function that returns `false`. With this configuration, a survey falls back to the [`confirmActionFunc`](#confirmActionFunc) function, which renders the standard browser dialog by default.
|
69675
|
+
*
|
69676
|
+
* ```js
|
69677
|
+
* import { settings } from "survey-core";
|
69416
69678
|
*
|
69417
|
-
*
|
69679
|
+
* // Display the standard browser dialog
|
69680
|
+
* settings.confirmActionAsync = () => {
|
69681
|
+
* return false;
|
69682
|
+
* }
|
69683
|
+
* ```
|
69418
69684
|
* @param message A message to be displayed in the confirm dialog window.
|
69419
69685
|
* @param callback A callback function that should be called with `true` if a user confirms an action or `false` otherwise.
|
69420
69686
|
*/
|
69421
69687
|
confirmActionAsync: function (message, callback) {
|
69422
|
-
return
|
69688
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_0__["showConfirmDialog"])(message, callback);
|
69423
69689
|
},
|
69424
69690
|
/**
|
69425
69691
|
* A minimum width value for all survey elements.
|
@@ -69448,7 +69714,7 @@ var settings = {
|
|
69448
69714
|
*
|
69449
69715
|
* Nested properties:
|
69450
69716
|
*
|
69451
|
-
* - `lifetime`: `
|
69717
|
+
* - `lifetime`: `number`\
|
69452
69718
|
* Specifies a time period during which a notification is displayed; measured in milliseconds.
|
69453
69719
|
*/
|
69454
69720
|
notifications: {
|
@@ -71172,7 +71438,9 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
71172
71438
|
Object.defineProperty(SurveyElement.prototype, "rootStyle", {
|
71173
71439
|
get: function () {
|
71174
71440
|
var style = {};
|
71175
|
-
var minWidth = this.
|
71441
|
+
var minWidth = this.minWidth;
|
71442
|
+
if (minWidth != "auto")
|
71443
|
+
minWidth = "min(100%, " + this.minWidth + ")";
|
71176
71444
|
if (this.allowRootStyle && this.renderWidth) {
|
71177
71445
|
// style["width"] = this.renderWidth;
|
71178
71446
|
style["flexGrow"] = 1;
|
@@ -71282,9 +71550,6 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
71282
71550
|
__decorate([
|
71283
71551
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({ defaultValue: true })
|
71284
71552
|
], SurveyElement.prototype, "allowRootStyle", void 0);
|
71285
|
-
__decorate([
|
71286
|
-
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({ defaultValue: true })
|
71287
|
-
], SurveyElement.prototype, "renderMinWidth", void 0);
|
71288
71553
|
return SurveyElement;
|
71289
71554
|
}(SurveyElementCore));
|
71290
71555
|
|
@@ -71470,6 +71735,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
71470
71735
|
_this.valuesHash = {};
|
71471
71736
|
_this.variablesHash = {};
|
71472
71737
|
_this.onThemeApplying = new _base__WEBPACK_IMPORTED_MODULE_2__["EventBase"]();
|
71738
|
+
/**
|
71739
|
+
* An event that is raised after a [theme](/form-library/documentation/manage-default-themes-and-styles) is [applied](#applyTheme) to the survey.
|
71740
|
+
* @see applyTheme
|
71741
|
+
*/
|
71473
71742
|
_this.onThemeApplied = new _base__WEBPACK_IMPORTED_MODULE_2__["EventBase"]();
|
71474
71743
|
//#region Event declarations
|
71475
71744
|
/**
|
@@ -72035,6 +72304,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
72035
72304
|
_this.onDynamicPanelItemValueChanged = _this.addEvent();
|
72036
72305
|
/**
|
72037
72306
|
* An event that is raised before a [Dynamic Panel](https://surveyjs.io/form-library/examples/questiontype-paneldynamic/) renders [tab titles](https://surveyjs.io/form-library/documentation/api-reference/dynamic-panel-model#templateTabTitle). Use this event to change individual tab titles.
|
72307
|
+
*
|
72308
|
+
* For information on event handler parameters, refer to descriptions within the interface.
|
72309
|
+
*
|
72310
|
+
* [View Demo](/form-library/examples/tabbed-interface-for-duplicate-group-option/ (linkStyle))
|
72038
72311
|
*/
|
72039
72312
|
_this.onGetDynamicPanelTabTitle = _this.addEvent();
|
72040
72313
|
/**
|
@@ -72057,10 +72330,12 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
72057
72330
|
* For information on event handler parameters, refer to descriptions within the interface.
|
72058
72331
|
*
|
72059
72332
|
* [View Demo](https://surveyjs.io/form-library/examples/survey-titleactions/ (linkStyle))
|
72333
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
72060
72334
|
*/
|
72061
72335
|
_this.onGetQuestionTitleActions = _this.addEvent();
|
72062
72336
|
/**
|
72063
72337
|
* An event that allows you to add, delete, or modify actions in a panel title.
|
72338
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
72064
72339
|
*/
|
72065
72340
|
_this.onGetPanelTitleActions = _this.addEvent();
|
72066
72341
|
/**
|
@@ -72069,10 +72344,12 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
72069
72344
|
* For information on event handler parameters, refer to descriptions within the interface.
|
72070
72345
|
*
|
72071
72346
|
* [View Demo](https://surveyjs.io/form-library/examples/modify-titles-of-survey-elements/ (linkStyle))
|
72347
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
72072
72348
|
*/
|
72073
72349
|
_this.onGetPageTitleActions = _this.addEvent();
|
72074
72350
|
/**
|
72075
72351
|
* An event that allows you to add, delete, or modify actions in the footer of a [Panel](https://surveyjs.io/form-library/documentation/panelmodel).
|
72352
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
72076
72353
|
*/
|
72077
72354
|
_this.onGetPanelFooterActions = _this.addEvent();
|
72078
72355
|
/**
|
@@ -72081,7 +72358,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
72081
72358
|
* For information on event handler parameters, refer to descriptions within the interface.
|
72082
72359
|
*
|
72083
72360
|
* [View Demo](https://surveyjs.io/form-library/examples/employee-information-form/ (linkStyle))
|
72084
|
-
* @see IAction
|
72361
|
+
* @see [IAction](https://surveyjs.io/form-library/documentation/api-reference/iaction)
|
72085
72362
|
*/
|
72086
72363
|
_this.onGetMatrixRowActions = _this.addEvent();
|
72087
72364
|
/**
|
@@ -72202,6 +72479,9 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
72202
72479
|
_this.registerPropertyChangedHandlers(["state", "currentPage", "showPreviewBeforeComplete"], function () { _this.onStateAndCurrentPageChanged(); });
|
72203
72480
|
_this.registerPropertyChangedHandlers(["logo", "logoPosition"], function () { _this.updateHasLogo(); });
|
72204
72481
|
_this.registerPropertyChangedHandlers(["backgroundImage"], function () { _this.updateRenderBackgroundImage(); });
|
72482
|
+
_this.registerPropertyChangedHandlers(["renderBackgroundImage", "backgroundOpacity", "backgroundImageFit", "fitToContainer", "backgroundImageAttachment"], function () {
|
72483
|
+
_this.updateBackgroundImageStyle();
|
72484
|
+
});
|
72205
72485
|
_this.onGetQuestionNo.onCallbacksChanged = function () {
|
72206
72486
|
_this.resetVisibleIndexes();
|
72207
72487
|
};
|
@@ -72450,6 +72730,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
72450
72730
|
this.rootCss = this.getRootCss();
|
72451
72731
|
this.updateNavigationCss();
|
72452
72732
|
this.updateCompletedPageCss();
|
72733
|
+
this.updateWrapperFormCss();
|
72453
72734
|
};
|
72454
72735
|
Object.defineProperty(SurveyModel.prototype, "css", {
|
72455
72736
|
/**
|
@@ -73684,18 +73965,20 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
73684
73965
|
enumerable: false,
|
73685
73966
|
configurable: true
|
73686
73967
|
});
|
73687
|
-
|
73688
|
-
|
73689
|
-
|
73690
|
-
|
73691
|
-
|
73692
|
-
|
73693
|
-
|
73694
|
-
|
73695
|
-
|
73696
|
-
|
73697
|
-
|
73698
|
-
|
73968
|
+
SurveyModel.prototype.updateBackgroundImageStyle = function () {
|
73969
|
+
this.backgroundImageStyle = {
|
73970
|
+
opacity: this.backgroundOpacity,
|
73971
|
+
backgroundImage: this.renderBackgroundImage,
|
73972
|
+
backgroundSize: this.backgroundImageFit,
|
73973
|
+
backgroundAttachment: !this.fitToContainer ? this.backgroundImageAttachment : undefined
|
73974
|
+
};
|
73975
|
+
};
|
73976
|
+
SurveyModel.prototype.updateWrapperFormCss = function () {
|
73977
|
+
this.wrapperFormCss = new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_18__["CssClassBuilder"]()
|
73978
|
+
.append(this.css.rootWrapper)
|
73979
|
+
.append(this.css.rootWrapperFixed, this.backgroundImageAttachment === "fixed")
|
73980
|
+
.toString();
|
73981
|
+
};
|
73699
73982
|
Object.defineProperty(SurveyModel.prototype, "completedHtml", {
|
73700
73983
|
/**
|
73701
73984
|
* HTML content displayed on the [complete page](https://surveyjs.io/form-library/documentation/design-survey/create-a-multi-page-survey#complete-page).
|
@@ -75111,16 +75394,18 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
75111
75394
|
}
|
75112
75395
|
this.setPropertyValue("completedStateText", text);
|
75113
75396
|
if (this.state === "completed" && this.showCompletedPage && !!this.completedState) {
|
75114
|
-
this.notify(this.completedStateText, this.completedState);
|
75397
|
+
this.notify(this.completedStateText, this.completedState, true);
|
75115
75398
|
}
|
75116
75399
|
};
|
75117
|
-
SurveyModel.prototype.notify = function (message, type) {
|
75400
|
+
SurveyModel.prototype.notify = function (message, type, showActions) {
|
75401
|
+
if (showActions === void 0) { showActions = false; }
|
75402
|
+
this.notifier.showActions = showActions;
|
75118
75403
|
this.notifier.notify(message, type, type === "error");
|
75119
75404
|
};
|
75120
75405
|
/**
|
75121
75406
|
* Resets the survey [`state`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#state) and, optionally, [`data`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#data). If `state` is `"completed"`, it becomes `"running"`.
|
75122
|
-
* @param clearData *Optional
|
75123
|
-
* @param goToFirstPage *Optional
|
75407
|
+
* @param clearData *(Optional)* Specifies whether to clear survey data. Default value: `true`.
|
75408
|
+
* @param goToFirstPage *(Optional)* Specifies whether to switch the survey to the first page. Default value: `true`.
|
75124
75409
|
*/
|
75125
75410
|
SurveyModel.prototype.clear = function (clearData, goToFirstPage) {
|
75126
75411
|
if (clearData === void 0) { clearData = true; }
|
@@ -75504,7 +75789,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
75504
75789
|
* Validates all questions on the current page and returns `false` if the validation fails.
|
75505
75790
|
*
|
75506
75791
|
* If you use validation expressions and at least one of them calls an async function, the `validateCurrentPage` method returns `undefined`. In this case, you should pass a callback function as the `onAsyncValidation` parameter. The function's `hasErrors` Boolean parameter will contain the validation result.
|
75507
|
-
* @param onAsyncValidation *Optional
|
75792
|
+
* @param onAsyncValidation *(Optional)* Pass a callback function. It accepts a Boolean `hasErrors` parameter that equals `true` if the validation fails or `false` otherwise.
|
75508
75793
|
* @see currentPage
|
75509
75794
|
* @see validate
|
75510
75795
|
* @see validateCurrentPage
|
@@ -75523,7 +75808,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
75523
75808
|
*
|
75524
75809
|
* If you use validation expressions and at least one of them calls an async function, the `validatePage` method returns `undefined`. In this case, you should pass a callback function as the `onAsyncValidation` parameter. The function's `hasErrors` Boolean parameter will contain the validation result.
|
75525
75810
|
* @param page Pass the `PageModel` that you want to validate. You can pass `undefined` to validate the [`activePage`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#activePage).
|
75526
|
-
* @param onAsyncValidation *Optional
|
75811
|
+
* @param onAsyncValidation *(Optional)* Pass a callback function. It accepts a Boolean `hasErrors` parameter that equals `true` if the validation fails or `false` otherwise.
|
75527
75812
|
* @see validate
|
75528
75813
|
* @see validateCurrentPage
|
75529
75814
|
*/
|
@@ -75553,9 +75838,9 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
75553
75838
|
* Validates all questions and returns `false` if the validation fails.
|
75554
75839
|
*
|
75555
75840
|
* If you use validation expressions and at least one of them calls an async function, the `validate` method returns `undefined`. In this case, you should pass a callback function as the `onAsyncValidation` parameter. The function's `hasErrors` Boolean parameter will contain the validation result.
|
75556
|
-
* @param fireCallback *Optional
|
75557
|
-
* @param focusOnFirstError *Optional
|
75558
|
-
* @param onAsyncValidation *Optional
|
75841
|
+
* @param fireCallback *(Optional)* Pass `false` if you do not want to show validation errors in the UI.
|
75842
|
+
* @param focusOnFirstError *(Optional)* Pass `true` if you want to focus the first question with a validation error. The survey will be switched to the page that contains this question if required.
|
75843
|
+
* @param onAsyncValidation *(Optional)* Pass a callback function. It accepts a Boolean `hasErrors` parameter that equals `true` if the validation fails or `false` otherwise.
|
75559
75844
|
* @see validateCurrentPage
|
75560
75845
|
* @see validatePage
|
75561
75846
|
*/
|
@@ -77618,7 +77903,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
77618
77903
|
SurveyModel.prototype.runQuestionsTriggers = function (name, value) {
|
77619
77904
|
if (this.isDisplayMode || this.isDesignMode)
|
77620
77905
|
return;
|
77621
|
-
var questions = this.getAllQuestions(
|
77906
|
+
var questions = this.getAllQuestions();
|
77622
77907
|
questions.forEach(function (q) { return q.runTriggers(name, value); });
|
77623
77908
|
};
|
77624
77909
|
SurveyModel.prototype.checkIfNewPagesBecomeVisible = function (oldCurrentPageIndex) {
|
@@ -79162,13 +79447,13 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
79162
79447
|
*
|
79163
79448
|
* This method accepts an object with the following layout element properties:
|
79164
79449
|
*
|
79165
|
-
* - `id`: `
|
79450
|
+
* - `id`: `string` | `"timerpanel"` | `"progress-buttons"` | `"progress-questions"` | `"progress-pages"` | `"progress-correctquestions"` | `"progress-requiredquestions"` | `"toc-navigation"` | `"navigationbuttons"`\
|
79166
79451
|
* A layout element identifier. You can use possible values to access and relocate or customize predefined layout elements.
|
79167
79452
|
*
|
79168
79453
|
* - `container`: `"header"` | `"footer"` | `"left"` | `"right"` | `"contentTop"` | `"contentBottom"`\
|
79169
79454
|
* A layout container that holds the element. If you want to display the element within multiple containers, set this property to an array of possible values.
|
79170
79455
|
*
|
79171
|
-
* - `component`: `
|
79456
|
+
* - `component`: `string`\
|
79172
79457
|
* The name of the component that renders the layout element.
|
79173
79458
|
*
|
79174
79459
|
* - `data`: `any`\
|
@@ -79254,15 +79539,22 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
79254
79539
|
SurveyModel.prototype.processPopupVisiblityChanged = function (question, popup, visible) {
|
79255
79540
|
this.onPopupVisibleChanged.fire(this, { question: question, popup: popup, visible: visible });
|
79256
79541
|
};
|
79542
|
+
/**
|
79543
|
+
* Applies a specified theme to the survey.
|
79544
|
+
*
|
79545
|
+
* [Themes & Styles](/form-library/documentation/manage-default-themes-and-styles (linkStyle))
|
79546
|
+
* @param theme An [`ITheme`](/form-library/documentation/api-reference/itheme) object with theme settings.
|
79547
|
+
* @see onThemeApplied
|
79548
|
+
*/
|
79257
79549
|
SurveyModel.prototype.applyTheme = function (theme) {
|
79258
79550
|
var _this = this;
|
79259
79551
|
if (!theme)
|
79260
79552
|
return;
|
79261
79553
|
Object.keys(theme).forEach(function (key) {
|
79262
|
-
if (key === "
|
79554
|
+
if (key === "header") {
|
79263
79555
|
_this.removeLayoutElement("cover");
|
79264
79556
|
var newCoverModel = new _cover__WEBPACK_IMPORTED_MODULE_20__["Cover"]();
|
79265
|
-
newCoverModel.
|
79557
|
+
newCoverModel.fromTheme(theme);
|
79266
79558
|
_this.layoutElements.push({
|
79267
79559
|
id: "cover",
|
79268
79560
|
container: "header",
|
@@ -79309,12 +79601,26 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
79309
79601
|
};
|
79310
79602
|
SurveyModel.prototype.addScrollEventListener = function () {
|
79311
79603
|
var _this = this;
|
79604
|
+
var _a;
|
79312
79605
|
this.scrollHandler = function () { _this.onScroll(); };
|
79313
79606
|
this.rootElement.addEventListener("scroll", this.scrollHandler);
|
79607
|
+
if (!!this.rootElement.getElementsByTagName("form")[0]) {
|
79608
|
+
this.rootElement.getElementsByTagName("form")[0].addEventListener("scroll", this.scrollHandler);
|
79609
|
+
}
|
79610
|
+
if (!!this.css.rootWrapper) {
|
79611
|
+
(_a = this.rootElement.getElementsByClassName(this.css.rootWrapper)[0]) === null || _a === void 0 ? void 0 : _a.addEventListener("scroll", this.scrollHandler);
|
79612
|
+
}
|
79314
79613
|
};
|
79315
79614
|
SurveyModel.prototype.removeScrollEventListener = function () {
|
79615
|
+
var _a;
|
79316
79616
|
if (!!this.rootElement && !!this.scrollHandler) {
|
79317
79617
|
this.rootElement.removeEventListener("scroll", this.scrollHandler);
|
79618
|
+
if (!!this.rootElement.getElementsByTagName("form")[0]) {
|
79619
|
+
this.rootElement.getElementsByTagName("form")[0].removeEventListener("scroll", this.scrollHandler);
|
79620
|
+
}
|
79621
|
+
if (!!this.css.rootWrapper) {
|
79622
|
+
(_a = this.rootElement.getElementsByClassName(this.css.rootWrapper)[0]) === null || _a === void 0 ? void 0 : _a.removeEventListener("scroll", this.scrollHandler);
|
79623
|
+
}
|
79318
79624
|
}
|
79319
79625
|
};
|
79320
79626
|
SurveyModel.TemplateRendererComponentName = "sv-template-renderer";
|
@@ -79338,8 +79644,8 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
79338
79644
|
__decorate([
|
79339
79645
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({
|
79340
79646
|
onSet: function (newValue, target) {
|
79341
|
-
if (newValue === "
|
79342
|
-
var layoutElement = target.layoutElements.filter(function (a) { return a.id ===
|
79647
|
+
if (newValue === "advanced") {
|
79648
|
+
var layoutElement = target.layoutElements.filter(function (a) { return a.id === "cover"; })[0];
|
79343
79649
|
if (!layoutElement) {
|
79344
79650
|
var cover = new _cover__WEBPACK_IMPORTED_MODULE_20__["Cover"]();
|
79345
79651
|
cover.logoPositionX = target.logoPosition === "right" ? "right" : "left";
|
@@ -79362,7 +79668,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
79362
79668
|
}
|
79363
79669
|
}
|
79364
79670
|
})
|
79365
|
-
], SurveyModel.prototype, "
|
79671
|
+
], SurveyModel.prototype, "headerView", void 0);
|
79366
79672
|
__decorate([
|
79367
79673
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
79368
79674
|
], SurveyModel.prototype, "showBrandInfo", void 0);
|
@@ -79388,8 +79694,18 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
79388
79694
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
79389
79695
|
], SurveyModel.prototype, "backgroundImageFit", void 0);
|
79390
79696
|
__decorate([
|
79391
|
-
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])(
|
79697
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({
|
79698
|
+
onSet: function (newValue, target) {
|
79699
|
+
target.updateCss();
|
79700
|
+
}
|
79701
|
+
})
|
79392
79702
|
], SurveyModel.prototype, "backgroundImageAttachment", void 0);
|
79703
|
+
__decorate([
|
79704
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
79705
|
+
], SurveyModel.prototype, "backgroundImageStyle", void 0);
|
79706
|
+
__decorate([
|
79707
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
79708
|
+
], SurveyModel.prototype, "wrapperFormCss", void 0);
|
79393
79709
|
__decorate([
|
79394
79710
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
79395
79711
|
], SurveyModel.prototype, "rootCss", void 0);
|
@@ -79425,7 +79741,7 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("survey", [
|
|
79425
79741
|
serializationProperty: "locDescription",
|
79426
79742
|
dependsOn: "locale",
|
79427
79743
|
},
|
79428
|
-
{ name: "logo", serializationProperty: "locLogo" },
|
79744
|
+
{ name: "logo:file", serializationProperty: "locLogo" },
|
79429
79745
|
{ name: "logoWidth", default: "300px", minValue: 0 },
|
79430
79746
|
{ name: "logoHeight", default: "200px", minValue: 0 },
|
79431
79747
|
{
|
@@ -79641,8 +79957,8 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_1__["Serializer"].addClass("survey", [
|
|
79641
79957
|
},
|
79642
79958
|
{ name: "width", visibleIf: function (obj) { return obj.widthMode === "static"; } },
|
79643
79959
|
{ name: "fitToContainer:boolean", default: false },
|
79644
|
-
{ name: "
|
79645
|
-
{ name: "backgroundImage", visible: false },
|
79960
|
+
{ name: "headerView", default: "basic", choices: ["basic", "advanced"], visible: false },
|
79961
|
+
{ name: "backgroundImage:file", visible: false },
|
79646
79962
|
{ name: "backgroundImageFit", default: "cover", choices: ["auto", "contain", "cover"], visible: false },
|
79647
79963
|
{ name: "backgroundImageAttachment", default: "scroll", choices: ["scroll", "fixed"], visible: false },
|
79648
79964
|
{ name: "backgroundOpacity:number", minValue: 0, maxValue: 1, default: 1, visible: false },
|
@@ -80074,8 +80390,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
80074
80390
|
/* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./list */ "./src/list.ts");
|
80075
80391
|
/* harmony import */ var _page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./page */ "./src/page.ts");
|
80076
80392
|
/* harmony import */ var _popup__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./popup */ "./src/popup.ts");
|
80077
|
-
/* harmony import */ var _utils_devices__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./utils/devices */ "./src/utils/devices.ts");
|
80078
|
-
|
80079
80393
|
|
80080
80394
|
|
80081
80395
|
|
@@ -80147,15 +80461,21 @@ var TOCModel = /** @class */ (function () {
|
|
80147
80461
|
function TOCModel(survey) {
|
80148
80462
|
var _this = this;
|
80149
80463
|
this.survey = survey;
|
80150
|
-
this.isMobile = _utils_devices__WEBPACK_IMPORTED_MODULE_5__["IsTouch"];
|
80151
80464
|
this.icon = "icon-navmenu_24x24";
|
80152
80465
|
this.togglePopup = function () {
|
80153
80466
|
_this.popupModel.toggleVisibility();
|
80154
80467
|
};
|
80155
80468
|
this.listModel = createTOCListModel(survey, function () { _this.popupModel.isVisible = false; });
|
80156
80469
|
this.popupModel = new _popup__WEBPACK_IMPORTED_MODULE_4__["PopupModel"]("sv-list", { model: this.listModel });
|
80157
|
-
this.popupModel.displayMode =
|
80470
|
+
this.popupModel.displayMode = new _base__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return _this.isMobile ? "overlay" : "popup"; });
|
80158
80471
|
}
|
80472
|
+
Object.defineProperty(TOCModel.prototype, "isMobile", {
|
80473
|
+
get: function () {
|
80474
|
+
return this.survey.isMobile;
|
80475
|
+
},
|
80476
|
+
enumerable: false,
|
80477
|
+
configurable: true
|
80478
|
+
});
|
80159
80479
|
Object.defineProperty(TOCModel.prototype, "containerCss", {
|
80160
80480
|
get: function () {
|
80161
80481
|
return getTocRootCss(this.survey, this.isMobile);
|
@@ -80163,6 +80483,10 @@ var TOCModel = /** @class */ (function () {
|
|
80163
80483
|
enumerable: false,
|
80164
80484
|
configurable: true
|
80165
80485
|
});
|
80486
|
+
TOCModel.prototype.dispose = function () {
|
80487
|
+
this.popupModel.dispose();
|
80488
|
+
this.listModel.dispose();
|
80489
|
+
};
|
80166
80490
|
return TOCModel;
|
80167
80491
|
}());
|
80168
80492
|
|
@@ -80796,7 +81120,13 @@ var Trigger = /** @class */ (function (_super) {
|
|
80796
81120
|
if (!!this.conditionRunner) {
|
80797
81121
|
this.perform(values, properties);
|
80798
81122
|
}
|
81123
|
+
else {
|
81124
|
+
if (this.canSuccessOnEmptyExpression()) {
|
81125
|
+
this.triggerResult(true, values, properties);
|
81126
|
+
}
|
81127
|
+
}
|
80799
81128
|
};
|
81129
|
+
Trigger.prototype.canSuccessOnEmptyExpression = function () { return false; };
|
80800
81130
|
Trigger.prototype.check = function (value) {
|
80801
81131
|
var triggerResult = Trigger.operators[this.operator](value, this.value);
|
80802
81132
|
if (triggerResult) {
|
@@ -80856,9 +81186,14 @@ var Trigger = /** @class */ (function (_super) {
|
|
80856
81186
|
if (!keys)
|
80857
81187
|
return false;
|
80858
81188
|
this.createConditionRunner();
|
80859
|
-
if (this.conditionRunner.hasFunction() === true)
|
81189
|
+
if (this.conditionRunner && this.conditionRunner.hasFunction() === true)
|
80860
81190
|
return true;
|
80861
|
-
return new _conditionProcessValue__WEBPACK_IMPORTED_MODULE_5__["ProcessValue"]().isAnyKeyChanged(keys, this.
|
81191
|
+
return new _conditionProcessValue__WEBPACK_IMPORTED_MODULE_5__["ProcessValue"]().isAnyKeyChanged(keys, this.getUsedVariables());
|
81192
|
+
};
|
81193
|
+
Trigger.prototype.getUsedVariables = function () {
|
81194
|
+
if (!this.conditionRunner)
|
81195
|
+
return [];
|
81196
|
+
return this.conditionRunner.getVariables();
|
80862
81197
|
};
|
80863
81198
|
Trigger.prototype.createConditionRunner = function () {
|
80864
81199
|
if (!!this.conditionRunner)
|
@@ -81191,6 +81526,14 @@ var SurveyTriggerCopyValue = /** @class */ (function (_super) {
|
|
81191
81526
|
return;
|
81192
81527
|
this.owner.copyTriggerValue(this.setToName, this.fromName, this.copyDisplayValue);
|
81193
81528
|
};
|
81529
|
+
SurveyTriggerCopyValue.prototype.canSuccessOnEmptyExpression = function () { return true; };
|
81530
|
+
SurveyTriggerCopyValue.prototype.getUsedVariables = function () {
|
81531
|
+
var res = _super.prototype.getUsedVariables.call(this);
|
81532
|
+
if (res.length === 0 && !!this.fromName) {
|
81533
|
+
res.push(this.fromName);
|
81534
|
+
}
|
81535
|
+
return res;
|
81536
|
+
};
|
81194
81537
|
return SurveyTriggerCopyValue;
|
81195
81538
|
}(SurveyTrigger));
|
81196
81539
|
|
@@ -81923,7 +82266,7 @@ var VerticalResponsivityManager = /** @class */ (function (_super) {
|
|
81923
82266
|
/*!****************************!*\
|
81924
82267
|
!*** ./src/utils/utils.ts ***!
|
81925
82268
|
\****************************/
|
81926
|
-
/*! exports provided: unwrap, getRenderedSize, getRenderedStyleSize, doKey2ClickBlur, doKey2ClickUp, doKey2ClickDown, sanitizeEditableContent, Logger, mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild */
|
82269
|
+
/*! exports provided: unwrap, getRenderedSize, getRenderedStyleSize, doKey2ClickBlur, doKey2ClickUp, doKey2ClickDown, sanitizeEditableContent, Logger, showConfirmDialog, mergeValues, getElementWidth, isContainerVisible, classesToSelector, compareVersions, confirmAction, confirmActionAsync, detectIEOrEdge, detectIEBrowser, loadFileFromBase64, isMobile, isShadowDOM, getElement, isElementVisible, findScrollableParent, scrollElementByChildId, navigateToUrl, wrapUrlForBackgroundImage, createSvg, getIconNameFromProxy, increaseHeightByContent, getOriginalEvent, preventDefaults, findParentByClassNames, getFirstVisibleChild */
|
81927
82270
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
81928
82271
|
|
81929
82272
|
"use strict";
|
@@ -81936,6 +82279,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
81936
82279
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "doKey2ClickDown", function() { return doKey2ClickDown; });
|
81937
82280
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sanitizeEditableContent", function() { return sanitizeEditableContent; });
|
81938
82281
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Logger", function() { return Logger; });
|
82282
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "showConfirmDialog", function() { return showConfirmDialog; });
|
81939
82283
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "mergeValues", function() { return mergeValues; });
|
81940
82284
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getElementWidth", function() { return getElementWidth; });
|
81941
82285
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isContainerVisible", function() { return isContainerVisible; });
|
@@ -81961,7 +82305,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
81961
82305
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "preventDefaults", function() { return preventDefaults; });
|
81962
82306
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "findParentByClassNames", function() { return findParentByClassNames; });
|
81963
82307
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getFirstVisibleChild", function() { return getFirstVisibleChild; });
|
81964
|
-
/* harmony import */ var
|
82308
|
+
/* harmony import */ var _localizablestring__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../localizablestring */ "./src/localizablestring.ts");
|
82309
|
+
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./../settings */ "./src/settings.ts");
|
82310
|
+
/* harmony import */ var _surveyStrings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../surveyStrings */ "./src/surveyStrings.ts");
|
82311
|
+
|
82312
|
+
|
81965
82313
|
|
81966
82314
|
function compareVersions(a, b) {
|
81967
82315
|
var regExStrip0 = /(\.0+)+$/;
|
@@ -81977,8 +82325,8 @@ function compareVersions(a, b) {
|
|
81977
82325
|
return segmentsA.length - segmentsB.length;
|
81978
82326
|
}
|
81979
82327
|
function confirmAction(message) {
|
81980
|
-
if (!!
|
81981
|
-
return
|
82328
|
+
if (!!_settings__WEBPACK_IMPORTED_MODULE_1__["settings"] && !!_settings__WEBPACK_IMPORTED_MODULE_1__["settings"].confirmActionFunc)
|
82329
|
+
return _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].confirmActionFunc(message);
|
81982
82330
|
return confirm(message);
|
81983
82331
|
}
|
81984
82332
|
function confirmActionAsync(message, funcOnYes, funcOnNo) {
|
@@ -81988,8 +82336,8 @@ function confirmActionAsync(message, funcOnYes, funcOnNo) {
|
|
81988
82336
|
else if (!!funcOnNo)
|
81989
82337
|
funcOnNo();
|
81990
82338
|
};
|
81991
|
-
if (!!
|
81992
|
-
if (
|
82339
|
+
if (!!_settings__WEBPACK_IMPORTED_MODULE_1__["settings"] && !!_settings__WEBPACK_IMPORTED_MODULE_1__["settings"].confirmActionAsync) {
|
82340
|
+
if (_settings__WEBPACK_IMPORTED_MODULE_1__["settings"].confirmActionAsync(message, callbackFunc))
|
81993
82341
|
return;
|
81994
82342
|
}
|
81995
82343
|
callbackFunc(confirmAction(message));
|
@@ -82045,15 +82393,15 @@ var isShadowDOM = function (rootElement) {
|
|
82045
82393
|
return !!rootElement && !!("host" in rootElement && rootElement.host);
|
82046
82394
|
};
|
82047
82395
|
var getElement = function (element) {
|
82048
|
-
var root =
|
82396
|
+
var root = _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].environment.root;
|
82049
82397
|
return typeof element === "string" ? root.getElementById(element) : element;
|
82050
82398
|
};
|
82051
82399
|
function isElementVisible(element, threshold) {
|
82052
82400
|
if (threshold === void 0) { threshold = 0; }
|
82053
|
-
if (typeof
|
82401
|
+
if (typeof _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].environment === "undefined") {
|
82054
82402
|
return false;
|
82055
82403
|
}
|
82056
|
-
var root =
|
82404
|
+
var root = _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].environment.root;
|
82057
82405
|
var clientHeight = isShadowDOM(root)
|
82058
82406
|
? root.host.clientHeight
|
82059
82407
|
: root.documentElement.clientHeight;
|
@@ -82068,7 +82416,7 @@ function isElementVisible(element, threshold) {
|
|
82068
82416
|
return maxTop <= minBottom;
|
82069
82417
|
}
|
82070
82418
|
function findScrollableParent(element) {
|
82071
|
-
var root =
|
82419
|
+
var root = _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].environment.root;
|
82072
82420
|
if (!element) {
|
82073
82421
|
return isShadowDOM(root)
|
82074
82422
|
? root.host
|
@@ -82087,7 +82435,7 @@ function findScrollableParent(element) {
|
|
82087
82435
|
return findScrollableParent(element.parentElement);
|
82088
82436
|
}
|
82089
82437
|
function scrollElementByChildId(id) {
|
82090
|
-
var environment =
|
82438
|
+
var environment = _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].environment;
|
82091
82439
|
if (!environment)
|
82092
82440
|
return;
|
82093
82441
|
var root = environment.root;
|
@@ -82110,7 +82458,7 @@ function wrapUrlForBackgroundImage(url) {
|
|
82110
82458
|
function getIconNameFromProxy(iconName) {
|
82111
82459
|
if (!iconName)
|
82112
82460
|
return iconName;
|
82113
|
-
var proxyName =
|
82461
|
+
var proxyName = _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].customIcons[iconName];
|
82114
82462
|
return !!proxyName ? proxyName : iconName;
|
82115
82463
|
}
|
82116
82464
|
function createSvg(size, width, height, iconName, svgElem, title) {
|
@@ -82333,6 +82681,34 @@ var Logger = /** @class */ (function () {
|
|
82333
82681
|
return Logger;
|
82334
82682
|
}());
|
82335
82683
|
|
82684
|
+
function showConfirmDialog(message, callback) {
|
82685
|
+
var locStr = new _localizablestring__WEBPACK_IMPORTED_MODULE_0__["LocalizableString"](undefined);
|
82686
|
+
var popupViewModel = _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].showDialog({
|
82687
|
+
componentName: "sv-string-viewer",
|
82688
|
+
data: { locStr: locStr, locString: locStr, model: locStr },
|
82689
|
+
onApply: function () {
|
82690
|
+
callback(true);
|
82691
|
+
return true;
|
82692
|
+
},
|
82693
|
+
onCancel: function () {
|
82694
|
+
callback(false);
|
82695
|
+
return false;
|
82696
|
+
},
|
82697
|
+
title: message,
|
82698
|
+
displayMode: "popup",
|
82699
|
+
isFocusedContent: false,
|
82700
|
+
cssClass: "sv-popup--confirm-delete"
|
82701
|
+
}, /*settings.rootElement*/ document.body); //TODO survey root
|
82702
|
+
var toolbar = popupViewModel.footerToolbar;
|
82703
|
+
var applyBtn = toolbar.getActionById("apply");
|
82704
|
+
var cancelBtn = toolbar.getActionById("cancel");
|
82705
|
+
cancelBtn.title = _surveyStrings__WEBPACK_IMPORTED_MODULE_2__["surveyLocalization"].getString("cancel");
|
82706
|
+
cancelBtn.innerCss = "sv-popup__body-footer-item sv-popup__button sd-btn sd-btn--small";
|
82707
|
+
applyBtn.title = _surveyStrings__WEBPACK_IMPORTED_MODULE_2__["surveyLocalization"].getString("ok");
|
82708
|
+
applyBtn.innerCss = "sv-popup__body-footer-item sv-popup__button sv-popup__button--danger sd-btn sd-btn--small sd-btn--danger";
|
82709
|
+
popupViewModel.width = "452px";
|
82710
|
+
return true;
|
82711
|
+
}
|
82336
82712
|
|
82337
82713
|
|
82338
82714
|
|