survey-creator-core 1.9.87 → 1.9.89
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 +209 -68
- package/survey-creator-core.fontless.css +208 -67
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +15 -11
- package/survey-creator-core.i18n.js +5 -1
- package/survey-creator-core.i18n.js.map +1 -1
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +1747 -295
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +16 -12
- 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/matrix-cell.d.ts +1 -1
- package/typings/components/question-image.d.ts +10 -1
- package/typings/components/question.d.ts +2 -0
- package/typings/components/simulator.d.ts +1 -0
- package/typings/components/tabs/theme-plugin.d.ts +25 -0
- package/typings/components/tabs/theme.d.ts +85 -0
- package/typings/creator-base.d.ts +7 -0
- package/typings/creator-options.d.ts +1 -0
- package/typings/creator-settings.d.ts +4 -1
- package/typings/editorLocalization.d.ts +69 -0
- package/typings/entries/index.d.ts +2 -0
- package/typings/localization/english.d.ts +69 -0
- package/typings/plugins/undo-redo/undo-redo-manager.d.ts +2 -0
- package/typings/property-grid/index.d.ts +7 -0
- package/typings/property-grid/matrices.d.ts +1 -0
- package/typings/toolbox.d.ts +1 -0
- package/typings/utils/utils.d.ts +4 -1
package/survey-creator-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v1.9.
|
|
2
|
+
* SurveyJS Creator v1.9.89
|
|
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);
|
|
@@ -1145,7 +1163,7 @@ var MatrixCellWrapperViewModel = /** @class */ (function (_super) {
|
|
|
1145
1163
|
creator.onSelectedElementChanged.add(_this.onSelectionChanged);
|
|
1146
1164
|
return _this;
|
|
1147
1165
|
}
|
|
1148
|
-
MatrixCellWrapperViewModel.prototype.editQuestion = function (model) {
|
|
1166
|
+
MatrixCellWrapperViewModel.prototype.editQuestion = function (model, event) {
|
|
1149
1167
|
var editSurvey = new MatrixCellWrapperEditSurvey(model.creator, model.question);
|
|
1150
1168
|
survey_core__WEBPACK_IMPORTED_MODULE_1__["settings"].showModal("svc-question-editor-content", {
|
|
1151
1169
|
survey: editSurvey.survey,
|
|
@@ -1154,6 +1172,8 @@ var MatrixCellWrapperViewModel = /** @class */ (function (_super) {
|
|
|
1154
1172
|
editSurvey.apply();
|
|
1155
1173
|
return true;
|
|
1156
1174
|
}, undefined, "svc-matrix-cell__popup", model.question.name, this.creator.isMobileView ? "overlay" : "popup");
|
|
1175
|
+
event.stopPropagation();
|
|
1176
|
+
model.creator.selectElement(model.column);
|
|
1157
1177
|
};
|
|
1158
1178
|
Object.defineProperty(MatrixCellWrapperViewModel.prototype, "context", {
|
|
1159
1179
|
get: function () {
|
|
@@ -1896,6 +1916,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1896
1916
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
1897
1917
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
1898
1918
|
/* harmony import */ var _question__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./question */ "./src/components/question.ts");
|
|
1919
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
1920
|
+
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../editorLocalization */ "./src/editorLocalization.ts");
|
|
1921
|
+
|
|
1922
|
+
|
|
1899
1923
|
|
|
1900
1924
|
|
|
1901
1925
|
|
|
@@ -1905,8 +1929,25 @@ var QuestionImageAdornerViewModel = /** @class */ (function (_super) {
|
|
|
1905
1929
|
function QuestionImageAdornerViewModel(creator, surveyElement, templateData, questionRoot) {
|
|
1906
1930
|
var _this = _super.call(this, creator, surveyElement, templateData) || this;
|
|
1907
1931
|
_this.questionRoot = questionRoot;
|
|
1932
|
+
_this.isEmptyImageLink = !_this.question.imageLink;
|
|
1933
|
+
_this.surveyElement.registerFunctionOnPropertyValueChanged("imageLink", function () { _this.imageLinkValueChangedHandler(); }, "imageLinkValueChanged");
|
|
1934
|
+
_this.initFilePresentationModel();
|
|
1908
1935
|
return _this;
|
|
1909
1936
|
}
|
|
1937
|
+
QuestionImageAdornerViewModel.prototype.initFilePresentationModel = function () {
|
|
1938
|
+
var _this = this;
|
|
1939
|
+
this.filePresentationModel = survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].createClass("file", { name: this.question.name });
|
|
1940
|
+
this.filePresentationModel.setSurveyImpl(this.question.getSurvey());
|
|
1941
|
+
this.filePresentationModel.forceIsInputReadOnly = false;
|
|
1942
|
+
this.filePresentationModel.dragAreaPlaceholder = this.placeholderText;
|
|
1943
|
+
this.filePresentationModel.chooseButtonCaption = this.chooseImageText;
|
|
1944
|
+
this.filePresentationModel.acceptedTypes = "image/*";
|
|
1945
|
+
this.filePresentationModel.onPropertyValueChangedCallback = function (name, oldValue, newValue, sender, arrayChanges) {
|
|
1946
|
+
if (name === "value" && newValue.length > 0) {
|
|
1947
|
+
_this.question.imageLink = newValue[0].content;
|
|
1948
|
+
}
|
|
1949
|
+
};
|
|
1950
|
+
};
|
|
1910
1951
|
QuestionImageAdornerViewModel.prototype.chooseFile = function (model) {
|
|
1911
1952
|
var fileInput = model.questionRoot.getElementsByClassName("svc-choose-file-input")[0];
|
|
1912
1953
|
model.creator.chooseFiles(fileInput, function (files) {
|
|
@@ -1917,9 +1958,52 @@ var QuestionImageAdornerViewModel = /** @class */ (function (_super) {
|
|
|
1917
1958
|
});
|
|
1918
1959
|
});
|
|
1919
1960
|
};
|
|
1961
|
+
Object.defineProperty(QuestionImageAdornerViewModel.prototype, "acceptedTypes", {
|
|
1962
|
+
get: function () {
|
|
1963
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_3__["getAcceptedTypesByContentMode"])(this.surveyElement.contentMode);
|
|
1964
|
+
},
|
|
1965
|
+
enumerable: false,
|
|
1966
|
+
configurable: true
|
|
1967
|
+
});
|
|
1968
|
+
QuestionImageAdornerViewModel.prototype.imageLinkValueChangedHandler = function () {
|
|
1969
|
+
this.isEmptyImageLink = !this.question.imageLink;
|
|
1970
|
+
this.filePresentationModel.value = null;
|
|
1971
|
+
this.filePresentationModel.visible = !this.question.imageLink;
|
|
1972
|
+
};
|
|
1973
|
+
Object.defineProperty(QuestionImageAdornerViewModel.prototype, "isEmptyElement", {
|
|
1974
|
+
get: function () {
|
|
1975
|
+
return this.isEmptyImageLink;
|
|
1976
|
+
},
|
|
1977
|
+
enumerable: false,
|
|
1978
|
+
configurable: true
|
|
1979
|
+
});
|
|
1980
|
+
Object.defineProperty(QuestionImageAdornerViewModel.prototype, "question", {
|
|
1981
|
+
get: function () {
|
|
1982
|
+
return this.surveyElement;
|
|
1983
|
+
},
|
|
1984
|
+
enumerable: false,
|
|
1985
|
+
configurable: true
|
|
1986
|
+
});
|
|
1987
|
+
Object.defineProperty(QuestionImageAdornerViewModel.prototype, "placeholderText", {
|
|
1988
|
+
get: function () {
|
|
1989
|
+
return Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_4__["getLocString"])("ed.imagePlaceHolder");
|
|
1990
|
+
},
|
|
1991
|
+
enumerable: false,
|
|
1992
|
+
configurable: true
|
|
1993
|
+
});
|
|
1994
|
+
Object.defineProperty(QuestionImageAdornerViewModel.prototype, "chooseImageText", {
|
|
1995
|
+
get: function () {
|
|
1996
|
+
return Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_4__["getLocString"])("ed.imageChooseImage");
|
|
1997
|
+
},
|
|
1998
|
+
enumerable: false,
|
|
1999
|
+
configurable: true
|
|
2000
|
+
});
|
|
1920
2001
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
1921
2002
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
1922
2003
|
], QuestionImageAdornerViewModel.prototype, "isUploading", void 0);
|
|
2004
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
2005
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
2006
|
+
], QuestionImageAdornerViewModel.prototype, "isEmptyImageLink", void 0);
|
|
1923
2007
|
return QuestionImageAdornerViewModel;
|
|
1924
2008
|
}(_question__WEBPACK_IMPORTED_MODULE_2__["QuestionAdornerViewModel"]));
|
|
1925
2009
|
|
|
@@ -1969,7 +2053,7 @@ var QuestionRatingAdornerViewModel = /** @class */ (function (_super) {
|
|
|
1969
2053
|
}
|
|
1970
2054
|
Object.defineProperty(QuestionRatingAdornerViewModel.prototype, "element", {
|
|
1971
2055
|
get: function () {
|
|
1972
|
-
return this.surveyElement;
|
|
2056
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_3__["getQuestionFromObj"])(this.surveyElement);
|
|
1973
2057
|
},
|
|
1974
2058
|
enumerable: false,
|
|
1975
2059
|
configurable: true
|
|
@@ -2208,7 +2292,10 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2208
2292
|
return this.surveyElement.isQuestion && !this.surveyElement.startWithNewLine ? " svc-question__adorner--start-with-new-line" : "";
|
|
2209
2293
|
};
|
|
2210
2294
|
QuestionAdornerViewModel.prototype.css = function () {
|
|
2211
|
-
|
|
2295
|
+
if (!this.surveyElement.isInteractiveDesignElement)
|
|
2296
|
+
return "";
|
|
2297
|
+
var result = "svc-question__content";
|
|
2298
|
+
result += typeof this.surveyElement.getType === "function" ? (" svc-question__content--" + this.surveyElement.getType()) : "";
|
|
2212
2299
|
if (this.creator.isElementSelected(this.surveyElement)) {
|
|
2213
2300
|
result += " svc-question__content--selected";
|
|
2214
2301
|
}
|
|
@@ -3225,6 +3312,9 @@ var SurveySimulatorModel = /** @class */ (function (_super) {
|
|
|
3225
3312
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
3226
3313
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: true })
|
|
3227
3314
|
], SurveySimulatorModel.prototype, "simulatorScaleEnabled", void 0);
|
|
3315
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
3316
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: {} })
|
|
3317
|
+
], SurveySimulatorModel.prototype, "themeVariables", void 0);
|
|
3228
3318
|
return SurveySimulatorModel;
|
|
3229
3319
|
}(survey_core__WEBPACK_IMPORTED_MODULE_1__["Base"]));
|
|
3230
3320
|
|
|
@@ -9124,39 +9214,583 @@ var TabTestPlugin = /** @class */ (function () {
|
|
|
9124
9214
|
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_0__["notShortCircuitAnd"])(_this.creator.showSimulatorInTestSurveyTab, _this.creator.activeTab === "test");
|
|
9125
9215
|
}),
|
|
9126
9216
|
action: function () {
|
|
9127
|
-
_this.changeThemePopupModel.toggleVisibility();
|
|
9128
|
-
},
|
|
9129
|
-
popupModel: this.changeThemePopupModel
|
|
9217
|
+
_this.changeThemePopupModel.toggleVisibility();
|
|
9218
|
+
},
|
|
9219
|
+
popupModel: this.changeThemePopupModel
|
|
9220
|
+
});
|
|
9221
|
+
items.push(this.changeThemeAction);
|
|
9222
|
+
}
|
|
9223
|
+
this.languageSelectorAction = Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["createDropdownActionModel"])({
|
|
9224
|
+
id: "languageSelector",
|
|
9225
|
+
iconName: "icon-language",
|
|
9226
|
+
visible: false,
|
|
9227
|
+
mode: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
|
|
9228
|
+
return _this.creator.isMobileView ? "small" : "large";
|
|
9229
|
+
}),
|
|
9230
|
+
}, {
|
|
9231
|
+
items: [],
|
|
9232
|
+
allowSelection: true,
|
|
9233
|
+
onSelectionChanged: function (item) {
|
|
9234
|
+
_this.model.activeLanguage = item.id;
|
|
9235
|
+
_this.languageSelectorAction.title = _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getLocaleName(item.id);
|
|
9236
|
+
},
|
|
9237
|
+
horizontalPosition: "center",
|
|
9238
|
+
onHide: function () { _this.languageSelectorAction.enabled = true; },
|
|
9239
|
+
onShow: function () { _this.languageSelectorAction.enabled = false; }
|
|
9240
|
+
});
|
|
9241
|
+
items.push(this.languageSelectorAction);
|
|
9242
|
+
this.designerAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
9243
|
+
id: "svd-designer",
|
|
9244
|
+
iconName: "icon-preview",
|
|
9245
|
+
needSeparator: true,
|
|
9246
|
+
action: function () { _this.creator.makeNewViewActive("designer"); },
|
|
9247
|
+
active: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return _this.creator.activeTab === "test"; }),
|
|
9248
|
+
visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
|
|
9249
|
+
return (_this.creator.activeTab === "test");
|
|
9250
|
+
}),
|
|
9251
|
+
locTitleName: "ed.designer",
|
|
9252
|
+
showTitle: false
|
|
9253
|
+
});
|
|
9254
|
+
this.prevPageAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
9255
|
+
id: "prevPage",
|
|
9256
|
+
iconName: "icon-arrow-left_16x16",
|
|
9257
|
+
visible: false
|
|
9258
|
+
});
|
|
9259
|
+
this.nextPageAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
9260
|
+
id: "nextPage",
|
|
9261
|
+
iconName: "icon-arrow-right_16x16",
|
|
9262
|
+
visible: false
|
|
9263
|
+
});
|
|
9264
|
+
return items;
|
|
9265
|
+
};
|
|
9266
|
+
TabTestPlugin.prototype.addFooterActions = function () {
|
|
9267
|
+
this.creator.footerToolbar.actions.push(this.testAgainAction);
|
|
9268
|
+
this.invisibleToggleAction && (this.creator.footerToolbar.actions.push(this.invisibleToggleAction));
|
|
9269
|
+
this.languageSelectorAction && (this.creator.footerToolbar.actions.push(this.languageSelectorAction));
|
|
9270
|
+
this.creator.footerToolbar.actions.push(this.prevPageAction);
|
|
9271
|
+
this.creator.footerToolbar.actions.push(this.nextPageAction);
|
|
9272
|
+
this.creator.footerToolbar.actions.push(this.designerAction);
|
|
9273
|
+
};
|
|
9274
|
+
return TabTestPlugin;
|
|
9275
|
+
}());
|
|
9276
|
+
|
|
9277
|
+
|
|
9278
|
+
|
|
9279
|
+
/***/ }),
|
|
9280
|
+
|
|
9281
|
+
/***/ "./src/components/tabs/test.scss":
|
|
9282
|
+
/*!***************************************!*\
|
|
9283
|
+
!*** ./src/components/tabs/test.scss ***!
|
|
9284
|
+
\***************************************/
|
|
9285
|
+
/*! no static exports found */
|
|
9286
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
9287
|
+
|
|
9288
|
+
// extracted by mini-css-extract-plugin
|
|
9289
|
+
|
|
9290
|
+
/***/ }),
|
|
9291
|
+
|
|
9292
|
+
/***/ "./src/components/tabs/test.ts":
|
|
9293
|
+
/*!*************************************!*\
|
|
9294
|
+
!*** ./src/components/tabs/test.ts ***!
|
|
9295
|
+
\*************************************/
|
|
9296
|
+
/*! exports provided: TestSurveyTabViewModel */
|
|
9297
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9298
|
+
|
|
9299
|
+
"use strict";
|
|
9300
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9301
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TestSurveyTabViewModel", function() { return TestSurveyTabViewModel; });
|
|
9302
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
9303
|
+
/* harmony import */ var _simulator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../simulator */ "./src/components/simulator.ts");
|
|
9304
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
9305
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
9306
|
+
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../editorLocalization */ "./src/editorLocalization.ts");
|
|
9307
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
|
|
9308
|
+
|
|
9309
|
+
|
|
9310
|
+
__webpack_require__(/*! ./test.scss */ "./src/components/tabs/test.scss");
|
|
9311
|
+
|
|
9312
|
+
|
|
9313
|
+
|
|
9314
|
+
var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
9315
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(TestSurveyTabViewModel, _super);
|
|
9316
|
+
function TestSurveyTabViewModel(surveyProvider, startTheme) {
|
|
9317
|
+
if (startTheme === void 0) { startTheme = survey_core__WEBPACK_IMPORTED_MODULE_2__["defaultV2Css"]; }
|
|
9318
|
+
var _this = _super.call(this) || this;
|
|
9319
|
+
_this.surveyProvider = surveyProvider;
|
|
9320
|
+
_this.startTheme = startTheme;
|
|
9321
|
+
_this.pages = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ActionContainer"]();
|
|
9322
|
+
_this.simulator = new _simulator__WEBPACK_IMPORTED_MODULE_1__["SurveySimulatorModel"]();
|
|
9323
|
+
return _this;
|
|
9324
|
+
}
|
|
9325
|
+
Object.defineProperty(TestSurveyTabViewModel.prototype, "activeLanguage", {
|
|
9326
|
+
get: function () {
|
|
9327
|
+
return this.getPropertyValue("activeLanguage", this.survey.locale || survey_core__WEBPACK_IMPORTED_MODULE_2__["surveyLocalization"].defaultLocale);
|
|
9328
|
+
},
|
|
9329
|
+
set: function (val) {
|
|
9330
|
+
if (val === this.activeLanguage)
|
|
9331
|
+
return;
|
|
9332
|
+
this.setPropertyValue("activeLanguage", val);
|
|
9333
|
+
this.survey.locale = val;
|
|
9334
|
+
},
|
|
9335
|
+
enumerable: false,
|
|
9336
|
+
configurable: true
|
|
9337
|
+
});
|
|
9338
|
+
Object.defineProperty(TestSurveyTabViewModel.prototype, "survey", {
|
|
9339
|
+
get: function () {
|
|
9340
|
+
return this.simulator.survey;
|
|
9341
|
+
},
|
|
9342
|
+
enumerable: false,
|
|
9343
|
+
configurable: true
|
|
9344
|
+
});
|
|
9345
|
+
Object.defineProperty(TestSurveyTabViewModel.prototype, "pageActions", {
|
|
9346
|
+
get: function () {
|
|
9347
|
+
return this.pages.actions;
|
|
9348
|
+
},
|
|
9349
|
+
enumerable: false,
|
|
9350
|
+
configurable: true
|
|
9351
|
+
});
|
|
9352
|
+
Object.defineProperty(TestSurveyTabViewModel.prototype, "isPageToolbarVisible", {
|
|
9353
|
+
get: function () {
|
|
9354
|
+
return this.pages.visibleActions.length > 0 && !this.surveyProvider.isMobileView;
|
|
9355
|
+
},
|
|
9356
|
+
enumerable: false,
|
|
9357
|
+
configurable: true
|
|
9358
|
+
});
|
|
9359
|
+
TestSurveyTabViewModel.prototype.updateSimulatorSurvey = function (json, theme) {
|
|
9360
|
+
var newSurvey = this.surveyProvider.createSurvey(json || {}, "test");
|
|
9361
|
+
newSurvey.setCss(theme, false);
|
|
9362
|
+
this.simulator.survey = newSurvey;
|
|
9363
|
+
if (this.onSurveyCreatedCallback)
|
|
9364
|
+
this.onSurveyCreatedCallback(this.survey);
|
|
9365
|
+
var self = this;
|
|
9366
|
+
this.survey.onComplete.add(function (sender) {
|
|
9367
|
+
self.isRunning = false;
|
|
9368
|
+
});
|
|
9369
|
+
if (!!this.survey["onNavigateToUrl"]) {
|
|
9370
|
+
this.survey["onNavigateToUrl"].add(function (sender, options) {
|
|
9371
|
+
var url = options.url;
|
|
9372
|
+
options.url = "";
|
|
9373
|
+
if (!!url) {
|
|
9374
|
+
var message = Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("ed.navigateToMsg") + " '" + url + "'.";
|
|
9375
|
+
if (!!this.surveyProvider) {
|
|
9376
|
+
this.surveyProvider.notify(message);
|
|
9377
|
+
}
|
|
9378
|
+
else {
|
|
9379
|
+
alert(message);
|
|
9380
|
+
}
|
|
9381
|
+
}
|
|
9382
|
+
});
|
|
9383
|
+
}
|
|
9384
|
+
this.survey.onStarted.add(function (sender) {
|
|
9385
|
+
self.setActivePageItem(self.simulator.survey.activePage, true);
|
|
9386
|
+
});
|
|
9387
|
+
this.survey.onCurrentPageChanged.add(function (sender, options) {
|
|
9388
|
+
self.activePage = options.newCurrentPage;
|
|
9389
|
+
self.setActivePageItem(options.oldCurrentPage, false);
|
|
9390
|
+
self.setActivePageItem(options.newCurrentPage, true);
|
|
9391
|
+
});
|
|
9392
|
+
this.survey.onPageVisibleChanged.add(function (sender, options) {
|
|
9393
|
+
self.updatePageItem(options.page);
|
|
9394
|
+
});
|
|
9395
|
+
};
|
|
9396
|
+
TestSurveyTabViewModel.prototype.setJSON = function (json, currTheme) {
|
|
9397
|
+
this.json = json;
|
|
9398
|
+
if (json != null) {
|
|
9399
|
+
if (json.cookieName) {
|
|
9400
|
+
delete json.cookieName;
|
|
9401
|
+
}
|
|
9402
|
+
}
|
|
9403
|
+
this.updateSimulatorSurvey(json, currTheme);
|
|
9404
|
+
};
|
|
9405
|
+
TestSurveyTabViewModel.prototype.initialize = function (json, options) {
|
|
9406
|
+
this.setJSON(json, this.startTheme);
|
|
9407
|
+
this.updatePageList();
|
|
9408
|
+
if (options.showPagesInTestSurveyTab !== undefined) {
|
|
9409
|
+
this.showPagesInTestSurveyTab = options.showPagesInTestSurveyTab;
|
|
9410
|
+
}
|
|
9411
|
+
this.buildActions();
|
|
9412
|
+
};
|
|
9413
|
+
TestSurveyTabViewModel.prototype.updatePageItem = function (page) {
|
|
9414
|
+
var item = this.getPageItemByPage(page);
|
|
9415
|
+
if (item) {
|
|
9416
|
+
item.enabled = page.isVisible;
|
|
9417
|
+
}
|
|
9418
|
+
};
|
|
9419
|
+
TestSurveyTabViewModel.prototype.getCurrentPageItem = function () {
|
|
9420
|
+
return this.pageListItems[this.survey.pages.indexOf(this.survey.activePage)];
|
|
9421
|
+
};
|
|
9422
|
+
TestSurveyTabViewModel.prototype.getSelectPageTitle = function () {
|
|
9423
|
+
return (this.activePage && this.getPageTitle(this.activePage, "preview-tab:selected-page", "survey-tester-selected")) || Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("ts.selectPage");
|
|
9424
|
+
};
|
|
9425
|
+
TestSurveyTabViewModel.prototype.getPageTitle = function (page, area, reason) {
|
|
9426
|
+
if (area === void 0) { area = "preview-tab:page-list"; }
|
|
9427
|
+
if (reason === void 0) { reason = "survey-tester"; }
|
|
9428
|
+
var title = this.surveyProvider.getObjectDisplayName(page, area, reason, page.title);
|
|
9429
|
+
if (title === page.name && title.indexOf("page") === 0) {
|
|
9430
|
+
var index = this.survey.pages.indexOf(page);
|
|
9431
|
+
return _editorLocalization__WEBPACK_IMPORTED_MODULE_3__["editorLocalization"].getString("ed.pageTypeName") + " " + (index + 1);
|
|
9432
|
+
}
|
|
9433
|
+
return title;
|
|
9434
|
+
};
|
|
9435
|
+
TestSurveyTabViewModel.prototype.updatePageList = function () {
|
|
9436
|
+
var pages = [];
|
|
9437
|
+
for (var i = 0; i < this.survey.pages.length; i++) {
|
|
9438
|
+
var page = this.survey.pages[i];
|
|
9439
|
+
pages.push({
|
|
9440
|
+
id: page.name,
|
|
9441
|
+
data: page,
|
|
9442
|
+
title: this.getPageTitle(page),
|
|
9443
|
+
enabled: page.isVisible,
|
|
9444
|
+
visible: true
|
|
9445
|
+
});
|
|
9446
|
+
}
|
|
9447
|
+
this.pageListItems = pages;
|
|
9448
|
+
};
|
|
9449
|
+
TestSurveyTabViewModel.prototype.show = function () {
|
|
9450
|
+
this.showInvisibleElements = false;
|
|
9451
|
+
this.activePage = this.survey.activePage;
|
|
9452
|
+
this.survey.locale = this.activeLanguage;
|
|
9453
|
+
this.isRunning = true;
|
|
9454
|
+
};
|
|
9455
|
+
TestSurveyTabViewModel.prototype.testAgain = function () {
|
|
9456
|
+
this.setJSON(this.json, this.simulator.survey.css);
|
|
9457
|
+
this.updatePageList();
|
|
9458
|
+
this.show();
|
|
9459
|
+
};
|
|
9460
|
+
TestSurveyTabViewModel.prototype.buildActions = function () {
|
|
9461
|
+
var _this = this;
|
|
9462
|
+
var pageActions = [];
|
|
9463
|
+
var setNearPage = function (isNext) {
|
|
9464
|
+
var currentIndex = _this.survey.currentPageNo;
|
|
9465
|
+
var shift = isNext ? 1 : -1;
|
|
9466
|
+
var newIndex = currentIndex + shift;
|
|
9467
|
+
if (_this.survey.state === "starting" && isNext) {
|
|
9468
|
+
newIndex = 0;
|
|
9469
|
+
}
|
|
9470
|
+
var nearPage = _this.survey.visiblePages[newIndex];
|
|
9471
|
+
if (!isNext && currentIndex === 0 && _this.survey.firstPageIsStarted
|
|
9472
|
+
&& _this.survey.pages.length > 0) {
|
|
9473
|
+
nearPage = _this.survey.pages[0];
|
|
9474
|
+
}
|
|
9475
|
+
var pageIndex = _this.survey.pages.indexOf(nearPage);
|
|
9476
|
+
_this.activePage = _this.survey.pages[pageIndex];
|
|
9477
|
+
_this.selectPageAction.data.selectedItem = _this.pageListItems[pageIndex];
|
|
9478
|
+
};
|
|
9479
|
+
if (this.prevPageAction) {
|
|
9480
|
+
this.prevPageAction.visible = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
9481
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_4__["notShortCircuitAnd"])(_this.isRunning, _this.surveyProvider.activeTab === "test", _this.pageListItems.length > 1);
|
|
9482
|
+
});
|
|
9483
|
+
this.prevPageAction.iconName = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
9484
|
+
return _this.surveyProvider.isMobileView ? "icon-arrow-left" : "icon-arrow-left_16x16";
|
|
9485
|
+
});
|
|
9486
|
+
this.prevPageAction.iconSize = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
9487
|
+
return _this.surveyProvider.isMobileView ? 24 : 16;
|
|
9488
|
+
});
|
|
9489
|
+
this.prevPageAction.action = function () { return setNearPage(false); };
|
|
9490
|
+
pageActions.push(this.prevPageAction);
|
|
9491
|
+
}
|
|
9492
|
+
this.selectPageAction = Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["createDropdownActionModel"])({
|
|
9493
|
+
id: "pageSelector",
|
|
9494
|
+
css: "svc-page-selector",
|
|
9495
|
+
title: this.getSelectPageTitle(),
|
|
9496
|
+
visible: this.isRunning && this.pageListItems.length > 1 && this.showPagesInTestSurveyTab
|
|
9497
|
+
}, {
|
|
9498
|
+
items: this.pageListItems,
|
|
9499
|
+
allowSelection: true,
|
|
9500
|
+
selectedItem: this.getCurrentPageItem(),
|
|
9501
|
+
onSelectionChanged: function (item) {
|
|
9502
|
+
_this.activePage = item.data;
|
|
9503
|
+
},
|
|
9504
|
+
verticalPosition: "top",
|
|
9505
|
+
horizontalPosition: "center"
|
|
9506
|
+
});
|
|
9507
|
+
pageActions.push(this.selectPageAction);
|
|
9508
|
+
if (this.nextPageAction) {
|
|
9509
|
+
this.nextPageAction.visible = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
9510
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_4__["notShortCircuitAnd"])(_this.isRunning, _this.surveyProvider.activeTab === "test", _this.pageListItems.length > 1);
|
|
9511
|
+
});
|
|
9512
|
+
this.nextPageAction.iconName = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
9513
|
+
return _this.surveyProvider.isMobileView ? "icon-arrow-right" : "icon-arrow-right_16x16";
|
|
9514
|
+
});
|
|
9515
|
+
this.nextPageAction.iconSize = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
9516
|
+
return _this.surveyProvider.isMobileView ? 24 : 16;
|
|
9517
|
+
});
|
|
9518
|
+
this.nextPageAction.action = function () { return setNearPage(true); };
|
|
9519
|
+
pageActions.push(this.nextPageAction);
|
|
9520
|
+
}
|
|
9521
|
+
this.pages.actions = pageActions;
|
|
9522
|
+
this.pages.containerCss = "sv-action-bar--pages";
|
|
9523
|
+
this.updatePrevNextPageActionState();
|
|
9524
|
+
};
|
|
9525
|
+
TestSurveyTabViewModel.prototype.setActivePageItem = function (page, val) {
|
|
9526
|
+
var item = this.getPageItemByPage(page);
|
|
9527
|
+
if (item) {
|
|
9528
|
+
item.active = val;
|
|
9529
|
+
}
|
|
9530
|
+
};
|
|
9531
|
+
TestSurveyTabViewModel.prototype.getPageItemByPage = function (page) {
|
|
9532
|
+
var items = this.pageListItems;
|
|
9533
|
+
for (var i = 0; i < items.length; i++) {
|
|
9534
|
+
if (items[i].data === page)
|
|
9535
|
+
return items[i];
|
|
9536
|
+
}
|
|
9537
|
+
return null;
|
|
9538
|
+
};
|
|
9539
|
+
TestSurveyTabViewModel.prototype.updateResultsTemplate = function (theme) {
|
|
9540
|
+
this.simulator.survey.setCss(theme, false);
|
|
9541
|
+
this.simulator.survey.render();
|
|
9542
|
+
};
|
|
9543
|
+
TestSurveyTabViewModel.prototype.setTheme = function (themeName, themeMapper) {
|
|
9544
|
+
var availableThemes = themeMapper.filter(function (item) { return item.name === themeName; });
|
|
9545
|
+
var theme = survey_core__WEBPACK_IMPORTED_MODULE_2__["defaultV2Css"];
|
|
9546
|
+
if (availableThemes.length > 0) {
|
|
9547
|
+
theme = availableThemes[0].theme;
|
|
9548
|
+
}
|
|
9549
|
+
this.isRunning ? this.updateSimulatorSurvey(this.json, theme) : this.updateResultsTemplate(theme);
|
|
9550
|
+
};
|
|
9551
|
+
TestSurveyTabViewModel.prototype.onPropertyValueChanged = function (name, oldValue, newValue) {
|
|
9552
|
+
_super.prototype.onPropertyValueChanged.call(this, name, oldValue, newValue);
|
|
9553
|
+
if (!this.pages.hasActions)
|
|
9554
|
+
return;
|
|
9555
|
+
if (name === "activePage") {
|
|
9556
|
+
this.updatePrevNextPageActionState();
|
|
9557
|
+
this.selectPageAction.title = this.getSelectPageTitle();
|
|
9558
|
+
}
|
|
9559
|
+
if (name === "isRunning" || name === "pageListItems" || name === "showPagesInTestSurveyTab") {
|
|
9560
|
+
this.selectPageAction.popupModel.contentComponentData.model.items = this.pageListItems;
|
|
9561
|
+
this.selectPageAction.popupModel.contentComponentData.model.selectedItem = this.getCurrentPageItem();
|
|
9562
|
+
this.selectPageAction.visible = this.isRunning && this.pageListItems.length > 1 && this.showPagesInTestSurveyTab;
|
|
9563
|
+
}
|
|
9564
|
+
};
|
|
9565
|
+
TestSurveyTabViewModel.prototype.updatePrevNextPageActionState = function () {
|
|
9566
|
+
if (!this.prevPageAction || !this.survey)
|
|
9567
|
+
return;
|
|
9568
|
+
var isPrevEnabled = this.survey.firstPageIsStarted && this.survey.state !== "starting"
|
|
9569
|
+
|| (!this.survey.firstPageIsStarted && !this.survey.isFirstPage);
|
|
9570
|
+
this.prevPageAction.css = isPrevEnabled ? "sv-action-bar-item--secondary" : "";
|
|
9571
|
+
this.prevPageAction.enabled = isPrevEnabled;
|
|
9572
|
+
var isNextEnabled = this.survey && this.survey.visiblePages.indexOf(this.activePage) !== this.survey.visiblePages.length - 1;
|
|
9573
|
+
this.nextPageAction.css = isNextEnabled ? "sv-action-bar-item--secondary" : "";
|
|
9574
|
+
this.nextPageAction.enabled = isNextEnabled;
|
|
9575
|
+
};
|
|
9576
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9577
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
|
|
9578
|
+
defaultValue: false,
|
|
9579
|
+
onSet: function (val, target) {
|
|
9580
|
+
target.simulator.survey.showInvisibleElements = val;
|
|
9581
|
+
}
|
|
9582
|
+
})
|
|
9583
|
+
], TestSurveyTabViewModel.prototype, "showInvisibleElements", void 0);
|
|
9584
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9585
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: true })
|
|
9586
|
+
], TestSurveyTabViewModel.prototype, "showPagesInTestSurveyTab", void 0);
|
|
9587
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9588
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
|
|
9589
|
+
defaultValue: true,
|
|
9590
|
+
onSet: function (value, target) {
|
|
9591
|
+
if (!!target.simulator)
|
|
9592
|
+
target.simulator.isRunning = value;
|
|
9593
|
+
}
|
|
9594
|
+
})
|
|
9595
|
+
], TestSurveyTabViewModel.prototype, "isRunning", void 0);
|
|
9596
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9597
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["propertyArray"])()
|
|
9598
|
+
], TestSurveyTabViewModel.prototype, "pageListItems", void 0);
|
|
9599
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9600
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
|
|
9601
|
+
onSet: function (val, target) {
|
|
9602
|
+
if (!!val) {
|
|
9603
|
+
var survey = target.simulator.survey;
|
|
9604
|
+
if (survey.firstPageIsStarted) {
|
|
9605
|
+
if (val === survey.pages[0]) {
|
|
9606
|
+
survey.clear(false, true);
|
|
9607
|
+
}
|
|
9608
|
+
else {
|
|
9609
|
+
if (survey.state == "starting") {
|
|
9610
|
+
survey.setPropertyValue("isStartedState", false);
|
|
9611
|
+
}
|
|
9612
|
+
}
|
|
9613
|
+
}
|
|
9614
|
+
if (survey.state !== "starting") {
|
|
9615
|
+
survey.currentPage = val;
|
|
9616
|
+
}
|
|
9617
|
+
}
|
|
9618
|
+
target.updatePrevNextPageActionState();
|
|
9619
|
+
}
|
|
9620
|
+
})
|
|
9621
|
+
], TestSurveyTabViewModel.prototype, "activePage", void 0);
|
|
9622
|
+
return TestSurveyTabViewModel;
|
|
9623
|
+
}(survey_core__WEBPACK_IMPORTED_MODULE_2__["Base"]));
|
|
9624
|
+
|
|
9625
|
+
|
|
9626
|
+
|
|
9627
|
+
/***/ }),
|
|
9628
|
+
|
|
9629
|
+
/***/ "./src/components/tabs/theme-plugin.ts":
|
|
9630
|
+
/*!*********************************************!*\
|
|
9631
|
+
!*** ./src/components/tabs/theme-plugin.ts ***!
|
|
9632
|
+
\*********************************************/
|
|
9633
|
+
/*! exports provided: TabThemePlugin */
|
|
9634
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9635
|
+
|
|
9636
|
+
"use strict";
|
|
9637
|
+
__webpack_require__.r(__webpack_exports__);
|
|
9638
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "TabThemePlugin", function() { return TabThemePlugin; });
|
|
9639
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
|
|
9640
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
9641
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
9642
|
+
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../editorLocalization */ "./src/editorLocalization.ts");
|
|
9643
|
+
/* harmony import */ var _simulator__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../simulator */ "./src/components/simulator.ts");
|
|
9644
|
+
/* harmony import */ var _theme__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./theme */ "./src/components/tabs/theme.ts");
|
|
9645
|
+
|
|
9646
|
+
|
|
9647
|
+
|
|
9648
|
+
|
|
9649
|
+
|
|
9650
|
+
var TabThemePlugin = /** @class */ (function () {
|
|
9651
|
+
function TabThemePlugin(creator) {
|
|
9652
|
+
this.creator = creator;
|
|
9653
|
+
this.simulatorTheme = survey_core__WEBPACK_IMPORTED_MODULE_1__["surveyCss"][survey_core__WEBPACK_IMPORTED_MODULE_1__["defaultV2ThemeName"]];
|
|
9654
|
+
creator.addPluginTab("theme", this, "ed.themeSurvey");
|
|
9655
|
+
this.simulatorTheme = survey_core__WEBPACK_IMPORTED_MODULE_1__["surveyCss"][survey_core__WEBPACK_IMPORTED_MODULE_1__["defaultV2ThemeName"]];
|
|
9656
|
+
this.createActions().forEach(function (action) { return creator.toolbar.actions.push(action); });
|
|
9657
|
+
this.sidebarTab = this.creator.sidebar.addTab("preview");
|
|
9658
|
+
this.sidebarTab.caption = _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("ed.previewPropertyGridTitle");
|
|
9659
|
+
}
|
|
9660
|
+
TabThemePlugin.prototype.getSimulatorDevicesTitle = function () {
|
|
9661
|
+
if (!this.model)
|
|
9662
|
+
return "";
|
|
9663
|
+
return _simulator__WEBPACK_IMPORTED_MODULE_3__["simulatorDevices"][this.model.simulator.device].title || Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["getLocString"])("pe.simulator");
|
|
9664
|
+
};
|
|
9665
|
+
TabThemePlugin.prototype.setDevice = function (newVal) {
|
|
9666
|
+
this.model.simulator.device = newVal;
|
|
9667
|
+
this.model.simulator.resetZoomParameters();
|
|
9668
|
+
var currentType = _simulator__WEBPACK_IMPORTED_MODULE_3__["simulatorDevices"][this.model.simulator.device].deviceType;
|
|
9669
|
+
this.orientationSelectorAction.enabled = currentType != "desktop";
|
|
9670
|
+
this.deviceSelectorAction.iconName = "icon-device-" + currentType;
|
|
9671
|
+
this.deviceSelectorAction.title = Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["getLocString"])("pe.simulator");
|
|
9672
|
+
};
|
|
9673
|
+
TabThemePlugin.prototype.updateActions = function () {
|
|
9674
|
+
if (this.creator.showSimulatorInTestSurveyTab) {
|
|
9675
|
+
this.setDevice(this.model.simulator.device);
|
|
9676
|
+
this.deviceSelectorAction.data.selectedItem = { id: this.model.simulator.device };
|
|
9677
|
+
this.orientationSelectorAction.title = Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["getLocString"])("pe.portraitOrientation");
|
|
9678
|
+
}
|
|
9679
|
+
if (this.creator.showInvisibleElementsInTestSurveyTab) {
|
|
9680
|
+
this.invisibleToggleAction.css = this.model.showInvisibleElements ? "sv-action-bar-item--active" : "";
|
|
9681
|
+
this.invisibleToggleAction.visible = this.model.isRunning;
|
|
9682
|
+
}
|
|
9683
|
+
};
|
|
9684
|
+
TabThemePlugin.prototype.activate = function () {
|
|
9685
|
+
this.model = new _theme__WEBPACK_IMPORTED_MODULE_4__["ThemeSurveyTabViewModel"](this.creator, this.simulatorTheme);
|
|
9686
|
+
this.model.simulator.landscape = this.creator.previewOrientation != "portrait";
|
|
9687
|
+
this.update();
|
|
9688
|
+
this.sidebarTab.model = this.model.themeEditorSurvey;
|
|
9689
|
+
this.sidebarTab.componentName = "survey-widget";
|
|
9690
|
+
this.creator.sidebar.activeTab = this.sidebarTab.id;
|
|
9691
|
+
};
|
|
9692
|
+
TabThemePlugin.prototype.update = function () {
|
|
9693
|
+
var _this = this;
|
|
9694
|
+
if (!this.model)
|
|
9695
|
+
return;
|
|
9696
|
+
var options = {
|
|
9697
|
+
showPagesInTestSurveyTab: this.creator.showPagesInTestSurveyTab,
|
|
9698
|
+
};
|
|
9699
|
+
this.model.testAgainAction = this.testAgainAction;
|
|
9700
|
+
this.model.prevPageAction = this.prevPageAction;
|
|
9701
|
+
this.model.nextPageAction = this.nextPageAction;
|
|
9702
|
+
this.model.initialize(this.creator.JSON, options);
|
|
9703
|
+
this.updateActions();
|
|
9704
|
+
this.model.show();
|
|
9705
|
+
this.model.onPropertyChanged.add(function (sender, options) {
|
|
9706
|
+
if (options.name === "isRunning") {
|
|
9707
|
+
_this.invisibleToggleAction && (_this.invisibleToggleAction.visible = _this.model.isRunning);
|
|
9708
|
+
_this.testAgainAction.visible = !_this.model.isRunning;
|
|
9709
|
+
}
|
|
9710
|
+
});
|
|
9711
|
+
};
|
|
9712
|
+
TabThemePlugin.prototype.deactivate = function () {
|
|
9713
|
+
if (this.model) {
|
|
9714
|
+
this.simulatorTheme = this.model.simulator.survey.css;
|
|
9715
|
+
this.model.onSurveyCreatedCallback = undefined;
|
|
9716
|
+
this.model = undefined;
|
|
9717
|
+
}
|
|
9718
|
+
this.sidebarTab.visible = false;
|
|
9719
|
+
this.testAgainAction.visible = false;
|
|
9720
|
+
this.invisibleToggleAction && (this.invisibleToggleAction.visible = false);
|
|
9721
|
+
return true;
|
|
9722
|
+
};
|
|
9723
|
+
TabThemePlugin.prototype.createActions = function () {
|
|
9724
|
+
var _this = this;
|
|
9725
|
+
var items = [];
|
|
9726
|
+
this.testAgainAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
9727
|
+
id: "testSurveyAgain",
|
|
9728
|
+
visible: false,
|
|
9729
|
+
locTitleName: "ed.testSurveyAgain",
|
|
9730
|
+
action: function () {
|
|
9731
|
+
_this.model.testAgain();
|
|
9732
|
+
}
|
|
9733
|
+
});
|
|
9734
|
+
if (this.creator.showSimulatorInTestSurveyTab) {
|
|
9735
|
+
var deviceSelectorItems = Object.keys(_simulator__WEBPACK_IMPORTED_MODULE_3__["simulatorDevices"])
|
|
9736
|
+
.filter(function (key) { return !!_simulator__WEBPACK_IMPORTED_MODULE_3__["simulatorDevices"][key].title; })
|
|
9737
|
+
.map(function (key) { return ({ id: key, title: _simulator__WEBPACK_IMPORTED_MODULE_3__["simulatorDevices"][key].title }); });
|
|
9738
|
+
this.deviceSelectorAction = Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["createDropdownActionModel"])({
|
|
9739
|
+
id: "deviceSelector",
|
|
9740
|
+
iconName: "icon-device-desktop",
|
|
9741
|
+
mode: "small",
|
|
9742
|
+
visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
|
|
9743
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_0__["notShortCircuitAnd"])(_this.creator.activeTab === "theme", _this.creator.showSimulatorInTestSurveyTab);
|
|
9744
|
+
}),
|
|
9745
|
+
}, {
|
|
9746
|
+
items: deviceSelectorItems,
|
|
9747
|
+
allowSelection: true,
|
|
9748
|
+
onSelectionChanged: function (item) { _this.setDevice(item.id); },
|
|
9749
|
+
horizontalPosition: "center",
|
|
9750
|
+
onHide: function () { _this.deviceSelectorAction.enabled = true; },
|
|
9751
|
+
onShow: function () { _this.deviceSelectorAction.enabled = false; }
|
|
9752
|
+
});
|
|
9753
|
+
items.push(this.deviceSelectorAction);
|
|
9754
|
+
this.orientationSelectorAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
9755
|
+
id: "orientationSelector",
|
|
9756
|
+
iconName: "icon-device-rotate",
|
|
9757
|
+
mode: "small",
|
|
9758
|
+
visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
|
|
9759
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_0__["notShortCircuitAnd"])(_this.creator.activeTab === "theme", _this.creator.showSimulatorInTestSurveyTab);
|
|
9760
|
+
}),
|
|
9761
|
+
action: function () {
|
|
9762
|
+
_this.model.simulator.landscape = !_this.model.simulator.landscape;
|
|
9763
|
+
_this.orientationSelectorAction.title = Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["getLocString"])(!_this.model.simulator.landscape ? "pe.landscapeOrientation" : "pe.portraitOrientation");
|
|
9764
|
+
}
|
|
9765
|
+
});
|
|
9766
|
+
items.push(this.orientationSelectorAction);
|
|
9767
|
+
}
|
|
9768
|
+
if (this.creator.showInvisibleElementsInTestSurveyTab) {
|
|
9769
|
+
this.invisibleToggleAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
9770
|
+
id: "showInvisible",
|
|
9771
|
+
iconName: "icon-invisible-items",
|
|
9772
|
+
mode: "small",
|
|
9773
|
+
needSeparator: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
|
|
9774
|
+
return !_this.creator.isMobileView;
|
|
9775
|
+
}),
|
|
9776
|
+
locTitleName: "ts.showInvisibleElements",
|
|
9777
|
+
visible: false,
|
|
9778
|
+
action: function () {
|
|
9779
|
+
_this.model.showInvisibleElements = !_this.model.showInvisibleElements;
|
|
9780
|
+
_this.invisibleToggleAction.css = _this.model.showInvisibleElements ? "sv-action-bar-item--active" : "";
|
|
9781
|
+
_this.invisibleToggleAction.title = Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_2__["getLocString"])(!_this.model.showInvisibleElements ? "ts.showInvisibleElements" : "ts.hideInvisibleElements");
|
|
9782
|
+
}
|
|
9130
9783
|
});
|
|
9131
|
-
items.push(this.
|
|
9784
|
+
items.push(this.invisibleToggleAction);
|
|
9132
9785
|
}
|
|
9133
|
-
this.languageSelectorAction = Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["createDropdownActionModel"])({
|
|
9134
|
-
id: "languageSelector",
|
|
9135
|
-
iconName: "icon-language",
|
|
9136
|
-
visible: false,
|
|
9137
|
-
mode: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
|
|
9138
|
-
return _this.creator.isMobileView ? "small" : "large";
|
|
9139
|
-
}),
|
|
9140
|
-
}, {
|
|
9141
|
-
items: [],
|
|
9142
|
-
allowSelection: true,
|
|
9143
|
-
onSelectionChanged: function (item) {
|
|
9144
|
-
_this.model.activeLanguage = item.id;
|
|
9145
|
-
_this.languageSelectorAction.title = _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getLocaleName(item.id);
|
|
9146
|
-
},
|
|
9147
|
-
horizontalPosition: "center",
|
|
9148
|
-
onHide: function () { _this.languageSelectorAction.enabled = true; },
|
|
9149
|
-
onShow: function () { _this.languageSelectorAction.enabled = false; }
|
|
9150
|
-
});
|
|
9151
|
-
items.push(this.languageSelectorAction);
|
|
9152
9786
|
this.designerAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
9153
9787
|
id: "svd-designer",
|
|
9154
9788
|
iconName: "icon-preview",
|
|
9155
9789
|
needSeparator: true,
|
|
9156
9790
|
action: function () { _this.creator.makeNewViewActive("designer"); },
|
|
9157
|
-
active: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return _this.creator.activeTab === "
|
|
9791
|
+
active: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return _this.creator.activeTab === "theme"; }),
|
|
9158
9792
|
visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
|
|
9159
|
-
return (_this.creator.activeTab === "
|
|
9793
|
+
return (_this.creator.activeTab === "theme");
|
|
9160
9794
|
}),
|
|
9161
9795
|
locTitleName: "ed.designer",
|
|
9162
9796
|
showTitle: false
|
|
@@ -9173,25 +9807,24 @@ var TabTestPlugin = /** @class */ (function () {
|
|
|
9173
9807
|
});
|
|
9174
9808
|
return items;
|
|
9175
9809
|
};
|
|
9176
|
-
|
|
9810
|
+
TabThemePlugin.prototype.addFooterActions = function () {
|
|
9177
9811
|
this.creator.footerToolbar.actions.push(this.testAgainAction);
|
|
9178
9812
|
this.invisibleToggleAction && (this.creator.footerToolbar.actions.push(this.invisibleToggleAction));
|
|
9179
|
-
this.languageSelectorAction && (this.creator.footerToolbar.actions.push(this.languageSelectorAction));
|
|
9180
9813
|
this.creator.footerToolbar.actions.push(this.prevPageAction);
|
|
9181
9814
|
this.creator.footerToolbar.actions.push(this.nextPageAction);
|
|
9182
9815
|
this.creator.footerToolbar.actions.push(this.designerAction);
|
|
9183
9816
|
};
|
|
9184
|
-
return
|
|
9817
|
+
return TabThemePlugin;
|
|
9185
9818
|
}());
|
|
9186
9819
|
|
|
9187
9820
|
|
|
9188
9821
|
|
|
9189
9822
|
/***/ }),
|
|
9190
9823
|
|
|
9191
|
-
/***/ "./src/components/tabs/
|
|
9192
|
-
|
|
9193
|
-
!*** ./src/components/tabs/
|
|
9194
|
-
|
|
9824
|
+
/***/ "./src/components/tabs/theme.scss":
|
|
9825
|
+
/*!****************************************!*\
|
|
9826
|
+
!*** ./src/components/tabs/theme.scss ***!
|
|
9827
|
+
\****************************************/
|
|
9195
9828
|
/*! no static exports found */
|
|
9196
9829
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9197
9830
|
|
|
@@ -9199,50 +9832,180 @@ var TabTestPlugin = /** @class */ (function () {
|
|
|
9199
9832
|
|
|
9200
9833
|
/***/ }),
|
|
9201
9834
|
|
|
9202
|
-
/***/ "./src/components/tabs/
|
|
9203
|
-
|
|
9204
|
-
!*** ./src/components/tabs/
|
|
9205
|
-
|
|
9206
|
-
/*! exports provided:
|
|
9835
|
+
/***/ "./src/components/tabs/theme.ts":
|
|
9836
|
+
/*!**************************************!*\
|
|
9837
|
+
!*** ./src/components/tabs/theme.ts ***!
|
|
9838
|
+
\**************************************/
|
|
9839
|
+
/*! exports provided: Themes, ThemeSurveyTabViewModel */
|
|
9207
9840
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9208
9841
|
|
|
9209
9842
|
"use strict";
|
|
9210
9843
|
__webpack_require__.r(__webpack_exports__);
|
|
9211
|
-
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "
|
|
9844
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Themes", function() { return Themes; });
|
|
9845
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ThemeSurveyTabViewModel", function() { return ThemeSurveyTabViewModel; });
|
|
9212
9846
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
9213
9847
|
/* harmony import */ var _simulator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../simulator */ "./src/components/simulator.ts");
|
|
9214
9848
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
9215
9849
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
9216
9850
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../editorLocalization */ "./src/editorLocalization.ts");
|
|
9217
|
-
/* harmony import */ var
|
|
9851
|
+
/* harmony import */ var _property_grid__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../property-grid */ "./src/property-grid/index.ts");
|
|
9852
|
+
/* 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");
|
|
9853
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
|
|
9218
9854
|
|
|
9219
9855
|
|
|
9220
|
-
__webpack_require__(/*! ./test.scss */ "./src/components/tabs/test.scss");
|
|
9221
9856
|
|
|
9222
9857
|
|
|
9223
9858
|
|
|
9224
|
-
|
|
9225
|
-
|
|
9226
|
-
|
|
9227
|
-
|
|
9228
|
-
|
|
9229
|
-
|
|
9230
|
-
|
|
9231
|
-
|
|
9232
|
-
|
|
9233
|
-
|
|
9234
|
-
|
|
9235
|
-
|
|
9236
|
-
|
|
9859
|
+
|
|
9860
|
+
|
|
9861
|
+
__webpack_require__(/*! ./theme.scss */ "./src/components/tabs/theme.scss");
|
|
9862
|
+
var Themes = {
|
|
9863
|
+
"default-light": {
|
|
9864
|
+
"--sjs-primary-backcolor": "#19b394",
|
|
9865
|
+
"--background": "#ffffff",
|
|
9866
|
+
"--background-dim": "#f3f3f3",
|
|
9867
|
+
"--background-dim-light": "#f9f9f9",
|
|
9868
|
+
"--sjs-general-forecolor": "rgba(0, 0, 0, 0.91)",
|
|
9869
|
+
"--sjs-general-forecolor-light": "rgba(0, 0, 0, 0.45);",
|
|
9870
|
+
"--sjs-general-dim-forecolor": "rgba(0, 0, 0, 0.91);",
|
|
9871
|
+
"--sjs-general-dim-forecolor-light": "rgba(0, 0, 0, 0.45);",
|
|
9872
|
+
"--sjs-editor-background": "#f9f9f9",
|
|
9873
|
+
"--sjs-question-background": "#ffffff",
|
|
9874
|
+
"--sjs-primary-forecolor": "#ffffff",
|
|
9875
|
+
"--foreground": "#161616",
|
|
9876
|
+
"--base-unit": "8px",
|
|
9877
|
+
"--sjs-corner-radius": "4px"
|
|
9878
|
+
},
|
|
9879
|
+
"default-dark": {
|
|
9880
|
+
"--sjs-primary-backcolor": "#1ab7fa",
|
|
9881
|
+
"--background": "#555555",
|
|
9882
|
+
"--background-dim": "#4d4d4d",
|
|
9883
|
+
"--background-dim-light": "#4d4d4d",
|
|
9884
|
+
"--sjs-general-forecolor": "rgba(255, 255, 255, 0.78)",
|
|
9885
|
+
"--sjs-general-forecolor-light": "rgba(255, 255, 255, 0.42)",
|
|
9886
|
+
"--sjs-general-dim-forecolor": "rgba(255, 255, 255, 0.79)",
|
|
9887
|
+
"--sjs-general-dim-forecolor-light": "rgba(255, 255, 255, 0.45)",
|
|
9888
|
+
"--sjs-editor-background": "#4d4d4d",
|
|
9889
|
+
"--sjs-question-background": "#555555",
|
|
9890
|
+
"--sjs-primary-forecolor": "#ffffff",
|
|
9891
|
+
"--foreground": "#ededed",
|
|
9892
|
+
"--base-unit": "8px",
|
|
9893
|
+
"--sjs-corner-radius": "4px"
|
|
9894
|
+
}
|
|
9895
|
+
};
|
|
9896
|
+
survey_core__WEBPACK_IMPORTED_MODULE_2__["ComponentCollection"].Instance.add({
|
|
9897
|
+
name: "fontsettings",
|
|
9898
|
+
showInToolbox: false,
|
|
9899
|
+
elementsJSON: [
|
|
9900
|
+
{
|
|
9901
|
+
type: "dropdown",
|
|
9902
|
+
name: "family",
|
|
9903
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontFamily"),
|
|
9904
|
+
titleLocation: "left",
|
|
9905
|
+
descriptionLocation: "hidden",
|
|
9906
|
+
choices: ["Open Sans", "Arial"],
|
|
9907
|
+
defaultValue: "Open Sans",
|
|
9908
|
+
allowClear: false
|
|
9909
|
+
},
|
|
9910
|
+
{
|
|
9911
|
+
type: "buttongroup",
|
|
9912
|
+
name: "weight",
|
|
9913
|
+
titleLocation: "hidden",
|
|
9914
|
+
descriptionLocation: "hidden",
|
|
9915
|
+
choices: [
|
|
9916
|
+
{ value: "400", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontWeightRegular") },
|
|
9917
|
+
{ value: "500", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontWeightSemiBold") },
|
|
9918
|
+
{ value: "700", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontWeightBold") },
|
|
9919
|
+
],
|
|
9920
|
+
defaultValue: "400"
|
|
9921
|
+
},
|
|
9922
|
+
{
|
|
9923
|
+
type: "color",
|
|
9924
|
+
name: "color",
|
|
9925
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.color"),
|
|
9926
|
+
titleLocation: "left",
|
|
9927
|
+
descriptionLocation: "hidden"
|
|
9928
|
+
},
|
|
9929
|
+
{
|
|
9930
|
+
type: "spinedit",
|
|
9931
|
+
name: "size",
|
|
9932
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.size"),
|
|
9933
|
+
titleLocation: "left",
|
|
9934
|
+
descriptionLocation: "hidden",
|
|
9935
|
+
unit: "px",
|
|
9936
|
+
min: 0,
|
|
9937
|
+
}
|
|
9938
|
+
],
|
|
9939
|
+
onInit: function () {
|
|
9940
|
+
},
|
|
9941
|
+
onCreated: function (question) {
|
|
9942
|
+
var color = question.contentPanel.getQuestionByName("color");
|
|
9943
|
+
color.visible = question.name !== "surveyTitle";
|
|
9944
|
+
},
|
|
9945
|
+
onValueChanged: function (question, name, newValue) {
|
|
9946
|
+
},
|
|
9947
|
+
});
|
|
9948
|
+
survey_core__WEBPACK_IMPORTED_MODULE_2__["ComponentCollection"].Instance.add({
|
|
9949
|
+
name: "elementsettings",
|
|
9950
|
+
showInToolbox: false,
|
|
9951
|
+
elementsJSON: [
|
|
9952
|
+
{
|
|
9953
|
+
type: "color",
|
|
9954
|
+
name: "backcolor",
|
|
9955
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backcolor"),
|
|
9956
|
+
titleLocation: "left",
|
|
9957
|
+
descriptionLocation: "hidden"
|
|
9958
|
+
},
|
|
9959
|
+
{
|
|
9960
|
+
type: "color",
|
|
9961
|
+
name: "hovercolor",
|
|
9962
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.hovercolor"),
|
|
9963
|
+
titleLocation: "left",
|
|
9964
|
+
descriptionLocation: "hidden"
|
|
9965
|
+
},
|
|
9966
|
+
{
|
|
9967
|
+
type: "spinedit",
|
|
9968
|
+
name: "corner",
|
|
9969
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.cornerRadius"),
|
|
9970
|
+
titleLocation: "left",
|
|
9971
|
+
descriptionLocation: "hidden",
|
|
9972
|
+
unit: "px",
|
|
9973
|
+
defaultValue: 4,
|
|
9974
|
+
min: 0
|
|
9975
|
+
},
|
|
9976
|
+
{
|
|
9977
|
+
type: "expression",
|
|
9978
|
+
name: "cornerRadius",
|
|
9979
|
+
expression: "{composite.corner}+\"px\"",
|
|
9980
|
+
visible: false
|
|
9981
|
+
}, {
|
|
9982
|
+
type: "text",
|
|
9983
|
+
name: "border",
|
|
9984
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.borderDecoration"),
|
|
9985
|
+
titleLocation: "left",
|
|
9986
|
+
descriptionLocation: "hidden"
|
|
9987
|
+
}
|
|
9988
|
+
],
|
|
9989
|
+
onInit: function () {
|
|
9990
|
+
},
|
|
9991
|
+
onCreated: function (question) {
|
|
9992
|
+
},
|
|
9993
|
+
onValueChanged: function (question, name, newValue) {
|
|
9994
|
+
},
|
|
9995
|
+
});
|
|
9996
|
+
var ThemeSurveyTabViewModel = /** @class */ (function (_super) {
|
|
9997
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(ThemeSurveyTabViewModel, _super);
|
|
9998
|
+
function ThemeSurveyTabViewModel(surveyProvider, startTheme) {
|
|
9237
9999
|
if (startTheme === void 0) { startTheme = survey_core__WEBPACK_IMPORTED_MODULE_2__["defaultV2Css"]; }
|
|
9238
10000
|
var _this = _super.call(this) || this;
|
|
9239
10001
|
_this.surveyProvider = surveyProvider;
|
|
9240
10002
|
_this.startTheme = startTheme;
|
|
9241
10003
|
_this.pages = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ActionContainer"]();
|
|
9242
10004
|
_this.simulator = new _simulator__WEBPACK_IMPORTED_MODULE_1__["SurveySimulatorModel"]();
|
|
10005
|
+
_this.themeEditorSurveyValue = _this.createThemeEditorSurvey();
|
|
9243
10006
|
return _this;
|
|
9244
10007
|
}
|
|
9245
|
-
Object.defineProperty(
|
|
10008
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "activeLanguage", {
|
|
9246
10009
|
get: function () {
|
|
9247
10010
|
return this.getPropertyValue("activeLanguage", this.survey.locale || survey_core__WEBPACK_IMPORTED_MODULE_2__["surveyLocalization"].defaultLocale);
|
|
9248
10011
|
},
|
|
@@ -9255,29 +10018,36 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9255
10018
|
enumerable: false,
|
|
9256
10019
|
configurable: true
|
|
9257
10020
|
});
|
|
9258
|
-
Object.defineProperty(
|
|
10021
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "survey", {
|
|
9259
10022
|
get: function () {
|
|
9260
10023
|
return this.simulator.survey;
|
|
9261
10024
|
},
|
|
9262
10025
|
enumerable: false,
|
|
9263
10026
|
configurable: true
|
|
9264
10027
|
});
|
|
9265
|
-
Object.defineProperty(
|
|
10028
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "pageActions", {
|
|
9266
10029
|
get: function () {
|
|
9267
10030
|
return this.pages.actions;
|
|
9268
10031
|
},
|
|
9269
10032
|
enumerable: false,
|
|
9270
10033
|
configurable: true
|
|
9271
10034
|
});
|
|
9272
|
-
Object.defineProperty(
|
|
10035
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "isPageToolbarVisible", {
|
|
9273
10036
|
get: function () {
|
|
9274
10037
|
return this.pages.visibleActions.length > 0 && !this.surveyProvider.isMobileView;
|
|
9275
10038
|
},
|
|
9276
10039
|
enumerable: false,
|
|
9277
10040
|
configurable: true
|
|
9278
10041
|
});
|
|
9279
|
-
|
|
9280
|
-
|
|
10042
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "themeEditorSurvey", {
|
|
10043
|
+
get: function () {
|
|
10044
|
+
return this.themeEditorSurveyValue;
|
|
10045
|
+
},
|
|
10046
|
+
enumerable: false,
|
|
10047
|
+
configurable: true
|
|
10048
|
+
});
|
|
10049
|
+
ThemeSurveyTabViewModel.prototype.updateSimulatorSurvey = function (json, theme) {
|
|
10050
|
+
var newSurvey = this.surveyProvider.createSurvey(json || {}, "theme");
|
|
9281
10051
|
newSurvey.setCss(theme, false);
|
|
9282
10052
|
this.simulator.survey = newSurvey;
|
|
9283
10053
|
if (this.onSurveyCreatedCallback)
|
|
@@ -9313,7 +10083,7 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9313
10083
|
self.updatePageItem(options.page);
|
|
9314
10084
|
});
|
|
9315
10085
|
};
|
|
9316
|
-
|
|
10086
|
+
ThemeSurveyTabViewModel.prototype.setJSON = function (json, currTheme) {
|
|
9317
10087
|
this.json = json;
|
|
9318
10088
|
if (json != null) {
|
|
9319
10089
|
if (json.cookieName) {
|
|
@@ -9322,7 +10092,7 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9322
10092
|
}
|
|
9323
10093
|
this.updateSimulatorSurvey(json, currTheme);
|
|
9324
10094
|
};
|
|
9325
|
-
|
|
10095
|
+
ThemeSurveyTabViewModel.prototype.initialize = function (json, options) {
|
|
9326
10096
|
this.setJSON(json, this.startTheme);
|
|
9327
10097
|
this.updatePageList();
|
|
9328
10098
|
if (options.showPagesInTestSurveyTab !== undefined) {
|
|
@@ -9330,19 +10100,19 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9330
10100
|
}
|
|
9331
10101
|
this.buildActions();
|
|
9332
10102
|
};
|
|
9333
|
-
|
|
10103
|
+
ThemeSurveyTabViewModel.prototype.updatePageItem = function (page) {
|
|
9334
10104
|
var item = this.getPageItemByPage(page);
|
|
9335
10105
|
if (item) {
|
|
9336
10106
|
item.enabled = page.isVisible;
|
|
9337
10107
|
}
|
|
9338
10108
|
};
|
|
9339
|
-
|
|
10109
|
+
ThemeSurveyTabViewModel.prototype.getCurrentPageItem = function () {
|
|
9340
10110
|
return this.pageListItems[this.survey.pages.indexOf(this.survey.activePage)];
|
|
9341
10111
|
};
|
|
9342
|
-
|
|
10112
|
+
ThemeSurveyTabViewModel.prototype.getSelectPageTitle = function () {
|
|
9343
10113
|
return (this.activePage && this.getPageTitle(this.activePage, "preview-tab:selected-page", "survey-tester-selected")) || Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("ts.selectPage");
|
|
9344
10114
|
};
|
|
9345
|
-
|
|
10115
|
+
ThemeSurveyTabViewModel.prototype.getPageTitle = function (page, area, reason) {
|
|
9346
10116
|
if (area === void 0) { area = "preview-tab:page-list"; }
|
|
9347
10117
|
if (reason === void 0) { reason = "survey-tester"; }
|
|
9348
10118
|
var title = this.surveyProvider.getObjectDisplayName(page, area, reason, page.title);
|
|
@@ -9352,7 +10122,7 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9352
10122
|
}
|
|
9353
10123
|
return title;
|
|
9354
10124
|
};
|
|
9355
|
-
|
|
10125
|
+
ThemeSurveyTabViewModel.prototype.updatePageList = function () {
|
|
9356
10126
|
var pages = [];
|
|
9357
10127
|
for (var i = 0; i < this.survey.pages.length; i++) {
|
|
9358
10128
|
var page = this.survey.pages[i];
|
|
@@ -9366,18 +10136,18 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9366
10136
|
}
|
|
9367
10137
|
this.pageListItems = pages;
|
|
9368
10138
|
};
|
|
9369
|
-
|
|
10139
|
+
ThemeSurveyTabViewModel.prototype.show = function () {
|
|
9370
10140
|
this.showInvisibleElements = false;
|
|
9371
10141
|
this.activePage = this.survey.activePage;
|
|
9372
10142
|
this.survey.locale = this.activeLanguage;
|
|
9373
10143
|
this.isRunning = true;
|
|
9374
10144
|
};
|
|
9375
|
-
|
|
10145
|
+
ThemeSurveyTabViewModel.prototype.testAgain = function () {
|
|
9376
10146
|
this.setJSON(this.json, this.simulator.survey.css);
|
|
9377
10147
|
this.updatePageList();
|
|
9378
10148
|
this.show();
|
|
9379
10149
|
};
|
|
9380
|
-
|
|
10150
|
+
ThemeSurveyTabViewModel.prototype.buildActions = function () {
|
|
9381
10151
|
var _this = this;
|
|
9382
10152
|
var pageActions = [];
|
|
9383
10153
|
var setNearPage = function (isNext) {
|
|
@@ -9398,7 +10168,7 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9398
10168
|
};
|
|
9399
10169
|
if (this.prevPageAction) {
|
|
9400
10170
|
this.prevPageAction.visible = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
9401
|
-
return Object(
|
|
10171
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["notShortCircuitAnd"])(_this.isRunning, _this.surveyProvider.activeTab === "test", _this.pageListItems.length > 1);
|
|
9402
10172
|
});
|
|
9403
10173
|
this.prevPageAction.iconName = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
9404
10174
|
return _this.surveyProvider.isMobileView ? "icon-arrow-left" : "icon-arrow-left_16x16";
|
|
@@ -9427,7 +10197,7 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9427
10197
|
pageActions.push(this.selectPageAction);
|
|
9428
10198
|
if (this.nextPageAction) {
|
|
9429
10199
|
this.nextPageAction.visible = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
9430
|
-
return Object(
|
|
10200
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["notShortCircuitAnd"])(_this.isRunning, _this.surveyProvider.activeTab === "test", _this.pageListItems.length > 1);
|
|
9431
10201
|
});
|
|
9432
10202
|
this.nextPageAction.iconName = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
9433
10203
|
return _this.surveyProvider.isMobileView ? "icon-arrow-right" : "icon-arrow-right_16x16";
|
|
@@ -9442,13 +10212,13 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9442
10212
|
this.pages.containerCss = "sv-action-bar--pages";
|
|
9443
10213
|
this.updatePrevNextPageActionState();
|
|
9444
10214
|
};
|
|
9445
|
-
|
|
10215
|
+
ThemeSurveyTabViewModel.prototype.setActivePageItem = function (page, val) {
|
|
9446
10216
|
var item = this.getPageItemByPage(page);
|
|
9447
10217
|
if (item) {
|
|
9448
10218
|
item.active = val;
|
|
9449
10219
|
}
|
|
9450
10220
|
};
|
|
9451
|
-
|
|
10221
|
+
ThemeSurveyTabViewModel.prototype.getPageItemByPage = function (page) {
|
|
9452
10222
|
var items = this.pageListItems;
|
|
9453
10223
|
for (var i = 0; i < items.length; i++) {
|
|
9454
10224
|
if (items[i].data === page)
|
|
@@ -9456,11 +10226,11 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9456
10226
|
}
|
|
9457
10227
|
return null;
|
|
9458
10228
|
};
|
|
9459
|
-
|
|
10229
|
+
ThemeSurveyTabViewModel.prototype.updateResultsTemplate = function (theme) {
|
|
9460
10230
|
this.simulator.survey.setCss(theme, false);
|
|
9461
10231
|
this.simulator.survey.render();
|
|
9462
10232
|
};
|
|
9463
|
-
|
|
10233
|
+
ThemeSurveyTabViewModel.prototype.setTheme = function (themeName, themeMapper) {
|
|
9464
10234
|
var availableThemes = themeMapper.filter(function (item) { return item.name === themeName; });
|
|
9465
10235
|
var theme = survey_core__WEBPACK_IMPORTED_MODULE_2__["defaultV2Css"];
|
|
9466
10236
|
if (availableThemes.length > 0) {
|
|
@@ -9468,7 +10238,7 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9468
10238
|
}
|
|
9469
10239
|
this.isRunning ? this.updateSimulatorSurvey(this.json, theme) : this.updateResultsTemplate(theme);
|
|
9470
10240
|
};
|
|
9471
|
-
|
|
10241
|
+
ThemeSurveyTabViewModel.prototype.onPropertyValueChanged = function (name, oldValue, newValue) {
|
|
9472
10242
|
_super.prototype.onPropertyValueChanged.call(this, name, oldValue, newValue);
|
|
9473
10243
|
if (!this.pages.hasActions)
|
|
9474
10244
|
return;
|
|
@@ -9482,7 +10252,7 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9482
10252
|
this.selectPageAction.visible = this.isRunning && this.pageListItems.length > 1 && this.showPagesInTestSurveyTab;
|
|
9483
10253
|
}
|
|
9484
10254
|
};
|
|
9485
|
-
|
|
10255
|
+
ThemeSurveyTabViewModel.prototype.updatePrevNextPageActionState = function () {
|
|
9486
10256
|
if (!this.prevPageAction || !this.survey)
|
|
9487
10257
|
return;
|
|
9488
10258
|
var isPrevEnabled = this.survey.firstPageIsStarted && this.survey.state !== "starting"
|
|
@@ -9493,6 +10263,472 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9493
10263
|
this.nextPageAction.css = isNextEnabled ? "sv-action-bar-item--secondary" : "";
|
|
9494
10264
|
this.nextPageAction.enabled = isNextEnabled;
|
|
9495
10265
|
};
|
|
10266
|
+
ThemeSurveyTabViewModel.prototype.createThemeEditorSurvey = function () {
|
|
10267
|
+
var _this = this;
|
|
10268
|
+
var json = this.getThemeEditorSurveyJSON();
|
|
10269
|
+
Object(_property_grid__WEBPACK_IMPORTED_MODULE_4__["setSurveyJSONForPropertyGrid"])(json, true, false);
|
|
10270
|
+
var themeEditorSurvey = this.surveyProvider.createSurvey(json, "theme_editor");
|
|
10271
|
+
themeEditorSurvey.getCss().list = {};
|
|
10272
|
+
var themeBuilderCss = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__assign"])({}, _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_5__["propertyGridCss"]);
|
|
10273
|
+
themeBuilderCss.root += " spg-theme-builder-root";
|
|
10274
|
+
themeEditorSurvey.css = themeBuilderCss;
|
|
10275
|
+
themeEditorSurvey.mergeData(this.themeVariables);
|
|
10276
|
+
themeEditorSurvey.getQuestionByName("questionPanel").contentPanel.getQuestionByName("backcolor").value = this.themeVariables["--background"];
|
|
10277
|
+
themeEditorSurvey.getQuestionByName("editorPanel").contentPanel.getQuestionByName("backcolor").value = this.themeVariables["--background-dim-light"];
|
|
10278
|
+
themeEditorSurvey.onValueChanged.add(function (sender, options) {
|
|
10279
|
+
var _a, _b;
|
|
10280
|
+
if (["themeName", "themeMode", "themePalette"].indexOf(options.name) !== -1) {
|
|
10281
|
+
_this[options.name] = options.value;
|
|
10282
|
+
themeEditorSurvey.mergeData(_this.themeVariables);
|
|
10283
|
+
}
|
|
10284
|
+
if (options.name === "questionBackgroundTransparency" || options.name === "editorPanel") {
|
|
10285
|
+
var baseColor = themeEditorSurvey.getValue("--background-dim-light");
|
|
10286
|
+
var questionBackgroundTransparencyValue = themeEditorSurvey.getValue("questionBackgroundTransparency");
|
|
10287
|
+
themeEditorSurvey.setValue("--sjs-editor-background", ingectAlpha(baseColor, questionBackgroundTransparencyValue / 100));
|
|
10288
|
+
}
|
|
10289
|
+
if (options.name === "panelBackgroundTransparency" || options.name === "questionPanel") {
|
|
10290
|
+
var baseColor = themeEditorSurvey.getValue("--background");
|
|
10291
|
+
var panelBackgroundTransparencyValue = themeEditorSurvey.getValue("panelBackgroundTransparency");
|
|
10292
|
+
themeEditorSurvey.setValue("--sjs-question-background", ingectAlpha(baseColor, panelBackgroundTransparencyValue / 100));
|
|
10293
|
+
}
|
|
10294
|
+
if (["backgroundImage", "backgroundImageFit"].indexOf(options.name) !== -1) {
|
|
10295
|
+
_this.survey[options.name] = options.value;
|
|
10296
|
+
return;
|
|
10297
|
+
}
|
|
10298
|
+
if (options.name === "backgroundOpacity") {
|
|
10299
|
+
_this.survey.backgroundOpacity = options.value / 100;
|
|
10300
|
+
return;
|
|
10301
|
+
}
|
|
10302
|
+
if (options.name === "themeMode") {
|
|
10303
|
+
_this.survey["isCompact"] = options.value === "lightweight";
|
|
10304
|
+
return;
|
|
10305
|
+
}
|
|
10306
|
+
var _data = sender.data;
|
|
10307
|
+
if (((_a = options.question) === null || _a === void 0 ? void 0 : _a.getType()) === "fontsettings") {
|
|
10308
|
+
Object.keys(options.value).forEach(function (key) {
|
|
10309
|
+
var _a;
|
|
10310
|
+
var innerQ = options.question.contentPanel.getQuestionByName(key);
|
|
10311
|
+
_data["--sjs-font-" + options.name.toLocaleLowerCase() + "-" + key] = options.value[key] + (((_a = innerQ.unit) === null || _a === void 0 ? void 0 : _a.toString()) || "");
|
|
10312
|
+
});
|
|
10313
|
+
}
|
|
10314
|
+
if (((_b = options.question) === null || _b === void 0 ? void 0 : _b.getType()) === "elementsettings") {
|
|
10315
|
+
Object.keys(options.value).forEach(function (key) {
|
|
10316
|
+
if (key === "corner")
|
|
10317
|
+
return;
|
|
10318
|
+
_data["--sjs-" + options.name.toLocaleLowerCase() + "-" + key] = options.value[key];
|
|
10319
|
+
});
|
|
10320
|
+
}
|
|
10321
|
+
_this.simulator.themeVariables = _data;
|
|
10322
|
+
});
|
|
10323
|
+
themeEditorSurvey.getAllQuestions().map(function (q) { return q.allowRootStyle = false; });
|
|
10324
|
+
themeEditorSurvey.onQuestionCreated.add(function (_, opt) {
|
|
10325
|
+
opt.question.allowRootStyle = false;
|
|
10326
|
+
});
|
|
10327
|
+
return themeEditorSurvey;
|
|
10328
|
+
};
|
|
10329
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "themeVariables", {
|
|
10330
|
+
get: function () {
|
|
10331
|
+
return Themes[this.themeName + "-" + this.themePalette];
|
|
10332
|
+
},
|
|
10333
|
+
enumerable: false,
|
|
10334
|
+
configurable: true
|
|
10335
|
+
});
|
|
10336
|
+
ThemeSurveyTabViewModel.prototype.getThemeEditorSurveyJSON = function () {
|
|
10337
|
+
var themeEditorSurveyJSON = {
|
|
10338
|
+
"clearInvisibleValues": "none",
|
|
10339
|
+
elements: [{
|
|
10340
|
+
type: "panel",
|
|
10341
|
+
state: "expanded",
|
|
10342
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.groupGeneral"),
|
|
10343
|
+
elements: [
|
|
10344
|
+
{
|
|
10345
|
+
type: "panel",
|
|
10346
|
+
elements: [
|
|
10347
|
+
{
|
|
10348
|
+
type: "dropdown",
|
|
10349
|
+
name: "themeName",
|
|
10350
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.themeName"),
|
|
10351
|
+
descriptionLocation: "hidden",
|
|
10352
|
+
choices: ["default", "contrast", "plain", "simple", "blank", "double", "ultra"],
|
|
10353
|
+
defaultValue: "default",
|
|
10354
|
+
allowClear: false
|
|
10355
|
+
},
|
|
10356
|
+
{
|
|
10357
|
+
type: "panel",
|
|
10358
|
+
name: "themeMode",
|
|
10359
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.themeMode"),
|
|
10360
|
+
elements: [
|
|
10361
|
+
{
|
|
10362
|
+
type: "buttongroup",
|
|
10363
|
+
name: "themeMode",
|
|
10364
|
+
titleLocation: "hidden",
|
|
10365
|
+
choices: [
|
|
10366
|
+
{ value: "panels", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.themeModePanels") },
|
|
10367
|
+
{ value: "lightweight", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.themeModeLightweight") }
|
|
10368
|
+
],
|
|
10369
|
+
defaultValue: "panels"
|
|
10370
|
+
},
|
|
10371
|
+
{
|
|
10372
|
+
type: "buttongroup",
|
|
10373
|
+
name: "themePalette",
|
|
10374
|
+
titleLocation: "hidden",
|
|
10375
|
+
choices: [
|
|
10376
|
+
{ value: "light", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.themePaletteLight") },
|
|
10377
|
+
{ value: "dark", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.themePaletteDark") }
|
|
10378
|
+
],
|
|
10379
|
+
defaultValue: "light"
|
|
10380
|
+
}
|
|
10381
|
+
]
|
|
10382
|
+
}
|
|
10383
|
+
]
|
|
10384
|
+
}, {
|
|
10385
|
+
type: "panel",
|
|
10386
|
+
elements: [
|
|
10387
|
+
{
|
|
10388
|
+
type: "color",
|
|
10389
|
+
name: "--sjs-primary-backcolor",
|
|
10390
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryColor"),
|
|
10391
|
+
descriptionLocation: "hidden",
|
|
10392
|
+
defaultValue: "#19b394"
|
|
10393
|
+
},
|
|
10394
|
+
{
|
|
10395
|
+
type: "color",
|
|
10396
|
+
name: "--background-dim",
|
|
10397
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundDimColor"),
|
|
10398
|
+
descriptionLocation: "hidden",
|
|
10399
|
+
defaultValue: "#f3f3f3"
|
|
10400
|
+
},
|
|
10401
|
+
{
|
|
10402
|
+
type: "panel",
|
|
10403
|
+
name: "background",
|
|
10404
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundImage"),
|
|
10405
|
+
elements: [
|
|
10406
|
+
{
|
|
10407
|
+
type: "fileedit",
|
|
10408
|
+
name: "backgroundImage",
|
|
10409
|
+
titleLocation: "hidden",
|
|
10410
|
+
placeholder: "Browse..."
|
|
10411
|
+
},
|
|
10412
|
+
{
|
|
10413
|
+
type: "buttongroup",
|
|
10414
|
+
name: "backgroundImageFit",
|
|
10415
|
+
titleLocation: "hidden",
|
|
10416
|
+
choices: [
|
|
10417
|
+
{ value: "auto", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundImageFitAuto") },
|
|
10418
|
+
{ value: "contain", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundImageFitContain") },
|
|
10419
|
+
{ value: "cover", text: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundImageFitCover") }
|
|
10420
|
+
],
|
|
10421
|
+
defaultValue: "cover"
|
|
10422
|
+
},
|
|
10423
|
+
{
|
|
10424
|
+
type: "spinedit",
|
|
10425
|
+
name: "backgroundOpacity",
|
|
10426
|
+
titleLocation: "left",
|
|
10427
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundOpacity"),
|
|
10428
|
+
descriptionLocation: "hidden",
|
|
10429
|
+
unit: "%",
|
|
10430
|
+
defaultValue: 100,
|
|
10431
|
+
min: 0,
|
|
10432
|
+
max: 100,
|
|
10433
|
+
step: 5
|
|
10434
|
+
},
|
|
10435
|
+
]
|
|
10436
|
+
},
|
|
10437
|
+
{
|
|
10438
|
+
type: "spinedit",
|
|
10439
|
+
name: "panelBackgroundTransparency",
|
|
10440
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.panelBackgroundTransparency"),
|
|
10441
|
+
descriptionLocation: "hidden",
|
|
10442
|
+
unit: "%",
|
|
10443
|
+
defaultValue: 100,
|
|
10444
|
+
min: 0,
|
|
10445
|
+
max: 100,
|
|
10446
|
+
step: 5
|
|
10447
|
+
},
|
|
10448
|
+
{
|
|
10449
|
+
type: "spinedit",
|
|
10450
|
+
name: "questionBackgroundTransparency",
|
|
10451
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.questionBackgroundTransparency"),
|
|
10452
|
+
descriptionLocation: "hidden",
|
|
10453
|
+
unit: "%",
|
|
10454
|
+
defaultValue: 100,
|
|
10455
|
+
min: 0,
|
|
10456
|
+
max: 100,
|
|
10457
|
+
step: 5
|
|
10458
|
+
}
|
|
10459
|
+
]
|
|
10460
|
+
}, {
|
|
10461
|
+
type: "panel",
|
|
10462
|
+
elements: [
|
|
10463
|
+
{
|
|
10464
|
+
type: "dropdown",
|
|
10465
|
+
name: "--font-family",
|
|
10466
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontFamily"),
|
|
10467
|
+
descriptionLocation: "hidden",
|
|
10468
|
+
choices: ["Open Sans", "Arial"],
|
|
10469
|
+
defaultValue: "Open Sans",
|
|
10470
|
+
allowClear: false
|
|
10471
|
+
},
|
|
10472
|
+
{
|
|
10473
|
+
type: "spinedit",
|
|
10474
|
+
name: "--font-size",
|
|
10475
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.fontSize"),
|
|
10476
|
+
descriptionLocation: "hidden",
|
|
10477
|
+
unit: "%",
|
|
10478
|
+
defaultValue: 100,
|
|
10479
|
+
min: 0,
|
|
10480
|
+
step: 5
|
|
10481
|
+
},
|
|
10482
|
+
{
|
|
10483
|
+
type: "expression",
|
|
10484
|
+
name: "--sjs-font-size",
|
|
10485
|
+
expression: "{--font-size}*16/100+\"px\"",
|
|
10486
|
+
visible: false
|
|
10487
|
+
},
|
|
10488
|
+
]
|
|
10489
|
+
}, {
|
|
10490
|
+
type: "panel",
|
|
10491
|
+
elements: [
|
|
10492
|
+
{
|
|
10493
|
+
type: "spinedit",
|
|
10494
|
+
name: "commonScale",
|
|
10495
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.scale"),
|
|
10496
|
+
descriptionLocation: "hidden",
|
|
10497
|
+
unit: "%",
|
|
10498
|
+
defaultValue: 100,
|
|
10499
|
+
min: 0,
|
|
10500
|
+
step: 5
|
|
10501
|
+
},
|
|
10502
|
+
{
|
|
10503
|
+
type: "expression",
|
|
10504
|
+
name: "--base-unit",
|
|
10505
|
+
expression: "{commonScale}*8/100+\"px\"",
|
|
10506
|
+
visible: false
|
|
10507
|
+
},
|
|
10508
|
+
{
|
|
10509
|
+
type: "spinedit",
|
|
10510
|
+
name: "cornerRadius",
|
|
10511
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.cornerRadius"),
|
|
10512
|
+
descriptionLocation: "hidden",
|
|
10513
|
+
unit: "px",
|
|
10514
|
+
defaultValue: 4,
|
|
10515
|
+
min: 0
|
|
10516
|
+
},
|
|
10517
|
+
{
|
|
10518
|
+
type: "expression",
|
|
10519
|
+
name: "--sjs-corner-radius",
|
|
10520
|
+
expression: "{cornerRadius}+\"px\"",
|
|
10521
|
+
visible: false
|
|
10522
|
+
},
|
|
10523
|
+
]
|
|
10524
|
+
}
|
|
10525
|
+
]
|
|
10526
|
+
}, {
|
|
10527
|
+
type: "panel",
|
|
10528
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.groupAdvanced"),
|
|
10529
|
+
state: "collapsed",
|
|
10530
|
+
elements: [
|
|
10531
|
+
{
|
|
10532
|
+
type: "panel",
|
|
10533
|
+
elements: [
|
|
10534
|
+
{
|
|
10535
|
+
type: "color",
|
|
10536
|
+
name: "--background-dim",
|
|
10537
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.backgroundDimColor"),
|
|
10538
|
+
descriptionLocation: "hidden",
|
|
10539
|
+
defaultValue: "#f3f3f3"
|
|
10540
|
+
}, {
|
|
10541
|
+
type: "fontSettings",
|
|
10542
|
+
name: "surveyTitle",
|
|
10543
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.surveyTitle"),
|
|
10544
|
+
descriptionLocation: "hidden",
|
|
10545
|
+
defaultValue: {
|
|
10546
|
+
color: "#161616",
|
|
10547
|
+
weight: "700",
|
|
10548
|
+
size: 32
|
|
10549
|
+
}
|
|
10550
|
+
}, {
|
|
10551
|
+
type: "fontSettings",
|
|
10552
|
+
name: "pageTitle",
|
|
10553
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.pageTitle"),
|
|
10554
|
+
descriptionLocation: "hidden",
|
|
10555
|
+
defaultValue: {
|
|
10556
|
+
color: "#161616",
|
|
10557
|
+
weight: "700",
|
|
10558
|
+
size: 24
|
|
10559
|
+
}
|
|
10560
|
+
}, {
|
|
10561
|
+
type: "fontSettings",
|
|
10562
|
+
name: "pageDescription",
|
|
10563
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.pageDescription"),
|
|
10564
|
+
descriptionLocation: "hidden",
|
|
10565
|
+
defaultValue: {
|
|
10566
|
+
color: "#161616",
|
|
10567
|
+
size: 16
|
|
10568
|
+
}
|
|
10569
|
+
}
|
|
10570
|
+
]
|
|
10571
|
+
}, {
|
|
10572
|
+
type: "panel",
|
|
10573
|
+
elements: [
|
|
10574
|
+
{
|
|
10575
|
+
type: "elementSettings",
|
|
10576
|
+
name: "questionPanel",
|
|
10577
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.questionPanel"),
|
|
10578
|
+
descriptionLocation: "hidden",
|
|
10579
|
+
defaultValue: {
|
|
10580
|
+
backcolor: "#ffffff",
|
|
10581
|
+
hovercolor: "#f8f8f8",
|
|
10582
|
+
corner: 4,
|
|
10583
|
+
border: "0 1 2 rgba(0, 0, 0, 0.15)"
|
|
10584
|
+
}
|
|
10585
|
+
}, {
|
|
10586
|
+
type: "expression",
|
|
10587
|
+
name: "--background",
|
|
10588
|
+
expression: "{questionPanel.backcolor}",
|
|
10589
|
+
visible: false
|
|
10590
|
+
}, {
|
|
10591
|
+
type: "fontSettings",
|
|
10592
|
+
name: "questionTitle",
|
|
10593
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.questionTitle"),
|
|
10594
|
+
descriptionLocation: "hidden",
|
|
10595
|
+
defaultValue: {
|
|
10596
|
+
color: "#161616",
|
|
10597
|
+
size: 16
|
|
10598
|
+
}
|
|
10599
|
+
}, {
|
|
10600
|
+
type: "fontSettings",
|
|
10601
|
+
name: "questionDescription",
|
|
10602
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.questionDescription"),
|
|
10603
|
+
descriptionLocation: "hidden",
|
|
10604
|
+
defaultValue: {
|
|
10605
|
+
color: "#161616",
|
|
10606
|
+
size: 16
|
|
10607
|
+
}
|
|
10608
|
+
}
|
|
10609
|
+
]
|
|
10610
|
+
}, {
|
|
10611
|
+
type: "panel",
|
|
10612
|
+
elements: [
|
|
10613
|
+
{
|
|
10614
|
+
type: "elementSettings",
|
|
10615
|
+
name: "editorPanel",
|
|
10616
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.editorPanel"),
|
|
10617
|
+
descriptionLocation: "hidden",
|
|
10618
|
+
defaultValue: {
|
|
10619
|
+
backcolor: "#ffffff",
|
|
10620
|
+
hovercolor: "#f8f8f8",
|
|
10621
|
+
corner: 4,
|
|
10622
|
+
border: "0 1 2 rgba(0, 0, 0, 0.15)"
|
|
10623
|
+
}
|
|
10624
|
+
}, {
|
|
10625
|
+
type: "expression",
|
|
10626
|
+
name: "--background-dim-light",
|
|
10627
|
+
expression: "{editorPanel.backcolor}",
|
|
10628
|
+
visible: false
|
|
10629
|
+
}, {
|
|
10630
|
+
type: "fontSettings",
|
|
10631
|
+
name: "editorFont",
|
|
10632
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.editorFont"),
|
|
10633
|
+
descriptionLocation: "hidden",
|
|
10634
|
+
defaultValue: {
|
|
10635
|
+
color: "#161616",
|
|
10636
|
+
size: 16
|
|
10637
|
+
}
|
|
10638
|
+
}
|
|
10639
|
+
]
|
|
10640
|
+
}, {
|
|
10641
|
+
type: "panel",
|
|
10642
|
+
elements: [{
|
|
10643
|
+
type: "panel",
|
|
10644
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.accentBackground"),
|
|
10645
|
+
elements: [
|
|
10646
|
+
{
|
|
10647
|
+
type: "color",
|
|
10648
|
+
name: "--sjs-primary-backcolor",
|
|
10649
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryDefaultColor"),
|
|
10650
|
+
titleLocation: "left",
|
|
10651
|
+
descriptionLocation: "hidden",
|
|
10652
|
+
defaultValue: "#19b394"
|
|
10653
|
+
},
|
|
10654
|
+
{
|
|
10655
|
+
type: "color",
|
|
10656
|
+
name: "--sjs-primary-backcolor-dark",
|
|
10657
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryDarkColor"),
|
|
10658
|
+
titleLocation: "left",
|
|
10659
|
+
descriptionLocation: "hidden",
|
|
10660
|
+
defaultValue: "#14A48B"
|
|
10661
|
+
},
|
|
10662
|
+
{
|
|
10663
|
+
type: "color",
|
|
10664
|
+
name: "--sjs-primary-backcolor-light",
|
|
10665
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryLightColor"),
|
|
10666
|
+
titleLocation: "left",
|
|
10667
|
+
descriptionLocation: "hidden",
|
|
10668
|
+
defaultValue: "#e8f7f4"
|
|
10669
|
+
}
|
|
10670
|
+
]
|
|
10671
|
+
}, {
|
|
10672
|
+
type: "panel",
|
|
10673
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.accentForeground"),
|
|
10674
|
+
elements: [
|
|
10675
|
+
{
|
|
10676
|
+
type: "color",
|
|
10677
|
+
name: "--sjs-primary-forecolor",
|
|
10678
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryForecolor"),
|
|
10679
|
+
titleLocation: "left",
|
|
10680
|
+
descriptionLocation: "hidden",
|
|
10681
|
+
defaultValue: "#ffffff"
|
|
10682
|
+
},
|
|
10683
|
+
{
|
|
10684
|
+
type: "color",
|
|
10685
|
+
name: "--sjs-primary-forecolor-light",
|
|
10686
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.primaryForecolorLight"),
|
|
10687
|
+
titleLocation: "left",
|
|
10688
|
+
descriptionLocation: "hidden",
|
|
10689
|
+
defaultValue: "#ffffff"
|
|
10690
|
+
}
|
|
10691
|
+
]
|
|
10692
|
+
}]
|
|
10693
|
+
}, {
|
|
10694
|
+
type: "panel",
|
|
10695
|
+
elements: [{
|
|
10696
|
+
type: "panel",
|
|
10697
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.linesColors"),
|
|
10698
|
+
elements: [
|
|
10699
|
+
{
|
|
10700
|
+
type: "color",
|
|
10701
|
+
name: "--sjs-border-default",
|
|
10702
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.borderDefault"),
|
|
10703
|
+
titleLocation: "left",
|
|
10704
|
+
descriptionLocation: "hidden",
|
|
10705
|
+
defaultValue: "#d6d6d6"
|
|
10706
|
+
},
|
|
10707
|
+
{
|
|
10708
|
+
type: "color",
|
|
10709
|
+
name: "--sjs-border-light",
|
|
10710
|
+
title: Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("theme.borderLight"),
|
|
10711
|
+
titleLocation: "left",
|
|
10712
|
+
descriptionLocation: "hidden",
|
|
10713
|
+
defaultValue: "#e8e8e8"
|
|
10714
|
+
}
|
|
10715
|
+
]
|
|
10716
|
+
}]
|
|
10717
|
+
}
|
|
10718
|
+
]
|
|
10719
|
+
}]
|
|
10720
|
+
};
|
|
10721
|
+
// Object.keys(this.themeVariables).forEach(varName => {
|
|
10722
|
+
// themeEditorSurveyJSON.elements[1].elements[0].elements.push(<any>{
|
|
10723
|
+
// type: "text",
|
|
10724
|
+
// inputType: varName.indexOf("-unit") === -1 ? "color" : undefined,
|
|
10725
|
+
// title: editorLocalization.getString("theme." + varName),
|
|
10726
|
+
// name: varName,
|
|
10727
|
+
// defaultValue: this.themeVariables[varName]
|
|
10728
|
+
// });
|
|
10729
|
+
// });
|
|
10730
|
+
return themeEditorSurveyJSON;
|
|
10731
|
+
};
|
|
9496
10732
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9497
10733
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
|
|
9498
10734
|
defaultValue: false,
|
|
@@ -9500,10 +10736,10 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9500
10736
|
target.simulator.survey.showInvisibleElements = val;
|
|
9501
10737
|
}
|
|
9502
10738
|
})
|
|
9503
|
-
],
|
|
10739
|
+
], ThemeSurveyTabViewModel.prototype, "showInvisibleElements", void 0);
|
|
9504
10740
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9505
10741
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: true })
|
|
9506
|
-
],
|
|
10742
|
+
], ThemeSurveyTabViewModel.prototype, "showPagesInTestSurveyTab", void 0);
|
|
9507
10743
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9508
10744
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
|
|
9509
10745
|
defaultValue: true,
|
|
@@ -9512,10 +10748,10 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9512
10748
|
target.simulator.isRunning = value;
|
|
9513
10749
|
}
|
|
9514
10750
|
})
|
|
9515
|
-
],
|
|
10751
|
+
], ThemeSurveyTabViewModel.prototype, "isRunning", void 0);
|
|
9516
10752
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9517
10753
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["propertyArray"])()
|
|
9518
|
-
],
|
|
10754
|
+
], ThemeSurveyTabViewModel.prototype, "pageListItems", void 0);
|
|
9519
10755
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9520
10756
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
|
|
9521
10757
|
onSet: function (val, target) {
|
|
@@ -9538,10 +10774,25 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9538
10774
|
target.updatePrevNextPageActionState();
|
|
9539
10775
|
}
|
|
9540
10776
|
})
|
|
9541
|
-
],
|
|
9542
|
-
|
|
10777
|
+
], ThemeSurveyTabViewModel.prototype, "activePage", void 0);
|
|
10778
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
10779
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: "default" })
|
|
10780
|
+
], ThemeSurveyTabViewModel.prototype, "themeName", void 0);
|
|
10781
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
10782
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: "light" })
|
|
10783
|
+
], ThemeSurveyTabViewModel.prototype, "themePalette", void 0);
|
|
10784
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
10785
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: "panel" })
|
|
10786
|
+
], ThemeSurveyTabViewModel.prototype, "themeMode", void 0);
|
|
10787
|
+
return ThemeSurveyTabViewModel;
|
|
9543
10788
|
}(survey_core__WEBPACK_IMPORTED_MODULE_2__["Base"]));
|
|
9544
10789
|
|
|
10790
|
+
function ingectAlpha(baseColor, alpha) {
|
|
10791
|
+
var r = parseInt(baseColor.slice(1, 3), 16);
|
|
10792
|
+
var g = parseInt(baseColor.slice(3, 5), 16);
|
|
10793
|
+
var b = parseInt(baseColor.slice(5, 7), 16);
|
|
10794
|
+
return "rgba(" + r + ", " + g + ", " + b + ", " + alpha + ")";
|
|
10795
|
+
}
|
|
9545
10796
|
|
|
9546
10797
|
|
|
9547
10798
|
/***/ }),
|
|
@@ -11548,6 +12799,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11548
12799
|
/* 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");
|
|
11549
12800
|
/* harmony import */ var _src_components_tabs_translation__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../src/components/tabs/translation */ "./src/components/tabs/translation.ts");
|
|
11550
12801
|
/* harmony import */ var _components_string_editor__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/string-editor */ "./src/components/string-editor.ts");
|
|
12802
|
+
/* harmony import */ var _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/tabs/theme-plugin */ "./src/components/tabs/theme-plugin.ts");
|
|
11551
12803
|
|
|
11552
12804
|
|
|
11553
12805
|
|
|
@@ -11578,6 +12830,7 @@ __webpack_require__(/*! ./components/creator.scss */ "./src/components/creator.s
|
|
|
11578
12830
|
__webpack_require__(/*! ./components/string-editor.scss */ "./src/components/string-editor.scss");
|
|
11579
12831
|
__webpack_require__(/*! ./creator-theme/creator.scss */ "./src/creator-theme/creator.scss");
|
|
11580
12832
|
|
|
12833
|
+
|
|
11581
12834
|
//Obsolete
|
|
11582
12835
|
var CreatorAction = /** @class */ (function (_super) {
|
|
11583
12836
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreatorAction, _super);
|
|
@@ -13031,6 +14284,9 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
13031
14284
|
if (this.showPreviewTab) {
|
|
13032
14285
|
new _components_tabs_test_plugin__WEBPACK_IMPORTED_MODULE_14__["TabTestPlugin"](this);
|
|
13033
14286
|
}
|
|
14287
|
+
if (this.showThemeTab) {
|
|
14288
|
+
new _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_24__["TabThemePlugin"](this);
|
|
14289
|
+
}
|
|
13034
14290
|
if (this.showLogicTab) {
|
|
13035
14291
|
new _components_tabs_logic_plugin__WEBPACK_IMPORTED_MODULE_17__["TabLogicPlugin"](this);
|
|
13036
14292
|
}
|
|
@@ -14660,6 +15916,9 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
14660
15916
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
14661
15917
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: true })
|
|
14662
15918
|
], CreatorBase.prototype, "showTestSurveyTab", void 0);
|
|
15919
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
15920
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
15921
|
+
], CreatorBase.prototype, "showThemeTab", void 0);
|
|
14663
15922
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
14664
15923
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
14665
15924
|
], CreatorBase.prototype, "showEmbeddedSurveyTab", void 0);
|
|
@@ -14774,6 +16033,9 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
14774
16033
|
}
|
|
14775
16034
|
})
|
|
14776
16035
|
], CreatorBase.prototype, "isCreatorDisposed", void 0);
|
|
16036
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
16037
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
16038
|
+
], CreatorBase.prototype, "enableLinkFileEditor", void 0);
|
|
14777
16039
|
return CreatorBase;
|
|
14778
16040
|
}(survey_core__WEBPACK_IMPORTED_MODULE_1__["Base"]));
|
|
14779
16041
|
|
|
@@ -15243,7 +16505,6 @@ var settings = {
|
|
|
15243
16505
|
]
|
|
15244
16506
|
},
|
|
15245
16507
|
image: {
|
|
15246
|
-
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg",
|
|
15247
16508
|
imageFit: "cover",
|
|
15248
16509
|
imageHeight: "auto",
|
|
15249
16510
|
imageWidth: "100%"
|
|
@@ -15333,6 +16594,7 @@ var EmptySurveyCreatorOptions = /** @class */ (function () {
|
|
|
15333
16594
|
};
|
|
15334
16595
|
EmptySurveyCreatorOptions.prototype.onLogicGetTitleCallback = function (expression, displayExpression, text, logicItem) { return text; };
|
|
15335
16596
|
EmptySurveyCreatorOptions.prototype.getTranslationExportedText = function (obj, name, locString, locale, text) { return text; };
|
|
16597
|
+
EmptySurveyCreatorOptions.prototype.uploadFiles = function (files, question, uploadingCallback) { };
|
|
15336
16598
|
return EmptySurveyCreatorOptions;
|
|
15337
16599
|
}());
|
|
15338
16600
|
|
|
@@ -16210,7 +17472,7 @@ var __spreadArray = function (to, from) {
|
|
|
16210
17472
|
/*!******************************!*\
|
|
16211
17473
|
!*** ./src/entries/index.ts ***!
|
|
16212
17474
|
\******************************/
|
|
16213
|
-
/*! 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 */
|
|
17475
|
+
/*! 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, 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, SurveyQuestionEditorDefinition, ObjType, SurveyHelper, ResizeManager, UndoRedoPlugin, undoRedoTransaction, ignoreUndoRedo, UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction, PagesController */
|
|
16214
17476
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16215
17477
|
|
|
16216
17478
|
"use strict";
|
|
@@ -16301,329 +17563,349 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16301
17563
|
/* harmony import */ var _components_tabs_test_plugin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../components/tabs/test-plugin */ "./src/components/tabs/test-plugin.ts");
|
|
16302
17564
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabTestPlugin", function() { return _components_tabs_test_plugin__WEBPACK_IMPORTED_MODULE_10__["TabTestPlugin"]; });
|
|
16303
17565
|
|
|
16304
|
-
/* harmony import */ var
|
|
16305
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17566
|
+
/* harmony import */ var _components_tabs_theme__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../components/tabs/theme */ "./src/components/tabs/theme.ts");
|
|
17567
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Themes", function() { return _components_tabs_theme__WEBPACK_IMPORTED_MODULE_11__["Themes"]; });
|
|
16306
17568
|
|
|
16307
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17569
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThemeSurveyTabViewModel", function() { return _components_tabs_theme__WEBPACK_IMPORTED_MODULE_11__["ThemeSurveyTabViewModel"]; });
|
|
16308
17570
|
|
|
16309
|
-
/* harmony
|
|
17571
|
+
/* harmony import */ var _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../components/tabs/theme-plugin */ "./src/components/tabs/theme-plugin.ts");
|
|
17572
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabThemePlugin", function() { return _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_12__["TabThemePlugin"]; });
|
|
16310
17573
|
|
|
16311
|
-
/* harmony import */ var
|
|
16312
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17574
|
+
/* harmony import */ var _components_tabs_logic__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../components/tabs/logic */ "./src/components/tabs/logic.ts");
|
|
17575
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initLogicOperator", function() { return _components_tabs_logic__WEBPACK_IMPORTED_MODULE_13__["initLogicOperator"]; });
|
|
16313
17576
|
|
|
16314
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17577
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogicEvent", function() { return _components_tabs_logic__WEBPACK_IMPORTED_MODULE_13__["LogicEvent"]; });
|
|
16315
17578
|
|
|
16316
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17579
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogic", function() { return _components_tabs_logic__WEBPACK_IMPORTED_MODULE_13__["SurveyLogic"]; });
|
|
16317
17580
|
|
|
16318
|
-
/* harmony
|
|
17581
|
+
/* harmony import */ var _components_tabs_translation__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../components/tabs/translation */ "./src/components/tabs/translation.ts");
|
|
17582
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationItemBase", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_14__["TranslationItemBase"]; });
|
|
16319
17583
|
|
|
16320
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17584
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationItemString", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_14__["TranslationItemString"]; });
|
|
16321
17585
|
|
|
16322
|
-
/* harmony
|
|
16323
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "translationCss", function() { return _components_tabs_translation_theme__WEBPACK_IMPORTED_MODULE_13__["translationCss"]; });
|
|
17586
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationItem", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_14__["TranslationItem"]; });
|
|
16324
17587
|
|
|
16325
|
-
/* harmony
|
|
16326
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabTranslationPlugin", function() { return _components_tabs_translation_plugin__WEBPACK_IMPORTED_MODULE_14__["TabTranslationPlugin"]; });
|
|
17588
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationGroup", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_14__["TranslationGroup"]; });
|
|
16327
17589
|
|
|
16328
|
-
/* harmony
|
|
16329
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initialSettingsAllowShowEmptyTitleInDesignMode", function() { return _components_tabs_designer__WEBPACK_IMPORTED_MODULE_15__["initialSettingsAllowShowEmptyTitleInDesignMode"]; });
|
|
17590
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Translation", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_14__["Translation"]; });
|
|
16330
17591
|
|
|
16331
|
-
/* harmony
|
|
17592
|
+
/* harmony import */ var _components_tabs_translation_theme__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../components/tabs/translation-theme */ "./src/components/tabs/translation-theme.ts");
|
|
17593
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "translationCss", function() { return _components_tabs_translation_theme__WEBPACK_IMPORTED_MODULE_15__["translationCss"]; });
|
|
16332
17594
|
|
|
16333
|
-
/* harmony import */ var
|
|
16334
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17595
|
+
/* harmony import */ var _components_tabs_translation_plugin__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../components/tabs/translation-plugin */ "./src/components/tabs/translation-plugin.ts");
|
|
17596
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabTranslationPlugin", function() { return _components_tabs_translation_plugin__WEBPACK_IMPORTED_MODULE_16__["TabTranslationPlugin"]; });
|
|
16335
17597
|
|
|
16336
|
-
/* harmony import */ var
|
|
16337
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17598
|
+
/* harmony import */ var _components_tabs_designer__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../components/tabs/designer */ "./src/components/tabs/designer.ts");
|
|
17599
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initialSettingsAllowShowEmptyTitleInDesignMode", function() { return _components_tabs_designer__WEBPACK_IMPORTED_MODULE_17__["initialSettingsAllowShowEmptyTitleInDesignMode"]; });
|
|
16338
17600
|
|
|
16339
|
-
/* harmony
|
|
16340
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabLogicPlugin", function() { return _components_tabs_logic_plugin__WEBPACK_IMPORTED_MODULE_18__["TabLogicPlugin"]; });
|
|
17601
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabDesignerViewModel", function() { return _components_tabs_designer__WEBPACK_IMPORTED_MODULE_17__["TabDesignerViewModel"]; });
|
|
16341
17602
|
|
|
16342
|
-
/* harmony import */ var
|
|
16343
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17603
|
+
/* harmony import */ var _components_tabs_designer_plugin__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../components/tabs/designer-plugin */ "./src/components/tabs/designer-plugin.ts");
|
|
17604
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabDesignerPlugin", function() { return _components_tabs_designer_plugin__WEBPACK_IMPORTED_MODULE_18__["TabDesignerPlugin"]; });
|
|
16344
17605
|
|
|
16345
|
-
/* harmony import */ var
|
|
16346
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17606
|
+
/* harmony import */ var _components_tabs_logic_ui__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ../components/tabs/logic-ui */ "./src/components/tabs/logic-ui.ts");
|
|
17607
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogicUI", function() { return _components_tabs_logic_ui__WEBPACK_IMPORTED_MODULE_19__["SurveyLogicUI"]; });
|
|
16347
17608
|
|
|
16348
|
-
/* harmony import */ var
|
|
16349
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17609
|
+
/* harmony import */ var _components_tabs_logic_plugin__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ../components/tabs/logic-plugin */ "./src/components/tabs/logic-plugin.ts");
|
|
17610
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabLogicPlugin", function() { return _components_tabs_logic_plugin__WEBPACK_IMPORTED_MODULE_20__["TabLogicPlugin"]; });
|
|
16350
17611
|
|
|
16351
|
-
/* harmony import */ var
|
|
16352
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17612
|
+
/* harmony import */ var _components_tabs_logic_theme__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ../components/tabs/logic-theme */ "./src/components/tabs/logic-theme.ts");
|
|
17613
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "logicCss", function() { return _components_tabs_logic_theme__WEBPACK_IMPORTED_MODULE_21__["logicCss"]; });
|
|
16353
17614
|
|
|
16354
|
-
/* harmony import */ var
|
|
16355
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17615
|
+
/* harmony import */ var _components_toolbox_toolbox_tool__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../components/toolbox/toolbox-tool */ "./src/components/toolbox/toolbox-tool.ts");
|
|
17616
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolboxToolViewModel", function() { return _components_toolbox_toolbox_tool__WEBPACK_IMPORTED_MODULE_22__["ToolboxToolViewModel"]; });
|
|
16356
17617
|
|
|
16357
|
-
/* harmony import */ var
|
|
16358
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17618
|
+
/* harmony import */ var _components_page_navigator_page_navigator__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ../components/page-navigator/page-navigator */ "./src/components/page-navigator/page-navigator.ts");
|
|
17619
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PageNavigatorViewModel", function() { return _components_page_navigator_page_navigator__WEBPACK_IMPORTED_MODULE_23__["PageNavigatorViewModel"]; });
|
|
16359
17620
|
|
|
16360
|
-
/* harmony import */ var
|
|
16361
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17621
|
+
/* harmony import */ var _components_page__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ../components/page */ "./src/components/page.ts");
|
|
17622
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PageAdorner", function() { return _components_page__WEBPACK_IMPORTED_MODULE_24__["PageAdorner"]; });
|
|
16362
17623
|
|
|
16363
|
-
/* harmony import */ var
|
|
16364
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17624
|
+
/* harmony import */ var _components_row__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ../components/row */ "./src/components/row.ts");
|
|
17625
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RowViewModel", function() { return _components_row__WEBPACK_IMPORTED_MODULE_25__["RowViewModel"]; });
|
|
16365
17626
|
|
|
16366
|
-
/* harmony import */ var
|
|
16367
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17627
|
+
/* harmony import */ var _components_question__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ../components/question */ "./src/components/question.ts");
|
|
17628
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionAdornerViewModel", function() { return _components_question__WEBPACK_IMPORTED_MODULE_26__["QuestionAdornerViewModel"]; });
|
|
16368
17629
|
|
|
16369
|
-
/* harmony import */ var
|
|
16370
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17630
|
+
/* harmony import */ var _components_question_dropdown__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ../components/question-dropdown */ "./src/components/question-dropdown.ts");
|
|
17631
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionDropdownAdornerViewModel", function() { return _components_question_dropdown__WEBPACK_IMPORTED_MODULE_27__["QuestionDropdownAdornerViewModel"]; });
|
|
16371
17632
|
|
|
16372
|
-
/* harmony import */ var
|
|
16373
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17633
|
+
/* harmony import */ var _components_question_image__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ../components/question-image */ "./src/components/question-image.ts");
|
|
17634
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionImageAdornerViewModel", function() { return _components_question_image__WEBPACK_IMPORTED_MODULE_28__["QuestionImageAdornerViewModel"]; });
|
|
16374
17635
|
|
|
16375
|
-
/* harmony import */ var
|
|
16376
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17636
|
+
/* harmony import */ var _components_question_rating__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ../components/question-rating */ "./src/components/question-rating.ts");
|
|
17637
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionRatingAdornerViewModel", function() { return _components_question_rating__WEBPACK_IMPORTED_MODULE_29__["QuestionRatingAdornerViewModel"]; });
|
|
16377
17638
|
|
|
16378
|
-
/* harmony
|
|
17639
|
+
/* harmony import */ var _components_item_value__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ../components/item-value */ "./src/components/item-value.ts");
|
|
17640
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemValueWrapperViewModel", function() { return _components_item_value__WEBPACK_IMPORTED_MODULE_30__["ItemValueWrapperViewModel"]; });
|
|
16379
17641
|
|
|
16380
|
-
/* harmony import */ var
|
|
16381
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17642
|
+
/* harmony import */ var _components_image_item_value__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ../components/image-item-value */ "./src/components/image-item-value.ts");
|
|
17643
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageItemValueWrapperViewModel", function() { return _components_image_item_value__WEBPACK_IMPORTED_MODULE_31__["ImageItemValueWrapperViewModel"]; });
|
|
16382
17644
|
|
|
16383
|
-
/* harmony
|
|
17645
|
+
/* harmony import */ var _components_matrix_cell__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(/*! ../components/matrix-cell */ "./src/components/matrix-cell.ts");
|
|
17646
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixCellWrapperEditSurvey", function() { return _components_matrix_cell__WEBPACK_IMPORTED_MODULE_32__["MatrixCellWrapperEditSurvey"]; });
|
|
16384
17647
|
|
|
16385
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17648
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixCellWrapperViewModel", function() { return _components_matrix_cell__WEBPACK_IMPORTED_MODULE_32__["MatrixCellWrapperViewModel"]; });
|
|
16386
17649
|
|
|
16387
|
-
/* harmony import */ var
|
|
16388
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17650
|
+
/* harmony import */ var _components_simulator__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ../components/simulator */ "./src/components/simulator.ts");
|
|
17651
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveySimulatorModel", function() { return _components_simulator__WEBPACK_IMPORTED_MODULE_33__["SurveySimulatorModel"]; });
|
|
16389
17652
|
|
|
16390
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17653
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_MONITOR_DPI", function() { return _components_simulator__WEBPACK_IMPORTED_MODULE_33__["DEFAULT_MONITOR_DPI"]; });
|
|
16391
17654
|
|
|
16392
|
-
/* harmony
|
|
16393
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogoImageViewModel", function() { return _components_header_logo_image__WEBPACK_IMPORTED_MODULE_33__["LogoImageViewModel"]; });
|
|
17655
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "simulatorDevices", function() { return _components_simulator__WEBPACK_IMPORTED_MODULE_33__["simulatorDevices"]; });
|
|
16394
17656
|
|
|
16395
|
-
/* harmony import */ var
|
|
16396
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17657
|
+
/* harmony import */ var _components_results__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ../components/results */ "./src/components/results.ts");
|
|
17658
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyResultsItemModel", function() { return _components_results__WEBPACK_IMPORTED_MODULE_34__["SurveyResultsItemModel"]; });
|
|
16397
17659
|
|
|
16398
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17660
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyResultsModel", function() { return _components_results__WEBPACK_IMPORTED_MODULE_34__["SurveyResultsModel"]; });
|
|
16399
17661
|
|
|
16400
|
-
/* harmony
|
|
17662
|
+
/* harmony import */ var _components_header_logo_image__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ../components/header/logo-image */ "./src/components/header/logo-image.ts");
|
|
17663
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogoImageViewModel", function() { return _components_header_logo_image__WEBPACK_IMPORTED_MODULE_35__["LogoImageViewModel"]; });
|
|
16401
17664
|
|
|
16402
|
-
/* harmony import */ var
|
|
16403
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17665
|
+
/* harmony import */ var _components_string_editor__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ../components/string-editor */ "./src/components/string-editor.ts");
|
|
17666
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringItemsNavigatorBase", function() { return _components_string_editor__WEBPACK_IMPORTED_MODULE_36__["StringItemsNavigatorBase"]; });
|
|
16404
17667
|
|
|
16405
|
-
/* harmony
|
|
16406
|
-
|
|
17668
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringEditorConnector", function() { return _components_string_editor__WEBPACK_IMPORTED_MODULE_36__["StringEditorConnector"]; });
|
|
17669
|
+
|
|
17670
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringEditorViewModelBase", function() { return _components_string_editor__WEBPACK_IMPORTED_MODULE_36__["StringEditorViewModelBase"]; });
|
|
17671
|
+
|
|
17672
|
+
/* harmony import */ var _components_embedded_survey__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(/*! ../components/embedded-survey */ "./src/components/embedded-survey.ts");
|
|
17673
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionEmbeddedSurveyModel", function() { return _components_embedded_survey__WEBPACK_IMPORTED_MODULE_37__["QuestionEmbeddedSurveyModel"]; });
|
|
17674
|
+
|
|
17675
|
+
/* harmony import */ var _components_link_value__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(/*! ../components/link-value */ "./src/components/link-value.ts");
|
|
17676
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionLinkValueModel", function() { return _components_link_value__WEBPACK_IMPORTED_MODULE_38__["QuestionLinkValueModel"]; });
|
|
16407
17677
|
|
|
16408
17678
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EditorLocalization", function() { return _editorLocalization__WEBPACK_IMPORTED_MODULE_1__["EditorLocalization"]; });
|
|
16409
17679
|
|
|
16410
17680
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLocString", function() { return _editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"]; });
|
|
16411
17681
|
|
|
16412
|
-
/* harmony import */ var
|
|
16413
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyJSON5", function() { return
|
|
17682
|
+
/* harmony import */ var _json5__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(/*! ../json5 */ "./src/json5.ts");
|
|
17683
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyJSON5", function() { return _json5__WEBPACK_IMPORTED_MODULE_39__["SurveyJSON5"]; });
|
|
17684
|
+
|
|
17685
|
+
/* harmony import */ var _custom_questions_question_spin_editor__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(/*! ../custom-questions/question-spin-editor */ "./src/custom-questions/question-spin-editor.ts");
|
|
17686
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionSpinEditorModel", function() { return _custom_questions_question_spin_editor__WEBPACK_IMPORTED_MODULE_40__["QuestionSpinEditorModel"]; });
|
|
16414
17687
|
|
|
16415
|
-
/* harmony import */ var
|
|
16416
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17688
|
+
/* harmony import */ var _custom_questions_question_color__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(/*! ../custom-questions/question-color */ "./src/custom-questions/question-color.ts");
|
|
17689
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionColorModel", function() { return _custom_questions_question_color__WEBPACK_IMPORTED_MODULE_41__["QuestionColorModel"]; });
|
|
16417
17690
|
|
|
16418
|
-
/* harmony import */ var
|
|
16419
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17691
|
+
/* harmony import */ var _custom_questions_question_file__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(/*! ../custom-questions/question-file */ "./src/custom-questions/question-file.ts");
|
|
17692
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionFileEditorModel", function() { return _custom_questions_question_file__WEBPACK_IMPORTED_MODULE_42__["QuestionFileEditorModel"]; });
|
|
16420
17693
|
|
|
16421
|
-
/* harmony import */ var
|
|
16422
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17694
|
+
/* harmony import */ var _property_grid__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(/*! ../property-grid */ "./src/property-grid/index.ts");
|
|
17695
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setSurveyJSONForPropertyGrid", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["setSurveyJSONForPropertyGrid"]; });
|
|
16423
17696
|
|
|
16424
|
-
/* harmony
|
|
16425
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setSurveyJSONForPropertyGrid", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_41__["setSurveyJSONForPropertyGrid"]; });
|
|
17697
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyEditorSetupValue", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyEditorSetupValue"]; });
|
|
16426
17698
|
|
|
16427
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17699
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCollection", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorCollection"]; });
|
|
16428
17700
|
|
|
16429
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17701
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTitleActionsCreator", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridTitleActionsCreator"]; });
|
|
16430
17702
|
|
|
16431
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17703
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyJSONGenerator", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyJSONGenerator"]; });
|
|
16432
17704
|
|
|
16433
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17705
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridModel", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridModel"]; });
|
|
16434
17706
|
|
|
16435
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17707
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditor", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditor"]; });
|
|
16436
17708
|
|
|
16437
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17709
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBoolean", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorBoolean"]; });
|
|
16438
17710
|
|
|
16439
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17711
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringBase", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorStringBase"]; });
|
|
16440
17712
|
|
|
16441
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17713
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorString", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorString"]; });
|
|
16442
17714
|
|
|
16443
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17715
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridLinkEditor", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridLinkEditor"]; });
|
|
16444
17716
|
|
|
16445
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorNumber", function() { return
|
|
17717
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorNumber", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorNumber"]; });
|
|
16446
17718
|
|
|
16447
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorImageSize", function() { return
|
|
17719
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorImageSize", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorImageSize"]; });
|
|
16448
17720
|
|
|
16449
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorText", function() { return
|
|
17721
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorText", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorText"]; });
|
|
16450
17722
|
|
|
16451
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorHtml", function() { return
|
|
17723
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorHtml", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorHtml"]; });
|
|
16452
17724
|
|
|
16453
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorColor", function() { return
|
|
17725
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorColor", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorColor"]; });
|
|
16454
17726
|
|
|
16455
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringArray", function() { return
|
|
17727
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringArray", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorStringArray"]; });
|
|
16456
17728
|
|
|
16457
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorDropdown", function() { return
|
|
17729
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorDropdown", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorDropdown"]; });
|
|
16458
17730
|
|
|
16459
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorSet", function() { return
|
|
17731
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorSet", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorSet"]; });
|
|
16460
17732
|
|
|
16461
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorPage", function() { return
|
|
17733
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorPage", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorPage"]; });
|
|
16462
17734
|
|
|
16463
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestion", function() { return
|
|
17735
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestion", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorQuestion"]; });
|
|
16464
17736
|
|
|
16465
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionSelectBase", function() { return
|
|
17737
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionSelectBase", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorQuestionSelectBase"]; });
|
|
16466
17738
|
|
|
16467
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionValue", function() { return
|
|
17739
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionValue", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorQuestionValue"]; });
|
|
16468
17740
|
|
|
16469
|
-
/* harmony import */ var
|
|
16470
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorExpression", function() { return
|
|
17741
|
+
/* harmony import */ var _property_grid_condition__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(/*! ../property-grid/condition */ "./src/property-grid/condition.ts");
|
|
17742
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorExpression", function() { return _property_grid_condition__WEBPACK_IMPORTED_MODULE_44__["PropertyGridEditorExpression"]; });
|
|
16471
17743
|
|
|
16472
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCondition", function() { return
|
|
17744
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCondition", function() { return _property_grid_condition__WEBPACK_IMPORTED_MODULE_44__["PropertyGridEditorCondition"]; });
|
|
16473
17745
|
|
|
16474
|
-
/* harmony import */ var
|
|
16475
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrix", function() { return
|
|
17746
|
+
/* harmony import */ var _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(/*! ../property-grid/matrices */ "./src/property-grid/matrices.ts");
|
|
17747
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrix", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrix"]; });
|
|
16476
17748
|
|
|
16477
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixItemValues", function() { return
|
|
17749
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixItemValues", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixItemValues"]; });
|
|
16478
17750
|
|
|
16479
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixRateValues", function() { return
|
|
17751
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixRateValues", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixRateValues"]; });
|
|
16480
17752
|
|
|
16481
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixColumns", function() { return
|
|
17753
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixColumns", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixColumns"]; });
|
|
16482
17754
|
|
|
16483
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixPages", function() { return
|
|
17755
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixPages", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixPages"]; });
|
|
16484
17756
|
|
|
16485
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixCalculatedValues", function() { return
|
|
17757
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixCalculatedValues", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixCalculatedValues"]; });
|
|
16486
17758
|
|
|
16487
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixHtmlConditions", function() { return
|
|
17759
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixHtmlConditions", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixHtmlConditions"]; });
|
|
16488
17760
|
|
|
16489
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixUrlConditions", function() { return
|
|
17761
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixUrlConditions", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixUrlConditions"]; });
|
|
16490
17762
|
|
|
16491
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixMutlipleTextItems", function() { return
|
|
17763
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixMutlipleTextItems", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixMutlipleTextItems"]; });
|
|
16492
17764
|
|
|
16493
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixMultipleTypes", function() { return
|
|
17765
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixMultipleTypes", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixMultipleTypes"]; });
|
|
16494
17766
|
|
|
16495
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixValidators", function() { return
|
|
17767
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixValidators", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixValidators"]; });
|
|
16496
17768
|
|
|
16497
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixTriggers", function() { return
|
|
17769
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixTriggers", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixTriggers"]; });
|
|
16498
17770
|
|
|
16499
|
-
/* harmony import */ var
|
|
16500
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBindings", function() { return
|
|
17771
|
+
/* harmony import */ var _property_grid_bindings__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(/*! ../property-grid/bindings */ "./src/property-grid/bindings.ts");
|
|
17772
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBindings", function() { return _property_grid_bindings__WEBPACK_IMPORTED_MODULE_46__["PropertyGridEditorBindings"]; });
|
|
16501
17773
|
|
|
16502
|
-
/* harmony import */ var
|
|
16503
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridViewModel", function() { return
|
|
17774
|
+
/* harmony import */ var _property_grid_property_grid_view_model__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(/*! ../property-grid/property-grid-view-model */ "./src/property-grid/property-grid-view-model.ts");
|
|
17775
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridViewModel", function() { return _property_grid_property_grid_view_model__WEBPACK_IMPORTED_MODULE_47__["PropertyGridViewModel"]; });
|
|
16504
17776
|
|
|
16505
|
-
/* harmony import */ var
|
|
16506
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelectorItem", function() { return
|
|
17777
|
+
/* harmony import */ var _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(/*! ../property-grid/object-selector */ "./src/property-grid/object-selector.ts");
|
|
17778
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelectorItem", function() { return _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_48__["ObjectSelectorItem"]; });
|
|
16507
17779
|
|
|
16508
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelector", function() { return
|
|
17780
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelector", function() { return _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_48__["ObjectSelector"]; });
|
|
16509
17781
|
|
|
16510
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelectorModel", function() { return
|
|
17782
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelectorModel", function() { return _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_48__["ObjectSelectorModel"]; });
|
|
16511
17783
|
|
|
16512
|
-
/* harmony import */ var
|
|
16513
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionRestfull", function() { return
|
|
17784
|
+
/* harmony import */ var _property_grid_restfull__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(/*! ../property-grid/restfull */ "./src/property-grid/restfull.ts");
|
|
17785
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionRestfull", function() { return _property_grid_restfull__WEBPACK_IMPORTED_MODULE_49__["PropertyGridEditorQuestionRestfull"]; });
|
|
16514
17786
|
|
|
16515
|
-
/* harmony import */ var
|
|
16516
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditorBase", function() { return
|
|
17787
|
+
/* harmony import */ var _property_grid_values__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(/*! ../property-grid/values */ "./src/property-grid/values.ts");
|
|
17788
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditorBase", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_50__["PropertyGridValueEditorBase"]; });
|
|
16517
17789
|
|
|
16518
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridCellsEditor", function() { return
|
|
17790
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridCellsEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_50__["PropertyGridCellsEditor"]; });
|
|
16519
17791
|
|
|
16520
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditor", function() { return
|
|
17792
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_50__["PropertyGridValueEditor"]; });
|
|
16521
17793
|
|
|
16522
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridRowValueEditor", function() { return
|
|
17794
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridRowValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_50__["PropertyGridRowValueEditor"]; });
|
|
16523
17795
|
|
|
16524
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridPanelValueEditor", function() { return
|
|
17796
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridPanelValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_50__["PropertyGridPanelValueEditor"]; });
|
|
16525
17797
|
|
|
16526
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTriggerValueEditor", function() { return
|
|
17798
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTriggerValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_50__["PropertyGridTriggerValueEditor"]; });
|
|
16527
17799
|
|
|
16528
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTriggerValueInLogicEditor", function() { return
|
|
17800
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTriggerValueInLogicEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_50__["PropertyGridTriggerValueInLogicEditor"]; });
|
|
16529
17801
|
|
|
16530
|
-
/* harmony import */ var
|
|
16531
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propertyGridCss", function() { return
|
|
17802
|
+
/* harmony import */ var _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(/*! ../property-grid-theme/property-grid */ "./src/property-grid-theme/property-grid.ts");
|
|
17803
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propertyGridCss", function() { return _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_51__["propertyGridCss"]; });
|
|
16532
17804
|
|
|
16533
|
-
/* harmony import */ var
|
|
16534
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionConverter", function() { return
|
|
17805
|
+
/* harmony import */ var _questionconverter__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(/*! ../questionconverter */ "./src/questionconverter.ts");
|
|
17806
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionConverter", function() { return _questionconverter__WEBPACK_IMPORTED_MODULE_52__["QuestionConverter"]; });
|
|
16535
17807
|
|
|
16536
|
-
/* harmony import */ var
|
|
16537
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return
|
|
17808
|
+
/* harmony import */ var _svgbundle__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(/*! ../svgbundle */ "./src/svgbundle.ts");
|
|
17809
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return _svgbundle__WEBPACK_IMPORTED_MODULE_53__["svgBundle"]; });
|
|
16538
17810
|
|
|
16539
|
-
/* harmony import */ var
|
|
16540
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorker", function() { return
|
|
17811
|
+
/* harmony import */ var _textWorker__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(/*! ../textWorker */ "./src/textWorker.ts");
|
|
17812
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorker", function() { return _textWorker__WEBPACK_IMPORTED_MODULE_54__["SurveyTextWorker"]; });
|
|
16541
17813
|
|
|
16542
|
-
/* harmony import */ var
|
|
16543
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolboxCategory", function() { return
|
|
17814
|
+
/* harmony import */ var _toolbox__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(/*! ../toolbox */ "./src/toolbox.ts");
|
|
17815
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolboxCategory", function() { return _toolbox__WEBPACK_IMPORTED_MODULE_55__["QuestionToolboxCategory"]; });
|
|
16544
17816
|
|
|
16545
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolboxItem", function() { return
|
|
17817
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolboxItem", function() { return _toolbox__WEBPACK_IMPORTED_MODULE_55__["QuestionToolboxItem"]; });
|
|
16546
17818
|
|
|
16547
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolbox", function() { return
|
|
17819
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolbox", function() { return _toolbox__WEBPACK_IMPORTED_MODULE_55__["QuestionToolbox"]; });
|
|
16548
17820
|
|
|
16549
|
-
/* harmony import */ var
|
|
16550
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarModel", function() { return
|
|
17821
|
+
/* harmony import */ var _components_side_bar_side_bar_model__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(/*! ../components/side-bar/side-bar-model */ "./src/components/side-bar/side-bar-model.ts");
|
|
17822
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarModel", function() { return _components_side_bar_side_bar_model__WEBPACK_IMPORTED_MODULE_56__["SidebarModel"]; });
|
|
16551
17823
|
|
|
16552
|
-
/* harmony import */ var
|
|
16553
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarTabModel", function() { return
|
|
17824
|
+
/* harmony import */ var _components_side_bar_side_bar_tab_model__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../components/side-bar/side-bar-tab-model */ "./src/components/side-bar/side-bar-tab-model.ts");
|
|
17825
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarTabModel", function() { return _components_side_bar_side_bar_tab_model__WEBPACK_IMPORTED_MODULE_57__["SidebarTabModel"]; });
|
|
16554
17826
|
|
|
16555
|
-
/* harmony import */ var
|
|
16556
|
-
/* empty/unused harmony star reexport *//* harmony import */ var
|
|
16557
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemValue", function() { return
|
|
17827
|
+
/* harmony import */ var _utils_events__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(/*! ../utils/events */ "./src/utils/events.ts");
|
|
17828
|
+
/* empty/unused harmony star reexport *//* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
17829
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemValue", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["getNextItemValue"]; });
|
|
16558
17830
|
|
|
16559
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemText", function() { return
|
|
17831
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemText", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["getNextItemText"]; });
|
|
16560
17832
|
|
|
16561
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextValue", function() { return
|
|
17833
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextValue", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["getNextValue"]; });
|
|
16562
17834
|
|
|
16563
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findParentNode", function() { return
|
|
17835
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findParentNode", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["findParentNode"]; });
|
|
16564
17836
|
|
|
16565
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "focusFirstControl", function() { return
|
|
17837
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "focusFirstControl", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["focusFirstControl"]; });
|
|
16566
17838
|
|
|
16567
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFirstNonTextElement", function() { return
|
|
17839
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFirstNonTextElement", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["getFirstNonTextElement"]; });
|
|
16568
17840
|
|
|
16569
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNodesFromKoComponentInfo", function() { return
|
|
17841
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNodesFromKoComponentInfo", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["getNodesFromKoComponentInfo"]; });
|
|
16570
17842
|
|
|
16571
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propertyExists", function() { return
|
|
17843
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propertyExists", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["propertyExists"]; });
|
|
16572
17844
|
|
|
16573
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isPropertyVisible", function() { return
|
|
17845
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isPropertyVisible", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["isPropertyVisible"]; });
|
|
16574
17846
|
|
|
16575
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "toggleHovered", function() { return
|
|
17847
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "toggleHovered", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["toggleHovered"]; });
|
|
16576
17848
|
|
|
16577
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clearNewLines", function() { return
|
|
17849
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clearNewLines", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["clearNewLines"]; });
|
|
16578
17850
|
|
|
16579
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "select", function() { return
|
|
17851
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "select", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["select"]; });
|
|
16580
17852
|
|
|
16581
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyObject", function() { return
|
|
17853
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyObject", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["copyObject"]; });
|
|
16582
17854
|
|
|
16583
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyCssClasses", function() { return
|
|
17855
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyCssClasses", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["copyCssClasses"]; });
|
|
16584
17856
|
|
|
16585
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assignDefaultV2Classes", function() { return
|
|
17857
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assignDefaultV2Classes", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["assignDefaultV2Classes"]; });
|
|
16586
17858
|
|
|
16587
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "wrapTextByCurlyBraces", function() { return
|
|
17859
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "wrapTextByCurlyBraces", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["wrapTextByCurlyBraces"]; });
|
|
16588
17860
|
|
|
16589
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "capitalize", function() { return
|
|
17861
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "capitalize", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["capitalize"]; });
|
|
16590
17862
|
|
|
16591
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "notShortCircuitAnd", function() { return
|
|
17863
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "notShortCircuitAnd", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["notShortCircuitAnd"]; });
|
|
16592
17864
|
|
|
16593
|
-
/* harmony
|
|
16594
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return _question_editor_definition__WEBPACK_IMPORTED_MODULE_58__["SurveyQuestionEditorDefinition"]; });
|
|
17865
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "imageMimeTypes", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["imageMimeTypes"]; });
|
|
16595
17866
|
|
|
16596
|
-
/* harmony
|
|
16597
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjType", function() { return _survey_helper__WEBPACK_IMPORTED_MODULE_59__["ObjType"]; });
|
|
17867
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getAcceptedTypesByContentMode", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["getAcceptedTypesByContentMode"]; });
|
|
16598
17868
|
|
|
16599
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17869
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getQuestionFromObj", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["getQuestionFromObj"]; });
|
|
16600
17870
|
|
|
16601
|
-
/* harmony import */ var
|
|
16602
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17871
|
+
/* harmony import */ var _question_editor_definition__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(/*! ../question-editor/definition */ "./src/question-editor/definition.ts");
|
|
17872
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return _question_editor_definition__WEBPACK_IMPORTED_MODULE_60__["SurveyQuestionEditorDefinition"]; });
|
|
16603
17873
|
|
|
16604
|
-
/* harmony import */ var
|
|
16605
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17874
|
+
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(/*! ../survey-helper */ "./src/survey-helper.ts");
|
|
17875
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjType", function() { return _survey_helper__WEBPACK_IMPORTED_MODULE_61__["ObjType"]; });
|
|
16606
17876
|
|
|
16607
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17877
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyHelper", function() { return _survey_helper__WEBPACK_IMPORTED_MODULE_61__["SurveyHelper"]; });
|
|
16608
17878
|
|
|
16609
|
-
/* harmony
|
|
17879
|
+
/* harmony import */ var _utils_resizer__WEBPACK_IMPORTED_MODULE_62__ = __webpack_require__(/*! ../utils/resizer */ "./src/utils/resizer.ts");
|
|
17880
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResizeManager", function() { return _utils_resizer__WEBPACK_IMPORTED_MODULE_62__["ResizeManager"]; });
|
|
16610
17881
|
|
|
16611
|
-
/* harmony import */ var
|
|
16612
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17882
|
+
/* harmony import */ var _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_63__ = __webpack_require__(/*! ../plugins/undo-redo */ "./src/plugins/undo-redo/index.ts");
|
|
17883
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoPlugin", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_63__["UndoRedoPlugin"]; });
|
|
16613
17884
|
|
|
16614
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17885
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "undoRedoTransaction", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_63__["undoRedoTransaction"]; });
|
|
16615
17886
|
|
|
16616
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17887
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ignoreUndoRedo", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_63__["ignoreUndoRedo"]; });
|
|
16617
17888
|
|
|
16618
|
-
/* harmony
|
|
17889
|
+
/* harmony import */ var _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_64__ = __webpack_require__(/*! ../plugins/undo-redo/undo-redo-manager */ "./src/plugins/undo-redo/undo-redo-manager.ts");
|
|
17890
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoManager", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_64__["UndoRedoManager"]; });
|
|
16619
17891
|
|
|
16620
|
-
/* harmony
|
|
16621
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PagesController", function() { return _pages_controller__WEBPACK_IMPORTED_MODULE_63__["PagesController"]; });
|
|
17892
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Transaction", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_64__["Transaction"]; });
|
|
16622
17893
|
|
|
16623
|
-
/* harmony
|
|
16624
|
-
|
|
17894
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoAction", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_64__["UndoRedoAction"]; });
|
|
17895
|
+
|
|
17896
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoArrayAction", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_64__["UndoRedoArrayAction"]; });
|
|
17897
|
+
|
|
17898
|
+
/* harmony import */ var _pages_controller__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ../pages-controller */ "./src/pages-controller.ts");
|
|
17899
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PagesController", function() { return _pages_controller__WEBPACK_IMPORTED_MODULE_65__["PagesController"]; });
|
|
17900
|
+
|
|
17901
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
17902
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_66___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_66__);
|
|
16625
17903
|
var Version;
|
|
16626
|
-
Version = "" + "1.9.
|
|
17904
|
+
Version = "" + "1.9.89";
|
|
17905
|
+
//should be loaded before other styles for easier override
|
|
17906
|
+
__webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
|
|
17907
|
+
|
|
17908
|
+
|
|
16627
17909
|
|
|
16628
17910
|
|
|
16629
17911
|
|
|
@@ -16703,8 +17985,8 @@ __webpack_require__(/*! ../property-grid-theme/property-grid.scss */ "./src/prop
|
|
|
16703
17985
|
__webpack_require__(/*! ../utils/design.scss */ "./src/utils/design.scss");
|
|
16704
17986
|
__webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
|
|
16705
17987
|
|
|
16706
|
-
|
|
16707
|
-
Object(
|
|
17988
|
+
survey_core__WEBPACK_IMPORTED_MODULE_66__["settings"].supportCreatorV2 = true;
|
|
17989
|
+
Object(survey_core__WEBPACK_IMPORTED_MODULE_66__["checkLibraryVersion"])("" + "1.9.89", "survey-creator-core");
|
|
16708
17990
|
|
|
16709
17991
|
|
|
16710
17992
|
/***/ }),
|
|
@@ -18815,6 +20097,7 @@ var enStrings = {
|
|
|
18815
20097
|
newPanelName: "panel",
|
|
18816
20098
|
newTextItemName: "text",
|
|
18817
20099
|
testSurvey: "Preview",
|
|
20100
|
+
themeSurvey: "Themes",
|
|
18818
20101
|
defaultV2Theme: "Default",
|
|
18819
20102
|
modernTheme: "Modern",
|
|
18820
20103
|
defaultTheme: "Default (legacy)",
|
|
@@ -18868,6 +20151,7 @@ var enStrings = {
|
|
|
18868
20151
|
propertyEditorError: "Error",
|
|
18869
20152
|
saveError: "Error! Editor content is not saved.",
|
|
18870
20153
|
translationPropertyGridTitle: "Language Settings",
|
|
20154
|
+
previewPropertyGridTitle: "Theme Settings",
|
|
18871
20155
|
translationLanguages: "Languages",
|
|
18872
20156
|
translationAddLanguage: "Select language to translate",
|
|
18873
20157
|
translationShowAllStrings: "All Strings",
|
|
@@ -18886,6 +20170,8 @@ var enStrings = {
|
|
|
18886
20170
|
htmlPlaceHolder: "HTML content will be here.",
|
|
18887
20171
|
panelPlaceHolder: "Drop a question from the toolbox here.",
|
|
18888
20172
|
surveyPlaceHolder: "The survey is empty. Drag an element from the toolbox or click the button below.",
|
|
20173
|
+
imagePlaceHolder: "Drag and drop an image here or click the button below and choose an image to upload",
|
|
20174
|
+
imageChooseImage: "Choose Image",
|
|
18889
20175
|
addNewTypeQuestion: "Add {0}",
|
|
18890
20176
|
chooseLogoPlaceholder: "[LOGO]",
|
|
18891
20177
|
auto: "auto",
|
|
@@ -19016,6 +20302,7 @@ var enStrings = {
|
|
|
19016
20302
|
propertyIsEmpty: "Please enter a value",
|
|
19017
20303
|
propertyIsNoUnique: "Please enter a unique value",
|
|
19018
20304
|
propertyNameIsNotUnique: "Please enter a unique name",
|
|
20305
|
+
propertyNameIsIncorrect: "Do not use reserved words: \"item\", \"choice\", \"panel\", \"row\".",
|
|
19019
20306
|
listIsEmpty: "No items have been added yet",
|
|
19020
20307
|
"listIsEmpty@choices": "No choices have been added yet",
|
|
19021
20308
|
"addNew@choices": "Add a choice",
|
|
@@ -19397,6 +20684,7 @@ var enStrings = {
|
|
|
19397
20684
|
progressTop: "Panel navigator + Progress bar at the top",
|
|
19398
20685
|
progressBottom: "Panel navigator + Progress bar at the bottom",
|
|
19399
20686
|
progressTopBottom: "Panel navigator + Progress bar at the top and bottom",
|
|
20687
|
+
tab: "Tabs",
|
|
19400
20688
|
horizontal: "Horizontal",
|
|
19401
20689
|
vertical: "Vertical",
|
|
19402
20690
|
top: "Top",
|
|
@@ -19513,7 +20801,16 @@ var enStrings = {
|
|
|
19513
20801
|
buttons: "Buttons",
|
|
19514
20802
|
dropdown: "Dropdown"
|
|
19515
20803
|
},
|
|
19516
|
-
rateColorMode: { default: "Default" }
|
|
20804
|
+
rateColorMode: { default: "Default" },
|
|
20805
|
+
autoGenerate: {
|
|
20806
|
+
"true": "Generate",
|
|
20807
|
+
"false": "Enter manually"
|
|
20808
|
+
},
|
|
20809
|
+
rateType: {
|
|
20810
|
+
labels: "Labels",
|
|
20811
|
+
stars: "Stars",
|
|
20812
|
+
smileys: "Smileys"
|
|
20813
|
+
},
|
|
19517
20814
|
},
|
|
19518
20815
|
// Operators
|
|
19519
20816
|
op: {
|
|
@@ -19674,7 +20971,61 @@ var enStrings = {
|
|
|
19674
20971
|
showCaption: "Show caption",
|
|
19675
20972
|
iconName: "Icon name",
|
|
19676
20973
|
iconSize: "Icon size" // Auto-generated string
|
|
19677
|
-
}
|
|
20974
|
+
},
|
|
20975
|
+
theme: {
|
|
20976
|
+
"--background": "Background Color",
|
|
20977
|
+
"--background-dim-light": "Background Dim Light Color",
|
|
20978
|
+
"--primary-foreground": "Primary Foreground Color",
|
|
20979
|
+
"--foreground": "Foreground Color",
|
|
20980
|
+
"--base-unit": "Base Unit",
|
|
20981
|
+
groupGeneral: "General",
|
|
20982
|
+
groupAdvanced: "Advanced",
|
|
20983
|
+
"themeName": "Theme",
|
|
20984
|
+
"themeMode": "Modes",
|
|
20985
|
+
"themeModePanels": "Panels",
|
|
20986
|
+
"themeModeLightweight": "Lightweight",
|
|
20987
|
+
"themePaletteLight": "Light",
|
|
20988
|
+
"themePaletteDark": "Dark",
|
|
20989
|
+
primaryColor: "Accent Color",
|
|
20990
|
+
primaryDefaultColor: "Default",
|
|
20991
|
+
primaryDarkColor: "Hover",
|
|
20992
|
+
primaryLightColor: "Selected",
|
|
20993
|
+
"backgroundDimColor": "Background Color",
|
|
20994
|
+
"backgroundImage": "Background Image",
|
|
20995
|
+
"backgroundImageFitAuto": "Auto",
|
|
20996
|
+
"backgroundImageFitCover": "Cover",
|
|
20997
|
+
"backgroundImageFitContain": "Contain",
|
|
20998
|
+
"backgroundOpacity": "Opacity",
|
|
20999
|
+
"panelBackgroundTransparency": "Panel Background Transparency",
|
|
21000
|
+
"questionBackgroundTransparency": "Question Background Transparency",
|
|
21001
|
+
questionPanel: "Question Panel",
|
|
21002
|
+
questionTitle: "Question Title Font",
|
|
21003
|
+
questionDescription: "Question Description Font",
|
|
21004
|
+
editorPanel: "Editor",
|
|
21005
|
+
editorFont: "Editor Font",
|
|
21006
|
+
backcolor: "Default Background",
|
|
21007
|
+
hovercolor: "Hover Background",
|
|
21008
|
+
borderDecoration: "Border Decoration",
|
|
21009
|
+
accentBackground: "Accent Background",
|
|
21010
|
+
accentForeground: "Accent Foreground",
|
|
21011
|
+
primaryForecolor: "Default Color",
|
|
21012
|
+
primaryForecolorLight: "Disabled Color",
|
|
21013
|
+
linesColors: "Lines",
|
|
21014
|
+
borderDefault: "Major",
|
|
21015
|
+
borderLight: "Minor",
|
|
21016
|
+
fontFamily: "Font Family",
|
|
21017
|
+
fontSize: "Font Size",
|
|
21018
|
+
color: "Color",
|
|
21019
|
+
size: "Size",
|
|
21020
|
+
fontWeightRegular: "Regular",
|
|
21021
|
+
fontWeightSemiBold: "Semi-Bold",
|
|
21022
|
+
fontWeightBold: "Bold",
|
|
21023
|
+
scale: "Scale",
|
|
21024
|
+
cornerRadius: "Corner Radius",
|
|
21025
|
+
surveyTitle: "Survey Title Font",
|
|
21026
|
+
pageTitle: "Page Title Font",
|
|
21027
|
+
pageDescription: "Page Description Font"
|
|
21028
|
+
},
|
|
19678
21029
|
};
|
|
19679
21030
|
// Uncomment the line below if you create a custom dictionary.
|
|
19680
21031
|
// Replace "en" with a custom locale code (for example, "fr" or "de"),
|
|
@@ -20269,6 +21620,7 @@ var UndoRedoAction = /** @class */ (function () {
|
|
|
20269
21620
|
this._oldValue = _oldValue;
|
|
20270
21621
|
this._newValue = _newValue;
|
|
20271
21622
|
this._sender = _sender;
|
|
21623
|
+
this.tickCount = new Date().getTime();
|
|
20272
21624
|
}
|
|
20273
21625
|
UndoRedoAction.prototype.apply = function () {
|
|
20274
21626
|
this._sender[this._propertyName] = this._newValue;
|
|
@@ -20291,9 +21643,12 @@ var UndoRedoAction = /** @class */ (function () {
|
|
|
20291
21643
|
var prop = survey_core__WEBPACK_IMPORTED_MODULE_0__["Serializer"].findProperty(sender.getType(), propertyName);
|
|
20292
21644
|
if (!prop || (prop.type !== "string" && prop.type !== "text"))
|
|
20293
21645
|
return false;
|
|
21646
|
+
if (new Date().getTime() - this.tickCount > UndoRedoAction.maximumMergeTime)
|
|
21647
|
+
return false;
|
|
20294
21648
|
this._newValue = newValue;
|
|
20295
21649
|
return true;
|
|
20296
21650
|
};
|
|
21651
|
+
UndoRedoAction.maximumMergeTime = 1000;
|
|
20297
21652
|
return UndoRedoAction;
|
|
20298
21653
|
}());
|
|
20299
21654
|
|
|
@@ -22370,7 +23725,7 @@ var FastEntryEditor = /** @class */ (function (_super) {
|
|
|
22370
23725
|
/*!************************************!*\
|
|
22371
23726
|
!*** ./src/property-grid/index.ts ***!
|
|
22372
23727
|
\************************************/
|
|
22373
|
-
/*! exports provided: setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridEditorNumber, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue */
|
|
23728
|
+
/*! 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 */
|
|
22374
23729
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22375
23730
|
|
|
22376
23731
|
"use strict";
|
|
@@ -22385,6 +23740,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22385
23740
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBoolean", function() { return PropertyGridEditorBoolean; });
|
|
22386
23741
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringBase", function() { return PropertyGridEditorStringBase; });
|
|
22387
23742
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorString", function() { return PropertyGridEditorString; });
|
|
23743
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridLinkEditor", function() { return PropertyGridLinkEditor; });
|
|
22388
23744
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorNumber", function() { return PropertyGridEditorNumber; });
|
|
22389
23745
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorImageSize", function() { return PropertyGridEditorImageSize; });
|
|
22390
23746
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorText", function() { return PropertyGridEditorText; });
|
|
@@ -22408,6 +23764,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22408
23764
|
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../survey-helper */ "./src/survey-helper.ts");
|
|
22409
23765
|
/* harmony import */ var _question_editor_definition__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../question-editor/definition */ "./src/question-editor/definition.ts");
|
|
22410
23766
|
/* harmony import */ var _description_parser__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./description-parser */ "./src/property-grid/description-parser.ts");
|
|
23767
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
23768
|
+
|
|
22411
23769
|
|
|
22412
23770
|
|
|
22413
23771
|
|
|
@@ -22921,6 +24279,9 @@ var PropertyGridModel = /** @class */ (function () {
|
|
|
22921
24279
|
if (options === void 0) { options = new _creator_settings__WEBPACK_IMPORTED_MODULE_6__["EmptySurveyCreatorOptions"](); }
|
|
22922
24280
|
this.isCellCreating = false;
|
|
22923
24281
|
this.options = options;
|
|
24282
|
+
if (this.options.enableLinkFileEditor) {
|
|
24283
|
+
PropertyGridEditorCollection.register(new PropertyGridLinkEditor());
|
|
24284
|
+
}
|
|
22924
24285
|
this.obj = obj;
|
|
22925
24286
|
}
|
|
22926
24287
|
PropertyGridModel.prototype.refresh = function () {
|
|
@@ -23073,7 +24434,15 @@ var PropertyGridModel = /** @class */ (function () {
|
|
|
23073
24434
|
_this.currentlySelectedProperty = options.question.name;
|
|
23074
24435
|
_this.currentlySelectedPanel = options.question.parent;
|
|
23075
24436
|
});
|
|
24437
|
+
this.survey.onUploadFiles.add(function (_, options) {
|
|
24438
|
+
var callback = function (status, data) { return options.callback(status, [{ content: data, file: options.files[0] }]); };
|
|
24439
|
+
var obj = options.question.obj.getType() == "image" ? options.question.obj : (options.question.obj.getType() == "imageitemvalue" ? options.question.obj.locOwner : undefined);
|
|
24440
|
+
_this.options.uploadFiles(options.files, obj, callback);
|
|
24441
|
+
});
|
|
23076
24442
|
this.survey.getAllQuestions().map(function (q) { return q.allowRootStyle = false; });
|
|
24443
|
+
this.survey.onQuestionCreated.add(function (_, opt) {
|
|
24444
|
+
opt.question.allowRootStyle = false;
|
|
24445
|
+
});
|
|
23077
24446
|
this.options.onPropertyGridSurveyCreatedCallback(this.obj, this.survey);
|
|
23078
24447
|
};
|
|
23079
24448
|
Object.defineProperty(PropertyGridModel.prototype, "options", {
|
|
@@ -23131,9 +24500,10 @@ var PropertyGridModel = /** @class */ (function () {
|
|
|
23131
24500
|
return res;
|
|
23132
24501
|
};
|
|
23133
24502
|
PropertyGridModel.prototype.validateQuestionValue = function (obj, question, prop, val) {
|
|
23134
|
-
if (question.isRequired && (survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isValueEmpty(val) || question["valueChangingEmpty"]))
|
|
24503
|
+
if (question.isRequired && (survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isValueEmpty(val) || question["valueChangingEmpty"]))
|
|
23135
24504
|
return _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("pe.propertyIsEmpty");
|
|
23136
|
-
|
|
24505
|
+
if (this.isPropNameInValid(obj, prop, val) || question["nameHasError"])
|
|
24506
|
+
return _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("pe.propertyNameIsIncorrect");
|
|
23137
24507
|
var editorError = PropertyGridEditorCollection.validateValue(obj, question, prop, val);
|
|
23138
24508
|
if (!!editorError)
|
|
23139
24509
|
return editorError;
|
|
@@ -23160,20 +24530,25 @@ var PropertyGridModel = /** @class */ (function () {
|
|
|
23160
24530
|
options.value = changingOptions.newValue;
|
|
23161
24531
|
if (q.property.isRequired) {
|
|
23162
24532
|
var isEmpty = survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isValueEmpty(options.value);
|
|
23163
|
-
if (isEmpty) {
|
|
23164
|
-
options.value = options.oldValue;
|
|
23165
|
-
}
|
|
23166
24533
|
q["valueChangingEmpty"] = isEmpty;
|
|
23167
24534
|
}
|
|
24535
|
+
var isPropertyNameInValid = this.isPropNameInValid(this.obj, q.property, options.value);
|
|
24536
|
+
q["nameHasError"] = isPropertyNameInValid;
|
|
24537
|
+
};
|
|
24538
|
+
PropertyGridModel.prototype.isPropNameInValid = function (obj, prop, val) {
|
|
24539
|
+
if (obj["isQuestion"] && prop.name === "name" && !!val) {
|
|
24540
|
+
val = val.toLowerCase();
|
|
24541
|
+
return ["item", "choice", "row", "panel"].indexOf(val) > -1;
|
|
24542
|
+
}
|
|
24543
|
+
return false;
|
|
23168
24544
|
};
|
|
23169
24545
|
PropertyGridModel.prototype.onValueChanged = function (options) {
|
|
23170
24546
|
var _this = this;
|
|
23171
24547
|
var q = options.question;
|
|
23172
24548
|
if (!q || !q.property)
|
|
23173
24549
|
return;
|
|
23174
|
-
|
|
23175
|
-
|
|
23176
|
-
}
|
|
24550
|
+
q["valueChangingEmpty"] = false;
|
|
24551
|
+
q["nameHasError"] = false;
|
|
23177
24552
|
this.changeDependedProperties(q, function (name) { return _this.survey.getQuestionByName(name); }, function (name) { return _this.survey.getValue(name); });
|
|
23178
24553
|
PropertyGridEditorCollection.onValueChanged(this.obj, q.property, q);
|
|
23179
24554
|
if (!!this.classNameProperty &&
|
|
@@ -23435,7 +24810,7 @@ var PropertyGridEditorString = /** @class */ (function (_super) {
|
|
|
23435
24810
|
};
|
|
23436
24811
|
PropertyGridEditorString.prototype.getJSON = function (obj, prop, options) {
|
|
23437
24812
|
var json = this.updateMaxLength(prop, { type: "text" });
|
|
23438
|
-
if (prop.
|
|
24813
|
+
if (prop.isRequired) {
|
|
23439
24814
|
json.textUpdateMode = "onBlur";
|
|
23440
24815
|
}
|
|
23441
24816
|
if (!!prop.dataList) {
|
|
@@ -23446,6 +24821,33 @@ var PropertyGridEditorString = /** @class */ (function (_super) {
|
|
|
23446
24821
|
return PropertyGridEditorString;
|
|
23447
24822
|
}(PropertyGridEditorStringBase));
|
|
23448
24823
|
|
|
24824
|
+
var PropertyGridLinkEditor = /** @class */ (function (_super) {
|
|
24825
|
+
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PropertyGridLinkEditor, _super);
|
|
24826
|
+
function PropertyGridLinkEditor() {
|
|
24827
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
24828
|
+
}
|
|
24829
|
+
PropertyGridLinkEditor.prototype.fit = function (prop) {
|
|
24830
|
+
return ["logo", "imageLink"].indexOf(prop.name) > -1;
|
|
24831
|
+
};
|
|
24832
|
+
PropertyGridLinkEditor.prototype.getJSON = function (obj, prop, options) {
|
|
24833
|
+
var res = { type: "fileedit", storeDataAsText: false, };
|
|
24834
|
+
return res;
|
|
24835
|
+
};
|
|
24836
|
+
PropertyGridLinkEditor.prototype.onCreated = function (obj, question, prop, options) {
|
|
24837
|
+
if (["image"].indexOf(obj.getType()) > -1) {
|
|
24838
|
+
var questionObj = obj;
|
|
24839
|
+
questionObj.registerFunctionOnPropertyValueChanged("contentMode", function (newValue) {
|
|
24840
|
+
question.acceptedTypes = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_10__["getAcceptedTypesByContentMode"])(newValue);
|
|
24841
|
+
});
|
|
24842
|
+
question.acceptedTypes = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_10__["getAcceptedTypesByContentMode"])(questionObj.contentMode);
|
|
24843
|
+
}
|
|
24844
|
+
else {
|
|
24845
|
+
question.acceptedTypes = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_10__["getAcceptedTypesByContentMode"])("image");
|
|
24846
|
+
}
|
|
24847
|
+
};
|
|
24848
|
+
return PropertyGridLinkEditor;
|
|
24849
|
+
}(PropertyGridEditor));
|
|
24850
|
+
|
|
23449
24851
|
var PropertyGridEditorNumber = /** @class */ (function (_super) {
|
|
23450
24852
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PropertyGridEditorNumber, _super);
|
|
23451
24853
|
function PropertyGridEditorNumber() {
|
|
@@ -23929,6 +25331,14 @@ var PropertyGridEditorMatrix = /** @class */ (function (_super) {
|
|
|
23929
25331
|
};
|
|
23930
25332
|
this.setupMatrixQuestion(obj, question, prop);
|
|
23931
25333
|
};
|
|
25334
|
+
PropertyGridEditorMatrix.prototype.initializeAcceptedTypes = function (obj, cellQuestion) {
|
|
25335
|
+
if (obj.getType() === "imagepicker" && cellQuestion.name == "imageLink" && cellQuestion.getType() == "fileedit") {
|
|
25336
|
+
obj.registerFunctionOnPropertyValueChanged("contentMode", function (newValue) {
|
|
25337
|
+
cellQuestion.acceptedTypes = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_4__["getAcceptedTypesByContentMode"])(newValue);
|
|
25338
|
+
});
|
|
25339
|
+
cellQuestion.acceptedTypes = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_4__["getAcceptedTypesByContentMode"])(obj.contentMode);
|
|
25340
|
+
}
|
|
25341
|
+
};
|
|
23932
25342
|
PropertyGridEditorMatrix.prototype.initializePlaceholder = function (rowObj, cellQuestion, propertyName) {
|
|
23933
25343
|
var objType = typeof rowObj.getType === "function" && rowObj.getType();
|
|
23934
25344
|
if (cellQuestion.getType() === "text" && !!objType) {
|
|
@@ -23954,6 +25364,7 @@ var PropertyGridEditorMatrix = /** @class */ (function (_super) {
|
|
|
23954
25364
|
return;
|
|
23955
25365
|
var q = options.cellQuestion;
|
|
23956
25366
|
q.obj = rowObj;
|
|
25367
|
+
this.initializeAcceptedTypes(obj, q);
|
|
23957
25368
|
this.initializePlaceholder(rowObj, q, options.columnName);
|
|
23958
25369
|
q.property = survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].findProperty(rowObj.getType(), options.columnName);
|
|
23959
25370
|
};
|
|
@@ -24369,10 +25780,11 @@ var PropertyGridEditorMatrixRateValues = /** @class */ (function (_super) {
|
|
|
24369
25780
|
var _this = this;
|
|
24370
25781
|
_super.prototype.onCreated.call(this, obj, question, prop);
|
|
24371
25782
|
var matrixQuestion = question;
|
|
24372
|
-
|
|
25783
|
+
var ratingQuestion = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_4__["getQuestionFromObj"])(obj);
|
|
25784
|
+
this.updateAllowAddRemove(matrixQuestion, ratingQuestion);
|
|
24373
25785
|
obj.onPropertyChanged.add(function (sender, options) {
|
|
24374
25786
|
if (options.name == "rateCount" || options.name == "rateDisplayMode") {
|
|
24375
|
-
_this.updateAllowAddRemove(matrixQuestion,
|
|
25787
|
+
_this.updateAllowAddRemove(matrixQuestion, ratingQuestion);
|
|
24376
25788
|
}
|
|
24377
25789
|
});
|
|
24378
25790
|
};
|
|
@@ -25882,11 +27294,17 @@ var SurveyQuestionEditorDefinition = /** @class */ (function () {
|
|
|
25882
27294
|
"matrixdropdowncolumn@rating": {
|
|
25883
27295
|
properties: [
|
|
25884
27296
|
"rateValues",
|
|
27297
|
+
{ name: "rateType", tab: "rateValues" },
|
|
27298
|
+
{ name: "rateCount", tab: "rateValues" },
|
|
27299
|
+
{ name: "rateColorMode", tab: "rateValues" },
|
|
27300
|
+
{ name: "scaleColorMode", tab: "rateValues" },
|
|
27301
|
+
{ name: "autoGenerate", tab: "rateValues" },
|
|
25885
27302
|
{ name: "rateMin", tab: "rateValues" },
|
|
25886
27303
|
{ name: "rateMax", tab: "rateValues" },
|
|
25887
27304
|
{ name: "rateStep", tab: "rateValues" },
|
|
25888
27305
|
{ name: "minRateDescription", tab: "rateValues" },
|
|
25889
|
-
{ name: "maxRateDescription", tab: "rateValues" }
|
|
27306
|
+
{ name: "maxRateDescription", tab: "rateValues" },
|
|
27307
|
+
{ name: "displayRateDescriptionsAsExtremeItems", tab: "rateValues" },
|
|
25890
27308
|
],
|
|
25891
27309
|
tabs: [{ name: "rateValues", index: 5 }]
|
|
25892
27310
|
},
|
|
@@ -28040,6 +29458,10 @@ var QuestionToolbox = /** @class */ (function (_super) {
|
|
|
28040
29458
|
}
|
|
28041
29459
|
return json;
|
|
28042
29460
|
};
|
|
29461
|
+
QuestionToolbox.prototype.isHiddenCustomWidget = function (name) {
|
|
29462
|
+
var widget = survey_core__WEBPACK_IMPORTED_MODULE_1__["CustomWidgetCollection"].Instance.getCustomWidgetByName(name);
|
|
29463
|
+
return !!widget && !widget.showInToolbox;
|
|
29464
|
+
};
|
|
28043
29465
|
QuestionToolbox.prototype.getQuestionTypes = function (supportedQuestions) {
|
|
28044
29466
|
var allTypes = survey_core__WEBPACK_IMPORTED_MODULE_1__["ElementFactory"].Instance.getAllTypes();
|
|
28045
29467
|
if (!supportedQuestions || supportedQuestions.length == 0)
|
|
@@ -28054,7 +29476,8 @@ var QuestionToolbox = /** @class */ (function (_super) {
|
|
|
28054
29476
|
var name = supportedQuestions[i];
|
|
28055
29477
|
if (questions.indexOf(name) < 0 &&
|
|
28056
29478
|
QuestionToolbox.hiddenTypes.indexOf(name) < 0 &&
|
|
28057
|
-
allTypes.indexOf(name) > -1
|
|
29479
|
+
allTypes.indexOf(name) > -1 &&
|
|
29480
|
+
!this.isHiddenCustomWidget(name))
|
|
28058
29481
|
questions.push(name);
|
|
28059
29482
|
}
|
|
28060
29483
|
return questions;
|
|
@@ -28177,6 +29600,17 @@ function updateMatrixRemoveAction(question, actions, row) {
|
|
|
28177
29600
|
}
|
|
28178
29601
|
|
|
28179
29602
|
|
|
29603
|
+
/***/ }),
|
|
29604
|
+
|
|
29605
|
+
/***/ "./src/utils/context-button.scss":
|
|
29606
|
+
/*!***************************************!*\
|
|
29607
|
+
!*** ./src/utils/context-button.scss ***!
|
|
29608
|
+
\***************************************/
|
|
29609
|
+
/*! no static exports found */
|
|
29610
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
29611
|
+
|
|
29612
|
+
// extracted by mini-css-extract-plugin
|
|
29613
|
+
|
|
28180
29614
|
/***/ }),
|
|
28181
29615
|
|
|
28182
29616
|
/***/ "./src/utils/design.scss":
|
|
@@ -28351,7 +29785,7 @@ var ResizeManager = /** @class */ (function () {
|
|
|
28351
29785
|
/*!****************************!*\
|
|
28352
29786
|
!*** ./src/utils/utils.ts ***!
|
|
28353
29787
|
\****************************/
|
|
28354
|
-
/*! exports provided: getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd */
|
|
29788
|
+
/*! exports provided: getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd, imageMimeTypes, getAcceptedTypesByContentMode, getQuestionFromObj */
|
|
28355
29789
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
28356
29790
|
|
|
28357
29791
|
"use strict";
|
|
@@ -28374,6 +29808,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28374
29808
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapTextByCurlyBraces", function() { return wrapTextByCurlyBraces; });
|
|
28375
29809
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "capitalize", function() { return capitalize; });
|
|
28376
29810
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "notShortCircuitAnd", function() { return notShortCircuitAnd; });
|
|
29811
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "imageMimeTypes", function() { return imageMimeTypes; });
|
|
29812
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getAcceptedTypesByContentMode", function() { return getAcceptedTypesByContentMode; });
|
|
29813
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getQuestionFromObj", function() { return getQuestionFromObj; });
|
|
28377
29814
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
28378
29815
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
28379
29816
|
/* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../creator-settings */ "./src/creator-settings.ts");
|
|
@@ -28680,6 +30117,21 @@ function notShortCircuitAnd() {
|
|
|
28680
30117
|
}
|
|
28681
30118
|
return args.every(function (val) { return val === true; });
|
|
28682
30119
|
}
|
|
30120
|
+
var imageMimeTypes = "image/png, image/gif, image/jpeg, image/apng, image/avif, image/svg+xml, image/webp";
|
|
30121
|
+
function getAcceptedTypesByContentMode(contentMode) {
|
|
30122
|
+
if (["auto", "image"].indexOf(contentMode) > -1) {
|
|
30123
|
+
return imageMimeTypes;
|
|
30124
|
+
}
|
|
30125
|
+
else if (contentMode == "video") {
|
|
30126
|
+
return "video/*";
|
|
30127
|
+
}
|
|
30128
|
+
else {
|
|
30129
|
+
return "";
|
|
30130
|
+
}
|
|
30131
|
+
}
|
|
30132
|
+
function getQuestionFromObj(obj) {
|
|
30133
|
+
return (obj instanceof survey_core__WEBPACK_IMPORTED_MODULE_0__["MatrixDropdownColumn"]) ? obj.templateQuestion : obj;
|
|
30134
|
+
}
|
|
28683
30135
|
|
|
28684
30136
|
|
|
28685
30137
|
/***/ }),
|