survey-react 1.9.79 → 1.9.81
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 +192 -35
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +65 -10
- package/modern.css.map +1 -1
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/survey.css +49 -4
- package/survey.css.map +1 -1
- package/survey.min.css +2 -2
- package/survey.react.d.ts +331 -143
- package/survey.react.js +1533 -768
- 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.81
|
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
|
*/
|
@@ -1441,9 +1441,6 @@ var BaseAction = /** @class */ (function (_super) {
|
|
1441
1441
|
__decorate([
|
1442
1442
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: "large" })
|
1443
1443
|
], BaseAction.prototype, "mode", void 0);
|
1444
|
-
__decorate([
|
1445
|
-
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])()
|
1446
|
-
], BaseAction.prototype, "owner", void 0);
|
1447
1444
|
__decorate([
|
1448
1445
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])()
|
1449
1446
|
], BaseAction.prototype, "visibleIndex", void 0);
|
@@ -3305,7 +3302,7 @@ var CalculatedValue = /** @class */ (function (_super) {
|
|
3305
3302
|
* The calculated value name. It should be non empty and unique.
|
3306
3303
|
*/
|
3307
3304
|
get: function () {
|
3308
|
-
return this.getPropertyValue("name"
|
3305
|
+
return this.getPropertyValue("name") || "";
|
3309
3306
|
},
|
3310
3307
|
set: function (val) {
|
3311
3308
|
this.setPropertyValue("name", val);
|
@@ -3318,7 +3315,7 @@ var CalculatedValue = /** @class */ (function (_super) {
|
|
3318
3315
|
* Set this property to true to include the non-empty calculated value into survey result, survey.data property.
|
3319
3316
|
*/
|
3320
3317
|
get: function () {
|
3321
|
-
return this.getPropertyValue("includeIntoResult"
|
3318
|
+
return this.getPropertyValue("includeIntoResult");
|
3322
3319
|
},
|
3323
3320
|
set: function (val) {
|
3324
3321
|
this.setPropertyValue("includeIntoResult", val);
|
@@ -3332,7 +3329,7 @@ var CalculatedValue = /** @class */ (function (_super) {
|
|
3332
3329
|
* Example: "({quantity} * {price}) * (100 - {discount}) / 100"
|
3333
3330
|
*/
|
3334
3331
|
get: function () {
|
3335
|
-
return this.getPropertyValue("expression"
|
3332
|
+
return this.getPropertyValue("expression") || "";
|
3336
3333
|
},
|
3337
3334
|
set: function (val) {
|
3338
3335
|
this.setPropertyValue("expression", val);
|
@@ -5076,7 +5073,11 @@ var modernCss = {
|
|
5076
5073
|
cleanButtonSvg: "sv-dropdown_clean-button-svg",
|
5077
5074
|
cleanButtonIconId: "icon-clear_16x16",
|
5078
5075
|
controlValue: "sv-dropdown__value",
|
5079
|
-
controlInputFieldComponent: "sv_dropdown_control__input-field-component"
|
5076
|
+
controlInputFieldComponent: "sv_dropdown_control__input-field-component",
|
5077
|
+
itemSmiley: "sv-rating__item-smiley",
|
5078
|
+
itemStar: "sv-rating__item-star",
|
5079
|
+
itemSmileySelected: "sv-rating__item-smiley--selected",
|
5080
|
+
itemStarSelected: "sv-rating__item-star--selected"
|
5080
5081
|
},
|
5081
5082
|
comment: {
|
5082
5083
|
root: "sv-comment",
|
@@ -5385,6 +5386,8 @@ var defaultStandardCss = {
|
|
5385
5386
|
paneldynamic: {
|
5386
5387
|
root: "sv_panel_dynamic",
|
5387
5388
|
title: "sv_p_title",
|
5389
|
+
header: "sv-paneldynamic__header sv_header",
|
5390
|
+
headerTab: "sv-paneldynamic__header-tab",
|
5388
5391
|
button: "",
|
5389
5392
|
buttonAdd: "sv-paneldynamic__add-btn",
|
5390
5393
|
buttonRemove: "sv_p_remove_btn",
|
@@ -5457,6 +5460,10 @@ var defaultStandardCss = {
|
|
5457
5460
|
minText: "sv_q_rating_min_text",
|
5458
5461
|
itemText: "sv_q_rating_item_text",
|
5459
5462
|
maxText: "sv_q_rating_max_text",
|
5463
|
+
itemStar: "sv_q_rating__item-star",
|
5464
|
+
itemStarSelected: "sv_q_rating__item-star--selected",
|
5465
|
+
itemSmiley: "sv_q_rating__item-smiley",
|
5466
|
+
itemSmileySelected: "sv_q_rating__item-smiley--selected",
|
5460
5467
|
},
|
5461
5468
|
text: {
|
5462
5469
|
root: "sv_q_text_root",
|
@@ -5597,6 +5604,7 @@ var defaultV2Css = {
|
|
5597
5604
|
edit: "",
|
5598
5605
|
},
|
5599
5606
|
panel: {
|
5607
|
+
asPage: "sd-panel--as-page",
|
5600
5608
|
number: "sd-element__num",
|
5601
5609
|
title: "sd-title sd-element__title sd-panel__title",
|
5602
5610
|
titleExpandable: "sd-element__title--expandable",
|
@@ -5628,6 +5636,8 @@ var defaultV2Css = {
|
|
5628
5636
|
root: "sd-paneldynamic",
|
5629
5637
|
navigation: "sd-paneldynamic__navigation",
|
5630
5638
|
title: "sd-title sd-element__title sd-question__title",
|
5639
|
+
header: "sd-paneldynamic__header sd-element__header",
|
5640
|
+
headerTab: "sd-paneldynamic__header-tab",
|
5631
5641
|
button: "sd-action sd-paneldynamic__btn",
|
5632
5642
|
buttonRemove: "sd-action--negative sd-paneldynamic__remove-btn",
|
5633
5643
|
buttonAdd: "sd-paneldynamic__add-btn",
|
@@ -5839,6 +5849,7 @@ var defaultV2Css = {
|
|
5839
5849
|
itemLabelOnError: "sd-multipletext__item-container--error",
|
5840
5850
|
item: "sd-multipletext__item",
|
5841
5851
|
itemTitle: "sd-multipletext__item-title",
|
5852
|
+
content: "sd-multipletext__content sd-question__content",
|
5842
5853
|
row: "sd-multipletext__row",
|
5843
5854
|
cell: "sd-multipletext__cell"
|
5844
5855
|
},
|
@@ -5951,6 +5962,7 @@ var defaultV2Css = {
|
|
5951
5962
|
empty: "sd-question--empty",
|
5952
5963
|
root: "sd-table sd-matrixdynamic",
|
5953
5964
|
tableWrapper: "sd-table-wrapper",
|
5965
|
+
content: "sd-matrixdynamic__content sd-question__content",
|
5954
5966
|
cell: "sd-table__cell",
|
5955
5967
|
row: "sd-table__row",
|
5956
5968
|
itemCell: "sd-table__cell--item",
|
@@ -5996,6 +6008,11 @@ var defaultV2Css = {
|
|
5996
6008
|
itemStarDisabled: "sd-rating__item-star--disabled",
|
5997
6009
|
itemStarHighlighted: "sd-rating__item-star--highlighted",
|
5998
6010
|
itemStarUnhighlighted: "sd-rating__item-star--unhighlighted",
|
6011
|
+
itemSmiley: "sd-rating__item-smiley",
|
6012
|
+
itemSmileyOnError: "sd-rating__item-smiley--error",
|
6013
|
+
itemSmileyHover: "sd-rating__item-smiley--allowhover",
|
6014
|
+
itemSmileySelected: "sd-rating__item-smiley--selected",
|
6015
|
+
itemSmileyDisabled: "sd-rating__item-smiley--disabled",
|
5999
6016
|
minText: "sd-rating__item-text sd-rating__min-text",
|
6000
6017
|
itemText: "sd-rating__item-text",
|
6001
6018
|
maxText: "sd-rating__item-text sd-rating__max-text",
|
@@ -6201,6 +6218,443 @@ var DefaultTitleModel = /** @class */ (function () {
|
|
6201
6218
|
|
6202
6219
|
|
6203
6220
|
|
6221
|
+
/***/ }),
|
6222
|
+
|
6223
|
+
/***/ "./src/drag-drop-helper-v1.ts":
|
6224
|
+
/*!************************************!*\
|
6225
|
+
!*** ./src/drag-drop-helper-v1.ts ***!
|
6226
|
+
\************************************/
|
6227
|
+
/*! exports provided: DragDropInfo */
|
6228
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6229
|
+
|
6230
|
+
"use strict";
|
6231
|
+
__webpack_require__.r(__webpack_exports__);
|
6232
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DragDropInfo", function() { return DragDropInfo; });
|
6233
|
+
var DragDropInfo = /** @class */ (function () {
|
6234
|
+
function DragDropInfo(source, target, nestedPanelDepth) {
|
6235
|
+
if (nestedPanelDepth === void 0) { nestedPanelDepth = -1; }
|
6236
|
+
this.source = source;
|
6237
|
+
this.target = target;
|
6238
|
+
this.nestedPanelDepth = nestedPanelDepth;
|
6239
|
+
}
|
6240
|
+
return DragDropInfo;
|
6241
|
+
}());
|
6242
|
+
|
6243
|
+
|
6244
|
+
|
6245
|
+
/***/ }),
|
6246
|
+
|
6247
|
+
/***/ "./src/drag-drop-page-helper-v1.ts":
|
6248
|
+
/*!*****************************************!*\
|
6249
|
+
!*** ./src/drag-drop-page-helper-v1.ts ***!
|
6250
|
+
\*****************************************/
|
6251
|
+
/*! exports provided: DragDropPageHelperV1 */
|
6252
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6253
|
+
|
6254
|
+
"use strict";
|
6255
|
+
__webpack_require__.r(__webpack_exports__);
|
6256
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DragDropPageHelperV1", function() { return DragDropPageHelperV1; });
|
6257
|
+
/* harmony import */ var _drag_drop_helper_v1__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./drag-drop-helper-v1 */ "./src/drag-drop-helper-v1.ts");
|
6258
|
+
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./settings */ "./src/settings.ts");
|
6259
|
+
|
6260
|
+
|
6261
|
+
var DragDropPageHelperV1 = /** @class */ (function () {
|
6262
|
+
function DragDropPageHelperV1(page) {
|
6263
|
+
this.page = page;
|
6264
|
+
}
|
6265
|
+
DragDropPageHelperV1.prototype.getDragDropInfo = function () { return this.dragDropInfo; };
|
6266
|
+
DragDropPageHelperV1.prototype.dragDropStart = function (src, target, nestedPanelDepth) {
|
6267
|
+
if (nestedPanelDepth === void 0) { nestedPanelDepth = -1; }
|
6268
|
+
this.dragDropInfo = new _drag_drop_helper_v1__WEBPACK_IMPORTED_MODULE_0__["DragDropInfo"](src, target, nestedPanelDepth);
|
6269
|
+
};
|
6270
|
+
DragDropPageHelperV1.prototype.dragDropMoveTo = function (destination, isBottom, isEdge) {
|
6271
|
+
if (isBottom === void 0) { isBottom = false; }
|
6272
|
+
if (isEdge === void 0) { isEdge = false; }
|
6273
|
+
if (!this.dragDropInfo)
|
6274
|
+
return false;
|
6275
|
+
this.dragDropInfo.destination = destination;
|
6276
|
+
this.dragDropInfo.isBottom = isBottom;
|
6277
|
+
this.dragDropInfo.isEdge = isEdge;
|
6278
|
+
this.correctDragDropInfo(this.dragDropInfo);
|
6279
|
+
if (!this.dragDropCanDropTagert())
|
6280
|
+
return false;
|
6281
|
+
if (!this.dragDropCanDropSource() || !this.dragDropAllowFromSurvey()) {
|
6282
|
+
if (!!this.dragDropInfo.source) {
|
6283
|
+
var row = this.page.dragDropFindRow(this.dragDropInfo.target);
|
6284
|
+
this.page.updateRowsRemoveElementFromRow(this.dragDropInfo.target, row);
|
6285
|
+
}
|
6286
|
+
return false;
|
6287
|
+
}
|
6288
|
+
this.page.dragDropAddTarget(this.dragDropInfo);
|
6289
|
+
return true;
|
6290
|
+
};
|
6291
|
+
DragDropPageHelperV1.prototype.correctDragDropInfo = function (dragDropInfo) {
|
6292
|
+
if (!dragDropInfo.destination)
|
6293
|
+
return;
|
6294
|
+
var panel = dragDropInfo.destination.isPanel
|
6295
|
+
? dragDropInfo.destination
|
6296
|
+
: null;
|
6297
|
+
if (!panel)
|
6298
|
+
return;
|
6299
|
+
if (!dragDropInfo.target.isLayoutTypeSupported(panel.getChildrenLayoutType())) {
|
6300
|
+
dragDropInfo.isEdge = true;
|
6301
|
+
}
|
6302
|
+
};
|
6303
|
+
DragDropPageHelperV1.prototype.dragDropAllowFromSurvey = function () {
|
6304
|
+
var dest = this.dragDropInfo.destination;
|
6305
|
+
if (!dest || !this.page.survey)
|
6306
|
+
return true;
|
6307
|
+
var insertBefore = null;
|
6308
|
+
var insertAfter = null;
|
6309
|
+
var parent = dest.isPage || (!this.dragDropInfo.isEdge && dest.isPanel)
|
6310
|
+
? dest
|
6311
|
+
: dest.parent;
|
6312
|
+
if (!dest.isPage) {
|
6313
|
+
var container = dest.parent;
|
6314
|
+
if (!!container) {
|
6315
|
+
var elements = container.elements;
|
6316
|
+
var index = elements.indexOf(dest);
|
6317
|
+
if (index > -1) {
|
6318
|
+
insertBefore = dest;
|
6319
|
+
insertAfter = dest;
|
6320
|
+
if (this.dragDropInfo.isBottom) {
|
6321
|
+
insertBefore =
|
6322
|
+
index < elements.length - 1 ? elements[index + 1] : null;
|
6323
|
+
}
|
6324
|
+
else {
|
6325
|
+
insertAfter = index > 0 ? elements[index - 1] : null;
|
6326
|
+
}
|
6327
|
+
}
|
6328
|
+
}
|
6329
|
+
}
|
6330
|
+
var options = {
|
6331
|
+
allow: true,
|
6332
|
+
target: this.dragDropInfo.target,
|
6333
|
+
source: this.dragDropInfo.source,
|
6334
|
+
parent: parent,
|
6335
|
+
insertAfter: insertAfter,
|
6336
|
+
insertBefore: insertBefore,
|
6337
|
+
};
|
6338
|
+
return this.page.survey.dragAndDropAllow(options);
|
6339
|
+
};
|
6340
|
+
DragDropPageHelperV1.prototype.dragDropFinish = function (isCancel) {
|
6341
|
+
if (isCancel === void 0) { isCancel = false; }
|
6342
|
+
if (!this.dragDropInfo)
|
6343
|
+
return;
|
6344
|
+
var target = this.dragDropInfo.target;
|
6345
|
+
var src = this.dragDropInfo.source;
|
6346
|
+
var dest = this.dragDropInfo.destination;
|
6347
|
+
var row = this.page.dragDropFindRow(target);
|
6348
|
+
var targetIndex = this.dragDropGetElementIndex(target, row);
|
6349
|
+
this.page.updateRowsRemoveElementFromRow(target, row);
|
6350
|
+
var elementsToSetSWNL = [];
|
6351
|
+
var elementsToResetSWNL = [];
|
6352
|
+
if (!isCancel && !!row) {
|
6353
|
+
var isSamePanel = false;
|
6354
|
+
if (this.page.isDesignMode && _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].supportCreatorV2) {
|
6355
|
+
var srcRow = src && src.parent && src.parent.dragDropFindRow(src);
|
6356
|
+
if (row.panel.elements[targetIndex] && row.panel.elements[targetIndex].startWithNewLine && row.elements.length > 1 && row.panel.elements[targetIndex] === dest) {
|
6357
|
+
elementsToSetSWNL.push(target);
|
6358
|
+
elementsToResetSWNL.push(row.panel.elements[targetIndex]);
|
6359
|
+
}
|
6360
|
+
if (target.startWithNewLine && row.elements.length > 1 && (!row.panel.elements[targetIndex] || !row.panel.elements[targetIndex].startWithNewLine)) {
|
6361
|
+
elementsToResetSWNL.push(target);
|
6362
|
+
}
|
6363
|
+
if (srcRow && srcRow.elements[0] === src && srcRow.elements[1]) {
|
6364
|
+
elementsToSetSWNL.push(srcRow.elements[1]);
|
6365
|
+
}
|
6366
|
+
if (row.elements.length <= 1) {
|
6367
|
+
elementsToSetSWNL.push(target);
|
6368
|
+
}
|
6369
|
+
if (target.startWithNewLine && row.elements.length > 1 && row.elements[0] !== dest) {
|
6370
|
+
elementsToResetSWNL.push(target);
|
6371
|
+
}
|
6372
|
+
}
|
6373
|
+
if (!!src && !!src.parent) {
|
6374
|
+
this.page.survey.startMovingQuestion();
|
6375
|
+
isSamePanel = row.panel == src.parent;
|
6376
|
+
if (isSamePanel) {
|
6377
|
+
row.panel.dragDropMoveElement(src, target, targetIndex);
|
6378
|
+
targetIndex = -1;
|
6379
|
+
}
|
6380
|
+
else {
|
6381
|
+
src.parent.removeElement(src);
|
6382
|
+
}
|
6383
|
+
}
|
6384
|
+
if (targetIndex > -1) {
|
6385
|
+
row.panel.addElement(target, targetIndex);
|
6386
|
+
}
|
6387
|
+
this.page.survey.stopMovingQuestion();
|
6388
|
+
}
|
6389
|
+
elementsToSetSWNL.map(function (e) { e.startWithNewLine = true; });
|
6390
|
+
elementsToResetSWNL.map(function (e) { e.startWithNewLine = false; });
|
6391
|
+
this.dragDropInfo = null;
|
6392
|
+
return !isCancel ? target : null;
|
6393
|
+
};
|
6394
|
+
DragDropPageHelperV1.prototype.dragDropGetElementIndex = function (target, row) {
|
6395
|
+
if (!row)
|
6396
|
+
return -1;
|
6397
|
+
var index = row.elements.indexOf(target);
|
6398
|
+
if (row.index == 0)
|
6399
|
+
return index;
|
6400
|
+
var prevRow = row.panel.rows[row.index - 1];
|
6401
|
+
var prevElement = prevRow.elements[prevRow.elements.length - 1];
|
6402
|
+
return index + row.panel.elements.indexOf(prevElement) + 1;
|
6403
|
+
};
|
6404
|
+
DragDropPageHelperV1.prototype.dragDropCanDropTagert = function () {
|
6405
|
+
var destination = this.dragDropInfo.destination;
|
6406
|
+
if (!destination || destination.isPage)
|
6407
|
+
return true;
|
6408
|
+
return this.dragDropCanDropCore(this.dragDropInfo.target, destination);
|
6409
|
+
};
|
6410
|
+
DragDropPageHelperV1.prototype.dragDropCanDropSource = function () {
|
6411
|
+
var source = this.dragDropInfo.source;
|
6412
|
+
if (!source)
|
6413
|
+
return true;
|
6414
|
+
var destination = this.dragDropInfo.destination;
|
6415
|
+
if (!this.dragDropCanDropCore(source, destination))
|
6416
|
+
return false;
|
6417
|
+
if (this.page.isDesignMode && _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].supportCreatorV2) {
|
6418
|
+
var rowSource = this.page.dragDropFindRow(source);
|
6419
|
+
var rowDestination = this.page.dragDropFindRow(destination);
|
6420
|
+
if (rowSource !== rowDestination) {
|
6421
|
+
if (!source.startWithNewLine && destination.startWithNewLine)
|
6422
|
+
return true;
|
6423
|
+
if (source.startWithNewLine && !destination.startWithNewLine) {
|
6424
|
+
return true;
|
6425
|
+
}
|
6426
|
+
}
|
6427
|
+
var row = this.page.dragDropFindRow(destination);
|
6428
|
+
if (row && row.elements.length == 1)
|
6429
|
+
return true;
|
6430
|
+
}
|
6431
|
+
return this.dragDropCanDropNotNext(source, destination, this.dragDropInfo.isEdge, this.dragDropInfo.isBottom);
|
6432
|
+
};
|
6433
|
+
DragDropPageHelperV1.prototype.dragDropCanDropCore = function (target, destination) {
|
6434
|
+
if (!destination)
|
6435
|
+
return true;
|
6436
|
+
if (this.dragDropIsSameElement(destination, target))
|
6437
|
+
return false;
|
6438
|
+
if (target.isPanel) {
|
6439
|
+
var pnl = target;
|
6440
|
+
if (pnl.containsElement(destination) ||
|
6441
|
+
!!pnl.getElementByName(destination.name))
|
6442
|
+
return false;
|
6443
|
+
}
|
6444
|
+
return true;
|
6445
|
+
};
|
6446
|
+
DragDropPageHelperV1.prototype.dragDropCanDropNotNext = function (source, destination, isEdge, isBottom) {
|
6447
|
+
if (!destination || (destination.isPanel && !isEdge))
|
6448
|
+
return true;
|
6449
|
+
if (typeof source.parent === "undefined" || source.parent !== destination.parent)
|
6450
|
+
return true;
|
6451
|
+
var pnl = source.parent;
|
6452
|
+
var srcIndex = pnl.elements.indexOf(source);
|
6453
|
+
var destIndex = pnl.elements.indexOf(destination);
|
6454
|
+
if (destIndex < srcIndex && !isBottom)
|
6455
|
+
destIndex--;
|
6456
|
+
if (isBottom)
|
6457
|
+
destIndex++;
|
6458
|
+
return srcIndex < destIndex
|
6459
|
+
? destIndex - srcIndex > 1
|
6460
|
+
: srcIndex - destIndex > 0;
|
6461
|
+
};
|
6462
|
+
DragDropPageHelperV1.prototype.dragDropIsSameElement = function (el1, el2) {
|
6463
|
+
return el1 == el2 || el1.name == el2.name;
|
6464
|
+
};
|
6465
|
+
return DragDropPageHelperV1;
|
6466
|
+
}());
|
6467
|
+
|
6468
|
+
|
6469
|
+
|
6470
|
+
/***/ }),
|
6471
|
+
|
6472
|
+
/***/ "./src/drag-drop-panel-helper-v1.ts":
|
6473
|
+
/*!******************************************!*\
|
6474
|
+
!*** ./src/drag-drop-panel-helper-v1.ts ***!
|
6475
|
+
\******************************************/
|
6476
|
+
/*! exports provided: DragDropPanelHelperV1 */
|
6477
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
6478
|
+
|
6479
|
+
"use strict";
|
6480
|
+
__webpack_require__.r(__webpack_exports__);
|
6481
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DragDropPanelHelperV1", function() { return DragDropPanelHelperV1; });
|
6482
|
+
/* harmony import */ var _drag_drop_helper_v1__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./drag-drop-helper-v1 */ "./src/drag-drop-helper-v1.ts");
|
6483
|
+
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./settings */ "./src/settings.ts");
|
6484
|
+
|
6485
|
+
|
6486
|
+
var DragDropPanelHelperV1 = /** @class */ (function () {
|
6487
|
+
function DragDropPanelHelperV1(panel) {
|
6488
|
+
this.panel = panel;
|
6489
|
+
}
|
6490
|
+
DragDropPanelHelperV1.prototype.dragDropAddTarget = function (dragDropInfo) {
|
6491
|
+
var prevRow = this.dragDropFindRow(dragDropInfo.target);
|
6492
|
+
if (this.dragDropAddTargetToRow(dragDropInfo, prevRow)) {
|
6493
|
+
this.panel.updateRowsRemoveElementFromRow(dragDropInfo.target, prevRow);
|
6494
|
+
}
|
6495
|
+
};
|
6496
|
+
DragDropPanelHelperV1.prototype.dragDropFindRow = function (findElement) {
|
6497
|
+
if (!findElement || findElement.isPage)
|
6498
|
+
return null;
|
6499
|
+
var element = findElement;
|
6500
|
+
var rows = this.panel.rows;
|
6501
|
+
for (var i = 0; i < rows.length; i++) {
|
6502
|
+
if (rows[i].elements.indexOf(element) > -1)
|
6503
|
+
return rows[i];
|
6504
|
+
}
|
6505
|
+
for (var i = 0; i < this.panel.elements.length; i++) {
|
6506
|
+
var pnl = this.panel.elements[i].getPanel();
|
6507
|
+
if (!pnl)
|
6508
|
+
continue;
|
6509
|
+
var row = pnl.dragDropFindRow(element);
|
6510
|
+
if (!!row)
|
6511
|
+
return row;
|
6512
|
+
}
|
6513
|
+
return null;
|
6514
|
+
};
|
6515
|
+
DragDropPanelHelperV1.prototype.dragDropMoveElement = function (src, target, targetIndex) {
|
6516
|
+
var srcIndex = src.parent.elements.indexOf(src);
|
6517
|
+
if (targetIndex > srcIndex) {
|
6518
|
+
targetIndex--;
|
6519
|
+
}
|
6520
|
+
this.panel.removeElement(src);
|
6521
|
+
this.panel.addElement(target, targetIndex);
|
6522
|
+
};
|
6523
|
+
DragDropPanelHelperV1.prototype.updateRowsOnElementAdded = function (element, index, dragDropInfo, thisElement) {
|
6524
|
+
if (!dragDropInfo) {
|
6525
|
+
dragDropInfo = new _drag_drop_helper_v1__WEBPACK_IMPORTED_MODULE_0__["DragDropInfo"](null, element);
|
6526
|
+
dragDropInfo.target = element;
|
6527
|
+
dragDropInfo.isEdge = this.panel.elements.length > 1;
|
6528
|
+
if (this.panel.elements.length < 2) {
|
6529
|
+
dragDropInfo.destination = thisElement;
|
6530
|
+
}
|
6531
|
+
else {
|
6532
|
+
dragDropInfo.isBottom = index > 0;
|
6533
|
+
if (index == 0) {
|
6534
|
+
dragDropInfo.destination = this.panel.elements[1];
|
6535
|
+
}
|
6536
|
+
else {
|
6537
|
+
dragDropInfo.destination = this.panel.elements[index - 1];
|
6538
|
+
}
|
6539
|
+
}
|
6540
|
+
}
|
6541
|
+
this.dragDropAddTargetToRow(dragDropInfo, null);
|
6542
|
+
};
|
6543
|
+
DragDropPanelHelperV1.prototype.dragDropAddTargetToRow = function (dragDropInfo, prevRow) {
|
6544
|
+
if (!dragDropInfo.destination)
|
6545
|
+
return true;
|
6546
|
+
if (this.dragDropAddTargetToEmptyPanel(dragDropInfo))
|
6547
|
+
return true;
|
6548
|
+
var dest = dragDropInfo.destination;
|
6549
|
+
var destRow = this.dragDropFindRow(dest);
|
6550
|
+
if (!destRow)
|
6551
|
+
return true;
|
6552
|
+
if (_settings__WEBPACK_IMPORTED_MODULE_1__["settings"].supportCreatorV2 && this.panel.isDesignMode) {
|
6553
|
+
if (destRow.elements.length > 1)
|
6554
|
+
return this.dragDropAddTargetToExistingRow(dragDropInfo, destRow, prevRow);
|
6555
|
+
else
|
6556
|
+
return this.dragDropAddTargetToNewRow(dragDropInfo, destRow, prevRow);
|
6557
|
+
}
|
6558
|
+
if (!dragDropInfo.target.startWithNewLine)
|
6559
|
+
return this.dragDropAddTargetToExistingRow(dragDropInfo, destRow, prevRow);
|
6560
|
+
return this.dragDropAddTargetToNewRow(dragDropInfo, destRow, prevRow);
|
6561
|
+
};
|
6562
|
+
DragDropPanelHelperV1.prototype.dragDropAddTargetToEmptyPanel = function (dragDropInfo) {
|
6563
|
+
if (dragDropInfo.destination.isPage) {
|
6564
|
+
this.dragDropAddTargetToEmptyPanelCore(this.panel.root, dragDropInfo.target, dragDropInfo.isBottom);
|
6565
|
+
return true;
|
6566
|
+
}
|
6567
|
+
var dest = dragDropInfo.destination;
|
6568
|
+
if (dest.isPanel && !dragDropInfo.isEdge) {
|
6569
|
+
var panel = dest;
|
6570
|
+
if (dragDropInfo.target["template"] === dest) {
|
6571
|
+
return false;
|
6572
|
+
}
|
6573
|
+
if (dragDropInfo.nestedPanelDepth < 0 ||
|
6574
|
+
dragDropInfo.nestedPanelDepth >= panel.depth) {
|
6575
|
+
this.dragDropAddTargetToEmptyPanelCore(dest, dragDropInfo.target, dragDropInfo.isBottom);
|
6576
|
+
return true;
|
6577
|
+
}
|
6578
|
+
}
|
6579
|
+
return false;
|
6580
|
+
};
|
6581
|
+
DragDropPanelHelperV1.prototype.dragDropAddTargetToExistingRow = function (dragDropInfo, destRow, prevRow) {
|
6582
|
+
var index = destRow.elements.indexOf(dragDropInfo.destination);
|
6583
|
+
if (index == 0 &&
|
6584
|
+
!dragDropInfo.isBottom) {
|
6585
|
+
if (this.panel.isDesignMode && _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].supportCreatorV2) {
|
6586
|
+
}
|
6587
|
+
else if (destRow.elements[0].startWithNewLine) {
|
6588
|
+
if (destRow.index > 0) {
|
6589
|
+
dragDropInfo.isBottom = true;
|
6590
|
+
destRow = destRow.panel.rows[destRow.index - 1];
|
6591
|
+
dragDropInfo.destination =
|
6592
|
+
destRow.elements[destRow.elements.length - 1];
|
6593
|
+
return this.dragDropAddTargetToExistingRow(dragDropInfo, destRow, prevRow);
|
6594
|
+
}
|
6595
|
+
else {
|
6596
|
+
return this.dragDropAddTargetToNewRow(dragDropInfo, destRow, prevRow);
|
6597
|
+
}
|
6598
|
+
}
|
6599
|
+
}
|
6600
|
+
var prevRowIndex = -1;
|
6601
|
+
if (prevRow == destRow) {
|
6602
|
+
prevRowIndex = destRow.elements.indexOf(dragDropInfo.target);
|
6603
|
+
}
|
6604
|
+
if (dragDropInfo.isBottom)
|
6605
|
+
index++;
|
6606
|
+
var srcRow = this.panel.findRowByElement(dragDropInfo.source);
|
6607
|
+
if (srcRow == destRow &&
|
6608
|
+
srcRow.elements.indexOf(dragDropInfo.source) == index)
|
6609
|
+
return false;
|
6610
|
+
if (index == prevRowIndex)
|
6611
|
+
return false;
|
6612
|
+
if (prevRowIndex > -1) {
|
6613
|
+
destRow.elements.splice(prevRowIndex, 1);
|
6614
|
+
if (prevRowIndex < index)
|
6615
|
+
index--;
|
6616
|
+
}
|
6617
|
+
destRow.elements.splice(index, 0, dragDropInfo.target);
|
6618
|
+
destRow.updateVisible();
|
6619
|
+
return prevRowIndex < 0;
|
6620
|
+
};
|
6621
|
+
DragDropPanelHelperV1.prototype.dragDropAddTargetToNewRow = function (dragDropInfo, destRow, prevRow) {
|
6622
|
+
var targetRow = destRow.panel.createRowAndSetLazy(destRow.panel.rows.length);
|
6623
|
+
if (this.panel.isDesignMode && _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].supportCreatorV2) {
|
6624
|
+
targetRow.setIsLazyRendering(false);
|
6625
|
+
}
|
6626
|
+
targetRow.addElement(dragDropInfo.target);
|
6627
|
+
var index = destRow.index;
|
6628
|
+
if (dragDropInfo.isBottom) {
|
6629
|
+
index++;
|
6630
|
+
}
|
6631
|
+
//same row
|
6632
|
+
if (!!prevRow && prevRow.panel == targetRow.panel && prevRow.index == index)
|
6633
|
+
return false;
|
6634
|
+
var srcRow = this.panel.findRowByElement(dragDropInfo.source);
|
6635
|
+
if (!!srcRow &&
|
6636
|
+
srcRow.panel == targetRow.panel &&
|
6637
|
+
srcRow.elements.length == 1 &&
|
6638
|
+
srcRow.index == index)
|
6639
|
+
return false;
|
6640
|
+
destRow.panel.rows.splice(index, 0, targetRow);
|
6641
|
+
return true;
|
6642
|
+
};
|
6643
|
+
DragDropPanelHelperV1.prototype.dragDropAddTargetToEmptyPanelCore = function (panel, target, isBottom) {
|
6644
|
+
var targetRow = panel.createRow();
|
6645
|
+
targetRow.addElement(target);
|
6646
|
+
if (panel.elements.length == 0 || isBottom) {
|
6647
|
+
panel.rows.push(targetRow);
|
6648
|
+
}
|
6649
|
+
else {
|
6650
|
+
panel.rows.splice(0, 0, targetRow);
|
6651
|
+
}
|
6652
|
+
};
|
6653
|
+
return DragDropPanelHelperV1;
|
6654
|
+
}());
|
6655
|
+
|
6656
|
+
|
6657
|
+
|
6204
6658
|
/***/ }),
|
6205
6659
|
|
6206
6660
|
/***/ "./src/dragdrop/choices.ts":
|
@@ -6284,7 +6738,7 @@ var DragDropChoices = /** @class */ (function (_super) {
|
|
6284
6738
|
};
|
6285
6739
|
DragDropChoices.prototype.createImagePickerShortcut = function (item, text, draggedElementNode, event) {
|
6286
6740
|
var draggedElementShortcut = document.createElement("div");
|
6287
|
-
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 1000;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);\n padding: 4px;\n border-radius: 4px;\n background: white;\n ";
|
6741
|
+
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 1000;\n filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, 0.1));\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);\n padding: 4px;\n border-radius: 4px;\n background: white;\n ";
|
6288
6742
|
var itemValueNode = draggedElementNode.closest("[data-sv-drop-target-item-value]");
|
6289
6743
|
var controlsNode = itemValueNode.querySelector(".svc-image-item-value-controls");
|
6290
6744
|
var imageContainerNode = itemValueNode.querySelector(".sd-imagepicker__image-container");
|
@@ -6869,7 +7323,7 @@ var DragDropMatrixRows = /** @class */ (function (_super) {
|
|
6869
7323
|
var row = (draggedElementNode
|
6870
7324
|
.closest("[data-sv-drop-target-matrix-row]"));
|
6871
7325
|
var clone = (row.cloneNode(isDeepClone));
|
6872
|
-
clone.style.cssText = "\n box-shadow: rgb(0 0 0 / 10%) 0px 8px 16px;\n background-color: white;\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n align-items: center;\n line-height: 0;\n width: " + row.offsetWidth + "px;\n ";
|
7326
|
+
clone.style.cssText = "\n filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, 0.1));\n box-shadow: rgb(0 0 0 / 10%) 0px 8px 16px;\n background-color: white;\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n align-items: center;\n line-height: 0;\n width: " + row.offsetWidth + "px;\n ";
|
6873
7327
|
clone.classList.remove("sv-matrix__drag-drop--moveup");
|
6874
7328
|
clone.classList.remove("sv-matrix__drag-drop--movedown");
|
6875
7329
|
this.draggedElement.isDragDropMoveDown = false;
|
@@ -7036,7 +7490,7 @@ var DragDropRankingChoices = /** @class */ (function (_super) {
|
|
7036
7490
|
DragDropRankingChoices.prototype.createDraggedElementShortcut = function (text, draggedElementNode, event) {
|
7037
7491
|
var draggedElementShortcut = document.createElement("div");
|
7038
7492
|
draggedElementShortcut.className = this.shortcutClass + " sv-ranking-shortcut";
|
7039
|
-
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 1000;\n border-radius: 36px;\n min-width: 100px;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);\n background-color: var(--background, white);\n font-family: var(--font-family, $font-family);\n ";
|
7493
|
+
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 1000;\n border-radius: 36px;\n min-width: 100px;\n filter: drop-shadow(0px 2px 6px rgba(0, 0, 0, 0.1));\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);\n background-color: var(--background, white);\n font-family: var(--font-family, $font-family);\n ";
|
7040
7494
|
var isDeepClone = true;
|
7041
7495
|
var clone = draggedElementNode.cloneNode(isDeepClone);
|
7042
7496
|
draggedElementShortcut.appendChild(clone);
|
@@ -7252,6 +7706,18 @@ var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
7252
7706
|
new _jsonobject__WEBPACK_IMPORTED_MODULE_1__["JsonObject"]().toObject(json, newElement);
|
7253
7707
|
return newElement;
|
7254
7708
|
};
|
7709
|
+
DragDropSurveyElements.prototype.findDropTargetNodeByDragOverNode = function (dragOverNode) {
|
7710
|
+
var ghostRow = dragOverNode.closest(".svc-row--ghost");
|
7711
|
+
if (!!ghostRow) {
|
7712
|
+
var ghostDataAttrSelector = "[data-sv-drop-target-survey-element='sv-drag-drop-ghost-survey-element-name']";
|
7713
|
+
var ghostNode = dragOverNode.closest(ghostDataAttrSelector) || dragOverNode.querySelector(ghostDataAttrSelector);
|
7714
|
+
if (!!ghostNode) {
|
7715
|
+
return ghostNode;
|
7716
|
+
}
|
7717
|
+
}
|
7718
|
+
var dropTargetNode = dragOverNode.closest(this.dropTargetDataAttributeName);
|
7719
|
+
return dropTargetNode;
|
7720
|
+
};
|
7255
7721
|
DragDropSurveyElements.prototype.getDropTargetByDataAttributeValue = function (dataAttributeValue, dropTargetNode, event) {
|
7256
7722
|
this.isEdge = this.calculateIsEdge(dropTargetNode, event.clientY);
|
7257
7723
|
if (!dataAttributeValue) {
|
@@ -7740,7 +8206,7 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
7740
8206
|
_this._popupModel.toggleVisibility();
|
7741
8207
|
};
|
7742
8208
|
}
|
7743
|
-
var res = new _list__WEBPACK_IMPORTED_MODULE_2__["ListModel"](visibleItems, _onSelectionChanged, false);
|
8209
|
+
var res = new _list__WEBPACK_IMPORTED_MODULE_2__["ListModel"](visibleItems, _onSelectionChanged, false, undefined, undefined, this.listElementId);
|
7744
8210
|
res.renderElements = false;
|
7745
8211
|
res.areSameItemsCallback = function (item1, item2) {
|
7746
8212
|
return item1 === item2;
|
@@ -7792,6 +8258,7 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
7792
8258
|
}
|
7793
8259
|
else {
|
7794
8260
|
this.inputString = item === null || item === void 0 ? void 0 : item.title;
|
8261
|
+
this.hintString = item === null || item === void 0 ? void 0 : item.title;
|
7795
8262
|
}
|
7796
8263
|
};
|
7797
8264
|
DropdownListModel.prototype.applyHintString = function (item) {
|
@@ -7823,6 +8290,13 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
7823
8290
|
enumerable: false,
|
7824
8291
|
configurable: true
|
7825
8292
|
});
|
8293
|
+
Object.defineProperty(DropdownListModel.prototype, "listElementId", {
|
8294
|
+
get: function () {
|
8295
|
+
return this.question.inputId + "_list";
|
8296
|
+
},
|
8297
|
+
enumerable: false,
|
8298
|
+
configurable: true
|
8299
|
+
});
|
7826
8300
|
Object.defineProperty(DropdownListModel.prototype, "hintStringLC", {
|
7827
8301
|
get: function () {
|
7828
8302
|
var _a;
|
@@ -7857,7 +8331,7 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
7857
8331
|
});
|
7858
8332
|
Object.defineProperty(DropdownListModel.prototype, "showHintString", {
|
7859
8333
|
get: function () {
|
7860
|
-
return this.
|
8334
|
+
return !!this.question.searchEnabled && this.hintStringLC && this.hintStringLC.indexOf(this.inputStringLC) >= 0;
|
7861
8335
|
},
|
7862
8336
|
enumerable: false,
|
7863
8337
|
configurable: true
|
@@ -7928,6 +8402,7 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
7928
8402
|
return this.question.selectedItem || null;
|
7929
8403
|
};
|
7930
8404
|
DropdownListModel.prototype.changeSelectionWithKeyboard = function (reverse) {
|
8405
|
+
var _a;
|
7931
8406
|
if (reverse) {
|
7932
8407
|
this.listModel.focusPrevVisibleItem();
|
7933
8408
|
}
|
@@ -7937,11 +8412,11 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
7937
8412
|
this.scrollToFocusedItem();
|
7938
8413
|
if (this.question.value && this.question.searchEnabled && this.question instanceof _question_dropdown__WEBPACK_IMPORTED_MODULE_4__["QuestionDropdownModel"]) {
|
7939
8414
|
this.applyInputString(this.listModel.focusedItem);
|
7940
|
-
this.hintString = "";
|
7941
8415
|
}
|
7942
8416
|
else {
|
7943
8417
|
this.applyHintString(this.listModel.focusedItem);
|
7944
8418
|
}
|
8419
|
+
this.ariaActivedescendant = (_a = this.listModel.focusedItem) === null || _a === void 0 ? void 0 : _a.elementId;
|
7945
8420
|
};
|
7946
8421
|
DropdownListModel.prototype.keyHandler = function (event) {
|
7947
8422
|
var char = event.which || event.keyCode;
|
@@ -7968,10 +8443,12 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
7968
8443
|
if (event.keyCode === 13 && this.question.searchEnabled && !this.inputString && this.question instanceof _question_dropdown__WEBPACK_IMPORTED_MODULE_4__["QuestionDropdownModel"] && !this._markdownMode && this.question.value) {
|
7969
8444
|
this._popupModel.isVisible = false;
|
7970
8445
|
this.onClear(event);
|
8446
|
+
this.question.survey.questionEditFinishCallback(this.question, event);
|
7971
8447
|
}
|
7972
8448
|
else {
|
7973
8449
|
this.listModel.selectFocusedItem();
|
7974
8450
|
this.onFocus(event);
|
8451
|
+
this.question.survey.questionEditFinishCallback(this.question, event);
|
7975
8452
|
}
|
7976
8453
|
event.preventDefault();
|
7977
8454
|
event.stopPropagation();
|
@@ -8017,15 +8494,17 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
8017
8494
|
this.hintString = "";
|
8018
8495
|
Object(_utils_utils__WEBPACK_IMPORTED_MODULE_7__["doKey2ClickBlur"])(event);
|
8019
8496
|
this._popupModel.isVisible = false;
|
8497
|
+
event.stopPropagation();
|
8020
8498
|
};
|
8021
8499
|
DropdownListModel.prototype.onFocus = function (event) {
|
8500
|
+
this.setInputStringFromSelectedItem();
|
8501
|
+
};
|
8502
|
+
DropdownListModel.prototype.setInputStringFromSelectedItem = function (newValue) {
|
8022
8503
|
if (this.question.searchEnabled) {
|
8023
|
-
|
8024
|
-
|
8025
|
-
|
8026
|
-
|
8027
|
-
this.inputString = null;
|
8028
|
-
}
|
8504
|
+
this.applyInputString(newValue || this.question.selectedItem);
|
8505
|
+
}
|
8506
|
+
else {
|
8507
|
+
this.inputString = null;
|
8029
8508
|
}
|
8030
8509
|
};
|
8031
8510
|
DropdownListModel.prototype.scrollToFocusedItem = function () {
|
@@ -8047,6 +8526,7 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
8047
8526
|
defaultValue: "",
|
8048
8527
|
onSet: function (newValue, target) {
|
8049
8528
|
target.question.inputHasValue = !!newValue;
|
8529
|
+
target.showSelectedItemLocText = target.question.showSelectedItemLocText;
|
8050
8530
|
}
|
8051
8531
|
})
|
8052
8532
|
], DropdownListModel.prototype, "inputString", void 0);
|
@@ -8056,6 +8536,9 @@ var DropdownListModel = /** @class */ (function (_super) {
|
|
8056
8536
|
__decorate([
|
8057
8537
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({})
|
8058
8538
|
], DropdownListModel.prototype, "showInputFieldComponent", void 0);
|
8539
|
+
__decorate([
|
8540
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
8541
|
+
], DropdownListModel.prototype, "ariaActivedescendant", void 0);
|
8059
8542
|
__decorate([
|
8060
8543
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({
|
8061
8544
|
defaultValue: false,
|
@@ -8181,7 +8664,11 @@ var DropdownMultiSelectListModel = /** @class */ (function (_super) {
|
|
8181
8664
|
}
|
8182
8665
|
};
|
8183
8666
|
}
|
8184
|
-
return new _multiSelectListModel__WEBPACK_IMPORTED_MODULE_3__["MultiSelectListModel"](visibleItems, _onSelectionChanged, false);
|
8667
|
+
return new _multiSelectListModel__WEBPACK_IMPORTED_MODULE_3__["MultiSelectListModel"](visibleItems, _onSelectionChanged, false, undefined, undefined, this.listElementId);
|
8668
|
+
};
|
8669
|
+
DropdownMultiSelectListModel.prototype.resetFilterString = function () {
|
8670
|
+
_super.prototype.resetFilterString.call(this);
|
8671
|
+
this.inputString = null;
|
8185
8672
|
};
|
8186
8673
|
Object.defineProperty(DropdownMultiSelectListModel.prototype, "shouldResetAfterCancel", {
|
8187
8674
|
get: function () {
|
@@ -8256,6 +8743,11 @@ var DropdownMultiSelectListModel = /** @class */ (function (_super) {
|
|
8256
8743
|
event.stopPropagation();
|
8257
8744
|
}
|
8258
8745
|
};
|
8746
|
+
DropdownMultiSelectListModel.prototype.setInputStringFromSelectedItem = function (newValue) {
|
8747
|
+
if (this.question.searchEnabled) {
|
8748
|
+
this.inputString = null;
|
8749
|
+
}
|
8750
|
+
};
|
8259
8751
|
__decorate([
|
8260
8752
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: "" })
|
8261
8753
|
], DropdownMultiSelectListModel.prototype, "filterStringPlaceholder", void 0);
|
@@ -8579,7 +9071,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
8579
9071
|
/*!*************************************!*\
|
8580
9072
|
!*** ./src/entries/chunks/model.ts ***!
|
8581
9073
|
\*************************************/
|
8582
|
-
/*! exports provided: Version, checkLibraryVersion, 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, QuestionMultipleTextModel, 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, createTOCListModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, 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, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropSurveyElements, DragDropChoices */
|
9074
|
+
/*! exports provided: Version, checkLibraryVersion, 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, QuestionMultipleTextModel, 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, createTOCListModel, getTocRootCss, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, 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, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropSurveyElements, DragDropChoices */
|
8583
9075
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
8584
9076
|
|
8585
9077
|
"use strict";
|
@@ -8874,6 +9366,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
8874
9366
|
|
8875
9367
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createTOCListModel", function() { return _surveyToc__WEBPACK_IMPORTED_MODULE_55__["createTOCListModel"]; });
|
8876
9368
|
|
9369
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getTocRootCss", function() { return _surveyToc__WEBPACK_IMPORTED_MODULE_55__["getTocRootCss"]; });
|
9370
|
+
|
8877
9371
|
/* harmony import */ var _surveyProgress__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../../surveyProgress */ "./src/surveyProgress.ts");
|
8878
9372
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressModel", function() { return _surveyProgress__WEBPACK_IMPORTED_MODULE_56__["SurveyProgressModel"]; });
|
8879
9373
|
|
@@ -9021,7 +9515,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
9021
9515
|
// import "../../main.scss";
|
9022
9516
|
//import "../../modern.scss";
|
9023
9517
|
var Version;
|
9024
|
-
Version = "" + "1.9.
|
9518
|
+
Version = "" + "1.9.81";
|
9025
9519
|
function checkLibraryVersion(ver, libraryName) {
|
9026
9520
|
if (Version != ver) {
|
9027
9521
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
@@ -9126,7 +9620,7 @@ function checkLibraryVersion(ver, libraryName) {
|
|
9126
9620
|
/*!**************************************!*\
|
9127
9621
|
!*** ./src/entries/core-wo-model.ts ***!
|
9128
9622
|
\**************************************/
|
9129
|
-
/*! exports provided: Version, checkLibraryVersion, 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, QuestionMultipleTextModel, 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, createTOCListModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, 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, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropSurveyElements, DragDropChoices, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, createDropdownActionModel, createDropdownActionModelAdvanced, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, TooltipManager, DragOrClickHelper */
|
9623
|
+
/*! exports provided: Version, checkLibraryVersion, 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, QuestionMultipleTextModel, 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, createTOCListModel, getTocRootCss, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, 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, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropSurveyElements, DragDropChoices, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, createDropdownActionModel, createDropdownActionModelAdvanced, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, TooltipManager, DragOrClickHelper */
|
9130
9624
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9131
9625
|
|
9132
9626
|
"use strict";
|
@@ -9368,6 +9862,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
9368
9862
|
|
9369
9863
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createTOCListModel", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["createTOCListModel"]; });
|
9370
9864
|
|
9865
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getTocRootCss", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["getTocRootCss"]; });
|
9866
|
+
|
9371
9867
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressModel", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["SurveyProgressModel"]; });
|
9372
9868
|
|
9373
9869
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressButtonsModel", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["SurveyProgressButtonsModel"]; });
|
@@ -9557,7 +10053,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
9557
10053
|
/*!*****************************!*\
|
9558
10054
|
!*** ./src/entries/core.ts ***!
|
9559
10055
|
\*****************************/
|
9560
|
-
/*! exports provided: Version, checkLibraryVersion, 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, QuestionMultipleTextModel, 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, createTOCListModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, 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, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropSurveyElements, DragDropChoices, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, createDropdownActionModel, createDropdownActionModelAdvanced, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, TooltipManager, DragOrClickHelper, Model */
|
10056
|
+
/*! exports provided: Version, checkLibraryVersion, 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, QuestionMultipleTextModel, 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, createTOCListModel, getTocRootCss, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, 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, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropSurveyElements, DragDropChoices, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, createDropdownActionModel, createDropdownActionModelAdvanced, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, TooltipManager, DragOrClickHelper, Model */
|
9561
10057
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
9562
10058
|
|
9563
10059
|
"use strict";
|
@@ -9799,6 +10295,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
9799
10295
|
|
9800
10296
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createTOCListModel", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["createTOCListModel"]; });
|
9801
10297
|
|
10298
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getTocRootCss", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["getTocRootCss"]; });
|
10299
|
+
|
9802
10300
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressModel", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["SurveyProgressModel"]; });
|
9803
10301
|
|
9804
10302
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressButtonsModel", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["SurveyProgressButtonsModel"]; });
|
@@ -10004,7 +10502,7 @@ var defaultBootstrapMaterialCss = _plugins_themes_bootstrapmaterial_cssbootstrap
|
|
10004
10502
|
/*!***************************************!*\
|
10005
10503
|
!*** ./src/entries/react-ui-model.ts ***!
|
10006
10504
|
\***************************************/
|
10007
|
-
/*! 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, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, 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, SurveyLocStringViewer, SurveyLocStringEditor */
|
10505
|
+
/*! 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, 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, SurveyLocStringViewer, SurveyLocStringEditor */
|
10008
10506
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10009
10507
|
|
10010
10508
|
"use strict";
|
@@ -10070,194 +10568,197 @@ __webpack_require__.r(__webpack_exports__);
|
|
10070
10568
|
/* harmony import */ var _react_components_rating_rating_item_star__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../react/components/rating/rating-item-star */ "./src/react/components/rating/rating-item-star.tsx");
|
10071
10569
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RatingItemStar", function() { return _react_components_rating_rating_item_star__WEBPACK_IMPORTED_MODULE_14__["RatingItemStar"]; });
|
10072
10570
|
|
10073
|
-
/* harmony import */ var
|
10074
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
10571
|
+
/* harmony import */ var _react_components_rating_rating_item_smiley__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../react/components/rating/rating-item-smiley */ "./src/react/components/rating/rating-item-smiley.tsx");
|
10572
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RatingItemSmiley", function() { return _react_components_rating_rating_item_smiley__WEBPACK_IMPORTED_MODULE_15__["RatingItemSmiley"]; });
|
10573
|
+
|
10574
|
+
/* harmony import */ var _react_tagbox_filter__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../react/tagbox-filter */ "./src/react/tagbox-filter.tsx");
|
10575
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagboxFilterString", function() { return _react_tagbox_filter__WEBPACK_IMPORTED_MODULE_16__["TagboxFilterString"]; });
|
10075
10576
|
|
10076
|
-
/* harmony import */ var
|
10077
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionOptionItem", function() { return
|
10577
|
+
/* harmony import */ var _react_dropdown_item__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../react/dropdown-item */ "./src/react/dropdown-item.tsx");
|
10578
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionOptionItem", function() { return _react_dropdown_item__WEBPACK_IMPORTED_MODULE_17__["SurveyQuestionOptionItem"]; });
|
10078
10579
|
|
10079
|
-
/* harmony import */ var
|
10080
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionDropdownBase", function() { return
|
10580
|
+
/* harmony import */ var _react_dropdown_base__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../react/dropdown-base */ "./src/react/dropdown-base.tsx");
|
10581
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionDropdownBase", function() { return _react_dropdown_base__WEBPACK_IMPORTED_MODULE_18__["SurveyQuestionDropdownBase"]; });
|
10081
10582
|
|
10082
|
-
/* harmony import */ var
|
10083
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionDropdown", function() { return
|
10583
|
+
/* harmony import */ var _react_reactquestion_dropdown__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../react/reactquestion_dropdown */ "./src/react/reactquestion_dropdown.tsx");
|
10584
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionDropdown", function() { return _react_reactquestion_dropdown__WEBPACK_IMPORTED_MODULE_19__["SurveyQuestionDropdown"]; });
|
10084
10585
|
|
10085
|
-
/* harmony import */ var
|
10086
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionTagboxItem", function() { return
|
10586
|
+
/* harmony import */ var _react_tagbox_item__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../react/tagbox-item */ "./src/react/tagbox-item.tsx");
|
10587
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionTagboxItem", function() { return _react_tagbox_item__WEBPACK_IMPORTED_MODULE_20__["SurveyQuestionTagboxItem"]; });
|
10087
10588
|
|
10088
|
-
/* harmony import */ var
|
10089
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionTagbox", function() { return
|
10589
|
+
/* harmony import */ var _react_reactquestion_tagbox__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../react/reactquestion_tagbox */ "./src/react/reactquestion_tagbox.tsx");
|
10590
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionTagbox", function() { return _react_reactquestion_tagbox__WEBPACK_IMPORTED_MODULE_21__["SurveyQuestionTagbox"]; });
|
10090
10591
|
|
10091
|
-
/* harmony import */ var
|
10092
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionDropdownSelect", function() { return
|
10592
|
+
/* harmony import */ var _react_dropdown_select__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../react/dropdown-select */ "./src/react/dropdown-select.tsx");
|
10593
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionDropdownSelect", function() { return _react_dropdown_select__WEBPACK_IMPORTED_MODULE_22__["SurveyQuestionDropdownSelect"]; });
|
10093
10594
|
|
10094
|
-
/* harmony import */ var
|
10095
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrix", function() { return
|
10595
|
+
/* harmony import */ var _react_reactquestion_matrix__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../react/reactquestion_matrix */ "./src/react/reactquestion_matrix.tsx");
|
10596
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrix", function() { return _react_reactquestion_matrix__WEBPACK_IMPORTED_MODULE_23__["SurveyQuestionMatrix"]; });
|
10096
10597
|
|
10097
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixRow", function() { return
|
10598
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixRow", function() { return _react_reactquestion_matrix__WEBPACK_IMPORTED_MODULE_23__["SurveyQuestionMatrixRow"]; });
|
10098
10599
|
|
10099
|
-
/* harmony import */ var
|
10100
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionHtml", function() { return
|
10600
|
+
/* harmony import */ var _react_reactquestion_html__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../react/reactquestion_html */ "./src/react/reactquestion_html.tsx");
|
10601
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionHtml", function() { return _react_reactquestion_html__WEBPACK_IMPORTED_MODULE_24__["SurveyQuestionHtml"]; });
|
10101
10602
|
|
10102
|
-
/* harmony import */ var
|
10103
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionFile", function() { return
|
10603
|
+
/* harmony import */ var _react_reactquestion_file__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../react/reactquestion_file */ "./src/react/reactquestion_file.tsx");
|
10604
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionFile", function() { return _react_reactquestion_file__WEBPACK_IMPORTED_MODULE_25__["SurveyQuestionFile"]; });
|
10104
10605
|
|
10105
|
-
/* harmony import */ var
|
10106
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMultipleText", function() { return
|
10606
|
+
/* harmony import */ var _react_reactquestion_multipletext__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../react/reactquestion_multipletext */ "./src/react/reactquestion_multipletext.tsx");
|
10607
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMultipleText", function() { return _react_reactquestion_multipletext__WEBPACK_IMPORTED_MODULE_26__["SurveyQuestionMultipleText"]; });
|
10107
10608
|
|
10108
|
-
/* harmony import */ var
|
10109
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRadiogroup", function() { return
|
10609
|
+
/* harmony import */ var _react_reactquestion_radiogroup__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../react/reactquestion_radiogroup */ "./src/react/reactquestion_radiogroup.tsx");
|
10610
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRadiogroup", function() { return _react_reactquestion_radiogroup__WEBPACK_IMPORTED_MODULE_27__["SurveyQuestionRadiogroup"]; });
|
10110
10611
|
|
10111
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRadioItem", function() { return
|
10612
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRadioItem", function() { return _react_reactquestion_radiogroup__WEBPACK_IMPORTED_MODULE_27__["SurveyQuestionRadioItem"]; });
|
10112
10613
|
|
10113
|
-
/* harmony import */ var
|
10114
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionText", function() { return
|
10614
|
+
/* harmony import */ var _react_reactquestion_text__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../react/reactquestion_text */ "./src/react/reactquestion_text.tsx");
|
10615
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionText", function() { return _react_reactquestion_text__WEBPACK_IMPORTED_MODULE_28__["SurveyQuestionText"]; });
|
10115
10616
|
|
10116
|
-
/* harmony import */ var
|
10117
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionBoolean", function() { return
|
10617
|
+
/* harmony import */ var _react_boolean__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../react/boolean */ "./src/react/boolean.tsx");
|
10618
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionBoolean", function() { return _react_boolean__WEBPACK_IMPORTED_MODULE_29__["SurveyQuestionBoolean"]; });
|
10118
10619
|
|
10119
|
-
/* harmony import */ var
|
10120
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionBooleanCheckbox", function() { return
|
10620
|
+
/* harmony import */ var _react_boolean_checkbox__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../react/boolean-checkbox */ "./src/react/boolean-checkbox.tsx");
|
10621
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionBooleanCheckbox", function() { return _react_boolean_checkbox__WEBPACK_IMPORTED_MODULE_30__["SurveyQuestionBooleanCheckbox"]; });
|
10121
10622
|
|
10122
|
-
/* harmony import */ var
|
10123
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionBooleanRadio", function() { return
|
10623
|
+
/* harmony import */ var _react_boolean_radio__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../react/boolean-radio */ "./src/react/boolean-radio.tsx");
|
10624
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionBooleanRadio", function() { return _react_boolean_radio__WEBPACK_IMPORTED_MODULE_31__["SurveyQuestionBooleanRadio"]; });
|
10124
10625
|
|
10125
|
-
/* harmony import */ var
|
10126
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEmpty", function() { return
|
10626
|
+
/* harmony import */ var _react_reactquestion_empty__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../react/reactquestion_empty */ "./src/react/reactquestion_empty.tsx");
|
10627
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEmpty", function() { return _react_reactquestion_empty__WEBPACK_IMPORTED_MODULE_32__["SurveyQuestionEmpty"]; });
|
10127
10628
|
|
10128
|
-
/* harmony import */ var
|
10129
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdownCell", function() { return
|
10629
|
+
/* harmony import */ var _react_reactquestion_matrixdropdownbase__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../react/reactquestion_matrixdropdownbase */ "./src/react/reactquestion_matrixdropdownbase.tsx");
|
10630
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdownCell", function() { return _react_reactquestion_matrixdropdownbase__WEBPACK_IMPORTED_MODULE_33__["SurveyQuestionMatrixDropdownCell"]; });
|
10130
10631
|
|
10131
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdownBase", function() { return
|
10632
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdownBase", function() { return _react_reactquestion_matrixdropdownbase__WEBPACK_IMPORTED_MODULE_33__["SurveyQuestionMatrixDropdownBase"]; });
|
10132
10633
|
|
10133
|
-
/* harmony import */ var
|
10134
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdown", function() { return
|
10634
|
+
/* harmony import */ var _react_reactquestion_matrixdropdown__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../react/reactquestion_matrixdropdown */ "./src/react/reactquestion_matrixdropdown.tsx");
|
10635
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDropdown", function() { return _react_reactquestion_matrixdropdown__WEBPACK_IMPORTED_MODULE_34__["SurveyQuestionMatrixDropdown"]; });
|
10135
10636
|
|
10136
|
-
/* harmony import */ var
|
10137
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamic", function() { return
|
10637
|
+
/* harmony import */ var _react_reactquestion_matrixdynamic__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../react/reactquestion_matrixdynamic */ "./src/react/reactquestion_matrixdynamic.tsx");
|
10638
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamic", function() { return _react_reactquestion_matrixdynamic__WEBPACK_IMPORTED_MODULE_35__["SurveyQuestionMatrixDynamic"]; });
|
10138
10639
|
|
10139
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamicAddButton", function() { return
|
10640
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamicAddButton", function() { return _react_reactquestion_matrixdynamic__WEBPACK_IMPORTED_MODULE_35__["SurveyQuestionMatrixDynamicAddButton"]; });
|
10140
10641
|
|
10141
|
-
/* harmony import */ var
|
10142
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamic", function() { return
|
10642
|
+
/* harmony import */ var _react_reactquestion_paneldynamic__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../react/reactquestion_paneldynamic */ "./src/react/reactquestion_paneldynamic.tsx");
|
10643
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamic", function() { return _react_reactquestion_paneldynamic__WEBPACK_IMPORTED_MODULE_36__["SurveyQuestionPanelDynamic"]; });
|
10143
10644
|
|
10144
|
-
/* harmony import */ var
|
10145
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgress", function() { return
|
10645
|
+
/* harmony import */ var _react_reactSurveyProgress__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../react/reactSurveyProgress */ "./src/react/reactSurveyProgress.tsx");
|
10646
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgress", function() { return _react_reactSurveyProgress__WEBPACK_IMPORTED_MODULE_37__["SurveyProgress"]; });
|
10146
10647
|
|
10147
|
-
/* harmony import */ var
|
10148
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressButtons", function() { return
|
10648
|
+
/* harmony import */ var _react_reactSurveyProgressButtons__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../react/reactSurveyProgressButtons */ "./src/react/reactSurveyProgressButtons.tsx");
|
10649
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressButtons", function() { return _react_reactSurveyProgressButtons__WEBPACK_IMPORTED_MODULE_38__["SurveyProgressButtons"]; });
|
10149
10650
|
|
10150
|
-
/* harmony import */ var
|
10151
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressToc", function() { return
|
10651
|
+
/* harmony import */ var _react_reactSurveyProgressToc__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../react/reactSurveyProgressToc */ "./src/react/reactSurveyProgressToc.tsx");
|
10652
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressToc", function() { return _react_reactSurveyProgressToc__WEBPACK_IMPORTED_MODULE_39__["SurveyProgressToc"]; });
|
10152
10653
|
|
10153
|
-
/* harmony import */ var
|
10154
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRating", function() { return
|
10654
|
+
/* harmony import */ var _react_reactquestion_rating__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../react/reactquestion_rating */ "./src/react/reactquestion_rating.tsx");
|
10655
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRating", function() { return _react_reactquestion_rating__WEBPACK_IMPORTED_MODULE_40__["SurveyQuestionRating"]; });
|
10155
10656
|
|
10156
|
-
/* harmony import */ var
|
10157
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRatingDropdown", function() { return
|
10657
|
+
/* harmony import */ var _react_rating_dropdown__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../react/rating-dropdown */ "./src/react/rating-dropdown.tsx");
|
10658
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionRatingDropdown", function() { return _react_rating_dropdown__WEBPACK_IMPORTED_MODULE_41__["SurveyQuestionRatingDropdown"]; });
|
10158
10659
|
|
10159
|
-
/* harmony import */ var
|
10160
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionExpression", function() { return
|
10660
|
+
/* harmony import */ var _react_reactquestion_expression__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../react/reactquestion_expression */ "./src/react/reactquestion_expression.tsx");
|
10661
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionExpression", function() { return _react_reactquestion_expression__WEBPACK_IMPORTED_MODULE_42__["SurveyQuestionExpression"]; });
|
10161
10662
|
|
10162
|
-
/* harmony import */ var
|
10163
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupSurvey", function() { return
|
10663
|
+
/* harmony import */ var _react_react_popup_survey__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../react/react-popup-survey */ "./src/react/react-popup-survey.tsx");
|
10664
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PopupSurvey", function() { return _react_react_popup_survey__WEBPACK_IMPORTED_MODULE_43__["PopupSurvey"]; });
|
10164
10665
|
|
10165
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyWindow", function() { return
|
10666
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyWindow", function() { return _react_react_popup_survey__WEBPACK_IMPORTED_MODULE_43__["SurveyWindow"]; });
|
10166
10667
|
|
10167
|
-
/* harmony import */ var
|
10168
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReactQuestionFactory", function() { return
|
10668
|
+
/* harmony import */ var _react_reactquestion_factory__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../react/reactquestion_factory */ "./src/react/reactquestion_factory.tsx");
|
10669
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReactQuestionFactory", function() { return _react_reactquestion_factory__WEBPACK_IMPORTED_MODULE_44__["ReactQuestionFactory"]; });
|
10169
10670
|
|
10170
|
-
/* harmony import */ var
|
10171
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReactElementFactory", function() { return
|
10671
|
+
/* harmony import */ var _react_element_factory__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../react/element-factory */ "./src/react/element-factory.tsx");
|
10672
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ReactElementFactory", function() { return _react_element_factory__WEBPACK_IMPORTED_MODULE_45__["ReactElementFactory"]; });
|
10172
10673
|
|
10173
|
-
/* harmony import */ var
|
10174
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionImagePicker", function() { return
|
10674
|
+
/* harmony import */ var _react_imagepicker__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../react/imagepicker */ "./src/react/imagepicker.tsx");
|
10675
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionImagePicker", function() { return _react_imagepicker__WEBPACK_IMPORTED_MODULE_46__["SurveyQuestionImagePicker"]; });
|
10175
10676
|
|
10176
|
-
/* harmony import */ var
|
10177
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionImage", function() { return
|
10677
|
+
/* harmony import */ var _react_image__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ../react/image */ "./src/react/image.tsx");
|
10678
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionImage", function() { return _react_image__WEBPACK_IMPORTED_MODULE_47__["SurveyQuestionImage"]; });
|
10178
10679
|
|
10179
|
-
/* harmony import */ var
|
10180
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionSignaturePad", function() { return
|
10680
|
+
/* harmony import */ var _react_signaturepad__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../react/signaturepad */ "./src/react/signaturepad.tsx");
|
10681
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionSignaturePad", function() { return _react_signaturepad__WEBPACK_IMPORTED_MODULE_48__["SurveyQuestionSignaturePad"]; });
|
10181
10682
|
|
10182
|
-
/* harmony import */ var
|
10183
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionButtonGroup", function() { return
|
10683
|
+
/* harmony import */ var _react_reactquestion_buttongroup__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../react/reactquestion_buttongroup */ "./src/react/reactquestion_buttongroup.tsx");
|
10684
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionButtonGroup", function() { return _react_reactquestion_buttongroup__WEBPACK_IMPORTED_MODULE_49__["SurveyQuestionButtonGroup"]; });
|
10184
10685
|
|
10185
|
-
/* harmony import */ var
|
10186
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionCustom", function() { return
|
10686
|
+
/* harmony import */ var _react_reactquestion_custom__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ../react/reactquestion_custom */ "./src/react/reactquestion_custom.tsx");
|
10687
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionCustom", function() { return _react_reactquestion_custom__WEBPACK_IMPORTED_MODULE_50__["SurveyQuestionCustom"]; });
|
10187
10688
|
|
10188
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionComposite", function() { return
|
10689
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionComposite", function() { return _react_reactquestion_custom__WEBPACK_IMPORTED_MODULE_50__["SurveyQuestionComposite"]; });
|
10189
10690
|
|
10190
|
-
/* harmony import */ var
|
10191
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return
|
10691
|
+
/* harmony import */ var _react_components_popup_popup__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../react/components/popup/popup */ "./src/react/components/popup/popup.tsx");
|
10692
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Popup", function() { return _react_components_popup_popup__WEBPACK_IMPORTED_MODULE_51__["Popup"]; });
|
10192
10693
|
|
10193
|
-
/* harmony import */ var
|
10194
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "List", function() { return
|
10694
|
+
/* harmony import */ var _react_components_list_list__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../react/components/list/list */ "./src/react/components/list/list.tsx");
|
10695
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "List", function() { return _react_components_list_list__WEBPACK_IMPORTED_MODULE_52__["List"]; });
|
10195
10696
|
|
10196
|
-
/* harmony import */ var
|
10197
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TitleActions", function() { return
|
10697
|
+
/* harmony import */ var _react_components_title_title_actions__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../react/components/title/title-actions */ "./src/react/components/title/title-actions.tsx");
|
10698
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TitleActions", function() { return _react_components_title_title_actions__WEBPACK_IMPORTED_MODULE_53__["TitleActions"]; });
|
10198
10699
|
|
10199
|
-
/* harmony import */ var
|
10200
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TitleElement", function() { return
|
10700
|
+
/* harmony import */ var _react_components_title_title_element__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../react/components/title/title-element */ "./src/react/components/title/title-element.tsx");
|
10701
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TitleElement", function() { return _react_components_title_title_element__WEBPACK_IMPORTED_MODULE_54__["TitleElement"]; });
|
10201
10702
|
|
10202
|
-
/* harmony import */ var
|
10203
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyActionBar", function() { return
|
10703
|
+
/* harmony import */ var _react_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../react/components/action-bar/action-bar */ "./src/react/components/action-bar/action-bar.tsx");
|
10704
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyActionBar", function() { return _react_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_55__["SurveyActionBar"]; });
|
10204
10705
|
|
10205
|
-
/* harmony import */ var
|
10206
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogoImage", function() { return
|
10706
|
+
/* harmony import */ var _react_components_survey_header_logo_image__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../react/components/survey-header/logo-image */ "./src/react/components/survey-header/logo-image.tsx");
|
10707
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogoImage", function() { return _react_components_survey_header_logo_image__WEBPACK_IMPORTED_MODULE_56__["LogoImage"]; });
|
10207
10708
|
|
10208
|
-
/* harmony import */ var
|
10209
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyHeader", function() { return
|
10709
|
+
/* harmony import */ var _react_components_survey_header_survey_header__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../react/components/survey-header/survey-header */ "./src/react/components/survey-header/survey-header.tsx");
|
10710
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyHeader", function() { return _react_components_survey_header_survey_header__WEBPACK_IMPORTED_MODULE_57__["SurveyHeader"]; });
|
10210
10711
|
|
10211
|
-
/* harmony import */ var
|
10212
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SvgIcon", function() { return
|
10712
|
+
/* harmony import */ var _react_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../react/components/svg-icon/svg-icon */ "./src/react/components/svg-icon/svg-icon.tsx");
|
10713
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SvgIcon", function() { return _react_components_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_58__["SvgIcon"]; });
|
10213
10714
|
|
10214
|
-
/* harmony import */ var
|
10215
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamicRemoveButton", function() { return
|
10715
|
+
/* harmony import */ var _react_components_matrix_actions_remove_button_remove_button__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../react/components/matrix-actions/remove-button/remove-button */ "./src/react/components/matrix-actions/remove-button/remove-button.tsx");
|
10716
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamicRemoveButton", function() { return _react_components_matrix_actions_remove_button_remove_button__WEBPACK_IMPORTED_MODULE_59__["SurveyQuestionMatrixDynamicRemoveButton"]; });
|
10216
10717
|
|
10217
|
-
/* harmony import */ var
|
10218
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDetailButton", function() { return
|
10718
|
+
/* harmony import */ var _react_components_matrix_actions_detail_button_detail_button__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../react/components/matrix-actions/detail-button/detail-button */ "./src/react/components/matrix-actions/detail-button/detail-button.tsx");
|
10719
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDetailButton", function() { return _react_components_matrix_actions_detail_button_detail_button__WEBPACK_IMPORTED_MODULE_60__["SurveyQuestionMatrixDetailButton"]; });
|
10219
10720
|
|
10220
|
-
/* harmony import */ var
|
10221
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamicDragDropIcon", function() { return
|
10721
|
+
/* harmony import */ var _react_components_matrix_actions_drag_drop_icon_drag_drop_icon__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../react/components/matrix-actions/drag-drop-icon/drag-drop-icon */ "./src/react/components/matrix-actions/drag-drop-icon/drag-drop-icon.tsx");
|
10722
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionMatrixDynamicDragDropIcon", function() { return _react_components_matrix_actions_drag_drop_icon_drag_drop_icon__WEBPACK_IMPORTED_MODULE_61__["SurveyQuestionMatrixDynamicDragDropIcon"]; });
|
10222
10723
|
|
10223
|
-
/* harmony import */ var
|
10224
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicAddButton", function() { return
|
10724
|
+
/* harmony import */ var _react_components_paneldynamic_actions_paneldynamic_add_btn__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../react/components/paneldynamic-actions/paneldynamic-add-btn */ "./src/react/components/paneldynamic-actions/paneldynamic-add-btn.tsx");
|
10725
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicAddButton", function() { return _react_components_paneldynamic_actions_paneldynamic_add_btn__WEBPACK_IMPORTED_MODULE_62__["SurveyQuestionPanelDynamicAddButton"]; });
|
10225
10726
|
|
10226
|
-
/* harmony import */ var
|
10227
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicRemoveButton", function() { return
|
10727
|
+
/* harmony import */ var _react_components_paneldynamic_actions_paneldynamic_remove_btn__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ../react/components/paneldynamic-actions/paneldynamic-remove-btn */ "./src/react/components/paneldynamic-actions/paneldynamic-remove-btn.tsx");
|
10728
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicRemoveButton", function() { return _react_components_paneldynamic_actions_paneldynamic_remove_btn__WEBPACK_IMPORTED_MODULE_63__["SurveyQuestionPanelDynamicRemoveButton"]; });
|
10228
10729
|
|
10229
|
-
/* harmony import */ var
|
10230
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicPrevButton", function() { return
|
10730
|
+
/* harmony import */ var _react_components_paneldynamic_actions_paneldynamic_prev_btn__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ../react/components/paneldynamic-actions/paneldynamic-prev-btn */ "./src/react/components/paneldynamic-actions/paneldynamic-prev-btn.tsx");
|
10731
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicPrevButton", function() { return _react_components_paneldynamic_actions_paneldynamic_prev_btn__WEBPACK_IMPORTED_MODULE_64__["SurveyQuestionPanelDynamicPrevButton"]; });
|
10231
10732
|
|
10232
|
-
/* harmony import */ var
|
10233
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicNextButton", function() { return
|
10733
|
+
/* harmony import */ var _react_components_paneldynamic_actions_paneldynamic_next_btn__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ../react/components/paneldynamic-actions/paneldynamic-next-btn */ "./src/react/components/paneldynamic-actions/paneldynamic-next-btn.tsx");
|
10734
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicNextButton", function() { return _react_components_paneldynamic_actions_paneldynamic_next_btn__WEBPACK_IMPORTED_MODULE_65__["SurveyQuestionPanelDynamicNextButton"]; });
|
10234
10735
|
|
10235
|
-
/* harmony import */ var
|
10236
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicProgressText", function() { return
|
10736
|
+
/* harmony import */ var _react_components_paneldynamic_actions_paneldynamic_progress_text__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ../react/components/paneldynamic-actions/paneldynamic-progress-text */ "./src/react/components/paneldynamic-actions/paneldynamic-progress-text.tsx");
|
10737
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionPanelDynamicProgressText", function() { return _react_components_paneldynamic_actions_paneldynamic_progress_text__WEBPACK_IMPORTED_MODULE_66__["SurveyQuestionPanelDynamicProgressText"]; });
|
10237
10738
|
|
10238
|
-
/* harmony import */ var
|
10239
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyNavigationButton", function() { return
|
10739
|
+
/* harmony import */ var _react_components_survey_actions_survey_nav_button__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ../react/components/survey-actions/survey-nav-button */ "./src/react/components/survey-actions/survey-nav-button.tsx");
|
10740
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyNavigationButton", function() { return _react_components_survey_actions_survey_nav_button__WEBPACK_IMPORTED_MODULE_67__["SurveyNavigationButton"]; });
|
10240
10741
|
|
10241
|
-
/* harmony import */ var
|
10242
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixRow", function() { return
|
10742
|
+
/* harmony import */ var _react_components_matrix_row__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ../react/components/matrix/row */ "./src/react/components/matrix/row.tsx");
|
10743
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixRow", function() { return _react_components_matrix_row__WEBPACK_IMPORTED_MODULE_68__["MatrixRow"]; });
|
10243
10744
|
|
10244
|
-
/* harmony import */ var
|
10245
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Skeleton", function() { return
|
10745
|
+
/* harmony import */ var _react_components_skeleton__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ../react/components/skeleton */ "./src/react/components/skeleton.tsx");
|
10746
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Skeleton", function() { return _react_components_skeleton__WEBPACK_IMPORTED_MODULE_69__["Skeleton"]; });
|
10246
10747
|
|
10247
|
-
/* harmony import */ var
|
10248
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotifierComponent", function() { return
|
10748
|
+
/* harmony import */ var _react_components_notifier__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ../react/components/notifier */ "./src/react/components/notifier.tsx");
|
10749
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "NotifierComponent", function() { return _react_components_notifier__WEBPACK_IMPORTED_MODULE_70__["NotifierComponent"]; });
|
10249
10750
|
|
10250
|
-
/* harmony import */ var
|
10251
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentsContainer", function() { return
|
10751
|
+
/* harmony import */ var _react_components_components_container__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ../react/components/components-container */ "./src/react/components/components-container.tsx");
|
10752
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ComponentsContainer", function() { return _react_components_components_container__WEBPACK_IMPORTED_MODULE_71__["ComponentsContainer"]; });
|
10252
10753
|
|
10253
|
-
/* harmony import */ var
|
10254
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CharacterCounterComponent", function() { return
|
10754
|
+
/* harmony import */ var _react_components_character_counter__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ../react/components/character-counter */ "./src/react/components/character-counter.tsx");
|
10755
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "CharacterCounterComponent", function() { return _react_components_character_counter__WEBPACK_IMPORTED_MODULE_72__["CharacterCounterComponent"]; });
|
10255
10756
|
|
10256
|
-
/* harmony import */ var
|
10257
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringViewer", function() { return
|
10757
|
+
/* harmony import */ var _react_string_viewer__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ../react/string-viewer */ "./src/react/string-viewer.tsx");
|
10758
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringViewer", function() { return _react_string_viewer__WEBPACK_IMPORTED_MODULE_73__["SurveyLocStringViewer"]; });
|
10258
10759
|
|
10259
|
-
/* harmony import */ var
|
10260
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringEditor", function() { return
|
10760
|
+
/* harmony import */ var _react_string_editor__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ../react/string-editor */ "./src/react/string-editor.tsx");
|
10761
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLocStringEditor", function() { return _react_string_editor__WEBPACK_IMPORTED_MODULE_74__["SurveyLocStringEditor"]; });
|
10261
10762
|
|
10262
10763
|
// react
|
10263
10764
|
|
@@ -10332,6 +10833,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
10332
10833
|
|
10333
10834
|
|
10334
10835
|
|
10836
|
+
|
10335
10837
|
|
10336
10838
|
|
10337
10839
|
//Uncomment to include the "date" question type.
|
@@ -10344,7 +10846,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
10344
10846
|
/*!******************************!*\
|
10345
10847
|
!*** ./src/entries/react.ts ***!
|
10346
10848
|
\******************************/
|
10347
|
-
/*! exports provided: Version, checkLibraryVersion, 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, QuestionMultipleTextModel, 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, createTOCListModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, 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, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropSurveyElements, DragDropChoices, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, createDropdownActionModel, createDropdownActionModelAdvanced, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, TooltipManager, 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, TagboxFilterString, SurveyQuestionOptionItem, SurveyQuestionDropdownBase, SurveyQuestionDropdown, SurveyQuestionTagboxItem, SurveyQuestionTagbox, SurveyQuestionDropdownSelect, SurveyQuestionMatrix, SurveyQuestionMatrixRow, SurveyQuestionHtml, SurveyQuestionFile, 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, SurveyLocStringViewer, SurveyLocStringEditor */
|
10849
|
+
/*! exports provided: Version, checkLibraryVersion, 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, QuestionMultipleTextModel, 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, createTOCListModel, getTocRootCss, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, 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, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropSurveyElements, DragDropChoices, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, createDropdownActionModel, createDropdownActionModelAdvanced, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, TooltipManager, 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, 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, SurveyLocStringViewer, SurveyLocStringEditor */
|
10348
10850
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
10349
10851
|
|
10350
10852
|
"use strict";
|
@@ -10586,6 +11088,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
10586
11088
|
|
10587
11089
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createTOCListModel", function() { return _core__WEBPACK_IMPORTED_MODULE_0__["createTOCListModel"]; });
|
10588
11090
|
|
11091
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getTocRootCss", function() { return _core__WEBPACK_IMPORTED_MODULE_0__["getTocRootCss"]; });
|
11092
|
+
|
10589
11093
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressModel", function() { return _core__WEBPACK_IMPORTED_MODULE_0__["SurveyProgressModel"]; });
|
10590
11094
|
|
10591
11095
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyProgressButtonsModel", function() { return _core__WEBPACK_IMPORTED_MODULE_0__["SurveyProgressButtonsModel"]; });
|
@@ -10807,6 +11311,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
10807
11311
|
|
10808
11312
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RatingItemStar", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["RatingItemStar"]; });
|
10809
11313
|
|
11314
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RatingItemSmiley", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["RatingItemSmiley"]; });
|
11315
|
+
|
10810
11316
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TagboxFilterString", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["TagboxFilterString"]; });
|
10811
11317
|
|
10812
11318
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionOptionItem", function() { return _react_ui_model__WEBPACK_IMPORTED_MODULE_3__["SurveyQuestionOptionItem"]; });
|
@@ -16478,6 +16984,158 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
16478
16984
|
|
16479
16985
|
/***/ }),
|
16480
16986
|
|
16987
|
+
/***/ "./src/images/smiley sync \\.svg$":
|
16988
|
+
/*!****************************************************!*\
|
16989
|
+
!*** ./src/images/smiley sync nonrecursive \.svg$ ***!
|
16990
|
+
\****************************************************/
|
16991
|
+
/*! no static exports found */
|
16992
|
+
/***/ (function(module, exports, __webpack_require__) {
|
16993
|
+
|
16994
|
+
var map = {
|
16995
|
+
"./average.svg": "./src/images/smiley/average.svg",
|
16996
|
+
"./excellent.svg": "./src/images/smiley/excellent.svg",
|
16997
|
+
"./good.svg": "./src/images/smiley/good.svg",
|
16998
|
+
"./normal.svg": "./src/images/smiley/normal.svg",
|
16999
|
+
"./not-good.svg": "./src/images/smiley/not-good.svg",
|
17000
|
+
"./perfect.svg": "./src/images/smiley/perfect.svg",
|
17001
|
+
"./poor.svg": "./src/images/smiley/poor.svg",
|
17002
|
+
"./terrible.svg": "./src/images/smiley/terrible.svg",
|
17003
|
+
"./very-good.svg": "./src/images/smiley/very-good.svg",
|
17004
|
+
"./very-poor.svg": "./src/images/smiley/very-poor.svg"
|
17005
|
+
};
|
17006
|
+
|
17007
|
+
|
17008
|
+
function webpackContext(req) {
|
17009
|
+
var id = webpackContextResolve(req);
|
17010
|
+
return __webpack_require__(id);
|
17011
|
+
}
|
17012
|
+
function webpackContextResolve(req) {
|
17013
|
+
if(!__webpack_require__.o(map, req)) {
|
17014
|
+
var e = new Error("Cannot find module '" + req + "'");
|
17015
|
+
e.code = 'MODULE_NOT_FOUND';
|
17016
|
+
throw e;
|
17017
|
+
}
|
17018
|
+
return map[req];
|
17019
|
+
}
|
17020
|
+
webpackContext.keys = function webpackContextKeys() {
|
17021
|
+
return Object.keys(map);
|
17022
|
+
};
|
17023
|
+
webpackContext.resolve = webpackContextResolve;
|
17024
|
+
module.exports = webpackContext;
|
17025
|
+
webpackContext.id = "./src/images/smiley sync \\.svg$";
|
17026
|
+
|
17027
|
+
/***/ }),
|
17028
|
+
|
17029
|
+
/***/ "./src/images/smiley/average.svg":
|
17030
|
+
/*!***************************************!*\
|
17031
|
+
!*** ./src/images/smiley/average.svg ***!
|
17032
|
+
\***************************************/
|
17033
|
+
/*! no static exports found */
|
17034
|
+
/***/ (function(module, exports) {
|
17035
|
+
|
17036
|
+
module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.00572 7C6.45572 7 6.00572 6.55 6.00572 6V2C6.00572 1.45 6.45572 1 7.00572 1C7.55572 1 8.00572 1.45 8.00572 2V6C8.00572 6.55 7.55572 7 7.00572 7ZM18.0057 6V2C18.0057 1.45 17.5557 1 17.0057 1C16.4557 1 16.0057 1.45 16.0057 2V6C16.0057 6.55 16.4557 7 17.0057 7C17.5557 7 18.0057 6.55 18.0057 6ZM19.9457 21.33C20.1257 20.81 19.8557 20.24 19.3357 20.05C14.5457 18.35 9.45572 18.35 4.66572 20.05C4.14572 20.23 3.87572 20.81 4.05572 21.33C4.23572 21.85 4.80572 22.12 5.33572 21.94C9.69572 20.4 14.3057 20.4 18.6657 21.94C18.7757 21.98 18.8857 22 18.9957 22C19.4057 22 19.7957 21.74 19.9357 21.33H19.9457Z\"></path></svg>"
|
17037
|
+
|
17038
|
+
/***/ }),
|
17039
|
+
|
17040
|
+
/***/ "./src/images/smiley/excellent.svg":
|
17041
|
+
/*!*****************************************!*\
|
17042
|
+
!*** ./src/images/smiley/excellent.svg ***!
|
17043
|
+
\*****************************************/
|
17044
|
+
/*! no static exports found */
|
17045
|
+
/***/ (function(module, exports) {
|
17046
|
+
|
17047
|
+
module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12.01 24C6.85767 24 1.15509 20.96 0.0145752 14.16C-0.0354475 13.87 0.0445888 13.57 0.234675 13.35C0.424761 13.13 0.704888 13 0.995019 13H23.005C23.2951 13 23.5752 13.13 23.7653 13.35C23.9554 13.57 24.0354 13.87 23.9854 14.16C22.8549 20.95 17.1423 24 11.99 24H12.01ZM2.25559 15C3.61621 19.82 8.0182 22 12.01 22C16.0018 22 20.4038 19.82 21.7644 15H2.25559ZM8.00819 6V2C8.00819 1.45 7.55799 1 7.00774 1C6.45749 1 6.00729 1.45 6.00729 2V6C6.00729 6.55 6.45749 7 7.00774 7C7.55799 7 8.00819 6.55 8.00819 6ZM18.0127 6V2C18.0127 1.45 17.5625 1 17.0123 1C16.462 1 16.0118 1.45 16.0118 2V6C16.0118 6.55 16.462 7 17.0123 7C17.5625 7 18.0127 6.55 18.0127 6Z\"></path></svg>"
|
17048
|
+
|
17049
|
+
/***/ }),
|
17050
|
+
|
17051
|
+
/***/ "./src/images/smiley/good.svg":
|
17052
|
+
/*!************************************!*\
|
17053
|
+
!*** ./src/images/smiley/good.svg ***!
|
17054
|
+
\************************************/
|
17055
|
+
/*! no static exports found */
|
17056
|
+
/***/ (function(module, exports) {
|
17057
|
+
|
17058
|
+
module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12.0022 23.99C11.452 23.99 11.0018 23.5402 11.0018 22.9904C11.0018 22.4407 11.452 21.9909 12.0022 21.9909C16.3137 21.9909 21.0755 19.472 22.0158 13.8344C22.1058 13.2947 22.616 12.9248 23.1662 13.0148C23.7064 13.1047 24.0765 13.6245 23.9865 14.1643C22.8561 20.9513 17.144 24 11.9922 24L12.0022 23.99ZM8.00072 5.99783V1.99957C8.00072 1.4498 7.55056 1 7.00036 1C6.45016 1 6 1.4498 6 1.99957V5.99783C6 6.54759 6.45016 6.99739 7.00036 6.99739C7.55056 6.99739 8.00072 6.54759 8.00072 5.99783ZM18.0043 5.99783V1.99957C18.0043 1.4498 17.5542 1 17.004 1C16.4538 1 16.0036 1.4498 16.0036 1.99957V5.99783C16.0036 6.54759 16.4538 6.99739 17.004 6.99739C17.5542 6.99739 18.0043 6.54759 18.0043 5.99783Z\"></path></svg>"
|
17059
|
+
|
17060
|
+
/***/ }),
|
17061
|
+
|
17062
|
+
/***/ "./src/images/smiley/normal.svg":
|
17063
|
+
/*!**************************************!*\
|
17064
|
+
!*** ./src/images/smiley/normal.svg ***!
|
17065
|
+
\**************************************/
|
17066
|
+
/*! no static exports found */
|
17067
|
+
/***/ (function(module, exports) {
|
17068
|
+
|
17069
|
+
module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7 7C6.45 7 6 6.55 6 6V2C6 1.45 6.45 1 7 1C7.55 1 8 1.45 8 2V6C8 6.55 7.55 7 7 7ZM18 6V2C18 1.45 17.55 1 17 1C16.45 1 16 1.45 16 2V6C16 6.55 16.45 7 17 7C17.55 7 18 6.55 18 6ZM21 21C21 20.45 20.55 20 20 20H4C3.45 20 3 20.45 3 21C3 21.55 3.45 22 4 22H20C20.55 22 21 21.55 21 21Z\"></path></svg>"
|
17070
|
+
|
17071
|
+
/***/ }),
|
17072
|
+
|
17073
|
+
/***/ "./src/images/smiley/not-good.svg":
|
17074
|
+
/*!****************************************!*\
|
17075
|
+
!*** ./src/images/smiley/not-good.svg ***!
|
17076
|
+
\****************************************/
|
17077
|
+
/*! no static exports found */
|
17078
|
+
/***/ (function(module, exports) {
|
17079
|
+
|
17080
|
+
module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.06927 7C6.51927 7 6.06927 6.55 6.06927 6V2C6.06927 1.45 6.51927 1 7.06927 1C7.61927 1 8.06927 1.45 8.06927 2V6C8.06927 6.55 7.61927 7 7.06927 7ZM18.0693 6V2C18.0693 1.45 17.6193 1 17.0693 1C16.5193 1 16.0693 1.45 16.0693 2V6C16.0693 6.55 16.5193 7 17.0693 7C17.6193 7 18.0693 6.55 18.0693 6ZM22.5693 21.9C23.0693 21.66 23.2793 21.07 23.0393 20.57C21.1093 16.52 16.9093 14 12.0693 14C7.22927 14 3.02927 16.52 1.09927 20.57C0.859273 21.07 1.06927 21.67 1.56927 21.9C2.06927 22.14 2.65927 21.93 2.89927 21.43C4.49927 18.08 8.00927 16 12.0593 16C16.1093 16 19.6293 18.08 21.2193 21.43C21.3893 21.79 21.7493 22 22.1193 22C22.2593 22 22.4093 21.97 22.5493 21.9H22.5693Z\"></path></svg>"
|
17081
|
+
|
17082
|
+
/***/ }),
|
17083
|
+
|
17084
|
+
/***/ "./src/images/smiley/perfect.svg":
|
17085
|
+
/*!***************************************!*\
|
17086
|
+
!*** ./src/images/smiley/perfect.svg ***!
|
17087
|
+
\***************************************/
|
17088
|
+
/*! no static exports found */
|
17089
|
+
/***/ (function(module, exports) {
|
17090
|
+
|
17091
|
+
module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12.01 23C6.85721 23 1.15412 19.9621 0.0134987 13.1669C-0.0765501 12.6272 0.293651 12.1076 0.833944 12.0177C1.38424 11.9277 1.89452 12.2975 1.98457 12.8371C2.92508 18.4732 7.69767 20.9914 12 20.9914C16.3023 20.9914 21.0749 18.4732 22.0154 12.8371C22.1055 12.2975 22.6158 11.9277 23.1661 12.0177C23.7063 12.1076 24.0765 12.6272 23.9865 13.1669C22.8559 19.9521 17.1428 23 11.99 23H12.01ZM21.165 6.15177C22.3056 5.01257 22.3056 3.16386 21.165 2.02465L21.0049 1.85477C19.9143 0.765533 18.1633 0.725561 17.0227 1.71487C15.8821 0.715568 14.1312 0.765533 13.0406 1.85477L12.8705 2.01466C11.7299 3.15386 11.7299 5.00257 12.8705 6.14178L17.0227 10.2889L21.175 6.14178L21.165 6.15177ZM15.742 3.27378L17.0127 4.54289L18.2834 3.27378C18.6436 2.91403 19.2239 2.91403 19.5841 3.27378L19.7442 3.43367C20.1044 3.79342 20.1044 4.37301 19.7442 4.73276L17.0127 7.46086L14.2812 4.73276C13.921 4.37301 13.921 3.79342 14.2812 3.43367L14.4413 3.27378C14.6214 3.09391 14.8515 3.00397 15.0917 3.00397C15.3318 3.00397 15.5619 3.09391 15.742 3.27378ZM11.1595 6.15177C12.3002 5.01257 12.3002 3.16386 11.1595 2.02465L10.9995 1.85477C9.90886 0.765533 8.15792 0.725561 7.0173 1.71487C5.87668 0.715568 4.12573 0.765533 3.03514 1.85477L2.86505 2.01466C1.72443 3.15386 1.72443 5.00257 2.86505 6.14178L7.0173 10.2889L11.1695 6.14178L11.1595 6.15177ZM5.7366 3.27378L7.00729 4.54289L8.27798 3.27378C8.63818 2.91403 9.21849 2.91403 9.57869 3.27378L9.73877 3.43367C10.099 3.79342 10.099 4.37301 9.73877 4.73276L7.00729 7.46086L4.27581 4.73276C3.91562 4.37301 3.91562 3.79342 4.27581 3.43367L4.4359 3.27378C4.61599 3.09391 4.84612 3.00397 5.08625 3.00397C5.32638 3.00397 5.5565 3.09391 5.7366 3.27378Z\"></path></svg>"
|
17092
|
+
|
17093
|
+
/***/ }),
|
17094
|
+
|
17095
|
+
/***/ "./src/images/smiley/poor.svg":
|
17096
|
+
/*!************************************!*\
|
17097
|
+
!*** ./src/images/smiley/poor.svg ***!
|
17098
|
+
\************************************/
|
17099
|
+
/*! no static exports found */
|
17100
|
+
/***/ (function(module, exports) {
|
17101
|
+
|
17102
|
+
module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.01915 7C6.46961 7 6.01998 6.55 6.01998 6V2C6.01998 1.45 6.46961 1 7.01915 1C7.56869 1 8.01832 1.45 8.01832 2V6C8.01832 6.55 7.56869 7 7.01915 7ZM18.01 6V2C18.01 1.45 17.5604 1 17.0108 1C16.4613 1 16.0117 1.45 16.0117 2V6C16.0117 6.55 16.4613 7 17.0108 7C17.5604 7 18.01 6.55 18.01 6ZM16.4213 21.58L18.01 19.99L19.2989 21.28C19.6886 21.67 20.3181 21.67 20.7077 21.28C21.0974 20.89 21.0974 20.26 20.7077 19.87L19.4188 18.58C18.6395 17.8 17.3705 17.8 16.5912 18.58L15.0025 20.17L13.4138 18.58C12.6345 17.8 11.3655 17.8 10.5862 18.58L8.9975 20.17L7.40883 18.58C6.62948 17.8 5.36053 17.8 4.58118 18.58L3.29226 19.87C2.90258 20.26 2.90258 20.89 3.29226 21.28C3.68193 21.67 4.31141 21.67 4.70108 21.28L5.99001 19.99L7.57868 21.58C8.35803 22.36 9.62698 22.36 10.4063 21.58L11.995 19.99L13.5837 21.58C13.9734 21.97 14.4829 22.16 14.9925 22.16C15.5021 22.16 16.0117 21.97 16.4013 21.58H16.4213Z\"></path></svg>"
|
17103
|
+
|
17104
|
+
/***/ }),
|
17105
|
+
|
17106
|
+
/***/ "./src/images/smiley/terrible.svg":
|
17107
|
+
/*!****************************************!*\
|
17108
|
+
!*** ./src/images/smiley/terrible.svg ***!
|
17109
|
+
\****************************************/
|
17110
|
+
/*! no static exports found */
|
17111
|
+
/***/ (function(module, exports) {
|
17112
|
+
|
17113
|
+
module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M4 4.9938C4 4.44362 4.45 3.99348 5 3.99348H6.59L5.3 2.70306C4.91 2.31293 4.91 1.68272 5.3 1.2926C5.69 0.902468 6.32 0.902468 6.71 1.2926L9.71 4.29357C9.8 4.3836 9.88 4.49364 9.93 4.62368C10.03 4.86376 10.03 5.14385 9.93 5.38393C9.88 5.50397 9.81 5.614 9.71 5.71404L6.71 8.71501C6.51 8.91508 6.26 9.00511 6 9.00511C5.74 9.00511 5.49 8.90508 5.29 8.71501C4.9 8.32489 4.9 7.69468 5.29 7.30456L6.58 6.01413H4.99C4.44 6.01413 3.99 5.56399 3.99 5.01381L4 4.9938ZM14.08 5.37393C14.13 5.49397 14.2 5.604 14.3 5.70403L17.3 8.70501C17.5 8.90508 17.75 8.99511 18.01 8.99511C18.27 8.99511 18.52 8.89507 18.72 8.70501C19.11 8.31488 19.11 7.68468 18.72 7.29455L17.43 6.00413H19.02C19.57 6.00413 20.02 5.55399 20.02 5.00381C20.02 4.45363 19.57 4.00348 19.02 4.00348H17.43L18.72 2.71306C19.11 2.32293 19.11 1.69273 18.72 1.3026C18.33 0.912471 17.7 0.912471 17.31 1.3026L14.31 4.30358C14.22 4.39361 14.14 4.50364 14.09 4.63368C13.99 4.87376 13.99 5.15385 14.09 5.39393L14.08 5.37393ZM22 14.9971V20.999C22 22.6496 20.65 24 19 24H5C3.35 24 2 22.6496 2 20.999V14.9971C2 13.3465 3.35 11.9961 5 11.9961H19C20.65 11.9961 22 13.3465 22 14.9971ZM19 13.9967H16V16.9977H20V14.9971C20 14.4469 19.55 13.9967 19 13.9967ZM14 16.9977V13.9967H10V16.9977H14ZM10 18.9984V21.9993H14V18.9984H10ZM4 14.9971V16.9977H8V13.9967H5C4.45 13.9967 4 14.4469 4 14.9971ZM5 21.9993H8V18.9984H4V20.999C4 21.5492 4.45 21.9993 5 21.9993ZM20 20.999V18.9984H16V21.9993H19C19.55 21.9993 20 21.5492 20 20.999Z\"></path></svg>"
|
17114
|
+
|
17115
|
+
/***/ }),
|
17116
|
+
|
17117
|
+
/***/ "./src/images/smiley/very-good.svg":
|
17118
|
+
/*!*****************************************!*\
|
17119
|
+
!*** ./src/images/smiley/very-good.svg ***!
|
17120
|
+
\*****************************************/
|
17121
|
+
/*! no static exports found */
|
17122
|
+
/***/ (function(module, exports) {
|
17123
|
+
|
17124
|
+
module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M12.01 24C6.85721 24 1.15412 20.96 0.0134987 14.16C-0.0765501 13.62 0.293651 13.1 0.833944 13.01C1.38424 12.92 1.89452 13.29 1.98457 13.83C2.92508 19.47 7.69767 21.99 12 21.99C16.3023 21.99 21.0749 19.47 22.0154 13.83C22.1055 13.29 22.6158 12.92 23.1661 13.01C23.7063 13.1 24.0765 13.62 23.9865 14.16C22.8559 20.95 17.1428 24 11.99 24H12.01ZM8.00783 6V2C8.00783 1.45 7.55759 1 7.00729 1C6.45699 1 6.00675 1.45 6.00675 2V6C6.00675 6.55 6.45699 7 7.00729 7C7.55759 7 8.00783 6.55 8.00783 6ZM18.0133 6V2C18.0133 1.45 17.563 1 17.0127 1C16.4624 1 16.0122 1.45 16.0122 2V6C16.0122 6.55 16.4624 7 17.0127 7C17.563 7 18.0133 6.55 18.0133 6Z\"></path></svg>"
|
17125
|
+
|
17126
|
+
/***/ }),
|
17127
|
+
|
17128
|
+
/***/ "./src/images/smiley/very-poor.svg":
|
17129
|
+
/*!*****************************************!*\
|
17130
|
+
!*** ./src/images/smiley/very-poor.svg ***!
|
17131
|
+
\*****************************************/
|
17132
|
+
/*! no static exports found */
|
17133
|
+
/***/ (function(module, exports) {
|
17134
|
+
|
17135
|
+
module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><g clip-path=\"url(#clip0_15894_140103)\"><path d=\"M4.88291 4.50999C4.47291 4.50999 4.08291 4.24999 3.94291 3.83999C3.76291 3.31999 4.03291 2.74999 4.55291 2.56999L8.32291 1.24999C8.84291 1.05999 9.41291 1.33999 9.59291 1.85999C9.77291 2.37999 9.50291 2.94999 8.98291 3.12999L5.20291 4.44999C5.09291 4.48999 4.98291 4.50999 4.87291 4.50999H4.88291ZM19.8129 3.88999C20.0229 3.37999 19.7729 2.78999 19.2629 2.58999L15.5529 1.06999C15.0429 0.859992 14.4529 1.10999 14.2529 1.61999C14.0429 2.12999 14.2929 2.71999 14.8029 2.91999L18.5029 4.42999C18.6229 4.47999 18.7529 4.49999 18.8829 4.49999C19.2729 4.49999 19.6529 4.26999 19.8129 3.87999V3.88999ZM3.50291 5.99999C2.64291 6.36999 1.79291 6.87999 1.00291 7.47999C0.79291 7.63999 0.64291 7.86999 0.59291 8.13999C0.48291 8.72999 0.87291 9.28999 1.45291 9.39999C2.04291 9.50999 2.60291 9.11999 2.71291 8.53999C2.87291 7.68999 3.12291 6.82999 3.50291 5.98999V5.99999ZM21.0429 8.54999C21.6029 10.48 24.2429 8.83999 22.7529 7.47999C21.9629 6.87999 21.1129 6.36999 20.2529 5.99999C20.6329 6.83999 20.8829 7.69999 21.0429 8.54999ZM21.5729 13.2C21.2529 14.2 22.5429 15.09 23.3629 14.39C23.8529 14 23.9229 13.29 23.5429 12.81C21.7429 10.67 22.1329 10.55 21.5829 13.2H21.5729ZM1.75291 11C1.22291 11.79 -0.14709 12.64 0.0129102 13.75C0.15291 14.36 0.75291 14.74 1.35291 14.6C2.98291 14.1 1.80291 12.22 1.75291 11ZM19.8829 17C19.8829 13.14 16.2929 9.99999 11.8829 9.99999C7.47291 9.99999 3.88291 13.14 3.88291 17C3.88291 20.86 7.47291 24 11.8829 24C16.2929 24 19.8829 20.86 19.8829 17ZM17.8829 17C17.8829 19.76 15.1929 22 11.8829 22C8.57291 22 5.88291 19.76 5.88291 17C5.88291 14.24 8.57291 12 11.8829 12C15.1929 12 17.8829 14.24 17.8829 17Z\"></path></g><defs><clipPath id=\"clip0_15894_140103\"><rect width=\"24\" height=\"24\" fill=\"white\"></rect></clipPath></defs></svg>"
|
17136
|
+
|
17137
|
+
/***/ }),
|
17138
|
+
|
16481
17139
|
/***/ "./src/itemvalue.ts":
|
16482
17140
|
/*!**************************!*\
|
16483
17141
|
!*** ./src/itemvalue.ts ***!
|
@@ -17355,13 +18013,6 @@ var JsonObjectProperty = /** @class */ (function () {
|
|
17355
18013
|
return objType;
|
17356
18014
|
return objType.replace(this.classNamePart, "");
|
17357
18015
|
};
|
17358
|
-
JsonObjectProperty.prototype.getClassName = function (className) {
|
17359
|
-
if (className)
|
17360
|
-
className = className.toLowerCase();
|
17361
|
-
return this.classNamePart && className.indexOf(this.classNamePart) < 0
|
17362
|
-
? className + this.classNamePart
|
17363
|
-
: className;
|
17364
|
-
};
|
17365
18016
|
Object.defineProperty(JsonObjectProperty.prototype, "choices", {
|
17366
18017
|
/**
|
17367
18018
|
* Depricated, please use getChoices
|
@@ -18685,17 +19336,27 @@ var JsonObject = /** @class */ (function () {
|
|
18685
19336
|
};
|
18686
19337
|
JsonObject.prototype.createNewObj = function (value, property) {
|
18687
19338
|
var result = { newObj: null, error: null };
|
18688
|
-
var className = value
|
18689
|
-
if (!className && property != null && property.className) {
|
18690
|
-
className = property.className;
|
18691
|
-
}
|
18692
|
-
className = property.getClassName(className);
|
19339
|
+
var className = this.getClassNameForNewObj(value, property);
|
18693
19340
|
result.newObj = className
|
18694
19341
|
? JsonObject.metaData.createClass(className, value)
|
18695
19342
|
: null;
|
18696
19343
|
result.error = this.checkNewObjectOnErrors(result.newObj, value, property, className);
|
18697
19344
|
return result;
|
18698
19345
|
};
|
19346
|
+
JsonObject.prototype.getClassNameForNewObj = function (value, property) {
|
19347
|
+
var res = property != null && property.className ? property.className : undefined;
|
19348
|
+
if (!res) {
|
19349
|
+
res = value[JsonObject.typePropertyName];
|
19350
|
+
}
|
19351
|
+
if (!res)
|
19352
|
+
return res;
|
19353
|
+
res = res.toLowerCase();
|
19354
|
+
var classNamePart = property.classNamePart;
|
19355
|
+
if (classNamePart && res.indexOf(classNamePart) < 0) {
|
19356
|
+
res += classNamePart;
|
19357
|
+
}
|
19358
|
+
return res;
|
19359
|
+
};
|
18699
19360
|
JsonObject.prototype.checkNewObjectOnErrors = function (newObj, value, property, className) {
|
18700
19361
|
var error = null;
|
18701
19362
|
if (newObj) {
|
@@ -18854,13 +19515,14 @@ var defaultListCss = {
|
|
18854
19515
|
};
|
18855
19516
|
var ListModel = /** @class */ (function (_super) {
|
18856
19517
|
__extends(ListModel, _super);
|
18857
|
-
function ListModel(items, onSelectionChanged, allowSelection, selectedItem, onFilterStringChangedCallback) {
|
19518
|
+
function ListModel(items, onSelectionChanged, allowSelection, selectedItem, onFilterStringChangedCallback, elementId) {
|
18858
19519
|
var _this = _super.call(this) || this;
|
18859
19520
|
_this.onSelectionChanged = onSelectionChanged;
|
18860
19521
|
_this.allowSelection = allowSelection;
|
18861
19522
|
_this.onFilterStringChangedCallback = onFilterStringChangedCallback;
|
19523
|
+
_this.elementId = elementId;
|
18862
19524
|
_this.onItemClick = function (itemValue) {
|
18863
|
-
if (_this.isItemDisabled(itemValue)
|
19525
|
+
if (_this.isItemDisabled(itemValue)) {
|
18864
19526
|
return;
|
18865
19527
|
}
|
18866
19528
|
_this.isExpanded = false;
|
@@ -18930,8 +19592,12 @@ var ListModel = /** @class */ (function (_super) {
|
|
18930
19592
|
}
|
18931
19593
|
};
|
18932
19594
|
ListModel.prototype.setItems = function (items, sortByVisibleIndex) {
|
19595
|
+
var _this = this;
|
18933
19596
|
if (sortByVisibleIndex === void 0) { sortByVisibleIndex = true; }
|
18934
19597
|
_super.prototype.setItems.call(this, items, sortByVisibleIndex);
|
19598
|
+
if (this.elementId) {
|
19599
|
+
this.renderedActions.forEach(function (action) { action.elementId = _this.elementId + action.id; });
|
19600
|
+
}
|
18935
19601
|
if (!this.isAllDataLoaded && !!this.actions.length) {
|
18936
19602
|
this.actions.push(this.loadingIndicator);
|
18937
19603
|
}
|
@@ -19540,6 +20206,8 @@ var LocalizableString = /** @class */ (function () {
|
|
19540
20206
|
return this.htmlValues[loc];
|
19541
20207
|
};
|
19542
20208
|
LocalizableString.prototype.deleteValuesEqualsToDefault = function (defaultValue) {
|
20209
|
+
if (_settings__WEBPACK_IMPORTED_MODULE_2__["settings"].storeDuplicatedTranslations)
|
20210
|
+
return;
|
19543
20211
|
var keys = this.getValuesKeys();
|
19544
20212
|
for (var i = 0; i < keys.length; i++) {
|
19545
20213
|
if (keys[i] == this.defaultLoc)
|
@@ -20519,12 +21187,12 @@ var dutchSurveyStrings = {
|
|
20519
21187
|
urlGetChoicesError: "De vraag gaf een leeg antwoord terug of de 'pad' eigenschap is niet correct",
|
20520
21188
|
exceedMaxSize: "De grootte van het bestand mag niet groter zijn dan {0}",
|
20521
21189
|
otherRequiredError: "Vul het veld 'Anders, nl.' in",
|
20522
|
-
uploadingFile: "Uw bestand wordt
|
20523
|
-
loadingFile: "
|
21190
|
+
uploadingFile: "Uw bestand wordt geüpload. Gelieve enkele seconden te wachten en opnieuw te proberen.",
|
21191
|
+
loadingFile: "Laden...",
|
20524
21192
|
chooseFile: "Kies uw bestand(en)...",
|
20525
21193
|
noFileChosen: "Geen bestand gekozen",
|
20526
21194
|
fileDragAreaPlaceholder: "Sleep het bestand naar hier",
|
20527
|
-
confirmDelete: "
|
21195
|
+
confirmDelete: "Wilt u deze gegevens verwijderen?",
|
20528
21196
|
keyDuplicationError: "Deze waarde moet uniek zijn.",
|
20529
21197
|
addColumn: "Voeg kolom toe",
|
20530
21198
|
addRow: "Voeg rij toe",
|
@@ -20548,14 +21216,14 @@ var dutchSurveyStrings = {
|
|
20548
21216
|
timerLimitAll: "U heeft {0} van {1} op deze pagina gespendeerd en {2} van {3} in totaal.",
|
20549
21217
|
timerLimitPage: "U heeft {0} van {1} gespendeerd op deze pagina.",
|
20550
21218
|
timerLimitSurvey: "U heeft {0} van {1} in het totaal.",
|
20551
|
-
clearCaption: "
|
21219
|
+
clearCaption: "Verwijder",
|
20552
21220
|
signaturePlaceHolder: "Hier tekenen",
|
20553
21221
|
chooseFileCaption: "Gekozen bestand",
|
20554
|
-
removeFileCaption: "Verwijder
|
21222
|
+
removeFileCaption: "Verwijder dit bestand",
|
20555
21223
|
booleanCheckedLabel: "Ja",
|
20556
21224
|
booleanUncheckedLabel: "Nee",
|
20557
|
-
confirmRemoveFile: "
|
20558
|
-
confirmRemoveAllFiles: "
|
21225
|
+
confirmRemoveFile: "Weet u zeker dat u deze file wilt verwijderen: {0}?",
|
21226
|
+
confirmRemoveAllFiles: "Weet u zeker dat u al deze files wilt verwijderen?",
|
20559
21227
|
questionTitlePatternText: "Titel van de vraag",
|
20560
21228
|
// modalCancelButtonText: "Cancel",
|
20561
21229
|
// modalApplyButtonText: "Apply",
|
@@ -20595,6 +21263,7 @@ var englishStrings = {
|
|
20595
21263
|
progressText: "Page {0} of {1}",
|
20596
21264
|
indexText: "{0} of {1}",
|
20597
21265
|
panelDynamicProgressText: "{0} of {1}",
|
21266
|
+
panelDynamicTabTextFormat: "Panel {0}",
|
20598
21267
|
questionsProgressText: "Answered {0}/{1} questions",
|
20599
21268
|
emptySurvey: "The survey doesn't contain visible pages or questions.",
|
20600
21269
|
completingSurvey: "Thank you for completing the survey",
|
@@ -25367,7 +26036,7 @@ var QuestionMatrixBaseModel = /** @class */ (function (_super) {
|
|
25367
26036
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: "middle" })
|
25368
26037
|
], QuestionMatrixBaseModel.prototype, "verticalAlign", void 0);
|
25369
26038
|
__decorate([
|
25370
|
-
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])(
|
26039
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_2__["property"])()
|
25371
26040
|
], QuestionMatrixBaseModel.prototype, "alternateRows", void 0);
|
25372
26041
|
return QuestionMatrixBaseModel;
|
25373
26042
|
}(_question__WEBPACK_IMPORTED_MODULE_1__["Question"]));
|
@@ -25426,8 +26095,8 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
25426
26095
|
|
25427
26096
|
var MultiSelectListModel = /** @class */ (function (_super) {
|
25428
26097
|
__extends(MultiSelectListModel, _super);
|
25429
|
-
function MultiSelectListModel(items, onSelectionChanged, allowSelection, selectedItems, onFilterStringChangedCallback) {
|
25430
|
-
var _this = _super.call(this, items, onSelectionChanged, allowSelection, undefined, onFilterStringChangedCallback) || this;
|
26098
|
+
function MultiSelectListModel(items, onSelectionChanged, allowSelection, selectedItems, onFilterStringChangedCallback, elementId) {
|
26099
|
+
var _this = _super.call(this, items, onSelectionChanged, allowSelection, undefined, onFilterStringChangedCallback, elementId) || this;
|
25431
26100
|
_this.onItemClick = function (item) {
|
25432
26101
|
if (_this.isItemDisabled(item))
|
25433
26102
|
return;
|
@@ -25612,7 +26281,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
25612
26281
|
/* harmony import */ var _jsonobject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./jsonobject */ "./src/jsonobject.ts");
|
25613
26282
|
/* harmony import */ var _panel__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./panel */ "./src/panel.ts");
|
25614
26283
|
/* harmony import */ var _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/cssClassBuilder */ "./src/utils/cssClassBuilder.ts");
|
25615
|
-
/* harmony import */ var
|
26284
|
+
/* harmony import */ var _drag_drop_page_helper_v1__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./drag-drop-page-helper-v1 */ "./src/drag-drop-page-helper-v1.ts");
|
25616
26285
|
var __extends = (undefined && undefined.__extends) || (function () {
|
25617
26286
|
var extendStatics = function (d, b) {
|
25618
26287
|
extendStatics = Object.setPrototypeOf ||
|
@@ -25661,6 +26330,7 @@ var PageModel = /** @class */ (function (_super) {
|
|
25661
26330
|
};
|
25662
26331
|
_this.createLocalizableString("navigationTitle", _this, true);
|
25663
26332
|
_this.createLocalizableString("navigationDescription", _this, true);
|
26333
|
+
_this.dragDropPageHelper = new _drag_drop_page_helper_v1__WEBPACK_IMPORTED_MODULE_3__["DragDropPageHelperV1"](_this);
|
25664
26334
|
return _this;
|
25665
26335
|
}
|
25666
26336
|
PageModel.prototype.getType = function () {
|
@@ -25684,9 +26354,9 @@ var PageModel = /** @class */ (function (_super) {
|
|
25684
26354
|
};
|
25685
26355
|
Object.defineProperty(PageModel.prototype, "navigationTitle", {
|
25686
26356
|
/**
|
25687
|
-
* A caption displayed on a navigation button in the progress bar. Applies
|
26357
|
+
* A caption displayed on a navigation button in the TOC or progress bar. Applies when [`showTOC`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTOC) is `true` or when [`showProgressBar`](https://surveyjs.io/form-library/documentation/surveymodel#showProgressBar) is `true` and [`progressBarType`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarType) is `"buttons"`.
|
25688
26358
|
*
|
25689
|
-
* If this property is undefined, the navigation
|
26359
|
+
* If this property is undefined, the navigation buttons display page [titles](https://surveyjs.io/form-library/documentation/api-reference/page-model#title) or [names](https://surveyjs.io/form-library/documentation/pagemodel#name).
|
25690
26360
|
*/
|
25691
26361
|
get: function () {
|
25692
26362
|
return this.getLocalizableStringText("navigationTitle");
|
@@ -25941,205 +26611,19 @@ var PageModel = /** @class */ (function (_super) {
|
|
25941
26611
|
this.survey.pageVisibilityChanged(this, this.isVisible);
|
25942
26612
|
}
|
25943
26613
|
};
|
25944
|
-
PageModel.prototype.getDragDropInfo = function () { return this.
|
26614
|
+
PageModel.prototype.getDragDropInfo = function () { return this.dragDropPageHelper.getDragDropInfo(); };
|
25945
26615
|
PageModel.prototype.dragDropStart = function (src, target, nestedPanelDepth) {
|
25946
26616
|
if (nestedPanelDepth === void 0) { nestedPanelDepth = -1; }
|
25947
|
-
this.
|
26617
|
+
this.dragDropPageHelper.dragDropStart(src, target, nestedPanelDepth);
|
25948
26618
|
};
|
25949
26619
|
PageModel.prototype.dragDropMoveTo = function (destination, isBottom, isEdge) {
|
25950
26620
|
if (isBottom === void 0) { isBottom = false; }
|
25951
26621
|
if (isEdge === void 0) { isEdge = false; }
|
25952
|
-
|
25953
|
-
return false;
|
25954
|
-
this.dragDropInfo.destination = destination;
|
25955
|
-
this.dragDropInfo.isBottom = isBottom;
|
25956
|
-
this.dragDropInfo.isEdge = isEdge;
|
25957
|
-
this.correctDragDropInfo(this.dragDropInfo);
|
25958
|
-
if (!this.dragDropCanDropTagert())
|
25959
|
-
return false;
|
25960
|
-
if (!this.dragDropCanDropSource() || !this.dragDropAllowFromSurvey()) {
|
25961
|
-
if (!!this.dragDropInfo.source) {
|
25962
|
-
var row = this.dragDropFindRow(this.dragDropInfo.target);
|
25963
|
-
this.updateRowsRemoveElementFromRow(this.dragDropInfo.target, row);
|
25964
|
-
}
|
25965
|
-
return false;
|
25966
|
-
}
|
25967
|
-
this.dragDropAddTarget(this.dragDropInfo);
|
25968
|
-
return true;
|
25969
|
-
};
|
25970
|
-
PageModel.prototype.correctDragDropInfo = function (dragDropInfo) {
|
25971
|
-
if (!dragDropInfo.destination)
|
25972
|
-
return;
|
25973
|
-
var panel = dragDropInfo.destination.isPanel
|
25974
|
-
? dragDropInfo.destination
|
25975
|
-
: null;
|
25976
|
-
if (!panel)
|
25977
|
-
return;
|
25978
|
-
if (!dragDropInfo.target.isLayoutTypeSupported(panel.getChildrenLayoutType())) {
|
25979
|
-
dragDropInfo.isEdge = true;
|
25980
|
-
}
|
25981
|
-
};
|
25982
|
-
PageModel.prototype.dragDropAllowFromSurvey = function () {
|
25983
|
-
var dest = this.dragDropInfo.destination;
|
25984
|
-
if (!dest || !this.survey)
|
25985
|
-
return true;
|
25986
|
-
var insertBefore = null;
|
25987
|
-
var insertAfter = null;
|
25988
|
-
var parent = dest.isPage || (!this.dragDropInfo.isEdge && dest.isPanel)
|
25989
|
-
? dest
|
25990
|
-
: dest.parent;
|
25991
|
-
if (!dest.isPage) {
|
25992
|
-
var container = dest.parent;
|
25993
|
-
if (!!container) {
|
25994
|
-
var elements = container.elements;
|
25995
|
-
var index = elements.indexOf(dest);
|
25996
|
-
if (index > -1) {
|
25997
|
-
insertBefore = dest;
|
25998
|
-
insertAfter = dest;
|
25999
|
-
if (this.dragDropInfo.isBottom) {
|
26000
|
-
insertBefore =
|
26001
|
-
index < elements.length - 1 ? elements[index + 1] : null;
|
26002
|
-
}
|
26003
|
-
else {
|
26004
|
-
insertAfter = index > 0 ? elements[index - 1] : null;
|
26005
|
-
}
|
26006
|
-
}
|
26007
|
-
}
|
26008
|
-
}
|
26009
|
-
var options = {
|
26010
|
-
allow: true,
|
26011
|
-
target: this.dragDropInfo.target,
|
26012
|
-
source: this.dragDropInfo.source,
|
26013
|
-
parent: parent,
|
26014
|
-
insertAfter: insertAfter,
|
26015
|
-
insertBefore: insertBefore,
|
26016
|
-
};
|
26017
|
-
return this.survey.dragAndDropAllow(options);
|
26622
|
+
return this.dragDropPageHelper.dragDropMoveTo(destination, isBottom, isEdge);
|
26018
26623
|
};
|
26019
26624
|
PageModel.prototype.dragDropFinish = function (isCancel) {
|
26020
26625
|
if (isCancel === void 0) { isCancel = false; }
|
26021
|
-
|
26022
|
-
return;
|
26023
|
-
var target = this.dragDropInfo.target;
|
26024
|
-
var src = this.dragDropInfo.source;
|
26025
|
-
var dest = this.dragDropInfo.destination;
|
26026
|
-
var row = this.dragDropFindRow(target);
|
26027
|
-
var targetIndex = this.dragDropGetElementIndex(target, row);
|
26028
|
-
this.updateRowsRemoveElementFromRow(target, row);
|
26029
|
-
var elementsToSetSWNL = [];
|
26030
|
-
var elementsToResetSWNL = [];
|
26031
|
-
if (!isCancel && !!row) {
|
26032
|
-
var isSamePanel = false;
|
26033
|
-
if (this.isDesignMode && _settings__WEBPACK_IMPORTED_MODULE_3__["settings"].supportCreatorV2) {
|
26034
|
-
var srcRow = src && src.parent && src.parent.dragDropFindRow(src);
|
26035
|
-
if (row.panel.elements[targetIndex] && row.panel.elements[targetIndex].startWithNewLine && row.elements.length > 1 && row.panel.elements[targetIndex] === dest) {
|
26036
|
-
elementsToSetSWNL.push(target);
|
26037
|
-
elementsToResetSWNL.push(row.panel.elements[targetIndex]);
|
26038
|
-
}
|
26039
|
-
if (target.startWithNewLine && row.elements.length > 1 && (!row.panel.elements[targetIndex] || !row.panel.elements[targetIndex].startWithNewLine)) {
|
26040
|
-
elementsToResetSWNL.push(target);
|
26041
|
-
}
|
26042
|
-
if (srcRow && srcRow.elements[0] === src && srcRow.elements[1]) {
|
26043
|
-
elementsToSetSWNL.push(srcRow.elements[1]);
|
26044
|
-
}
|
26045
|
-
if (row.elements.length <= 1) {
|
26046
|
-
elementsToSetSWNL.push(target);
|
26047
|
-
}
|
26048
|
-
if (target.startWithNewLine && row.elements.length > 1 && row.elements[0] !== dest) {
|
26049
|
-
elementsToResetSWNL.push(target);
|
26050
|
-
}
|
26051
|
-
}
|
26052
|
-
if (!!src && !!src.parent) {
|
26053
|
-
this.survey.startMovingQuestion();
|
26054
|
-
isSamePanel = row.panel == src.parent;
|
26055
|
-
if (isSamePanel) {
|
26056
|
-
row.panel.dragDropMoveElement(src, target, targetIndex);
|
26057
|
-
targetIndex = -1;
|
26058
|
-
}
|
26059
|
-
else {
|
26060
|
-
src.parent.removeElement(src);
|
26061
|
-
}
|
26062
|
-
}
|
26063
|
-
if (targetIndex > -1) {
|
26064
|
-
row.panel.addElement(target, targetIndex);
|
26065
|
-
}
|
26066
|
-
this.survey.stopMovingQuestion();
|
26067
|
-
}
|
26068
|
-
elementsToSetSWNL.map(function (e) { e.startWithNewLine = true; });
|
26069
|
-
elementsToResetSWNL.map(function (e) { e.startWithNewLine = false; });
|
26070
|
-
this.dragDropInfo = null;
|
26071
|
-
return !isCancel ? target : null;
|
26072
|
-
};
|
26073
|
-
PageModel.prototype.dragDropGetElementIndex = function (target, row) {
|
26074
|
-
if (!row)
|
26075
|
-
return -1;
|
26076
|
-
var index = row.elements.indexOf(target);
|
26077
|
-
if (row.index == 0)
|
26078
|
-
return index;
|
26079
|
-
var prevRow = row.panel.rows[row.index - 1];
|
26080
|
-
var prevElement = prevRow.elements[prevRow.elements.length - 1];
|
26081
|
-
return index + row.panel.elements.indexOf(prevElement) + 1;
|
26082
|
-
};
|
26083
|
-
PageModel.prototype.dragDropCanDropTagert = function () {
|
26084
|
-
var destination = this.dragDropInfo.destination;
|
26085
|
-
if (!destination || destination.isPage)
|
26086
|
-
return true;
|
26087
|
-
return this.dragDropCanDropCore(this.dragDropInfo.target, destination);
|
26088
|
-
};
|
26089
|
-
PageModel.prototype.dragDropCanDropSource = function () {
|
26090
|
-
var source = this.dragDropInfo.source;
|
26091
|
-
if (!source)
|
26092
|
-
return true;
|
26093
|
-
var destination = this.dragDropInfo.destination;
|
26094
|
-
if (!this.dragDropCanDropCore(source, destination))
|
26095
|
-
return false;
|
26096
|
-
if (this.isDesignMode && _settings__WEBPACK_IMPORTED_MODULE_3__["settings"].supportCreatorV2) {
|
26097
|
-
var rowSource = this.dragDropFindRow(source);
|
26098
|
-
var rowDestination = this.dragDropFindRow(destination);
|
26099
|
-
if (rowSource !== rowDestination) {
|
26100
|
-
if (!source.startWithNewLine && destination.startWithNewLine)
|
26101
|
-
return true;
|
26102
|
-
if (source.startWithNewLine && !destination.startWithNewLine) {
|
26103
|
-
return true;
|
26104
|
-
}
|
26105
|
-
}
|
26106
|
-
var row = this.dragDropFindRow(destination);
|
26107
|
-
if (row && row.elements.length == 1)
|
26108
|
-
return true;
|
26109
|
-
}
|
26110
|
-
return this.dragDropCanDropNotNext(source, destination, this.dragDropInfo.isEdge, this.dragDropInfo.isBottom);
|
26111
|
-
};
|
26112
|
-
PageModel.prototype.dragDropCanDropCore = function (target, destination) {
|
26113
|
-
if (!destination)
|
26114
|
-
return true;
|
26115
|
-
if (this.dragDropIsSameElement(destination, target))
|
26116
|
-
return false;
|
26117
|
-
if (target.isPanel) {
|
26118
|
-
var pnl = target;
|
26119
|
-
if (pnl.containsElement(destination) ||
|
26120
|
-
!!pnl.getElementByName(destination.name))
|
26121
|
-
return false;
|
26122
|
-
}
|
26123
|
-
return true;
|
26124
|
-
};
|
26125
|
-
PageModel.prototype.dragDropCanDropNotNext = function (source, destination, isEdge, isBottom) {
|
26126
|
-
if (!destination || (destination.isPanel && !isEdge))
|
26127
|
-
return true;
|
26128
|
-
if (typeof source.parent === "undefined" || source.parent !== destination.parent)
|
26129
|
-
return true;
|
26130
|
-
var pnl = source.parent;
|
26131
|
-
var srcIndex = pnl.elements.indexOf(source);
|
26132
|
-
var destIndex = pnl.elements.indexOf(destination);
|
26133
|
-
if (destIndex < srcIndex && !isBottom)
|
26134
|
-
destIndex--;
|
26135
|
-
if (isBottom)
|
26136
|
-
destIndex++;
|
26137
|
-
return srcIndex < destIndex
|
26138
|
-
? destIndex - srcIndex > 1
|
26139
|
-
: srcIndex - destIndex > 0;
|
26140
|
-
};
|
26141
|
-
PageModel.prototype.dragDropIsSameElement = function (el1, el2) {
|
26142
|
-
return el1 == el2 || el1.name == el2.name;
|
26626
|
+
return this.dragDropPageHelper.dragDropFinish(isCancel);
|
26143
26627
|
};
|
26144
26628
|
PageModel.prototype.ensureRowsVisibility = function () {
|
26145
26629
|
_super.prototype.ensureRowsVisibility.call(this);
|
@@ -26185,12 +26669,11 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addClass("page", [
|
|
26185
26669
|
/*!**********************!*\
|
26186
26670
|
!*** ./src/panel.ts ***!
|
26187
26671
|
\**********************/
|
26188
|
-
/*! exports provided:
|
26672
|
+
/*! exports provided: QuestionRowModel, PanelModelBase, PanelModel */
|
26189
26673
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
26190
26674
|
|
26191
26675
|
"use strict";
|
26192
26676
|
__webpack_require__.r(__webpack_exports__);
|
26193
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DragDropInfo", function() { return DragDropInfo; });
|
26194
26677
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuestionRowModel", function() { return QuestionRowModel; });
|
26195
26678
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PanelModelBase", function() { return PanelModelBase; });
|
26196
26679
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PanelModel", function() { return PanelModel; });
|
@@ -26204,6 +26687,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
26204
26687
|
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./settings */ "./src/settings.ts");
|
26205
26688
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/utils */ "./src/utils/utils.ts");
|
26206
26689
|
/* harmony import */ var _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/cssClassBuilder */ "./src/utils/cssClassBuilder.ts");
|
26690
|
+
/* harmony import */ var _drag_drop_panel_helper_v1__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./drag-drop-panel-helper-v1 */ "./src/drag-drop-panel-helper-v1.ts");
|
26207
26691
|
var __extends = (undefined && undefined.__extends) || (function () {
|
26208
26692
|
var extendStatics = function (d, b) {
|
26209
26693
|
extendStatics = Object.setPrototypeOf ||
|
@@ -26235,15 +26719,6 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
26235
26719
|
|
26236
26720
|
|
26237
26721
|
|
26238
|
-
var DragDropInfo = /** @class */ (function () {
|
26239
|
-
function DragDropInfo(source, target, nestedPanelDepth) {
|
26240
|
-
if (nestedPanelDepth === void 0) { nestedPanelDepth = -1; }
|
26241
|
-
this.source = source;
|
26242
|
-
this.target = target;
|
26243
|
-
this.nestedPanelDepth = nestedPanelDepth;
|
26244
|
-
}
|
26245
|
-
return DragDropInfo;
|
26246
|
-
}());
|
26247
26722
|
|
26248
26723
|
var QuestionRowModel = /** @class */ (function (_super) {
|
26249
26724
|
__extends(QuestionRowModel, _super);
|
@@ -26461,7 +26936,7 @@ var QuestionRowModel = /** @class */ (function (_super) {
|
|
26461
26936
|
QuestionRowModel.prototype.getRowCss = function () {
|
26462
26937
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_9__["CssClassBuilder"]()
|
26463
26938
|
.append(this.panel.cssClasses.row)
|
26464
|
-
.append(this.panel.cssClasses.pageRow, this.panel.isPage)
|
26939
|
+
.append(this.panel.cssClasses.pageRow, this.panel.isPage || (!!this.panel.originalPage && !this.panel.survey.isShowingPreview))
|
26465
26940
|
.append(this.panel.cssClasses.rowMultiple, this.visibleElements.length > 1)
|
26466
26941
|
.toString();
|
26467
26942
|
};
|
@@ -26494,6 +26969,7 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
26494
26969
|
_this.registerPropertyChangedHandlers(["questionStartIndex", "showQuestionNumbers"], function () {
|
26495
26970
|
_this.updateVisibleIndexes();
|
26496
26971
|
});
|
26972
|
+
_this.dragDropPanelHelper = new _drag_drop_panel_helper_v1__WEBPACK_IMPORTED_MODULE_10__["DragDropPanelHelperV1"](_this);
|
26497
26973
|
return _this;
|
26498
26974
|
}
|
26499
26975
|
PanelModelBase.getPanelId = function () {
|
@@ -26708,9 +27184,12 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
26708
27184
|
configurable: true
|
26709
27185
|
});
|
26710
27186
|
PanelModelBase.prototype.calcCssClasses = function (css) {
|
26711
|
-
var classes = { panel: {}, error: {}, row: "", rowMultiple: "" };
|
27187
|
+
var classes = { panel: {}, error: {}, row: "", rowMultiple: "", pageRow: "" };
|
26712
27188
|
this.copyCssClasses(classes.panel, css.panel);
|
26713
27189
|
this.copyCssClasses(classes.error, css.error);
|
27190
|
+
if (!!css.pageRow) {
|
27191
|
+
classes.pageRow = css.pageRow;
|
27192
|
+
}
|
26714
27193
|
if (!!css.row) {
|
26715
27194
|
classes.row = css.row;
|
26716
27195
|
}
|
@@ -26969,7 +27448,7 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
26969
27448
|
* @see [Data Validation](https://surveyjs.io/form-library/documentation/data-validation)
|
26970
27449
|
*/
|
26971
27450
|
get: function () {
|
26972
|
-
return this.getPropertyValue("isRequired"
|
27451
|
+
return this.getPropertyValue("isRequired");
|
26973
27452
|
},
|
26974
27453
|
set: function (val) {
|
26975
27454
|
this.setPropertyValue("isRequired", val);
|
@@ -27319,7 +27798,10 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
27319
27798
|
element.setSurveyImpl(this.surveyImpl);
|
27320
27799
|
element.parent = this;
|
27321
27800
|
this.markQuestionListDirty();
|
27322
|
-
this.
|
27801
|
+
if (this.canBuildRows()) {
|
27802
|
+
var dragDropInfo = _settings__WEBPACK_IMPORTED_MODULE_7__["settings"].supportCreatorV2 ? this.getDragDropInfo() : undefined;
|
27803
|
+
this.dragDropPanelHelper.updateRowsOnElementAdded(element, index, dragDropInfo, this);
|
27804
|
+
}
|
27323
27805
|
if (element.isPanel) {
|
27324
27806
|
var p = element;
|
27325
27807
|
if (this.survey) {
|
@@ -27420,29 +27902,6 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
27420
27902
|
var page = this.getPage(this.parent);
|
27421
27903
|
return !!page ? page.getDragDropInfo() : undefined;
|
27422
27904
|
};
|
27423
|
-
PanelModelBase.prototype.updateRowsOnElementAdded = function (element, index) {
|
27424
|
-
if (!this.canBuildRows())
|
27425
|
-
return;
|
27426
|
-
var dragDropInfo = _settings__WEBPACK_IMPORTED_MODULE_7__["settings"].supportCreatorV2 ? this.getDragDropInfo() : undefined;
|
27427
|
-
if (!dragDropInfo) {
|
27428
|
-
dragDropInfo = new DragDropInfo(null, element);
|
27429
|
-
dragDropInfo.target = element;
|
27430
|
-
dragDropInfo.isEdge = this.elements.length > 1;
|
27431
|
-
if (this.elements.length < 2) {
|
27432
|
-
dragDropInfo.destination = this;
|
27433
|
-
}
|
27434
|
-
else {
|
27435
|
-
dragDropInfo.isBottom = index > 0;
|
27436
|
-
if (index == 0) {
|
27437
|
-
dragDropInfo.destination = this.elements[1];
|
27438
|
-
}
|
27439
|
-
else {
|
27440
|
-
dragDropInfo.destination = this.elements[index - 1];
|
27441
|
-
}
|
27442
|
-
}
|
27443
|
-
}
|
27444
|
-
this.dragDropAddTargetToRow(dragDropInfo, null);
|
27445
|
-
};
|
27446
27905
|
PanelModelBase.prototype.updateRowsOnElementRemoved = function (element) {
|
27447
27906
|
if (!this.canBuildRows())
|
27448
27907
|
return;
|
@@ -27762,147 +28221,13 @@ var PanelModelBase = /** @class */ (function (_super) {
|
|
27762
28221
|
}
|
27763
28222
|
};
|
27764
28223
|
PanelModelBase.prototype.dragDropAddTarget = function (dragDropInfo) {
|
27765
|
-
|
27766
|
-
if (this.dragDropAddTargetToRow(dragDropInfo, prevRow)) {
|
27767
|
-
this.updateRowsRemoveElementFromRow(dragDropInfo.target, prevRow);
|
27768
|
-
}
|
28224
|
+
this.dragDropPanelHelper.dragDropAddTarget(dragDropInfo);
|
27769
28225
|
};
|
27770
28226
|
PanelModelBase.prototype.dragDropFindRow = function (findElement) {
|
27771
|
-
|
27772
|
-
return null;
|
27773
|
-
var element = findElement;
|
27774
|
-
var rows = this.rows;
|
27775
|
-
for (var i = 0; i < rows.length; i++) {
|
27776
|
-
if (rows[i].elements.indexOf(element) > -1)
|
27777
|
-
return rows[i];
|
27778
|
-
}
|
27779
|
-
for (var i = 0; i < this.elements.length; i++) {
|
27780
|
-
var pnl = this.elements[i].getPanel();
|
27781
|
-
if (!pnl)
|
27782
|
-
continue;
|
27783
|
-
var row = pnl.dragDropFindRow(element);
|
27784
|
-
if (!!row)
|
27785
|
-
return row;
|
27786
|
-
}
|
27787
|
-
return null;
|
27788
|
-
};
|
27789
|
-
PanelModelBase.prototype.dragDropAddTargetToRow = function (dragDropInfo, prevRow) {
|
27790
|
-
if (!dragDropInfo.destination)
|
27791
|
-
return true;
|
27792
|
-
if (this.dragDropAddTargetToEmptyPanel(dragDropInfo))
|
27793
|
-
return true;
|
27794
|
-
var dest = dragDropInfo.destination;
|
27795
|
-
var destRow = this.dragDropFindRow(dest);
|
27796
|
-
if (!destRow)
|
27797
|
-
return true;
|
27798
|
-
if (_settings__WEBPACK_IMPORTED_MODULE_7__["settings"].supportCreatorV2 && this.isDesignMode) {
|
27799
|
-
if (destRow.elements.length > 1)
|
27800
|
-
return this.dragDropAddTargetToExistingRow(dragDropInfo, destRow, prevRow);
|
27801
|
-
else
|
27802
|
-
return this.dragDropAddTargetToNewRow(dragDropInfo, destRow, prevRow);
|
27803
|
-
}
|
27804
|
-
if (!dragDropInfo.target.startWithNewLine)
|
27805
|
-
return this.dragDropAddTargetToExistingRow(dragDropInfo, destRow, prevRow);
|
27806
|
-
return this.dragDropAddTargetToNewRow(dragDropInfo, destRow, prevRow);
|
27807
|
-
};
|
27808
|
-
PanelModelBase.prototype.dragDropAddTargetToEmptyPanel = function (dragDropInfo) {
|
27809
|
-
if (dragDropInfo.destination.isPage) {
|
27810
|
-
this.dragDropAddTargetToEmptyPanelCore(this.root, dragDropInfo.target, dragDropInfo.isBottom);
|
27811
|
-
return true;
|
27812
|
-
}
|
27813
|
-
var dest = dragDropInfo.destination;
|
27814
|
-
if (dest.isPanel && !dragDropInfo.isEdge) {
|
27815
|
-
var panel = dest;
|
27816
|
-
if (dragDropInfo.target["template"] === dest) {
|
27817
|
-
return false;
|
27818
|
-
}
|
27819
|
-
if (dragDropInfo.nestedPanelDepth < 0 ||
|
27820
|
-
dragDropInfo.nestedPanelDepth >= panel.depth) {
|
27821
|
-
this.dragDropAddTargetToEmptyPanelCore(dest, dragDropInfo.target, dragDropInfo.isBottom);
|
27822
|
-
return true;
|
27823
|
-
}
|
27824
|
-
}
|
27825
|
-
return false;
|
27826
|
-
};
|
27827
|
-
PanelModelBase.prototype.dragDropAddTargetToExistingRow = function (dragDropInfo, destRow, prevRow) {
|
27828
|
-
var index = destRow.elements.indexOf(dragDropInfo.destination);
|
27829
|
-
if (index == 0 &&
|
27830
|
-
!dragDropInfo.isBottom) {
|
27831
|
-
if (this.isDesignMode && _settings__WEBPACK_IMPORTED_MODULE_7__["settings"].supportCreatorV2) {
|
27832
|
-
}
|
27833
|
-
else if (destRow.elements[0].startWithNewLine) {
|
27834
|
-
if (destRow.index > 0) {
|
27835
|
-
dragDropInfo.isBottom = true;
|
27836
|
-
destRow = destRow.panel.rows[destRow.index - 1];
|
27837
|
-
dragDropInfo.destination =
|
27838
|
-
destRow.elements[destRow.elements.length - 1];
|
27839
|
-
return this.dragDropAddTargetToExistingRow(dragDropInfo, destRow, prevRow);
|
27840
|
-
}
|
27841
|
-
else {
|
27842
|
-
return this.dragDropAddTargetToNewRow(dragDropInfo, destRow, prevRow);
|
27843
|
-
}
|
27844
|
-
}
|
27845
|
-
}
|
27846
|
-
var prevRowIndex = -1;
|
27847
|
-
if (prevRow == destRow) {
|
27848
|
-
prevRowIndex = destRow.elements.indexOf(dragDropInfo.target);
|
27849
|
-
}
|
27850
|
-
if (dragDropInfo.isBottom)
|
27851
|
-
index++;
|
27852
|
-
var srcRow = this.findRowByElement(dragDropInfo.source);
|
27853
|
-
if (srcRow == destRow &&
|
27854
|
-
srcRow.elements.indexOf(dragDropInfo.source) == index)
|
27855
|
-
return false;
|
27856
|
-
if (index == prevRowIndex)
|
27857
|
-
return false;
|
27858
|
-
if (prevRowIndex > -1) {
|
27859
|
-
destRow.elements.splice(prevRowIndex, 1);
|
27860
|
-
if (prevRowIndex < index)
|
27861
|
-
index--;
|
27862
|
-
}
|
27863
|
-
destRow.elements.splice(index, 0, dragDropInfo.target);
|
27864
|
-
destRow.updateVisible();
|
27865
|
-
return prevRowIndex < 0;
|
27866
|
-
};
|
27867
|
-
PanelModelBase.prototype.dragDropAddTargetToNewRow = function (dragDropInfo, destRow, prevRow) {
|
27868
|
-
var targetRow = destRow.panel.createRowAndSetLazy(destRow.panel.rows.length);
|
27869
|
-
if (this.isDesignMode && _settings__WEBPACK_IMPORTED_MODULE_7__["settings"].supportCreatorV2) {
|
27870
|
-
targetRow.setIsLazyRendering(false);
|
27871
|
-
}
|
27872
|
-
targetRow.addElement(dragDropInfo.target);
|
27873
|
-
var index = destRow.index;
|
27874
|
-
if (dragDropInfo.isBottom) {
|
27875
|
-
index++;
|
27876
|
-
}
|
27877
|
-
//same row
|
27878
|
-
if (!!prevRow && prevRow.panel == targetRow.panel && prevRow.index == index)
|
27879
|
-
return false;
|
27880
|
-
var srcRow = this.findRowByElement(dragDropInfo.source);
|
27881
|
-
if (!!srcRow &&
|
27882
|
-
srcRow.panel == targetRow.panel &&
|
27883
|
-
srcRow.elements.length == 1 &&
|
27884
|
-
srcRow.index == index)
|
27885
|
-
return false;
|
27886
|
-
destRow.panel.rows.splice(index, 0, targetRow);
|
27887
|
-
return true;
|
27888
|
-
};
|
27889
|
-
PanelModelBase.prototype.dragDropAddTargetToEmptyPanelCore = function (panel, target, isBottom) {
|
27890
|
-
var targetRow = panel.createRow();
|
27891
|
-
targetRow.addElement(target);
|
27892
|
-
if (panel.elements.length == 0 || isBottom) {
|
27893
|
-
panel.rows.push(targetRow);
|
27894
|
-
}
|
27895
|
-
else {
|
27896
|
-
panel.rows.splice(0, 0, targetRow);
|
27897
|
-
}
|
28227
|
+
return this.dragDropPanelHelper.dragDropFindRow(findElement);
|
27898
28228
|
};
|
27899
28229
|
PanelModelBase.prototype.dragDropMoveElement = function (src, target, targetIndex) {
|
27900
|
-
|
27901
|
-
if (targetIndex > srcIndex) {
|
27902
|
-
targetIndex--;
|
27903
|
-
}
|
27904
|
-
this.removeElement(src);
|
27905
|
-
this.addElement(target, targetIndex);
|
28230
|
+
this.dragDropPanelHelper.dragDropMoveElement(src, target, targetIndex);
|
27906
28231
|
};
|
27907
28232
|
PanelModelBase.prototype.needResponsiveWidth = function () {
|
27908
28233
|
var result = false;
|
@@ -28064,7 +28389,7 @@ var PanelModel = /** @class */ (function (_super) {
|
|
28064
28389
|
* @see SurveyModel.questionTitlePattern
|
28065
28390
|
*/
|
28066
28391
|
get: function () {
|
28067
|
-
return this.getPropertyValue("showNumber"
|
28392
|
+
return this.getPropertyValue("showNumber");
|
28068
28393
|
},
|
28069
28394
|
set: function (val) {
|
28070
28395
|
this.setPropertyValue("showNumber", val);
|
@@ -28342,15 +28667,23 @@ var PanelModel = /** @class */ (function (_super) {
|
|
28342
28667
|
return;
|
28343
28668
|
this.survey.whenPanelFocusIn(this);
|
28344
28669
|
};
|
28345
|
-
PanelModel.prototype.
|
28346
|
-
return
|
28347
|
-
|
28348
|
-
|
28349
|
-
|
28350
|
-
|
28351
|
-
|
28670
|
+
PanelModel.prototype.getHasFrameV2 = function () {
|
28671
|
+
return _super.prototype.getHasFrameV2.call(this) && (!this.originalPage || this.survey.isShowingPreview);
|
28672
|
+
};
|
28673
|
+
PanelModel.prototype.getIsNested = function () {
|
28674
|
+
return _super.prototype.getIsNested.call(this) && this.parent !== undefined;
|
28675
|
+
};
|
28676
|
+
PanelModel.prototype.getCssRoot = function (cssClasses) {
|
28677
|
+
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_9__["CssClassBuilder"]()
|
28678
|
+
.append(_super.prototype.getCssRoot.call(this, cssClasses))
|
28679
|
+
.append(cssClasses.container)
|
28680
|
+
.append(cssClasses.asPage, !!this.originalPage && !this.survey.isShowingPreview)
|
28681
|
+
.append(cssClasses.invisible, !this.isDesignMode && this.areInvisibleElementsShowing && !this.visible)
|
28352
28682
|
.toString();
|
28353
28683
|
};
|
28684
|
+
PanelModel.prototype.getContainerCss = function () {
|
28685
|
+
return this.getCssRoot(this.cssClasses.panel);
|
28686
|
+
};
|
28354
28687
|
return PanelModel;
|
28355
28688
|
}(PanelModelBase));
|
28356
28689
|
|
@@ -30656,7 +30989,9 @@ var PopupBaseViewModel = /** @class */ (function (_super) {
|
|
30656
30989
|
this.switchFocus();
|
30657
30990
|
};
|
30658
30991
|
PopupBaseViewModel.prototype.updateOnHiding = function () {
|
30659
|
-
this.
|
30992
|
+
if (this.isFocusedContent && this.prevActiveElement) {
|
30993
|
+
this.prevActiveElement.focus();
|
30994
|
+
}
|
30660
30995
|
};
|
30661
30996
|
PopupBaseViewModel.prototype.focusFirstInput = function () {
|
30662
30997
|
var _this = this;
|
@@ -31195,7 +31530,6 @@ var Question = /** @class */ (function (_super) {
|
|
31195
31530
|
* You can use question values as placeholders in the following places:
|
31196
31531
|
*
|
31197
31532
|
* - Survey element titles and descriptions
|
31198
|
-
* - The [`expression`](https://surveyjs.io/form-library/documentation/questionexpressionmodel#expression) property of the [Expression](https://surveyjs.io/form-library/documentation/questionexpressionmodel) question
|
31199
31533
|
* - The [`html`](https://surveyjs.io/form-library/documentation/questionhtmlmodel#html) property of the [HTML](https://surveyjs.io/form-library/documentation/questionhtmlmodel) question
|
31200
31534
|
*
|
31201
31535
|
* To use a question value as a placeholder, specify the question `name` in curly brackets: `{questionName}`. Refer to the following help topic for more information: [Dynamic Texts - Question Values](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#question-values).
|
@@ -31812,6 +32146,7 @@ var Question = /** @class */ (function (_super) {
|
|
31812
32146
|
};
|
31813
32147
|
Question.prototype.getCssRoot = function (cssClasses) {
|
31814
32148
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_10__["CssClassBuilder"]()
|
32149
|
+
.append(_super.prototype.getCssRoot.call(this, cssClasses))
|
31815
32150
|
.append(this.isFlowLayout && !this.isDesignMode
|
31816
32151
|
? cssClasses.flowRoot
|
31817
32152
|
: cssClasses.mainRoot)
|
@@ -31819,10 +32154,6 @@ var Question = /** @class */ (function (_super) {
|
|
31819
32154
|
.append(cssClasses.hasError, this.errors.length > 0)
|
31820
32155
|
.append(cssClasses.small, !this.width)
|
31821
32156
|
.append(cssClasses.answered, this.isAnswered)
|
31822
|
-
.append(cssClasses.expanded, !!this.isExpanded)
|
31823
|
-
.append(cssClasses.collapsed, !!this.isCollapsed)
|
31824
|
-
.append(cssClasses.withFrame, this.hasFrameV2)
|
31825
|
-
.append(cssClasses.nested, (this.hasParent || !this.isSingleInRow) && this.isDefaultV2Theme)
|
31826
32157
|
.toString();
|
31827
32158
|
};
|
31828
32159
|
Object.defineProperty(Question.prototype, "cssHeader", {
|
@@ -32785,7 +33116,9 @@ var Question = /** @class */ (function (_super) {
|
|
32785
33116
|
var _this = this;
|
32786
33117
|
this.defaultValueRunner = this.getDefaultRunner(this.defaultValueRunner, this.defaultValueExpression);
|
32787
33118
|
this.setValueAndRunExpression(this.defaultValueRunner, this.getUnbindValue(this.defaultValue), function (val) {
|
32788
|
-
_this.value
|
33119
|
+
if (!_helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isTwoValueEquals(_this.value, val)) {
|
33120
|
+
_this.value = val;
|
33121
|
+
}
|
32789
33122
|
});
|
32790
33123
|
};
|
32791
33124
|
Question.prototype.isValueExpression = function (val) {
|
@@ -32816,7 +33149,11 @@ var Question = /** @class */ (function (_super) {
|
|
32816
33149
|
return false;
|
32817
33150
|
if (!setFunc) {
|
32818
33151
|
setFunc = function (val) {
|
32819
|
-
_this.runExpressionSetValue(val, function (val) {
|
33152
|
+
_this.runExpressionSetValue(val, function (val) {
|
33153
|
+
if (!_helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isTwoValueEquals(_this.value, val)) {
|
33154
|
+
_this.value = val;
|
33155
|
+
}
|
33156
|
+
});
|
32820
33157
|
};
|
32821
33158
|
}
|
32822
33159
|
if (!values)
|
@@ -33943,7 +34280,7 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
33943
34280
|
* @see noneText
|
33944
34281
|
*/
|
33945
34282
|
get: function () {
|
33946
|
-
return this.getPropertyValue("showNoneItem"
|
34283
|
+
return this.getPropertyValue("showNoneItem");
|
33947
34284
|
},
|
33948
34285
|
set: function (val) {
|
33949
34286
|
this.setPropertyValue("showNoneItem", val);
|
@@ -34112,6 +34449,19 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
34112
34449
|
QuestionSelectBase.prototype.onEnableItemCallBack = function (item) {
|
34113
34450
|
return true;
|
34114
34451
|
};
|
34452
|
+
QuestionSelectBase.prototype.onSelectedItemValuesChangedHandler = function (newValue) { };
|
34453
|
+
QuestionSelectBase.prototype.getSingleSelectedItem = function () {
|
34454
|
+
var selectedItemValues = this.selectedItemValues;
|
34455
|
+
if (this.isEmpty())
|
34456
|
+
return null;
|
34457
|
+
var itemValue = _itemvalue__WEBPACK_IMPORTED_MODULE_3__["ItemValue"].getItemByValue(this.visibleChoices, this.value);
|
34458
|
+
this.onGetSingleSelectedItem(itemValue);
|
34459
|
+
if (!itemValue && !selectedItemValues) {
|
34460
|
+
this.updateSelectedItemValues();
|
34461
|
+
}
|
34462
|
+
return itemValue || selectedItemValues || (this.isOtherSelected ? this.otherItem : new _itemvalue__WEBPACK_IMPORTED_MODULE_3__["ItemValue"](this.value));
|
34463
|
+
};
|
34464
|
+
QuestionSelectBase.prototype.onGetSingleSelectedItem = function (selectedItemByValue) { };
|
34115
34465
|
QuestionSelectBase.prototype.setConditionalChoicesRunner = function () {
|
34116
34466
|
if (this.choicesVisibleIf) {
|
34117
34467
|
if (!this.conditionChoicesVisibleIfRunner) {
|
@@ -34478,7 +34828,7 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
34478
34828
|
* This property is useful if you show or hide choice items at runtime based on a [condition](https://surveyjs.io/form-library/documentation/questionselectbase#choicesVisibleIf).
|
34479
34829
|
*/
|
34480
34830
|
get: function () {
|
34481
|
-
return this.getPropertyValue("hideIfChoicesEmpty"
|
34831
|
+
return this.getPropertyValue("hideIfChoicesEmpty");
|
34482
34832
|
},
|
34483
34833
|
set: function (val) {
|
34484
34834
|
this.setPropertyValue("hideIfChoicesEmpty", val);
|
@@ -35069,7 +35419,9 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
35069
35419
|
return;
|
35070
35420
|
this.isUpdatingChoicesDependedQuestions = true;
|
35071
35421
|
for (var i = 0; i < this.dependedQuestions.length; i++) {
|
35072
|
-
this.dependedQuestions[i]
|
35422
|
+
var q = this.dependedQuestions[i];
|
35423
|
+
q.onVisibleChoicesChanged();
|
35424
|
+
q.clearIncorrectValuesCore();
|
35073
35425
|
}
|
35074
35426
|
this.isUpdatingChoicesDependedQuestions = false;
|
35075
35427
|
};
|
@@ -35474,10 +35826,12 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
35474
35826
|
return classes;
|
35475
35827
|
};
|
35476
35828
|
__decorate([
|
35477
|
-
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])()
|
35829
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({ onSet: function (newVal, target) {
|
35830
|
+
target.onSelectedItemValuesChangedHandler(newVal);
|
35831
|
+
} })
|
35478
35832
|
], QuestionSelectBase.prototype, "selectedItemValues", void 0);
|
35479
35833
|
__decorate([
|
35480
|
-
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])(
|
35834
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])()
|
35481
35835
|
], QuestionSelectBase.prototype, "separateSpecialChoices", void 0);
|
35482
35836
|
__decorate([
|
35483
35837
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({ localizable: true })
|
@@ -36429,7 +36783,7 @@ var QuestionCheckboxModel = /** @class */ (function (_super) {
|
|
36429
36783
|
* @see separateSpecialChoices
|
36430
36784
|
*/
|
36431
36785
|
get: function () {
|
36432
|
-
return this.getPropertyValue("showSelectAllItem"
|
36786
|
+
return this.getPropertyValue("showSelectAllItem");
|
36433
36787
|
},
|
36434
36788
|
set: function (val) {
|
36435
36789
|
this.setPropertyValue("showSelectAllItem", val);
|
@@ -37907,7 +38261,11 @@ var QuestionCompositeModel = /** @class */ (function (_super) {
|
|
37907
38261
|
var questions = this.contentPanel.questions;
|
37908
38262
|
for (var i = 0; i < questions.length; i++) {
|
37909
38263
|
var key = questions[i].getValueName();
|
37910
|
-
|
38264
|
+
var val = !!newValue ? newValue[key] : undefined;
|
38265
|
+
var q = questions[i];
|
38266
|
+
if (!this.isTwoValueEquals(q.value, val)) {
|
38267
|
+
q.value = val;
|
38268
|
+
}
|
37911
38269
|
}
|
37912
38270
|
this.settingNewValue = false;
|
37913
38271
|
};
|
@@ -38088,22 +38446,15 @@ var QuestionDropdownModel = /** @class */ (function (_super) {
|
|
38088
38446
|
configurable: true
|
38089
38447
|
});
|
38090
38448
|
Object.defineProperty(QuestionDropdownModel.prototype, "selectedItem", {
|
38091
|
-
get: function () {
|
38092
|
-
var selectedItemValues = this.selectedItemValues;
|
38093
|
-
if (this.isEmpty())
|
38094
|
-
return null;
|
38095
|
-
var itemValue = _itemvalue__WEBPACK_IMPORTED_MODULE_3__["ItemValue"].getItemByValue(this.visibleChoices, this.value);
|
38096
|
-
if (!!itemValue) {
|
38097
|
-
this.lastSelectedItemValue = itemValue;
|
38098
|
-
}
|
38099
|
-
else if (!selectedItemValues) {
|
38100
|
-
this.updateSelectedItemValues();
|
38101
|
-
}
|
38102
|
-
return this.lastSelectedItemValue || selectedItemValues || (this.isOtherSelected ? this.otherItem : new _itemvalue__WEBPACK_IMPORTED_MODULE_3__["ItemValue"](this.value));
|
38103
|
-
},
|
38449
|
+
get: function () { return this.getSingleSelectedItem(); },
|
38104
38450
|
enumerable: false,
|
38105
38451
|
configurable: true
|
38106
38452
|
});
|
38453
|
+
QuestionDropdownModel.prototype.onGetSingleSelectedItem = function (selectedItemByValue) {
|
38454
|
+
if (!!selectedItemByValue) {
|
38455
|
+
this.lastSelectedItemValue = selectedItemByValue;
|
38456
|
+
}
|
38457
|
+
};
|
38107
38458
|
QuestionDropdownModel.prototype.supportGoNextPageAutomatic = function () {
|
38108
38459
|
return true;
|
38109
38460
|
};
|
@@ -38249,20 +38600,41 @@ var QuestionDropdownModel = /** @class */ (function (_super) {
|
|
38249
38600
|
enumerable: false,
|
38250
38601
|
configurable: true
|
38251
38602
|
});
|
38603
|
+
Object.defineProperty(QuestionDropdownModel.prototype, "dropdownListModel", {
|
38604
|
+
get: function () {
|
38605
|
+
if (this.renderAs !== "select" && !this.dropdownListModelValue) {
|
38606
|
+
this.dropdownListModelValue = new _dropdownListModel__WEBPACK_IMPORTED_MODULE_5__["DropdownListModel"](this);
|
38607
|
+
}
|
38608
|
+
return this.dropdownListModelValue;
|
38609
|
+
},
|
38610
|
+
set: function (val) {
|
38611
|
+
this.dropdownListModelValue = val;
|
38612
|
+
},
|
38613
|
+
enumerable: false,
|
38614
|
+
configurable: true
|
38615
|
+
});
|
38252
38616
|
Object.defineProperty(QuestionDropdownModel.prototype, "popupModel", {
|
38253
38617
|
get: function () {
|
38254
38618
|
var _a;
|
38255
|
-
if (this.renderAs !== "select" && !this.dropdownListModel) {
|
38256
|
-
this.dropdownListModel = new _dropdownListModel__WEBPACK_IMPORTED_MODULE_5__["DropdownListModel"](this);
|
38257
|
-
}
|
38258
38619
|
return (_a = this.dropdownListModel) === null || _a === void 0 ? void 0 : _a.popupModel;
|
38259
38620
|
},
|
38260
38621
|
enumerable: false,
|
38261
38622
|
configurable: true
|
38262
38623
|
});
|
38624
|
+
Object.defineProperty(QuestionDropdownModel.prototype, "ariaExpanded", {
|
38625
|
+
get: function () {
|
38626
|
+
return this.popupModel.isVisible;
|
38627
|
+
},
|
38628
|
+
enumerable: false,
|
38629
|
+
configurable: true
|
38630
|
+
});
|
38263
38631
|
QuestionDropdownModel.prototype.onOpenedCallBack = function () {
|
38264
38632
|
this.onOpened.fire(this, { question: this, choices: this.choices });
|
38265
38633
|
};
|
38634
|
+
QuestionDropdownModel.prototype.onSelectedItemValuesChangedHandler = function (newValue) {
|
38635
|
+
var _a;
|
38636
|
+
(_a = this.dropdownListModel) === null || _a === void 0 ? void 0 : _a.setInputStringFromSelectedItem(newValue);
|
38637
|
+
};
|
38266
38638
|
QuestionDropdownModel.prototype.hasUnknownValue = function (val, includeOther, isFilteredChoices, checkEmptyValue) {
|
38267
38639
|
if (this.choicesLazyLoadEnabled) {
|
38268
38640
|
return false;
|
@@ -38297,11 +38669,10 @@ var QuestionDropdownModel = /** @class */ (function (_super) {
|
|
38297
38669
|
}
|
38298
38670
|
};
|
38299
38671
|
__decorate([
|
38300
|
-
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])(
|
38672
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])()
|
38301
38673
|
], QuestionDropdownModel.prototype, "allowClear", void 0);
|
38302
38674
|
__decorate([
|
38303
38675
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({
|
38304
|
-
defaultValue: true,
|
38305
38676
|
onSet: function (newValue, target) {
|
38306
38677
|
if (!!target.dropdownListModel) {
|
38307
38678
|
target.dropdownListModel.setSearchEnabled(newValue);
|
@@ -38316,7 +38687,7 @@ var QuestionDropdownModel = /** @class */ (function (_super) {
|
|
38316
38687
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({ defaultValue: "" })
|
38317
38688
|
], QuestionDropdownModel.prototype, "readOnlyText", void 0);
|
38318
38689
|
__decorate([
|
38319
|
-
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])(
|
38690
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])()
|
38320
38691
|
], QuestionDropdownModel.prototype, "choicesLazyLoadEnabled", void 0);
|
38321
38692
|
__decorate([
|
38322
38693
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({ defaultValue: 25 })
|
@@ -39711,7 +40082,7 @@ var QuestionHtmlModel = /** @class */ (function (_super) {
|
|
39711
40082
|
var locHtml = _this.createLocalizableString("html", _this);
|
39712
40083
|
locHtml.onGetTextCallback = function (str) {
|
39713
40084
|
return !!_this.survey && !_this.ignoreHtmlProgressing
|
39714
|
-
? _this.
|
40085
|
+
? _this.processHtml(str)
|
39715
40086
|
: str;
|
39716
40087
|
};
|
39717
40088
|
return _this;
|
@@ -39755,11 +40126,14 @@ var QuestionHtmlModel = /** @class */ (function (_super) {
|
|
39755
40126
|
});
|
39756
40127
|
Object.defineProperty(QuestionHtmlModel.prototype, "processedHtml", {
|
39757
40128
|
get: function () {
|
39758
|
-
return this.
|
40129
|
+
return this.processHtml(this.html);
|
39759
40130
|
},
|
39760
40131
|
enumerable: false,
|
39761
40132
|
configurable: true
|
39762
40133
|
});
|
40134
|
+
QuestionHtmlModel.prototype.processHtml = function (html) {
|
40135
|
+
return this.survey ? this.survey.processHtml(html, "html-question") : this.html;
|
40136
|
+
};
|
39763
40137
|
return QuestionHtmlModel;
|
39764
40138
|
}(_questionnonvalue__WEBPACK_IMPORTED_MODULE_0__["QuestionNonValue"]));
|
39765
40139
|
|
@@ -41001,7 +41375,7 @@ var QuestionMatrixModel = /** @class */ (function (_super) {
|
|
41001
41375
|
* @see isRequired
|
41002
41376
|
*/
|
41003
41377
|
get: function () {
|
41004
|
-
return this.getPropertyValue("isAllRowRequired"
|
41378
|
+
return this.getPropertyValue("isAllRowRequired");
|
41005
41379
|
},
|
41006
41380
|
set: function (val) {
|
41007
41381
|
this.setPropertyValue("isAllRowRequired", val);
|
@@ -41546,7 +41920,7 @@ var QuestionMatrixDropdownModel = /** @class */ (function (_super) {
|
|
41546
41920
|
* @see rowsVisibleIf
|
41547
41921
|
*/
|
41548
41922
|
get: function () {
|
41549
|
-
return this.getPropertyValue("hideIfRowsEmpty"
|
41923
|
+
return this.getPropertyValue("hideIfRowsEmpty");
|
41550
41924
|
},
|
41551
41925
|
set: function (val) {
|
41552
41926
|
this.setPropertyValue("hideIfRowsEmpty", val);
|
@@ -42893,7 +43267,7 @@ var QuestionMatrixDropdownModelBase = /** @class */ (function (_super) {
|
|
42893
43267
|
});
|
42894
43268
|
Object.defineProperty(QuestionMatrixDropdownModelBase.prototype, "horizontalScroll", {
|
42895
43269
|
get: function () {
|
42896
|
-
return this.getPropertyValue("horizontalScroll"
|
43270
|
+
return this.getPropertyValue("horizontalScroll");
|
42897
43271
|
},
|
42898
43272
|
set: function (val) {
|
42899
43273
|
this.setPropertyValue("horizontalScroll", val);
|
@@ -43170,7 +43544,8 @@ var QuestionMatrixDropdownModelBase = /** @class */ (function (_super) {
|
|
43170
43544
|
return this.getColumnByName(columnName);
|
43171
43545
|
};
|
43172
43546
|
QuestionMatrixDropdownModelBase.prototype.getColumnWidth = function (column) {
|
43173
|
-
|
43547
|
+
var _a;
|
43548
|
+
return column.minWidth ? column.minWidth : this.columnMinWidth ? this.columnMinWidth : (((_a = _settings__WEBPACK_IMPORTED_MODULE_9__["settings"].matrix.columnWidthsByType[column.cellType]) === null || _a === void 0 ? void 0 : _a.minWidth) || "");
|
43174
43549
|
};
|
43175
43550
|
Object.defineProperty(QuestionMatrixDropdownModelBase.prototype, "choices", {
|
43176
43551
|
/**
|
@@ -44040,10 +44415,10 @@ var QuestionMatrixDropdownModelBase = /** @class */ (function (_super) {
|
|
44040
44415
|
return this.SurveyModel.getMatrixCellTemplateData(cell);
|
44041
44416
|
};
|
44042
44417
|
QuestionMatrixDropdownModelBase.prototype.getCellWrapperComponentName = function (cell) {
|
44043
|
-
return this.SurveyModel.getElementWrapperComponentName(cell, "cell");
|
44418
|
+
return this.SurveyModel.getElementWrapperComponentName(cell, cell.row instanceof MatrixDropdownTotalRowModel ? "row-footer" : "cell");
|
44044
44419
|
};
|
44045
44420
|
QuestionMatrixDropdownModelBase.prototype.getCellWrapperComponentData = function (cell) {
|
44046
|
-
return this.SurveyModel.getElementWrapperComponentData(cell, "cell");
|
44421
|
+
return this.SurveyModel.getElementWrapperComponentData(cell, cell.row instanceof MatrixDropdownTotalRowModel ? "row-footer" : "cell");
|
44047
44422
|
};
|
44048
44423
|
QuestionMatrixDropdownModelBase.prototype.getColumnHeaderWrapperComponentName = function (cell) {
|
44049
44424
|
return this.SurveyModel.getElementWrapperComponentName(cell, "column-header");
|
@@ -44486,7 +44861,7 @@ var MatrixDropdownColumn = /** @class */ (function (_super) {
|
|
44486
44861
|
});
|
44487
44862
|
Object.defineProperty(MatrixDropdownColumn.prototype, "showInMultipleColumns", {
|
44488
44863
|
get: function () {
|
44489
|
-
return this.getPropertyValue("showInMultipleColumns"
|
44864
|
+
return this.getPropertyValue("showInMultipleColumns");
|
44490
44865
|
},
|
44491
44866
|
set: function (val) {
|
44492
44867
|
this.setPropertyValue("showInMultipleColumns", val);
|
@@ -44901,7 +45276,14 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addClass("matrixdropdownc
|
|
44901
45276
|
serializationProperty: "locRequiredErrorText",
|
44902
45277
|
},
|
44903
45278
|
"readOnly:boolean",
|
44904
|
-
|
45279
|
+
{
|
45280
|
+
name: "minWidth",
|
45281
|
+
onPropertyEditorUpdate: function (obj, editor) {
|
45282
|
+
if (!!obj && !!editor) {
|
45283
|
+
editor.value = obj.minWidth;
|
45284
|
+
}
|
45285
|
+
}
|
45286
|
+
},
|
44905
45287
|
"width",
|
44906
45288
|
"visibleIf:condition",
|
44907
45289
|
"enableIf:condition",
|
@@ -46049,7 +46431,7 @@ var QuestionMatrixDynamicModel = /** @class */ (function (_super) {
|
|
46049
46431
|
* @see confirmDeleteText
|
46050
46432
|
*/
|
46051
46433
|
get: function () {
|
46052
|
-
return this.getPropertyValue("confirmDelete"
|
46434
|
+
return this.getPropertyValue("confirmDelete");
|
46053
46435
|
},
|
46054
46436
|
set: function (val) {
|
46055
46437
|
this.setPropertyValue("confirmDelete", val);
|
@@ -46094,7 +46476,7 @@ var QuestionMatrixDynamicModel = /** @class */ (function (_super) {
|
|
46094
46476
|
* @see defaultValue
|
46095
46477
|
*/
|
46096
46478
|
get: function () {
|
46097
|
-
return this.getPropertyValue("defaultValueFromLastRow"
|
46479
|
+
return this.getPropertyValue("defaultValueFromLastRow");
|
46098
46480
|
},
|
46099
46481
|
set: function (val) {
|
46100
46482
|
this.setPropertyValue("defaultValueFromLastRow", val);
|
@@ -47777,6 +48159,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
47777
48159
|
/* harmony import */ var _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/cssClassBuilder */ "./src/utils/cssClassBuilder.ts");
|
47778
48160
|
/* harmony import */ var _actions_action__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./actions/action */ "./src/actions/action.ts");
|
47779
48161
|
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./base */ "./src/base.ts");
|
48162
|
+
/* harmony import */ var _actions_adaptive_container__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./actions/adaptive-container */ "./src/actions/adaptive-container.ts");
|
47780
48163
|
var __extends = (undefined && undefined.__extends) || (function () {
|
47781
48164
|
var extendStatics = function (d, b) {
|
47782
48165
|
extendStatics = Object.setPrototypeOf ||
|
@@ -47815,6 +48198,7 @@ var __spreadArray = (undefined && undefined.__spreadArray) || function (to, from
|
|
47815
48198
|
|
47816
48199
|
|
47817
48200
|
|
48201
|
+
|
47818
48202
|
var QuestionPanelDynamicItemTextProcessor = /** @class */ (function (_super) {
|
47819
48203
|
__extends(QuestionPanelDynamicItemTextProcessor, _super);
|
47820
48204
|
function QuestionPanelDynamicItemTextProcessor(data, panelItem, variableName) {
|
@@ -48267,6 +48651,7 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
48267
48651
|
val = this.panelCount - 1;
|
48268
48652
|
this.currentIndexValue = val;
|
48269
48653
|
this.updateFooterActions();
|
48654
|
+
this.updateTabToolbarItemsPressedState();
|
48270
48655
|
this.fireCallback(this.currentIndexChangedCallback);
|
48271
48656
|
}
|
48272
48657
|
},
|
@@ -48304,7 +48689,7 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
48304
48689
|
* @see confirmDeleteText
|
48305
48690
|
*/
|
48306
48691
|
get: function () {
|
48307
|
-
return this.getPropertyValue("confirmDelete"
|
48692
|
+
return this.getPropertyValue("confirmDelete");
|
48308
48693
|
},
|
48309
48694
|
set: function (val) {
|
48310
48695
|
this.setPropertyValue("confirmDelete", val);
|
@@ -48575,6 +48960,7 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
48575
48960
|
for (var i = this.panelCount; i < val; i++) {
|
48576
48961
|
var panel = this.createNewPanel();
|
48577
48962
|
this.panels.push(panel);
|
48963
|
+
this.addTabFromToolbar(panel);
|
48578
48964
|
if (this.renderMode == "list" && this.panelsState != "default") {
|
48579
48965
|
if (this.panelsState === "expand") {
|
48580
48966
|
panel.expand();
|
@@ -48586,13 +48972,16 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
48586
48972
|
}
|
48587
48973
|
}
|
48588
48974
|
}
|
48589
|
-
|
48590
|
-
|
48975
|
+
var removedPanels = [];
|
48976
|
+
if (val < this.panelCount) {
|
48977
|
+
removedPanels = this.panels.splice(val, this.panelCount - val);
|
48978
|
+
}
|
48591
48979
|
this.setValueAfterPanelsCreating();
|
48592
48980
|
this.setValueBasedOnPanelCount();
|
48593
48981
|
this.reRunCondition();
|
48594
48982
|
this.updateFooterActions();
|
48595
48983
|
this.fireCallback(this.panelCountChangedCallback);
|
48984
|
+
(removedPanels.length > 0) && this.removeTabFromToolbar(removedPanels);
|
48596
48985
|
},
|
48597
48986
|
enumerable: false,
|
48598
48987
|
configurable: true
|
@@ -48834,6 +49223,19 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
48834
49223
|
enumerable: false,
|
48835
49224
|
configurable: true
|
48836
49225
|
});
|
49226
|
+
Object.defineProperty(QuestionPanelDynamicModel.prototype, "tabAlign", {
|
49227
|
+
get: function () {
|
49228
|
+
return this.getPropertyValue("tabAlign");
|
49229
|
+
},
|
49230
|
+
set: function (val) {
|
49231
|
+
this.setPropertyValue("tabAlign", val);
|
49232
|
+
if (this.isRenderModeTab) {
|
49233
|
+
this.additionalTitleToolbar.containerCss = this.getAdditionalTitleToolbarCss();
|
49234
|
+
}
|
49235
|
+
},
|
49236
|
+
enumerable: false,
|
49237
|
+
configurable: true
|
49238
|
+
});
|
48837
49239
|
Object.defineProperty(QuestionPanelDynamicModel.prototype, "isRenderModeList", {
|
48838
49240
|
get: function () {
|
48839
49241
|
return this.renderMode === "list";
|
@@ -48841,6 +49243,25 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
48841
49243
|
enumerable: false,
|
48842
49244
|
configurable: true
|
48843
49245
|
});
|
49246
|
+
Object.defineProperty(QuestionPanelDynamicModel.prototype, "isRenderModeTab", {
|
49247
|
+
get: function () {
|
49248
|
+
return this.renderMode === "tab";
|
49249
|
+
},
|
49250
|
+
enumerable: false,
|
49251
|
+
configurable: true
|
49252
|
+
});
|
49253
|
+
Object.defineProperty(QuestionPanelDynamicModel.prototype, "hasTitleOnLeftTop", {
|
49254
|
+
get: function () {
|
49255
|
+
if (this.isRenderModeTab && !!this.panelCount)
|
49256
|
+
return true;
|
49257
|
+
if (!this.hasTitle)
|
49258
|
+
return false;
|
49259
|
+
var location = this.getTitleLocation();
|
49260
|
+
return location === "left" || location === "top";
|
49261
|
+
},
|
49262
|
+
enumerable: false,
|
49263
|
+
configurable: true
|
49264
|
+
});
|
48844
49265
|
QuestionPanelDynamicModel.prototype.setVisibleIndex = function (value) {
|
48845
49266
|
if (!this.isVisible)
|
48846
49267
|
return 0;
|
@@ -48937,6 +49358,7 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
48937
49358
|
this.reRunCondition();
|
48938
49359
|
this.updateFooterActions();
|
48939
49360
|
this.fireCallback(this.panelCountChangedCallback);
|
49361
|
+
this.updateTabToolbar();
|
48940
49362
|
};
|
48941
49363
|
Object.defineProperty(QuestionPanelDynamicModel.prototype, "defaultPanelValue", {
|
48942
49364
|
/**
|
@@ -48961,7 +49383,7 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
48961
49383
|
* @see defaultValue
|
48962
49384
|
*/
|
48963
49385
|
get: function () {
|
48964
|
-
return this.getPropertyValue("defaultValueFromLastPanel"
|
49386
|
+
return this.getPropertyValue("defaultValueFromLastPanel");
|
48965
49387
|
},
|
48966
49388
|
set: function (val) {
|
48967
49389
|
this.setPropertyValue("defaultValueFromLastPanel", val);
|
@@ -49132,6 +49554,7 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
49132
49554
|
if (this.survey)
|
49133
49555
|
this.survey.dynamicPanelRemoved(this, index, panel);
|
49134
49556
|
this.isValueChangingInternally = false;
|
49557
|
+
this.removeTabFromToolbar([panel]);
|
49135
49558
|
};
|
49136
49559
|
QuestionPanelDynamicModel.prototype.getPanelIndex = function (val) {
|
49137
49560
|
if (_helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isNumber(val))
|
@@ -49789,6 +50212,18 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
49789
50212
|
QuestionPanelDynamicModel.prototype.getRootCss = function () {
|
49790
50213
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_9__["CssClassBuilder"]().append(_super.prototype.getRootCss.call(this)).append(this.cssClasses.empty, this.getShowNoEntriesPlaceholder()).toString();
|
49791
50214
|
};
|
50215
|
+
Object.defineProperty(QuestionPanelDynamicModel.prototype, "cssHeader", {
|
50216
|
+
get: function () {
|
50217
|
+
var showTab = this.isRenderModeTab && !!this.panelCount;
|
50218
|
+
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_9__["CssClassBuilder"]()
|
50219
|
+
.append(this.cssClasses.header)
|
50220
|
+
.append(this.cssClasses.headerTop, this.hasTitleOnTop || showTab)
|
50221
|
+
.append(this.cssClasses.headerTab, showTab)
|
50222
|
+
.toString();
|
50223
|
+
},
|
50224
|
+
enumerable: false,
|
50225
|
+
configurable: true
|
50226
|
+
});
|
49792
50227
|
QuestionPanelDynamicModel.prototype.getPanelWrapperCss = function () {
|
49793
50228
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_9__["CssClassBuilder"]()
|
49794
50229
|
.append(this.cssClasses.panelWrapper)
|
@@ -49850,6 +50285,22 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
49850
50285
|
return true;
|
49851
50286
|
return false;
|
49852
50287
|
};
|
50288
|
+
QuestionPanelDynamicModel.prototype.getAdditionalTitleToolbar = function () {
|
50289
|
+
if (!this.isRenderModeTab)
|
50290
|
+
return null;
|
50291
|
+
if (!this.additionalTitleToolbarValue) {
|
50292
|
+
this.additionalTitleToolbarValue = new _actions_adaptive_container__WEBPACK_IMPORTED_MODULE_12__["AdaptiveActionContainer"]();
|
50293
|
+
this.additionalTitleToolbarValue.containerCss = this.getAdditionalTitleToolbarCss();
|
50294
|
+
this.additionalTitleToolbarValue.cssClasses = {
|
50295
|
+
item: "sv-tab-item",
|
50296
|
+
itemPressed: "sv-tab-item--pressed",
|
50297
|
+
itemAsIcon: "sv-tab-item--icon",
|
50298
|
+
itemIcon: "sv-tab-item__icon",
|
50299
|
+
itemTitle: "sv-tab-item__title"
|
50300
|
+
};
|
50301
|
+
}
|
50302
|
+
return this.additionalTitleToolbarValue;
|
50303
|
+
};
|
49853
50304
|
Object.defineProperty(QuestionPanelDynamicModel.prototype, "footerToolbar", {
|
49854
50305
|
get: function () {
|
49855
50306
|
if (!this.footerToolbarValue) {
|
@@ -49924,6 +50375,64 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
49924
50375
|
this.updateFooterActionsCallback();
|
49925
50376
|
this.footerToolbarValue.setItems(items);
|
49926
50377
|
};
|
50378
|
+
QuestionPanelDynamicModel.prototype.createTabByPanel = function (panel) {
|
50379
|
+
var _this = this;
|
50380
|
+
if (!this.isRenderModeTab)
|
50381
|
+
return;
|
50382
|
+
var index = this.getPanelIndex(panel);
|
50383
|
+
var title = this.getLocalizationFormatString("panelDynamicTabTextFormat", index + 1);
|
50384
|
+
var newItem = new _actions_action__WEBPACK_IMPORTED_MODULE_10__["Action"]({
|
50385
|
+
id: index.toString(),
|
50386
|
+
css: "sv-tab-item__root",
|
50387
|
+
pressed: index === this.currentIndex,
|
50388
|
+
title: title,
|
50389
|
+
action: function () {
|
50390
|
+
_this.currentIndex = parseInt(newItem.id);
|
50391
|
+
_this.updateTabToolbarItemsPressedState();
|
50392
|
+
}
|
50393
|
+
});
|
50394
|
+
return newItem;
|
50395
|
+
};
|
50396
|
+
QuestionPanelDynamicModel.prototype.getAdditionalTitleToolbarCss = function () {
|
50397
|
+
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_9__["CssClassBuilder"]()
|
50398
|
+
.append("sv-tabs-toolbar")
|
50399
|
+
.append("sv-tabs-toolbar--left", this.tabAlign === "left")
|
50400
|
+
.append("sv-tabs-toolbar--right", this.tabAlign === "right")
|
50401
|
+
.append("sv-tabs-toolbar--center", this.tabAlign === "center")
|
50402
|
+
.toString();
|
50403
|
+
};
|
50404
|
+
QuestionPanelDynamicModel.prototype.updateTabToolbarItemsPressedState = function () {
|
50405
|
+
var _this = this;
|
50406
|
+
if (!this.isRenderModeTab)
|
50407
|
+
return;
|
50408
|
+
this.additionalTitleToolbar.renderedActions.forEach(function (action) { return action.pressed = parseInt(action.id) === _this.currentIndex; });
|
50409
|
+
};
|
50410
|
+
QuestionPanelDynamicModel.prototype.updateTabToolbar = function () {
|
50411
|
+
var _this = this;
|
50412
|
+
if (!this.isRenderModeTab)
|
50413
|
+
return;
|
50414
|
+
var items = [];
|
50415
|
+
this.panels.forEach(function (panel) { return items.push(_this.createTabByPanel(panel)); });
|
50416
|
+
this.additionalTitleToolbar.setItems(items);
|
50417
|
+
};
|
50418
|
+
QuestionPanelDynamicModel.prototype.addTabFromToolbar = function (panel) {
|
50419
|
+
if (!this.isRenderModeTab)
|
50420
|
+
return;
|
50421
|
+
var newItem = this.createTabByPanel(panel);
|
50422
|
+
this.additionalTitleToolbar.actions.push(newItem);
|
50423
|
+
this.updateTabToolbarItemsPressedState();
|
50424
|
+
};
|
50425
|
+
QuestionPanelDynamicModel.prototype.removeTabFromToolbar = function (panels) {
|
50426
|
+
var _this = this;
|
50427
|
+
if (!this.isRenderModeTab)
|
50428
|
+
return;
|
50429
|
+
panels.forEach(function (panel) {
|
50430
|
+
var index = _this.getPanelIndex(panel);
|
50431
|
+
var removedItem = _this.additionalTitleToolbar.getActionById(index.toString());
|
50432
|
+
_this.additionalTitleToolbar.actions.splice(_this.additionalTitleToolbar.actions.indexOf(removedItem), 1);
|
50433
|
+
});
|
50434
|
+
this.updateTabToolbarItemsPressedState();
|
50435
|
+
};
|
49927
50436
|
Object.defineProperty(QuestionPanelDynamicModel.prototype, "showLegacyNavigation", {
|
49928
50437
|
get: function () {
|
49929
50438
|
return !this.isDefaultV2Theme;
|
@@ -49997,7 +50506,10 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_4__["Serializer"].addClass("paneldynamic",
|
|
49997
50506
|
{
|
49998
50507
|
name: "renderMode",
|
49999
50508
|
default: "list",
|
50000
|
-
choices: ["list", "progressTop", "progressBottom", "progressTopBottom"],
|
50509
|
+
choices: ["list", "progressTop", "progressBottom", "progressTopBottom", "tab"],
|
50510
|
+
},
|
50511
|
+
{
|
50512
|
+
name: "tabAlign", default: "center", choices: ["center", "left", "right"],
|
50001
50513
|
},
|
50002
50514
|
{
|
50003
50515
|
name: "templateTitleLocation",
|
@@ -50032,9 +50544,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
50032
50544
|
/* harmony import */ var _jsonobject__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./jsonobject */ "./src/jsonobject.ts");
|
50033
50545
|
/* harmony import */ var _questionfactory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./questionfactory */ "./src/questionfactory.ts");
|
50034
50546
|
/* harmony import */ var _question_baseselect__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./question_baseselect */ "./src/question_baseselect.ts");
|
50035
|
-
/* harmony import */ var
|
50036
|
-
/* harmony import */ var
|
50037
|
-
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./base */ "./src/base.ts");
|
50547
|
+
/* harmony import */ var _actions_action__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./actions/action */ "./src/actions/action.ts");
|
50548
|
+
/* harmony import */ var _base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./base */ "./src/base.ts");
|
50038
50549
|
var __extends = (undefined && undefined.__extends) || (function () {
|
50039
50550
|
var extendStatics = function (d, b) {
|
50040
50551
|
extendStatics = Object.setPrototypeOf ||
|
@@ -50055,7 +50566,6 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
50055
50566
|
|
50056
50567
|
|
50057
50568
|
|
50058
|
-
|
50059
50569
|
/**
|
50060
50570
|
* A class that describes the Radiogroup question type.
|
50061
50571
|
*
|
@@ -50093,16 +50603,7 @@ var QuestionRadiogroupModel = /** @class */ (function (_super) {
|
|
50093
50603
|
/**
|
50094
50604
|
* Returns the selected choice item. If no item is selected, returns `null`.
|
50095
50605
|
*/
|
50096
|
-
get: function () {
|
50097
|
-
var selectedItemValues = this.selectedItemValues;
|
50098
|
-
if (this.isEmpty())
|
50099
|
-
return null;
|
50100
|
-
var itemValue = _itemvalue__WEBPACK_IMPORTED_MODULE_3__["ItemValue"].getItemByValue(this.visibleChoices, this.value);
|
50101
|
-
if (!itemValue && !selectedItemValues) {
|
50102
|
-
this.updateSelectedItemValues();
|
50103
|
-
}
|
50104
|
-
return itemValue || selectedItemValues || (this.isOtherSelected ? this.otherItem : new _itemvalue__WEBPACK_IMPORTED_MODULE_3__["ItemValue"](this.value));
|
50105
|
-
},
|
50606
|
+
get: function () { return this.getSingleSelectedItem(); },
|
50106
50607
|
enumerable: false,
|
50107
50608
|
configurable: true
|
50108
50609
|
});
|
@@ -50152,12 +50653,12 @@ var QuestionRadiogroupModel = /** @class */ (function (_super) {
|
|
50152
50653
|
var _this = this;
|
50153
50654
|
var actions = [];
|
50154
50655
|
if (this.isDefaultV2Theme && !this.isDesignMode) {
|
50155
|
-
var clearAction = new
|
50656
|
+
var clearAction = new _actions_action__WEBPACK_IMPORTED_MODULE_3__["Action"]({
|
50156
50657
|
title: this.clearButtonCaption,
|
50157
50658
|
id: "sv-clr-btn-" + this.id,
|
50158
50659
|
action: function () { _this.clearValue(); },
|
50159
50660
|
innerCss: this.cssClasses.clearButton,
|
50160
|
-
visible: new
|
50661
|
+
visible: new _base__WEBPACK_IMPORTED_MODULE_4__["ComputedUpdater"](function () { return _this.canShowClearButton; })
|
50161
50662
|
});
|
50162
50663
|
actions.push(clearAction);
|
50163
50664
|
}
|
@@ -50890,10 +51391,19 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
50890
51391
|
enumerable: false,
|
50891
51392
|
configurable: true
|
50892
51393
|
});
|
51394
|
+
Object.defineProperty(QuestionRatingModel.prototype, "isSmiley", {
|
51395
|
+
get: function () {
|
51396
|
+
return this.rateType == "smileys";
|
51397
|
+
},
|
51398
|
+
enumerable: false,
|
51399
|
+
configurable: true
|
51400
|
+
});
|
50893
51401
|
Object.defineProperty(QuestionRatingModel.prototype, "itemComponentName", {
|
50894
51402
|
get: function () {
|
50895
51403
|
if (this.isStar)
|
50896
51404
|
return "sv-rating-item-star";
|
51405
|
+
if (this.isSmiley)
|
51406
|
+
return "sv-rating-item-smiley";
|
50897
51407
|
return "sv-rating-item";
|
50898
51408
|
},
|
50899
51409
|
enumerable: false,
|
@@ -50938,6 +51448,22 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
50938
51448
|
enumerable: false,
|
50939
51449
|
configurable: true
|
50940
51450
|
});
|
51451
|
+
QuestionRatingModel.prototype.getItemSmiley = function (item) {
|
51452
|
+
var icons = ["terrible", "very-poor", "poor", "not-good", "average", "normal", "good", "very-good", "excellent", "perfect"];
|
51453
|
+
var priority = ["very-good", "not-good", "normal", "good", "average", "excellent", "poor", "perfect", "very-poor", "terrible"];
|
51454
|
+
var count = this.rateValues.length || this.rateMax - this.rateMin + 1;
|
51455
|
+
var selectedPriority = priority.slice(0, count);
|
51456
|
+
var selectedIcons = icons.filter(function (i) { return selectedPriority.indexOf(i) != -1; });
|
51457
|
+
if (this.rateValues.length == 0) {
|
51458
|
+
return selectedIcons[item.value - this.rateMin];
|
51459
|
+
}
|
51460
|
+
else {
|
51461
|
+
return selectedIcons[this.rateValues.indexOf(item)];
|
51462
|
+
}
|
51463
|
+
};
|
51464
|
+
QuestionRatingModel.prototype.getItemSmileyIconName = function (item) {
|
51465
|
+
return "icon-" + this.getItemSmiley(item);
|
51466
|
+
};
|
50941
51467
|
QuestionRatingModel.prototype.getItemClass = function (item, highlight) {
|
50942
51468
|
var _this = this;
|
50943
51469
|
if (highlight === void 0) { highlight = "none"; }
|
@@ -50971,6 +51497,13 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
50971
51497
|
itemHighlightedClass = this.cssClasses.itemStarHighlighted;
|
50972
51498
|
itemUnhighlightedClass = this.cssClasses.itemStarUnhighlighted;
|
50973
51499
|
}
|
51500
|
+
if (this.isSmiley) {
|
51501
|
+
itemClass = this.cssClasses.itemSmiley;
|
51502
|
+
itemSelectedClass = this.cssClasses.itemSmileySelected;
|
51503
|
+
itemDisabledClass = this.cssClasses.itemSmileyDisabled;
|
51504
|
+
itemHoverClass = this.cssClasses.itemSmileyHover;
|
51505
|
+
itemitemOnErrorClass = this.cssClasses.itemSmileyOnError;
|
51506
|
+
}
|
50974
51507
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_6__["CssClassBuilder"]()
|
50975
51508
|
.append(itemClass)
|
50976
51509
|
.append(itemSelectedClass, isSelected)
|
@@ -51660,6 +52193,13 @@ var QuestionTagboxModel = /** @class */ (function (_super) {
|
|
51660
52193
|
enumerable: false,
|
51661
52194
|
configurable: true
|
51662
52195
|
});
|
52196
|
+
Object.defineProperty(QuestionTagboxModel.prototype, "ariaExpanded", {
|
52197
|
+
get: function () {
|
52198
|
+
return this.popupModel.isVisible;
|
52199
|
+
},
|
52200
|
+
enumerable: false,
|
52201
|
+
configurable: true
|
52202
|
+
});
|
51663
52203
|
QuestionTagboxModel.prototype.getControlClass = function () {
|
51664
52204
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_2__["CssClassBuilder"]()
|
51665
52205
|
.append(this.cssClasses.control)
|
@@ -51715,7 +52255,7 @@ var QuestionTagboxModel = /** @class */ (function (_super) {
|
|
51715
52255
|
return this.inputId + "_0";
|
51716
52256
|
};
|
51717
52257
|
__decorate([
|
51718
|
-
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])(
|
52258
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])()
|
51719
52259
|
], QuestionTagboxModel.prototype, "allowClear", void 0);
|
51720
52260
|
__decorate([
|
51721
52261
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({
|
@@ -51729,7 +52269,6 @@ var QuestionTagboxModel = /** @class */ (function (_super) {
|
|
51729
52269
|
], QuestionTagboxModel.prototype, "searchEnabled", void 0);
|
51730
52270
|
__decorate([
|
51731
52271
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({
|
51732
|
-
defaultValue: false,
|
51733
52272
|
onSet: function (newValue, target) {
|
51734
52273
|
if (!!target.dropdownListModel) {
|
51735
52274
|
target.dropdownListModel.setHideSelectedItems(newValue);
|
@@ -51738,7 +52277,7 @@ var QuestionTagboxModel = /** @class */ (function (_super) {
|
|
51738
52277
|
})
|
51739
52278
|
], QuestionTagboxModel.prototype, "hideSelectedItems", void 0);
|
51740
52279
|
__decorate([
|
51741
|
-
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])(
|
52280
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])()
|
51742
52281
|
], QuestionTagboxModel.prototype, "choicesLazyLoadEnabled", void 0);
|
51743
52282
|
__decorate([
|
51744
52283
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_0__["property"])({ defaultValue: 25 })
|
@@ -51848,6 +52387,9 @@ var QuestionTextModel = /** @class */ (function (_super) {
|
|
51848
52387
|
if (_this.isInputTextUpdate) {
|
51849
52388
|
_this._isWaitingForEnter = event.keyCode === 229;
|
51850
52389
|
}
|
52390
|
+
if (event.keyCode === 13) {
|
52391
|
+
_this.survey.questionEditFinishCallback(_this, event);
|
52392
|
+
}
|
51851
52393
|
};
|
51852
52394
|
_this.onChange = function (event) {
|
51853
52395
|
if (event.target === document.activeElement) {
|
@@ -51988,7 +52530,7 @@ var QuestionTextModel = /** @class */ (function (_super) {
|
|
51988
52530
|
* A value passed on to the [`autocomplete`](https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/autocomplete) attribute of the underlying `<input>` element.
|
51989
52531
|
*/
|
51990
52532
|
get: function () {
|
51991
|
-
return this.getPropertyValue("autocomplete",
|
52533
|
+
return this.getPropertyValue("autocomplete", null);
|
51992
52534
|
},
|
51993
52535
|
set: function (val) {
|
51994
52536
|
this.setPropertyValue("autocomplete", val);
|
@@ -53811,7 +54353,7 @@ var ListItem = /** @class */ (function (_super) {
|
|
53811
54353
|
var style = {
|
53812
54354
|
display: isVisible ? null : "none"
|
53813
54355
|
};
|
53814
|
-
return Object(_reactSurvey__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", { className: className, role: "option", style: style, "aria-selected": this.model.isItemSelected(this.item), onClick: function (event) {
|
54356
|
+
return Object(_reactSurvey__WEBPACK_IMPORTED_MODULE_3__["attachKey2click"])(react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("li", { className: className, role: "option", style: style, id: this.item.elementId, "aria-selected": this.model.isItemSelected(this.item), onClick: function (event) {
|
53815
54357
|
_this.model.onItemClick(_this.item);
|
53816
54358
|
event.stopPropagation();
|
53817
54359
|
}, onPointerDown: function (event) { return _this.model.onPointerDown(event, _this.item); } },
|
@@ -53911,7 +54453,7 @@ var List = /** @class */ (function (_super) {
|
|
53911
54453
|
return null;
|
53912
54454
|
var items = this.renderItems();
|
53913
54455
|
var ulStyle = { display: this.model.isEmpty ? "none" : null };
|
53914
|
-
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", { className: this.model.cssClasses.itemsContainer, style: ulStyle, role: "listbox", onMouseDown: function (e) {
|
54456
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("ul", { className: this.model.cssClasses.itemsContainer, style: ulStyle, role: "listbox", id: this.model.elementId, onMouseDown: function (e) {
|
53915
54457
|
e.preventDefault();
|
53916
54458
|
}, onKeyDown: this.handleKeydown, onMouseMove: this.handleMouseMove }, items));
|
53917
54459
|
};
|
@@ -54861,6 +55403,85 @@ function showDialog(dialogOptions) {
|
|
54861
55403
|
survey_core__WEBPACK_IMPORTED_MODULE_2__["settings"].showModal = showModal;
|
54862
55404
|
|
54863
55405
|
|
55406
|
+
/***/ }),
|
55407
|
+
|
55408
|
+
/***/ "./src/react/components/rating/rating-item-smiley.tsx":
|
55409
|
+
/*!************************************************************!*\
|
55410
|
+
!*** ./src/react/components/rating/rating-item-smiley.tsx ***!
|
55411
|
+
\************************************************************/
|
55412
|
+
/*! exports provided: RatingItemSmiley */
|
55413
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
55414
|
+
|
55415
|
+
"use strict";
|
55416
|
+
__webpack_require__.r(__webpack_exports__);
|
55417
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RatingItemSmiley", function() { return RatingItemSmiley; });
|
55418
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
55419
|
+
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
55420
|
+
/* harmony import */ var _element_factory__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../element-factory */ "./src/react/element-factory.tsx");
|
55421
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../reactquestion_element */ "./src/react/reactquestion_element.tsx");
|
55422
|
+
/* harmony import */ var _svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../svg-icon/svg-icon */ "./src/react/components/svg-icon/svg-icon.tsx");
|
55423
|
+
var __extends = (undefined && undefined.__extends) || (function () {
|
55424
|
+
var extendStatics = function (d, b) {
|
55425
|
+
extendStatics = Object.setPrototypeOf ||
|
55426
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
55427
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
55428
|
+
return extendStatics(d, b);
|
55429
|
+
};
|
55430
|
+
return function (d, b) {
|
55431
|
+
if (typeof b !== "function" && b !== null)
|
55432
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
55433
|
+
extendStatics(d, b);
|
55434
|
+
function __() { this.constructor = d; }
|
55435
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
55436
|
+
};
|
55437
|
+
})();
|
55438
|
+
|
55439
|
+
|
55440
|
+
|
55441
|
+
|
55442
|
+
var RatingItemSmiley = /** @class */ (function (_super) {
|
55443
|
+
__extends(RatingItemSmiley, _super);
|
55444
|
+
function RatingItemSmiley() {
|
55445
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
55446
|
+
}
|
55447
|
+
Object.defineProperty(RatingItemSmiley.prototype, "question", {
|
55448
|
+
get: function () {
|
55449
|
+
return this.props.question;
|
55450
|
+
},
|
55451
|
+
enumerable: false,
|
55452
|
+
configurable: true
|
55453
|
+
});
|
55454
|
+
Object.defineProperty(RatingItemSmiley.prototype, "item", {
|
55455
|
+
get: function () {
|
55456
|
+
return this.props.item;
|
55457
|
+
},
|
55458
|
+
enumerable: false,
|
55459
|
+
configurable: true
|
55460
|
+
});
|
55461
|
+
Object.defineProperty(RatingItemSmiley.prototype, "index", {
|
55462
|
+
get: function () {
|
55463
|
+
return this.props.index;
|
55464
|
+
},
|
55465
|
+
enumerable: false,
|
55466
|
+
configurable: true
|
55467
|
+
});
|
55468
|
+
RatingItemSmiley.prototype.getStateElement = function () {
|
55469
|
+
return this.item;
|
55470
|
+
};
|
55471
|
+
RatingItemSmiley.prototype.render = function () {
|
55472
|
+
var _this = this;
|
55473
|
+
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("label", { className: this.question.getItemClass(this.item.itemValue), onMouseOver: function (e) { return _this.question.onItemMouseIn(_this.item); }, onMouseOut: function (e) { return _this.question.onItemMouseOut(_this.item); } },
|
55474
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("input", { type: "radio", className: "sv-visuallyhidden", name: this.question.name, id: this.question.getInputId(this.index), value: this.item.value, disabled: this.isDisplayMode, checked: this.question.value == this.item.value, onClick: this.props.handleOnClick, onChange: function () { }, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy }),
|
55475
|
+
react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_svg_icon_svg_icon__WEBPACK_IMPORTED_MODULE_3__["SvgIcon"], { size: "auto", iconName: this.question.getItemSmileyIconName(this.item.itemValue), title: this.item.text })));
|
55476
|
+
};
|
55477
|
+
return RatingItemSmiley;
|
55478
|
+
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_2__["SurveyElementBase"]));
|
55479
|
+
|
55480
|
+
_element_factory__WEBPACK_IMPORTED_MODULE_1__["ReactElementFactory"].Instance.registerElement("sv-rating-item-smiley", function (props) {
|
55481
|
+
return react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(RatingItemSmiley, props);
|
55482
|
+
});
|
55483
|
+
|
55484
|
+
|
54864
55485
|
/***/ }),
|
54865
55486
|
|
54866
55487
|
/***/ "./src/react/components/rating/rating-item-star.tsx":
|
@@ -55774,7 +56395,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
55774
56395
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", null, this.question.readOnlyText));
|
55775
56396
|
}
|
55776
56397
|
else {
|
55777
|
-
if (!this.question
|
56398
|
+
if (!this.question["dropdownListModel"]) {
|
55778
56399
|
this.question["dropdownListModel"] = new survey_core__WEBPACK_IMPORTED_MODULE_1__["DropdownListModel"](this.question);
|
55779
56400
|
}
|
55780
56401
|
selectElement = react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], null,
|
@@ -55803,7 +56424,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
55803
56424
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.inputReadOnly ? undefined : 0, onClick: this.click,
|
55804
56425
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
55805
56426
|
// @ts-ignore
|
55806
|
-
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy },
|
56427
|
+
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy, "aria-expanded": this.question.ariaExpanded ? "true" : "false", "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant },
|
55807
56428
|
dropdownListModel.showHintPrefix ?
|
55808
56429
|
(react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.hintPrefix },
|
55809
56430
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, dropdownListModel.hintStringPrefix))) : null,
|
@@ -55813,7 +56434,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
55813
56434
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", { style: { visibility: "hidden" }, "data-bind": "text: model.filterString" }, dropdownListModel.inputStringRendered),
|
55814
56435
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("span", null, dropdownListModel.hintStringSuffix))) : null,
|
55815
56436
|
valueElement,
|
55816
|
-
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-label": this.question.placeholder, 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 })),
|
56437
|
+
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-label": this.question.placeholder, "aria-expanded": this.question.ariaExpanded ? "true" : "false", "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 })),
|
55817
56438
|
this.createClearButton()));
|
55818
56439
|
};
|
55819
56440
|
SurveyQuestionDropdownBase.prototype.createClearButton = function () {
|
@@ -56052,8 +56673,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
56052
56673
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "SurveyElementHeader", function() { return SurveyElementHeader; });
|
56053
56674
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
|
56054
56675
|
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
56055
|
-
/* harmony import */ var
|
56056
|
-
/* harmony import */ var
|
56676
|
+
/* harmony import */ var _components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/action-bar/action-bar */ "./src/react/components/action-bar/action-bar.tsx");
|
56677
|
+
/* harmony import */ var _components_title_title_element__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/title/title-element */ "./src/react/components/title/title-element.tsx");
|
56678
|
+
/* harmony import */ var _reactquestion_element__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./reactquestion_element */ "./src/react/reactquestion_element.tsx");
|
56057
56679
|
var __extends = (undefined && undefined.__extends) || (function () {
|
56058
56680
|
var extendStatics = function (d, b) {
|
56059
56681
|
extendStatics = Object.setPrototypeOf ||
|
@@ -56072,6 +56694,7 @@ var __extends = (undefined && undefined.__extends) || (function () {
|
|
56072
56694
|
|
56073
56695
|
|
56074
56696
|
|
56697
|
+
|
56075
56698
|
var SurveyElementHeader = /** @class */ (function (_super) {
|
56076
56699
|
__extends(SurveyElementHeader, _super);
|
56077
56700
|
function SurveyElementHeader() {
|
@@ -56086,13 +56709,15 @@ var SurveyElementHeader = /** @class */ (function (_super) {
|
|
56086
56709
|
});
|
56087
56710
|
SurveyElementHeader.prototype.render = function () {
|
56088
56711
|
var element = this.element;
|
56089
|
-
var title = element.hasTitle ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(
|
56712
|
+
var title = element.hasTitle ? (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_title_title_element__WEBPACK_IMPORTED_MODULE_2__["TitleElement"], { element: element })) : null;
|
56090
56713
|
var description = element.hasDescriptionUnderTitle
|
56091
|
-
?
|
56714
|
+
? _reactquestion_element__WEBPACK_IMPORTED_MODULE_3__["SurveyElementBase"].renderQuestionDescription(this.element)
|
56092
56715
|
: null;
|
56716
|
+
var additionalTitleToolbarElement = !!element.additionalTitleToolbar ? react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement(_components_action_bar_action_bar__WEBPACK_IMPORTED_MODULE_1__["SurveyActionBar"], { model: element.additionalTitleToolbar }) : null;
|
56093
56717
|
return (react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("div", { className: element.cssHeader, onClick: element.clickTitleFunction },
|
56094
56718
|
title,
|
56095
|
-
description
|
56719
|
+
description,
|
56720
|
+
additionalTitleToolbarElement));
|
56096
56721
|
};
|
56097
56722
|
return SurveyElementHeader;
|
56098
56723
|
}(react__WEBPACK_IMPORTED_MODULE_0___default.a.Component));
|
@@ -57729,7 +58354,8 @@ var SurveyProgressToc = /** @class */ (function (_super) {
|
|
57729
58354
|
}
|
57730
58355
|
SurveyProgressToc.prototype.render = function () {
|
57731
58356
|
var listModel = Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["createTOCListModel"])(this.props.model);
|
57732
|
-
|
58357
|
+
var rootCss = Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["getTocRootCss"])(this.props.model);
|
58358
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: rootCss },
|
57733
58359
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_list_list__WEBPACK_IMPORTED_MODULE_4__["List"], { model: listModel })));
|
57734
58360
|
};
|
57735
58361
|
return SurveyProgressToc;
|
@@ -58140,7 +58766,7 @@ var SurveyQuestionAndErrorsCell = /** @class */ (function (_super) {
|
|
58140
58766
|
var survey = this.question.survey;
|
58141
58767
|
var wrapper = null;
|
58142
58768
|
if (survey) {
|
58143
|
-
wrapper = _reactsurveymodel__WEBPACK_IMPORTED_MODULE_2__["ReactSurveyElementsWrapper"].wrapMatrixCell(survey, element, cell);
|
58769
|
+
wrapper = _reactsurveymodel__WEBPACK_IMPORTED_MODULE_2__["ReactSurveyElementsWrapper"].wrapMatrixCell(survey, element, cell, this.props.reason);
|
58144
58770
|
}
|
58145
58771
|
return wrapper !== null && wrapper !== void 0 ? wrapper : element;
|
58146
58772
|
};
|
@@ -59943,7 +60569,7 @@ var SurveyQuestionMatrixDropdownBase = /** @class */ (function (_super) {
|
|
59943
60569
|
var table = this.question.renderedTable;
|
59944
60570
|
if (!table.showFooter)
|
59945
60571
|
return null;
|
59946
|
-
var row = this.renderRow("footer", table.footerRow, this.question.cssClasses);
|
60572
|
+
var row = this.renderRow("footer", table.footerRow, this.question.cssClasses, "row-footer");
|
59947
60573
|
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("tfoot", null, row);
|
59948
60574
|
};
|
59949
60575
|
SurveyQuestionMatrixDropdownBase.prototype.renderRows = function () {
|
@@ -59955,23 +60581,26 @@ var SurveyQuestionMatrixDropdownBase = /** @class */ (function (_super) {
|
|
59955
60581
|
}
|
59956
60582
|
return react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("tbody", null, rows);
|
59957
60583
|
};
|
59958
|
-
SurveyQuestionMatrixDropdownBase.prototype.renderRow = function (keyValue, row, cssClasses) {
|
60584
|
+
SurveyQuestionMatrixDropdownBase.prototype.renderRow = function (keyValue, row, cssClasses, reason) {
|
59959
60585
|
var matrixrow = [];
|
59960
60586
|
var cells = row.cells;
|
59961
60587
|
for (var i = 0; i < cells.length; i++) {
|
59962
|
-
matrixrow.push(this.renderCell(cells[i], i, cssClasses));
|
60588
|
+
matrixrow.push(this.renderCell(cells[i], i, cssClasses, reason));
|
59963
60589
|
}
|
59964
60590
|
var key = "row" + keyValue;
|
59965
60591
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](react__WEBPACK_IMPORTED_MODULE_0__["Fragment"], { key: key },
|
59966
60592
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_components_matrix_row__WEBPACK_IMPORTED_MODULE_7__["MatrixRow"], { model: row, parentMatrix: this.question }, matrixrow)));
|
59967
60593
|
};
|
59968
|
-
SurveyQuestionMatrixDropdownBase.prototype.renderCell = function (cell, index, cssClasses) {
|
60594
|
+
SurveyQuestionMatrixDropdownBase.prototype.renderCell = function (cell, index, cssClasses, reason) {
|
59969
60595
|
var key = "cell" + index;
|
59970
60596
|
if (cell.hasQuestion) {
|
59971
|
-
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionMatrixDropdownCell, { key: key, cssClasses: cssClasses, cell: cell, creator: this.creator }));
|
60597
|
+
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"](SurveyQuestionMatrixDropdownCell, { key: key, cssClasses: cssClasses, cell: cell, creator: this.creator, reason: reason }));
|
59972
60598
|
}
|
59973
|
-
var
|
59974
|
-
|
60599
|
+
var calcReason = reason;
|
60600
|
+
if (!calcReason) {
|
60601
|
+
calcReason = cell.hasTitle ? "row-header" : "";
|
60602
|
+
}
|
60603
|
+
var cellContent = this.renderCellContent(cell, calcReason, cssClasses);
|
59975
60604
|
var cellStyle = null;
|
59976
60605
|
if (!!cell.width || !!cell.minWidth) {
|
59977
60606
|
cellStyle = {};
|
@@ -60591,10 +61220,10 @@ var SurveyQuestionPanelDynamic = /** @class */ (function (_super) {
|
|
60591
61220
|
SurveyQuestionPanelDynamic.prototype.renderNavigatorV2 = function () {
|
60592
61221
|
if (this.question.panelCount === 0 || this.question["showLegacyNavigation"])
|
60593
61222
|
return null;
|
60594
|
-
var range = this.question.isRangeShowing && !this.question.isProgressTopShowing ? this.renderRange() : null;
|
60595
61223
|
if (!this.question.cssClasses.footer) {
|
60596
61224
|
return null;
|
60597
61225
|
}
|
61226
|
+
var range = this.question.isRangeShowing && this.question.isProgressBottomShowing ? this.renderRange() : null;
|
60598
61227
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.footer },
|
60599
61228
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("hr", { className: this.question.cssClasses.separator }),
|
60600
61229
|
range,
|
@@ -61227,7 +61856,7 @@ var SurveyQuestionTagbox = /** @class */ (function (_super) {
|
|
61227
61856
|
return (react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { id: this.question.inputId, className: this.question.getControlClass(), tabIndex: dropdownListModel.inputReadOnly ? undefined : 0, onClick: this.click,
|
61228
61857
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
61229
61858
|
// @ts-ignore
|
61230
|
-
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy },
|
61859
|
+
disabled: this.question.isInputReadOnly, required: this.question.isRequired, onKeyDown: this.keyhandler, onBlur: this.blur, role: this.question.ariaRole, "aria-required": this.question.ariaRequired, "aria-label": this.question.ariaLabel, "aria-invalid": this.question.ariaInvalid, "aria-describedby": this.question.ariaDescribedBy, "aria-expanded": this.question.ariaExpanded ? "true" : "false", "aria-controls": dropdownListModel.listElementId, "aria-activedescendant": dropdownListModel.ariaActivedescendant },
|
61231
61860
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"]("div", { className: this.question.cssClasses.controlValue },
|
61232
61861
|
items,
|
61233
61862
|
react__WEBPACK_IMPORTED_MODULE_0__["createElement"](_tagbox_filter__WEBPACK_IMPORTED_MODULE_4__["TagboxFilterString"], { model: dropdownMultiSelectListModel, question: this.question })),
|
@@ -61880,7 +62509,7 @@ var SurveyLocStringViewer = /** @class */ (function (_super) {
|
|
61880
62509
|
};
|
61881
62510
|
SurveyLocStringViewer.prototype.componentDidUpdate = function (prevProps, prevState) {
|
61882
62511
|
if (!!prevProps.locStr) {
|
61883
|
-
|
62512
|
+
prevProps.locStr.onStringChanged.remove(this.onChangedHandler);
|
61884
62513
|
}
|
61885
62514
|
this.reactOnStrChanged();
|
61886
62515
|
};
|
@@ -62003,7 +62632,7 @@ var TagboxFilterString = /** @class */ (function (_super) {
|
|
62003
62632
|
};
|
62004
62633
|
TagboxFilterString.prototype.render = function () {
|
62005
62634
|
var _this = this;
|
62006
|
-
return (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-label": this.question.placeholder, 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); } }));
|
62635
|
+
return (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-label": this.question.placeholder, "aria-expanded": this.question.ariaExpanded ? "true" : "false", "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); } }));
|
62007
62636
|
};
|
62008
62637
|
return TagboxFilterString;
|
62009
62638
|
}(_reactquestion_element__WEBPACK_IMPORTED_MODULE_3__["SurveyElementBase"]));
|
@@ -62143,6 +62772,10 @@ var RendererFactory = /** @class */ (function () {
|
|
62143
62772
|
"use strict";
|
62144
62773
|
__webpack_require__.r(__webpack_exports__);
|
62145
62774
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return settings; });
|
62775
|
+
var columnWidthsByType = {
|
62776
|
+
"file": { minWidth: "240px" },
|
62777
|
+
"comment": { minWidth: "200px" }
|
62778
|
+
};
|
62146
62779
|
/**
|
62147
62780
|
* Global settings that apply to all surveys on the page. To specify one of the settings, use the code below:
|
62148
62781
|
*
|
@@ -62153,6 +62786,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
62153
62786
|
* ```
|
62154
62787
|
*/
|
62155
62788
|
var settings = {
|
62789
|
+
/**
|
62790
|
+
* Specifies an action to perform when users press the Enter key within a survey.
|
62791
|
+
*
|
62792
|
+
* Possible values:
|
62793
|
+
*
|
62794
|
+
* - `"moveToNextEditor"` - Moves focus to the next editor.
|
62795
|
+
* - `"loseFocus"` - Removes focus from the current editor.
|
62796
|
+
* - `"default"` - Behaves as a standard `<input>` element.
|
62797
|
+
*/
|
62798
|
+
enterKeyAction: "default",
|
62156
62799
|
/**
|
62157
62800
|
* An object that configures string comparison.
|
62158
62801
|
*
|
@@ -62589,6 +63232,18 @@ var settings = {
|
|
62589
63232
|
"email",
|
62590
63233
|
"impp",
|
62591
63234
|
]
|
63235
|
+
},
|
63236
|
+
/**
|
63237
|
+
* Contains properties that apply to [Single-Choice](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-question-model), [Multiple-Choice](https://surveyjs.io/form-library/documentation/api-reference/matrix-table-with-dropdown-list), and [Dynamic Matrix](https://surveyjs.io/form-library/documentation/api-reference/dynamic-matrix-table-question-model) questions.
|
63238
|
+
*
|
63239
|
+
* Nested properties:
|
63240
|
+
*
|
63241
|
+
* - `columnWidthsByType`: `Object`\
|
63242
|
+
* An object that specifies fixed and minimum column width based on the column type.\
|
63243
|
+
* Example: `settings.matrix.columnWidthsByType = { "tagbox": { minWidth: "240px", width: "300px" } }`
|
63244
|
+
*/
|
63245
|
+
matrix: {
|
63246
|
+
columnWidthsByType: columnWidthsByType
|
62592
63247
|
}
|
62593
63248
|
};
|
62594
63249
|
|
@@ -63957,18 +64612,28 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
63957
64612
|
};
|
63958
64613
|
Object.defineProperty(SurveyElement.prototype, "hasParent", {
|
63959
64614
|
get: function () {
|
63960
|
-
return (this.parent && !this.parent.isPage) || (this.parent === undefined);
|
63961
|
-
},
|
63962
|
-
enumerable: false,
|
63963
|
-
configurable: true
|
63964
|
-
});
|
63965
|
-
Object.defineProperty(SurveyElement.prototype, "hasFrameV2", {
|
63966
|
-
get: function () {
|
63967
|
-
return !this.hasParent && this.isDefaultV2Theme && !this.isDesignMode && this.isSingleInRow;
|
64615
|
+
return (this.parent && !this.parent.isPage && (!this.parent.originalPage || this.survey.isShowingPreview)) || (this.parent === undefined);
|
63968
64616
|
},
|
63969
64617
|
enumerable: false,
|
63970
64618
|
configurable: true
|
63971
64619
|
});
|
64620
|
+
SurveyElement.prototype.shouldAddRunnerStyles = function () {
|
64621
|
+
return !this.isDesignMode && this.isDefaultV2Theme;
|
64622
|
+
};
|
64623
|
+
SurveyElement.prototype.getHasFrameV2 = function () {
|
64624
|
+
return this.shouldAddRunnerStyles() && (!this.hasParent && this.isSingleInRow);
|
64625
|
+
};
|
64626
|
+
SurveyElement.prototype.getIsNested = function () {
|
64627
|
+
return this.shouldAddRunnerStyles() && (this.hasParent || !this.isSingleInRow);
|
64628
|
+
};
|
64629
|
+
SurveyElement.prototype.getCssRoot = function (cssClasses) {
|
64630
|
+
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_6__["CssClassBuilder"]()
|
64631
|
+
.append(cssClasses.withFrame, this.getHasFrameV2())
|
64632
|
+
.append(cssClasses.collapsed, !!this.isCollapsed)
|
64633
|
+
.append(cssClasses.expanded, !!this.isExpanded)
|
64634
|
+
.append(cssClasses.nested, this.getIsNested())
|
64635
|
+
.toString();
|
64636
|
+
};
|
63972
64637
|
Object.defineProperty(SurveyElement.prototype, "width", {
|
63973
64638
|
/**
|
63974
64639
|
* Sets survey element width in CSS values.
|
@@ -64133,6 +64798,16 @@ var SurveyElement = /** @class */ (function (_super) {
|
|
64133
64798
|
this.toggleState();
|
64134
64799
|
}
|
64135
64800
|
};
|
64801
|
+
Object.defineProperty(SurveyElement.prototype, "additionalTitleToolbar", {
|
64802
|
+
get: function () {
|
64803
|
+
return this.getAdditionalTitleToolbar();
|
64804
|
+
},
|
64805
|
+
enumerable: false,
|
64806
|
+
configurable: true
|
64807
|
+
});
|
64808
|
+
SurveyElement.prototype.getAdditionalTitleToolbar = function () {
|
64809
|
+
return null;
|
64810
|
+
};
|
64136
64811
|
SurveyElement.prototype.getCssTitle = function (cssClasses) {
|
64137
64812
|
var isExpandable = this.state !== "default";
|
64138
64813
|
var numInlineLimit = 4;
|
@@ -64373,9 +65048,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
64373
65048
|
*/
|
64374
65049
|
_this.onComplete = _this.addEvent();
|
64375
65050
|
/**
|
64376
|
-
* An event that is raised before the survey displays a [preview](https://surveyjs.io/form-library/documentation/design-survey/create-a-multi-page-survey#preview-page). Use this event to cancel the preview.
|
64377
|
-
*
|
65051
|
+
* An event that is raised before the survey displays a [preview of given answers](https://surveyjs.io/form-library/documentation/design-survey/create-a-multi-page-survey#preview-page). Use this event to cancel the preview.
|
64378
65052
|
* @see showPreviewBeforeComplete
|
65053
|
+
* @see showPreview
|
65054
|
+
* @see cancelPreview
|
64379
65055
|
*/
|
64380
65056
|
_this.onShowingPreview = _this.addEvent();
|
64381
65057
|
/**
|
@@ -64578,7 +65254,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
64578
65254
|
*/
|
64579
65255
|
_this.onValidatedErrorsOnCurrentPage = _this.addEvent();
|
64580
65256
|
/**
|
64581
|
-
*
|
65257
|
+
* An event that is raised when the survey processes HTML content. Handle this event to modify HTML content before displaying.
|
64582
65258
|
* @see completedHtml
|
64583
65259
|
* @see loadingHtml
|
64584
65260
|
* @see QuestionHtmlModel.html
|
@@ -65099,11 +65775,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
65099
65775
|
_this.updateCss();
|
65100
65776
|
_this.setCalculatedWidthModeUpdater();
|
65101
65777
|
_this.notifier = new _notifier__WEBPACK_IMPORTED_MODULE_19__["Notifier"](_this.css.saveData);
|
65102
|
-
_this.notifier.addAction(
|
65103
|
-
id: "save-again",
|
65104
|
-
title: _this.getLocalizationString("saveAgainButton"),
|
65105
|
-
action: function () { _this.doComplete(); }
|
65106
|
-
}, "error");
|
65778
|
+
_this.notifier.addAction(_this.createTryAgainAction(), "error");
|
65107
65779
|
_this.layoutElements.push({
|
65108
65780
|
id: "timerpanel",
|
65109
65781
|
template: "survey-timerpanel",
|
@@ -65195,6 +65867,21 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
65195
65867
|
enumerable: false,
|
65196
65868
|
configurable: true
|
65197
65869
|
});
|
65870
|
+
SurveyModel.prototype.createTryAgainAction = function () {
|
65871
|
+
var _this = this;
|
65872
|
+
return {
|
65873
|
+
id: "save-again",
|
65874
|
+
title: this.getLocalizationString("saveAgainButton"),
|
65875
|
+
action: function () {
|
65876
|
+
if (_this.isCompleted) {
|
65877
|
+
_this.saveDataOnComplete();
|
65878
|
+
}
|
65879
|
+
else {
|
65880
|
+
_this.doComplete();
|
65881
|
+
}
|
65882
|
+
}
|
65883
|
+
};
|
65884
|
+
};
|
65198
65885
|
SurveyModel.prototype.createHtmlLocString = function (name, locName, func) {
|
65199
65886
|
this.createLocalizableString(name, this, false, locName).onGetLocalizationTextCallback = func;
|
65200
65887
|
};
|
@@ -65208,9 +65895,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
65208
65895
|
};
|
65209
65896
|
Object.defineProperty(SurveyModel.prototype, "pages", {
|
65210
65897
|
/**
|
65211
|
-
* Returns
|
65898
|
+
* Returns an array of all pages in the survey.
|
65899
|
+
*
|
65900
|
+
* To get an array of only visible pages, use the [`visiblePages`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#visiblePages) array.
|
65212
65901
|
* @see PageModel
|
65213
|
-
* @see visiblePages
|
65214
65902
|
*/
|
65215
65903
|
get: function () {
|
65216
65904
|
return this.getPropertyValue("pages");
|
@@ -65416,11 +66104,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
65416
66104
|
});
|
65417
66105
|
Object.defineProperty(SurveyModel.prototype, "calculatedValues", {
|
65418
66106
|
/**
|
65419
|
-
*
|
65420
|
-
* @see CalculatedValue
|
65421
|
-
*
|
65422
|
-
* For more information, refer to [Calculated Values](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#calculated-values).
|
65423
|
-
*
|
66107
|
+
* An array of [calculated values](https://surveyjs.io/form-library/documentation/design-survey-conditional-logic#calculated-values).
|
65424
66108
|
*/
|
65425
66109
|
get: function () {
|
65426
66110
|
return this.getPropertyValue("calculatedValues");
|
@@ -65498,7 +66182,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
65498
66182
|
* Refer to the following help topic for more information on the use case: [Continue an Incomplete Survey](https://surveyjs.io/form-library/documentation/handle-survey-results-continue-incomplete).
|
65499
66183
|
*/
|
65500
66184
|
get: function () {
|
65501
|
-
return this.getPropertyValue("sendResultOnPageNext"
|
66185
|
+
return this.getPropertyValue("sendResultOnPageNext");
|
65502
66186
|
},
|
65503
66187
|
set: function (val) {
|
65504
66188
|
this.setPropertyValue("sendResultOnPageNext", val);
|
@@ -65512,7 +66196,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
65512
66196
|
* @see surveyPostId
|
65513
66197
|
*/
|
65514
66198
|
get: function () {
|
65515
|
-
return this.getPropertyValue("surveyShowDataSaving"
|
66199
|
+
return this.getPropertyValue("surveyShowDataSaving");
|
65516
66200
|
},
|
65517
66201
|
set: function (val) {
|
65518
66202
|
this.setPropertyValue("surveyShowDataSaving", val);
|
@@ -65589,6 +66273,8 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
65589
66273
|
* Gets or sets the visibility of the table of contents.
|
65590
66274
|
*
|
65591
66275
|
* Default value: `false`
|
66276
|
+
*
|
66277
|
+
* [View Demo](https://surveyjs.io/form-library/examples/toc-feature/ (linkStyle))
|
65592
66278
|
* @see tocLocation
|
65593
66279
|
*/
|
65594
66280
|
get: function () {
|
@@ -65608,6 +66294,8 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
65608
66294
|
*
|
65609
66295
|
* - `"left"` (default)
|
65610
66296
|
* - `"right"`
|
66297
|
+
*
|
66298
|
+
* [View Demo](https://surveyjs.io/form-library/examples/toc-feature/ (linkStyle))
|
65611
66299
|
* @see showTOC
|
65612
66300
|
*/
|
65613
66301
|
get: function () {
|
@@ -65824,21 +66512,18 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
65824
66512
|
});
|
65825
66513
|
Object.defineProperty(SurveyModel.prototype, "goNextPageAutomatic", {
|
65826
66514
|
/**
|
65827
|
-
*
|
65828
|
-
* The available options:
|
66515
|
+
* Specifies whether the survey switches to the next page automatically after a user answers all questions on the current page.
|
65829
66516
|
*
|
65830
|
-
*
|
65831
|
-
* - `autogonext` - navigate to the next page automatically but do not submit survey data.
|
65832
|
-
* - `false` - do not navigate to the next page and do not submit survey data automatically.
|
66517
|
+
* Default value: `false`
|
65833
66518
|
*
|
65834
|
-
*
|
66519
|
+
* If you enable this property, the survey is also completed automatically. Set the [`allowCompleteSurveyAutomatic`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#allowCompleteSurveyAutomatic) property to `false` if you want to disable this behavior.
|
65835
66520
|
*
|
65836
|
-
*
|
66521
|
+
* > If any of the following questions is answered last, the survey does not switch to the next page: Checkbox, Boolean (rendered as Checkbox), Comment, Signature Pad, Image Picker (with Multi Select), File, Single-Choice Matrix (not all rows are answered), Dynamic Matrix, Panel Dynamic.
|
65837
66522
|
*
|
65838
|
-
* [View Demo](https://surveyjs.io/form-library/examples/
|
66523
|
+
* [View Demo](https://surveyjs.io/form-library/examples/automatically-move-to-next-page-if-answer-selected/ (linkStyle))
|
65839
66524
|
*/
|
65840
66525
|
get: function () {
|
65841
|
-
return this.getPropertyValue("goNextPageAutomatic"
|
66526
|
+
return this.getPropertyValue("goNextPageAutomatic");
|
65842
66527
|
},
|
65843
66528
|
set: function (val) {
|
65844
66529
|
this.setPropertyValue("goNextPageAutomatic", val);
|
@@ -65848,8 +66533,9 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
65848
66533
|
});
|
65849
66534
|
Object.defineProperty(SurveyModel.prototype, "allowCompleteSurveyAutomatic", {
|
65850
66535
|
/**
|
65851
|
-
*
|
65852
|
-
*
|
66536
|
+
* Specifies whether to complete the survey automatically after a user answers all questions on the last page. Applies only if the [`goNextPageAutomatic`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#goNextPageAutomatic) property is `true`.
|
66537
|
+
*
|
66538
|
+
* Default value: `true`
|
65853
66539
|
*/
|
65854
66540
|
get: function () {
|
65855
66541
|
return this.getPropertyValue("allowCompleteSurveyAutomatic", true);
|
@@ -65862,14 +66548,15 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
65862
66548
|
});
|
65863
66549
|
Object.defineProperty(SurveyModel.prototype, "checkErrorsMode", {
|
65864
66550
|
/**
|
65865
|
-
*
|
66551
|
+
* Specifies when the survey validates answers.
|
65866
66552
|
*
|
65867
|
-
*
|
66553
|
+
* Possible values:
|
66554
|
+
*
|
66555
|
+
* - `"onNextPage"` (default) - Triggers validation before the survey is switched to the next page or completed.
|
66556
|
+
* - `"onValueChanged"` - Triggers validation each time a question value is changed.
|
66557
|
+
* - `"onComplete"` - Triggers validation when a user clicks the Complete button. If previous pages contain errors, the survey switches to the page with the first error.
|
65868
66558
|
*
|
65869
|
-
*
|
65870
|
-
* - `onValueChanged` - check errors on every question value (i.e., answer) changing.
|
65871
|
-
* - `onValueChanging` - check errors before setting value into survey. If there is an error, then survey data is not changed, but question value will be keeped.
|
65872
|
-
* - `onComplete` - to validate all visible questions on complete button click. If there are errors on previous pages, then the page with the first error becomes the current.
|
66559
|
+
* Refer to the following help topic for more information: [Data Validation](https://surveyjs.io/form-library/documentation/data-validation).
|
65873
66560
|
*/
|
65874
66561
|
get: function () {
|
65875
66562
|
return this.getPropertyValue("checkErrorsMode");
|
@@ -65882,9 +66569,11 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
65882
66569
|
});
|
65883
66570
|
Object.defineProperty(SurveyModel.prototype, "autoGrowComment", {
|
65884
66571
|
/**
|
65885
|
-
* Specifies whether
|
65886
|
-
*
|
65887
|
-
*
|
66572
|
+
* Specifies whether to increase the height of text areas to accommodate multi-line comments.
|
66573
|
+
*
|
66574
|
+
* Default value: `false`
|
66575
|
+
*
|
66576
|
+
* You can override this property for individual Comment questions: [`autoGrow`](https://surveyjs.io/form-library/documentation/api-reference/comment-field-model#autoGrow).
|
65888
66577
|
*/
|
65889
66578
|
get: function () {
|
65890
66579
|
return this.getPropertyValue("autoGrowComment");
|
@@ -65989,7 +66678,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
65989
66678
|
* @see clearIncorrectValues
|
65990
66679
|
*/
|
65991
66680
|
get: function () {
|
65992
|
-
return this.getPropertyValue("keepIncorrectValues"
|
66681
|
+
return this.getPropertyValue("keepIncorrectValues");
|
65993
66682
|
},
|
65994
66683
|
set: function (val) {
|
65995
66684
|
this.setPropertyValue("keepIncorrectValues", val);
|
@@ -66583,11 +67272,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
66583
67272
|
});
|
66584
67273
|
Object.defineProperty(SurveyModel.prototype, "previewText", {
|
66585
67274
|
/**
|
66586
|
-
*
|
66587
|
-
* @see locale
|
67275
|
+
* Gets or sets a caption for the Preview button.
|
66588
67276
|
* @see showPreviewBeforeComplete
|
66589
|
-
* @see editText
|
66590
67277
|
* @see showPreview
|
67278
|
+
* @see editText
|
66591
67279
|
*/
|
66592
67280
|
get: function () {
|
66593
67281
|
return this.getLocalizableStringText("previewText");
|
@@ -66607,11 +67295,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
66607
67295
|
});
|
66608
67296
|
Object.defineProperty(SurveyModel.prototype, "editText", {
|
66609
67297
|
/**
|
66610
|
-
*
|
66611
|
-
* @see locale
|
67298
|
+
* Gets or sets a caption for the Edit button displayed when the survey shows a [preview of given answers](https://surveyjs.io/form-library/documentation/design-survey/create-a-multi-page-survey#preview-page).
|
66612
67299
|
* @see showPreviewBeforeComplete
|
66613
|
-
* @see previewText
|
66614
67300
|
* @see cancelPreview
|
67301
|
+
* @see previewText
|
66615
67302
|
*/
|
66616
67303
|
get: function () {
|
66617
67304
|
return this.getLocalizableStringText("editText");
|
@@ -66785,7 +67472,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
66785
67472
|
* [View Demo](https://surveyjs.io/form-library/examples/survey-options/ (linkStyle))
|
66786
67473
|
*/
|
66787
67474
|
get: function () {
|
66788
|
-
return this.getPropertyValue("showPageNumbers"
|
67475
|
+
return this.getPropertyValue("showPageNumbers");
|
66789
67476
|
},
|
66790
67477
|
set: function (value) {
|
66791
67478
|
if (value === this.showPageNumbers)
|
@@ -67324,10 +68011,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
67324
68011
|
});
|
67325
68012
|
Object.defineProperty(SurveyModel.prototype, "visiblePages", {
|
67326
68013
|
/**
|
67327
|
-
* Returns
|
67328
|
-
*
|
67329
|
-
*
|
67330
|
-
* @see
|
68014
|
+
* Returns an array of visible pages without the start page.
|
68015
|
+
*
|
68016
|
+
* To get an array of all pages, use the [`pages`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#pages) property. If all pages are visible, the `pages` and `visiblePages` arrays are identical.
|
68017
|
+
* @see [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#conditional-visibility)
|
67331
68018
|
*/
|
67332
68019
|
get: function () {
|
67333
68020
|
if (this.isDesignMode)
|
@@ -67365,8 +68052,9 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
67365
68052
|
});
|
67366
68053
|
Object.defineProperty(SurveyModel.prototype, "pageCount", {
|
67367
68054
|
/**
|
67368
|
-
* Returns
|
67369
|
-
*
|
68055
|
+
* Returns a total number of survey pages.
|
68056
|
+
*
|
68057
|
+
* To get the number of visible pages, use the [`visiblePageCount`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#visiblePageCount) property.
|
67370
68058
|
* @see pages
|
67371
68059
|
*/
|
67372
68060
|
get: function () {
|
@@ -67377,9 +68065,11 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
67377
68065
|
});
|
67378
68066
|
Object.defineProperty(SurveyModel.prototype, "visiblePageCount", {
|
67379
68067
|
/**
|
67380
|
-
* Returns
|
67381
|
-
*
|
68068
|
+
* Returns the number of visible survey pages.
|
68069
|
+
*
|
68070
|
+
* To get a total number of survey pages, use the [`pageCount`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#pageCount) property.
|
67382
68071
|
* @see visiblePages
|
68072
|
+
* @see [Conditional Visibility](https://surveyjs.io/form-library/documentation/design-survey/conditional-logic#conditional-visibility)
|
67383
68073
|
*/
|
67384
68074
|
get: function () {
|
67385
68075
|
return this.visiblePages.length;
|
@@ -67389,8 +68079,11 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
67389
68079
|
});
|
67390
68080
|
Object.defineProperty(SurveyModel.prototype, "startedPage", {
|
67391
68081
|
/**
|
67392
|
-
* Returns the
|
68082
|
+
* Returns the start page. Applies only if the [`firstPageIsStarted`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#firstPageIsStarted) property is set to `true`.
|
68083
|
+
*
|
68084
|
+
* Refer to the following help topic for more information: [Start Page](https://surveyjs.io/form-library/documentation/design-survey/create-a-multi-page-survey#start-page).
|
67393
68085
|
* @see firstPageIsStarted
|
68086
|
+
* @see activePage
|
67394
68087
|
*/
|
67395
68088
|
get: function () {
|
67396
68089
|
var page = this.firstPageIsStarted && this.pages.length > 1 ? this.pages[0] : null;
|
@@ -67405,7 +68098,17 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
67405
68098
|
});
|
67406
68099
|
Object.defineProperty(SurveyModel.prototype, "currentPage", {
|
67407
68100
|
/**
|
67408
|
-
* Gets or sets the current
|
68101
|
+
* Gets or sets the current page.
|
68102
|
+
*
|
68103
|
+
* If you want to change the current page, set this property to a `PageModel` object. You can get this object in different ways. For example, you can call the [`getPageByName()`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#getPageByName) method to obtain a `PageModel` object with a specific name:
|
68104
|
+
*
|
68105
|
+
* ```js
|
68106
|
+
* survey.currentPage = survey.getPageByName("my-page-name");
|
68107
|
+
* ```
|
68108
|
+
*
|
68109
|
+
* Alternatively, you can change the current page if you set the [`currentPageNo`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#currentPageNo) property to the index of the required page.
|
68110
|
+
*
|
68111
|
+
* The `currentPage` property does not return the start page even if it is current. Use the [`activePage`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#activePage) property instead if your survey contains a start page.
|
67409
68112
|
*/
|
67410
68113
|
get: function () {
|
67411
68114
|
return this.getPropertyValue("currentPage", null);
|
@@ -67458,10 +68161,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
67458
68161
|
};
|
67459
68162
|
Object.defineProperty(SurveyModel.prototype, "activePage", {
|
67460
68163
|
/**
|
67461
|
-
* Returns
|
68164
|
+
* Returns [`startedPage`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#startedPage) if the survey currently displays a start page; otherwise, returns [`currentPage`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#currentPage).
|
68165
|
+
* @see startedPage
|
67462
68166
|
* @see currentPage
|
67463
68167
|
* @see firstPageIsStarted
|
67464
|
-
* @see startedPage
|
67465
68168
|
*/
|
67466
68169
|
get: function () {
|
67467
68170
|
return this.getPropertyValue("activePage");
|
@@ -67515,9 +68218,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
67515
68218
|
};
|
67516
68219
|
Object.defineProperty(SurveyModel.prototype, "currentPageNo", {
|
67517
68220
|
/**
|
67518
|
-
*
|
68221
|
+
* A zero-based index of the current page in the [`visiblePages`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#visiblePages) array.
|
67519
68222
|
*
|
67520
68223
|
* [View Demo](https://surveyjs.io/form-library/examples/survey-editprevious/ (linkStyle))
|
68224
|
+
* @see visiblePages
|
67521
68225
|
*/
|
67522
68226
|
get: function () {
|
67523
68227
|
return this.visiblePages.indexOf(this.currentPage);
|
@@ -67533,13 +68237,16 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
67533
68237
|
});
|
67534
68238
|
Object.defineProperty(SurveyModel.prototype, "questionsOrder", {
|
67535
68239
|
/**
|
67536
|
-
*
|
68240
|
+
* Specifies the sort order of questions in the survey.
|
67537
68241
|
*
|
67538
|
-
*
|
68242
|
+
* Possible values:
|
68243
|
+
*
|
68244
|
+
* - `"initial"` (default) - Preserves the original order of questions.
|
68245
|
+
* - `"random"` - Displays questions in random order.
|
67539
68246
|
*
|
67540
|
-
*
|
67541
|
-
*
|
67542
|
-
* @see
|
68247
|
+
* You can override this property for individual pages and panels.
|
68248
|
+
* @see PageModel.questionsOrder
|
68249
|
+
* @see PanelModel.questionsOrder
|
67543
68250
|
*/
|
67544
68251
|
get: function () {
|
67545
68252
|
return this.getPropertyValue("questionsOrder");
|
@@ -67699,16 +68406,13 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
67699
68406
|
this.notifier.notify(message, type, type === "error");
|
67700
68407
|
};
|
67701
68408
|
/**
|
67702
|
-
*
|
67703
|
-
* @param clearData clear
|
67704
|
-
* @param
|
67705
|
-
* @see data
|
67706
|
-
* @see state
|
67707
|
-
* @see currentPage
|
68409
|
+
* 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"`.
|
68410
|
+
* @param clearData *Optional.* Specifies whether to clear survey data. Default value: `true`.
|
68411
|
+
* @param goToFirstPage *Optional.* Specifies whether to switch the survey to the first page. Default value: `true`.
|
67708
68412
|
*/
|
67709
|
-
SurveyModel.prototype.clear = function (clearData,
|
68413
|
+
SurveyModel.prototype.clear = function (clearData, goToFirstPage) {
|
67710
68414
|
if (clearData === void 0) { clearData = true; }
|
67711
|
-
if (
|
68415
|
+
if (goToFirstPage === void 0) { goToFirstPage = true; }
|
67712
68416
|
this.isCompleted = false;
|
67713
68417
|
this.isCompletedBefore = false;
|
67714
68418
|
this.isLoading = false;
|
@@ -67724,7 +68428,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
67724
68428
|
this.pages[i].passed = false;
|
67725
68429
|
}
|
67726
68430
|
this.onFirstPageIsStartedChanged();
|
67727
|
-
if (
|
68431
|
+
if (goToFirstPage) {
|
67728
68432
|
this.currentPage = this.firstVisiblePage;
|
67729
68433
|
}
|
67730
68434
|
if (clearData) {
|
@@ -67915,8 +68619,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
67915
68619
|
* @param value use true to set the survey into the design mode.
|
67916
68620
|
*/
|
67917
68621
|
SurveyModel.prototype.setDesignMode = function (value) {
|
67918
|
-
this._isDesignMode
|
67919
|
-
|
68622
|
+
if (!!this._isDesignMode != !!value) {
|
68623
|
+
this._isDesignMode = !!value;
|
68624
|
+
this.onQuestionsOnPageModeChanged("standard");
|
68625
|
+
}
|
67920
68626
|
};
|
67921
68627
|
Object.defineProperty(SurveyModel.prototype, "showInvisibleElements", {
|
67922
68628
|
/**
|
@@ -68352,21 +69058,18 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
68352
69058
|
if (!!this.mouseDownPage && this.mouseDownPage !== this.activePage)
|
68353
69059
|
return;
|
68354
69060
|
this.mouseDownPage = null;
|
68355
|
-
this.nextPage();
|
69061
|
+
return this.nextPage();
|
68356
69062
|
};
|
68357
69063
|
SurveyModel.prototype.nextPageMouseDown = function () {
|
68358
69064
|
this.mouseDownPage = this.activePage;
|
68359
69065
|
return this.navigationMouseDown();
|
68360
69066
|
};
|
68361
69067
|
/**
|
68362
|
-
*
|
68363
|
-
*
|
68364
|
-
* Details: [Preview State](https://surveyjs.io/Documentation/Library#states-preview)
|
68365
|
-
* @see showPreviewBeforeComplete
|
69068
|
+
* Displays a [preview of given answers](https://surveyjs.io/form-library/documentation/design-survey/create-a-multi-page-survey#preview-page). Returns `false` if the preview cannot be displayed because of validation errors.
|
68366
69069
|
* @see cancelPreview
|
69070
|
+
* @see showPreviewBeforeComplete
|
69071
|
+
* @see onShowingPreview
|
68367
69072
|
* @see state
|
68368
|
-
* @see previewText
|
68369
|
-
* @see editText
|
68370
69073
|
*/
|
68371
69074
|
SurveyModel.prototype.showPreview = function () {
|
68372
69075
|
this.resetNavigationButton();
|
@@ -68383,12 +69086,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
68383
69086
|
this.isShowingPreview = options.allowShowPreview && options.allow;
|
68384
69087
|
};
|
68385
69088
|
/**
|
68386
|
-
* Cancels preview and switches
|
68387
|
-
*
|
68388
|
-
* Details: [Preview State](https://surveyjs.io/Documentation/Library#states-preview)
|
68389
|
-
* @param curPage - A new current page. If the parameter is undefined then the last page becomes the current.
|
68390
|
-
* @see showPreviewBeforeComplete
|
69089
|
+
* Cancels a [preview of given answers](https://surveyjs.io/form-library/documentation/design-survey/create-a-multi-page-survey#preview-page) and switches the survey to the page specified by the `curPage` parameter.
|
69090
|
+
* @param curPage A new current page. If you do not specify this parameter, the survey displays the last page.
|
68391
69091
|
* @see showPreview
|
69092
|
+
* @see showPreviewBeforeComplete
|
68392
69093
|
* @see state
|
68393
69094
|
*/
|
68394
69095
|
SurveyModel.prototype.cancelPreview = function (curPage) {
|
@@ -68436,12 +69137,13 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
68436
69137
|
});
|
68437
69138
|
Object.defineProperty(SurveyModel.prototype, "questionsOnPageMode", {
|
68438
69139
|
/**
|
68439
|
-
*
|
69140
|
+
* Specifies how to distribute survey elements between pages.
|
68440
69141
|
*
|
68441
|
-
*
|
69142
|
+
* Possible values:
|
68442
69143
|
*
|
68443
|
-
* - `singlePage` -
|
68444
|
-
* - `questionPerPage` -
|
69144
|
+
* - `"singlePage"` - Combines all survey pages into a single page.
|
69145
|
+
* - `"questionPerPage"` - Creates a separate page for every question.
|
69146
|
+
* - `"standard"` (default) - Retains the original structure specified in the JSON schema.
|
68445
69147
|
*/
|
68446
69148
|
get: function () {
|
68447
69149
|
return this.getPropertyValue("questionsOnPageMode");
|
@@ -68454,11 +69156,14 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
68454
69156
|
});
|
68455
69157
|
Object.defineProperty(SurveyModel.prototype, "firstPageIsStarted", {
|
68456
69158
|
/**
|
68457
|
-
* Gets or sets
|
68458
|
-
*
|
69159
|
+
* Gets or sets a Boolean value that specifies whether the first page is a start page.
|
69160
|
+
*
|
69161
|
+
* Refer to the following help topic for more information: [Start Page](https://surveyjs.io/form-library/documentation/design-survey/create-a-multi-page-survey#start-page).
|
69162
|
+
* @see startedPage
|
69163
|
+
* @see activePage
|
68459
69164
|
*/
|
68460
69165
|
get: function () {
|
68461
|
-
return this.getPropertyValue("firstPageIsStarted"
|
69166
|
+
return this.getPropertyValue("firstPageIsStarted");
|
68462
69167
|
},
|
68463
69168
|
set: function (val) {
|
68464
69169
|
this.setPropertyValue("firstPageIsStarted", val);
|
@@ -68761,7 +69466,6 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
68761
69466
|
* @see navigateToUrlOnCondition
|
68762
69467
|
*/
|
68763
69468
|
SurveyModel.prototype.doComplete = function (isCompleteOnTrigger) {
|
68764
|
-
var _this = this;
|
68765
69469
|
if (isCompleteOnTrigger === void 0) { isCompleteOnTrigger = false; }
|
68766
69470
|
if (this.isCompleted)
|
68767
69471
|
return;
|
@@ -68770,11 +69474,17 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
68770
69474
|
return false;
|
68771
69475
|
}
|
68772
69476
|
this.checkOnPageTriggers(true);
|
68773
|
-
var previousCookie = this.hasCookie;
|
68774
69477
|
this.stopTimer();
|
68775
69478
|
this.isCompleted = true;
|
68776
69479
|
this.clearUnusedValues();
|
68777
69480
|
this.setCookie();
|
69481
|
+
this.saveDataOnComplete(isCompleteOnTrigger);
|
69482
|
+
return true;
|
69483
|
+
};
|
69484
|
+
SurveyModel.prototype.saveDataOnComplete = function (isCompleteOnTrigger) {
|
69485
|
+
var _this = this;
|
69486
|
+
if (isCompleteOnTrigger === void 0) { isCompleteOnTrigger = false; }
|
69487
|
+
var previousCookie = this.hasCookie;
|
68778
69488
|
var showSaveInProgress = function (text) {
|
68779
69489
|
savingDataStarted = true;
|
68780
69490
|
_this.setCompletedState("saving", text);
|
@@ -68809,7 +69519,6 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
68809
69519
|
if (!savingDataStarted) {
|
68810
69520
|
this.navigateTo();
|
68811
69521
|
}
|
68812
|
-
return true;
|
68813
69522
|
};
|
68814
69523
|
SurveyModel.prototype.checkOnCompletingEvent = function (isCompleteOnTrigger) {
|
68815
69524
|
var options = {
|
@@ -68978,7 +69687,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
68978
69687
|
*/
|
68979
69688
|
get: function () {
|
68980
69689
|
var html = this.renderedCompletedHtml;
|
68981
|
-
return !!html ? this.processHtml(html) : "";
|
69690
|
+
return !!html ? this.processHtml(html, "completed") : "";
|
68982
69691
|
},
|
68983
69692
|
enumerable: false,
|
68984
69693
|
configurable: true
|
@@ -68990,7 +69699,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
68990
69699
|
* @see cookieName
|
68991
69700
|
*/
|
68992
69701
|
get: function () {
|
68993
|
-
return this.processHtml(this.completedBeforeHtml);
|
69702
|
+
return this.processHtml(this.completedBeforeHtml, "completed-before");
|
68994
69703
|
},
|
68995
69704
|
enumerable: false,
|
68996
69705
|
configurable: true
|
@@ -69000,7 +69709,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
69000
69709
|
* Returns the HTML content, that is shows when a survey loads the survey JSON.
|
69001
69710
|
*/
|
69002
69711
|
get: function () {
|
69003
|
-
return this.processHtml(this.loadingHtml);
|
69712
|
+
return this.processHtml(this.loadingHtml, "loading");
|
69004
69713
|
},
|
69005
69714
|
enumerable: false,
|
69006
69715
|
configurable: true
|
@@ -69535,9 +70244,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
69535
70244
|
};
|
69536
70245
|
/**
|
69537
70246
|
* Adds an existing page to the survey.
|
69538
|
-
* @param page
|
69539
|
-
* @param index
|
70247
|
+
* @param page A page to add.
|
70248
|
+
* @param index An index at which to insert the page. If you do not specify this parameter, the page will be added to the end.
|
69540
70249
|
* @see addNewPage
|
70250
|
+
* @see createNewPage
|
69541
70251
|
*/
|
69542
70252
|
SurveyModel.prototype.addPage = function (page, index) {
|
69543
70253
|
if (index === void 0) { index = -1; }
|
@@ -69551,10 +70261,12 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
69551
70261
|
}
|
69552
70262
|
};
|
69553
70263
|
/**
|
69554
|
-
* Creates a new page and adds it to
|
69555
|
-
* @param name
|
69556
|
-
* @param index
|
70264
|
+
* Creates a new page and adds it to the survey.
|
70265
|
+
* @param name A page name. If you do not specify this parameter, it will be generated automatically.
|
70266
|
+
* @param index An index at which to insert the page. If you do not specify this parameter, the page will be added to the end.
|
70267
|
+
* @returns The created and added page.
|
69557
70268
|
* @see addPage
|
70269
|
+
* @see createNewPage
|
69558
70270
|
*/
|
69559
70271
|
SurveyModel.prototype.addNewPage = function (name, index) {
|
69560
70272
|
if (name === void 0) { name = null; }
|
@@ -69770,8 +70482,9 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
69770
70482
|
return result;
|
69771
70483
|
};
|
69772
70484
|
/**
|
69773
|
-
* Creates and returns a new page
|
69774
|
-
*
|
70485
|
+
* Creates and returns a new page but does not add it to the survey.
|
70486
|
+
*
|
70487
|
+
* Call the [`addPage(page)`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#addPage) method to add the created page to the survey later or the [`addNewPage(name, index)`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#addNewPage) method to create _and_ add a page to the survey.
|
69775
70488
|
* @see addPage
|
69776
70489
|
* @see addNewPage
|
69777
70490
|
*/
|
@@ -70482,6 +71195,9 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
70482
71195
|
SurveyModel.prototype.setVariable = function (name, newValue) {
|
70483
71196
|
if (!name)
|
70484
71197
|
return;
|
71198
|
+
if (!!this.valuesHash) {
|
71199
|
+
delete this.valuesHash[name];
|
71200
|
+
}
|
70485
71201
|
name = name.toLowerCase();
|
70486
71202
|
this.variablesHash[name] = newValue;
|
70487
71203
|
this.notifyElementsOnAnyValueOrVariableChanged(name);
|
@@ -70901,8 +71617,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
70901
71617
|
this.onValidatePanel.fire(this, options);
|
70902
71618
|
return options.error ? new _error__WEBPACK_IMPORTED_MODULE_9__["CustomError"](options.error, this) : null;
|
70903
71619
|
};
|
70904
|
-
SurveyModel.prototype.processHtml = function (html) {
|
70905
|
-
|
71620
|
+
SurveyModel.prototype.processHtml = function (html, reason) {
|
71621
|
+
if (!reason)
|
71622
|
+
reason = "";
|
71623
|
+
var options = { html: html, reason: reason };
|
70906
71624
|
this.onProcessHtml.fire(this, options);
|
70907
71625
|
return this.processText(options.html, true);
|
70908
71626
|
};
|
@@ -71440,6 +72158,20 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
71440
72158
|
}
|
71441
72159
|
return true;
|
71442
72160
|
};
|
72161
|
+
SurveyModel.prototype.questionEditFinishCallback = function (question, event) {
|
72162
|
+
if (_settings__WEBPACK_IMPORTED_MODULE_14__["settings"].enterKeyAction == "loseFocus")
|
72163
|
+
event.target.blur();
|
72164
|
+
if (_settings__WEBPACK_IMPORTED_MODULE_14__["settings"].enterKeyAction == "moveToNextEditor") {
|
72165
|
+
var allQuestions = this.currentPage.questions;
|
72166
|
+
var questionIndex = allQuestions.indexOf(question);
|
72167
|
+
if (questionIndex > -1 && questionIndex < allQuestions.length - 1) {
|
72168
|
+
allQuestions[questionIndex + 1].focus();
|
72169
|
+
}
|
72170
|
+
else {
|
72171
|
+
event.target.blur();
|
72172
|
+
}
|
72173
|
+
}
|
72174
|
+
};
|
71443
72175
|
SurveyModel.prototype.getElementWrapperComponentName = function (element, reason) {
|
71444
72176
|
if (reason === "logo-image") {
|
71445
72177
|
return "sv-logo-image";
|
@@ -71479,6 +72211,27 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
71479
72211
|
SurveyModel.prototype.getSkeletonComponentName = function (element) {
|
71480
72212
|
return this.skeletonComponentName;
|
71481
72213
|
};
|
72214
|
+
/**
|
72215
|
+
* Adds an element to the survey layout.
|
72216
|
+
*
|
72217
|
+
* This method accepts an object with the following layout element properties:
|
72218
|
+
*
|
72219
|
+
* - `id`: `String` | `"timerpanel"` | `"progress-buttons"` | `"progress-questions"` | `"progress-pages"` | `"progress-correctquestions"` | `"progress-requiredquestions"` | `"toc-navigation"` | `"navigationbuttons"`\
|
72220
|
+
* A layout element identifier. You can use possible values to access and relocate or customize predefined layout elements.
|
72221
|
+
*
|
72222
|
+
* - `container`: `"header"` | `"footer"` | `"left"` | `"right"` | `"contentTop"` | `"contentBottom"`\
|
72223
|
+
* 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.
|
72224
|
+
*
|
72225
|
+
* - `component`: `String`\
|
72226
|
+
* The name of the component that renders the layout element.
|
72227
|
+
*
|
72228
|
+
* - `data`: `any`\
|
72229
|
+
* Data passed as props to `component`.
|
72230
|
+
*
|
72231
|
+
* [View Demo](https://surveyjs.io/form-library/examples/progress-bar-with-percentage/ (linkStyle))
|
72232
|
+
* @param layoutElement A layout element configuration.
|
72233
|
+
* @returns The configuration of the previous layout element with the same `id`.
|
72234
|
+
*/
|
71482
72235
|
SurveyModel.prototype.addLayoutElement = function (layoutElement) {
|
71483
72236
|
var existingLayoutElement = this.removeLayoutElement(layoutElement.id);
|
71484
72237
|
this.layoutElements.push(layoutElement);
|
@@ -71532,7 +72285,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
71532
72285
|
}
|
71533
72286
|
}
|
71534
72287
|
}
|
71535
|
-
else if (isStrCiEqual(layoutElement.id, "toc-navigation") && this.showTOC) {
|
72288
|
+
else if (!this.isShowingPreview && isStrCiEqual(layoutElement.id, "toc-navigation") && this.showTOC) {
|
71536
72289
|
if (container === "left") {
|
71537
72290
|
if (["left", "both"].indexOf(this.tocLocation) !== -1) {
|
71538
72291
|
containerLayoutElements.push(layoutElement);
|
@@ -71581,7 +72334,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
71581
72334
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
71582
72335
|
], SurveyModel.prototype, "containerCss", void 0);
|
71583
72336
|
__decorate([
|
71584
|
-
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])(
|
72337
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
71585
72338
|
], SurveyModel.prototype, "showBrandInfo", void 0);
|
71586
72339
|
__decorate([
|
71587
72340
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
@@ -72244,13 +72997,14 @@ var SurveyTimerModel = /** @class */ (function (_super) {
|
|
72244
72997
|
/*!**************************!*\
|
72245
72998
|
!*** ./src/surveyToc.ts ***!
|
72246
72999
|
\**************************/
|
72247
|
-
/*! exports provided: tryNavigateToPage, createTOCListModel */
|
73000
|
+
/*! exports provided: tryNavigateToPage, createTOCListModel, getTocRootCss */
|
72248
73001
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
72249
73002
|
|
72250
73003
|
"use strict";
|
72251
73004
|
__webpack_require__.r(__webpack_exports__);
|
72252
73005
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "tryNavigateToPage", function() { return tryNavigateToPage; });
|
72253
73006
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createTOCListModel", function() { return createTOCListModel; });
|
73007
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getTocRootCss", function() { return getTocRootCss; });
|
72254
73008
|
/* harmony import */ var _actions_action__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./actions/action */ "./src/actions/action.ts");
|
72255
73009
|
/* harmony import */ var _list__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./list */ "./src/list.ts");
|
72256
73010
|
|
@@ -72263,7 +73017,7 @@ function tryNavigateToPage(survey, index) {
|
|
72263
73017
|
}
|
72264
73018
|
else if (index > survey.currentPageNo) {
|
72265
73019
|
for (var i = survey.currentPageNo; i < index; i++) {
|
72266
|
-
if (!survey.
|
73020
|
+
if (!survey.nextPageUIClick())
|
72267
73021
|
return false;
|
72268
73022
|
}
|
72269
73023
|
}
|
@@ -72275,6 +73029,9 @@ function createTOCListModel(survey) {
|
|
72275
73029
|
id: page.name,
|
72276
73030
|
title: page.navigationTitle || page.title || page.name,
|
72277
73031
|
action: function () {
|
73032
|
+
if (typeof document !== undefined && !!document.activeElement) {
|
73033
|
+
!!document.activeElement.blur && document.activeElement.blur();
|
73034
|
+
}
|
72278
73035
|
return tryNavigateToPage(survey, index);
|
72279
73036
|
}
|
72280
73037
|
});
|
@@ -72291,6 +73048,9 @@ function createTOCListModel(survey) {
|
|
72291
73048
|
});
|
72292
73049
|
return listModel;
|
72293
73050
|
}
|
73051
|
+
function getTocRootCss(survey) {
|
73052
|
+
return "sv_progress-toc" + (" sv_progress-toc--" + (survey.tocLocation || "").toLowerCase());
|
73053
|
+
}
|
72294
73054
|
|
72295
73055
|
|
72296
73056
|
/***/ }),
|
@@ -72467,7 +73227,9 @@ var SvgIconRegistry = /** @class */ (function () {
|
|
72467
73227
|
var SvgRegistry = new SvgIconRegistry();
|
72468
73228
|
var SvgBundleViewModel;
|
72469
73229
|
var path = __webpack_require__("./src/images sync \\.svg$");
|
73230
|
+
var pathSmiley = __webpack_require__("./src/images/smiley sync \\.svg$");
|
72470
73231
|
SvgRegistry.registerIconsFromFolder(path);
|
73232
|
+
SvgRegistry.registerIconsFromFolder(pathSmiley);
|
72471
73233
|
|
72472
73234
|
|
72473
73235
|
/***/ }),
|
@@ -72956,7 +73718,7 @@ var Trigger = /** @class */ (function (_super) {
|
|
72956
73718
|
var firstName = processValue.getFirstName(name);
|
72957
73719
|
if (!keys.hasOwnProperty(firstName))
|
72958
73720
|
continue;
|
72959
|
-
if (name
|
73721
|
+
if (name === firstName)
|
72960
73722
|
return true;
|
72961
73723
|
var keyValue = keys[firstName];
|
72962
73724
|
if (keyValue == undefined)
|
@@ -72969,7 +73731,8 @@ var Trigger = /** @class */ (function (_super) {
|
|
72969
73731
|
var oldValue = processValue.getValue(name, v);
|
72970
73732
|
v[firstName] = keyValue["newValue"];
|
72971
73733
|
var newValue = processValue.getValue(name, v);
|
72972
|
-
|
73734
|
+
if (!this.isTwoValueEquals(oldValue, newValue))
|
73735
|
+
return true;
|
72973
73736
|
}
|
72974
73737
|
return false;
|
72975
73738
|
};
|
@@ -73144,7 +73907,7 @@ var SurveyTriggerSetValue = /** @class */ (function (_super) {
|
|
73144
73907
|
});
|
73145
73908
|
Object.defineProperty(SurveyTriggerSetValue.prototype, "isVariable", {
|
73146
73909
|
get: function () {
|
73147
|
-
return this.getPropertyValue("isVariable"
|
73910
|
+
return this.getPropertyValue("isVariable");
|
73148
73911
|
},
|
73149
73912
|
set: function (val) {
|
73150
73913
|
this.setPropertyValue("isVariable", val);
|
@@ -74598,6 +75361,8 @@ var AnswerCountValidator = /** @class */ (function (_super) {
|
|
74598
75361
|
|
74599
75362
|
/**
|
74600
75363
|
* Use it to validate the text by regular expressions.
|
75364
|
+
*
|
75365
|
+
* [View Demo](https://surveyjs.io/form-library/examples/javascript-form-validation/ (linkStyle))
|
74601
75366
|
*/
|
74602
75367
|
var RegexValidator = /** @class */ (function (_super) {
|
74603
75368
|
__extends(RegexValidator, _super);
|