survey-core 1.9.118 → 1.9.119
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 +112 -39
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +112 -39
- 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 +2 -1
- package/i18n/english.js.map +1 -1
- package/i18n/english.min.js +2 -2
- 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 +1 -1
- package/modern.css.map +1 -1
- package/modern.fontless.css +1 -1
- package/modern.fontless.css.map +1 -1
- package/modern.fontless.min.css +1 -1
- package/modern.min.css +1 -1
- 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 +208 -89
- 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 -1
- package/themes/borderless-dark-panelless.min.js +1 -1
- package/themes/borderless-dark.js +1 -1
- package/themes/borderless-dark.min.js +1 -1
- package/themes/borderless-light-panelless..js +1 -1
- package/themes/borderless-light-panelless..min.js +1 -1
- package/themes/borderless-light.js +1 -1
- package/themes/borderless-light.min.js +1 -1
- package/themes/contrast-dark-panelless.js +1 -1
- package/themes/contrast-dark-panelless.min.js +1 -1
- package/themes/contrast-dark.js +1 -1
- package/themes/contrast-dark.min.js +1 -1
- package/themes/contrast-light-panelless.js +1 -1
- package/themes/contrast-light-panelless.min.js +1 -1
- package/themes/contrast-light.js +1 -1
- package/themes/contrast-light.min.js +1 -1
- package/themes/default-dark-panelless.js +1 -1
- package/themes/default-dark-panelless.min.js +1 -1
- package/themes/default-dark.js +1 -1
- package/themes/default-dark.min.js +1 -1
- package/themes/default-light-panelless.js +1 -1
- package/themes/default-light-panelless.min.js +1 -1
- package/themes/default-light.js +1 -1
- package/themes/default-light.min.js +1 -1
- package/themes/doubleborder-dark-panelless.js +1 -1
- package/themes/doubleborder-dark-panelless.min.js +1 -1
- package/themes/doubleborder-dark.js +1 -1
- package/themes/doubleborder-dark.min.js +1 -1
- package/themes/doubleborder-light-panelles.js +1 -1
- package/themes/doubleborder-light-panelles.min.js +1 -1
- package/themes/doubleborder-light.js +1 -1
- package/themes/doubleborder-light.min.js +1 -1
- package/themes/flat-dark-panelless.js +1 -1
- package/themes/flat-dark-panelless.min.js +1 -1
- package/themes/flat-dark.js +1 -1
- package/themes/flat-dark.min.js +1 -1
- package/themes/flat-light-panelless.js +1 -1
- package/themes/flat-light-panelless.min.js +1 -1
- package/themes/flat-light.js +1 -1
- package/themes/flat-light.min.js +1 -1
- package/themes/index.js +1 -1
- package/themes/index.min.js +1 -1
- package/themes/layered-dark-panelless.js +1 -1
- package/themes/layered-dark-panelless.min.js +1 -1
- package/themes/layered-dark.js +1 -1
- package/themes/layered-dark.min.js +1 -1
- package/themes/layered-light-panelless.js +1 -1
- package/themes/layered-light-panelless.min.js +1 -1
- package/themes/layered-light.js +1 -1
- package/themes/layered-light.min.js +1 -1
- package/themes/plain-dark-panelless.js +1 -1
- package/themes/plain-dark-panelless.min.js +1 -1
- package/themes/plain-dark.js +1 -1
- package/themes/plain-dark.min.js +1 -1
- package/themes/plain-light-panelless.js +1 -1
- package/themes/plain-light-panelless.min.js +1 -1
- package/themes/plain-light.js +1 -1
- package/themes/plain-light.min.js +1 -1
- package/themes/sharp-dark-panelless.js +1 -1
- package/themes/sharp-dark-panelless.min.js +1 -1
- package/themes/sharp-dark.js +1 -1
- package/themes/sharp-dark.min.js +1 -1
- package/themes/sharp-light-panelless.js +1 -1
- package/themes/sharp-light-panelless.min.js +1 -1
- package/themes/sharp-light.js +1 -1
- package/themes/sharp-light.min.js +1 -1
- package/themes/solid-dark-panelless.js +1 -1
- package/themes/solid-dark-panelless.min.js +1 -1
- package/themes/solid-dark.js +1 -1
- package/themes/solid-dark.min.js +1 -1
- package/themes/solid-light-panelless.js +1 -1
- package/themes/solid-light-panelless.min.js +1 -1
- package/themes/solid-light.js +1 -1
- package/themes/solid-light.min.js +1 -1
- package/themes/three-dimensional-dark-panelless.js +1 -1
- package/themes/three-dimensional-dark-panelless.min.js +1 -1
- package/themes/three-dimensional-dark.js +1 -1
- package/themes/three-dimensional-dark.min.js +1 -1
- package/themes/three-dimensional-light-panelless.js +1 -1
- package/themes/three-dimensional-light-panelless.min.js +1 -1
- package/themes/three-dimensional-light.js +1 -1
- package/themes/three-dimensional-light.min.js +1 -1
- package/ts3.4/typings/base-interfaces.d.ts +2 -1
- package/ts3.4/typings/conditionProcessValue.d.ts +1 -0
- package/ts3.4/typings/defaultCss/defaultV2Css.d.ts +8 -3
- package/ts3.4/typings/localization/english.d.ts +1 -0
- package/ts3.4/typings/page.d.ts +1 -0
- package/ts3.4/typings/panel.d.ts +4 -1
- package/ts3.4/typings/question.d.ts +2 -0
- package/ts3.4/typings/question_ranking.d.ts +6 -0
- package/ts3.4/typings/question_rating.d.ts +1 -0
- package/ts3.4/typings/survey-events-api.d.ts +2 -2
- package/ts3.4/typings/survey.d.ts +34 -10
- package/ts3.4/typings/surveyStrings.d.ts +1 -0
- package/ts3.4/typings/themes.d.ts +2 -2
- package/typings/base-interfaces.d.ts +2 -1
- package/typings/conditionProcessValue.d.ts +1 -0
- package/typings/defaultCss/defaultV2Css.d.ts +8 -3
- package/typings/localization/english.d.ts +1 -0
- package/typings/page.d.ts +1 -0
- package/typings/panel.d.ts +4 -1
- package/typings/question.d.ts +2 -0
- package/typings/question_ranking.d.ts +6 -0
- package/typings/question_rating.d.ts +1 -0
- package/typings/survey-events-api.d.ts +2 -2
- package/typings/survey.d.ts +35 -10
- package/typings/surveyStrings.d.ts +1 -0
- package/typings/themes.d.ts +2 -2
package/typings/survey.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ import { QuestionFileModel } from "./question_file";
|
|
|
25
25
|
import { QuestionMultipleTextModel } from "./question_multipletext";
|
|
26
26
|
import { ITheme, ImageFit, ImageAttachment } from "./themes";
|
|
27
27
|
import { PopupModel } from "./popup";
|
|
28
|
+
import { Cover } from "./header";
|
|
28
29
|
/**
|
|
29
30
|
* The `SurveyModel` object contains properties and methods that allow you to control the survey and access its elements.
|
|
30
31
|
*
|
|
@@ -754,6 +755,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
754
755
|
* [View Demo](https://surveyjs.io/form-library/examples/brand-your-survey-header/ (linkStyle))
|
|
755
756
|
*/
|
|
756
757
|
headerView: "advanced" | "basic";
|
|
758
|
+
protected insertAdvancedHeader(advHeader: Cover): void;
|
|
757
759
|
private getNavigationCss;
|
|
758
760
|
private lazyRenderingValue;
|
|
759
761
|
showBrandInfo: boolean;
|
|
@@ -949,7 +951,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
949
951
|
* Specifies whether to hide validation errors thrown by the Required validation in the UI.
|
|
950
952
|
*
|
|
951
953
|
* [Built-In Client-Side Validators](https://surveyjs.io/form-library/documentation/data-validation#built-in-client-side-validators (linkStyle))
|
|
952
|
-
* @see
|
|
954
|
+
* @see validationEnabled
|
|
955
|
+
* @see validationAllowSwitchPages
|
|
953
956
|
*/
|
|
954
957
|
hideRequiredErrors: boolean;
|
|
955
958
|
beforeSettingQuestionErrors(question: Question, errors: Array<SurveyError>): void;
|
|
@@ -1022,6 +1025,10 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1022
1025
|
* - `"onComplete"` - Triggers validation when a user clicks the Complete button. If previous pages contain errors, the survey switches to the page with the first error.
|
|
1023
1026
|
*
|
|
1024
1027
|
* Refer to the following help topic for more information: [Data Validation](https://surveyjs.io/form-library/documentation/data-validation).
|
|
1028
|
+
* @see validationEnabled
|
|
1029
|
+
* @see validationAllowSwitchPages
|
|
1030
|
+
* @see validationAllowComplete
|
|
1031
|
+
* @see validate
|
|
1025
1032
|
*/
|
|
1026
1033
|
get checkErrorsMode(): string;
|
|
1027
1034
|
set checkErrorsMode(val: string);
|
|
@@ -1756,15 +1763,32 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1756
1763
|
*/
|
|
1757
1764
|
deleteCookie(): void;
|
|
1758
1765
|
/**
|
|
1759
|
-
*
|
|
1766
|
+
* This property is obsolete. Use the [`validationEnabled`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#validationEnabled) property instead.
|
|
1767
|
+
*/
|
|
1768
|
+
get ignoreValidation(): boolean;
|
|
1769
|
+
set ignoreValidation(val: boolean);
|
|
1770
|
+
/**
|
|
1771
|
+
* Specifies whether data validation is enabled.
|
|
1760
1772
|
*
|
|
1761
|
-
* Default value: `
|
|
1773
|
+
* Default value: `true`
|
|
1774
|
+
* @see checkErrorsMode
|
|
1762
1775
|
* @see hideRequiredErrors
|
|
1763
|
-
* @see nextPage
|
|
1764
|
-
* @see isPrevPage
|
|
1765
|
-
* @see completeLastPage
|
|
1766
1776
|
*/
|
|
1767
|
-
|
|
1777
|
+
validationEnabled: boolean;
|
|
1778
|
+
/**
|
|
1779
|
+
* Specifies whether respondents can switch the current page even if it contains validation errors.
|
|
1780
|
+
*
|
|
1781
|
+
* Default value: `false`
|
|
1782
|
+
* @see checkErrorsMode
|
|
1783
|
+
*/
|
|
1784
|
+
validationAllowSwitchPages: boolean;
|
|
1785
|
+
/**
|
|
1786
|
+
* Specifies whether respondents can end a survey with validation errors.
|
|
1787
|
+
*
|
|
1788
|
+
* Default value: `false`
|
|
1789
|
+
* @see checkErrorsMode
|
|
1790
|
+
*/
|
|
1791
|
+
validationAllowComplete: boolean;
|
|
1768
1792
|
/**
|
|
1769
1793
|
* Switches the survey to the next page.
|
|
1770
1794
|
*
|
|
@@ -2112,11 +2136,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2112
2136
|
* @param question A [File Upload question instance](https://surveyjs.io/form-library/documentation/api-reference/file-model).
|
|
2113
2137
|
* @param name The File Upload question's [`name`](https://surveyjs.io/form-library/documentation/api-reference/file-model#name).
|
|
2114
2138
|
* @param files An array of JavaScript <a href="https://developer.mozilla.org/en-US/docs/Web/API/File" target="_blank">File</a> objects that represent files to upload.
|
|
2115
|
-
* @param callback A callback function that allows you to
|
|
2139
|
+
* @param callback A callback function that allows you to access successfully uploaded files as the first argument. If any files fail to upload, the second argument contains an array of error messages.
|
|
2116
2140
|
* @see onUploadFiles
|
|
2117
2141
|
* @see downloadFile
|
|
2118
2142
|
*/
|
|
2119
|
-
uploadFiles(question: QuestionFileModel, name: string, files: File[], callback: (
|
|
2143
|
+
uploadFiles(question: QuestionFileModel, name: string, files: File[], callback: (data: any | Array<any>, errors?: any | Array<any>) => any): void;
|
|
2120
2144
|
/**
|
|
2121
2145
|
* Downloads a file from a server.
|
|
2122
2146
|
*
|
|
@@ -2152,7 +2176,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2152
2176
|
updateChoicesFromServer(question: QuestionSelectBase, choices: Array<ItemValue>, serverResult: any): Array<ItemValue>;
|
|
2153
2177
|
loadedChoicesFromServer(question: IQuestion): void;
|
|
2154
2178
|
protected createSurveyService(): dxSurveyService;
|
|
2155
|
-
protected uploadFilesCore(name: string, files: File[], uploadingCallback: (
|
|
2179
|
+
protected uploadFilesCore(name: string, files: File[], uploadingCallback: (data: any | Array<any>, errors?: any | Array<any>) => any): void;
|
|
2156
2180
|
getPage(index: number): PageModel;
|
|
2157
2181
|
/**
|
|
2158
2182
|
* Adds an existing page to the survey.
|
|
@@ -2655,6 +2679,7 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2655
2679
|
private isMovingQuestion;
|
|
2656
2680
|
startMovingQuestion(): void;
|
|
2657
2681
|
stopMovingQuestion(): void;
|
|
2682
|
+
get isQuestionDragging(): boolean;
|
|
2658
2683
|
private needRenderIcons;
|
|
2659
2684
|
private skippedPages;
|
|
2660
2685
|
/**
|
package/typings/themes.d.ts
CHANGED
|
@@ -83,9 +83,9 @@ export interface IHeader {
|
|
|
83
83
|
*
|
|
84
84
|
* Possible values:
|
|
85
85
|
*
|
|
86
|
-
* - `"survey"
|
|
86
|
+
* - `"survey"`\
|
|
87
87
|
* The header width is the same as the survey width.
|
|
88
|
-
* - `"container"
|
|
88
|
+
* - `"container"` (default)\
|
|
89
89
|
* The header width is the same as the survey container width.
|
|
90
90
|
*
|
|
91
91
|
* @see [SurveyModel.width](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#width)
|