survey-core 1.9.112 → 1.9.113
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 +389 -339
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +389 -339
- package/defaultV2.fontless.css.map +1 -1
- package/defaultV2.fontless.min.css +2 -2
- package/defaultV2.min.css +2 -2
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/basque.js +1 -1
- package/i18n/basque.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.min.js +1 -1
- package/i18n/catalan.js +1 -1
- package/i18n/catalan.min.js +1 -1
- package/i18n/croatian.js +1 -1
- package/i18n/croatian.min.js +1 -1
- package/i18n/czech.js +1 -1
- package/i18n/czech.min.js +1 -1
- package/i18n/danish.js +1 -1
- package/i18n/danish.min.js +1 -1
- package/i18n/dutch.js +1 -1
- package/i18n/dutch.min.js +1 -1
- package/i18n/english.js +1 -1
- package/i18n/english.min.js +1 -1
- package/i18n/estonian.js +1 -1
- package/i18n/estonian.min.js +1 -1
- package/i18n/finnish.js +1 -1
- package/i18n/finnish.min.js +1 -1
- package/i18n/french.js +1 -1
- package/i18n/french.min.js +1 -1
- package/i18n/georgian.js +1 -1
- package/i18n/georgian.min.js +1 -1
- package/i18n/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/greek.js +1 -1
- package/i18n/greek.min.js +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hindi.js +1 -1
- package/i18n/hindi.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.min.js +1 -1
- package/i18n/icelandic.js +1 -1
- package/i18n/icelandic.min.js +1 -1
- package/i18n/index.js +1 -1
- package/i18n/index.min.js +1 -1
- package/i18n/indonesian.js +1 -1
- package/i18n/indonesian.min.js +1 -1
- package/i18n/italian.js +1 -1
- package/i18n/italian.min.js +1 -1
- package/i18n/japanese.js +1 -1
- package/i18n/japanese.min.js +1 -1
- package/i18n/kazakh.js +1 -1
- package/i18n/kazakh.min.js +1 -1
- package/i18n/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/latvian.js +1 -1
- package/i18n/latvian.min.js +1 -1
- package/i18n/lithuanian.js +1 -1
- package/i18n/lithuanian.min.js +1 -1
- package/i18n/macedonian.js +1 -1
- package/i18n/macedonian.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/nl-BE.js +1 -1
- package/i18n/nl-BE.min.js +1 -1
- package/i18n/norwegian.js +1 -1
- package/i18n/norwegian.min.js +1 -1
- package/i18n/persian.js +1 -1
- package/i18n/persian.min.js +1 -1
- package/i18n/polish.js +1 -1
- package/i18n/polish.min.js +1 -1
- package/i18n/portuguese-br.js +1 -1
- package/i18n/portuguese-br.min.js +1 -1
- package/i18n/portuguese.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/romanian.js +1 -1
- package/i18n/romanian.min.js +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.min.js +1 -1
- package/i18n/serbian.js +1 -1
- package/i18n/serbian.min.js +1 -1
- package/i18n/simplified-chinese.js +1 -1
- package/i18n/simplified-chinese.min.js +1 -1
- package/i18n/slovak.js +1 -1
- package/i18n/slovak.min.js +1 -1
- package/i18n/spanish.js +1 -1
- package/i18n/spanish.min.js +1 -1
- package/i18n/swahili.js +1 -1
- package/i18n/swahili.min.js +1 -1
- package/i18n/swedish.js +1 -1
- package/i18n/swedish.min.js +1 -1
- package/i18n/tajik.js +1 -1
- package/i18n/tajik.min.js +1 -1
- package/i18n/telugu.js +1 -1
- package/i18n/telugu.min.js +1 -1
- package/i18n/thai.js +1 -1
- package/i18n/thai.min.js +1 -1
- package/i18n/traditional-chinese.js +1 -1
- package/i18n/traditional-chinese.min.js +1 -1
- package/i18n/turkish.js +1 -1
- package/i18n/turkish.min.js +1 -1
- package/i18n/ukrainian.js +1 -1
- package/i18n/ukrainian.min.js +1 -1
- package/i18n/urdu.js +1 -1
- package/i18n/urdu.min.js +1 -1
- package/i18n/vietnamese.js +1 -1
- package/i18n/vietnamese.min.js +1 -1
- package/i18n/welsh.js +1 -1
- package/i18n/welsh.min.js +1 -1
- package/modern.css +245 -125
- package/modern.css.map +1 -1
- package/modern.fontless.css +245 -125
- package/modern.fontless.css.map +1 -1
- package/modern.fontless.min.css +2 -2
- package/modern.min.css +2 -2
- package/package.json +1 -1
- package/plugins/bootstrap-integration.js +1 -1
- package/plugins/bootstrap-integration.min.js +1 -1
- package/plugins/bootstrap-material-integration.js +1 -1
- package/plugins/bootstrap-material-integration.min.js +1 -1
- package/survey.core.js +238 -124
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +1 -1
- package/survey.css.map +1 -1
- package/survey.i18n.js +1 -1
- package/survey.i18n.min.js +1 -1
- package/survey.min.css +1 -1
- package/themes/borderless-dark-panelless.js +1 -6
- package/themes/borderless-dark-panelless.js.map +1 -1
- package/themes/borderless-dark-panelless.min.js +2 -2
- package/themes/borderless-dark.js +1 -6
- package/themes/borderless-dark.js.map +1 -1
- package/themes/borderless-dark.min.js +2 -2
- package/themes/borderless-light-panelless..js +1 -6
- package/themes/borderless-light-panelless..js.map +1 -1
- package/themes/borderless-light-panelless..min.js +2 -2
- package/themes/borderless-light.js +1 -6
- package/themes/borderless-light.js.map +1 -1
- package/themes/borderless-light.min.js +2 -2
- package/themes/contrast-dark-panelless.js +1 -6
- package/themes/contrast-dark-panelless.js.map +1 -1
- package/themes/contrast-dark-panelless.min.js +2 -2
- package/themes/contrast-dark.js +1 -6
- package/themes/contrast-dark.js.map +1 -1
- package/themes/contrast-dark.min.js +2 -2
- package/themes/contrast-light-panelless.js +1 -6
- package/themes/contrast-light-panelless.js.map +1 -1
- package/themes/contrast-light-panelless.min.js +2 -2
- package/themes/contrast-light.js +1 -6
- package/themes/contrast-light.js.map +1 -1
- package/themes/contrast-light.min.js +2 -2
- package/themes/default-dark-panelless.js +1 -6
- package/themes/default-dark-panelless.js.map +1 -1
- package/themes/default-dark-panelless.min.js +2 -2
- package/themes/default-dark.js +1 -6
- package/themes/default-dark.js.map +1 -1
- package/themes/default-dark.min.js +2 -2
- package/themes/default-light-panelless.js +1 -6
- package/themes/default-light-panelless.js.map +1 -1
- package/themes/default-light-panelless.min.js +2 -2
- package/themes/default-light.js +1 -6
- package/themes/default-light.js.map +1 -1
- package/themes/default-light.min.js +2 -2
- package/themes/doubleborder-dark-panelless.js +1 -6
- package/themes/doubleborder-dark-panelless.js.map +1 -1
- package/themes/doubleborder-dark-panelless.min.js +2 -2
- package/themes/doubleborder-dark.js +1 -6
- package/themes/doubleborder-dark.js.map +1 -1
- package/themes/doubleborder-dark.min.js +2 -2
- package/themes/doubleborder-light-panelles.js +1 -6
- package/themes/doubleborder-light-panelles.js.map +1 -1
- package/themes/doubleborder-light-panelles.min.js +2 -2
- package/themes/doubleborder-light.js +1 -6
- package/themes/doubleborder-light.js.map +1 -1
- package/themes/doubleborder-light.min.js +2 -2
- package/themes/flat-dark-panelless.js +1 -6
- package/themes/flat-dark-panelless.js.map +1 -1
- package/themes/flat-dark-panelless.min.js +2 -2
- package/themes/flat-dark.js +1 -6
- package/themes/flat-dark.js.map +1 -1
- package/themes/flat-dark.min.js +2 -2
- package/themes/flat-light-panelless.js +1 -6
- package/themes/flat-light-panelless.js.map +1 -1
- package/themes/flat-light-panelless.min.js +2 -2
- package/themes/flat-light.js +1 -6
- package/themes/flat-light.js.map +1 -1
- package/themes/flat-light.min.js +2 -2
- package/themes/index.js +1 -201
- package/themes/index.js.map +1 -1
- package/themes/index.min.js +2 -2
- package/themes/layered-dark-panelless.js +1 -6
- package/themes/layered-dark-panelless.js.map +1 -1
- package/themes/layered-dark-panelless.min.js +2 -2
- package/themes/layered-dark.js +1 -6
- package/themes/layered-dark.js.map +1 -1
- package/themes/layered-dark.min.js +2 -2
- package/themes/layered-light-panelless.js +1 -6
- package/themes/layered-light-panelless.js.map +1 -1
- package/themes/layered-light-panelless.min.js +2 -2
- package/themes/layered-light.js +1 -6
- package/themes/layered-light.js.map +1 -1
- package/themes/layered-light.min.js +2 -2
- package/themes/plain-dark-panelless.js +1 -6
- package/themes/plain-dark-panelless.js.map +1 -1
- package/themes/plain-dark-panelless.min.js +2 -2
- package/themes/plain-dark.js +1 -6
- package/themes/plain-dark.js.map +1 -1
- package/themes/plain-dark.min.js +2 -2
- package/themes/plain-light-panelless.js +1 -6
- package/themes/plain-light-panelless.js.map +1 -1
- package/themes/plain-light-panelless.min.js +2 -2
- package/themes/plain-light.js +1 -6
- package/themes/plain-light.js.map +1 -1
- package/themes/plain-light.min.js +2 -2
- package/themes/sharp-dark-panelless.js +1 -6
- package/themes/sharp-dark-panelless.js.map +1 -1
- package/themes/sharp-dark-panelless.min.js +2 -2
- package/themes/sharp-dark.js +1 -6
- package/themes/sharp-dark.js.map +1 -1
- package/themes/sharp-dark.min.js +2 -2
- package/themes/sharp-light-panelless.js +1 -6
- package/themes/sharp-light-panelless.js.map +1 -1
- package/themes/sharp-light-panelless.min.js +2 -2
- package/themes/sharp-light.js +1 -6
- package/themes/sharp-light.js.map +1 -1
- package/themes/sharp-light.min.js +2 -2
- package/themes/solid-dark-panelless.js +1 -6
- package/themes/solid-dark-panelless.js.map +1 -1
- package/themes/solid-dark-panelless.min.js +2 -2
- package/themes/solid-dark.js +1 -6
- package/themes/solid-dark.js.map +1 -1
- package/themes/solid-dark.min.js +2 -2
- package/themes/solid-light-panelless.js +1 -6
- package/themes/solid-light-panelless.js.map +1 -1
- package/themes/solid-light-panelless.min.js +2 -2
- package/themes/solid-light.js +1 -6
- package/themes/solid-light.js.map +1 -1
- package/themes/solid-light.min.js +2 -2
- package/themes/three-dimensional-dark-panelless.js +1 -6
- package/themes/three-dimensional-dark-panelless.js.map +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +2 -2
- package/themes/three-dimensional-dark.js +1 -6
- package/themes/three-dimensional-dark.js.map +1 -1
- package/themes/three-dimensional-dark.min.js +2 -2
- package/themes/three-dimensional-light-panelless.js +1 -6
- package/themes/three-dimensional-light-panelless.js.map +1 -1
- package/themes/three-dimensional-light-panelless.min.js +2 -2
- package/themes/three-dimensional-light.js +1 -6
- package/themes/three-dimensional-light.js.map +1 -1
- package/themes/three-dimensional-light.min.js +2 -2
- package/themes/typings/borderless-dark-panelless.d.ts +0 -10
- package/themes/typings/borderless-dark.d.ts +0 -10
- package/themes/typings/borderless-light-panelless.d.ts +0 -10
- package/themes/typings/borderless-light.d.ts +0 -10
- package/themes/typings/contrast-dark-panelless.d.ts +0 -10
- package/themes/typings/contrast-dark.d.ts +0 -10
- package/themes/typings/contrast-light-panelless.d.ts +0 -10
- package/themes/typings/contrast-light.d.ts +0 -10
- package/themes/typings/default-dark-panelless.d.ts +0 -10
- package/themes/typings/default-dark.d.ts +0 -10
- package/themes/typings/default-light-panelless.d.ts +0 -10
- package/themes/typings/default-light.d.ts +0 -10
- package/themes/typings/doubleborder-dark-panelless.d.ts +0 -10
- package/themes/typings/doubleborder-dark.d.ts +0 -10
- package/themes/typings/doubleborder-light-panelless.d.ts +0 -10
- package/themes/typings/doubleborder-light.d.ts +0 -10
- package/themes/typings/flat-dark-panelless.d.ts +0 -10
- package/themes/typings/flat-dark.d.ts +0 -10
- package/themes/typings/flat-light-panelless.d.ts +0 -10
- package/themes/typings/flat-light.d.ts +0 -10
- package/themes/typings/index.d.ts +0 -200
- package/themes/typings/layered-dark-panelless.d.ts +0 -10
- package/themes/typings/layered-dark.d.ts +0 -10
- package/themes/typings/layered-light-panelless.d.ts +0 -10
- package/themes/typings/layered-light.d.ts +0 -10
- package/themes/typings/plain-dark-panelless.d.ts +0 -10
- package/themes/typings/plain-dark.d.ts +0 -10
- package/themes/typings/plain-light-panelless.d.ts +0 -10
- package/themes/typings/plain-light.d.ts +0 -10
- package/themes/typings/sharp-dark-panelless.d.ts +0 -10
- package/themes/typings/sharp-dark.d.ts +0 -10
- package/themes/typings/sharp-light-panelless.d.ts +0 -10
- package/themes/typings/sharp-light.d.ts +0 -10
- package/themes/typings/solid-dark-panelless.d.ts +0 -10
- package/themes/typings/solid-dark.d.ts +0 -10
- package/themes/typings/solid-light-panelless.d.ts +0 -10
- package/themes/typings/solid-light.d.ts +0 -10
- package/themes/typings/threedimensional-dark-panelless.d.ts +0 -10
- package/themes/typings/threedimensional-dark.d.ts +0 -10
- package/themes/typings/threedimensional-light-panelless.d.ts +0 -10
- package/themes/typings/threedimensional-light.d.ts +0 -10
- package/ts3.4/themes/typings/borderless-dark-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/borderless-dark.d.ts +0 -10
- package/ts3.4/themes/typings/borderless-light-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/borderless-light.d.ts +0 -10
- package/ts3.4/themes/typings/contrast-dark-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/contrast-dark.d.ts +0 -10
- package/ts3.4/themes/typings/contrast-light-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/contrast-light.d.ts +0 -10
- package/ts3.4/themes/typings/default-dark-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/default-dark.d.ts +0 -10
- package/ts3.4/themes/typings/default-light-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/default-light.d.ts +0 -10
- package/ts3.4/themes/typings/doubleborder-dark-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/doubleborder-dark.d.ts +0 -10
- package/ts3.4/themes/typings/doubleborder-light-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/doubleborder-light.d.ts +0 -10
- package/ts3.4/themes/typings/flat-dark-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/flat-dark.d.ts +0 -10
- package/ts3.4/themes/typings/flat-light-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/flat-light.d.ts +0 -10
- package/ts3.4/themes/typings/index.d.ts +0 -200
- package/ts3.4/themes/typings/layered-dark-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/layered-dark.d.ts +0 -10
- package/ts3.4/themes/typings/layered-light-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/layered-light.d.ts +0 -10
- package/ts3.4/themes/typings/plain-dark-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/plain-dark.d.ts +0 -10
- package/ts3.4/themes/typings/plain-light-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/plain-light.d.ts +0 -10
- package/ts3.4/themes/typings/sharp-dark-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/sharp-dark.d.ts +0 -10
- package/ts3.4/themes/typings/sharp-light-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/sharp-light.d.ts +0 -10
- package/ts3.4/themes/typings/solid-dark-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/solid-dark.d.ts +0 -10
- package/ts3.4/themes/typings/solid-light-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/solid-light.d.ts +0 -10
- package/ts3.4/themes/typings/threedimensional-dark-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/threedimensional-dark.d.ts +0 -10
- package/ts3.4/themes/typings/threedimensional-light-panelless.d.ts +0 -10
- package/ts3.4/themes/typings/threedimensional-light.d.ts +0 -10
- package/ts3.4/typings/cover.d.ts +2 -1
- package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +6 -1
- package/ts3.4/typings/dragdrop/ranking-select-to-rank.d.ts +4 -0
- package/ts3.4/typings/entries/chunks/model.d.ts +1 -0
- package/ts3.4/typings/jsonobject.d.ts +3 -1
- package/ts3.4/typings/page.d.ts +4 -1
- package/ts3.4/typings/popup.d.ts +1 -0
- package/ts3.4/typings/question.d.ts +2 -0
- package/ts3.4/typings/question_dropdown.d.ts +1 -0
- package/ts3.4/typings/question_matrixdynamic.d.ts +1 -1
- package/ts3.4/typings/question_multipletext.d.ts +8 -0
- package/ts3.4/typings/question_paneldynamic.d.ts +2 -0
- package/ts3.4/typings/question_ranking.d.ts +1 -2
- package/ts3.4/typings/question_rating.d.ts +7 -1
- package/ts3.4/typings/question_signaturepad.d.ts +2 -2
- package/ts3.4/typings/question_tagbox.d.ts +1 -0
- package/ts3.4/typings/question_text.d.ts +1 -0
- package/ts3.4/typings/settings.d.ts +6 -0
- package/ts3.4/typings/survey-events-api.d.ts +0 -4
- package/ts3.4/typings/survey.d.ts +15 -8
- package/ts3.4/typings/surveytimer.d.ts +1 -0
- package/ts3.4/typings/themes.d.ts +137 -4
- package/typings/cover.d.ts +2 -1
- package/typings/defaultCss/defaultV2Css.d.ts +6 -1
- package/typings/dragdrop/ranking-select-to-rank.d.ts +4 -0
- package/typings/entries/chunks/model.d.ts +1 -0
- package/typings/jsonobject.d.ts +3 -1
- package/typings/page.d.ts +4 -1
- package/typings/popup.d.ts +1 -0
- package/typings/question.d.ts +2 -0
- package/typings/question_dropdown.d.ts +1 -0
- package/typings/question_matrixdynamic.d.ts +1 -1
- package/typings/question_multipletext.d.ts +10 -0
- package/typings/question_paneldynamic.d.ts +2 -0
- package/typings/question_ranking.d.ts +1 -2
- package/typings/question_rating.d.ts +8 -1
- package/typings/question_signaturepad.d.ts +2 -2
- package/typings/question_tagbox.d.ts +1 -0
- package/typings/question_text.d.ts +1 -0
- package/typings/settings.d.ts +6 -0
- package/typings/survey-events-api.d.ts +0 -4
- package/typings/survey.d.ts +15 -8
- package/typings/surveytimer.d.ts +1 -0
- package/typings/themes.d.ts +137 -4
package/survey.core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* surveyjs - Survey JavaScript library v1.9.
|
|
2
|
+
* surveyjs - Survey JavaScript library v1.9.113
|
|
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
|
*/
|
|
@@ -4548,10 +4548,12 @@ var Cover = /** @class */ (function (_super) {
|
|
|
4548
4548
|
.toString();
|
|
4549
4549
|
};
|
|
4550
4550
|
Cover.prototype.updateContentClasses = function () {
|
|
4551
|
+
var surveyWidthMode = !!this.survey && this.survey.calculateWidthMode();
|
|
4552
|
+
this.maxWidth = this.inheritWidthFrom === "survey" && !!surveyWidthMode && surveyWidthMode === "static" && this.survey.renderedWidth;
|
|
4551
4553
|
this.contentClasses = new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_2__["CssClassBuilder"]()
|
|
4552
4554
|
.append("sv-conver__content")
|
|
4553
|
-
.append("sv-conver__content--static", this.inheritWidthFrom === "survey" && !!
|
|
4554
|
-
.append("sv-conver__content--responsive", this.inheritWidthFrom === "
|
|
4555
|
+
.append("sv-conver__content--static", this.inheritWidthFrom === "survey" && !!surveyWidthMode && surveyWidthMode === "static")
|
|
4556
|
+
.append("sv-conver__content--responsive", this.inheritWidthFrom === "container" || (!!surveyWidthMode && surveyWidthMode === "responsive"))
|
|
4555
4557
|
.toString();
|
|
4556
4558
|
};
|
|
4557
4559
|
Cover.prototype.updateBackgroundImageClasses = function () {
|
|
@@ -4596,7 +4598,7 @@ var Cover = /** @class */ (function (_super) {
|
|
|
4596
4598
|
if (!!newValue) {
|
|
4597
4599
|
this.updateContentClasses();
|
|
4598
4600
|
this._survey.onPropertyChanged.add(function (sender, options) {
|
|
4599
|
-
if (options.name == "widthMode") {
|
|
4601
|
+
if (options.name == "widthMode" || options.name == "width") {
|
|
4600
4602
|
_this.updateContentClasses();
|
|
4601
4603
|
}
|
|
4602
4604
|
});
|
|
@@ -4697,6 +4699,9 @@ var Cover = /** @class */ (function (_super) {
|
|
|
4697
4699
|
__decorate([
|
|
4698
4700
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
4699
4701
|
], Cover.prototype, "contentClasses", void 0);
|
|
4702
|
+
__decorate([
|
|
4703
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
4704
|
+
], Cover.prototype, "maxWidth", void 0);
|
|
4700
4705
|
__decorate([
|
|
4701
4706
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])()
|
|
4702
4707
|
], Cover.prototype, "backgroundImageClasses", void 0);
|
|
@@ -5692,7 +5697,7 @@ var defaultV2Css = {
|
|
|
5692
5697
|
header: "sd-panel__header sd-element__header sd-element__header--location-top",
|
|
5693
5698
|
collapsed: "sd-element--collapsed",
|
|
5694
5699
|
expanded: "sd-element--expanded",
|
|
5695
|
-
nested: "sd-element--nested",
|
|
5700
|
+
nested: "sd-element--nested sd-element--nested-with-borders",
|
|
5696
5701
|
invisible: "sd-element--invisible",
|
|
5697
5702
|
navigationButton: "",
|
|
5698
5703
|
compact: "sd-element--with-frame sd-element--compact"
|
|
@@ -5716,6 +5721,7 @@ var defaultV2Css = {
|
|
|
5716
5721
|
progressContainer: "sd-paneldynamic__progress-container",
|
|
5717
5722
|
progress: "sd-progress",
|
|
5718
5723
|
progressBar: "sd-progress__bar",
|
|
5724
|
+
nested: "sd-element--nested sd-element--nested-with-borders",
|
|
5719
5725
|
progressText: "sd-paneldynamic__progress-text",
|
|
5720
5726
|
separator: "sd-paneldynamic__separator",
|
|
5721
5727
|
panelWrapper: "sd-paneldynamic__panel-wrapper",
|
|
@@ -5782,6 +5788,9 @@ var defaultV2Css = {
|
|
|
5782
5788
|
contentLeft: "sd-question__content--left",
|
|
5783
5789
|
titleNumInline: "sd-element__title--num-inline",
|
|
5784
5790
|
titleLeftRoot: "sd-question--left",
|
|
5791
|
+
titleTopRoot: "sd-question--title-top",
|
|
5792
|
+
descriptionUnderInputRoot: "sd-question--description-under-input",
|
|
5793
|
+
titleBottomRoot: "sd-question--title-bottom",
|
|
5785
5794
|
titleOnAnswer: "sd-question__title--answer",
|
|
5786
5795
|
titleEmpty: "sd-question__title--empty",
|
|
5787
5796
|
titleOnError: "sd-question__title--error",
|
|
@@ -5804,6 +5813,8 @@ var defaultV2Css = {
|
|
|
5804
5813
|
commentArea: "sd-question__comment-area",
|
|
5805
5814
|
formGroup: "sd-question__form-group",
|
|
5806
5815
|
hasError: "sd-question--error",
|
|
5816
|
+
hasErrorTop: "sd-question--error-top",
|
|
5817
|
+
hasErrorBottom: "sd-question--error-bottom",
|
|
5807
5818
|
collapsed: "sd-element--collapsed",
|
|
5808
5819
|
expanded: "sd-element--expanded",
|
|
5809
5820
|
nested: "sd-element--nested",
|
|
@@ -5829,7 +5840,6 @@ var defaultV2Css = {
|
|
|
5829
5840
|
root: "sd-question__erbox",
|
|
5830
5841
|
icon: "",
|
|
5831
5842
|
item: "",
|
|
5832
|
-
tooltip: "sd-question__erbox--tooltip",
|
|
5833
5843
|
outsideQuestion: "sd-question__erbox--outside-question",
|
|
5834
5844
|
aboveQuestion: "sd-question__erbox--above-question",
|
|
5835
5845
|
belowQuestion: "sd-question__erbox--below-question",
|
|
@@ -7181,6 +7191,7 @@ var DragDropCore = /** @class */ (function () {
|
|
|
7181
7191
|
};
|
|
7182
7192
|
DragDropCore.prototype.clear = function () {
|
|
7183
7193
|
this.dropTarget = null;
|
|
7194
|
+
this.prevDropTarget = null;
|
|
7184
7195
|
this.draggedElement = null;
|
|
7185
7196
|
this.isBottom = null;
|
|
7186
7197
|
this.parentElement = null;
|
|
@@ -7915,12 +7926,16 @@ var DragDropRankingSelectToRank = /** @class */ (function (_super) {
|
|
|
7915
7926
|
};
|
|
7916
7927
|
DragDropRankingSelectToRank.prototype.doRankBetween = function (dropTargetNode, fromChoicesArray, toChoicesArray, rankFunction) {
|
|
7917
7928
|
var questionModel = this.parentElement;
|
|
7929
|
+
var _a = this.getIndixies(questionModel, fromChoicesArray, toChoicesArray), fromIndex = _a.fromIndex, toIndex = _a.toIndex;
|
|
7930
|
+
rankFunction(questionModel, fromIndex, toIndex);
|
|
7931
|
+
this.doUIEffects(dropTargetNode, fromIndex, toIndex);
|
|
7932
|
+
};
|
|
7933
|
+
DragDropRankingSelectToRank.prototype.getIndixies = function (model, fromChoicesArray, toChoicesArray) {
|
|
7918
7934
|
var fromIndex = fromChoicesArray.indexOf(this.draggedElement);
|
|
7919
7935
|
var toIndex = toChoicesArray.indexOf(this.dropTarget);
|
|
7920
7936
|
if (toIndex === -1)
|
|
7921
|
-
toIndex =
|
|
7922
|
-
|
|
7923
|
-
this.doUIEffects(dropTargetNode, fromIndex, toIndex);
|
|
7937
|
+
toIndex = model.value.length;
|
|
7938
|
+
return { fromIndex: fromIndex, toIndex: toIndex };
|
|
7924
7939
|
};
|
|
7925
7940
|
DragDropRankingSelectToRank.prototype.doUIEffects = function (dropTargetNode, fromIndex, toIndex) {
|
|
7926
7941
|
var questionModel = this.parentElement;
|
|
@@ -9089,7 +9104,7 @@ var ElementHelper = /** @class */ (function () {
|
|
|
9089
9104
|
/*!*************************************!*\
|
|
9090
9105
|
!*** ./src/entries/chunks/model.ts ***!
|
|
9091
9106
|
\*************************************/
|
|
9092
|
-
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryNavigateToPage, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank */
|
|
9107
|
+
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryNavigateToPage, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank */
|
|
9093
9108
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9094
9109
|
|
|
9095
9110
|
"use strict";
|
|
@@ -9098,6 +9113,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9098
9113
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ReleaseDate", function() { return ReleaseDate; });
|
|
9099
9114
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "checkLibraryVersion", function() { return checkLibraryVersion; });
|
|
9100
9115
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setLicenseKey", function() { return setLicenseKey; });
|
|
9116
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "slk", function() { return slk; });
|
|
9101
9117
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "hasLicense", function() { return hasLicense; });
|
|
9102
9118
|
/* harmony import */ var _settings__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../settings */ "./src/settings.ts");
|
|
9103
9119
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return _settings__WEBPACK_IMPORTED_MODULE_0__["settings"]; });
|
|
@@ -9565,8 +9581,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9565
9581
|
//import "../../modern.scss";
|
|
9566
9582
|
var Version;
|
|
9567
9583
|
var ReleaseDate;
|
|
9568
|
-
Version = "" + "1.9.
|
|
9569
|
-
ReleaseDate = "" + "2023-10-
|
|
9584
|
+
Version = "" + "1.9.113";
|
|
9585
|
+
ReleaseDate = "" + "2023-10-17";
|
|
9570
9586
|
function checkLibraryVersion(ver, libraryName) {
|
|
9571
9587
|
if (Version != ver) {
|
|
9572
9588
|
var str = "survey-core has version '" + Version + "' and " + libraryName
|
|
@@ -9576,13 +9592,16 @@ function checkLibraryVersion(ver, libraryName) {
|
|
|
9576
9592
|
}
|
|
9577
9593
|
}
|
|
9578
9594
|
function setLicenseKey(key) {
|
|
9579
|
-
slk(key
|
|
9595
|
+
slk(key);
|
|
9596
|
+
}
|
|
9597
|
+
function slk(key) {
|
|
9598
|
+
_slk(key, lic, ReleaseDate);
|
|
9580
9599
|
}
|
|
9581
9600
|
function hasLicense(index) {
|
|
9582
9601
|
return lic[index.toString()] === true;
|
|
9583
9602
|
}
|
|
9584
9603
|
var lic = {};
|
|
9585
|
-
function
|
|
9604
|
+
function _slk(k, lh, rd) {
|
|
9586
9605
|
if (!k)
|
|
9587
9606
|
return;
|
|
9588
9607
|
var en = function (s) {
|
|
@@ -9715,7 +9734,7 @@ function slk(k, lh, rd) {
|
|
|
9715
9734
|
/*!**************************************!*\
|
|
9716
9735
|
!*** ./src/entries/core-wo-model.ts ***!
|
|
9717
9736
|
\**************************************/
|
|
9718
|
-
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryNavigateToPage, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, createDropdownActionModel, createDropdownActionModelAdvanced, getActionDropdownButtonTarget, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, DragOrClickHelper */
|
|
9737
|
+
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryNavigateToPage, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, createDropdownActionModel, createDropdownActionModelAdvanced, getActionDropdownButtonTarget, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, DragOrClickHelper */
|
|
9719
9738
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
9720
9739
|
|
|
9721
9740
|
"use strict";
|
|
@@ -9729,6 +9748,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
9729
9748
|
|
|
9730
9749
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setLicenseKey", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["setLicenseKey"]; });
|
|
9731
9750
|
|
|
9751
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "slk", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["slk"]; });
|
|
9752
|
+
|
|
9732
9753
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hasLicense", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["hasLicense"]; });
|
|
9733
9754
|
|
|
9734
9755
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return _chunks_model__WEBPACK_IMPORTED_MODULE_0__["settings"]; });
|
|
@@ -10178,7 +10199,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10178
10199
|
/*!*****************************!*\
|
|
10179
10200
|
!*** ./src/entries/core.ts ***!
|
|
10180
10201
|
\*****************************/
|
|
10181
|
-
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryNavigateToPage, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, createDropdownActionModel, createDropdownActionModelAdvanced, getActionDropdownButtonTarget, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, DragOrClickHelper, Model */
|
|
10202
|
+
/*! exports provided: Version, ReleaseDate, checkLibraryVersion, setLicenseKey, slk, hasLicense, settings, Helpers, AnswerCountValidator, EmailValidator, NumericValidator, RegexValidator, SurveyValidator, TextValidator, ValidatorResult, ExpressionValidator, ValidatorRunner, ItemValue, Base, Event, EventBase, ArrayChanges, ComputedUpdater, SurveyError, SurveyElementCore, SurveyElement, DragTypeOverMeEnum, CalculatedValue, CustomError, AnswerRequiredError, OneAnswerRequiredError, RequreNumericError, ExceedSizeError, LocalizableString, LocalizableStrings, HtmlConditionItem, UrlConditionItem, ChoicesRestful, ChoicesRestfull, FunctionFactory, registerFunction, ConditionRunner, ExpressionRunner, ExpressionExecutor, Operand, Const, BinaryOperand, Variable, FunctionOperand, ArrayOperand, UnaryOperand, ConditionsParser, ProcessValue, JsonError, JsonIncorrectTypeError, JsonMetadata, JsonMetadataClass, JsonMissingTypeError, JsonMissingTypeErrorBase, JsonObject, JsonObjectProperty, JsonRequiredPropertyError, JsonUnknownPropertyError, Serializer, property, propertyArray, MatrixDropdownCell, MatrixDropdownRowModelBase, QuestionMatrixDropdownModelBase, MatrixDropdownColumn, matrixDropdownColumnTypes, QuestionMatrixDropdownRenderedCell, QuestionMatrixDropdownRenderedRow, QuestionMatrixDropdownRenderedTable, MatrixDropdownRowModel, QuestionMatrixDropdownModel, MatrixDynamicRowModel, QuestionMatrixDynamicModel, MatrixRowModel, MatrixCells, QuestionMatrixModel, QuestionMatrixBaseModel, MultipleTextItemModel, MultipleTextCell, MultipleTextErrorCell, MutlipleTextErrorRow, MutlipleTextRow, QuestionMultipleTextModel, MultipleTextEditorModel, PanelModel, PanelModelBase, QuestionRowModel, FlowPanelModel, PageModel, DefaultTitleModel, Question, QuestionNonValue, QuestionEmptyModel, QuestionCheckboxBase, QuestionSelectBase, QuestionCheckboxModel, QuestionTagboxModel, QuestionRankingModel, QuestionCommentModel, QuestionDropdownModel, QuestionFactory, ElementFactory, QuestionFileModel, QuestionHtmlModel, QuestionRadiogroupModel, QuestionRatingModel, RenderedRatingItem, QuestionExpressionModel, QuestionTextBase, CharacterCounter, QuestionTextModel, QuestionBooleanModel, QuestionImagePickerModel, ImageItemValue, QuestionImageModel, QuestionSignaturePadModel, QuestionPanelDynamicModel, QuestionPanelDynamicItem, SurveyTimer, SurveyTimerModel, tryNavigateToPage, tryFocusPage, createTOCListModel, getTocRootCss, TOCModel, SurveyProgressModel, SurveyProgressButtonsModel, SurveyModel, SurveyTrigger, SurveyTriggerComplete, SurveyTriggerSetValue, SurveyTriggerVisible, SurveyTriggerCopyValue, SurveyTriggerRunExpression, SurveyTriggerSkip, Trigger, PopupSurveyModel, SurveyWindowModel, TextPreProcessor, Notifier, Cover, CoverCell, dxSurveyService, englishStrings, surveyLocalization, surveyStrings, QuestionCustomWidget, CustomWidgetCollection, QuestionCustomModel, QuestionCompositeModel, ComponentQuestionJSON, ComponentCollection, StylesManager, ListModel, MultiSelectListModel, PopupModel, createDialogOptions, PopupBaseViewModel, PopupDropdownViewModel, PopupModalViewModel, createPopupViewModel, createPopupModalViewModel, DropdownListModel, DropdownMultiSelectListModel, QuestionButtonGroupModel, ButtonGroupItemModel, ButtonGroupItemValue, IsMobile, IsTouch, _setIsTouch, confirmAction, confirmActionAsync, detectIEOrEdge, doKey2ClickUp, doKey2ClickDown, doKey2ClickBlur, loadFileFromBase64, increaseHeightByContent, createSvg, sanitizeEditableContent, CssClassBuilder, surveyCss, defaultV2Css, defaultV2ThemeName, DragDropCore, DragDropChoices, DragDropRankingSelectToRank, defaultStandardCss, modernCss, SvgIconRegistry, SvgRegistry, SvgBundleViewModel, RendererFactory, ResponsivityManager, VerticalResponsivityManager, unwrap, getOriginalEvent, getElement, createDropdownActionModel, createDropdownActionModelAdvanced, getActionDropdownButtonTarget, BaseAction, Action, ActionDropdownViewModel, AdaptiveActionContainer, defaultActionBarCss, ActionContainer, DragOrClickHelper, Model */
|
|
10182
10203
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
10183
10204
|
|
|
10184
10205
|
"use strict";
|
|
@@ -10192,6 +10213,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
10192
10213
|
|
|
10193
10214
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "setLicenseKey", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["setLicenseKey"]; });
|
|
10194
10215
|
|
|
10216
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "slk", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["slk"]; });
|
|
10217
|
+
|
|
10195
10218
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "hasLicense", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["hasLicense"]; });
|
|
10196
10219
|
|
|
10197
10220
|
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "settings", function() { return _core_wo_model__WEBPACK_IMPORTED_MODULE_0__["settings"]; });
|
|
@@ -17391,14 +17414,17 @@ var JsonObjectProperty = /** @class */ (function () {
|
|
|
17391
17414
|
enumerable: false,
|
|
17392
17415
|
configurable: true
|
|
17393
17416
|
});
|
|
17417
|
+
JsonObjectProperty.prototype.getDefaultValue = function (obj) {
|
|
17418
|
+
var result = !!this.defaultValueFunc ? this.defaultValueFunc(obj) : this.defaultValueValue;
|
|
17419
|
+
if (!!JsonObjectProperty.getItemValuesDefaultValue &&
|
|
17420
|
+
JsonObject.metaData.isDescendantOf(this.className, "itemvalue")) {
|
|
17421
|
+
result = JsonObjectProperty.getItemValuesDefaultValue(this.defaultValueValue || [], this.className);
|
|
17422
|
+
}
|
|
17423
|
+
return result;
|
|
17424
|
+
};
|
|
17394
17425
|
Object.defineProperty(JsonObjectProperty.prototype, "defaultValue", {
|
|
17395
17426
|
get: function () {
|
|
17396
|
-
|
|
17397
|
-
if (!!JsonObjectProperty.getItemValuesDefaultValue &&
|
|
17398
|
-
JsonObject.metaData.isDescendantOf(this.className, "itemvalue")) {
|
|
17399
|
-
result = JsonObjectProperty.getItemValuesDefaultValue(this.defaultValueValue || [], this.className);
|
|
17400
|
-
}
|
|
17401
|
-
return result;
|
|
17427
|
+
return this.getDefaultValue(undefined);
|
|
17402
17428
|
},
|
|
17403
17429
|
set: function (newValue) {
|
|
17404
17430
|
this.defaultValueValue = newValue;
|
|
@@ -17407,8 +17433,12 @@ var JsonObjectProperty = /** @class */ (function () {
|
|
|
17407
17433
|
configurable: true
|
|
17408
17434
|
});
|
|
17409
17435
|
JsonObjectProperty.prototype.isDefaultValue = function (value) {
|
|
17410
|
-
|
|
17411
|
-
|
|
17436
|
+
return this.isDefaultValueByObj(undefined, value);
|
|
17437
|
+
};
|
|
17438
|
+
JsonObjectProperty.prototype.isDefaultValueByObj = function (obj, value) {
|
|
17439
|
+
var dValue = this.getDefaultValue(obj);
|
|
17440
|
+
if (!_helpers__WEBPACK_IMPORTED_MODULE_2__["Helpers"].isValueEmpty(dValue)) {
|
|
17441
|
+
return _helpers__WEBPACK_IMPORTED_MODULE_2__["Helpers"].isTwoValueEquals(value, dValue, false, true, false);
|
|
17412
17442
|
}
|
|
17413
17443
|
if (this.isLocalizable)
|
|
17414
17444
|
return value === null || value === undefined;
|
|
@@ -18774,7 +18804,7 @@ var JsonObject = /** @class */ (function () {
|
|
|
18774
18804
|
(property.isLightSerializable === false && this.lightSerializing))
|
|
18775
18805
|
return;
|
|
18776
18806
|
var value = property.getValue(obj);
|
|
18777
|
-
if (!storeDefaults && property.
|
|
18807
|
+
if (!storeDefaults && property.isDefaultValueByObj(obj, value))
|
|
18778
18808
|
return;
|
|
18779
18809
|
if (this.isValueArray(value)) {
|
|
18780
18810
|
var arrValue = [];
|
|
@@ -18788,7 +18818,7 @@ var JsonObject = /** @class */ (function () {
|
|
|
18788
18818
|
}
|
|
18789
18819
|
var hasValue = typeof obj["getPropertyValue"] === "function" &&
|
|
18790
18820
|
obj["getPropertyValue"](property.name, null) !== null;
|
|
18791
|
-
if ((storeDefaults && hasValue) || !property.
|
|
18821
|
+
if ((storeDefaults && hasValue) || !property.isDefaultValueByObj(obj, value)) {
|
|
18792
18822
|
if (!Serializer.onSerializingProperty || !Serializer.onSerializingProperty(obj, property, value, result)) {
|
|
18793
18823
|
result[property.name] = value;
|
|
18794
18824
|
}
|
|
@@ -20790,7 +20820,7 @@ var PageModel = /** @class */ (function (_super) {
|
|
|
20790
20820
|
};
|
|
20791
20821
|
Object.defineProperty(PageModel.prototype, "navigationTitle", {
|
|
20792
20822
|
/**
|
|
20793
|
-
* A caption displayed on a navigation button in the TOC or progress bar. Applies when [`showTOC`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTOC) is `true` or when [
|
|
20823
|
+
* A caption displayed on a navigation button in the TOC or progress bar. Applies when [`showTOC`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showTOC) is `true` or when the [progress bar is visible](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showProgressBar) and [`progressBarType`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarType) is set to `"buttons"`.
|
|
20794
20824
|
*
|
|
20795
20825
|
* If navigation titles are unspecified, the navigation buttons display page [titles](https://surveyjs.io/form-library/documentation/api-reference/page-model#title) or [names](https://surveyjs.io/form-library/documentation/pagemodel#name).
|
|
20796
20826
|
*/
|
|
@@ -20811,6 +20841,9 @@ var PageModel = /** @class */ (function (_super) {
|
|
|
20811
20841
|
configurable: true
|
|
20812
20842
|
});
|
|
20813
20843
|
Object.defineProperty(PageModel.prototype, "navigationDescription", {
|
|
20844
|
+
/**
|
|
20845
|
+
* Explanatory text displayed under a navigation button in the progress bar. Applies when the [progress bar is visible](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#showProgressBar) and `SurveyModel`'s [`progressBarType`](https://surveyjs.io/form-library/documentation/surveymodel#progressBarType) property is set to `"buttons"`.
|
|
20846
|
+
*/
|
|
20814
20847
|
get: function () {
|
|
20815
20848
|
return this.getLocalizableStringText("navigationDescription");
|
|
20816
20849
|
},
|
|
@@ -23454,6 +23487,7 @@ var PopupDropdownViewModel = /** @class */ (function (_super) {
|
|
|
23454
23487
|
PopupDropdownViewModel.prototype.getStyleClass = function () {
|
|
23455
23488
|
return _super.prototype.getStyleClass.call(this)
|
|
23456
23489
|
.append("sv-popup--dropdown", !this.isOverlay)
|
|
23490
|
+
.append("sv-popup--dropdown-overlay", this.isOverlay && this.model.overlayDisplayMode !== "overlay")
|
|
23457
23491
|
.append("sv-popup--tablet", this.isTablet && this.isOverlay)
|
|
23458
23492
|
.append("sv-popup--show-pointer", !this.isOverlay && this.showHeader)
|
|
23459
23493
|
.append("sv-popup--" + this.popupDirection, !this.isOverlay && this.showHeader);
|
|
@@ -24596,6 +24630,9 @@ var PopupModel = /** @class */ (function (_super) {
|
|
|
24596
24630
|
__decorate([
|
|
24597
24631
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: "" })
|
|
24598
24632
|
], PopupModel.prototype, "title", void 0);
|
|
24633
|
+
__decorate([
|
|
24634
|
+
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: "auto" })
|
|
24635
|
+
], PopupModel.prototype, "overlayDisplayMode", void 0);
|
|
24599
24636
|
__decorate([
|
|
24600
24637
|
Object(_jsonobject__WEBPACK_IMPORTED_MODULE_1__["property"])({ defaultValue: "popup" })
|
|
24601
24638
|
], PopupModel.prototype, "displayMode", void 0);
|
|
@@ -24778,6 +24815,7 @@ var Question = /** @class */ (function (_super) {
|
|
|
24778
24815
|
Question.prototype.setIsMobile = function (val) {
|
|
24779
24816
|
this.isMobile = val && (this.allowMobileInDesignMode() || !this.isDesignMode);
|
|
24780
24817
|
};
|
|
24818
|
+
Question.prototype.themeChanged = function (theme) { };
|
|
24781
24819
|
Question.prototype.createLocTitleProperty = function () {
|
|
24782
24820
|
var _this = this;
|
|
24783
24821
|
var locTitleValue = _super.prototype.createLocTitleProperty.call(this);
|
|
@@ -25771,13 +25809,19 @@ var Question = /** @class */ (function (_super) {
|
|
|
25771
25809
|
this.setPropertyValue("cssRoot", val);
|
|
25772
25810
|
};
|
|
25773
25811
|
Question.prototype.getCssRoot = function (cssClasses) {
|
|
25812
|
+
var hasError = this.errors.length > 0;
|
|
25774
25813
|
return new _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_10__["CssClassBuilder"]()
|
|
25775
25814
|
.append(_super.prototype.getCssRoot.call(this, cssClasses))
|
|
25776
25815
|
.append(this.isFlowLayout && !this.isDesignMode
|
|
25777
25816
|
? cssClasses.flowRoot
|
|
25778
25817
|
: cssClasses.mainRoot)
|
|
25779
25818
|
.append(cssClasses.titleLeftRoot, !this.isFlowLayout && this.hasTitleOnLeft)
|
|
25780
|
-
.append(cssClasses.
|
|
25819
|
+
.append(cssClasses.titleTopRoot, !this.isFlowLayout && this.hasTitleOnTop)
|
|
25820
|
+
.append(cssClasses.titleBottomRoot, !this.isFlowLayout && this.hasTitleOnBottom)
|
|
25821
|
+
.append(cssClasses.descriptionUnderInputRoot, !this.isFlowLayout && this.hasDescriptionUnderInput)
|
|
25822
|
+
.append(cssClasses.hasError, hasError)
|
|
25823
|
+
.append(cssClasses.hasErrorTop, hasError && this.getErrorLocation() == "top")
|
|
25824
|
+
.append(cssClasses.hasErrorBottom, hasError && this.getErrorLocation() == "bottom")
|
|
25781
25825
|
.append(cssClasses.small, !this.width)
|
|
25782
25826
|
.append(cssClasses.answered, this.isAnswered)
|
|
25783
25827
|
.toString();
|
|
@@ -28407,8 +28451,6 @@ var QuestionSelectBase = /** @class */ (function (_super) {
|
|
|
28407
28451
|
};
|
|
28408
28452
|
QuestionSelectBase.prototype.runCondition = function (values, properties) {
|
|
28409
28453
|
_super.prototype.runCondition.call(this, values, properties);
|
|
28410
|
-
if (this.isUsingCarryForward)
|
|
28411
|
-
return;
|
|
28412
28454
|
this.runItemsEnableCondition(values, properties);
|
|
28413
28455
|
this.runItemsCondition(values, properties);
|
|
28414
28456
|
};
|
|
@@ -30138,13 +30180,7 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_0__["Serializer"].addClass("selectbase", [
|
|
|
30138
30180
|
},
|
|
30139
30181
|
},
|
|
30140
30182
|
"hideIfChoicesEmpty:boolean",
|
|
30141
|
-
|
|
30142
|
-
name: "choicesVisibleIf:condition",
|
|
30143
|
-
dependsOn: "choicesFromQuestion",
|
|
30144
|
-
visibleIf: function (obj) {
|
|
30145
|
-
return !obj.choicesFromQuestion;
|
|
30146
|
-
},
|
|
30147
|
-
},
|
|
30183
|
+
"choicesVisibleIf:condition",
|
|
30148
30184
|
{
|
|
30149
30185
|
name: "choicesEnableIf:condition",
|
|
30150
30186
|
dependsOn: "choicesFromQuestion",
|
|
@@ -32775,6 +32811,13 @@ var QuestionDropdownModel = /** @class */ (function (_super) {
|
|
|
32775
32811
|
enumerable: false,
|
|
32776
32812
|
configurable: true
|
|
32777
32813
|
});
|
|
32814
|
+
Object.defineProperty(QuestionDropdownModel.prototype, "showClearButton", {
|
|
32815
|
+
get: function () {
|
|
32816
|
+
return this.allowClear && !this.isEmpty() && (!this.isDesignMode || _settings__WEBPACK_IMPORTED_MODULE_5__["settings"].supportCreatorV2);
|
|
32817
|
+
},
|
|
32818
|
+
enumerable: false,
|
|
32819
|
+
configurable: true
|
|
32820
|
+
});
|
|
32778
32821
|
Object.defineProperty(QuestionDropdownModel.prototype, "optionsCaption", {
|
|
32779
32822
|
get: function () {
|
|
32780
32823
|
return this.placeholder;
|
|
@@ -42012,7 +42055,7 @@ var QuestionMatrixDynamicModel = /** @class */ (function (_super) {
|
|
|
42012
42055
|
};
|
|
42013
42056
|
Object.defineProperty(QuestionMatrixDynamicModel.prototype, "allowRowsDragAndDrop", {
|
|
42014
42057
|
/**
|
|
42015
|
-
* Specifies whether users can drag and drop matrix rows to reorder them.
|
|
42058
|
+
* Specifies whether users can drag and drop matrix rows to reorder them. Applies only if [`columnLayout`](#columnLayout) is `"horizontal"`.
|
|
42016
42059
|
*
|
|
42017
42060
|
* Default value: `false`
|
|
42018
42061
|
*/
|
|
@@ -43116,6 +43159,32 @@ var MultipleTextItemModel = /** @class */ (function (_super) {
|
|
|
43116
43159
|
enumerable: false,
|
|
43117
43160
|
configurable: true
|
|
43118
43161
|
});
|
|
43162
|
+
Object.defineProperty(MultipleTextItemModel.prototype, "minValueExpression", {
|
|
43163
|
+
/**
|
|
43164
|
+
* The minimum value specified as an expression. For example, `"minValueExpression": "today(-1)"` sets the minimum value to yesterday.
|
|
43165
|
+
*/
|
|
43166
|
+
get: function () {
|
|
43167
|
+
return this.editor.minValueExpression;
|
|
43168
|
+
},
|
|
43169
|
+
set: function (val) {
|
|
43170
|
+
this.editor.minValueExpression = val;
|
|
43171
|
+
},
|
|
43172
|
+
enumerable: false,
|
|
43173
|
+
configurable: true
|
|
43174
|
+
});
|
|
43175
|
+
Object.defineProperty(MultipleTextItemModel.prototype, "maxValueExpression", {
|
|
43176
|
+
/**
|
|
43177
|
+
* The maximum value specified as an expression. For example, `"maxValueExpression": "today(1)"` sets the maximum value to tomorrow.
|
|
43178
|
+
*/
|
|
43179
|
+
get: function () {
|
|
43180
|
+
return this.editor.maxValueExpression;
|
|
43181
|
+
},
|
|
43182
|
+
set: function (val) {
|
|
43183
|
+
this.editor.maxValueExpression = val;
|
|
43184
|
+
},
|
|
43185
|
+
enumerable: false,
|
|
43186
|
+
configurable: true
|
|
43187
|
+
});
|
|
43119
43188
|
Object.defineProperty(MultipleTextItemModel.prototype, "validators", {
|
|
43120
43189
|
/**
|
|
43121
43190
|
* The list of question validators.
|
|
@@ -43804,6 +43873,22 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_4__["Serializer"].addClass("multipletextite
|
|
|
43804
43873
|
name: "requiredErrorText:text",
|
|
43805
43874
|
serializationProperty: "locRequiredErrorText",
|
|
43806
43875
|
},
|
|
43876
|
+
{
|
|
43877
|
+
name: "minValueExpression:expression",
|
|
43878
|
+
category: "logic",
|
|
43879
|
+
dependsOn: "inputType",
|
|
43880
|
+
visibleIf: function (obj) {
|
|
43881
|
+
return Object(_question_text__WEBPACK_IMPORTED_MODULE_3__["isMinMaxType"])(obj);
|
|
43882
|
+
},
|
|
43883
|
+
},
|
|
43884
|
+
{
|
|
43885
|
+
name: "maxValueExpression:expression",
|
|
43886
|
+
category: "logic",
|
|
43887
|
+
dependsOn: "inputType",
|
|
43888
|
+
visibleIf: function (obj) {
|
|
43889
|
+
return Object(_question_text__WEBPACK_IMPORTED_MODULE_3__["isMinMaxType"])(obj);
|
|
43890
|
+
},
|
|
43891
|
+
},
|
|
43807
43892
|
{
|
|
43808
43893
|
name: "validators:validators",
|
|
43809
43894
|
baseClassName: "surveyvalidator",
|
|
@@ -44778,6 +44863,14 @@ var QuestionPanelDynamicModel = /** @class */ (function (_super) {
|
|
|
44778
44863
|
question.setIsMobile(val);
|
|
44779
44864
|
}); });
|
|
44780
44865
|
};
|
|
44866
|
+
QuestionPanelDynamicModel.prototype.themeChanged = function (theme) {
|
|
44867
|
+
_super.prototype.themeChanged.call(this, theme);
|
|
44868
|
+
(this.panels || []).forEach(function (panel) {
|
|
44869
|
+
return panel.getQuestions(true).forEach(function (question) {
|
|
44870
|
+
question.themeChanged(theme);
|
|
44871
|
+
});
|
|
44872
|
+
});
|
|
44873
|
+
};
|
|
44781
44874
|
Object.defineProperty(QuestionPanelDynamicModel.prototype, "panelCount", {
|
|
44782
44875
|
/**
|
|
44783
44876
|
* The number of panels in Dynamic Panel.
|
|
@@ -46781,31 +46874,23 @@ var QuestionRankingModel = /** @class */ (function (_super) {
|
|
|
46781
46874
|
return;
|
|
46782
46875
|
}
|
|
46783
46876
|
if (key === "ArrowUp" && index) {
|
|
46784
|
-
_this.
|
|
46877
|
+
_this.handleArrowKeys(index, choice, false);
|
|
46785
46878
|
event.preventDefault();
|
|
46786
46879
|
}
|
|
46787
46880
|
if (key === "ArrowDown" && index !== _this.rankingChoices.length - 1) {
|
|
46788
|
-
_this.
|
|
46881
|
+
_this.handleArrowKeys(index, choice, true);
|
|
46789
46882
|
event.preventDefault();
|
|
46790
46883
|
}
|
|
46791
46884
|
}
|
|
46792
46885
|
};
|
|
46793
|
-
_this.
|
|
46886
|
+
_this.handleArrowKeys = function (index, choice, isDown) {
|
|
46887
|
+
var delta = isDown ? 1 : -1;
|
|
46794
46888
|
var choices = _this.rankingChoices;
|
|
46795
46889
|
choices.splice(index, 1);
|
|
46796
|
-
choices.splice(index
|
|
46890
|
+
choices.splice(index + delta, 0, choice);
|
|
46797
46891
|
_this.setValue();
|
|
46798
46892
|
setTimeout(function () {
|
|
46799
|
-
_this.focusItem(index
|
|
46800
|
-
}, 1);
|
|
46801
|
-
};
|
|
46802
|
-
_this.handleArrowDown = function (index, choice) {
|
|
46803
|
-
var choices = _this.rankingChoices;
|
|
46804
|
-
choices.splice(index, 1);
|
|
46805
|
-
choices.splice(index + 1, 0, choice);
|
|
46806
|
-
_this.setValue();
|
|
46807
|
-
setTimeout(function () {
|
|
46808
|
-
_this.focusItem(index + 1);
|
|
46893
|
+
_this.focusItem(index + delta);
|
|
46809
46894
|
}, 1);
|
|
46810
46895
|
};
|
|
46811
46896
|
_this.focusItem = function (index, container) {
|
|
@@ -47089,46 +47174,39 @@ var QuestionRankingModel = /** @class */ (function (_super) {
|
|
|
47089
47174
|
QuestionRankingModel.prototype.handleKeydownSelectToRank = function (event, movedElement) {
|
|
47090
47175
|
if (this.isDesignMode)
|
|
47091
47176
|
return;
|
|
47092
|
-
var dnd = this.dragDropRankingChoices; //????
|
|
47093
47177
|
var key = event.key;
|
|
47178
|
+
if (key !== " " && key !== "ArrowUp" && key !== "ArrowDown")
|
|
47179
|
+
return;
|
|
47180
|
+
var dnd = this.dragDropRankingChoices; //????
|
|
47094
47181
|
var rankingChoices = this.rankingChoices;
|
|
47095
|
-
var unRankingChoices = this.unRankingChoices;
|
|
47096
47182
|
var isMovedElementRanked = rankingChoices.indexOf(movedElement) !== -1;
|
|
47097
|
-
var
|
|
47098
|
-
var fromIndex;
|
|
47183
|
+
var choices = isMovedElementRanked ? rankingChoices : this.unRankingChoices;
|
|
47184
|
+
var fromIndex = choices.indexOf(movedElement);
|
|
47185
|
+
if (fromIndex < 0)
|
|
47186
|
+
return;
|
|
47099
47187
|
var toIndex;
|
|
47100
|
-
if (
|
|
47101
|
-
fromIndex = unRankingChoices.indexOf(movedElement);
|
|
47188
|
+
if (key === " " && !isMovedElementRanked) {
|
|
47102
47189
|
toIndex = 0;
|
|
47103
47190
|
dnd.selectToRank(this, fromIndex, toIndex);
|
|
47104
47191
|
this.setValueAfterKeydown(toIndex, "to-container");
|
|
47105
47192
|
return;
|
|
47106
47193
|
}
|
|
47107
|
-
if (
|
|
47108
|
-
|
|
47194
|
+
if (!isMovedElementRanked)
|
|
47195
|
+
return;
|
|
47196
|
+
if (key === " ") {
|
|
47109
47197
|
dnd.unselectFromRank(this, fromIndex);
|
|
47110
47198
|
toIndex = this.unRankingChoices.indexOf(movedElement); //'this.' leads to actual array after the 'unselectFromRank' method
|
|
47111
47199
|
this.setValueAfterKeydown(toIndex, "from-container");
|
|
47112
47200
|
return;
|
|
47113
47201
|
}
|
|
47114
|
-
|
|
47115
|
-
|
|
47116
|
-
toIndex = fromIndex - 1;
|
|
47117
|
-
if (fromIndex < 0)
|
|
47118
|
-
return;
|
|
47119
|
-
dnd.reorderRankedItem(this, fromIndex, toIndex);
|
|
47120
|
-
this.setValueAfterKeydown(toIndex, "to-container");
|
|
47202
|
+
var delta = key === "ArrowUp" ? -1 : (key === "ArrowDown" ? 1 : 0);
|
|
47203
|
+
if (delta === 0)
|
|
47121
47204
|
return;
|
|
47122
|
-
|
|
47123
|
-
if (
|
|
47124
|
-
fromIndex = rankingChoices.indexOf(movedElement);
|
|
47125
|
-
toIndex = fromIndex + 1;
|
|
47126
|
-
if (toIndex >= rankingChoices.length)
|
|
47127
|
-
return;
|
|
47128
|
-
dnd.reorderRankedItem(this, fromIndex, toIndex);
|
|
47129
|
-
this.setValueAfterKeydown(toIndex, "to-container");
|
|
47205
|
+
toIndex = fromIndex + delta;
|
|
47206
|
+
if (toIndex < 0 || toIndex >= rankingChoices.length)
|
|
47130
47207
|
return;
|
|
47131
|
-
|
|
47208
|
+
dnd.reorderRankedItem(this, fromIndex, toIndex);
|
|
47209
|
+
this.setValueAfterKeydown(toIndex, "to-container");
|
|
47132
47210
|
};
|
|
47133
47211
|
QuestionRankingModel.prototype.setValueAfterKeydown = function (index, container) {
|
|
47134
47212
|
var _this = this;
|
|
@@ -47836,13 +47914,24 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
|
47836
47914
|
enumerable: false,
|
|
47837
47915
|
configurable: true
|
|
47838
47916
|
});
|
|
47839
|
-
|
|
47917
|
+
QuestionRatingModel.prototype.getDefaultItemComponent = function () {
|
|
47918
|
+
if (this.renderAs == "dropdown")
|
|
47919
|
+
return "";
|
|
47920
|
+
if (this.isStar)
|
|
47921
|
+
return "sv-rating-item-star";
|
|
47922
|
+
if (this.isSmiley)
|
|
47923
|
+
return "sv-rating-item-smiley";
|
|
47924
|
+
return "sv-rating-item";
|
|
47925
|
+
};
|
|
47926
|
+
Object.defineProperty(QuestionRatingModel.prototype, "itemComponent", {
|
|
47927
|
+
/**
|
|
47928
|
+
* The name of a component used to render items.
|
|
47929
|
+
*/
|
|
47840
47930
|
get: function () {
|
|
47841
|
-
|
|
47842
|
-
|
|
47843
|
-
|
|
47844
|
-
|
|
47845
|
-
return "sv-rating-item";
|
|
47931
|
+
return this.getPropertyValue("itemComponent", this.getDefaultItemComponent());
|
|
47932
|
+
},
|
|
47933
|
+
set: function (value) {
|
|
47934
|
+
this.setPropertyValue("itemComponent", value);
|
|
47846
47935
|
},
|
|
47847
47936
|
enumerable: false,
|
|
47848
47937
|
configurable: true
|
|
@@ -48177,17 +48266,16 @@ var QuestionRatingModel = /** @class */ (function (_super) {
|
|
|
48177
48266
|
}
|
|
48178
48267
|
return classes;
|
|
48179
48268
|
};
|
|
48269
|
+
QuestionRatingModel.prototype.themeChanged = function (theme) {
|
|
48270
|
+
this.colorsCalculated = false;
|
|
48271
|
+
this.updateColors(theme.cssVariables);
|
|
48272
|
+
this.createRenderedRateItems();
|
|
48273
|
+
};
|
|
48180
48274
|
QuestionRatingModel.prototype.setSurveyImpl = function (value, isLight) {
|
|
48181
|
-
var _this = this;
|
|
48182
48275
|
_super.prototype.setSurveyImpl.call(this, value, isLight);
|
|
48183
48276
|
if (!this.survey)
|
|
48184
48277
|
return;
|
|
48185
48278
|
this.updateColors(this.survey.themeVariables);
|
|
48186
|
-
this.survey.onThemeApplied.add(function (survey, options) {
|
|
48187
|
-
_this.colorsCalculated = false;
|
|
48188
|
-
_this.updateColors(options.theme.cssVariables);
|
|
48189
|
-
_this.createRenderedRateItems();
|
|
48190
|
-
});
|
|
48191
48279
|
};
|
|
48192
48280
|
QuestionRatingModel.prototype.dispose = function () {
|
|
48193
48281
|
_super.prototype.dispose.call(this);
|
|
@@ -48366,7 +48454,14 @@ _jsonobject__WEBPACK_IMPORTED_MODULE_2__["Serializer"].addClass("rating", [
|
|
|
48366
48454
|
default: "auto",
|
|
48367
48455
|
choices: ["auto", "buttons", "dropdown"],
|
|
48368
48456
|
visibleIndex: 20
|
|
48369
|
-
}
|
|
48457
|
+
},
|
|
48458
|
+
{ name: "itemComponent", visible: false, defaultFunc: function (obj) {
|
|
48459
|
+
if (!obj)
|
|
48460
|
+
return "sv-rating-item";
|
|
48461
|
+
if (!!obj.getOriginalObj)
|
|
48462
|
+
obj = obj.getOriginalObj();
|
|
48463
|
+
return obj.getDefaultItemComponent();
|
|
48464
|
+
} }
|
|
48370
48465
|
], function () {
|
|
48371
48466
|
return new QuestionRatingModel("");
|
|
48372
48467
|
}, "question");
|
|
@@ -48491,16 +48586,10 @@ var QuestionSignaturePadModel = /** @class */ (function (_super) {
|
|
|
48491
48586
|
this.destroySignaturePad(el);
|
|
48492
48587
|
}
|
|
48493
48588
|
};
|
|
48494
|
-
QuestionSignaturePadModel.prototype.
|
|
48495
|
-
|
|
48496
|
-
|
|
48497
|
-
|
|
48498
|
-
return;
|
|
48499
|
-
this.survey.onThemeApplied.add(function (survey, options) {
|
|
48500
|
-
if (!!_this.signaturePad) {
|
|
48501
|
-
_this.updateColors(_this.signaturePad);
|
|
48502
|
-
}
|
|
48503
|
-
});
|
|
48589
|
+
QuestionSignaturePadModel.prototype.themeChanged = function (theme) {
|
|
48590
|
+
if (!!this.signaturePad) {
|
|
48591
|
+
this.updateColors(this.signaturePad);
|
|
48592
|
+
}
|
|
48504
48593
|
};
|
|
48505
48594
|
QuestionSignaturePadModel.prototype.initSignaturePad = function (el) {
|
|
48506
48595
|
var _this = this;
|
|
@@ -49022,6 +49111,13 @@ var QuestionTagboxModel = /** @class */ (function (_super) {
|
|
|
49022
49111
|
_super.prototype.clearValue.call(this);
|
|
49023
49112
|
this.dropdownListModel.clear();
|
|
49024
49113
|
};
|
|
49114
|
+
Object.defineProperty(QuestionTagboxModel.prototype, "showClearButton", {
|
|
49115
|
+
get: function () {
|
|
49116
|
+
return this.allowClear && !this.isEmpty() && (!this.isDesignMode || _settings__WEBPACK_IMPORTED_MODULE_5__["settings"].supportCreatorV2);
|
|
49117
|
+
},
|
|
49118
|
+
enumerable: false,
|
|
49119
|
+
configurable: true
|
|
49120
|
+
});
|
|
49025
49121
|
Object.defineProperty(QuestionTagboxModel.prototype, "isNewA11yStructure", {
|
|
49026
49122
|
//a11y
|
|
49027
49123
|
get: function () {
|
|
@@ -49092,12 +49188,13 @@ _questionfactory__WEBPACK_IMPORTED_MODULE_1__["QuestionFactory"].Instance.regist
|
|
|
49092
49188
|
/*!******************************!*\
|
|
49093
49189
|
!*** ./src/question_text.ts ***!
|
|
49094
49190
|
\******************************/
|
|
49095
|
-
/*! exports provided: QuestionTextModel */
|
|
49191
|
+
/*! exports provided: QuestionTextModel, isMinMaxType */
|
|
49096
49192
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
49097
49193
|
|
|
49098
49194
|
"use strict";
|
|
49099
49195
|
__webpack_require__.r(__webpack_exports__);
|
|
49100
49196
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "QuestionTextModel", function() { return QuestionTextModel; });
|
|
49197
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "isMinMaxType", function() { return isMinMaxType; });
|
|
49101
49198
|
/* harmony import */ var _questionfactory__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./questionfactory */ "./src/questionfactory.ts");
|
|
49102
49199
|
/* harmony import */ var _jsonobject__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./jsonobject */ "./src/jsonobject.ts");
|
|
49103
49200
|
/* harmony import */ var _localizablestring__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./localizablestring */ "./src/localizablestring.ts");
|
|
@@ -50902,6 +50999,12 @@ var settings = {
|
|
|
50902
50999
|
notifications: {
|
|
50903
51000
|
lifetime: 2000
|
|
50904
51001
|
},
|
|
51002
|
+
/**
|
|
51003
|
+
* Specifies how many milliseconds a survey should wait before it automatically switches to the next page. Applies only when [auto-advance](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#goNextPageAutomatic) is enabled.
|
|
51004
|
+
*
|
|
51005
|
+
* Default value: 300
|
|
51006
|
+
*/
|
|
51007
|
+
autoAdvanceDelay: 300,
|
|
50905
51008
|
/**
|
|
50906
51009
|
* Specifies the direction in which to lay out Checkbox and Radiogroup items. This setting affects the resulting UI when items are arranged in [more than one column](https://surveyjs.io/form-library/documentation/api-reference/checkbox-question-model#colCount).
|
|
50907
51010
|
*
|
|
@@ -52860,6 +52963,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
52860
52963
|
/* harmony import */ var _utils_cssClassBuilder__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ./utils/cssClassBuilder */ "./src/utils/cssClassBuilder.ts");
|
|
52861
52964
|
/* harmony import */ var _notifier__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(/*! ./notifier */ "./src/notifier.ts");
|
|
52862
52965
|
/* harmony import */ var _cover__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(/*! ./cover */ "./src/cover.ts");
|
|
52966
|
+
/* harmony import */ var _surveytimer__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(/*! ./surveytimer */ "./src/surveytimer.ts");
|
|
52863
52967
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
52864
52968
|
var extendStatics = function (d, b) {
|
|
52865
52969
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -52900,6 +53004,7 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
|
52900
53004
|
|
|
52901
53005
|
|
|
52902
53006
|
|
|
53007
|
+
|
|
52903
53008
|
|
|
52904
53009
|
|
|
52905
53010
|
/**
|
|
@@ -52916,12 +53021,6 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
52916
53021
|
var _this = _super.call(this) || this;
|
|
52917
53022
|
_this.valuesHash = {};
|
|
52918
53023
|
_this.variablesHash = {};
|
|
52919
|
-
_this.onThemeApplying = new _base__WEBPACK_IMPORTED_MODULE_2__["EventBase"]();
|
|
52920
|
-
/**
|
|
52921
|
-
* An event that is raised after a [theme](/form-library/documentation/manage-default-themes-and-styles) is [applied](#applyTheme) to the survey.
|
|
52922
|
-
* @see applyTheme
|
|
52923
|
-
*/
|
|
52924
|
-
_this.onThemeApplied = new _base__WEBPACK_IMPORTED_MODULE_2__["EventBase"]();
|
|
52925
53024
|
//#region Event declarations
|
|
52926
53025
|
/**
|
|
52927
53026
|
* An event that is raised after a [trigger](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#triggers) is executed.
|
|
@@ -54512,6 +54611,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
54512
54611
|
* > If any of the following questions is answered last, the survey does not switch to the next page: Checkboxes, Yes/No (Boolean) (rendered as Checkbox), Long Text, Signature, Image Picker (with Multi Select), File Upload, Single-Select Matrix (not all rows are answered), Dynamic Matrix, Dynamic Panel.
|
|
54513
54612
|
*
|
|
54514
54613
|
* [View Demo](https://surveyjs.io/form-library/examples/automatically-move-to-next-page-if-answer-selected/ (linkStyle))
|
|
54614
|
+
* @see [`settings.autoAdvanceDelay`](https://surveyjs.io/form-library/documentation/api-reference/settings#autoAdvanceDelay)
|
|
54515
54615
|
*/
|
|
54516
54616
|
get: function () {
|
|
54517
54617
|
return this.getPropertyValue("goNextPageAutomatic");
|
|
@@ -54527,6 +54627,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
54527
54627
|
* Specifies whether to complete the survey automatically after a user answers all questions on the last page. Applies only if the [`goNextPageAutomatic`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#goNextPageAutomatic) property is `true`.
|
|
54528
54628
|
*
|
|
54529
54629
|
* Default value: `true`
|
|
54630
|
+
* @see [`settings.autoAdvanceDelay`](https://surveyjs.io/form-library/documentation/api-reference/settings#autoAdvanceDelay)
|
|
54530
54631
|
*/
|
|
54531
54632
|
get: function () {
|
|
54532
54633
|
return this.getPropertyValue("allowCompleteSurveyAutomatic", true);
|
|
@@ -55089,7 +55190,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
55089
55190
|
if (this._isMobile !== newVal) {
|
|
55090
55191
|
this._isMobile = newVal;
|
|
55091
55192
|
this.updateCss();
|
|
55092
|
-
this.getAllQuestions().
|
|
55193
|
+
this.getAllQuestions().forEach(function (q) { return q.setIsMobile(newVal); });
|
|
55093
55194
|
}
|
|
55094
55195
|
};
|
|
55095
55196
|
Object.defineProperty(SurveyModel.prototype, "isMobile", {
|
|
@@ -59687,6 +59788,7 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
59687
59788
|
return baseName + index;
|
|
59688
59789
|
};
|
|
59689
59790
|
SurveyModel.prototype.tryGoNextPageAutomatic = function (name) {
|
|
59791
|
+
var _this = this;
|
|
59690
59792
|
if (!!this.isEndLoadingFromJson ||
|
|
59691
59793
|
!this.goNextPageAutomatic ||
|
|
59692
59794
|
!this.currentPage)
|
|
@@ -59705,22 +59807,24 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
59705
59807
|
if (questions[i].hasInput && questions[i].isEmpty())
|
|
59706
59808
|
return;
|
|
59707
59809
|
}
|
|
59708
|
-
if (!this.
|
|
59709
|
-
|
|
59710
|
-
|
|
59810
|
+
if (this.isLastPage && (this.goNextPageAutomatic !== true || !this.allowCompleteSurveyAutomatic))
|
|
59811
|
+
return;
|
|
59812
|
+
if (this.checkIsCurrentPageHasErrors(false))
|
|
59813
|
+
return;
|
|
59814
|
+
var goNextPage = function () {
|
|
59815
|
+
if (!_this.isLastPage) {
|
|
59816
|
+
_this.nextPage();
|
|
59711
59817
|
}
|
|
59712
59818
|
else {
|
|
59713
|
-
if (
|
|
59714
|
-
|
|
59715
|
-
|
|
59716
|
-
|
|
59717
|
-
|
|
59718
|
-
else {
|
|
59719
|
-
this.completeLastPage();
|
|
59720
|
-
}
|
|
59819
|
+
if (_this.isShowPreviewBeforeComplete) {
|
|
59820
|
+
_this.showPreview();
|
|
59821
|
+
}
|
|
59822
|
+
else {
|
|
59823
|
+
_this.completeLastPage();
|
|
59721
59824
|
}
|
|
59722
59825
|
}
|
|
59723
|
-
}
|
|
59826
|
+
};
|
|
59827
|
+
_surveytimer__WEBPACK_IMPORTED_MODULE_21__["surveyTimerFunctions"].safeTimeOut(goNextPage, _settings__WEBPACK_IMPORTED_MODULE_14__["settings"].autoAdvanceDelay);
|
|
59724
59828
|
};
|
|
59725
59829
|
/**
|
|
59726
59830
|
* Returns a comment value from a question with a specified `name`.
|
|
@@ -60726,7 +60830,6 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
60726
60830
|
*
|
|
60727
60831
|
* [Themes & Styles](/form-library/documentation/manage-default-themes-and-styles (linkStyle))
|
|
60728
60832
|
* @param theme An [`ITheme`](/form-library/documentation/api-reference/itheme) object with theme settings.
|
|
60729
|
-
* @see onThemeApplied
|
|
60730
60833
|
*/
|
|
60731
60834
|
SurveyModel.prototype.applyTheme = function (theme) {
|
|
60732
60835
|
var _this = this;
|
|
@@ -60751,7 +60854,10 @@ var SurveyModel = /** @class */ (function (_super) {
|
|
|
60751
60854
|
_this[key] = theme[key];
|
|
60752
60855
|
}
|
|
60753
60856
|
});
|
|
60754
|
-
this.
|
|
60857
|
+
this.themeChanged(theme);
|
|
60858
|
+
};
|
|
60859
|
+
SurveyModel.prototype.themeChanged = function (theme) {
|
|
60860
|
+
this.getAllQuestions().forEach(function (q) { return q.themeChanged(theme); });
|
|
60755
60861
|
};
|
|
60756
60862
|
/**
|
|
60757
60863
|
* Disposes of the survey model.
|
|
@@ -61649,6 +61755,7 @@ var TOCModel = /** @class */ (function () {
|
|
|
61649
61755
|
};
|
|
61650
61756
|
this.listModel = createTOCListModel(survey, function () { _this.popupModel.isVisible = false; });
|
|
61651
61757
|
this.popupModel = new _popup__WEBPACK_IMPORTED_MODULE_4__["PopupModel"]("sv-list", { model: this.listModel });
|
|
61758
|
+
this.popupModel.overlayDisplayMode = "overlay";
|
|
61652
61759
|
this.popupModel.displayMode = new _base__WEBPACK_IMPORTED_MODULE_1__["ComputedUpdater"](function () { return _this.isMobile ? "overlay" : "popup"; });
|
|
61653
61760
|
}
|
|
61654
61761
|
Object.defineProperty(TOCModel.prototype, "isMobile", {
|
|
@@ -61691,15 +61798,22 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
61691
61798
|
|
|
61692
61799
|
var surveyTimerFunctions = {
|
|
61693
61800
|
setTimeout: function (func) {
|
|
61694
|
-
|
|
61695
|
-
return 0;
|
|
61696
|
-
return window.setTimeout(func, 1000);
|
|
61801
|
+
return surveyTimerFunctions.safeTimeOut(func, 1000);
|
|
61697
61802
|
},
|
|
61698
61803
|
clearTimeout: function (timerId) {
|
|
61699
61804
|
if (typeof window === "undefined")
|
|
61700
61805
|
return;
|
|
61701
61806
|
window.clearTimeout(timerId);
|
|
61702
61807
|
},
|
|
61808
|
+
safeTimeOut: function (func, delay) {
|
|
61809
|
+
if (typeof window === "undefined" || delay <= 0) {
|
|
61810
|
+
func();
|
|
61811
|
+
return 0;
|
|
61812
|
+
}
|
|
61813
|
+
else {
|
|
61814
|
+
return window.setTimeout(func, delay);
|
|
61815
|
+
}
|
|
61816
|
+
}
|
|
61703
61817
|
};
|
|
61704
61818
|
var SurveyTimer = /** @class */ (function () {
|
|
61705
61819
|
function SurveyTimer() {
|