survey-creator-core 1.9.88 → 1.9.90
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/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +285 -74
- package/survey-creator-core.fontless.css +284 -73
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +19 -15
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +2693 -261
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +20 -16
- package/survey-creator-core.min.js +3 -3
- package/typings/components/header/logo-image.d.ts +1 -0
- package/typings/components/image-item-value.d.ts +1 -0
- package/typings/components/item-value.d.ts +1 -0
- package/typings/components/matrix-cell.d.ts +1 -1
- package/typings/components/page.d.ts +5 -2
- package/typings/components/question-image.d.ts +1 -0
- package/typings/components/question-rating.d.ts +1 -0
- package/typings/components/question.d.ts +1 -1
- package/typings/components/simulator.d.ts +1 -0
- package/typings/components/tabs/theme-custom-questions/boxshadow-settings.d.ts +2 -0
- package/typings/components/tabs/theme-custom-questions/color-settings.d.ts +5 -0
- package/typings/components/tabs/theme-plugin.d.ts +25 -0
- package/typings/components/tabs/theme.d.ts +92 -0
- package/typings/creator-base.d.ts +26 -1
- package/typings/creator-options.d.ts +1 -0
- package/typings/creator-settings.d.ts +4 -1
- package/typings/editorLocalization.d.ts +73 -0
- package/typings/entries/index.d.ts +4 -0
- package/typings/localization/english.d.ts +73 -0
- package/typings/property-grid/index.d.ts +7 -0
- package/typings/property-grid/matrices.d.ts +2 -0
- package/typings/survey-elements.d.ts +44 -0
- package/typings/utils/utils.d.ts +23 -1
package/survey-creator-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v1.9.
|
|
2
|
+
* SurveyJS Creator v1.9.90
|
|
3
3
|
* (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -374,6 +374,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
374
374
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
375
375
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
376
376
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
377
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
|
|
378
|
+
|
|
377
379
|
|
|
378
380
|
|
|
379
381
|
__webpack_require__(/*! ./logo-image.scss */ "./src/components/header/logo-image.scss");
|
|
@@ -438,6 +440,13 @@ var LogoImageViewModel = /** @class */ (function (_super) {
|
|
|
438
440
|
enumerable: false,
|
|
439
441
|
configurable: true
|
|
440
442
|
});
|
|
443
|
+
Object.defineProperty(LogoImageViewModel.prototype, "acceptedTypes", {
|
|
444
|
+
get: function () {
|
|
445
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_2__["getAcceptedTypesByContentMode"])("image");
|
|
446
|
+
},
|
|
447
|
+
enumerable: false,
|
|
448
|
+
configurable: true
|
|
449
|
+
});
|
|
441
450
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
442
451
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
443
452
|
], LogoImageViewModel.prototype, "isUploading", void 0);
|
|
@@ -473,6 +482,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
473
482
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
474
483
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
475
484
|
/* harmony import */ var _item_value__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./item-value */ "./src/components/item-value.ts");
|
|
485
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
486
|
+
|
|
476
487
|
|
|
477
488
|
|
|
478
489
|
|
|
@@ -552,6 +563,13 @@ var ImageItemValueWrapperViewModel = /** @class */ (function (_super) {
|
|
|
552
563
|
model.uploadFiles(files);
|
|
553
564
|
});
|
|
554
565
|
};
|
|
566
|
+
Object.defineProperty(ImageItemValueWrapperViewModel.prototype, "acceptedTypes", {
|
|
567
|
+
get: function () {
|
|
568
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_3__["getAcceptedTypesByContentMode"])(this.question.contentMode);
|
|
569
|
+
},
|
|
570
|
+
enumerable: false,
|
|
571
|
+
configurable: true
|
|
572
|
+
});
|
|
555
573
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
556
574
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
557
575
|
], ImageItemValueWrapperViewModel.prototype, "isFileDragging", void 0);
|
|
@@ -665,7 +683,7 @@ var ItemValueWrapperViewModel = /** @class */ (function (_super) {
|
|
|
665
683
|
_this.dragDropHelper.startDrag(pointerDownEvent, _this.item, _this.question, currentTarget);
|
|
666
684
|
};
|
|
667
685
|
_this.handleDragDropGhostPositionChanged = function () {
|
|
668
|
-
_this.ghostPosition = _this.
|
|
686
|
+
_this.ghostPosition = _this.getGhostPosition(_this.item);
|
|
669
687
|
_this.isDragDropGhost = _this.item === _this.dragDropHelper.draggedElement;
|
|
670
688
|
if (_this.item === _this.dragDropHelper.prevDropTarget) {
|
|
671
689
|
_this.isDragDropMoveDown = _this.item.isDragDropMoveDown;
|
|
@@ -753,6 +771,11 @@ var ItemValueWrapperViewModel = /** @class */ (function (_super) {
|
|
|
753
771
|
_super.prototype.dispose.call(this);
|
|
754
772
|
this.dragDropHelper.onGhostPositionChanged.remove(this.handleDragDropGhostPositionChanged);
|
|
755
773
|
};
|
|
774
|
+
ItemValueWrapperViewModel.prototype.getGhostPosition = function (item) {
|
|
775
|
+
if (this.dragDropHelper.dropTarget !== item)
|
|
776
|
+
return null;
|
|
777
|
+
return this.dragDropHelper.isBottom ? "bottom" : "top";
|
|
778
|
+
};
|
|
756
779
|
Object.defineProperty(ItemValueWrapperViewModel.prototype, "isDraggable", {
|
|
757
780
|
get: function () {
|
|
758
781
|
return this.isDraggableItem(this.item);
|
|
@@ -1145,7 +1168,7 @@ var MatrixCellWrapperViewModel = /** @class */ (function (_super) {
|
|
|
1145
1168
|
creator.onSelectedElementChanged.add(_this.onSelectionChanged);
|
|
1146
1169
|
return _this;
|
|
1147
1170
|
}
|
|
1148
|
-
MatrixCellWrapperViewModel.prototype.editQuestion = function (model) {
|
|
1171
|
+
MatrixCellWrapperViewModel.prototype.editQuestion = function (model, event) {
|
|
1149
1172
|
var editSurvey = new MatrixCellWrapperEditSurvey(model.creator, model.question);
|
|
1150
1173
|
survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].showModal("svc-question-editor-content", {
|
|
1151
1174
|
survey: editSurvey.survey,
|
|
@@ -1154,6 +1177,8 @@ var MatrixCellWrapperViewModel = /** @class */ (function (_super) {
|
|
|
1154
1177
|
editSurvey.apply();
|
|
1155
1178
|
return true;
|
|
1156
1179
|
}, undefined, "svc-matrix-cell__popup", model.question.name, this.creator.isMobileView ? "overlay" : "popup");
|
|
1180
|
+
event.stopPropagation();
|
|
1181
|
+
model.creator.selectElement(model.column);
|
|
1157
1182
|
};
|
|
1158
1183
|
Object.defineProperty(MatrixCellWrapperViewModel.prototype, "context", {
|
|
1159
1184
|
get: function () {
|
|
@@ -1582,6 +1607,7 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
1582
1607
|
"description"
|
|
1583
1608
|
]);
|
|
1584
1609
|
currentPage.name = _survey_helper__WEBPACK_IMPORTED_MODULE_4__["SurveyHelper"].getNewPageName(_this.creator.survey.pages);
|
|
1610
|
+
_this.dragTypeOverMe = null;
|
|
1585
1611
|
return true;
|
|
1586
1612
|
})) {
|
|
1587
1613
|
_this.creator.survey.currentPage = currentPage;
|
|
@@ -1603,6 +1629,7 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
1603
1629
|
var _this = this;
|
|
1604
1630
|
_super.prototype.attachElement.call(this, surveyElement);
|
|
1605
1631
|
if (!!this.page) {
|
|
1632
|
+
this.dragTypeOverMe = new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return _this.page.dragTypeOverMe; });
|
|
1606
1633
|
this.page["surveyChangedCallback"] = function () {
|
|
1607
1634
|
_this.isPageLive = !!_this.page.survey;
|
|
1608
1635
|
};
|
|
@@ -1666,12 +1693,12 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
1666
1693
|
enumerable: false,
|
|
1667
1694
|
configurable: true
|
|
1668
1695
|
});
|
|
1669
|
-
PageAdorner.prototype.addNewQuestion = function (model, event) {
|
|
1696
|
+
PageAdorner.prototype.addNewQuestion = function (model, event, type) {
|
|
1670
1697
|
var _this = this;
|
|
1671
1698
|
this.creator.addNewQuestionInPage(function (type) {
|
|
1672
1699
|
_this.addGhostPage(false);
|
|
1673
1700
|
_this.creator.survey.currentPage = _this.page;
|
|
1674
|
-
}, null, this.currentAddQuestionType || _creator_settings__WEBPACK_IMPORTED_MODULE_5__["settings"].designer.defaultAddQuestionType);
|
|
1701
|
+
}, null, type || this.currentAddQuestionType || _creator_settings__WEBPACK_IMPORTED_MODULE_5__["settings"].designer.defaultAddQuestionType);
|
|
1675
1702
|
};
|
|
1676
1703
|
PageAdorner.prototype.select = function (model, event) {
|
|
1677
1704
|
if (!model.isGhost) {
|
|
@@ -1690,12 +1717,17 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
1690
1717
|
};
|
|
1691
1718
|
Object.defineProperty(PageAdorner.prototype, "css", {
|
|
1692
1719
|
get: function () {
|
|
1720
|
+
var result = "";
|
|
1721
|
+
if (!!this.dragTypeOverMe && this.page.elements.length === 0 && this.creator.survey.pages.length > 0) {
|
|
1722
|
+
result = "svc-page--drag-over-empty";
|
|
1723
|
+
}
|
|
1693
1724
|
if (this.isGhost) {
|
|
1694
|
-
return "svc-page__content--new";
|
|
1725
|
+
return result + " svc-page__content--new";
|
|
1695
1726
|
}
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1727
|
+
if (this.creator.isElementSelected(this.page)) {
|
|
1728
|
+
result += " svc-page__content--selected";
|
|
1729
|
+
}
|
|
1730
|
+
return result;
|
|
1699
1731
|
},
|
|
1700
1732
|
enumerable: false,
|
|
1701
1733
|
configurable: true
|
|
@@ -1719,6 +1751,30 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
1719
1751
|
enumerable: false,
|
|
1720
1752
|
configurable: true
|
|
1721
1753
|
});
|
|
1754
|
+
Object.defineProperty(PageAdorner.prototype, "footerActionsBar", {
|
|
1755
|
+
get: function () {
|
|
1756
|
+
var _this = this;
|
|
1757
|
+
if (!this._footerActionsBar) {
|
|
1758
|
+
this._footerActionsBar = new survey_core__WEBPACK_IMPORTED_MODULE_1__["ActionContainer"]();
|
|
1759
|
+
this._footerActionsBar.containerCss = "svc-page__footer";
|
|
1760
|
+
this._footerActionsBar.cssClasses = {
|
|
1761
|
+
item: "svc-btn",
|
|
1762
|
+
itemTitle: "svc-text svc-text--normal svc-text--bold"
|
|
1763
|
+
};
|
|
1764
|
+
var footerActions = [{
|
|
1765
|
+
css: "svc-add-new-question-action",
|
|
1766
|
+
visible: (new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return _this.showAddQuestionButton; })),
|
|
1767
|
+
component: "svc-add-new-question-btn",
|
|
1768
|
+
data: this
|
|
1769
|
+
}];
|
|
1770
|
+
footerActions = this.creator.getUpdatedPageAdornerFooterActions(this, footerActions);
|
|
1771
|
+
this.footerActionsBar.setItems(footerActions);
|
|
1772
|
+
}
|
|
1773
|
+
return this._footerActionsBar;
|
|
1774
|
+
},
|
|
1775
|
+
enumerable: false,
|
|
1776
|
+
configurable: true
|
|
1777
|
+
});
|
|
1722
1778
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
1723
1779
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
1724
1780
|
], PageAdorner.prototype, "isSelected", void 0);
|
|
@@ -1728,6 +1784,9 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
1728
1784
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
1729
1785
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: "" })
|
|
1730
1786
|
], PageAdorner.prototype, "currentAddQuestionType", void 0);
|
|
1787
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
1788
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: null })
|
|
1789
|
+
], PageAdorner.prototype, "dragTypeOverMe", void 0);
|
|
1731
1790
|
return PageAdorner;
|
|
1732
1791
|
}(_action_container_view_model__WEBPACK_IMPORTED_MODULE_2__["SurveyElementAdornerBase"]));
|
|
1733
1792
|
|
|
@@ -1896,7 +1955,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1896
1955
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
1897
1956
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
1898
1957
|
/* harmony import */ var _question__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./question */ "./src/components/question.ts");
|
|
1899
|
-
/* harmony import */ var
|
|
1958
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
1959
|
+
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../editorLocalization */ "./src/editorLocalization.ts");
|
|
1960
|
+
|
|
1900
1961
|
|
|
1901
1962
|
|
|
1902
1963
|
|
|
@@ -1936,6 +1997,13 @@ var QuestionImageAdornerViewModel = /** @class */ (function (_super) {
|
|
|
1936
1997
|
});
|
|
1937
1998
|
});
|
|
1938
1999
|
};
|
|
2000
|
+
Object.defineProperty(QuestionImageAdornerViewModel.prototype, "acceptedTypes", {
|
|
2001
|
+
get: function () {
|
|
2002
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_3__["getAcceptedTypesByContentMode"])(this.surveyElement.contentMode);
|
|
2003
|
+
},
|
|
2004
|
+
enumerable: false,
|
|
2005
|
+
configurable: true
|
|
2006
|
+
});
|
|
1939
2007
|
QuestionImageAdornerViewModel.prototype.imageLinkValueChangedHandler = function () {
|
|
1940
2008
|
this.isEmptyImageLink = !this.question.imageLink;
|
|
1941
2009
|
this.filePresentationModel.value = null;
|
|
@@ -1957,14 +2025,14 @@ var QuestionImageAdornerViewModel = /** @class */ (function (_super) {
|
|
|
1957
2025
|
});
|
|
1958
2026
|
Object.defineProperty(QuestionImageAdornerViewModel.prototype, "placeholderText", {
|
|
1959
2027
|
get: function () {
|
|
1960
|
-
return Object(
|
|
2028
|
+
return Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_4__["getLocString"])("ed.imagePlaceHolder");
|
|
1961
2029
|
},
|
|
1962
2030
|
enumerable: false,
|
|
1963
2031
|
configurable: true
|
|
1964
2032
|
});
|
|
1965
2033
|
Object.defineProperty(QuestionImageAdornerViewModel.prototype, "chooseImageText", {
|
|
1966
2034
|
get: function () {
|
|
1967
|
-
return Object(
|
|
2035
|
+
return Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_4__["getLocString"])("ed.imageChooseImage");
|
|
1968
2036
|
},
|
|
1969
2037
|
enumerable: false,
|
|
1970
2038
|
configurable: true
|
|
@@ -2024,7 +2092,7 @@ var QuestionRatingAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2024
2092
|
}
|
|
2025
2093
|
Object.defineProperty(QuestionRatingAdornerViewModel.prototype, "element", {
|
|
2026
2094
|
get: function () {
|
|
2027
|
-
return this.surveyElement;
|
|
2095
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_3__["getQuestionFromObj"])(this.surveyElement);
|
|
2028
2096
|
},
|
|
2029
2097
|
enumerable: false,
|
|
2030
2098
|
configurable: true
|
|
@@ -2097,7 +2165,7 @@ var QuestionRatingAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2097
2165
|
};
|
|
2098
2166
|
Object.defineProperty(QuestionRatingAdornerViewModel.prototype, "allowAdd", {
|
|
2099
2167
|
get: function () {
|
|
2100
|
-
return
|
|
2168
|
+
return this.canAddOrRemove();
|
|
2101
2169
|
},
|
|
2102
2170
|
enumerable: false,
|
|
2103
2171
|
configurable: true
|
|
@@ -2122,9 +2190,14 @@ var QuestionRatingAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2122
2190
|
QuestionRatingAdornerViewModel.allowRemoveForElement = function (element) {
|
|
2123
2191
|
return element.rateCount > 2;
|
|
2124
2192
|
};
|
|
2193
|
+
QuestionRatingAdornerViewModel.prototype.canAddOrRemove = function () {
|
|
2194
|
+
return this.creator.isCanModifyProperty(this.element, "rateValues") &&
|
|
2195
|
+
this.creator.isCanModifyProperty(this.element, "rateCount") &&
|
|
2196
|
+
(!this.element.autoGenerate || this.creator.isCanModifyProperty(this.element, "rateMax"));
|
|
2197
|
+
};
|
|
2125
2198
|
Object.defineProperty(QuestionRatingAdornerViewModel.prototype, "allowRemove", {
|
|
2126
2199
|
get: function () {
|
|
2127
|
-
return
|
|
2200
|
+
return this.canAddOrRemove();
|
|
2128
2201
|
},
|
|
2129
2202
|
enumerable: false,
|
|
2130
2203
|
configurable: true
|
|
@@ -2234,12 +2307,6 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2234
2307
|
}
|
|
2235
2308
|
_this.checkActionProperties();
|
|
2236
2309
|
_this.dragOrClickHelper = new survey_core__WEBPACK_IMPORTED_MODULE_1__["DragOrClickHelper"](_this.startDragSurveyElement);
|
|
2237
|
-
_this.dragTypeOverMe = new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
|
|
2238
|
-
var element = _this.surveyElement.getType() === "paneldynamic" ?
|
|
2239
|
-
_this.surveyElement.template :
|
|
2240
|
-
_this.surveyElement;
|
|
2241
|
-
return element.dragTypeOverMe;
|
|
2242
|
-
});
|
|
2243
2310
|
_string_editor__WEBPACK_IMPORTED_MODULE_7__["StringItemsNavigatorBase"].setQuestion(_this);
|
|
2244
2311
|
return _this;
|
|
2245
2312
|
}
|
|
@@ -2285,18 +2352,30 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2285
2352
|
else {
|
|
2286
2353
|
result = result.replace(" svc-question__content--drag-over-inside", "");
|
|
2287
2354
|
}
|
|
2288
|
-
if (this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].MultilineLeft) {
|
|
2355
|
+
if (this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].MultilineLeft || this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Left) {
|
|
2289
2356
|
result += " svc-question__content--drag-over-left";
|
|
2290
2357
|
}
|
|
2291
2358
|
else {
|
|
2292
2359
|
result = result.replace(" svc-question__content--drag-over-left", "");
|
|
2293
2360
|
}
|
|
2294
|
-
if (this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].MultilineRight) {
|
|
2361
|
+
if (this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].MultilineRight || this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Right) {
|
|
2295
2362
|
result += " svc-question__content--drag-over-right";
|
|
2296
2363
|
}
|
|
2297
2364
|
else {
|
|
2298
2365
|
result = result.replace(" svc-question__content--drag-over-right", "");
|
|
2299
2366
|
}
|
|
2367
|
+
if (this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Top) {
|
|
2368
|
+
result += " svc-question__content--drag-over-top";
|
|
2369
|
+
}
|
|
2370
|
+
else {
|
|
2371
|
+
result = result.replace(" svc-question__content--drag-over-top", "");
|
|
2372
|
+
}
|
|
2373
|
+
if (this.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Bottom) {
|
|
2374
|
+
result += " svc-question__content--drag-over-bottom";
|
|
2375
|
+
}
|
|
2376
|
+
else {
|
|
2377
|
+
result = result.replace(" svc-question__content--drag-over-bottom", "");
|
|
2378
|
+
}
|
|
2300
2379
|
return result;
|
|
2301
2380
|
};
|
|
2302
2381
|
Object.defineProperty(QuestionAdornerViewModel.prototype, "isDragMe", {
|
|
@@ -2306,6 +2385,13 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2306
2385
|
enumerable: false,
|
|
2307
2386
|
configurable: true
|
|
2308
2387
|
});
|
|
2388
|
+
Object.defineProperty(QuestionAdornerViewModel.prototype, "dragTypeOverMe", {
|
|
2389
|
+
get: function () {
|
|
2390
|
+
return this.element.dragTypeOverMe;
|
|
2391
|
+
},
|
|
2392
|
+
enumerable: false,
|
|
2393
|
+
configurable: true
|
|
2394
|
+
});
|
|
2309
2395
|
QuestionAdornerViewModel.prototype.dispose = function () {
|
|
2310
2396
|
this.surveyElement.unRegisterFunctionOnPropertyValueChanged("isRequired", "isRequiredAdorner");
|
|
2311
2397
|
this.surveyElement.unRegisterFunctionOnPropertyValueChanged("inputType", "inputTypeAdorner");
|
|
@@ -2539,9 +2625,6 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2539
2625
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
2540
2626
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: "" })
|
|
2541
2627
|
], QuestionAdornerViewModel.prototype, "currentAddQuestionType", void 0);
|
|
2542
|
-
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
2543
|
-
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
2544
|
-
], QuestionAdornerViewModel.prototype, "dragTypeOverMe", void 0);
|
|
2545
2628
|
return QuestionAdornerViewModel;
|
|
2546
2629
|
}(_action_container_view_model__WEBPACK_IMPORTED_MODULE_5__["SurveyElementAdornerBase"]));
|
|
2547
2630
|
|
|
@@ -2812,8 +2895,11 @@ var RowViewModel = /** @class */ (function (_super) {
|
|
|
2812
2895
|
this.row.elements[0].name === "sv-drag-drop-ghost-survey-element-name") {
|
|
2813
2896
|
result += ghostClass;
|
|
2814
2897
|
}
|
|
2815
|
-
|
|
2816
|
-
result
|
|
2898
|
+
if (this.row.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Top) {
|
|
2899
|
+
result += " svc-row--drag-over-top";
|
|
2900
|
+
}
|
|
2901
|
+
if (this.row.dragTypeOverMe === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Bottom) {
|
|
2902
|
+
result += " svc-row--drag-over-bottom";
|
|
2817
2903
|
}
|
|
2818
2904
|
return result;
|
|
2819
2905
|
},
|
|
@@ -3283,6 +3369,9 @@ var SurveySimulatorModel = /** @class */ (function (_super) {
|
|
|
3283
3369
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
3284
3370
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: true })
|
|
3285
3371
|
], SurveySimulatorModel.prototype, "simulatorScaleEnabled", void 0);
|
|
3372
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
3373
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: {} })
|
|
3374
|
+
], SurveySimulatorModel.prototype, "themeVariables", void 0);
|
|
3286
3375
|
return SurveySimulatorModel;
|
|
3287
3376
|
}(survey_core__WEBPACK_IMPORTED_MODULE_1__["Base"]));
|
|
3288
3377
|
|
|
@@ -4340,13 +4429,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4340
4429
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../editorLocalization */ "./src/editorLocalization.ts");
|
|
4341
4430
|
/* harmony import */ var _pages_controller__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../pages-controller */ "./src/pages-controller.ts");
|
|
4342
4431
|
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../survey-helper */ "./src/survey-helper.ts");
|
|
4432
|
+
/* harmony import */ var _survey_elements__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../survey-elements */ "./src/survey-elements.ts");
|
|
4343
4433
|
|
|
4344
4434
|
|
|
4345
4435
|
|
|
4346
|
-
__webpack_require__(/*! ./designer.scss */ "./src/components/tabs/designer.scss");
|
|
4347
4436
|
|
|
4348
4437
|
|
|
4349
4438
|
|
|
4439
|
+
__webpack_require__(/*! ./designer.scss */ "./src/components/tabs/designer.scss");
|
|
4350
4440
|
var initialSettingsAllowShowEmptyTitleInDesignMode = survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].allowShowEmptyTitleInDesignMode;
|
|
4351
4441
|
var TabDesignerViewModel = /** @class */ (function (_super) {
|
|
4352
4442
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TabDesignerViewModel, _super);
|
|
@@ -4382,7 +4472,7 @@ var TabDesignerViewModel = /** @class */ (function (_super) {
|
|
|
4382
4472
|
newPage.num = this.survey.pages.length + 1;
|
|
4383
4473
|
newPage.onPropertyChanged.add(checkNewElementHandler);
|
|
4384
4474
|
this.newPage = newPage;
|
|
4385
|
-
|
|
4475
|
+
_survey_elements__WEBPACK_IMPORTED_MODULE_5__["DragDropSurveyElements"].newGhostPage = newPage;
|
|
4386
4476
|
};
|
|
4387
4477
|
Object.defineProperty(TabDesignerViewModel.prototype, "canShowNewPage", {
|
|
4388
4478
|
get: function () {
|
|
@@ -9279,16 +9369,6 @@ __webpack_require__(/*! ./test.scss */ "./src/components/tabs/test.scss");
|
|
|
9279
9369
|
|
|
9280
9370
|
|
|
9281
9371
|
|
|
9282
|
-
// import template from "./test.html";
|
|
9283
|
-
// export * from "@survey/creator/components/toolbar";
|
|
9284
|
-
// export * from "@survey/creator/components/simulator";
|
|
9285
|
-
// export * from "@survey/creator/components/results";
|
|
9286
|
-
// export * from "@survey/creator/utils/dropdown";
|
|
9287
|
-
// export * from "@survey/creator/utils/boolean";
|
|
9288
|
-
// export * from "@survey/creator/utils/svg-icon";
|
|
9289
|
-
// export * from "@survey/creator/utils/survey-widget";
|
|
9290
|
-
// export { SurveySimulatorModel as SurveySimulatorComponentV1 } from "@survey/creator/components/simulator";
|
|
9291
|
-
// export { SurveyResultsModel as SurveyResultsModelV1 } from "@survey/creator/components/results";
|
|
9292
9372
|
var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
9293
9373
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TestSurveyTabViewModel, _super);
|
|
9294
9374
|
function TestSurveyTabViewModel(surveyProvider, startTheme) {
|
|
@@ -9558,10 +9638,1387 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9558
9638
|
target.simulator.survey.showInvisibleElements = val;
|
|
9559
9639
|
}
|
|
9560
9640
|
})
|
|
9561
|
-
], TestSurveyTabViewModel.prototype, "showInvisibleElements", void 0);
|
|
9641
|
+
], TestSurveyTabViewModel.prototype, "showInvisibleElements", void 0);
|
|
9642
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9643
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: true })
|
|
9644
|
+
], TestSurveyTabViewModel.prototype, "showPagesInTestSurveyTab", void 0);
|
|
9645
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9646
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
|
|
9647
|
+
defaultValue: true,
|
|
9648
|
+
onSet: function (value, target) {
|
|
9649
|
+
if (!!target.simulator)
|
|
9650
|
+
target.simulator.isRunning = value;
|
|
9651
|
+
}
|
|
9652
|
+
})
|
|
9653
|
+
], TestSurveyTabViewModel.prototype, "isRunning", void 0);
|
|
9654
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9655
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["propertyArray"])()
|
|
9656
|
+
], TestSurveyTabViewModel.prototype, "pageListItems", void 0);
|
|
9657
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9658
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
|
|
9659
|
+
onSet: function (val, target) {
|
|
9660
|
+
if (!!val) {
|
|
9661
|
+
var survey = target.simulator.survey;
|
|
9662
|
+
if (survey.firstPageIsStarted) {
|
|
9663
|
+
if (val === survey.pages[0]) {
|
|
9664
|
+
survey.clear(false, true);
|
|
9665
|
+
}
|
|
9666
|
+
else {
|
|
9667
|
+
if (survey.state == "starting") {
|
|
9668
|
+
survey.setPropertyValue("isStartedState", false);
|
|
9669
|
+
}
|
|
9670
|
+
}
|
|
9671
|
+
}
|
|
9672
|
+
if (survey.state !== "starting") {
|
|
9673
|
+
survey.currentPage = val;
|
|
9674
|
+
}
|
|
9675
|
+
}
|
|
9676
|
+
target.updatePrevNextPageActionState();
|
|
9677
|
+
}
|
|
9678
|
+
})
|
|
9679
|
+
], TestSurveyTabViewModel.prototype, "activePage", void 0);
|
|
9680
|
+
return TestSurveyTabViewModel;
|
|
9681
|
+
}(survey_core__WEBPACK_IMPORTED_MODULE_2__["Base"]));
|
|
9682
|
+
|
|
9683
|
+
|
|
9684
|
+
|
|
9685
|
+
/***/ }),
|
|
9686
|
+
|
|
9687
|
+
/***/ "./src/components/tabs/theme-custom-questions/boxshadow-settings.ts":
|
|
9688
|
+
/*!**************************************************************************!*\
|
|
9689
|
+
!*** ./src/components/tabs/theme-custom-questions/boxshadow-settings.ts ***!
|
|
9690
|
+
\**************************************************************************/
|
|
9691
|
+
/*! exports provided: createBoxShadow, parseBoxShadow */
|
|
9692
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9693
|
+
|
|
9694
|
+
"use strict";
|
|
9695
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9696
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createBoxShadow", function() { return createBoxShadow; });
|
|
9697
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseBoxShadow", function() { return parseBoxShadow; });
|
|
9698
|
+
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../editorLocalization */ "./src/editorLocalization.ts");
|
|
9699
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
9700
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
9701
|
+
|
|
9702
|
+
|
|
9703
|
+
survey_core__WEBPACK_IMPORTED_MODULE_1__["ComponentCollection"].Instance.add({
|
|
9704
|
+
name: "boxshadowsettings",
|
|
9705
|
+
showInToolbox: false,
|
|
9706
|
+
questionJSON: {
|
|
9707
|
+
"type": "paneldynamic",
|
|
9708
|
+
"panelCount": 1,
|
|
9709
|
+
//temp
|
|
9710
|
+
"maxPanelCount": 1,
|
|
9711
|
+
"minPanelCount": 1,
|
|
9712
|
+
"templateElements": [
|
|
9713
|
+
{
|
|
9714
|
+
"type": "spinedit",
|
|
9715
|
+
"name": "x",
|
|
9716
|
+
"unit": "px",
|
|
9717
|
+
"title": Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_0__["getLocString"])("theme.boxShadowX"),
|
|
9718
|
+
"titleLocation": "left",
|
|
9719
|
+
"min": 0,
|
|
9720
|
+
},
|
|
9721
|
+
{
|
|
9722
|
+
"type": "spinedit",
|
|
9723
|
+
"name": "y",
|
|
9724
|
+
"unit": "px",
|
|
9725
|
+
"min": 0,
|
|
9726
|
+
"startWithNewLine": false,
|
|
9727
|
+
"title": Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_0__["getLocString"])("theme.boxShadowY"),
|
|
9728
|
+
"titleLocation": "left"
|
|
9729
|
+
},
|
|
9730
|
+
{
|
|
9731
|
+
"type": "spinedit",
|
|
9732
|
+
"name": "blur",
|
|
9733
|
+
"unit": "px",
|
|
9734
|
+
"title": Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_0__["getLocString"])("theme.boxShadowBlur"),
|
|
9735
|
+
"min": 0,
|
|
9736
|
+
"titleLocation": "left"
|
|
9737
|
+
},
|
|
9738
|
+
{
|
|
9739
|
+
"type": "spinedit",
|
|
9740
|
+
"name": "spread",
|
|
9741
|
+
"unit": "px",
|
|
9742
|
+
"min": 0,
|
|
9743
|
+
"startWithNewLine": false,
|
|
9744
|
+
"title": Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_0__["getLocString"])("theme.boxShadowSpread"),
|
|
9745
|
+
"titleLocation": "left"
|
|
9746
|
+
},
|
|
9747
|
+
{
|
|
9748
|
+
"type": "colorsettings",
|
|
9749
|
+
"name": "color",
|
|
9750
|
+
"titleLocation": "hidden"
|
|
9751
|
+
},
|
|
9752
|
+
{
|
|
9753
|
+
"type": "buttongroup",
|
|
9754
|
+
"name": "isInset",
|
|
9755
|
+
"titleLocation": "hidden",
|
|
9756
|
+
"choices": [{ text: "Drop", value: false }, { text: "Inner", value: true }]
|
|
9757
|
+
}
|
|
9758
|
+
]
|
|
9759
|
+
},
|
|
9760
|
+
onCreated: function (question) {
|
|
9761
|
+
question.valueFromDataCallback = function (value) { return typeof value == "string" ? parseBoxShadow(value) : value; };
|
|
9762
|
+
question.valueToDataCallback = function (value) { return !!value ? (typeof value == "string" ? value : createBoxShadow(Array.isArray(value) ? value : [value])) : ""; };
|
|
9763
|
+
question.contentQuestion.panels.forEach(function (p) { return p.questions.forEach(function (q) { return q.allowRootStyle = false; }); });
|
|
9764
|
+
},
|
|
9765
|
+
});
|
|
9766
|
+
function createBoxShadow(value) {
|
|
9767
|
+
return value.map((function (val) { return "" + (val.isInset == true ? "inset " : "") + val.x + "px " + val.y + "px " + val.blur + "px " + val.spread + "px " + val.color; })).join(",");
|
|
9768
|
+
}
|
|
9769
|
+
function parseBoxShadow(value) {
|
|
9770
|
+
return value.split(/(?<!\([^)]*),(?!.*\))/).map(function (value) {
|
|
9771
|
+
var color = value.match(/#[a-zA-Z0-9]+|rgba?\(.*?\)/);
|
|
9772
|
+
var isInset = value.indexOf("inset") > -1;
|
|
9773
|
+
var res = {};
|
|
9774
|
+
if (isInset) {
|
|
9775
|
+
value = value.replace("inset", "");
|
|
9776
|
+
}
|
|
9777
|
+
if (!!color) {
|
|
9778
|
+
res["color"] = color[0];
|
|
9779
|
+
}
|
|
9780
|
+
var values = value.replace(/\s+/g, " ").replace(/^\s|\s$/g, "").split(" ");
|
|
9781
|
+
res["x"] = parseInt(values[0]) || 0;
|
|
9782
|
+
res["y"] = parseInt(values[1]) || 0;
|
|
9783
|
+
res["blur"] = parseInt(values[2]) || 0;
|
|
9784
|
+
res["spread"] = parseInt(values[3]) || 0;
|
|
9785
|
+
res["isInset"] = isInset;
|
|
9786
|
+
return res;
|
|
9787
|
+
});
|
|
9788
|
+
}
|
|
9789
|
+
|
|
9790
|
+
|
|
9791
|
+
/***/ }),
|
|
9792
|
+
|
|
9793
|
+
/***/ "./src/components/tabs/theme-custom-questions/color-settings.ts":
|
|
9794
|
+
/*!**********************************************************************!*\
|
|
9795
|
+
!*** ./src/components/tabs/theme-custom-questions/color-settings.ts ***!
|
|
9796
|
+
\**********************************************************************/
|
|
9797
|
+
/*! exports provided: createColor, parseColor */
|
|
9798
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9799
|
+
|
|
9800
|
+
"use strict";
|
|
9801
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9802
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createColor", function() { return createColor; });
|
|
9803
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseColor", function() { return parseColor; });
|
|
9804
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
9805
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
9806
|
+
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../editorLocalization */ "./src/editorLocalization.ts");
|
|
9807
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../utils/utils */ "./src/utils/utils.ts");
|
|
9808
|
+
|
|
9809
|
+
|
|
9810
|
+
|
|
9811
|
+
survey_core__WEBPACK_IMPORTED_MODULE_0__["ComponentCollection"].Instance.add({
|
|
9812
|
+
name: "colorsettings",
|
|
9813
|
+
showInToolbox: false,
|
|
9814
|
+
elementsJSON: [
|
|
9815
|
+
{
|
|
9816
|
+
name: "color",
|
|
9817
|
+
type: "color",
|
|
9818
|
+
titleLocation: "hidden",
|
|
9819
|
+
},
|
|
9820
|
+
{
|
|
9821
|
+
name: "opacity",
|
|
9822
|
+
startWithNewLine: false,
|
|
9823
|
+
type: "spinedit",
|
|
9824
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"])("theme.opacity"),
|
|
9825
|
+
min: 0,
|
|
9826
|
+
max: 100,
|
|
9827
|
+
unit: "%",
|
|
9828
|
+
titleLocation: "left"
|
|
9829
|
+
}
|
|
9830
|
+
],
|
|
9831
|
+
onCreated: function (question) {
|
|
9832
|
+
question.valueFromDataCallback = function (newValue) { return typeof newValue == "string" ? parseColor(newValue) : newValue; };
|
|
9833
|
+
question.valueToDataCallback = function (newValue) { return !!newValue ? (typeof newValue == "string" ? newValue : createColor(newValue)) : ""; };
|
|
9834
|
+
question.contentPanel.questions.forEach(function (q) { return q.allowRootStyle = false; });
|
|
9835
|
+
}
|
|
9836
|
+
});
|
|
9837
|
+
function createColor(value) {
|
|
9838
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_2__["ingectAlpha"])(value.color, value.opacity / 100);
|
|
9839
|
+
}
|
|
9840
|
+
function parseColor(value) {
|
|
9841
|
+
var rgbValues = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_2__["parseRgbaFromString"])(value);
|
|
9842
|
+
if (rgbValues.length !== 0) {
|
|
9843
|
+
var opacity = 1;
|
|
9844
|
+
if (rgbValues.length == 4) {
|
|
9845
|
+
opacity = rgbValues.pop();
|
|
9846
|
+
}
|
|
9847
|
+
var color = rgbValues.reduce(function (res, color) {
|
|
9848
|
+
var hex = color.toString(16);
|
|
9849
|
+
return res + (hex.length == 1 ? "0" + hex : hex);
|
|
9850
|
+
}, "#");
|
|
9851
|
+
return { color: color, opacity: opacity * 100 };
|
|
9852
|
+
}
|
|
9853
|
+
else {
|
|
9854
|
+
return { color: value, opacity: 100 };
|
|
9855
|
+
}
|
|
9856
|
+
}
|
|
9857
|
+
|
|
9858
|
+
|
|
9859
|
+
/***/ }),
|
|
9860
|
+
|
|
9861
|
+
/***/ "./src/components/tabs/theme-plugin.ts":
|
|
9862
|
+
/*!*********************************************!*\
|
|
9863
|
+
!*** ./src/components/tabs/theme-plugin.ts ***!
|
|
9864
|
+
\*********************************************/
|
|
9865
|
+
/*! exports provided: TabThemePlugin */
|
|
9866
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9867
|
+
|
|
9868
|
+
"use strict";
|
|
9869
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9870
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabThemePlugin", function() { return TabThemePlugin; });
|
|
9871
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
|
|
9872
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
9873
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
9874
|
+
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../editorLocalization */ "./src/editorLocalization.ts");
|
|
9875
|
+
/* harmony import */ var _simulator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../simulator */ "./src/components/simulator.ts");
|
|
9876
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./theme */ "./src/components/tabs/theme.ts");
|
|
9877
|
+
|
|
9878
|
+
|
|
9879
|
+
|
|
9880
|
+
|
|
9881
|
+
|
|
9882
|
+
var TabThemePlugin = /** @class */ (function () {
|
|
9883
|
+
function TabThemePlugin(creator) {
|
|
9884
|
+
this.creator = creator;
|
|
9885
|
+
this.simulatorTheme = survey_core__WEBPACK_IMPORTED_MODULE_1__["surveyCss"][survey_core__WEBPACK_IMPORTED_MODULE_1__["defaultV2ThemeName"]];
|
|
9886
|
+
creator.addPluginTab("theme", this, "ed.themeSurvey");
|
|
9887
|
+
this.simulatorTheme = survey_core__WEBPACK_IMPORTED_MODULE_1__["surveyCss"][survey_core__WEBPACK_IMPORTED_MODULE_1__["defaultV2ThemeName"]];
|
|
9888
|
+
this.createActions().forEach(function (action) { return creator.toolbar.actions.push(action); });
|
|
9889
|
+
this.sidebarTab = this.creator.sidebar.addTab("preview");
|
|
9890
|
+
this.sidebarTab.caption = _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("ed.previewPropertyGridTitle");
|
|
9891
|
+
}
|
|
9892
|
+
TabThemePlugin.prototype.getSimulatorDevicesTitle = function () {
|
|
9893
|
+
if (!this.model)
|
|
9894
|
+
return "";
|
|
9895
|
+
return _simulator__WEBPACK_IMPORTED_MODULE_3__["simulatorDevices"][this.model.simulator.device].title || Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["getLocString"])("pe.simulator");
|
|
9896
|
+
};
|
|
9897
|
+
TabThemePlugin.prototype.setDevice = function (newVal) {
|
|
9898
|
+
this.model.simulator.device = newVal;
|
|
9899
|
+
this.model.simulator.resetZoomParameters();
|
|
9900
|
+
var currentType = _simulator__WEBPACK_IMPORTED_MODULE_3__["simulatorDevices"][this.model.simulator.device].deviceType;
|
|
9901
|
+
this.orientationSelectorAction.enabled = currentType != "desktop";
|
|
9902
|
+
this.deviceSelectorAction.iconName = "icon-device-" + currentType;
|
|
9903
|
+
this.deviceSelectorAction.title = Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["getLocString"])("pe.simulator");
|
|
9904
|
+
};
|
|
9905
|
+
TabThemePlugin.prototype.updateActions = function () {
|
|
9906
|
+
if (this.creator.showSimulatorInTestSurveyTab) {
|
|
9907
|
+
this.setDevice(this.model.simulator.device);
|
|
9908
|
+
this.deviceSelectorAction.data.selectedItem = { id: this.model.simulator.device };
|
|
9909
|
+
this.orientationSelectorAction.title = Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["getLocString"])("pe.portraitOrientation");
|
|
9910
|
+
}
|
|
9911
|
+
if (this.creator.showInvisibleElementsInTestSurveyTab) {
|
|
9912
|
+
this.invisibleToggleAction.css = this.model.showInvisibleElements ? "sv-action-bar-item--active" : "";
|
|
9913
|
+
this.invisibleToggleAction.visible = this.model.isRunning;
|
|
9914
|
+
}
|
|
9915
|
+
};
|
|
9916
|
+
TabThemePlugin.prototype.activate = function () {
|
|
9917
|
+
this.model = new _theme__WEBPACK_IMPORTED_MODULE_4__["ThemeSurveyTabViewModel"](this.creator, this.simulatorTheme);
|
|
9918
|
+
this.model.simulator.landscape = this.creator.previewOrientation != "portrait";
|
|
9919
|
+
this.update();
|
|
9920
|
+
this.sidebarTab.model = this.model.themeEditorSurvey;
|
|
9921
|
+
this.sidebarTab.componentName = "survey-widget";
|
|
9922
|
+
this.creator.sidebar.activeTab = this.sidebarTab.id;
|
|
9923
|
+
};
|
|
9924
|
+
TabThemePlugin.prototype.update = function () {
|
|
9925
|
+
var _this = this;
|
|
9926
|
+
if (!this.model)
|
|
9927
|
+
return;
|
|
9928
|
+
var options = {
|
|
9929
|
+
showPagesInTestSurveyTab: this.creator.showPagesInTestSurveyTab,
|
|
9930
|
+
};
|
|
9931
|
+
this.model.testAgainAction = this.testAgainAction;
|
|
9932
|
+
this.model.prevPageAction = this.prevPageAction;
|
|
9933
|
+
this.model.nextPageAction = this.nextPageAction;
|
|
9934
|
+
this.model.initialize(this.creator.JSON, options);
|
|
9935
|
+
this.updateActions();
|
|
9936
|
+
this.model.show();
|
|
9937
|
+
this.model.onPropertyChanged.add(function (sender, options) {
|
|
9938
|
+
if (options.name === "isRunning") {
|
|
9939
|
+
_this.invisibleToggleAction && (_this.invisibleToggleAction.visible = _this.model.isRunning);
|
|
9940
|
+
_this.testAgainAction.visible = !_this.model.isRunning;
|
|
9941
|
+
}
|
|
9942
|
+
});
|
|
9943
|
+
};
|
|
9944
|
+
TabThemePlugin.prototype.deactivate = function () {
|
|
9945
|
+
if (this.model) {
|
|
9946
|
+
this.simulatorTheme = this.model.simulator.survey.css;
|
|
9947
|
+
this.model.onSurveyCreatedCallback = undefined;
|
|
9948
|
+
this.model = undefined;
|
|
9949
|
+
}
|
|
9950
|
+
this.sidebarTab.visible = false;
|
|
9951
|
+
this.testAgainAction.visible = false;
|
|
9952
|
+
this.invisibleToggleAction && (this.invisibleToggleAction.visible = false);
|
|
9953
|
+
return true;
|
|
9954
|
+
};
|
|
9955
|
+
TabThemePlugin.prototype.createActions = function () {
|
|
9956
|
+
var _this = this;
|
|
9957
|
+
var items = [];
|
|
9958
|
+
this.testAgainAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
9959
|
+
id: "testSurveyAgain",
|
|
9960
|
+
visible: false,
|
|
9961
|
+
locTitleName: "ed.testSurveyAgain",
|
|
9962
|
+
action: function () {
|
|
9963
|
+
_this.model.testAgain();
|
|
9964
|
+
}
|
|
9965
|
+
});
|
|
9966
|
+
if (this.creator.showSimulatorInTestSurveyTab) {
|
|
9967
|
+
var deviceSelectorItems = Object.keys(_simulator__WEBPACK_IMPORTED_MODULE_3__["simulatorDevices"])
|
|
9968
|
+
.filter(function (key) { return !!_simulator__WEBPACK_IMPORTED_MODULE_3__["simulatorDevices"][key].title; })
|
|
9969
|
+
.map(function (key) { return ({ id: key, title: _simulator__WEBPACK_IMPORTED_MODULE_3__["simulatorDevices"][key].title }); });
|
|
9970
|
+
this.deviceSelectorAction = Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["createDropdownActionModel"])({
|
|
9971
|
+
id: "deviceSelector",
|
|
9972
|
+
iconName: "icon-device-desktop",
|
|
9973
|
+
mode: "small",
|
|
9974
|
+
visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
|
|
9975
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_0__["notShortCircuitAnd"])(_this.creator.activeTab === "theme", _this.creator.showSimulatorInTestSurveyTab);
|
|
9976
|
+
}),
|
|
9977
|
+
}, {
|
|
9978
|
+
items: deviceSelectorItems,
|
|
9979
|
+
allowSelection: true,
|
|
9980
|
+
onSelectionChanged: function (item) { _this.setDevice(item.id); },
|
|
9981
|
+
horizontalPosition: "center",
|
|
9982
|
+
onHide: function () { _this.deviceSelectorAction.enabled = true; },
|
|
9983
|
+
onShow: function () { _this.deviceSelectorAction.enabled = false; }
|
|
9984
|
+
});
|
|
9985
|
+
items.push(this.deviceSelectorAction);
|
|
9986
|
+
this.orientationSelectorAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
9987
|
+
id: "orientationSelector",
|
|
9988
|
+
iconName: "icon-device-rotate",
|
|
9989
|
+
mode: "small",
|
|
9990
|
+
visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
|
|
9991
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_0__["notShortCircuitAnd"])(_this.creator.activeTab === "theme", _this.creator.showSimulatorInTestSurveyTab);
|
|
9992
|
+
}),
|
|
9993
|
+
action: function () {
|
|
9994
|
+
_this.model.simulator.landscape = !_this.model.simulator.landscape;
|
|
9995
|
+
_this.orientationSelectorAction.title = Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["getLocString"])(!_this.model.simulator.landscape ? "pe.landscapeOrientation" : "pe.portraitOrientation");
|
|
9996
|
+
}
|
|
9997
|
+
});
|
|
9998
|
+
items.push(this.orientationSelectorAction);
|
|
9999
|
+
}
|
|
10000
|
+
if (this.creator.showInvisibleElementsInTestSurveyTab) {
|
|
10001
|
+
this.invisibleToggleAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
10002
|
+
id: "showInvisible",
|
|
10003
|
+
iconName: "icon-invisible-items",
|
|
10004
|
+
mode: "small",
|
|
10005
|
+
needSeparator: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
|
|
10006
|
+
return !_this.creator.isMobileView;
|
|
10007
|
+
}),
|
|
10008
|
+
locTitleName: "ts.showInvisibleElements",
|
|
10009
|
+
visible: false,
|
|
10010
|
+
action: function () {
|
|
10011
|
+
_this.model.showInvisibleElements = !_this.model.showInvisibleElements;
|
|
10012
|
+
_this.invisibleToggleAction.css = _this.model.showInvisibleElements ? "sv-action-bar-item--active" : "";
|
|
10013
|
+
_this.invisibleToggleAction.title = Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["getLocString"])(!_this.model.showInvisibleElements ? "ts.showInvisibleElements" : "ts.hideInvisibleElements");
|
|
10014
|
+
}
|
|
10015
|
+
});
|
|
10016
|
+
items.push(this.invisibleToggleAction);
|
|
10017
|
+
}
|
|
10018
|
+
this.designerAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
10019
|
+
id: "svd-designer",
|
|
10020
|
+
iconName: "icon-preview",
|
|
10021
|
+
needSeparator: true,
|
|
10022
|
+
action: function () { _this.creator.makeNewViewActive("designer"); },
|
|
10023
|
+
active: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return _this.creator.activeTab === "theme"; }),
|
|
10024
|
+
visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
|
|
10025
|
+
return (_this.creator.activeTab === "theme");
|
|
10026
|
+
}),
|
|
10027
|
+
locTitleName: "ed.designer",
|
|
10028
|
+
showTitle: false
|
|
10029
|
+
});
|
|
10030
|
+
this.prevPageAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
10031
|
+
id: "prevPage",
|
|
10032
|
+
iconName: "icon-arrow-left_16x16",
|
|
10033
|
+
visible: false
|
|
10034
|
+
});
|
|
10035
|
+
this.nextPageAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
10036
|
+
id: "nextPage",
|
|
10037
|
+
iconName: "icon-arrow-right_16x16",
|
|
10038
|
+
visible: false
|
|
10039
|
+
});
|
|
10040
|
+
return items;
|
|
10041
|
+
};
|
|
10042
|
+
TabThemePlugin.prototype.addFooterActions = function () {
|
|
10043
|
+
this.creator.footerToolbar.actions.push(this.testAgainAction);
|
|
10044
|
+
this.invisibleToggleAction && (this.creator.footerToolbar.actions.push(this.invisibleToggleAction));
|
|
10045
|
+
this.creator.footerToolbar.actions.push(this.prevPageAction);
|
|
10046
|
+
this.creator.footerToolbar.actions.push(this.nextPageAction);
|
|
10047
|
+
this.creator.footerToolbar.actions.push(this.designerAction);
|
|
10048
|
+
};
|
|
10049
|
+
return TabThemePlugin;
|
|
10050
|
+
}());
|
|
10051
|
+
|
|
10052
|
+
|
|
10053
|
+
|
|
10054
|
+
/***/ }),
|
|
10055
|
+
|
|
10056
|
+
/***/ "./src/components/tabs/theme.scss":
|
|
10057
|
+
/*!****************************************!*\
|
|
10058
|
+
!*** ./src/components/tabs/theme.scss ***!
|
|
10059
|
+
\****************************************/
|
|
10060
|
+
/*! no static exports found */
|
|
10061
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
10062
|
+
|
|
10063
|
+
// extracted by mini-css-extract-plugin
|
|
10064
|
+
|
|
10065
|
+
/***/ }),
|
|
10066
|
+
|
|
10067
|
+
/***/ "./src/components/tabs/theme.ts":
|
|
10068
|
+
/*!**************************************!*\
|
|
10069
|
+
!*** ./src/components/tabs/theme.ts ***!
|
|
10070
|
+
\**************************************/
|
|
10071
|
+
/*! exports provided: Themes, ThemeSurveyTabViewModel */
|
|
10072
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10073
|
+
|
|
10074
|
+
"use strict";
|
|
10075
|
+
__webpack_require__.r(__webpack_exports__);
|
|
10076
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Themes", function() { return Themes; });
|
|
10077
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThemeSurveyTabViewModel", function() { return ThemeSurveyTabViewModel; });
|
|
10078
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
10079
|
+
/* harmony import */ var _simulator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../simulator */ "./src/components/simulator.ts");
|
|
10080
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
10081
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
10082
|
+
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../editorLocalization */ "./src/editorLocalization.ts");
|
|
10083
|
+
/* harmony import */ var _property_grid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../property-grid */ "./src/property-grid/index.ts");
|
|
10084
|
+
/* harmony import */ var _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../property-grid-theme/property-grid */ "./src/property-grid-theme/property-grid.ts");
|
|
10085
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
|
|
10086
|
+
|
|
10087
|
+
|
|
10088
|
+
|
|
10089
|
+
|
|
10090
|
+
|
|
10091
|
+
|
|
10092
|
+
|
|
10093
|
+
__webpack_require__(/*! ./theme.scss */ "./src/components/tabs/theme.scss");
|
|
10094
|
+
var Themes = {
|
|
10095
|
+
"default-light": {
|
|
10096
|
+
"--sjs-primary-backcolor": "rgba(25, 179, 148, 1)",
|
|
10097
|
+
"--sjs-primary-backcolor-light": "rgba(25, 179, 148, 0.1)",
|
|
10098
|
+
"--sjs-primary-backcolor-dark": "rgba(20, 164, 139, 1)",
|
|
10099
|
+
"--background": "#ffffff",
|
|
10100
|
+
"--background-dim": "#f3f3f3",
|
|
10101
|
+
"--background-dim-light": "#f9f9f9",
|
|
10102
|
+
"--sjs-general-forecolor": "rgba(0, 0, 0, 0.91)",
|
|
10103
|
+
"--sjs-general-forecolor-light": "rgba(0, 0, 0, 0.45);",
|
|
10104
|
+
"--sjs-general-dim-forecolor": "rgba(0, 0, 0, 0.91);",
|
|
10105
|
+
"--sjs-general-dim-forecolor-light": "rgba(0, 0, 0, 0.45);",
|
|
10106
|
+
"--sjs-editor-background": "#f9f9f9",
|
|
10107
|
+
"--sjs-question-background": "#ffffff",
|
|
10108
|
+
"--sjs-primary-forecolor": "#ffffff",
|
|
10109
|
+
"--foreground": "#161616",
|
|
10110
|
+
"--base-unit": "8px",
|
|
10111
|
+
"--sjs-corner-radius": "4px"
|
|
10112
|
+
},
|
|
10113
|
+
"default-dark": {
|
|
10114
|
+
"--sjs-primary-backcolor": "rgba(255, 152, 20, 1)",
|
|
10115
|
+
"--sjs-primary-backcolor-light": "rgba(255, 255, 255, 0.07)",
|
|
10116
|
+
"--sjs-primary-backcolor-dark": "rgba(255, 170, 24, 1)",
|
|
10117
|
+
"--background": "#555555",
|
|
10118
|
+
"--background-dim": "#4d4d4d",
|
|
10119
|
+
"--background-dim-light": "#4d4d4d",
|
|
10120
|
+
"--sjs-general-forecolor": "rgba(255, 255, 255, 0.78)",
|
|
10121
|
+
"--sjs-general-forecolor-light": "rgba(255, 255, 255, 0.42)",
|
|
10122
|
+
"--sjs-general-dim-forecolor": "rgba(255, 255, 255, 0.79)",
|
|
10123
|
+
"--sjs-general-dim-forecolor-light": "rgba(255, 255, 255, 0.45)",
|
|
10124
|
+
"--sjs-editor-background": "#4d4d4d",
|
|
10125
|
+
"--sjs-question-background": "#555555",
|
|
10126
|
+
"--sjs-primary-forecolor": "#ffffff",
|
|
10127
|
+
"--foreground": "#ededed",
|
|
10128
|
+
"--base-unit": "8px",
|
|
10129
|
+
"--sjs-corner-radius": "4px"
|
|
10130
|
+
}
|
|
10131
|
+
};
|
|
10132
|
+
survey_core__WEBPACK_IMPORTED_MODULE_2__["ComponentCollection"].Instance.add({
|
|
10133
|
+
name: "fontsettings",
|
|
10134
|
+
showInToolbox: false,
|
|
10135
|
+
elementsJSON: [
|
|
10136
|
+
{
|
|
10137
|
+
type: "dropdown",
|
|
10138
|
+
name: "family",
|
|
10139
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontFamily"),
|
|
10140
|
+
titleLocation: "left",
|
|
10141
|
+
descriptionLocation: "hidden",
|
|
10142
|
+
choices: ["Open Sans", "Arial"],
|
|
10143
|
+
defaultValue: "Open Sans",
|
|
10144
|
+
allowClear: false
|
|
10145
|
+
},
|
|
10146
|
+
{
|
|
10147
|
+
type: "buttongroup",
|
|
10148
|
+
name: "weight",
|
|
10149
|
+
titleLocation: "hidden",
|
|
10150
|
+
descriptionLocation: "hidden",
|
|
10151
|
+
choices: [
|
|
10152
|
+
{ value: "400", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontWeightRegular") },
|
|
10153
|
+
{ value: "500", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontWeightHeavy") },
|
|
10154
|
+
{ value: "600", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontWeightSemiBold") },
|
|
10155
|
+
{ value: "700", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontWeightBold") },
|
|
10156
|
+
],
|
|
10157
|
+
defaultValue: "400"
|
|
10158
|
+
},
|
|
10159
|
+
{
|
|
10160
|
+
type: "color",
|
|
10161
|
+
name: "color",
|
|
10162
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.color"),
|
|
10163
|
+
titleLocation: "left",
|
|
10164
|
+
descriptionLocation: "hidden"
|
|
10165
|
+
},
|
|
10166
|
+
{
|
|
10167
|
+
type: "spinedit",
|
|
10168
|
+
name: "size",
|
|
10169
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.size"),
|
|
10170
|
+
titleLocation: "left",
|
|
10171
|
+
descriptionLocation: "hidden",
|
|
10172
|
+
unit: "px",
|
|
10173
|
+
min: 0,
|
|
10174
|
+
}
|
|
10175
|
+
],
|
|
10176
|
+
onInit: function () {
|
|
10177
|
+
},
|
|
10178
|
+
onCreated: function (question) {
|
|
10179
|
+
var color = question.contentPanel.getQuestionByName("color");
|
|
10180
|
+
color.visible = question.name !== "surveyTitle";
|
|
10181
|
+
},
|
|
10182
|
+
onValueChanged: function (question, name, newValue) {
|
|
10183
|
+
},
|
|
10184
|
+
});
|
|
10185
|
+
survey_core__WEBPACK_IMPORTED_MODULE_2__["ComponentCollection"].Instance.add({
|
|
10186
|
+
name: "elementsettings",
|
|
10187
|
+
showInToolbox: false,
|
|
10188
|
+
elementsJSON: [
|
|
10189
|
+
{
|
|
10190
|
+
type: "color",
|
|
10191
|
+
name: "backcolor",
|
|
10192
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backcolor"),
|
|
10193
|
+
titleLocation: "left",
|
|
10194
|
+
descriptionLocation: "hidden"
|
|
10195
|
+
},
|
|
10196
|
+
{
|
|
10197
|
+
type: "color",
|
|
10198
|
+
name: "hovercolor",
|
|
10199
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.hovercolor"),
|
|
10200
|
+
titleLocation: "left",
|
|
10201
|
+
descriptionLocation: "hidden"
|
|
10202
|
+
},
|
|
10203
|
+
{
|
|
10204
|
+
type: "spinedit",
|
|
10205
|
+
name: "corner",
|
|
10206
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.cornerRadius"),
|
|
10207
|
+
titleLocation: "left",
|
|
10208
|
+
descriptionLocation: "hidden",
|
|
10209
|
+
unit: "px",
|
|
10210
|
+
defaultValue: 4,
|
|
10211
|
+
min: 0
|
|
10212
|
+
},
|
|
10213
|
+
{
|
|
10214
|
+
type: "expression",
|
|
10215
|
+
name: "cornerRadius",
|
|
10216
|
+
expression: "{composite.corner}+\"px\"",
|
|
10217
|
+
visible: false
|
|
10218
|
+
}
|
|
10219
|
+
],
|
|
10220
|
+
onInit: function () {
|
|
10221
|
+
},
|
|
10222
|
+
onCreated: function (question) {
|
|
10223
|
+
},
|
|
10224
|
+
onValueChanged: function (question, name, newValue) {
|
|
10225
|
+
},
|
|
10226
|
+
});
|
|
10227
|
+
var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
10228
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ThemeSurveyTabViewModel, _super);
|
|
10229
|
+
function ThemeSurveyTabViewModel(surveyProvider, startTheme) {
|
|
10230
|
+
if (startTheme === void 0) { startTheme = survey_core__WEBPACK_IMPORTED_MODULE_2__["defaultV2Css"]; }
|
|
10231
|
+
var _this = _super.call(this) || this;
|
|
10232
|
+
_this.surveyProvider = surveyProvider;
|
|
10233
|
+
_this.startTheme = startTheme;
|
|
10234
|
+
_this.pages = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ActionContainer"]();
|
|
10235
|
+
_this.themeChanges = {};
|
|
10236
|
+
_this.colorCalculator = new _utils_utils__WEBPACK_IMPORTED_MODULE_6__["ColorCalculator"]();
|
|
10237
|
+
_this.simulator = new _simulator__WEBPACK_IMPORTED_MODULE_1__["SurveySimulatorModel"]();
|
|
10238
|
+
_this.themeEditorSurveyValue = _this.createThemeEditorSurvey();
|
|
10239
|
+
return _this;
|
|
10240
|
+
}
|
|
10241
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "themeVariables", {
|
|
10242
|
+
get: function () {
|
|
10243
|
+
return Themes[this.themeName + "-" + this.themePalette];
|
|
10244
|
+
},
|
|
10245
|
+
enumerable: false,
|
|
10246
|
+
configurable: true
|
|
10247
|
+
});
|
|
10248
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "activeLanguage", {
|
|
10249
|
+
get: function () {
|
|
10250
|
+
return this.getPropertyValue("activeLanguage", this.survey.locale || survey_core__WEBPACK_IMPORTED_MODULE_2__["surveyLocalization"].defaultLocale);
|
|
10251
|
+
},
|
|
10252
|
+
set: function (val) {
|
|
10253
|
+
if (val === this.activeLanguage)
|
|
10254
|
+
return;
|
|
10255
|
+
this.setPropertyValue("activeLanguage", val);
|
|
10256
|
+
this.survey.locale = val;
|
|
10257
|
+
},
|
|
10258
|
+
enumerable: false,
|
|
10259
|
+
configurable: true
|
|
10260
|
+
});
|
|
10261
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "survey", {
|
|
10262
|
+
get: function () {
|
|
10263
|
+
return this.simulator.survey;
|
|
10264
|
+
},
|
|
10265
|
+
enumerable: false,
|
|
10266
|
+
configurable: true
|
|
10267
|
+
});
|
|
10268
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "pageActions", {
|
|
10269
|
+
get: function () {
|
|
10270
|
+
return this.pages.actions;
|
|
10271
|
+
},
|
|
10272
|
+
enumerable: false,
|
|
10273
|
+
configurable: true
|
|
10274
|
+
});
|
|
10275
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "isPageToolbarVisible", {
|
|
10276
|
+
get: function () {
|
|
10277
|
+
return this.pages.visibleActions.length > 0 && !this.surveyProvider.isMobileView;
|
|
10278
|
+
},
|
|
10279
|
+
enumerable: false,
|
|
10280
|
+
configurable: true
|
|
10281
|
+
});
|
|
10282
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "themeEditorSurvey", {
|
|
10283
|
+
get: function () {
|
|
10284
|
+
return this.themeEditorSurveyValue;
|
|
10285
|
+
},
|
|
10286
|
+
enumerable: false,
|
|
10287
|
+
configurable: true
|
|
10288
|
+
});
|
|
10289
|
+
ThemeSurveyTabViewModel.prototype.updateSimulatorSurvey = function (json, theme) {
|
|
10290
|
+
var newSurvey = this.surveyProvider.createSurvey(json || {}, "theme");
|
|
10291
|
+
newSurvey.setCss(theme, false);
|
|
10292
|
+
this.simulator.survey = newSurvey;
|
|
10293
|
+
if (this.onSurveyCreatedCallback)
|
|
10294
|
+
this.onSurveyCreatedCallback(this.survey);
|
|
10295
|
+
var self = this;
|
|
10296
|
+
this.survey.onComplete.add(function (sender) {
|
|
10297
|
+
self.isRunning = false;
|
|
10298
|
+
});
|
|
10299
|
+
if (!!this.survey["onNavigateToUrl"]) {
|
|
10300
|
+
this.survey["onNavigateToUrl"].add(function (sender, options) {
|
|
10301
|
+
var url = options.url;
|
|
10302
|
+
options.url = "";
|
|
10303
|
+
if (!!url) {
|
|
10304
|
+
var message = Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("ed.navigateToMsg") + " '" + url + "'.";
|
|
10305
|
+
if (!!this.surveyProvider) {
|
|
10306
|
+
this.surveyProvider.notify(message);
|
|
10307
|
+
}
|
|
10308
|
+
else {
|
|
10309
|
+
alert(message);
|
|
10310
|
+
}
|
|
10311
|
+
}
|
|
10312
|
+
});
|
|
10313
|
+
}
|
|
10314
|
+
this.survey.onStarted.add(function (sender) {
|
|
10315
|
+
self.setActivePageItem(self.simulator.survey.activePage, true);
|
|
10316
|
+
});
|
|
10317
|
+
this.survey.onCurrentPageChanged.add(function (sender, options) {
|
|
10318
|
+
self.activePage = options.newCurrentPage;
|
|
10319
|
+
self.setActivePageItem(options.oldCurrentPage, false);
|
|
10320
|
+
self.setActivePageItem(options.newCurrentPage, true);
|
|
10321
|
+
});
|
|
10322
|
+
this.survey.onPageVisibleChanged.add(function (sender, options) {
|
|
10323
|
+
self.updatePageItem(options.page);
|
|
10324
|
+
});
|
|
10325
|
+
};
|
|
10326
|
+
ThemeSurveyTabViewModel.prototype.setJSON = function (json, currTheme) {
|
|
10327
|
+
this.json = json;
|
|
10328
|
+
if (json != null) {
|
|
10329
|
+
if (json.cookieName) {
|
|
10330
|
+
delete json.cookieName;
|
|
10331
|
+
}
|
|
10332
|
+
}
|
|
10333
|
+
this.updateSimulatorSurvey(json, currTheme);
|
|
10334
|
+
};
|
|
10335
|
+
ThemeSurveyTabViewModel.prototype.initialize = function (json, options) {
|
|
10336
|
+
this.setJSON(json, this.startTheme);
|
|
10337
|
+
this.updatePageList();
|
|
10338
|
+
if (options.showPagesInTestSurveyTab !== undefined) {
|
|
10339
|
+
this.showPagesInTestSurveyTab = options.showPagesInTestSurveyTab;
|
|
10340
|
+
}
|
|
10341
|
+
this.buildActions();
|
|
10342
|
+
};
|
|
10343
|
+
ThemeSurveyTabViewModel.prototype.updatePageItem = function (page) {
|
|
10344
|
+
var item = this.getPageItemByPage(page);
|
|
10345
|
+
if (item) {
|
|
10346
|
+
item.enabled = page.isVisible;
|
|
10347
|
+
}
|
|
10348
|
+
};
|
|
10349
|
+
ThemeSurveyTabViewModel.prototype.getCurrentPageItem = function () {
|
|
10350
|
+
return this.pageListItems[this.survey.pages.indexOf(this.survey.activePage)];
|
|
10351
|
+
};
|
|
10352
|
+
ThemeSurveyTabViewModel.prototype.getSelectPageTitle = function () {
|
|
10353
|
+
return (this.activePage && this.getPageTitle(this.activePage, "preview-tab:selected-page", "survey-tester-selected")) || Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("ts.selectPage");
|
|
10354
|
+
};
|
|
10355
|
+
ThemeSurveyTabViewModel.prototype.getPageTitle = function (page, area, reason) {
|
|
10356
|
+
if (area === void 0) { area = "preview-tab:page-list"; }
|
|
10357
|
+
if (reason === void 0) { reason = "survey-tester"; }
|
|
10358
|
+
var title = this.surveyProvider.getObjectDisplayName(page, area, reason, page.title);
|
|
10359
|
+
if (title === page.name && title.indexOf("page") === 0) {
|
|
10360
|
+
var index = this.survey.pages.indexOf(page);
|
|
10361
|
+
return _editorLocalization__WEBPACK_IMPORTED_MODULE_3__["editorLocalization"].getString("ed.pageTypeName") + " " + (index + 1);
|
|
10362
|
+
}
|
|
10363
|
+
return title;
|
|
10364
|
+
};
|
|
10365
|
+
ThemeSurveyTabViewModel.prototype.updatePageList = function () {
|
|
10366
|
+
var pages = [];
|
|
10367
|
+
for (var i = 0; i < this.survey.pages.length; i++) {
|
|
10368
|
+
var page = this.survey.pages[i];
|
|
10369
|
+
pages.push({
|
|
10370
|
+
id: page.name,
|
|
10371
|
+
data: page,
|
|
10372
|
+
title: this.getPageTitle(page),
|
|
10373
|
+
enabled: page.isVisible,
|
|
10374
|
+
visible: true
|
|
10375
|
+
});
|
|
10376
|
+
}
|
|
10377
|
+
this.pageListItems = pages;
|
|
10378
|
+
};
|
|
10379
|
+
ThemeSurveyTabViewModel.prototype.show = function () {
|
|
10380
|
+
this.showInvisibleElements = false;
|
|
10381
|
+
this.activePage = this.survey.activePage;
|
|
10382
|
+
this.survey.locale = this.activeLanguage;
|
|
10383
|
+
this.isRunning = true;
|
|
10384
|
+
};
|
|
10385
|
+
ThemeSurveyTabViewModel.prototype.testAgain = function () {
|
|
10386
|
+
this.setJSON(this.json, this.simulator.survey.css);
|
|
10387
|
+
this.updatePageList();
|
|
10388
|
+
this.show();
|
|
10389
|
+
};
|
|
10390
|
+
ThemeSurveyTabViewModel.prototype.buildActions = function () {
|
|
10391
|
+
var _this = this;
|
|
10392
|
+
var pageActions = [];
|
|
10393
|
+
var setNearPage = function (isNext) {
|
|
10394
|
+
var currentIndex = _this.survey.currentPageNo;
|
|
10395
|
+
var shift = isNext ? 1 : -1;
|
|
10396
|
+
var newIndex = currentIndex + shift;
|
|
10397
|
+
if (_this.survey.state === "starting" && isNext) {
|
|
10398
|
+
newIndex = 0;
|
|
10399
|
+
}
|
|
10400
|
+
var nearPage = _this.survey.visiblePages[newIndex];
|
|
10401
|
+
if (!isNext && currentIndex === 0 && _this.survey.firstPageIsStarted
|
|
10402
|
+
&& _this.survey.pages.length > 0) {
|
|
10403
|
+
nearPage = _this.survey.pages[0];
|
|
10404
|
+
}
|
|
10405
|
+
var pageIndex = _this.survey.pages.indexOf(nearPage);
|
|
10406
|
+
_this.activePage = _this.survey.pages[pageIndex];
|
|
10407
|
+
_this.selectPageAction.data.selectedItem = _this.pageListItems[pageIndex];
|
|
10408
|
+
};
|
|
10409
|
+
if (this.prevPageAction) {
|
|
10410
|
+
this.prevPageAction.visible = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
10411
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["notShortCircuitAnd"])(_this.isRunning, _this.surveyProvider.activeTab === "test", _this.pageListItems.length > 1);
|
|
10412
|
+
});
|
|
10413
|
+
this.prevPageAction.iconName = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
10414
|
+
return _this.surveyProvider.isMobileView ? "icon-arrow-left" : "icon-arrow-left_16x16";
|
|
10415
|
+
});
|
|
10416
|
+
this.prevPageAction.iconSize = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
10417
|
+
return _this.surveyProvider.isMobileView ? 24 : 16;
|
|
10418
|
+
});
|
|
10419
|
+
this.prevPageAction.action = function () { return setNearPage(false); };
|
|
10420
|
+
pageActions.push(this.prevPageAction);
|
|
10421
|
+
}
|
|
10422
|
+
this.selectPageAction = Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["createDropdownActionModel"])({
|
|
10423
|
+
id: "pageSelector",
|
|
10424
|
+
css: "svc-page-selector",
|
|
10425
|
+
title: this.getSelectPageTitle(),
|
|
10426
|
+
visible: this.isRunning && this.pageListItems.length > 1 && this.showPagesInTestSurveyTab
|
|
10427
|
+
}, {
|
|
10428
|
+
items: this.pageListItems,
|
|
10429
|
+
allowSelection: true,
|
|
10430
|
+
selectedItem: this.getCurrentPageItem(),
|
|
10431
|
+
onSelectionChanged: function (item) {
|
|
10432
|
+
_this.activePage = item.data;
|
|
10433
|
+
},
|
|
10434
|
+
verticalPosition: "top",
|
|
10435
|
+
horizontalPosition: "center"
|
|
10436
|
+
});
|
|
10437
|
+
pageActions.push(this.selectPageAction);
|
|
10438
|
+
if (this.nextPageAction) {
|
|
10439
|
+
this.nextPageAction.visible = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
10440
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["notShortCircuitAnd"])(_this.isRunning, _this.surveyProvider.activeTab === "test", _this.pageListItems.length > 1);
|
|
10441
|
+
});
|
|
10442
|
+
this.nextPageAction.iconName = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
10443
|
+
return _this.surveyProvider.isMobileView ? "icon-arrow-right" : "icon-arrow-right_16x16";
|
|
10444
|
+
});
|
|
10445
|
+
this.nextPageAction.iconSize = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
10446
|
+
return _this.surveyProvider.isMobileView ? 24 : 16;
|
|
10447
|
+
});
|
|
10448
|
+
this.nextPageAction.action = function () { return setNearPage(true); };
|
|
10449
|
+
pageActions.push(this.nextPageAction);
|
|
10450
|
+
}
|
|
10451
|
+
this.pages.actions = pageActions;
|
|
10452
|
+
this.pages.containerCss = "sv-action-bar--pages";
|
|
10453
|
+
this.updatePrevNextPageActionState();
|
|
10454
|
+
};
|
|
10455
|
+
ThemeSurveyTabViewModel.prototype.setActivePageItem = function (page, val) {
|
|
10456
|
+
var item = this.getPageItemByPage(page);
|
|
10457
|
+
if (item) {
|
|
10458
|
+
item.active = val;
|
|
10459
|
+
}
|
|
10460
|
+
};
|
|
10461
|
+
ThemeSurveyTabViewModel.prototype.getPageItemByPage = function (page) {
|
|
10462
|
+
var items = this.pageListItems;
|
|
10463
|
+
for (var i = 0; i < items.length; i++) {
|
|
10464
|
+
if (items[i].data === page)
|
|
10465
|
+
return items[i];
|
|
10466
|
+
}
|
|
10467
|
+
return null;
|
|
10468
|
+
};
|
|
10469
|
+
ThemeSurveyTabViewModel.prototype.updateResultsTemplate = function (theme) {
|
|
10470
|
+
this.simulator.survey.setCss(theme, false);
|
|
10471
|
+
this.simulator.survey.render();
|
|
10472
|
+
};
|
|
10473
|
+
ThemeSurveyTabViewModel.prototype.setTheme = function (themeName, themeMapper) {
|
|
10474
|
+
var availableThemes = themeMapper.filter(function (item) { return item.name === themeName; });
|
|
10475
|
+
var theme = survey_core__WEBPACK_IMPORTED_MODULE_2__["defaultV2Css"];
|
|
10476
|
+
if (availableThemes.length > 0) {
|
|
10477
|
+
theme = availableThemes[0].theme;
|
|
10478
|
+
}
|
|
10479
|
+
this.isRunning ? this.updateSimulatorSurvey(this.json, theme) : this.updateResultsTemplate(theme);
|
|
10480
|
+
};
|
|
10481
|
+
ThemeSurveyTabViewModel.prototype.onPropertyValueChanged = function (name, oldValue, newValue) {
|
|
10482
|
+
_super.prototype.onPropertyValueChanged.call(this, name, oldValue, newValue);
|
|
10483
|
+
if (!this.pages.hasActions)
|
|
10484
|
+
return;
|
|
10485
|
+
if (name === "activePage") {
|
|
10486
|
+
this.updatePrevNextPageActionState();
|
|
10487
|
+
this.selectPageAction.title = this.getSelectPageTitle();
|
|
10488
|
+
}
|
|
10489
|
+
if (name === "isRunning" || name === "pageListItems" || name === "showPagesInTestSurveyTab") {
|
|
10490
|
+
this.selectPageAction.popupModel.contentComponentData.model.items = this.pageListItems;
|
|
10491
|
+
this.selectPageAction.popupModel.contentComponentData.model.selectedItem = this.getCurrentPageItem();
|
|
10492
|
+
this.selectPageAction.visible = this.isRunning && this.pageListItems.length > 1 && this.showPagesInTestSurveyTab;
|
|
10493
|
+
}
|
|
10494
|
+
};
|
|
10495
|
+
ThemeSurveyTabViewModel.prototype.updatePrevNextPageActionState = function () {
|
|
10496
|
+
if (!this.prevPageAction || !this.survey)
|
|
10497
|
+
return;
|
|
10498
|
+
var isPrevEnabled = this.survey.firstPageIsStarted && this.survey.state !== "starting"
|
|
10499
|
+
|| (!this.survey.firstPageIsStarted && !this.survey.isFirstPage);
|
|
10500
|
+
this.prevPageAction.css = isPrevEnabled ? "sv-action-bar-item--secondary" : "";
|
|
10501
|
+
this.prevPageAction.enabled = isPrevEnabled;
|
|
10502
|
+
var isNextEnabled = this.survey && this.survey.visiblePages.indexOf(this.activePage) !== this.survey.visiblePages.length - 1;
|
|
10503
|
+
this.nextPageAction.css = isNextEnabled ? "sv-action-bar-item--secondary" : "";
|
|
10504
|
+
this.nextPageAction.enabled = isNextEnabled;
|
|
10505
|
+
};
|
|
10506
|
+
ThemeSurveyTabViewModel.prototype.initializeColorCalculator = function () {
|
|
10507
|
+
this.colorCalculator.initialize(this.themeVariables["--sjs-primary-backcolor"], this.themeVariables["--sjs-primary-backcolor-light"], this.themeVariables["--sjs-primary-backcolor-dark"]);
|
|
10508
|
+
};
|
|
10509
|
+
ThemeSurveyTabViewModel.prototype.createThemeEditorSurvey = function () {
|
|
10510
|
+
var _this = this;
|
|
10511
|
+
var json = this.getThemeEditorSurveyJSON();
|
|
10512
|
+
Object(_property_grid__WEBPACK_IMPORTED_MODULE_4__["setSurveyJSONForPropertyGrid"])(json, true, false);
|
|
10513
|
+
var themeEditorSurvey = this.surveyProvider.createSurvey(json, "theme_editor");
|
|
10514
|
+
themeEditorSurvey.getCss().list = {};
|
|
10515
|
+
var themeBuilderCss = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_5__["propertyGridCss"]);
|
|
10516
|
+
themeBuilderCss.root += " spg-theme-builder-root";
|
|
10517
|
+
themeEditorSurvey.css = themeBuilderCss;
|
|
10518
|
+
themeEditorSurvey.mergeData(this.themeVariables);
|
|
10519
|
+
themeEditorSurvey.getQuestionByName("questionPanel").contentPanel.getQuestionByName("backcolor").value = this.themeVariables["--background"];
|
|
10520
|
+
themeEditorSurvey.getQuestionByName("editorPanel").contentPanel.getQuestionByName("backcolor").value = this.themeVariables["--background-dim-light"];
|
|
10521
|
+
Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["assign"])(this.simulator.themeVariables, this.themeVariables);
|
|
10522
|
+
this.initializeColorCalculator();
|
|
10523
|
+
themeEditorSurvey.onValueChanged.add(function (sender, options) {
|
|
10524
|
+
var _a, _b;
|
|
10525
|
+
if (["themeName", "themeMode", "themePalette"].indexOf(options.name) !== -1) {
|
|
10526
|
+
_this[options.name] = options.value;
|
|
10527
|
+
_this.initializeColorCalculator();
|
|
10528
|
+
themeEditorSurvey.mergeData(_this.themeVariables);
|
|
10529
|
+
var newTheme_1 = {};
|
|
10530
|
+
Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["assign"])(newTheme_1, _this.themeVariables);
|
|
10531
|
+
_this.simulator.themeVariables = newTheme_1;
|
|
10532
|
+
if (options.name === "themeMode") {
|
|
10533
|
+
_this.survey["isCompact"] = options.value === "lightweight";
|
|
10534
|
+
}
|
|
10535
|
+
return;
|
|
10536
|
+
}
|
|
10537
|
+
if (["backgroundImage", "backgroundImageFit"].indexOf(options.name) !== -1) {
|
|
10538
|
+
_this.survey[options.name] = options.value;
|
|
10539
|
+
return;
|
|
10540
|
+
}
|
|
10541
|
+
if (options.name === "backgroundOpacity") {
|
|
10542
|
+
_this.survey.backgroundOpacity = options.value / 100;
|
|
10543
|
+
return;
|
|
10544
|
+
}
|
|
10545
|
+
if (options.name === "--sjs-primary-backcolor") {
|
|
10546
|
+
_this.colorCalculator.calculateColors(options.value);
|
|
10547
|
+
_this.themeChanges["--sjs-primary-backcolor"] = options.value;
|
|
10548
|
+
_this.themeChanges["--sjs-primary-backcolor-light"] = _this.colorCalculator.colorSettings.newColorLight;
|
|
10549
|
+
_this.themeChanges["--sjs-primary-backcolor-dark"] = _this.colorCalculator.colorSettings.newColorDark;
|
|
10550
|
+
_this.themeEditorSurvey.setValue("--sjs-primary-backcolor-light", _this.colorCalculator.colorSettings.newColorLight);
|
|
10551
|
+
_this.themeEditorSurvey.setValue("--sjs-primary-backcolor-dark", _this.colorCalculator.colorSettings.newColorDark);
|
|
10552
|
+
}
|
|
10553
|
+
if (options.name === "questionBackgroundTransparency" || options.name === "editorPanel") {
|
|
10554
|
+
var baseColor = themeEditorSurvey.getValue("--background-dim-light");
|
|
10555
|
+
var questionBackgroundTransparencyValue = themeEditorSurvey.getValue("questionBackgroundTransparency");
|
|
10556
|
+
_this.themeChanges["--sjs-editor-background"] = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["ingectAlpha"])(baseColor, questionBackgroundTransparencyValue / 100);
|
|
10557
|
+
}
|
|
10558
|
+
if (options.name === "panelBackgroundTransparency" || options.name === "questionPanel") {
|
|
10559
|
+
var baseColor = themeEditorSurvey.getValue("--background");
|
|
10560
|
+
var panelBackgroundTransparencyValue = themeEditorSurvey.getValue("panelBackgroundTransparency");
|
|
10561
|
+
_this.themeChanges["--sjs-question-background"] = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["ingectAlpha"])(baseColor, panelBackgroundTransparencyValue / 100);
|
|
10562
|
+
}
|
|
10563
|
+
if (((_a = options.question) === null || _a === void 0 ? void 0 : _a.getType()) === "fontsettings") {
|
|
10564
|
+
Object.keys(options.value).forEach(function (key) {
|
|
10565
|
+
var _a;
|
|
10566
|
+
var innerQ = options.question.contentPanel.getQuestionByName(key);
|
|
10567
|
+
_this.themeChanges["--sjs-font-" + options.name.toLocaleLowerCase() + "-" + key] = options.value[key] + (((_a = innerQ.unit) === null || _a === void 0 ? void 0 : _a.toString()) || "");
|
|
10568
|
+
});
|
|
10569
|
+
}
|
|
10570
|
+
if (((_b = options.question) === null || _b === void 0 ? void 0 : _b.getType()) === "elementsettings") {
|
|
10571
|
+
Object.keys(options.value).forEach(function (key) {
|
|
10572
|
+
if (key === "corner")
|
|
10573
|
+
return;
|
|
10574
|
+
_this.themeChanges["--sjs-" + options.name.toLocaleLowerCase() + "-" + key] = options.value[key];
|
|
10575
|
+
});
|
|
10576
|
+
}
|
|
10577
|
+
var newTheme = {};
|
|
10578
|
+
Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["assign"])(newTheme, _this.simulator.themeVariables, _this.themeChanges);
|
|
10579
|
+
_this.simulator.themeVariables = newTheme;
|
|
10580
|
+
});
|
|
10581
|
+
themeEditorSurvey.getAllQuestions().forEach(function (q) { return q.allowRootStyle = false; });
|
|
10582
|
+
themeEditorSurvey.onQuestionCreated.add(function (_, opt) {
|
|
10583
|
+
opt.question.allowRootStyle = false;
|
|
10584
|
+
});
|
|
10585
|
+
return themeEditorSurvey;
|
|
10586
|
+
};
|
|
10587
|
+
ThemeSurveyTabViewModel.prototype.getThemeEditorSurveyJSON = function () {
|
|
10588
|
+
var themeEditorSurveyJSON = {
|
|
10589
|
+
"clearInvisibleValues": "none",
|
|
10590
|
+
elements: [{
|
|
10591
|
+
type: "panel",
|
|
10592
|
+
state: "expanded",
|
|
10593
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.groupGeneral"),
|
|
10594
|
+
elements: [
|
|
10595
|
+
{
|
|
10596
|
+
type: "panel",
|
|
10597
|
+
elements: [
|
|
10598
|
+
{
|
|
10599
|
+
type: "dropdown",
|
|
10600
|
+
name: "themeName",
|
|
10601
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.themeName"),
|
|
10602
|
+
descriptionLocation: "hidden",
|
|
10603
|
+
choices: ["default", "contrast", "plain", "simple", "blank", "double", "ultra"],
|
|
10604
|
+
defaultValue: "default",
|
|
10605
|
+
allowClear: false
|
|
10606
|
+
},
|
|
10607
|
+
{
|
|
10608
|
+
type: "panel",
|
|
10609
|
+
name: "themeMode",
|
|
10610
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.themeMode"),
|
|
10611
|
+
elements: [
|
|
10612
|
+
{
|
|
10613
|
+
type: "buttongroup",
|
|
10614
|
+
name: "themeMode",
|
|
10615
|
+
titleLocation: "hidden",
|
|
10616
|
+
choices: [
|
|
10617
|
+
{ value: "panels", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.themeModePanels") },
|
|
10618
|
+
{ value: "lightweight", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.themeModeLightweight") }
|
|
10619
|
+
],
|
|
10620
|
+
defaultValue: "panels"
|
|
10621
|
+
},
|
|
10622
|
+
{
|
|
10623
|
+
type: "buttongroup",
|
|
10624
|
+
name: "themePalette",
|
|
10625
|
+
titleLocation: "hidden",
|
|
10626
|
+
choices: [
|
|
10627
|
+
{ value: "light", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.themePaletteLight") },
|
|
10628
|
+
{ value: "dark", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.themePaletteDark") }
|
|
10629
|
+
],
|
|
10630
|
+
defaultValue: "light"
|
|
10631
|
+
}
|
|
10632
|
+
]
|
|
10633
|
+
}
|
|
10634
|
+
]
|
|
10635
|
+
}, {
|
|
10636
|
+
type: "panel",
|
|
10637
|
+
elements: [
|
|
10638
|
+
{
|
|
10639
|
+
type: "color",
|
|
10640
|
+
name: "--sjs-primary-backcolor",
|
|
10641
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryColor"),
|
|
10642
|
+
descriptionLocation: "hidden",
|
|
10643
|
+
defaultValue: "#19b394"
|
|
10644
|
+
},
|
|
10645
|
+
{
|
|
10646
|
+
type: "color",
|
|
10647
|
+
name: "--background-dim",
|
|
10648
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundDimColor"),
|
|
10649
|
+
descriptionLocation: "hidden",
|
|
10650
|
+
defaultValue: "#f3f3f3"
|
|
10651
|
+
},
|
|
10652
|
+
{
|
|
10653
|
+
type: "panel",
|
|
10654
|
+
name: "background",
|
|
10655
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundImage"),
|
|
10656
|
+
elements: [
|
|
10657
|
+
{
|
|
10658
|
+
type: "fileedit",
|
|
10659
|
+
name: "backgroundImage",
|
|
10660
|
+
titleLocation: "hidden",
|
|
10661
|
+
placeholder: "Browse..."
|
|
10662
|
+
},
|
|
10663
|
+
{
|
|
10664
|
+
type: "buttongroup",
|
|
10665
|
+
name: "backgroundImageFit",
|
|
10666
|
+
titleLocation: "hidden",
|
|
10667
|
+
choices: [
|
|
10668
|
+
{ value: "auto", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundImageFitAuto") },
|
|
10669
|
+
{ value: "contain", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundImageFitContain") },
|
|
10670
|
+
{ value: "cover", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundImageFitCover") }
|
|
10671
|
+
],
|
|
10672
|
+
defaultValue: "cover"
|
|
10673
|
+
},
|
|
10674
|
+
{
|
|
10675
|
+
type: "spinedit",
|
|
10676
|
+
name: "backgroundOpacity",
|
|
10677
|
+
titleLocation: "left",
|
|
10678
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundOpacity"),
|
|
10679
|
+
descriptionLocation: "hidden",
|
|
10680
|
+
unit: "%",
|
|
10681
|
+
defaultValue: 100,
|
|
10682
|
+
min: 0,
|
|
10683
|
+
max: 100,
|
|
10684
|
+
step: 5
|
|
10685
|
+
},
|
|
10686
|
+
]
|
|
10687
|
+
},
|
|
10688
|
+
{
|
|
10689
|
+
type: "spinedit",
|
|
10690
|
+
name: "panelBackgroundTransparency",
|
|
10691
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.panelBackgroundTransparency"),
|
|
10692
|
+
descriptionLocation: "hidden",
|
|
10693
|
+
unit: "%",
|
|
10694
|
+
defaultValue: 100,
|
|
10695
|
+
min: 0,
|
|
10696
|
+
max: 100,
|
|
10697
|
+
step: 5
|
|
10698
|
+
},
|
|
10699
|
+
{
|
|
10700
|
+
type: "spinedit",
|
|
10701
|
+
name: "questionBackgroundTransparency",
|
|
10702
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.questionBackgroundTransparency"),
|
|
10703
|
+
descriptionLocation: "hidden",
|
|
10704
|
+
unit: "%",
|
|
10705
|
+
defaultValue: 100,
|
|
10706
|
+
min: 0,
|
|
10707
|
+
max: 100,
|
|
10708
|
+
step: 5
|
|
10709
|
+
}
|
|
10710
|
+
]
|
|
10711
|
+
}, {
|
|
10712
|
+
type: "panel",
|
|
10713
|
+
elements: [
|
|
10714
|
+
{
|
|
10715
|
+
type: "dropdown",
|
|
10716
|
+
name: "--font-family",
|
|
10717
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontFamily"),
|
|
10718
|
+
descriptionLocation: "hidden",
|
|
10719
|
+
choices: ["Open Sans", "Arial"],
|
|
10720
|
+
defaultValue: "Open Sans",
|
|
10721
|
+
allowClear: false
|
|
10722
|
+
},
|
|
10723
|
+
{
|
|
10724
|
+
type: "spinedit",
|
|
10725
|
+
name: "--font-size",
|
|
10726
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontSize"),
|
|
10727
|
+
descriptionLocation: "hidden",
|
|
10728
|
+
unit: "%",
|
|
10729
|
+
defaultValue: 100,
|
|
10730
|
+
min: 0,
|
|
10731
|
+
step: 5
|
|
10732
|
+
},
|
|
10733
|
+
{
|
|
10734
|
+
type: "expression",
|
|
10735
|
+
name: "--sjs-font-size",
|
|
10736
|
+
expression: "{--font-size}*16/100+\"px\"",
|
|
10737
|
+
visible: false
|
|
10738
|
+
},
|
|
10739
|
+
]
|
|
10740
|
+
}, {
|
|
10741
|
+
type: "panel",
|
|
10742
|
+
elements: [
|
|
10743
|
+
{
|
|
10744
|
+
type: "spinedit",
|
|
10745
|
+
name: "commonScale",
|
|
10746
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.scale"),
|
|
10747
|
+
descriptionLocation: "hidden",
|
|
10748
|
+
unit: "%",
|
|
10749
|
+
defaultValue: 100,
|
|
10750
|
+
min: 0,
|
|
10751
|
+
step: 5
|
|
10752
|
+
},
|
|
10753
|
+
{
|
|
10754
|
+
type: "expression",
|
|
10755
|
+
name: "--base-unit",
|
|
10756
|
+
expression: "{commonScale}*8/100+\"px\"",
|
|
10757
|
+
visible: false
|
|
10758
|
+
},
|
|
10759
|
+
{
|
|
10760
|
+
type: "spinedit",
|
|
10761
|
+
name: "cornerRadius",
|
|
10762
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.cornerRadius"),
|
|
10763
|
+
descriptionLocation: "hidden",
|
|
10764
|
+
unit: "px",
|
|
10765
|
+
defaultValue: 4,
|
|
10766
|
+
min: 0
|
|
10767
|
+
},
|
|
10768
|
+
{
|
|
10769
|
+
type: "expression",
|
|
10770
|
+
name: "--sjs-corner-radius",
|
|
10771
|
+
expression: "{cornerRadius}+\"px\"",
|
|
10772
|
+
visible: false
|
|
10773
|
+
},
|
|
10774
|
+
]
|
|
10775
|
+
}
|
|
10776
|
+
]
|
|
10777
|
+
}, {
|
|
10778
|
+
type: "panel",
|
|
10779
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.groupAdvanced"),
|
|
10780
|
+
state: "collapsed",
|
|
10781
|
+
elements: [
|
|
10782
|
+
{
|
|
10783
|
+
type: "panel",
|
|
10784
|
+
elements: [
|
|
10785
|
+
{
|
|
10786
|
+
type: "color",
|
|
10787
|
+
name: "--background-dim",
|
|
10788
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundDimColor"),
|
|
10789
|
+
descriptionLocation: "hidden",
|
|
10790
|
+
defaultValue: "#f3f3f3"
|
|
10791
|
+
}, {
|
|
10792
|
+
type: "fontSettings",
|
|
10793
|
+
name: "surveyTitle",
|
|
10794
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.surveyTitle"),
|
|
10795
|
+
descriptionLocation: "hidden",
|
|
10796
|
+
defaultValue: {
|
|
10797
|
+
color: "#161616",
|
|
10798
|
+
weight: "700",
|
|
10799
|
+
size: 32
|
|
10800
|
+
}
|
|
10801
|
+
}, {
|
|
10802
|
+
type: "fontSettings",
|
|
10803
|
+
name: "pageTitle",
|
|
10804
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.pageTitle"),
|
|
10805
|
+
descriptionLocation: "hidden",
|
|
10806
|
+
defaultValue: {
|
|
10807
|
+
color: "#161616",
|
|
10808
|
+
weight: "700",
|
|
10809
|
+
size: 24
|
|
10810
|
+
}
|
|
10811
|
+
}, {
|
|
10812
|
+
type: "fontSettings",
|
|
10813
|
+
name: "pageDescription",
|
|
10814
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.pageDescription"),
|
|
10815
|
+
descriptionLocation: "hidden",
|
|
10816
|
+
defaultValue: {
|
|
10817
|
+
color: "#161616",
|
|
10818
|
+
size: 16
|
|
10819
|
+
}
|
|
10820
|
+
}
|
|
10821
|
+
]
|
|
10822
|
+
}, {
|
|
10823
|
+
type: "panel",
|
|
10824
|
+
elements: [
|
|
10825
|
+
{
|
|
10826
|
+
type: "elementSettings",
|
|
10827
|
+
name: "questionPanel",
|
|
10828
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.questionPanel"),
|
|
10829
|
+
descriptionLocation: "hidden",
|
|
10830
|
+
defaultValue: {
|
|
10831
|
+
backcolor: "#ffffff",
|
|
10832
|
+
hovercolor: "#f8f8f8",
|
|
10833
|
+
corner: 4
|
|
10834
|
+
}
|
|
10835
|
+
},
|
|
10836
|
+
{
|
|
10837
|
+
type: "boxshadowsettings",
|
|
10838
|
+
name: "--sjs-general-shadow-small",
|
|
10839
|
+
descriptionLocation: "hidden",
|
|
10840
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.questionShadow"),
|
|
10841
|
+
defaultValue: {
|
|
10842
|
+
x: 0,
|
|
10843
|
+
y: 1,
|
|
10844
|
+
blur: 2,
|
|
10845
|
+
spread: 0,
|
|
10846
|
+
isInset: false,
|
|
10847
|
+
color: "rgba(0, 0, 0, 0.15)"
|
|
10848
|
+
}
|
|
10849
|
+
},
|
|
10850
|
+
{
|
|
10851
|
+
type: "expression",
|
|
10852
|
+
name: "--background",
|
|
10853
|
+
expression: "{questionPanel.backcolor}",
|
|
10854
|
+
visible: false
|
|
10855
|
+
}, {
|
|
10856
|
+
type: "fontSettings",
|
|
10857
|
+
name: "questionTitle",
|
|
10858
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.questionTitle"),
|
|
10859
|
+
descriptionLocation: "hidden",
|
|
10860
|
+
defaultValue: {
|
|
10861
|
+
color: "#161616",
|
|
10862
|
+
weight: "600",
|
|
10863
|
+
size: 16,
|
|
10864
|
+
}
|
|
10865
|
+
}, {
|
|
10866
|
+
type: "fontSettings",
|
|
10867
|
+
name: "questionDescription",
|
|
10868
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.questionDescription"),
|
|
10869
|
+
descriptionLocation: "hidden",
|
|
10870
|
+
defaultValue: {
|
|
10871
|
+
color: "#161616",
|
|
10872
|
+
size: 16
|
|
10873
|
+
}
|
|
10874
|
+
}
|
|
10875
|
+
]
|
|
10876
|
+
}, {
|
|
10877
|
+
type: "panel",
|
|
10878
|
+
elements: [
|
|
10879
|
+
{
|
|
10880
|
+
type: "elementSettings",
|
|
10881
|
+
name: "editorPanel",
|
|
10882
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.editorPanel"),
|
|
10883
|
+
descriptionLocation: "hidden",
|
|
10884
|
+
defaultValue: {
|
|
10885
|
+
backcolor: "#ffffff",
|
|
10886
|
+
hovercolor: "#f8f8f8",
|
|
10887
|
+
corner: 4
|
|
10888
|
+
}
|
|
10889
|
+
},
|
|
10890
|
+
{
|
|
10891
|
+
type: "boxshadowsettings",
|
|
10892
|
+
name: "--sjs-general-shadow-inner",
|
|
10893
|
+
descriptionLocation: "hidden",
|
|
10894
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.editorShadow"),
|
|
10895
|
+
defaultValue: {
|
|
10896
|
+
x: 0,
|
|
10897
|
+
y: 1,
|
|
10898
|
+
blur: 2,
|
|
10899
|
+
spread: 0,
|
|
10900
|
+
isInset: true,
|
|
10901
|
+
color: "rgba(0, 0, 0, 0.15)"
|
|
10902
|
+
}
|
|
10903
|
+
}, {
|
|
10904
|
+
type: "expression",
|
|
10905
|
+
name: "--background-dim-light",
|
|
10906
|
+
expression: "{editorPanel.backcolor}",
|
|
10907
|
+
visible: false
|
|
10908
|
+
}, {
|
|
10909
|
+
type: "fontSettings",
|
|
10910
|
+
name: "editorFont",
|
|
10911
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.editorFont"),
|
|
10912
|
+
descriptionLocation: "hidden",
|
|
10913
|
+
defaultValue: {
|
|
10914
|
+
color: "#161616",
|
|
10915
|
+
size: 16
|
|
10916
|
+
}
|
|
10917
|
+
}
|
|
10918
|
+
]
|
|
10919
|
+
}, {
|
|
10920
|
+
type: "panel",
|
|
10921
|
+
elements: [{
|
|
10922
|
+
type: "panel",
|
|
10923
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.accentBackground"),
|
|
10924
|
+
elements: [
|
|
10925
|
+
{
|
|
10926
|
+
type: "color",
|
|
10927
|
+
name: "--sjs-primary-backcolor",
|
|
10928
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryDefaultColor"),
|
|
10929
|
+
titleLocation: "left",
|
|
10930
|
+
descriptionLocation: "hidden",
|
|
10931
|
+
defaultValue: "#19B394"
|
|
10932
|
+
},
|
|
10933
|
+
{
|
|
10934
|
+
type: "color",
|
|
10935
|
+
name: "--sjs-primary-backcolor-dark",
|
|
10936
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryDarkColor"),
|
|
10937
|
+
titleLocation: "left",
|
|
10938
|
+
descriptionLocation: "hidden",
|
|
10939
|
+
defaultValue: "#14A48B"
|
|
10940
|
+
},
|
|
10941
|
+
{
|
|
10942
|
+
type: "color",
|
|
10943
|
+
name: "--sjs-primary-backcolor-light",
|
|
10944
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryLightColor"),
|
|
10945
|
+
titleLocation: "left",
|
|
10946
|
+
descriptionLocation: "hidden",
|
|
10947
|
+
defaultValue: "#E8F7F4"
|
|
10948
|
+
}
|
|
10949
|
+
]
|
|
10950
|
+
}, {
|
|
10951
|
+
type: "panel",
|
|
10952
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.accentForeground"),
|
|
10953
|
+
elements: [
|
|
10954
|
+
{
|
|
10955
|
+
type: "color",
|
|
10956
|
+
name: "--sjs-primary-forecolor",
|
|
10957
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryForecolor"),
|
|
10958
|
+
titleLocation: "left",
|
|
10959
|
+
descriptionLocation: "hidden",
|
|
10960
|
+
defaultValue: "#ffffff"
|
|
10961
|
+
},
|
|
10962
|
+
{
|
|
10963
|
+
type: "color",
|
|
10964
|
+
name: "--sjs-primary-forecolor-light",
|
|
10965
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryForecolorLight"),
|
|
10966
|
+
titleLocation: "left",
|
|
10967
|
+
descriptionLocation: "hidden",
|
|
10968
|
+
defaultValue: "#ffffff"
|
|
10969
|
+
}
|
|
10970
|
+
]
|
|
10971
|
+
}]
|
|
10972
|
+
}, {
|
|
10973
|
+
type: "panel",
|
|
10974
|
+
elements: [{
|
|
10975
|
+
type: "panel",
|
|
10976
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.linesColors"),
|
|
10977
|
+
elements: [
|
|
10978
|
+
{
|
|
10979
|
+
type: "color",
|
|
10980
|
+
name: "--sjs-border-default",
|
|
10981
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.borderDefault"),
|
|
10982
|
+
titleLocation: "left",
|
|
10983
|
+
descriptionLocation: "hidden",
|
|
10984
|
+
defaultValue: "#d6d6d6"
|
|
10985
|
+
},
|
|
10986
|
+
{
|
|
10987
|
+
type: "color",
|
|
10988
|
+
name: "--sjs-border-light",
|
|
10989
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.borderLight"),
|
|
10990
|
+
titleLocation: "left",
|
|
10991
|
+
descriptionLocation: "hidden",
|
|
10992
|
+
defaultValue: "#e8e8e8"
|
|
10993
|
+
}
|
|
10994
|
+
]
|
|
10995
|
+
}]
|
|
10996
|
+
}
|
|
10997
|
+
]
|
|
10998
|
+
}]
|
|
10999
|
+
};
|
|
11000
|
+
// Object.keys(this.themeVariables).forEach(varName => {
|
|
11001
|
+
// themeEditorSurveyJSON.elements[1].elements[0].elements.push(<any>{
|
|
11002
|
+
// type: "text",
|
|
11003
|
+
// inputType: varName.indexOf("-unit") === -1 ? "color" : undefined,
|
|
11004
|
+
// title: editorLocalization.getString("theme." + varName),
|
|
11005
|
+
// name: varName,
|
|
11006
|
+
// defaultValue: this.themeVariables[varName]
|
|
11007
|
+
// });
|
|
11008
|
+
// });
|
|
11009
|
+
return themeEditorSurveyJSON;
|
|
11010
|
+
};
|
|
11011
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
11012
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
|
|
11013
|
+
defaultValue: false,
|
|
11014
|
+
onSet: function (val, target) {
|
|
11015
|
+
target.simulator.survey.showInvisibleElements = val;
|
|
11016
|
+
}
|
|
11017
|
+
})
|
|
11018
|
+
], ThemeSurveyTabViewModel.prototype, "showInvisibleElements", void 0);
|
|
9562
11019
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9563
11020
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: true })
|
|
9564
|
-
],
|
|
11021
|
+
], ThemeSurveyTabViewModel.prototype, "showPagesInTestSurveyTab", void 0);
|
|
9565
11022
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9566
11023
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
|
|
9567
11024
|
defaultValue: true,
|
|
@@ -9570,10 +11027,10 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9570
11027
|
target.simulator.isRunning = value;
|
|
9571
11028
|
}
|
|
9572
11029
|
})
|
|
9573
|
-
],
|
|
11030
|
+
], ThemeSurveyTabViewModel.prototype, "isRunning", void 0);
|
|
9574
11031
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9575
11032
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["propertyArray"])()
|
|
9576
|
-
],
|
|
11033
|
+
], ThemeSurveyTabViewModel.prototype, "pageListItems", void 0);
|
|
9577
11034
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9578
11035
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
|
|
9579
11036
|
onSet: function (val, target) {
|
|
@@ -9596,8 +11053,17 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9596
11053
|
target.updatePrevNextPageActionState();
|
|
9597
11054
|
}
|
|
9598
11055
|
})
|
|
9599
|
-
],
|
|
9600
|
-
|
|
11056
|
+
], ThemeSurveyTabViewModel.prototype, "activePage", void 0);
|
|
11057
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
11058
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: "default" })
|
|
11059
|
+
], ThemeSurveyTabViewModel.prototype, "themeName", void 0);
|
|
11060
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
11061
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: "light" })
|
|
11062
|
+
], ThemeSurveyTabViewModel.prototype, "themePalette", void 0);
|
|
11063
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
11064
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: "panel" })
|
|
11065
|
+
], ThemeSurveyTabViewModel.prototype, "themeMode", void 0);
|
|
11066
|
+
return ThemeSurveyTabViewModel;
|
|
9601
11067
|
}(survey_core__WEBPACK_IMPORTED_MODULE_2__["Base"]));
|
|
9602
11068
|
|
|
9603
11069
|
|
|
@@ -10939,7 +12405,7 @@ var Translation = /** @class */ (function (_super) {
|
|
|
10939
12405
|
};
|
|
10940
12406
|
Translation.prototype.createStringsSurvey = function () {
|
|
10941
12407
|
var _this = this;
|
|
10942
|
-
var json = { autoGrowComment: true };
|
|
12408
|
+
var json = { autoGrowComment: true, allowResizeComment: false };
|
|
10943
12409
|
Object(_property_grid_index__WEBPACK_IMPORTED_MODULE_5__["setSurveyJSONForPropertyGrid"])(json, false);
|
|
10944
12410
|
var survey = this.options.createSurvey(json, "translation_strings");
|
|
10945
12411
|
survey.lazyRendering = true;
|
|
@@ -11606,6 +13072,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11606
13072
|
/* harmony import */ var _components_side_bar_side_bar_model__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./components/side-bar/side-bar-model */ "./src/components/side-bar/side-bar-model.ts");
|
|
11607
13073
|
/* harmony import */ var _src_components_tabs_translation__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../src/components/tabs/translation */ "./src/components/tabs/translation.ts");
|
|
11608
13074
|
/* harmony import */ var _components_string_editor__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/string-editor */ "./src/components/string-editor.ts");
|
|
13075
|
+
/* harmony import */ var _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/tabs/theme-plugin */ "./src/components/tabs/theme-plugin.ts");
|
|
13076
|
+
/* harmony import */ var _survey_elements__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./survey-elements */ "./src/survey-elements.ts");
|
|
13077
|
+
|
|
13078
|
+
|
|
13079
|
+
|
|
11609
13080
|
|
|
11610
13081
|
|
|
11611
13082
|
|
|
@@ -11635,7 +13106,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11635
13106
|
__webpack_require__(/*! ./components/creator.scss */ "./src/components/creator.scss");
|
|
11636
13107
|
__webpack_require__(/*! ./components/string-editor.scss */ "./src/components/string-editor.scss");
|
|
11637
13108
|
__webpack_require__(/*! ./creator-theme/creator.scss */ "./src/creator-theme/creator.scss");
|
|
11638
|
-
|
|
11639
13109
|
//Obsolete
|
|
11640
13110
|
var CreatorAction = /** @class */ (function (_super) {
|
|
11641
13111
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreatorAction, _super);
|
|
@@ -12073,6 +13543,21 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
12073
13543
|
*- options.page the new survey Page object.
|
|
12074
13544
|
*/
|
|
12075
13545
|
_this.onPageAdded = new CreatorEvent();
|
|
13546
|
+
/**
|
|
13547
|
+
* An event that is raised when Survey Creator renders action buttons under each page on the design surface. Use this event to add, remove, or modify the buttons.
|
|
13548
|
+
*
|
|
13549
|
+
* Parameters:
|
|
13550
|
+
*
|
|
13551
|
+
* - `sender`: `CreatorBase`\
|
|
13552
|
+
* A Survey Creator instance that raised the event.
|
|
13553
|
+
* - `options.actions`: [`IAction[]`](/form-library/documentation/api-reference/iaction)\
|
|
13554
|
+
* An array of actions. You can add or remove actions from this array.
|
|
13555
|
+
* - `options.page`: [`PageModel`](/form-library/documentation/api-reference/page-model)\
|
|
13556
|
+
* A page for which the event is raised.
|
|
13557
|
+
* - `options.addNewQuestion(type)`: Method\
|
|
13558
|
+
* Adds a new question of a specified [`type`](/form-library/documentation/api-reference/question#getType) to the page.
|
|
13559
|
+
*/
|
|
13560
|
+
_this.onGetPageActions = new CreatorEvent();
|
|
12076
13561
|
/**
|
|
12077
13562
|
* The event is fired when the survey creator is initialized and a survey object (Survey.Survey) is created.
|
|
12078
13563
|
*- sender the survey creator object that fires the event
|
|
@@ -13089,6 +14574,9 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
13089
14574
|
if (this.showPreviewTab) {
|
|
13090
14575
|
new _components_tabs_test_plugin__WEBPACK_IMPORTED_MODULE_14__["TabTestPlugin"](this);
|
|
13091
14576
|
}
|
|
14577
|
+
if (this.showThemeTab) {
|
|
14578
|
+
new _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_24__["TabThemePlugin"](this);
|
|
14579
|
+
}
|
|
13092
14580
|
if (this.showLogicTab) {
|
|
13093
14581
|
new _components_tabs_logic_plugin__WEBPACK_IMPORTED_MODULE_17__["TabLogicPlugin"](this);
|
|
13094
14582
|
}
|
|
@@ -13292,9 +14780,9 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
13292
14780
|
};
|
|
13293
14781
|
CreatorBase.prototype.initDragDropSurveyElements = function () {
|
|
13294
14782
|
var _this = this;
|
|
13295
|
-
|
|
14783
|
+
_survey_elements__WEBPACK_IMPORTED_MODULE_25__["DragDropSurveyElements"].restrictDragQuestionBetweenPages =
|
|
13296
14784
|
_creator_settings__WEBPACK_IMPORTED_MODULE_2__["settings"].dragDrop.restrictDragQuestionBetweenPages;
|
|
13297
|
-
this.dragDropSurveyElements = new
|
|
14785
|
+
this.dragDropSurveyElements = new _survey_elements__WEBPACK_IMPORTED_MODULE_25__["DragDropSurveyElements"](null, this);
|
|
13298
14786
|
var isDraggedFromToolbox = false;
|
|
13299
14787
|
this.dragDropSurveyElements.onDragStart.add(function (sender, options) {
|
|
13300
14788
|
var panel = sender.dropTarget.parent;
|
|
@@ -14615,6 +16103,15 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
14615
16103
|
popupModel: popupModel
|
|
14616
16104
|
};
|
|
14617
16105
|
};
|
|
16106
|
+
CreatorBase.prototype.getUpdatedPageAdornerFooterActions = function (pageAdorner, actions) {
|
|
16107
|
+
var options = {
|
|
16108
|
+
page: pageAdorner.page,
|
|
16109
|
+
addNewQuestion: function (type) { pageAdorner.addNewQuestion(pageAdorner, undefined, type); },
|
|
16110
|
+
actions: actions
|
|
16111
|
+
};
|
|
16112
|
+
this.onGetPageActions.fire(this, options);
|
|
16113
|
+
return options.actions;
|
|
16114
|
+
};
|
|
14618
16115
|
CreatorBase.prototype.addNewQuestionInPage = function (beforeAdd, panel, type) {
|
|
14619
16116
|
if (panel === void 0) { panel = null; }
|
|
14620
16117
|
if (type === void 0) { type = null; }
|
|
@@ -14718,6 +16215,9 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
14718
16215
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
14719
16216
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: true })
|
|
14720
16217
|
], CreatorBase.prototype, "showTestSurveyTab", void 0);
|
|
16218
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
16219
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
16220
|
+
], CreatorBase.prototype, "showThemeTab", void 0);
|
|
14721
16221
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
14722
16222
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
14723
16223
|
], CreatorBase.prototype, "showEmbeddedSurveyTab", void 0);
|
|
@@ -14832,6 +16332,9 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
14832
16332
|
}
|
|
14833
16333
|
})
|
|
14834
16334
|
], CreatorBase.prototype, "isCreatorDisposed", void 0);
|
|
16335
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
16336
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
16337
|
+
], CreatorBase.prototype, "enableLinkFileEditor", void 0);
|
|
14835
16338
|
return CreatorBase;
|
|
14836
16339
|
}(survey_core__WEBPACK_IMPORTED_MODULE_1__["Base"]));
|
|
14837
16340
|
|
|
@@ -15301,7 +16804,6 @@ var settings = {
|
|
|
15301
16804
|
]
|
|
15302
16805
|
},
|
|
15303
16806
|
image: {
|
|
15304
|
-
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg",
|
|
15305
16807
|
imageFit: "cover",
|
|
15306
16808
|
imageHeight: "auto",
|
|
15307
16809
|
imageWidth: "100%"
|
|
@@ -15391,6 +16893,7 @@ var EmptySurveyCreatorOptions = /** @class */ (function () {
|
|
|
15391
16893
|
};
|
|
15392
16894
|
EmptySurveyCreatorOptions.prototype.onLogicGetTitleCallback = function (expression, displayExpression, text, logicItem) { return text; };
|
|
15393
16895
|
EmptySurveyCreatorOptions.prototype.getTranslationExportedText = function (obj, name, locString, locale, text) { return text; };
|
|
16896
|
+
EmptySurveyCreatorOptions.prototype.uploadFiles = function (files, question, uploadingCallback) { };
|
|
15394
16897
|
return EmptySurveyCreatorOptions;
|
|
15395
16898
|
}());
|
|
15396
16899
|
|
|
@@ -16268,7 +17771,7 @@ var __spreadArray = function (to, from) {
|
|
|
16268
17771
|
/*!******************************!*\
|
|
16269
17772
|
!*** ./src/entries/index.ts ***!
|
|
16270
17773
|
\******************************/
|
|
16271
|
-
/*! exports provided: Version, enStrings, editorLocalization, defaultStrings, localization, QuestionConvertMode, settings, EmptySurveyCreatorOptions, CreatorAction, TabbedMenuItem, TabbedMenuContainer, ToolbarActionContainer, CreatorEvent, CreatorBase, SurveyCreatorModel, StylesManager, initializeDesignTimeSurveyModel, editableStringRendererName, getElementWrapperComponentName, getQuestionContentWrapperComponentName, getElementWrapperComponentData, getItemValueWrapperComponentName, getItemValueWrapperComponentData, isStringEditable, isTextInput, registerAdorner, removeAdorners, CreatorResponsivityManager, EmbedModel, TabEmbedPlugin, AceJsonEditorModel, TabJsonEditorAcePlugin, JsonEditorBaseModel, TabJsonEditorBasePlugin, TextareaJsonEditorModel, TabJsonEditorTextareaPlugin, TestSurveyTabViewModel, TabTestPlugin, initLogicOperator, LogicEvent, SurveyLogic, TranslationItemBase, TranslationItemString, TranslationItem, TranslationGroup, Translation, translationCss, TabTranslationPlugin, initialSettingsAllowShowEmptyTitleInDesignMode, TabDesignerViewModel, TabDesignerPlugin, SurveyLogicUI, TabLogicPlugin, logicCss, ToolboxToolViewModel, PageNavigatorViewModel, PageAdorner, RowViewModel, QuestionAdornerViewModel, QuestionDropdownAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperEditSurvey, MatrixCellWrapperViewModel, SurveySimulatorModel, DEFAULT_MONITOR_DPI, simulatorDevices, SurveyResultsItemModel, SurveyResultsModel, LogoImageViewModel, StringItemsNavigatorBase, StringEditorConnector, StringEditorViewModelBase, QuestionEmbeddedSurveyModel, QuestionLinkValueModel, EditorLocalization, getLocString, SurveyJSON5, QuestionSpinEditorModel, QuestionColorModel, QuestionFileEditorModel, setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridEditorNumber, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue, PropertyGridEditorExpression, PropertyGridEditorCondition, PropertyGridEditorMatrix, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixRateValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixValidators, PropertyGridEditorMatrixTriggers, PropertyGridEditorBindings, PropertyGridViewModel, ObjectSelectorItem, ObjectSelector, ObjectSelectorModel, PropertyGridEditorQuestionRestfull, PropertyGridValueEditorBase, PropertyGridCellsEditor, PropertyGridValueEditor, PropertyGridRowValueEditor, PropertyGridPanelValueEditor, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, propertyGridCss, QuestionConverter, svgBundle, SurveyTextWorker, QuestionToolboxCategory, QuestionToolboxItem, QuestionToolbox, SidebarModel, SidebarTabModel, getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd, SurveyQuestionEditorDefinition, ObjType, SurveyHelper, ResizeManager, UndoRedoPlugin, undoRedoTransaction, ignoreUndoRedo, UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction, PagesController */
|
|
17774
|
+
/*! exports provided: Version, enStrings, editorLocalization, defaultStrings, localization, QuestionConvertMode, settings, EmptySurveyCreatorOptions, CreatorAction, TabbedMenuItem, TabbedMenuContainer, ToolbarActionContainer, CreatorEvent, CreatorBase, SurveyCreatorModel, StylesManager, initializeDesignTimeSurveyModel, editableStringRendererName, getElementWrapperComponentName, getQuestionContentWrapperComponentName, getElementWrapperComponentData, getItemValueWrapperComponentName, getItemValueWrapperComponentData, isStringEditable, isTextInput, registerAdorner, removeAdorners, CreatorResponsivityManager, EmbedModel, TabEmbedPlugin, AceJsonEditorModel, TabJsonEditorAcePlugin, JsonEditorBaseModel, TabJsonEditorBasePlugin, TextareaJsonEditorModel, TabJsonEditorTextareaPlugin, TestSurveyTabViewModel, TabTestPlugin, createColor, parseColor, createBoxShadow, parseBoxShadow, Themes, ThemeSurveyTabViewModel, TabThemePlugin, initLogicOperator, LogicEvent, SurveyLogic, TranslationItemBase, TranslationItemString, TranslationItem, TranslationGroup, Translation, translationCss, TabTranslationPlugin, initialSettingsAllowShowEmptyTitleInDesignMode, TabDesignerViewModel, TabDesignerPlugin, SurveyLogicUI, TabLogicPlugin, logicCss, ToolboxToolViewModel, PageNavigatorViewModel, PageAdorner, RowViewModel, QuestionAdornerViewModel, QuestionDropdownAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperEditSurvey, MatrixCellWrapperViewModel, SurveySimulatorModel, DEFAULT_MONITOR_DPI, simulatorDevices, SurveyResultsItemModel, SurveyResultsModel, LogoImageViewModel, StringItemsNavigatorBase, StringEditorConnector, StringEditorViewModelBase, QuestionEmbeddedSurveyModel, QuestionLinkValueModel, EditorLocalization, getLocString, SurveyJSON5, QuestionSpinEditorModel, QuestionColorModel, QuestionFileEditorModel, setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridLinkEditor, PropertyGridEditorNumber, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue, PropertyGridEditorExpression, PropertyGridEditorCondition, PropertyGridEditorMatrix, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixRateValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixValidators, PropertyGridEditorMatrixTriggers, PropertyGridEditorBindings, PropertyGridViewModel, ObjectSelectorItem, ObjectSelector, ObjectSelectorModel, PropertyGridEditorQuestionRestfull, PropertyGridValueEditorBase, PropertyGridCellsEditor, PropertyGridValueEditor, PropertyGridRowValueEditor, PropertyGridPanelValueEditor, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, propertyGridCss, QuestionConverter, svgBundle, SurveyTextWorker, QuestionToolboxCategory, QuestionToolboxItem, QuestionToolbox, SidebarModel, SidebarTabModel, getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd, imageMimeTypes, getAcceptedTypesByContentMode, getQuestionFromObj, ingectAlpha, convertRgbaToString, parseRgbaFromString, HSBToRGB, RGBToHSB, assign, ColorCalculator, SurveyQuestionEditorDefinition, ObjType, SurveyHelper, ResizeManager, UndoRedoPlugin, undoRedoTransaction, ignoreUndoRedo, UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction, PagesController */
|
|
16272
17775
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16273
17776
|
|
|
16274
17777
|
"use strict";
|
|
@@ -16359,329 +17862,375 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16359
17862
|
/* harmony import */ var _components_tabs_test_plugin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../components/tabs/test-plugin */ "./src/components/tabs/test-plugin.ts");
|
|
16360
17863
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabTestPlugin", function() { return _components_tabs_test_plugin__WEBPACK_IMPORTED_MODULE_10__["TabTestPlugin"]; });
|
|
16361
17864
|
|
|
16362
|
-
/* harmony import */ var
|
|
16363
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17865
|
+
/* harmony import */ var _components_tabs_theme_custom_questions_color_settings__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../components/tabs/theme-custom-questions/color-settings */ "./src/components/tabs/theme-custom-questions/color-settings.ts");
|
|
17866
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createColor", function() { return _components_tabs_theme_custom_questions_color_settings__WEBPACK_IMPORTED_MODULE_11__["createColor"]; });
|
|
17867
|
+
|
|
17868
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseColor", function() { return _components_tabs_theme_custom_questions_color_settings__WEBPACK_IMPORTED_MODULE_11__["parseColor"]; });
|
|
17869
|
+
|
|
17870
|
+
/* harmony import */ var _components_tabs_theme_custom_questions_boxshadow_settings__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../components/tabs/theme-custom-questions/boxshadow-settings */ "./src/components/tabs/theme-custom-questions/boxshadow-settings.ts");
|
|
17871
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "createBoxShadow", function() { return _components_tabs_theme_custom_questions_boxshadow_settings__WEBPACK_IMPORTED_MODULE_12__["createBoxShadow"]; });
|
|
17872
|
+
|
|
17873
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseBoxShadow", function() { return _components_tabs_theme_custom_questions_boxshadow_settings__WEBPACK_IMPORTED_MODULE_12__["parseBoxShadow"]; });
|
|
17874
|
+
|
|
17875
|
+
/* harmony import */ var _components_tabs_theme__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../components/tabs/theme */ "./src/components/tabs/theme.ts");
|
|
17876
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Themes", function() { return _components_tabs_theme__WEBPACK_IMPORTED_MODULE_13__["Themes"]; });
|
|
16364
17877
|
|
|
16365
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17878
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThemeSurveyTabViewModel", function() { return _components_tabs_theme__WEBPACK_IMPORTED_MODULE_13__["ThemeSurveyTabViewModel"]; });
|
|
16366
17879
|
|
|
16367
|
-
/* harmony
|
|
17880
|
+
/* harmony import */ var _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../components/tabs/theme-plugin */ "./src/components/tabs/theme-plugin.ts");
|
|
17881
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabThemePlugin", function() { return _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_14__["TabThemePlugin"]; });
|
|
16368
17882
|
|
|
16369
|
-
/* harmony import */ var
|
|
16370
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17883
|
+
/* harmony import */ var _components_tabs_logic__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../components/tabs/logic */ "./src/components/tabs/logic.ts");
|
|
17884
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initLogicOperator", function() { return _components_tabs_logic__WEBPACK_IMPORTED_MODULE_15__["initLogicOperator"]; });
|
|
16371
17885
|
|
|
16372
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17886
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogicEvent", function() { return _components_tabs_logic__WEBPACK_IMPORTED_MODULE_15__["LogicEvent"]; });
|
|
16373
17887
|
|
|
16374
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17888
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogic", function() { return _components_tabs_logic__WEBPACK_IMPORTED_MODULE_15__["SurveyLogic"]; });
|
|
16375
17889
|
|
|
16376
|
-
/* harmony
|
|
17890
|
+
/* harmony import */ var _components_tabs_translation__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../components/tabs/translation */ "./src/components/tabs/translation.ts");
|
|
17891
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationItemBase", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_16__["TranslationItemBase"]; });
|
|
16377
17892
|
|
|
16378
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17893
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationItemString", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_16__["TranslationItemString"]; });
|
|
16379
17894
|
|
|
16380
|
-
/* harmony
|
|
16381
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "translationCss", function() { return _components_tabs_translation_theme__WEBPACK_IMPORTED_MODULE_13__["translationCss"]; });
|
|
17895
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationItem", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_16__["TranslationItem"]; });
|
|
16382
17896
|
|
|
16383
|
-
/* harmony
|
|
16384
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabTranslationPlugin", function() { return _components_tabs_translation_plugin__WEBPACK_IMPORTED_MODULE_14__["TabTranslationPlugin"]; });
|
|
17897
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationGroup", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_16__["TranslationGroup"]; });
|
|
16385
17898
|
|
|
16386
|
-
/* harmony
|
|
16387
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initialSettingsAllowShowEmptyTitleInDesignMode", function() { return _components_tabs_designer__WEBPACK_IMPORTED_MODULE_15__["initialSettingsAllowShowEmptyTitleInDesignMode"]; });
|
|
17899
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Translation", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_16__["Translation"]; });
|
|
16388
17900
|
|
|
16389
|
-
/* harmony
|
|
17901
|
+
/* harmony import */ var _components_tabs_translation_theme__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../components/tabs/translation-theme */ "./src/components/tabs/translation-theme.ts");
|
|
17902
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "translationCss", function() { return _components_tabs_translation_theme__WEBPACK_IMPORTED_MODULE_17__["translationCss"]; });
|
|
16390
17903
|
|
|
16391
|
-
/* harmony import */ var
|
|
16392
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17904
|
+
/* harmony import */ var _components_tabs_translation_plugin__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../components/tabs/translation-plugin */ "./src/components/tabs/translation-plugin.ts");
|
|
17905
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabTranslationPlugin", function() { return _components_tabs_translation_plugin__WEBPACK_IMPORTED_MODULE_18__["TabTranslationPlugin"]; });
|
|
16393
17906
|
|
|
16394
|
-
/* harmony import */ var
|
|
16395
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17907
|
+
/* harmony import */ var _components_tabs_designer__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../components/tabs/designer */ "./src/components/tabs/designer.ts");
|
|
17908
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initialSettingsAllowShowEmptyTitleInDesignMode", function() { return _components_tabs_designer__WEBPACK_IMPORTED_MODULE_19__["initialSettingsAllowShowEmptyTitleInDesignMode"]; });
|
|
16396
17909
|
|
|
16397
|
-
/* harmony
|
|
16398
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabLogicPlugin", function() { return _components_tabs_logic_plugin__WEBPACK_IMPORTED_MODULE_18__["TabLogicPlugin"]; });
|
|
17910
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabDesignerViewModel", function() { return _components_tabs_designer__WEBPACK_IMPORTED_MODULE_19__["TabDesignerViewModel"]; });
|
|
16399
17911
|
|
|
16400
|
-
/* harmony import */ var
|
|
16401
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17912
|
+
/* harmony import */ var _components_tabs_designer_plugin__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../components/tabs/designer-plugin */ "./src/components/tabs/designer-plugin.ts");
|
|
17913
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabDesignerPlugin", function() { return _components_tabs_designer_plugin__WEBPACK_IMPORTED_MODULE_20__["TabDesignerPlugin"]; });
|
|
16402
17914
|
|
|
16403
|
-
/* harmony import */ var
|
|
16404
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17915
|
+
/* harmony import */ var _components_tabs_logic_ui__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../components/tabs/logic-ui */ "./src/components/tabs/logic-ui.ts");
|
|
17916
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogicUI", function() { return _components_tabs_logic_ui__WEBPACK_IMPORTED_MODULE_21__["SurveyLogicUI"]; });
|
|
16405
17917
|
|
|
16406
|
-
/* harmony import */ var
|
|
16407
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17918
|
+
/* harmony import */ var _components_tabs_logic_plugin__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../components/tabs/logic-plugin */ "./src/components/tabs/logic-plugin.ts");
|
|
17919
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabLogicPlugin", function() { return _components_tabs_logic_plugin__WEBPACK_IMPORTED_MODULE_22__["TabLogicPlugin"]; });
|
|
16408
17920
|
|
|
16409
|
-
/* harmony import */ var
|
|
16410
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17921
|
+
/* harmony import */ var _components_tabs_logic_theme__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../components/tabs/logic-theme */ "./src/components/tabs/logic-theme.ts");
|
|
17922
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "logicCss", function() { return _components_tabs_logic_theme__WEBPACK_IMPORTED_MODULE_23__["logicCss"]; });
|
|
16411
17923
|
|
|
16412
|
-
/* harmony import */ var
|
|
16413
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17924
|
+
/* harmony import */ var _components_toolbox_toolbox_tool__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../components/toolbox/toolbox-tool */ "./src/components/toolbox/toolbox-tool.ts");
|
|
17925
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolboxToolViewModel", function() { return _components_toolbox_toolbox_tool__WEBPACK_IMPORTED_MODULE_24__["ToolboxToolViewModel"]; });
|
|
16414
17926
|
|
|
16415
|
-
/* harmony import */ var
|
|
16416
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17927
|
+
/* harmony import */ var _components_page_navigator_page_navigator__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../components/page-navigator/page-navigator */ "./src/components/page-navigator/page-navigator.ts");
|
|
17928
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PageNavigatorViewModel", function() { return _components_page_navigator_page_navigator__WEBPACK_IMPORTED_MODULE_25__["PageNavigatorViewModel"]; });
|
|
16417
17929
|
|
|
16418
|
-
/* harmony import */ var
|
|
16419
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17930
|
+
/* harmony import */ var _components_page__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../components/page */ "./src/components/page.ts");
|
|
17931
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PageAdorner", function() { return _components_page__WEBPACK_IMPORTED_MODULE_26__["PageAdorner"]; });
|
|
16420
17932
|
|
|
16421
|
-
/* harmony import */ var
|
|
16422
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17933
|
+
/* harmony import */ var _components_row__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../components/row */ "./src/components/row.ts");
|
|
17934
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RowViewModel", function() { return _components_row__WEBPACK_IMPORTED_MODULE_27__["RowViewModel"]; });
|
|
16423
17935
|
|
|
16424
|
-
/* harmony import */ var
|
|
16425
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17936
|
+
/* harmony import */ var _components_question__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../components/question */ "./src/components/question.ts");
|
|
17937
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionAdornerViewModel", function() { return _components_question__WEBPACK_IMPORTED_MODULE_28__["QuestionAdornerViewModel"]; });
|
|
16426
17938
|
|
|
16427
|
-
/* harmony import */ var
|
|
16428
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17939
|
+
/* harmony import */ var _components_question_dropdown__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../components/question-dropdown */ "./src/components/question-dropdown.ts");
|
|
17940
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionDropdownAdornerViewModel", function() { return _components_question_dropdown__WEBPACK_IMPORTED_MODULE_29__["QuestionDropdownAdornerViewModel"]; });
|
|
16429
17941
|
|
|
16430
|
-
/* harmony import */ var
|
|
16431
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17942
|
+
/* harmony import */ var _components_question_image__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../components/question-image */ "./src/components/question-image.ts");
|
|
17943
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionImageAdornerViewModel", function() { return _components_question_image__WEBPACK_IMPORTED_MODULE_30__["QuestionImageAdornerViewModel"]; });
|
|
16432
17944
|
|
|
16433
|
-
/* harmony import */ var
|
|
16434
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17945
|
+
/* harmony import */ var _components_question_rating__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../components/question-rating */ "./src/components/question-rating.ts");
|
|
17946
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionRatingAdornerViewModel", function() { return _components_question_rating__WEBPACK_IMPORTED_MODULE_31__["QuestionRatingAdornerViewModel"]; });
|
|
16435
17947
|
|
|
16436
|
-
/* harmony
|
|
17948
|
+
/* harmony import */ var _components_item_value__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../components/item-value */ "./src/components/item-value.ts");
|
|
17949
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemValueWrapperViewModel", function() { return _components_item_value__WEBPACK_IMPORTED_MODULE_32__["ItemValueWrapperViewModel"]; });
|
|
16437
17950
|
|
|
16438
|
-
/* harmony import */ var
|
|
16439
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17951
|
+
/* harmony import */ var _components_image_item_value__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../components/image-item-value */ "./src/components/image-item-value.ts");
|
|
17952
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageItemValueWrapperViewModel", function() { return _components_image_item_value__WEBPACK_IMPORTED_MODULE_33__["ImageItemValueWrapperViewModel"]; });
|
|
16440
17953
|
|
|
16441
|
-
/* harmony
|
|
17954
|
+
/* harmony import */ var _components_matrix_cell__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../components/matrix-cell */ "./src/components/matrix-cell.ts");
|
|
17955
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixCellWrapperEditSurvey", function() { return _components_matrix_cell__WEBPACK_IMPORTED_MODULE_34__["MatrixCellWrapperEditSurvey"]; });
|
|
16442
17956
|
|
|
16443
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17957
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixCellWrapperViewModel", function() { return _components_matrix_cell__WEBPACK_IMPORTED_MODULE_34__["MatrixCellWrapperViewModel"]; });
|
|
16444
17958
|
|
|
16445
|
-
/* harmony import */ var
|
|
16446
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17959
|
+
/* harmony import */ var _components_simulator__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../components/simulator */ "./src/components/simulator.ts");
|
|
17960
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveySimulatorModel", function() { return _components_simulator__WEBPACK_IMPORTED_MODULE_35__["SurveySimulatorModel"]; });
|
|
16447
17961
|
|
|
16448
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17962
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_MONITOR_DPI", function() { return _components_simulator__WEBPACK_IMPORTED_MODULE_35__["DEFAULT_MONITOR_DPI"]; });
|
|
16449
17963
|
|
|
16450
|
-
/* harmony
|
|
16451
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogoImageViewModel", function() { return _components_header_logo_image__WEBPACK_IMPORTED_MODULE_33__["LogoImageViewModel"]; });
|
|
17964
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "simulatorDevices", function() { return _components_simulator__WEBPACK_IMPORTED_MODULE_35__["simulatorDevices"]; });
|
|
16452
17965
|
|
|
16453
|
-
/* harmony import */ var
|
|
16454
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17966
|
+
/* harmony import */ var _components_results__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../components/results */ "./src/components/results.ts");
|
|
17967
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyResultsItemModel", function() { return _components_results__WEBPACK_IMPORTED_MODULE_36__["SurveyResultsItemModel"]; });
|
|
16455
17968
|
|
|
16456
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17969
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyResultsModel", function() { return _components_results__WEBPACK_IMPORTED_MODULE_36__["SurveyResultsModel"]; });
|
|
16457
17970
|
|
|
16458
|
-
/* harmony
|
|
17971
|
+
/* harmony import */ var _components_header_logo_image__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../components/header/logo-image */ "./src/components/header/logo-image.ts");
|
|
17972
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogoImageViewModel", function() { return _components_header_logo_image__WEBPACK_IMPORTED_MODULE_37__["LogoImageViewModel"]; });
|
|
16459
17973
|
|
|
16460
|
-
/* harmony import */ var
|
|
16461
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17974
|
+
/* harmony import */ var _components_string_editor__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../components/string-editor */ "./src/components/string-editor.ts");
|
|
17975
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringItemsNavigatorBase", function() { return _components_string_editor__WEBPACK_IMPORTED_MODULE_38__["StringItemsNavigatorBase"]; });
|
|
16462
17976
|
|
|
16463
|
-
/* harmony
|
|
16464
|
-
|
|
17977
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringEditorConnector", function() { return _components_string_editor__WEBPACK_IMPORTED_MODULE_38__["StringEditorConnector"]; });
|
|
17978
|
+
|
|
17979
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringEditorViewModelBase", function() { return _components_string_editor__WEBPACK_IMPORTED_MODULE_38__["StringEditorViewModelBase"]; });
|
|
17980
|
+
|
|
17981
|
+
/* harmony import */ var _components_embedded_survey__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../components/embedded-survey */ "./src/components/embedded-survey.ts");
|
|
17982
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionEmbeddedSurveyModel", function() { return _components_embedded_survey__WEBPACK_IMPORTED_MODULE_39__["QuestionEmbeddedSurveyModel"]; });
|
|
17983
|
+
|
|
17984
|
+
/* harmony import */ var _components_link_value__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../components/link-value */ "./src/components/link-value.ts");
|
|
17985
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionLinkValueModel", function() { return _components_link_value__WEBPACK_IMPORTED_MODULE_40__["QuestionLinkValueModel"]; });
|
|
16465
17986
|
|
|
16466
17987
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EditorLocalization", function() { return _editorLocalization__WEBPACK_IMPORTED_MODULE_1__["EditorLocalization"]; });
|
|
16467
17988
|
|
|
16468
17989
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLocString", function() { return _editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"]; });
|
|
16469
17990
|
|
|
16470
|
-
/* harmony import */ var
|
|
16471
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyJSON5", function() { return
|
|
17991
|
+
/* harmony import */ var _json5__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../json5 */ "./src/json5.ts");
|
|
17992
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyJSON5", function() { return _json5__WEBPACK_IMPORTED_MODULE_41__["SurveyJSON5"]; });
|
|
17993
|
+
|
|
17994
|
+
/* harmony import */ var _custom_questions_question_spin_editor__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../custom-questions/question-spin-editor */ "./src/custom-questions/question-spin-editor.ts");
|
|
17995
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionSpinEditorModel", function() { return _custom_questions_question_spin_editor__WEBPACK_IMPORTED_MODULE_42__["QuestionSpinEditorModel"]; });
|
|
17996
|
+
|
|
17997
|
+
/* harmony import */ var _custom_questions_question_color__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../custom-questions/question-color */ "./src/custom-questions/question-color.ts");
|
|
17998
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionColorModel", function() { return _custom_questions_question_color__WEBPACK_IMPORTED_MODULE_43__["QuestionColorModel"]; });
|
|
17999
|
+
|
|
18000
|
+
/* harmony import */ var _custom_questions_question_file__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../custom-questions/question-file */ "./src/custom-questions/question-file.ts");
|
|
18001
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionFileEditorModel", function() { return _custom_questions_question_file__WEBPACK_IMPORTED_MODULE_44__["QuestionFileEditorModel"]; });
|
|
18002
|
+
|
|
18003
|
+
/* harmony import */ var _property_grid__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../property-grid */ "./src/property-grid/index.ts");
|
|
18004
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setSurveyJSONForPropertyGrid", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["setSurveyJSONForPropertyGrid"]; });
|
|
18005
|
+
|
|
18006
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyEditorSetupValue", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyEditorSetupValue"]; });
|
|
16472
18007
|
|
|
16473
|
-
/* harmony
|
|
16474
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionSpinEditorModel", function() { return _custom_questions_question_spin_editor__WEBPACK_IMPORTED_MODULE_38__["QuestionSpinEditorModel"]; });
|
|
18008
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCollection", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorCollection"]; });
|
|
16475
18009
|
|
|
16476
|
-
/* harmony
|
|
16477
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionColorModel", function() { return _custom_questions_question_color__WEBPACK_IMPORTED_MODULE_39__["QuestionColorModel"]; });
|
|
18010
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTitleActionsCreator", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridTitleActionsCreator"]; });
|
|
16478
18011
|
|
|
16479
|
-
/* harmony
|
|
16480
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionFileEditorModel", function() { return _custom_questions_question_file__WEBPACK_IMPORTED_MODULE_40__["QuestionFileEditorModel"]; });
|
|
18012
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyJSONGenerator", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyJSONGenerator"]; });
|
|
16481
18013
|
|
|
16482
|
-
/* harmony
|
|
16483
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setSurveyJSONForPropertyGrid", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_41__["setSurveyJSONForPropertyGrid"]; });
|
|
18014
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridModel", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridModel"]; });
|
|
16484
18015
|
|
|
16485
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18016
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditor", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditor"]; });
|
|
16486
18017
|
|
|
16487
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18018
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBoolean", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorBoolean"]; });
|
|
16488
18019
|
|
|
16489
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18020
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringBase", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorStringBase"]; });
|
|
16490
18021
|
|
|
16491
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18022
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorString", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorString"]; });
|
|
16492
18023
|
|
|
16493
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18024
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridLinkEditor", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridLinkEditor"]; });
|
|
16494
18025
|
|
|
16495
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18026
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorNumber", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorNumber"]; });
|
|
16496
18027
|
|
|
16497
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18028
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorImageSize", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorImageSize"]; });
|
|
16498
18029
|
|
|
16499
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18030
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorText", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorText"]; });
|
|
16500
18031
|
|
|
16501
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18032
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorHtml", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorHtml"]; });
|
|
16502
18033
|
|
|
16503
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18034
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorColor", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorColor"]; });
|
|
16504
18035
|
|
|
16505
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18036
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringArray", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorStringArray"]; });
|
|
16506
18037
|
|
|
16507
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18038
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorDropdown", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorDropdown"]; });
|
|
16508
18039
|
|
|
16509
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18040
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorSet", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorSet"]; });
|
|
16510
18041
|
|
|
16511
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18042
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorPage", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorPage"]; });
|
|
16512
18043
|
|
|
16513
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18044
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestion", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorQuestion"]; });
|
|
16514
18045
|
|
|
16515
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18046
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionSelectBase", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorQuestionSelectBase"]; });
|
|
16516
18047
|
|
|
16517
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18048
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionValue", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorQuestionValue"]; });
|
|
16518
18049
|
|
|
16519
|
-
/* harmony
|
|
18050
|
+
/* harmony import */ var _property_grid_condition__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../property-grid/condition */ "./src/property-grid/condition.ts");
|
|
18051
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorExpression", function() { return _property_grid_condition__WEBPACK_IMPORTED_MODULE_46__["PropertyGridEditorExpression"]; });
|
|
16520
18052
|
|
|
16521
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18053
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCondition", function() { return _property_grid_condition__WEBPACK_IMPORTED_MODULE_46__["PropertyGridEditorCondition"]; });
|
|
16522
18054
|
|
|
16523
|
-
/* harmony
|
|
18055
|
+
/* harmony import */ var _property_grid_matrices__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ../property-grid/matrices */ "./src/property-grid/matrices.ts");
|
|
18056
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrix", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorMatrix"]; });
|
|
16524
18057
|
|
|
16525
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18058
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixItemValues", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorMatrixItemValues"]; });
|
|
16526
18059
|
|
|
16527
|
-
/* harmony
|
|
16528
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorExpression", function() { return _property_grid_condition__WEBPACK_IMPORTED_MODULE_42__["PropertyGridEditorExpression"]; });
|
|
18060
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixRateValues", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorMatrixRateValues"]; });
|
|
16529
18061
|
|
|
16530
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18062
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixColumns", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorMatrixColumns"]; });
|
|
16531
18063
|
|
|
16532
|
-
/* harmony
|
|
16533
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrix", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorMatrix"]; });
|
|
18064
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixPages", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorMatrixPages"]; });
|
|
16534
18065
|
|
|
16535
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18066
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixCalculatedValues", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorMatrixCalculatedValues"]; });
|
|
16536
18067
|
|
|
16537
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18068
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixHtmlConditions", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorMatrixHtmlConditions"]; });
|
|
16538
18069
|
|
|
16539
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18070
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixUrlConditions", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorMatrixUrlConditions"]; });
|
|
16540
18071
|
|
|
16541
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18072
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixMutlipleTextItems", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorMatrixMutlipleTextItems"]; });
|
|
16542
18073
|
|
|
16543
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18074
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixMultipleTypes", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorMatrixMultipleTypes"]; });
|
|
16544
18075
|
|
|
16545
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18076
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixValidators", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorMatrixValidators"]; });
|
|
16546
18077
|
|
|
16547
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18078
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixTriggers", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorMatrixTriggers"]; });
|
|
16548
18079
|
|
|
16549
|
-
/* harmony
|
|
18080
|
+
/* harmony import */ var _property_grid_bindings__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../property-grid/bindings */ "./src/property-grid/bindings.ts");
|
|
18081
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBindings", function() { return _property_grid_bindings__WEBPACK_IMPORTED_MODULE_48__["PropertyGridEditorBindings"]; });
|
|
16550
18082
|
|
|
16551
|
-
/* harmony
|
|
18083
|
+
/* harmony import */ var _property_grid_property_grid_view_model__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../property-grid/property-grid-view-model */ "./src/property-grid/property-grid-view-model.ts");
|
|
18084
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridViewModel", function() { return _property_grid_property_grid_view_model__WEBPACK_IMPORTED_MODULE_49__["PropertyGridViewModel"]; });
|
|
16552
18085
|
|
|
16553
|
-
/* harmony
|
|
18086
|
+
/* harmony import */ var _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ../property-grid/object-selector */ "./src/property-grid/object-selector.ts");
|
|
18087
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelectorItem", function() { return _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_50__["ObjectSelectorItem"]; });
|
|
16554
18088
|
|
|
16555
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18089
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelector", function() { return _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_50__["ObjectSelector"]; });
|
|
16556
18090
|
|
|
16557
|
-
/* harmony
|
|
16558
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBindings", function() { return _property_grid_bindings__WEBPACK_IMPORTED_MODULE_44__["PropertyGridEditorBindings"]; });
|
|
18091
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelectorModel", function() { return _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_50__["ObjectSelectorModel"]; });
|
|
16559
18092
|
|
|
16560
|
-
/* harmony import */ var
|
|
16561
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18093
|
+
/* harmony import */ var _property_grid_restfull__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../property-grid/restfull */ "./src/property-grid/restfull.ts");
|
|
18094
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionRestfull", function() { return _property_grid_restfull__WEBPACK_IMPORTED_MODULE_51__["PropertyGridEditorQuestionRestfull"]; });
|
|
16562
18095
|
|
|
16563
|
-
/* harmony import */ var
|
|
16564
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18096
|
+
/* harmony import */ var _property_grid_values__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../property-grid/values */ "./src/property-grid/values.ts");
|
|
18097
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditorBase", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_52__["PropertyGridValueEditorBase"]; });
|
|
16565
18098
|
|
|
16566
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18099
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridCellsEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_52__["PropertyGridCellsEditor"]; });
|
|
16567
18100
|
|
|
16568
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18101
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_52__["PropertyGridValueEditor"]; });
|
|
16569
18102
|
|
|
16570
|
-
/* harmony
|
|
16571
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionRestfull", function() { return _property_grid_restfull__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorQuestionRestfull"]; });
|
|
18103
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridRowValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_52__["PropertyGridRowValueEditor"]; });
|
|
16572
18104
|
|
|
16573
|
-
/* harmony
|
|
16574
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditorBase", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_48__["PropertyGridValueEditorBase"]; });
|
|
18105
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridPanelValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_52__["PropertyGridPanelValueEditor"]; });
|
|
16575
18106
|
|
|
16576
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18107
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTriggerValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_52__["PropertyGridTriggerValueEditor"]; });
|
|
16577
18108
|
|
|
16578
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18109
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTriggerValueInLogicEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_52__["PropertyGridTriggerValueInLogicEditor"]; });
|
|
16579
18110
|
|
|
16580
|
-
/* harmony
|
|
18111
|
+
/* harmony import */ var _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../property-grid-theme/property-grid */ "./src/property-grid-theme/property-grid.ts");
|
|
18112
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propertyGridCss", function() { return _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_53__["propertyGridCss"]; });
|
|
16581
18113
|
|
|
16582
|
-
/* harmony
|
|
18114
|
+
/* harmony import */ var _questionconverter__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../questionconverter */ "./src/questionconverter.ts");
|
|
18115
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionConverter", function() { return _questionconverter__WEBPACK_IMPORTED_MODULE_54__["QuestionConverter"]; });
|
|
16583
18116
|
|
|
16584
|
-
/* harmony
|
|
18117
|
+
/* harmony import */ var _svgbundle__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../svgbundle */ "./src/svgbundle.ts");
|
|
18118
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return _svgbundle__WEBPACK_IMPORTED_MODULE_55__["svgBundle"]; });
|
|
16585
18119
|
|
|
16586
|
-
/* harmony
|
|
18120
|
+
/* harmony import */ var _textWorker__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../textWorker */ "./src/textWorker.ts");
|
|
18121
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorker", function() { return _textWorker__WEBPACK_IMPORTED_MODULE_56__["SurveyTextWorker"]; });
|
|
16587
18122
|
|
|
16588
|
-
/* harmony import */ var
|
|
16589
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18123
|
+
/* harmony import */ var _toolbox__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../toolbox */ "./src/toolbox.ts");
|
|
18124
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolboxCategory", function() { return _toolbox__WEBPACK_IMPORTED_MODULE_57__["QuestionToolboxCategory"]; });
|
|
16590
18125
|
|
|
16591
|
-
/* harmony
|
|
16592
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionConverter", function() { return _questionconverter__WEBPACK_IMPORTED_MODULE_50__["QuestionConverter"]; });
|
|
18126
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolboxItem", function() { return _toolbox__WEBPACK_IMPORTED_MODULE_57__["QuestionToolboxItem"]; });
|
|
16593
18127
|
|
|
16594
|
-
/* harmony
|
|
16595
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return _svgbundle__WEBPACK_IMPORTED_MODULE_51__["svgBundle"]; });
|
|
18128
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolbox", function() { return _toolbox__WEBPACK_IMPORTED_MODULE_57__["QuestionToolbox"]; });
|
|
16596
18129
|
|
|
16597
|
-
/* harmony import */ var
|
|
16598
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18130
|
+
/* harmony import */ var _components_side_bar_side_bar_model__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../components/side-bar/side-bar-model */ "./src/components/side-bar/side-bar-model.ts");
|
|
18131
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarModel", function() { return _components_side_bar_side_bar_model__WEBPACK_IMPORTED_MODULE_58__["SidebarModel"]; });
|
|
16599
18132
|
|
|
16600
|
-
/* harmony import */ var
|
|
16601
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18133
|
+
/* harmony import */ var _components_side_bar_side_bar_tab_model__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../components/side-bar/side-bar-tab-model */ "./src/components/side-bar/side-bar-tab-model.ts");
|
|
18134
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarTabModel", function() { return _components_side_bar_side_bar_tab_model__WEBPACK_IMPORTED_MODULE_59__["SidebarTabModel"]; });
|
|
16602
18135
|
|
|
16603
|
-
/* harmony
|
|
18136
|
+
/* harmony import */ var _utils_events__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../utils/events */ "./src/utils/events.ts");
|
|
18137
|
+
/* empty/unused harmony star reexport *//* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
18138
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemValue", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["getNextItemValue"]; });
|
|
16604
18139
|
|
|
16605
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18140
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemText", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["getNextItemText"]; });
|
|
16606
18141
|
|
|
16607
|
-
/* harmony
|
|
16608
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarModel", function() { return _components_side_bar_side_bar_model__WEBPACK_IMPORTED_MODULE_54__["SidebarModel"]; });
|
|
18142
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextValue", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["getNextValue"]; });
|
|
16609
18143
|
|
|
16610
|
-
/* harmony
|
|
16611
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarTabModel", function() { return _components_side_bar_side_bar_tab_model__WEBPACK_IMPORTED_MODULE_55__["SidebarTabModel"]; });
|
|
18144
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findParentNode", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["findParentNode"]; });
|
|
16612
18145
|
|
|
16613
|
-
/* harmony
|
|
16614
|
-
/* empty/unused harmony star reexport *//* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
16615
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemValue", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_57__["getNextItemValue"]; });
|
|
18146
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "focusFirstControl", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["focusFirstControl"]; });
|
|
16616
18147
|
|
|
16617
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18148
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFirstNonTextElement", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["getFirstNonTextElement"]; });
|
|
16618
18149
|
|
|
16619
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18150
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNodesFromKoComponentInfo", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["getNodesFromKoComponentInfo"]; });
|
|
16620
18151
|
|
|
16621
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18152
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propertyExists", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["propertyExists"]; });
|
|
16622
18153
|
|
|
16623
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18154
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isPropertyVisible", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["isPropertyVisible"]; });
|
|
16624
18155
|
|
|
16625
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18156
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "toggleHovered", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["toggleHovered"]; });
|
|
16626
18157
|
|
|
16627
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18158
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clearNewLines", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["clearNewLines"]; });
|
|
16628
18159
|
|
|
16629
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18160
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "select", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["select"]; });
|
|
16630
18161
|
|
|
16631
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18162
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyObject", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["copyObject"]; });
|
|
16632
18163
|
|
|
16633
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18164
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyCssClasses", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["copyCssClasses"]; });
|
|
16634
18165
|
|
|
16635
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18166
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assignDefaultV2Classes", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["assignDefaultV2Classes"]; });
|
|
16636
18167
|
|
|
16637
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18168
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "wrapTextByCurlyBraces", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["wrapTextByCurlyBraces"]; });
|
|
16638
18169
|
|
|
16639
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18170
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "capitalize", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["capitalize"]; });
|
|
16640
18171
|
|
|
16641
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18172
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "notShortCircuitAnd", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["notShortCircuitAnd"]; });
|
|
16642
18173
|
|
|
16643
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18174
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "imageMimeTypes", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["imageMimeTypes"]; });
|
|
16644
18175
|
|
|
16645
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18176
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getAcceptedTypesByContentMode", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["getAcceptedTypesByContentMode"]; });
|
|
16646
18177
|
|
|
16647
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18178
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getQuestionFromObj", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["getQuestionFromObj"]; });
|
|
16648
18179
|
|
|
16649
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18180
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ingectAlpha", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["ingectAlpha"]; });
|
|
16650
18181
|
|
|
16651
|
-
/* harmony
|
|
16652
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return _question_editor_definition__WEBPACK_IMPORTED_MODULE_58__["SurveyQuestionEditorDefinition"]; });
|
|
18182
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "convertRgbaToString", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["convertRgbaToString"]; });
|
|
16653
18183
|
|
|
16654
|
-
/* harmony
|
|
16655
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjType", function() { return _survey_helper__WEBPACK_IMPORTED_MODULE_59__["ObjType"]; });
|
|
18184
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "parseRgbaFromString", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["parseRgbaFromString"]; });
|
|
16656
18185
|
|
|
16657
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18186
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "HSBToRGB", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["HSBToRGB"]; });
|
|
16658
18187
|
|
|
16659
|
-
/* harmony
|
|
16660
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResizeManager", function() { return _utils_resizer__WEBPACK_IMPORTED_MODULE_60__["ResizeManager"]; });
|
|
18188
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RGBToHSB", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["RGBToHSB"]; });
|
|
16661
18189
|
|
|
16662
|
-
/* harmony
|
|
16663
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoPlugin", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_61__["UndoRedoPlugin"]; });
|
|
18190
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assign", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["assign"]; });
|
|
16664
18191
|
|
|
16665
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18192
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ColorCalculator", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_61__["ColorCalculator"]; });
|
|
16666
18193
|
|
|
16667
|
-
/* harmony
|
|
18194
|
+
/* harmony import */ var _question_editor_definition__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../question-editor/definition */ "./src/question-editor/definition.ts");
|
|
18195
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return _question_editor_definition__WEBPACK_IMPORTED_MODULE_62__["SurveyQuestionEditorDefinition"]; });
|
|
16668
18196
|
|
|
16669
|
-
/* harmony import */ var
|
|
16670
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18197
|
+
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ../survey-helper */ "./src/survey-helper.ts");
|
|
18198
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjType", function() { return _survey_helper__WEBPACK_IMPORTED_MODULE_63__["ObjType"]; });
|
|
16671
18199
|
|
|
16672
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
18200
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyHelper", function() { return _survey_helper__WEBPACK_IMPORTED_MODULE_63__["SurveyHelper"]; });
|
|
16673
18201
|
|
|
16674
|
-
/* harmony
|
|
18202
|
+
/* harmony import */ var _utils_resizer__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ../utils/resizer */ "./src/utils/resizer.ts");
|
|
18203
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResizeManager", function() { return _utils_resizer__WEBPACK_IMPORTED_MODULE_64__["ResizeManager"]; });
|
|
16675
18204
|
|
|
16676
|
-
/* harmony
|
|
18205
|
+
/* harmony import */ var _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ../plugins/undo-redo */ "./src/plugins/undo-redo/index.ts");
|
|
18206
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoPlugin", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_65__["UndoRedoPlugin"]; });
|
|
16677
18207
|
|
|
16678
|
-
/* harmony
|
|
16679
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PagesController", function() { return _pages_controller__WEBPACK_IMPORTED_MODULE_63__["PagesController"]; });
|
|
18208
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "undoRedoTransaction", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_65__["undoRedoTransaction"]; });
|
|
16680
18209
|
|
|
16681
|
-
/* harmony
|
|
16682
|
-
|
|
18210
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ignoreUndoRedo", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_65__["ignoreUndoRedo"]; });
|
|
18211
|
+
|
|
18212
|
+
/* harmony import */ var _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ../plugins/undo-redo/undo-redo-manager */ "./src/plugins/undo-redo/undo-redo-manager.ts");
|
|
18213
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoManager", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_66__["UndoRedoManager"]; });
|
|
18214
|
+
|
|
18215
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Transaction", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_66__["Transaction"]; });
|
|
18216
|
+
|
|
18217
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoAction", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_66__["UndoRedoAction"]; });
|
|
18218
|
+
|
|
18219
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoArrayAction", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_66__["UndoRedoArrayAction"]; });
|
|
18220
|
+
|
|
18221
|
+
/* harmony import */ var _pages_controller__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ../pages-controller */ "./src/pages-controller.ts");
|
|
18222
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PagesController", function() { return _pages_controller__WEBPACK_IMPORTED_MODULE_67__["PagesController"]; });
|
|
18223
|
+
|
|
18224
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
18225
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_68___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_68__);
|
|
16683
18226
|
var Version;
|
|
16684
|
-
Version = "" + "1.9.
|
|
18227
|
+
Version = "" + "1.9.90";
|
|
18228
|
+
//should be loaded before other styles for easier override
|
|
18229
|
+
__webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
|
|
18230
|
+
|
|
18231
|
+
|
|
18232
|
+
|
|
18233
|
+
|
|
16685
18234
|
|
|
16686
18235
|
|
|
16687
18236
|
|
|
@@ -16761,8 +18310,8 @@ __webpack_require__(/*! ../property-grid-theme/property-grid.scss */ "./src/prop
|
|
|
16761
18310
|
__webpack_require__(/*! ../utils/design.scss */ "./src/utils/design.scss");
|
|
16762
18311
|
__webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
|
|
16763
18312
|
|
|
16764
|
-
|
|
16765
|
-
Object(
|
|
18313
|
+
survey_core__WEBPACK_IMPORTED_MODULE_68__["settings"].supportCreatorV2 = true;
|
|
18314
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_68__["checkLibraryVersion"])("" + "1.9.90", "survey-creator-core");
|
|
16766
18315
|
|
|
16767
18316
|
|
|
16768
18317
|
/***/ }),
|
|
@@ -18873,6 +20422,7 @@ var enStrings = {
|
|
|
18873
20422
|
newPanelName: "panel",
|
|
18874
20423
|
newTextItemName: "text",
|
|
18875
20424
|
testSurvey: "Preview",
|
|
20425
|
+
themeSurvey: "Themes",
|
|
18876
20426
|
defaultV2Theme: "Default",
|
|
18877
20427
|
modernTheme: "Modern",
|
|
18878
20428
|
defaultTheme: "Default (legacy)",
|
|
@@ -18926,6 +20476,7 @@ var enStrings = {
|
|
|
18926
20476
|
propertyEditorError: "Error",
|
|
18927
20477
|
saveError: "Error! Editor content is not saved.",
|
|
18928
20478
|
translationPropertyGridTitle: "Language Settings",
|
|
20479
|
+
previewPropertyGridTitle: "Theme Settings",
|
|
18929
20480
|
translationLanguages: "Languages",
|
|
18930
20481
|
translationAddLanguage: "Select language to translate",
|
|
18931
20482
|
translationShowAllStrings: "All Strings",
|
|
@@ -18944,7 +20495,7 @@ var enStrings = {
|
|
|
18944
20495
|
htmlPlaceHolder: "HTML content will be here.",
|
|
18945
20496
|
panelPlaceHolder: "Drop a question from the toolbox here.",
|
|
18946
20497
|
surveyPlaceHolder: "The survey is empty. Drag an element from the toolbox or click the button below.",
|
|
18947
|
-
imagePlaceHolder: "
|
|
20498
|
+
imagePlaceHolder: "Drag and drop an image here or click the button below and choose an image to upload",
|
|
18948
20499
|
imageChooseImage: "Choose Image",
|
|
18949
20500
|
addNewTypeQuestion: "Add {0}",
|
|
18950
20501
|
chooseLogoPlaceholder: "[LOGO]",
|
|
@@ -19076,6 +20627,7 @@ var enStrings = {
|
|
|
19076
20627
|
propertyIsEmpty: "Please enter a value",
|
|
19077
20628
|
propertyIsNoUnique: "Please enter a unique value",
|
|
19078
20629
|
propertyNameIsNotUnique: "Please enter a unique name",
|
|
20630
|
+
propertyNameIsIncorrect: "Do not use reserved words: \"item\", \"choice\", \"panel\", \"row\".",
|
|
19079
20631
|
listIsEmpty: "No items have been added yet",
|
|
19080
20632
|
"listIsEmpty@choices": "No choices have been added yet",
|
|
19081
20633
|
"addNew@choices": "Add a choice",
|
|
@@ -19247,6 +20799,7 @@ var enStrings = {
|
|
|
19247
20799
|
maxTextLength: "Maximum answer length (in characters)",
|
|
19248
20800
|
maxOthersLength: "Maximum comment length (in characters)",
|
|
19249
20801
|
autoGrowComment: "Auto-expand comment area if necessary",
|
|
20802
|
+
allowResizeComment: "Allow users to resize text areas",
|
|
19250
20803
|
textUpdateMode: "Update text question value",
|
|
19251
20804
|
focusOnFirstError: "Set focus on the first invalid answer",
|
|
19252
20805
|
checkErrorsMode: "Run validation",
|
|
@@ -19457,6 +21010,7 @@ var enStrings = {
|
|
|
19457
21010
|
progressTop: "Panel navigator + Progress bar at the top",
|
|
19458
21011
|
progressBottom: "Panel navigator + Progress bar at the bottom",
|
|
19459
21012
|
progressTopBottom: "Panel navigator + Progress bar at the top and bottom",
|
|
21013
|
+
tab: "Tabs",
|
|
19460
21014
|
horizontal: "Horizontal",
|
|
19461
21015
|
vertical: "Vertical",
|
|
19462
21016
|
top: "Top",
|
|
@@ -19577,7 +21131,12 @@ var enStrings = {
|
|
|
19577
21131
|
autoGenerate: {
|
|
19578
21132
|
"true": "Generate",
|
|
19579
21133
|
"false": "Enter manually"
|
|
19580
|
-
}
|
|
21134
|
+
},
|
|
21135
|
+
rateType: {
|
|
21136
|
+
labels: "Labels",
|
|
21137
|
+
stars: "Stars",
|
|
21138
|
+
smileys: "Smileys"
|
|
21139
|
+
},
|
|
19581
21140
|
},
|
|
19582
21141
|
// Operators
|
|
19583
21142
|
op: {
|
|
@@ -19721,6 +21280,7 @@ var enStrings = {
|
|
|
19721
21280
|
navigationDescription: "Navigation description",
|
|
19722
21281
|
longTap: "Long tap",
|
|
19723
21282
|
autoGrow: "Auto grow",
|
|
21283
|
+
allowResize: "Allow resizing",
|
|
19724
21284
|
acceptCarriageReturn: "Accept carriage return",
|
|
19725
21285
|
displayMode: "Display mode",
|
|
19726
21286
|
rateType: "Rate type",
|
|
@@ -19738,7 +21298,69 @@ var enStrings = {
|
|
|
19738
21298
|
showCaption: "Show caption",
|
|
19739
21299
|
iconName: "Icon name",
|
|
19740
21300
|
iconSize: "Icon size" // Auto-generated string
|
|
19741
|
-
}
|
|
21301
|
+
},
|
|
21302
|
+
theme: {
|
|
21303
|
+
"--background": "Background Color",
|
|
21304
|
+
"--background-dim-light": "Background Dim Light Color",
|
|
21305
|
+
"--primary-foreground": "Primary Foreground Color",
|
|
21306
|
+
"--foreground": "Foreground Color",
|
|
21307
|
+
"--base-unit": "Base Unit",
|
|
21308
|
+
groupGeneral: "General",
|
|
21309
|
+
groupAdvanced: "Advanced",
|
|
21310
|
+
"themeName": "Theme",
|
|
21311
|
+
"themeMode": "Modes",
|
|
21312
|
+
"themeModePanels": "Panels",
|
|
21313
|
+
"themeModeLightweight": "Lightweight",
|
|
21314
|
+
"themePaletteLight": "Light",
|
|
21315
|
+
"themePaletteDark": "Dark",
|
|
21316
|
+
primaryColor: "Accent Color",
|
|
21317
|
+
primaryDefaultColor: "Default",
|
|
21318
|
+
primaryDarkColor: "Hover",
|
|
21319
|
+
primaryLightColor: "Selected",
|
|
21320
|
+
"backgroundDimColor": "Background Color",
|
|
21321
|
+
"backgroundImage": "Background Image",
|
|
21322
|
+
"backgroundImageFitAuto": "Auto",
|
|
21323
|
+
"backgroundImageFitCover": "Cover",
|
|
21324
|
+
"backgroundImageFitContain": "Contain",
|
|
21325
|
+
"backgroundOpacity": "Opacity",
|
|
21326
|
+
"panelBackgroundTransparency": "Panel Background Transparency",
|
|
21327
|
+
"questionBackgroundTransparency": "Question Background Transparency",
|
|
21328
|
+
questionPanel: "Question Panel",
|
|
21329
|
+
questionTitle: "Question Title Font",
|
|
21330
|
+
questionDescription: "Question Description Font",
|
|
21331
|
+
editorPanel: "Editor",
|
|
21332
|
+
editorFont: "Editor Font",
|
|
21333
|
+
backcolor: "Default Background",
|
|
21334
|
+
hovercolor: "Hover Background",
|
|
21335
|
+
borderDecoration: "Border Decoration",
|
|
21336
|
+
accentBackground: "Accent Background",
|
|
21337
|
+
accentForeground: "Accent Foreground",
|
|
21338
|
+
primaryForecolor: "Default Color",
|
|
21339
|
+
primaryForecolorLight: "Disabled Color",
|
|
21340
|
+
linesColors: "Lines",
|
|
21341
|
+
borderDefault: "Major",
|
|
21342
|
+
borderLight: "Minor",
|
|
21343
|
+
fontFamily: "Font Family",
|
|
21344
|
+
fontSize: "Font Size",
|
|
21345
|
+
color: "Color",
|
|
21346
|
+
size: "Size",
|
|
21347
|
+
fontWeightRegular: "Regular",
|
|
21348
|
+
fontWeightHeavy: "Heavy",
|
|
21349
|
+
fontWeightSemiBold: "Semi-Bold",
|
|
21350
|
+
fontWeightBold: "Bold",
|
|
21351
|
+
scale: "Scale",
|
|
21352
|
+
cornerRadius: "Corner Radius",
|
|
21353
|
+
surveyTitle: "Survey Title Font",
|
|
21354
|
+
pageTitle: "Page Title Font",
|
|
21355
|
+
pageDescription: "Page Description Font",
|
|
21356
|
+
boxShadowX: "X",
|
|
21357
|
+
boxShadowY: "Y",
|
|
21358
|
+
opacity: "Opacity",
|
|
21359
|
+
boxShadowBlur: "Blur",
|
|
21360
|
+
boxShadowSpread: "Spread",
|
|
21361
|
+
questionShadow: "Question Panel Border / Shadow",
|
|
21362
|
+
editorShadow: "Editor Border / Shadow"
|
|
21363
|
+
},
|
|
19742
21364
|
};
|
|
19743
21365
|
// Uncomment the line below if you create a custom dictionary.
|
|
19744
21366
|
// Replace "en" with a custom locale code (for example, "fr" or "de"),
|
|
@@ -22438,7 +24060,7 @@ var FastEntryEditor = /** @class */ (function (_super) {
|
|
|
22438
24060
|
/*!************************************!*\
|
|
22439
24061
|
!*** ./src/property-grid/index.ts ***!
|
|
22440
24062
|
\************************************/
|
|
22441
|
-
/*! exports provided: setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridEditorNumber, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue */
|
|
24063
|
+
/*! exports provided: setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridLinkEditor, PropertyGridEditorNumber, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue */
|
|
22442
24064
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22443
24065
|
|
|
22444
24066
|
"use strict";
|
|
@@ -22453,6 +24075,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22453
24075
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBoolean", function() { return PropertyGridEditorBoolean; });
|
|
22454
24076
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringBase", function() { return PropertyGridEditorStringBase; });
|
|
22455
24077
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorString", function() { return PropertyGridEditorString; });
|
|
24078
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridLinkEditor", function() { return PropertyGridLinkEditor; });
|
|
22456
24079
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorNumber", function() { return PropertyGridEditorNumber; });
|
|
22457
24080
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorImageSize", function() { return PropertyGridEditorImageSize; });
|
|
22458
24081
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorText", function() { return PropertyGridEditorText; });
|
|
@@ -22476,6 +24099,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22476
24099
|
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../survey-helper */ "./src/survey-helper.ts");
|
|
22477
24100
|
/* harmony import */ var _question_editor_definition__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../question-editor/definition */ "./src/question-editor/definition.ts");
|
|
22478
24101
|
/* harmony import */ var _description_parser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./description-parser */ "./src/property-grid/description-parser.ts");
|
|
24102
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
24103
|
+
|
|
22479
24104
|
|
|
22480
24105
|
|
|
22481
24106
|
|
|
@@ -22989,6 +24614,9 @@ var PropertyGridModel = /** @class */ (function () {
|
|
|
22989
24614
|
if (options === void 0) { options = new _creator_settings__WEBPACK_IMPORTED_MODULE_6__["EmptySurveyCreatorOptions"](); }
|
|
22990
24615
|
this.isCellCreating = false;
|
|
22991
24616
|
this.options = options;
|
|
24617
|
+
if (this.options.enableLinkFileEditor) {
|
|
24618
|
+
PropertyGridEditorCollection.register(new PropertyGridLinkEditor());
|
|
24619
|
+
}
|
|
22992
24620
|
this.obj = obj;
|
|
22993
24621
|
}
|
|
22994
24622
|
PropertyGridModel.prototype.refresh = function () {
|
|
@@ -23141,6 +24769,11 @@ var PropertyGridModel = /** @class */ (function () {
|
|
|
23141
24769
|
_this.currentlySelectedProperty = options.question.name;
|
|
23142
24770
|
_this.currentlySelectedPanel = options.question.parent;
|
|
23143
24771
|
});
|
|
24772
|
+
this.survey.onUploadFiles.add(function (_, options) {
|
|
24773
|
+
var callback = function (status, data) { return options.callback(status, [{ content: data, file: options.files[0] }]); };
|
|
24774
|
+
var obj = options.question.obj.getType() == "image" ? options.question.obj : (options.question.obj.getType() == "imageitemvalue" ? options.question.obj.locOwner : undefined);
|
|
24775
|
+
_this.options.uploadFiles(options.files, obj, callback);
|
|
24776
|
+
});
|
|
23144
24777
|
this.survey.getAllQuestions().map(function (q) { return q.allowRootStyle = false; });
|
|
23145
24778
|
this.survey.onQuestionCreated.add(function (_, opt) {
|
|
23146
24779
|
opt.question.allowRootStyle = false;
|
|
@@ -23202,9 +24835,10 @@ var PropertyGridModel = /** @class */ (function () {
|
|
|
23202
24835
|
return res;
|
|
23203
24836
|
};
|
|
23204
24837
|
PropertyGridModel.prototype.validateQuestionValue = function (obj, question, prop, val) {
|
|
23205
|
-
if (question.isRequired && (survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isValueEmpty(val) || question["valueChangingEmpty"]))
|
|
24838
|
+
if (question.isRequired && (survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isValueEmpty(val) || question["valueChangingEmpty"]))
|
|
23206
24839
|
return _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("pe.propertyIsEmpty");
|
|
23207
|
-
|
|
24840
|
+
if (this.isPropNameInValid(obj, prop, val) || question["nameHasError"])
|
|
24841
|
+
return _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("pe.propertyNameIsIncorrect");
|
|
23208
24842
|
var editorError = PropertyGridEditorCollection.validateValue(obj, question, prop, val);
|
|
23209
24843
|
if (!!editorError)
|
|
23210
24844
|
return editorError;
|
|
@@ -23231,20 +24865,25 @@ var PropertyGridModel = /** @class */ (function () {
|
|
|
23231
24865
|
options.value = changingOptions.newValue;
|
|
23232
24866
|
if (q.property.isRequired) {
|
|
23233
24867
|
var isEmpty = survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isValueEmpty(options.value);
|
|
23234
|
-
if (isEmpty) {
|
|
23235
|
-
options.value = options.oldValue;
|
|
23236
|
-
}
|
|
23237
24868
|
q["valueChangingEmpty"] = isEmpty;
|
|
23238
24869
|
}
|
|
24870
|
+
var isPropertyNameInValid = this.isPropNameInValid(this.obj, q.property, options.value);
|
|
24871
|
+
q["nameHasError"] = isPropertyNameInValid;
|
|
24872
|
+
};
|
|
24873
|
+
PropertyGridModel.prototype.isPropNameInValid = function (obj, prop, val) {
|
|
24874
|
+
if (obj["isQuestion"] && prop.name === "name" && !!val) {
|
|
24875
|
+
val = val.toLowerCase();
|
|
24876
|
+
return ["item", "choice", "row", "panel"].indexOf(val) > -1;
|
|
24877
|
+
}
|
|
24878
|
+
return false;
|
|
23239
24879
|
};
|
|
23240
24880
|
PropertyGridModel.prototype.onValueChanged = function (options) {
|
|
23241
24881
|
var _this = this;
|
|
23242
24882
|
var q = options.question;
|
|
23243
24883
|
if (!q || !q.property)
|
|
23244
24884
|
return;
|
|
23245
|
-
|
|
23246
|
-
|
|
23247
|
-
}
|
|
24885
|
+
q["valueChangingEmpty"] = false;
|
|
24886
|
+
q["nameHasError"] = false;
|
|
23248
24887
|
this.changeDependedProperties(q, function (name) { return _this.survey.getQuestionByName(name); }, function (name) { return _this.survey.getValue(name); });
|
|
23249
24888
|
PropertyGridEditorCollection.onValueChanged(this.obj, q.property, q);
|
|
23250
24889
|
if (!!this.classNameProperty &&
|
|
@@ -23506,7 +25145,7 @@ var PropertyGridEditorString = /** @class */ (function (_super) {
|
|
|
23506
25145
|
};
|
|
23507
25146
|
PropertyGridEditorString.prototype.getJSON = function (obj, prop, options) {
|
|
23508
25147
|
var json = this.updateMaxLength(prop, { type: "text" });
|
|
23509
|
-
if (prop.
|
|
25148
|
+
if (prop.isRequired) {
|
|
23510
25149
|
json.textUpdateMode = "onBlur";
|
|
23511
25150
|
}
|
|
23512
25151
|
if (!!prop.dataList) {
|
|
@@ -23517,6 +25156,33 @@ var PropertyGridEditorString = /** @class */ (function (_super) {
|
|
|
23517
25156
|
return PropertyGridEditorString;
|
|
23518
25157
|
}(PropertyGridEditorStringBase));
|
|
23519
25158
|
|
|
25159
|
+
var PropertyGridLinkEditor = /** @class */ (function (_super) {
|
|
25160
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PropertyGridLinkEditor, _super);
|
|
25161
|
+
function PropertyGridLinkEditor() {
|
|
25162
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
25163
|
+
}
|
|
25164
|
+
PropertyGridLinkEditor.prototype.fit = function (prop) {
|
|
25165
|
+
return ["logo", "imageLink"].indexOf(prop.name) > -1;
|
|
25166
|
+
};
|
|
25167
|
+
PropertyGridLinkEditor.prototype.getJSON = function (obj, prop, options) {
|
|
25168
|
+
var res = { type: "fileedit", storeDataAsText: false, };
|
|
25169
|
+
return res;
|
|
25170
|
+
};
|
|
25171
|
+
PropertyGridLinkEditor.prototype.onCreated = function (obj, question, prop, options) {
|
|
25172
|
+
if (["image"].indexOf(obj.getType()) > -1) {
|
|
25173
|
+
var questionObj = obj;
|
|
25174
|
+
questionObj.registerFunctionOnPropertyValueChanged("contentMode", function (newValue) {
|
|
25175
|
+
question.acceptedTypes = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_10__["getAcceptedTypesByContentMode"])(newValue);
|
|
25176
|
+
});
|
|
25177
|
+
question.acceptedTypes = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_10__["getAcceptedTypesByContentMode"])(questionObj.contentMode);
|
|
25178
|
+
}
|
|
25179
|
+
else {
|
|
25180
|
+
question.acceptedTypes = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_10__["getAcceptedTypesByContentMode"])("image");
|
|
25181
|
+
}
|
|
25182
|
+
};
|
|
25183
|
+
return PropertyGridLinkEditor;
|
|
25184
|
+
}(PropertyGridEditor));
|
|
25185
|
+
|
|
23520
25186
|
var PropertyGridEditorNumber = /** @class */ (function (_super) {
|
|
23521
25187
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PropertyGridEditorNumber, _super);
|
|
23522
25188
|
function PropertyGridEditorNumber() {
|
|
@@ -24000,6 +25666,14 @@ var PropertyGridEditorMatrix = /** @class */ (function (_super) {
|
|
|
24000
25666
|
};
|
|
24001
25667
|
this.setupMatrixQuestion(obj, question, prop);
|
|
24002
25668
|
};
|
|
25669
|
+
PropertyGridEditorMatrix.prototype.initializeAcceptedTypes = function (obj, cellQuestion) {
|
|
25670
|
+
if (obj.getType() === "imagepicker" && cellQuestion.name == "imageLink" && cellQuestion.getType() == "fileedit") {
|
|
25671
|
+
obj.registerFunctionOnPropertyValueChanged("contentMode", function (newValue) {
|
|
25672
|
+
cellQuestion.acceptedTypes = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_4__["getAcceptedTypesByContentMode"])(newValue);
|
|
25673
|
+
});
|
|
25674
|
+
cellQuestion.acceptedTypes = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_4__["getAcceptedTypesByContentMode"])(obj.contentMode);
|
|
25675
|
+
}
|
|
25676
|
+
};
|
|
24003
25677
|
PropertyGridEditorMatrix.prototype.initializePlaceholder = function (rowObj, cellQuestion, propertyName) {
|
|
24004
25678
|
var objType = typeof rowObj.getType === "function" && rowObj.getType();
|
|
24005
25679
|
if (cellQuestion.getType() === "text" && !!objType) {
|
|
@@ -24025,9 +25699,23 @@ var PropertyGridEditorMatrix = /** @class */ (function (_super) {
|
|
|
24025
25699
|
return;
|
|
24026
25700
|
var q = options.cellQuestion;
|
|
24027
25701
|
q.obj = rowObj;
|
|
25702
|
+
this.initializeAcceptedTypes(obj, q);
|
|
24028
25703
|
this.initializePlaceholder(rowObj, q, options.columnName);
|
|
24029
25704
|
q.property = survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].findProperty(rowObj.getType(), options.columnName);
|
|
24030
25705
|
};
|
|
25706
|
+
PropertyGridEditorMatrix.prototype.onMatrixCellValueChanged = function (obj, options) {
|
|
25707
|
+
var column = options.question.getColumnByName(options.columnName);
|
|
25708
|
+
if (!column || !column.isUnique)
|
|
25709
|
+
return;
|
|
25710
|
+
options.question.visibleRows.forEach(function (row) {
|
|
25711
|
+
if (row !== options.row) {
|
|
25712
|
+
var q = row.getQuestionByColumnName(options.columnName);
|
|
25713
|
+
if (!!q && q.errors.length > 0) {
|
|
25714
|
+
q.hasErrors();
|
|
25715
|
+
}
|
|
25716
|
+
}
|
|
25717
|
+
});
|
|
25718
|
+
};
|
|
24031
25719
|
PropertyGridEditorMatrix.prototype.updateMatixActionsClasses = function (actions) {
|
|
24032
25720
|
actions.forEach(function (action) {
|
|
24033
25721
|
action.innerCss = (action.innerCss || "") + " spg-action-button--muted";
|
|
@@ -24416,6 +26104,7 @@ var PropertyGridEditorMatrixItemValues = /** @class */ (function (_super) {
|
|
|
24416
26104
|
}
|
|
24417
26105
|
};
|
|
24418
26106
|
PropertyGridEditorMatrixItemValues.prototype.onMatrixCellValueChanged = function (obj, options) {
|
|
26107
|
+
_super.prototype.onMatrixCellValueChanged.call(this, obj, options);
|
|
24419
26108
|
if (obj instanceof survey_core__WEBPACK_IMPORTED_MODULE_1__["QuestionRatingModel"] && options.columnName == "icon") {
|
|
24420
26109
|
//options.cellQuestion.html = "<svg style='fill: red'><use xlink:href=\"#" + options.cellQuestion.value + "\"></use></svg>";
|
|
24421
26110
|
options.cellQuestion.html = options.cellQuestion.value;
|
|
@@ -24440,10 +26129,11 @@ var PropertyGridEditorMatrixRateValues = /** @class */ (function (_super) {
|
|
|
24440
26129
|
var _this = this;
|
|
24441
26130
|
_super.prototype.onCreated.call(this, obj, question, prop);
|
|
24442
26131
|
var matrixQuestion = question;
|
|
24443
|
-
|
|
26132
|
+
var ratingQuestion = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_4__["getQuestionFromObj"])(obj);
|
|
26133
|
+
this.updateAllowAddRemove(matrixQuestion, ratingQuestion);
|
|
24444
26134
|
obj.onPropertyChanged.add(function (sender, options) {
|
|
24445
26135
|
if (options.name == "rateCount" || options.name == "rateDisplayMode") {
|
|
24446
|
-
_this.updateAllowAddRemove(matrixQuestion,
|
|
26136
|
+
_this.updateAllowAddRemove(matrixQuestion, ratingQuestion);
|
|
24447
26137
|
}
|
|
24448
26138
|
});
|
|
24449
26139
|
};
|
|
@@ -24658,13 +26348,12 @@ var PropertyGridEditorMatrixMultipleTypes = /** @class */ (function (_super) {
|
|
|
24658
26348
|
}
|
|
24659
26349
|
};
|
|
24660
26350
|
PropertyGridEditorMatrixMultipleTypes.prototype.onMatrixCellValueChanged = function (obj, options) {
|
|
24661
|
-
|
|
26351
|
+
_super.prototype.onMatrixCellValueChanged.call(this, obj, options);
|
|
26352
|
+
if (options.columnName !== this.getObjTypeName())
|
|
24662
26353
|
return;
|
|
24663
|
-
}
|
|
24664
26354
|
var index = options.question.visibleRows.indexOf(options.row);
|
|
24665
|
-
if (index < 0)
|
|
26355
|
+
if (index < 0)
|
|
24666
26356
|
return;
|
|
24667
|
-
}
|
|
24668
26357
|
var isDetailPanelShowing = options.row.isDetailPanelShowing;
|
|
24669
26358
|
var objJSON = options.row.editingObj.toJSON();
|
|
24670
26359
|
delete objJSON.type;
|
|
@@ -25596,6 +27285,7 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
|
|
|
25596
27285
|
{ name: "maxLength", tab: "validation" },
|
|
25597
27286
|
{ name: "textUpdateMode", tab: "data" },
|
|
25598
27287
|
{ name: "autoGrow", tab: "layout" },
|
|
27288
|
+
{ name: "allowResize", tab: "layout" },
|
|
25599
27289
|
]
|
|
25600
27290
|
},
|
|
25601
27291
|
file: {
|
|
@@ -26110,6 +27800,7 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
|
|
|
26110
27800
|
{ name: "maxTextLength", tab: "question" },
|
|
26111
27801
|
{ name: "maxOthersLength", tab: "question" },
|
|
26112
27802
|
{ name: "autoGrowComment", tab: "question" },
|
|
27803
|
+
{ name: "allowResizeComment", tab: "question" },
|
|
26113
27804
|
{ name: "showPageTitles", tab: "pages" },
|
|
26114
27805
|
{ name: "showPageNumbers", tab: "pages" },
|
|
26115
27806
|
{ name: "calculatedValues", tab: "logic" },
|
|
@@ -26856,6 +28547,629 @@ var SelectionHistory = /** @class */ (function (_super) {
|
|
|
26856
28547
|
|
|
26857
28548
|
|
|
26858
28549
|
|
|
28550
|
+
/***/ }),
|
|
28551
|
+
|
|
28552
|
+
/***/ "./src/survey-elements.ts":
|
|
28553
|
+
/*!********************************!*\
|
|
28554
|
+
!*** ./src/survey-elements.ts ***!
|
|
28555
|
+
\********************************/
|
|
28556
|
+
/*! exports provided: calculateIsEdge, calculateIsSide, calculateDragOverLocation, DragDropSurveyElements */
|
|
28557
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
28558
|
+
|
|
28559
|
+
"use strict";
|
|
28560
|
+
__webpack_require__.r(__webpack_exports__);
|
|
28561
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateIsEdge", function() { return calculateIsEdge; });
|
|
28562
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateIsSide", function() { return calculateIsSide; });
|
|
28563
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "calculateDragOverLocation", function() { return calculateDragOverLocation; });
|
|
28564
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "DragDropSurveyElements", function() { return DragDropSurveyElements; });
|
|
28565
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
28566
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
28567
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
28568
|
+
|
|
28569
|
+
|
|
28570
|
+
function calculateIsEdge(dropTargetNode, clientY) {
|
|
28571
|
+
var rect = dropTargetNode.getBoundingClientRect();
|
|
28572
|
+
return clientY - rect.top <= DragDropSurveyElements.edgeHeight || rect.bottom - clientY <= DragDropSurveyElements.edgeHeight;
|
|
28573
|
+
}
|
|
28574
|
+
function calculateIsSide(dropTargetNode, clientX) {
|
|
28575
|
+
var rect = dropTargetNode.getBoundingClientRect();
|
|
28576
|
+
return clientX - rect.left <= DragDropSurveyElements.edgeHeight || rect.right - clientX <= DragDropSurveyElements.edgeHeight;
|
|
28577
|
+
}
|
|
28578
|
+
function calculateDragOverLocation(clientX, clientY, dropTargetNode) {
|
|
28579
|
+
var rect = dropTargetNode.getBoundingClientRect();
|
|
28580
|
+
var tg = rect.height / rect.width;
|
|
28581
|
+
var dx = clientX - rect.x;
|
|
28582
|
+
var dy = clientY - rect.y;
|
|
28583
|
+
if (dy >= tg * dx) {
|
|
28584
|
+
if (dy >= -tg * dx + rect.height) {
|
|
28585
|
+
return survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Bottom;
|
|
28586
|
+
}
|
|
28587
|
+
else {
|
|
28588
|
+
return survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Left;
|
|
28589
|
+
}
|
|
28590
|
+
}
|
|
28591
|
+
else {
|
|
28592
|
+
if (dy >= -tg * dx + rect.height) {
|
|
28593
|
+
return survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Right;
|
|
28594
|
+
}
|
|
28595
|
+
else {
|
|
28596
|
+
return survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Top;
|
|
28597
|
+
}
|
|
28598
|
+
}
|
|
28599
|
+
}
|
|
28600
|
+
var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
28601
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(DragDropSurveyElements, _super);
|
|
28602
|
+
function DragDropSurveyElements() {
|
|
28603
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
28604
|
+
_this.isEdge = false;
|
|
28605
|
+
_this.isSide = false;
|
|
28606
|
+
_this.prevIsEdge = null;
|
|
28607
|
+
// protected ghostSurveyElement: IElement = null;
|
|
28608
|
+
_this.dragOverIndicatorElement = null;
|
|
28609
|
+
_this.isDraggedElementSelected = false;
|
|
28610
|
+
_this.doBanDropHere = function () {
|
|
28611
|
+
_this.removeDragOverMarker(_this.dragOverIndicatorElement);
|
|
28612
|
+
_this.removeDragOverMarker(_this.dropTarget);
|
|
28613
|
+
};
|
|
28614
|
+
_this.doDrop = function () {
|
|
28615
|
+
if (!_this.dropTarget)
|
|
28616
|
+
return;
|
|
28617
|
+
var page = _this.parentElement;
|
|
28618
|
+
var dragged = _this.draggedElement;
|
|
28619
|
+
var src = _this.draggedElement;
|
|
28620
|
+
var dest = _this.dropTarget;
|
|
28621
|
+
var row = page.dragDropFindRow(dest);
|
|
28622
|
+
var targetIndex = _this.getElementIndexInPanel(dest, row);
|
|
28623
|
+
if (_this.dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Right || _this.dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Bottom) {
|
|
28624
|
+
targetIndex++;
|
|
28625
|
+
}
|
|
28626
|
+
var elementsToSetSWNL = [];
|
|
28627
|
+
var elementsToResetSWNL = [];
|
|
28628
|
+
var srcRow = src && src.parent && src.parent.dragDropFindRow(src);
|
|
28629
|
+
if (srcRow && srcRow.elements.length > 1) {
|
|
28630
|
+
elementsToSetSWNL.push(src);
|
|
28631
|
+
if (srcRow.elements[0] === src) {
|
|
28632
|
+
elementsToSetSWNL.push(srcRow.elements[1]);
|
|
28633
|
+
}
|
|
28634
|
+
}
|
|
28635
|
+
if (!!row) {
|
|
28636
|
+
var dragOverIndicator = _this.dragOverIndicatorElement || _this.dropTarget;
|
|
28637
|
+
var dragOverLocation = dragOverIndicator.dragTypeOverMe;
|
|
28638
|
+
if (dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Left) {
|
|
28639
|
+
elementsToResetSWNL.push(dest);
|
|
28640
|
+
if (row.elements.indexOf(dest) === 0 || row.elements.indexOf(src) === 0 && row.elements.indexOf(dest) === 1) {
|
|
28641
|
+
elementsToSetSWNL.push(dragged);
|
|
28642
|
+
}
|
|
28643
|
+
else {
|
|
28644
|
+
elementsToResetSWNL.push(dragged);
|
|
28645
|
+
}
|
|
28646
|
+
}
|
|
28647
|
+
else if (dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Right) {
|
|
28648
|
+
elementsToResetSWNL.push(dragged);
|
|
28649
|
+
if (row.elements.indexOf(dest) === 0) {
|
|
28650
|
+
elementsToSetSWNL.push(dragged);
|
|
28651
|
+
}
|
|
28652
|
+
}
|
|
28653
|
+
else if (row.elements.length > 1) {
|
|
28654
|
+
elementsToSetSWNL.push(dragged);
|
|
28655
|
+
if (dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Top) {
|
|
28656
|
+
targetIndex = _this.getElementIndexInPanel(row.elements[0], row);
|
|
28657
|
+
}
|
|
28658
|
+
else if (dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Bottom) {
|
|
28659
|
+
targetIndex = _this.getElementIndexInPanel(row.elements[row.elements.length - 1], row) + 1;
|
|
28660
|
+
}
|
|
28661
|
+
}
|
|
28662
|
+
else {
|
|
28663
|
+
elementsToSetSWNL.push(dragged);
|
|
28664
|
+
}
|
|
28665
|
+
}
|
|
28666
|
+
if (!!src && !!src.parent) {
|
|
28667
|
+
page.survey.startMovingQuestion();
|
|
28668
|
+
var isSamePanel = !!row && row.panel == src.parent;
|
|
28669
|
+
if (isSamePanel) {
|
|
28670
|
+
_this.moveElementInPanel(row.panel, src, dragged, targetIndex);
|
|
28671
|
+
row.panel.updateRows();
|
|
28672
|
+
targetIndex = -1;
|
|
28673
|
+
}
|
|
28674
|
+
else {
|
|
28675
|
+
src.parent.removeElement(src);
|
|
28676
|
+
}
|
|
28677
|
+
}
|
|
28678
|
+
if (!_this.isEdge && !_this.isSide && (dest.isPanel || dest.isPage)) {
|
|
28679
|
+
dest.addElement(dragged);
|
|
28680
|
+
dest.updateRows();
|
|
28681
|
+
}
|
|
28682
|
+
else if (!!row && targetIndex > -1) {
|
|
28683
|
+
row.panel.addElement(dragged, targetIndex);
|
|
28684
|
+
row.panel.updateRows();
|
|
28685
|
+
}
|
|
28686
|
+
page.survey.stopMovingQuestion();
|
|
28687
|
+
elementsToSetSWNL.map(function (e) { e.startWithNewLine = true; });
|
|
28688
|
+
elementsToResetSWNL.map(function (e) { e.startWithNewLine = false; });
|
|
28689
|
+
return dragged;
|
|
28690
|
+
};
|
|
28691
|
+
return _this;
|
|
28692
|
+
// protected removeGhostElementFromSurvey(): void {
|
|
28693
|
+
// const dropTarget = this.prevDropTarget || this.dropTarget;
|
|
28694
|
+
// if (!!dropTarget) {
|
|
28695
|
+
// dropTarget.dragTypeOverMe = null;
|
|
28696
|
+
// }
|
|
28697
|
+
// if (!!this.parentElement) this.parentElement.dragDropFinish(true);
|
|
28698
|
+
// }
|
|
28699
|
+
// private insertRealElementIntoSurvey() {
|
|
28700
|
+
// this.removeGhostElementFromSurvey();
|
|
28701
|
+
// const isTargetRowMultiple = this.calcTargetRowMultiple();
|
|
28702
|
+
// // ghost new page
|
|
28703
|
+
// if (this.dropTarget.isPage && (<any>this.dropTarget)["_isGhost"]) {
|
|
28704
|
+
// (<any>this.dropTarget)["_addGhostPageViewModel"]();
|
|
28705
|
+
// }
|
|
28706
|
+
// // EO ghost new page
|
|
28707
|
+
// //TODO need for dragDrop helper in library
|
|
28708
|
+
// const json = new JsonObject().toJsonObject(this.draggedElement);
|
|
28709
|
+
// json["type"] = this.draggedElement.getType();
|
|
28710
|
+
// const fakeTargetElement = this.createFakeTargetElement(
|
|
28711
|
+
// this.draggedElement.name,
|
|
28712
|
+
// json
|
|
28713
|
+
// );
|
|
28714
|
+
// //
|
|
28715
|
+
// this.parentElement.dragDropStart(
|
|
28716
|
+
// this.draggedElement,
|
|
28717
|
+
// fakeTargetElement,
|
|
28718
|
+
// DragDropSurveyElements.nestedPanelDepth
|
|
28719
|
+
// );
|
|
28720
|
+
// this.parentElement.dragDropMoveTo(
|
|
28721
|
+
// this.dropTarget,
|
|
28722
|
+
// isTargetRowMultiple ? this.isRight : this.isBottom,
|
|
28723
|
+
// this.isEdge
|
|
28724
|
+
// );
|
|
28725
|
+
// const newElement = this.parentElement.dragDropFinish();
|
|
28726
|
+
// return newElement;
|
|
28727
|
+
// }
|
|
28728
|
+
// private createFakeTargetElement(elementName: string, json: any): any {
|
|
28729
|
+
// if (!elementName || !json) return null;
|
|
28730
|
+
// var targetElement = null;
|
|
28731
|
+
// targetElement = Serializer.createClass(json["type"]);
|
|
28732
|
+
// new JsonObject().toObject(json, targetElement);
|
|
28733
|
+
// targetElement.name = elementName;
|
|
28734
|
+
// if (targetElement["setSurveyImpl"]) {
|
|
28735
|
+
// targetElement["setSurveyImpl"](this.survey);
|
|
28736
|
+
// } else {
|
|
28737
|
+
// targetElement["setData"](this.survey);
|
|
28738
|
+
// }
|
|
28739
|
+
// targetElement.renderWidth = "100%";
|
|
28740
|
+
// return targetElement;
|
|
28741
|
+
// }
|
|
28742
|
+
// private createGhostSurveyElement(isMultipleRowDrag = false): any {
|
|
28743
|
+
// let className = "sv-drag-drop-ghost";
|
|
28744
|
+
// let minWidth = "300px";
|
|
28745
|
+
// if (isMultipleRowDrag) {
|
|
28746
|
+
// minWidth = "4px";
|
|
28747
|
+
// className += " sv-drag-drop-ghost--vertical";
|
|
28748
|
+
// }
|
|
28749
|
+
// const json: any = {
|
|
28750
|
+
// type: "html",
|
|
28751
|
+
// minWidth,
|
|
28752
|
+
// name: DragDropSurveyElements.ghostSurveyElementName,
|
|
28753
|
+
// html: `<div class="${className}"></div>`,
|
|
28754
|
+
// };
|
|
28755
|
+
// const element = <any>this.createElementFromJson(json);
|
|
28756
|
+
// element.startWithNewLine = !isMultipleRowDrag;
|
|
28757
|
+
// if (isMultipleRowDrag) {
|
|
28758
|
+
// element.maxWidth = "4px";
|
|
28759
|
+
// element.renderWidth = "0px";
|
|
28760
|
+
// element.paddingRight = "0px";
|
|
28761
|
+
// element.paddingLeft = "0px";
|
|
28762
|
+
// }
|
|
28763
|
+
// return element;
|
|
28764
|
+
// }
|
|
28765
|
+
}
|
|
28766
|
+
Object.defineProperty(DragDropSurveyElements.prototype, "draggedElementType", {
|
|
28767
|
+
get: function () {
|
|
28768
|
+
return "survey-element";
|
|
28769
|
+
},
|
|
28770
|
+
enumerable: false,
|
|
28771
|
+
configurable: true
|
|
28772
|
+
});
|
|
28773
|
+
// private isRight: boolean;
|
|
28774
|
+
// protected prevIsRight: boolean;
|
|
28775
|
+
DragDropSurveyElements.prototype.startDragToolboxItem = function (event, draggedElementJson, toolboxItemTitle) {
|
|
28776
|
+
var preventSaveTargetNode = true;
|
|
28777
|
+
var draggedElement = this.createElementFromJson(draggedElementJson);
|
|
28778
|
+
draggedElement.toolboxItemTitle = toolboxItemTitle;
|
|
28779
|
+
this.startDrag(event, draggedElement, null, null, preventSaveTargetNode);
|
|
28780
|
+
};
|
|
28781
|
+
DragDropSurveyElements.prototype.startDragSurveyElement = function (event, draggedElement, isElementSelected) {
|
|
28782
|
+
this.isDraggedElementSelected = isElementSelected;
|
|
28783
|
+
this.startDrag(event, draggedElement);
|
|
28784
|
+
};
|
|
28785
|
+
DragDropSurveyElements.prototype.getShortcutText = function (draggedElement) {
|
|
28786
|
+
return draggedElement.toolboxItemTitle || _super.prototype.getShortcutText.call(this, draggedElement);
|
|
28787
|
+
};
|
|
28788
|
+
DragDropSurveyElements.prototype.createDraggedElementShortcut = function (text, draggedElementNode, event) {
|
|
28789
|
+
var draggedElementShortcut = document.createElement("div");
|
|
28790
|
+
var textSpan = document.createElement("span");
|
|
28791
|
+
textSpan.className = "svc-dragged-element-shortcut__text";
|
|
28792
|
+
textSpan.innerText = text;
|
|
28793
|
+
draggedElementShortcut.appendChild(this.createDraggedElementIcon());
|
|
28794
|
+
draggedElementShortcut.appendChild(textSpan);
|
|
28795
|
+
draggedElementShortcut.className = this.getDraggedElementClass();
|
|
28796
|
+
return draggedElementShortcut;
|
|
28797
|
+
};
|
|
28798
|
+
DragDropSurveyElements.prototype.createDraggedElementIcon = function () {
|
|
28799
|
+
var span = document.createElement("span");
|
|
28800
|
+
var type = this.draggedElement.getType();
|
|
28801
|
+
var svgString = "<svg class=\"sv-svg-icon\" role=\"img\" style=\"width: 24px; height: 24px;\"><use xlink:href=\"#icon-" + type + "\"></use></svg>";
|
|
28802
|
+
span.className = "svc-dragged-element-shortcut__icon";
|
|
28803
|
+
span.innerHTML = svgString;
|
|
28804
|
+
return span;
|
|
28805
|
+
};
|
|
28806
|
+
DragDropSurveyElements.prototype.getDraggedElementClass = function () {
|
|
28807
|
+
var result = "svc-dragged-element-shortcut";
|
|
28808
|
+
if (this.isDraggedElementSelected)
|
|
28809
|
+
result += " svc-dragged-element-shortcut--selected";
|
|
28810
|
+
return result;
|
|
28811
|
+
};
|
|
28812
|
+
DragDropSurveyElements.prototype.createElementFromJson = function (json) {
|
|
28813
|
+
var element = this.createNewElement(json);
|
|
28814
|
+
if (element["setSurveyImpl"]) {
|
|
28815
|
+
element["setSurveyImpl"](this.survey);
|
|
28816
|
+
}
|
|
28817
|
+
else {
|
|
28818
|
+
element["setData"](this.survey);
|
|
28819
|
+
}
|
|
28820
|
+
element.renderWidth = "100%";
|
|
28821
|
+
return element;
|
|
28822
|
+
};
|
|
28823
|
+
DragDropSurveyElements.prototype.createNewElement = function (json) {
|
|
28824
|
+
var newElement = survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].createClass(json["type"]);
|
|
28825
|
+
new survey_core__WEBPACK_IMPORTED_MODULE_1__["JsonObject"]().toObject(json, newElement);
|
|
28826
|
+
return newElement;
|
|
28827
|
+
};
|
|
28828
|
+
DragDropSurveyElements.prototype.findDropTargetNodeByDragOverNode = function (dragOverNode) {
|
|
28829
|
+
var ghostRow = dragOverNode.closest(".svc-row--ghost");
|
|
28830
|
+
if (!!ghostRow) {
|
|
28831
|
+
var ghostDataAttrSelector = "[data-sv-drop-target-survey-element='sv-drag-drop-ghost-survey-element-name']";
|
|
28832
|
+
var ghostNode = dragOverNode.closest(ghostDataAttrSelector) || dragOverNode.querySelector(ghostDataAttrSelector);
|
|
28833
|
+
if (!!ghostNode) {
|
|
28834
|
+
return ghostNode;
|
|
28835
|
+
}
|
|
28836
|
+
}
|
|
28837
|
+
var dropTargetNode = dragOverNode.closest(this.dropTargetDataAttributeName);
|
|
28838
|
+
return dropTargetNode;
|
|
28839
|
+
};
|
|
28840
|
+
DragDropSurveyElements.prototype.getDropTargetByDataAttributeValue = function (dataAttributeValue, dropTargetNode, event) {
|
|
28841
|
+
this.removeDragOverMarker(this.dragOverIndicatorElement);
|
|
28842
|
+
this.dragOverIndicatorElement = null;
|
|
28843
|
+
if (!dataAttributeValue) {
|
|
28844
|
+
// panel dynamic
|
|
28845
|
+
var nearestDropTargetElement = dropTargetNode.parentElement.closest(this.dropTargetDataAttributeName);
|
|
28846
|
+
dataAttributeValue = this.getDataAttributeValueByNode(nearestDropTargetElement);
|
|
28847
|
+
}
|
|
28848
|
+
if (!dataAttributeValue) {
|
|
28849
|
+
throw new Error("Can't find drop target survey element name");
|
|
28850
|
+
}
|
|
28851
|
+
if (dataAttributeValue === DragDropSurveyElements.ghostSurveyElementName) {
|
|
28852
|
+
return this.prevDropTarget;
|
|
28853
|
+
}
|
|
28854
|
+
// drop to new page
|
|
28855
|
+
if (dataAttributeValue === "newGhostPage") {
|
|
28856
|
+
return DragDropSurveyElements.newGhostPage;
|
|
28857
|
+
}
|
|
28858
|
+
// drop to page
|
|
28859
|
+
var page = this.survey.getPageByName(dataAttributeValue);
|
|
28860
|
+
if (page) {
|
|
28861
|
+
if (page.elements.length !== 0) {
|
|
28862
|
+
// TODO we can't drop on not empty page directly for now
|
|
28863
|
+
return null;
|
|
28864
|
+
}
|
|
28865
|
+
return page;
|
|
28866
|
+
}
|
|
28867
|
+
// drop to question or panel
|
|
28868
|
+
var dropTarget;
|
|
28869
|
+
var dragOverElement;
|
|
28870
|
+
this.survey.pages.forEach(function (page) {
|
|
28871
|
+
var question = page.getElementByName(dataAttributeValue);
|
|
28872
|
+
if (question) {
|
|
28873
|
+
dropTarget = question;
|
|
28874
|
+
dragOverElement = question;
|
|
28875
|
+
}
|
|
28876
|
+
});
|
|
28877
|
+
// drop to paneldynamic
|
|
28878
|
+
if (dropTarget.getType() === "paneldynamic" && !this.isEdge && !this.isSide) {
|
|
28879
|
+
dropTarget = dropTarget.template;
|
|
28880
|
+
}
|
|
28881
|
+
// drop to matrix detail panel
|
|
28882
|
+
if ((dropTarget.getType() === "matrixdropdown" || dropTarget.getType() === "matrixdynamic") && dropTarget.detailPanelMode !== "none" && !this.isEdge && !this.isSide) {
|
|
28883
|
+
dropTarget = dropTarget.detailPanel;
|
|
28884
|
+
}
|
|
28885
|
+
// drop to panel
|
|
28886
|
+
else if (dropTarget.isPanel) {
|
|
28887
|
+
dropTarget = this.getPanelDropTarget(dropTargetNode, dropTarget, event);
|
|
28888
|
+
}
|
|
28889
|
+
// drop to question
|
|
28890
|
+
//question inside paneldymanic
|
|
28891
|
+
if (!dropTarget.page) {
|
|
28892
|
+
var nearestDropTargetPageElement = dropTargetNode.parentElement.closest("[data-sv-drop-target-page]");
|
|
28893
|
+
dataAttributeValue = nearestDropTargetPageElement.dataset.svDropTargetPage;
|
|
28894
|
+
var page_1 = this.survey.getPageByName(dataAttributeValue);
|
|
28895
|
+
dropTarget.__page = page_1;
|
|
28896
|
+
}
|
|
28897
|
+
this.dragOverIndicatorElement = dragOverElement;
|
|
28898
|
+
return dropTarget;
|
|
28899
|
+
// EO drop to question or panel
|
|
28900
|
+
};
|
|
28901
|
+
DragDropSurveyElements.prototype.isDropTargetValid = function (dropTarget, dropTargetNode) {
|
|
28902
|
+
if (!dropTarget)
|
|
28903
|
+
return false;
|
|
28904
|
+
if (dropTarget === this.draggedElement)
|
|
28905
|
+
return false;
|
|
28906
|
+
if (this.draggedElement.getType() === "paneldynamic" && dropTarget === this.draggedElement.template) {
|
|
28907
|
+
return false;
|
|
28908
|
+
}
|
|
28909
|
+
if (DragDropSurveyElements.restrictDragQuestionBetweenPages &&
|
|
28910
|
+
this.shouldRestricDragQuestionBetweenPages(dropTarget)) {
|
|
28911
|
+
return false;
|
|
28912
|
+
}
|
|
28913
|
+
return true;
|
|
28914
|
+
};
|
|
28915
|
+
// protected calculateIsBottom(clientY: number, dropTargetNode?: HTMLElement): boolean {
|
|
28916
|
+
// return false;
|
|
28917
|
+
// }
|
|
28918
|
+
// protected calculateIsBottom(
|
|
28919
|
+
// clientY: number,
|
|
28920
|
+
// dropTargetNode?: HTMLElement
|
|
28921
|
+
// ): boolean {
|
|
28922
|
+
// // we shouldn't reculc isBottom if drag over ghost survey element
|
|
28923
|
+
// if (this.getDataAttributeValueByNode(dropTargetNode) === DragDropSurveyElements.ghostSurveyElementName) {
|
|
28924
|
+
// return this.isBottom;
|
|
28925
|
+
// }
|
|
28926
|
+
// const middle = this.calculateVerticalMiddleOfHTMLElement(dropTargetNode);
|
|
28927
|
+
// return clientY >= middle;
|
|
28928
|
+
// }
|
|
28929
|
+
// protected calculateIsRight(
|
|
28930
|
+
// clientX: number,
|
|
28931
|
+
// dropTargetNode?: HTMLElement
|
|
28932
|
+
// ): boolean {
|
|
28933
|
+
// // we shouldn't reculc isBottom if drag over ghost survey element
|
|
28934
|
+
// if (this.getDataAttributeValueByNode(dropTargetNode) === DragDropSurveyElements.ghostSurveyElementName) {
|
|
28935
|
+
// return this.isRight;
|
|
28936
|
+
// }
|
|
28937
|
+
// const middle = this.calculateHorizontalMiddleOfHTMLElement(dropTargetNode);
|
|
28938
|
+
// return clientX >= middle;
|
|
28939
|
+
// }
|
|
28940
|
+
// protected isDropTargetDoesntChanged(newIsBottom: boolean): boolean {
|
|
28941
|
+
// // if (this.dropTarget === this.ghostSurveyElement) return true;
|
|
28942
|
+
// return (
|
|
28943
|
+
// this.dropTarget === this.prevDropTarget && newIsBottom === this.isBottom
|
|
28944
|
+
// && this.isEdge === this.prevIsEdge && this.isRight === this.prevIsRight
|
|
28945
|
+
// );
|
|
28946
|
+
// }
|
|
28947
|
+
DragDropSurveyElements.prototype.shouldRestricDragQuestionBetweenPages = function (dropTarget) {
|
|
28948
|
+
var oldPage = this.draggedElement["page"];
|
|
28949
|
+
var newPage = dropTarget.isPage ? dropTarget : dropTarget["page"];
|
|
28950
|
+
// if oldPage === null then it is drop from the toolbox
|
|
28951
|
+
return oldPage && oldPage !== newPage;
|
|
28952
|
+
};
|
|
28953
|
+
DragDropSurveyElements.prototype.getPanelDropTarget = function (HTMLElement, dropTarget, event) {
|
|
28954
|
+
var isEdge = this.isEdge;
|
|
28955
|
+
if (!isEdge && dropTarget.questions.length !== 0) {
|
|
28956
|
+
HTMLElement = this.findDeepestDropTargetChild(HTMLElement);
|
|
28957
|
+
dropTarget = this.getDropTargetByNode(HTMLElement, event);
|
|
28958
|
+
}
|
|
28959
|
+
return dropTarget;
|
|
28960
|
+
};
|
|
28961
|
+
DragDropSurveyElements.prototype.findDeepestDropTargetChild = function (parent) {
|
|
28962
|
+
var selector = this.dropTargetDataAttributeName;
|
|
28963
|
+
var result = parent;
|
|
28964
|
+
while (!!parent) {
|
|
28965
|
+
result = parent;
|
|
28966
|
+
parent = parent.querySelector(selector);
|
|
28967
|
+
}
|
|
28968
|
+
return result;
|
|
28969
|
+
};
|
|
28970
|
+
DragDropSurveyElements.prototype.dragOverCore = function (dropTarget, dragOverLocation, isEdge, isSide) {
|
|
28971
|
+
if (isEdge === void 0) { isEdge = false; }
|
|
28972
|
+
if (isSide === void 0) { isSide = false; }
|
|
28973
|
+
this.removeDragOverMarker(this.dragOverIndicatorElement);
|
|
28974
|
+
this.removeDragOverMarker(this.dropTarget);
|
|
28975
|
+
if (dropTarget === this.draggedElement) {
|
|
28976
|
+
this.allowDropHere = false;
|
|
28977
|
+
return;
|
|
28978
|
+
}
|
|
28979
|
+
this.dropTarget = dropTarget;
|
|
28980
|
+
this.dragOverLocation = dragOverLocation;
|
|
28981
|
+
this.isEdge = isEdge;
|
|
28982
|
+
this.isSide = isSide;
|
|
28983
|
+
this.parentElement = this.dropTarget.isPage
|
|
28984
|
+
? this.dropTarget
|
|
28985
|
+
: (this.dropTarget.page || this.dropTarget.__page);
|
|
28986
|
+
var dragOverIndicator = this.dragOverIndicatorElement || this.dropTarget;
|
|
28987
|
+
if (!this.isEdge && !this.isSide && this.isDragOverInsideEmptyPanel()) {
|
|
28988
|
+
dragOverIndicator.dragTypeOverMe = survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].InsideEmptyPanel;
|
|
28989
|
+
}
|
|
28990
|
+
else {
|
|
28991
|
+
var row = this.parentElement.dragDropFindRow(dragOverIndicator);
|
|
28992
|
+
if (!!row && row.elements.length > 1 && (this.dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Top || this.dragOverLocation === survey_core__WEBPACK_IMPORTED_MODULE_1__["DragTypeOverMeEnum"].Bottom)) {
|
|
28993
|
+
row.dragTypeOverMe = this.dragOverLocation;
|
|
28994
|
+
this.dragOverIndicatorElement = row;
|
|
28995
|
+
}
|
|
28996
|
+
else {
|
|
28997
|
+
dragOverIndicator.dragTypeOverMe = this.dragOverLocation;
|
|
28998
|
+
}
|
|
28999
|
+
}
|
|
29000
|
+
};
|
|
29001
|
+
DragDropSurveyElements.prototype.dragOver = function (event) {
|
|
29002
|
+
var dropTargetNode = this.findDropTargetNodeFromPoint(event.clientX, event.clientY);
|
|
29003
|
+
if (!dropTargetNode) {
|
|
29004
|
+
this.banDropHere();
|
|
29005
|
+
return;
|
|
29006
|
+
}
|
|
29007
|
+
this.isEdge = calculateIsEdge(dropTargetNode, event.clientY);
|
|
29008
|
+
this.isSide = calculateIsSide(dropTargetNode, event.clientX);
|
|
29009
|
+
var dropTarget = this.getDropTargetByNode(dropTargetNode, event);
|
|
29010
|
+
var isDropTargetValid = this.isDropTargetValid(dropTarget, dropTargetNode);
|
|
29011
|
+
if (!isDropTargetValid) {
|
|
29012
|
+
this.banDropHere();
|
|
29013
|
+
return;
|
|
29014
|
+
}
|
|
29015
|
+
this.allowDropHere = true;
|
|
29016
|
+
var dragOverLocation = calculateDragOverLocation(event.clientX, event.clientY, dropTargetNode);
|
|
29017
|
+
this.dragOverCore(dropTarget, dragOverLocation, this.isEdge, this.isSide);
|
|
29018
|
+
};
|
|
29019
|
+
// protected doDragOver(dropTargetNode?: HTMLElement, event?: PointerEvent): void {
|
|
29020
|
+
// this.isRight = this.calculateIsRight(event.clientX, dropTargetNode);
|
|
29021
|
+
// }
|
|
29022
|
+
// protected afterDragOver(dropTargetNode: HTMLElement, event: PointerEvent): void {
|
|
29023
|
+
// this.prevIsEdge = this.isEdge;
|
|
29024
|
+
// this.prevIsRight = this.isRight;
|
|
29025
|
+
// this.insertGhostElementIntoSurvey();
|
|
29026
|
+
// }
|
|
29027
|
+
DragDropSurveyElements.prototype.onStartDrag = function () {
|
|
29028
|
+
// this.ghostSurveyElement = this.createGhostSurveyElement();
|
|
29029
|
+
this.draggedElement.isDragMe = true;
|
|
29030
|
+
};
|
|
29031
|
+
// protected doBanDropHere = (): void => {
|
|
29032
|
+
// this.removeGhostElementFromSurvey();
|
|
29033
|
+
// this.isEdge = null;
|
|
29034
|
+
// };
|
|
29035
|
+
DragDropSurveyElements.prototype.getElementIndexInPanel = function (target, row) {
|
|
29036
|
+
if (!row)
|
|
29037
|
+
return -1;
|
|
29038
|
+
var index = row.elements.indexOf(target);
|
|
29039
|
+
if (row.index == 0)
|
|
29040
|
+
return index;
|
|
29041
|
+
var prevRow = row.panel.rows[row.index - 1];
|
|
29042
|
+
var prevElement = prevRow.elements[prevRow.elements.length - 1];
|
|
29043
|
+
return index + row.panel.elements.indexOf(prevElement) + 1;
|
|
29044
|
+
};
|
|
29045
|
+
DragDropSurveyElements.prototype.moveElementInPanel = function (panel, src, target, targetIndex) {
|
|
29046
|
+
var srcIndex = src.parent.elements.indexOf(src);
|
|
29047
|
+
if (targetIndex > srcIndex) {
|
|
29048
|
+
targetIndex--;
|
|
29049
|
+
}
|
|
29050
|
+
if (src === target && srcIndex === targetIndex) {
|
|
29051
|
+
return;
|
|
29052
|
+
}
|
|
29053
|
+
panel.removeElement(src);
|
|
29054
|
+
panel.addElement(target, targetIndex);
|
|
29055
|
+
};
|
|
29056
|
+
// protected doDrop = (): any => {
|
|
29057
|
+
// if (this.dropTarget) {
|
|
29058
|
+
// (<HTMLElement>document.activeElement).blur();
|
|
29059
|
+
// (<HTMLElement>settings.environment.root.activeElement).blur();
|
|
29060
|
+
// return this.insertRealElementIntoSurvey();
|
|
29061
|
+
// }
|
|
29062
|
+
// return null;
|
|
29063
|
+
// };
|
|
29064
|
+
DragDropSurveyElements.prototype.removeDragOverMarker = function (dropTarget) {
|
|
29065
|
+
var _a;
|
|
29066
|
+
if (!!dropTarget) {
|
|
29067
|
+
dropTarget.dragTypeOverMe = null;
|
|
29068
|
+
}
|
|
29069
|
+
var row = (_a = this.parentElement) === null || _a === void 0 ? void 0 : _a.dragDropFindRow(dropTarget);
|
|
29070
|
+
if (!!row) {
|
|
29071
|
+
row.dragTypeOverMe = null;
|
|
29072
|
+
}
|
|
29073
|
+
};
|
|
29074
|
+
DragDropSurveyElements.prototype.clear = function () {
|
|
29075
|
+
this.isEdge = null;
|
|
29076
|
+
this.isSide = null;
|
|
29077
|
+
this.removeDragOverMarker(this.prevDropTarget);
|
|
29078
|
+
this.removeDragOverMarker(this.dropTarget);
|
|
29079
|
+
this.removeDragOverMarker(this.dragOverIndicatorElement);
|
|
29080
|
+
if (!!this.draggedElement) {
|
|
29081
|
+
this.draggedElement.isDragMe = false;
|
|
29082
|
+
}
|
|
29083
|
+
_super.prototype.clear.call(this);
|
|
29084
|
+
};
|
|
29085
|
+
// protected doClear = (): void => {
|
|
29086
|
+
// // this.removeGhostElementFromSurvey();
|
|
29087
|
+
// this.isEdge = null;
|
|
29088
|
+
// this.isSide = null;
|
|
29089
|
+
// // this.ghostSurveyElement = null;
|
|
29090
|
+
// this.removeDragOverMarker(this.prevDropTarget);
|
|
29091
|
+
// this.removeDragOverMarker(this.dropTarget);
|
|
29092
|
+
// this.removeDragOverMarker(this.dragOverIndicatorElement);
|
|
29093
|
+
// if (!!this.draggedElement) {
|
|
29094
|
+
// this.draggedElement.isDragMe = false;
|
|
29095
|
+
// }
|
|
29096
|
+
// // this.isRight = null;
|
|
29097
|
+
// };
|
|
29098
|
+
// protected insertGhostElementIntoSurvey(): boolean {
|
|
29099
|
+
// this.removeGhostElementFromSurvey();
|
|
29100
|
+
// let isTargetRowMultiple = this.calcTargetRowMultiple();
|
|
29101
|
+
// this.ghostSurveyElement = this.createGhostSurveyElement(isTargetRowMultiple);
|
|
29102
|
+
// this.ghostSurveyElement.name =
|
|
29103
|
+
// DragDropSurveyElements.ghostSurveyElementName; // TODO why do we need setup it manually see createGhostSurveyElement method
|
|
29104
|
+
// this.parentElement = this.dropTarget.isPage
|
|
29105
|
+
// ? this.dropTarget
|
|
29106
|
+
// : ((<any>this.dropTarget).page || (<any>this.dropTarget).__page);
|
|
29107
|
+
// if (this.isDragOverInsideEmptyPanel()) {
|
|
29108
|
+
// this.dropTarget.dragTypeOverMe = DragTypeOverMeEnum.InsideEmptyPanel;
|
|
29109
|
+
// return;
|
|
29110
|
+
// }
|
|
29111
|
+
// if (!this.isEdge && isTargetRowMultiple) {
|
|
29112
|
+
// this.dropTarget.dragTypeOverMe = this.isRight ?
|
|
29113
|
+
// DragTypeOverMeEnum.MultilineRight :
|
|
29114
|
+
// DragTypeOverMeEnum.MultilineLeft;
|
|
29115
|
+
// return;
|
|
29116
|
+
// }
|
|
29117
|
+
// this.parentElement.dragDropStart(
|
|
29118
|
+
// this.draggedElement,
|
|
29119
|
+
// this.ghostSurveyElement,
|
|
29120
|
+
// DragDropSurveyElements.nestedPanelDepth
|
|
29121
|
+
// );
|
|
29122
|
+
// const result = this.parentElement.dragDropMoveTo(
|
|
29123
|
+
// this.dropTarget,
|
|
29124
|
+
// isTargetRowMultiple ? this.isRight : this.isBottom,
|
|
29125
|
+
// this.isEdge
|
|
29126
|
+
// );
|
|
29127
|
+
// return result;
|
|
29128
|
+
// }
|
|
29129
|
+
// private calcTargetRowMultiple() {
|
|
29130
|
+
// const targetParent = this.getTargetParent(this.dropTarget);
|
|
29131
|
+
// let targetRow: any = this.getTargetRow(this.dropTarget);
|
|
29132
|
+
// const isTargetRowMultiple = targetRow && targetRow.elements.length > 1;
|
|
29133
|
+
// const isTemplatePanelInPanelDynamic = targetParent.isPanel && !targetParent.name;
|
|
29134
|
+
// if (this.isEdge && isTargetRowMultiple && !isTemplatePanelInPanelDynamic) {
|
|
29135
|
+
// targetParent.__page = this.dropTarget.page || this.dropTarget.__page;
|
|
29136
|
+
// this.dropTarget = targetParent;
|
|
29137
|
+
// return false;
|
|
29138
|
+
// }
|
|
29139
|
+
// return isTargetRowMultiple;
|
|
29140
|
+
// }
|
|
29141
|
+
DragDropSurveyElements.prototype.getTargetParent = function (dropTarget) {
|
|
29142
|
+
var targetParent = dropTarget.isPage || dropTarget.isPanel ? dropTarget : dropTarget.parent;
|
|
29143
|
+
if (dropTarget.getType() === "paneldynamic") {
|
|
29144
|
+
targetParent = dropTarget.templateValue;
|
|
29145
|
+
}
|
|
29146
|
+
return targetParent;
|
|
29147
|
+
};
|
|
29148
|
+
DragDropSurveyElements.prototype.getTargetRow = function (dropTarget) {
|
|
29149
|
+
var targetParent = this.getTargetParent(dropTarget);
|
|
29150
|
+
var targetRow;
|
|
29151
|
+
targetParent.rows.forEach(function (row) {
|
|
29152
|
+
if (row.elements.indexOf(dropTarget) !== -1) {
|
|
29153
|
+
targetRow = row;
|
|
29154
|
+
}
|
|
29155
|
+
});
|
|
29156
|
+
return targetRow;
|
|
29157
|
+
};
|
|
29158
|
+
DragDropSurveyElements.prototype.isDragOverInsideEmptyPanel = function () {
|
|
29159
|
+
var isEmptyPanel = this.dropTarget.isPanel && this.dropTarget.questions.length === 0;
|
|
29160
|
+
var isDragOverInside = !this.isEdge && !this.isSide;
|
|
29161
|
+
return isEmptyPanel && isDragOverInside;
|
|
29162
|
+
};
|
|
29163
|
+
DragDropSurveyElements.newGhostPage = null;
|
|
29164
|
+
DragDropSurveyElements.restrictDragQuestionBetweenPages = false;
|
|
29165
|
+
DragDropSurveyElements.edgeHeight = 30;
|
|
29166
|
+
DragDropSurveyElements.nestedPanelDepth = -1;
|
|
29167
|
+
DragDropSurveyElements.ghostSurveyElementName = "sv-drag-drop-ghost-survey-element-name"; // before renaming use globa search (we have also css selectors)
|
|
29168
|
+
return DragDropSurveyElements;
|
|
29169
|
+
}(survey_core__WEBPACK_IMPORTED_MODULE_1__["DragDropCore"]));
|
|
29170
|
+
|
|
29171
|
+
|
|
29172
|
+
|
|
26859
29173
|
/***/ }),
|
|
26860
29174
|
|
|
26861
29175
|
/***/ "./src/survey-helper.ts":
|
|
@@ -28259,6 +30573,17 @@ function updateMatrixRemoveAction(question, actions, row) {
|
|
|
28259
30573
|
}
|
|
28260
30574
|
|
|
28261
30575
|
|
|
30576
|
+
/***/ }),
|
|
30577
|
+
|
|
30578
|
+
/***/ "./src/utils/context-button.scss":
|
|
30579
|
+
/*!***************************************!*\
|
|
30580
|
+
!*** ./src/utils/context-button.scss ***!
|
|
30581
|
+
\***************************************/
|
|
30582
|
+
/*! no static exports found */
|
|
30583
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
30584
|
+
|
|
30585
|
+
// extracted by mini-css-extract-plugin
|
|
30586
|
+
|
|
28262
30587
|
/***/ }),
|
|
28263
30588
|
|
|
28264
30589
|
/***/ "./src/utils/design.scss":
|
|
@@ -28433,7 +30758,7 @@ var ResizeManager = /** @class */ (function () {
|
|
|
28433
30758
|
/*!****************************!*\
|
|
28434
30759
|
!*** ./src/utils/utils.ts ***!
|
|
28435
30760
|
\****************************/
|
|
28436
|
-
/*! exports provided: getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd */
|
|
30761
|
+
/*! exports provided: getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd, imageMimeTypes, getAcceptedTypesByContentMode, getQuestionFromObj, ingectAlpha, convertRgbaToString, parseRgbaFromString, HSBToRGB, RGBToHSB, assign, ColorCalculator */
|
|
28437
30762
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
28438
30763
|
|
|
28439
30764
|
"use strict";
|
|
@@ -28456,6 +30781,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28456
30781
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapTextByCurlyBraces", function() { return wrapTextByCurlyBraces; });
|
|
28457
30782
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "capitalize", function() { return capitalize; });
|
|
28458
30783
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "notShortCircuitAnd", function() { return notShortCircuitAnd; });
|
|
30784
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "imageMimeTypes", function() { return imageMimeTypes; });
|
|
30785
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAcceptedTypesByContentMode", function() { return getAcceptedTypesByContentMode; });
|
|
30786
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getQuestionFromObj", function() { return getQuestionFromObj; });
|
|
30787
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ingectAlpha", function() { return ingectAlpha; });
|
|
30788
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "convertRgbaToString", function() { return convertRgbaToString; });
|
|
30789
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "parseRgbaFromString", function() { return parseRgbaFromString; });
|
|
30790
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HSBToRGB", function() { return HSBToRGB; });
|
|
30791
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "RGBToHSB", function() { return RGBToHSB; });
|
|
30792
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "assign", function() { return assign; });
|
|
30793
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ColorCalculator", function() { return ColorCalculator; });
|
|
28459
30794
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
28460
30795
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
28461
30796
|
/* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../creator-settings */ "./src/creator-settings.ts");
|
|
@@ -28762,6 +31097,103 @@ function notShortCircuitAnd() {
|
|
|
28762
31097
|
}
|
|
28763
31098
|
return args.every(function (val) { return val === true; });
|
|
28764
31099
|
}
|
|
31100
|
+
var imageMimeTypes = "image/png, image/gif, image/jpeg, image/apng, image/avif, image/svg+xml, image/webp";
|
|
31101
|
+
function getAcceptedTypesByContentMode(contentMode) {
|
|
31102
|
+
if (["auto", "image"].indexOf(contentMode) > -1) {
|
|
31103
|
+
return imageMimeTypes;
|
|
31104
|
+
}
|
|
31105
|
+
else if (contentMode == "video") {
|
|
31106
|
+
return "video/*";
|
|
31107
|
+
}
|
|
31108
|
+
else {
|
|
31109
|
+
return "";
|
|
31110
|
+
}
|
|
31111
|
+
}
|
|
31112
|
+
function getQuestionFromObj(obj) {
|
|
31113
|
+
return (obj instanceof survey_core__WEBPACK_IMPORTED_MODULE_0__["MatrixDropdownColumn"]) ? obj.templateQuestion : obj;
|
|
31114
|
+
}
|
|
31115
|
+
function ingectAlpha(baseColor, alpha) {
|
|
31116
|
+
if (!!baseColor && alpha !== undefined) {
|
|
31117
|
+
var r = parseInt(baseColor.slice(1, 3), 16);
|
|
31118
|
+
var g = parseInt(baseColor.slice(3, 5), 16);
|
|
31119
|
+
var b = parseInt(baseColor.slice(5, 7), 16);
|
|
31120
|
+
return "rgba(" + r + ", " + g + ", " + b + ", " + alpha + ")";
|
|
31121
|
+
}
|
|
31122
|
+
}
|
|
31123
|
+
function convertRgbaToString(rgbValues, alpha) {
|
|
31124
|
+
return "rgba(" + rgbValues[0] + ", " + rgbValues[1] + ", " + rgbValues[2] + ", " + alpha + ")";
|
|
31125
|
+
}
|
|
31126
|
+
function parseRgbaFromString(value) {
|
|
31127
|
+
var matchRgb = value.match(/\((.*)\)/);
|
|
31128
|
+
if (matchRgb) {
|
|
31129
|
+
return matchRgb[1].split(",").map(function (i) { return parseFloat(i); });
|
|
31130
|
+
}
|
|
31131
|
+
else {
|
|
31132
|
+
return [];
|
|
31133
|
+
}
|
|
31134
|
+
}
|
|
31135
|
+
function HSBToRGB(h, s, b) {
|
|
31136
|
+
s /= 100;
|
|
31137
|
+
b /= 100;
|
|
31138
|
+
var k = function (n) { return (n + h / 60) % 6; };
|
|
31139
|
+
var f = function (n) { return b * (1 - s * Math.max(0, Math.min(k(n), 4 - k(n), 1))); };
|
|
31140
|
+
return [Math.round(255 * f(5)), Math.round(255 * f(3)), Math.round(255 * f(1))];
|
|
31141
|
+
}
|
|
31142
|
+
function RGBToHSB(r, g, b) {
|
|
31143
|
+
r /= 255;
|
|
31144
|
+
g /= 255;
|
|
31145
|
+
b /= 255;
|
|
31146
|
+
var v = Math.max(r, g, b), n = v - Math.min(r, g, b);
|
|
31147
|
+
var h = n === 0 ? 0 : n && v === r ? (g - b) / n : v === g ? 2 + (b - r) / n : 4 + (r - g) / n;
|
|
31148
|
+
return [60 * (h < 0 ? h + 6 : h), v && (n / v) * 100, v * 100];
|
|
31149
|
+
}
|
|
31150
|
+
function assign() {
|
|
31151
|
+
var objects = [];
|
|
31152
|
+
for (var _i = 0; _i < arguments.length; _i++) {
|
|
31153
|
+
objects[_i] = arguments[_i];
|
|
31154
|
+
}
|
|
31155
|
+
if (objects.length <= 1) {
|
|
31156
|
+
return;
|
|
31157
|
+
}
|
|
31158
|
+
if (objects.length == 2) {
|
|
31159
|
+
Object.keys(objects[1]).forEach(function (key) { return objects[0][key] = objects[1][key]; });
|
|
31160
|
+
return;
|
|
31161
|
+
}
|
|
31162
|
+
for (var i = 1; i < objects.length; i++) {
|
|
31163
|
+
assign(objects[0], objects[i]);
|
|
31164
|
+
}
|
|
31165
|
+
}
|
|
31166
|
+
var ColorCalculator = /** @class */ (function () {
|
|
31167
|
+
function ColorCalculator() {
|
|
31168
|
+
this.colorSettings = { baseColorAlpha: 1, darkColorAlpha: 1, lightColorAlpha: 1, deltaDarkColor: 0, deltaLightColor: 0, newColorLight: "", newColorDark: "" };
|
|
31169
|
+
}
|
|
31170
|
+
ColorCalculator.prototype.initialize = function (baseColor, lightColor, darkColor) {
|
|
31171
|
+
var primaryColorRgba = parseRgbaFromString(baseColor);
|
|
31172
|
+
var primaryColorDarkRgba = parseRgbaFromString(darkColor);
|
|
31173
|
+
var primaryColorLightRgba = parseRgbaFromString(lightColor);
|
|
31174
|
+
this.colorSettings.baseColorAlpha = primaryColorRgba[3];
|
|
31175
|
+
this.colorSettings.darkColorAlpha = primaryColorDarkRgba[3];
|
|
31176
|
+
this.colorSettings.lightColorAlpha = primaryColorLightRgba[3];
|
|
31177
|
+
var primaryColorHSB = RGBToHSB(primaryColorRgba[0], primaryColorRgba[1], primaryColorRgba[2]);
|
|
31178
|
+
var primaryColorDarkHSB = RGBToHSB(primaryColorDarkRgba[0], primaryColorDarkRgba[1], primaryColorDarkRgba[2]);
|
|
31179
|
+
var primaryColorLightHSB = RGBToHSB(primaryColorLightRgba[0], primaryColorLightRgba[1], primaryColorLightRgba[2]);
|
|
31180
|
+
this.colorSettings.deltaDarkColor = primaryColorHSB[2] - primaryColorDarkHSB[2];
|
|
31181
|
+
this.colorSettings.deltaLightColor = primaryColorHSB[2] - primaryColorLightHSB[2];
|
|
31182
|
+
};
|
|
31183
|
+
ColorCalculator.prototype.calculateColors = function (newColor) {
|
|
31184
|
+
var newColorRbg = parseRgbaFromString(newColor);
|
|
31185
|
+
if (newColorRbg.length === 0) {
|
|
31186
|
+
newColorRbg = parseRgbaFromString(ingectAlpha(newColor, 1));
|
|
31187
|
+
}
|
|
31188
|
+
var newColorHsb = RGBToHSB(newColorRbg[0], newColorRbg[1], newColorRbg[2]);
|
|
31189
|
+
var newPrimaryColorDarkRGB = HSBToRGB(newColorHsb[0], newColorHsb[1], newColorHsb[2] - this.colorSettings.deltaDarkColor);
|
|
31190
|
+
var newPrimaryColorLightRGB = HSBToRGB(newColorHsb[0], newColorHsb[1], newColorHsb[2] - this.colorSettings.deltaLightColor);
|
|
31191
|
+
this.colorSettings.newColorLight = convertRgbaToString(newPrimaryColorLightRGB, this.colorSettings.lightColorAlpha);
|
|
31192
|
+
this.colorSettings.newColorDark = convertRgbaToString(newPrimaryColorDarkRGB, this.colorSettings.darkColorAlpha);
|
|
31193
|
+
};
|
|
31194
|
+
return ColorCalculator;
|
|
31195
|
+
}());
|
|
31196
|
+
|
|
28765
31197
|
|
|
28766
31198
|
|
|
28767
31199
|
/***/ }),
|