survey-creator-core 1.9.88 → 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 +186 -62
- package/survey-creator-core.fontless.css +185 -61
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +14 -10
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +1666 -296
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +15 -11
- 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 +1 -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 +63 -0
- package/typings/entries/index.d.ts +2 -0
- package/typings/localization/english.d.ts +63 -0
- package/typings/property-grid/index.d.ts +7 -0
- package/typings/property-grid/matrices.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,7 +1916,9 @@ __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");
|
|
1899
|
-
/* harmony import */ var
|
|
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
|
+
|
|
1900
1922
|
|
|
1901
1923
|
|
|
1902
1924
|
|
|
@@ -1936,6 +1958,13 @@ var QuestionImageAdornerViewModel = /** @class */ (function (_super) {
|
|
|
1936
1958
|
});
|
|
1937
1959
|
});
|
|
1938
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
|
+
});
|
|
1939
1968
|
QuestionImageAdornerViewModel.prototype.imageLinkValueChangedHandler = function () {
|
|
1940
1969
|
this.isEmptyImageLink = !this.question.imageLink;
|
|
1941
1970
|
this.filePresentationModel.value = null;
|
|
@@ -1957,14 +1986,14 @@ var QuestionImageAdornerViewModel = /** @class */ (function (_super) {
|
|
|
1957
1986
|
});
|
|
1958
1987
|
Object.defineProperty(QuestionImageAdornerViewModel.prototype, "placeholderText", {
|
|
1959
1988
|
get: function () {
|
|
1960
|
-
return Object(
|
|
1989
|
+
return Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_4__["getLocString"])("ed.imagePlaceHolder");
|
|
1961
1990
|
},
|
|
1962
1991
|
enumerable: false,
|
|
1963
1992
|
configurable: true
|
|
1964
1993
|
});
|
|
1965
1994
|
Object.defineProperty(QuestionImageAdornerViewModel.prototype, "chooseImageText", {
|
|
1966
1995
|
get: function () {
|
|
1967
|
-
return Object(
|
|
1996
|
+
return Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_4__["getLocString"])("ed.imageChooseImage");
|
|
1968
1997
|
},
|
|
1969
1998
|
enumerable: false,
|
|
1970
1999
|
configurable: true
|
|
@@ -2024,7 +2053,7 @@ var QuestionRatingAdornerViewModel = /** @class */ (function (_super) {
|
|
|
2024
2053
|
}
|
|
2025
2054
|
Object.defineProperty(QuestionRatingAdornerViewModel.prototype, "element", {
|
|
2026
2055
|
get: function () {
|
|
2027
|
-
return this.surveyElement;
|
|
2056
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_3__["getQuestionFromObj"])(this.surveyElement);
|
|
2028
2057
|
},
|
|
2029
2058
|
enumerable: false,
|
|
2030
2059
|
configurable: true
|
|
@@ -3283,6 +3312,9 @@ var SurveySimulatorModel = /** @class */ (function (_super) {
|
|
|
3283
3312
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
3284
3313
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: true })
|
|
3285
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);
|
|
3286
3318
|
return SurveySimulatorModel;
|
|
3287
3319
|
}(survey_core__WEBPACK_IMPORTED_MODULE_1__["Base"]));
|
|
3288
3320
|
|
|
@@ -9182,39 +9214,583 @@ var TabTestPlugin = /** @class */ (function () {
|
|
|
9182
9214
|
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_0__["notShortCircuitAnd"])(_this.creator.showSimulatorInTestSurveyTab, _this.creator.activeTab === "test");
|
|
9183
9215
|
}),
|
|
9184
9216
|
action: function () {
|
|
9185
|
-
_this.changeThemePopupModel.toggleVisibility();
|
|
9186
|
-
},
|
|
9187
|
-
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
|
+
}
|
|
9188
9783
|
});
|
|
9189
|
-
items.push(this.
|
|
9784
|
+
items.push(this.invisibleToggleAction);
|
|
9190
9785
|
}
|
|
9191
|
-
this.languageSelectorAction = Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["createDropdownActionModel"])({
|
|
9192
|
-
id: "languageSelector",
|
|
9193
|
-
iconName: "icon-language",
|
|
9194
|
-
visible: false,
|
|
9195
|
-
mode: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
|
|
9196
|
-
return _this.creator.isMobileView ? "small" : "large";
|
|
9197
|
-
}),
|
|
9198
|
-
}, {
|
|
9199
|
-
items: [],
|
|
9200
|
-
allowSelection: true,
|
|
9201
|
-
onSelectionChanged: function (item) {
|
|
9202
|
-
_this.model.activeLanguage = item.id;
|
|
9203
|
-
_this.languageSelectorAction.title = _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getLocaleName(item.id);
|
|
9204
|
-
},
|
|
9205
|
-
horizontalPosition: "center",
|
|
9206
|
-
onHide: function () { _this.languageSelectorAction.enabled = true; },
|
|
9207
|
-
onShow: function () { _this.languageSelectorAction.enabled = false; }
|
|
9208
|
-
});
|
|
9209
|
-
items.push(this.languageSelectorAction);
|
|
9210
9786
|
this.designerAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__["Action"]({
|
|
9211
9787
|
id: "svd-designer",
|
|
9212
9788
|
iconName: "icon-preview",
|
|
9213
9789
|
needSeparator: true,
|
|
9214
9790
|
action: function () { _this.creator.makeNewViewActive("designer"); },
|
|
9215
|
-
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"; }),
|
|
9216
9792
|
visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () {
|
|
9217
|
-
return (_this.creator.activeTab === "
|
|
9793
|
+
return (_this.creator.activeTab === "theme");
|
|
9218
9794
|
}),
|
|
9219
9795
|
locTitleName: "ed.designer",
|
|
9220
9796
|
showTitle: false
|
|
@@ -9231,25 +9807,24 @@ var TabTestPlugin = /** @class */ (function () {
|
|
|
9231
9807
|
});
|
|
9232
9808
|
return items;
|
|
9233
9809
|
};
|
|
9234
|
-
|
|
9810
|
+
TabThemePlugin.prototype.addFooterActions = function () {
|
|
9235
9811
|
this.creator.footerToolbar.actions.push(this.testAgainAction);
|
|
9236
9812
|
this.invisibleToggleAction && (this.creator.footerToolbar.actions.push(this.invisibleToggleAction));
|
|
9237
|
-
this.languageSelectorAction && (this.creator.footerToolbar.actions.push(this.languageSelectorAction));
|
|
9238
9813
|
this.creator.footerToolbar.actions.push(this.prevPageAction);
|
|
9239
9814
|
this.creator.footerToolbar.actions.push(this.nextPageAction);
|
|
9240
9815
|
this.creator.footerToolbar.actions.push(this.designerAction);
|
|
9241
9816
|
};
|
|
9242
|
-
return
|
|
9817
|
+
return TabThemePlugin;
|
|
9243
9818
|
}());
|
|
9244
9819
|
|
|
9245
9820
|
|
|
9246
9821
|
|
|
9247
9822
|
/***/ }),
|
|
9248
9823
|
|
|
9249
|
-
/***/ "./src/components/tabs/
|
|
9250
|
-
|
|
9251
|
-
!*** ./src/components/tabs/
|
|
9252
|
-
|
|
9824
|
+
/***/ "./src/components/tabs/theme.scss":
|
|
9825
|
+
/*!****************************************!*\
|
|
9826
|
+
!*** ./src/components/tabs/theme.scss ***!
|
|
9827
|
+
\****************************************/
|
|
9253
9828
|
/*! no static exports found */
|
|
9254
9829
|
/***/ (function(module, exports, __webpack_require__) {
|
|
9255
9830
|
|
|
@@ -9257,50 +9832,180 @@ var TabTestPlugin = /** @class */ (function () {
|
|
|
9257
9832
|
|
|
9258
9833
|
/***/ }),
|
|
9259
9834
|
|
|
9260
|
-
/***/ "./src/components/tabs/
|
|
9261
|
-
|
|
9262
|
-
!*** ./src/components/tabs/
|
|
9263
|
-
|
|
9264
|
-
/*! exports provided:
|
|
9835
|
+
/***/ "./src/components/tabs/theme.ts":
|
|
9836
|
+
/*!**************************************!*\
|
|
9837
|
+
!*** ./src/components/tabs/theme.ts ***!
|
|
9838
|
+
\**************************************/
|
|
9839
|
+
/*! exports provided: Themes, ThemeSurveyTabViewModel */
|
|
9265
9840
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9266
9841
|
|
|
9267
9842
|
"use strict";
|
|
9268
9843
|
__webpack_require__.r(__webpack_exports__);
|
|
9269
|
-
/* 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; });
|
|
9270
9846
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
9271
9847
|
/* harmony import */ var _simulator__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../simulator */ "./src/components/simulator.ts");
|
|
9272
9848
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
9273
9849
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_2__);
|
|
9274
9850
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../editorLocalization */ "./src/editorLocalization.ts");
|
|
9275
|
-
/* 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");
|
|
9276
9854
|
|
|
9277
9855
|
|
|
9278
|
-
__webpack_require__(/*! ./test.scss */ "./src/components/tabs/test.scss");
|
|
9279
9856
|
|
|
9280
9857
|
|
|
9281
9858
|
|
|
9282
|
-
|
|
9283
|
-
|
|
9284
|
-
|
|
9285
|
-
|
|
9286
|
-
|
|
9287
|
-
|
|
9288
|
-
|
|
9289
|
-
|
|
9290
|
-
|
|
9291
|
-
|
|
9292
|
-
|
|
9293
|
-
|
|
9294
|
-
|
|
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) {
|
|
9295
9999
|
if (startTheme === void 0) { startTheme = survey_core__WEBPACK_IMPORTED_MODULE_2__["defaultV2Css"]; }
|
|
9296
10000
|
var _this = _super.call(this) || this;
|
|
9297
10001
|
_this.surveyProvider = surveyProvider;
|
|
9298
10002
|
_this.startTheme = startTheme;
|
|
9299
10003
|
_this.pages = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ActionContainer"]();
|
|
9300
10004
|
_this.simulator = new _simulator__WEBPACK_IMPORTED_MODULE_1__["SurveySimulatorModel"]();
|
|
10005
|
+
_this.themeEditorSurveyValue = _this.createThemeEditorSurvey();
|
|
9301
10006
|
return _this;
|
|
9302
10007
|
}
|
|
9303
|
-
Object.defineProperty(
|
|
10008
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "activeLanguage", {
|
|
9304
10009
|
get: function () {
|
|
9305
10010
|
return this.getPropertyValue("activeLanguage", this.survey.locale || survey_core__WEBPACK_IMPORTED_MODULE_2__["surveyLocalization"].defaultLocale);
|
|
9306
10011
|
},
|
|
@@ -9313,29 +10018,36 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9313
10018
|
enumerable: false,
|
|
9314
10019
|
configurable: true
|
|
9315
10020
|
});
|
|
9316
|
-
Object.defineProperty(
|
|
10021
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "survey", {
|
|
9317
10022
|
get: function () {
|
|
9318
10023
|
return this.simulator.survey;
|
|
9319
10024
|
},
|
|
9320
10025
|
enumerable: false,
|
|
9321
10026
|
configurable: true
|
|
9322
10027
|
});
|
|
9323
|
-
Object.defineProperty(
|
|
10028
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "pageActions", {
|
|
9324
10029
|
get: function () {
|
|
9325
10030
|
return this.pages.actions;
|
|
9326
10031
|
},
|
|
9327
10032
|
enumerable: false,
|
|
9328
10033
|
configurable: true
|
|
9329
10034
|
});
|
|
9330
|
-
Object.defineProperty(
|
|
10035
|
+
Object.defineProperty(ThemeSurveyTabViewModel.prototype, "isPageToolbarVisible", {
|
|
9331
10036
|
get: function () {
|
|
9332
10037
|
return this.pages.visibleActions.length > 0 && !this.surveyProvider.isMobileView;
|
|
9333
10038
|
},
|
|
9334
10039
|
enumerable: false,
|
|
9335
10040
|
configurable: true
|
|
9336
10041
|
});
|
|
9337
|
-
|
|
9338
|
-
|
|
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");
|
|
9339
10051
|
newSurvey.setCss(theme, false);
|
|
9340
10052
|
this.simulator.survey = newSurvey;
|
|
9341
10053
|
if (this.onSurveyCreatedCallback)
|
|
@@ -9371,7 +10083,7 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9371
10083
|
self.updatePageItem(options.page);
|
|
9372
10084
|
});
|
|
9373
10085
|
};
|
|
9374
|
-
|
|
10086
|
+
ThemeSurveyTabViewModel.prototype.setJSON = function (json, currTheme) {
|
|
9375
10087
|
this.json = json;
|
|
9376
10088
|
if (json != null) {
|
|
9377
10089
|
if (json.cookieName) {
|
|
@@ -9380,7 +10092,7 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9380
10092
|
}
|
|
9381
10093
|
this.updateSimulatorSurvey(json, currTheme);
|
|
9382
10094
|
};
|
|
9383
|
-
|
|
10095
|
+
ThemeSurveyTabViewModel.prototype.initialize = function (json, options) {
|
|
9384
10096
|
this.setJSON(json, this.startTheme);
|
|
9385
10097
|
this.updatePageList();
|
|
9386
10098
|
if (options.showPagesInTestSurveyTab !== undefined) {
|
|
@@ -9388,19 +10100,19 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9388
10100
|
}
|
|
9389
10101
|
this.buildActions();
|
|
9390
10102
|
};
|
|
9391
|
-
|
|
10103
|
+
ThemeSurveyTabViewModel.prototype.updatePageItem = function (page) {
|
|
9392
10104
|
var item = this.getPageItemByPage(page);
|
|
9393
10105
|
if (item) {
|
|
9394
10106
|
item.enabled = page.isVisible;
|
|
9395
10107
|
}
|
|
9396
10108
|
};
|
|
9397
|
-
|
|
10109
|
+
ThemeSurveyTabViewModel.prototype.getCurrentPageItem = function () {
|
|
9398
10110
|
return this.pageListItems[this.survey.pages.indexOf(this.survey.activePage)];
|
|
9399
10111
|
};
|
|
9400
|
-
|
|
10112
|
+
ThemeSurveyTabViewModel.prototype.getSelectPageTitle = function () {
|
|
9401
10113
|
return (this.activePage && this.getPageTitle(this.activePage, "preview-tab:selected-page", "survey-tester-selected")) || Object(_editorLocalization__WEBPACK_IMPORTED_MODULE_3__["getLocString"])("ts.selectPage");
|
|
9402
10114
|
};
|
|
9403
|
-
|
|
10115
|
+
ThemeSurveyTabViewModel.prototype.getPageTitle = function (page, area, reason) {
|
|
9404
10116
|
if (area === void 0) { area = "preview-tab:page-list"; }
|
|
9405
10117
|
if (reason === void 0) { reason = "survey-tester"; }
|
|
9406
10118
|
var title = this.surveyProvider.getObjectDisplayName(page, area, reason, page.title);
|
|
@@ -9410,7 +10122,7 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9410
10122
|
}
|
|
9411
10123
|
return title;
|
|
9412
10124
|
};
|
|
9413
|
-
|
|
10125
|
+
ThemeSurveyTabViewModel.prototype.updatePageList = function () {
|
|
9414
10126
|
var pages = [];
|
|
9415
10127
|
for (var i = 0; i < this.survey.pages.length; i++) {
|
|
9416
10128
|
var page = this.survey.pages[i];
|
|
@@ -9424,18 +10136,18 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9424
10136
|
}
|
|
9425
10137
|
this.pageListItems = pages;
|
|
9426
10138
|
};
|
|
9427
|
-
|
|
10139
|
+
ThemeSurveyTabViewModel.prototype.show = function () {
|
|
9428
10140
|
this.showInvisibleElements = false;
|
|
9429
10141
|
this.activePage = this.survey.activePage;
|
|
9430
10142
|
this.survey.locale = this.activeLanguage;
|
|
9431
10143
|
this.isRunning = true;
|
|
9432
10144
|
};
|
|
9433
|
-
|
|
10145
|
+
ThemeSurveyTabViewModel.prototype.testAgain = function () {
|
|
9434
10146
|
this.setJSON(this.json, this.simulator.survey.css);
|
|
9435
10147
|
this.updatePageList();
|
|
9436
10148
|
this.show();
|
|
9437
10149
|
};
|
|
9438
|
-
|
|
10150
|
+
ThemeSurveyTabViewModel.prototype.buildActions = function () {
|
|
9439
10151
|
var _this = this;
|
|
9440
10152
|
var pageActions = [];
|
|
9441
10153
|
var setNearPage = function (isNext) {
|
|
@@ -9456,7 +10168,7 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9456
10168
|
};
|
|
9457
10169
|
if (this.prevPageAction) {
|
|
9458
10170
|
this.prevPageAction.visible = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
9459
|
-
return Object(
|
|
10171
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["notShortCircuitAnd"])(_this.isRunning, _this.surveyProvider.activeTab === "test", _this.pageListItems.length > 1);
|
|
9460
10172
|
});
|
|
9461
10173
|
this.prevPageAction.iconName = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
9462
10174
|
return _this.surveyProvider.isMobileView ? "icon-arrow-left" : "icon-arrow-left_16x16";
|
|
@@ -9485,7 +10197,7 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9485
10197
|
pageActions.push(this.selectPageAction);
|
|
9486
10198
|
if (this.nextPageAction) {
|
|
9487
10199
|
this.nextPageAction.visible = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
9488
|
-
return Object(
|
|
10200
|
+
return Object(_utils_utils__WEBPACK_IMPORTED_MODULE_6__["notShortCircuitAnd"])(_this.isRunning, _this.surveyProvider.activeTab === "test", _this.pageListItems.length > 1);
|
|
9489
10201
|
});
|
|
9490
10202
|
this.nextPageAction.iconName = new survey_core__WEBPACK_IMPORTED_MODULE_2__["ComputedUpdater"](function () {
|
|
9491
10203
|
return _this.surveyProvider.isMobileView ? "icon-arrow-right" : "icon-arrow-right_16x16";
|
|
@@ -9500,13 +10212,13 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9500
10212
|
this.pages.containerCss = "sv-action-bar--pages";
|
|
9501
10213
|
this.updatePrevNextPageActionState();
|
|
9502
10214
|
};
|
|
9503
|
-
|
|
10215
|
+
ThemeSurveyTabViewModel.prototype.setActivePageItem = function (page, val) {
|
|
9504
10216
|
var item = this.getPageItemByPage(page);
|
|
9505
10217
|
if (item) {
|
|
9506
10218
|
item.active = val;
|
|
9507
10219
|
}
|
|
9508
10220
|
};
|
|
9509
|
-
|
|
10221
|
+
ThemeSurveyTabViewModel.prototype.getPageItemByPage = function (page) {
|
|
9510
10222
|
var items = this.pageListItems;
|
|
9511
10223
|
for (var i = 0; i < items.length; i++) {
|
|
9512
10224
|
if (items[i].data === page)
|
|
@@ -9514,11 +10226,11 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9514
10226
|
}
|
|
9515
10227
|
return null;
|
|
9516
10228
|
};
|
|
9517
|
-
|
|
10229
|
+
ThemeSurveyTabViewModel.prototype.updateResultsTemplate = function (theme) {
|
|
9518
10230
|
this.simulator.survey.setCss(theme, false);
|
|
9519
10231
|
this.simulator.survey.render();
|
|
9520
10232
|
};
|
|
9521
|
-
|
|
10233
|
+
ThemeSurveyTabViewModel.prototype.setTheme = function (themeName, themeMapper) {
|
|
9522
10234
|
var availableThemes = themeMapper.filter(function (item) { return item.name === themeName; });
|
|
9523
10235
|
var theme = survey_core__WEBPACK_IMPORTED_MODULE_2__["defaultV2Css"];
|
|
9524
10236
|
if (availableThemes.length > 0) {
|
|
@@ -9526,7 +10238,7 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9526
10238
|
}
|
|
9527
10239
|
this.isRunning ? this.updateSimulatorSurvey(this.json, theme) : this.updateResultsTemplate(theme);
|
|
9528
10240
|
};
|
|
9529
|
-
|
|
10241
|
+
ThemeSurveyTabViewModel.prototype.onPropertyValueChanged = function (name, oldValue, newValue) {
|
|
9530
10242
|
_super.prototype.onPropertyValueChanged.call(this, name, oldValue, newValue);
|
|
9531
10243
|
if (!this.pages.hasActions)
|
|
9532
10244
|
return;
|
|
@@ -9540,7 +10252,7 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9540
10252
|
this.selectPageAction.visible = this.isRunning && this.pageListItems.length > 1 && this.showPagesInTestSurveyTab;
|
|
9541
10253
|
}
|
|
9542
10254
|
};
|
|
9543
|
-
|
|
10255
|
+
ThemeSurveyTabViewModel.prototype.updatePrevNextPageActionState = function () {
|
|
9544
10256
|
if (!this.prevPageAction || !this.survey)
|
|
9545
10257
|
return;
|
|
9546
10258
|
var isPrevEnabled = this.survey.firstPageIsStarted && this.survey.state !== "starting"
|
|
@@ -9551,6 +10263,472 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9551
10263
|
this.nextPageAction.css = isNextEnabled ? "sv-action-bar-item--secondary" : "";
|
|
9552
10264
|
this.nextPageAction.enabled = isNextEnabled;
|
|
9553
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
|
+
};
|
|
9554
10732
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9555
10733
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
|
|
9556
10734
|
defaultValue: false,
|
|
@@ -9558,10 +10736,10 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9558
10736
|
target.simulator.survey.showInvisibleElements = val;
|
|
9559
10737
|
}
|
|
9560
10738
|
})
|
|
9561
|
-
],
|
|
10739
|
+
], ThemeSurveyTabViewModel.prototype, "showInvisibleElements", void 0);
|
|
9562
10740
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9563
10741
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({ defaultValue: true })
|
|
9564
|
-
],
|
|
10742
|
+
], ThemeSurveyTabViewModel.prototype, "showPagesInTestSurveyTab", void 0);
|
|
9565
10743
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9566
10744
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
|
|
9567
10745
|
defaultValue: true,
|
|
@@ -9570,10 +10748,10 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9570
10748
|
target.simulator.isRunning = value;
|
|
9571
10749
|
}
|
|
9572
10750
|
})
|
|
9573
|
-
],
|
|
10751
|
+
], ThemeSurveyTabViewModel.prototype, "isRunning", void 0);
|
|
9574
10752
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9575
10753
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["propertyArray"])()
|
|
9576
|
-
],
|
|
10754
|
+
], ThemeSurveyTabViewModel.prototype, "pageListItems", void 0);
|
|
9577
10755
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
9578
10756
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_2__["property"])({
|
|
9579
10757
|
onSet: function (val, target) {
|
|
@@ -9596,10 +10774,25 @@ var TestSurveyTabViewModel = /** @class */ (function (_super) {
|
|
|
9596
10774
|
target.updatePrevNextPageActionState();
|
|
9597
10775
|
}
|
|
9598
10776
|
})
|
|
9599
|
-
],
|
|
9600
|
-
|
|
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;
|
|
9601
10788
|
}(survey_core__WEBPACK_IMPORTED_MODULE_2__["Base"]));
|
|
9602
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
|
+
}
|
|
9603
10796
|
|
|
9604
10797
|
|
|
9605
10798
|
/***/ }),
|
|
@@ -11606,6 +12799,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11606
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");
|
|
11607
12800
|
/* harmony import */ var _src_components_tabs_translation__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../src/components/tabs/translation */ "./src/components/tabs/translation.ts");
|
|
11608
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");
|
|
11609
12803
|
|
|
11610
12804
|
|
|
11611
12805
|
|
|
@@ -11636,6 +12830,7 @@ __webpack_require__(/*! ./components/creator.scss */ "./src/components/creator.s
|
|
|
11636
12830
|
__webpack_require__(/*! ./components/string-editor.scss */ "./src/components/string-editor.scss");
|
|
11637
12831
|
__webpack_require__(/*! ./creator-theme/creator.scss */ "./src/creator-theme/creator.scss");
|
|
11638
12832
|
|
|
12833
|
+
|
|
11639
12834
|
//Obsolete
|
|
11640
12835
|
var CreatorAction = /** @class */ (function (_super) {
|
|
11641
12836
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(CreatorAction, _super);
|
|
@@ -13089,6 +14284,9 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
13089
14284
|
if (this.showPreviewTab) {
|
|
13090
14285
|
new _components_tabs_test_plugin__WEBPACK_IMPORTED_MODULE_14__["TabTestPlugin"](this);
|
|
13091
14286
|
}
|
|
14287
|
+
if (this.showThemeTab) {
|
|
14288
|
+
new _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_24__["TabThemePlugin"](this);
|
|
14289
|
+
}
|
|
13092
14290
|
if (this.showLogicTab) {
|
|
13093
14291
|
new _components_tabs_logic_plugin__WEBPACK_IMPORTED_MODULE_17__["TabLogicPlugin"](this);
|
|
13094
14292
|
}
|
|
@@ -14718,6 +15916,9 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
14718
15916
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
14719
15917
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: true })
|
|
14720
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);
|
|
14721
15922
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
|
14722
15923
|
Object(survey_core__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: false })
|
|
14723
15924
|
], CreatorBase.prototype, "showEmbeddedSurveyTab", void 0);
|
|
@@ -14832,6 +16033,9 @@ var CreatorBase = /** @class */ (function (_super) {
|
|
|
14832
16033
|
}
|
|
14833
16034
|
})
|
|
14834
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);
|
|
14835
16039
|
return CreatorBase;
|
|
14836
16040
|
}(survey_core__WEBPACK_IMPORTED_MODULE_1__["Base"]));
|
|
14837
16041
|
|
|
@@ -15301,7 +16505,6 @@ var settings = {
|
|
|
15301
16505
|
]
|
|
15302
16506
|
},
|
|
15303
16507
|
image: {
|
|
15304
|
-
imageLink: "https://surveyjs.io/Content/Images/examples/image-picker/lion.jpg",
|
|
15305
16508
|
imageFit: "cover",
|
|
15306
16509
|
imageHeight: "auto",
|
|
15307
16510
|
imageWidth: "100%"
|
|
@@ -15391,6 +16594,7 @@ var EmptySurveyCreatorOptions = /** @class */ (function () {
|
|
|
15391
16594
|
};
|
|
15392
16595
|
EmptySurveyCreatorOptions.prototype.onLogicGetTitleCallback = function (expression, displayExpression, text, logicItem) { return text; };
|
|
15393
16596
|
EmptySurveyCreatorOptions.prototype.getTranslationExportedText = function (obj, name, locString, locale, text) { return text; };
|
|
16597
|
+
EmptySurveyCreatorOptions.prototype.uploadFiles = function (files, question, uploadingCallback) { };
|
|
15394
16598
|
return EmptySurveyCreatorOptions;
|
|
15395
16599
|
}());
|
|
15396
16600
|
|
|
@@ -16268,7 +17472,7 @@ var __spreadArray = function (to, from) {
|
|
|
16268
17472
|
/*!******************************!*\
|
|
16269
17473
|
!*** ./src/entries/index.ts ***!
|
|
16270
17474
|
\******************************/
|
|
16271
|
-
/*! exports provided: Version, enStrings, editorLocalization, defaultStrings, localization, QuestionConvertMode, settings, EmptySurveyCreatorOptions, CreatorAction, TabbedMenuItem, TabbedMenuContainer, ToolbarActionContainer, CreatorEvent, CreatorBase, SurveyCreatorModel, StylesManager, initializeDesignTimeSurveyModel, editableStringRendererName, getElementWrapperComponentName, getQuestionContentWrapperComponentName, getElementWrapperComponentData, getItemValueWrapperComponentName, getItemValueWrapperComponentData, isStringEditable, isTextInput, registerAdorner, removeAdorners, CreatorResponsivityManager, EmbedModel, TabEmbedPlugin, AceJsonEditorModel, TabJsonEditorAcePlugin, JsonEditorBaseModel, TabJsonEditorBasePlugin, TextareaJsonEditorModel, TabJsonEditorTextareaPlugin, TestSurveyTabViewModel, TabTestPlugin, initLogicOperator, LogicEvent, SurveyLogic, TranslationItemBase, TranslationItemString, TranslationItem, TranslationGroup, Translation, translationCss, TabTranslationPlugin, initialSettingsAllowShowEmptyTitleInDesignMode, TabDesignerViewModel, TabDesignerPlugin, SurveyLogicUI, TabLogicPlugin, logicCss, ToolboxToolViewModel, PageNavigatorViewModel, PageAdorner, RowViewModel, QuestionAdornerViewModel, QuestionDropdownAdornerViewModel, QuestionImageAdornerViewModel, QuestionRatingAdornerViewModel, ItemValueWrapperViewModel, ImageItemValueWrapperViewModel, MatrixCellWrapperEditSurvey, MatrixCellWrapperViewModel, SurveySimulatorModel, DEFAULT_MONITOR_DPI, simulatorDevices, SurveyResultsItemModel, SurveyResultsModel, LogoImageViewModel, StringItemsNavigatorBase, StringEditorConnector, StringEditorViewModelBase, QuestionEmbeddedSurveyModel, QuestionLinkValueModel, EditorLocalization, getLocString, SurveyJSON5, QuestionSpinEditorModel, QuestionColorModel, QuestionFileEditorModel, setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridEditorNumber, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue, PropertyGridEditorExpression, PropertyGridEditorCondition, PropertyGridEditorMatrix, PropertyGridEditorMatrixItemValues, PropertyGridEditorMatrixRateValues, PropertyGridEditorMatrixColumns, PropertyGridEditorMatrixPages, PropertyGridEditorMatrixCalculatedValues, PropertyGridEditorMatrixHtmlConditions, PropertyGridEditorMatrixUrlConditions, PropertyGridEditorMatrixMutlipleTextItems, PropertyGridEditorMatrixMultipleTypes, PropertyGridEditorMatrixValidators, PropertyGridEditorMatrixTriggers, PropertyGridEditorBindings, PropertyGridViewModel, ObjectSelectorItem, ObjectSelector, ObjectSelectorModel, PropertyGridEditorQuestionRestfull, PropertyGridValueEditorBase, PropertyGridCellsEditor, PropertyGridValueEditor, PropertyGridRowValueEditor, PropertyGridPanelValueEditor, PropertyGridTriggerValueEditor, PropertyGridTriggerValueInLogicEditor, propertyGridCss, QuestionConverter, svgBundle, SurveyTextWorker, QuestionToolboxCategory, QuestionToolboxItem, QuestionToolbox, SidebarModel, SidebarTabModel, getNextItemValue, getNextItemText, getNextValue, findParentNode, focusFirstControl, getFirstNonTextElement, getNodesFromKoComponentInfo, propertyExists, isPropertyVisible, toggleHovered, clearNewLines, select, copyObject, copyCssClasses, assignDefaultV2Classes, wrapTextByCurlyBraces, capitalize, notShortCircuitAnd, SurveyQuestionEditorDefinition, ObjType, SurveyHelper, ResizeManager, UndoRedoPlugin, undoRedoTransaction, ignoreUndoRedo, UndoRedoManager, Transaction, UndoRedoAction, UndoRedoArrayAction, PagesController */
|
|
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 */
|
|
16272
17476
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
16273
17477
|
|
|
16274
17478
|
"use strict";
|
|
@@ -16359,329 +17563,349 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
16359
17563
|
/* harmony import */ var _components_tabs_test_plugin__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../components/tabs/test-plugin */ "./src/components/tabs/test-plugin.ts");
|
|
16360
17564
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabTestPlugin", function() { return _components_tabs_test_plugin__WEBPACK_IMPORTED_MODULE_10__["TabTestPlugin"]; });
|
|
16361
17565
|
|
|
16362
|
-
/* harmony import */ var
|
|
16363
|
-
/* 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"]; });
|
|
17568
|
+
|
|
17569
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ThemeSurveyTabViewModel", function() { return _components_tabs_theme__WEBPACK_IMPORTED_MODULE_11__["ThemeSurveyTabViewModel"]; });
|
|
17570
|
+
|
|
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"]; });
|
|
17573
|
+
|
|
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"]; });
|
|
16364
17576
|
|
|
16365
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogicEvent", function() { return
|
|
17577
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogicEvent", function() { return _components_tabs_logic__WEBPACK_IMPORTED_MODULE_13__["LogicEvent"]; });
|
|
16366
17578
|
|
|
16367
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogic", function() { return
|
|
17579
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogic", function() { return _components_tabs_logic__WEBPACK_IMPORTED_MODULE_13__["SurveyLogic"]; });
|
|
16368
17580
|
|
|
16369
|
-
/* harmony import */ var
|
|
16370
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationItemBase", function() { return
|
|
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"]; });
|
|
16371
17583
|
|
|
16372
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationItemString", function() { return
|
|
17584
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationItemString", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_14__["TranslationItemString"]; });
|
|
16373
17585
|
|
|
16374
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationItem", function() { return
|
|
17586
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationItem", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_14__["TranslationItem"]; });
|
|
16375
17587
|
|
|
16376
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationGroup", function() { return
|
|
17588
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TranslationGroup", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_14__["TranslationGroup"]; });
|
|
16377
17589
|
|
|
16378
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Translation", function() { return
|
|
17590
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Translation", function() { return _components_tabs_translation__WEBPACK_IMPORTED_MODULE_14__["Translation"]; });
|
|
16379
17591
|
|
|
16380
|
-
/* harmony import */ var
|
|
16381
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "translationCss", function() { return
|
|
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"]; });
|
|
16382
17594
|
|
|
16383
|
-
/* harmony import */ var
|
|
16384
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabTranslationPlugin", function() { return
|
|
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"]; });
|
|
16385
17597
|
|
|
16386
|
-
/* harmony import */ var
|
|
16387
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "initialSettingsAllowShowEmptyTitleInDesignMode", function() { return
|
|
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"]; });
|
|
16388
17600
|
|
|
16389
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabDesignerViewModel", function() { return
|
|
17601
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabDesignerViewModel", function() { return _components_tabs_designer__WEBPACK_IMPORTED_MODULE_17__["TabDesignerViewModel"]; });
|
|
16390
17602
|
|
|
16391
|
-
/* harmony import */ var
|
|
16392
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabDesignerPlugin", function() { return
|
|
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"]; });
|
|
16393
17605
|
|
|
16394
|
-
/* harmony import */ var
|
|
16395
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyLogicUI", function() { return
|
|
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"]; });
|
|
16396
17608
|
|
|
16397
|
-
/* harmony import */ var
|
|
16398
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "TabLogicPlugin", function() { return
|
|
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"]; });
|
|
16399
17611
|
|
|
16400
|
-
/* harmony import */ var
|
|
16401
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "logicCss", function() { return
|
|
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"]; });
|
|
16402
17614
|
|
|
16403
|
-
/* harmony import */ var
|
|
16404
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ToolboxToolViewModel", function() { return
|
|
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"]; });
|
|
16405
17617
|
|
|
16406
|
-
/* harmony import */ var
|
|
16407
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PageNavigatorViewModel", function() { return
|
|
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"]; });
|
|
16408
17620
|
|
|
16409
|
-
/* harmony import */ var
|
|
16410
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PageAdorner", function() { return
|
|
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"]; });
|
|
16411
17623
|
|
|
16412
|
-
/* harmony import */ var
|
|
16413
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "RowViewModel", function() { return
|
|
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"]; });
|
|
16414
17626
|
|
|
16415
|
-
/* harmony import */ var
|
|
16416
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionAdornerViewModel", function() { return
|
|
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"]; });
|
|
16417
17629
|
|
|
16418
|
-
/* harmony import */ var
|
|
16419
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionDropdownAdornerViewModel", function() { return
|
|
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"]; });
|
|
16420
17632
|
|
|
16421
|
-
/* harmony import */ var
|
|
16422
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionImageAdornerViewModel", function() { return
|
|
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"]; });
|
|
16423
17635
|
|
|
16424
|
-
/* harmony import */ var
|
|
16425
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionRatingAdornerViewModel", function() { return
|
|
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"]; });
|
|
16426
17638
|
|
|
16427
|
-
/* harmony import */ var
|
|
16428
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ItemValueWrapperViewModel", function() { return
|
|
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"]; });
|
|
16429
17641
|
|
|
16430
|
-
/* harmony import */ var
|
|
16431
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ImageItemValueWrapperViewModel", function() { return
|
|
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"]; });
|
|
16432
17644
|
|
|
16433
|
-
/* harmony import */ var
|
|
16434
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixCellWrapperEditSurvey", function() { return
|
|
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"]; });
|
|
16435
17647
|
|
|
16436
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixCellWrapperViewModel", function() { return
|
|
17648
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "MatrixCellWrapperViewModel", function() { return _components_matrix_cell__WEBPACK_IMPORTED_MODULE_32__["MatrixCellWrapperViewModel"]; });
|
|
16437
17649
|
|
|
16438
|
-
/* harmony import */ var
|
|
16439
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveySimulatorModel", function() { return
|
|
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"]; });
|
|
16440
17652
|
|
|
16441
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_MONITOR_DPI", function() { return
|
|
17653
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "DEFAULT_MONITOR_DPI", function() { return _components_simulator__WEBPACK_IMPORTED_MODULE_33__["DEFAULT_MONITOR_DPI"]; });
|
|
16442
17654
|
|
|
16443
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "simulatorDevices", function() { return
|
|
17655
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "simulatorDevices", function() { return _components_simulator__WEBPACK_IMPORTED_MODULE_33__["simulatorDevices"]; });
|
|
16444
17656
|
|
|
16445
|
-
/* harmony import */ var
|
|
16446
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyResultsItemModel", function() { return
|
|
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"]; });
|
|
16447
17659
|
|
|
16448
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyResultsModel", function() { return
|
|
17660
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyResultsModel", function() { return _components_results__WEBPACK_IMPORTED_MODULE_34__["SurveyResultsModel"]; });
|
|
16449
17661
|
|
|
16450
|
-
/* harmony import */ var
|
|
16451
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "LogoImageViewModel", function() { return
|
|
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"]; });
|
|
16452
17664
|
|
|
16453
|
-
/* harmony import */ var
|
|
16454
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringItemsNavigatorBase", function() { return
|
|
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"]; });
|
|
16455
17667
|
|
|
16456
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringEditorConnector", function() { return
|
|
17668
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringEditorConnector", function() { return _components_string_editor__WEBPACK_IMPORTED_MODULE_36__["StringEditorConnector"]; });
|
|
16457
17669
|
|
|
16458
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringEditorViewModelBase", function() { return
|
|
17670
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "StringEditorViewModelBase", function() { return _components_string_editor__WEBPACK_IMPORTED_MODULE_36__["StringEditorViewModelBase"]; });
|
|
16459
17671
|
|
|
16460
|
-
/* harmony import */ var
|
|
16461
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionEmbeddedSurveyModel", function() { return
|
|
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"]; });
|
|
16462
17674
|
|
|
16463
|
-
/* harmony import */ var
|
|
16464
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionLinkValueModel", function() { return
|
|
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"]; });
|
|
16465
17677
|
|
|
16466
17678
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "EditorLocalization", function() { return _editorLocalization__WEBPACK_IMPORTED_MODULE_1__["EditorLocalization"]; });
|
|
16467
17679
|
|
|
16468
17680
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getLocString", function() { return _editorLocalization__WEBPACK_IMPORTED_MODULE_1__["getLocString"]; });
|
|
16469
17681
|
|
|
16470
|
-
/* harmony import */ var
|
|
16471
|
-
/* 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"]; });
|
|
17687
|
+
|
|
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"]; });
|
|
17690
|
+
|
|
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"]; });
|
|
17693
|
+
|
|
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"]; });
|
|
16472
17696
|
|
|
16473
|
-
/* harmony
|
|
16474
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionSpinEditorModel", function() { return _custom_questions_question_spin_editor__WEBPACK_IMPORTED_MODULE_38__["QuestionSpinEditorModel"]; });
|
|
17697
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyEditorSetupValue", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyEditorSetupValue"]; });
|
|
16475
17698
|
|
|
16476
|
-
/* harmony
|
|
16477
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionColorModel", function() { return _custom_questions_question_color__WEBPACK_IMPORTED_MODULE_39__["QuestionColorModel"]; });
|
|
17699
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCollection", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorCollection"]; });
|
|
16478
17700
|
|
|
16479
|
-
/* harmony
|
|
16480
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionFileEditorModel", function() { return _custom_questions_question_file__WEBPACK_IMPORTED_MODULE_40__["QuestionFileEditorModel"]; });
|
|
17701
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTitleActionsCreator", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridTitleActionsCreator"]; });
|
|
16481
17702
|
|
|
16482
|
-
/* harmony
|
|
16483
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setSurveyJSONForPropertyGrid", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_41__["setSurveyJSONForPropertyGrid"]; });
|
|
17703
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyJSONGenerator", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyJSONGenerator"]; });
|
|
16484
17704
|
|
|
16485
|
-
/* 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"]; });
|
|
16486
17706
|
|
|
16487
|
-
/* 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"]; });
|
|
16488
17708
|
|
|
16489
|
-
/* 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"]; });
|
|
16490
17710
|
|
|
16491
|
-
/* 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"]; });
|
|
16492
17712
|
|
|
16493
|
-
/* 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"]; });
|
|
16494
17714
|
|
|
16495
|
-
/* 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"]; });
|
|
16496
17716
|
|
|
16497
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17717
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorNumber", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorNumber"]; });
|
|
16498
17718
|
|
|
16499
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17719
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorImageSize", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorImageSize"]; });
|
|
16500
17720
|
|
|
16501
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17721
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorText", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorText"]; });
|
|
16502
17722
|
|
|
16503
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17723
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorHtml", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorHtml"]; });
|
|
16504
17724
|
|
|
16505
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17725
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorColor", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorColor"]; });
|
|
16506
17726
|
|
|
16507
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17727
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringArray", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorStringArray"]; });
|
|
16508
17728
|
|
|
16509
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17729
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorDropdown", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorDropdown"]; });
|
|
16510
17730
|
|
|
16511
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17731
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorSet", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorSet"]; });
|
|
16512
17732
|
|
|
16513
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17733
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorPage", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorPage"]; });
|
|
16514
17734
|
|
|
16515
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17735
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestion", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorQuestion"]; });
|
|
16516
17736
|
|
|
16517
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17737
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionSelectBase", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorQuestionSelectBase"]; });
|
|
16518
17738
|
|
|
16519
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17739
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionValue", function() { return _property_grid__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorQuestionValue"]; });
|
|
16520
17740
|
|
|
16521
|
-
/* harmony
|
|
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"]; });
|
|
16522
17743
|
|
|
16523
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17744
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorCondition", function() { return _property_grid_condition__WEBPACK_IMPORTED_MODULE_44__["PropertyGridEditorCondition"]; });
|
|
16524
17745
|
|
|
16525
|
-
/* harmony
|
|
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"]; });
|
|
16526
17748
|
|
|
16527
|
-
/* harmony
|
|
16528
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorExpression", function() { return _property_grid_condition__WEBPACK_IMPORTED_MODULE_42__["PropertyGridEditorExpression"]; });
|
|
17749
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixItemValues", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixItemValues"]; });
|
|
16529
17750
|
|
|
16530
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17751
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixRateValues", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixRateValues"]; });
|
|
16531
17752
|
|
|
16532
|
-
/* harmony
|
|
16533
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrix", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_43__["PropertyGridEditorMatrix"]; });
|
|
17753
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixColumns", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixColumns"]; });
|
|
16534
17754
|
|
|
16535
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17755
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixPages", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixPages"]; });
|
|
16536
17756
|
|
|
16537
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17757
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixCalculatedValues", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixCalculatedValues"]; });
|
|
16538
17758
|
|
|
16539
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17759
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixHtmlConditions", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixHtmlConditions"]; });
|
|
16540
17760
|
|
|
16541
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17761
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixUrlConditions", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixUrlConditions"]; });
|
|
16542
17762
|
|
|
16543
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17763
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixMutlipleTextItems", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixMutlipleTextItems"]; });
|
|
16544
17764
|
|
|
16545
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17765
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixMultipleTypes", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixMultipleTypes"]; });
|
|
16546
17766
|
|
|
16547
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17767
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixValidators", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixValidators"]; });
|
|
16548
17768
|
|
|
16549
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17769
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorMatrixTriggers", function() { return _property_grid_matrices__WEBPACK_IMPORTED_MODULE_45__["PropertyGridEditorMatrixTriggers"]; });
|
|
16550
17770
|
|
|
16551
|
-
/* harmony
|
|
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"]; });
|
|
16552
17773
|
|
|
16553
|
-
/* harmony
|
|
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"]; });
|
|
16554
17776
|
|
|
16555
|
-
/* harmony
|
|
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"]; });
|
|
16556
17779
|
|
|
16557
|
-
/* harmony
|
|
16558
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBindings", function() { return _property_grid_bindings__WEBPACK_IMPORTED_MODULE_44__["PropertyGridEditorBindings"]; });
|
|
17780
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelector", function() { return _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_48__["ObjectSelector"]; });
|
|
16559
17781
|
|
|
16560
|
-
/* harmony
|
|
16561
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridViewModel", function() { return _property_grid_property_grid_view_model__WEBPACK_IMPORTED_MODULE_45__["PropertyGridViewModel"]; });
|
|
17782
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjectSelectorModel", function() { return _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_48__["ObjectSelectorModel"]; });
|
|
16562
17783
|
|
|
16563
|
-
/* harmony import */ var
|
|
16564
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
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"]; });
|
|
16565
17786
|
|
|
16566
|
-
/* harmony
|
|
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"]; });
|
|
16567
17789
|
|
|
16568
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17790
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridCellsEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_50__["PropertyGridCellsEditor"]; });
|
|
16569
17791
|
|
|
16570
|
-
/* harmony
|
|
16571
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorQuestionRestfull", function() { return _property_grid_restfull__WEBPACK_IMPORTED_MODULE_47__["PropertyGridEditorQuestionRestfull"]; });
|
|
17792
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_50__["PropertyGridValueEditor"]; });
|
|
16572
17793
|
|
|
16573
|
-
/* harmony
|
|
16574
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridValueEditorBase", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_48__["PropertyGridValueEditorBase"]; });
|
|
17794
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridRowValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_50__["PropertyGridRowValueEditor"]; });
|
|
16575
17795
|
|
|
16576
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17796
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridPanelValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_50__["PropertyGridPanelValueEditor"]; });
|
|
16577
17797
|
|
|
16578
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17798
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTriggerValueEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_50__["PropertyGridTriggerValueEditor"]; });
|
|
16579
17799
|
|
|
16580
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17800
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PropertyGridTriggerValueInLogicEditor", function() { return _property_grid_values__WEBPACK_IMPORTED_MODULE_50__["PropertyGridTriggerValueInLogicEditor"]; });
|
|
16581
17801
|
|
|
16582
|
-
/* harmony
|
|
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"]; });
|
|
16583
17804
|
|
|
16584
|
-
/* harmony
|
|
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"]; });
|
|
16585
17807
|
|
|
16586
|
-
/* harmony
|
|
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"]; });
|
|
16587
17810
|
|
|
16588
|
-
/* harmony import */ var
|
|
16589
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
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"]; });
|
|
16590
17813
|
|
|
16591
|
-
/* harmony import */ var
|
|
16592
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
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"]; });
|
|
16593
17816
|
|
|
16594
|
-
/* harmony
|
|
16595
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "svgBundle", function() { return _svgbundle__WEBPACK_IMPORTED_MODULE_51__["svgBundle"]; });
|
|
17817
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolboxItem", function() { return _toolbox__WEBPACK_IMPORTED_MODULE_55__["QuestionToolboxItem"]; });
|
|
16596
17818
|
|
|
16597
|
-
/* harmony
|
|
16598
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyTextWorker", function() { return _textWorker__WEBPACK_IMPORTED_MODULE_52__["SurveyTextWorker"]; });
|
|
17819
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "QuestionToolbox", function() { return _toolbox__WEBPACK_IMPORTED_MODULE_55__["QuestionToolbox"]; });
|
|
16599
17820
|
|
|
16600
|
-
/* harmony import */ var
|
|
16601
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
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"]; });
|
|
16602
17823
|
|
|
16603
|
-
/* harmony
|
|
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"]; });
|
|
16604
17826
|
|
|
16605
|
-
/* harmony
|
|
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"]; });
|
|
16606
17830
|
|
|
16607
|
-
/* harmony
|
|
16608
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarModel", function() { return _components_side_bar_side_bar_model__WEBPACK_IMPORTED_MODULE_54__["SidebarModel"]; });
|
|
17831
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemText", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["getNextItemText"]; });
|
|
16609
17832
|
|
|
16610
|
-
/* harmony
|
|
16611
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SidebarTabModel", function() { return _components_side_bar_side_bar_tab_model__WEBPACK_IMPORTED_MODULE_55__["SidebarTabModel"]; });
|
|
17833
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextValue", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["getNextValue"]; });
|
|
16612
17834
|
|
|
16613
|
-
/* harmony
|
|
16614
|
-
/* empty/unused harmony star reexport *//* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
16615
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNextItemValue", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_57__["getNextItemValue"]; });
|
|
17835
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "findParentNode", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["findParentNode"]; });
|
|
16616
17836
|
|
|
16617
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17837
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "focusFirstControl", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["focusFirstControl"]; });
|
|
16618
17838
|
|
|
16619
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17839
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getFirstNonTextElement", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["getFirstNonTextElement"]; });
|
|
16620
17840
|
|
|
16621
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17841
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getNodesFromKoComponentInfo", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["getNodesFromKoComponentInfo"]; });
|
|
16622
17842
|
|
|
16623
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17843
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "propertyExists", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["propertyExists"]; });
|
|
16624
17844
|
|
|
16625
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17845
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "isPropertyVisible", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["isPropertyVisible"]; });
|
|
16626
17846
|
|
|
16627
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17847
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "toggleHovered", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["toggleHovered"]; });
|
|
16628
17848
|
|
|
16629
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17849
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "clearNewLines", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["clearNewLines"]; });
|
|
16630
17850
|
|
|
16631
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17851
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "select", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["select"]; });
|
|
16632
17852
|
|
|
16633
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17853
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyObject", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["copyObject"]; });
|
|
16634
17854
|
|
|
16635
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17855
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "copyCssClasses", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["copyCssClasses"]; });
|
|
16636
17856
|
|
|
16637
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17857
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "assignDefaultV2Classes", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["assignDefaultV2Classes"]; });
|
|
16638
17858
|
|
|
16639
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17859
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "wrapTextByCurlyBraces", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["wrapTextByCurlyBraces"]; });
|
|
16640
17860
|
|
|
16641
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17861
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "capitalize", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["capitalize"]; });
|
|
16642
17862
|
|
|
16643
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17863
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "notShortCircuitAnd", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["notShortCircuitAnd"]; });
|
|
16644
17864
|
|
|
16645
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17865
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "imageMimeTypes", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["imageMimeTypes"]; });
|
|
16646
17866
|
|
|
16647
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "
|
|
17867
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "getAcceptedTypesByContentMode", function() { return _utils_utils__WEBPACK_IMPORTED_MODULE_59__["getAcceptedTypesByContentMode"]; });
|
|
16648
17868
|
|
|
16649
|
-
/* 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"]; });
|
|
16650
17870
|
|
|
16651
|
-
/* harmony import */ var
|
|
16652
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyQuestionEditorDefinition", function() { return
|
|
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"]; });
|
|
16653
17873
|
|
|
16654
|
-
/* harmony import */ var
|
|
16655
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ObjType", function() { return
|
|
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"]; });
|
|
16656
17876
|
|
|
16657
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyHelper", function() { return
|
|
17877
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "SurveyHelper", function() { return _survey_helper__WEBPACK_IMPORTED_MODULE_61__["SurveyHelper"]; });
|
|
16658
17878
|
|
|
16659
|
-
/* harmony import */ var
|
|
16660
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ResizeManager", function() { return
|
|
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"]; });
|
|
16661
17881
|
|
|
16662
|
-
/* harmony import */ var
|
|
16663
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoPlugin", function() { return
|
|
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"]; });
|
|
16664
17884
|
|
|
16665
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "undoRedoTransaction", function() { return
|
|
17885
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "undoRedoTransaction", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_63__["undoRedoTransaction"]; });
|
|
16666
17886
|
|
|
16667
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ignoreUndoRedo", function() { return
|
|
17887
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ignoreUndoRedo", function() { return _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_63__["ignoreUndoRedo"]; });
|
|
16668
17888
|
|
|
16669
|
-
/* harmony import */ var
|
|
16670
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoManager", function() { return
|
|
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"]; });
|
|
16671
17891
|
|
|
16672
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Transaction", function() { return
|
|
17892
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Transaction", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_64__["Transaction"]; });
|
|
16673
17893
|
|
|
16674
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoAction", function() { return
|
|
17894
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoAction", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_64__["UndoRedoAction"]; });
|
|
16675
17895
|
|
|
16676
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoArrayAction", function() { return
|
|
17896
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "UndoRedoArrayAction", function() { return _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_64__["UndoRedoArrayAction"]; });
|
|
16677
17897
|
|
|
16678
|
-
/* harmony import */ var
|
|
16679
|
-
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "PagesController", function() { return
|
|
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"]; });
|
|
16680
17900
|
|
|
16681
|
-
/* harmony import */ var
|
|
16682
|
-
/* harmony import */ var
|
|
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__);
|
|
16683
17903
|
var Version;
|
|
16684
|
-
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
|
+
|
|
16685
17909
|
|
|
16686
17910
|
|
|
16687
17911
|
|
|
@@ -16761,8 +17985,8 @@ __webpack_require__(/*! ../property-grid-theme/property-grid.scss */ "./src/prop
|
|
|
16761
17985
|
__webpack_require__(/*! ../utils/design.scss */ "./src/utils/design.scss");
|
|
16762
17986
|
__webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
|
|
16763
17987
|
|
|
16764
|
-
|
|
16765
|
-
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");
|
|
16766
17990
|
|
|
16767
17991
|
|
|
16768
17992
|
/***/ }),
|
|
@@ -18873,6 +20097,7 @@ var enStrings = {
|
|
|
18873
20097
|
newPanelName: "panel",
|
|
18874
20098
|
newTextItemName: "text",
|
|
18875
20099
|
testSurvey: "Preview",
|
|
20100
|
+
themeSurvey: "Themes",
|
|
18876
20101
|
defaultV2Theme: "Default",
|
|
18877
20102
|
modernTheme: "Modern",
|
|
18878
20103
|
defaultTheme: "Default (legacy)",
|
|
@@ -18926,6 +20151,7 @@ var enStrings = {
|
|
|
18926
20151
|
propertyEditorError: "Error",
|
|
18927
20152
|
saveError: "Error! Editor content is not saved.",
|
|
18928
20153
|
translationPropertyGridTitle: "Language Settings",
|
|
20154
|
+
previewPropertyGridTitle: "Theme Settings",
|
|
18929
20155
|
translationLanguages: "Languages",
|
|
18930
20156
|
translationAddLanguage: "Select language to translate",
|
|
18931
20157
|
translationShowAllStrings: "All Strings",
|
|
@@ -18944,7 +20170,7 @@ var enStrings = {
|
|
|
18944
20170
|
htmlPlaceHolder: "HTML content will be here.",
|
|
18945
20171
|
panelPlaceHolder: "Drop a question from the toolbox here.",
|
|
18946
20172
|
surveyPlaceHolder: "The survey is empty. Drag an element from the toolbox or click the button below.",
|
|
18947
|
-
imagePlaceHolder: "
|
|
20173
|
+
imagePlaceHolder: "Drag and drop an image here or click the button below and choose an image to upload",
|
|
18948
20174
|
imageChooseImage: "Choose Image",
|
|
18949
20175
|
addNewTypeQuestion: "Add {0}",
|
|
18950
20176
|
chooseLogoPlaceholder: "[LOGO]",
|
|
@@ -19076,6 +20302,7 @@ var enStrings = {
|
|
|
19076
20302
|
propertyIsEmpty: "Please enter a value",
|
|
19077
20303
|
propertyIsNoUnique: "Please enter a unique value",
|
|
19078
20304
|
propertyNameIsNotUnique: "Please enter a unique name",
|
|
20305
|
+
propertyNameIsIncorrect: "Do not use reserved words: \"item\", \"choice\", \"panel\", \"row\".",
|
|
19079
20306
|
listIsEmpty: "No items have been added yet",
|
|
19080
20307
|
"listIsEmpty@choices": "No choices have been added yet",
|
|
19081
20308
|
"addNew@choices": "Add a choice",
|
|
@@ -19457,6 +20684,7 @@ var enStrings = {
|
|
|
19457
20684
|
progressTop: "Panel navigator + Progress bar at the top",
|
|
19458
20685
|
progressBottom: "Panel navigator + Progress bar at the bottom",
|
|
19459
20686
|
progressTopBottom: "Panel navigator + Progress bar at the top and bottom",
|
|
20687
|
+
tab: "Tabs",
|
|
19460
20688
|
horizontal: "Horizontal",
|
|
19461
20689
|
vertical: "Vertical",
|
|
19462
20690
|
top: "Top",
|
|
@@ -19577,7 +20805,12 @@ var enStrings = {
|
|
|
19577
20805
|
autoGenerate: {
|
|
19578
20806
|
"true": "Generate",
|
|
19579
20807
|
"false": "Enter manually"
|
|
19580
|
-
}
|
|
20808
|
+
},
|
|
20809
|
+
rateType: {
|
|
20810
|
+
labels: "Labels",
|
|
20811
|
+
stars: "Stars",
|
|
20812
|
+
smileys: "Smileys"
|
|
20813
|
+
},
|
|
19581
20814
|
},
|
|
19582
20815
|
// Operators
|
|
19583
20816
|
op: {
|
|
@@ -19738,7 +20971,61 @@ var enStrings = {
|
|
|
19738
20971
|
showCaption: "Show caption",
|
|
19739
20972
|
iconName: "Icon name",
|
|
19740
20973
|
iconSize: "Icon size" // Auto-generated string
|
|
19741
|
-
}
|
|
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
|
+
},
|
|
19742
21029
|
};
|
|
19743
21030
|
// Uncomment the line below if you create a custom dictionary.
|
|
19744
21031
|
// Replace "en" with a custom locale code (for example, "fr" or "de"),
|
|
@@ -22438,7 +23725,7 @@ var FastEntryEditor = /** @class */ (function (_super) {
|
|
|
22438
23725
|
/*!************************************!*\
|
|
22439
23726
|
!*** ./src/property-grid/index.ts ***!
|
|
22440
23727
|
\************************************/
|
|
22441
|
-
/*! exports provided: setSurveyJSONForPropertyGrid, PropertyEditorSetupValue, PropertyGridEditorCollection, PropertyGridTitleActionsCreator, PropertyJSONGenerator, PropertyGridModel, PropertyGridEditor, PropertyGridEditorBoolean, PropertyGridEditorStringBase, PropertyGridEditorString, PropertyGridEditorNumber, PropertyGridEditorImageSize, PropertyGridEditorText, PropertyGridEditorHtml, PropertyGridEditorColor, PropertyGridEditorStringArray, PropertyGridEditorDropdown, PropertyGridEditorSet, PropertyGridEditorPage, PropertyGridEditorQuestion, PropertyGridEditorQuestionSelectBase, PropertyGridEditorQuestionValue */
|
|
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 */
|
|
22442
23729
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
22443
23730
|
|
|
22444
23731
|
"use strict";
|
|
@@ -22453,6 +23740,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22453
23740
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorBoolean", function() { return PropertyGridEditorBoolean; });
|
|
22454
23741
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorStringBase", function() { return PropertyGridEditorStringBase; });
|
|
22455
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; });
|
|
22456
23744
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorNumber", function() { return PropertyGridEditorNumber; });
|
|
22457
23745
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorImageSize", function() { return PropertyGridEditorImageSize; });
|
|
22458
23746
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "PropertyGridEditorText", function() { return PropertyGridEditorText; });
|
|
@@ -22476,6 +23764,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22476
23764
|
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../survey-helper */ "./src/survey-helper.ts");
|
|
22477
23765
|
/* harmony import */ var _question_editor_definition__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../question-editor/definition */ "./src/question-editor/definition.ts");
|
|
22478
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
|
+
|
|
22479
23769
|
|
|
22480
23770
|
|
|
22481
23771
|
|
|
@@ -22989,6 +24279,9 @@ var PropertyGridModel = /** @class */ (function () {
|
|
|
22989
24279
|
if (options === void 0) { options = new _creator_settings__WEBPACK_IMPORTED_MODULE_6__["EmptySurveyCreatorOptions"](); }
|
|
22990
24280
|
this.isCellCreating = false;
|
|
22991
24281
|
this.options = options;
|
|
24282
|
+
if (this.options.enableLinkFileEditor) {
|
|
24283
|
+
PropertyGridEditorCollection.register(new PropertyGridLinkEditor());
|
|
24284
|
+
}
|
|
22992
24285
|
this.obj = obj;
|
|
22993
24286
|
}
|
|
22994
24287
|
PropertyGridModel.prototype.refresh = function () {
|
|
@@ -23141,6 +24434,11 @@ var PropertyGridModel = /** @class */ (function () {
|
|
|
23141
24434
|
_this.currentlySelectedProperty = options.question.name;
|
|
23142
24435
|
_this.currentlySelectedPanel = options.question.parent;
|
|
23143
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
|
+
});
|
|
23144
24442
|
this.survey.getAllQuestions().map(function (q) { return q.allowRootStyle = false; });
|
|
23145
24443
|
this.survey.onQuestionCreated.add(function (_, opt) {
|
|
23146
24444
|
opt.question.allowRootStyle = false;
|
|
@@ -23202,9 +24500,10 @@ var PropertyGridModel = /** @class */ (function () {
|
|
|
23202
24500
|
return res;
|
|
23203
24501
|
};
|
|
23204
24502
|
PropertyGridModel.prototype.validateQuestionValue = function (obj, question, prop, val) {
|
|
23205
|
-
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"]))
|
|
23206
24504
|
return _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("pe.propertyIsEmpty");
|
|
23207
|
-
|
|
24505
|
+
if (this.isPropNameInValid(obj, prop, val) || question["nameHasError"])
|
|
24506
|
+
return _editorLocalization__WEBPACK_IMPORTED_MODULE_2__["editorLocalization"].getString("pe.propertyNameIsIncorrect");
|
|
23208
24507
|
var editorError = PropertyGridEditorCollection.validateValue(obj, question, prop, val);
|
|
23209
24508
|
if (!!editorError)
|
|
23210
24509
|
return editorError;
|
|
@@ -23231,20 +24530,25 @@ var PropertyGridModel = /** @class */ (function () {
|
|
|
23231
24530
|
options.value = changingOptions.newValue;
|
|
23232
24531
|
if (q.property.isRequired) {
|
|
23233
24532
|
var isEmpty = survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isValueEmpty(options.value);
|
|
23234
|
-
if (isEmpty) {
|
|
23235
|
-
options.value = options.oldValue;
|
|
23236
|
-
}
|
|
23237
24533
|
q["valueChangingEmpty"] = isEmpty;
|
|
23238
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;
|
|
23239
24544
|
};
|
|
23240
24545
|
PropertyGridModel.prototype.onValueChanged = function (options) {
|
|
23241
24546
|
var _this = this;
|
|
23242
24547
|
var q = options.question;
|
|
23243
24548
|
if (!q || !q.property)
|
|
23244
24549
|
return;
|
|
23245
|
-
|
|
23246
|
-
|
|
23247
|
-
}
|
|
24550
|
+
q["valueChangingEmpty"] = false;
|
|
24551
|
+
q["nameHasError"] = false;
|
|
23248
24552
|
this.changeDependedProperties(q, function (name) { return _this.survey.getQuestionByName(name); }, function (name) { return _this.survey.getValue(name); });
|
|
23249
24553
|
PropertyGridEditorCollection.onValueChanged(this.obj, q.property, q);
|
|
23250
24554
|
if (!!this.classNameProperty &&
|
|
@@ -23506,7 +24810,7 @@ var PropertyGridEditorString = /** @class */ (function (_super) {
|
|
|
23506
24810
|
};
|
|
23507
24811
|
PropertyGridEditorString.prototype.getJSON = function (obj, prop, options) {
|
|
23508
24812
|
var json = this.updateMaxLength(prop, { type: "text" });
|
|
23509
|
-
if (prop.
|
|
24813
|
+
if (prop.isRequired) {
|
|
23510
24814
|
json.textUpdateMode = "onBlur";
|
|
23511
24815
|
}
|
|
23512
24816
|
if (!!prop.dataList) {
|
|
@@ -23517,6 +24821,33 @@ var PropertyGridEditorString = /** @class */ (function (_super) {
|
|
|
23517
24821
|
return PropertyGridEditorString;
|
|
23518
24822
|
}(PropertyGridEditorStringBase));
|
|
23519
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
|
+
|
|
23520
24851
|
var PropertyGridEditorNumber = /** @class */ (function (_super) {
|
|
23521
24852
|
Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__extends"])(PropertyGridEditorNumber, _super);
|
|
23522
24853
|
function PropertyGridEditorNumber() {
|
|
@@ -24000,6 +25331,14 @@ var PropertyGridEditorMatrix = /** @class */ (function (_super) {
|
|
|
24000
25331
|
};
|
|
24001
25332
|
this.setupMatrixQuestion(obj, question, prop);
|
|
24002
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
|
+
};
|
|
24003
25342
|
PropertyGridEditorMatrix.prototype.initializePlaceholder = function (rowObj, cellQuestion, propertyName) {
|
|
24004
25343
|
var objType = typeof rowObj.getType === "function" && rowObj.getType();
|
|
24005
25344
|
if (cellQuestion.getType() === "text" && !!objType) {
|
|
@@ -24025,6 +25364,7 @@ var PropertyGridEditorMatrix = /** @class */ (function (_super) {
|
|
|
24025
25364
|
return;
|
|
24026
25365
|
var q = options.cellQuestion;
|
|
24027
25366
|
q.obj = rowObj;
|
|
25367
|
+
this.initializeAcceptedTypes(obj, q);
|
|
24028
25368
|
this.initializePlaceholder(rowObj, q, options.columnName);
|
|
24029
25369
|
q.property = survey_core__WEBPACK_IMPORTED_MODULE_1__["Serializer"].findProperty(rowObj.getType(), options.columnName);
|
|
24030
25370
|
};
|
|
@@ -24440,10 +25780,11 @@ var PropertyGridEditorMatrixRateValues = /** @class */ (function (_super) {
|
|
|
24440
25780
|
var _this = this;
|
|
24441
25781
|
_super.prototype.onCreated.call(this, obj, question, prop);
|
|
24442
25782
|
var matrixQuestion = question;
|
|
24443
|
-
|
|
25783
|
+
var ratingQuestion = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_4__["getQuestionFromObj"])(obj);
|
|
25784
|
+
this.updateAllowAddRemove(matrixQuestion, ratingQuestion);
|
|
24444
25785
|
obj.onPropertyChanged.add(function (sender, options) {
|
|
24445
25786
|
if (options.name == "rateCount" || options.name == "rateDisplayMode") {
|
|
24446
|
-
_this.updateAllowAddRemove(matrixQuestion,
|
|
25787
|
+
_this.updateAllowAddRemove(matrixQuestion, ratingQuestion);
|
|
24447
25788
|
}
|
|
24448
25789
|
});
|
|
24449
25790
|
};
|
|
@@ -28259,6 +29600,17 @@ function updateMatrixRemoveAction(question, actions, row) {
|
|
|
28259
29600
|
}
|
|
28260
29601
|
|
|
28261
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
|
+
|
|
28262
29614
|
/***/ }),
|
|
28263
29615
|
|
|
28264
29616
|
/***/ "./src/utils/design.scss":
|
|
@@ -28433,7 +29785,7 @@ var ResizeManager = /** @class */ (function () {
|
|
|
28433
29785
|
/*!****************************!*\
|
|
28434
29786
|
!*** ./src/utils/utils.ts ***!
|
|
28435
29787
|
\****************************/
|
|
28436
|
-
/*! 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 */
|
|
28437
29789
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
28438
29790
|
|
|
28439
29791
|
"use strict";
|
|
@@ -28456,6 +29808,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28456
29808
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "wrapTextByCurlyBraces", function() { return wrapTextByCurlyBraces; });
|
|
28457
29809
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "capitalize", function() { return capitalize; });
|
|
28458
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; });
|
|
28459
29814
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
28460
29815
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
28461
29816
|
/* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../creator-settings */ "./src/creator-settings.ts");
|
|
@@ -28762,6 +30117,21 @@ function notShortCircuitAnd() {
|
|
|
28762
30117
|
}
|
|
28763
30118
|
return args.every(function (val) { return val === true; });
|
|
28764
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
|
+
}
|
|
28765
30135
|
|
|
28766
30136
|
|
|
28767
30137
|
/***/ }),
|