survey-creator-core 2.0.4 → 2.0.5
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/fesm/i18n/arabic.mjs +1 -1
- package/fesm/i18n/bulgarian.mjs +1 -1
- package/fesm/i18n/burmese.mjs +1 -1
- package/fesm/i18n/croatian.mjs +1 -1
- package/fesm/i18n/czech.mjs +1 -1
- package/fesm/i18n/danish.mjs +1 -1
- package/fesm/i18n/dutch.mjs +1 -1
- package/fesm/i18n/english.mjs +1 -1
- package/fesm/i18n/finnish.mjs +1 -1
- package/fesm/i18n/french.mjs +1 -1
- package/fesm/i18n/german.mjs +1 -1
- package/fesm/i18n/hebrew.mjs +1 -1
- package/fesm/i18n/hungarian.mjs +1 -1
- package/fesm/i18n/index.mjs +1 -1
- package/fesm/i18n/indonesian.mjs +1 -1
- package/fesm/i18n/italian.mjs +1 -1
- package/fesm/i18n/japanese.mjs +1 -1
- package/fesm/i18n/korean.mjs +1 -1
- package/fesm/i18n/malay.mjs +1 -1
- package/fesm/i18n/mongolian.mjs +1 -1
- package/fesm/i18n/norwegian.mjs +1 -1
- package/fesm/i18n/persian.mjs +1 -1
- package/fesm/i18n/polish.mjs +1 -1
- package/fesm/i18n/portuguese.mjs +1 -1
- package/fesm/i18n/romanian.mjs +1 -1
- package/fesm/i18n/russian.mjs +1 -1
- package/fesm/i18n/simplified-chinese.mjs +1 -1
- package/fesm/i18n/slovak.mjs +1 -1
- package/fesm/i18n/slovenian.mjs +1 -1
- package/fesm/i18n/spanish.mjs +1 -1
- package/fesm/i18n/swedish.mjs +1 -1
- package/fesm/i18n/tajik.mjs +1 -1
- package/fesm/i18n/thai.mjs +1 -1
- package/fesm/i18n/traditional-chinese.mjs +1 -1
- package/fesm/i18n/turkish.mjs +1 -1
- package/fesm/survey-creator-core.i18n.mjs +1 -1
- package/fesm/survey-creator-core.mjs +225 -85
- package/fesm/survey-creator-core.mjs.map +1 -1
- package/fesm/themes/index.mjs +1 -1
- 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/burmese.js +1 -1
- package/i18n/burmese.min.js.LICENSE.txt +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js.LICENSE.txt +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js.LICENSE.txt +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js.LICENSE.txt +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js.LICENSE.txt +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js.LICENSE.txt +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js.LICENSE.txt +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js.LICENSE.txt +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js.LICENSE.txt +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js.LICENSE.txt +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js.LICENSE.txt +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js.LICENSE.txt +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js.LICENSE.txt +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js.LICENSE.txt +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js.LICENSE.txt +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js.LICENSE.txt +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js.LICENSE.txt +1 -1
- package/i18n/mongolian.js +1 -1
- package/i18n/mongolian.min.js.LICENSE.txt +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js.LICENSE.txt +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js.LICENSE.txt +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js.LICENSE.txt +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js.LICENSE.txt +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js.LICENSE.txt +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js.LICENSE.txt +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js.LICENSE.txt +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js.LICENSE.txt +1 -1
- package/i18n/slovenian.js +1 -1
- package/i18n/slovenian.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 +24 -4
- package/survey-creator-core.fontless.css +23 -3
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +3 -3
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js.LICENSE.txt +1 -1
- package/survey-creator-core.js +280 -94
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +4 -4
- package/survey-creator-core.min.js +1 -1
- package/survey-creator-core.min.js.LICENSE.txt +1 -1
- package/themes/default-contrast.js +1 -1
- package/themes/default-contrast.min.js.LICENSE.txt +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js.LICENSE.txt +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js.LICENSE.txt +1 -1
- package/themes/sc2020.js +1 -1
- package/themes/sc2020.min.js.LICENSE.txt +1 -1
- package/typings/components/tabs/logic-theme.d.ts +5 -0
- package/typings/components/tabs/translation-theme.d.ts +5 -0
- package/typings/creator-base.d.ts +1 -1
- package/typings/creator-theme/styles-manager.d.ts +0 -13
- package/typings/property-grid/condition.d.ts +1 -0
- package/typings/property-grid/icons.d.ts +1 -0
- package/typings/property-grid-theme/property-grid.d.ts +19 -10
- package/typings/utils/global_variables_utils.d.ts +31 -0
package/survey-creator-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* SurveyJS Creator v2.0.
|
|
2
|
+
* SurveyJS Creator v2.0.5
|
|
3
3
|
* (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* Github: https://github.com/surveyjs/survey-creator
|
|
5
5
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -10098,6 +10098,8 @@ var logicCss = {
|
|
|
10098
10098
|
edit: ""
|
|
10099
10099
|
},
|
|
10100
10100
|
panel: {
|
|
10101
|
+
withFrame: "",
|
|
10102
|
+
nested: "",
|
|
10101
10103
|
enter: "sl-element-wrapper--enter",
|
|
10102
10104
|
leave: "sl-element-wrapper--leave",
|
|
10103
10105
|
title: "",
|
|
@@ -10135,7 +10137,8 @@ var logicCss = {
|
|
|
10135
10137
|
panelWrapperList: "sl-panel-wrapper--list",
|
|
10136
10138
|
panelWrapperInRow: "sl-panel-wrapper--in-row",
|
|
10137
10139
|
panelWrapperEnter: "sl-panel-wrapper--enter",
|
|
10138
|
-
panelWrapperLeave: "sl-panel-wrapper--leave"
|
|
10140
|
+
panelWrapperLeave: "sl-panel-wrapper--leave",
|
|
10141
|
+
footerButtonsContainer: "sl-paneldynamic__buttons-container",
|
|
10139
10142
|
},
|
|
10140
10143
|
progress: "",
|
|
10141
10144
|
progressBar: "",
|
|
@@ -10154,6 +10157,8 @@ var logicCss = {
|
|
|
10154
10157
|
rowDelayedEnter: "sl-row--delayed-enter",
|
|
10155
10158
|
rowMultiple: "sl-row--multiple",
|
|
10156
10159
|
question: {
|
|
10160
|
+
withFrame: "",
|
|
10161
|
+
nested: "",
|
|
10157
10162
|
mainRoot: "sl-question",
|
|
10158
10163
|
flowRoot: "",
|
|
10159
10164
|
asCell: "",
|
|
@@ -12462,6 +12467,10 @@ var PreviewViewModel = /** @class */ (function (_super) {
|
|
|
12462
12467
|
_this.survey.pages[i].passed = true;
|
|
12463
12468
|
}
|
|
12464
12469
|
},
|
|
12470
|
+
onShow: function () {
|
|
12471
|
+
var listModel = _this.selectPageAction.popupModel.contentComponentData.model;
|
|
12472
|
+
listModel.selectedItem = _this.getCurrentPageItem();
|
|
12473
|
+
},
|
|
12465
12474
|
cssClass: "svc-creator-popup",
|
|
12466
12475
|
cssClasses: _list_theme__WEBPACK_IMPORTED_MODULE_6__.listComponentCss,
|
|
12467
12476
|
verticalPosition: "top",
|
|
@@ -16175,6 +16184,8 @@ var translationCss = {
|
|
|
16175
16184
|
edit: "st-btn st-footer__edit-btn"
|
|
16176
16185
|
},
|
|
16177
16186
|
panel: {
|
|
16187
|
+
nested: "",
|
|
16188
|
+
withFrame: "",
|
|
16178
16189
|
title: "st-title st-panel__title",
|
|
16179
16190
|
titleExpandable: "st-panel__title--expandable",
|
|
16180
16191
|
titleOnExpand: "st-panel__title--expanded",
|
|
@@ -16188,6 +16199,7 @@ var translationCss = {
|
|
|
16188
16199
|
requiredMark: "st-panel__required-text"
|
|
16189
16200
|
},
|
|
16190
16201
|
paneldynamic: {
|
|
16202
|
+
nested: "",
|
|
16191
16203
|
root: "st-paneldynamic",
|
|
16192
16204
|
navigation: "st-paneldynamic__navigation",
|
|
16193
16205
|
title: "st-title st-question__title",
|
|
@@ -16219,6 +16231,8 @@ var translationCss = {
|
|
|
16219
16231
|
pageDescription: "st-description st-page__description",
|
|
16220
16232
|
row: "st-row st-clearfix",
|
|
16221
16233
|
question: {
|
|
16234
|
+
nested: "",
|
|
16235
|
+
withFrame: "",
|
|
16222
16236
|
mainRoot: "st-element st-question st-row__question",
|
|
16223
16237
|
flowRoot: "st-element st-question st-row__question st-row__question--flow",
|
|
16224
16238
|
asCell: "st-table__cell",
|
|
@@ -18645,6 +18659,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
18645
18659
|
/* harmony import */ var _components_creator_scss__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(/*! ./components/creator.scss */ "./src/components/creator.scss");
|
|
18646
18660
|
/* harmony import */ var _components_string_editor_scss__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(/*! ./components/string-editor.scss */ "./src/components/string-editor.scss");
|
|
18647
18661
|
/* harmony import */ var _creator_theme_creator_scss__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(/*! ./creator-theme/creator.scss */ "./src/creator-theme/creator.scss");
|
|
18662
|
+
/* harmony import */ var _utils_global_variables_utils__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(/*! ./utils/global_variables_utils */ "./src/utils/global_variables_utils.ts");
|
|
18663
|
+
|
|
18648
18664
|
|
|
18649
18665
|
|
|
18650
18666
|
|
|
@@ -19016,7 +19032,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
19016
19032
|
*/
|
|
19017
19033
|
_this.onPageGetFooterActions = _this.addCreatorEvent();
|
|
19018
19034
|
/**
|
|
19019
|
-
|
|
19035
|
+
*@deprecated Use the [`onPageGetFooterActions`](https://surveyjs.io/survey-creator/documentation/api-reference/survey-creator#onPageGetFooterActions) event instead.
|
|
19020
19036
|
*/
|
|
19021
19037
|
_this.onGetPageActions = _this.onPageGetFooterActions;
|
|
19022
19038
|
/**
|
|
@@ -21880,7 +21896,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
21880
21896
|
this.selectionChanged(this.selectedElement, propertyName, !!focus);
|
|
21881
21897
|
}
|
|
21882
21898
|
var selEl = this.getSelectedSurveyElement();
|
|
21883
|
-
if (oldValue !== element && !!
|
|
21899
|
+
if (oldValue !== element && !!_utils_global_variables_utils__WEBPACK_IMPORTED_MODULE_36__.DomDocumentHelper.getDocument() && !!selEl) {
|
|
21884
21900
|
this.focusElement(element, focus, selEl, propertyName, startEdit);
|
|
21885
21901
|
}
|
|
21886
21902
|
};
|
|
@@ -21932,7 +21948,7 @@ var SurveyCreatorModel = /** @class */ (function (_super) {
|
|
|
21932
21948
|
};
|
|
21933
21949
|
SurveyCreatorModel.prototype.getHtmlElementForScroll = function (element) {
|
|
21934
21950
|
var id = element.getType() === "matrixdropdowncolumn" ? element.colOwner.id : element.id;
|
|
21935
|
-
return
|
|
21951
|
+
return _utils_global_variables_utils__WEBPACK_IMPORTED_MODULE_36__.DomDocumentHelper.getDocument().getElementById(id);
|
|
21936
21952
|
};
|
|
21937
21953
|
SurveyCreatorModel.prototype.getSelectedSurveyElement = function () {
|
|
21938
21954
|
var sel = this.selectedElement;
|
|
@@ -23420,6 +23436,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
23420
23436
|
/* harmony export */ CreatorResponsivityManager: () => (/* binding */ CreatorResponsivityManager)
|
|
23421
23437
|
/* harmony export */ });
|
|
23422
23438
|
/* harmony import */ var _responsivity_scss__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./responsivity.scss */ "./src/responsivity.scss");
|
|
23439
|
+
/* harmony import */ var _utils_global_variables_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./utils/global_variables_utils */ "./src/utils/global_variables_utils.ts");
|
|
23440
|
+
|
|
23423
23441
|
|
|
23424
23442
|
var CreatorResponsivityManager = /** @class */ (function () {
|
|
23425
23443
|
function CreatorResponsivityManager(container, creator) {
|
|
@@ -23467,8 +23485,9 @@ var CreatorResponsivityManager = /** @class */ (function () {
|
|
|
23467
23485
|
this.creator.allowShowSurfaceToolbar = toolboxVisible;
|
|
23468
23486
|
};
|
|
23469
23487
|
CreatorResponsivityManager.prototype.findCorrectParent = function (container) {
|
|
23470
|
-
|
|
23471
|
-
|
|
23488
|
+
var _window = _utils_global_variables_utils__WEBPACK_IMPORTED_MODULE_1__.DomWindowHelper.getWindow();
|
|
23489
|
+
if (!!(_window === null || _window === void 0 ? void 0 : _window.getComputedStyle)) {
|
|
23490
|
+
if (_window.getComputedStyle(container.parentElement).display === "inline") {
|
|
23472
23491
|
return this.findCorrectParent(container.parentElement);
|
|
23473
23492
|
}
|
|
23474
23493
|
}
|
|
@@ -23525,7 +23544,8 @@ var CreatorResponsivityManager = /** @class */ (function () {
|
|
|
23525
23544
|
var _a;
|
|
23526
23545
|
if (!!this.container && !!this.container.querySelector) {
|
|
23527
23546
|
var surveyContainer = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelector(".svc-tab-designer_content");
|
|
23528
|
-
|
|
23547
|
+
var _window = _utils_global_variables_utils__WEBPACK_IMPORTED_MODULE_1__.DomWindowHelper.getWindow();
|
|
23548
|
+
if (!!surveyContainer && _window && typeof _window.getComputedStyle === "function") {
|
|
23529
23549
|
var conputedStyles = getComputedStyle(surveyContainer);
|
|
23530
23550
|
var paddingLeft = 0;
|
|
23531
23551
|
var paddingRight = 0;
|
|
@@ -24370,76 +24390,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24370
24390
|
"use strict";
|
|
24371
24391
|
__webpack_require__.r(__webpack_exports__);
|
|
24372
24392
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
24373
|
-
/* harmony export */ CreatorStylesManager: () => (/* binding */ CreatorStylesManager)
|
|
24374
|
-
/* harmony export */ DomDocumentHelper: () => (/* binding */ DomDocumentHelper)
|
|
24393
|
+
/* harmony export */ CreatorStylesManager: () => (/* binding */ CreatorStylesManager)
|
|
24375
24394
|
/* harmony export */ });
|
|
24376
|
-
var
|
|
24377
|
-
function DomDocumentHelper() {
|
|
24378
|
-
}
|
|
24379
|
-
DomDocumentHelper.isAvailable = function () {
|
|
24380
|
-
return "undefined" !== typeof document;
|
|
24381
|
-
};
|
|
24382
|
-
DomDocumentHelper.getBody = function () {
|
|
24383
|
-
if (!DomDocumentHelper.isAvailable())
|
|
24384
|
-
return;
|
|
24385
|
-
return document.body;
|
|
24386
|
-
};
|
|
24387
|
-
DomDocumentHelper.getDocumentElement = function () {
|
|
24388
|
-
if (!DomDocumentHelper.isAvailable())
|
|
24389
|
-
return;
|
|
24390
|
-
return document.documentElement;
|
|
24391
|
-
};
|
|
24392
|
-
DomDocumentHelper.getDocument = function () {
|
|
24393
|
-
if (!DomDocumentHelper.isAvailable())
|
|
24394
|
-
return;
|
|
24395
|
-
return document;
|
|
24396
|
-
};
|
|
24397
|
-
DomDocumentHelper.getCookie = function () {
|
|
24398
|
-
if (!DomDocumentHelper.isAvailable())
|
|
24399
|
-
return;
|
|
24400
|
-
return document.cookie;
|
|
24401
|
-
};
|
|
24402
|
-
DomDocumentHelper.setCookie = function (newCookie) {
|
|
24403
|
-
if (!DomDocumentHelper.isAvailable())
|
|
24404
|
-
return;
|
|
24405
|
-
document.cookie = newCookie;
|
|
24406
|
-
};
|
|
24407
|
-
DomDocumentHelper.activeElementBlur = function () {
|
|
24408
|
-
if (!DomDocumentHelper.isAvailable())
|
|
24409
|
-
return;
|
|
24410
|
-
var activeElement = document.activeElement;
|
|
24411
|
-
if (!!activeElement && !!activeElement.blur) {
|
|
24412
|
-
activeElement.blur();
|
|
24413
|
-
}
|
|
24414
|
-
};
|
|
24415
|
-
DomDocumentHelper.createElement = function (tagName) {
|
|
24416
|
-
if (!DomDocumentHelper.isAvailable())
|
|
24417
|
-
return;
|
|
24418
|
-
return document.createElement(tagName);
|
|
24419
|
-
};
|
|
24420
|
-
DomDocumentHelper.getComputedStyle = function (elt) {
|
|
24421
|
-
if (!DomDocumentHelper.isAvailable())
|
|
24422
|
-
return new CSSStyleDeclaration();
|
|
24423
|
-
return document.defaultView.getComputedStyle(elt);
|
|
24424
|
-
};
|
|
24425
|
-
DomDocumentHelper.addEventListener = function (type, listener) {
|
|
24426
|
-
if (!DomDocumentHelper.isAvailable())
|
|
24427
|
-
return;
|
|
24428
|
-
document.addEventListener(type, listener);
|
|
24429
|
-
};
|
|
24430
|
-
DomDocumentHelper.removeEventListener = function (type, listener) {
|
|
24431
|
-
if (!DomDocumentHelper.isAvailable())
|
|
24432
|
-
return;
|
|
24433
|
-
document.removeEventListener(type, listener);
|
|
24434
|
-
};
|
|
24435
|
-
return DomDocumentHelper;
|
|
24436
|
-
}());
|
|
24395
|
+
/* harmony import */ var _utils_global_variables_utils__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../utils/global_variables_utils */ "./src/utils/global_variables_utils.ts");
|
|
24437
24396
|
|
|
24438
24397
|
var CreatorStylesManager = /** @class */ (function () {
|
|
24439
24398
|
function CreatorStylesManager() {
|
|
24440
24399
|
}
|
|
24441
24400
|
CreatorStylesManager.findSheet = function (styleSheetId) {
|
|
24442
|
-
if (!DomDocumentHelper.isAvailable())
|
|
24401
|
+
if (!_utils_global_variables_utils__WEBPACK_IMPORTED_MODULE_0__.DomDocumentHelper.isAvailable())
|
|
24443
24402
|
return null;
|
|
24444
24403
|
for (var i = 0; i < document.styleSheets.length; i++) {
|
|
24445
24404
|
if (!!document.styleSheets[i].ownerNode && document.styleSheets[i].ownerNode["id"] === styleSheetId) {
|
|
@@ -24449,9 +24408,9 @@ var CreatorStylesManager = /** @class */ (function () {
|
|
|
24449
24408
|
return null;
|
|
24450
24409
|
};
|
|
24451
24410
|
CreatorStylesManager.createSheet = function (styleSheetId) {
|
|
24452
|
-
if (!DomDocumentHelper.isAvailable())
|
|
24411
|
+
if (!_utils_global_variables_utils__WEBPACK_IMPORTED_MODULE_0__.DomDocumentHelper.isAvailable())
|
|
24453
24412
|
return null;
|
|
24454
|
-
var style = DomDocumentHelper.createElement("style");
|
|
24413
|
+
var style = _utils_global_variables_utils__WEBPACK_IMPORTED_MODULE_0__.DomDocumentHelper.createElement("style");
|
|
24455
24414
|
style.id = styleSheetId;
|
|
24456
24415
|
style.appendChild(new Text(""));
|
|
24457
24416
|
document.head.appendChild(style);
|
|
@@ -25370,6 +25329,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
25370
25329
|
/* harmony import */ var _survey_helper__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./survey-helper */ "./src/survey-helper.ts");
|
|
25371
25330
|
/* harmony import */ var _components_survey_element_adorner_base__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/survey-element-adorner-base */ "./src/components/survey-element-adorner-base.ts");
|
|
25372
25331
|
/* harmony import */ var _drag_drop_enums__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./drag-drop-enums */ "./src/drag-drop-enums.ts");
|
|
25332
|
+
/* harmony import */ var _utils_global_variables_utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./utils/global_variables_utils */ "./src/utils/global_variables_utils.ts");
|
|
25333
|
+
|
|
25373
25334
|
|
|
25374
25335
|
|
|
25375
25336
|
|
|
@@ -25538,9 +25499,9 @@ var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
|
25538
25499
|
return draggedElement.toolboxItemTitle || _super.prototype.getShortcutText.call(this, draggedElement);
|
|
25539
25500
|
};
|
|
25540
25501
|
DragDropSurveyElements.prototype.createDraggedElementShortcut = function (text, draggedElementNode, event) {
|
|
25541
|
-
var draggedElementShortcut =
|
|
25502
|
+
var draggedElementShortcut = _utils_global_variables_utils__WEBPACK_IMPORTED_MODULE_6__.DomDocumentHelper.createElement("div");
|
|
25542
25503
|
draggedElementShortcut.style.display = "flex";
|
|
25543
|
-
var textSpan =
|
|
25504
|
+
var textSpan = _utils_global_variables_utils__WEBPACK_IMPORTED_MODULE_6__.DomDocumentHelper.createElement("span");
|
|
25544
25505
|
textSpan.className = "svc-dragged-element-shortcut__text";
|
|
25545
25506
|
textSpan.innerText = text;
|
|
25546
25507
|
if (this.draggedElement.toolboxItemIconName) {
|
|
@@ -25551,7 +25512,7 @@ var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
|
25551
25512
|
return draggedElementShortcut;
|
|
25552
25513
|
};
|
|
25553
25514
|
DragDropSurveyElements.prototype.createDraggedElementIcon = function () {
|
|
25554
|
-
var span =
|
|
25515
|
+
var span = _utils_global_variables_utils__WEBPACK_IMPORTED_MODULE_6__.DomDocumentHelper.createElement("span");
|
|
25555
25516
|
span.className = "svc-dragged-element-shortcut__icon";
|
|
25556
25517
|
var iconName = (0,survey_core__WEBPACK_IMPORTED_MODULE_1__.getIconNameFromProxy)(this.draggedElement.toolboxItemIconName);
|
|
25557
25518
|
var svgString = "<svg class=\"sv-svg-icon\" role=\"img\"><use xlink:href=\"#".concat(iconName, "\"></use></svg>");
|
|
@@ -25834,7 +25795,8 @@ var DragDropSurveyElements = /** @class */ (function (_super) {
|
|
|
25834
25795
|
this.banDropHere();
|
|
25835
25796
|
return;
|
|
25836
25797
|
}
|
|
25837
|
-
|
|
25798
|
+
var _document = _utils_global_variables_utils__WEBPACK_IMPORTED_MODULE_6__.DomDocumentHelper.getDocument();
|
|
25799
|
+
if (_document && _document.elementsFromPoint && this.isDragInsideItself(_document.elementsFromPoint(event.clientX, event.clientY))) {
|
|
25838
25800
|
this.banDropHere();
|
|
25839
25801
|
return null;
|
|
25840
25802
|
}
|
|
@@ -27094,6 +27056,7 @@ var map = {
|
|
|
27094
27056
|
"./pg-layout-24x24.svg": "./src/images-v1/pg-layout-24x24.svg",
|
|
27095
27057
|
"./pg-logo-24x24.svg": "./src/images-v1/pg-logo-24x24.svg",
|
|
27096
27058
|
"./pg-navigation-24x24.svg": "./src/images-v1/pg-navigation-24x24.svg",
|
|
27059
|
+
"./pg-numbering-24x24.svg": "./src/images-v1/pg-numbering-24x24.svg",
|
|
27097
27060
|
"./pg-pages-24x24.svg": "./src/images-v1/pg-pages-24x24.svg",
|
|
27098
27061
|
"./pg-questiondesign-24x24.svg": "./src/images-v1/pg-questiondesign-24x24.svg",
|
|
27099
27062
|
"./pg-quiz-24x24.svg": "./src/images-v1/pg-quiz-24x24.svg",
|
|
@@ -28231,6 +28194,16 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
28231
28194
|
|
|
28232
28195
|
/***/ }),
|
|
28233
28196
|
|
|
28197
|
+
/***/ "./src/images-v1/pg-numbering-24x24.svg":
|
|
28198
|
+
/*!**********************************************!*\
|
|
28199
|
+
!*** ./src/images-v1/pg-numbering-24x24.svg ***!
|
|
28200
|
+
\**********************************************/
|
|
28201
|
+
/***/ ((module) => {
|
|
28202
|
+
|
|
28203
|
+
module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M20 2H4C2.9 2 2 2.9 2 4V20C2 21.1 2.9 22 4 22H20C21.1 22 22 21.1 22 20V4C22 2.9 21.1 2 20 2ZM4 20V4H20V20H4ZM9 11.54H11.6L11.36 13.25H6.3V11.78L6.38 11.71C8.61 9.54 9.3 8.75 9.3 8.03C9.3 7.59 9.07 7.37 8.62 7.37C8.17 7.37 7.9 7.54 7.57 7.97L7.42 8.17L6.07 7.14L6.21 6.94C6.84 6.07 7.68 5.65 8.77 5.65C10.59 5.65 11.41 6.77 11.41 7.89C11.41 9.01 10.86 9.85 9.01 11.55L9 11.54Z\"></path></svg>"
|
|
28204
|
+
|
|
28205
|
+
/***/ }),
|
|
28206
|
+
|
|
28234
28207
|
/***/ "./src/images-v1/pg-pages-24x24.svg":
|
|
28235
28208
|
/*!******************************************!*\
|
|
28236
28209
|
!*** ./src/images-v1/pg-pages-24x24.svg ***!
|
|
@@ -29370,6 +29343,7 @@ var map = {
|
|
|
29370
29343
|
"./pg-layout-24x24.svg": "./src/images-v2/pg-layout-24x24.svg",
|
|
29371
29344
|
"./pg-logo-24x24.svg": "./src/images-v2/pg-logo-24x24.svg",
|
|
29372
29345
|
"./pg-navigation-24x24.svg": "./src/images-v2/pg-navigation-24x24.svg",
|
|
29346
|
+
"./pg-numbering-24x24.svg": "./src/images-v2/pg-numbering-24x24.svg",
|
|
29373
29347
|
"./pg-pages-24x24.svg": "./src/images-v2/pg-pages-24x24.svg",
|
|
29374
29348
|
"./pg-questiondesign-24x24.svg": "./src/images-v2/pg-questiondesign-24x24.svg",
|
|
29375
29349
|
"./pg-quiz-24x24.svg": "./src/images-v2/pg-quiz-24x24.svg",
|
|
@@ -30517,6 +30491,16 @@ module.exports = "<svg viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\
|
|
|
30517
30491
|
|
|
30518
30492
|
/***/ }),
|
|
30519
30493
|
|
|
30494
|
+
/***/ "./src/images-v2/pg-numbering-24x24.svg":
|
|
30495
|
+
/*!**********************************************!*\
|
|
30496
|
+
!*** ./src/images-v2/pg-numbering-24x24.svg ***!
|
|
30497
|
+
\**********************************************/
|
|
30498
|
+
/***/ ((module) => {
|
|
30499
|
+
|
|
30500
|
+
module.exports = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\"><path d=\"M19 21.75H5C3.48 21.75 2.25 20.52 2.25 19V5C2.25 3.48 3.48 2.25 5 2.25H19C20.52 2.25 21.75 3.48 21.75 5V19C21.75 20.52 20.52 21.75 19 21.75ZM5 3.75C4.31 3.75 3.75 4.31 3.75 5V19C3.75 19.69 4.31 20.25 5 20.25H19C19.69 20.25 20.25 19.69 20.25 19V5C20.25 4.31 19.69 3.75 19 3.75H5ZM11.15 7.88C11.15 9 10.46 9.91 8.35 11.79H11.31L11.14 13H6.54V11.88C8.81 9.67 9.54 8.85 9.54 8.02C9.54 7.46 9.21 7.11 8.61 7.11C8.09 7.11 7.73 7.32 7.36 7.81L6.4 7.08C6.92 6.36 7.64 5.89 8.76 5.89C10.34 5.89 11.15 6.82 11.15 7.88Z\"></path></svg>"
|
|
30501
|
+
|
|
30502
|
+
/***/ }),
|
|
30503
|
+
|
|
30520
30504
|
/***/ "./src/images-v2/pg-pages-24x24.svg":
|
|
30521
30505
|
/*!******************************************!*\
|
|
30522
30506
|
!*** ./src/images-v2/pg-pages-24x24.svg ***!
|
|
@@ -35271,6 +35255,8 @@ var propertyGridCss = {
|
|
|
35271
35255
|
edit: "spg-btn spg-footer__edit-btn"
|
|
35272
35256
|
},
|
|
35273
35257
|
panel: {
|
|
35258
|
+
withFrame: "",
|
|
35259
|
+
nested: "",
|
|
35274
35260
|
expandableAnimating: "",
|
|
35275
35261
|
title: "spg-title spg-panel__title",
|
|
35276
35262
|
titleBar: "sd-action-title-bar spg-action-title-bar",
|
|
@@ -35289,6 +35275,7 @@ var propertyGridCss = {
|
|
|
35289
35275
|
requiredMark: "spg-panel__required-text"
|
|
35290
35276
|
},
|
|
35291
35277
|
paneldynamic: {
|
|
35278
|
+
nested: "",
|
|
35292
35279
|
mainRoot: "spg-question spg-row__question",
|
|
35293
35280
|
root: "spg-paneldynamic",
|
|
35294
35281
|
navigation: "spg-paneldynamic__navigation",
|
|
@@ -35308,7 +35295,9 @@ var propertyGridCss = {
|
|
|
35308
35295
|
progressBar: "spg-progress__bar",
|
|
35309
35296
|
progressText: "spg-paneldynamic__progress-text",
|
|
35310
35297
|
panelFooter: "spg-panel__footer",
|
|
35311
|
-
separator: "spg-paneldynamic__separator"
|
|
35298
|
+
separator: "spg-paneldynamic__separator",
|
|
35299
|
+
footer: "spg-paneldynamic__footer",
|
|
35300
|
+
footerButtonsContainer: "spg-paneldynamic__buttons-container",
|
|
35312
35301
|
},
|
|
35313
35302
|
progress: "spg-progress spg-body__progress",
|
|
35314
35303
|
progressBar: "spg-progress__bar",
|
|
@@ -35327,6 +35316,8 @@ var propertyGridCss = {
|
|
|
35327
35316
|
rowDelayedEnter: "spg-row--delayed-fade-in",
|
|
35328
35317
|
rowMultiple: "spg-row--multiple",
|
|
35329
35318
|
question: {
|
|
35319
|
+
withFrame: "",
|
|
35320
|
+
nested: "",
|
|
35330
35321
|
mainRoot: "spg-question spg-row__question",
|
|
35331
35322
|
flowRoot: "spg-question spg-row__question spg-row__question--flow",
|
|
35332
35323
|
asCell: "spg-table__cell",
|
|
@@ -35352,8 +35343,9 @@ var propertyGridCss = {
|
|
|
35352
35343
|
footer: "spg-question__footer",
|
|
35353
35344
|
formGroup: "spg-question__form-group",
|
|
35354
35345
|
hasError: "",
|
|
35355
|
-
|
|
35356
|
-
confirmDialog: "spg-popup--confirm sv-popup--confirm svc-creator-popup"
|
|
35346
|
+
readOnly: "sd-question--readonly spg-question--disabled",
|
|
35347
|
+
confirmDialog: "spg-popup--confirm sv-popup--confirm svc-creator-popup",
|
|
35348
|
+
errorsContainerBottom: "spg-question__erbox--below-question",
|
|
35357
35349
|
},
|
|
35358
35350
|
image: { root: "spg-image", image: "sv_image_image" },
|
|
35359
35351
|
error: {
|
|
@@ -35368,7 +35360,7 @@ var propertyGridCss = {
|
|
|
35368
35360
|
item: "spg-item spg-checkbox spg-selectbase__item",
|
|
35369
35361
|
itemSelectAll: "spg-checkbox--selectall",
|
|
35370
35362
|
itemNone: "spg-checkbox--none",
|
|
35371
|
-
|
|
35363
|
+
itemReadOnly: "spg-item--disabled spg-checkbox--disabled",
|
|
35372
35364
|
itemChecked: "spg-checkbox--checked",
|
|
35373
35365
|
itemHover: "spg-checkbox--allowhover",
|
|
35374
35366
|
itemInline: "spg-selectbase__item--inline",
|
|
@@ -35393,7 +35385,7 @@ var propertyGridCss = {
|
|
|
35393
35385
|
itemInline: "spg-selectbase__item--inline",
|
|
35394
35386
|
label: "spg-selectbase__label",
|
|
35395
35387
|
labelChecked: "",
|
|
35396
|
-
|
|
35388
|
+
itemReadOnly: "spg-item--disabled spg-radio--disabled",
|
|
35397
35389
|
itemChecked: "spg-radio--checked",
|
|
35398
35390
|
itemHover: "spg-radio--allowhover",
|
|
35399
35391
|
itemControl: "spg-visuallyhidden spg-item__control",
|
|
@@ -35410,7 +35402,7 @@ var propertyGridCss = {
|
|
|
35410
35402
|
checkboxItem: "spg-checkbox",
|
|
35411
35403
|
checkboxItemChecked: "spg-checkbox--checked",
|
|
35412
35404
|
checkboxitemIndeterminate: "spg-checkbox--indeterminate",
|
|
35413
|
-
|
|
35405
|
+
checkboxItemReadOnly: "spg-checkbox--disabled",
|
|
35414
35406
|
svgIconId: "#icon-v2check",
|
|
35415
35407
|
checkboxLabel: "spg-selectbase__label",
|
|
35416
35408
|
controlCheckbox: "spg-checkbox__control",
|
|
@@ -35447,7 +35439,8 @@ var propertyGridCss = {
|
|
|
35447
35439
|
chevronButton: "sd-dropdown_chevron-button spg-dropdown_chevron-button",
|
|
35448
35440
|
chevronButtonSvg: "sd-dropdown_chevron-button-svg spg-dropdown_chevron-button-svg",
|
|
35449
35441
|
chevronButtonIconId: "icon-chevron",
|
|
35450
|
-
cleanButton: "spg-dropdown__clean-button spg-input__edit-button"
|
|
35442
|
+
cleanButton: "spg-dropdown__clean-button spg-input__edit-button",
|
|
35443
|
+
controlReadOnly: "sd-input--disabled sd-input--readonly"
|
|
35451
35444
|
},
|
|
35452
35445
|
buttongroup: {
|
|
35453
35446
|
root: "spg-button-group",
|
|
@@ -35459,14 +35452,14 @@ var propertyGridCss = {
|
|
|
35459
35452
|
itemSelected: "spg-button-group__item--selected",
|
|
35460
35453
|
itemDisabled: "spg-button-group__item--disabled",
|
|
35461
35454
|
itemControl: "sv-visuallyhidden",
|
|
35462
|
-
|
|
35455
|
+
readOnly: "spg-question--disabled"
|
|
35463
35456
|
},
|
|
35464
35457
|
imagepicker: {
|
|
35465
35458
|
root: "spg-imagepicker",
|
|
35466
35459
|
item: "spg-imagepicker__item",
|
|
35467
35460
|
itemInline: "spg-imagepicker__item--inline",
|
|
35468
35461
|
itemChecked: "spg-imagepicker__item--checked",
|
|
35469
|
-
|
|
35462
|
+
itemReadOnly: "spg-imagepicker__item--disabled",
|
|
35470
35463
|
itemHover: "spg-imagepicker__item--allowhover",
|
|
35471
35464
|
label: "spg-imagepicker__label",
|
|
35472
35465
|
itemControl: "spg-imagepicker__control",
|
|
@@ -35484,13 +35477,13 @@ var propertyGridCss = {
|
|
|
35484
35477
|
label: "spg-item spg-radio spg-matrix__label",
|
|
35485
35478
|
itemValue: "spg-visuallyhidden spg-item__control spg-radio__control",
|
|
35486
35479
|
itemChecked: "spg-radio--checked",
|
|
35487
|
-
|
|
35480
|
+
itemReadOnly: "spg-item--disabled spg-radio--disabled",
|
|
35488
35481
|
itemHover: "spg-radio--allowhover",
|
|
35489
35482
|
materialDecorator: "spg-item__decorator spg-radio__decorator",
|
|
35490
35483
|
itemDecorator: "spg-item__svg spg-radio__svg",
|
|
35491
35484
|
cellText: "spg-matrix__text",
|
|
35492
35485
|
cellTextSelected: "spg-matrix__text--checked",
|
|
35493
|
-
|
|
35486
|
+
cellTextReadOnly: "spg-matrix__text--disabled",
|
|
35494
35487
|
},
|
|
35495
35488
|
matrixdropdown: {
|
|
35496
35489
|
tableWrapper: "spg-table-wrapper",
|
|
@@ -35543,7 +35536,7 @@ var propertyGridCss = {
|
|
|
35543
35536
|
minText: "spg-rating__min-text",
|
|
35544
35537
|
itemText: "spg-rating__item-text",
|
|
35545
35538
|
maxText: "spg-rating__max-text",
|
|
35546
|
-
|
|
35539
|
+
readOnly: "spg-rating--disabled"
|
|
35547
35540
|
},
|
|
35548
35541
|
comment: {
|
|
35549
35542
|
root: "spg-input spg-comment",
|
|
@@ -35564,7 +35557,7 @@ var propertyGridCss = {
|
|
|
35564
35557
|
fileInput: "spg-visuallyhidden",
|
|
35565
35558
|
noFileChosen: "spg-description spg-file__no-file-chosen",
|
|
35566
35559
|
chooseFile: "spg-btn spg-file__choose-btn",
|
|
35567
|
-
|
|
35560
|
+
readOnly: "spg-file__choose-btn--disabled",
|
|
35568
35561
|
removeButton: "spg-hidden",
|
|
35569
35562
|
removeButtonBottom: "spg-btn spg-file__clean-btn",
|
|
35570
35563
|
removeFile: "spg-hidden",
|
|
@@ -36943,6 +36936,9 @@ var ConditionEditor = /** @class */ (function (_super) {
|
|
|
36943
36936
|
(0,_utils_creator_utils__WEBPACK_IMPORTED_MODULE_6__.assignDefaultClasses)(cssClasses, question.getType());
|
|
36944
36937
|
cssClasses.mainRoot += " svc-logic-question-value sd-element--with-frame";
|
|
36945
36938
|
cssClasses.error.root = "svc-logic-operator__error";
|
|
36939
|
+
if (question.getType() == "boolean" || question.getType() == "rating") {
|
|
36940
|
+
cssClasses.root = cssClasses.root.replace("sd-scrollable-container", "");
|
|
36941
|
+
}
|
|
36946
36942
|
}
|
|
36947
36943
|
if (question.name === "panel") {
|
|
36948
36944
|
cssClasses.root += " svc-logic-paneldynamic";
|
|
@@ -37021,6 +37017,42 @@ var PropertyGridEditorExpression = /** @class */ (function (_super) {
|
|
|
37021
37017
|
PropertyGridEditorExpression.prototype.clearPropertyValue = function (obj, prop, question, options) {
|
|
37022
37018
|
question.clearValue();
|
|
37023
37019
|
};
|
|
37020
|
+
PropertyGridEditorExpression.prototype.onCreated = function (obj, question, prop, options) {
|
|
37021
|
+
question.valueToDataCallback = function (val) {
|
|
37022
|
+
if (!val)
|
|
37023
|
+
return val;
|
|
37024
|
+
return val.replace(/\\n/g, "\n")
|
|
37025
|
+
.replace(/\\r/g, "\r")
|
|
37026
|
+
.replace(/\\t/g, "\t");
|
|
37027
|
+
};
|
|
37028
|
+
question.valueFromDataCallback = function (val) {
|
|
37029
|
+
if (!val)
|
|
37030
|
+
return val;
|
|
37031
|
+
return val.replace(/\n/g, "\\n")
|
|
37032
|
+
.replace(/\r/g, "\\r")
|
|
37033
|
+
.replace(/\t/g, "\\t");
|
|
37034
|
+
};
|
|
37035
|
+
/*
|
|
37036
|
+
question.valueFromDataCallback = (val: any): any => {
|
|
37037
|
+
if(!val) return val;
|
|
37038
|
+
return val.replace(/\\/g, "\\\\")
|
|
37039
|
+
.replace(/'/g, "\\'")
|
|
37040
|
+
.replace(/"/g, '\\"')
|
|
37041
|
+
.replace(/\n/g, "\\n")
|
|
37042
|
+
.replace(/\r/g, "\\r")
|
|
37043
|
+
.replace(/\t/g, "\\t");
|
|
37044
|
+
};
|
|
37045
|
+
question.valueToDataCallback = (val: any): any => {
|
|
37046
|
+
if(!val) return val;
|
|
37047
|
+
return val.replace(/\\t/g, "\t")
|
|
37048
|
+
.replace(/\\r/g, "\r")
|
|
37049
|
+
.replace(/\\n/g, "\n")
|
|
37050
|
+
.replace(/\\"/g, '"')
|
|
37051
|
+
.replace(/\\'/g, "'")
|
|
37052
|
+
.replace(/\\\\/g, "\\");
|
|
37053
|
+
};
|
|
37054
|
+
*/
|
|
37055
|
+
};
|
|
37024
37056
|
return PropertyGridEditorExpression;
|
|
37025
37057
|
}(_index__WEBPACK_IMPORTED_MODULE_1__.PropertyGridEditor));
|
|
37026
37058
|
|
|
@@ -37533,6 +37565,7 @@ var pgTabIcons = {
|
|
|
37533
37565
|
"rateValues": "icon-pg-specific-24x24",
|
|
37534
37566
|
"choices": "icon-pg-specific-24x24",
|
|
37535
37567
|
"choicesByUrl": "icon-pg-webservice-24x24",
|
|
37568
|
+
"numbering": "icon-pg-numbering-24x24",
|
|
37536
37569
|
"undefined": "icon-pg-undefined-24x24",
|
|
37537
37570
|
};
|
|
37538
37571
|
|
|
@@ -46729,6 +46762,159 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
46729
46762
|
|
|
46730
46763
|
|
|
46731
46764
|
|
|
46765
|
+
/***/ }),
|
|
46766
|
+
|
|
46767
|
+
/***/ "./src/utils/global_variables_utils.ts":
|
|
46768
|
+
/*!*********************************************!*\
|
|
46769
|
+
!*** ./src/utils/global_variables_utils.ts ***!
|
|
46770
|
+
\*********************************************/
|
|
46771
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
46772
|
+
|
|
46773
|
+
"use strict";
|
|
46774
|
+
__webpack_require__.r(__webpack_exports__);
|
|
46775
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
46776
|
+
/* harmony export */ DomDocumentHelper: () => (/* binding */ DomDocumentHelper),
|
|
46777
|
+
/* harmony export */ DomWindowHelper: () => (/* binding */ DomWindowHelper)
|
|
46778
|
+
/* harmony export */ });
|
|
46779
|
+
/* eslint-disable no-restricted-globals */
|
|
46780
|
+
var DomWindowHelper = /** @class */ (function () {
|
|
46781
|
+
function DomWindowHelper() {
|
|
46782
|
+
}
|
|
46783
|
+
DomWindowHelper.isAvailable = function () {
|
|
46784
|
+
return "undefined" !== typeof window;
|
|
46785
|
+
};
|
|
46786
|
+
DomWindowHelper.isFileReaderAvailable = function () {
|
|
46787
|
+
if (!DomWindowHelper.isAvailable())
|
|
46788
|
+
return false;
|
|
46789
|
+
return !!window["FileReader"];
|
|
46790
|
+
};
|
|
46791
|
+
DomWindowHelper.getLocation = function () {
|
|
46792
|
+
if (!DomWindowHelper.isAvailable())
|
|
46793
|
+
return;
|
|
46794
|
+
return window.location;
|
|
46795
|
+
};
|
|
46796
|
+
DomWindowHelper.getVisualViewport = function () {
|
|
46797
|
+
if (!DomWindowHelper.isAvailable())
|
|
46798
|
+
return null;
|
|
46799
|
+
return window.visualViewport;
|
|
46800
|
+
};
|
|
46801
|
+
DomWindowHelper.getInnerWidth = function () {
|
|
46802
|
+
if (!DomWindowHelper.isAvailable())
|
|
46803
|
+
return;
|
|
46804
|
+
return window.innerWidth;
|
|
46805
|
+
};
|
|
46806
|
+
DomWindowHelper.getInnerHeight = function () {
|
|
46807
|
+
if (!DomWindowHelper.isAvailable())
|
|
46808
|
+
return null;
|
|
46809
|
+
return window.innerHeight;
|
|
46810
|
+
};
|
|
46811
|
+
DomWindowHelper.getDevicePixelRatio = function () {
|
|
46812
|
+
if (!DomWindowHelper.isAvailable())
|
|
46813
|
+
return null;
|
|
46814
|
+
return window.devicePixelRatio;
|
|
46815
|
+
};
|
|
46816
|
+
DomWindowHelper.getWindow = function () {
|
|
46817
|
+
if (!DomWindowHelper.isAvailable())
|
|
46818
|
+
return;
|
|
46819
|
+
return window;
|
|
46820
|
+
};
|
|
46821
|
+
DomWindowHelper.hasOwn = function (propertyName) {
|
|
46822
|
+
if (!DomWindowHelper.isAvailable())
|
|
46823
|
+
return;
|
|
46824
|
+
return propertyName in window;
|
|
46825
|
+
};
|
|
46826
|
+
DomWindowHelper.getSelection = function () {
|
|
46827
|
+
if (DomWindowHelper.isAvailable() && window.getSelection) {
|
|
46828
|
+
return window.getSelection();
|
|
46829
|
+
}
|
|
46830
|
+
};
|
|
46831
|
+
DomWindowHelper.requestAnimationFrame = function (callback) {
|
|
46832
|
+
if (DomWindowHelper.isAvailable()) {
|
|
46833
|
+
return window.requestAnimationFrame(callback);
|
|
46834
|
+
}
|
|
46835
|
+
};
|
|
46836
|
+
DomWindowHelper.addEventListener = function (type, listener) {
|
|
46837
|
+
if (!DomWindowHelper.isAvailable())
|
|
46838
|
+
return;
|
|
46839
|
+
window.addEventListener(type, listener);
|
|
46840
|
+
};
|
|
46841
|
+
DomWindowHelper.removeEventListener = function (type, listener) {
|
|
46842
|
+
if (!DomWindowHelper.isAvailable())
|
|
46843
|
+
return;
|
|
46844
|
+
window.removeEventListener(type, listener);
|
|
46845
|
+
};
|
|
46846
|
+
DomWindowHelper.matchMedia = function (mediaQueryString) {
|
|
46847
|
+
if (!DomWindowHelper.isAvailable() || typeof window.matchMedia === "undefined")
|
|
46848
|
+
return null;
|
|
46849
|
+
return window.matchMedia(mediaQueryString);
|
|
46850
|
+
};
|
|
46851
|
+
return DomWindowHelper;
|
|
46852
|
+
}());
|
|
46853
|
+
|
|
46854
|
+
var DomDocumentHelper = /** @class */ (function () {
|
|
46855
|
+
function DomDocumentHelper() {
|
|
46856
|
+
}
|
|
46857
|
+
DomDocumentHelper.isAvailable = function () {
|
|
46858
|
+
return "undefined" !== typeof document;
|
|
46859
|
+
};
|
|
46860
|
+
DomDocumentHelper.getBody = function () {
|
|
46861
|
+
if (!DomDocumentHelper.isAvailable())
|
|
46862
|
+
return;
|
|
46863
|
+
return document.body;
|
|
46864
|
+
};
|
|
46865
|
+
DomDocumentHelper.getDocumentElement = function () {
|
|
46866
|
+
if (!DomDocumentHelper.isAvailable())
|
|
46867
|
+
return;
|
|
46868
|
+
return document.documentElement;
|
|
46869
|
+
};
|
|
46870
|
+
DomDocumentHelper.getDocument = function () {
|
|
46871
|
+
if (!DomDocumentHelper.isAvailable())
|
|
46872
|
+
return;
|
|
46873
|
+
return document;
|
|
46874
|
+
};
|
|
46875
|
+
DomDocumentHelper.getCookie = function () {
|
|
46876
|
+
if (!DomDocumentHelper.isAvailable())
|
|
46877
|
+
return;
|
|
46878
|
+
return document.cookie;
|
|
46879
|
+
};
|
|
46880
|
+
DomDocumentHelper.setCookie = function (newCookie) {
|
|
46881
|
+
if (!DomDocumentHelper.isAvailable())
|
|
46882
|
+
return;
|
|
46883
|
+
document.cookie = newCookie;
|
|
46884
|
+
};
|
|
46885
|
+
DomDocumentHelper.activeElementBlur = function () {
|
|
46886
|
+
if (!DomDocumentHelper.isAvailable())
|
|
46887
|
+
return;
|
|
46888
|
+
var activeElement = document.activeElement;
|
|
46889
|
+
if (!!activeElement && !!activeElement.blur) {
|
|
46890
|
+
activeElement.blur();
|
|
46891
|
+
}
|
|
46892
|
+
};
|
|
46893
|
+
DomDocumentHelper.createElement = function (tagName) {
|
|
46894
|
+
if (!DomDocumentHelper.isAvailable())
|
|
46895
|
+
return;
|
|
46896
|
+
return document.createElement(tagName);
|
|
46897
|
+
};
|
|
46898
|
+
DomDocumentHelper.getComputedStyle = function (elt) {
|
|
46899
|
+
if (!DomDocumentHelper.isAvailable())
|
|
46900
|
+
return new CSSStyleDeclaration();
|
|
46901
|
+
return document.defaultView.getComputedStyle(elt);
|
|
46902
|
+
};
|
|
46903
|
+
DomDocumentHelper.addEventListener = function (type, listener) {
|
|
46904
|
+
if (!DomDocumentHelper.isAvailable())
|
|
46905
|
+
return;
|
|
46906
|
+
document.addEventListener(type, listener);
|
|
46907
|
+
};
|
|
46908
|
+
DomDocumentHelper.removeEventListener = function (type, listener) {
|
|
46909
|
+
if (!DomDocumentHelper.isAvailable())
|
|
46910
|
+
return;
|
|
46911
|
+
document.removeEventListener(type, listener);
|
|
46912
|
+
};
|
|
46913
|
+
return DomDocumentHelper;
|
|
46914
|
+
}());
|
|
46915
|
+
|
|
46916
|
+
|
|
46917
|
+
|
|
46732
46918
|
/***/ }),
|
|
46733
46919
|
|
|
46734
46920
|
/***/ "./src/utils/html-element-utils.ts":
|
|
@@ -47700,8 +47886,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
47700
47886
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_116__ = __webpack_require__(/*! survey-core */ "survey-core");
|
|
47701
47887
|
/* harmony import */ var survey_core__WEBPACK_IMPORTED_MODULE_116___default = /*#__PURE__*/__webpack_require__.n(survey_core__WEBPACK_IMPORTED_MODULE_116__);
|
|
47702
47888
|
var Version;
|
|
47703
|
-
Version = "".concat("2.0.
|
|
47704
|
-
//should be loaded before other styles for easier override
|
|
47889
|
+
Version = "".concat("2.0.5");
|
|
47890
|
+
//should be loaded before other styles for easier override
|
|
47705
47891
|
|
|
47706
47892
|
|
|
47707
47893
|
|
|
@@ -47822,7 +48008,7 @@ Version = "".concat("2.0.4");
|
|
|
47822
48008
|
|
|
47823
48009
|
|
|
47824
48010
|
|
|
47825
|
-
(0,survey_core__WEBPACK_IMPORTED_MODULE_116__.checkLibraryVersion)("".concat("2.0.
|
|
48011
|
+
(0,survey_core__WEBPACK_IMPORTED_MODULE_116__.checkLibraryVersion)("".concat("2.0.5"), "survey-creator-core");
|
|
47826
48012
|
|
|
47827
48013
|
})();
|
|
47828
48014
|
|