survey-creator-core 1.12.2 → 1.12.4
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/5dcaaadc5b1c048d6daa.png +0 -0
- package/5e87e454a7071a571216.png +0 -0
- package/a7b373b83d0c1e0262bd.png +0 -0
- package/cc27e2890751d1ea0380.png +0 -0
- package/e8dfbe2bdd7c9dca5efa.png +0 -0
- 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 +20 -1
- package/i18n/english.js.map +1 -1
- package/i18n/english.min.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 +562 -128
- package/survey-creator-core.fontless.css +561 -127
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +14 -13
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
- package/survey-creator-core.js +957 -372
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +15 -14
- package/survey-creator-core.min.js +1 -1
- package/survey-creator-core.min.js.LICENSE.txt +1 -1
- package/typings/components/action-container-view-model.d.ts +17 -1
- package/typings/components/page.d.ts +4 -2
- package/typings/components/question-image.d.ts +2 -2
- package/typings/components/question.d.ts +11 -2
- package/typings/components/side-bar/side-bar-header-model.d.ts +11 -0
- package/typings/components/side-bar/side-bar-model.d.ts +3 -6
- package/typings/components/simulator.d.ts +3 -1
- package/typings/components/tabs/designer.d.ts +2 -0
- package/typings/components/tabs/header-model.d.ts +1 -0
- package/typings/components/tabs/logic-ui.d.ts +2 -0
- package/typings/components/tabs/preview.d.ts +2 -0
- package/typings/components/tabs/theme-custom-questions/shadow-effects.d.ts +1 -0
- package/typings/components/tabs/theme-plugin.d.ts +2 -0
- package/typings/components/tabs/translation.d.ts +2 -0
- package/typings/creator-base.d.ts +2 -0
- package/typings/editorLocalization.d.ts +19 -0
- package/typings/entries/index.d.ts +1 -0
- package/typings/expand-collapse-manager.d.ts +8 -0
- package/typings/localization/english.d.ts +19 -0
- package/typings/property-grid/index.d.ts +4 -0
- package/typings/survey-helper.d.ts +1 -0
- package/typings/toolbox.d.ts +1 -0
package/survey-creator-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v1.12.
|
|
2
|
+
* SurveyJS Creator v1.12.4
|
|
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
|
|
@@ -470,6 +470,19 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
470
470
|
// extracted by mini-css-extract-plugin
|
|
471
471
|
|
|
472
472
|
|
|
473
|
+
/***/ }),
|
|
474
|
+
|
|
475
|
+
/***/ "./src/custom-questions/boolean-switch.scss":
|
|
476
|
+
/*!**************************************************!*\
|
|
477
|
+
!*** ./src/custom-questions/boolean-switch.scss ***!
|
|
478
|
+
\**************************************************/
|
|
479
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
480
|
+
|
|
481
|
+
"use strict";
|
|
482
|
+
__webpack_require__.r(__webpack_exports__);
|
|
483
|
+
// extracted by mini-css-extract-plugin
|
|
484
|
+
|
|
485
|
+
|
|
473
486
|
/***/ }),
|
|
474
487
|
|
|
475
488
|
/***/ "./src/property-grid-theme/property-grid.scss":
|
|
@@ -1815,6 +1828,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1815
1828
|
|
|
1816
1829
|
|
|
1817
1830
|
|
|
1831
|
+
|
|
1818
1832
|
var SurveyElementActionContainer = /** @class */ (function (_super) {
|
|
1819
1833
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveyElementActionContainer, _super);
|
|
1820
1834
|
function SurveyElementActionContainer() {
|
|
@@ -1896,6 +1910,9 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
|
|
|
1896
1910
|
_this = _super.call(this) || this;
|
|
1897
1911
|
_this.creator = creator;
|
|
1898
1912
|
_this.surveyElement = surveyElement;
|
|
1913
|
+
_this.animationCollapsed = new survey_core__WEBPACK_IMPORTED_MODULE_1__.AnimationBoolean(_this.getExpandCollapseAnimationOptions(), function (val) {
|
|
1914
|
+
_this._renderedCollapsed = !val;
|
|
1915
|
+
}, function () { return !_this.renderedCollapsed; });
|
|
1899
1916
|
_this.draggedIn = false;
|
|
1900
1917
|
_this.designerStateManager = (_a = creator.getPlugin("designer")) === null || _a === void 0 ? void 0 : _a.designerStateManager;
|
|
1901
1918
|
(_b = _this.designerStateManager) === null || _b === void 0 ? void 0 : _b.initForElement(surveyElement);
|
|
@@ -1926,12 +1943,7 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
|
|
|
1926
1943
|
_this.creator.sidebar.onPropertyChanged.add(_this.sidebarFlyoutModeChangedFunc);
|
|
1927
1944
|
_this.setShowAddQuestionButton(true);
|
|
1928
1945
|
_this.expandCollapseAction.visible = _this.allowExpandCollapse;
|
|
1929
|
-
_this.creator.
|
|
1930
|
-
if (options.action.id == "collapseAll")
|
|
1931
|
-
_this.collapsed = true;
|
|
1932
|
-
if (options.action.id == "expandAll")
|
|
1933
|
-
_this.collapsed = false;
|
|
1934
|
-
});
|
|
1946
|
+
_this.creator.expandCollapseManager.add(_this);
|
|
1935
1947
|
return _this;
|
|
1936
1948
|
}
|
|
1937
1949
|
Object.defineProperty(SurveyElementAdornerBase.prototype, "dragInsideCollapsedContainer", {
|
|
@@ -1941,6 +1953,101 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
|
|
|
1941
1953
|
enumerable: false,
|
|
1942
1954
|
configurable: true
|
|
1943
1955
|
});
|
|
1956
|
+
SurveyElementAdornerBase.prototype.getAnimatedElement = function () {
|
|
1957
|
+
return null;
|
|
1958
|
+
};
|
|
1959
|
+
SurveyElementAdornerBase.prototype.getInnerAnimatedElements = function () {
|
|
1960
|
+
return [];
|
|
1961
|
+
};
|
|
1962
|
+
SurveyElementAdornerBase.prototype.getCollapsingCssClassName = function () {
|
|
1963
|
+
return "svc-question--leave";
|
|
1964
|
+
};
|
|
1965
|
+
SurveyElementAdornerBase.prototype.getExpandingCssClassName = function () {
|
|
1966
|
+
return "svc-question--enter";
|
|
1967
|
+
};
|
|
1968
|
+
SurveyElementAdornerBase.prototype.hover = function (e, element) {
|
|
1969
|
+
var _this = this;
|
|
1970
|
+
var processedFlagName = "__svc_question_processed";
|
|
1971
|
+
if (!e[processedFlagName] && e.type === "mouseover") {
|
|
1972
|
+
if (!this.hoverTimeout) {
|
|
1973
|
+
this.hoverTimeout = setTimeout(function () {
|
|
1974
|
+
_this.isHovered = true;
|
|
1975
|
+
_this.hoverTimeout = undefined;
|
|
1976
|
+
}, this.creator.pageHoverDelay);
|
|
1977
|
+
}
|
|
1978
|
+
e[processedFlagName] = true;
|
|
1979
|
+
}
|
|
1980
|
+
else {
|
|
1981
|
+
clearTimeout(this.hoverTimeout);
|
|
1982
|
+
this.hoverTimeout = undefined;
|
|
1983
|
+
this.isHovered = false;
|
|
1984
|
+
}
|
|
1985
|
+
};
|
|
1986
|
+
SurveyElementAdornerBase.prototype.getExpandCollapseAnimationOptions = function () {
|
|
1987
|
+
var _this = this;
|
|
1988
|
+
var beforeRunAnimation = function (el, animatingClassName) {
|
|
1989
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.prepareElementForVerticalAnimation)(el);
|
|
1990
|
+
var innerAnimatedElements = _this.getInnerAnimatedElements();
|
|
1991
|
+
innerAnimatedElements.forEach(function (elem) {
|
|
1992
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.prepareElementForVerticalAnimation)(elem);
|
|
1993
|
+
});
|
|
1994
|
+
innerAnimatedElements.forEach(function (elem) {
|
|
1995
|
+
elem.classList.add(animatingClassName);
|
|
1996
|
+
});
|
|
1997
|
+
};
|
|
1998
|
+
var afterRunAnimation = function (el, animatingClassName) {
|
|
1999
|
+
_this.expandCollapseAnimationRunning = false;
|
|
2000
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.cleanHtmlElementAfterAnimation)(el);
|
|
2001
|
+
var innerAnimatedElements = _this.getInnerAnimatedElements();
|
|
2002
|
+
innerAnimatedElements.forEach(function (elem) {
|
|
2003
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.cleanHtmlElementAfterAnimation)(elem);
|
|
2004
|
+
});
|
|
2005
|
+
innerAnimatedElements.forEach(function (elem) {
|
|
2006
|
+
elem.classList.remove(animatingClassName);
|
|
2007
|
+
});
|
|
2008
|
+
};
|
|
2009
|
+
return {
|
|
2010
|
+
getRerenderEvent: function () { return _this.onElementRerendered; },
|
|
2011
|
+
getEnterOptions: function () {
|
|
2012
|
+
var className = _this.getExpandingCssClassName();
|
|
2013
|
+
return {
|
|
2014
|
+
cssClass: className,
|
|
2015
|
+
onBeforeRunAnimation: function (el) {
|
|
2016
|
+
beforeRunAnimation(el, className);
|
|
2017
|
+
},
|
|
2018
|
+
onAfterRunAnimation: function (el) {
|
|
2019
|
+
afterRunAnimation(el, className);
|
|
2020
|
+
},
|
|
2021
|
+
};
|
|
2022
|
+
},
|
|
2023
|
+
getLeaveOptions: function () {
|
|
2024
|
+
var className = _this.getCollapsingCssClassName();
|
|
2025
|
+
return {
|
|
2026
|
+
cssClass: className,
|
|
2027
|
+
onBeforeRunAnimation: function (el) {
|
|
2028
|
+
beforeRunAnimation(el, className);
|
|
2029
|
+
},
|
|
2030
|
+
onAfterRunAnimation: function (el) {
|
|
2031
|
+
afterRunAnimation(el, className);
|
|
2032
|
+
},
|
|
2033
|
+
};
|
|
2034
|
+
},
|
|
2035
|
+
getAnimatedElement: function () { return _this.getAnimatedElement(); },
|
|
2036
|
+
isAnimationEnabled: function () { return _this.animationAllowed; }
|
|
2037
|
+
};
|
|
2038
|
+
};
|
|
2039
|
+
Object.defineProperty(SurveyElementAdornerBase.prototype, "renderedCollapsed", {
|
|
2040
|
+
get: function () {
|
|
2041
|
+
return !!this._renderedCollapsed;
|
|
2042
|
+
},
|
|
2043
|
+
set: function (val) {
|
|
2044
|
+
if (this.animationAllowed)
|
|
2045
|
+
this.expandCollapseAnimationRunning = true;
|
|
2046
|
+
this.animationCollapsed.sync(!val);
|
|
2047
|
+
},
|
|
2048
|
+
enumerable: false,
|
|
2049
|
+
configurable: true
|
|
2050
|
+
});
|
|
1944
2051
|
SurveyElementAdornerBase.prototype.createActionContainer = function () {
|
|
1945
2052
|
var actionContainer = new SurveyElementActionContainer();
|
|
1946
2053
|
actionContainer.dotsItem.iconSize = 16;
|
|
@@ -2011,7 +2118,9 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
|
|
|
2011
2118
|
};
|
|
2012
2119
|
SurveyElementAdornerBase.prototype.dispose = function () {
|
|
2013
2120
|
_super.prototype.dispose.call(this);
|
|
2121
|
+
this.rootElement = undefined;
|
|
2014
2122
|
this.detachElement(this.surveyElement);
|
|
2123
|
+
this.creator.expandCollapseManager.remove(this);
|
|
2015
2124
|
if (!this.actionContainer.isDisposed) {
|
|
2016
2125
|
this.actionContainer.dispose();
|
|
2017
2126
|
}
|
|
@@ -2029,9 +2138,12 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
|
|
|
2029
2138
|
return;
|
|
2030
2139
|
this.updateElementAllowOptions(this.creator.getElementAllowOperations(this.surveyElement), this.isOperationsAllow());
|
|
2031
2140
|
};
|
|
2141
|
+
SurveyElementAdornerBase.prototype.getAllowExpandCollapse = function (options) {
|
|
2142
|
+
return this.creator.expandCollapseButtonVisibility != "never" && (options.allowExpandCollapse == undefined || !!options.allowExpandCollapse);
|
|
2143
|
+
};
|
|
2032
2144
|
SurveyElementAdornerBase.prototype.updateElementAllowOptions = function (options, operationsAllow) {
|
|
2033
2145
|
this.allowDragging = operationsAllow && options.allowDragging;
|
|
2034
|
-
this.allowExpandCollapse = this.
|
|
2146
|
+
this.allowExpandCollapse = this.getAllowExpandCollapse(options);
|
|
2035
2147
|
this.allowEditOption = (options.allowEdit == undefined || !!options.allowEdit);
|
|
2036
2148
|
this.updateActionVisibility("delete", operationsAllow && options.allowDelete);
|
|
2037
2149
|
this.updateActionVisibility("duplicate", operationsAllow && options.allowCopy);
|
|
@@ -2133,9 +2245,15 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
|
|
|
2133
2245
|
SurveyElementAdornerBase.prototype.delete = function () {
|
|
2134
2246
|
this.creator.deleteElement(this.surveyElement);
|
|
2135
2247
|
};
|
|
2248
|
+
SurveyElementAdornerBase.prototype.getCss = function () {
|
|
2249
|
+
return new survey_core__WEBPACK_IMPORTED_MODULE_1__.CssClassBuilder().append("svc-hovered svc-hovered-ready", this.isHovered).toString();
|
|
2250
|
+
};
|
|
2136
2251
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
2137
2252
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({ defaultValue: true })
|
|
2138
2253
|
], SurveyElementAdornerBase.prototype, "allowDragging", void 0);
|
|
2254
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
2255
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({ defaultValue: false })
|
|
2256
|
+
], SurveyElementAdornerBase.prototype, "expandCollapseAnimationRunning", void 0);
|
|
2139
2257
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
2140
2258
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({ defaultValue: true })
|
|
2141
2259
|
], SurveyElementAdornerBase.prototype, "allowExpandCollapse", void 0);
|
|
@@ -2155,7 +2273,13 @@ var SurveyElementAdornerBase = /** @class */ (function (_super) {
|
|
|
2155
2273
|
], SurveyElementAdornerBase.prototype, "collapsed", void 0);
|
|
2156
2274
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
2157
2275
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)()
|
|
2158
|
-
], SurveyElementAdornerBase.prototype, "
|
|
2276
|
+
], SurveyElementAdornerBase.prototype, "_renderedCollapsed", void 0);
|
|
2277
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
2278
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)()
|
|
2279
|
+
], SurveyElementAdornerBase.prototype, "isAnimationRunningCollapsed", void 0);
|
|
2280
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
2281
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({ defaultValue: false })
|
|
2282
|
+
], SurveyElementAdornerBase.prototype, "isHovered", void 0);
|
|
2159
2283
|
return SurveyElementAdornerBase;
|
|
2160
2284
|
}(survey_core__WEBPACK_IMPORTED_MODULE_1__.Base));
|
|
2161
2285
|
|
|
@@ -3464,11 +3588,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3464
3588
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
3465
3589
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
3466
3590
|
/* harmony import */ var _action_container_view_model__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./action-container-view-model */ "./src/components/action-container-view-model.ts");
|
|
3467
|
-
/* harmony import */ var
|
|
3468
|
-
/* harmony import */ var
|
|
3469
|
-
/* harmony import */ var
|
|
3470
|
-
/* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../creator-settings */ "./src/creator-settings.ts");
|
|
3471
|
-
|
|
3591
|
+
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../editorLocalization */ "./src/editorLocalization.ts");
|
|
3592
|
+
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../survey-helper */ "./src/survey-helper.ts");
|
|
3593
|
+
/* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../creator-settings */ "./src/creator-settings.ts");
|
|
3472
3594
|
|
|
3473
3595
|
|
|
3474
3596
|
|
|
@@ -3486,7 +3608,7 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
3486
3608
|
if (_this.isGhost) {
|
|
3487
3609
|
var addedPage = !!_this.creator.addPage(currentPage, selectCurrentPage, function () {
|
|
3488
3610
|
currentPage.unRegisterFunctionOnPropertiesValueChanged(["title", "description"], "add_ghost");
|
|
3489
|
-
currentPage.name =
|
|
3611
|
+
currentPage.name = _survey_helper__WEBPACK_IMPORTED_MODULE_4__.SurveyHelper.getNewPageName(_this.creator.survey.pages);
|
|
3490
3612
|
return true;
|
|
3491
3613
|
});
|
|
3492
3614
|
if (addedPage) {
|
|
@@ -3501,7 +3623,7 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
3501
3623
|
_this.creator.addNewQuestionInPage(function (type) {
|
|
3502
3624
|
_this.addGhostPage(false);
|
|
3503
3625
|
_this.creator.survey.currentPage = _this.page;
|
|
3504
|
-
}, null, type || _this.currentAddQuestionType ||
|
|
3626
|
+
}, null, type || _this.currentAddQuestionType || _creator_settings__WEBPACK_IMPORTED_MODULE_5__.settings.designer.defaultAddQuestionType);
|
|
3505
3627
|
};
|
|
3506
3628
|
_this.actionContainer.sizeMode = "small";
|
|
3507
3629
|
if (_this.isGhost)
|
|
@@ -3533,6 +3655,9 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
3533
3655
|
enumerable: false,
|
|
3534
3656
|
configurable: true
|
|
3535
3657
|
});
|
|
3658
|
+
PageAdorner.prototype.getAllowExpandCollapse = function (options) {
|
|
3659
|
+
return !this.isGhost && _super.prototype.getAllowExpandCollapse.call(this, options);
|
|
3660
|
+
};
|
|
3536
3661
|
PageAdorner.prototype.attachElement = function (surveyElement) {
|
|
3537
3662
|
var _this = this;
|
|
3538
3663
|
_super.prototype.attachElement.call(this, surveyElement);
|
|
@@ -3580,8 +3705,8 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
3580
3705
|
if (isSelected && this.creator.pageEditMode === "bypage") {
|
|
3581
3706
|
this.setSurveyElement(this.creator.selectedElement);
|
|
3582
3707
|
}
|
|
3583
|
-
if (isSelected
|
|
3584
|
-
this.
|
|
3708
|
+
if (isSelected) {
|
|
3709
|
+
this.onPageSelected();
|
|
3585
3710
|
}
|
|
3586
3711
|
};
|
|
3587
3712
|
PageAdorner.prototype.patchPageForDragDrop = function (page, addGhostPage) {
|
|
@@ -3611,8 +3736,8 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
3611
3736
|
Object.defineProperty(PageAdorner.prototype, "placeholderText", {
|
|
3612
3737
|
get: function () {
|
|
3613
3738
|
if (this.creator.isMobileView)
|
|
3614
|
-
return (0,
|
|
3615
|
-
return (0,
|
|
3739
|
+
return (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_3__.getLocString)("ed.pagePlaceHolderMobile");
|
|
3740
|
+
return (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_3__.getLocString)("ed.pagePlaceHolder");
|
|
3616
3741
|
},
|
|
3617
3742
|
enumerable: false,
|
|
3618
3743
|
configurable: true
|
|
@@ -3637,9 +3762,7 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
3637
3762
|
if (!model.isGhost) {
|
|
3638
3763
|
if (model.creator.pageEditMode !== "single") {
|
|
3639
3764
|
model.creator.selectElement(model.page, undefined, false);
|
|
3640
|
-
|
|
3641
|
-
this.onPageSelectedCallback();
|
|
3642
|
-
}
|
|
3765
|
+
this.onPageSelected();
|
|
3643
3766
|
}
|
|
3644
3767
|
else {
|
|
3645
3768
|
model.creator.selectElement(model.creator.survey, undefined, false);
|
|
@@ -3650,7 +3773,7 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
3650
3773
|
};
|
|
3651
3774
|
Object.defineProperty(PageAdorner.prototype, "css", {
|
|
3652
3775
|
get: function () {
|
|
3653
|
-
var result =
|
|
3776
|
+
var result = _super.prototype.getCss.call(this);
|
|
3654
3777
|
if (!!this.dragTypeOverMe && this.showPlaceholder) {
|
|
3655
3778
|
result = "svc-question__content--drag-over-inside";
|
|
3656
3779
|
}
|
|
@@ -3667,23 +3790,24 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
3667
3790
|
else {
|
|
3668
3791
|
this.dragOut();
|
|
3669
3792
|
}
|
|
3793
|
+
if (this.allowExpandCollapse) {
|
|
3794
|
+
result += (" svc-page__content--collapse-" + this.creator.expandCollapseButtonVisibility);
|
|
3795
|
+
if (this.renderedCollapsed)
|
|
3796
|
+
result += (" svc-page__content--collapsed");
|
|
3797
|
+
if (this.expandCollapseAnimationRunning)
|
|
3798
|
+
result += (" svc-page__content--animation-running");
|
|
3799
|
+
}
|
|
3670
3800
|
if (this.isGhost) {
|
|
3671
3801
|
return result + " svc-page__content--new";
|
|
3672
3802
|
}
|
|
3673
3803
|
if (this.creator.isElementSelected(this.page)) {
|
|
3674
3804
|
result += " svc-page__content--selected";
|
|
3675
3805
|
}
|
|
3676
|
-
result += (" svc-page__content--collapse-" + this.creator.expandCollapseButtonVisibility);
|
|
3677
|
-
if (this.renderedCollapsed)
|
|
3678
|
-
result += (" svc-page__content--collapsed");
|
|
3679
3806
|
return result.trim();
|
|
3680
3807
|
},
|
|
3681
3808
|
enumerable: false,
|
|
3682
3809
|
configurable: true
|
|
3683
3810
|
});
|
|
3684
|
-
PageAdorner.prototype.hover = function (event, element) {
|
|
3685
|
-
(0,_utils_utils__WEBPACK_IMPORTED_MODULE_3__.toggleHovered)(event, element, this.creator.pageHoverDelay);
|
|
3686
|
-
};
|
|
3687
3811
|
PageAdorner.prototype.hoverStopper = function (event, element) {
|
|
3688
3812
|
event["__svc_question_processed"] = true;
|
|
3689
3813
|
};
|
|
@@ -3727,6 +3851,26 @@ var PageAdorner = /** @class */ (function (_super) {
|
|
|
3727
3851
|
enumerable: false,
|
|
3728
3852
|
configurable: true
|
|
3729
3853
|
});
|
|
3854
|
+
PageAdorner.prototype.getAnimatedElement = function () {
|
|
3855
|
+
var _a;
|
|
3856
|
+
var cssClasses = this.surveyElement.cssClasses.page;
|
|
3857
|
+
if (cssClasses === null || cssClasses === void 0 ? void 0 : cssClasses.description) {
|
|
3858
|
+
return (_a = this.rootElement) === null || _a === void 0 ? void 0 : _a.querySelector(":scope ".concat((0,survey_core__WEBPACK_IMPORTED_MODULE_1__.classesToSelector)(cssClasses.description)));
|
|
3859
|
+
}
|
|
3860
|
+
return null;
|
|
3861
|
+
};
|
|
3862
|
+
PageAdorner.prototype.getInnerAnimatedElements = function () {
|
|
3863
|
+
var _a;
|
|
3864
|
+
var cssClasses = this.surveyElement.cssClasses;
|
|
3865
|
+
if (cssClasses.pageRow)
|
|
3866
|
+
return [].slice.call((_a = this.rootElement) === null || _a === void 0 ? void 0 : _a.querySelectorAll(":scope .svc-page__footer, :scope ".concat((0,survey_core__WEBPACK_IMPORTED_MODULE_1__.classesToSelector)(this.surveyElement.cssRoot), " > .svc-row")));
|
|
3867
|
+
return null;
|
|
3868
|
+
};
|
|
3869
|
+
PageAdorner.prototype.onPageSelected = function () {
|
|
3870
|
+
if (this.rootElement) {
|
|
3871
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_4__.SurveyHelper.scrollIntoViewIfNeeded(this.rootElement);
|
|
3872
|
+
}
|
|
3873
|
+
};
|
|
3730
3874
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
3731
3875
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({ defaultValue: false })
|
|
3732
3876
|
], PageAdorner.prototype, "isSelected", void 0);
|
|
@@ -3878,9 +4022,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3878
4022
|
__webpack_require__(/*! ./question-image.scss */ "./src/components/question-image.scss");
|
|
3879
4023
|
var QuestionImageAdornerViewModel = /** @class */ (function (_super) {
|
|
3880
4024
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionImageAdornerViewModel, _super);
|
|
3881
|
-
function QuestionImageAdornerViewModel(creator, surveyElement, templateData
|
|
4025
|
+
function QuestionImageAdornerViewModel(creator, surveyElement, templateData) {
|
|
3882
4026
|
var _this = _super.call(this, creator, surveyElement, templateData) || this;
|
|
3883
|
-
_this.questionRoot = questionRoot;
|
|
3884
4027
|
_this.imageLinkValueChangedHandler = function () {
|
|
3885
4028
|
_this.isEmptyImageLink = !_this.question.imageLink;
|
|
3886
4029
|
_this.filePresentationModel.value = null;
|
|
@@ -3917,7 +4060,7 @@ var QuestionImageAdornerViewModel = /** @class */ (function (_super) {
|
|
|
3917
4060
|
});
|
|
3918
4061
|
};
|
|
3919
4062
|
QuestionImageAdornerViewModel.prototype.chooseFile = function (model) {
|
|
3920
|
-
var fileInput = model.
|
|
4063
|
+
var fileInput = model.rootElement.getElementsByClassName("svc-choose-file-input")[0];
|
|
3921
4064
|
var context = { element: model.question, elementType: model.question.getType(), propertyName: "imageLink" };
|
|
3922
4065
|
model.creator.chooseFiles(fileInput, function (files) {
|
|
3923
4066
|
model.isUploading = true;
|
|
@@ -3964,6 +4107,15 @@ var QuestionImageAdornerViewModel = /** @class */ (function (_super) {
|
|
|
3964
4107
|
enumerable: false,
|
|
3965
4108
|
configurable: true
|
|
3966
4109
|
});
|
|
4110
|
+
QuestionImageAdornerViewModel.prototype.getAnimatedElement = function () {
|
|
4111
|
+
if (this.isEmptyImageLink) {
|
|
4112
|
+
var cssClasses = this.filePresentationModel.cssClasses;
|
|
4113
|
+
if (cssClasses.root) {
|
|
4114
|
+
return this.surveyElement.getWrapperElement().querySelector(":scope ".concat((0,survey_core__WEBPACK_IMPORTED_MODULE_1__.classesToSelector)(cssClasses.root)));
|
|
4115
|
+
}
|
|
4116
|
+
}
|
|
4117
|
+
return _super.prototype.getAnimatedElement.call(this);
|
|
4118
|
+
};
|
|
3967
4119
|
QuestionImageAdornerViewModel.prototype.css = function () {
|
|
3968
4120
|
return new survey_core__WEBPACK_IMPORTED_MODULE_1__.CssClassBuilder()
|
|
3969
4121
|
.append(_super.prototype.css.call(this))
|
|
@@ -3973,7 +4125,6 @@ var QuestionImageAdornerViewModel = /** @class */ (function (_super) {
|
|
|
3973
4125
|
this.surveyElement.unRegisterFunctionOnPropertyValueChanged("imageLink", "imageLinkValueChanged");
|
|
3974
4126
|
this.surveyElement.locImageLink.onStringChanged.remove(this.imageLinkValueChangedHandler);
|
|
3975
4127
|
_super.prototype.dispose.call(this);
|
|
3976
|
-
this.questionRoot = undefined;
|
|
3977
4128
|
};
|
|
3978
4129
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
3979
4130
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({ defaultValue: false })
|
|
@@ -4212,7 +4363,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4212
4363
|
/* harmony import */ var _action_container_view_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./action-container-view-model */ "./src/components/action-container-view-model.ts");
|
|
4213
4364
|
/* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../creator-settings */ "./src/creator-settings.ts");
|
|
4214
4365
|
/* harmony import */ var _string_editor__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./string-editor */ "./src/components/string-editor.ts");
|
|
4215
|
-
/* harmony import */ var _toolbox__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../toolbox */ "./src/toolbox.ts");
|
|
4216
4366
|
|
|
4217
4367
|
|
|
4218
4368
|
|
|
@@ -4222,7 +4372,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
4222
4372
|
__webpack_require__(/*! ./question.scss */ "./src/components/question.scss");
|
|
4223
4373
|
|
|
4224
4374
|
|
|
4225
|
-
|
|
4226
4375
|
var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
4227
4376
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(QuestionAdornerViewModel, _super);
|
|
4228
4377
|
function QuestionAdornerViewModel(creator, surveyElement, templateData) {
|
|
@@ -4285,6 +4434,10 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
4285
4434
|
QuestionAdornerViewModel.prototype.rootCss = function () {
|
|
4286
4435
|
var isStartWithNewLine = this.surveyElement.isQuestion && !this.surveyElement.startWithNewLine;
|
|
4287
4436
|
return new survey_core__WEBPACK_IMPORTED_MODULE_1__.CssClassBuilder()
|
|
4437
|
+
.append(_super.prototype.getCss.call(this))
|
|
4438
|
+
.append("svc-question__adorner")
|
|
4439
|
+
.append("svc-question__adorner--selected", !!this.creator.isElementSelected(this.surveyElement))
|
|
4440
|
+
.append("svc-question__adorner--collapsed", this.renderedCollapsed)
|
|
4288
4441
|
.append("svc-question__adorner--start-with-new-line", isStartWithNewLine)
|
|
4289
4442
|
.append("svc-question__adorner--collapse-" + this.creator.expandCollapseButtonVisibility, true).toString();
|
|
4290
4443
|
};
|
|
@@ -4305,6 +4458,12 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
4305
4458
|
if (this.renderedCollapsed) {
|
|
4306
4459
|
result += " svc-question__content--collapsed";
|
|
4307
4460
|
}
|
|
4461
|
+
if (!this.surveyElement.hasTitle || (!this.surveyElement.isPanel && this.surveyElement.getTitleLocation() === "hidden")) {
|
|
4462
|
+
result += " svc-question__content--title-hidden";
|
|
4463
|
+
}
|
|
4464
|
+
if (this.surveyElement.hasTitleOnBottom) {
|
|
4465
|
+
result += " svc-question__content--title-bottom";
|
|
4466
|
+
}
|
|
4308
4467
|
if (this.isDragMe) {
|
|
4309
4468
|
result += " svc-question__content--dragged";
|
|
4310
4469
|
}
|
|
@@ -4337,6 +4496,41 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
4337
4496
|
}
|
|
4338
4497
|
return result;
|
|
4339
4498
|
};
|
|
4499
|
+
Object.defineProperty(QuestionAdornerViewModel.prototype, "isTitleLeft", {
|
|
4500
|
+
get: function () {
|
|
4501
|
+
return (!this.surveyElement.isPanel && this.surveyElement.getTitleLocation() === "left");
|
|
4502
|
+
},
|
|
4503
|
+
enumerable: false,
|
|
4504
|
+
configurable: true
|
|
4505
|
+
});
|
|
4506
|
+
QuestionAdornerViewModel.prototype.getAnimatedElement = function () {
|
|
4507
|
+
var _a, _b;
|
|
4508
|
+
var cssClasses = this.surveyElement.isPanel ? this.surveyElement.cssClasses.panel : this.surveyElement.cssClasses;
|
|
4509
|
+
var cssContent = cssClasses.content;
|
|
4510
|
+
if (this.surveyElement.isDescendantOf("rating")) {
|
|
4511
|
+
cssContent = "svc-rating-question-content";
|
|
4512
|
+
}
|
|
4513
|
+
if (this.isTitleLeft) {
|
|
4514
|
+
return (_a = this.rootElement) === null || _a === void 0 ? void 0 : _a.querySelector(":scope ".concat((0,survey_core__WEBPACK_IMPORTED_MODULE_1__.classesToSelector)(this.surveyElement.getRootCss())));
|
|
4515
|
+
}
|
|
4516
|
+
if (cssContent) {
|
|
4517
|
+
return (_b = this.rootElement) === null || _b === void 0 ? void 0 : _b.querySelector(":scope ".concat((0,survey_core__WEBPACK_IMPORTED_MODULE_1__.classesToSelector)(cssContent)));
|
|
4518
|
+
}
|
|
4519
|
+
return null;
|
|
4520
|
+
};
|
|
4521
|
+
QuestionAdornerViewModel.prototype.getInnerAnimatedElements = function () {
|
|
4522
|
+
var _a;
|
|
4523
|
+
var cssRoot = this.surveyElement.isPanel ? this.surveyElement.getContainerCss() : this.surveyElement.getRootCss();
|
|
4524
|
+
var cssDescription = this.surveyElement.cssDescription;
|
|
4525
|
+
var selectorArray = [
|
|
4526
|
+
":scope > .svc-question__content > *:not(.svc-question__drag-area):not(".concat((0,survey_core__WEBPACK_IMPORTED_MODULE_1__.classesToSelector)(cssRoot), ")"),
|
|
4527
|
+
];
|
|
4528
|
+
if (!this.isTitleLeft && cssDescription)
|
|
4529
|
+
selectorArray.push(":scope ".concat((0,survey_core__WEBPACK_IMPORTED_MODULE_1__.classesToSelector)(cssDescription)));
|
|
4530
|
+
var res = [].slice.call((_a = this.rootElement) === null || _a === void 0 ? void 0 : _a.querySelectorAll(selectorArray.join(",")));
|
|
4531
|
+
res.push(this.rootElement);
|
|
4532
|
+
return res;
|
|
4533
|
+
};
|
|
4340
4534
|
QuestionAdornerViewModel.prototype.expandWithDragIn = function () {
|
|
4341
4535
|
_super.prototype.expandWithDragIn.call(this);
|
|
4342
4536
|
this.element.dragTypeOverMe = null;
|
|
@@ -4389,7 +4583,7 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
4389
4583
|
});
|
|
4390
4584
|
Object.defineProperty(QuestionAdornerViewModel.prototype, "cssCollapsedHiddenHeader", {
|
|
4391
4585
|
get: function () {
|
|
4392
|
-
return this.element.cssHeader + " svc-
|
|
4586
|
+
return this.element.cssHeader + " svc-element__header--hidden";
|
|
4393
4587
|
},
|
|
4394
4588
|
enumerable: false,
|
|
4395
4589
|
configurable: true
|
|
@@ -4465,8 +4659,7 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
4465
4659
|
if (!this.surveyElement.isInteractiveDesignElement) {
|
|
4466
4660
|
return;
|
|
4467
4661
|
}
|
|
4468
|
-
|
|
4469
|
-
(0,_utils_utils__WEBPACK_IMPORTED_MODULE_4__.toggleHovered)(event, element, this.creator.pageHoverDelay);
|
|
4662
|
+
_super.prototype.hover.call(this, event, element);
|
|
4470
4663
|
};
|
|
4471
4664
|
QuestionAdornerViewModel.prototype.updateActionsProperties = function () {
|
|
4472
4665
|
if (this.isDisposed)
|
|
@@ -4519,6 +4712,13 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
4519
4712
|
enumerable: false,
|
|
4520
4713
|
configurable: true
|
|
4521
4714
|
});
|
|
4715
|
+
Object.defineProperty(QuestionAdornerViewModel.prototype, "showHiddenTitle", {
|
|
4716
|
+
get: function () {
|
|
4717
|
+
return (!this.element.hasTitle || this.isTitleLeft) && this.element.isInteractiveDesignElement;
|
|
4718
|
+
},
|
|
4719
|
+
enumerable: false,
|
|
4720
|
+
configurable: true
|
|
4721
|
+
});
|
|
4522
4722
|
Object.defineProperty(QuestionAdornerViewModel.prototype, "placeholderText", {
|
|
4523
4723
|
get: function () {
|
|
4524
4724
|
if (this.surveyElement instanceof survey_core__WEBPACK_IMPORTED_MODULE_1__.QuestionHtmlModel) {
|
|
@@ -4573,20 +4773,11 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
4573
4773
|
};
|
|
4574
4774
|
QuestionAdornerViewModel.prototype.buildDefaultJsonMap = function (availableItems) {
|
|
4575
4775
|
var defaultJsons = {};
|
|
4576
|
-
function cleanDefaultsFromJson(type, toolboxItem) {
|
|
4577
|
-
var question = survey_core__WEBPACK_IMPORTED_MODULE_1__.QuestionFactory.Instance.createQuestion(type, "question");
|
|
4578
|
-
if (!question)
|
|
4579
|
-
return toolboxItem.json;
|
|
4580
|
-
question.fromJSON(toolboxItem.json);
|
|
4581
|
-
var json = question.toJSON();
|
|
4582
|
-
delete json.name;
|
|
4583
|
-
return json;
|
|
4584
|
-
}
|
|
4585
4776
|
function addItemJson(toolboxItem) {
|
|
4586
4777
|
var _a;
|
|
4587
4778
|
var type = ((_a = toolboxItem.json) === null || _a === void 0 ? void 0 : _a.type) || toolboxItem.id;
|
|
4588
4779
|
if (toolboxItem.json) {
|
|
4589
|
-
var json =
|
|
4780
|
+
var json = toolboxItem.json;
|
|
4590
4781
|
if (!defaultJsons[type])
|
|
4591
4782
|
defaultJsons[type] = [];
|
|
4592
4783
|
defaultJsons[type].push(json);
|
|
@@ -4600,38 +4791,42 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
4600
4791
|
});
|
|
4601
4792
|
return defaultJsons;
|
|
4602
4793
|
};
|
|
4603
|
-
QuestionAdornerViewModel.prototype.
|
|
4794
|
+
QuestionAdornerViewModel.prototype.convertQuestion = function (questionType, json, defaultJsons) {
|
|
4795
|
+
var _this = this;
|
|
4796
|
+
var type = (json === null || json === void 0 ? void 0 : json.type) || questionType;
|
|
4797
|
+
var newJson = {};
|
|
4798
|
+
(defaultJsons[type] || []).forEach(function (djson) {
|
|
4799
|
+
if (_this.jsonIsCorresponded(djson)) {
|
|
4800
|
+
newJson = (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({}, json);
|
|
4801
|
+
var objJson_1 = _this.element.toJSON();
|
|
4802
|
+
var cleanJson_1 = _this.cleanDefaultsFromJson(type, djson);
|
|
4803
|
+
Object.keys(djson).forEach(function (p) {
|
|
4804
|
+
if (p != "type" && !newJson[p])
|
|
4805
|
+
newJson[p] = undefined;
|
|
4806
|
+
});
|
|
4807
|
+
Object.keys(json || {}).forEach(function (p) {
|
|
4808
|
+
if (p != "type" && !(!objJson_1[p] || cleanJson_1[p]))
|
|
4809
|
+
newJson[p] = undefined;
|
|
4810
|
+
});
|
|
4811
|
+
}
|
|
4812
|
+
});
|
|
4813
|
+
this.creator.convertCurrentQuestion(type, newJson);
|
|
4814
|
+
};
|
|
4815
|
+
QuestionAdornerViewModel.prototype.getConvertToTypesActions = function () {
|
|
4604
4816
|
var _this = this;
|
|
4605
4817
|
var availableItems = this.getConvertToTypes();
|
|
4606
4818
|
var defaultJsons = this.buildDefaultJsonMap(availableItems);
|
|
4607
|
-
var
|
|
4819
|
+
var newItems = [];
|
|
4608
4820
|
var lastItem = null;
|
|
4609
4821
|
availableItems.forEach(function (item) {
|
|
4610
4822
|
var needSeparator = lastItem && item.category != lastItem.category;
|
|
4611
4823
|
var action = _this.creator.createIActionBarItemByClass(item, needSeparator, function (questionType, json) {
|
|
4612
|
-
|
|
4613
|
-
var newJson = {};
|
|
4614
|
-
(defaultJsons[type] || []).forEach(function (djson) {
|
|
4615
|
-
if (_this.jsonIsCorresponded(djson)) {
|
|
4616
|
-
newJson = (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({}, json);
|
|
4617
|
-
var objJson_1 = _this.element.toJSON();
|
|
4618
|
-
Object.keys(djson).forEach(function (p) {
|
|
4619
|
-
if (p != "type" && !newJson[p])
|
|
4620
|
-
newJson[p] = undefined;
|
|
4621
|
-
});
|
|
4622
|
-
Object.keys(json).forEach(function (p) {
|
|
4623
|
-
if (p != "type" && !(!objJson_1[p] || djson[p]))
|
|
4624
|
-
newJson[p] = undefined;
|
|
4625
|
-
});
|
|
4626
|
-
}
|
|
4627
|
-
});
|
|
4628
|
-
_this.creator.convertCurrentQuestion(type, newJson);
|
|
4629
|
-
parentAction === null || parentAction === void 0 ? void 0 : parentAction.hidePopup();
|
|
4824
|
+
_this.convertQuestion(questionType, json, defaultJsons);
|
|
4630
4825
|
});
|
|
4631
4826
|
lastItem = item;
|
|
4632
|
-
|
|
4827
|
+
newItems.push(action);
|
|
4633
4828
|
});
|
|
4634
|
-
return
|
|
4829
|
+
return newItems;
|
|
4635
4830
|
};
|
|
4636
4831
|
Object.defineProperty(QuestionAdornerViewModel.prototype, "currentType", {
|
|
4637
4832
|
get: function () {
|
|
@@ -4657,32 +4852,7 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
4657
4852
|
actionData: actionData,
|
|
4658
4853
|
items: actions,
|
|
4659
4854
|
updateListModel: function (listModel) {
|
|
4660
|
-
|
|
4661
|
-
listModel.setItems(newItems);
|
|
4662
|
-
listModel.selectedItem = _this.getSelectedItem(newItems, _this.currentType);
|
|
4663
|
-
newItems.forEach(function (action) {
|
|
4664
|
-
var _a;
|
|
4665
|
-
var toolboxItem = _this.creator.toolbox.getItemByName(action.id);
|
|
4666
|
-
if (((_a = action.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
4667
|
-
var selectedSubItem_1 = undefined;
|
|
4668
|
-
action.items.forEach(function (item) {
|
|
4669
|
-
var elementType = _this.element.getType();
|
|
4670
|
-
var toolboxSubitem = toolboxItem.getSubitemByName(item.id);
|
|
4671
|
-
var json = toolboxSubitem.json || {};
|
|
4672
|
-
if (item.id == elementType || json.type == elementType) {
|
|
4673
|
-
if (!listModel.selectedItem)
|
|
4674
|
-
selectedSubItem_1 = item;
|
|
4675
|
-
if (_this.jsonIsCorresponded(json))
|
|
4676
|
-
selectedSubItem_1 = item;
|
|
4677
|
-
}
|
|
4678
|
-
});
|
|
4679
|
-
if (selectedSubItem_1) {
|
|
4680
|
-
var _listModel = action.popupModel.contentComponentData.model;
|
|
4681
|
-
_listModel.selectedItem = selectedSubItem_1;
|
|
4682
|
-
listModel.selectedItem = action;
|
|
4683
|
-
}
|
|
4684
|
-
}
|
|
4685
|
-
});
|
|
4855
|
+
_this.updateQuestionTypeOrSubtypeListModel(listModel, false);
|
|
4686
4856
|
}
|
|
4687
4857
|
});
|
|
4688
4858
|
newAction.iconName = new survey_core__WEBPACK_IMPORTED_MODULE_1__.ComputedUpdater(function () {
|
|
@@ -4698,61 +4868,127 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
4698
4868
|
newAction.disableHide = true;
|
|
4699
4869
|
return newAction;
|
|
4700
4870
|
};
|
|
4701
|
-
QuestionAdornerViewModel.prototype.
|
|
4871
|
+
QuestionAdornerViewModel.prototype.jsonsAreCompatible = function (objJson, json) {
|
|
4872
|
+
var _this = this;
|
|
4702
4873
|
var jsonIsCorresponded = true;
|
|
4703
|
-
var objJson = this.element.toJSON();
|
|
4704
4874
|
Object.keys(json).forEach(function (p) {
|
|
4705
|
-
|
|
4875
|
+
var propertyValue = objJson[p] === undefined ? _this.element.getDefaultPropertyValue(p) : objJson[p];
|
|
4876
|
+
if (p != "type" && !survey_core__WEBPACK_IMPORTED_MODULE_1__.Helpers.isTwoValueEquals(json[p], propertyValue))
|
|
4706
4877
|
jsonIsCorresponded = false;
|
|
4707
4878
|
});
|
|
4708
4879
|
return jsonIsCorresponded;
|
|
4709
4880
|
};
|
|
4881
|
+
QuestionAdornerViewModel.prototype.jsonIsCorresponded = function (json) {
|
|
4882
|
+
return this.jsonsAreCompatible(this.element.toJSON(), json);
|
|
4883
|
+
};
|
|
4884
|
+
QuestionAdornerViewModel.prototype.toolboxItemIsCorresponded = function (toolboxItem, someItemSelectedAlready) {
|
|
4885
|
+
var elementType = this.element.getType();
|
|
4886
|
+
var json = toolboxItem.json;
|
|
4887
|
+
if (toolboxItem.id == elementType || toolboxItem.json.type == elementType) {
|
|
4888
|
+
return !someItemSelectedAlready || this.jsonIsCorresponded(json);
|
|
4889
|
+
}
|
|
4890
|
+
};
|
|
4891
|
+
QuestionAdornerViewModel.prototype.cleanDefaultsFromJson = function (type, toolboxItemJson) {
|
|
4892
|
+
var question = survey_core__WEBPACK_IMPORTED_MODULE_1__.QuestionFactory.Instance.createQuestion(type, "question");
|
|
4893
|
+
if (!question)
|
|
4894
|
+
return toolboxItemJson;
|
|
4895
|
+
question.fromJSON(toolboxItemJson);
|
|
4896
|
+
var json = question.toJSON();
|
|
4897
|
+
json["type"] = type;
|
|
4898
|
+
delete json.name;
|
|
4899
|
+
return json;
|
|
4900
|
+
};
|
|
4901
|
+
QuestionAdornerViewModel.prototype.updateQuestionTypeOrSubtypeListModel = function (listModel, subtypeOnly) {
|
|
4902
|
+
var _this = this;
|
|
4903
|
+
var _a;
|
|
4904
|
+
var availableItems = this.getConvertToTypes();
|
|
4905
|
+
var defaultJsons = this.buildDefaultJsonMap(availableItems);
|
|
4906
|
+
var newItems = [];
|
|
4907
|
+
var lastItem;
|
|
4908
|
+
var selectedAction;
|
|
4909
|
+
var selectedSubaction = undefined;
|
|
4910
|
+
var selectedSubactions = undefined;
|
|
4911
|
+
availableItems.forEach(function (item) {
|
|
4912
|
+
var _a;
|
|
4913
|
+
var needSeparator = lastItem && item.category != lastItem.category;
|
|
4914
|
+
var action = _this.creator.createIActionBarItemByClass(item, needSeparator, function (questionType, json) { _this.convertQuestion(questionType, json, defaultJsons); });
|
|
4915
|
+
if (_this.toolboxItemIsCorresponded(item, !!selectedAction)) {
|
|
4916
|
+
selectedAction = action;
|
|
4917
|
+
selectedSubactions = item.items;
|
|
4918
|
+
}
|
|
4919
|
+
if (((_a = item.items) === null || _a === void 0 ? void 0 : _a.length) > 0 && _this.creator.toolbox.showSubitems) {
|
|
4920
|
+
var subactions_1 = [];
|
|
4921
|
+
var selectedSubactionLocal_1 = undefined;
|
|
4922
|
+
var allChildsAreCompatibleToParent_1 = false;
|
|
4923
|
+
item.items.forEach(function (subitem) {
|
|
4924
|
+
var subaction = _this.creator.createIActionBarItemByClass(subitem, false, function (questionType, json) { _this.convertQuestion(questionType, json, defaultJsons); });
|
|
4925
|
+
if (_this.toolboxItemIsCorresponded(subitem, !!selectedAction))
|
|
4926
|
+
selectedSubactionLocal_1 = subitem;
|
|
4927
|
+
if (_this.jsonsAreCompatible(item.json, subitem.json))
|
|
4928
|
+
allChildsAreCompatibleToParent_1 = true;
|
|
4929
|
+
subactions_1.push(subaction);
|
|
4930
|
+
});
|
|
4931
|
+
if (!allChildsAreCompatibleToParent_1 && subactions_1.length > 0) {
|
|
4932
|
+
var defaultSubaction = _this.creator.createIActionBarItemByClass(item, false, function (questionType, json) { _this.convertQuestion(questionType, json, defaultJsons); });
|
|
4933
|
+
defaultSubaction.id = action.id + "-default";
|
|
4934
|
+
defaultSubaction.iconName = undefined;
|
|
4935
|
+
defaultSubaction.markerIconName = undefined;
|
|
4936
|
+
defaultSubaction.items = [];
|
|
4937
|
+
defaultSubaction.component = undefined;
|
|
4938
|
+
subactions_1.unshift(defaultSubaction);
|
|
4939
|
+
if (selectedAction == action && !selectedSubactionLocal_1)
|
|
4940
|
+
selectedSubactionLocal_1 = defaultSubaction;
|
|
4941
|
+
}
|
|
4942
|
+
action.setSubItems({ items: subactions_1 });
|
|
4943
|
+
if (selectedSubactionLocal_1) {
|
|
4944
|
+
selectedAction = action;
|
|
4945
|
+
selectedSubaction = selectedSubactionLocal_1;
|
|
4946
|
+
selectedSubactions = subactions_1;
|
|
4947
|
+
}
|
|
4948
|
+
}
|
|
4949
|
+
lastItem = item;
|
|
4950
|
+
newItems.push(action);
|
|
4951
|
+
});
|
|
4952
|
+
if (subtypeOnly) {
|
|
4953
|
+
if (selectedSubactions) {
|
|
4954
|
+
listModel.setItems(selectedSubactions);
|
|
4955
|
+
listModel.selectedItem = selectedSubaction;
|
|
4956
|
+
return !!selectedSubactions;
|
|
4957
|
+
}
|
|
4958
|
+
}
|
|
4959
|
+
else {
|
|
4960
|
+
var _listModel = (_a = selectedAction === null || selectedAction === void 0 ? void 0 : selectedAction.popupModel) === null || _a === void 0 ? void 0 : _a.contentComponentData.model;
|
|
4961
|
+
if (_listModel)
|
|
4962
|
+
_listModel.selectedItem = selectedSubaction;
|
|
4963
|
+
listModel.setItems(newItems);
|
|
4964
|
+
listModel.selectedItem = selectedAction;
|
|
4965
|
+
}
|
|
4966
|
+
};
|
|
4710
4967
|
QuestionAdornerViewModel.prototype.createConvertInputType = function () {
|
|
4711
4968
|
var _this = this;
|
|
4712
|
-
var
|
|
4713
|
-
|
|
4969
|
+
var listModel = new survey_core__WEBPACK_IMPORTED_MODULE_1__.ListModel([]);
|
|
4970
|
+
this.updateQuestionTypeOrSubtypeListModel(listModel, true);
|
|
4971
|
+
if (listModel.actions.length == 0)
|
|
4714
4972
|
return null;
|
|
4715
|
-
var toolboxItem = this.creator.toolbox.items.filter(function (item) { return item.id === questionType; })[0];
|
|
4716
|
-
if (!toolboxItem || !toolboxItem.hasSubItems)
|
|
4717
|
-
return null;
|
|
4718
|
-
var propName = _toolbox__WEBPACK_IMPORTED_MODULE_8__.QuestionToolbox.getSubTypePropertyName(questionType);
|
|
4719
|
-
var questionSubType = this.surveyElement.getPropertyValue(propName);
|
|
4720
|
-
var getAvailableTypes = function () {
|
|
4721
|
-
return toolboxItem.items.map(function (item) {
|
|
4722
|
-
return {
|
|
4723
|
-
id: item.id,
|
|
4724
|
-
title: item.title,
|
|
4725
|
-
action: function (item) {
|
|
4726
|
-
var newValue = _this.getUpdatedPropertyValue(propName, item.id);
|
|
4727
|
-
_this.surveyElement.setPropertyValue(propName, newValue);
|
|
4728
|
-
}
|
|
4729
|
-
};
|
|
4730
|
-
});
|
|
4731
|
-
};
|
|
4732
4973
|
var actionData = {
|
|
4733
4974
|
id: "convertInputType",
|
|
4734
4975
|
visibleIndex: 1,
|
|
4735
|
-
title:
|
|
4976
|
+
title: "SUBTYPE",
|
|
4736
4977
|
disableShrink: true,
|
|
4737
4978
|
iconName: "icon-chevron_16x16"
|
|
4738
4979
|
};
|
|
4739
4980
|
var newAction = this.createDropdownModel({
|
|
4740
4981
|
actionData: actionData,
|
|
4741
|
-
items:
|
|
4982
|
+
items: [],
|
|
4742
4983
|
updateListModel: function (listModel) {
|
|
4743
|
-
|
|
4744
|
-
listModel.setItems(newItems);
|
|
4745
|
-
listModel.selectedItem = _this.getSelectedItem(newItems, _this.surveyElement.getPropertyValue(propName));
|
|
4984
|
+
_this.updateQuestionTypeOrSubtypeListModel(listModel, true);
|
|
4746
4985
|
}
|
|
4747
4986
|
});
|
|
4748
|
-
this.surveyElement.
|
|
4749
|
-
var item = _this.getSelectedItem(getAvailableTypes(), _this.surveyElement.getPropertyValue(propName));
|
|
4750
|
-
if (!item)
|
|
4751
|
-
return;
|
|
4987
|
+
this.surveyElement.registerFunctionOnPropertiesValueChanged(["inputType", "rateType"], function () {
|
|
4752
4988
|
var popup = newAction.popupModel;
|
|
4753
4989
|
var list = popup.contentComponentData.model;
|
|
4754
|
-
list
|
|
4755
|
-
newAction.title =
|
|
4990
|
+
_this.updateQuestionTypeOrSubtypeListModel(list, true);
|
|
4991
|
+
newAction.title = list.selectedItem.title;
|
|
4756
4992
|
}, "inputTypeAdorner");
|
|
4757
4993
|
newAction.removePriority = 1;
|
|
4758
4994
|
return newAction;
|
|
@@ -4784,6 +5020,10 @@ var QuestionAdornerViewModel = /** @class */ (function (_super) {
|
|
|
4784
5020
|
options.updateListModel(listModel);
|
|
4785
5021
|
},
|
|
4786
5022
|
});
|
|
5023
|
+
var listModel = newAction.popupModel.contentComponentData.model;
|
|
5024
|
+
options.updateListModel(listModel);
|
|
5025
|
+
if (listModel.selectedItem)
|
|
5026
|
+
newAction.title = listModel.selectedItem.title;
|
|
4787
5027
|
newAction.popupModel.displayMode = this.creator.isTouch ? "overlay" : "popup";
|
|
4788
5028
|
newAction.data.locOwner = this.creator;
|
|
4789
5029
|
return newAction;
|
|
@@ -5135,6 +5375,68 @@ var RowViewModel = /** @class */ (function (_super) {
|
|
|
5135
5375
|
|
|
5136
5376
|
|
|
5137
5377
|
|
|
5378
|
+
/***/ }),
|
|
5379
|
+
|
|
5380
|
+
/***/ "./src/components/side-bar/side-bar-header-model.ts":
|
|
5381
|
+
/*!**********************************************************!*\
|
|
5382
|
+
!*** ./src/components/side-bar/side-bar-header-model.ts ***!
|
|
5383
|
+
\**********************************************************/
|
|
5384
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
5385
|
+
|
|
5386
|
+
"use strict";
|
|
5387
|
+
__webpack_require__.r(__webpack_exports__);
|
|
5388
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
5389
|
+
/* harmony export */ SidebarHeaderModel: () => (/* binding */ SidebarHeaderModel)
|
|
5390
|
+
/* harmony export */ });
|
|
5391
|
+
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./src/entries/helpers.ts");
|
|
5392
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
5393
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
5394
|
+
|
|
5395
|
+
|
|
5396
|
+
var SidebarHeaderModel = /** @class */ (function (_super) {
|
|
5397
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SidebarHeaderModel, _super);
|
|
5398
|
+
function SidebarHeaderModel() {
|
|
5399
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
5400
|
+
_this.toolbar = new survey_core__WEBPACK_IMPORTED_MODULE_1__.AdaptiveActionContainer();
|
|
5401
|
+
return _this;
|
|
5402
|
+
}
|
|
5403
|
+
Object.defineProperty(SidebarHeaderModel.prototype, "component", {
|
|
5404
|
+
get: function () {
|
|
5405
|
+
return this.componentName || "svc-side-bar-default-header";
|
|
5406
|
+
},
|
|
5407
|
+
enumerable: false,
|
|
5408
|
+
configurable: true
|
|
5409
|
+
});
|
|
5410
|
+
Object.defineProperty(SidebarHeaderModel.prototype, "componentModel", {
|
|
5411
|
+
get: function () {
|
|
5412
|
+
return this.componentData || this;
|
|
5413
|
+
},
|
|
5414
|
+
enumerable: false,
|
|
5415
|
+
configurable: true
|
|
5416
|
+
});
|
|
5417
|
+
SidebarHeaderModel.prototype.reset = function () {
|
|
5418
|
+
this.title = "";
|
|
5419
|
+
this.subTitle = "";
|
|
5420
|
+
this.componentName = "";
|
|
5421
|
+
this.componentData = undefined;
|
|
5422
|
+
};
|
|
5423
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
5424
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)()
|
|
5425
|
+
], SidebarHeaderModel.prototype, "title", void 0);
|
|
5426
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
5427
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)()
|
|
5428
|
+
], SidebarHeaderModel.prototype, "subTitle", void 0);
|
|
5429
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
5430
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)()
|
|
5431
|
+
], SidebarHeaderModel.prototype, "componentData", void 0);
|
|
5432
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
5433
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)()
|
|
5434
|
+
], SidebarHeaderModel.prototype, "componentName", void 0);
|
|
5435
|
+
return SidebarHeaderModel;
|
|
5436
|
+
}(survey_core__WEBPACK_IMPORTED_MODULE_1__.Base));
|
|
5437
|
+
|
|
5438
|
+
|
|
5439
|
+
|
|
5138
5440
|
/***/ }),
|
|
5139
5441
|
|
|
5140
5442
|
/***/ "./src/components/side-bar/side-bar-model.ts":
|
|
@@ -5153,8 +5455,10 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5153
5455
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_1__);
|
|
5154
5456
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../editorLocalization */ "./src/editorLocalization.ts");
|
|
5155
5457
|
/* harmony import */ var _side_bar_page_model__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./side-bar-page-model */ "./src/components/side-bar/side-bar-page-model.ts");
|
|
5156
|
-
/* harmony import */ var
|
|
5157
|
-
/* harmony import */ var
|
|
5458
|
+
/* harmony import */ var _side_bar_header_model__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./side-bar-header-model */ "./src/components/side-bar/side-bar-header-model.ts");
|
|
5459
|
+
/* harmony import */ var _utils_resizer__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils/resizer */ "./src/utils/resizer.ts");
|
|
5460
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
|
|
5461
|
+
|
|
5158
5462
|
|
|
5159
5463
|
|
|
5160
5464
|
|
|
@@ -5166,7 +5470,7 @@ var SidebarModel = /** @class */ (function (_super) {
|
|
|
5166
5470
|
function SidebarModel(creator) {
|
|
5167
5471
|
var _this = _super.call(this) || this;
|
|
5168
5472
|
_this.creator = creator;
|
|
5169
|
-
_this.
|
|
5473
|
+
_this.header = new _side_bar_header_model__WEBPACK_IMPORTED_MODULE_4__.SidebarHeaderModel();
|
|
5170
5474
|
_this.allowFlyoutMode = true;
|
|
5171
5475
|
_this.visibilityAnimation = new survey_core__WEBPACK_IMPORTED_MODULE_1__.AnimationBoolean(_this.getAnimationOptions(), function (val) {
|
|
5172
5476
|
_this.renderedIsVisible = val;
|
|
@@ -5188,13 +5492,6 @@ var SidebarModel = /** @class */ (function (_super) {
|
|
|
5188
5492
|
_this.createActions();
|
|
5189
5493
|
return _this;
|
|
5190
5494
|
}
|
|
5191
|
-
Object.defineProperty(SidebarModel.prototype, "activePageModel", {
|
|
5192
|
-
get: function () {
|
|
5193
|
-
return this._activePage;
|
|
5194
|
-
},
|
|
5195
|
-
enumerable: false,
|
|
5196
|
-
configurable: true
|
|
5197
|
-
});
|
|
5198
5495
|
SidebarModel.prototype.getAnimationOptions = function () {
|
|
5199
5496
|
var _this = this;
|
|
5200
5497
|
var onBeforeRunAnimation = function (el) {
|
|
@@ -5262,7 +5559,7 @@ var SidebarModel = /** @class */ (function (_super) {
|
|
|
5262
5559
|
locTitleName: "ed.hidePanel",
|
|
5263
5560
|
showTitle: false,
|
|
5264
5561
|
visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__.ComputedUpdater(function () {
|
|
5265
|
-
return (0,
|
|
5562
|
+
return (0,_utils_utils__WEBPACK_IMPORTED_MODULE_6__.notShortCircuitAnd)(!(0,_utils_utils__WEBPACK_IMPORTED_MODULE_6__.notShortCircuitAnd)(!_this.creator.allowCollapseSidebar, !_this.flyoutMode), _this.visible, !_this.hideSideBarVisibilityControlActions);
|
|
5266
5563
|
}),
|
|
5267
5564
|
action: function () {
|
|
5268
5565
|
_this.collapseSidebar();
|
|
@@ -5275,7 +5572,7 @@ var SidebarModel = /** @class */ (function (_super) {
|
|
|
5275
5572
|
}
|
|
5276
5573
|
}
|
|
5277
5574
|
});
|
|
5278
|
-
this.toolbar.actions.push(this._collapseAction);
|
|
5575
|
+
this.header.toolbar.actions.push(this._collapseAction);
|
|
5279
5576
|
if (this.creator.allowCollapseSidebar) {
|
|
5280
5577
|
this._expandAction = new survey_core__WEBPACK_IMPORTED_MODULE_1__.Action({
|
|
5281
5578
|
id: "svd-grid-expand",
|
|
@@ -5291,7 +5588,7 @@ var SidebarModel = /** @class */ (function (_super) {
|
|
|
5291
5588
|
},
|
|
5292
5589
|
locTitleName: "ed.showPanel",
|
|
5293
5590
|
visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__.ComputedUpdater(function () {
|
|
5294
|
-
return (0,
|
|
5591
|
+
return (0,_utils_utils__WEBPACK_IMPORTED_MODULE_6__.notShortCircuitAnd)(_this.hasVisiblePages, !_this.visible, !_this.hideSideBarVisibilityControlActions);
|
|
5295
5592
|
}),
|
|
5296
5593
|
showTitle: false
|
|
5297
5594
|
});
|
|
@@ -5307,7 +5604,7 @@ var SidebarModel = /** @class */ (function (_super) {
|
|
|
5307
5604
|
this.pages.forEach(function (page) { return page.visible = false; });
|
|
5308
5605
|
this._activePage = newPage;
|
|
5309
5606
|
if (this._activePage) {
|
|
5310
|
-
this.
|
|
5607
|
+
this.header.title = this._activePage.caption;
|
|
5311
5608
|
this._activePage.visible = true;
|
|
5312
5609
|
}
|
|
5313
5610
|
};
|
|
@@ -5325,7 +5622,7 @@ var SidebarModel = /** @class */ (function (_super) {
|
|
|
5325
5622
|
var page = new _side_bar_page_model__WEBPACK_IMPORTED_MODULE_3__.SidebarPageModel(id, this, componentName, model);
|
|
5326
5623
|
this.pages.push(page);
|
|
5327
5624
|
if (!!buildActions) {
|
|
5328
|
-
(buildActions() || []).forEach(function (action) { return _this.toolbar.actions.push(action); });
|
|
5625
|
+
(buildActions() || []).forEach(function (action) { return _this.header.toolbar.actions.push(action); });
|
|
5329
5626
|
}
|
|
5330
5627
|
return page;
|
|
5331
5628
|
};
|
|
@@ -5343,7 +5640,7 @@ var SidebarModel = /** @class */ (function (_super) {
|
|
|
5343
5640
|
};
|
|
5344
5641
|
SidebarModel.prototype.initResizeManager = function (container) {
|
|
5345
5642
|
var _a;
|
|
5346
|
-
this.resizeManager = new
|
|
5643
|
+
this.resizeManager = new _utils_resizer__WEBPACK_IMPORTED_MODULE_5__.ResizeManager(container, this.getCurrentHandles());
|
|
5347
5644
|
this.rootElement = (_a = container === null || container === void 0 ? void 0 : container.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement;
|
|
5348
5645
|
};
|
|
5349
5646
|
SidebarModel.prototype.resetResizeManager = function () {
|
|
@@ -5356,9 +5653,6 @@ var SidebarModel = /** @class */ (function (_super) {
|
|
|
5356
5653
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
5357
5654
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.propertyArray)()
|
|
5358
5655
|
], SidebarModel.prototype, "pages", void 0);
|
|
5359
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
5360
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)()
|
|
5361
|
-
], SidebarModel.prototype, "headerText", void 0);
|
|
5362
5656
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
5363
5657
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({ defaultValue: true })
|
|
5364
5658
|
], SidebarModel.prototype, "_visible", void 0);
|
|
@@ -5393,12 +5687,6 @@ var SidebarModel = /** @class */ (function (_super) {
|
|
|
5393
5687
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
5394
5688
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)()
|
|
5395
5689
|
], SidebarModel.prototype, "sideAreaComponentData", void 0);
|
|
5396
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
5397
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)()
|
|
5398
|
-
], SidebarModel.prototype, "headerComponentName", void 0);
|
|
5399
|
-
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
5400
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)()
|
|
5401
|
-
], SidebarModel.prototype, "headerComponentData", void 0);
|
|
5402
5690
|
return SidebarModel;
|
|
5403
5691
|
}(survey_core__WEBPACK_IMPORTED_MODULE_1__.Base));
|
|
5404
5692
|
|
|
@@ -5433,11 +5721,7 @@ var SidebarPageModel = /** @class */ (function (_super) {
|
|
|
5433
5721
|
return _this;
|
|
5434
5722
|
}
|
|
5435
5723
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
5436
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)(
|
|
5437
|
-
onSet: function (newVal, target) {
|
|
5438
|
-
target.sidePanel.headerText = target.caption;
|
|
5439
|
-
}
|
|
5440
|
-
})
|
|
5724
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)()
|
|
5441
5725
|
], SidebarPageModel.prototype, "caption", void 0);
|
|
5442
5726
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
5443
5727
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)({
|
|
@@ -5548,8 +5832,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
5548
5832
|
__webpack_require__(/*! ./simulator.scss */ "./src/components/simulator.scss");
|
|
5549
5833
|
var SurveySimulatorModel = /** @class */ (function (_super) {
|
|
5550
5834
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(SurveySimulatorModel, _super);
|
|
5551
|
-
function SurveySimulatorModel() {
|
|
5835
|
+
function SurveySimulatorModel(surveyProvider) {
|
|
5552
5836
|
var _this_1 = _super.call(this) || this;
|
|
5837
|
+
_this_1.surveyProvider = surveyProvider;
|
|
5553
5838
|
_this_1.activateZoom = function () {
|
|
5554
5839
|
document.addEventListener("keydown", _this_1.listenTryToZoom);
|
|
5555
5840
|
document.addEventListener("wheel", _this_1.listenTryToZoomWithWheel, { passive: false });
|
|
@@ -5592,8 +5877,11 @@ var SurveySimulatorModel = /** @class */ (function (_super) {
|
|
|
5592
5877
|
// }
|
|
5593
5878
|
}
|
|
5594
5879
|
SurveySimulatorModel.prototype.surveyChanged = function () {
|
|
5880
|
+
var _this_1 = this;
|
|
5595
5881
|
var _this = this;
|
|
5596
5882
|
this.survey.onOpenDropdownMenu.add(function (_, options) {
|
|
5883
|
+
if (_this_1.surveyProvider.isTouch)
|
|
5884
|
+
return;
|
|
5597
5885
|
var device = simulatorDevices[_this.activeDevice];
|
|
5598
5886
|
options.menuType = device.deviceType === "desktop" ? "dropdown" : (device.deviceType == "tablet" ? "popup" : "overlay");
|
|
5599
5887
|
});
|
|
@@ -6820,16 +7108,16 @@ var TabDesignerPlugin = /** @class */ (function () {
|
|
|
6820
7108
|
};
|
|
6821
7109
|
TabDesignerPlugin.prototype.updateHeaderComponent = function () {
|
|
6822
7110
|
if (this.showOneCategoryInPropertyGrid && this.activePageIsPropertyGrid) {
|
|
6823
|
-
this.creator.sidebar.
|
|
6824
|
-
this.creator.sidebar.
|
|
7111
|
+
this.creator.sidebar.header.componentName = "svc-side-bar-property-grid-header";
|
|
7112
|
+
this.creator.sidebar.header.componentData = this.propertyGridViewModel.objectSelectionAction;
|
|
6825
7113
|
}
|
|
6826
7114
|
else if (this.showOneCategoryInPropertyGrid && this.creator.sidebar.activePage === this.propertyGridPlaceholderPage.id) {
|
|
6827
|
-
this.creator.sidebar.
|
|
6828
|
-
this.creator.sidebar.
|
|
7115
|
+
this.creator.sidebar.header.componentName = "svc-side-bar-header";
|
|
7116
|
+
this.creator.sidebar.header.componentData = this.creator.sidebar.header;
|
|
6829
7117
|
}
|
|
6830
7118
|
else {
|
|
6831
|
-
this.creator.sidebar.
|
|
6832
|
-
this.creator.sidebar.
|
|
7119
|
+
this.creator.sidebar.header.componentName = "";
|
|
7120
|
+
this.creator.sidebar.header.componentData = undefined;
|
|
6833
7121
|
}
|
|
6834
7122
|
};
|
|
6835
7123
|
TabDesignerPlugin.prototype.updateActivePage = function () {
|
|
@@ -6913,8 +7201,7 @@ var TabDesignerPlugin = /** @class */ (function () {
|
|
|
6913
7201
|
this.creator.sidebar.hideSideBarVisibilityControlActions = false;
|
|
6914
7202
|
this.creator.sidebar.sideAreaComponentName = undefined;
|
|
6915
7203
|
this.creator.sidebar.sideAreaComponentData = undefined;
|
|
6916
|
-
this.creator.sidebar.
|
|
6917
|
-
this.creator.sidebar.headerComponentData = undefined;
|
|
7204
|
+
this.creator.sidebar.header.reset();
|
|
6918
7205
|
return true;
|
|
6919
7206
|
};
|
|
6920
7207
|
TabDesignerPlugin.prototype.onDesignerSurveyPropertyChanged = function (obj, propName) {
|
|
@@ -7253,6 +7540,24 @@ var TabDesignerViewModel = /** @class */ (function (_super) {
|
|
|
7253
7540
|
enumerable: false,
|
|
7254
7541
|
configurable: true
|
|
7255
7542
|
});
|
|
7543
|
+
Object.defineProperty(TabDesignerViewModel.prototype, "placeholderTitleText", {
|
|
7544
|
+
get: function () {
|
|
7545
|
+
if (this.creator.isMobileView)
|
|
7546
|
+
return (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_2__.getLocString)("ed.surveyPlaceholderTitleMobile");
|
|
7547
|
+
return (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_2__.getLocString)("ed.surveyPlaceholderTitle");
|
|
7548
|
+
},
|
|
7549
|
+
enumerable: false,
|
|
7550
|
+
configurable: true
|
|
7551
|
+
});
|
|
7552
|
+
Object.defineProperty(TabDesignerViewModel.prototype, "placeholderDescriptionText", {
|
|
7553
|
+
get: function () {
|
|
7554
|
+
if (this.creator.isMobileView)
|
|
7555
|
+
return (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_2__.getLocString)("ed.surveyPlaceholderDescriptionMobile");
|
|
7556
|
+
return (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_2__.getLocString)("ed.surveyPlaceholderDescription");
|
|
7557
|
+
},
|
|
7558
|
+
enumerable: false,
|
|
7559
|
+
configurable: true
|
|
7560
|
+
});
|
|
7256
7561
|
Object.defineProperty(TabDesignerViewModel.prototype, "hasToolbar", {
|
|
7257
7562
|
get: function () {
|
|
7258
7563
|
return this.creator.expandCollapseButtonVisibility != "never";
|
|
@@ -7551,6 +7856,18 @@ survey_core__WEBPACK_IMPORTED_MODULE_1__.Serializer.addClass("header", [
|
|
|
7551
7856
|
}
|
|
7552
7857
|
}
|
|
7553
7858
|
},
|
|
7859
|
+
{
|
|
7860
|
+
type: "spinedit",
|
|
7861
|
+
name: "mobileHeight",
|
|
7862
|
+
visibleIf: function (obj) { return obj.headerView === "advanced"; },
|
|
7863
|
+
default: 0,
|
|
7864
|
+
onPropertyEditorUpdate: function (obj, editor) {
|
|
7865
|
+
if (!!editor) {
|
|
7866
|
+
editor.unit = "px";
|
|
7867
|
+
editor.min = 0;
|
|
7868
|
+
}
|
|
7869
|
+
}
|
|
7870
|
+
},
|
|
7554
7871
|
{
|
|
7555
7872
|
type: "buttongroup",
|
|
7556
7873
|
name: "inheritWidthFrom",
|
|
@@ -11625,6 +11942,24 @@ var SurveyLogicUI = /** @class */ (function (_super) {
|
|
|
11625
11942
|
enumerable: false,
|
|
11626
11943
|
configurable: true
|
|
11627
11944
|
});
|
|
11945
|
+
Object.defineProperty(SurveyLogicUI.prototype, "placeholderTitleText", {
|
|
11946
|
+
get: function () {
|
|
11947
|
+
if (this.options.isMobileView)
|
|
11948
|
+
return (0,_logic_types__WEBPACK_IMPORTED_MODULE_5__.getLogicString)("logicPlaceholderTitleMobile");
|
|
11949
|
+
return (0,_logic_types__WEBPACK_IMPORTED_MODULE_5__.getLogicString)("logicPlaceholderTitle");
|
|
11950
|
+
},
|
|
11951
|
+
enumerable: false,
|
|
11952
|
+
configurable: true
|
|
11953
|
+
});
|
|
11954
|
+
Object.defineProperty(SurveyLogicUI.prototype, "placeholderDescriptionText", {
|
|
11955
|
+
get: function () {
|
|
11956
|
+
if (this.options.isMobileView)
|
|
11957
|
+
return (0,_logic_types__WEBPACK_IMPORTED_MODULE_5__.getLogicString)("logicPlaceholderDescriptionMobile");
|
|
11958
|
+
return (0,_logic_types__WEBPACK_IMPORTED_MODULE_5__.getLogicString)("logicPlaceholderDescription");
|
|
11959
|
+
},
|
|
11960
|
+
enumerable: false,
|
|
11961
|
+
configurable: true
|
|
11962
|
+
});
|
|
11628
11963
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__decorate)([
|
|
11629
11964
|
(0,survey_core__WEBPACK_IMPORTED_MODULE_1__.property)()
|
|
11630
11965
|
], SurveyLogicUI.prototype, "itemsSurveyValue", void 0);
|
|
@@ -12196,7 +12531,7 @@ var PreviewViewModel = /** @class */ (function (_super) {
|
|
|
12196
12531
|
_this.startThemeClasses = startThemeClasses;
|
|
12197
12532
|
_this.enableInvisiblePages = true;
|
|
12198
12533
|
_this.pages = new survey_core__WEBPACK_IMPORTED_MODULE_2__.ActionContainer();
|
|
12199
|
-
_this.simulator = new _simulator__WEBPACK_IMPORTED_MODULE_1__.SurveySimulatorModel();
|
|
12534
|
+
_this.simulator = new _simulator__WEBPACK_IMPORTED_MODULE_1__.SurveySimulatorModel(surveyProvider);
|
|
12200
12535
|
return _this;
|
|
12201
12536
|
}
|
|
12202
12537
|
Object.defineProperty(PreviewViewModel.prototype, "activeLanguage", {
|
|
@@ -12499,6 +12834,24 @@ var PreviewViewModel = /** @class */ (function (_super) {
|
|
|
12499
12834
|
var isNextEnabled = this.survey && this.survey.visiblePages.indexOf(this.activePage) !== this.survey.visiblePages.length - 1;
|
|
12500
12835
|
this.nextPageAction.enabled = isNextEnabled;
|
|
12501
12836
|
};
|
|
12837
|
+
Object.defineProperty(PreviewViewModel.prototype, "placeholderTitleText", {
|
|
12838
|
+
get: function () {
|
|
12839
|
+
if (this.isMobileView)
|
|
12840
|
+
return (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_3__.getLocString)("ed.previewPlaceholderTitleMobile");
|
|
12841
|
+
return (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_3__.getLocString)("ed.previewPlaceholderTitle");
|
|
12842
|
+
},
|
|
12843
|
+
enumerable: false,
|
|
12844
|
+
configurable: true
|
|
12845
|
+
});
|
|
12846
|
+
Object.defineProperty(PreviewViewModel.prototype, "placeholderDescriptionText", {
|
|
12847
|
+
get: function () {
|
|
12848
|
+
if (this.isMobileView)
|
|
12849
|
+
return (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_3__.getLocString)("ed.previewPlaceholderDescriptionMobile");
|
|
12850
|
+
return (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_3__.getLocString)("ed.previewPlaceholderDescription");
|
|
12851
|
+
},
|
|
12852
|
+
enumerable: false,
|
|
12853
|
+
configurable: true
|
|
12854
|
+
});
|
|
12502
12855
|
PreviewViewModel.prototype.onScroll = function () {
|
|
12503
12856
|
this.survey.onScroll();
|
|
12504
12857
|
return true;
|
|
@@ -12715,7 +13068,7 @@ var TabTestPlugin = /** @class */ (function () {
|
|
|
12715
13068
|
iconName: "icon-device-desktop",
|
|
12716
13069
|
mode: "small",
|
|
12717
13070
|
visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__.ComputedUpdater(function () {
|
|
12718
|
-
return (0,_utils_utils__WEBPACK_IMPORTED_MODULE_0__.notShortCircuitAnd)(_this.creator.activeTab === "test", _this.creator.showSimulatorInTestSurveyTab);
|
|
13071
|
+
return (0,_utils_utils__WEBPACK_IMPORTED_MODULE_0__.notShortCircuitAnd)(_this.creator.activeTab === "test", _this.creator.showSimulatorInTestSurveyTab, !_this.creator.isTouch);
|
|
12719
13072
|
}),
|
|
12720
13073
|
}, {
|
|
12721
13074
|
items: deviceSelectorItems,
|
|
@@ -12732,7 +13085,7 @@ var TabTestPlugin = /** @class */ (function () {
|
|
|
12732
13085
|
iconName: "icon-device-rotate",
|
|
12733
13086
|
mode: "small",
|
|
12734
13087
|
visible: new survey_core__WEBPACK_IMPORTED_MODULE_1__.ComputedUpdater(function () {
|
|
12735
|
-
return (0,_utils_utils__WEBPACK_IMPORTED_MODULE_0__.notShortCircuitAnd)(_this.creator.activeTab === "test", _this.creator.showSimulatorInTestSurveyTab);
|
|
13088
|
+
return (0,_utils_utils__WEBPACK_IMPORTED_MODULE_0__.notShortCircuitAnd)(_this.creator.activeTab === "test", _this.creator.showSimulatorInTestSurveyTab, !_this.creator.isTouch);
|
|
12736
13089
|
}),
|
|
12737
13090
|
action: function () {
|
|
12738
13091
|
_this.model.simulator.landscape = !_this.model.simulator.landscape;
|
|
@@ -13385,6 +13738,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13385
13738
|
/* harmony export */ createBoxShadow: () => (/* binding */ createBoxShadow),
|
|
13386
13739
|
/* harmony export */ createBoxShadowReset: () => (/* binding */ createBoxShadowReset),
|
|
13387
13740
|
/* harmony export */ parseBoxShadow: () => (/* binding */ parseBoxShadow),
|
|
13741
|
+
/* harmony export */ trimBoxShadowValue: () => (/* binding */ trimBoxShadowValue),
|
|
13388
13742
|
/* harmony export */ updateShadowEffectsJSON: () => (/* binding */ updateShadowEffectsJSON)
|
|
13389
13743
|
/* harmony export */ });
|
|
13390
13744
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../../editorLocalization */ "./src/editorLocalization.ts");
|
|
@@ -13459,7 +13813,16 @@ if (!survey_core__WEBPACK_IMPORTED_MODULE_1__.ComponentCollection.Instance.getCu
|
|
|
13459
13813
|
return [{}];
|
|
13460
13814
|
return typeof value == "string" ? parseBoxShadow(value) : value;
|
|
13461
13815
|
};
|
|
13462
|
-
question.valueToDataCallback = function (value) {
|
|
13816
|
+
question.valueToDataCallback = function (value) {
|
|
13817
|
+
if (!value)
|
|
13818
|
+
return "";
|
|
13819
|
+
if (typeof value == "string") {
|
|
13820
|
+
return value;
|
|
13821
|
+
}
|
|
13822
|
+
else {
|
|
13823
|
+
return createBoxShadow(Array.isArray(value) ? value : [value]);
|
|
13824
|
+
}
|
|
13825
|
+
};
|
|
13463
13826
|
question.contentQuestion.panels.forEach(function (p) { return p.questions.forEach(function (q) { return q.allowRootStyle = false; }); });
|
|
13464
13827
|
},
|
|
13465
13828
|
});
|
|
@@ -13510,6 +13873,11 @@ function parseBoxShadow(value) {
|
|
|
13510
13873
|
return res;
|
|
13511
13874
|
});
|
|
13512
13875
|
}
|
|
13876
|
+
function trimBoxShadowValue(value) {
|
|
13877
|
+
if (!value)
|
|
13878
|
+
return value;
|
|
13879
|
+
return value.replace(/\)\,\s/g, "),");
|
|
13880
|
+
}
|
|
13513
13881
|
|
|
13514
13882
|
|
|
13515
13883
|
/***/ }),
|
|
@@ -13549,6 +13917,7 @@ var themeModelProperties = {
|
|
|
13549
13917
|
{ name: "fontSize", tab: "appearancefont" },
|
|
13550
13918
|
{ name: "scale", tab: "appearanceother" },
|
|
13551
13919
|
{ name: "cornerRadius", tab: "appearanceother" },
|
|
13920
|
+
{ name: "advancedMode", tab: "appearanceadvancedmode" },
|
|
13552
13921
|
{ name: "pageTitle", tab: "appearancepage" },
|
|
13553
13922
|
{ name: "pageDescription", tab: "appearancepage" },
|
|
13554
13923
|
{ name: "questionPanel", tab: "appearancequestion" },
|
|
@@ -13568,6 +13937,7 @@ var themeModelProperties = {
|
|
|
13568
13937
|
{ name: "appearancecolor", parent: "appearance", index: 100 },
|
|
13569
13938
|
{ name: "appearancefont", parent: "appearance", index: 200 },
|
|
13570
13939
|
{ name: "appearanceother", parent: "appearance", index: 300 },
|
|
13940
|
+
{ name: "appearanceadvancedmode", parent: "appearance", index: 350 },
|
|
13571
13941
|
{ name: "appearanceprimarycolor", parent: "appearance", index: 400 },
|
|
13572
13942
|
{ name: "appearancepage", parent: "appearance", index: 500 },
|
|
13573
13943
|
{ name: "appearancequestion", parent: "appearance", index: 600 },
|
|
@@ -13582,6 +13952,7 @@ var themeModelProperties = {
|
|
|
13582
13952
|
{ name: "surveyTitle" },
|
|
13583
13953
|
{ name: "surveyDescription" },
|
|
13584
13954
|
{ name: "height", tab: "layout" },
|
|
13955
|
+
{ name: "mobileHeight", tab: "layout" },
|
|
13585
13956
|
{ name: "inheritWidthFrom", tab: "layout" },
|
|
13586
13957
|
{ name: "textAreaWidth", tab: "layout" },
|
|
13587
13958
|
{ name: "backgroundColorSwitch", tab: "background" },
|
|
@@ -14263,8 +14634,18 @@ survey_core__WEBPACK_IMPORTED_MODULE_1__.Serializer.addClass("theme", [
|
|
|
14263
14634
|
editor.min = 0;
|
|
14264
14635
|
}
|
|
14265
14636
|
}
|
|
14266
|
-
},
|
|
14267
|
-
|
|
14637
|
+
}, {
|
|
14638
|
+
name: "advancedMode",
|
|
14639
|
+
type: "switchToggle",
|
|
14640
|
+
isSerializable: false,
|
|
14641
|
+
default: false,
|
|
14642
|
+
onPropertyEditorUpdate: function (obj, editor) {
|
|
14643
|
+
if (!!editor) {
|
|
14644
|
+
editor.titleLocation = "hidden";
|
|
14645
|
+
editor.renderAs = "switch";
|
|
14646
|
+
}
|
|
14647
|
+
}
|
|
14648
|
+
}, {
|
|
14268
14649
|
type: "spinedit",
|
|
14269
14650
|
isSerializable: false,
|
|
14270
14651
|
name: "fontSize",
|
|
@@ -14427,6 +14808,9 @@ survey_core__WEBPACK_IMPORTED_MODULE_1__.Serializer.addProperties("theme", [{
|
|
|
14427
14808
|
}, {
|
|
14428
14809
|
type: "shadoweffects",
|
|
14429
14810
|
name: "--sjs-shadow-small",
|
|
14811
|
+
onSetValue: function (obj, value) {
|
|
14812
|
+
obj.setPropertyValue("--sjs-shadow-small", (0,_theme_custom_questions_shadow_effects__WEBPACK_IMPORTED_MODULE_7__.trimBoxShadowValue)(value));
|
|
14813
|
+
},
|
|
14430
14814
|
}, {
|
|
14431
14815
|
type: "font",
|
|
14432
14816
|
name: "questionTitle",
|
|
@@ -14447,6 +14831,9 @@ survey_core__WEBPACK_IMPORTED_MODULE_1__.Serializer.addProperties("theme", [{
|
|
|
14447
14831
|
{
|
|
14448
14832
|
type: "shadoweffects",
|
|
14449
14833
|
name: "--sjs-shadow-inner",
|
|
14834
|
+
onSetValue: function (obj, value) {
|
|
14835
|
+
obj.setPropertyValue("--sjs-shadow-inner", (0,_theme_custom_questions_shadow_effects__WEBPACK_IMPORTED_MODULE_7__.trimBoxShadowValue)(value));
|
|
14836
|
+
},
|
|
14450
14837
|
}, {
|
|
14451
14838
|
type: "font",
|
|
14452
14839
|
name: "editorFont",
|
|
@@ -14489,10 +14876,34 @@ survey_core__WEBPACK_IMPORTED_MODULE_1__.Serializer.addProperties("theme", [{
|
|
|
14489
14876
|
{ name: "--sjs-secondary-backcolor-semi-light", visible: false },
|
|
14490
14877
|
{ name: "--sjs-secondary-forecolor", visible: false },
|
|
14491
14878
|
{ name: "--sjs-secondary-forecolor-light", visible: false },
|
|
14492
|
-
{
|
|
14493
|
-
|
|
14494
|
-
|
|
14495
|
-
|
|
14879
|
+
{
|
|
14880
|
+
name: "--sjs-shadow-small-reset",
|
|
14881
|
+
visible: false,
|
|
14882
|
+
onSetValue: function (obj, value) {
|
|
14883
|
+
obj.setPropertyValue("--sjs-shadow-small-reset", (0,_theme_custom_questions_shadow_effects__WEBPACK_IMPORTED_MODULE_7__.trimBoxShadowValue)(value));
|
|
14884
|
+
},
|
|
14885
|
+
},
|
|
14886
|
+
{
|
|
14887
|
+
name: "--sjs-shadow-medium",
|
|
14888
|
+
visible: false,
|
|
14889
|
+
onSetValue: function (obj, value) {
|
|
14890
|
+
obj.setPropertyValue("--sjs-shadow-medium", (0,_theme_custom_questions_shadow_effects__WEBPACK_IMPORTED_MODULE_7__.trimBoxShadowValue)(value));
|
|
14891
|
+
},
|
|
14892
|
+
},
|
|
14893
|
+
{
|
|
14894
|
+
name: "--sjs-shadow-large",
|
|
14895
|
+
visible: false,
|
|
14896
|
+
onSetValue: function (obj, value) {
|
|
14897
|
+
obj.setPropertyValue("--sjs-shadow-large", (0,_theme_custom_questions_shadow_effects__WEBPACK_IMPORTED_MODULE_7__.trimBoxShadowValue)(value));
|
|
14898
|
+
},
|
|
14899
|
+
},
|
|
14900
|
+
{
|
|
14901
|
+
name: "--sjs-shadow-inner-reset",
|
|
14902
|
+
visible: false,
|
|
14903
|
+
onSetValue: function (obj, value) {
|
|
14904
|
+
obj.setPropertyValue("--sjs-shadow-inner-reset", (0,_theme_custom_questions_shadow_effects__WEBPACK_IMPORTED_MODULE_7__.trimBoxShadowValue)(value));
|
|
14905
|
+
},
|
|
14906
|
+
},
|
|
14496
14907
|
{ name: "--sjs-border-light", visible: false },
|
|
14497
14908
|
{ name: "--sjs-border-default", visible: false },
|
|
14498
14909
|
{ name: "--sjs-border-inside", visible: false },
|
|
@@ -14634,24 +15045,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14634
15045
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
14635
15046
|
/* harmony export */ ThemeTabPlugin: () => (/* binding */ ThemeTabPlugin)
|
|
14636
15047
|
/* harmony export */ });
|
|
14637
|
-
/* harmony import */ var
|
|
14638
|
-
/* harmony import */ var
|
|
14639
|
-
/* harmony import */ var
|
|
14640
|
-
/* harmony import */ var
|
|
14641
|
-
/* harmony import */ var
|
|
14642
|
-
/* harmony import */ var
|
|
14643
|
-
/* harmony import */ var
|
|
14644
|
-
/* harmony import */ var
|
|
14645
|
-
/* harmony import */ var
|
|
14646
|
-
/* harmony import */ var
|
|
14647
|
-
/* harmony import */ var
|
|
14648
|
-
/* harmony import */ var
|
|
14649
|
-
/* harmony import */ var
|
|
14650
|
-
/* harmony import */ var
|
|
14651
|
-
/* harmony import */ var
|
|
14652
|
-
/* harmony import */ var
|
|
14653
|
-
/* harmony import */ var _utils_actions__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../../utils/actions */ "./src/utils/actions.ts");
|
|
14654
|
-
|
|
15048
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
15049
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_0__);
|
|
15050
|
+
/* harmony import */ var _creator_settings__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../creator-settings */ "./src/creator-settings.ts");
|
|
15051
|
+
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../editorLocalization */ "./src/editorLocalization.ts");
|
|
15052
|
+
/* harmony import */ var _theme_builder__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./theme-builder */ "./src/components/tabs/theme-builder.ts");
|
|
15053
|
+
/* harmony import */ var _themes__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./themes */ "./src/components/tabs/themes.ts");
|
|
15054
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ../../utils/utils */ "./src/utils/utils.ts");
|
|
15055
|
+
/* harmony import */ var _property_grid__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ../../property-grid */ "./src/property-grid/index.ts");
|
|
15056
|
+
/* harmony import */ var _property_grid_property_grid_view_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../../property-grid/property-grid-view-model */ "./src/property-grid/property-grid-view-model.ts");
|
|
15057
|
+
/* harmony import */ var _theme_model__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./theme-model */ "./src/components/tabs/theme-model.ts");
|
|
15058
|
+
/* harmony import */ var _switcher_switcher__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! ../switcher/switcher */ "./src/components/switcher/switcher.ts");
|
|
15059
|
+
/* harmony import */ var _theme_model_definition__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! ./theme-model-definition */ "./src/components/tabs/theme-model-definition.ts");
|
|
15060
|
+
/* 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");
|
|
15061
|
+
/* harmony import */ var _side_bar_tab_control_model__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../side-bar/tab-control-model */ "./src/components/side-bar/tab-control-model.ts");
|
|
15062
|
+
/* harmony import */ var _property_grid_icons__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../../property-grid/icons */ "./src/property-grid/icons.ts");
|
|
15063
|
+
/* harmony import */ var _utils_actions__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../../utils/actions */ "./src/utils/actions.ts");
|
|
14655
15064
|
|
|
14656
15065
|
|
|
14657
15066
|
|
|
@@ -14690,15 +15099,16 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
14690
15099
|
var _this = this;
|
|
14691
15100
|
this.creator = creator;
|
|
14692
15101
|
this.allowModifyTheme = true;
|
|
14693
|
-
this.simulatorCssClasses =
|
|
14694
|
-
this._availableThemes = [].concat(
|
|
15102
|
+
this.simulatorCssClasses = survey_core__WEBPACK_IMPORTED_MODULE_0__.surveyCss[survey_core__WEBPACK_IMPORTED_MODULE_0__.defaultV2ThemeName];
|
|
15103
|
+
this._availableThemes = [].concat(_themes__WEBPACK_IMPORTED_MODULE_4__.PredefinedThemes);
|
|
14695
15104
|
this._showOneCategoryInPropertyGrid = false;
|
|
15105
|
+
this._advancedModeValue = false;
|
|
14696
15106
|
this.creatorPropertyChanged = function (sender, options) {
|
|
14697
15107
|
if (options.name === "isMobileView") {
|
|
14698
15108
|
_this.updateVisibilityOfPropertyGridGroups();
|
|
14699
15109
|
}
|
|
14700
15110
|
};
|
|
14701
|
-
this.saveToFileHandler =
|
|
15111
|
+
this.saveToFileHandler = _utils_utils__WEBPACK_IMPORTED_MODULE_5__.saveToFileHandler;
|
|
14702
15112
|
this.autoSaveTimerId = null;
|
|
14703
15113
|
/**
|
|
14704
15114
|
* 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.
|
|
@@ -14713,7 +15123,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
14713
15123
|
* @see addTheme
|
|
14714
15124
|
* @see removeTheme
|
|
14715
15125
|
*/
|
|
14716
|
-
this.onThemeSelected = new
|
|
15126
|
+
this.onThemeSelected = new survey_core__WEBPACK_IMPORTED_MODULE_0__.EventBase();
|
|
14717
15127
|
/**
|
|
14718
15128
|
* An event that is raised when the value of a property or CSS variable in a theme JSON schema has changed.
|
|
14719
15129
|
*
|
|
@@ -14726,7 +15136,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
14726
15136
|
* - `options.value`: `any`\
|
|
14727
15137
|
* A new value of the property or CSS variable.
|
|
14728
15138
|
*/
|
|
14729
|
-
this.onThemePropertyChanged = new
|
|
15139
|
+
this.onThemePropertyChanged = new survey_core__WEBPACK_IMPORTED_MODULE_0__.EventBase();
|
|
14730
15140
|
/**
|
|
14731
15141
|
* An event that you can use to switch the current theme to read-only mode.
|
|
14732
15142
|
*
|
|
@@ -14739,17 +15149,17 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
14739
15149
|
* - `options.allow`: `boolean`\
|
|
14740
15150
|
* A Boolean property that you can set to `false` if you want to disallow theme modifications.
|
|
14741
15151
|
*/
|
|
14742
|
-
this.onAllowModifyTheme = new
|
|
15152
|
+
this.onAllowModifyTheme = new survey_core__WEBPACK_IMPORTED_MODULE_0__.EventBase();
|
|
14743
15153
|
creator.addPluginTab("theme", this);
|
|
14744
|
-
this.simulatorCssClasses =
|
|
14745
|
-
this.tabControlModel = new
|
|
15154
|
+
this.simulatorCssClasses = survey_core__WEBPACK_IMPORTED_MODULE_0__.surveyCss[survey_core__WEBPACK_IMPORTED_MODULE_0__.defaultV2ThemeName];
|
|
15155
|
+
this.tabControlModel = new _side_bar_tab_control_model__WEBPACK_IMPORTED_MODULE_12__.TabControlModel(this.creator.sidebar);
|
|
14746
15156
|
this.createActions().forEach(function (action) { return creator.toolbar.actions.push(action); });
|
|
14747
|
-
this.propertyGrid = new
|
|
15157
|
+
this.propertyGrid = new _property_grid__WEBPACK_IMPORTED_MODULE_6__.PropertyGridModel(undefined, creator, _theme_model_definition__WEBPACK_IMPORTED_MODULE_10__.themeModelPropertyGridDefinition);
|
|
14748
15158
|
this.propertyGrid.surveyInstanceCreatedArea = "theme-tab:property-grid";
|
|
14749
|
-
var propertyGridViewModel = new
|
|
15159
|
+
var propertyGridViewModel = new _property_grid_property_grid_view_model__WEBPACK_IMPORTED_MODULE_7__.PropertyGridViewModel(this.propertyGrid, creator);
|
|
14750
15160
|
this.propertyGridTab = this.creator.sidebar.addPage("theme", "svc-property-grid", propertyGridViewModel);
|
|
14751
|
-
this.propertyGridTab.caption =
|
|
14752
|
-
this.themeModel = new
|
|
15161
|
+
this.propertyGridTab.caption = _editorLocalization__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.getString("ed.themePropertyGridTitle");
|
|
15162
|
+
this.themeModel = new _theme_model__WEBPACK_IMPORTED_MODULE_8__.ThemeModel();
|
|
14753
15163
|
creator.registerShortcut("undo_theme", {
|
|
14754
15164
|
name: "undo",
|
|
14755
15165
|
affectedTab: "theme",
|
|
@@ -14784,6 +15194,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
14784
15194
|
if (this._showOneCategoryInPropertyGrid !== newValue) {
|
|
14785
15195
|
this._showOneCategoryInPropertyGrid = newValue;
|
|
14786
15196
|
this.creator.sidebar.hideSideBarVisibilityControlActions = newValue;
|
|
15197
|
+
this.updateAdvancedModeQuestion();
|
|
14787
15198
|
this.propertyGrid.showOneCategoryInPropertyGrid = newValue;
|
|
14788
15199
|
this.propertyGrid["setObj"](this.creator.selectedElement);
|
|
14789
15200
|
if (this.creator.activeTab === "theme") {
|
|
@@ -14794,35 +15205,44 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
14794
15205
|
enumerable: false,
|
|
14795
15206
|
configurable: true
|
|
14796
15207
|
});
|
|
15208
|
+
ThemeTabPlugin.prototype.updateAdvancedModeQuestion = function () {
|
|
15209
|
+
var advancedModeQuestion = this.propertyGrid.survey.getQuestionByName("advancedMode");
|
|
15210
|
+
if (advancedModeQuestion) {
|
|
15211
|
+
advancedModeQuestion.visible = this.showOneCategoryInPropertyGrid;
|
|
15212
|
+
advancedModeQuestion.value = this._advancedModeValue;
|
|
15213
|
+
}
|
|
15214
|
+
};
|
|
14797
15215
|
ThemeTabPlugin.prototype.createVisibleUpdater = function () {
|
|
14798
15216
|
var _this = this;
|
|
14799
|
-
return new
|
|
15217
|
+
return new survey_core__WEBPACK_IMPORTED_MODULE_0__.ComputedUpdater(function () { return _this.creator.activeTab === "theme"; });
|
|
14800
15218
|
};
|
|
14801
15219
|
ThemeTabPlugin.prototype.createAppearanceAdvancedModeAction = function () {
|
|
14802
15220
|
var _this = this;
|
|
14803
|
-
var advancedMode = new
|
|
15221
|
+
var advancedMode = new _switcher_switcher__WEBPACK_IMPORTED_MODULE_9__.Switcher({
|
|
14804
15222
|
id: "advancedMode",
|
|
14805
15223
|
component: "svc-switcher",
|
|
14806
15224
|
ariaRole: "checkbox",
|
|
14807
15225
|
css: "sv-theme-group_title-action",
|
|
14808
|
-
title: (0,
|
|
15226
|
+
title: (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_2__.getLocString)("theme.advancedMode"),
|
|
14809
15227
|
visible: !this.creator.isMobileView,
|
|
14810
15228
|
action: function () {
|
|
14811
15229
|
advancedMode.checked = !advancedMode.checked;
|
|
14812
|
-
_this.propertyGrid.survey.
|
|
15230
|
+
if (!!_this.propertyGrid.survey.getQuestionByName("advancedMode")) {
|
|
15231
|
+
_this.propertyGrid.survey.getQuestionByName("advancedMode").value = advancedMode.checked;
|
|
15232
|
+
}
|
|
14813
15233
|
}
|
|
14814
15234
|
});
|
|
14815
|
-
advancedMode.checked =
|
|
15235
|
+
advancedMode.checked = this._advancedModeValue;
|
|
14816
15236
|
this.advancedModeSwitcher = advancedMode;
|
|
14817
15237
|
};
|
|
14818
15238
|
ThemeTabPlugin.prototype.addSubGroupTitle = function (panel, titleId) {
|
|
14819
15239
|
if (!!panel.getQuestionByName(titleId))
|
|
14820
15240
|
return;
|
|
14821
|
-
var question =
|
|
15241
|
+
var question = survey_core__WEBPACK_IMPORTED_MODULE_0__.Serializer.createClass("html");
|
|
14822
15242
|
question.fromJSON({
|
|
14823
15243
|
name: titleId,
|
|
14824
|
-
visibleIf: "{
|
|
14825
|
-
html: "<div class='spg-theme-group-caption'>".concat((0,
|
|
15244
|
+
visibleIf: "{advancedMode} = true",
|
|
15245
|
+
html: "<div class='spg-theme-group-caption'>".concat((0,_editorLocalization__WEBPACK_IMPORTED_MODULE_2__.getLocString)(titleId), "</div>")
|
|
14826
15246
|
});
|
|
14827
15247
|
panel.addElement(question);
|
|
14828
15248
|
};
|
|
@@ -14855,8 +15275,8 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
14855
15275
|
};
|
|
14856
15276
|
ThemeTabPlugin.prototype.getPredefinedColorsItemValues = function () {
|
|
14857
15277
|
var _this = this;
|
|
14858
|
-
return Object.keys(
|
|
14859
|
-
return new
|
|
15278
|
+
return Object.keys(_themes__WEBPACK_IMPORTED_MODULE_4__.PredefinedColors[this.themeModel.colorPalette]).map(function (colorName) {
|
|
15279
|
+
return new survey_core__WEBPACK_IMPORTED_MODULE_0__.ItemValue(_themes__WEBPACK_IMPORTED_MODULE_4__.PredefinedColors[_this.themeModel.colorPalette][colorName], (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_2__.getLocString)("theme.colors." + colorName));
|
|
14860
15280
|
});
|
|
14861
15281
|
};
|
|
14862
15282
|
ThemeTabPlugin.prototype.updatePropertyGridColorEditorWithPredefinedColors = function () {
|
|
@@ -14914,7 +15334,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
14914
15334
|
ThemeTabPlugin.prototype.setVisibleIf = function (panelName, visibilityValue) {
|
|
14915
15335
|
var panel = this.propertyGrid.survey.getPanelByName(panelName);
|
|
14916
15336
|
if (!!panel) {
|
|
14917
|
-
panel.visibleIf = "{
|
|
15337
|
+
panel.visibleIf = "{advancedMode} = ".concat(visibilityValue);
|
|
14918
15338
|
}
|
|
14919
15339
|
};
|
|
14920
15340
|
ThemeTabPlugin.prototype.updateTabControl = function () {
|
|
@@ -14922,20 +15342,19 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
14922
15342
|
this.updateTabControlActions();
|
|
14923
15343
|
this.creator.sidebar.sideAreaComponentName = "svc-tab-control";
|
|
14924
15344
|
this.creator.sidebar.sideAreaComponentData = this.tabControlModel;
|
|
14925
|
-
this.creator.sidebar.
|
|
14926
|
-
this.creator.sidebar.
|
|
15345
|
+
this.creator.sidebar.header.componentName = "svc-side-bar-header";
|
|
15346
|
+
this.creator.sidebar.header.componentData = this.creator.sidebar.header;
|
|
14927
15347
|
}
|
|
14928
15348
|
else {
|
|
14929
15349
|
this.creator.sidebar.sideAreaComponentName = "";
|
|
14930
15350
|
this.creator.sidebar.sideAreaComponentData = undefined;
|
|
14931
|
-
this.creator.sidebar.
|
|
14932
|
-
this.creator.sidebar.
|
|
15351
|
+
this.creator.sidebar.header.componentName = "";
|
|
15352
|
+
this.creator.sidebar.header.componentData = undefined;
|
|
14933
15353
|
}
|
|
14934
15354
|
};
|
|
14935
15355
|
ThemeTabPlugin.prototype.activate = function () {
|
|
14936
15356
|
var _this = this;
|
|
14937
|
-
|
|
14938
|
-
this.model = new _theme_builder__WEBPACK_IMPORTED_MODULE_4__.ThemeTabViewModel(this.creator, this.simulatorCssClasses);
|
|
15357
|
+
this.model = new _theme_builder__WEBPACK_IMPORTED_MODULE_3__.ThemeTabViewModel(this.creator, this.simulatorCssClasses);
|
|
14939
15358
|
this.themeModel.initialize(this.creator.theme, this.creator.survey);
|
|
14940
15359
|
this.creator.sidebar.hideSideBarVisibilityControlActions = this.showOneCategoryInPropertyGrid;
|
|
14941
15360
|
this.update();
|
|
@@ -14945,8 +15364,8 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
14945
15364
|
this.propertyGrid.survey.getAllQuestions().forEach(function (q) { return q.readOnly = false; });
|
|
14946
15365
|
this.onAvailableThemesChanged(this.availableThemes);
|
|
14947
15366
|
this.updateAllowModifyTheme();
|
|
14948
|
-
this.
|
|
14949
|
-
var themeBuilderCss = (
|
|
15367
|
+
this.updateAdvancedModeQuestion();
|
|
15368
|
+
var themeBuilderCss = JSON.parse(JSON.stringify(_property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_11__.propertyGridCss));
|
|
14950
15369
|
themeBuilderCss.root += " spg-theme-builder-root";
|
|
14951
15370
|
if (this.showOneCategoryInPropertyGrid) {
|
|
14952
15371
|
themeBuilderCss.root += " spg-root--one-category";
|
|
@@ -14963,7 +15382,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
14963
15382
|
this.propertyGrid.survey.onOpenFileChooser.add(function (_, options) {
|
|
14964
15383
|
var _a, _b;
|
|
14965
15384
|
var context = {};
|
|
14966
|
-
(0,
|
|
15385
|
+
(0,_utils_utils__WEBPACK_IMPORTED_MODULE_5__.assign)(context, options.context, { element: _this.themeModel, elementType: "theme" });
|
|
14967
15386
|
if (options.element) {
|
|
14968
15387
|
var question = options.element;
|
|
14969
15388
|
context.propertyName = question.name;
|
|
@@ -14975,7 +15394,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
14975
15394
|
_this.creator.chooseFiles(options.input, options.callback, context);
|
|
14976
15395
|
});
|
|
14977
15396
|
this.propertyGrid.survey.onUpdatePanelCssClasses.add(function (sender, options) {
|
|
14978
|
-
var _a, _b;
|
|
15397
|
+
var _a, _b, _c;
|
|
14979
15398
|
if (options.panel.hasParent) {
|
|
14980
15399
|
var parent_1 = ((_a = options.panel.parent) !== null && _a !== void 0 ? _a : options.panel.parentQuestion);
|
|
14981
15400
|
if (!parent_1 || parent_1.hasParent && !(parent_1.name === "settings" || ((_b = parent_1.parentQuestion) === null || _b === void 0 ? void 0 : _b.name) === "settings")) {
|
|
@@ -14987,6 +15406,16 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
14987
15406
|
options.cssClasses.panel.content = "spg-nested-panel__content";
|
|
14988
15407
|
}
|
|
14989
15408
|
}
|
|
15409
|
+
else if (_this.showOneCategoryInPropertyGrid && ((_c = options.panel.parent) === null || _c === void 0 ? void 0 : _c.isPage)) {
|
|
15410
|
+
options.cssClasses.panel.container = "spg-panel-by-page";
|
|
15411
|
+
options.cssClasses.panel.content = "spg-panel-by-page__content";
|
|
15412
|
+
if (options.panel.name === "appearanceother") {
|
|
15413
|
+
options.cssClasses.panel.container += " spg-panel--hidden-border";
|
|
15414
|
+
}
|
|
15415
|
+
if (options.panel.name === "appearanceadvancedmode") {
|
|
15416
|
+
options.cssClasses.panel.container += " spg-panel--hidden-border spg-panel--padding";
|
|
15417
|
+
}
|
|
15418
|
+
}
|
|
14990
15419
|
});
|
|
14991
15420
|
this.updatePropertyGridEditorsAvailability();
|
|
14992
15421
|
this.updateVisibilityOfPropertyGridGroups();
|
|
@@ -15000,15 +15429,16 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15000
15429
|
var _this = this;
|
|
15001
15430
|
if (this.showOneCategoryInPropertyGrid) {
|
|
15002
15431
|
var pgTabs_1 = this.propertyGrid.survey.pages.map(function (p) {
|
|
15003
|
-
var action = new
|
|
15432
|
+
var action = new _utils_actions__WEBPACK_IMPORTED_MODULE_14__.MenuButton({
|
|
15004
15433
|
id: p.name,
|
|
15005
|
-
locTooltipName: (0,
|
|
15006
|
-
iconName:
|
|
15434
|
+
locTooltipName: (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_2__.getLocString)("pe.tabs." + p.name),
|
|
15435
|
+
iconName: _property_grid_icons__WEBPACK_IMPORTED_MODULE_13__.pgTabIcons[p.name] || _property_grid_icons__WEBPACK_IMPORTED_MODULE_13__.pgTabIcons["undefined"],
|
|
15007
15436
|
active: p.name === _this.propertyGrid.survey.currentPage.name,
|
|
15008
15437
|
pressed: false,
|
|
15009
15438
|
action: function () {
|
|
15010
15439
|
_this.creator.sidebar.expandSidebar();
|
|
15011
15440
|
_this.propertyGrid.survey.currentPage = p;
|
|
15441
|
+
_this.creator.sidebar.header.subTitle = p.title;
|
|
15012
15442
|
pgTabs_1.forEach(function (i) { return i.active = false; });
|
|
15013
15443
|
action.active = true;
|
|
15014
15444
|
}
|
|
@@ -15016,6 +15446,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15016
15446
|
return action;
|
|
15017
15447
|
});
|
|
15018
15448
|
this.tabControlModel.topToolbar.setItems(pgTabs_1);
|
|
15449
|
+
this.creator.sidebar.header.subTitle = this.propertyGrid.survey.currentPage.title;
|
|
15019
15450
|
}
|
|
15020
15451
|
};
|
|
15021
15452
|
ThemeTabPlugin.prototype.update = function () {
|
|
@@ -15048,7 +15479,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15048
15479
|
});
|
|
15049
15480
|
this.themeModel.onThemeSelected.add(function (sender, options) {
|
|
15050
15481
|
_this.syncTheme(options.theme);
|
|
15051
|
-
_this.resetTheme.enabled = (0,
|
|
15482
|
+
_this.resetTheme.enabled = (0,_theme_model__WEBPACK_IMPORTED_MODULE_8__.getThemeFullName)(sender.defaultSessionTheme) !== (0,_theme_model__WEBPACK_IMPORTED_MODULE_8__.getThemeFullName)(options.theme);
|
|
15052
15483
|
_this.saveThemeAction.enabled = true;
|
|
15053
15484
|
_this.onThemeSelected.fire(_this, options);
|
|
15054
15485
|
if (_this.creator.isAutoSave) {
|
|
@@ -15077,7 +15508,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15077
15508
|
this.themeModel.onAllowModifyTheme.add(function (sender, options) {
|
|
15078
15509
|
_this.onAllowModifyTheme.fire(_this, options);
|
|
15079
15510
|
});
|
|
15080
|
-
this.resetTheme.enabled = (0,
|
|
15511
|
+
this.resetTheme.enabled = (0,_theme_model__WEBPACK_IMPORTED_MODULE_8__.getThemeFullName)(this.themeModel.defaultSessionTheme) !== (0,_theme_model__WEBPACK_IMPORTED_MODULE_8__.getThemeFullName)(this.creator.theme) || this.isModified;
|
|
15081
15512
|
this.updateTabControl();
|
|
15082
15513
|
};
|
|
15083
15514
|
ThemeTabPlugin.prototype.updateAllowModifyTheme = function () {
|
|
@@ -15091,6 +15522,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15091
15522
|
});
|
|
15092
15523
|
};
|
|
15093
15524
|
ThemeTabPlugin.prototype.deactivate = function () {
|
|
15525
|
+
var _a;
|
|
15094
15526
|
if (this.model) {
|
|
15095
15527
|
this.simulatorCssClasses = this.model.survey.css;
|
|
15096
15528
|
this.model.onPropertyChanged.clear();
|
|
@@ -15102,10 +15534,10 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15102
15534
|
this.model = undefined;
|
|
15103
15535
|
this.creator.sidebar.hideSideBarVisibilityControlActions = false;
|
|
15104
15536
|
}
|
|
15537
|
+
this._advancedModeValue = !!((_a = this.propertyGrid.survey.getQuestionByName("advancedMode")) === null || _a === void 0 ? void 0 : _a.value);
|
|
15105
15538
|
this.creator.sidebar.sideAreaComponentName = undefined;
|
|
15106
15539
|
this.creator.sidebar.sideAreaComponentData = undefined;
|
|
15107
|
-
this.creator.sidebar.
|
|
15108
|
-
this.creator.sidebar.headerComponentData = undefined;
|
|
15540
|
+
this.creator.sidebar.header.reset();
|
|
15109
15541
|
this.propertyGridTab.visible = false;
|
|
15110
15542
|
this.testAgainAction.visible = false;
|
|
15111
15543
|
this.invisibleToggleAction && (this.invisibleToggleAction.visible = false);
|
|
@@ -15132,7 +15564,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15132
15564
|
ThemeTabPlugin.prototype.createActions = function () {
|
|
15133
15565
|
var _this = this;
|
|
15134
15566
|
var items = [];
|
|
15135
|
-
this.designerAction = new
|
|
15567
|
+
this.designerAction = new survey_core__WEBPACK_IMPORTED_MODULE_0__.Action({
|
|
15136
15568
|
id: "svd-designer",
|
|
15137
15569
|
iconName: "icon-config",
|
|
15138
15570
|
action: function () { _this.creator.makeNewViewActive("designer"); },
|
|
@@ -15140,20 +15572,20 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15140
15572
|
locTitleName: "ed.designer",
|
|
15141
15573
|
showTitle: false
|
|
15142
15574
|
});
|
|
15143
|
-
this.prevPageAction = new
|
|
15575
|
+
this.prevPageAction = new survey_core__WEBPACK_IMPORTED_MODULE_0__.Action({
|
|
15144
15576
|
id: "prevPage",
|
|
15145
15577
|
iconName: "icon-arrow-left_16x16",
|
|
15146
|
-
needSeparator: new
|
|
15578
|
+
needSeparator: new survey_core__WEBPACK_IMPORTED_MODULE_0__.ComputedUpdater(function () {
|
|
15147
15579
|
return _this.creator.isMobileView;
|
|
15148
15580
|
}),
|
|
15149
15581
|
visible: false
|
|
15150
15582
|
});
|
|
15151
|
-
this.nextPageAction = new
|
|
15583
|
+
this.nextPageAction = new survey_core__WEBPACK_IMPORTED_MODULE_0__.Action({
|
|
15152
15584
|
id: "nextPage",
|
|
15153
15585
|
iconName: "icon-arrow-right_16x16",
|
|
15154
15586
|
visible: false
|
|
15155
15587
|
});
|
|
15156
|
-
this.previewAction = new
|
|
15588
|
+
this.previewAction = new survey_core__WEBPACK_IMPORTED_MODULE_0__.Action({
|
|
15157
15589
|
id: "svd-preview",
|
|
15158
15590
|
iconName: "icon-preview",
|
|
15159
15591
|
active: true,
|
|
@@ -15162,7 +15594,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15162
15594
|
showTitle: false,
|
|
15163
15595
|
action: function () { }
|
|
15164
15596
|
});
|
|
15165
|
-
this.testAgainAction = new
|
|
15597
|
+
this.testAgainAction = new survey_core__WEBPACK_IMPORTED_MODULE_0__.Action({
|
|
15166
15598
|
id: "testSurveyAgain",
|
|
15167
15599
|
visible: false,
|
|
15168
15600
|
locTitleName: "ed.testSurveyAgain",
|
|
@@ -15170,7 +15602,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15170
15602
|
_this.model.testAgain();
|
|
15171
15603
|
}
|
|
15172
15604
|
});
|
|
15173
|
-
this.undoAction = new
|
|
15605
|
+
this.undoAction = new survey_core__WEBPACK_IMPORTED_MODULE_0__.Action({
|
|
15174
15606
|
id: "action-undo-theme",
|
|
15175
15607
|
iconName: "icon-undo",
|
|
15176
15608
|
locTitleName: "ed.undo",
|
|
@@ -15178,7 +15610,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15178
15610
|
visible: this.createVisibleUpdater(),
|
|
15179
15611
|
action: function () { return _this.undo(); }
|
|
15180
15612
|
});
|
|
15181
|
-
this.redoAction = new
|
|
15613
|
+
this.redoAction = new survey_core__WEBPACK_IMPORTED_MODULE_0__.Action({
|
|
15182
15614
|
id: "action-redo-theme",
|
|
15183
15615
|
iconName: "icon-redo",
|
|
15184
15616
|
locTitleName: "ed.redo",
|
|
@@ -15188,7 +15620,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15188
15620
|
});
|
|
15189
15621
|
items.push(this.undoAction);
|
|
15190
15622
|
items.push(this.redoAction);
|
|
15191
|
-
this.saveThemeAction = new
|
|
15623
|
+
this.saveThemeAction = new survey_core__WEBPACK_IMPORTED_MODULE_0__.Action({
|
|
15192
15624
|
id: "svd-save-theme",
|
|
15193
15625
|
iconName: "icon-save",
|
|
15194
15626
|
action: function () {
|
|
@@ -15197,15 +15629,15 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15197
15629
|
},
|
|
15198
15630
|
active: false,
|
|
15199
15631
|
enabled: false,
|
|
15200
|
-
visible: new
|
|
15201
|
-
return (0,
|
|
15632
|
+
visible: new survey_core__WEBPACK_IMPORTED_MODULE_0__.ComputedUpdater(function () {
|
|
15633
|
+
return (0,_utils_utils__WEBPACK_IMPORTED_MODULE_5__.notShortCircuitAnd)(_this.creator.activeTab === "theme", _this.creator.showSaveButton);
|
|
15202
15634
|
}),
|
|
15203
15635
|
locTitleName: "ed.saveTheme",
|
|
15204
15636
|
locTooltipName: "ed.saveThemeTooltip",
|
|
15205
15637
|
showTitle: false
|
|
15206
15638
|
});
|
|
15207
15639
|
items.push(this.saveThemeAction);
|
|
15208
|
-
this.resetTheme = new
|
|
15640
|
+
this.resetTheme = new survey_core__WEBPACK_IMPORTED_MODULE_0__.Action({
|
|
15209
15641
|
id: "svc-reset-theme",
|
|
15210
15642
|
iconName: "icon-reset",
|
|
15211
15643
|
locTitleName: "ed.themeResetButton",
|
|
@@ -15213,15 +15645,15 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15213
15645
|
mode: "small",
|
|
15214
15646
|
visible: this.createVisibleUpdater(),
|
|
15215
15647
|
action: function () {
|
|
15216
|
-
|
|
15648
|
+
survey_core__WEBPACK_IMPORTED_MODULE_0__.settings.confirmActionAsync((0,_editorLocalization__WEBPACK_IMPORTED_MODULE_2__.getLocString)("ed.themeResetConfirmation"), function (confirm) {
|
|
15217
15649
|
if (confirm) {
|
|
15218
15650
|
_this.themeModel.resetTheme();
|
|
15219
15651
|
}
|
|
15220
|
-
}, (0,
|
|
15652
|
+
}, (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_2__.getLocString)("ed.themeResetConfirmationOk"), _editorLocalization__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.currentLocale);
|
|
15221
15653
|
}
|
|
15222
15654
|
});
|
|
15223
15655
|
items.push(this.resetTheme);
|
|
15224
|
-
this.themeSettingsAction = new
|
|
15656
|
+
this.themeSettingsAction = new survey_core__WEBPACK_IMPORTED_MODULE_0__.Action({
|
|
15225
15657
|
id: "svc-theme-settings",
|
|
15226
15658
|
iconName: "icon-theme",
|
|
15227
15659
|
action: function () {
|
|
@@ -15230,14 +15662,14 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15230
15662
|
}
|
|
15231
15663
|
},
|
|
15232
15664
|
visible: this.createVisibleUpdater(),
|
|
15233
|
-
active: new
|
|
15234
|
-
pressed: new
|
|
15665
|
+
active: new survey_core__WEBPACK_IMPORTED_MODULE_0__.ComputedUpdater(function () { return _this.creator.showSidebar; }),
|
|
15666
|
+
pressed: new survey_core__WEBPACK_IMPORTED_MODULE_0__.ComputedUpdater(function () { return _this.creator.showSidebar; }),
|
|
15235
15667
|
locTitleName: "ed.themeSettings",
|
|
15236
15668
|
locTooltipName: "ed.themeSettingsTooltip",
|
|
15237
15669
|
showTitle: false
|
|
15238
15670
|
});
|
|
15239
15671
|
items.push(this.themeSettingsAction);
|
|
15240
|
-
this.importAction = new
|
|
15672
|
+
this.importAction = new survey_core__WEBPACK_IMPORTED_MODULE_0__.Action({
|
|
15241
15673
|
id: "svc-theme-import",
|
|
15242
15674
|
iconName: "icon-load",
|
|
15243
15675
|
locTitleName: "ed.themeImportButton",
|
|
@@ -15264,7 +15696,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15264
15696
|
}
|
|
15265
15697
|
});
|
|
15266
15698
|
items.push(this.importAction);
|
|
15267
|
-
this.exportAction = new
|
|
15699
|
+
this.exportAction = new survey_core__WEBPACK_IMPORTED_MODULE_0__.Action({
|
|
15268
15700
|
id: "svc-theme-export",
|
|
15269
15701
|
iconName: "icon-download",
|
|
15270
15702
|
locTitleName: "ed.themeExportButton",
|
|
@@ -15273,12 +15705,12 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15273
15705
|
mode: "small",
|
|
15274
15706
|
component: "sv-action-bar-item",
|
|
15275
15707
|
action: function () {
|
|
15276
|
-
_this.exportToFile(
|
|
15708
|
+
_this.exportToFile(_creator_settings__WEBPACK_IMPORTED_MODULE_1__.settings.themeEditor.exportFileName);
|
|
15277
15709
|
}
|
|
15278
15710
|
});
|
|
15279
15711
|
items.push(this.exportAction);
|
|
15280
15712
|
if (this.creator.showInvisibleElementsInTestSurveyTab) {
|
|
15281
|
-
this.invisibleToggleAction = new
|
|
15713
|
+
this.invisibleToggleAction = new survey_core__WEBPACK_IMPORTED_MODULE_0__.Action({
|
|
15282
15714
|
id: "showInvisible",
|
|
15283
15715
|
iconName: "icon-invisible-items",
|
|
15284
15716
|
mode: "small",
|
|
@@ -15287,7 +15719,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15287
15719
|
action: function () {
|
|
15288
15720
|
_this.model.showInvisibleElements = !_this.model.showInvisibleElements;
|
|
15289
15721
|
_this.invisibleToggleAction.css = _this.model.showInvisibleElements ? "sv-action-bar-item--active" : "";
|
|
15290
|
-
_this.invisibleToggleAction.title = (0,
|
|
15722
|
+
_this.invisibleToggleAction.title = (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_2__.getLocString)(!_this.model.showInvisibleElements ? "ts.showInvisibleElements" : "ts.hideInvisibleElements");
|
|
15291
15723
|
}
|
|
15292
15724
|
});
|
|
15293
15725
|
}
|
|
@@ -15393,7 +15825,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15393
15825
|
ThemeTabPlugin.prototype.onAvailableThemesChanged = function (availableThemes) {
|
|
15394
15826
|
var themeChooser = this.propertyGrid.survey.getQuestionByName("themeName");
|
|
15395
15827
|
if (!!themeChooser) {
|
|
15396
|
-
themeChooser.choices = availableThemes.map(function (theme) { return ({ value: theme, text: (0,
|
|
15828
|
+
themeChooser.choices = availableThemes.map(function (theme) { return ({ value: theme, text: (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_2__.getLocString)("theme.names." + theme) }); });
|
|
15397
15829
|
if (availableThemes.indexOf(themeChooser.value) === -1) {
|
|
15398
15830
|
this.themeModel.setTheme(this.themeModel.defaultSessionTheme);
|
|
15399
15831
|
}
|
|
@@ -15410,12 +15842,12 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15410
15842
|
*/
|
|
15411
15843
|
ThemeTabPlugin.prototype.addTheme = function (theme, setAsDefault) {
|
|
15412
15844
|
if (setAsDefault === void 0) { setAsDefault = false; }
|
|
15413
|
-
var fullThemeName = (0,
|
|
15414
|
-
|
|
15845
|
+
var fullThemeName = (0,_theme_model__WEBPACK_IMPORTED_MODULE_8__.getThemeFullName)(theme);
|
|
15846
|
+
_themes__WEBPACK_IMPORTED_MODULE_4__.Themes[fullThemeName] = theme;
|
|
15415
15847
|
if (this._availableThemes.indexOf(theme.themeName) === -1) {
|
|
15416
15848
|
if (setAsDefault) {
|
|
15417
15849
|
this.availableThemes = [theme.themeName].concat(this.availableThemes);
|
|
15418
|
-
|
|
15850
|
+
_theme_model__WEBPACK_IMPORTED_MODULE_8__.ThemeModel.DefaultTheme = theme;
|
|
15419
15851
|
}
|
|
15420
15852
|
else {
|
|
15421
15853
|
this.availableThemes = this.availableThemes.concat([theme.themeName]);
|
|
@@ -15436,18 +15868,18 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15436
15868
|
*/
|
|
15437
15869
|
ThemeTabPlugin.prototype.removeTheme = function (themeAccessor, includeModifications) {
|
|
15438
15870
|
if (includeModifications === void 0) { includeModifications = false; }
|
|
15439
|
-
var themeToDelete = typeof themeAccessor === "string" ?
|
|
15440
|
-
var fullThemeName = typeof themeAccessor === "string" ? themeAccessor : (0,
|
|
15871
|
+
var themeToDelete = typeof themeAccessor === "string" ? _themes__WEBPACK_IMPORTED_MODULE_4__.Themes[themeAccessor] : themeAccessor;
|
|
15872
|
+
var fullThemeName = typeof themeAccessor === "string" ? themeAccessor : (0,_theme_model__WEBPACK_IMPORTED_MODULE_8__.getThemeFullName)(themeToDelete);
|
|
15441
15873
|
if (!!themeToDelete) {
|
|
15442
|
-
delete
|
|
15443
|
-
if (
|
|
15444
|
-
|
|
15445
|
-
this.themeModel.defaultSessionTheme =
|
|
15874
|
+
delete _themes__WEBPACK_IMPORTED_MODULE_4__.Themes[fullThemeName];
|
|
15875
|
+
if (_theme_model__WEBPACK_IMPORTED_MODULE_8__.ThemeModel.DefaultTheme === themeToDelete) {
|
|
15876
|
+
_theme_model__WEBPACK_IMPORTED_MODULE_8__.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]];
|
|
15877
|
+
this.themeModel.defaultSessionTheme = _theme_model__WEBPACK_IMPORTED_MODULE_8__.ThemeModel.DefaultTheme;
|
|
15446
15878
|
}
|
|
15447
|
-
var registeredThemeNames = Object.keys(
|
|
15879
|
+
var registeredThemeNames = Object.keys(_themes__WEBPACK_IMPORTED_MODULE_4__.Themes);
|
|
15448
15880
|
var themeModifications = registeredThemeNames.filter(function (themeName) { return themeName.indexOf(themeToDelete.themeName + "-") === 0; });
|
|
15449
15881
|
if (includeModifications && themeModifications.length > 0) {
|
|
15450
|
-
themeModifications.forEach(function (themeModificationFullName) { return delete
|
|
15882
|
+
themeModifications.forEach(function (themeModificationFullName) { return delete _themes__WEBPACK_IMPORTED_MODULE_4__.Themes[themeModificationFullName]; });
|
|
15451
15883
|
}
|
|
15452
15884
|
if (includeModifications || themeModifications.length === 0) {
|
|
15453
15885
|
var themeIndex = this._availableThemes.indexOf(themeToDelete.themeName);
|
|
@@ -15475,7 +15907,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15475
15907
|
return this.getThemeChanges();
|
|
15476
15908
|
};
|
|
15477
15909
|
ThemeTabPlugin.prototype.getThemeChanges = function () {
|
|
15478
|
-
return (0,
|
|
15910
|
+
return (0,_theme_model__WEBPACK_IMPORTED_MODULE_8__.getThemeChanges)(this.creator.theme);
|
|
15479
15911
|
};
|
|
15480
15912
|
Object.defineProperty(ThemeTabPlugin.prototype, "isModified", {
|
|
15481
15913
|
/**
|
|
@@ -15493,7 +15925,7 @@ var ThemeTabPlugin = /** @class */ (function () {
|
|
|
15493
15925
|
enumerable: false,
|
|
15494
15926
|
configurable: true
|
|
15495
15927
|
});
|
|
15496
|
-
ThemeTabPlugin.DefaultTheme =
|
|
15928
|
+
ThemeTabPlugin.DefaultTheme = _themes__WEBPACK_IMPORTED_MODULE_4__.Themes["default-light"];
|
|
15497
15929
|
return ThemeTabPlugin;
|
|
15498
15930
|
}());
|
|
15499
15931
|
|
|
@@ -16691,7 +17123,7 @@ var TranslationGroup = /** @class */ (function (_super) {
|
|
|
16691
17123
|
matrix.rows.forEach(function (row) { return rows.push({ value: row.value, text: row.text }); });
|
|
16692
17124
|
rows.forEach(function (row) {
|
|
16693
17125
|
matrix.columns.forEach(function (col) {
|
|
16694
|
-
var locStr = cells.
|
|
17126
|
+
var locStr = cells.getCellDisplayLocText(row.value, col);
|
|
16695
17127
|
if (!!locStr) {
|
|
16696
17128
|
var name_1 = _editorLocalization__WEBPACK_IMPORTED_MODULE_3__.editorLocalization.getPropertyName(row.text, "") + ", " + _editorLocalization__WEBPACK_IMPORTED_MODULE_3__.editorLocalization.getPropertyName(col.title);
|
|
16697
17129
|
var item = new TranslationItem(name_1, locStr, "", _this.translation, locStr);
|
|
@@ -17436,6 +17868,24 @@ var Translation = /** @class */ (function (_super) {
|
|
|
17436
17868
|
enumerable: false,
|
|
17437
17869
|
configurable: true
|
|
17438
17870
|
});
|
|
17871
|
+
Object.defineProperty(Translation.prototype, "placeholderTitleText", {
|
|
17872
|
+
get: function () {
|
|
17873
|
+
if (this.options.isMobileView)
|
|
17874
|
+
return (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_3__.getLocString)("ed.translationsPlaceholderTitleMobile");
|
|
17875
|
+
return (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_3__.getLocString)("ed.translationsPlaceholderTitle");
|
|
17876
|
+
},
|
|
17877
|
+
enumerable: false,
|
|
17878
|
+
configurable: true
|
|
17879
|
+
});
|
|
17880
|
+
Object.defineProperty(Translation.prototype, "placeholderDescriptionText", {
|
|
17881
|
+
get: function () {
|
|
17882
|
+
if (this.options.isMobileView)
|
|
17883
|
+
return (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_3__.getLocString)("ed.translationsPlaceholderDescriptionMobile");
|
|
17884
|
+
return (0,_editorLocalization__WEBPACK_IMPORTED_MODULE_3__.getLocString)("ed.translationsPlaceholderDescription");
|
|
17885
|
+
},
|
|
17886
|
+
enumerable: false,
|
|
17887
|
+
configurable: true
|
|
17888
|
+
});
|
|
17439
17889
|
Translation.prototype.exportToCSV = function () {
|
|
17440
17890
|
if (!this.root) {
|
|
17441
17891
|
this.reset();
|
|
@@ -18120,7 +18570,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18120
18570
|
/* harmony import */ var _components_string_editor__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(/*! ./components/string-editor */ "./src/components/string-editor.ts");
|
|
18121
18571
|
/* harmony import */ var _components_tabs_theme_plugin__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(/*! ./components/tabs/theme-plugin */ "./src/components/tabs/theme-plugin.ts");
|
|
18122
18572
|
/* harmony import */ var _survey_elements__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(/*! ./survey-elements */ "./src/survey-elements.ts");
|
|
18123
|
-
/* harmony import */ var
|
|
18573
|
+
/* harmony import */ var _expand_collapse_manager__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(/*! ./expand-collapse-manager */ "./src/expand-collapse-manager.ts");
|
|
18574
|
+
/* harmony import */ var _designTabSurveyThemeJSON__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(/*! ./designTabSurveyThemeJSON */ "./src/designTabSurveyThemeJSON.ts");
|
|
18575
|
+
|
|
18124
18576
|
|
|
18125
18577
|
|
|
18126
18578
|
|
|
@@ -18759,6 +19211,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
18759
19211
|
_this.animationEnabled = false;
|
|
18760
19212
|
_this.onStateChanged = _this.addCreatorEvent();
|
|
18761
19213
|
_this.onSurfaceToolbarActionExecuted = _this.addCreatorEvent();
|
|
19214
|
+
_this.expandCollapseManager = new _expand_collapse_manager__WEBPACK_IMPORTED_MODULE_25__.ExpandCollapseManager(_this);
|
|
18762
19215
|
_this.notifier = new survey_core__WEBPACK_IMPORTED_MODULE_1__.Notifier({
|
|
18763
19216
|
root: "svc-notifier",
|
|
18764
19217
|
rootWithButtons: "",
|
|
@@ -19984,6 +20437,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
19984
20437
|
}
|
|
19985
20438
|
this.existingPages = {};
|
|
19986
20439
|
var survey = this.createSurvey({}, "designer", undefined, function (survey) {
|
|
20440
|
+
survey.skeletonHeight = 188;
|
|
19987
20441
|
survey.css = survey_core__WEBPACK_IMPORTED_MODULE_1__.defaultV2Css;
|
|
19988
20442
|
survey.setIsMobile(!!_this.isMobileView);
|
|
19989
20443
|
survey.setDesignMode(true);
|
|
@@ -20299,7 +20753,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
20299
20753
|
});
|
|
20300
20754
|
Object.defineProperty(SurveyCreatorModel.prototype, "designTabSurveyThemeVariables", {
|
|
20301
20755
|
get: function () {
|
|
20302
|
-
return
|
|
20756
|
+
return _designTabSurveyThemeJSON__WEBPACK_IMPORTED_MODULE_26__["default"].cssVariables;
|
|
20303
20757
|
},
|
|
20304
20758
|
enumerable: false,
|
|
20305
20759
|
configurable: true
|
|
@@ -20330,7 +20784,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
20330
20784
|
var survey = this.createSurveyCore(json, reason);
|
|
20331
20785
|
if (reason !== "designer" && reason !== "test" && reason !== "theme") {
|
|
20332
20786
|
survey.fitToContainer = false;
|
|
20333
|
-
survey.applyTheme(
|
|
20787
|
+
survey.applyTheme(_designTabSurveyThemeJSON__WEBPACK_IMPORTED_MODULE_26__["default"]);
|
|
20334
20788
|
survey.gridLayoutEnabled = false;
|
|
20335
20789
|
}
|
|
20336
20790
|
if (reason === "designer" || reason === "modal-question-editor") {
|
|
@@ -20890,19 +21344,26 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
20890
21344
|
return;
|
|
20891
21345
|
clearInterval(this.currentFocusInterval);
|
|
20892
21346
|
clearTimeout(this.currentFocusTimeout);
|
|
20893
|
-
if (this.animationEnabled && this.survey.isLazyRendering) {
|
|
20894
|
-
this.survey.disableLazyRenderingBeforeElement(selEl);
|
|
20895
|
-
}
|
|
20896
21347
|
this.currentFocusTimeout = setTimeout(function () {
|
|
20897
21348
|
_this.currentFocusInterval = setInterval(function () {
|
|
20898
|
-
var _a;
|
|
21349
|
+
var _a, _b;
|
|
20899
21350
|
var el = document.getElementById(selEl.id);
|
|
20900
21351
|
if (!!selEl && (focus || startEdit && (!selEl.hasTitle || selEl.isPanel))) {
|
|
20901
21352
|
if (!el || _this.rootElement.getAnimations({ subtree: true }).filter((function (animation) { return animation.effect.getComputedTiming().activeDuration !== Infinity && (animation.pending || animation.playState !== "finished"); }))[0])
|
|
20902
21353
|
return;
|
|
20903
21354
|
clearInterval(_this.currentFocusInterval);
|
|
20904
21355
|
if (!!el) {
|
|
20905
|
-
_survey_helper__WEBPACK_IMPORTED_MODULE_9__.SurveyHelper.
|
|
21356
|
+
var isNeedScroll = _survey_helper__WEBPACK_IMPORTED_MODULE_9__.SurveyHelper.isNeedScrollIntoView((_a = el.parentElement) !== null && _a !== void 0 ? _a : el, true);
|
|
21357
|
+
if (!!isNeedScroll) {
|
|
21358
|
+
var elementPage = _this.getPageByElement(selEl);
|
|
21359
|
+
var scrollIntoViewOptions_1 = { block: "start", behavior: _this.animationEnabled ? "smooth" : undefined };
|
|
21360
|
+
if (!!elementPage) {
|
|
21361
|
+
_this.survey.scrollElementToTop(selEl, undefined, elementPage, selEl.id, true, scrollIntoViewOptions_1, _this.rootElement);
|
|
21362
|
+
}
|
|
21363
|
+
else {
|
|
21364
|
+
_survey_helper__WEBPACK_IMPORTED_MODULE_9__.SurveyHelper.scrollIntoViewIfNeeded((_b = el.parentElement) !== null && _b !== void 0 ? _b : el, function () { return scrollIntoViewOptions_1; }, true);
|
|
21365
|
+
}
|
|
21366
|
+
}
|
|
20906
21367
|
if (!propertyName && el.parentElement) {
|
|
20907
21368
|
var elToFocus = (typeof (focus) === "string") ? el.parentElement.querySelector(focus) : el.parentElement;
|
|
20908
21369
|
elToFocus && elToFocus.focus({ preventScroll: true });
|
|
@@ -24087,6 +24548,46 @@ var __spreadArray = function (to, from) {
|
|
|
24087
24548
|
};
|
|
24088
24549
|
|
|
24089
24550
|
|
|
24551
|
+
/***/ }),
|
|
24552
|
+
|
|
24553
|
+
/***/ "./src/expand-collapse-manager.ts":
|
|
24554
|
+
/*!****************************************!*\
|
|
24555
|
+
!*** ./src/expand-collapse-manager.ts ***!
|
|
24556
|
+
\****************************************/
|
|
24557
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
24558
|
+
|
|
24559
|
+
"use strict";
|
|
24560
|
+
__webpack_require__.r(__webpack_exports__);
|
|
24561
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24562
|
+
/* harmony export */ ExpandCollapseManager: () => (/* binding */ ExpandCollapseManager)
|
|
24563
|
+
/* harmony export */ });
|
|
24564
|
+
var ExpandCollapseManager = /** @class */ (function () {
|
|
24565
|
+
function ExpandCollapseManager(creator) {
|
|
24566
|
+
var _this = this;
|
|
24567
|
+
this.adorners = [];
|
|
24568
|
+
creator.onSurfaceToolbarActionExecuted.add(function (_, options) {
|
|
24569
|
+
var isCollapseAction = options.action.id == "collapseAll";
|
|
24570
|
+
var isExpandAction = options.action.id == "expandAll";
|
|
24571
|
+
if (isCollapseAction || isExpandAction) {
|
|
24572
|
+
for (var i = _this.adorners.length - 1; i >= 0; i--) {
|
|
24573
|
+
if (_this.adorners[i].allowExpandCollapse) {
|
|
24574
|
+
_this.adorners[i].collapsed = isCollapseAction;
|
|
24575
|
+
}
|
|
24576
|
+
}
|
|
24577
|
+
}
|
|
24578
|
+
});
|
|
24579
|
+
}
|
|
24580
|
+
ExpandCollapseManager.prototype.add = function (adorner) {
|
|
24581
|
+
this.adorners.push(adorner);
|
|
24582
|
+
};
|
|
24583
|
+
ExpandCollapseManager.prototype.remove = function (adorner) {
|
|
24584
|
+
this.adorners.splice(this.adorners.indexOf(adorner), 1);
|
|
24585
|
+
};
|
|
24586
|
+
return ExpandCollapseManager;
|
|
24587
|
+
}());
|
|
24588
|
+
|
|
24589
|
+
|
|
24590
|
+
|
|
24090
24591
|
/***/ }),
|
|
24091
24592
|
|
|
24092
24593
|
/***/ "./src/expressionToDisplayText.ts":
|
|
@@ -25246,6 +25747,18 @@ var enStrings = {
|
|
|
25246
25747
|
pagePlaceHolder: "The page is empty. Drag an element from the toolbox or click the button below.",
|
|
25247
25748
|
imagePlaceHolder: "Drag and drop an image here or click the button below and choose an image to upload",
|
|
25248
25749
|
surveyPlaceHolderMobile: "Click the \"Add Question\" button below to start creating your form.",
|
|
25750
|
+
surveyPlaceholderTitle: "Your form is empty",
|
|
25751
|
+
surveyPlaceholderTitleMobile: "Your form is empty",
|
|
25752
|
+
surveyPlaceholderDescription: "Drag an element from the toolbox or click the button below.",
|
|
25753
|
+
surveyPlaceholderDescriptionMobile: "Drag an element from the toolbox or click the button below.",
|
|
25754
|
+
previewPlaceholderTitle: "No preview",
|
|
25755
|
+
previewPlaceholderTitleMobile: "No preview",
|
|
25756
|
+
previewPlaceholderDescription: "The survey doesn't contain any visible elements.",
|
|
25757
|
+
previewPlaceholderDescriptionMobile: "The survey doesn't contain any visible elements.",
|
|
25758
|
+
translationsPlaceholderTitle: "No strings to translate",
|
|
25759
|
+
translationsPlaceholderTitleMobile: "No strings to translate",
|
|
25760
|
+
translationsPlaceholderDescription: "Add elements to your form or change the strings filter in the toolbar.",
|
|
25761
|
+
translationsPlaceholderDescriptionMobile: "Add elements to your form or change the strings filter in the toolbar.",
|
|
25249
25762
|
pagePlaceHolderMobile: "Click the \"Add Question\" button below to add a new element to the page.",
|
|
25250
25763
|
panelPlaceHolderMobile: "Click the \"Add Question\" button below to add a new element to the panel.",
|
|
25251
25764
|
imagePlaceHolderMobile: "Click the button below and choose an image to upload",
|
|
@@ -25258,6 +25771,10 @@ var enStrings = {
|
|
|
25258
25771
|
lg: {
|
|
25259
25772
|
addNewItem: "Add New Rule",
|
|
25260
25773
|
empty_tab: "Create a rule to customize the flow of the survey.",
|
|
25774
|
+
logicPlaceholderTitle: "No logical rules",
|
|
25775
|
+
logicPlaceholderTitleMobile: "No logical rules",
|
|
25776
|
+
logicPlaceholderDescription: "Create a rule to customize the flow of the survey.",
|
|
25777
|
+
logicPlaceholderDescriptionMobile: "Create a rule to customize the flow of the survey.",
|
|
25261
25778
|
page_visibilityName: "Show/hide page",
|
|
25262
25779
|
page_enableName: "Enable/disable page",
|
|
25263
25780
|
page_requireName: "Make page required",
|
|
@@ -25939,6 +26456,7 @@ var enStrings = {
|
|
|
25939
26456
|
fontSize: "Survey font size",
|
|
25940
26457
|
scale: "Survey scale factor",
|
|
25941
26458
|
cornerRadius: "Corner radius",
|
|
26459
|
+
advancedMode: "Advanced mode",
|
|
25942
26460
|
pageTitle: "Title font",
|
|
25943
26461
|
pageDescription: "Description font",
|
|
25944
26462
|
questionTitle: "Title font",
|
|
@@ -26575,6 +27093,7 @@ var enStrings = {
|
|
|
26575
27093
|
inheritWidthFrom: "The \"Same as container\" option auto-adjusts the header content area width to fit into the HTML element the survey is placed in.",
|
|
26576
27094
|
textAreaWidth: "The width of the header area that contains the survey title and description, measured in pixels.",
|
|
26577
27095
|
overlapEnabled: "Makes the bottom of the header overlaid with the top of the survey.",
|
|
27096
|
+
mobileHeight: "When set to 0, the height is calculated automatically to accommodate the header's content.",
|
|
26578
27097
|
},
|
|
26579
27098
|
panellayoutcolumn: {
|
|
26580
27099
|
effectiveWidth: "Accepts values %.",
|
|
@@ -26662,6 +27181,7 @@ var enStrings = {
|
|
|
26662
27181
|
imageFit: "Image and thumbnail fit",
|
|
26663
27182
|
altText: "Alt text",
|
|
26664
27183
|
height: "Height",
|
|
27184
|
+
mobileHeight: "Height on smartphones",
|
|
26665
27185
|
penColor: "Pen color",
|
|
26666
27186
|
backgroundColor: "Background color",
|
|
26667
27187
|
templateElements: "Template elements",
|
|
@@ -30133,6 +30653,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30133
30653
|
/* harmony export */ PropertyGridEditorString: () => (/* binding */ PropertyGridEditorString),
|
|
30134
30654
|
/* harmony export */ PropertyGridEditorStringArray: () => (/* binding */ PropertyGridEditorStringArray),
|
|
30135
30655
|
/* harmony export */ PropertyGridEditorStringBase: () => (/* binding */ PropertyGridEditorStringBase),
|
|
30656
|
+
/* harmony export */ PropertyGridEditorSwitchToggle: () => (/* binding */ PropertyGridEditorSwitchToggle),
|
|
30136
30657
|
/* harmony export */ PropertyGridEditorText: () => (/* binding */ PropertyGridEditorText),
|
|
30137
30658
|
/* harmony export */ PropertyGridEditorUndefinedBoolean: () => (/* binding */ PropertyGridEditorUndefinedBoolean),
|
|
30138
30659
|
/* harmony export */ PropertyGridLinkEditor: () => (/* binding */ PropertyGridLinkEditor),
|
|
@@ -31455,6 +31976,39 @@ var PropertyGridEditorBoolean = /** @class */ (function (_super) {
|
|
|
31455
31976
|
return PropertyGridEditorBoolean;
|
|
31456
31977
|
}(PropertyGridEditor));
|
|
31457
31978
|
|
|
31979
|
+
var PropertyGridEditorSwitchToggle = /** @class */ (function (_super) {
|
|
31980
|
+
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(PropertyGridEditorSwitchToggle, _super);
|
|
31981
|
+
function PropertyGridEditorSwitchToggle() {
|
|
31982
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
31983
|
+
}
|
|
31984
|
+
PropertyGridEditorSwitchToggle.prototype.fit = function (prop, context) {
|
|
31985
|
+
return prop.type == "switchToggle";
|
|
31986
|
+
};
|
|
31987
|
+
PropertyGridEditorSwitchToggle.prototype.getJSON = function (obj, prop, options) {
|
|
31988
|
+
var res = {
|
|
31989
|
+
type: "boolean",
|
|
31990
|
+
default: false,
|
|
31991
|
+
};
|
|
31992
|
+
var choices = prop.getChoices(obj, function (choices) { });
|
|
31993
|
+
if (Array.isArray(choices) && choices.length >= 2) {
|
|
31994
|
+
var jsonChoices = [];
|
|
31995
|
+
for (var i = 0; i < 2; i++) {
|
|
31996
|
+
var val = choices[i].value || choices[i];
|
|
31997
|
+
jsonChoices.push({ value: val, text: _editorLocalization__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.getPropertyValueInEditor(prop.name, val) });
|
|
31998
|
+
}
|
|
31999
|
+
var defaultValue = prop.getDefaultValue(obj) || jsonChoices[0].value;
|
|
32000
|
+
var indexTrue = defaultValue === choices[1].value ? 1 : 0;
|
|
32001
|
+
var indexFalse = indexTrue === 0 ? 1 : 0;
|
|
32002
|
+
res.valueTrue = jsonChoices[indexTrue].value;
|
|
32003
|
+
res.valueFalse = jsonChoices[indexFalse].value;
|
|
32004
|
+
res.labelTrue = jsonChoices[indexTrue].text;
|
|
32005
|
+
res.labelFalse = jsonChoices[indexFalse].text;
|
|
32006
|
+
}
|
|
32007
|
+
return res;
|
|
32008
|
+
};
|
|
32009
|
+
return PropertyGridEditorSwitchToggle;
|
|
32010
|
+
}(PropertyGridEditor));
|
|
32011
|
+
|
|
31458
32012
|
var PropertyGridEditorUndefinedBoolean = /** @class */ (function (_super) {
|
|
31459
32013
|
(0,tslib__WEBPACK_IMPORTED_MODULE_0__.__extends)(PropertyGridEditorUndefinedBoolean, _super);
|
|
31460
32014
|
function PropertyGridEditorUndefinedBoolean() {
|
|
@@ -32124,6 +32678,7 @@ PropertyGridEditorCollection.register(new PropertyGridEditorColor());
|
|
|
32124
32678
|
PropertyGridEditorCollection.register(new PropertyGridEditorColorWithAlpha());
|
|
32125
32679
|
PropertyGridEditorCollection.register(new PropertyGridEditorDateTime());
|
|
32126
32680
|
PropertyGridEditorCollection.register(new PropertyGridEditorUndefinedBoolean());
|
|
32681
|
+
PropertyGridEditorCollection.register(new PropertyGridEditorSwitchToggle());
|
|
32127
32682
|
survey_core__WEBPACK_IMPORTED_MODULE_1__.QuestionFactory.Instance.registerQuestion("buttongroup", function (name) {
|
|
32128
32683
|
return new survey_core__WEBPACK_IMPORTED_MODULE_1__.QuestionButtonGroupModel(name);
|
|
32129
32684
|
}, false);
|
|
@@ -36666,7 +37221,7 @@ var SurveyHelper = /** @class */ (function () {
|
|
|
36666
37221
|
return false;
|
|
36667
37222
|
return true;
|
|
36668
37223
|
};
|
|
36669
|
-
SurveyHelper.
|
|
37224
|
+
SurveyHelper.isNeedScrollIntoView = function (el, scrollIfElementBiggerThanContainer) {
|
|
36670
37225
|
if (scrollIfElementBiggerThanContainer === void 0) { scrollIfElementBiggerThanContainer = false; }
|
|
36671
37226
|
if (!el || !el.scrollIntoView)
|
|
36672
37227
|
return;
|
|
@@ -36676,15 +37231,23 @@ var SurveyHelper = /** @class */ (function () {
|
|
|
36676
37231
|
return;
|
|
36677
37232
|
var height = scrollableDiv.clientHeight;
|
|
36678
37233
|
if (rect.top < scrollableDiv.offsetTop) {
|
|
36679
|
-
|
|
37234
|
+
return "top";
|
|
36680
37235
|
}
|
|
36681
37236
|
else {
|
|
36682
37237
|
var offsetTop = height + scrollableDiv.offsetTop;
|
|
36683
37238
|
if (rect.bottom > offsetTop && (rect.height < height || scrollIfElementBiggerThanContainer)) {
|
|
36684
|
-
|
|
37239
|
+
return "bottom";
|
|
36685
37240
|
}
|
|
36686
37241
|
}
|
|
36687
37242
|
};
|
|
37243
|
+
SurveyHelper.scrollIntoViewIfNeeded = function (el, getOptions, scrollIfElementBiggerThanContainer) {
|
|
37244
|
+
if (scrollIfElementBiggerThanContainer === void 0) { scrollIfElementBiggerThanContainer = false; }
|
|
37245
|
+
var isNeedScroll = SurveyHelper.isNeedScrollIntoView(el, scrollIfElementBiggerThanContainer);
|
|
37246
|
+
if (!isNeedScroll)
|
|
37247
|
+
return;
|
|
37248
|
+
var isNeedScrollToTop = isNeedScroll === "top";
|
|
37249
|
+
el.scrollIntoView(getOptions ? getOptions(isNeedScrollToTop) : isNeedScrollToTop);
|
|
37250
|
+
};
|
|
36688
37251
|
SurveyHelper.getScrollableDiv = function (el) {
|
|
36689
37252
|
while (!!el) {
|
|
36690
37253
|
if (!!el.id && el.id.indexOf("scrollableDiv") > -1)
|
|
@@ -37930,9 +38493,10 @@ var QuestionToolbox = /** @class */ (function (_super) {
|
|
|
37930
38493
|
var newItems = property.choices.map(function (ch) {
|
|
37931
38494
|
var newJson = (0,tslib__WEBPACK_IMPORTED_MODULE_0__.__assign)({}, parentItem.json);
|
|
37932
38495
|
newJson[propName] = ch;
|
|
38496
|
+
var newId = parentItem.id != ch ? ch : parentItem.id + "-default";
|
|
37933
38497
|
var innerItem = new QuestionToolboxItem({
|
|
37934
|
-
id:
|
|
37935
|
-
name:
|
|
38498
|
+
id: newId,
|
|
38499
|
+
name: newId,
|
|
37936
38500
|
title: _editorLocalization__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.getPropertyValueInEditor(propName, ch),
|
|
37937
38501
|
className: QuestionToolboxItem.getItemClassNames() + " svc-toolbox__item-subtype",
|
|
37938
38502
|
json: newJson,
|
|
@@ -38520,7 +39084,7 @@ var QuestionToolbox = /** @class */ (function (_super) {
|
|
|
38520
39084
|
var iconName = json.iconName ? json.iconName : QuestionToolbox.defaultIconName;
|
|
38521
39085
|
var title = _editorLocalization__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.getString("qt." + json.name);
|
|
38522
39086
|
if (!title || title == json.name) {
|
|
38523
|
-
title = json.title;
|
|
39087
|
+
title = this.getTitleFromJsonTitle(json.title, json.name);
|
|
38524
39088
|
}
|
|
38525
39089
|
if (!title) {
|
|
38526
39090
|
title = json.name;
|
|
@@ -38544,6 +39108,21 @@ var QuestionToolbox = /** @class */ (function (_super) {
|
|
|
38544
39108
|
});
|
|
38545
39109
|
return this.getOrCreateToolboxItem(item);
|
|
38546
39110
|
};
|
|
39111
|
+
QuestionToolbox.prototype.getTitleFromJsonTitle = function (title, name) {
|
|
39112
|
+
if (!title)
|
|
39113
|
+
return title;
|
|
39114
|
+
if (typeof title === "string")
|
|
39115
|
+
return title;
|
|
39116
|
+
if (typeof title !== "object")
|
|
39117
|
+
return title;
|
|
39118
|
+
for (var key in title) {
|
|
39119
|
+
var loc = _editorLocalization__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.locales[key];
|
|
39120
|
+
if (title[key] && loc && loc.qt) {
|
|
39121
|
+
loc.qt[name] = title[key];
|
|
39122
|
+
}
|
|
39123
|
+
}
|
|
39124
|
+
return _editorLocalization__WEBPACK_IMPORTED_MODULE_2__.editorLocalization.getString("qt." + name);
|
|
39125
|
+
};
|
|
38547
39126
|
QuestionToolbox.prototype.getQuestionJSON = function (question) {
|
|
38548
39127
|
var json = new survey_core__WEBPACK_IMPORTED_MODULE_1__.JsonObject().toJsonObject(question);
|
|
38549
39128
|
json.type = question.getType();
|
|
@@ -39671,24 +40250,24 @@ var __webpack_exports__ = {};
|
|
|
39671
40250
|
__webpack_require__.r(__webpack_exports__);
|
|
39672
40251
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
39673
40252
|
/* harmony export */ AceJsonEditorModel: () => (/* reexport safe */ _components_tabs_json_editor_ace__WEBPACK_IMPORTED_MODULE_6__.AceJsonEditorModel),
|
|
39674
|
-
/* harmony export */ ColorCalculator: () => (/* reexport safe */
|
|
40253
|
+
/* harmony export */ ColorCalculator: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.ColorCalculator),
|
|
39675
40254
|
/* harmony export */ CreatorAction: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.CreatorAction),
|
|
39676
40255
|
/* harmony export */ CreatorBase: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.CreatorBase),
|
|
39677
40256
|
/* harmony export */ CreatorEvent: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.CreatorEvent),
|
|
39678
|
-
/* harmony export */ CreatorPreset: () => (/* reexport safe */
|
|
39679
|
-
/* harmony export */ CreatorPresetBase: () => (/* reexport safe */
|
|
39680
|
-
/* harmony export */ CreatorPresetPropertyGrid: () => (/* reexport safe */
|
|
39681
|
-
/* harmony export */ CreatorPresetPropertyGridDefinition: () => (/* reexport safe */
|
|
39682
|
-
/* harmony export */ CreatorPresetTabs: () => (/* reexport safe */
|
|
39683
|
-
/* harmony export */ CreatorPresetToolbox: () => (/* reexport safe */
|
|
39684
|
-
/* harmony export */ CreatorPresetToolboxConfigurator: () => (/* reexport safe */
|
|
39685
|
-
/* harmony export */ CreatorPresetToolboxDefinition: () => (/* reexport safe */
|
|
40257
|
+
/* harmony export */ CreatorPreset: () => (/* reexport safe */ _presets_presets__WEBPACK_IMPORTED_MODULE_83__.CreatorPreset),
|
|
40258
|
+
/* harmony export */ CreatorPresetBase: () => (/* reexport safe */ _presets_presets_base__WEBPACK_IMPORTED_MODULE_82__.CreatorPresetBase),
|
|
40259
|
+
/* harmony export */ CreatorPresetPropertyGrid: () => (/* reexport safe */ _presets_presets_properties__WEBPACK_IMPORTED_MODULE_84__.CreatorPresetPropertyGrid),
|
|
40260
|
+
/* harmony export */ CreatorPresetPropertyGridDefinition: () => (/* reexport safe */ _presets_presets_properties__WEBPACK_IMPORTED_MODULE_84__.CreatorPresetPropertyGridDefinition),
|
|
40261
|
+
/* harmony export */ CreatorPresetTabs: () => (/* reexport safe */ _presets_presets_tabs__WEBPACK_IMPORTED_MODULE_85__.CreatorPresetTabs),
|
|
40262
|
+
/* harmony export */ CreatorPresetToolbox: () => (/* reexport safe */ _presets_presets_toolbox__WEBPACK_IMPORTED_MODULE_86__.CreatorPresetToolbox),
|
|
40263
|
+
/* harmony export */ CreatorPresetToolboxConfigurator: () => (/* reexport safe */ _presets_presets_toolbox__WEBPACK_IMPORTED_MODULE_86__.CreatorPresetToolboxConfigurator),
|
|
40264
|
+
/* harmony export */ CreatorPresetToolboxDefinition: () => (/* reexport safe */ _presets_presets_toolbox__WEBPACK_IMPORTED_MODULE_86__.CreatorPresetToolboxDefinition),
|
|
39686
40265
|
/* harmony export */ CreatorResponsivityManager: () => (/* reexport safe */ _creator_responsivity_manager__WEBPACK_IMPORTED_MODULE_5__.CreatorResponsivityManager),
|
|
39687
40266
|
/* harmony export */ DEFAULT_MONITOR_DPI: () => (/* reexport safe */ _components_simulator__WEBPACK_IMPORTED_MODULE_39__.DEFAULT_MONITOR_DPI),
|
|
39688
40267
|
/* harmony export */ DefaultFonts: () => (/* reexport safe */ _components_tabs_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_13__.DefaultFonts),
|
|
39689
40268
|
/* harmony export */ EditorLocalization: () => (/* reexport safe */ _editorLocalization__WEBPACK_IMPORTED_MODULE_1__.EditorLocalization),
|
|
39690
40269
|
/* harmony export */ EmptySurveyCreatorOptions: () => (/* reexport safe */ _creator_settings__WEBPACK_IMPORTED_MODULE_2__.EmptySurveyCreatorOptions),
|
|
39691
|
-
/* harmony export */ HSBToRGB: () => (/* reexport safe */
|
|
40270
|
+
/* harmony export */ HSBToRGB: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.HSBToRGB),
|
|
39692
40271
|
/* harmony export */ ImageItemValueWrapperViewModel: () => (/* reexport safe */ _components_image_item_value__WEBPACK_IMPORTED_MODULE_37__.ImageItemValueWrapperViewModel),
|
|
39693
40272
|
/* harmony export */ ItemValueWrapperViewModel: () => (/* reexport safe */ _components_item_value__WEBPACK_IMPORTED_MODULE_36__.ItemValueWrapperViewModel),
|
|
39694
40273
|
/* harmony export */ JsonDuplicateNameError: () => (/* reexport safe */ _textWorker__WEBPACK_IMPORTED_MODULE_65__.JsonDuplicateNameError),
|
|
@@ -39697,14 +40276,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39697
40276
|
/* harmony export */ LogoImageViewModel: () => (/* reexport safe */ _components_header_logo_image__WEBPACK_IMPORTED_MODULE_41__.LogoImageViewModel),
|
|
39698
40277
|
/* harmony export */ MatrixCellWrapperEditSurvey: () => (/* reexport safe */ _components_matrix_cell__WEBPACK_IMPORTED_MODULE_38__.MatrixCellWrapperEditSurvey),
|
|
39699
40278
|
/* harmony export */ MatrixCellWrapperViewModel: () => (/* reexport safe */ _components_matrix_cell__WEBPACK_IMPORTED_MODULE_38__.MatrixCellWrapperViewModel),
|
|
39700
|
-
/* harmony export */ MenuButton: () => (/* reexport safe */
|
|
39701
|
-
/* harmony export */ ObjType: () => (/* reexport safe */
|
|
40279
|
+
/* harmony export */ MenuButton: () => (/* reexport safe */ _utils_actions__WEBPACK_IMPORTED_MODULE_74__.MenuButton),
|
|
40280
|
+
/* harmony export */ ObjType: () => (/* reexport safe */ _survey_helper__WEBPACK_IMPORTED_MODULE_77__.ObjType),
|
|
39702
40281
|
/* harmony export */ ObjectSelector: () => (/* reexport safe */ _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_55__.ObjectSelector),
|
|
39703
40282
|
/* harmony export */ ObjectSelectorItem: () => (/* reexport safe */ _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_55__.ObjectSelectorItem),
|
|
39704
40283
|
/* harmony export */ ObjectSelectorModel: () => (/* reexport safe */ _property_grid_object_selector__WEBPACK_IMPORTED_MODULE_55__.ObjectSelectorModel),
|
|
39705
40284
|
/* harmony export */ PageAdorner: () => (/* reexport safe */ _components_page__WEBPACK_IMPORTED_MODULE_30__.PageAdorner),
|
|
39706
40285
|
/* harmony export */ PageNavigatorViewModel: () => (/* reexport safe */ _components_page_navigator_page_navigator__WEBPACK_IMPORTED_MODULE_29__.PageNavigatorViewModel),
|
|
39707
|
-
/* harmony export */ PagesController: () => (/* reexport safe */
|
|
40286
|
+
/* harmony export */ PagesController: () => (/* reexport safe */ _pages_controller__WEBPACK_IMPORTED_MODULE_81__.PagesController),
|
|
39708
40287
|
/* harmony export */ PredefinedColors: () => (/* reexport safe */ _components_tabs_themes__WEBPACK_IMPORTED_MODULE_15__.PredefinedColors),
|
|
39709
40288
|
/* harmony export */ PredefinedThemes: () => (/* reexport safe */ _components_tabs_themes__WEBPACK_IMPORTED_MODULE_15__.PredefinedThemes),
|
|
39710
40289
|
/* harmony export */ PropertyEditorSetupValue: () => (/* reexport safe */ _property_grid__WEBPACK_IMPORTED_MODULE_50__.PropertyEditorSetupValue),
|
|
@@ -39751,6 +40330,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39751
40330
|
/* harmony export */ PropertyGridEditorString: () => (/* reexport safe */ _property_grid__WEBPACK_IMPORTED_MODULE_50__.PropertyGridEditorString),
|
|
39752
40331
|
/* harmony export */ PropertyGridEditorStringArray: () => (/* reexport safe */ _property_grid__WEBPACK_IMPORTED_MODULE_50__.PropertyGridEditorStringArray),
|
|
39753
40332
|
/* harmony export */ PropertyGridEditorStringBase: () => (/* reexport safe */ _property_grid__WEBPACK_IMPORTED_MODULE_50__.PropertyGridEditorStringBase),
|
|
40333
|
+
/* harmony export */ PropertyGridEditorSwitchToggle: () => (/* reexport safe */ _property_grid__WEBPACK_IMPORTED_MODULE_50__.PropertyGridEditorSwitchToggle),
|
|
39754
40334
|
/* harmony export */ PropertyGridEditorText: () => (/* reexport safe */ _property_grid__WEBPACK_IMPORTED_MODULE_50__.PropertyGridEditorText),
|
|
39755
40335
|
/* harmony export */ PropertyGridEditorUndefinedBoolean: () => (/* reexport safe */ _property_grid__WEBPACK_IMPORTED_MODULE_50__.PropertyGridEditorUndefinedBoolean),
|
|
39756
40336
|
/* harmony export */ PropertyGridLinkEditor: () => (/* reexport safe */ _property_grid__WEBPACK_IMPORTED_MODULE_50__.PropertyGridLinkEditor),
|
|
@@ -39780,28 +40360,29 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39780
40360
|
/* harmony export */ QuestionToolbox: () => (/* reexport safe */ _toolbox__WEBPACK_IMPORTED_MODULE_66__.QuestionToolbox),
|
|
39781
40361
|
/* harmony export */ QuestionToolboxCategory: () => (/* reexport safe */ _toolbox__WEBPACK_IMPORTED_MODULE_66__.QuestionToolboxCategory),
|
|
39782
40362
|
/* harmony export */ QuestionToolboxItem: () => (/* reexport safe */ _toolbox__WEBPACK_IMPORTED_MODULE_66__.QuestionToolboxItem),
|
|
39783
|
-
/* harmony export */ RGBToHSB: () => (/* reexport safe */
|
|
40363
|
+
/* harmony export */ RGBToHSB: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.RGBToHSB),
|
|
39784
40364
|
/* harmony export */ ResetValueAdorner: () => (/* reexport safe */ _custom_questions_question_text_with_reset__WEBPACK_IMPORTED_MODULE_49__.ResetValueAdorner),
|
|
39785
|
-
/* harmony export */ ResizeManager: () => (/* reexport safe */
|
|
40365
|
+
/* harmony export */ ResizeManager: () => (/* reexport safe */ _utils_resizer__WEBPACK_IMPORTED_MODULE_78__.ResizeManager),
|
|
39786
40366
|
/* harmony export */ RowViewModel: () => (/* reexport safe */ _components_row__WEBPACK_IMPORTED_MODULE_31__.RowViewModel),
|
|
39787
40367
|
/* harmony export */ SearchManager: () => (/* reexport safe */ _property_grid_search_manager__WEBPACK_IMPORTED_MODULE_59__.SearchManager),
|
|
39788
40368
|
/* harmony export */ SearchManagerPropertyGrid: () => (/* reexport safe */ _property_grid_search_manager__WEBPACK_IMPORTED_MODULE_59__.SearchManagerPropertyGrid),
|
|
39789
40369
|
/* harmony export */ SearchManagerToolbox: () => (/* reexport safe */ _property_grid_search_manager__WEBPACK_IMPORTED_MODULE_59__.SearchManagerToolbox),
|
|
40370
|
+
/* harmony export */ SidebarHeaderModel: () => (/* reexport safe */ _components_side_bar_side_bar_header_model__WEBPACK_IMPORTED_MODULE_68__.SidebarHeaderModel),
|
|
39790
40371
|
/* harmony export */ SidebarModel: () => (/* reexport safe */ _components_side_bar_side_bar_model__WEBPACK_IMPORTED_MODULE_67__.SidebarModel),
|
|
39791
|
-
/* harmony export */ SidebarPageModel: () => (/* reexport safe */
|
|
40372
|
+
/* harmony export */ SidebarPageModel: () => (/* reexport safe */ _components_side_bar_side_bar_page_model__WEBPACK_IMPORTED_MODULE_69__.SidebarPageModel),
|
|
39792
40373
|
/* harmony export */ StringEditorConnector: () => (/* reexport safe */ _components_string_editor__WEBPACK_IMPORTED_MODULE_42__.StringEditorConnector),
|
|
39793
40374
|
/* harmony export */ StringEditorViewModelBase: () => (/* reexport safe */ _components_string_editor__WEBPACK_IMPORTED_MODULE_42__.StringEditorViewModelBase),
|
|
39794
40375
|
/* harmony export */ StringItemsNavigatorBase: () => (/* reexport safe */ _components_string_editor__WEBPACK_IMPORTED_MODULE_42__.StringItemsNavigatorBase),
|
|
39795
40376
|
/* harmony export */ StylesManager: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.StylesManager),
|
|
39796
40377
|
/* harmony export */ SurveyCreatorModel: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.SurveyCreatorModel),
|
|
39797
|
-
/* harmony export */ SurveyHelper: () => (/* reexport safe */
|
|
40378
|
+
/* harmony export */ SurveyHelper: () => (/* reexport safe */ _survey_helper__WEBPACK_IMPORTED_MODULE_77__.SurveyHelper),
|
|
39798
40379
|
/* harmony export */ SurveyJSON5: () => (/* reexport safe */ _json5__WEBPACK_IMPORTED_MODULE_45__.SurveyJSON5),
|
|
39799
40380
|
/* harmony export */ SurveyLogic: () => (/* reexport safe */ _components_tabs_logic__WEBPACK_IMPORTED_MODULE_19__.SurveyLogic),
|
|
39800
40381
|
/* harmony export */ SurveyLogicUI: () => (/* reexport safe */ _components_tabs_logic_ui__WEBPACK_IMPORTED_MODULE_25__.SurveyLogicUI),
|
|
39801
|
-
/* harmony export */ SurveyQuestionEditorDefinition: () => (/* reexport safe */
|
|
39802
|
-
/* harmony export */ SurveyQuestionEditorPropertyDefinition: () => (/* reexport safe */
|
|
39803
|
-
/* harmony export */ SurveyQuestionEditorTabDefinition: () => (/* reexport safe */
|
|
39804
|
-
/* harmony export */ SurveyQuestionProperties: () => (/* reexport safe */
|
|
40382
|
+
/* harmony export */ SurveyQuestionEditorDefinition: () => (/* reexport safe */ _question_editor_definition__WEBPACK_IMPORTED_MODULE_75__.SurveyQuestionEditorDefinition),
|
|
40383
|
+
/* harmony export */ SurveyQuestionEditorPropertyDefinition: () => (/* reexport safe */ _question_editor_properties__WEBPACK_IMPORTED_MODULE_76__.SurveyQuestionEditorPropertyDefinition),
|
|
40384
|
+
/* harmony export */ SurveyQuestionEditorTabDefinition: () => (/* reexport safe */ _question_editor_properties__WEBPACK_IMPORTED_MODULE_76__.SurveyQuestionEditorTabDefinition),
|
|
40385
|
+
/* harmony export */ SurveyQuestionProperties: () => (/* reexport safe */ _question_editor_properties__WEBPACK_IMPORTED_MODULE_76__.SurveyQuestionProperties),
|
|
39805
40386
|
/* harmony export */ SurveyResultsItemModel: () => (/* reexport safe */ _components_results__WEBPACK_IMPORTED_MODULE_40__.SurveyResultsItemModel),
|
|
39806
40387
|
/* harmony export */ SurveyResultsModel: () => (/* reexport safe */ _components_results__WEBPACK_IMPORTED_MODULE_40__.SurveyResultsModel),
|
|
39807
40388
|
/* harmony export */ SurveySimulatorModel: () => (/* reexport safe */ _components_simulator__WEBPACK_IMPORTED_MODULE_39__.SurveySimulatorModel),
|
|
@@ -39809,8 +40390,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39809
40390
|
/* harmony export */ SurveyTextWorkerError: () => (/* reexport safe */ _textWorker__WEBPACK_IMPORTED_MODULE_65__.SurveyTextWorkerError),
|
|
39810
40391
|
/* harmony export */ SurveyTextWorkerJsonError: () => (/* reexport safe */ _textWorker__WEBPACK_IMPORTED_MODULE_65__.SurveyTextWorkerJsonError),
|
|
39811
40392
|
/* harmony export */ SurveyTextWorkerParserError: () => (/* reexport safe */ _textWorker__WEBPACK_IMPORTED_MODULE_65__.SurveyTextWorkerParserError),
|
|
39812
|
-
/* harmony export */ Switcher: () => (/* reexport safe */
|
|
39813
|
-
/* harmony export */ TabControlModel: () => (/* reexport safe */
|
|
40393
|
+
/* harmony export */ Switcher: () => (/* reexport safe */ _components_switcher_switcher__WEBPACK_IMPORTED_MODULE_71__.Switcher),
|
|
40394
|
+
/* harmony export */ TabControlModel: () => (/* reexport safe */ _components_side_bar_tab_control_model__WEBPACK_IMPORTED_MODULE_70__.TabControlModel),
|
|
39814
40395
|
/* harmony export */ TabDesignerPlugin: () => (/* reexport safe */ _components_tabs_designer_plugin__WEBPACK_IMPORTED_MODULE_24__.TabDesignerPlugin),
|
|
39815
40396
|
/* harmony export */ TabDesignerViewModel: () => (/* reexport safe */ _components_tabs_designer__WEBPACK_IMPORTED_MODULE_23__.TabDesignerViewModel),
|
|
39816
40397
|
/* harmony export */ TabJsonEditorAcePlugin: () => (/* reexport safe */ _components_tabs_json_editor_ace__WEBPACK_IMPORTED_MODULE_6__.TabJsonEditorAcePlugin),
|
|
@@ -39829,7 +40410,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39829
40410
|
/* harmony export */ Themes: () => (/* reexport safe */ _components_tabs_themes__WEBPACK_IMPORTED_MODULE_15__.Themes),
|
|
39830
40411
|
/* harmony export */ ToolbarActionContainer: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.ToolbarActionContainer),
|
|
39831
40412
|
/* harmony export */ ToolboxToolViewModel: () => (/* reexport safe */ _components_toolbox_toolbox_tool__WEBPACK_IMPORTED_MODULE_28__.ToolboxToolViewModel),
|
|
39832
|
-
/* harmony export */ Transaction: () => (/* reexport safe */
|
|
40413
|
+
/* harmony export */ Transaction: () => (/* reexport safe */ _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_80__.Transaction),
|
|
39833
40414
|
/* harmony export */ Translation: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_20__.Translation),
|
|
39834
40415
|
/* harmony export */ TranslationEditor: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_20__.TranslationEditor),
|
|
39835
40416
|
/* harmony export */ TranslationForEditor: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_20__.TranslationForEditor),
|
|
@@ -39837,84 +40418,85 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39837
40418
|
/* harmony export */ TranslationItem: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_20__.TranslationItem),
|
|
39838
40419
|
/* harmony export */ TranslationItemBase: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_20__.TranslationItemBase),
|
|
39839
40420
|
/* harmony export */ TranslationItemString: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_20__.TranslationItemString),
|
|
39840
|
-
/* harmony export */ UndoRedoAction: () => (/* reexport safe */
|
|
39841
|
-
/* harmony export */ UndoRedoArrayAction: () => (/* reexport safe */
|
|
39842
|
-
/* harmony export */ UndoRedoManager: () => (/* reexport safe */
|
|
39843
|
-
/* harmony export */ UndoRedoPlugin: () => (/* reexport safe */
|
|
40421
|
+
/* harmony export */ UndoRedoAction: () => (/* reexport safe */ _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_80__.UndoRedoAction),
|
|
40422
|
+
/* harmony export */ UndoRedoArrayAction: () => (/* reexport safe */ _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_80__.UndoRedoArrayAction),
|
|
40423
|
+
/* harmony export */ UndoRedoManager: () => (/* reexport safe */ _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_80__.UndoRedoManager),
|
|
40424
|
+
/* harmony export */ UndoRedoPlugin: () => (/* reexport safe */ _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_79__.UndoRedoPlugin),
|
|
39844
40425
|
/* harmony export */ Version: () => (/* binding */ Version),
|
|
39845
|
-
/* harmony export */ assign: () => (/* reexport safe */
|
|
39846
|
-
/* harmony export */ assignDefaultV2Classes: () => (/* reexport safe */
|
|
40426
|
+
/* harmony export */ assign: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.assign),
|
|
40427
|
+
/* harmony export */ assignDefaultV2Classes: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.assignDefaultV2Classes),
|
|
39847
40428
|
/* harmony export */ backgroundCornerRadiusFromCssVariable: () => (/* reexport safe */ _components_tabs_theme_custom_questions_background_corner_radius__WEBPACK_IMPORTED_MODULE_14__.backgroundCornerRadiusFromCssVariable),
|
|
39848
40429
|
/* harmony export */ backgroundCornerRadiusToCssVariable: () => (/* reexport safe */ _components_tabs_theme_custom_questions_background_corner_radius__WEBPACK_IMPORTED_MODULE_14__.backgroundCornerRadiusToCssVariable),
|
|
39849
|
-
/* harmony export */ capitalize: () => (/* reexport safe */
|
|
39850
|
-
/* harmony export */ clearNewLines: () => (/* reexport safe */
|
|
39851
|
-
/* harmony export */ convertRgbaToString: () => (/* reexport safe */
|
|
39852
|
-
/* harmony export */ copyCssClasses: () => (/* reexport safe */
|
|
39853
|
-
/* harmony export */ copyObject: () => (/* reexport safe */
|
|
40430
|
+
/* harmony export */ capitalize: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.capitalize),
|
|
40431
|
+
/* harmony export */ clearNewLines: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.clearNewLines),
|
|
40432
|
+
/* harmony export */ convertRgbaToString: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.convertRgbaToString),
|
|
40433
|
+
/* harmony export */ copyCssClasses: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.copyCssClasses),
|
|
40434
|
+
/* harmony export */ copyObject: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.copyObject),
|
|
39854
40435
|
/* harmony export */ createBoxShadow: () => (/* reexport safe */ _components_tabs_theme_custom_questions_shadow_effects__WEBPACK_IMPORTED_MODULE_12__.createBoxShadow),
|
|
39855
40436
|
/* harmony export */ createBoxShadowReset: () => (/* reexport safe */ _components_tabs_theme_custom_questions_shadow_effects__WEBPACK_IMPORTED_MODULE_12__.createBoxShadowReset),
|
|
39856
40437
|
/* harmony export */ createColor: () => (/* reexport safe */ _components_tabs_theme_custom_questions_color_alpha__WEBPACK_IMPORTED_MODULE_11__.createColor),
|
|
39857
40438
|
/* harmony export */ createExportCSVAction: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_20__.createExportCSVAction),
|
|
39858
40439
|
/* harmony export */ createImportCSVAction: () => (/* reexport safe */ _components_tabs_translation__WEBPACK_IMPORTED_MODULE_20__.createImportCSVAction),
|
|
39859
|
-
/* harmony export */ defaultPropertyGridDefinition: () => (/* reexport safe */
|
|
40440
|
+
/* harmony export */ defaultPropertyGridDefinition: () => (/* reexport safe */ _question_editor_definition__WEBPACK_IMPORTED_MODULE_75__.defaultPropertyGridDefinition),
|
|
39860
40441
|
/* harmony export */ defaultStrings: () => (/* reexport safe */ _editorLocalization__WEBPACK_IMPORTED_MODULE_1__.defaultStrings),
|
|
39861
40442
|
/* harmony export */ editableStringRendererName: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.editableStringRendererName),
|
|
39862
40443
|
/* harmony export */ editorLocalization: () => (/* reexport safe */ _editorLocalization__WEBPACK_IMPORTED_MODULE_1__.editorLocalization),
|
|
39863
40444
|
/* harmony export */ enStrings: () => (/* reexport safe */ _localization_english__WEBPACK_IMPORTED_MODULE_0__.enStrings),
|
|
39864
|
-
/* harmony export */ findParentNode: () => (/* reexport safe */
|
|
39865
|
-
/* harmony export */ focusFirstControl: () => (/* reexport safe */
|
|
40445
|
+
/* harmony export */ findParentNode: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.findParentNode),
|
|
40446
|
+
/* harmony export */ focusFirstControl: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.focusFirstControl),
|
|
39866
40447
|
/* harmony export */ fontsettingsFromCssVariable: () => (/* reexport safe */ _components_tabs_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_13__.fontsettingsFromCssVariable),
|
|
39867
40448
|
/* harmony export */ fontsettingsToCssVariable: () => (/* reexport safe */ _components_tabs_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_13__.fontsettingsToCssVariable),
|
|
39868
|
-
/* harmony export */ getAcceptedTypesByContentMode: () => (/* reexport safe */
|
|
40449
|
+
/* harmony export */ getAcceptedTypesByContentMode: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.getAcceptedTypesByContentMode),
|
|
39869
40450
|
/* harmony export */ getElementWrapperComponentData: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.getElementWrapperComponentData),
|
|
39870
40451
|
/* harmony export */ getElementWrapperComponentName: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.getElementWrapperComponentName),
|
|
39871
|
-
/* harmony export */ getFirstNonTextElement: () => (/* reexport safe */
|
|
40452
|
+
/* harmony export */ getFirstNonTextElement: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.getFirstNonTextElement),
|
|
39872
40453
|
/* harmony export */ getItemValueWrapperComponentData: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.getItemValueWrapperComponentData),
|
|
39873
40454
|
/* harmony export */ getItemValueWrapperComponentName: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.getItemValueWrapperComponentName),
|
|
39874
40455
|
/* harmony export */ getLocString: () => (/* reexport safe */ _editorLocalization__WEBPACK_IMPORTED_MODULE_1__.getLocString),
|
|
39875
|
-
/* harmony export */ getNextItemText: () => (/* reexport safe */
|
|
39876
|
-
/* harmony export */ getNextItemValue: () => (/* reexport safe */
|
|
39877
|
-
/* harmony export */ getNextValue: () => (/* reexport safe */
|
|
39878
|
-
/* harmony export */ getNodesFromKoComponentInfo: () => (/* reexport safe */
|
|
40456
|
+
/* harmony export */ getNextItemText: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.getNextItemText),
|
|
40457
|
+
/* harmony export */ getNextItemValue: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.getNextItemValue),
|
|
40458
|
+
/* harmony export */ getNextValue: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.getNextValue),
|
|
40459
|
+
/* harmony export */ getNodesFromKoComponentInfo: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.getNodesFromKoComponentInfo),
|
|
39879
40460
|
/* harmony export */ getQuestionContentWrapperComponentName: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.getQuestionContentWrapperComponentName),
|
|
39880
|
-
/* harmony export */ getQuestionFromObj: () => (/* reexport safe */
|
|
39881
|
-
/* harmony export */ ignoreUndoRedo: () => (/* reexport safe */
|
|
39882
|
-
/* harmony export */ imageMimeTypes: () => (/* reexport safe */
|
|
39883
|
-
/* harmony export */ ingectAlpha: () => (/* reexport safe */
|
|
40461
|
+
/* harmony export */ getQuestionFromObj: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.getQuestionFromObj),
|
|
40462
|
+
/* harmony export */ ignoreUndoRedo: () => (/* reexport safe */ _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_79__.ignoreUndoRedo),
|
|
40463
|
+
/* harmony export */ imageMimeTypes: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.imageMimeTypes),
|
|
40464
|
+
/* harmony export */ ingectAlpha: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.ingectAlpha),
|
|
39884
40465
|
/* harmony export */ initLogicOperator: () => (/* reexport safe */ _components_tabs_logic__WEBPACK_IMPORTED_MODULE_19__.initLogicOperator),
|
|
39885
40466
|
/* harmony export */ initialSettingsAllowShowEmptyTitleInDesignMode: () => (/* reexport safe */ _components_tabs_designer__WEBPACK_IMPORTED_MODULE_23__.initialSettingsAllowShowEmptyTitleInDesignMode),
|
|
39886
40467
|
/* harmony export */ initializeDesignTimeSurveyModel: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.initializeDesignTimeSurveyModel),
|
|
39887
|
-
/* harmony export */ isPropertyVisible: () => (/* reexport safe */
|
|
40468
|
+
/* harmony export */ isPropertyVisible: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.isPropertyVisible),
|
|
39888
40469
|
/* harmony export */ isStringEditable: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.isStringEditable),
|
|
39889
40470
|
/* harmony export */ isTextInput: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.isTextInput),
|
|
39890
40471
|
/* harmony export */ localization: () => (/* reexport safe */ _editorLocalization__WEBPACK_IMPORTED_MODULE_1__.editorLocalization),
|
|
39891
40472
|
/* harmony export */ logicCss: () => (/* reexport safe */ _components_tabs_logic_theme__WEBPACK_IMPORTED_MODULE_27__.logicCss),
|
|
39892
|
-
/* harmony export */ notShortCircuitAnd: () => (/* reexport safe */
|
|
40473
|
+
/* harmony export */ notShortCircuitAnd: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.notShortCircuitAnd),
|
|
39893
40474
|
/* harmony export */ parseBoxShadow: () => (/* reexport safe */ _components_tabs_theme_custom_questions_shadow_effects__WEBPACK_IMPORTED_MODULE_12__.parseBoxShadow),
|
|
39894
|
-
/* harmony export */ parseColor: () => (/* reexport safe */
|
|
39895
|
-
/* harmony export */ parseRgbaFromString: () => (/* reexport safe */
|
|
39896
|
-
/* harmony export */ propertyExists: () => (/* reexport safe */
|
|
40475
|
+
/* harmony export */ parseColor: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.parseColor),
|
|
40476
|
+
/* harmony export */ parseRgbaFromString: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.parseRgbaFromString),
|
|
40477
|
+
/* harmony export */ propertyExists: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.propertyExists),
|
|
39897
40478
|
/* harmony export */ propertyGridCss: () => (/* reexport safe */ _property_grid_theme_property_grid__WEBPACK_IMPORTED_MODULE_62__.propertyGridCss),
|
|
39898
40479
|
/* harmony export */ registerAdorner: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.registerAdorner),
|
|
39899
40480
|
/* harmony export */ removeAdorners: () => (/* reexport safe */ _creator_base__WEBPACK_IMPORTED_MODULE_4__.removeAdorners),
|
|
39900
|
-
/* harmony export */ roundTo2Decimals: () => (/* reexport safe */
|
|
39901
|
-
/* harmony export */ saveToFileHandler: () => (/* reexport safe */
|
|
39902
|
-
/* harmony export */ scrollElementIntoView: () => (/* reexport safe */
|
|
39903
|
-
/* harmony export */ select: () => (/* reexport safe */
|
|
40481
|
+
/* harmony export */ roundTo2Decimals: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.roundTo2Decimals),
|
|
40482
|
+
/* harmony export */ saveToFileHandler: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.saveToFileHandler),
|
|
40483
|
+
/* harmony export */ scrollElementIntoView: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.scrollElementIntoView),
|
|
40484
|
+
/* harmony export */ select: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.select),
|
|
39904
40485
|
/* harmony export */ setSurveyJSONForPropertyGrid: () => (/* reexport safe */ _property_grid__WEBPACK_IMPORTED_MODULE_50__.setSurveyJSONForPropertyGrid),
|
|
39905
40486
|
/* harmony export */ settings: () => (/* reexport safe */ _creator_settings__WEBPACK_IMPORTED_MODULE_2__.settings),
|
|
39906
40487
|
/* harmony export */ simulatorDevices: () => (/* reexport safe */ _components_simulator__WEBPACK_IMPORTED_MODULE_39__.simulatorDevices),
|
|
39907
40488
|
/* harmony export */ svgBundle: () => (/* reexport safe */ _svgbundle__WEBPACK_IMPORTED_MODULE_64__.svgBundle),
|
|
39908
40489
|
/* harmony export */ themeModelPropertyGridDefinition: () => (/* reexport safe */ _components_tabs_theme_model_definition__WEBPACK_IMPORTED_MODULE_18__.themeModelPropertyGridDefinition),
|
|
39909
|
-
/* harmony export */ toggleHovered: () => (/* reexport safe */
|
|
40490
|
+
/* harmony export */ toggleHovered: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.toggleHovered),
|
|
39910
40491
|
/* harmony export */ translationCss: () => (/* reexport safe */ _components_tabs_translation_theme__WEBPACK_IMPORTED_MODULE_21__.translationCss),
|
|
39911
|
-
/* harmony export */
|
|
39912
|
-
/* harmony export */
|
|
40492
|
+
/* harmony export */ trimBoxShadowValue: () => (/* reexport safe */ _components_tabs_theme_custom_questions_shadow_effects__WEBPACK_IMPORTED_MODULE_12__.trimBoxShadowValue),
|
|
40493
|
+
/* harmony export */ trimEmptyFields: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.trimEmptyFields),
|
|
40494
|
+
/* harmony export */ undoRedoTransaction: () => (/* reexport safe */ _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_79__.undoRedoTransaction),
|
|
39913
40495
|
/* harmony export */ updateBackgroundCornerRadiusJSON: () => (/* reexport safe */ _components_tabs_theme_custom_questions_background_corner_radius__WEBPACK_IMPORTED_MODULE_14__.updateBackgroundCornerRadiusJSON),
|
|
39914
40496
|
/* harmony export */ updateFontSettingsJSON: () => (/* reexport safe */ _components_tabs_theme_custom_questions_font_settings__WEBPACK_IMPORTED_MODULE_13__.updateFontSettingsJSON),
|
|
39915
40497
|
/* harmony export */ updateShadowEffectsJSON: () => (/* reexport safe */ _components_tabs_theme_custom_questions_shadow_effects__WEBPACK_IMPORTED_MODULE_12__.updateShadowEffectsJSON),
|
|
39916
40498
|
/* harmony export */ updatecoloralphaJSON: () => (/* reexport safe */ _components_tabs_theme_custom_questions_color_alpha__WEBPACK_IMPORTED_MODULE_11__.updatecoloralphaJSON),
|
|
39917
|
-
/* harmony export */ wrapTextByCurlyBraces: () => (/* reexport safe */
|
|
40499
|
+
/* harmony export */ wrapTextByCurlyBraces: () => (/* reexport safe */ _utils_utils__WEBPACK_IMPORTED_MODULE_73__.wrapTextByCurlyBraces)
|
|
39918
40500
|
/* harmony export */ });
|
|
39919
40501
|
/* harmony import */ var _localization_english__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../localization/english */ "./src/localization/english.ts");
|
|
39920
40502
|
/* harmony import */ var _editorLocalization__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../editorLocalization */ "./src/editorLocalization.ts");
|
|
@@ -39984,28 +40566,29 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
39984
40566
|
/* harmony import */ var _textWorker__WEBPACK_IMPORTED_MODULE_65__ = __webpack_require__(/*! ../textWorker */ "./src/textWorker.ts");
|
|
39985
40567
|
/* harmony import */ var _toolbox__WEBPACK_IMPORTED_MODULE_66__ = __webpack_require__(/*! ../toolbox */ "./src/toolbox.ts");
|
|
39986
40568
|
/* harmony import */ var _components_side_bar_side_bar_model__WEBPACK_IMPORTED_MODULE_67__ = __webpack_require__(/*! ../components/side-bar/side-bar-model */ "./src/components/side-bar/side-bar-model.ts");
|
|
39987
|
-
/* harmony import */ var
|
|
39988
|
-
/* harmony import */ var
|
|
39989
|
-
/* harmony import */ var
|
|
39990
|
-
/* harmony import */ var
|
|
39991
|
-
/* harmony import */ var
|
|
39992
|
-
/* harmony import */ var
|
|
39993
|
-
/* harmony import */ var
|
|
39994
|
-
/* harmony import */ var
|
|
39995
|
-
/* harmony import */ var
|
|
39996
|
-
/* harmony import */ var
|
|
39997
|
-
/* harmony import */ var
|
|
39998
|
-
/* harmony import */ var
|
|
39999
|
-
/* harmony import */ var
|
|
40000
|
-
/* harmony import */ var
|
|
40001
|
-
/* harmony import */ var
|
|
40002
|
-
/* harmony import */ var
|
|
40003
|
-
/* harmony import */ var
|
|
40004
|
-
/* harmony import */ var
|
|
40005
|
-
/* harmony import */ var
|
|
40006
|
-
/* harmony import */ var
|
|
40569
|
+
/* harmony import */ var _components_side_bar_side_bar_header_model__WEBPACK_IMPORTED_MODULE_68__ = __webpack_require__(/*! ../components/side-bar/side-bar-header-model */ "./src/components/side-bar/side-bar-header-model.ts");
|
|
40570
|
+
/* harmony import */ var _components_side_bar_side_bar_page_model__WEBPACK_IMPORTED_MODULE_69__ = __webpack_require__(/*! ../components/side-bar/side-bar-page-model */ "./src/components/side-bar/side-bar-page-model.ts");
|
|
40571
|
+
/* harmony import */ var _components_side_bar_tab_control_model__WEBPACK_IMPORTED_MODULE_70__ = __webpack_require__(/*! ../components/side-bar/tab-control-model */ "./src/components/side-bar/tab-control-model.ts");
|
|
40572
|
+
/* harmony import */ var _components_switcher_switcher__WEBPACK_IMPORTED_MODULE_71__ = __webpack_require__(/*! ../components/switcher/switcher */ "./src/components/switcher/switcher.ts");
|
|
40573
|
+
/* harmony import */ var _utils_events__WEBPACK_IMPORTED_MODULE_72__ = __webpack_require__(/*! ../utils/events */ "./src/utils/events.ts");
|
|
40574
|
+
/* harmony import */ var _utils_utils__WEBPACK_IMPORTED_MODULE_73__ = __webpack_require__(/*! ../utils/utils */ "./src/utils/utils.ts");
|
|
40575
|
+
/* harmony import */ var _utils_actions__WEBPACK_IMPORTED_MODULE_74__ = __webpack_require__(/*! ../utils/actions */ "./src/utils/actions.ts");
|
|
40576
|
+
/* harmony import */ var _question_editor_definition__WEBPACK_IMPORTED_MODULE_75__ = __webpack_require__(/*! ../question-editor/definition */ "./src/question-editor/definition.ts");
|
|
40577
|
+
/* harmony import */ var _question_editor_properties__WEBPACK_IMPORTED_MODULE_76__ = __webpack_require__(/*! ../question-editor/properties */ "./src/question-editor/properties.ts");
|
|
40578
|
+
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_77__ = __webpack_require__(/*! ../survey-helper */ "./src/survey-helper.ts");
|
|
40579
|
+
/* harmony import */ var _utils_resizer__WEBPACK_IMPORTED_MODULE_78__ = __webpack_require__(/*! ../utils/resizer */ "./src/utils/resizer.ts");
|
|
40580
|
+
/* harmony import */ var _plugins_undo_redo__WEBPACK_IMPORTED_MODULE_79__ = __webpack_require__(/*! ../plugins/undo-redo */ "./src/plugins/undo-redo/index.ts");
|
|
40581
|
+
/* harmony import */ var _plugins_undo_redo_undo_redo_manager__WEBPACK_IMPORTED_MODULE_80__ = __webpack_require__(/*! ../plugins/undo-redo/undo-redo-manager */ "./src/plugins/undo-redo/undo-redo-manager.ts");
|
|
40582
|
+
/* harmony import */ var _pages_controller__WEBPACK_IMPORTED_MODULE_81__ = __webpack_require__(/*! ../pages-controller */ "./src/pages-controller.ts");
|
|
40583
|
+
/* harmony import */ var _presets_presets_base__WEBPACK_IMPORTED_MODULE_82__ = __webpack_require__(/*! ../presets/presets-base */ "./src/presets/presets-base.ts");
|
|
40584
|
+
/* harmony import */ var _presets_presets__WEBPACK_IMPORTED_MODULE_83__ = __webpack_require__(/*! ../presets/presets */ "./src/presets/presets.ts");
|
|
40585
|
+
/* harmony import */ var _presets_presets_properties__WEBPACK_IMPORTED_MODULE_84__ = __webpack_require__(/*! ../presets/presets-properties */ "./src/presets/presets-properties.ts");
|
|
40586
|
+
/* harmony import */ var _presets_presets_tabs__WEBPACK_IMPORTED_MODULE_85__ = __webpack_require__(/*! ../presets/presets-tabs */ "./src/presets/presets-tabs.ts");
|
|
40587
|
+
/* harmony import */ var _presets_presets_toolbox__WEBPACK_IMPORTED_MODULE_86__ = __webpack_require__(/*! ../presets/presets-toolbox */ "./src/presets/presets-toolbox.ts");
|
|
40588
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_87__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
40589
|
+
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_87___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_87__);
|
|
40007
40590
|
var Version;
|
|
40008
|
-
Version = "".concat("1.12.
|
|
40591
|
+
Version = "".concat("1.12.4");
|
|
40009
40592
|
//should be loaded before other styles for easier override
|
|
40010
40593
|
__webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-button.scss");
|
|
40011
40594
|
|
|
@@ -40095,6 +40678,7 @@ __webpack_require__(/*! ../utils/context-button.scss */ "./src/utils/context-but
|
|
|
40095
40678
|
|
|
40096
40679
|
|
|
40097
40680
|
|
|
40681
|
+
|
|
40098
40682
|
|
|
40099
40683
|
|
|
40100
40684
|
__webpack_require__(/*! ../components/property-panel/property-panel-item.scss */ "./src/components/property-panel/property-panel-item.scss");
|
|
@@ -40109,9 +40693,10 @@ __webpack_require__(/*! ../components/side-bar/tab-control.scss */ "./src/compon
|
|
|
40109
40693
|
__webpack_require__(/*! ../property-grid-theme/property-grid.scss */ "./src/property-grid-theme/property-grid.scss");
|
|
40110
40694
|
__webpack_require__(/*! ../utils/design.scss */ "./src/utils/design.scss");
|
|
40111
40695
|
__webpack_require__(/*! ../utils/layout.scss */ "./src/utils/layout.scss");
|
|
40696
|
+
__webpack_require__(/*! ../custom-questions/boolean-switch.scss */ "./src/custom-questions/boolean-switch.scss");
|
|
40112
40697
|
|
|
40113
|
-
|
|
40114
|
-
(0,
|
|
40698
|
+
survey_core__WEBPACK_IMPORTED_MODULE_87__.settings.supportCreatorV2 = true;
|
|
40699
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_87__.checkLibraryVersion)("".concat("1.12.4"), "survey-creator-core");
|
|
40115
40700
|
|
|
40116
40701
|
})();
|
|
40117
40702
|
|