survey-creator-core 1.12.16 → 1.12.17
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/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js.LICENSE.txt +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js.LICENSE.txt +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js.LICENSE.txt +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js.LICENSE.txt +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js.LICENSE.txt +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js.LICENSE.txt +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js.LICENSE.txt +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js.LICENSE.txt +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js.LICENSE.txt +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js.LICENSE.txt +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js.LICENSE.txt +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js.LICENSE.txt +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js.LICENSE.txt +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js.LICENSE.txt +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js.LICENSE.txt +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js.LICENSE.txt +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js.LICENSE.txt +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js.LICENSE.txt +1 -1
- package/i18n/mongolian.js +1 -1
- package/i18n/mongolian.min.js.LICENSE.txt +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js.LICENSE.txt +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js.LICENSE.txt +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js.LICENSE.txt +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js.LICENSE.txt +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js.LICENSE.txt +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js.LICENSE.txt +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js.LICENSE.txt +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js.LICENSE.txt +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js.LICENSE.txt +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js.LICENSE.txt +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js.LICENSE.txt +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js.LICENSE.txt +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +111 -84
- package/survey-creator-core.fontless.css +110 -83
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +17 -17
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
- package/survey-creator-core.js +798 -695
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +18 -18
- package/survey-creator-core.min.js +1 -1
- package/survey-creator-core.min.js.LICENSE.txt +1 -1
- package/themes/default-contrast.js +43 -9
- package/themes/default-contrast.js.map +1 -1
- package/themes/default-contrast.min.js +1 -1
- package/themes/default-contrast.min.js.LICENSE.txt +1 -1
- package/themes/default-dark.js +45 -11
- package/themes/default-dark.js.map +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-dark.min.js.LICENSE.txt +1 -1
- package/themes/default-light.js +35 -1
- package/themes/default-light.js.map +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/default-light.min.js.LICENSE.txt +1 -1
- package/themes/index.js +53 -19
- package/themes/index.js.map +1 -1
- package/themes/index.min.js +1 -1
- package/themes/index.min.js.LICENSE.txt +1 -1
- package/themes/themes/default.d.ts +68 -0
- package/typings/components/tabs/designer.d.ts +2 -1
- package/typings/components/tabs/json-editor-ace.d.ts +1 -0
- package/typings/components/tabs/json-editor-plugin.d.ts +1 -1
- package/typings/components/tabs/theme-plugin.d.ts +1 -1
- package/typings/creator-base.d.ts +22 -9
- package/typings/creator-options.d.ts +15 -3
- package/typings/creator-responsivity-manager.d.ts +1 -0
- package/typings/creator-settings.d.ts +0 -2
- package/typings/entries/index.d.ts +3 -0
- package/typings/property-grid/condition-survey.d.ts +0 -1
- package/typings/themes/default.d.ts +68 -0
- package/typings/utils/color-utils.d.ts +24 -0
- package/typings/utils/creator-utils.d.ts +10 -0
- package/typings/utils/html-element-utils.d.ts +7 -0
- package/typings/utils/utils.d.ts +0 -41
package/survey-creator-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v1.12.
|
|
2
|
+
* SurveyJS Creator v1.12.17
|
|
3
3
|
* (c) 2015-2024 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -5541,7 +5541,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5541
5541
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
5542
5542
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
5543
5543
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../editorLocalization */ "./src/editorLocalization.ts");
|
|
5544
|
-
/* harmony import */ var
|
|
5544
|
+
/* harmony import */ var _utils_creator_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/creator-utils */ "./src/utils/creator-utils.ts");
|
|
5545
5545
|
/* harmony import */ var _string_editor__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./string-editor */ "./src/components/string-editor.ts");
|
|
5546
5546
|
|
|
5547
5547
|
|
|
@@ -5626,7 +5626,7 @@ var ItemValueWrapperViewModel = /** @class */ (function (_super) {
|
|
|
5626
5626
|
if (!this.creator || !this.question || !this.question.newItem)
|
|
5627
5627
|
return;
|
|
5628
5628
|
this.question.newItem.value = this.creator.getNextItemValue(this.question);
|
|
5629
|
-
this.question.newItem.text = (0,
|
|
5629
|
+
this.question.newItem.text = (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_3__.getNextItemText)(this.question.choices);
|
|
5630
5630
|
};
|
|
5631
5631
|
ItemValueWrapperViewModel.prototype.registerOnPropertyChanged = function (itemName, propertyName) {
|
|
5632
5632
|
var _this = this;
|
|
@@ -6034,7 +6034,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6034
6034
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
6035
6035
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
6036
6036
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
6037
|
-
/* harmony import */ var
|
|
6037
|
+
/* harmony import */ var _utils_html_element_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/html-element-utils */ "./src/utils/html-element-utils.ts");
|
|
6038
6038
|
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../survey-helper */ "./src/survey-helper.ts");
|
|
6039
6039
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../editorLocalization */ "./src/editorLocalization.ts");
|
|
6040
6040
|
|
|
@@ -6187,7 +6187,7 @@ var MatrixCellWrapperViewModel = /** @class */ (function (_super) {
|
|
|
6187
6187
|
});
|
|
6188
6188
|
MatrixCellWrapperViewModel.prototype.hover = function (event, element) {
|
|
6189
6189
|
if (!this.row && this.context && this.context.getPropertyValue && this.context.getType && this.context.getType() !== "itemvalue") {
|
|
6190
|
-
(0,
|
|
6190
|
+
(0,_utils_html_element_utils__WEBPACK_IMPORTED_MODULE_2__.toggleHovered)(event, element);
|
|
6191
6191
|
}
|
|
6192
6192
|
};
|
|
6193
6193
|
MatrixCellWrapperViewModel.prototype.dispose = function () {
|
|
@@ -6321,7 +6321,7 @@ var PageNavigatorViewModel = /** @class */ (function (_super) {
|
|
|
6321
6321
|
};
|
|
6322
6322
|
PageNavigatorViewModel.prototype.patchContainerOffset = function (el) {
|
|
6323
6323
|
while (!!el) {
|
|
6324
|
-
if (el.className.indexOf("svc-tab-designer--with-
|
|
6324
|
+
if (el.className.indexOf("svc-tab-designer--with-surface-tools") !== -1) {
|
|
6325
6325
|
el.offsetParent.scrollTop = 0;
|
|
6326
6326
|
return;
|
|
6327
6327
|
}
|
|
@@ -7249,7 +7249,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7249
7249
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
7250
7250
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
7251
7251
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../editorLocalization */ "./src/editorLocalization.ts");
|
|
7252
|
-
/* harmony import */ var
|
|
7252
|
+
/* harmony import */ var _utils_creator_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/creator-utils */ "./src/utils/creator-utils.ts");
|
|
7253
7253
|
|
|
7254
7254
|
|
|
7255
7255
|
|
|
@@ -7266,7 +7266,7 @@ var QuestionRatingAdornerViewModel = /** @class */ (function (_super) {
|
|
|
7266
7266
|
}
|
|
7267
7267
|
Object.defineProperty(QuestionRatingAdornerViewModel.prototype, "element", {
|
|
7268
7268
|
get: function () {
|
|
7269
|
-
return (0,
|
|
7269
|
+
return (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_3__.getQuestionFromObj)(this.surveyElement);
|
|
7270
7270
|
},
|
|
7271
7271
|
enumerable: false,
|
|
7272
7272
|
configurable: true
|
|
@@ -7289,7 +7289,7 @@ var QuestionRatingAdornerViewModel = /** @class */ (function (_super) {
|
|
|
7289
7289
|
return item.value;
|
|
7290
7290
|
});
|
|
7291
7291
|
var itemText = model.creator.getChoicesItemBaseTitle();
|
|
7292
|
-
nextValue = (0,
|
|
7292
|
+
nextValue = (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_3__.getNextValue)(itemText, values);
|
|
7293
7293
|
var itemValue = new survey_core__WEBPACK_IMPORTED_MODULE_1__.ItemValue(nextValue);
|
|
7294
7294
|
itemValue.locOwner = {
|
|
7295
7295
|
getLocale: function () {
|
|
@@ -7454,7 +7454,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
7454
7454
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
7455
7455
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../editorLocalization */ "./src/editorLocalization.ts");
|
|
7456
7456
|
/* harmony import */ var _questionconverter__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../questionconverter */ "./src/questionconverter.ts");
|
|
7457
|
-
/* harmony import */ var
|
|
7457
|
+
/* harmony import */ var _utils_creator_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/creator-utils */ "./src/utils/creator-utils.ts");
|
|
7458
7458
|
/* harmony import */ var _action_container_view_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./action-container-view-model */ "./src/components/action-container-view-model.ts");
|
|
7459
7459
|
/* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../creator-settings */ "./src/creator-settings.ts");
|
|
7460
7460
|
/* harmony import */ var _string_editor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./string-editor */ "./src/components/string-editor.ts");
|
|
@@ -8237,8 +8237,8 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
8237
8237
|
}
|
|
8238
8238
|
items[items.length - 1].css += " svc-dropdown-action--convertTo-last";
|
|
8239
8239
|
if (typeof element["isRequired"] !== "undefined" &&
|
|
8240
|
-
(0,
|
|
8241
|
-
(0,
|
|
8240
|
+
(0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_4__.propertyExists)(element, "isRequired") &&
|
|
8241
|
+
(0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_4__.isPropertyVisible)(element, "isRequired")) {
|
|
8242
8242
|
items.push(this.createRequiredAction());
|
|
8243
8243
|
}
|
|
8244
8244
|
};
|
|
@@ -9630,6 +9630,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9630
9630
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
9631
9631
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../editorLocalization */ "./src/editorLocalization.ts");
|
|
9632
9632
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
9633
|
+
/* harmony import */ var _utils_creator_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/creator-utils */ "./src/utils/creator-utils.ts");
|
|
9634
|
+
/* harmony import */ var _utils_html_element_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/html-element-utils */ "./src/utils/html-element-utils.ts");
|
|
9635
|
+
|
|
9633
9636
|
|
|
9634
9637
|
|
|
9635
9638
|
|
|
@@ -9658,7 +9661,7 @@ var StringItemsNavigatorBase = /** @class */ (function () {
|
|
|
9658
9661
|
var _this = this;
|
|
9659
9662
|
var newItems = items.slice();
|
|
9660
9663
|
var createNewItem = function (text) {
|
|
9661
|
-
var val = creator.inplaceEditForValues ? text : (0,
|
|
9664
|
+
var val = creator.inplaceEditForValues ? text : (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_4__.getNextItemValue)(creator.getChoicesItemBaseTitle(), newItems);
|
|
9662
9665
|
if (_this.question.createItemValue)
|
|
9663
9666
|
return _this.question.createItemValue(val, text);
|
|
9664
9667
|
return new survey_core__WEBPACK_IMPORTED_MODULE_1__.ItemValue(val, text);
|
|
@@ -9788,7 +9791,7 @@ var StringItemsNavigatorMultipleText = /** @class */ (function (_super) {
|
|
|
9788
9791
|
};
|
|
9789
9792
|
StringItemsNavigatorMultipleText.prototype.addNewItem = function (creator, items, text) {
|
|
9790
9793
|
if (text === void 0) { text = null; }
|
|
9791
|
-
this.question.addItem(text || (0,
|
|
9794
|
+
this.question.addItem(text || (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_4__.getNextValue)("text", items.map(function (i) { return i.name; })));
|
|
9792
9795
|
};
|
|
9793
9796
|
StringItemsNavigatorMultipleText.prototype.getItemsPropertyName = function (items) {
|
|
9794
9797
|
return "items";
|
|
@@ -9826,7 +9829,7 @@ var StringItemsNavigatorMatrix = /** @class */ (function (_super) {
|
|
|
9826
9829
|
titleBase = "Row ";
|
|
9827
9830
|
propertyName = "rows";
|
|
9828
9831
|
}
|
|
9829
|
-
var newItem = new survey_core__WEBPACK_IMPORTED_MODULE_1__.ItemValue((0,
|
|
9832
|
+
var newItem = new survey_core__WEBPACK_IMPORTED_MODULE_1__.ItemValue((0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_4__.getNextValue)(titleBase, items.map(function (i) { return i.value; })));
|
|
9830
9833
|
items.push(text || newItem);
|
|
9831
9834
|
creator.onItemValueAddedCallback(this.question, propertyName, newItem, items);
|
|
9832
9835
|
};
|
|
@@ -9853,7 +9856,7 @@ var StringItemsNavigatorMatrixDropdown = /** @class */ (function (_super) {
|
|
|
9853
9856
|
if (items == this.question.columns) {
|
|
9854
9857
|
if (creator.maximumColumnsCount && items.length >= creator.maximumColumnsCount)
|
|
9855
9858
|
return;
|
|
9856
|
-
var column = new survey_core__WEBPACK_IMPORTED_MODULE_1__.MatrixDropdownColumn(text || (0,
|
|
9859
|
+
var column = new survey_core__WEBPACK_IMPORTED_MODULE_1__.MatrixDropdownColumn(text || (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_4__.getNextValue)("Column ", items.map(function (i) { return i.value; })));
|
|
9857
9860
|
this.question.columns.push(column);
|
|
9858
9861
|
creator.onMatrixDropdownColumnAddedCallback(this.question, column, this.question.columns);
|
|
9859
9862
|
}
|
|
@@ -9916,7 +9919,7 @@ var StringEditorViewModelBase = /** @class */ (function (_super) {
|
|
|
9916
9919
|
var element = _this.getEditorElement();
|
|
9917
9920
|
if (element && element.offsetParent != null) {
|
|
9918
9921
|
element.focus({ preventScroll: true });
|
|
9919
|
-
(0,
|
|
9922
|
+
(0,_utils_html_element_utils__WEBPACK_IMPORTED_MODULE_5__.select)(element);
|
|
9920
9923
|
return true;
|
|
9921
9924
|
}
|
|
9922
9925
|
return false;
|
|
@@ -10134,7 +10137,7 @@ var StringEditorViewModelBase = /** @class */ (function (_super) {
|
|
|
10134
10137
|
if (!!itemValue.locOwner && !!itemValue.ownerPropertyName) {
|
|
10135
10138
|
var choices = itemValue.locOwner[itemValue.ownerPropertyName];
|
|
10136
10139
|
if (Array.isArray(choices) && !!survey_core__WEBPACK_IMPORTED_MODULE_1__.ItemValue.getItemByValue(choices, clearedText)) {
|
|
10137
|
-
clearedText = (0,
|
|
10140
|
+
clearedText = (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_4__.getNextItemValue)(clearedText, choices);
|
|
10138
10141
|
if (!!target) {
|
|
10139
10142
|
target.innerText = clearedText;
|
|
10140
10143
|
}
|
|
@@ -10194,7 +10197,7 @@ var StringEditorViewModelBase = /** @class */ (function (_super) {
|
|
|
10194
10197
|
};
|
|
10195
10198
|
StringEditorViewModelBase.prototype.onKeyUp = function (event) {
|
|
10196
10199
|
if (event.keyCode === 9 && event.target === document.activeElement) {
|
|
10197
|
-
(0,
|
|
10200
|
+
(0,_utils_html_element_utils__WEBPACK_IMPORTED_MODULE_5__.select)(event.target);
|
|
10198
10201
|
}
|
|
10199
10202
|
return true;
|
|
10200
10203
|
};
|
|
@@ -10204,7 +10207,7 @@ var StringEditorViewModelBase = /** @class */ (function (_super) {
|
|
|
10204
10207
|
if (!window)
|
|
10205
10208
|
return false;
|
|
10206
10209
|
if (window.getSelection().focusNode && (window.getSelection().focusNode.parentElement !== event.target) || window.getSelection().toString().length == 0) {
|
|
10207
|
-
(0,
|
|
10210
|
+
(0,_utils_html_element_utils__WEBPACK_IMPORTED_MODULE_5__.select)(event.target);
|
|
10208
10211
|
}
|
|
10209
10212
|
return false;
|
|
10210
10213
|
}
|
|
@@ -10514,7 +10517,6 @@ var TabDesignerPlugin = /** @class */ (function () {
|
|
|
10514
10517
|
TabDesignerPlugin.prototype.updateActivePage = function () {
|
|
10515
10518
|
if (this.showOneCategoryInPropertyGrid) {
|
|
10516
10519
|
this.setActivePage(this.creator.survey.pageCount ? this.propertyGridTab.id : this.propertyGridPlaceholderPage.id);
|
|
10517
|
-
this.updateHeaderComponent();
|
|
10518
10520
|
}
|
|
10519
10521
|
else {
|
|
10520
10522
|
this.setPropertyGridIsActivePage();
|
|
@@ -10923,7 +10925,7 @@ var TabDesignerViewModel = /** @class */ (function (_super) {
|
|
|
10923
10925
|
function TabDesignerViewModel(creator) {
|
|
10924
10926
|
var _this = _super.call(this) || this;
|
|
10925
10927
|
_this.minSurfaceScaling = 20;
|
|
10926
|
-
_this.maxSurfaceScaling =
|
|
10928
|
+
_this.maxSurfaceScaling = 100;
|
|
10927
10929
|
_this.stepSurfaceScaling = 10;
|
|
10928
10930
|
_this.surfaceScale = 100;
|
|
10929
10931
|
_this.unitDictionary = {
|
|
@@ -11098,7 +11100,7 @@ var TabDesignerViewModel = /** @class */ (function (_super) {
|
|
|
11098
11100
|
TabDesignerViewModel.prototype.scaleSurface = function (scaleFactor) {
|
|
11099
11101
|
var _this = this;
|
|
11100
11102
|
var _a;
|
|
11101
|
-
if (scaleFactor
|
|
11103
|
+
if (scaleFactor < this.minSurfaceScaling || scaleFactor > this.maxSurfaceScaling)
|
|
11102
11104
|
return;
|
|
11103
11105
|
this.surfaceScale = scaleFactor;
|
|
11104
11106
|
if (!this.creator.survey.responsiveStartWidth) {
|
|
@@ -11160,9 +11162,17 @@ var TabDesignerViewModel = /** @class */ (function (_super) {
|
|
|
11160
11162
|
enumerable: false,
|
|
11161
11163
|
configurable: true
|
|
11162
11164
|
});
|
|
11163
|
-
Object.defineProperty(TabDesignerViewModel.prototype, "
|
|
11165
|
+
Object.defineProperty(TabDesignerViewModel.prototype, "showSurfaceToolbar", {
|
|
11164
11166
|
get: function () {
|
|
11165
|
-
|
|
11167
|
+
var hasVisibleItems = this.surfaceToolbar.actions.some(function (action) { return action.visible; });
|
|
11168
|
+
return this.creator.allowShowSurfaceToolbar && hasVisibleItems;
|
|
11169
|
+
},
|
|
11170
|
+
enumerable: false,
|
|
11171
|
+
configurable: true
|
|
11172
|
+
});
|
|
11173
|
+
Object.defineProperty(TabDesignerViewModel.prototype, "showSurfaceTools", {
|
|
11174
|
+
get: function () {
|
|
11175
|
+
return !this.creator.isMobileView && (this.showSurfaceToolbar || (this.creator.showPageNavigator && (this.survey.pageCount > 1 || this.creator.pageEditMode === "bypage")));
|
|
11166
11176
|
},
|
|
11167
11177
|
enumerable: false,
|
|
11168
11178
|
configurable: true
|
|
@@ -11314,11 +11324,11 @@ var TabDesignerViewModel = /** @class */ (function (_super) {
|
|
|
11314
11324
|
};
|
|
11315
11325
|
TabDesignerViewModel.prototype.getRootCss = function () {
|
|
11316
11326
|
var rootCss = this.survey.css.root;
|
|
11317
|
-
if (
|
|
11318
|
-
rootCss += " svc-tab-designer--with-
|
|
11327
|
+
if (this.showSurfaceTools) {
|
|
11328
|
+
rootCss += " svc-tab-designer--with-surface-tools";
|
|
11319
11329
|
}
|
|
11320
11330
|
if (this.showPlaceholder) {
|
|
11321
|
-
rootCss += " svc-tab-designer--with-
|
|
11331
|
+
rootCss += " svc-tab-designer--with-placeholder";
|
|
11322
11332
|
}
|
|
11323
11333
|
rootCss += " svc-tab-designer--" + this.creator.pageEditMode + "-mode";
|
|
11324
11334
|
return rootCss;
|
|
@@ -11753,6 +11763,13 @@ var AceJsonEditorModel = /** @class */ (function (_super) {
|
|
|
11753
11763
|
this.aceEditor.session.doc.getNewLineCharacter();
|
|
11754
11764
|
this.onPluginActivate();
|
|
11755
11765
|
};
|
|
11766
|
+
AceJsonEditorModel.prototype.onPluginActivate = function () {
|
|
11767
|
+
_super.prototype.onPluginActivate.call(this);
|
|
11768
|
+
this.aceEditor.setFontSize(14);
|
|
11769
|
+
if (this.creator.preferredColorPalette === "dark") {
|
|
11770
|
+
this.aceEditor.setTheme("ace/theme/clouds_midnight");
|
|
11771
|
+
}
|
|
11772
|
+
};
|
|
11756
11773
|
AceJsonEditorModel.prototype.updateUndoRedoState = function () {
|
|
11757
11774
|
var undoManager = this.aceEditor
|
|
11758
11775
|
.getSession()
|
|
@@ -11844,7 +11861,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
11844
11861
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
11845
11862
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
11846
11863
|
/* harmony import */ var _textWorker__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../textWorker */ "./src/textWorker.ts");
|
|
11847
|
-
/* harmony import */ var
|
|
11864
|
+
/* harmony import */ var _utils_html_element_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/html-element-utils */ "./src/utils/html-element-utils.ts");
|
|
11848
11865
|
/* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../../creator-settings */ "./src/creator-settings.ts");
|
|
11849
11866
|
|
|
11850
11867
|
|
|
@@ -11985,7 +12002,7 @@ var JsonEditorBaseModel = /** @class */ (function (_super) {
|
|
|
11985
12002
|
var TabJsonEditorBasePlugin = /** @class */ (function () {
|
|
11986
12003
|
function TabJsonEditorBasePlugin(creator) {
|
|
11987
12004
|
this.creator = creator;
|
|
11988
|
-
this.saveToFileHandler =
|
|
12005
|
+
this.saveToFileHandler = _utils_html_element_utils__WEBPACK_IMPORTED_MODULE_3__.saveToFileHandler;
|
|
11989
12006
|
this.createActions().forEach(function (action) { return creator.toolbar.actions.push(action); });
|
|
11990
12007
|
}
|
|
11991
12008
|
TabJsonEditorBasePlugin.prototype.exportToFile = function (fileName) {
|
|
@@ -12753,8 +12770,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12753
12770
|
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../survey-helper */ "./src/survey-helper.ts");
|
|
12754
12771
|
/* harmony import */ var _logic_theme__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./logic-theme */ "./src/components/tabs/logic-theme.ts");
|
|
12755
12772
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
|
|
12756
|
-
/* harmony import */ var
|
|
12757
|
-
/* harmony import */ var
|
|
12773
|
+
/* harmony import */ var _utils_creator_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../../utils/creator-utils */ "./src/utils/creator-utils.ts");
|
|
12774
|
+
/* harmony import */ var _logic_actions_model__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./logic-actions-model */ "./src/components/tabs/logic-actions-model.ts");
|
|
12775
|
+
/* harmony import */ var _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../property-grid-theme/property-grid */ "./src/property-grid-theme/property-grid.ts");
|
|
12776
|
+
|
|
12758
12777
|
|
|
12759
12778
|
|
|
12760
12779
|
|
|
@@ -13049,16 +13068,16 @@ var LogicItemEditor = /** @class */ (function (_super) {
|
|
|
13049
13068
|
cssClasses.onError = "svc-logic-operator--error";
|
|
13050
13069
|
}
|
|
13051
13070
|
if (question.isContentElement || this.isSetValueInternalQuestion(question)) {
|
|
13052
|
-
(0,
|
|
13071
|
+
(0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_9__.assignDefaultV2Classes)(cssClasses, question.getType());
|
|
13053
13072
|
cssClasses.mainRoot += " svc-logic-question-value sd-element--with-frame";
|
|
13054
13073
|
}
|
|
13055
13074
|
var parentName = (_a = question.parent) === null || _a === void 0 ? void 0 : _a.name;
|
|
13056
13075
|
if (selectorsNames.indexOf(question.name) < 0 && (parentName === "triggerEditorPanel" || parentName === "setValueIfPanel")) {
|
|
13057
13076
|
var qType = question.getType();
|
|
13058
|
-
(0,
|
|
13059
|
-
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__.defaultV2Css[qType] &&
|
|
13060
|
-
(0,_utils_utils__WEBPACK_IMPORTED_MODULE_8__.copyCssClasses)(cssClasses,
|
|
13061
|
-
(0,_utils_utils__WEBPACK_IMPORTED_MODULE_8__.copyCssClasses)(cssClasses,
|
|
13077
|
+
(0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_9__.assignDefaultV2Classes)(cssClasses, qType);
|
|
13078
|
+
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__.defaultV2Css[qType] && _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_11__.propertyGridCss[qType]) {
|
|
13079
|
+
(0,_utils_utils__WEBPACK_IMPORTED_MODULE_8__.copyCssClasses)(cssClasses, _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_11__.propertyGridCss.question);
|
|
13080
|
+
(0,_utils_utils__WEBPACK_IMPORTED_MODULE_8__.copyCssClasses)(cssClasses, _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_11__.propertyGridCss[qType]);
|
|
13062
13081
|
}
|
|
13063
13082
|
var els = question.parent.elements.filter(function (el) { return selectorsNames.indexOf(el.name) < 0 && el.name !== "expression"; });
|
|
13064
13083
|
if ((question.name !== "runExpression" && qType !== "comment") || (Array.isArray(els) && els.length > 1)) {
|
|
@@ -13102,7 +13121,7 @@ var LogicItemEditor = /** @class */ (function (_super) {
|
|
|
13102
13121
|
cssClasses.panel.container += " svc-logic_trigger-questions";
|
|
13103
13122
|
}
|
|
13104
13123
|
if (this.isSetValueInternalQuestionCore(panel.parentQuestion)) {
|
|
13105
|
-
(0,
|
|
13124
|
+
(0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_9__.assignDefaultV2Classes)(cssClasses, panel.getType());
|
|
13106
13125
|
}
|
|
13107
13126
|
};
|
|
13108
13127
|
LogicItemEditor.prototype.onValueChanged = function (options) {
|
|
@@ -13164,7 +13183,7 @@ var LogicItemEditor = /** @class */ (function (_super) {
|
|
|
13164
13183
|
ltQuestion.choices = this.logicTypeChoices;
|
|
13165
13184
|
ltQuestion.allowClear = false;
|
|
13166
13185
|
if (!!action) {
|
|
13167
|
-
var newActionModel =
|
|
13186
|
+
var newActionModel = _logic_actions_model__WEBPACK_IMPORTED_MODULE_10__.LogicActionModelBase.createActionModel(panel, action, this.getLogicTypeByName(action.logicTypeName), this.selectorElementsHash);
|
|
13168
13187
|
this.setActionModelByPanel(panel, newActionModel);
|
|
13169
13188
|
ltQuestion.value = action.logicTypeName;
|
|
13170
13189
|
}
|
|
@@ -13240,7 +13259,7 @@ var LogicItemEditor = /** @class */ (function (_super) {
|
|
|
13240
13259
|
}
|
|
13241
13260
|
if (!logicType)
|
|
13242
13261
|
return;
|
|
13243
|
-
var newActionModel =
|
|
13262
|
+
var newActionModel = _logic_actions_model__WEBPACK_IMPORTED_MODULE_10__.LogicActionModelBase.createActionModel(panel, (oldActionModel ? oldActionModel.initialLogicAction : null), logicType, this.selectorElementsHash);
|
|
13244
13263
|
this.setActionModelByPanel(panel, newActionModel);
|
|
13245
13264
|
if (newActionModel.isTrigger) {
|
|
13246
13265
|
newActionModel.updatePanelElements(prevSelectedQuestion, this.options);
|
|
@@ -13338,7 +13357,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13338
13357
|
/* harmony import */ var _logic_expression__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./logic-expression */ "./src/components/tabs/logic-expression.ts");
|
|
13339
13358
|
/* harmony import */ var _logic_types__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./logic-types */ "./src/components/tabs/logic-types.ts");
|
|
13340
13359
|
/* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../creator-settings */ "./src/creator-settings.ts");
|
|
13341
|
-
/* harmony import */ var
|
|
13360
|
+
/* harmony import */ var _utils_creator_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/creator-utils */ "./src/utils/creator-utils.ts");
|
|
13342
13361
|
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../survey-helper */ "./src/survey-helper.ts");
|
|
13343
13362
|
|
|
13344
13363
|
|
|
@@ -13852,7 +13871,7 @@ var SurveyLogicItem = /** @class */ (function () {
|
|
|
13852
13871
|
return (this.isSuitableInExpression(filteredName) || this.isSuitableByNameInActions(filteredName)) && this.isSuitableByLogicTypeInActions(logicTypeName);
|
|
13853
13872
|
};
|
|
13854
13873
|
SurveyLogicItem.prototype.isSuitableInExpression = function (filteredName) {
|
|
13855
|
-
return this.expression.indexOf((0,
|
|
13874
|
+
return this.expression.indexOf((0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_6__.wrapTextByCurlyBraces)(filteredName)) !== -1 || this.expression.indexOf("'" + filteredName + ".") !== -1;
|
|
13856
13875
|
};
|
|
13857
13876
|
SurveyLogicItem.prototype.isSuitableByNameInActions = function (filteredName) {
|
|
13858
13877
|
return this.actions.some(function (action) { return action.isSuitableByQuestionName(filteredName); });
|
|
@@ -14495,7 +14514,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14495
14514
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
14496
14515
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../editorLocalization */ "./src/editorLocalization.ts");
|
|
14497
14516
|
/* harmony import */ var _expressionToDisplayText__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../expressionToDisplayText */ "./src/expressionToDisplayText.ts");
|
|
14498
|
-
/* harmony import */ var
|
|
14517
|
+
/* harmony import */ var _utils_creator_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../utils/creator-utils */ "./src/utils/creator-utils.ts");
|
|
14499
14518
|
|
|
14500
14519
|
|
|
14501
14520
|
|
|
@@ -14712,7 +14731,7 @@ var SurveyLogicType = /** @class */ (function () {
|
|
|
14712
14731
|
if (!res) {
|
|
14713
14732
|
res = element["name"] || "";
|
|
14714
14733
|
}
|
|
14715
|
-
return (0,
|
|
14734
|
+
return (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_3__.wrapTextByCurlyBraces)(res);
|
|
14716
14735
|
};
|
|
14717
14736
|
SurveyLogicType.prototype.getElementByName = function (name) {
|
|
14718
14737
|
if (!this.survey)
|
|
@@ -17196,7 +17215,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17196
17215
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
17197
17216
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
17198
17217
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../editorLocalization */ "./src/editorLocalization.ts");
|
|
17199
|
-
/* harmony import */ var
|
|
17218
|
+
/* harmony import */ var _utils_color_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../utils/color-utils */ "./src/utils/color-utils.ts");
|
|
17200
17219
|
|
|
17201
17220
|
|
|
17202
17221
|
|
|
@@ -17260,7 +17279,7 @@ if (!survey_core__WEBPACK_IMPORTED_MODULE_0__.ComponentCollection.Instance.getCu
|
|
|
17260
17279
|
return !!value ? createColor(value) : "";
|
|
17261
17280
|
},
|
|
17262
17281
|
valueFromQuestion: function (value) {
|
|
17263
|
-
return typeof value == "string" || typeof value == "undefined" ? (0,
|
|
17282
|
+
return typeof value == "string" || typeof value == "undefined" ? (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_2__.parseColor)(value) : value;
|
|
17264
17283
|
},
|
|
17265
17284
|
onCreated: function (question) {
|
|
17266
17285
|
question.contentPanel.questions.forEach(function (q) { return q.allowRootStyle = false; });
|
|
@@ -17290,7 +17309,7 @@ function syncPropertiesFromCompositeToColor(question, propertyName, newValue) {
|
|
|
17290
17309
|
}
|
|
17291
17310
|
}
|
|
17292
17311
|
function createColor(value) {
|
|
17293
|
-
return (0,
|
|
17312
|
+
return (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_2__.ingectAlpha)(value.color, value.opacity / 100);
|
|
17294
17313
|
}
|
|
17295
17314
|
|
|
17296
17315
|
|
|
@@ -17795,8 +17814,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
17795
17814
|
/* harmony import */ var survey_core_themes__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! survey-core/themes */ "survey-core/themes");
|
|
17796
17815
|
/* harmony import */ var survey_core_themes__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(survey_core_themes__WEBPACK_IMPORTED_MODULE_9__);
|
|
17797
17816
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
|
|
17798
|
-
/* harmony import */ var
|
|
17799
|
-
/* harmony import */ var
|
|
17817
|
+
/* harmony import */ var _utils_color_utils__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ../../utils/color-utils */ "./src/utils/color-utils.ts");
|
|
17818
|
+
/* harmony import */ var _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../plugins/undo-redo/undo-redo-manager */ "./src/plugins/undo-redo/undo-redo-manager.ts");
|
|
17819
|
+
/* harmony import */ var _theme_custom_questions__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./theme-custom-questions */ "./src/components/tabs/theme-custom-questions/index.ts");
|
|
17820
|
+
|
|
17800
17821
|
|
|
17801
17822
|
|
|
17802
17823
|
|
|
@@ -17895,13 +17916,13 @@ var ThemeModel = /** @class */ (function (_super) {
|
|
|
17895
17916
|
function ThemeModel() {
|
|
17896
17917
|
var _this = _super.call(this) || this;
|
|
17897
17918
|
_this.themeCssVariablesChanges = {};
|
|
17898
|
-
_this.colorCalculator = new
|
|
17919
|
+
_this.colorCalculator = new _utils_color_utils__WEBPACK_IMPORTED_MODULE_11__.ColorCalculator();
|
|
17899
17920
|
_this._defaultSessionTheme = ThemeModel.DefaultTheme;
|
|
17900
17921
|
_this.onThemeSelected = new survey_core__WEBPACK_IMPORTED_MODULE_1__.EventBase();
|
|
17901
17922
|
_this.onThemePropertyChanged = new survey_core__WEBPACK_IMPORTED_MODULE_1__.EventBase();
|
|
17902
17923
|
_this.onAllowModifyTheme = new survey_core__WEBPACK_IMPORTED_MODULE_1__.EventBase();
|
|
17903
17924
|
_this.blockThemeChangedNotifications = 0;
|
|
17904
|
-
(0,
|
|
17925
|
+
(0,_theme_custom_questions__WEBPACK_IMPORTED_MODULE_13__.updateCustomQuestionJSONs)();
|
|
17905
17926
|
_this.setNewHeaderProperty();
|
|
17906
17927
|
_this.onPropertyValueChangedCallback = function (name, oldValue, newValue, sender, arrayChanges) {
|
|
17907
17928
|
_this.onThemePropertyValueChangedCallback(name, oldValue, newValue, sender, arrayChanges);
|
|
@@ -18010,14 +18031,14 @@ var ThemeModel = /** @class */ (function (_super) {
|
|
|
18010
18031
|
this.setThemeCssVariablesChanges("--sjs-corner-radius", value + "px");
|
|
18011
18032
|
}
|
|
18012
18033
|
else if (name === "questionBackgroundTransparency" || name === "editorPanel") {
|
|
18013
|
-
var baseColor = (0,
|
|
18034
|
+
var baseColor = (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_11__.parseColor)(this.getPropertyValue("--sjs-general-backcolor-dim-light")).color;
|
|
18014
18035
|
var questionBackgroundTransparencyValue = this.getPropertyValue("questionBackgroundTransparency");
|
|
18015
|
-
this.setThemeCssVariablesChanges("--sjs-editor-background", (0,
|
|
18036
|
+
this.setThemeCssVariablesChanges("--sjs-editor-background", (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_11__.ingectAlpha)(baseColor, questionBackgroundTransparencyValue / 100));
|
|
18016
18037
|
}
|
|
18017
18038
|
else if (name === "panelBackgroundTransparency" || name === "questionPanel") {
|
|
18018
|
-
var baseColor = (0,
|
|
18039
|
+
var baseColor = (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_11__.parseColor)(this.getPropertyValue("--sjs-general-backcolor")).color;
|
|
18019
18040
|
var panelBackgroundTransparencyValue = this.getPropertyValue("panelBackgroundTransparency");
|
|
18020
|
-
this.setThemeCssVariablesChanges("--sjs-question-background", (0,
|
|
18041
|
+
this.setThemeCssVariablesChanges("--sjs-question-background", (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_11__.ingectAlpha)(baseColor, panelBackgroundTransparencyValue / 100));
|
|
18021
18042
|
}
|
|
18022
18043
|
else {
|
|
18023
18044
|
nameProcessed = false;
|
|
@@ -18051,7 +18072,7 @@ var ThemeModel = /** @class */ (function (_super) {
|
|
|
18051
18072
|
this.backgroundOpacity = ((surveyTheme.backgroundOpacity !== undefined ? surveyTheme.backgroundOpacity : survey === null || survey === void 0 ? void 0 : survey.backgroundOpacity) || 1) * 100;
|
|
18052
18073
|
this.loadTheme(surveyTheme, creator && creator.preferredColorPalette);
|
|
18053
18074
|
this.header["logoPosition"] = survey === null || survey === void 0 ? void 0 : survey.logoPosition;
|
|
18054
|
-
this.undoRedoManager = new
|
|
18075
|
+
this.undoRedoManager = new _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_12__.UndoRedoManager();
|
|
18055
18076
|
};
|
|
18056
18077
|
Object.defineProperty(ThemeModel.prototype, "header", {
|
|
18057
18078
|
get: function () {
|
|
@@ -18309,8 +18330,8 @@ var ThemeModel = /** @class */ (function (_super) {
|
|
|
18309
18330
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
18310
18331
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({
|
|
18311
18332
|
onSet: function (newValue, target) {
|
|
18312
|
-
var basecolor = (0,
|
|
18313
|
-
var newColor = (0,
|
|
18333
|
+
var basecolor = (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_11__.parseColor)(target.questionPanel.backcolor).color;
|
|
18334
|
+
var newColor = (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_11__.ingectAlpha)(basecolor, newValue / 100);
|
|
18314
18335
|
if (target.questionPanel.backcolor !== newColor) {
|
|
18315
18336
|
var newQuestionPanel = (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({}, target.questionPanel);
|
|
18316
18337
|
newQuestionPanel.backcolor = newColor;
|
|
@@ -18322,8 +18343,8 @@ var ThemeModel = /** @class */ (function (_super) {
|
|
|
18322
18343
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
18323
18344
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({
|
|
18324
18345
|
onSet: function (newValue, target) {
|
|
18325
|
-
var basecolor = (0,
|
|
18326
|
-
var newColor = (0,
|
|
18346
|
+
var basecolor = (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_11__.parseColor)(target.editorPanel.backcolor).color;
|
|
18347
|
+
var newColor = (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_11__.ingectAlpha)(basecolor, newValue / 100);
|
|
18327
18348
|
if (target.editorPanel.backcolor !== newColor) {
|
|
18328
18349
|
var newEditorPanel = (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({}, target.editorPanel);
|
|
18329
18350
|
newEditorPanel.backcolor = newColor;
|
|
@@ -18344,7 +18365,7 @@ var ThemeModel = /** @class */ (function (_super) {
|
|
|
18344
18365
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
18345
18366
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({
|
|
18346
18367
|
onSet: function (newValue, target) {
|
|
18347
|
-
var opacity = (0,
|
|
18368
|
+
var opacity = (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_11__.parseColor)(newValue.backcolor).opacity;
|
|
18348
18369
|
if (target.panelBackgroundTransparency !== opacity) {
|
|
18349
18370
|
target.panelBackgroundTransparency = opacity;
|
|
18350
18371
|
}
|
|
@@ -18354,7 +18375,7 @@ var ThemeModel = /** @class */ (function (_super) {
|
|
|
18354
18375
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
18355
18376
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({
|
|
18356
18377
|
onSet: function (newValue, target) {
|
|
18357
|
-
var opacity = (0,
|
|
18378
|
+
var opacity = (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_11__.parseColor)(newValue.backcolor).opacity;
|
|
18358
18379
|
if (target.questionBackgroundTransparency !== opacity) {
|
|
18359
18380
|
target.questionBackgroundTransparency = opacity;
|
|
18360
18381
|
}
|
|
@@ -18833,15 +18854,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18833
18854
|
/* harmony import */ var _theme_builder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./theme-builder */ "./src/components/tabs/theme-builder.ts");
|
|
18834
18855
|
/* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./themes */ "./src/components/tabs/themes.ts");
|
|
18835
18856
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
|
|
18836
|
-
/* harmony import */ var
|
|
18837
|
-
/* harmony import */ var
|
|
18838
|
-
/* harmony import */ var
|
|
18839
|
-
/* harmony import */ var
|
|
18840
|
-
/* harmony import */ var
|
|
18841
|
-
/* harmony import */ var
|
|
18842
|
-
/* harmony import */ var
|
|
18843
|
-
/* harmony import */ var
|
|
18844
|
-
/* harmony import */ var
|
|
18857
|
+
/* harmony import */ var _utils_html_element_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/html-element-utils */ "./src/utils/html-element-utils.ts");
|
|
18858
|
+
/* harmony import */ var _property_grid__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../property-grid */ "./src/property-grid/index.ts");
|
|
18859
|
+
/* harmony import */ var _property_grid_property_grid_view_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../../property-grid/property-grid-view-model */ "./src/property-grid/property-grid-view-model.ts");
|
|
18860
|
+
/* harmony import */ var _theme_model__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./theme-model */ "./src/components/tabs/theme-model.ts");
|
|
18861
|
+
/* harmony import */ var _switcher_switcher__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ../switcher/switcher */ "./src/components/switcher/switcher.ts");
|
|
18862
|
+
/* harmony import */ var _theme_model_definition__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./theme-model-definition */ "./src/components/tabs/theme-model-definition.ts");
|
|
18863
|
+
/* harmony import */ var _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../property-grid-theme/property-grid */ "./src/property-grid-theme/property-grid.ts");
|
|
18864
|
+
/* harmony import */ var _side_bar_tab_control_model__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../side-bar/tab-control-model */ "./src/components/side-bar/tab-control-model.ts");
|
|
18865
|
+
/* harmony import */ var _property_grid_icons__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../property-grid/icons */ "./src/property-grid/icons.ts");
|
|
18866
|
+
/* harmony import */ var _utils_actions__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../utils/actions */ "./src/utils/actions.ts");
|
|
18867
|
+
|
|
18845
18868
|
|
|
18846
18869
|
|
|
18847
18870
|
|
|
@@ -18890,7 +18913,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
18890
18913
|
}
|
|
18891
18914
|
};
|
|
18892
18915
|
this.previewDevice = "desktop";
|
|
18893
|
-
this.saveToFileHandler =
|
|
18916
|
+
this.saveToFileHandler = _utils_html_element_utils__WEBPACK_IMPORTED_MODULE_6__.saveToFileHandler;
|
|
18894
18917
|
this.autoSaveTimerId = null;
|
|
18895
18918
|
/**
|
|
18896
18919
|
* An event that is raised when users select a UI theme from a drop-down list, choose a dark or light color palette, and switch between regular and panelless theme modifications.
|
|
@@ -18934,14 +18957,14 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
18934
18957
|
this.onAllowModifyTheme = new survey_core__WEBPACK_IMPORTED_MODULE_0__.EventBase();
|
|
18935
18958
|
creator.addPluginTab("theme", this);
|
|
18936
18959
|
this.simulatorCssClasses = survey_core__WEBPACK_IMPORTED_MODULE_0__.surveyCss[survey_core__WEBPACK_IMPORTED_MODULE_0__.defaultV2ThemeName];
|
|
18937
|
-
this.tabControlModel = new
|
|
18960
|
+
this.tabControlModel = new _side_bar_tab_control_model__WEBPACK_IMPORTED_MODULE_13__.TabControlModel(this.creator.sidebar);
|
|
18938
18961
|
this.createActions().forEach(function (action) { return creator.toolbar.actions.push(action); });
|
|
18939
|
-
this.propertyGrid = new
|
|
18962
|
+
this.propertyGrid = new _property_grid__WEBPACK_IMPORTED_MODULE_7__.PropertyGridModel(undefined, creator, _theme_model_definition__WEBPACK_IMPORTED_MODULE_11__.themeModelPropertyGridDefinition);
|
|
18940
18963
|
this.propertyGrid.surveyInstanceCreatedArea = "theme-tab:property-grid";
|
|
18941
|
-
var propertyGridViewModel = new
|
|
18964
|
+
var propertyGridViewModel = new _property_grid_property_grid_view_model__WEBPACK_IMPORTED_MODULE_8__.PropertyGridViewModel(this.propertyGrid, creator);
|
|
18942
18965
|
this.propertyGridTab = this.creator.sidebar.addPage("theme", "svc-property-grid", propertyGridViewModel);
|
|
18943
18966
|
this.propertyGridTab.caption = _editorLocalization__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.getString("ed.themePropertyGridTitle");
|
|
18944
|
-
this.themeModel = new
|
|
18967
|
+
this.themeModel = new _theme_model__WEBPACK_IMPORTED_MODULE_9__.ThemeModel();
|
|
18945
18968
|
creator.registerShortcut("undo_theme", {
|
|
18946
18969
|
name: "undo",
|
|
18947
18970
|
affectedTab: "theme",
|
|
@@ -19000,7 +19023,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
19000
19023
|
};
|
|
19001
19024
|
ThemeTabPlugin.prototype.createAppearanceAdvancedModeAction = function () {
|
|
19002
19025
|
var _this = this;
|
|
19003
|
-
var advancedMode = new
|
|
19026
|
+
var advancedMode = new _switcher_switcher__WEBPACK_IMPORTED_MODULE_10__.Switcher({
|
|
19004
19027
|
id: "advancedMode",
|
|
19005
19028
|
component: "svc-switcher",
|
|
19006
19029
|
ariaRole: "checkbox",
|
|
@@ -19144,7 +19167,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
19144
19167
|
this.onAvailableThemesChanged(this.availableThemes);
|
|
19145
19168
|
this.updateAllowModifyTheme();
|
|
19146
19169
|
this.updateAdvancedModeQuestion();
|
|
19147
|
-
var themeBuilderCss = JSON.parse(JSON.stringify(
|
|
19170
|
+
var themeBuilderCss = JSON.parse(JSON.stringify(_property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_12__.propertyGridCss));
|
|
19148
19171
|
themeBuilderCss.root += " spg-theme-builder-root";
|
|
19149
19172
|
if (this.showOneCategoryInPropertyGrid) {
|
|
19150
19173
|
themeBuilderCss.root += " spg-root--one-category";
|
|
@@ -19213,10 +19236,10 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
19213
19236
|
var _this = this;
|
|
19214
19237
|
if (this.showOneCategoryInPropertyGrid) {
|
|
19215
19238
|
var pgTabs_1 = this.propertyGrid.survey.pages.map(function (p) {
|
|
19216
|
-
var action = new
|
|
19239
|
+
var action = new _utils_actions__WEBPACK_IMPORTED_MODULE_15__.MenuButton({
|
|
19217
19240
|
id: p.name,
|
|
19218
19241
|
tooltip: p.title,
|
|
19219
|
-
iconName:
|
|
19242
|
+
iconName: _property_grid_icons__WEBPACK_IMPORTED_MODULE_14__.pgTabIcons[p.name] || _property_grid_icons__WEBPACK_IMPORTED_MODULE_14__.pgTabIcons["undefined"],
|
|
19220
19243
|
active: p.name === _this.propertyGrid.survey.currentPage.name,
|
|
19221
19244
|
pressed: false,
|
|
19222
19245
|
action: function () {
|
|
@@ -19263,7 +19286,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
19263
19286
|
});
|
|
19264
19287
|
this.themeModel.onThemeSelected.add(function (sender, options) {
|
|
19265
19288
|
_this.syncTheme(options.theme);
|
|
19266
|
-
_this.resetTheme.enabled = (0,
|
|
19289
|
+
_this.resetTheme.enabled = (0,_theme_model__WEBPACK_IMPORTED_MODULE_9__.getThemeFullName)(sender.defaultSessionTheme) !== (0,_theme_model__WEBPACK_IMPORTED_MODULE_9__.getThemeFullName)(options.theme);
|
|
19267
19290
|
_this.saveThemeAction.enabled = true;
|
|
19268
19291
|
_this.onThemeSelected.fire(_this, options);
|
|
19269
19292
|
if (_this.creator.isAutoSave) {
|
|
@@ -19293,7 +19316,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
19293
19316
|
this.themeModel.onAllowModifyTheme.add(function (sender, options) {
|
|
19294
19317
|
_this.onAllowModifyTheme.fire(_this, options);
|
|
19295
19318
|
});
|
|
19296
|
-
this.resetTheme.enabled = (0,
|
|
19319
|
+
this.resetTheme.enabled = (0,_theme_model__WEBPACK_IMPORTED_MODULE_9__.getThemeFullName)(this.themeModel.defaultSessionTheme) !== (0,_theme_model__WEBPACK_IMPORTED_MODULE_9__.getThemeFullName)(this.creator.theme) || this.isModified;
|
|
19297
19320
|
this.updateTabControl();
|
|
19298
19321
|
};
|
|
19299
19322
|
ThemeTabPlugin.prototype.updateAllowModifyTheme = function () {
|
|
@@ -19572,8 +19595,8 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
19572
19595
|
};
|
|
19573
19596
|
ThemeTabPlugin.prototype.updateSimulatorTheme = function (theme) {
|
|
19574
19597
|
if (!!this.model.survey) {
|
|
19575
|
-
if ((0,
|
|
19576
|
-
var preferredTheme = (0,
|
|
19598
|
+
if ((0,_theme_model__WEBPACK_IMPORTED_MODULE_9__.isThemeEmpty)(theme)) {
|
|
19599
|
+
var preferredTheme = (0,_theme_model__WEBPACK_IMPORTED_MODULE_9__.findSuitableTheme)(undefined, this.creator.preferredColorPalette, undefined, undefined);
|
|
19577
19600
|
this.model.survey.applyTheme(preferredTheme || this.themeModel.toJSON());
|
|
19578
19601
|
}
|
|
19579
19602
|
else {
|
|
@@ -19655,12 +19678,12 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
19655
19678
|
*/
|
|
19656
19679
|
ThemeTabPlugin.prototype.addTheme = function (theme, setAsDefault) {
|
|
19657
19680
|
if (setAsDefault === void 0) { setAsDefault = false; }
|
|
19658
|
-
var fullThemeName = (0,
|
|
19681
|
+
var fullThemeName = (0,_theme_model__WEBPACK_IMPORTED_MODULE_9__.getThemeFullName)(theme);
|
|
19659
19682
|
_themes__WEBPACK_IMPORTED_MODULE_4__.Themes[fullThemeName] = theme;
|
|
19660
19683
|
if (this._availableThemes.indexOf(theme.themeName) === -1) {
|
|
19661
19684
|
if (setAsDefault) {
|
|
19662
19685
|
this.availableThemes = [theme.themeName].concat(this.availableThemes);
|
|
19663
|
-
|
|
19686
|
+
_theme_model__WEBPACK_IMPORTED_MODULE_9__.ThemeModel.DefaultTheme = theme;
|
|
19664
19687
|
}
|
|
19665
19688
|
else {
|
|
19666
19689
|
this.availableThemes = this.availableThemes.concat([theme.themeName]);
|
|
@@ -19682,12 +19705,12 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
19682
19705
|
ThemeTabPlugin.prototype.removeTheme = function (themeAccessor, includeModifications) {
|
|
19683
19706
|
if (includeModifications === void 0) { includeModifications = false; }
|
|
19684
19707
|
var themeToDelete = typeof themeAccessor === "string" ? _themes__WEBPACK_IMPORTED_MODULE_4__.Themes[themeAccessor] : themeAccessor;
|
|
19685
|
-
var fullThemeName = typeof themeAccessor === "string" ? themeAccessor : (0,
|
|
19708
|
+
var fullThemeName = typeof themeAccessor === "string" ? themeAccessor : (0,_theme_model__WEBPACK_IMPORTED_MODULE_9__.getThemeFullName)(themeToDelete);
|
|
19686
19709
|
if (!!themeToDelete) {
|
|
19687
19710
|
delete _themes__WEBPACK_IMPORTED_MODULE_4__.Themes[fullThemeName];
|
|
19688
|
-
if (
|
|
19689
|
-
|
|
19690
|
-
this.themeModel.defaultSessionTheme =
|
|
19711
|
+
if (_theme_model__WEBPACK_IMPORTED_MODULE_9__.ThemeModel.DefaultTheme === themeToDelete) {
|
|
19712
|
+
_theme_model__WEBPACK_IMPORTED_MODULE_9__.ThemeModel.DefaultTheme = _themes__WEBPACK_IMPORTED_MODULE_4__.Themes["default-light"] || _themes__WEBPACK_IMPORTED_MODULE_4__.Themes[Object.keys(_themes__WEBPACK_IMPORTED_MODULE_4__.Themes)[0]];
|
|
19713
|
+
this.themeModel.defaultSessionTheme = _theme_model__WEBPACK_IMPORTED_MODULE_9__.ThemeModel.DefaultTheme;
|
|
19691
19714
|
}
|
|
19692
19715
|
var registeredThemeNames = Object.keys(_themes__WEBPACK_IMPORTED_MODULE_4__.Themes);
|
|
19693
19716
|
var themeModifications = registeredThemeNames.filter(function (themeName) { return themeName.indexOf(themeToDelete.themeName + "-") === 0; });
|
|
@@ -19720,7 +19743,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
19720
19743
|
return this.getThemeChanges();
|
|
19721
19744
|
};
|
|
19722
19745
|
ThemeTabPlugin.prototype.getThemeChanges = function () {
|
|
19723
|
-
return (0,
|
|
19746
|
+
return (0,_theme_model__WEBPACK_IMPORTED_MODULE_9__.getThemeChanges)(this.creator.theme);
|
|
19724
19747
|
};
|
|
19725
19748
|
Object.defineProperty(ThemeTabPlugin.prototype, "isModified", {
|
|
19726
19749
|
/**
|
|
@@ -19953,6 +19976,7 @@ var TabTranslationPlugin = /** @class */ (function () {
|
|
|
19953
19976
|
this.importCsvAction.visible = false;
|
|
19954
19977
|
this.exportCsvAction.visible = false;
|
|
19955
19978
|
this.creator.sidebar.hideSideBarVisibilityControlActions = false;
|
|
19979
|
+
this.creator.sidebar.header.reset();
|
|
19956
19980
|
return true;
|
|
19957
19981
|
};
|
|
19958
19982
|
TabTranslationPlugin.prototype.updateTabControl = function () {
|
|
@@ -22539,28 +22563,30 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22539
22563
|
/* harmony import */ var _textWorker__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./textWorker */ "./src/textWorker.ts");
|
|
22540
22564
|
/* harmony import */ var _toolbox__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./toolbox */ "./src/toolbox.ts");
|
|
22541
22565
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./utils/utils */ "./src/utils/utils.ts");
|
|
22542
|
-
/* harmony import */ var
|
|
22543
|
-
/* harmony import */ var
|
|
22544
|
-
/* harmony import */ var
|
|
22545
|
-
/* harmony import */ var
|
|
22546
|
-
/* harmony import */ var
|
|
22547
|
-
/* harmony import */ var
|
|
22548
|
-
/* harmony import */ var
|
|
22549
|
-
/* harmony import */ var
|
|
22550
|
-
/* harmony import */ var
|
|
22551
|
-
/* harmony import */ var
|
|
22552
|
-
/* harmony import */ var
|
|
22553
|
-
/* harmony import */ var
|
|
22554
|
-
/* harmony import */ var
|
|
22555
|
-
/* harmony import */ var
|
|
22556
|
-
/* harmony import */ var
|
|
22557
|
-
/* harmony import */ var
|
|
22558
|
-
/* harmony import */ var
|
|
22559
|
-
/* harmony import */ var
|
|
22560
|
-
/* harmony import */ var
|
|
22561
|
-
/* harmony import */ var
|
|
22562
|
-
/* harmony import */ var
|
|
22563
|
-
/* harmony import */ var
|
|
22566
|
+
/* harmony import */ var _utils_creator_utils__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ./utils/creator-utils */ "./src/utils/creator-utils.ts");
|
|
22567
|
+
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./survey-helper */ "./src/survey-helper.ts");
|
|
22568
|
+
/* harmony import */ var _selection_history__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ./selection-history */ "./src/selection-history.ts");
|
|
22569
|
+
/* harmony import */ var _components_tabs_json_editor_ace__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ./components/tabs/json-editor-ace */ "./src/components/tabs/json-editor-ace.ts");
|
|
22570
|
+
/* harmony import */ var _components_tabs_json_editor_textarea__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./components/tabs/json-editor-textarea */ "./src/components/tabs/json-editor-textarea.ts");
|
|
22571
|
+
/* harmony import */ var _components_tabs_test_plugin__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./components/tabs/test-plugin */ "./src/components/tabs/test-plugin.ts");
|
|
22572
|
+
/* harmony import */ var _components_tabs_logic__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./components/tabs/logic */ "./src/components/tabs/logic.ts");
|
|
22573
|
+
/* harmony import */ var _components_tabs_translation_plugin__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ./components/tabs/translation-plugin */ "./src/components/tabs/translation-plugin.ts");
|
|
22574
|
+
/* harmony import */ var _components_tabs_logic_plugin__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ./components/tabs/logic-plugin */ "./src/components/tabs/logic-plugin.ts");
|
|
22575
|
+
/* harmony import */ var _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./plugins/undo-redo */ "./src/plugins/undo-redo/index.ts");
|
|
22576
|
+
/* harmony import */ var _components_tabs_designer_plugin__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./components/tabs/designer-plugin */ "./src/components/tabs/designer-plugin.ts");
|
|
22577
|
+
/* harmony import */ var _creator_responsivity_manager__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./creator-responsivity-manager */ "./src/creator-responsivity-manager.ts");
|
|
22578
|
+
/* 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");
|
|
22579
|
+
/* harmony import */ var _src_components_tabs_translation__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ../src/components/tabs/translation */ "./src/components/tabs/translation.ts");
|
|
22580
|
+
/* harmony import */ var _components_string_editor__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/string-editor */ "./src/components/string-editor.ts");
|
|
22581
|
+
/* harmony import */ var _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./components/tabs/theme-plugin */ "./src/components/tabs/theme-plugin.ts");
|
|
22582
|
+
/* harmony import */ var _survey_elements__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./survey-elements */ "./src/survey-elements.ts");
|
|
22583
|
+
/* harmony import */ var _expand_collapse_manager__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./expand-collapse-manager */ "./src/expand-collapse-manager.ts");
|
|
22584
|
+
/* harmony import */ var _designTabSurveyThemeJSON__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(/*! ./designTabSurveyThemeJSON */ "./src/designTabSurveyThemeJSON.ts");
|
|
22585
|
+
/* harmony import */ var _components_action_container_view_model__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(/*! ./components/action-container-view-model */ "./src/components/action-container-view-model.ts");
|
|
22586
|
+
/* harmony import */ var _tabbed_menu__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(/*! ./tabbed-menu */ "./src/tabbed-menu.ts");
|
|
22587
|
+
/* harmony import */ var _svgbundle__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(/*! ./svgbundle */ "./src/svgbundle.ts");
|
|
22588
|
+
/* harmony import */ var _components_list_theme__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(/*! ./components/list-theme */ "./src/components/list-theme.ts");
|
|
22589
|
+
|
|
22564
22590
|
|
|
22565
22591
|
|
|
22566
22592
|
|
|
@@ -22598,9 +22624,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
22598
22624
|
__webpack_require__(/*! ./components/creator.scss */ "./src/components/creator.scss");
|
|
22599
22625
|
__webpack_require__(/*! ./components/string-editor.scss */ "./src/components/string-editor.scss");
|
|
22600
22626
|
__webpack_require__(/*! ./creator-theme/creator.scss */ "./src/creator-theme/creator.scss");
|
|
22601
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.addIconsToThemeSet)("v1",
|
|
22602
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.addIconsToThemeSet)("v2",
|
|
22603
|
-
survey_core__WEBPACK_IMPORTED_MODULE_1__.SvgRegistry.registerIcons(_creator_settings__WEBPACK_IMPORTED_MODULE_2__.settings.useLegacyIcons ?
|
|
22627
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.addIconsToThemeSet)("v1", _svgbundle__WEBPACK_IMPORTED_MODULE_30__.iconsV1);
|
|
22628
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.addIconsToThemeSet)("v2", _svgbundle__WEBPACK_IMPORTED_MODULE_30__.iconsV2);
|
|
22629
|
+
survey_core__WEBPACK_IMPORTED_MODULE_1__.SvgRegistry.registerIcons(_creator_settings__WEBPACK_IMPORTED_MODULE_2__.settings.useLegacyIcons ? _svgbundle__WEBPACK_IMPORTED_MODULE_30__.iconsV1 : _svgbundle__WEBPACK_IMPORTED_MODULE_30__.iconsV2);
|
|
22604
22630
|
//Obsolete
|
|
22605
22631
|
var CreatorAction = /** @class */ (function (_super) {
|
|
22606
22632
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(CreatorAction, _super);
|
|
@@ -23196,7 +23222,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
23196
23222
|
_this.onAfterDrop = _this.onDragEnd;
|
|
23197
23223
|
_this.animationEnabled = false;
|
|
23198
23224
|
_this.onStateChanged = _this.addCreatorEvent();
|
|
23199
|
-
_this.expandCollapseManager = new
|
|
23225
|
+
_this.expandCollapseManager = new _expand_collapse_manager__WEBPACK_IMPORTED_MODULE_26__.ExpandCollapseManager(_this);
|
|
23200
23226
|
_this.notifier = new survey_core__WEBPACK_IMPORTED_MODULE_1__.Notifier({
|
|
23201
23227
|
root: "svc-notifier",
|
|
23202
23228
|
rootWithButtons: "",
|
|
@@ -23265,16 +23291,16 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
23265
23291
|
typeof _this.options === "string" ||
|
|
23266
23292
|
_this.options instanceof String) {
|
|
23267
23293
|
_this.options = !!options2 ? options2 : {};
|
|
23268
|
-
|
|
23294
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.warnText("Creator constructor has one parameter, as creator options, in V2.");
|
|
23269
23295
|
}
|
|
23270
23296
|
_this.previewDevice = (_a = options.previewDevice) !== null && _a !== void 0 ? _a : "desktop";
|
|
23271
23297
|
_this.previewOrientation = options.previewOrientation;
|
|
23272
23298
|
_this.toolbarValue = new ToolbarActionContainer(_this);
|
|
23273
23299
|
_this.toolbarValue.locOwner = _this;
|
|
23274
|
-
_this.tabbedMenu = new
|
|
23300
|
+
_this.tabbedMenu = new _tabbed_menu__WEBPACK_IMPORTED_MODULE_29__.TabbedMenuContainer(_this);
|
|
23275
23301
|
_this.tabbedMenu.locOwner = _this;
|
|
23276
|
-
_this.selectionHistoryControllerValue = new
|
|
23277
|
-
_this.sidebar = new
|
|
23302
|
+
_this.selectionHistoryControllerValue = new _selection_history__WEBPACK_IMPORTED_MODULE_11__.SelectionHistory(_this);
|
|
23303
|
+
_this.sidebar = new _components_side_bar_side_bar_model__WEBPACK_IMPORTED_MODULE_21__.SidebarModel(_this);
|
|
23278
23304
|
_this.setOptions(_this.options);
|
|
23279
23305
|
_this.patchMetadata();
|
|
23280
23306
|
_this.initSurveyWithJSON(undefined, false);
|
|
@@ -23324,6 +23350,27 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
23324
23350
|
enumerable: false,
|
|
23325
23351
|
configurable: true
|
|
23326
23352
|
});
|
|
23353
|
+
Object.defineProperty(SurveyCreatorModel.prototype, "propertyGridNavigationMode", {
|
|
23354
|
+
/**
|
|
23355
|
+
* Specifies how users navigate categories in the Property Grid.
|
|
23356
|
+
*
|
|
23357
|
+
* Accepted values:
|
|
23358
|
+
*
|
|
23359
|
+
* - `"accordion"` (default)
|
|
23360
|
+
* The Property Grid displays a stacked list of categories that users can expand or collapse to reveal nested properties.
|
|
23361
|
+
*
|
|
23362
|
+
* - `"buttons"`
|
|
23363
|
+
* The Property Grid displays the properties of a currently selected category. Users can switch between categories using buttons on the right side of the Property Grid.
|
|
23364
|
+
*/
|
|
23365
|
+
get: function () {
|
|
23366
|
+
return this.showOneCategoryInPropertyGrid ? "buttons" : "accordion";
|
|
23367
|
+
},
|
|
23368
|
+
set: function (newValue) {
|
|
23369
|
+
this.showOneCategoryInPropertyGrid = newValue === "buttons";
|
|
23370
|
+
},
|
|
23371
|
+
enumerable: false,
|
|
23372
|
+
configurable: true
|
|
23373
|
+
});
|
|
23327
23374
|
Object.defineProperty(SurveyCreatorModel.prototype, "allowEditSurveyTitle", {
|
|
23328
23375
|
get: function () {
|
|
23329
23376
|
return this.getPropertyValue("allowEditSurveyTitle", true);
|
|
@@ -23792,7 +23839,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
23792
23839
|
/**
|
|
23793
23840
|
* Gets or sets the currently displayed tab.
|
|
23794
23841
|
*
|
|
23795
|
-
*
|
|
23842
|
+
* Accepted values:
|
|
23796
23843
|
*
|
|
23797
23844
|
* - [`"designer"`](#showDesignerTab)
|
|
23798
23845
|
* - [`"test"`](#showPreviewTab)
|
|
@@ -23901,7 +23948,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
23901
23948
|
*/
|
|
23902
23949
|
set: function (val) {
|
|
23903
23950
|
if (val !== true && val !== false) {
|
|
23904
|
-
|
|
23951
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.warnText("showToolbox is a boolean property now.");
|
|
23905
23952
|
}
|
|
23906
23953
|
if (val === "none" || val === false || val === "top") {
|
|
23907
23954
|
this.showToolboxValue = false;
|
|
@@ -23929,14 +23976,14 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
23929
23976
|
},
|
|
23930
23977
|
set: function (val) {
|
|
23931
23978
|
if (val !== true && val !== false) {
|
|
23932
|
-
|
|
23979
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.warnText("showSidebar is a boolean property now.");
|
|
23933
23980
|
return;
|
|
23934
23981
|
}
|
|
23935
23982
|
if (this.showSidebar === val)
|
|
23936
23983
|
return;
|
|
23937
23984
|
this.setShowSidebar(val, true);
|
|
23938
23985
|
if (!this.onShowPropertyGridVisiblityChanged.isEmpty) {
|
|
23939
|
-
|
|
23986
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.warnNonSupported("onShowPropertyGridVisiblityChanged", "onShowSidebarVisibilityChanged");
|
|
23940
23987
|
this.onShowPropertyGridVisiblityChanged.fire(this, { show: val });
|
|
23941
23988
|
}
|
|
23942
23989
|
},
|
|
@@ -23959,13 +24006,13 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
23959
24006
|
};
|
|
23960
24007
|
Object.defineProperty(SurveyCreatorModel.prototype, "showPropertyGrid", {
|
|
23961
24008
|
get: function () {
|
|
23962
|
-
|
|
24009
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.warnNonSupported("showPropertyGrid", "showSidebar");
|
|
23963
24010
|
return this.showSidebar;
|
|
23964
24011
|
},
|
|
23965
24012
|
set: function (val) {
|
|
23966
|
-
|
|
24013
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.warnNonSupported("showPropertyGrid", "showSidebar");
|
|
23967
24014
|
if (val !== true && val !== false) {
|
|
23968
|
-
|
|
24015
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.warnText("showSidebar is a boolean property.");
|
|
23969
24016
|
return;
|
|
23970
24017
|
}
|
|
23971
24018
|
this.showSidebar = val;
|
|
@@ -23974,10 +24021,10 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
23974
24021
|
configurable: true
|
|
23975
24022
|
});
|
|
23976
24023
|
SurveyCreatorModel.prototype.rightContainerActiveItem = function (name) {
|
|
23977
|
-
|
|
24024
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.warnNonSupported("rightContainerActiveItem");
|
|
23978
24025
|
};
|
|
23979
24026
|
SurveyCreatorModel.prototype.leftContainerActiveItem = function (name) {
|
|
23980
|
-
|
|
24027
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.warnNonSupported("leftContainerActiveItem");
|
|
23981
24028
|
};
|
|
23982
24029
|
Object.defineProperty(SurveyCreatorModel.prototype, "undoRedoManager", {
|
|
23983
24030
|
get: function () {
|
|
@@ -24078,7 +24125,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
24078
24125
|
return page;
|
|
24079
24126
|
};
|
|
24080
24127
|
SurveyCreatorModel.prototype.addNewPageIntoSurvey = function () {
|
|
24081
|
-
var name =
|
|
24128
|
+
var name = _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getNewPageName(this.survey.pages);
|
|
24082
24129
|
return this.survey.addNewPage(name);
|
|
24083
24130
|
};
|
|
24084
24131
|
SurveyCreatorModel.prototype.initTabs = function () {
|
|
@@ -24088,12 +24135,12 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
24088
24135
|
SurveyCreatorModel.prototype.getTabsInfo = function () {
|
|
24089
24136
|
var _this = this;
|
|
24090
24137
|
return {
|
|
24091
|
-
designer: function () { return new
|
|
24092
|
-
preview: function () { return new
|
|
24093
|
-
theme: function () { return new
|
|
24094
|
-
logic: function () { return new
|
|
24095
|
-
editor: function () { return
|
|
24096
|
-
translation: function () { return new
|
|
24138
|
+
designer: function () { return new _components_tabs_designer_plugin__WEBPACK_IMPORTED_MODULE_19__.TabDesignerPlugin(_this); },
|
|
24139
|
+
preview: function () { return new _components_tabs_test_plugin__WEBPACK_IMPORTED_MODULE_14__.TabTestPlugin(_this); },
|
|
24140
|
+
theme: function () { return new _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_24__.ThemeTabPlugin(_this); },
|
|
24141
|
+
logic: function () { return new _components_tabs_logic_plugin__WEBPACK_IMPORTED_MODULE_17__.TabLogicPlugin(_this); },
|
|
24142
|
+
editor: function () { return _components_tabs_json_editor_ace__WEBPACK_IMPORTED_MODULE_12__.TabJsonEditorAcePlugin.hasAceEditor() ? new _components_tabs_json_editor_ace__WEBPACK_IMPORTED_MODULE_12__.TabJsonEditorAcePlugin(_this) : new _components_tabs_json_editor_textarea__WEBPACK_IMPORTED_MODULE_13__.TabJsonEditorTextareaPlugin(_this); },
|
|
24143
|
+
translation: function () { return new _components_tabs_translation_plugin__WEBPACK_IMPORTED_MODULE_16__.TabTranslationPlugin(_this); }
|
|
24097
24144
|
};
|
|
24098
24145
|
};
|
|
24099
24146
|
SurveyCreatorModel.prototype.getAvailableTabNames = function () {
|
|
@@ -24153,7 +24200,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
24153
24200
|
}
|
|
24154
24201
|
};
|
|
24155
24202
|
SurveyCreatorModel.prototype.initPlugins = function () {
|
|
24156
|
-
this.addPlugin("undoredo", new
|
|
24203
|
+
this.addPlugin("undoredo", new _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_18__.UndoRedoPlugin(this));
|
|
24157
24204
|
var tabs = [];
|
|
24158
24205
|
if (this.showDesignerTab) {
|
|
24159
24206
|
tabs.push("designer");
|
|
@@ -24339,7 +24386,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
24339
24386
|
};
|
|
24340
24387
|
SurveyCreatorModel.prototype.updateAddingPages = function (survey) {
|
|
24341
24388
|
this.updateAddingElements(survey, survey.pages, this.survey.pages, function (el, allElements) {
|
|
24342
|
-
el.name =
|
|
24389
|
+
el.name = _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getNewPageName(allElements);
|
|
24343
24390
|
});
|
|
24344
24391
|
};
|
|
24345
24392
|
SurveyCreatorModel.prototype.updateAddingExistingElements = function () {
|
|
@@ -24347,22 +24394,22 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
24347
24394
|
};
|
|
24348
24395
|
SurveyCreatorModel.prototype.updateAddingPanels = function (survey) {
|
|
24349
24396
|
this.updateAddingElements(survey, survey.getAllPanels(), this.updateAddingExistingElements(), function (el, allElements) {
|
|
24350
|
-
el.name =
|
|
24397
|
+
el.name = _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getNewPanelName(allElements);
|
|
24351
24398
|
});
|
|
24352
24399
|
};
|
|
24353
24400
|
SurveyCreatorModel.prototype.updateAddingQuestions = function (survey) {
|
|
24354
|
-
var logic = new
|
|
24401
|
+
var logic = new _components_tabs_logic__WEBPACK_IMPORTED_MODULE_15__.SurveyLogic(survey, this);
|
|
24355
24402
|
this.updateAddingElements(survey, survey.getAllQuestions(false, true), this.updateAddingExistingElements(), function (el, allElements) {
|
|
24356
24403
|
var oldName = el.name;
|
|
24357
|
-
el.name =
|
|
24404
|
+
el.name = _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getNewQuestionName(allElements);
|
|
24358
24405
|
logic.renameQuestion(oldName, el.name);
|
|
24359
24406
|
});
|
|
24360
24407
|
};
|
|
24361
24408
|
SurveyCreatorModel.prototype.updateAddingCalculatedValules = function (survey) {
|
|
24362
|
-
var logic = new
|
|
24409
|
+
var logic = new _components_tabs_logic__WEBPACK_IMPORTED_MODULE_15__.SurveyLogic(survey, this);
|
|
24363
24410
|
this.updateAddingElements(survey, survey.calculatedValues, this.survey.calculatedValues, function (el, allElements) {
|
|
24364
24411
|
var oldName = el.name;
|
|
24365
|
-
el.name =
|
|
24412
|
+
el.name = _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getNewName(allElements, "var");
|
|
24366
24413
|
logic.renameQuestion(oldName, el.name);
|
|
24367
24414
|
});
|
|
24368
24415
|
};
|
|
@@ -24470,9 +24517,9 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
24470
24517
|
};
|
|
24471
24518
|
SurveyCreatorModel.prototype.initDragDropSurveyElements = function () {
|
|
24472
24519
|
var _this = this;
|
|
24473
|
-
|
|
24520
|
+
_survey_elements__WEBPACK_IMPORTED_MODULE_25__.DragDropSurveyElements.restrictDragQuestionBetweenPages =
|
|
24474
24521
|
_creator_settings__WEBPACK_IMPORTED_MODULE_2__.settings.dragDrop.restrictDragQuestionBetweenPages;
|
|
24475
|
-
this.dragDropSurveyElements = new
|
|
24522
|
+
this.dragDropSurveyElements = new _survey_elements__WEBPACK_IMPORTED_MODULE_25__.DragDropSurveyElements(null, this);
|
|
24476
24523
|
this.dragDropSurveyElements.onGetMaxNestedPanels = function () { return _this.maxNestedPanels; };
|
|
24477
24524
|
this.dragDropSurveyElements.onDragOverLocationCalculating = function (options) { _this.onDragOverLocationCalculating.fire(_this, options); };
|
|
24478
24525
|
var isDraggedFromToolbox = false;
|
|
@@ -24535,15 +24582,15 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
24535
24582
|
SurveyCreatorModel.prototype.restoreState = function (element) {
|
|
24536
24583
|
var state = this.getElementExpandCollapseState(element, "drag-end", undefined);
|
|
24537
24584
|
if (state !== undefined) {
|
|
24538
|
-
|
|
24585
|
+
_components_action_container_view_model__WEBPACK_IMPORTED_MODULE_28__.SurveyElementAdornerBase.GetAdorner(element).collapsed = state;
|
|
24539
24586
|
}
|
|
24540
|
-
|
|
24587
|
+
_components_action_container_view_model__WEBPACK_IMPORTED_MODULE_28__.SurveyElementAdornerBase.RestoreStateFor(element);
|
|
24541
24588
|
};
|
|
24542
24589
|
SurveyCreatorModel.prototype.restoreElementsState = function () {
|
|
24543
24590
|
var _this = this;
|
|
24544
24591
|
this.survey.pages.forEach(function (element) {
|
|
24545
24592
|
if (element["draggedFrom"] !== undefined) {
|
|
24546
|
-
var adorner =
|
|
24593
|
+
var adorner = _components_action_container_view_model__WEBPACK_IMPORTED_MODULE_28__.SurveyElementAdornerBase.GetAdorner(element);
|
|
24547
24594
|
adorner === null || adorner === void 0 ? void 0 : adorner.blockAnimations();
|
|
24548
24595
|
_this.restoreState(element);
|
|
24549
24596
|
adorner === null || adorner === void 0 ? void 0 : adorner.releaseAnimations();
|
|
@@ -24636,7 +24683,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
24636
24683
|
this.surveyLogicRenaming = false;
|
|
24637
24684
|
};
|
|
24638
24685
|
SurveyCreatorModel.prototype.createSurveyLogicForUpdate = function () {
|
|
24639
|
-
return new
|
|
24686
|
+
return new _components_tabs_logic__WEBPACK_IMPORTED_MODULE_15__.SurveyLogic(this.survey, this);
|
|
24640
24687
|
};
|
|
24641
24688
|
SurveyCreatorModel.prototype.updateLogicOnQuestionNameChanged = function (oldName, newName) {
|
|
24642
24689
|
if (oldName === newName || !_creator_settings__WEBPACK_IMPORTED_MODULE_2__.settings.logic.updateExpressionsOnChanging.questionName)
|
|
@@ -24814,7 +24861,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
24814
24861
|
if (reason === void 0) { reason = undefined; }
|
|
24815
24862
|
if (displayName === void 0) { displayName = undefined; }
|
|
24816
24863
|
if (!displayName) {
|
|
24817
|
-
displayName =
|
|
24864
|
+
displayName = _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getObjectName(obj, this.showObjectTitles);
|
|
24818
24865
|
}
|
|
24819
24866
|
var options = { obj: obj, displayName: displayName, area: area, reason: reason };
|
|
24820
24867
|
this.onGetObjectDisplayName.fire(this, options);
|
|
@@ -24826,7 +24873,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
24826
24873
|
var survey = this.createSurveyCore(json, reason);
|
|
24827
24874
|
if (reason !== "designer" && reason !== "test" && reason !== "theme") {
|
|
24828
24875
|
survey.fitToContainer = false;
|
|
24829
|
-
survey.applyTheme(
|
|
24876
|
+
survey.applyTheme(_designTabSurveyThemeJSON__WEBPACK_IMPORTED_MODULE_27__["default"]);
|
|
24830
24877
|
survey.gridLayoutEnabled = false;
|
|
24831
24878
|
}
|
|
24832
24879
|
if (reason === "designer" || reason === "modal-question-editor") {
|
|
@@ -24888,7 +24935,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
24888
24935
|
/**
|
|
24889
24936
|
* Indicates the state of Survey Creator.
|
|
24890
24937
|
*
|
|
24891
|
-
*
|
|
24938
|
+
* Accepted values:
|
|
24892
24939
|
*
|
|
24893
24940
|
* - `""` - Survey Creator doesn't have unsaved changes.
|
|
24894
24941
|
* - `"modified"` - Survey Creator has unsaved changes.
|
|
@@ -25107,7 +25154,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
25107
25154
|
survey.pages[0].addElement(element);
|
|
25108
25155
|
}
|
|
25109
25156
|
});
|
|
25110
|
-
var logic = new
|
|
25157
|
+
var logic = new _components_tabs_logic__WEBPACK_IMPORTED_MODULE_15__.SurveyLogic(survey);
|
|
25111
25158
|
for (var key in this.newQuestionChangedNames) {
|
|
25112
25159
|
logic.renameQuestion(key, this.newQuestionChangedNames[key]);
|
|
25113
25160
|
}
|
|
@@ -25121,25 +25168,25 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
25121
25168
|
return this.getAllElements(true, includeNewItems);
|
|
25122
25169
|
};
|
|
25123
25170
|
SurveyCreatorModel.prototype.getAllElements = function (isPanel, includeNewItems) {
|
|
25124
|
-
var result =
|
|
25171
|
+
var result = _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getAllElements(this.survey, isPanel);
|
|
25125
25172
|
if (includeNewItems) {
|
|
25126
|
-
|
|
25127
|
-
|
|
25173
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.addElements(this.newPanels, isPanel, result);
|
|
25174
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.addElements(this.newQuestions, isPanel, result);
|
|
25128
25175
|
}
|
|
25129
25176
|
return result;
|
|
25130
25177
|
};
|
|
25131
25178
|
SurveyCreatorModel.prototype.getNewName = function (type, isPanel) {
|
|
25132
25179
|
if (type == "page")
|
|
25133
|
-
return
|
|
25180
|
+
return _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getNewPageName(this.survey.pages);
|
|
25134
25181
|
if (isPanel)
|
|
25135
25182
|
return this.getNewPanelName();
|
|
25136
25183
|
return this.getNewQuestionName();
|
|
25137
25184
|
};
|
|
25138
25185
|
SurveyCreatorModel.prototype.getNewQuestionName = function () {
|
|
25139
|
-
return
|
|
25186
|
+
return _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getNewQuestionName(this.getAllQuestions());
|
|
25140
25187
|
};
|
|
25141
25188
|
SurveyCreatorModel.prototype.getNewPanelName = function () {
|
|
25142
|
-
return
|
|
25189
|
+
return _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getNewPanelName(this.getAllPanels());
|
|
25143
25190
|
};
|
|
25144
25191
|
SurveyCreatorModel.prototype.setNewNamesCore = function (element) {
|
|
25145
25192
|
var _this = this;
|
|
@@ -25294,7 +25341,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
25294
25341
|
else {
|
|
25295
25342
|
if (this.survey.pageCount === 1) {
|
|
25296
25343
|
var page = this.survey.pages[0];
|
|
25297
|
-
if (page.elements.length === 1 && obj === page.elements[0] && !
|
|
25344
|
+
if (page.elements.length === 1 && obj === page.elements[0] && !_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.isPagePropertiesAreModified(page)) {
|
|
25298
25345
|
this.deleteObjectCore(page);
|
|
25299
25346
|
return;
|
|
25300
25347
|
}
|
|
@@ -25327,9 +25374,9 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
25327
25374
|
SurveyCreatorModel.prototype.updateConditionsOnRemove = function (obj) {
|
|
25328
25375
|
if (!_creator_settings__WEBPACK_IMPORTED_MODULE_2__.settings.logic.updateExpressionsOnDeleting.question)
|
|
25329
25376
|
return;
|
|
25330
|
-
var objType =
|
|
25377
|
+
var objType = _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getObjectType(obj);
|
|
25331
25378
|
var questions;
|
|
25332
|
-
if (objType ==
|
|
25379
|
+
if (objType == _survey_helper__WEBPACK_IMPORTED_MODULE_10__.ObjType.Question) {
|
|
25333
25380
|
questions = [obj];
|
|
25334
25381
|
}
|
|
25335
25382
|
else {
|
|
@@ -25337,7 +25384,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
25337
25384
|
}
|
|
25338
25385
|
if (!questions)
|
|
25339
25386
|
return;
|
|
25340
|
-
var logic = new
|
|
25387
|
+
var logic = new _components_tabs_logic__WEBPACK_IMPORTED_MODULE_15__.SurveyLogic(this.survey, this);
|
|
25341
25388
|
for (var i = 0; i < questions.length; i++) {
|
|
25342
25389
|
logic.removeQuestion(questions[i].getValueName());
|
|
25343
25390
|
}
|
|
@@ -25345,7 +25392,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
25345
25392
|
SurveyCreatorModel.prototype.checkOnElementDeleting = function (obj) {
|
|
25346
25393
|
var options = {
|
|
25347
25394
|
element: obj,
|
|
25348
|
-
elementType:
|
|
25395
|
+
elementType: _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getObjectType(obj),
|
|
25349
25396
|
allowing: true
|
|
25350
25397
|
};
|
|
25351
25398
|
this.onElementDeleting.fire(this, options);
|
|
@@ -25401,7 +25448,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
25401
25448
|
return;
|
|
25402
25449
|
clearInterval(_this.currentFocusInterval);
|
|
25403
25450
|
if (!!el) {
|
|
25404
|
-
var isNeedScroll =
|
|
25451
|
+
var isNeedScroll = _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.isNeedScrollIntoView((_a = el.parentElement) !== null && _a !== void 0 ? _a : el, true);
|
|
25405
25452
|
if (!!isNeedScroll) {
|
|
25406
25453
|
var elementPage = _this.getPageByElement(selEl);
|
|
25407
25454
|
var scrollIntoViewOptions_1 = { block: "start", behavior: _this.animationEnabled ? "smooth" : undefined };
|
|
@@ -25409,7 +25456,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
25409
25456
|
_this.survey.scrollElementToTop(selEl, undefined, elementPage, selEl.id, true, scrollIntoViewOptions_1, _this.rootElement);
|
|
25410
25457
|
}
|
|
25411
25458
|
else {
|
|
25412
|
-
|
|
25459
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.scrollIntoViewIfNeeded((_b = el.parentElement) !== null && _b !== void 0 ? _b : el, function () { return scrollIntoViewOptions_1; }, true);
|
|
25413
25460
|
}
|
|
25414
25461
|
}
|
|
25415
25462
|
if (!propertyName && el.parentElement) {
|
|
@@ -25422,7 +25469,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
25422
25469
|
clearInterval(_this.currentFocusInterval);
|
|
25423
25470
|
}
|
|
25424
25471
|
if (startEdit && !!element) {
|
|
25425
|
-
|
|
25472
|
+
_components_string_editor__WEBPACK_IMPORTED_MODULE_23__.StringEditorConnector.get(element.locTitle).activateEditor();
|
|
25426
25473
|
}
|
|
25427
25474
|
}, 1);
|
|
25428
25475
|
}, 100);
|
|
@@ -25533,7 +25580,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
25533
25580
|
* @see locale
|
|
25534
25581
|
*/
|
|
25535
25582
|
SurveyCreatorModel.prototype.deleteLocaleStrings = function (locale) {
|
|
25536
|
-
var translation = new
|
|
25583
|
+
var translation = new _src_components_tabs_translation__WEBPACK_IMPORTED_MODULE_22__.Translation(this.survey);
|
|
25537
25584
|
translation.deleteLocaleStrings(locale);
|
|
25538
25585
|
};
|
|
25539
25586
|
SurveyCreatorModel.prototype.getPropertyGridDefinition = function () {
|
|
@@ -25744,10 +25791,10 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
25744
25791
|
SurveyCreatorModel.prototype.getErrorOnPropertyChanging = function (obj, propertyName, value) {
|
|
25745
25792
|
if (propertyName !== "name")
|
|
25746
25793
|
return null;
|
|
25747
|
-
if (
|
|
25794
|
+
if (_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getObjectType(obj) === _survey_helper__WEBPACK_IMPORTED_MODULE_10__.ObjType.Unknown)
|
|
25748
25795
|
return null;
|
|
25749
25796
|
var hasError = false;
|
|
25750
|
-
if (
|
|
25797
|
+
if (_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getObjectType(obj) === _survey_helper__WEBPACK_IMPORTED_MODULE_10__.ObjType.Column) {
|
|
25751
25798
|
hasError = !!obj.colOwner
|
|
25752
25799
|
? !this.isNameUniqueInArray(obj.colOwner.columns, obj, value)
|
|
25753
25800
|
: false;
|
|
@@ -25782,7 +25829,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
25782
25829
|
};
|
|
25783
25830
|
SurveyCreatorModel.prototype.checkForUniqueName = function (el, newName) {
|
|
25784
25831
|
while (!this.isNameUnique(el, newName, false)) {
|
|
25785
|
-
newName =
|
|
25832
|
+
newName = _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.generateNewName(newName);
|
|
25786
25833
|
}
|
|
25787
25834
|
return newName;
|
|
25788
25835
|
};
|
|
@@ -25955,14 +26002,6 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
25955
26002
|
}
|
|
25956
26003
|
return options.sortOrder;
|
|
25957
26004
|
};
|
|
25958
|
-
SurveyCreatorModel.prototype.onConditionGetTitleCallback = function (expression, title) {
|
|
25959
|
-
var options = {
|
|
25960
|
-
expression: expression,
|
|
25961
|
-
title: title,
|
|
25962
|
-
};
|
|
25963
|
-
this.onConditionGetTitle.fire(this, options);
|
|
25964
|
-
return options.title;
|
|
25965
|
-
};
|
|
25966
26005
|
SurveyCreatorModel.prototype.isConditionOperatorEnabled = function (questionName, question, operator, isEnabled) {
|
|
25967
26006
|
if (this.onGetConditionOperator.isEmpty)
|
|
25968
26007
|
return isEnabled;
|
|
@@ -26139,8 +26178,8 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
26139
26178
|
var el = this.selectedElement;
|
|
26140
26179
|
if (!el || el.getType() === newType && !defaultJSON)
|
|
26141
26180
|
return;
|
|
26142
|
-
var objType =
|
|
26143
|
-
if (objType !==
|
|
26181
|
+
var objType = _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getObjectType(el);
|
|
26182
|
+
if (objType !== _survey_helper__WEBPACK_IMPORTED_MODULE_10__.ObjType.Question && objType !== _survey_helper__WEBPACK_IMPORTED_MODULE_10__.ObjType.Panel)
|
|
26144
26183
|
return;
|
|
26145
26184
|
this.addNewElementReason = "ELEMENT_CONVERTED";
|
|
26146
26185
|
el = this.convertQuestion(el, newType, defaultJSON);
|
|
@@ -26173,7 +26212,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
26173
26212
|
return res;
|
|
26174
26213
|
if (!isAddNew && element.isPanel)
|
|
26175
26214
|
return res;
|
|
26176
|
-
if (this.maxNestedPanels <
|
|
26215
|
+
if (this.maxNestedPanels < _survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.getElementDeepLength(element)) {
|
|
26177
26216
|
for (var i = res.length - 1; i >= 0; i--) {
|
|
26178
26217
|
if (res[i].isPanel) {
|
|
26179
26218
|
res.splice(i, 1);
|
|
@@ -26203,7 +26242,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
26203
26242
|
items: [],
|
|
26204
26243
|
allowSelection: false,
|
|
26205
26244
|
cssClass: "svc-creator-popup",
|
|
26206
|
-
cssClasses:
|
|
26245
|
+
cssClasses: _components_list_theme__WEBPACK_IMPORTED_MODULE_31__.listComponentCss,
|
|
26207
26246
|
verticalPosition: "bottom",
|
|
26208
26247
|
horizontalPosition: "center",
|
|
26209
26248
|
displayMode: this.isTouch ? "overlay" : "popup"
|
|
@@ -26270,7 +26309,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
26270
26309
|
onSelectQuestionType(item.typeName, i.json);
|
|
26271
26310
|
}
|
|
26272
26311
|
}); });
|
|
26273
|
-
action.setSubItems({ items: innerItems, cssClasses:
|
|
26312
|
+
action.setSubItems({ items: innerItems, cssClasses: _components_list_theme__WEBPACK_IMPORTED_MODULE_31__.listComponentCss });
|
|
26274
26313
|
}
|
|
26275
26314
|
return action;
|
|
26276
26315
|
};
|
|
@@ -26302,13 +26341,13 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
26302
26341
|
};
|
|
26303
26342
|
SurveyCreatorModel.prototype.getNextItemValue = function (question) {
|
|
26304
26343
|
var itemText = this.getChoicesItemBaseTitle();
|
|
26305
|
-
return (0,
|
|
26344
|
+
return (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_9__.getNextItemValue)(itemText, question.choices);
|
|
26306
26345
|
};
|
|
26307
26346
|
SurveyCreatorModel.prototype.createNewItemValue = function (question, callEvent, callback) {
|
|
26308
26347
|
if (callEvent === void 0) { callEvent = true; }
|
|
26309
26348
|
var nextValue = this.getNextItemValue(question);
|
|
26310
26349
|
var res = question.createItemValue(nextValue);
|
|
26311
|
-
res.text = (0,
|
|
26350
|
+
res.text = (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_9__.getNextItemText)(question.choices);
|
|
26312
26351
|
question.choices.push(res);
|
|
26313
26352
|
if (callback) {
|
|
26314
26353
|
callback(res);
|
|
@@ -26331,7 +26370,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
26331
26370
|
}
|
|
26332
26371
|
};
|
|
26333
26372
|
SurveyCreatorModel.prototype.initResponsivityManager = function (container) {
|
|
26334
|
-
this.responsivityManager = new
|
|
26373
|
+
this.responsivityManager = new _creator_responsivity_manager__WEBPACK_IMPORTED_MODULE_20__.CreatorResponsivityManager(container, this);
|
|
26335
26374
|
};
|
|
26336
26375
|
SurveyCreatorModel.prototype.resetResponsivityManager = function () {
|
|
26337
26376
|
if (!!this.responsivityManager) {
|
|
@@ -26372,7 +26411,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
26372
26411
|
.append("svc-creator--disable-animations", !this.animationEnabled)
|
|
26373
26412
|
.toString();
|
|
26374
26413
|
};
|
|
26375
|
-
SurveyCreatorModel.prototype.
|
|
26414
|
+
SurveyCreatorModel.prototype.applyCreatorTheme = function (theme) {
|
|
26376
26415
|
this.syncTheme(theme);
|
|
26377
26416
|
var designerPlugin = this.getPlugin("designer");
|
|
26378
26417
|
if (designerPlugin) {
|
|
@@ -26466,19 +26505,19 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
26466
26505
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)()
|
|
26467
26506
|
], SurveyCreatorModel.prototype, "showSidebarValue", void 0);
|
|
26468
26507
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
26469
|
-
(0,
|
|
26508
|
+
(0,_plugins_undo_redo__WEBPACK_IMPORTED_MODULE_18__.undoRedoTransaction)()
|
|
26470
26509
|
], SurveyCreatorModel.prototype, "addPage", null);
|
|
26471
26510
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
26472
|
-
(0,
|
|
26511
|
+
(0,_plugins_undo_redo__WEBPACK_IMPORTED_MODULE_18__.ignoreUndoRedo)()
|
|
26473
26512
|
], SurveyCreatorModel.prototype, "doOnQuestionAdded", null);
|
|
26474
26513
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
26475
|
-
(0,
|
|
26514
|
+
(0,_plugins_undo_redo__WEBPACK_IMPORTED_MODULE_18__.ignoreUndoRedo)()
|
|
26476
26515
|
], SurveyCreatorModel.prototype, "doOnPanelAdded", null);
|
|
26477
26516
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
26478
|
-
(0,
|
|
26517
|
+
(0,_plugins_undo_redo__WEBPACK_IMPORTED_MODULE_18__.ignoreUndoRedo)()
|
|
26479
26518
|
], SurveyCreatorModel.prototype, "doOnPageAdded", null);
|
|
26480
26519
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
26481
|
-
(0,
|
|
26520
|
+
(0,_plugins_undo_redo__WEBPACK_IMPORTED_MODULE_18__.undoRedoTransaction)()
|
|
26482
26521
|
], SurveyCreatorModel.prototype, "deleteObject", null);
|
|
26483
26522
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
26484
26523
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({
|
|
@@ -26505,10 +26544,10 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
26505
26544
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({ defaultValue: false })
|
|
26506
26545
|
], SurveyCreatorModel.prototype, "showSaveButton", void 0);
|
|
26507
26546
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
26508
|
-
(0,
|
|
26547
|
+
(0,_plugins_undo_redo__WEBPACK_IMPORTED_MODULE_18__.undoRedoTransaction)()
|
|
26509
26548
|
], SurveyCreatorModel.prototype, "convertCurrentQuestion", null);
|
|
26510
26549
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
26511
|
-
(0,
|
|
26550
|
+
(0,_plugins_undo_redo__WEBPACK_IMPORTED_MODULE_18__.undoRedoTransaction)()
|
|
26512
26551
|
], SurveyCreatorModel.prototype, "addNewQuestionInPage", null);
|
|
26513
26552
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
26514
26553
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({ defaultValue: false })
|
|
@@ -26516,6 +26555,9 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
26516
26555
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
26517
26556
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({ defaultValue: true })
|
|
26518
26557
|
], SurveyCreatorModel.prototype, "allowShowPageNavigator", void 0);
|
|
26558
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
26559
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({ defaultValue: true })
|
|
26560
|
+
], SurveyCreatorModel.prototype, "allowShowSurfaceToolbar", void 0);
|
|
26519
26561
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
26520
26562
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({ defaultValue: true })
|
|
26521
26563
|
], SurveyCreatorModel.prototype, "showPageNavigatorValue", void 0);
|
|
@@ -26591,17 +26633,17 @@ var StylesManager = /** @class */ (function () {
|
|
|
26591
26633
|
}
|
|
26592
26634
|
Object.defineProperty(StylesManager, "currentTheme", {
|
|
26593
26635
|
get: function () {
|
|
26594
|
-
|
|
26636
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.warnNonSupported("StylesManager");
|
|
26595
26637
|
return undefined;
|
|
26596
26638
|
},
|
|
26597
26639
|
set: function (val) {
|
|
26598
|
-
|
|
26640
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.warnNonSupported("StylesManager");
|
|
26599
26641
|
},
|
|
26600
26642
|
enumerable: false,
|
|
26601
26643
|
configurable: true
|
|
26602
26644
|
});
|
|
26603
26645
|
StylesManager.applyTheme = function (name) {
|
|
26604
|
-
|
|
26646
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.warnNonSupported("StylesManager");
|
|
26605
26647
|
};
|
|
26606
26648
|
return StylesManager;
|
|
26607
26649
|
}());
|
|
@@ -26774,11 +26816,11 @@ function isTextInput(target) {
|
|
|
26774
26816
|
return false;
|
|
26775
26817
|
}
|
|
26776
26818
|
function registerAdorner(name, adorner) {
|
|
26777
|
-
|
|
26819
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.warnNonSupported("registerAdorner", "This functionality is no longer supported.");
|
|
26778
26820
|
}
|
|
26779
26821
|
function removeAdorners(names) {
|
|
26780
26822
|
if (names === void 0) { names = undefined; }
|
|
26781
|
-
|
|
26823
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_10__.SurveyHelper.warnNonSupported("removeAdorners", "This functionality is no longer supported.");
|
|
26782
26824
|
}
|
|
26783
26825
|
|
|
26784
26826
|
|
|
@@ -26851,6 +26893,9 @@ var CreatorResponsivityManager = /** @class */ (function () {
|
|
|
26851
26893
|
CreatorResponsivityManager.prototype.procesShowPageNavigator = function (pageNavigatorVisibility) {
|
|
26852
26894
|
this.creator.allowShowPageNavigator = this.creator.pageEditMode === "bypage" || pageNavigatorVisibility;
|
|
26853
26895
|
};
|
|
26896
|
+
CreatorResponsivityManager.prototype.procesShowSurfaceToolbar = function (toolboxVisible) {
|
|
26897
|
+
this.creator.allowShowSurfaceToolbar = toolboxVisible;
|
|
26898
|
+
};
|
|
26854
26899
|
CreatorResponsivityManager.prototype.findCorrectParent = function (container) {
|
|
26855
26900
|
if (!!(window === null || window === void 0 ? void 0 : window.getComputedStyle)) {
|
|
26856
26901
|
if (window.getComputedStyle(container.parentElement).display === "inline") {
|
|
@@ -26863,6 +26908,7 @@ var CreatorResponsivityManager = /** @class */ (function () {
|
|
|
26863
26908
|
this.creator.updateToolboxIsCompact(toolboxIsCompact);
|
|
26864
26909
|
this.procesShowToolbox(toolboxVisible);
|
|
26865
26910
|
this.procesShowPageNavigator(toolboxVisible);
|
|
26911
|
+
this.procesShowSurfaceToolbar(toolboxVisible);
|
|
26866
26912
|
if (this.creator.sidebar.visible && !flyoutSidebar) {
|
|
26867
26913
|
this.creator.sidebar.collapsedManually = false;
|
|
26868
26914
|
}
|
|
@@ -27204,9 +27250,6 @@ var EmptySurveyCreatorOptions = /** @class */ (function () {
|
|
|
27204
27250
|
return survey;
|
|
27205
27251
|
};
|
|
27206
27252
|
EmptySurveyCreatorOptions.prototype.onConditionQuestionsGetListCallback = function (propertyName, obj, editor, list, variables) { return "asc"; };
|
|
27207
|
-
EmptySurveyCreatorOptions.prototype.onConditionGetTitleCallback = function (expression, title) {
|
|
27208
|
-
return title;
|
|
27209
|
-
};
|
|
27210
27253
|
EmptySurveyCreatorOptions.prototype.isConditionOperatorEnabled = function (questionName, question, operator, isEnabled) { return isEnabled; };
|
|
27211
27254
|
EmptySurveyCreatorOptions.prototype.onLogicGetTitleCallback = function (expression, displayExpression, text, logicItem) { return text; };
|
|
27212
27255
|
EmptySurveyCreatorOptions.prototype.getTranslationExportedText = function (obj, name, locString, locale, text) { return text; };
|
|
@@ -27282,10 +27325,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27282
27325
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
27283
27326
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../editorLocalization */ "./src/editorLocalization.ts");
|
|
27284
27327
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
27285
|
-
/* harmony import */ var
|
|
27286
|
-
/* harmony import */ var
|
|
27287
|
-
/* harmony import */ var
|
|
27288
|
-
/* harmony import */ var
|
|
27328
|
+
/* harmony import */ var _utils_color_utils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../utils/color-utils */ "./src/utils/color-utils.ts");
|
|
27329
|
+
/* harmony import */ var _creator_themes__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./creator-themes */ "./src/creator-theme/creator-themes.ts");
|
|
27330
|
+
/* harmony import */ var survey_creator_core_themes__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! survey-creator-core/themes */ "survey-creator-core/themes");
|
|
27331
|
+
/* harmony import */ var survey_creator_core_themes__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(survey_creator_core_themes__WEBPACK_IMPORTED_MODULE_6__);
|
|
27332
|
+
/* harmony import */ var _components_tabs_themes__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/tabs/themes */ "./src/components/tabs/themes.ts");
|
|
27289
27333
|
|
|
27290
27334
|
|
|
27291
27335
|
|
|
@@ -27293,12 +27337,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27293
27337
|
|
|
27294
27338
|
|
|
27295
27339
|
|
|
27296
|
-
|
|
27297
|
-
|
|
27298
|
-
|
|
27299
|
-
|
|
27340
|
+
|
|
27341
|
+
Object.keys(survey_creator_core_themes__WEBPACK_IMPORTED_MODULE_6__ || {}).forEach(function (themeName) {
|
|
27342
|
+
var theme = survey_creator_core_themes__WEBPACK_IMPORTED_MODULE_6__[themeName];
|
|
27343
|
+
if (_creator_themes__WEBPACK_IMPORTED_MODULE_5__.PredefinedCreatorThemes.indexOf(theme.themeName) === -1) {
|
|
27344
|
+
_creator_themes__WEBPACK_IMPORTED_MODULE_5__.PredefinedCreatorThemes.push(theme.themeName);
|
|
27300
27345
|
}
|
|
27301
|
-
|
|
27346
|
+
_creator_themes__WEBPACK_IMPORTED_MODULE_5__.CreatorThemes[theme.themeName] = theme;
|
|
27302
27347
|
});
|
|
27303
27348
|
var CreatorThemeModel = /** @class */ (function (_super) {
|
|
27304
27349
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(CreatorThemeModel, _super);
|
|
@@ -27306,9 +27351,9 @@ var CreatorThemeModel = /** @class */ (function (_super) {
|
|
|
27306
27351
|
var _this = _super.call(this) || this;
|
|
27307
27352
|
_this.initialCssVariables = {};
|
|
27308
27353
|
_this.themeCssVariablesChanges = {};
|
|
27309
|
-
_this.primaryColorCalculator = new
|
|
27310
|
-
_this.secondaryColorCalculator = new
|
|
27311
|
-
_this.backgroundColorCalculator = new
|
|
27354
|
+
_this.primaryColorCalculator = new _utils_color_utils__WEBPACK_IMPORTED_MODULE_4__.ColorCalculator();
|
|
27355
|
+
_this.secondaryColorCalculator = new _utils_color_utils__WEBPACK_IMPORTED_MODULE_4__.ColorCalculator();
|
|
27356
|
+
_this.backgroundColorCalculator = new _utils_color_utils__WEBPACK_IMPORTED_MODULE_4__.ColorCalculator();
|
|
27312
27357
|
_this.unitDictionary = {
|
|
27313
27358
|
"--ctr-font-unit": 8,
|
|
27314
27359
|
"--ctr-line-height-unit": 8,
|
|
@@ -27350,27 +27395,27 @@ var CreatorThemeModel = /** @class */ (function (_super) {
|
|
|
27350
27395
|
this.setThemeCssVariablesChanges(darkColorName, calculator.colorSettings.newColorDark);
|
|
27351
27396
|
};
|
|
27352
27397
|
CreatorThemeModel.prototype.isSpecialBackgroundFromCurrentTheme = function () {
|
|
27353
|
-
var currentTheme =
|
|
27354
|
-
return (0,
|
|
27398
|
+
var currentTheme = _creator_themes__WEBPACK_IMPORTED_MODULE_5__.CreatorThemes[this.themeName];
|
|
27399
|
+
return (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_4__.colorsAreEqual)(currentTheme && currentTheme.cssVariables && currentTheme.cssVariables["--sjs-special-background"], this["--sjs-special-background"]);
|
|
27355
27400
|
};
|
|
27356
27401
|
CreatorThemeModel.prototype.findAppropriateSpecialBackground = function (primaryColorValue) {
|
|
27357
27402
|
var primaryColorName;
|
|
27358
|
-
var colorsDict =
|
|
27403
|
+
var colorsDict = _components_tabs_themes__WEBPACK_IMPORTED_MODULE_7__.PredefinedColors["light"];
|
|
27359
27404
|
Object.keys(colorsDict).forEach(function (colorName) {
|
|
27360
|
-
if ((0,
|
|
27405
|
+
if ((0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_4__.colorsAreEqual)(colorsDict[colorName], primaryColorValue)) {
|
|
27361
27406
|
primaryColorName = colorName;
|
|
27362
27407
|
}
|
|
27363
27408
|
});
|
|
27364
|
-
return
|
|
27409
|
+
return _components_tabs_themes__WEBPACK_IMPORTED_MODULE_7__.PredefinedBackgroundColors["light"][primaryColorName];
|
|
27365
27410
|
};
|
|
27366
27411
|
CreatorThemeModel.prototype.updateBackgroundColor = function (primaryColorNewValue, primaryColorOldValue) {
|
|
27367
27412
|
if (!this.isLight) {
|
|
27368
27413
|
return;
|
|
27369
27414
|
}
|
|
27370
|
-
var canCalculateSpecialBackgroundColor = this.isSpecialBackgroundFromCurrentTheme() || (0,
|
|
27415
|
+
var canCalculateSpecialBackgroundColor = this.isSpecialBackgroundFromCurrentTheme() || (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_4__.colorsAreEqual)(this.findAppropriateSpecialBackground(primaryColorOldValue), this["--sjs-special-background"]);
|
|
27371
27416
|
if (canCalculateSpecialBackgroundColor) {
|
|
27372
27417
|
var newSpecialBackgroundColor = this.findAppropriateSpecialBackground(primaryColorNewValue);
|
|
27373
|
-
this["--sjs-special-background"] = newSpecialBackgroundColor ||
|
|
27418
|
+
this["--sjs-special-background"] = newSpecialBackgroundColor || _components_tabs_themes__WEBPACK_IMPORTED_MODULE_7__.PredefinedBackgroundColors["light"]["gray"];
|
|
27374
27419
|
}
|
|
27375
27420
|
};
|
|
27376
27421
|
CreatorThemeModel.prototype.getType = function () {
|
|
@@ -27475,7 +27520,7 @@ var CreatorThemeModel = /** @class */ (function (_super) {
|
|
|
27475
27520
|
if (theme === void 0) { theme = {}; }
|
|
27476
27521
|
this.blockThemeChangedNotifications += 1;
|
|
27477
27522
|
try {
|
|
27478
|
-
var baseTheme =
|
|
27523
|
+
var baseTheme = _creator_themes__WEBPACK_IMPORTED_MODULE_5__.CreatorThemes[theme.themeName] || {};
|
|
27479
27524
|
this.themeName = theme.themeName || baseTheme.themeName || CreatorThemeModel.defautlThemeName;
|
|
27480
27525
|
var effectiveThemeCssVariables = {};
|
|
27481
27526
|
(0,_utils_utils__WEBPACK_IMPORTED_MODULE_3__.assign)(effectiveThemeCssVariables, baseTheme.cssVariables || {});
|
|
@@ -27550,11 +27595,18 @@ var CreatorThemeModel = /** @class */ (function (_super) {
|
|
|
27550
27595
|
return CreatorThemeModel;
|
|
27551
27596
|
}(survey_core__WEBPACK_IMPORTED_MODULE_1__.Base));
|
|
27552
27597
|
|
|
27598
|
+
var defaultThemesOrder = ["default-light", "default-contrast", "default-dark", "sc2020"];
|
|
27599
|
+
function sortDefaultThemes(themes) {
|
|
27600
|
+
var result = [].concat(themes).sort(function (t1, t2) {
|
|
27601
|
+
return defaultThemesOrder.indexOf(t1) - defaultThemesOrder.indexOf(t2);
|
|
27602
|
+
});
|
|
27603
|
+
return result;
|
|
27604
|
+
}
|
|
27553
27605
|
survey_core__WEBPACK_IMPORTED_MODULE_1__.Serializer.addClass("creatortheme", [
|
|
27554
27606
|
{
|
|
27555
27607
|
type: "dropdown",
|
|
27556
27608
|
name: "themeName",
|
|
27557
|
-
choices:
|
|
27609
|
+
choices: sortDefaultThemes(_creator_themes__WEBPACK_IMPORTED_MODULE_5__.PredefinedCreatorThemes).map(function (theme) { return ({ value: theme, text: (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_2__.getLocString)("creatortheme.names." + theme) }); }),
|
|
27558
27610
|
},
|
|
27559
27611
|
{
|
|
27560
27612
|
type: "string",
|
|
@@ -27745,7 +27797,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
27745
27797
|
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
27746
27798
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
27747
27799
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
27748
|
-
/* harmony import */ var
|
|
27800
|
+
/* harmony import */ var _utils_color_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../utils/color-utils */ "./src/utils/color-utils.ts");
|
|
27749
27801
|
/* harmony import */ var _components_list_theme__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../components/list-theme */ "./src/components/list-theme.ts");
|
|
27750
27802
|
|
|
27751
27803
|
|
|
@@ -27767,7 +27819,7 @@ var QuestionColorModel = /** @class */ (function (_super) {
|
|
|
27767
27819
|
QuestionColorModel.prototype.getCorrectedValue = function (newValue) {
|
|
27768
27820
|
if (newValue == undefined || newValue == null || (this.allowEmptyValue && !newValue))
|
|
27769
27821
|
return newValue;
|
|
27770
|
-
newValue = (0,
|
|
27822
|
+
newValue = (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_2__.parseColor)(newValue !== null && newValue !== void 0 ? newValue : "").color;
|
|
27771
27823
|
if (newValue.indexOf("#") < 0) {
|
|
27772
27824
|
newValue = "#" + newValue;
|
|
27773
27825
|
}
|
|
@@ -27814,7 +27866,7 @@ var QuestionColorModel = /** @class */ (function (_super) {
|
|
|
27814
27866
|
};
|
|
27815
27867
|
QuestionColorModel.prototype.updateRenderedValue = function () {
|
|
27816
27868
|
if (this.value) {
|
|
27817
|
-
var color = (0,
|
|
27869
|
+
var color = (0,_utils_color_utils__WEBPACK_IMPORTED_MODULE_2__.parseColor)(this.value || "");
|
|
27818
27870
|
this._renderedValue = color.color;
|
|
27819
27871
|
}
|
|
27820
27872
|
else if (this.allowEmptyValue) {
|
|
@@ -29273,7 +29325,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
29273
29325
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
29274
29326
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
29275
29327
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./editorLocalization */ "./src/editorLocalization.ts");
|
|
29276
|
-
/* harmony import */ var
|
|
29328
|
+
/* harmony import */ var _utils_creator_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/creator-utils */ "./src/utils/creator-utils.ts");
|
|
29277
29329
|
|
|
29278
29330
|
|
|
29279
29331
|
|
|
@@ -29331,7 +29383,7 @@ var ExpressionToDisplayText = /** @class */ (function () {
|
|
|
29331
29383
|
var question = this.getQuestionByName(op.variable);
|
|
29332
29384
|
if (!question || !question.title)
|
|
29333
29385
|
return op.variable;
|
|
29334
|
-
return (0,
|
|
29386
|
+
return (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_2__.wrapTextByCurlyBraces)(question.title);
|
|
29335
29387
|
};
|
|
29336
29388
|
ExpressionToDisplayText.prototype.getDisplayText = function (op) {
|
|
29337
29389
|
if (!this.currentQuestion)
|
|
@@ -29394,7 +29446,7 @@ var ExpressionToDisplayText = /** @class */ (function () {
|
|
|
29394
29446
|
var question = this.getQuestionByName(variable);
|
|
29395
29447
|
if (!question || !question.title)
|
|
29396
29448
|
return expression;
|
|
29397
|
-
return expression.replace((0,
|
|
29449
|
+
return expression.replace((0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_2__.wrapTextByCurlyBraces)(variable), (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_2__.wrapTextByCurlyBraces)(question.title));
|
|
29398
29450
|
};
|
|
29399
29451
|
ExpressionToDisplayText.prototype.getQuestionByName = function (name) {
|
|
29400
29452
|
if (!this.survey)
|
|
@@ -33750,7 +33802,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
33750
33802
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../editorLocalization */ "./src/editorLocalization.ts");
|
|
33751
33803
|
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../survey-helper */ "./src/survey-helper.ts");
|
|
33752
33804
|
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./index */ "./src/property-grid/index.ts");
|
|
33753
|
-
/* harmony import */ var
|
|
33805
|
+
/* harmony import */ var _utils_creator_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../utils/creator-utils */ "./src/utils/creator-utils.ts");
|
|
33754
33806
|
/* harmony import */ var _components_tabs_logic_theme__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../components/tabs/logic-theme */ "./src/components/tabs/logic-theme.ts");
|
|
33755
33807
|
/* harmony import */ var _components_tabs_logic_types__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../components/tabs/logic-types */ "./src/components/tabs/logic-types.ts");
|
|
33756
33808
|
|
|
@@ -33824,7 +33876,7 @@ var SurveyConditionEditorItem = /** @class */ (function (_super) {
|
|
|
33824
33876
|
configurable: true
|
|
33825
33877
|
});
|
|
33826
33878
|
SurveyConditionEditorItem.prototype.toExpression = function () {
|
|
33827
|
-
var text = (0,
|
|
33879
|
+
var text = (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_6__.wrapTextByCurlyBraces)(this.getQuestionValueByName()) + " " + this.getOperatorText();
|
|
33828
33880
|
if (this.isValueRequired) {
|
|
33829
33881
|
text += " " + this.getValueText();
|
|
33830
33882
|
}
|
|
@@ -34830,7 +34882,7 @@ var ConditionEditor = /** @class */ (function (_super) {
|
|
|
34830
34882
|
cssClasses.mainRoot += " svc-logic-condition-remove-question";
|
|
34831
34883
|
}
|
|
34832
34884
|
if (question.name === "questionValue" || question.isContentElement) {
|
|
34833
|
-
(0,
|
|
34885
|
+
(0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_6__.assignDefaultV2Classes)(cssClasses, question.getType());
|
|
34834
34886
|
cssClasses.mainRoot += " svc-logic-question-value sd-element--with-frame";
|
|
34835
34887
|
cssClasses.error.root = "svc-logic-operator__error";
|
|
34836
34888
|
}
|
|
@@ -34851,11 +34903,7 @@ var ConditionEditor = /** @class */ (function (_super) {
|
|
|
34851
34903
|
panel.getQuestionByName("removeAction").visible = options.value.length !== 1;
|
|
34852
34904
|
});
|
|
34853
34905
|
}
|
|
34854
|
-
this.
|
|
34855
|
-
};
|
|
34856
|
-
ConditionEditor.prototype.setTitle = function () {
|
|
34857
|
-
var text = this.isReady ? this.text : "";
|
|
34858
|
-
this.title = this.options.onConditionGetTitleCallback(text, text || _editorLocalization__WEBPACK_IMPORTED_MODULE_3__.editorLocalization.getString("pe.ruleIsNotSet"));
|
|
34906
|
+
this.title = this.isReady ? this.text : _editorLocalization__WEBPACK_IMPORTED_MODULE_3__.editorLocalization.getString("pe.ruleIsNotSet");
|
|
34859
34907
|
};
|
|
34860
34908
|
ConditionEditor.prototype.showTextEditor = function (expression) {
|
|
34861
34909
|
this.panel.visible = false;
|
|
@@ -37630,7 +37678,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
37630
37678
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../editorLocalization */ "./src/editorLocalization.ts");
|
|
37631
37679
|
/* harmony import */ var _question_editor_properties__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../question-editor/properties */ "./src/question-editor/properties.ts");
|
|
37632
37680
|
/* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../creator-settings */ "./src/creator-settings.ts");
|
|
37633
|
-
/* harmony import */ var
|
|
37681
|
+
/* harmony import */ var _utils_creator_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../utils/creator-utils */ "./src/utils/creator-utils.ts");
|
|
37634
37682
|
/* harmony import */ var _fast_entry__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./fast-entry */ "./src/property-grid/fast-entry.ts");
|
|
37635
37683
|
/* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./index */ "./src/property-grid/index.ts");
|
|
37636
37684
|
/* harmony import */ var _utils_actions__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../utils/actions */ "./src/utils/actions.ts");
|
|
@@ -37665,7 +37713,7 @@ var PropertyGridEditorMatrix = /** @class */ (function (_super) {
|
|
|
37665
37713
|
arr.push(objs[i][keyPropName]);
|
|
37666
37714
|
}
|
|
37667
37715
|
}
|
|
37668
|
-
return (0,
|
|
37716
|
+
return (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_5__.getNextValue)(baseName, arr);
|
|
37669
37717
|
};
|
|
37670
37718
|
PropertyGridEditorMatrix.prototype.onCreated = function (obj, question, prop, options, propGridDefinition) {
|
|
37671
37719
|
var _this = this;
|
|
@@ -37795,7 +37843,7 @@ var PropertyGridEditorMatrix = /** @class */ (function (_super) {
|
|
|
37795
37843
|
}
|
|
37796
37844
|
var arr = obj[prop.name];
|
|
37797
37845
|
if (survey_core__WEBPACK_IMPORTED_MODULE_1__.Serializer.isDescendantOf(item.getType(), "itemvalue")) {
|
|
37798
|
-
item.text = (0,
|
|
37846
|
+
item.text = (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_5__.getNextItemText)(arr);
|
|
37799
37847
|
}
|
|
37800
37848
|
arr.push(item);
|
|
37801
37849
|
if (arr != matrix.value) {
|
|
@@ -38153,7 +38201,7 @@ var PropertyGridEditorMatrixRateValues = /** @class */ (function (_super) {
|
|
|
38153
38201
|
var _this = this;
|
|
38154
38202
|
_super.prototype.onCreated.call(this, obj, question, prop, options, propGridDefinition);
|
|
38155
38203
|
var matrixQuestion = question;
|
|
38156
|
-
var ratingQuestion = (0,
|
|
38204
|
+
var ratingQuestion = (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_5__.getQuestionFromObj)(obj);
|
|
38157
38205
|
this.updateAllowAddRemove(matrixQuestion, ratingQuestion);
|
|
38158
38206
|
obj.onPropertyChanged.add(function (sender, options) {
|
|
38159
38207
|
if (options.name == "rateCount" || options.name == "rateDisplayMode") {
|
|
@@ -39029,7 +39077,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39029
39077
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
39030
39078
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
39031
39079
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../editorLocalization */ "./src/editorLocalization.ts");
|
|
39032
|
-
/* harmony import */ var
|
|
39080
|
+
/* harmony import */ var _utils_creator_utils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../utils/creator-utils */ "./src/utils/creator-utils.ts");
|
|
39033
39081
|
/* harmony import */ var _components_search_manager__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../components/search-manager */ "./src/components/search-manager.ts");
|
|
39034
39082
|
|
|
39035
39083
|
|
|
@@ -39077,7 +39125,7 @@ var SearchManagerPropertyGrid = /** @class */ (function (_super) {
|
|
|
39077
39125
|
setTimeout(function () {
|
|
39078
39126
|
var _a;
|
|
39079
39127
|
var elementId = (_a = _this.currentMatch) === null || _a === void 0 ? void 0 : _a.id;
|
|
39080
|
-
(0,
|
|
39128
|
+
(0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_3__.scrollElementIntoView)(elementId);
|
|
39081
39129
|
}, newPanelExpanded ? 400 : 10);
|
|
39082
39130
|
}
|
|
39083
39131
|
this.updatedMatchCounterText(index);
|
|
@@ -41564,6 +41612,7 @@ var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
|
41564
41612
|
};
|
|
41565
41613
|
DragDropSurveyElements.prototype.createDraggedElementShortcut = function (text, draggedElementNode, event) {
|
|
41566
41614
|
var draggedElementShortcut = document.createElement("div");
|
|
41615
|
+
draggedElementShortcut.style.display = "flex";
|
|
41567
41616
|
var textSpan = document.createElement("span");
|
|
41568
41617
|
textSpan.className = "svc-dragged-element-shortcut__text";
|
|
41569
41618
|
textSpan.innerText = text;
|
|
@@ -41578,7 +41627,7 @@ var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
|
41578
41627
|
var span = document.createElement("span");
|
|
41579
41628
|
span.className = "svc-dragged-element-shortcut__icon";
|
|
41580
41629
|
var iconName = (0,survey_core__WEBPACK_IMPORTED_MODULE_1__.getIconNameFromProxy)(this.draggedElement.toolboxItemIconName);
|
|
41581
|
-
var svgString = "<svg class=\"sv-svg-icon\" role=\"img\"
|
|
41630
|
+
var svgString = "<svg class=\"sv-svg-icon\" role=\"img\"><use xlink:href=\"#".concat(iconName, "\"></use></svg>");
|
|
41582
41631
|
span.innerHTML = svgString;
|
|
41583
41632
|
return span;
|
|
41584
41633
|
};
|
|
@@ -41915,7 +41964,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
41915
41964
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
41916
41965
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
41917
41966
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./editorLocalization */ "./src/editorLocalization.ts");
|
|
41918
|
-
/* harmony import */ var
|
|
41967
|
+
/* harmony import */ var _utils_creator_utils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./utils/creator-utils */ "./src/utils/creator-utils.ts");
|
|
41919
41968
|
|
|
41920
41969
|
|
|
41921
41970
|
|
|
@@ -42172,7 +42221,7 @@ var SurveyHelper = /** @class */ (function () {
|
|
|
42172
42221
|
return !obj || obj["disableSelecting"] !== true;
|
|
42173
42222
|
};
|
|
42174
42223
|
SurveyHelper.warnNonSupported = function (name, newPropertyName) {
|
|
42175
|
-
var outputText = (0,
|
|
42224
|
+
var outputText = (0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_2__.wrapTextByCurlyBraces)(name) + " is not supported in V2.";
|
|
42176
42225
|
if (!!newPropertyName) {
|
|
42177
42226
|
outputText += " Use the '" + newPropertyName + "' property instead";
|
|
42178
42227
|
}
|
|
@@ -44425,222 +44474,166 @@ var MenuButton = /** @class */ (function (_super) {
|
|
|
44425
44474
|
|
|
44426
44475
|
/***/ }),
|
|
44427
44476
|
|
|
44428
|
-
/***/ "./src/utils/
|
|
44429
|
-
|
|
44430
|
-
!*** ./src/utils/
|
|
44431
|
-
|
|
44432
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
44433
|
-
|
|
44434
|
-
"use strict";
|
|
44435
|
-
__webpack_require__.r(__webpack_exports__);
|
|
44436
|
-
|
|
44437
|
-
|
|
44438
|
-
|
|
44439
|
-
/***/ }),
|
|
44440
|
-
|
|
44441
|
-
/***/ "./src/utils/resizer.ts":
|
|
44442
|
-
/*!******************************!*\
|
|
44443
|
-
!*** ./src/utils/resizer.ts ***!
|
|
44444
|
-
\******************************/
|
|
44477
|
+
/***/ "./src/utils/color-utils.ts":
|
|
44478
|
+
/*!**********************************!*\
|
|
44479
|
+
!*** ./src/utils/color-utils.ts ***!
|
|
44480
|
+
\**********************************/
|
|
44445
44481
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
44446
44482
|
|
|
44447
44483
|
"use strict";
|
|
44448
44484
|
__webpack_require__.r(__webpack_exports__);
|
|
44449
44485
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44450
|
-
/* harmony export */
|
|
44486
|
+
/* harmony export */ ColorCalculator: () => (/* binding */ ColorCalculator),
|
|
44487
|
+
/* harmony export */ HEXToRGB: () => (/* binding */ HEXToRGB),
|
|
44488
|
+
/* harmony export */ HSBToRGB: () => (/* binding */ HSBToRGB),
|
|
44489
|
+
/* harmony export */ RGBToHSB: () => (/* binding */ RGBToHSB),
|
|
44490
|
+
/* harmony export */ colorsAreEqual: () => (/* binding */ colorsAreEqual),
|
|
44491
|
+
/* harmony export */ convertRgbaToString: () => (/* binding */ convertRgbaToString),
|
|
44492
|
+
/* harmony export */ ingectAlpha: () => (/* binding */ ingectAlpha),
|
|
44493
|
+
/* harmony export */ parseColor: () => (/* binding */ parseColor),
|
|
44494
|
+
/* harmony export */ parseRgbaFromString: () => (/* binding */ parseRgbaFromString)
|
|
44451
44495
|
/* harmony export */ });
|
|
44452
|
-
var
|
|
44453
|
-
|
|
44454
|
-
|
|
44455
|
-
|
|
44456
|
-
this.
|
|
44457
|
-
"mousedown": { "touch": "touchend", "mouse": "mousedown", "pointer": "pointerdown" },
|
|
44458
|
-
"mouseup": { "touch": "touchstart", "mouse": "mouseup", "pointer": "pointerup" },
|
|
44459
|
-
"mousemove": { "touch": "touchmove", "mouse": "mousemove", "pointer": "pointermove" },
|
|
44460
|
-
};
|
|
44461
|
-
this.onMouseDownListener = function (e) {
|
|
44462
|
-
if (!window)
|
|
44463
|
-
return;
|
|
44464
|
-
e.preventDefault();
|
|
44465
|
-
_this.originalWidth = _this.getStyleValue(_this.container, "width");
|
|
44466
|
-
_this.originalMouseX = e.pageX;
|
|
44467
|
-
_this.currentResizer = e.target;
|
|
44468
|
-
window.addEventListener(_this.getMouseEvent("mousemove"), _this.resize);
|
|
44469
|
-
window.addEventListener(_this.getMouseEvent("mouseup"), _this.stopResize);
|
|
44470
|
-
};
|
|
44471
|
-
this.resize = function (e) {
|
|
44472
|
-
var width = _this.originalWidth;
|
|
44473
|
-
var horizontalDistinction = e.pageX - _this.originalMouseX;
|
|
44474
|
-
if (_this.currentResizer == _this.westResizer) {
|
|
44475
|
-
width -= horizontalDistinction;
|
|
44476
|
-
}
|
|
44477
|
-
else {
|
|
44478
|
-
width += horizontalDistinction;
|
|
44479
|
-
}
|
|
44480
|
-
if (width > _this.maxWidth) {
|
|
44481
|
-
width = _this.maxWidth;
|
|
44482
|
-
}
|
|
44483
|
-
else if (width < _this.minWidth) {
|
|
44484
|
-
width = _this.minWidth;
|
|
44485
|
-
}
|
|
44486
|
-
_this.container.style.width = width + "px";
|
|
44487
|
-
};
|
|
44488
|
-
this.stopResize = function (e) {
|
|
44489
|
-
if (!window)
|
|
44490
|
-
return;
|
|
44491
|
-
window.removeEventListener(_this.getMouseEvent("mousemove"), _this.resize);
|
|
44492
|
-
window.removeEventListener(_this.getMouseEvent("mouseup"), _this.stopResize);
|
|
44493
|
-
};
|
|
44494
|
-
this.init(container);
|
|
44495
|
-
this.setHandles(handles);
|
|
44496
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./utils */ "./src/utils/utils.ts");
|
|
44497
|
+
|
|
44498
|
+
var ColorCalculator = /** @class */ (function () {
|
|
44499
|
+
function ColorCalculator() {
|
|
44500
|
+
this.colorSettings = { baseColorAlpha: 1, darkColorAlpha: 1, lightColorAlpha: 1, deltaDarkColor: 0, deltaLightColor: 0, newColorLight: "", newColorDark: "" };
|
|
44496
44501
|
}
|
|
44497
|
-
|
|
44498
|
-
var
|
|
44499
|
-
|
|
44500
|
-
|
|
44501
|
-
inputVal.forEach(function (str) { return str.trim(); });
|
|
44502
|
-
inputVal = inputVal.filter(function (str) { return !!str; });
|
|
44503
|
-
(inputVal || []).forEach(function (handrail) {
|
|
44504
|
-
if (handrail == "w")
|
|
44505
|
-
isThereWestResizer = true;
|
|
44506
|
-
if (handrail == "e")
|
|
44507
|
-
isThereEastResizer = true;
|
|
44508
|
-
});
|
|
44509
|
-
this.westResizer.style["display"] = isThereWestResizer ? "block" : "none";
|
|
44510
|
-
this.eastResizer.style["display"] = isThereEastResizer ? "block" : "none";
|
|
44511
|
-
};
|
|
44512
|
-
ResizeManager.prototype.getStyleValue = function (element, style) {
|
|
44513
|
-
if (!window)
|
|
44514
|
-
return 0;
|
|
44515
|
-
return parseFloat(window.getComputedStyle(element).getPropertyValue(style).replace("px", ""));
|
|
44516
|
-
};
|
|
44517
|
-
ResizeManager.prototype.isEventSupported = function (eventName) {
|
|
44518
|
-
var el = document.createElement("div");
|
|
44519
|
-
eventName = "on" + eventName;
|
|
44520
|
-
var isSupported = (eventName in el);
|
|
44521
|
-
if (!isSupported) {
|
|
44522
|
-
el.setAttribute(eventName, "return;");
|
|
44523
|
-
isSupported = typeof el[eventName] == "function";
|
|
44502
|
+
ColorCalculator.prototype.initialize = function (baseColor, lightColor, darkColor) {
|
|
44503
|
+
var primaryColorRgba = parseRgbaFromString(baseColor);
|
|
44504
|
+
if (primaryColorRgba.length === 0) {
|
|
44505
|
+
primaryColorRgba = parseRgbaFromString(ingectAlpha(baseColor, 1));
|
|
44524
44506
|
}
|
|
44525
|
-
|
|
44526
|
-
|
|
44527
|
-
|
|
44528
|
-
ResizeManager.prototype.getEventPrefix = function () {
|
|
44529
|
-
if (this.mouseDevice === undefined) {
|
|
44530
|
-
if (this.isEventSupported("pointerdown")) {
|
|
44531
|
-
this.mouseDevice = "pointer";
|
|
44532
|
-
}
|
|
44533
|
-
else if (this.isEventSupported("touchstart")) {
|
|
44534
|
-
this.mouseDevice = "touch";
|
|
44535
|
-
}
|
|
44536
|
-
else if (this.isEventSupported("mousedown")) {
|
|
44537
|
-
this.mouseDevice = "mouse";
|
|
44538
|
-
}
|
|
44507
|
+
var primaryColorDarkRgba = parseRgbaFromString(darkColor);
|
|
44508
|
+
if (primaryColorDarkRgba.length === 0) {
|
|
44509
|
+
primaryColorDarkRgba = parseRgbaFromString(ingectAlpha(darkColor, 1));
|
|
44539
44510
|
}
|
|
44540
|
-
|
|
44541
|
-
|
|
44542
|
-
|
|
44543
|
-
|
|
44544
|
-
|
|
44545
|
-
|
|
44546
|
-
this.
|
|
44547
|
-
|
|
44548
|
-
|
|
44549
|
-
|
|
44550
|
-
|
|
44551
|
-
|
|
44552
|
-
};
|
|
44553
|
-
ResizeManager.prototype.createrResizerElement = function (className) {
|
|
44554
|
-
var resizer = document.createElement("div");
|
|
44555
|
-
resizer.className = className;
|
|
44556
|
-
resizer.addEventListener(this.getMouseEvent("mousedown"), this.onMouseDownListener);
|
|
44557
|
-
return resizer;
|
|
44511
|
+
var primaryColorLightRgba = parseRgbaFromString(lightColor);
|
|
44512
|
+
if (primaryColorLightRgba.length === 0) {
|
|
44513
|
+
primaryColorLightRgba = parseRgbaFromString(ingectAlpha(lightColor, 1));
|
|
44514
|
+
}
|
|
44515
|
+
this.colorSettings.baseColorAlpha = primaryColorRgba[3];
|
|
44516
|
+
this.colorSettings.darkColorAlpha = primaryColorDarkRgba[3];
|
|
44517
|
+
this.colorSettings.lightColorAlpha = primaryColorLightRgba[3];
|
|
44518
|
+
var primaryColorHSB = RGBToHSB(primaryColorRgba[0], primaryColorRgba[1], primaryColorRgba[2]);
|
|
44519
|
+
var primaryColorDarkHSB = RGBToHSB(primaryColorDarkRgba[0], primaryColorDarkRgba[1], primaryColorDarkRgba[2]);
|
|
44520
|
+
var primaryColorLightHSB = RGBToHSB(primaryColorLightRgba[0], primaryColorLightRgba[1], primaryColorLightRgba[2]);
|
|
44521
|
+
this.colorSettings.deltaDarkColor = primaryColorHSB[2] - primaryColorDarkHSB[2];
|
|
44522
|
+
this.colorSettings.deltaLightColor = primaryColorHSB[2] - primaryColorLightHSB[2];
|
|
44558
44523
|
};
|
|
44559
|
-
|
|
44560
|
-
|
|
44561
|
-
|
|
44562
|
-
|
|
44563
|
-
|
|
44564
|
-
|
|
44565
|
-
|
|
44524
|
+
ColorCalculator.prototype.calculateColors = function (newColor) {
|
|
44525
|
+
var newColorRbg = parseRgbaFromString(newColor);
|
|
44526
|
+
if (newColorRbg.length === 0) {
|
|
44527
|
+
newColorRbg = parseRgbaFromString(ingectAlpha(newColor, 1));
|
|
44528
|
+
}
|
|
44529
|
+
var newColorHsb = RGBToHSB(newColorRbg[0], newColorRbg[1], newColorRbg[2]);
|
|
44530
|
+
var newPrimaryColorDarkRGB = HSBToRGB(newColorHsb[0], newColorHsb[1], newColorHsb[2] - this.colorSettings.deltaDarkColor);
|
|
44531
|
+
var newPrimaryColorLightRGB = HSBToRGB(newColorHsb[0], newColorHsb[1], newColorHsb[2] - this.colorSettings.deltaLightColor);
|
|
44532
|
+
this.colorSettings.newColorLight = convertRgbaToString(newPrimaryColorLightRGB, this.colorSettings.lightColorAlpha);
|
|
44533
|
+
this.colorSettings.newColorDark = convertRgbaToString(newPrimaryColorDarkRGB, this.colorSettings.darkColorAlpha);
|
|
44566
44534
|
};
|
|
44567
|
-
return
|
|
44535
|
+
return ColorCalculator;
|
|
44568
44536
|
}());
|
|
44569
44537
|
|
|
44538
|
+
function ingectAlpha(baseColor, alpha) {
|
|
44539
|
+
if (!!baseColor && alpha !== undefined) {
|
|
44540
|
+
var rgbValue = HEXToRGB(baseColor);
|
|
44541
|
+
return "rgba(".concat(rgbValue[0], ", ").concat(rgbValue[1], ", ").concat(rgbValue[2], ", ").concat(rgbValue[3] || alpha, ")");
|
|
44542
|
+
}
|
|
44543
|
+
}
|
|
44544
|
+
function convertRgbaToString(rgbValues, alpha) {
|
|
44545
|
+
return "rgba(".concat(rgbValues[0], ", ").concat(rgbValues[1], ", ").concat(rgbValues[2], ", ").concat(alpha, ")");
|
|
44546
|
+
}
|
|
44547
|
+
function parseRgbaFromString(value) {
|
|
44548
|
+
if (value === void 0) { value = ""; }
|
|
44549
|
+
var matchRgb = value.match(/\((.*)\)/);
|
|
44550
|
+
if (matchRgb) {
|
|
44551
|
+
return matchRgb[1].split(",").map(function (i) { return parseFloat(i); });
|
|
44552
|
+
}
|
|
44553
|
+
else {
|
|
44554
|
+
return [];
|
|
44555
|
+
}
|
|
44556
|
+
}
|
|
44557
|
+
function parseColor(value) {
|
|
44558
|
+
if (value === void 0) { value = ""; }
|
|
44559
|
+
var rgbValues = parseRgbaFromString(value);
|
|
44560
|
+
if (rgbValues.length !== 0) {
|
|
44561
|
+
var opacity = 1;
|
|
44562
|
+
if (rgbValues.length == 4) {
|
|
44563
|
+
opacity = rgbValues.pop();
|
|
44564
|
+
}
|
|
44565
|
+
var color = rgbValues.reduce(function (res, color) {
|
|
44566
|
+
var hex = color.toString(16);
|
|
44567
|
+
return res + (hex.length == 1 ? "0" + hex : hex);
|
|
44568
|
+
}, "#");
|
|
44569
|
+
return { color: color, opacity: (0,_utils__WEBPACK_IMPORTED_MODULE_0__.roundTo2Decimals)(opacity * 100) };
|
|
44570
|
+
}
|
|
44571
|
+
else {
|
|
44572
|
+
return { color: value, opacity: 100 };
|
|
44573
|
+
}
|
|
44574
|
+
}
|
|
44575
|
+
function HEXToRGB(baseColor) {
|
|
44576
|
+
if (!!baseColor) {
|
|
44577
|
+
var r = parseInt(baseColor.slice(1, 3), 16);
|
|
44578
|
+
var g = parseInt(baseColor.slice(3, 5), 16);
|
|
44579
|
+
var b = parseInt(baseColor.slice(5, 7), 16);
|
|
44580
|
+
var alpha = (0,_utils__WEBPACK_IMPORTED_MODULE_0__.roundTo2Decimals)(parseInt(baseColor.slice(7, 9), 16) / 255);
|
|
44581
|
+
return [r, g, b, alpha];
|
|
44582
|
+
}
|
|
44583
|
+
return [];
|
|
44584
|
+
}
|
|
44585
|
+
function HSBToRGB(h, s, b) {
|
|
44586
|
+
s /= 100;
|
|
44587
|
+
b /= 100;
|
|
44588
|
+
var k = function (n) { return (n + h / 60) % 6; };
|
|
44589
|
+
var f = function (n) { return b * (1 - s * Math.max(0, Math.min(k(n), 4 - k(n), 1))); };
|
|
44590
|
+
return [Math.round(255 * f(5)), Math.round(255 * f(3)), Math.round(255 * f(1))];
|
|
44591
|
+
}
|
|
44592
|
+
function RGBToHSB(r, g, b) {
|
|
44593
|
+
r /= 255;
|
|
44594
|
+
g /= 255;
|
|
44595
|
+
b /= 255;
|
|
44596
|
+
var v = Math.max(r, g, b), n = v - Math.min(r, g, b);
|
|
44597
|
+
var h = n === 0 ? 0 : n && v === r ? (g - b) / n : v === g ? 2 + (b - r) / n : 4 + (r - g) / n;
|
|
44598
|
+
return [60 * (h < 0 ? h + 6 : h), v && (n / v) * 100, v * 100];
|
|
44599
|
+
}
|
|
44600
|
+
function colorsAreEqual(color1, color2) {
|
|
44601
|
+
var color1Value = parseColor(color1);
|
|
44602
|
+
color1Value.color = color1Value.color.substring(0, 7).toUpperCase();
|
|
44603
|
+
var color2Value = parseColor(color2);
|
|
44604
|
+
color2Value.color = color2Value.color.substring(0, 7).toUpperCase();
|
|
44605
|
+
return color1Value.color === color2Value.color && color1Value.opacity === color2Value.opacity;
|
|
44606
|
+
}
|
|
44570
44607
|
|
|
44571
44608
|
|
|
44572
44609
|
/***/ }),
|
|
44573
44610
|
|
|
44574
|
-
/***/ "./src/utils/utils.ts":
|
|
44575
|
-
|
|
44576
|
-
!*** ./src/utils/utils.ts ***!
|
|
44577
|
-
|
|
44611
|
+
/***/ "./src/utils/creator-utils.ts":
|
|
44612
|
+
/*!************************************!*\
|
|
44613
|
+
!*** ./src/utils/creator-utils.ts ***!
|
|
44614
|
+
\************************************/
|
|
44578
44615
|
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
44579
44616
|
|
|
44580
44617
|
"use strict";
|
|
44581
44618
|
__webpack_require__.r(__webpack_exports__);
|
|
44582
44619
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44583
|
-
/* harmony export */ ColorCalculator: () => (/* binding */ ColorCalculator),
|
|
44584
|
-
/* harmony export */ HEXToRGB: () => (/* binding */ HEXToRGB),
|
|
44585
|
-
/* harmony export */ HSBToRGB: () => (/* binding */ HSBToRGB),
|
|
44586
|
-
/* harmony export */ RGBToHSB: () => (/* binding */ RGBToHSB),
|
|
44587
|
-
/* harmony export */ assign: () => (/* binding */ assign),
|
|
44588
44620
|
/* harmony export */ assignDefaultV2Classes: () => (/* binding */ assignDefaultV2Classes),
|
|
44589
|
-
/* harmony export */ capitalize: () => (/* binding */ capitalize),
|
|
44590
|
-
/* harmony export */ clearNewLines: () => (/* binding */ clearNewLines),
|
|
44591
|
-
/* harmony export */ colorsAreEqual: () => (/* binding */ colorsAreEqual),
|
|
44592
|
-
/* harmony export */ convertRgbaToString: () => (/* binding */ convertRgbaToString),
|
|
44593
|
-
/* harmony export */ copyCssClasses: () => (/* binding */ copyCssClasses),
|
|
44594
|
-
/* harmony export */ copyObject: () => (/* binding */ copyObject),
|
|
44595
|
-
/* harmony export */ findParentNode: () => (/* binding */ findParentNode),
|
|
44596
|
-
/* harmony export */ focusFirstControl: () => (/* binding */ focusFirstControl),
|
|
44597
|
-
/* harmony export */ getAcceptedTypesByContentMode: () => (/* binding */ getAcceptedTypesByContentMode),
|
|
44598
|
-
/* harmony export */ getFirstNonTextElement: () => (/* binding */ getFirstNonTextElement),
|
|
44599
44621
|
/* harmony export */ getNextItemText: () => (/* binding */ getNextItemText),
|
|
44600
44622
|
/* harmony export */ getNextItemValue: () => (/* binding */ getNextItemValue),
|
|
44601
44623
|
/* harmony export */ getNextValue: () => (/* binding */ getNextValue),
|
|
44602
|
-
/* harmony export */ getNodesFromKoComponentInfo: () => (/* binding */ getNodesFromKoComponentInfo),
|
|
44603
44624
|
/* harmony export */ getQuestionFromObj: () => (/* binding */ getQuestionFromObj),
|
|
44604
|
-
/* harmony export */ imageMimeTypes: () => (/* binding */ imageMimeTypes),
|
|
44605
|
-
/* harmony export */ ingectAlpha: () => (/* binding */ ingectAlpha),
|
|
44606
44625
|
/* harmony export */ isPropertyVisible: () => (/* binding */ isPropertyVisible),
|
|
44607
|
-
/* harmony export */ notShortCircuitAnd: () => (/* binding */ notShortCircuitAnd),
|
|
44608
|
-
/* harmony export */ parseColor: () => (/* binding */ parseColor),
|
|
44609
|
-
/* harmony export */ parseRgbaFromString: () => (/* binding */ parseRgbaFromString),
|
|
44610
44626
|
/* harmony export */ propertyExists: () => (/* binding */ propertyExists),
|
|
44611
|
-
/* harmony export */ roundTo2Decimals: () => (/* binding */ roundTo2Decimals),
|
|
44612
|
-
/* harmony export */ saveToFileHandler: () => (/* binding */ saveToFileHandler),
|
|
44613
44627
|
/* harmony export */ scrollElementIntoView: () => (/* binding */ scrollElementIntoView),
|
|
44614
|
-
/* harmony export */ select: () => (/* binding */ select),
|
|
44615
|
-
/* harmony export */ toggleHovered: () => (/* binding */ toggleHovered),
|
|
44616
|
-
/* harmony export */ trimEmptyFields: () => (/* binding */ trimEmptyFields),
|
|
44617
44628
|
/* harmony export */ wrapTextByCurlyBraces: () => (/* binding */ wrapTextByCurlyBraces)
|
|
44618
44629
|
/* harmony export */ });
|
|
44619
44630
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
44620
44631
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
44621
|
-
/* harmony import */ var
|
|
44632
|
+
/* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils */ "./src/utils/utils.ts");
|
|
44633
|
+
/* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../creator-settings */ "./src/creator-settings.ts");
|
|
44634
|
+
|
|
44622
44635
|
|
|
44623
44636
|
|
|
44624
|
-
function getNumericFromString(str) {
|
|
44625
|
-
if (!str)
|
|
44626
|
-
return "";
|
|
44627
|
-
var num = "";
|
|
44628
|
-
for (var i = str.length - 1; i >= 0; i--) {
|
|
44629
|
-
if (str[i] >= "0" && str[i] <= "9") {
|
|
44630
|
-
num = str[i] + num;
|
|
44631
|
-
}
|
|
44632
|
-
else {
|
|
44633
|
-
if (!!num)
|
|
44634
|
-
return num;
|
|
44635
|
-
}
|
|
44636
|
-
if (num.length == 10)
|
|
44637
|
-
break;
|
|
44638
|
-
}
|
|
44639
|
-
return num;
|
|
44640
|
-
}
|
|
44641
|
-
function roundTo2Decimals(number) {
|
|
44642
|
-
return Math.round(number * 100) / 100;
|
|
44643
|
-
}
|
|
44644
44637
|
var opositeValues = {
|
|
44645
44638
|
true: "false",
|
|
44646
44639
|
True: "False",
|
|
@@ -44670,6 +44663,23 @@ function hasValueInArray(values, search) {
|
|
|
44670
44663
|
}
|
|
44671
44664
|
return false;
|
|
44672
44665
|
}
|
|
44666
|
+
function getNumericFromString(str) {
|
|
44667
|
+
if (!str)
|
|
44668
|
+
return "";
|
|
44669
|
+
var num = "";
|
|
44670
|
+
for (var i = str.length - 1; i >= 0; i--) {
|
|
44671
|
+
if (str[i] >= "0" && str[i] <= "9") {
|
|
44672
|
+
num = str[i] + num;
|
|
44673
|
+
}
|
|
44674
|
+
else {
|
|
44675
|
+
if (!!num)
|
|
44676
|
+
return num;
|
|
44677
|
+
}
|
|
44678
|
+
if (num.length == 10)
|
|
44679
|
+
break;
|
|
44680
|
+
}
|
|
44681
|
+
return num;
|
|
44682
|
+
}
|
|
44673
44683
|
function getNextItemValue(prefix, choices) {
|
|
44674
44684
|
var values = choices.map(function (item) { return item.value; });
|
|
44675
44685
|
return getNextValue(prefix, values);
|
|
@@ -44688,8 +44698,9 @@ function getNextItemText(choices) {
|
|
|
44688
44698
|
return !!nextValue ? nextValue.toString() : "";
|
|
44689
44699
|
}
|
|
44690
44700
|
function getNextValue(prefix, values) {
|
|
44701
|
+
var oposite = null;
|
|
44691
44702
|
if (values.length > 0)
|
|
44692
|
-
|
|
44703
|
+
oposite = getOpositValue(values[values.length - 1]);
|
|
44693
44704
|
if (oposite && values.indexOf(oposite) < 0)
|
|
44694
44705
|
return oposite;
|
|
44695
44706
|
var numStr = "";
|
|
@@ -44729,31 +44740,79 @@ function getNextValue(prefix, values) {
|
|
|
44729
44740
|
}
|
|
44730
44741
|
return prefix + 1;
|
|
44731
44742
|
}
|
|
44732
|
-
function
|
|
44733
|
-
var
|
|
44734
|
-
|
|
44735
|
-
|
|
44743
|
+
function propertyExists(obj, propertyName) {
|
|
44744
|
+
var result = true;
|
|
44745
|
+
if (!!obj && typeof obj.getType === "function") {
|
|
44746
|
+
var property = survey_core__WEBPACK_IMPORTED_MODULE_0__.Serializer.findProperty(obj.getType(), propertyName);
|
|
44747
|
+
result = !!property;
|
|
44736
44748
|
}
|
|
44737
|
-
return
|
|
44749
|
+
return result;
|
|
44738
44750
|
}
|
|
44739
|
-
function
|
|
44740
|
-
|
|
44741
|
-
|
|
44742
|
-
|
|
44743
|
-
|
|
44744
|
-
|
|
44745
|
-
|
|
44746
|
-
|
|
44747
|
-
|
|
44748
|
-
|
|
44749
|
-
|
|
44750
|
-
|
|
44751
|
-
|
|
44752
|
-
|
|
44753
|
-
|
|
44754
|
-
|
|
44751
|
+
function isPropertyVisible(obj, propertyName) {
|
|
44752
|
+
var result = true;
|
|
44753
|
+
if (!!obj && typeof obj.getType === "function") {
|
|
44754
|
+
var property = survey_core__WEBPACK_IMPORTED_MODULE_0__.Serializer.findProperty(obj.getType(), propertyName);
|
|
44755
|
+
result = !property || property.visible;
|
|
44756
|
+
}
|
|
44757
|
+
return result;
|
|
44758
|
+
}
|
|
44759
|
+
function getQuestionFromObj(obj) {
|
|
44760
|
+
return (obj instanceof survey_core__WEBPACK_IMPORTED_MODULE_0__.MatrixDropdownColumn) ? obj.templateQuestion : obj;
|
|
44761
|
+
}
|
|
44762
|
+
function scrollElementIntoView(elementId) {
|
|
44763
|
+
if (!elementId || typeof survey_core__WEBPACK_IMPORTED_MODULE_0__.settings.environment.root === "undefined")
|
|
44764
|
+
return;
|
|
44765
|
+
var el = survey_core__WEBPACK_IMPORTED_MODULE_0__.settings.environment.root.getElementById(elementId);
|
|
44766
|
+
if (!el)
|
|
44767
|
+
return;
|
|
44768
|
+
el.scrollIntoView({ behavior: "smooth", block: "center", inline: "start" });
|
|
44769
|
+
}
|
|
44770
|
+
function assignDefaultV2Classes(destination, questionType) {
|
|
44771
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_1__.copyCssClasses)(destination, survey_core__WEBPACK_IMPORTED_MODULE_0__.defaultV2Css.question);
|
|
44772
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_1__.copyCssClasses)(destination, survey_core__WEBPACK_IMPORTED_MODULE_0__.defaultV2Css[questionType]);
|
|
44773
|
+
if (destination.list) {
|
|
44774
|
+
(0,_utils__WEBPACK_IMPORTED_MODULE_1__.copyCssClasses)(destination.list, survey_core__WEBPACK_IMPORTED_MODULE_0__.defaultV2Css.list);
|
|
44755
44775
|
}
|
|
44776
|
+
destination.hasErrorTop = "";
|
|
44777
|
+
destination.hasErrorBottom = "";
|
|
44778
|
+
}
|
|
44779
|
+
function wrapTextByCurlyBraces(text) {
|
|
44780
|
+
return _creator_settings__WEBPACK_IMPORTED_MODULE_2__.settings.logic.openBracket + text + _creator_settings__WEBPACK_IMPORTED_MODULE_2__.settings.logic.closeBracket;
|
|
44756
44781
|
}
|
|
44782
|
+
|
|
44783
|
+
|
|
44784
|
+
/***/ }),
|
|
44785
|
+
|
|
44786
|
+
/***/ "./src/utils/events.ts":
|
|
44787
|
+
/*!*****************************!*\
|
|
44788
|
+
!*** ./src/utils/events.ts ***!
|
|
44789
|
+
\*****************************/
|
|
44790
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
44791
|
+
|
|
44792
|
+
"use strict";
|
|
44793
|
+
__webpack_require__.r(__webpack_exports__);
|
|
44794
|
+
|
|
44795
|
+
|
|
44796
|
+
|
|
44797
|
+
/***/ }),
|
|
44798
|
+
|
|
44799
|
+
/***/ "./src/utils/html-element-utils.ts":
|
|
44800
|
+
/*!*****************************************!*\
|
|
44801
|
+
!*** ./src/utils/html-element-utils.ts ***!
|
|
44802
|
+
\*****************************************/
|
|
44803
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
44804
|
+
|
|
44805
|
+
"use strict";
|
|
44806
|
+
__webpack_require__.r(__webpack_exports__);
|
|
44807
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44808
|
+
/* harmony export */ findParentNode: () => (/* binding */ findParentNode),
|
|
44809
|
+
/* harmony export */ focusFirstControl: () => (/* binding */ focusFirstControl),
|
|
44810
|
+
/* harmony export */ getFirstNonTextElement: () => (/* binding */ getFirstNonTextElement),
|
|
44811
|
+
/* harmony export */ getNodesFromKoComponentInfo: () => (/* binding */ getNodesFromKoComponentInfo),
|
|
44812
|
+
/* harmony export */ saveToFileHandler: () => (/* binding */ saveToFileHandler),
|
|
44813
|
+
/* harmony export */ select: () => (/* binding */ select),
|
|
44814
|
+
/* harmony export */ toggleHovered: () => (/* binding */ toggleHovered)
|
|
44815
|
+
/* harmony export */ });
|
|
44757
44816
|
function getFirstNonTextElement(elements) {
|
|
44758
44817
|
if (!elements || !elements.length)
|
|
44759
44818
|
return;
|
|
@@ -44763,6 +44822,13 @@ function getFirstNonTextElement(elements) {
|
|
|
44763
44822
|
}
|
|
44764
44823
|
return null;
|
|
44765
44824
|
}
|
|
44825
|
+
function findParentNode(className, sourceNode) {
|
|
44826
|
+
var parent = sourceNode;
|
|
44827
|
+
while (!!parent && !parent.classList.contains(className)) {
|
|
44828
|
+
parent = parent.parentElement;
|
|
44829
|
+
}
|
|
44830
|
+
return parent;
|
|
44831
|
+
}
|
|
44766
44832
|
// about compoentInfo: https://knockoutjs.com/documentation/component-registration.html
|
|
44767
44833
|
function getNodesFromKoComponentInfo(componentInfo) {
|
|
44768
44834
|
// elem.nodeType === 3 // text node
|
|
@@ -44812,22 +44878,6 @@ function getNodesFromKoComponentInfo(componentInfo) {
|
|
|
44812
44878
|
// valueAccessor() && valueAccessor()([element.parentElement]);
|
|
44813
44879
|
// },
|
|
44814
44880
|
// };
|
|
44815
|
-
function propertyExists(obj, propertyName) {
|
|
44816
|
-
var result = true;
|
|
44817
|
-
if (!!obj && typeof obj.getType === "function") {
|
|
44818
|
-
var property = survey_core__WEBPACK_IMPORTED_MODULE_0__.Serializer.findProperty(obj.getType(), propertyName);
|
|
44819
|
-
result = !!property;
|
|
44820
|
-
}
|
|
44821
|
-
return result;
|
|
44822
|
-
}
|
|
44823
|
-
function isPropertyVisible(obj, propertyName) {
|
|
44824
|
-
var result = true;
|
|
44825
|
-
if (!!obj && typeof obj.getType === "function") {
|
|
44826
|
-
var property = survey_core__WEBPACK_IMPORTED_MODULE_0__.Serializer.findProperty(obj.getType(), propertyName);
|
|
44827
|
-
result = !property || property.visible;
|
|
44828
|
-
}
|
|
44829
|
-
return result;
|
|
44830
|
-
}
|
|
44831
44881
|
function toggleHovered(e, element, timeout) {
|
|
44832
44882
|
if (timeout === void 0) { timeout = 0; }
|
|
44833
44883
|
var processedFlagName = "__svc_question_processed";
|
|
@@ -44862,9 +44912,6 @@ function toggleHovered(e, element, timeout) {
|
|
|
44862
44912
|
element.className = (element.className || "").replace(" svc-hovered", "");
|
|
44863
44913
|
}
|
|
44864
44914
|
}
|
|
44865
|
-
function clearNewLines(text) {
|
|
44866
|
-
return text.replace(new RegExp("(\\r\\n|\\n|\\r)", "gm"), "");
|
|
44867
|
-
}
|
|
44868
44915
|
function select(element) {
|
|
44869
44916
|
if (!window)
|
|
44870
44917
|
return;
|
|
@@ -44882,6 +44929,203 @@ function select(element) {
|
|
|
44882
44929
|
range.select();
|
|
44883
44930
|
}
|
|
44884
44931
|
}
|
|
44932
|
+
function saveToFileHandler(fileName, blob) {
|
|
44933
|
+
if (!window)
|
|
44934
|
+
return;
|
|
44935
|
+
if (window.navigator["msSaveOrOpenBlob"]) {
|
|
44936
|
+
window.navigator["msSaveBlob"](blob, fileName);
|
|
44937
|
+
}
|
|
44938
|
+
else {
|
|
44939
|
+
var elem = window.document.createElement("a");
|
|
44940
|
+
elem.href = window.URL.createObjectURL(blob);
|
|
44941
|
+
elem.download = fileName;
|
|
44942
|
+
document.body.appendChild(elem);
|
|
44943
|
+
elem.click();
|
|
44944
|
+
document.body.removeChild(elem);
|
|
44945
|
+
}
|
|
44946
|
+
}
|
|
44947
|
+
function focusFirstControl(renderedElements) {
|
|
44948
|
+
for (var i = 0; i < renderedElements.length; i++) {
|
|
44949
|
+
if (typeof renderedElements[i].getElementsByClassName === "function") {
|
|
44950
|
+
var elements = (renderedElements[i].getElementsByClassName("svd-focusable"));
|
|
44951
|
+
if (elements.length === 0 &&
|
|
44952
|
+
renderedElements[i].className.indexOf("svd-focusable") !== -1) {
|
|
44953
|
+
elements = [renderedElements[i]];
|
|
44954
|
+
}
|
|
44955
|
+
if (elements.length > 0) {
|
|
44956
|
+
var element = elements[0];
|
|
44957
|
+
if (element.tagName.toLowerCase() !== "a") {
|
|
44958
|
+
element.focus({ preventScroll: true });
|
|
44959
|
+
break;
|
|
44960
|
+
}
|
|
44961
|
+
}
|
|
44962
|
+
}
|
|
44963
|
+
}
|
|
44964
|
+
}
|
|
44965
|
+
|
|
44966
|
+
|
|
44967
|
+
/***/ }),
|
|
44968
|
+
|
|
44969
|
+
/***/ "./src/utils/resizer.ts":
|
|
44970
|
+
/*!******************************!*\
|
|
44971
|
+
!*** ./src/utils/resizer.ts ***!
|
|
44972
|
+
\******************************/
|
|
44973
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
44974
|
+
|
|
44975
|
+
"use strict";
|
|
44976
|
+
__webpack_require__.r(__webpack_exports__);
|
|
44977
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
44978
|
+
/* harmony export */ ResizeManager: () => (/* binding */ ResizeManager)
|
|
44979
|
+
/* harmony export */ });
|
|
44980
|
+
var ResizeManager = /** @class */ (function () {
|
|
44981
|
+
function ResizeManager(container, handles) {
|
|
44982
|
+
var _this = this;
|
|
44983
|
+
this.container = container;
|
|
44984
|
+
this.events = {
|
|
44985
|
+
"mousedown": { "touch": "touchend", "mouse": "mousedown", "pointer": "pointerdown" },
|
|
44986
|
+
"mouseup": { "touch": "touchstart", "mouse": "mouseup", "pointer": "pointerup" },
|
|
44987
|
+
"mousemove": { "touch": "touchmove", "mouse": "mousemove", "pointer": "pointermove" },
|
|
44988
|
+
};
|
|
44989
|
+
this.onMouseDownListener = function (e) {
|
|
44990
|
+
if (!window)
|
|
44991
|
+
return;
|
|
44992
|
+
e.preventDefault();
|
|
44993
|
+
_this.originalWidth = _this.getStyleValue(_this.container, "width");
|
|
44994
|
+
_this.originalMouseX = e.pageX;
|
|
44995
|
+
_this.currentResizer = e.target;
|
|
44996
|
+
window.addEventListener(_this.getMouseEvent("mousemove"), _this.resize);
|
|
44997
|
+
window.addEventListener(_this.getMouseEvent("mouseup"), _this.stopResize);
|
|
44998
|
+
};
|
|
44999
|
+
this.resize = function (e) {
|
|
45000
|
+
var width = _this.originalWidth;
|
|
45001
|
+
var horizontalDistinction = e.pageX - _this.originalMouseX;
|
|
45002
|
+
if (_this.currentResizer == _this.westResizer) {
|
|
45003
|
+
width -= horizontalDistinction;
|
|
45004
|
+
}
|
|
45005
|
+
else {
|
|
45006
|
+
width += horizontalDistinction;
|
|
45007
|
+
}
|
|
45008
|
+
if (width > _this.maxWidth) {
|
|
45009
|
+
width = _this.maxWidth;
|
|
45010
|
+
}
|
|
45011
|
+
else if (width < _this.minWidth) {
|
|
45012
|
+
width = _this.minWidth;
|
|
45013
|
+
}
|
|
45014
|
+
_this.container.style.width = width + "px";
|
|
45015
|
+
};
|
|
45016
|
+
this.stopResize = function (e) {
|
|
45017
|
+
if (!window)
|
|
45018
|
+
return;
|
|
45019
|
+
window.removeEventListener(_this.getMouseEvent("mousemove"), _this.resize);
|
|
45020
|
+
window.removeEventListener(_this.getMouseEvent("mouseup"), _this.stopResize);
|
|
45021
|
+
};
|
|
45022
|
+
this.init(container);
|
|
45023
|
+
this.setHandles(handles);
|
|
45024
|
+
}
|
|
45025
|
+
ResizeManager.prototype.setHandles = function (newVal) {
|
|
45026
|
+
var isThereWestResizer = false;
|
|
45027
|
+
var isThereEastResizer = false;
|
|
45028
|
+
var inputVal = newVal.split(",");
|
|
45029
|
+
inputVal.forEach(function (str) { return str.trim(); });
|
|
45030
|
+
inputVal = inputVal.filter(function (str) { return !!str; });
|
|
45031
|
+
(inputVal || []).forEach(function (handrail) {
|
|
45032
|
+
if (handrail == "w")
|
|
45033
|
+
isThereWestResizer = true;
|
|
45034
|
+
if (handrail == "e")
|
|
45035
|
+
isThereEastResizer = true;
|
|
45036
|
+
});
|
|
45037
|
+
this.westResizer.style["display"] = isThereWestResizer ? "block" : "none";
|
|
45038
|
+
this.eastResizer.style["display"] = isThereEastResizer ? "block" : "none";
|
|
45039
|
+
};
|
|
45040
|
+
ResizeManager.prototype.getStyleValue = function (element, style) {
|
|
45041
|
+
if (!window)
|
|
45042
|
+
return 0;
|
|
45043
|
+
return parseFloat(window.getComputedStyle(element).getPropertyValue(style).replace("px", ""));
|
|
45044
|
+
};
|
|
45045
|
+
ResizeManager.prototype.isEventSupported = function (eventName) {
|
|
45046
|
+
var el = document.createElement("div");
|
|
45047
|
+
eventName = "on" + eventName;
|
|
45048
|
+
var isSupported = (eventName in el);
|
|
45049
|
+
if (!isSupported) {
|
|
45050
|
+
el.setAttribute(eventName, "return;");
|
|
45051
|
+
isSupported = typeof el[eventName] == "function";
|
|
45052
|
+
}
|
|
45053
|
+
el = null;
|
|
45054
|
+
return isSupported;
|
|
45055
|
+
};
|
|
45056
|
+
ResizeManager.prototype.getEventPrefix = function () {
|
|
45057
|
+
if (this.mouseDevice === undefined) {
|
|
45058
|
+
if (this.isEventSupported("pointerdown")) {
|
|
45059
|
+
this.mouseDevice = "pointer";
|
|
45060
|
+
}
|
|
45061
|
+
else if (this.isEventSupported("touchstart")) {
|
|
45062
|
+
this.mouseDevice = "touch";
|
|
45063
|
+
}
|
|
45064
|
+
else if (this.isEventSupported("mousedown")) {
|
|
45065
|
+
this.mouseDevice = "mouse";
|
|
45066
|
+
}
|
|
45067
|
+
}
|
|
45068
|
+
return this.mouseDevice;
|
|
45069
|
+
};
|
|
45070
|
+
ResizeManager.prototype.getMouseEvent = function (eventName) {
|
|
45071
|
+
return this.events[eventName][this.getEventPrefix()];
|
|
45072
|
+
};
|
|
45073
|
+
ResizeManager.prototype.init = function (container) {
|
|
45074
|
+
this.westResizer = this.createrResizerElement("svc-resizer svc-resizer-west");
|
|
45075
|
+
this.eastResizer = this.createrResizerElement("svc-resizer svc-resizer-east");
|
|
45076
|
+
this.minWidth = this.getStyleValue(container, "min-width");
|
|
45077
|
+
this.maxWidth = this.getStyleValue(container, "max-width");
|
|
45078
|
+
container.insertBefore(this.westResizer, container.children[0]);
|
|
45079
|
+
container.appendChild(this.eastResizer);
|
|
45080
|
+
};
|
|
45081
|
+
ResizeManager.prototype.createrResizerElement = function (className) {
|
|
45082
|
+
var resizer = document.createElement("div");
|
|
45083
|
+
resizer.className = className;
|
|
45084
|
+
resizer.addEventListener(this.getMouseEvent("mousedown"), this.onMouseDownListener);
|
|
45085
|
+
return resizer;
|
|
45086
|
+
};
|
|
45087
|
+
ResizeManager.prototype.dispose = function () {
|
|
45088
|
+
this.eastResizer.removeEventListener(this.getMouseEvent("mousedown"), this.onMouseDownListener);
|
|
45089
|
+
this.eastResizer.remove();
|
|
45090
|
+
this.eastResizer = undefined;
|
|
45091
|
+
this.westResizer.removeEventListener(this.getMouseEvent("mousedown"), this.onMouseDownListener);
|
|
45092
|
+
this.westResizer.remove();
|
|
45093
|
+
this.westResizer = undefined;
|
|
45094
|
+
};
|
|
45095
|
+
return ResizeManager;
|
|
45096
|
+
}());
|
|
45097
|
+
|
|
45098
|
+
|
|
45099
|
+
|
|
45100
|
+
/***/ }),
|
|
45101
|
+
|
|
45102
|
+
/***/ "./src/utils/utils.ts":
|
|
45103
|
+
/*!****************************!*\
|
|
45104
|
+
!*** ./src/utils/utils.ts ***!
|
|
45105
|
+
\****************************/
|
|
45106
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
45107
|
+
|
|
45108
|
+
"use strict";
|
|
45109
|
+
__webpack_require__.r(__webpack_exports__);
|
|
45110
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
45111
|
+
/* harmony export */ assign: () => (/* binding */ assign),
|
|
45112
|
+
/* harmony export */ capitalize: () => (/* binding */ capitalize),
|
|
45113
|
+
/* harmony export */ clearNewLines: () => (/* binding */ clearNewLines),
|
|
45114
|
+
/* harmony export */ copyCssClasses: () => (/* binding */ copyCssClasses),
|
|
45115
|
+
/* harmony export */ copyObject: () => (/* binding */ copyObject),
|
|
45116
|
+
/* harmony export */ getAcceptedTypesByContentMode: () => (/* binding */ getAcceptedTypesByContentMode),
|
|
45117
|
+
/* harmony export */ imageMimeTypes: () => (/* binding */ imageMimeTypes),
|
|
45118
|
+
/* harmony export */ notShortCircuitAnd: () => (/* binding */ notShortCircuitAnd),
|
|
45119
|
+
/* harmony export */ roundTo2Decimals: () => (/* binding */ roundTo2Decimals),
|
|
45120
|
+
/* harmony export */ trimEmptyFields: () => (/* binding */ trimEmptyFields)
|
|
45121
|
+
/* harmony export */ });
|
|
45122
|
+
function roundTo2Decimals(number) {
|
|
45123
|
+
return Math.round(number * 100) / 100;
|
|
45124
|
+
}
|
|
45125
|
+
var endLineRegExp = new RegExp("(\\r\\n|\\n|\\r)", "gm");
|
|
45126
|
+
function clearNewLines(text) {
|
|
45127
|
+
return text.replace(endLineRegExp, "");
|
|
45128
|
+
}
|
|
44885
45129
|
function copyObject(dst, src) {
|
|
44886
45130
|
for (var key in src) {
|
|
44887
45131
|
var source = src[key];
|
|
@@ -44902,18 +45146,6 @@ function copyCssClasses(dest, source) {
|
|
|
44902
45146
|
copyObject(dest, source);
|
|
44903
45147
|
}
|
|
44904
45148
|
}
|
|
44905
|
-
function assignDefaultV2Classes(destination, questionType) {
|
|
44906
|
-
copyCssClasses(destination, survey_core__WEBPACK_IMPORTED_MODULE_0__.defaultV2Css.question);
|
|
44907
|
-
copyCssClasses(destination, survey_core__WEBPACK_IMPORTED_MODULE_0__.defaultV2Css[questionType]);
|
|
44908
|
-
if (destination.list) {
|
|
44909
|
-
copyCssClasses(destination.list, survey_core__WEBPACK_IMPORTED_MODULE_0__.defaultV2Css.list);
|
|
44910
|
-
}
|
|
44911
|
-
destination.hasErrorTop = "";
|
|
44912
|
-
destination.hasErrorBottom = "";
|
|
44913
|
-
}
|
|
44914
|
-
function wrapTextByCurlyBraces(text) {
|
|
44915
|
-
return _creator_settings__WEBPACK_IMPORTED_MODULE_1__.settings.logic.openBracket + text + _creator_settings__WEBPACK_IMPORTED_MODULE_1__.settings.logic.closeBracket;
|
|
44916
|
-
}
|
|
44917
45149
|
function capitalize(str) {
|
|
44918
45150
|
if (!str)
|
|
44919
45151
|
return str;
|
|
@@ -44942,79 +45174,6 @@ function getAcceptedTypesByContentMode(contentMode) {
|
|
|
44942
45174
|
return "";
|
|
44943
45175
|
}
|
|
44944
45176
|
}
|
|
44945
|
-
function getQuestionFromObj(obj) {
|
|
44946
|
-
return (obj instanceof survey_core__WEBPACK_IMPORTED_MODULE_0__.MatrixDropdownColumn) ? obj.templateQuestion : obj;
|
|
44947
|
-
}
|
|
44948
|
-
function scrollElementIntoView(elementId) {
|
|
44949
|
-
if (!elementId || typeof survey_core__WEBPACK_IMPORTED_MODULE_0__.settings.environment.root === "undefined")
|
|
44950
|
-
return;
|
|
44951
|
-
var el = survey_core__WEBPACK_IMPORTED_MODULE_0__.settings.environment.root.getElementById(elementId);
|
|
44952
|
-
if (!el)
|
|
44953
|
-
return;
|
|
44954
|
-
el.scrollIntoView({ behavior: "smooth", block: "center", inline: "start" });
|
|
44955
|
-
}
|
|
44956
|
-
function ingectAlpha(baseColor, alpha) {
|
|
44957
|
-
if (!!baseColor && alpha !== undefined) {
|
|
44958
|
-
var rgbValue = HEXToRGB(baseColor);
|
|
44959
|
-
return "rgba(".concat(rgbValue[0], ", ").concat(rgbValue[1], ", ").concat(rgbValue[2], ", ").concat(rgbValue[3] || alpha, ")");
|
|
44960
|
-
}
|
|
44961
|
-
}
|
|
44962
|
-
function convertRgbaToString(rgbValues, alpha) {
|
|
44963
|
-
return "rgba(".concat(rgbValues[0], ", ").concat(rgbValues[1], ", ").concat(rgbValues[2], ", ").concat(alpha, ")");
|
|
44964
|
-
}
|
|
44965
|
-
function parseRgbaFromString(value) {
|
|
44966
|
-
if (value === void 0) { value = ""; }
|
|
44967
|
-
var matchRgb = value.match(/\((.*)\)/);
|
|
44968
|
-
if (matchRgb) {
|
|
44969
|
-
return matchRgb[1].split(",").map(function (i) { return parseFloat(i); });
|
|
44970
|
-
}
|
|
44971
|
-
else {
|
|
44972
|
-
return [];
|
|
44973
|
-
}
|
|
44974
|
-
}
|
|
44975
|
-
function parseColor(value) {
|
|
44976
|
-
if (value === void 0) { value = ""; }
|
|
44977
|
-
var rgbValues = parseRgbaFromString(value);
|
|
44978
|
-
if (rgbValues.length !== 0) {
|
|
44979
|
-
var opacity = 1;
|
|
44980
|
-
if (rgbValues.length == 4) {
|
|
44981
|
-
opacity = rgbValues.pop();
|
|
44982
|
-
}
|
|
44983
|
-
var color = rgbValues.reduce(function (res, color) {
|
|
44984
|
-
var hex = color.toString(16);
|
|
44985
|
-
return res + (hex.length == 1 ? "0" + hex : hex);
|
|
44986
|
-
}, "#");
|
|
44987
|
-
return { color: color, opacity: roundTo2Decimals(opacity * 100) };
|
|
44988
|
-
}
|
|
44989
|
-
else {
|
|
44990
|
-
return { color: value, opacity: 100 };
|
|
44991
|
-
}
|
|
44992
|
-
}
|
|
44993
|
-
function HEXToRGB(baseColor) {
|
|
44994
|
-
if (!!baseColor) {
|
|
44995
|
-
var r = parseInt(baseColor.slice(1, 3), 16);
|
|
44996
|
-
var g = parseInt(baseColor.slice(3, 5), 16);
|
|
44997
|
-
var b = parseInt(baseColor.slice(5, 7), 16);
|
|
44998
|
-
var alpha = roundTo2Decimals(parseInt(baseColor.slice(7, 9), 16) / 255);
|
|
44999
|
-
return [r, g, b, alpha];
|
|
45000
|
-
}
|
|
45001
|
-
return [];
|
|
45002
|
-
}
|
|
45003
|
-
function HSBToRGB(h, s, b) {
|
|
45004
|
-
s /= 100;
|
|
45005
|
-
b /= 100;
|
|
45006
|
-
var k = function (n) { return (n + h / 60) % 6; };
|
|
45007
|
-
var f = function (n) { return b * (1 - s * Math.max(0, Math.min(k(n), 4 - k(n), 1))); };
|
|
45008
|
-
return [Math.round(255 * f(5)), Math.round(255 * f(3)), Math.round(255 * f(1))];
|
|
45009
|
-
}
|
|
45010
|
-
function RGBToHSB(r, g, b) {
|
|
45011
|
-
r /= 255;
|
|
45012
|
-
g /= 255;
|
|
45013
|
-
b /= 255;
|
|
45014
|
-
var v = Math.max(r, g, b), n = v - Math.min(r, g, b);
|
|
45015
|
-
var h = n === 0 ? 0 : n && v === r ? (g - b) / n : v === g ? 2 + (b - r) / n : 4 + (r - g) / n;
|
|
45016
|
-
return [60 * (h < 0 ? h + 6 : h), v && (n / v) * 100, v * 100];
|
|
45017
|
-
}
|
|
45018
45177
|
function trimEmptyFields(object) {
|
|
45019
45178
|
Object.keys(object).forEach(function (key) {
|
|
45020
45179
|
if (object[key] === undefined || object[key] === null) {
|
|
@@ -45040,68 +45199,6 @@ function assign() {
|
|
|
45040
45199
|
assign(objects[0], objects[i]);
|
|
45041
45200
|
}
|
|
45042
45201
|
}
|
|
45043
|
-
var ColorCalculator = /** @class */ (function () {
|
|
45044
|
-
function ColorCalculator() {
|
|
45045
|
-
this.colorSettings = { baseColorAlpha: 1, darkColorAlpha: 1, lightColorAlpha: 1, deltaDarkColor: 0, deltaLightColor: 0, newColorLight: "", newColorDark: "" };
|
|
45046
|
-
}
|
|
45047
|
-
ColorCalculator.prototype.initialize = function (baseColor, lightColor, darkColor) {
|
|
45048
|
-
var primaryColorRgba = parseRgbaFromString(baseColor);
|
|
45049
|
-
if (primaryColorRgba.length === 0) {
|
|
45050
|
-
primaryColorRgba = parseRgbaFromString(ingectAlpha(baseColor, 1));
|
|
45051
|
-
}
|
|
45052
|
-
var primaryColorDarkRgba = parseRgbaFromString(darkColor);
|
|
45053
|
-
if (primaryColorDarkRgba.length === 0) {
|
|
45054
|
-
primaryColorDarkRgba = parseRgbaFromString(ingectAlpha(darkColor, 1));
|
|
45055
|
-
}
|
|
45056
|
-
var primaryColorLightRgba = parseRgbaFromString(lightColor);
|
|
45057
|
-
if (primaryColorLightRgba.length === 0) {
|
|
45058
|
-
primaryColorLightRgba = parseRgbaFromString(ingectAlpha(lightColor, 1));
|
|
45059
|
-
}
|
|
45060
|
-
this.colorSettings.baseColorAlpha = primaryColorRgba[3];
|
|
45061
|
-
this.colorSettings.darkColorAlpha = primaryColorDarkRgba[3];
|
|
45062
|
-
this.colorSettings.lightColorAlpha = primaryColorLightRgba[3];
|
|
45063
|
-
var primaryColorHSB = RGBToHSB(primaryColorRgba[0], primaryColorRgba[1], primaryColorRgba[2]);
|
|
45064
|
-
var primaryColorDarkHSB = RGBToHSB(primaryColorDarkRgba[0], primaryColorDarkRgba[1], primaryColorDarkRgba[2]);
|
|
45065
|
-
var primaryColorLightHSB = RGBToHSB(primaryColorLightRgba[0], primaryColorLightRgba[1], primaryColorLightRgba[2]);
|
|
45066
|
-
this.colorSettings.deltaDarkColor = primaryColorHSB[2] - primaryColorDarkHSB[2];
|
|
45067
|
-
this.colorSettings.deltaLightColor = primaryColorHSB[2] - primaryColorLightHSB[2];
|
|
45068
|
-
};
|
|
45069
|
-
ColorCalculator.prototype.calculateColors = function (newColor) {
|
|
45070
|
-
var newColorRbg = parseRgbaFromString(newColor);
|
|
45071
|
-
if (newColorRbg.length === 0) {
|
|
45072
|
-
newColorRbg = parseRgbaFromString(ingectAlpha(newColor, 1));
|
|
45073
|
-
}
|
|
45074
|
-
var newColorHsb = RGBToHSB(newColorRbg[0], newColorRbg[1], newColorRbg[2]);
|
|
45075
|
-
var newPrimaryColorDarkRGB = HSBToRGB(newColorHsb[0], newColorHsb[1], newColorHsb[2] - this.colorSettings.deltaDarkColor);
|
|
45076
|
-
var newPrimaryColorLightRGB = HSBToRGB(newColorHsb[0], newColorHsb[1], newColorHsb[2] - this.colorSettings.deltaLightColor);
|
|
45077
|
-
this.colorSettings.newColorLight = convertRgbaToString(newPrimaryColorLightRGB, this.colorSettings.lightColorAlpha);
|
|
45078
|
-
this.colorSettings.newColorDark = convertRgbaToString(newPrimaryColorDarkRGB, this.colorSettings.darkColorAlpha);
|
|
45079
|
-
};
|
|
45080
|
-
return ColorCalculator;
|
|
45081
|
-
}());
|
|
45082
|
-
|
|
45083
|
-
function saveToFileHandler(fileName, blob) {
|
|
45084
|
-
if (!window)
|
|
45085
|
-
return;
|
|
45086
|
-
if (window.navigator["msSaveOrOpenBlob"]) {
|
|
45087
|
-
window.navigator["msSaveBlob"](blob, fileName);
|
|
45088
|
-
}
|
|
45089
|
-
else {
|
|
45090
|
-
var elem = window.document.createElement("a");
|
|
45091
|
-
elem.href = window.URL.createObjectURL(blob);
|
|
45092
|
-
elem.download = fileName;
|
|
45093
|
-
document.body.appendChild(elem);
|
|
45094
|
-
elem.click();
|
|
45095
|
-
document.body.removeChild(elem);
|
|
45096
|
-
}
|
|
45097
|
-
}
|
|
45098
|
-
function colorsAreEqual(color1, color2) {
|
|
45099
|
-
var color1Value = parseColor(color1);
|
|
45100
|
-
color1Value.color = color1Value.color.substring(0, 7).toUpperCase();
|
|
45101
|
-
var color2Value = parseColor(color2);
|
|
45102
|
-
color2Value.color = color2Value.color.substring(0, 7).toUpperCase();
|
|
45103
|
-
return color1Value.color === color2Value.color && color1Value.opacity === color2Value.opacity;
|
|
45104
|
-
}
|
|
45105
45202
|
|
|
45106
45203
|
|
|
45107
45204
|
/***/ }),
|
|
@@ -45684,27 +45781,27 @@ var __webpack_exports__ = {};
|
|
|
45684
45781
|
__webpack_require__.r(__webpack_exports__);
|
|
45685
45782
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
45686
45783
|
/* harmony export */ AceJsonEditorModel: () => (/* reexport safe */ _components_tabs_json_editor_ace__WEBPACK_IMPORTED_MODULE_7__.AceJsonEditorModel),
|
|
45687
|
-
/* harmony export */ ColorCalculator: () => (/* reexport safe */
|
|
45784
|
+
/* harmony export */ ColorCalculator: () => (/* reexport safe */ _utils_color_utils__WEBPACK_IMPORTED_MODULE_80__.ColorCalculator),
|
|
45688
45785
|
/* harmony export */ CreatorAction: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.CreatorAction),
|
|
45689
45786
|
/* harmony export */ CreatorBase: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.CreatorBase),
|
|
45690
45787
|
/* harmony export */ CreatorEvent: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.CreatorEvent),
|
|
45691
|
-
/* harmony export */ CreatorPreset: () => (/* reexport safe */
|
|
45692
|
-
/* harmony export */ CreatorPresetBase: () => (/* reexport safe */
|
|
45693
|
-
/* harmony export */ CreatorPresetPropertyGrid: () => (/* reexport safe */
|
|
45694
|
-
/* harmony export */ CreatorPresetPropertyGridDefinition: () => (/* reexport safe */
|
|
45695
|
-
/* harmony export */ CreatorPresetTabs: () => (/* reexport safe */
|
|
45696
|
-
/* harmony export */ CreatorPresetToolbox: () => (/* reexport safe */
|
|
45697
|
-
/* harmony export */ CreatorPresetToolboxConfigurator: () => (/* reexport safe */
|
|
45698
|
-
/* harmony export */ CreatorPresetToolboxDefinition: () => (/* reexport safe */
|
|
45788
|
+
/* harmony export */ CreatorPreset: () => (/* reexport safe */ _presets_presets__WEBPACK_IMPORTED_MODULE_93__.CreatorPreset),
|
|
45789
|
+
/* harmony export */ CreatorPresetBase: () => (/* reexport safe */ _presets_presets_base__WEBPACK_IMPORTED_MODULE_92__.CreatorPresetBase),
|
|
45790
|
+
/* harmony export */ CreatorPresetPropertyGrid: () => (/* reexport safe */ _presets_presets_properties__WEBPACK_IMPORTED_MODULE_94__.CreatorPresetPropertyGrid),
|
|
45791
|
+
/* harmony export */ CreatorPresetPropertyGridDefinition: () => (/* reexport safe */ _presets_presets_properties__WEBPACK_IMPORTED_MODULE_94__.CreatorPresetPropertyGridDefinition),
|
|
45792
|
+
/* harmony export */ CreatorPresetTabs: () => (/* reexport safe */ _presets_presets_tabs__WEBPACK_IMPORTED_MODULE_95__.CreatorPresetTabs),
|
|
45793
|
+
/* harmony export */ CreatorPresetToolbox: () => (/* reexport safe */ _presets_presets_toolbox__WEBPACK_IMPORTED_MODULE_96__.CreatorPresetToolbox),
|
|
45794
|
+
/* harmony export */ CreatorPresetToolboxConfigurator: () => (/* reexport safe */ _presets_presets_toolbox__WEBPACK_IMPORTED_MODULE_96__.CreatorPresetToolboxConfigurator),
|
|
45795
|
+
/* harmony export */ CreatorPresetToolboxDefinition: () => (/* reexport safe */ _presets_presets_toolbox__WEBPACK_IMPORTED_MODULE_96__.CreatorPresetToolboxDefinition),
|
|
45699
45796
|
/* harmony export */ CreatorResponsivityManager: () => (/* reexport safe */ _creator_responsivity_manager__WEBPACK_IMPORTED_MODULE_6__.CreatorResponsivityManager),
|
|
45700
|
-
/* harmony export */ CreatorThemeModel: () => (/* reexport safe */
|
|
45797
|
+
/* harmony export */ CreatorThemeModel: () => (/* reexport safe */ _creator_theme_creator_theme_model__WEBPACK_IMPORTED_MODULE_91__.CreatorThemeModel),
|
|
45701
45798
|
/* harmony export */ DEFAULT_MONITOR_DPI: () => (/* reexport safe */ _components_simulator__WEBPACK_IMPORTED_MODULE_41__.DEFAULT_MONITOR_DPI),
|
|
45702
45799
|
/* harmony export */ DefaultFonts: () => (/* reexport safe */ _components_tabs_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_14__.DefaultFonts),
|
|
45703
|
-
/* harmony export */ DragDropSurveyElements: () => (/* reexport safe */
|
|
45800
|
+
/* harmony export */ DragDropSurveyElements: () => (/* reexport safe */ _survey_elements__WEBPACK_IMPORTED_MODULE_97__.DragDropSurveyElements),
|
|
45704
45801
|
/* harmony export */ EditorLocalization: () => (/* reexport safe */ _editorLocalization__WEBPACK_IMPORTED_MODULE_1__.EditorLocalization),
|
|
45705
45802
|
/* harmony export */ EmptySurveyCreatorOptions: () => (/* reexport safe */ _creator_settings__WEBPACK_IMPORTED_MODULE_2__.EmptySurveyCreatorOptions),
|
|
45706
|
-
/* harmony export */ HEXToRGB: () => (/* reexport safe */
|
|
45707
|
-
/* harmony export */ HSBToRGB: () => (/* reexport safe */
|
|
45803
|
+
/* harmony export */ HEXToRGB: () => (/* reexport safe */ _utils_color_utils__WEBPACK_IMPORTED_MODULE_80__.HEXToRGB),
|
|
45804
|
+
/* harmony export */ HSBToRGB: () => (/* reexport safe */ _utils_color_utils__WEBPACK_IMPORTED_MODULE_80__.HSBToRGB),
|
|
45708
45805
|
/* harmony export */ ImageItemValueWrapperViewModel: () => (/* reexport safe */ _components_image_item_value__WEBPACK_IMPORTED_MODULE_39__.ImageItemValueWrapperViewModel),
|
|
45709
45806
|
/* harmony export */ ItemValueWrapperViewModel: () => (/* reexport safe */ _components_item_value__WEBPACK_IMPORTED_MODULE_38__.ItemValueWrapperViewModel),
|
|
45710
45807
|
/* harmony export */ JsonDuplicateNameError: () => (/* reexport safe */ _textWorker__WEBPACK_IMPORTED_MODULE_70__.JsonDuplicateNameError),
|
|
@@ -45713,14 +45810,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
45713
45810
|
/* harmony export */ LogoImageViewModel: () => (/* reexport safe */ _components_header_logo_image__WEBPACK_IMPORTED_MODULE_43__.LogoImageViewModel),
|
|
45714
45811
|
/* harmony export */ MatrixCellWrapperEditSurvey: () => (/* reexport safe */ _components_matrix_cell__WEBPACK_IMPORTED_MODULE_40__.MatrixCellWrapperEditSurvey),
|
|
45715
45812
|
/* harmony export */ MatrixCellWrapperViewModel: () => (/* reexport safe */ _components_matrix_cell__WEBPACK_IMPORTED_MODULE_40__.MatrixCellWrapperViewModel),
|
|
45716
|
-
/* harmony export */ MenuButton: () => (/* reexport safe */
|
|
45717
|
-
/* harmony export */ ObjType: () => (/* reexport safe */
|
|
45813
|
+
/* harmony export */ MenuButton: () => (/* reexport safe */ _utils_actions__WEBPACK_IMPORTED_MODULE_82__.MenuButton),
|
|
45814
|
+
/* harmony export */ ObjType: () => (/* reexport safe */ _survey_helper__WEBPACK_IMPORTED_MODULE_85__.ObjType),
|
|
45718
45815
|
/* harmony export */ ObjectSelector: () => (/* reexport safe */ _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_60__.ObjectSelector),
|
|
45719
45816
|
/* harmony export */ ObjectSelectorItem: () => (/* reexport safe */ _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_60__.ObjectSelectorItem),
|
|
45720
45817
|
/* harmony export */ ObjectSelectorModel: () => (/* reexport safe */ _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_60__.ObjectSelectorModel),
|
|
45721
45818
|
/* harmony export */ PageAdorner: () => (/* reexport safe */ _components_page__WEBPACK_IMPORTED_MODULE_32__.PageAdorner),
|
|
45722
45819
|
/* harmony export */ PageNavigatorViewModel: () => (/* reexport safe */ _components_page_navigator_page_navigator__WEBPACK_IMPORTED_MODULE_31__.PageNavigatorViewModel),
|
|
45723
|
-
/* harmony export */ PagesController: () => (/* reexport safe */
|
|
45820
|
+
/* harmony export */ PagesController: () => (/* reexport safe */ _pages_controller__WEBPACK_IMPORTED_MODULE_89__.PagesController),
|
|
45724
45821
|
/* harmony export */ PredefinedBackgroundColors: () => (/* reexport safe */ _components_tabs_themes__WEBPACK_IMPORTED_MODULE_16__.PredefinedBackgroundColors),
|
|
45725
45822
|
/* harmony export */ PredefinedColors: () => (/* reexport safe */ _components_tabs_themes__WEBPACK_IMPORTED_MODULE_16__.PredefinedColors),
|
|
45726
45823
|
/* harmony export */ PredefinedThemes: () => (/* reexport safe */ _components_tabs_themes__WEBPACK_IMPORTED_MODULE_16__.PredefinedThemes),
|
|
@@ -45798,9 +45895,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
45798
45895
|
/* harmony export */ QuestionToolbox: () => (/* reexport safe */ _toolbox__WEBPACK_IMPORTED_MODULE_71__.QuestionToolbox),
|
|
45799
45896
|
/* harmony export */ QuestionToolboxCategory: () => (/* reexport safe */ _toolbox__WEBPACK_IMPORTED_MODULE_71__.QuestionToolboxCategory),
|
|
45800
45897
|
/* harmony export */ QuestionToolboxItem: () => (/* reexport safe */ _toolbox__WEBPACK_IMPORTED_MODULE_71__.QuestionToolboxItem),
|
|
45801
|
-
/* harmony export */ RGBToHSB: () => (/* reexport safe */
|
|
45898
|
+
/* harmony export */ RGBToHSB: () => (/* reexport safe */ _utils_color_utils__WEBPACK_IMPORTED_MODULE_80__.RGBToHSB),
|
|
45802
45899
|
/* harmony export */ ResetValueAdorner: () => (/* reexport safe */ _custom_questions_question_text_with_reset__WEBPACK_IMPORTED_MODULE_54__.ResetValueAdorner),
|
|
45803
|
-
/* harmony export */ ResizeManager: () => (/* reexport safe */
|
|
45900
|
+
/* harmony export */ ResizeManager: () => (/* reexport safe */ _utils_resizer__WEBPACK_IMPORTED_MODULE_86__.ResizeManager),
|
|
45804
45901
|
/* harmony export */ RowViewModel: () => (/* reexport safe */ _components_row__WEBPACK_IMPORTED_MODULE_33__.RowViewModel),
|
|
45805
45902
|
/* harmony export */ ScrollViewModel: () => (/* reexport safe */ _components_scroll__WEBPACK_IMPORTED_MODULE_48__.ScrollViewModel),
|
|
45806
45903
|
/* harmony export */ SearchManager: () => (/* reexport safe */ _components_search_manager__WEBPACK_IMPORTED_MODULE_47__.SearchManager),
|
|
@@ -45814,14 +45911,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
45814
45911
|
/* harmony export */ StringItemsNavigatorBase: () => (/* reexport safe */ _components_string_editor__WEBPACK_IMPORTED_MODULE_44__.StringItemsNavigatorBase),
|
|
45815
45912
|
/* harmony export */ StylesManager: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.StylesManager),
|
|
45816
45913
|
/* harmony export */ SurveyCreatorModel: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.SurveyCreatorModel),
|
|
45817
|
-
/* harmony export */ SurveyHelper: () => (/* reexport safe */
|
|
45914
|
+
/* harmony export */ SurveyHelper: () => (/* reexport safe */ _survey_helper__WEBPACK_IMPORTED_MODULE_85__.SurveyHelper),
|
|
45818
45915
|
/* harmony export */ SurveyJSON5: () => (/* reexport safe */ _json5__WEBPACK_IMPORTED_MODULE_50__.SurveyJSON5),
|
|
45819
45916
|
/* harmony export */ SurveyLogic: () => (/* reexport safe */ _components_tabs_logic__WEBPACK_IMPORTED_MODULE_20__.SurveyLogic),
|
|
45820
45917
|
/* harmony export */ SurveyLogicUI: () => (/* reexport safe */ _components_tabs_logic_ui__WEBPACK_IMPORTED_MODULE_26__.SurveyLogicUI),
|
|
45821
|
-
/* harmony export */ SurveyQuestionEditorDefinition: () => (/* reexport safe */
|
|
45822
|
-
/* harmony export */ SurveyQuestionEditorPropertyDefinition: () => (/* reexport safe */
|
|
45823
|
-
/* harmony export */ SurveyQuestionEditorTabDefinition: () => (/* reexport safe */
|
|
45824
|
-
/* harmony export */ SurveyQuestionProperties: () => (/* reexport safe */
|
|
45918
|
+
/* harmony export */ SurveyQuestionEditorDefinition: () => (/* reexport safe */ _question_editor_definition__WEBPACK_IMPORTED_MODULE_83__.SurveyQuestionEditorDefinition),
|
|
45919
|
+
/* harmony export */ SurveyQuestionEditorPropertyDefinition: () => (/* reexport safe */ _question_editor_properties__WEBPACK_IMPORTED_MODULE_84__.SurveyQuestionEditorPropertyDefinition),
|
|
45920
|
+
/* harmony export */ SurveyQuestionEditorTabDefinition: () => (/* reexport safe */ _question_editor_properties__WEBPACK_IMPORTED_MODULE_84__.SurveyQuestionEditorTabDefinition),
|
|
45921
|
+
/* harmony export */ SurveyQuestionProperties: () => (/* reexport safe */ _question_editor_properties__WEBPACK_IMPORTED_MODULE_84__.SurveyQuestionProperties),
|
|
45825
45922
|
/* harmony export */ SurveyResultsItemModel: () => (/* reexport safe */ _components_results__WEBPACK_IMPORTED_MODULE_42__.SurveyResultsItemModel),
|
|
45826
45923
|
/* harmony export */ SurveyResultsModel: () => (/* reexport safe */ _components_results__WEBPACK_IMPORTED_MODULE_42__.SurveyResultsModel),
|
|
45827
45924
|
/* harmony export */ SurveySimulatorModel: () => (/* reexport safe */ _components_simulator__WEBPACK_IMPORTED_MODULE_41__.SurveySimulatorModel),
|
|
@@ -45849,7 +45946,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
45849
45946
|
/* harmony export */ Themes: () => (/* reexport safe */ _components_tabs_themes__WEBPACK_IMPORTED_MODULE_16__.Themes),
|
|
45850
45947
|
/* harmony export */ ToolbarActionContainer: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.ToolbarActionContainer),
|
|
45851
45948
|
/* harmony export */ ToolboxToolViewModel: () => (/* reexport safe */ _components_toolbox_toolbox_tool__WEBPACK_IMPORTED_MODULE_29__.ToolboxToolViewModel),
|
|
45852
|
-
/* harmony export */ Transaction: () => (/* reexport safe */
|
|
45949
|
+
/* harmony export */ Transaction: () => (/* reexport safe */ _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_88__.Transaction),
|
|
45853
45950
|
/* harmony export */ Translation: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_21__.Translation),
|
|
45854
45951
|
/* harmony export */ TranslationEditor: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_21__.TranslationEditor),
|
|
45855
45952
|
/* harmony export */ TranslationForEditor: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_21__.TranslationForEditor),
|
|
@@ -45857,22 +45954,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
45857
45954
|
/* harmony export */ TranslationItem: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_21__.TranslationItem),
|
|
45858
45955
|
/* harmony export */ TranslationItemBase: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_21__.TranslationItemBase),
|
|
45859
45956
|
/* harmony export */ TranslationItemString: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_21__.TranslationItemString),
|
|
45860
|
-
/* harmony export */ UndoRedoAction: () => (/* reexport safe */
|
|
45861
|
-
/* harmony export */ UndoRedoArrayAction: () => (/* reexport safe */
|
|
45862
|
-
/* harmony export */ UndoRedoManager: () => (/* reexport safe */
|
|
45863
|
-
/* harmony export */ UndoRedoPlugin: () => (/* reexport safe */
|
|
45957
|
+
/* harmony export */ UndoRedoAction: () => (/* reexport safe */ _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_88__.UndoRedoAction),
|
|
45958
|
+
/* harmony export */ UndoRedoArrayAction: () => (/* reexport safe */ _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_88__.UndoRedoArrayAction),
|
|
45959
|
+
/* harmony export */ UndoRedoManager: () => (/* reexport safe */ _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_88__.UndoRedoManager),
|
|
45960
|
+
/* harmony export */ UndoRedoPlugin: () => (/* reexport safe */ _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_87__.UndoRedoPlugin),
|
|
45864
45961
|
/* harmony export */ Version: () => (/* binding */ Version),
|
|
45865
45962
|
/* harmony export */ assign: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_78__.assign),
|
|
45866
|
-
/* harmony export */ assignDefaultV2Classes: () => (/* reexport safe */
|
|
45963
|
+
/* harmony export */ assignDefaultV2Classes: () => (/* reexport safe */ _utils_creator_utils__WEBPACK_IMPORTED_MODULE_81__.assignDefaultV2Classes),
|
|
45867
45964
|
/* harmony export */ backgroundCornerRadiusFromCssVariable: () => (/* reexport safe */ _components_tabs_theme_custom_questions_background_corner_radius__WEBPACK_IMPORTED_MODULE_15__.backgroundCornerRadiusFromCssVariable),
|
|
45868
45965
|
/* harmony export */ backgroundCornerRadiusToCssVariable: () => (/* reexport safe */ _components_tabs_theme_custom_questions_background_corner_radius__WEBPACK_IMPORTED_MODULE_15__.backgroundCornerRadiusToCssVariable),
|
|
45869
|
-
/* harmony export */ calculateDragOverLocation: () => (/* reexport safe */
|
|
45870
|
-
/* harmony export */ calculateIsEdge: () => (/* reexport safe */
|
|
45871
|
-
/* harmony export */ calculateIsSide: () => (/* reexport safe */
|
|
45966
|
+
/* harmony export */ calculateDragOverLocation: () => (/* reexport safe */ _survey_elements__WEBPACK_IMPORTED_MODULE_97__.calculateDragOverLocation),
|
|
45967
|
+
/* harmony export */ calculateIsEdge: () => (/* reexport safe */ _survey_elements__WEBPACK_IMPORTED_MODULE_97__.calculateIsEdge),
|
|
45968
|
+
/* harmony export */ calculateIsSide: () => (/* reexport safe */ _survey_elements__WEBPACK_IMPORTED_MODULE_97__.calculateIsSide),
|
|
45872
45969
|
/* harmony export */ capitalize: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_78__.capitalize),
|
|
45873
45970
|
/* harmony export */ clearNewLines: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_78__.clearNewLines),
|
|
45874
|
-
/* harmony export */ colorsAreEqual: () => (/* reexport safe */
|
|
45875
|
-
/* harmony export */ convertRgbaToString: () => (/* reexport safe */
|
|
45971
|
+
/* harmony export */ colorsAreEqual: () => (/* reexport safe */ _utils_color_utils__WEBPACK_IMPORTED_MODULE_80__.colorsAreEqual),
|
|
45972
|
+
/* harmony export */ convertRgbaToString: () => (/* reexport safe */ _utils_color_utils__WEBPACK_IMPORTED_MODULE_80__.convertRgbaToString),
|
|
45876
45973
|
/* harmony export */ copyCssClasses: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_78__.copyCssClasses),
|
|
45877
45974
|
/* harmony export */ copyObject: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_78__.copyObject),
|
|
45878
45975
|
/* harmony export */ createBoxShadow: () => (/* reexport safe */ _components_tabs_theme_custom_questions_shadow_effects__WEBPACK_IMPORTED_MODULE_13__.createBoxShadow),
|
|
@@ -45880,42 +45977,42 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
45880
45977
|
/* harmony export */ createColor: () => (/* reexport safe */ _components_tabs_theme_custom_questions_color_alpha__WEBPACK_IMPORTED_MODULE_12__.createColor),
|
|
45881
45978
|
/* harmony export */ createExportCSVAction: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_21__.createExportCSVAction),
|
|
45882
45979
|
/* harmony export */ createImportCSVAction: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_21__.createImportCSVAction),
|
|
45883
|
-
/* harmony export */ creatorThemeModelEditorDefinition: () => (/* reexport safe */
|
|
45884
|
-
/* harmony export */ creatorThemeModelPropertyGridDefinition: () => (/* reexport safe */
|
|
45885
|
-
/* harmony export */ defaultPropertyGridDefinition: () => (/* reexport safe */
|
|
45980
|
+
/* harmony export */ creatorThemeModelEditorDefinition: () => (/* reexport safe */ _creator_theme_creator_theme_model_definition__WEBPACK_IMPORTED_MODULE_90__.creatorThemeModelEditorDefinition),
|
|
45981
|
+
/* harmony export */ creatorThemeModelPropertyGridDefinition: () => (/* reexport safe */ _creator_theme_creator_theme_model_definition__WEBPACK_IMPORTED_MODULE_90__.creatorThemeModelPropertyGridDefinition),
|
|
45982
|
+
/* harmony export */ defaultPropertyGridDefinition: () => (/* reexport safe */ _question_editor_definition__WEBPACK_IMPORTED_MODULE_83__.defaultPropertyGridDefinition),
|
|
45886
45983
|
/* harmony export */ defaultStrings: () => (/* reexport safe */ _editorLocalization__WEBPACK_IMPORTED_MODULE_1__.defaultStrings),
|
|
45887
45984
|
/* harmony export */ editableStringRendererName: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.editableStringRendererName),
|
|
45888
45985
|
/* harmony export */ editorLocalization: () => (/* reexport safe */ _editorLocalization__WEBPACK_IMPORTED_MODULE_1__.editorLocalization),
|
|
45889
45986
|
/* harmony export */ enStrings: () => (/* reexport safe */ _localization_english__WEBPACK_IMPORTED_MODULE_0__.enStrings),
|
|
45890
|
-
/* harmony export */ findParentNode: () => (/* reexport safe */
|
|
45891
|
-
/* harmony export */ focusFirstControl: () => (/* reexport safe */
|
|
45987
|
+
/* harmony export */ findParentNode: () => (/* reexport safe */ _utils_html_element_utils__WEBPACK_IMPORTED_MODULE_79__.findParentNode),
|
|
45988
|
+
/* harmony export */ focusFirstControl: () => (/* reexport safe */ _utils_html_element_utils__WEBPACK_IMPORTED_MODULE_79__.focusFirstControl),
|
|
45892
45989
|
/* harmony export */ fontsettingsFromCssVariable: () => (/* reexport safe */ _components_tabs_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_14__.fontsettingsFromCssVariable),
|
|
45893
45990
|
/* harmony export */ fontsettingsToCssVariable: () => (/* reexport safe */ _components_tabs_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_14__.fontsettingsToCssVariable),
|
|
45894
45991
|
/* harmony export */ getAcceptedTypesByContentMode: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_78__.getAcceptedTypesByContentMode),
|
|
45895
45992
|
/* harmony export */ getElementWrapperComponentData: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.getElementWrapperComponentData),
|
|
45896
45993
|
/* harmony export */ getElementWrapperComponentName: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.getElementWrapperComponentName),
|
|
45897
|
-
/* harmony export */ getFirstNonTextElement: () => (/* reexport safe */
|
|
45994
|
+
/* harmony export */ getFirstNonTextElement: () => (/* reexport safe */ _utils_html_element_utils__WEBPACK_IMPORTED_MODULE_79__.getFirstNonTextElement),
|
|
45898
45995
|
/* harmony export */ getItemValueWrapperComponentData: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.getItemValueWrapperComponentData),
|
|
45899
45996
|
/* harmony export */ getItemValueWrapperComponentName: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.getItemValueWrapperComponentName),
|
|
45900
45997
|
/* harmony export */ getLocString: () => (/* reexport safe */ _editorLocalization__WEBPACK_IMPORTED_MODULE_1__.getLocString),
|
|
45901
|
-
/* harmony export */ getNextItemText: () => (/* reexport safe */
|
|
45902
|
-
/* harmony export */ getNextItemValue: () => (/* reexport safe */
|
|
45903
|
-
/* harmony export */ getNextValue: () => (/* reexport safe */
|
|
45904
|
-
/* harmony export */ getNodesFromKoComponentInfo: () => (/* reexport safe */
|
|
45998
|
+
/* harmony export */ getNextItemText: () => (/* reexport safe */ _utils_creator_utils__WEBPACK_IMPORTED_MODULE_81__.getNextItemText),
|
|
45999
|
+
/* harmony export */ getNextItemValue: () => (/* reexport safe */ _utils_creator_utils__WEBPACK_IMPORTED_MODULE_81__.getNextItemValue),
|
|
46000
|
+
/* harmony export */ getNextValue: () => (/* reexport safe */ _utils_creator_utils__WEBPACK_IMPORTED_MODULE_81__.getNextValue),
|
|
46001
|
+
/* harmony export */ getNodesFromKoComponentInfo: () => (/* reexport safe */ _utils_html_element_utils__WEBPACK_IMPORTED_MODULE_79__.getNodesFromKoComponentInfo),
|
|
45905
46002
|
/* harmony export */ getPredefinedBackgoundColorsChoices: () => (/* reexport safe */ _components_tabs_themes__WEBPACK_IMPORTED_MODULE_16__.getPredefinedBackgoundColorsChoices),
|
|
45906
46003
|
/* harmony export */ getPredefinedColorsItemValues: () => (/* reexport safe */ _components_tabs_themes__WEBPACK_IMPORTED_MODULE_16__.getPredefinedColorsItemValues),
|
|
45907
46004
|
/* harmony export */ getQuestionContentWrapperComponentName: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.getQuestionContentWrapperComponentName),
|
|
45908
|
-
/* harmony export */ getQuestionFromObj: () => (/* reexport safe */
|
|
46005
|
+
/* harmony export */ getQuestionFromObj: () => (/* reexport safe */ _utils_creator_utils__WEBPACK_IMPORTED_MODULE_81__.getQuestionFromObj),
|
|
45909
46006
|
/* harmony export */ iconsV1: () => (/* reexport safe */ _svgbundle__WEBPACK_IMPORTED_MODULE_69__.iconsV1),
|
|
45910
46007
|
/* harmony export */ iconsV2: () => (/* reexport safe */ _svgbundle__WEBPACK_IMPORTED_MODULE_69__.iconsV2),
|
|
45911
|
-
/* harmony export */ ignoreUndoRedo: () => (/* reexport safe */
|
|
46008
|
+
/* harmony export */ ignoreUndoRedo: () => (/* reexport safe */ _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_87__.ignoreUndoRedo),
|
|
45912
46009
|
/* harmony export */ imageMimeTypes: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_78__.imageMimeTypes),
|
|
45913
|
-
/* harmony export */ ingectAlpha: () => (/* reexport safe */
|
|
46010
|
+
/* harmony export */ ingectAlpha: () => (/* reexport safe */ _utils_color_utils__WEBPACK_IMPORTED_MODULE_80__.ingectAlpha),
|
|
45914
46011
|
/* harmony export */ initLogicOperator: () => (/* reexport safe */ _components_tabs_logic__WEBPACK_IMPORTED_MODULE_20__.initLogicOperator),
|
|
45915
46012
|
/* harmony export */ initialSettingsAllowShowEmptyTitleInDesignMode: () => (/* reexport safe */ _components_tabs_designer__WEBPACK_IMPORTED_MODULE_24__.initialSettingsAllowShowEmptyTitleInDesignMode),
|
|
45916
46013
|
/* harmony export */ initializeDesignTimeSurveyModel: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.initializeDesignTimeSurveyModel),
|
|
45917
|
-
/* harmony export */ isPanelDynamic: () => (/* reexport safe */
|
|
45918
|
-
/* harmony export */ isPropertyVisible: () => (/* reexport safe */
|
|
46014
|
+
/* harmony export */ isPanelDynamic: () => (/* reexport safe */ _survey_elements__WEBPACK_IMPORTED_MODULE_97__.isPanelDynamic),
|
|
46015
|
+
/* harmony export */ isPropertyVisible: () => (/* reexport safe */ _utils_creator_utils__WEBPACK_IMPORTED_MODULE_81__.isPropertyVisible),
|
|
45919
46016
|
/* harmony export */ isStringEditable: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.isStringEditable),
|
|
45920
46017
|
/* harmony export */ isTextInput: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.isTextInput),
|
|
45921
46018
|
/* harmony export */ listComponentCss: () => (/* reexport safe */ _components_list_theme__WEBPACK_IMPORTED_MODULE_49__.listComponentCss),
|
|
@@ -45923,32 +46020,32 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
45923
46020
|
/* harmony export */ logicCss: () => (/* reexport safe */ _components_tabs_logic_theme__WEBPACK_IMPORTED_MODULE_28__.logicCss),
|
|
45924
46021
|
/* harmony export */ notShortCircuitAnd: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_78__.notShortCircuitAnd),
|
|
45925
46022
|
/* harmony export */ parseBoxShadow: () => (/* reexport safe */ _components_tabs_theme_custom_questions_shadow_effects__WEBPACK_IMPORTED_MODULE_13__.parseBoxShadow),
|
|
45926
|
-
/* harmony export */ parseColor: () => (/* reexport safe */
|
|
45927
|
-
/* harmony export */ parseRgbaFromString: () => (/* reexport safe */
|
|
45928
|
-
/* harmony export */ propertyExists: () => (/* reexport safe */
|
|
46023
|
+
/* harmony export */ parseColor: () => (/* reexport safe */ _utils_color_utils__WEBPACK_IMPORTED_MODULE_80__.parseColor),
|
|
46024
|
+
/* harmony export */ parseRgbaFromString: () => (/* reexport safe */ _utils_color_utils__WEBPACK_IMPORTED_MODULE_80__.parseRgbaFromString),
|
|
46025
|
+
/* harmony export */ propertyExists: () => (/* reexport safe */ _utils_creator_utils__WEBPACK_IMPORTED_MODULE_81__.propertyExists),
|
|
45929
46026
|
/* harmony export */ propertyGridCss: () => (/* reexport safe */ _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_67__.propertyGridCss),
|
|
45930
46027
|
/* harmony export */ registerAdorner: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.registerAdorner),
|
|
45931
46028
|
/* harmony export */ removeAdorners: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.removeAdorners),
|
|
45932
46029
|
/* harmony export */ roundTo2Decimals: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_78__.roundTo2Decimals),
|
|
45933
|
-
/* harmony export */ saveToFileHandler: () => (/* reexport safe */
|
|
45934
|
-
/* harmony export */ scrollElementIntoView: () => (/* reexport safe */
|
|
45935
|
-
/* harmony export */ select: () => (/* reexport safe */
|
|
46030
|
+
/* harmony export */ saveToFileHandler: () => (/* reexport safe */ _utils_html_element_utils__WEBPACK_IMPORTED_MODULE_79__.saveToFileHandler),
|
|
46031
|
+
/* harmony export */ scrollElementIntoView: () => (/* reexport safe */ _utils_creator_utils__WEBPACK_IMPORTED_MODULE_81__.scrollElementIntoView),
|
|
46032
|
+
/* harmony export */ select: () => (/* reexport safe */ _utils_html_element_utils__WEBPACK_IMPORTED_MODULE_79__.select),
|
|
45936
46033
|
/* harmony export */ setSurveyJSONForPropertyGrid: () => (/* reexport safe */ _property_grid__WEBPACK_IMPORTED_MODULE_55__.setSurveyJSONForPropertyGrid),
|
|
45937
46034
|
/* harmony export */ settings: () => (/* reexport safe */ _creator_settings__WEBPACK_IMPORTED_MODULE_2__.settings),
|
|
45938
46035
|
/* harmony export */ setupLocale: () => (/* reexport safe */ _editorLocalization__WEBPACK_IMPORTED_MODULE_1__.setupLocale),
|
|
45939
46036
|
/* harmony export */ simulatorDevices: () => (/* reexport safe */ _components_simulator__WEBPACK_IMPORTED_MODULE_41__.simulatorDevices),
|
|
45940
46037
|
/* harmony export */ svgBundle: () => (/* reexport safe */ _svgbundle__WEBPACK_IMPORTED_MODULE_69__.svgBundle),
|
|
45941
46038
|
/* harmony export */ themeModelPropertyGridDefinition: () => (/* reexport safe */ _components_tabs_theme_model_definition__WEBPACK_IMPORTED_MODULE_19__.themeModelPropertyGridDefinition),
|
|
45942
|
-
/* harmony export */ toggleHovered: () => (/* reexport safe */
|
|
46039
|
+
/* harmony export */ toggleHovered: () => (/* reexport safe */ _utils_html_element_utils__WEBPACK_IMPORTED_MODULE_79__.toggleHovered),
|
|
45943
46040
|
/* harmony export */ translationCss: () => (/* reexport safe */ _components_tabs_translation_theme__WEBPACK_IMPORTED_MODULE_22__.translationCss),
|
|
45944
46041
|
/* harmony export */ trimBoxShadowValue: () => (/* reexport safe */ _components_tabs_theme_custom_questions_shadow_effects__WEBPACK_IMPORTED_MODULE_13__.trimBoxShadowValue),
|
|
45945
46042
|
/* harmony export */ trimEmptyFields: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_78__.trimEmptyFields),
|
|
45946
|
-
/* harmony export */ undoRedoTransaction: () => (/* reexport safe */
|
|
46043
|
+
/* harmony export */ undoRedoTransaction: () => (/* reexport safe */ _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_87__.undoRedoTransaction),
|
|
45947
46044
|
/* harmony export */ updateBackgroundCornerRadiusJSON: () => (/* reexport safe */ _components_tabs_theme_custom_questions_background_corner_radius__WEBPACK_IMPORTED_MODULE_15__.updateBackgroundCornerRadiusJSON),
|
|
45948
46045
|
/* harmony export */ updateFontSettingsJSON: () => (/* reexport safe */ _components_tabs_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_14__.updateFontSettingsJSON),
|
|
45949
46046
|
/* harmony export */ updateShadowEffectsJSON: () => (/* reexport safe */ _components_tabs_theme_custom_questions_shadow_effects__WEBPACK_IMPORTED_MODULE_13__.updateShadowEffectsJSON),
|
|
45950
46047
|
/* harmony export */ updatecoloralphaJSON: () => (/* reexport safe */ _components_tabs_theme_custom_questions_color_alpha__WEBPACK_IMPORTED_MODULE_12__.updatecoloralphaJSON),
|
|
45951
|
-
/* harmony export */ wrapTextByCurlyBraces: () => (/* reexport safe */
|
|
46048
|
+
/* harmony export */ wrapTextByCurlyBraces: () => (/* reexport safe */ _utils_creator_utils__WEBPACK_IMPORTED_MODULE_81__.wrapTextByCurlyBraces)
|
|
45952
46049
|
/* harmony export */ });
|
|
45953
46050
|
/* harmony import */ var _localization_english__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../localization/english */ "./src/localization/english.ts");
|
|
45954
46051
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../editorLocalization */ "./src/editorLocalization.ts");
|
|
@@ -46029,26 +46126,29 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
46029
46126
|
/* harmony import */ var _components_switcher_switcher__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ../components/switcher/switcher */ "./src/components/switcher/switcher.ts");
|
|
46030
46127
|
/* harmony import */ var _utils_events__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ../utils/events */ "./src/utils/events.ts");
|
|
46031
46128
|
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
46032
|
-
/* harmony import */ var
|
|
46033
|
-
/* harmony import */ var
|
|
46034
|
-
/* harmony import */ var
|
|
46035
|
-
/* harmony import */ var
|
|
46036
|
-
/* harmony import */ var
|
|
46037
|
-
/* harmony import */ var
|
|
46038
|
-
/* harmony import */ var
|
|
46039
|
-
/* harmony import */ var
|
|
46040
|
-
/* harmony import */ var
|
|
46041
|
-
/* harmony import */ var
|
|
46042
|
-
/* harmony import */ var
|
|
46043
|
-
/* harmony import */ var
|
|
46044
|
-
/* harmony import */ var
|
|
46045
|
-
/* harmony import */ var
|
|
46046
|
-
/* harmony import */ var
|
|
46047
|
-
/* harmony import */ var
|
|
46048
|
-
/* harmony import */ var
|
|
46049
|
-
/* harmony import */ var
|
|
46129
|
+
/* harmony import */ var _utils_html_element_utils__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ../utils/html-element-utils */ "./src/utils/html-element-utils.ts");
|
|
46130
|
+
/* harmony import */ var _utils_color_utils__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ../utils/color-utils */ "./src/utils/color-utils.ts");
|
|
46131
|
+
/* harmony import */ var _utils_creator_utils__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ../utils/creator-utils */ "./src/utils/creator-utils.ts");
|
|
46132
|
+
/* harmony import */ var _utils_actions__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ../utils/actions */ "./src/utils/actions.ts");
|
|
46133
|
+
/* harmony import */ var _question_editor_definition__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ../question-editor/definition */ "./src/question-editor/definition.ts");
|
|
46134
|
+
/* harmony import */ var _question_editor_properties__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ../question-editor/properties */ "./src/question-editor/properties.ts");
|
|
46135
|
+
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ../survey-helper */ "./src/survey-helper.ts");
|
|
46136
|
+
/* harmony import */ var _utils_resizer__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ../utils/resizer */ "./src/utils/resizer.ts");
|
|
46137
|
+
/* harmony import */ var _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! ../plugins/undo-redo */ "./src/plugins/undo-redo/index.ts");
|
|
46138
|
+
/* harmony import */ var _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_88__ = __webpack_require__(/*! ../plugins/undo-redo/undo-redo-manager */ "./src/plugins/undo-redo/undo-redo-manager.ts");
|
|
46139
|
+
/* harmony import */ var _pages_controller__WEBPACK_IMPORTED_MODULE_89__ = __webpack_require__(/*! ../pages-controller */ "./src/pages-controller.ts");
|
|
46140
|
+
/* harmony import */ var _creator_theme_creator_theme_model_definition__WEBPACK_IMPORTED_MODULE_90__ = __webpack_require__(/*! ../creator-theme/creator-theme-model-definition */ "./src/creator-theme/creator-theme-model-definition.ts");
|
|
46141
|
+
/* harmony import */ var _creator_theme_creator_theme_model__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(/*! ../creator-theme/creator-theme-model */ "./src/creator-theme/creator-theme-model.ts");
|
|
46142
|
+
/* harmony import */ var _presets_presets_base__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(/*! ../presets/presets-base */ "./src/presets/presets-base.ts");
|
|
46143
|
+
/* harmony import */ var _presets_presets__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(/*! ../presets/presets */ "./src/presets/presets.ts");
|
|
46144
|
+
/* harmony import */ var _presets_presets_properties__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(/*! ../presets/presets-properties */ "./src/presets/presets-properties.ts");
|
|
46145
|
+
/* harmony import */ var _presets_presets_tabs__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(/*! ../presets/presets-tabs */ "./src/presets/presets-tabs.ts");
|
|
46146
|
+
/* harmony import */ var _presets_presets_toolbox__WEBPACK_IMPORTED_MODULE_96__ = __webpack_require__(/*! ../presets/presets-toolbox */ "./src/presets/presets-toolbox.ts");
|
|
46147
|
+
/* harmony import */ var _survey_elements__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(/*! ../survey-elements */ "./src/survey-elements.ts");
|
|
46148
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
46149
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_98___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_98__);
|
|
46050
46150
|
var Version;
|
|
46051
|
-
Version = "".concat("1.12.
|
|
46151
|
+
Version = "".concat("1.12.17");
|
|
46052
46152
|
//should be loaded before other styles for easier override
|
|
46053
46153
|
__webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
|
|
46054
46154
|
|
|
@@ -46145,6 +46245,9 @@ __webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-but
|
|
|
46145
46245
|
|
|
46146
46246
|
|
|
46147
46247
|
|
|
46248
|
+
|
|
46249
|
+
|
|
46250
|
+
|
|
46148
46251
|
|
|
46149
46252
|
|
|
46150
46253
|
|
|
@@ -46167,8 +46270,8 @@ __webpack_require__(/*! ../property-grid-theme/property-grid.scss */ "./src/prop
|
|
|
46167
46270
|
__webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
|
|
46168
46271
|
__webpack_require__(/*! ../custom-questions/boolean-switch.scss */ "./src/custom-questions/boolean-switch.scss");
|
|
46169
46272
|
|
|
46170
|
-
|
|
46171
|
-
(0,
|
|
46273
|
+
survey_core__WEBPACK_IMPORTED_MODULE_98__.settings.supportCreatorV2 = true;
|
|
46274
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_98__.checkLibraryVersion)("".concat("1.12.17"), "survey-creator-core");
|
|
46172
46275
|
|
|
46173
46276
|
})();
|
|
46174
46277
|
|