survey-core 2.0.0-rc.6 → 2.0.0-rc.7
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.js +1 -1
- package/fesm/i18n/basque.js +1 -1
- package/fesm/i18n/bulgarian.js +1 -1
- package/fesm/i18n/burmese.js +1 -1
- package/fesm/i18n/catalan.js +1 -1
- package/fesm/i18n/croatian.js +1 -1
- package/fesm/i18n/czech.js +1 -1
- package/fesm/i18n/danish.js +1 -1
- package/fesm/i18n/dutch.js +1 -1
- package/fesm/i18n/english.js +1 -1
- package/fesm/i18n/estonian.js +1 -1
- package/fesm/i18n/finnish.js +1 -1
- package/fesm/i18n/french.js +1 -1
- package/fesm/i18n/georgian.js +1 -1
- package/fesm/i18n/german.js +1 -1
- package/fesm/i18n/greek.js +1 -1
- package/fesm/i18n/hebrew.js +1 -1
- package/fesm/i18n/hindi.js +1 -1
- package/fesm/i18n/hungarian.js +1 -1
- package/fesm/i18n/icelandic.js +1 -1
- package/fesm/i18n/index.js +1 -1
- package/fesm/i18n/indonesian.js +1 -1
- package/fesm/i18n/italian.js +1 -1
- package/fesm/i18n/japanese.js +1 -1
- package/fesm/i18n/kazakh.js +1 -1
- package/fesm/i18n/korean.js +1 -1
- package/fesm/i18n/latvian.js +1 -1
- package/fesm/i18n/lithuanian.js +1 -1
- package/fesm/i18n/macedonian.js +1 -1
- package/fesm/i18n/malay.js +1 -1
- package/fesm/i18n/nl-BE.js +1 -1
- package/fesm/i18n/norwegian.js +1 -1
- package/fesm/i18n/persian.js +1 -1
- package/fesm/i18n/philippines.js +1 -1
- package/fesm/i18n/polish.js +1 -1
- package/fesm/i18n/portuguese-br.js +1 -1
- package/fesm/i18n/portuguese.js +1 -1
- package/fesm/i18n/romanian.js +1 -1
- package/fesm/i18n/russian.js +1 -1
- package/fesm/i18n/serbian.js +1 -1
- package/fesm/i18n/simplified-chinese.js +1 -1
- package/fesm/i18n/slovak.js +1 -1
- package/fesm/i18n/slovenian.js +1 -1
- package/fesm/i18n/spanish.js +1 -1
- package/fesm/i18n/swahili.js +1 -1
- package/fesm/i18n/swedish.js +1 -1
- package/fesm/i18n/tajik.js +1 -1
- package/fesm/i18n/telugu.js +1 -1
- package/fesm/i18n/thai.js +1 -1
- package/fesm/i18n/traditional-chinese.js +1 -1
- package/fesm/i18n/turkish.js +1 -1
- package/fesm/i18n/ukrainian.js +1 -1
- package/fesm/i18n/urdu.js +1 -1
- package/fesm/i18n/vietnamese.js +1 -1
- package/fesm/i18n/welsh.js +1 -1
- package/fesm/icons/iconsV1.js +1 -1
- package/fesm/icons/iconsV2.js +1 -1
- package/fesm/survey-core.js +69 -48
- package/fesm/survey-core.js.map +1 -1
- package/fesm/survey.i18n.js +1 -1
- package/fesm/themes/index.js +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js.LICENSE.txt +1 -1
- package/i18n/basque.js +1 -1
- package/i18n/basque.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/catalan.js +1 -1
- package/i18n/catalan.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/estonian.js +1 -1
- package/i18n/estonian.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/georgian.js +1 -1
- package/i18n/georgian.min.js.LICENSE.txt +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js.LICENSE.txt +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js.LICENSE.txt +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js.LICENSE.txt +1 -1
- package/i18n/hindi.js +1 -1
- package/i18n/hindi.min.js.LICENSE.txt +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js.LICENSE.txt +1 -1
- package/i18n/icelandic.js +1 -1
- package/i18n/icelandic.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/kazakh.js +1 -1
- package/i18n/kazakh.min.js.LICENSE.txt +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js.LICENSE.txt +1 -1
- package/i18n/latvian.js +1 -1
- package/i18n/latvian.min.js.LICENSE.txt +1 -1
- package/i18n/lithuanian.js +1 -1
- package/i18n/lithuanian.min.js.LICENSE.txt +1 -1
- package/i18n/macedonian.js +1 -1
- package/i18n/macedonian.min.js.LICENSE.txt +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js.LICENSE.txt +1 -1
- package/i18n/nl-BE.js +1 -1
- package/i18n/nl-BE.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/philippines.js +1 -1
- package/i18n/philippines.min.js.LICENSE.txt +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js.LICENSE.txt +1 -1
- package/i18n/portuguese-br.js +1 -1
- package/i18n/portuguese-br.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/serbian.js +1 -1
- package/i18n/serbian.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/swahili.js +1 -1
- package/i18n/swahili.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/telugu.js +1 -1
- package/i18n/telugu.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/i18n/ukrainian.js +1 -1
- package/i18n/ukrainian.min.js.LICENSE.txt +1 -1
- package/i18n/urdu.js +1 -1
- package/i18n/urdu.min.js.LICENSE.txt +1 -1
- package/i18n/vietnamese.js +1 -1
- package/i18n/vietnamese.min.js.LICENSE.txt +1 -1
- package/i18n/welsh.js +1 -1
- package/i18n/welsh.min.js.LICENSE.txt +1 -1
- package/icons/iconsV1.js +1 -1
- package/icons/iconsV1.min.js.LICENSE.txt +1 -1
- package/icons/iconsV2.js +1 -1
- package/icons/iconsV2.min.js.LICENSE.txt +1 -1
- package/package.json +1 -1
- package/survey-core.css +1 -1
- package/survey-core.fontless.css +1 -1
- package/survey-core.fontless.min.css +1 -1
- package/survey-core.min.css +1 -1
- package/survey.core.js +84 -64
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +1 -1
- package/survey.core.min.js.LICENSE.txt +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js.LICENSE.txt +1 -1
- package/themes/borderless-dark-panelless.js +2 -2
- package/themes/borderless-dark-panelless.js.map +1 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark-panelless.min.js.LICENSE.txt +1 -1
- package/themes/borderless-dark.js +2 -2
- package/themes/borderless-dark.js.map +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-dark.min.js.LICENSE.txt +1 -1
- package/themes/borderless-light-panelless.js +2 -2
- package/themes/borderless-light-panelless.js.map +1 -1
- package/themes/borderless-light-panelless.min.js +1 -1
- package/themes/borderless-light-panelless.min.js.LICENSE.txt +1 -1
- package/themes/borderless-light.js +2 -2
- package/themes/borderless-light.js.map +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/borderless-light.min.js.LICENSE.txt +1 -1
- package/themes/contrast-dark-panelless.js +2 -2
- package/themes/contrast-dark-panelless.js.map +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark-panelless.min.js.LICENSE.txt +1 -1
- package/themes/contrast-dark.js +2 -2
- package/themes/contrast-dark.js.map +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-dark.min.js.LICENSE.txt +1 -1
- package/themes/contrast-light-panelless.js +2 -2
- package/themes/contrast-light-panelless.js.map +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light-panelless.min.js.LICENSE.txt +1 -1
- package/themes/contrast-light.js +2 -2
- package/themes/contrast-light.js.map +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/contrast-light.min.js.LICENSE.txt +1 -1
- package/themes/default-dark-panelless.js +2 -2
- package/themes/default-dark-panelless.js.map +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark-panelless.min.js.LICENSE.txt +1 -1
- package/themes/default-dark.js +2 -2
- package/themes/default-dark.js.map +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-dark.min.js.LICENSE.txt +1 -1
- package/themes/default-light-panelless.js +2 -2
- package/themes/default-light-panelless.js.map +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light-panelless.min.js.LICENSE.txt +1 -1
- package/themes/default-light.js +2 -2
- package/themes/default-light.js.map +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/default-light.min.js.LICENSE.txt +1 -1
- package/themes/doubleborder-dark-panelless.js +2 -2
- package/themes/doubleborder-dark-panelless.js.map +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js.LICENSE.txt +1 -1
- package/themes/doubleborder-dark.js +2 -2
- package/themes/doubleborder-dark.js.map +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-dark.min.js.LICENSE.txt +1 -1
- package/themes/doubleborder-light-panelles.js +2 -2
- package/themes/doubleborder-light-panelles.js.map +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light-panelles.min.js.LICENSE.txt +1 -1
- package/themes/doubleborder-light.js +2 -2
- package/themes/doubleborder-light.js.map +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/doubleborder-light.min.js.LICENSE.txt +1 -1
- package/themes/flat-dark-panelless.js +2 -2
- package/themes/flat-dark-panelless.js.map +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark-panelless.min.js.LICENSE.txt +1 -1
- package/themes/flat-dark.js +2 -2
- package/themes/flat-dark.js.map +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-dark.min.js.LICENSE.txt +1 -1
- package/themes/flat-light-panelless.js +2 -2
- package/themes/flat-light-panelless.js.map +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light-panelless.min.js.LICENSE.txt +1 -1
- package/themes/flat-light.js +2 -2
- package/themes/flat-light.js.map +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/flat-light.min.js.LICENSE.txt +1 -1
- package/themes/index.js +2 -2
- package/themes/index.js.map +1 -1
- package/themes/index.min.js +1 -1
- package/themes/index.min.js.LICENSE.txt +1 -1
- package/themes/layered-dark-panelless.js +2 -2
- package/themes/layered-dark-panelless.js.map +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark-panelless.min.js.LICENSE.txt +1 -1
- package/themes/layered-dark.js +2 -2
- package/themes/layered-dark.js.map +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-dark.min.js.LICENSE.txt +1 -1
- package/themes/layered-light-panelless.js +2 -2
- package/themes/layered-light-panelless.js.map +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light-panelless.min.js.LICENSE.txt +1 -1
- package/themes/layered-light.js +2 -2
- package/themes/layered-light.js.map +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/layered-light.min.js.LICENSE.txt +1 -1
- package/themes/plain-dark-panelless.js +2 -2
- package/themes/plain-dark-panelless.js.map +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark-panelless.min.js.LICENSE.txt +1 -1
- package/themes/plain-dark.js +2 -2
- package/themes/plain-dark.js.map +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-dark.min.js.LICENSE.txt +1 -1
- package/themes/plain-light-panelless.js +2 -2
- package/themes/plain-light-panelless.js.map +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light-panelless.min.js.LICENSE.txt +1 -1
- package/themes/plain-light.js +2 -2
- package/themes/plain-light.js.map +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/plain-light.min.js.LICENSE.txt +1 -1
- package/themes/sharp-dark-panelless.js +2 -2
- package/themes/sharp-dark-panelless.js.map +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark-panelless.min.js.LICENSE.txt +1 -1
- package/themes/sharp-dark.js +2 -2
- package/themes/sharp-dark.js.map +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-dark.min.js.LICENSE.txt +1 -1
- package/themes/sharp-light-panelless.js +2 -2
- package/themes/sharp-light-panelless.js.map +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light-panelless.min.js.LICENSE.txt +1 -1
- package/themes/sharp-light.js +2 -2
- package/themes/sharp-light.js.map +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/sharp-light.min.js.LICENSE.txt +1 -1
- package/themes/solid-dark-panelless.js +2 -2
- package/themes/solid-dark-panelless.js.map +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark-panelless.min.js.LICENSE.txt +1 -1
- package/themes/solid-dark.js +2 -2
- package/themes/solid-dark.js.map +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-dark.min.js.LICENSE.txt +1 -1
- package/themes/solid-light-panelless.js +2 -2
- package/themes/solid-light-panelless.js.map +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light-panelless.min.js.LICENSE.txt +1 -1
- package/themes/solid-light.js +2 -2
- package/themes/solid-light.js.map +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/solid-light.min.js.LICENSE.txt +1 -1
- package/themes/three-dimensional-dark-panelless.js +2 -2
- package/themes/three-dimensional-dark-panelless.js.map +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js.LICENSE.txt +1 -1
- package/themes/three-dimensional-dark.js +2 -2
- package/themes/three-dimensional-dark.js.map +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-dark.min.js.LICENSE.txt +1 -1
- package/themes/three-dimensional-light-panelless.js +2 -2
- package/themes/three-dimensional-light-panelless.js.map +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js.LICENSE.txt +1 -1
- package/themes/three-dimensional-light.js +2 -2
- package/themes/three-dimensional-light.js.map +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/themes/three-dimensional-light.min.js.LICENSE.txt +1 -1
- package/typings/src/dragdrop/choices.d.ts +1 -1
- package/typings/src/survey.d.ts +1 -0
- package/typings/src/trigger.d.ts +9 -1
package/fesm/survey-core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v2.0.0-rc.
|
|
2
|
+
* surveyjs - Survey JavaScript library v2.0.0-rc.7
|
|
3
3
|
* Copyright (c) 2015-2025 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
4
4
|
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
|
|
5
5
|
*/
|
|
@@ -1400,7 +1400,9 @@ class JsonObjectProperty {
|
|
|
1400
1400
|
if (this.isLocalizable)
|
|
1401
1401
|
return value === null || value === undefined;
|
|
1402
1402
|
const dValue = this.getDefaultValue(obj);
|
|
1403
|
-
if (
|
|
1403
|
+
if (dValue !== undefined) {
|
|
1404
|
+
if (typeof dValue !== "object")
|
|
1405
|
+
return dValue === value;
|
|
1404
1406
|
return Helpers.isTwoValueEquals(value, dValue, false, true, false);
|
|
1405
1407
|
}
|
|
1406
1408
|
return ((value === false && (this.type == "boolean" || this.type == "switch") && !this.defaultValueFunc) ||
|
|
@@ -14509,7 +14511,6 @@ class SurveyError {
|
|
|
14509
14511
|
|
|
14510
14512
|
;// ./src/error.ts
|
|
14511
14513
|
|
|
14512
|
-
|
|
14513
14514
|
class AnswerRequiredError extends SurveyError {
|
|
14514
14515
|
constructor(text = null, errorOwner = null) {
|
|
14515
14516
|
super(text, errorOwner);
|
|
@@ -14556,7 +14557,7 @@ class ExceedSizeError extends SurveyError {
|
|
|
14556
14557
|
return "exceedsize";
|
|
14557
14558
|
}
|
|
14558
14559
|
getDefaultText() {
|
|
14559
|
-
return
|
|
14560
|
+
return this.getLocalizationString("exceedMaxSize")["format"](this.getTextSize());
|
|
14560
14561
|
}
|
|
14561
14562
|
getTextSize() {
|
|
14562
14563
|
var sizes = ["Bytes", "KB", "MB", "GB", "TB"];
|
|
@@ -14652,7 +14653,7 @@ class MinRowCountError extends SurveyError {
|
|
|
14652
14653
|
return "minrowcounterror";
|
|
14653
14654
|
}
|
|
14654
14655
|
getDefaultText() {
|
|
14655
|
-
return
|
|
14656
|
+
return this.getLocalizationString("minRowCountError")["format"](this.minRowCount);
|
|
14656
14657
|
}
|
|
14657
14658
|
}
|
|
14658
14659
|
class KeyDuplicationError extends SurveyError {
|
|
@@ -18019,9 +18020,9 @@ class Question extends SurveyElement {
|
|
|
18019
18020
|
}
|
|
18020
18021
|
onSurveyValueChanged(newValue) { }
|
|
18021
18022
|
setVisibleIndex(val) {
|
|
18022
|
-
if (!this.isVisible ||
|
|
18023
|
+
if (val > -1 && (!this.isVisible ||
|
|
18023
18024
|
(!this.hasTitle && !settings.numbering.includeQuestionsWithHiddenTitle) ||
|
|
18024
|
-
(!this.showNumber && !settings.numbering.includeQuestionsWithHiddenNumber)) {
|
|
18025
|
+
(!this.showNumber && !settings.numbering.includeQuestionsWithHiddenNumber))) {
|
|
18025
18026
|
val = -1;
|
|
18026
18027
|
}
|
|
18027
18028
|
this.setPropertyValue("visibleIndex", val);
|
|
@@ -18786,8 +18787,8 @@ class ItemValue extends BaseAction {
|
|
|
18786
18787
|
var jsoObj = new JsonObject();
|
|
18787
18788
|
for (var i = 0; i < properties.length; i++) {
|
|
18788
18789
|
const prop = properties[i];
|
|
18789
|
-
if (prop.name === "text" && (!this.locTextValue || !this.
|
|
18790
|
-
Helpers.isTwoValueEquals(this.value, this.
|
|
18790
|
+
if (prop.name === "text" && (!this.locTextValue || !this.locTextValue.hasNonDefaultText() &&
|
|
18791
|
+
Helpers.isTwoValueEquals(this.value, this.locTextValue.getLocaleText(""), false, true, false)))
|
|
18791
18792
|
continue;
|
|
18792
18793
|
jsoObj.valueToJson(this, res, prop);
|
|
18793
18794
|
}
|
|
@@ -32062,8 +32063,9 @@ class PanelModelBase extends SurveyElement {
|
|
|
32062
32063
|
index += this.beforeSetVisibleIndex(index);
|
|
32063
32064
|
var panelStartIndex = this.getPanelStartIndex(index);
|
|
32064
32065
|
var panelIndex = panelStartIndex;
|
|
32065
|
-
|
|
32066
|
-
|
|
32066
|
+
const elements = this.elements;
|
|
32067
|
+
for (var i = 0; i < elements.length; i++) {
|
|
32068
|
+
panelIndex += elements[i].setVisibleIndex(panelIndex);
|
|
32067
32069
|
}
|
|
32068
32070
|
if (this.isContinueNumbering()) {
|
|
32069
32071
|
index += panelIndex - panelStartIndex;
|
|
@@ -32077,8 +32079,9 @@ class PanelModelBase extends SurveyElement {
|
|
|
32077
32079
|
this.setVisibleIndex(this.lastVisibleIndex);
|
|
32078
32080
|
}
|
|
32079
32081
|
resetVisibleIndexes() {
|
|
32080
|
-
|
|
32081
|
-
|
|
32082
|
+
const elements = this.elements;
|
|
32083
|
+
for (var i = 0; i < elements.length; i++) {
|
|
32084
|
+
elements[i].setVisibleIndex(-1);
|
|
32082
32085
|
}
|
|
32083
32086
|
}
|
|
32084
32087
|
beforeSetVisibleIndex(index) {
|
|
@@ -32910,11 +32913,13 @@ class PageModel extends PanelModel {
|
|
|
32910
32913
|
}
|
|
32911
32914
|
getElementsForRows() {
|
|
32912
32915
|
var _a;
|
|
32913
|
-
|
|
32914
|
-
|
|
32915
|
-
if (q
|
|
32916
|
-
|
|
32917
|
-
|
|
32916
|
+
if (!this.isStartPage) {
|
|
32917
|
+
const q = (_a = this.survey) === null || _a === void 0 ? void 0 : _a.currentSingleQuestion;
|
|
32918
|
+
if (!!q) {
|
|
32919
|
+
if (q.page === this)
|
|
32920
|
+
return [q];
|
|
32921
|
+
return [];
|
|
32922
|
+
}
|
|
32918
32923
|
}
|
|
32919
32924
|
return super.getElementsForRows();
|
|
32920
32925
|
}
|
|
@@ -34639,9 +34644,6 @@ class SurveyModel extends SurveyElementCore {
|
|
|
34639
34644
|
this.onScrollCallback = undefined;
|
|
34640
34645
|
}
|
|
34641
34646
|
});
|
|
34642
|
-
if (this.headerView === "advanced") {
|
|
34643
|
-
this.insertAdvancedHeader(new Cover());
|
|
34644
|
-
}
|
|
34645
34647
|
this.layoutElements.push({
|
|
34646
34648
|
id: "timerpanel",
|
|
34647
34649
|
template: "survey-timerpanel",
|
|
@@ -37322,7 +37324,7 @@ class SurveyModel extends SurveyElementCore {
|
|
|
37322
37324
|
if (goToFirstPage) {
|
|
37323
37325
|
this.currentPage = this.firstVisiblePage;
|
|
37324
37326
|
if (this.currentSingleQuestion) {
|
|
37325
|
-
const questions = this.
|
|
37327
|
+
const questions = this.getSingleQuestions();
|
|
37326
37328
|
this.currentSingleQuestion = questions.length > 0 ? questions[0] : undefined;
|
|
37327
37329
|
}
|
|
37328
37330
|
}
|
|
@@ -37565,10 +37567,13 @@ class SurveyModel extends SurveyElementCore {
|
|
|
37565
37567
|
return this.nextPage();
|
|
37566
37568
|
if (!q.validate(true))
|
|
37567
37569
|
return false;
|
|
37568
|
-
const questions = this.
|
|
37570
|
+
const questions = this.getSingleQuestions();
|
|
37569
37571
|
const index = questions.indexOf(q);
|
|
37570
37572
|
if (index < 0 || index === questions.length - 1)
|
|
37571
37573
|
return false;
|
|
37574
|
+
const key = {};
|
|
37575
|
+
key[q.name] = q.value;
|
|
37576
|
+
this.checkTriggers(key, false, false, true, q.name);
|
|
37572
37577
|
this.currentSingleQuestion = questions[index + 1];
|
|
37573
37578
|
return true;
|
|
37574
37579
|
}
|
|
@@ -37576,7 +37581,7 @@ class SurveyModel extends SurveyElementCore {
|
|
|
37576
37581
|
const q = this.currentSingleQuestion;
|
|
37577
37582
|
if (!q)
|
|
37578
37583
|
return this.prevPage();
|
|
37579
|
-
const questions = this.
|
|
37584
|
+
const questions = this.getSingleQuestions();
|
|
37580
37585
|
const index = questions.indexOf(q);
|
|
37581
37586
|
if (index === 0)
|
|
37582
37587
|
return false;
|
|
@@ -38137,10 +38142,21 @@ class SurveyModel extends SurveyElementCore {
|
|
|
38137
38142
|
});
|
|
38138
38143
|
this.updateButtonsVisibility();
|
|
38139
38144
|
}
|
|
38145
|
+
getSingleQuestions() {
|
|
38146
|
+
const res = new Array();
|
|
38147
|
+
const pages = this.pages;
|
|
38148
|
+
for (var i = 0; i < pages.length; i++) {
|
|
38149
|
+
const p = pages[i];
|
|
38150
|
+
if (!p.isStartPage && p.isVisible) {
|
|
38151
|
+
p.addQuestionsToList(res, true);
|
|
38152
|
+
}
|
|
38153
|
+
}
|
|
38154
|
+
return res;
|
|
38155
|
+
}
|
|
38140
38156
|
get currentSingleQuestion() { return this.currentSingleQuestionValue; }
|
|
38141
38157
|
set currentSingleQuestion(val) {
|
|
38142
38158
|
const oldVal = this.currentSingleQuestion;
|
|
38143
|
-
if (val !== oldVal) {
|
|
38159
|
+
if (val !== oldVal && !this.isCompleted) {
|
|
38144
38160
|
const options = !!val && !!oldVal ? this.createPageChangeEventOptions(val.page, oldVal.page, val, oldVal) : undefined;
|
|
38145
38161
|
if (!!options && !this.currentPageChangingFromOptions(options))
|
|
38146
38162
|
return;
|
|
@@ -38177,7 +38193,7 @@ class SurveyModel extends SurveyElementCore {
|
|
|
38177
38193
|
this.updatePagesContainer();
|
|
38178
38194
|
}
|
|
38179
38195
|
if (this.isSingleVisibleQuestion) {
|
|
38180
|
-
const questions = this.
|
|
38196
|
+
const questions = this.getSingleQuestions();
|
|
38181
38197
|
if (questions.length > 0) {
|
|
38182
38198
|
this.currentSingleQuestion = questions[0];
|
|
38183
38199
|
}
|
|
@@ -38237,7 +38253,7 @@ class SurveyModel extends SurveyElementCore {
|
|
|
38237
38253
|
let lVal = undefined;
|
|
38238
38254
|
const q = this.currentSingleQuestion;
|
|
38239
38255
|
if (!!q) {
|
|
38240
|
-
const questions = this.
|
|
38256
|
+
const questions = this.getSingleQuestions();
|
|
38241
38257
|
const index = questions.indexOf(q);
|
|
38242
38258
|
if (index >= 0) {
|
|
38243
38259
|
fVal = index === 0;
|
|
@@ -39631,7 +39647,7 @@ class SurveyModel extends SurveyElementCore {
|
|
|
39631
39647
|
}
|
|
39632
39648
|
return result;
|
|
39633
39649
|
}
|
|
39634
|
-
checkTriggers(key, isOnNextPage, isOnComplete = false, name) {
|
|
39650
|
+
checkTriggers(key, isOnNextPage, isOnComplete = false, isOnNavigation = false, name) {
|
|
39635
39651
|
if (this.isCompleted || this.triggers.length == 0 || this.isDisplayMode)
|
|
39636
39652
|
return;
|
|
39637
39653
|
if (this.isTriggerIsRunning) {
|
|
@@ -39655,7 +39671,9 @@ class SurveyModel extends SurveyElementCore {
|
|
|
39655
39671
|
const trigger = this.triggers[i];
|
|
39656
39672
|
if (isQuestionInvalid && trigger.requireValidQuestion)
|
|
39657
39673
|
continue;
|
|
39658
|
-
|
|
39674
|
+
const options = { isOnNextPage: isOnNextPage, isOnComplete: isOnComplete, isOnNavigation: isOnNavigation,
|
|
39675
|
+
keys: this.triggerKeys, values: this.triggerValues, properties: properties };
|
|
39676
|
+
trigger.checkExpression(options);
|
|
39659
39677
|
}
|
|
39660
39678
|
if (prevCanBeCompleted !== this.canBeCompletedByTrigger) {
|
|
39661
39679
|
this.updateButtonsVisibility();
|
|
@@ -39666,7 +39684,7 @@ class SurveyModel extends SurveyElementCore {
|
|
|
39666
39684
|
var triggerKeys = {};
|
|
39667
39685
|
triggerKeys[name] = { newValue: newValue, oldValue: oldValue };
|
|
39668
39686
|
this.runConditionOnValueChanged(name, newValue);
|
|
39669
|
-
this.checkTriggers(triggerKeys, false, false, name);
|
|
39687
|
+
this.checkTriggers(triggerKeys, false, false, false, name);
|
|
39670
39688
|
}
|
|
39671
39689
|
get hasRequiredValidQuestionTrigger() {
|
|
39672
39690
|
for (let i = 0; i < this.triggers.length; i++) {
|
|
@@ -39854,8 +39872,9 @@ class SurveyModel extends SurveyElementCore {
|
|
|
39854
39872
|
}
|
|
39855
39873
|
else {
|
|
39856
39874
|
let index = this.getStartVisibleIndex();
|
|
39857
|
-
|
|
39858
|
-
|
|
39875
|
+
const pages = this.pages;
|
|
39876
|
+
for (let i = 0; i < pages.length; i++) {
|
|
39877
|
+
index += pages[i].setVisibleIndex(index);
|
|
39859
39878
|
}
|
|
39860
39879
|
}
|
|
39861
39880
|
}
|
|
@@ -41499,6 +41518,7 @@ class SurveyModel extends SurveyElementCore {
|
|
|
41499
41518
|
}
|
|
41500
41519
|
});
|
|
41501
41520
|
if (this.headerView === "advanced" || "header" in theme) {
|
|
41521
|
+
this.headerView = "advanced";
|
|
41502
41522
|
this.removeLayoutElement("advanced-header");
|
|
41503
41523
|
const advHeader = new Cover();
|
|
41504
41524
|
advHeader.fromTheme(theme);
|
|
@@ -42024,7 +42044,7 @@ Serializer.addClass("survey", [
|
|
|
42024
42044
|
{ name: "gridLayoutEnabled:boolean", default: false },
|
|
42025
42045
|
{ name: "width", visibleIf: (obj) => { return obj.widthMode === "static"; } },
|
|
42026
42046
|
{ name: "fitToContainer:boolean", default: true, visible: false },
|
|
42027
|
-
{ name: "headerView", default: "
|
|
42047
|
+
{ name: "headerView", default: "basic", choices: ["basic", "advanced"], visible: false },
|
|
42028
42048
|
{ name: "backgroundImage:file", visible: false },
|
|
42029
42049
|
{ name: "backgroundImageFit", default: "cover", choices: ["auto", "contain", "cover"], visible: false },
|
|
42030
42050
|
{ name: "backgroundImageAttachment", default: "scroll", choices: ["scroll", "fixed"], visible: false },
|
|
@@ -50564,11 +50584,11 @@ class DragDropChoices extends DragDropCore {
|
|
|
50564
50584
|
dragOverChoice = this.parentElement.choices.filter((choice) => "" + choice.value == dataAttributeValue)[0];
|
|
50565
50585
|
return dragOverChoice;
|
|
50566
50586
|
}
|
|
50567
|
-
|
|
50587
|
+
getChoices() {
|
|
50568
50588
|
const parent = this.parentElement;
|
|
50569
50589
|
if (parent.getType() === "ranking") {
|
|
50570
50590
|
if (parent.selectToRankEnabled) {
|
|
50571
|
-
return parent.
|
|
50591
|
+
return parent.unRankingChoices;
|
|
50572
50592
|
}
|
|
50573
50593
|
else {
|
|
50574
50594
|
return parent.rankingChoices;
|
|
@@ -50577,7 +50597,7 @@ class DragDropChoices extends DragDropCore {
|
|
|
50577
50597
|
return parent.visibleChoices;
|
|
50578
50598
|
}
|
|
50579
50599
|
isDropTargetValid(dropTarget, dropTargetNode) {
|
|
50580
|
-
const choices = this.
|
|
50600
|
+
const choices = this.getChoices();
|
|
50581
50601
|
if (this.parentElement.getType() !== "imagepicker") {
|
|
50582
50602
|
const dropTargetIndex = choices.indexOf(this.dropTarget);
|
|
50583
50603
|
const draggedElementIndex = choices.indexOf(this.draggedElement);
|
|
@@ -50604,7 +50624,7 @@ class DragDropChoices extends DragDropCore {
|
|
|
50604
50624
|
}
|
|
50605
50625
|
afterDragOver(dropTargetNode) {
|
|
50606
50626
|
//if (this.isDropTargetDoesntChanged(this.isBottom)) return;
|
|
50607
|
-
const choices = this.
|
|
50627
|
+
const choices = this.getChoices();
|
|
50608
50628
|
const dropTargetIndex = choices.indexOf(this.dropTarget);
|
|
50609
50629
|
const draggedElementIndex = choices.indexOf(this.draggedElement);
|
|
50610
50630
|
if (draggedElementIndex < dropTargetIndex && this.isBottom === true) {
|
|
@@ -50638,7 +50658,7 @@ class DragDropChoices extends DragDropCore {
|
|
|
50638
50658
|
}
|
|
50639
50659
|
doDrop() {
|
|
50640
50660
|
const choices = this.parentElement.choices;
|
|
50641
|
-
const filteredChoices = this.
|
|
50661
|
+
const filteredChoices = this.getChoices().filter((item) => {
|
|
50642
50662
|
return choices.indexOf(item) !== -1;
|
|
50643
50663
|
});
|
|
50644
50664
|
const oldIndex = choices.indexOf(this.draggedElement);
|
|
@@ -59555,20 +59575,21 @@ class Trigger extends Base {
|
|
|
59555
59575
|
canBeExecutedOnComplete() {
|
|
59556
59576
|
return false;
|
|
59557
59577
|
}
|
|
59558
|
-
checkExpression(
|
|
59559
|
-
this.isExecutingOnNextPage = isOnNextPage;
|
|
59560
|
-
|
|
59578
|
+
checkExpression(options) {
|
|
59579
|
+
this.isExecutingOnNextPage = options.isOnNextPage;
|
|
59580
|
+
this.isExecutingOnNavigation = options.isOnNavigation || options.isOnNextPage;
|
|
59581
|
+
if (!this.canBeExecuted(options.isOnNextPage))
|
|
59561
59582
|
return;
|
|
59562
|
-
if (isOnComplete && !this.canBeExecutedOnComplete())
|
|
59583
|
+
if (options.isOnComplete && !this.canBeExecutedOnComplete())
|
|
59563
59584
|
return;
|
|
59564
|
-
if (!this.isCheckRequired(keys))
|
|
59585
|
+
if (!this.isCheckRequired(options.keys))
|
|
59565
59586
|
return;
|
|
59566
59587
|
if (!!this.conditionRunner) {
|
|
59567
|
-
this.perform(values, properties);
|
|
59588
|
+
this.perform(options.values, options.properties || null);
|
|
59568
59589
|
}
|
|
59569
59590
|
else {
|
|
59570
59591
|
if (this.canSuccessOnEmptyExpression()) {
|
|
59571
|
-
this.triggerResult(true, values, properties);
|
|
59592
|
+
this.triggerResult(true, options.values, options.properties || null);
|
|
59572
59593
|
}
|
|
59573
59594
|
}
|
|
59574
59595
|
}
|
|
@@ -59737,7 +59758,7 @@ class SurveyTriggerComplete extends SurveyTrigger {
|
|
|
59737
59758
|
}
|
|
59738
59759
|
get requireValidQuestion() { return true; }
|
|
59739
59760
|
isRealExecution() {
|
|
59740
|
-
return !settings.triggers.executeCompleteOnValueChanged === this.
|
|
59761
|
+
return !settings.triggers.executeCompleteOnValueChanged === this.isExecutingOnNavigation;
|
|
59741
59762
|
}
|
|
59742
59763
|
onSuccess(values, properties) {
|
|
59743
59764
|
if (!this.owner)
|
|
@@ -61780,11 +61801,11 @@ var Version;
|
|
|
61780
61801
|
var ReleaseDate;
|
|
61781
61802
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
61782
61803
|
//@ts-ignore
|
|
61783
|
-
Version = `${"2.0.0-rc.
|
|
61804
|
+
Version = `${"2.0.0-rc.7"}`;
|
|
61784
61805
|
settings.version = Version;
|
|
61785
61806
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
61786
61807
|
//@ts-ignore
|
|
61787
|
-
ReleaseDate = `${"2025-02-
|
|
61808
|
+
ReleaseDate = `${"2025-02-24"}`;
|
|
61788
61809
|
function checkLibraryVersion(ver, libraryName) {
|
|
61789
61810
|
if (Version != ver) {
|
|
61790
61811
|
const str = "survey-core has version '" + Version + "' and " + libraryName
|