survey-react 1.9.97 → 1.9.98
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/defaultV2.css +9 -4
- package/defaultV2.css.map +1 -1
- package/defaultV2.min.css +2 -2
- package/modern.css +1 -1
- package/modern.min.css +1 -1
- package/package.json +1 -1
- package/survey.css +1 -1
- package/survey.min.css +1 -1
- package/survey.react.d.ts +31 -3
- package/survey.react.js +175 -111
- package/survey.react.js.map +1 -1
- package/survey.react.min.js +3 -3
package/survey.react.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.98
|
3
3
|
* Copyright (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
5
5
|
*/
|
@@ -2921,7 +2921,7 @@ var CalculatedValue = /** @class */ (function (_super) {
|
|
2921
2921
|
return;
|
2922
2922
|
this.expressionRunner = new _conditions__WEBPACK_IMPORTED_MODULE_2__["ExpressionRunner"](this.expression);
|
2923
2923
|
this.expressionRunner.onRunComplete = function (newValue) {
|
2924
|
-
if (!_helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isTwoValueEquals(newValue, _this.value)) {
|
2924
|
+
if (!_helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isTwoValueEquals(newValue, _this.value, false, true)) {
|
2925
2925
|
_this.setValue(newValue);
|
2926
2926
|
}
|
2927
2927
|
_this.unlocCalculation();
|
@@ -6304,12 +6304,12 @@ var DragDropChoices = /** @class */ (function (_super) {
|
|
6304
6304
|
}
|
6305
6305
|
var draggedElementShortcut = document.createElement("div");
|
6306
6306
|
// draggedElementShortcut.innerText = text;
|
6307
|
-
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n font-family: var(--font-family,
|
6307
|
+
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n font-family: var(--font-family, 'Open Sans');\n ";
|
6308
6308
|
var isDeepClone = true;
|
6309
6309
|
var clone = (draggedElementNode
|
6310
6310
|
.closest("[data-sv-drop-target-item-value]")
|
6311
6311
|
.cloneNode(isDeepClone));
|
6312
|
-
clone.style.cssText = "\n min-width: 100px;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1);\n background-color: var(--background,
|
6312
|
+
clone.style.cssText = "\n min-width: 100px;\n box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));\n background-color: var(--sjs-general-backcolor, var(--background, #fff));\n border-radius: calc(4.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n padding-right: calc(2* var(--sjs-base-unit, var(--base-unit, 8px)));\n margin-left: 0;\n ";
|
6313
6313
|
var dragIcon = clone.querySelector(".svc-item-value-controls__drag-icon");
|
6314
6314
|
dragIcon.style.visibility = "visible";
|
6315
6315
|
var removeIcon = clone.querySelector(".svc-item-value-controls__remove");
|
@@ -6327,7 +6327,7 @@ var DragDropChoices = /** @class */ (function (_super) {
|
|
6327
6327
|
};
|
6328
6328
|
DragDropChoices.prototype.createImagePickerShortcut = function (item, text, draggedElementNode, event) {
|
6329
6329
|
var draggedElementShortcut = document.createElement("div");
|
6330
|
-
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.1);\n
|
6330
|
+
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));\n background-color: var(--sjs-general-backcolor, var(--background, #fff));\n padding: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n border-radius: calc(0.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n ";
|
6331
6331
|
var itemValueNode = draggedElementNode.closest("[data-sv-drop-target-item-value]");
|
6332
6332
|
var controlsNode = itemValueNode.querySelector(".svc-image-item-value-controls");
|
6333
6333
|
var imageContainerNode = itemValueNode.querySelector(".sd-imagepicker__image-container");
|
@@ -6498,7 +6498,9 @@ var DragDropCore = /** @class */ (function () {
|
|
6498
6498
|
configurable: true
|
6499
6499
|
});
|
6500
6500
|
DragDropCore.prototype.startDrag = function (event, draggedElement, parentElement, draggedElementNode, preventSaveTargetNode) {
|
6501
|
+
var _a;
|
6501
6502
|
if (preventSaveTargetNode === void 0) { preventSaveTargetNode = false; }
|
6503
|
+
this.domAdapter.rootContainer = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.rootElement;
|
6502
6504
|
this.domAdapter.startDrag(event, draggedElement, parentElement, draggedElementNode, preventSaveTargetNode);
|
6503
6505
|
};
|
6504
6506
|
DragDropCore.prototype.dragInit = function (event, draggedElement, parentElement, draggedElementNode) {
|
@@ -6686,12 +6688,12 @@ var DragDropDOMAdapter = /** @class */ (function () {
|
|
6686
6688
|
if (_utils_devices__WEBPACK_IMPORTED_MODULE_1__["IsTouch"]) {
|
6687
6689
|
_this.draggedElementShortcut.removeEventListener("contextmenu", _this.onContextMenu);
|
6688
6690
|
}
|
6689
|
-
|
6691
|
+
_this.draggedElementShortcut.parentElement.removeChild(_this.draggedElementShortcut);
|
6690
6692
|
_this.dd.clear();
|
6691
6693
|
_this.draggedElementShortcut = null;
|
6692
6694
|
_this.scrollIntervalId = null;
|
6693
6695
|
if (_utils_devices__WEBPACK_IMPORTED_MODULE_1__["IsTouch"]) {
|
6694
|
-
_this.savedTargetNode &&
|
6696
|
+
_this.savedTargetNode && _this.savedTargetNode.parentElement.removeChild(_this.savedTargetNode);
|
6695
6697
|
DragDropDOMAdapter.PreventScrolling = false;
|
6696
6698
|
}
|
6697
6699
|
document.body.style.setProperty("touch-action", "");
|
@@ -6704,6 +6706,18 @@ var DragDropDOMAdapter = /** @class */ (function () {
|
|
6704
6706
|
};
|
6705
6707
|
this.draggedElementShortcut = null;
|
6706
6708
|
}
|
6709
|
+
Object.defineProperty(DragDropDOMAdapter.prototype, "rootElement", {
|
6710
|
+
get: function () {
|
6711
|
+
if (Object(_utils_utils__WEBPACK_IMPORTED_MODULE_0__["isShadowDOM"])(_settings__WEBPACK_IMPORTED_MODULE_2__["settings"].environment.root)) {
|
6712
|
+
return _settings__WEBPACK_IMPORTED_MODULE_2__["settings"].environment.root.host;
|
6713
|
+
}
|
6714
|
+
else {
|
6715
|
+
return this.rootContainer || _settings__WEBPACK_IMPORTED_MODULE_2__["settings"].environment.root.documentElement || document.body;
|
6716
|
+
}
|
6717
|
+
},
|
6718
|
+
enumerable: false,
|
6719
|
+
configurable: true
|
6720
|
+
});
|
6707
6721
|
Object.defineProperty(DragDropDOMAdapter.prototype, "isMicroMovement", {
|
6708
6722
|
// see https://stackoverflow.com/questions/6042202/how-to-distinguish-mouse-click-and-drag
|
6709
6723
|
get: function () {
|
@@ -6729,7 +6743,7 @@ var DragDropDOMAdapter = /** @class */ (function () {
|
|
6729
6743
|
_this.savedTargetNode = event.target;
|
6730
6744
|
_this.savedTargetNode.style.cssText =
|
6731
6745
|
"\n position: absolute;\n height: 1px!important;\n width: 1px!important;\n overflow: hidden;\n clip: rect(1px 1px 1px 1px);\n clip: rect(1px, 1px, 1px, 1px);\n ";
|
6732
|
-
|
6746
|
+
_this.rootElement.appendChild(_this.savedTargetNode);
|
6733
6747
|
}
|
6734
6748
|
_this.stopLongTap();
|
6735
6749
|
}, this.longTap ? 500 : 0);
|
@@ -6737,6 +6751,8 @@ var DragDropDOMAdapter = /** @class */ (function () {
|
|
6737
6751
|
document.addEventListener("pointermove", this.stopLongTapIfMoveEnough);
|
6738
6752
|
};
|
6739
6753
|
DragDropDOMAdapter.prototype.moveShortcutElement = function (event) {
|
6754
|
+
var rootElementX = this.rootElement.getBoundingClientRect().x;
|
6755
|
+
var rootElementY = this.rootElement.getBoundingClientRect().y;
|
6740
6756
|
this.doScroll(event.clientY, event.clientX);
|
6741
6757
|
var shortcutHeight = this.draggedElementShortcut.offsetHeight;
|
6742
6758
|
var shortcutWidth = this.draggedElementShortcut.offsetWidth;
|
@@ -6747,50 +6763,56 @@ var DragDropDOMAdapter = /** @class */ (function () {
|
|
6747
6763
|
shortcutXOffset = shortcutWidth / 2;
|
6748
6764
|
shortcutYOffset = shortcutHeight / 2;
|
6749
6765
|
}
|
6750
|
-
var documentBottom =
|
6751
|
-
var documentRight =
|
6752
|
-
var
|
6753
|
-
var
|
6754
|
-
|
6766
|
+
var documentBottom = document.documentElement.clientHeight;
|
6767
|
+
var documentRight = document.documentElement.clientWidth;
|
6768
|
+
var pageX = event.pageX;
|
6769
|
+
var pageY = event.pageY;
|
6770
|
+
var clientX = event.clientX;
|
6771
|
+
var clientY = event.clientY;
|
6772
|
+
var shortcutBottomCoordinate = this.getShortcutBottomCoordinate(clientY, shortcutHeight, shortcutYOffset);
|
6773
|
+
var shortcutRightCoordinate = this.getShortcutRightCoordinate(clientX, shortcutWidth, shortcutXOffset);
|
6774
|
+
if (shortcutRightCoordinate >= documentRight) { // right boundary
|
6755
6775
|
this.draggedElementShortcut.style.left =
|
6756
|
-
|
6757
|
-
|
6758
|
-
|
6759
|
-
shortcutWidth
|
6776
|
+
// pageX -
|
6777
|
+
// clientX +
|
6778
|
+
documentRight -
|
6779
|
+
shortcutWidth -
|
6780
|
+
rootElementX +
|
6760
6781
|
"px";
|
6761
6782
|
this.draggedElementShortcut.style.top =
|
6762
|
-
|
6783
|
+
/*pageY*/ clientY - shortcutYOffset - rootElementY + "px";
|
6763
6784
|
return;
|
6764
6785
|
}
|
6765
|
-
if (
|
6786
|
+
if (clientX - shortcutXOffset <= 0) { // left boundary
|
6766
6787
|
this.draggedElementShortcut.style.left =
|
6767
|
-
|
6788
|
+
pageX - clientX - rootElementX + "px";
|
6768
6789
|
this.draggedElementShortcut.style.top =
|
6769
|
-
|
6790
|
+
/*pageY*/ clientY - rootElementY - shortcutYOffset + "px";
|
6770
6791
|
return;
|
6771
6792
|
}
|
6772
|
-
if (shortcutBottomCoordinate >= documentBottom) {
|
6793
|
+
if (shortcutBottomCoordinate >= documentBottom) { // bottom boundary
|
6773
6794
|
this.draggedElementShortcut.style.left =
|
6774
|
-
|
6795
|
+
/*pageX*/ clientX - shortcutXOffset - rootElementX + "px";
|
6775
6796
|
this.draggedElementShortcut.style.top =
|
6776
|
-
|
6777
|
-
|
6778
|
-
|
6779
|
-
shortcutHeight
|
6797
|
+
// pageY -
|
6798
|
+
// clientY +
|
6799
|
+
documentBottom -
|
6800
|
+
shortcutHeight -
|
6801
|
+
rootElementY +
|
6780
6802
|
"px";
|
6781
6803
|
return;
|
6782
6804
|
}
|
6783
|
-
if (
|
6805
|
+
if (clientY - shortcutYOffset <= 0) { // top boundary
|
6784
6806
|
this.draggedElementShortcut.style.left =
|
6785
|
-
|
6807
|
+
clientX - shortcutXOffset - rootElementX + "px";
|
6786
6808
|
this.draggedElementShortcut.style.top =
|
6787
|
-
|
6809
|
+
pageY - clientY - rootElementY + "px";
|
6788
6810
|
return;
|
6789
6811
|
}
|
6790
6812
|
this.draggedElementShortcut.style.left =
|
6791
|
-
|
6813
|
+
clientX - rootElementX - shortcutXOffset + "px";
|
6792
6814
|
this.draggedElementShortcut.style.top =
|
6793
|
-
|
6815
|
+
clientY - rootElementY - shortcutYOffset + "px";
|
6794
6816
|
};
|
6795
6817
|
DragDropDOMAdapter.prototype.getShortcutBottomCoordinate = function (currentY, shortcutHeight, shortcutYOffset) {
|
6796
6818
|
return currentY + shortcutHeight - shortcutYOffset;
|
@@ -6801,7 +6823,7 @@ var DragDropDOMAdapter = /** @class */ (function () {
|
|
6801
6823
|
DragDropDOMAdapter.prototype.doScroll = function (clientY, clientX) {
|
6802
6824
|
var _this = this;
|
6803
6825
|
cancelAnimationFrame(this.scrollIntervalId);
|
6804
|
-
var startScrollBoundary =
|
6826
|
+
var startScrollBoundary = 100;
|
6805
6827
|
this.draggedElementShortcut.hidden = true;
|
6806
6828
|
var dragOverNode = document.elementFromPoint(clientX, clientY);
|
6807
6829
|
this.draggedElementShortcut.hidden = false;
|
@@ -6846,7 +6868,7 @@ var DragDropDOMAdapter = /** @class */ (function () {
|
|
6846
6868
|
if (event.which === 3)
|
6847
6869
|
return; //right mouse btn
|
6848
6870
|
this.dd.dragInit(event, draggedElement, parentElement, draggedElementNode);
|
6849
|
-
|
6871
|
+
this.rootElement.append(this.draggedElementShortcut);
|
6850
6872
|
this.moveShortcutElement(event);
|
6851
6873
|
document.addEventListener("pointermove", this.dragOver);
|
6852
6874
|
document.addEventListener("pointercancel", this.handlePointerCancel);
|
@@ -6929,13 +6951,13 @@ var DragDropMatrixRows = /** @class */ (function (_super) {
|
|
6929
6951
|
var _this = this;
|
6930
6952
|
var draggedElementShortcut = document.createElement("div");
|
6931
6953
|
// draggedElementShortcut.innerText = text;
|
6932
|
-
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n font-family: var(--font-family,
|
6954
|
+
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n font-family: var(--font-family, 'Open Sans');\n ";
|
6933
6955
|
var isDeepClone = true;
|
6934
6956
|
if (!!draggedElementNode) {
|
6935
6957
|
var row = (draggedElementNode
|
6936
6958
|
.closest("[data-sv-drop-target-matrix-row]"));
|
6937
6959
|
var clone = (row.cloneNode(isDeepClone));
|
6938
|
-
clone.style.cssText = "\n box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.1), 0px 2px 6px rgba(0, 0, 0, 0.1);\n background-color:
|
6960
|
+
clone.style.cssText = "\n box-shadow: var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1));\n background-color: var(--sjs-general-backcolor, var(--background, #fff));\n display: flex;\n flex-grow: 0;\n flex-shrink: 0;\n align-items: center;\n line-height: 0;\n width: " + row.offsetWidth + "px;\n ";
|
6939
6961
|
clone.classList.remove("sv-matrix__drag-drop--moveup");
|
6940
6962
|
clone.classList.remove("sv-matrix__drag-drop--movedown");
|
6941
6963
|
this.draggedElement.isDragDropMoveDown = false;
|
@@ -7105,7 +7127,7 @@ var DragDropRankingChoices = /** @class */ (function (_super) {
|
|
7105
7127
|
DragDropRankingChoices.prototype.createDraggedElementShortcut = function (text, draggedElementNode, event) {
|
7106
7128
|
var draggedElementShortcut = document.createElement("div");
|
7107
7129
|
draggedElementShortcut.className = this.shortcutClass + " sv-ranking-shortcut";
|
7108
|
-
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n border-radius:
|
7130
|
+
draggedElementShortcut.style.cssText = " \n cursor: grabbing;\n position: absolute;\n z-index: 10000;\n border-radius: calc(12.5 * var(--sjs-base-unit, var(--base-unit, 8px)));\n min-width: 100px;\n box-shadow: var(--sjs-shadow-medium, 0px 2px 6px 0px rgba(0, 0, 0, 0.1)), var(--sjs-shadow-large, 0px 8px 16px 0px rgba(0, 0, 0, 0.1));\n background-color: var(--sjs-general-backcolor, var(--background, #fff));\n font-family: var(--font-family, 'Open Sans');\n ";
|
7109
7131
|
var isDeepClone = true;
|
7110
7132
|
var clone = draggedElementNode.cloneNode(isDeepClone);
|
7111
7133
|
draggedElementShortcut.appendChild(clone);
|
@@ -9012,7 +9034,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
9012
9034
|
// import "../../main.scss";
|
9013
9035
|
//import "../../modern.scss";
|
9014
9036
|
var Version;
|
9015
|
-
Version = "" + "1.9.
|
9037
|
+
Version = "" + "1.9.98";
|
9016
9038
|
function checkLibraryVersion(ver, libraryName) {
|
9017
9039
|
if (Version != ver) {
|
9018
9040
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
@@ -25003,91 +25025,96 @@ __webpack_require__.r(__webpack_exports__);
|
|
25003
25025
|
// These strings are commented out. Uncomment and edit them if you want to add your translations.
|
25004
25026
|
|
25005
25027
|
var turkishSurveyStrings = {
|
25006
|
-
pagePrevText: "
|
25007
|
-
pageNextText: "
|
25008
|
-
completeText: "
|
25009
|
-
previewText: "
|
25028
|
+
pagePrevText: "Önceki",
|
25029
|
+
pageNextText: "Sonraki",
|
25030
|
+
completeText: "Tamamla",
|
25031
|
+
previewText: "Önizleme",
|
25010
25032
|
editText: "Düzenle",
|
25011
25033
|
startSurveyText: "Başlat",
|
25012
25034
|
otherItemText: "Diğer (açıklayınız)",
|
25013
|
-
noneItemText: "
|
25014
|
-
selectAllItemText: "
|
25015
|
-
progressText: "Sayfa {0}
|
25016
|
-
|
25017
|
-
panelDynamicProgressText: "
|
25018
|
-
|
25035
|
+
noneItemText: "Hiçbiri",
|
25036
|
+
selectAllItemText: "Tümünü Seç",
|
25037
|
+
progressText: "Sayfa {0}/{1}",
|
25038
|
+
indexText: "{0}/{1}",
|
25039
|
+
panelDynamicProgressText: "{0}/{1}",
|
25040
|
+
panelDynamicTabTextFormat: "Panel {panelIndex}",
|
25041
|
+
questionsProgressText: "{0}/{1} soru yanıtlandı",
|
25019
25042
|
emptySurvey: "Ankette görüntülenecek sayfa ya da soru mevcut değil.",
|
25020
|
-
completingSurvey: "
|
25021
|
-
completingSurveyBefore: "Kayıtlarımız
|
25022
|
-
loadingSurvey: "Anket
|
25023
|
-
placeholder: "Seçiniz
|
25024
|
-
|
25043
|
+
completingSurvey: "Anketi tamamladığınız için teşekkür ederiz",
|
25044
|
+
completingSurveyBefore: "Kayıtlarımız bu anketi zaten tamamladığınızı gösteriyor.",
|
25045
|
+
loadingSurvey: "Anket Yükleniyor...",
|
25046
|
+
placeholder: "Seçiniz...",
|
25047
|
+
ratingOptionsCaption: "Seçiniz...",
|
25025
25048
|
value: "değer",
|
25026
|
-
requiredError: "Lütfen soruya cevap
|
25049
|
+
requiredError: "Lütfen soruya cevap verin.",
|
25027
25050
|
requiredErrorInPanel: "Lütfen en az bir soruyu yanıtlayın.",
|
25028
|
-
requiredInAllRowsError: "Lütfen tüm satırlardaki soruları
|
25029
|
-
numericError: "
|
25030
|
-
|
25031
|
-
|
25032
|
-
textMinLength: "
|
25033
|
-
textMaxLength: "Lütfen {0}
|
25034
|
-
textMinMaxLength: "Lütfen {0}
|
25051
|
+
requiredInAllRowsError: "Lütfen tüm satırlardaki soruları cevaplayın.",
|
25052
|
+
numericError: "Değer sayısal olmalıdır.",
|
25053
|
+
minError: "Değer {0}'den küçük olmamalıdır",
|
25054
|
+
maxError: "Değer {0}'dan büyük olmamalıdır",
|
25055
|
+
textMinLength: "Lütfen en az {0} karakter girin.",
|
25056
|
+
textMaxLength: "Lütfen en fazla {0} karakter girin.",
|
25057
|
+
textMinMaxLength: "Lütfen {0}’den fazla ve {1}’den az karakter girin.",
|
25035
25058
|
minRowCountError: "Lütfen en az {0} satırı doldurun.",
|
25036
|
-
minSelectError: "Lütfen en az {0} seçeneği
|
25037
|
-
maxSelectError: "Lütfen {0}
|
25038
|
-
numericMinMax: "
|
25059
|
+
minSelectError: "Lütfen en az {0} seçeneği seçin.",
|
25060
|
+
maxSelectError: "Lütfen en fazla {0} seçeneği seçin.",
|
25061
|
+
numericMinMax: "'{0}', {1}'e eşit veya daha büyük ve {2}'ye eşit veya daha küçük olmalıdır",
|
25039
25062
|
numericMin: "'{0}' değeri {1} değerine eşit veya büyük olmalıdır",
|
25040
25063
|
numericMax: "'{0}' değeri {1} değerine eşit ya da küçük olmalıdır.",
|
25041
|
-
invalidEmail: "Lütfen geçerli bir
|
25064
|
+
invalidEmail: "Lütfen geçerli bir e-posta adresi girin.",
|
25042
25065
|
invalidExpression: "İfade: {0} 'true' döndürmelidir.",
|
25043
|
-
urlRequestError: "
|
25044
|
-
urlGetChoicesError: "
|
25066
|
+
urlRequestError: "İstek '{0}' hatasını döndürdü. {1}",
|
25067
|
+
urlGetChoicesError: "İstek boş veri döndürdü veya 'path' özelliği yanlış",
|
25045
25068
|
exceedMaxSize: "Dosya boyutu {0} değerini geçemez.",
|
25046
|
-
otherRequiredError: "Lütfen diğer değerleri
|
25047
|
-
uploadingFile: "Dosyanız yükleniyor.
|
25069
|
+
otherRequiredError: "Lütfen diğer değerleri girin.",
|
25070
|
+
uploadingFile: "Dosyanız yükleniyor. Lütfen birkaç saniye bekleyin ve tekrar deneyin.",
|
25048
25071
|
loadingFile: "Yükleniyor...",
|
25049
|
-
chooseFile: "Dosyaları seçin
|
25072
|
+
chooseFile: "Dosyaları seçin...",
|
25050
25073
|
noFileChosen: "Dosya seçili değil",
|
25051
|
-
|
25074
|
+
fileDragAreaPlaceholder: "Buraya bir dosya bırakın veya dosyayı yüklemek için aşağıdaki düğmeyi tıklayın.",
|
25052
25075
|
confirmDelete: "Kaydı silmek istiyor musunuz?",
|
25053
25076
|
keyDuplicationError: "Bu değer benzersiz olmalıdır.",
|
25054
|
-
addColumn: "Sütun
|
25077
|
+
addColumn: "Sütun Ekle",
|
25055
25078
|
addRow: "Satır Ekle",
|
25056
25079
|
removeRow: "Kaldır",
|
25057
|
-
|
25080
|
+
emptyRowsText: "Satır yok.",
|
25058
25081
|
addPanel: "Yeni ekle",
|
25059
|
-
removePanel: "
|
25060
|
-
choices_Item: "
|
25082
|
+
removePanel: "Kaldır",
|
25083
|
+
choices_Item: "öğe",
|
25061
25084
|
matrix_column: "Sütun",
|
25062
|
-
matrix_row: "
|
25063
|
-
|
25064
|
-
savingData: "Sonuçlar sunucuya kaydediliyor
|
25065
|
-
savingDataError: "Bir hata oluştu ve
|
25085
|
+
matrix_row: "Satır",
|
25086
|
+
multipletext_itemname: "metin",
|
25087
|
+
savingData: "Sonuçlar sunucuya kaydediliyor...",
|
25088
|
+
savingDataError: "Bir hata oluştu ve sonuçlar kaydedilemedi.",
|
25066
25089
|
savingDataSuccess: "Sonuçlar başarıyla kaydedildi!",
|
25067
25090
|
saveAgainButton: "Tekrar deneyin",
|
25068
|
-
timerMin: "
|
25091
|
+
timerMin: "dakika",
|
25069
25092
|
timerSec: "saniye",
|
25070
25093
|
timerSpentAll: "Bu sayfada {0} ve toplamda {1} harcadınız.",
|
25071
25094
|
timerSpentPage: "Bu sayfaya {0} harcadınız.",
|
25072
25095
|
timerSpentSurvey: "Toplamda {0} harcadınız.",
|
25073
|
-
timerLimitAll: "Bu sayfaya {0}
|
25074
|
-
timerLimitPage: "Bu sayfaya {0}
|
25075
|
-
timerLimitSurvey: "Toplamda {0}
|
25076
|
-
clearCaption: "
|
25077
|
-
|
25096
|
+
timerLimitAll: "Bu sayfaya {0}/{1} ve toplamda {2}/{3} harcadınız.",
|
25097
|
+
timerLimitPage: "Bu sayfaya {0}/{1} harcadınız.",
|
25098
|
+
timerLimitSurvey: "Toplamda {0}/{1} harcadınız.",
|
25099
|
+
clearCaption: "Temizle",
|
25100
|
+
signaturePlaceHolder: "Burayı imzalayın",
|
25078
25101
|
chooseFileCaption: "Dosya seçin",
|
25079
25102
|
removeFileCaption: "Bu dosyayı kaldır",
|
25080
25103
|
booleanCheckedLabel: "Evet",
|
25081
25104
|
booleanUncheckedLabel: "Hayır",
|
25082
25105
|
confirmRemoveFile: "Bu dosyayı kaldırmak istediğinizden emin misiniz: {0}?",
|
25083
25106
|
confirmRemoveAllFiles: "Tüm dosyaları kaldırmak istediğinizden emin misiniz?",
|
25084
|
-
questionTitlePatternText: "Soru
|
25085
|
-
|
25086
|
-
|
25087
|
-
|
25088
|
-
|
25089
|
-
|
25090
|
-
|
25107
|
+
questionTitlePatternText: "Soru Başlığı",
|
25108
|
+
modalCancelButtonText: "İptal",
|
25109
|
+
modalApplyButtonText: "Uygula",
|
25110
|
+
filterStringPlaceholder: "Aramak için yazın...",
|
25111
|
+
emptyMessage: "Görüntülenecek veri yok",
|
25112
|
+
noEntriesText: "Henüz giriş yok.\nYeni bir giriş eklemek için aşağıdaki düğmeyi tıklayın.",
|
25113
|
+
noEntriesReadonlyText: "Giriş yok.",
|
25114
|
+
more: "Daha fazla",
|
25115
|
+
tagboxDoneButtonCaption: "TAMAM",
|
25116
|
+
selectToRankEmptyRankedAreaText: "Tüm seçenekler sıralanmıştır",
|
25117
|
+
selectToRankEmptyUnrankedAreaText: "Seçimleri sıralamak için buraya sürükleyip bırakın",
|
25091
25118
|
};
|
25092
25119
|
survey_core__WEBPACK_IMPORTED_MODULE_0__["surveyLocalization"].locales["tr"] = turkishSurveyStrings;
|
25093
25120
|
survey_core__WEBPACK_IMPORTED_MODULE_0__["surveyLocalization"].localeNames["tr"] = "türkçe";
|
@@ -28378,7 +28405,7 @@ var PanelModel = /** @class */ (function (_super) {
|
|
28378
28405
|
if (this.hasEditButton) {
|
28379
28406
|
actions.push({
|
28380
28407
|
id: "cancel-preview",
|
28381
|
-
|
28408
|
+
locTitle: this.survey.locEditText,
|
28382
28409
|
innerCss: this.survey.cssNavigationEdit,
|
28383
28410
|
action: function () { _this.cancelPreview(); }
|
28384
28411
|
});
|
@@ -33093,7 +33120,7 @@ var Question = /** @class */ (function (_super) {
|
|
33093
33120
|
var _this = this;
|
33094
33121
|
this.defaultValueRunner = this.getDefaultRunner(this.defaultValueRunner, this.defaultValueExpression);
|
33095
33122
|
this.setValueAndRunExpression(this.defaultValueRunner, this.getUnbindValue(this.defaultValue), function (val) {
|
33096
|
-
if (!
|
33123
|
+
if (!_this.isTwoValueEquals(_this.value, val)) {
|
33097
33124
|
_this.value = val;
|
33098
33125
|
}
|
33099
33126
|
});
|
@@ -33127,7 +33154,7 @@ var Question = /** @class */ (function (_super) {
|
|
33127
33154
|
if (!setFunc) {
|
33128
33155
|
setFunc = function (val) {
|
33129
33156
|
_this.runExpressionSetValue(val, function (val) {
|
33130
|
-
if (!
|
33157
|
+
if (!_this.isTwoValueEquals(_this.value, val)) {
|
33131
33158
|
_this.value = val;
|
33132
33159
|
}
|
33133
33160
|
});
|
@@ -35186,6 +35213,7 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
35186
35213
|
return str == "" && val ? val : str;
|
35187
35214
|
};
|
35188
35215
|
QuestionSelectBase.prototype.getDisplayArrayValue = function (keysAsText, value, onGetValueCallback) {
|
35216
|
+
var _this = this;
|
35189
35217
|
var items = this.visibleChoices;
|
35190
35218
|
var strs = [];
|
35191
35219
|
var vals = [];
|
@@ -35193,7 +35221,7 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
35193
35221
|
vals.push(!onGetValueCallback ? value[i] : onGetValueCallback(i));
|
35194
35222
|
}
|
35195
35223
|
if (_helpers__WEBPACK_IMPORTED_MODULE_8__["Helpers"].isTwoValueEquals(this.value, vals)) {
|
35196
|
-
this.getMultipleSelectedItems().forEach(function (item) { return strs.push(item
|
35224
|
+
this.getMultipleSelectedItems().forEach(function (item) { return strs.push(_this.getItemDisplayValue(item)); });
|
35197
35225
|
}
|
35198
35226
|
if (strs.length === 0) {
|
35199
35227
|
for (var i = 0; i < vals.length; i++) {
|
@@ -35205,6 +35233,11 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
35205
35233
|
}
|
35206
35234
|
return strs.join(", ");
|
35207
35235
|
};
|
35236
|
+
QuestionSelectBase.prototype.getItemDisplayValue = function (item) {
|
35237
|
+
if (item === this.otherItem && this.comment)
|
35238
|
+
return this.comment;
|
35239
|
+
return item.locText.textOrHtml;
|
35240
|
+
};
|
35208
35241
|
QuestionSelectBase.prototype.getFilteredChoices = function () {
|
35209
35242
|
return this.filteredChoicesValue
|
35210
35243
|
? this.filteredChoicesValue
|
@@ -48679,7 +48712,7 @@ var QuestionPanelDynamicItem = /** @class */ (function () {
|
|
48679
48712
|
QuestionPanelDynamicItem.prototype.setValue = function (name, newValue) {
|
48680
48713
|
var oldItemData = this.data.getPanelItemData(this);
|
48681
48714
|
var oldValue = !!oldItemData ? oldItemData[name] : undefined;
|
48682
|
-
if (_helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isTwoValueEquals(newValue, oldValue))
|
48715
|
+
if (_helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].isTwoValueEquals(newValue, oldValue, false, true))
|
48683
48716
|
return;
|
48684
48717
|
this.data.setPanelItemData(this, name, _helpers__WEBPACK_IMPORTED_MODULE_0__["Helpers"].getUnbindValue(newValue));
|
48685
48718
|
var questions = this.panel.questions;
|
@@ -54072,7 +54105,7 @@ var QuestionTextModel = /** @class */ (function (_super) {
|
|
54072
54105
|
});
|
54073
54106
|
QuestionTextModel.prototype.updateValueOnEvent = function (event) {
|
54074
54107
|
var newValue = event.target.value;
|
54075
|
-
if (!
|
54108
|
+
if (!this.isTwoValueEquals(this.value, newValue)) {
|
54076
54109
|
this.value = newValue;
|
54077
54110
|
}
|
54078
54111
|
};
|
@@ -57754,7 +57787,7 @@ var SurveyQuestionDropdownBase = /** @class */ (function (_super) {
|
|
57754
57787
|
if (!!this.inputElement) {
|
57755
57788
|
var control = this.inputElement;
|
57756
57789
|
var newValue = this.question.dropdownListModel.inputStringRendered;
|
57757
|
-
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(newValue, control.value)) {
|
57790
|
+
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(newValue, control.value, false, true)) {
|
57758
57791
|
control.value = this.question.dropdownListModel.inputStringRendered;
|
57759
57792
|
}
|
57760
57793
|
}
|
@@ -61097,7 +61130,7 @@ var SurveyQuestionUncontrolledElement = /** @class */ (function (_super) {
|
|
61097
61130
|
function SurveyQuestionUncontrolledElement(props) {
|
61098
61131
|
var _this = _super.call(this, props) || this;
|
61099
61132
|
_this.updateValueOnEvent = function (event) {
|
61100
|
-
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(_this.questionBase.value, event.target.value)) {
|
61133
|
+
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(_this.questionBase.value, event.target.value, false, true)) {
|
61101
61134
|
_this.setValueCore(event.target.value);
|
61102
61135
|
}
|
61103
61136
|
};
|
@@ -61121,7 +61154,7 @@ var SurveyQuestionUncontrolledElement = /** @class */ (function (_super) {
|
|
61121
61154
|
if (!!this.control) {
|
61122
61155
|
var control = this.control;
|
61123
61156
|
var newValue = this.getValueCore();
|
61124
|
-
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(newValue, control.value)) {
|
61157
|
+
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(newValue, control.value, false, true)) {
|
61125
61158
|
control.value = this.getValue(newValue);
|
61126
61159
|
}
|
61127
61160
|
}
|
@@ -61669,7 +61702,6 @@ var SurveyQuestionMatrixRow = /** @class */ (function (_super) {
|
|
61669
61702
|
var td = null;
|
61670
61703
|
var column = this.question.visibleColumns[i];
|
61671
61704
|
var key = "value" + i;
|
61672
|
-
//var isChecked = Helpers.isTwoValueEquals(row.value, column.value);
|
61673
61705
|
var isChecked = row.value == column.value;
|
61674
61706
|
var itemClass = this.question.getItemClass(row, column);
|
61675
61707
|
var inputId = this.question.inputId + "_" + row.name + "_" + i;
|
@@ -63969,7 +64001,7 @@ var TagboxFilterString = /** @class */ (function (_super) {
|
|
63969
64001
|
if (!!this.inputElement) {
|
63970
64002
|
var control = this.inputElement;
|
63971
64003
|
var newValue = this.model.inputStringRendered;
|
63972
|
-
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(newValue, control.value)) {
|
64004
|
+
if (!survey_core__WEBPACK_IMPORTED_MODULE_1__["Helpers"].isTwoValueEquals(newValue, control.value, false, true)) {
|
63973
64005
|
control.value = this.model.inputStringRendered;
|
63974
64006
|
}
|
63975
64007
|
}
|
@@ -65049,6 +65081,8 @@ var StylesManager = /** @class */ (function () {
|
|
65049
65081
|
return themeMapper;
|
65050
65082
|
};
|
65051
65083
|
StylesManager.getIncludedThemeCss = function () {
|
65084
|
+
if (typeof _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].environment === "undefined")
|
65085
|
+
return [];
|
65052
65086
|
var rootElement = _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].environment.rootElement;
|
65053
65087
|
var themeMapper = StylesManager.getAvailableThemes();
|
65054
65088
|
var element = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_2__["isShadowDOM"])(rootElement) ? rootElement.host : rootElement;
|
@@ -65087,6 +65121,8 @@ var StylesManager = /** @class */ (function () {
|
|
65087
65121
|
};
|
65088
65122
|
StylesManager.applyTheme = function (themeName, themeSelector) {
|
65089
65123
|
if (themeName === void 0) { themeName = "default"; }
|
65124
|
+
if (typeof _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].environment === "undefined")
|
65125
|
+
return;
|
65090
65126
|
var rootElement = _settings__WEBPACK_IMPORTED_MODULE_1__["settings"].environment.rootElement;
|
65091
65127
|
var element = Object(_utils_utils__WEBPACK_IMPORTED_MODULE_2__["isShadowDOM"])(rootElement) ? rootElement.host : rootElement;
|
65092
65128
|
_defaultCss_defaultV2Css__WEBPACK_IMPORTED_MODULE_0__["surveyCss"].currentType = themeName;
|
@@ -70936,7 +70972,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
70936
70972
|
return false;
|
70937
70973
|
if (doComplete) {
|
70938
70974
|
this.currentPage.passed = true;
|
70939
|
-
return this.doComplete(this.canBeCompletedByTrigger);
|
70975
|
+
return this.doComplete(this.canBeCompletedByTrigger, this.completedTrigger);
|
70940
70976
|
}
|
70941
70977
|
this.doNextPage();
|
70942
70978
|
return true;
|
@@ -71490,7 +71526,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
71490
71526
|
if (!this.completedByTriggers)
|
71491
71527
|
this.completedByTriggers = {};
|
71492
71528
|
if (isCompleted) {
|
71493
|
-
this.completedByTriggers[trigger.id] =
|
71529
|
+
this.completedByTriggers[trigger.id] = trigger;
|
71494
71530
|
}
|
71495
71531
|
else {
|
71496
71532
|
delete this.completedByTriggers[trigger.id];
|
@@ -71508,6 +71544,16 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
71508
71544
|
enumerable: false,
|
71509
71545
|
configurable: true
|
71510
71546
|
});
|
71547
|
+
Object.defineProperty(SurveyModel.prototype, "completedTrigger", {
|
71548
|
+
get: function () {
|
71549
|
+
if (!this.canBeCompletedByTrigger)
|
71550
|
+
return undefined;
|
71551
|
+
var key = Object.keys(this.completedByTriggers)[0];
|
71552
|
+
return this.completedByTriggers[key];
|
71553
|
+
},
|
71554
|
+
enumerable: false,
|
71555
|
+
configurable: true
|
71556
|
+
});
|
71511
71557
|
Object.defineProperty(SurveyModel.prototype, "processedCompletedHtml", {
|
71512
71558
|
/**
|
71513
71559
|
* Returns the HTML content for the complete page.
|
@@ -71650,6 +71696,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
71650
71696
|
survey: this,
|
71651
71697
|
htmlElement: htmlElement,
|
71652
71698
|
});
|
71699
|
+
this.rootElement = htmlElement;
|
71653
71700
|
};
|
71654
71701
|
SurveyModel.prototype.processResponsiveness = function (width, mobileWidth) {
|
71655
71702
|
var isMobile = width < mobileWidth;
|
@@ -73967,11 +74014,17 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
73967
74014
|
}
|
73968
74015
|
}
|
73969
74016
|
};
|
73970
|
-
SurveyModel.prototype.copyTriggerValue = function (name, fromName) {
|
74017
|
+
SurveyModel.prototype.copyTriggerValue = function (name, fromName, copyDisplayValue) {
|
73971
74018
|
if (!name || !fromName)
|
73972
74019
|
return;
|
73973
|
-
var
|
73974
|
-
|
74020
|
+
var value;
|
74021
|
+
if (copyDisplayValue) {
|
74022
|
+
value = this.processText("{" + fromName + "}", true);
|
74023
|
+
}
|
74024
|
+
else {
|
74025
|
+
var processor = new _conditionProcessValue__WEBPACK_IMPORTED_MODULE_6__["ProcessValue"]();
|
74026
|
+
value = processor.getValue(fromName, this.getFilteredValues());
|
74027
|
+
}
|
73975
74028
|
this.setTriggerValue(name, value, false);
|
73976
74029
|
};
|
73977
74030
|
SurveyModel.prototype.triggerExecuted = function (trigger) {
|
@@ -75143,7 +75196,7 @@ var SvgIconRegistry = /** @class */ (function () {
|
|
75143
75196
|
};
|
75144
75197
|
SvgIconRegistry.prototype.renderIcons = function () {
|
75145
75198
|
var containerId = "sv-icon-holder-global-container";
|
75146
|
-
if (!_settings__WEBPACK_IMPORTED_MODULE_0__["settings"].environment.root.getElementById(containerId)) {
|
75199
|
+
if (!!_settings__WEBPACK_IMPORTED_MODULE_0__["settings"].environment && !_settings__WEBPACK_IMPORTED_MODULE_0__["settings"].environment.root.getElementById(containerId)) {
|
75147
75200
|
var iconsDiv = document.createElement("div");
|
75148
75201
|
iconsDiv.id = containerId;
|
75149
75202
|
iconsDiv.innerHTML = "<svg>" + this.iconsRenderedHtml() + "</svg>";
|
@@ -75991,13 +76044,23 @@ var SurveyTriggerCopyValue = /** @class */ (function (_super) {
|
|
75991
76044
|
enumerable: false,
|
75992
76045
|
configurable: true
|
75993
76046
|
});
|
76047
|
+
Object.defineProperty(SurveyTriggerCopyValue.prototype, "copyDisplayValue", {
|
76048
|
+
get: function () {
|
76049
|
+
return this.getPropertyValue("copyDisplayValue");
|
76050
|
+
},
|
76051
|
+
set: function (val) {
|
76052
|
+
this.setPropertyValue("copyDisplayValue", val);
|
76053
|
+
},
|
76054
|
+
enumerable: false,
|
76055
|
+
configurable: true
|
76056
|
+
});
|
75994
76057
|
SurveyTriggerCopyValue.prototype.getType = function () {
|
75995
76058
|
return "copyvaluetrigger";
|
75996
76059
|
};
|
75997
76060
|
SurveyTriggerCopyValue.prototype.onSuccess = function (values, properties) {
|
75998
76061
|
if (!this.setToName || !this.owner)
|
75999
76062
|
return;
|
76000
|
-
this.owner.copyTriggerValue(this.setToName, this.fromName);
|
76063
|
+
this.owner.copyTriggerValue(this.setToName, this.fromName, this.copyDisplayValue);
|
76001
76064
|
};
|
76002
76065
|
return SurveyTriggerCopyValue;
|
76003
76066
|
}(SurveyTrigger));
|
@@ -76027,7 +76090,8 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_2__["Serializer"].addClass("setvaluetrigger
|
|
76027
76090
|
], function () {
|
76028
76091
|
return new SurveyTriggerSetValue();
|
76029
76092
|
}, "surveytrigger");
|
76030
|
-
_jsonobject__WEBPACK_IMPORTED_MODULE_2__["Serializer"].addClass("copyvaluetrigger", [{ name: "!fromName:questionvalue" }, { name: "!setToName:questionvalue" }
|
76093
|
+
_jsonobject__WEBPACK_IMPORTED_MODULE_2__["Serializer"].addClass("copyvaluetrigger", [{ name: "!fromName:questionvalue" }, { name: "!setToName:questionvalue" },
|
76094
|
+
{ name: "copyDisplayValue:boolean", visible: false }], function () {
|
76031
76095
|
return new SurveyTriggerCopyValue();
|
76032
76096
|
}, "surveytrigger");
|
76033
76097
|
_jsonobject__WEBPACK_IMPORTED_MODULE_2__["Serializer"].addClass("skiptrigger", [{ name: "!gotoName:question" }], function () {
|