survey-core 1.12.14 → 1.12.16-patch.1
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 +30 -9
- package/defaultV2.css.map +1 -1
- package/defaultV2.fontless.css +30 -9
- 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/philippines.js +1 -1
- package/i18n/philippines.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/icons/iconsV1.js +1 -1
- package/icons/iconsV1.min.js +1 -1
- package/icons/iconsV2.js +1 -1
- package/icons/iconsV2.min.js +1 -1
- package/modern.css +18 -16
- package/modern.css.map +1 -1
- package/modern.fontless.css +18 -16
- 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/index.js +1 -1
- package/plugins/bootstrap-integration/index.min.js +1 -1
- package/plugins/bootstrap-material-integration/index.js +1 -1
- package/plugins/bootstrap-material-integration/index.min.js +1 -1
- package/survey.core.js +457 -261
- package/survey.core.js.map +1 -1
- package/survey.core.min.js +3 -3
- package/survey.css +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/packages/survey-core/entries/chunks/core-wo-model.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/entries/chunks/model.d.ts +1 -1
- package/ts3.4/typings/packages/survey-core/src/actions/action.d.ts +2 -2
- package/ts3.4/typings/packages/survey-core/src/base-interfaces.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +1 -0
- package/ts3.4/typings/packages/survey-core/src/list.d.ts +3 -1
- package/ts3.4/typings/packages/survey-core/src/page.d.ts +11 -3
- package/ts3.4/typings/packages/survey-core/src/panel.d.ts +11 -7
- package/ts3.4/typings/packages/survey-core/src/settings.d.ts +2 -1
- package/ts3.4/typings/packages/survey-core/src/survey-element.d.ts +15 -5
- package/ts3.4/typings/packages/survey-core/src/survey.d.ts +17 -8
- package/ts3.4/typings/packages/survey-core/src/surveyStrings.d.ts +8 -1
- package/ts3.4/typings/packages/survey-core/src/utils/utils.d.ts +11 -2
- package/typings/packages/survey-core/entries/chunks/core-wo-model.d.ts +1 -1
- package/typings/packages/survey-core/entries/chunks/model.d.ts +1 -1
- package/typings/packages/survey-core/src/actions/action.d.ts +2 -2
- package/typings/packages/survey-core/src/base-interfaces.d.ts +1 -0
- package/typings/packages/survey-core/src/defaultCss/defaultV2Css.d.ts +1 -0
- package/typings/packages/survey-core/src/list.d.ts +3 -1
- package/typings/packages/survey-core/src/page.d.ts +11 -3
- package/typings/packages/survey-core/src/panel.d.ts +11 -7
- package/typings/packages/survey-core/src/settings.d.ts +2 -1
- package/typings/packages/survey-core/src/survey-element.d.ts +15 -5
- package/typings/packages/survey-core/src/survey.d.ts +18 -8
- package/typings/packages/survey-core/src/surveyStrings.d.ts +8 -1
- package/typings/packages/survey-core/src/utils/utils.d.ts +11 -2
|
@@ -13,22 +13,32 @@ export declare abstract class SurveyElementCore extends Base implements ILocaliz
|
|
|
13
13
|
protected createLocTitleProperty(): LocalizableString;
|
|
14
14
|
/**
|
|
15
15
|
* Returns `true` if the survey element is a page.
|
|
16
|
-
*
|
|
16
|
+
*
|
|
17
|
+
* This property returns `false` for [`PageModel`](https://surveyjs.io/form-library/documentation/api-reference/page-model) objects in the following cases:
|
|
18
|
+
*
|
|
19
|
+
* - `SurveyModel`'s [`questionsOnPageMode`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#questionsOnPageMode) is set to `"singlePage"`.
|
|
20
|
+
* - The page is included in a [preview of given answers](https://surveyjs.io/form-library/documentation/design-survey/create-a-multi-page-survey#preview-page).
|
|
21
|
+
*
|
|
22
|
+
* In those cases, the survey creates an internal `PageModel` object to show all questions on one page, and all regular pages become panels.
|
|
17
23
|
*/
|
|
18
24
|
get isPage(): boolean;
|
|
19
25
|
/**
|
|
20
|
-
* Returns `true` if the survey element is a panel.
|
|
21
|
-
*
|
|
26
|
+
* Returns `true` if the survey element is a panel or acts as one.
|
|
27
|
+
*
|
|
28
|
+
* This property returns `true` for `PageModel` objects in the following cases:
|
|
29
|
+
*
|
|
30
|
+
* - `SurveyModel`'s [`questionsOnPageMode`](https://surveyjs.io/form-library/documentation/api-reference/survey-data-model#questionsOnPageMode) is set to `"singlePage"`.
|
|
31
|
+
* - The page is included in a [preview of given answers](https://surveyjs.io/form-library/documentation/design-survey/create-a-multi-page-survey#preview-page).
|
|
32
|
+
*
|
|
33
|
+
* In those cases, the survey creates an internal `PageModel` object to show all questions on one page, and all regular pages become panels.
|
|
22
34
|
*/
|
|
23
35
|
get isPanel(): boolean;
|
|
24
36
|
/**
|
|
25
37
|
* Returns `true` if the survey element is a question.
|
|
26
|
-
* @see Base.getType
|
|
27
38
|
*/
|
|
28
39
|
get isQuestion(): boolean;
|
|
29
40
|
/**
|
|
30
41
|
* Returns `true` if the element is a survey.
|
|
31
|
-
* @see Base.getType
|
|
32
42
|
*/
|
|
33
43
|
get isSurvey(): boolean;
|
|
34
44
|
/**
|
|
@@ -1967,6 +1967,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
1967
1967
|
* @see completeLastPage
|
|
1968
1968
|
*/
|
|
1969
1969
|
nextPage(): boolean;
|
|
1970
|
+
performNext(): boolean;
|
|
1971
|
+
performPrevious(): boolean;
|
|
1970
1972
|
private hasErrorsOnNavigate;
|
|
1971
1973
|
private asyncValidationQuesitons;
|
|
1972
1974
|
private checkForAsyncQuestionValidation;
|
|
@@ -2068,6 +2070,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2068
2070
|
private doCurrentPageCompleteCore;
|
|
2069
2071
|
get isSinglePage(): boolean;
|
|
2070
2072
|
set isSinglePage(val: boolean);
|
|
2073
|
+
get isSingleVisibleQuestion(): boolean;
|
|
2074
|
+
private isSingleVisibleQuestionVal;
|
|
2071
2075
|
/**
|
|
2072
2076
|
* Specifies how to distribute survey elements between pages.
|
|
2073
2077
|
*
|
|
@@ -2107,17 +2111,17 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2107
2111
|
get isShowPreviewBeforeComplete(): boolean;
|
|
2108
2112
|
protected onFirstPageIsStartedChanged(): void;
|
|
2109
2113
|
private runningPages;
|
|
2114
|
+
private pageContainerValue;
|
|
2110
2115
|
private onShowingPreviewChanged;
|
|
2116
|
+
private createRootPage;
|
|
2117
|
+
private disposeContainerPage;
|
|
2118
|
+
private updatePagesContainer;
|
|
2119
|
+
private currentSingleQuestionValue;
|
|
2120
|
+
get currentSingleQuestion(): Question;
|
|
2121
|
+
set currentSingleQuestion(val: Question);
|
|
2111
2122
|
private changeCurrentPageFromPreview;
|
|
2112
|
-
|
|
2113
|
-
protected onQuestionsOnPageModeChanged(oldValue: string, isFirstLoad?: boolean): void;
|
|
2114
|
-
private restoreOriginalPages;
|
|
2123
|
+
protected onQuestionsOnPageModeChanged(oldValue: string): void;
|
|
2115
2124
|
private getPageStartIndex;
|
|
2116
|
-
private isLockingUpdateOnPageModes;
|
|
2117
|
-
private setupPagesForPageModes;
|
|
2118
|
-
private createPagesForQuestionOnPageMode;
|
|
2119
|
-
private createSinglePage;
|
|
2120
|
-
private createPagesForEveryQuestion;
|
|
2121
2125
|
/**
|
|
2122
2126
|
* Indicates whether the [current page](#currentPage) is the first page.
|
|
2123
2127
|
*
|
|
@@ -2134,7 +2138,11 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2134
2138
|
get isCompleteButtonVisible(): boolean;
|
|
2135
2139
|
get isPreviewButtonVisible(): boolean;
|
|
2136
2140
|
get isCancelPreviewButtonVisible(): boolean;
|
|
2141
|
+
get isFirstElement(): boolean | undefined;
|
|
2142
|
+
get isLastElement(): boolean | undefined;
|
|
2137
2143
|
private updateIsFirstLastPageState;
|
|
2144
|
+
private get isLastPageOrElement();
|
|
2145
|
+
private get isFirstPageOrElement();
|
|
2138
2146
|
private calcIsShowPrevButton;
|
|
2139
2147
|
private calcIsShowNextButton;
|
|
2140
2148
|
calcIsCompleteButtonVisible(): boolean;
|
|
@@ -2788,6 +2796,8 @@ export declare class SurveyModel extends SurveyElementCore implements ISurvey, I
|
|
|
2788
2796
|
set width(val: string);
|
|
2789
2797
|
get renderedWidth(): string;
|
|
2790
2798
|
widthScale: number;
|
|
2799
|
+
staticStartWidth: number;
|
|
2800
|
+
setStaticStartWidth(width: number): void;
|
|
2791
2801
|
responsiveStartWidth: number;
|
|
2792
2802
|
setResponsiveStartWidth(width: number): void;
|
|
2793
2803
|
get isScaled(): boolean;
|
|
@@ -16,7 +16,13 @@ export declare var surveyLocalization: {
|
|
|
16
16
|
supportedLocales: any[];
|
|
17
17
|
useEnglishNames: boolean;
|
|
18
18
|
showNamesInEnglish: boolean;
|
|
19
|
-
setupLocale(
|
|
19
|
+
setupLocale(localeConfig: {
|
|
20
|
+
localeCode: string;
|
|
21
|
+
strings: any;
|
|
22
|
+
nativeName: string;
|
|
23
|
+
englishName: string;
|
|
24
|
+
rtl?: boolean;
|
|
25
|
+
}): void;
|
|
20
26
|
currentLocale: string;
|
|
21
27
|
defaultLocale: string;
|
|
22
28
|
getLocaleStrings(loc: string): any;
|
|
@@ -26,6 +32,7 @@ export declare var surveyLocalization: {
|
|
|
26
32
|
onGetExternalString: (name: string, locale: string) => string;
|
|
27
33
|
};
|
|
28
34
|
export declare function getLocaleString(strName: string, locale?: string): string;
|
|
35
|
+
export declare function getLocaleStrings(locale: string): any;
|
|
29
36
|
export declare function setupLocale(localeConfig: {
|
|
30
37
|
localeCode: string;
|
|
31
38
|
strings: any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { PopupBaseViewModel } from "../popup-view-model";
|
|
2
2
|
declare function compareVersions(a: any, b: any): number;
|
|
3
3
|
declare function confirmAction(message: string): boolean;
|
|
4
|
-
declare function confirmActionAsync(
|
|
4
|
+
declare function confirmActionAsync(options: IConfirmDialogOptions): void;
|
|
5
5
|
declare function detectIEBrowser(): boolean;
|
|
6
6
|
declare function detectIEOrEdge(): boolean;
|
|
7
7
|
declare function loadFileFromBase64(b64Data: string, fileName: string): void;
|
|
@@ -47,7 +47,16 @@ export declare class Logger {
|
|
|
47
47
|
log(action: string): void;
|
|
48
48
|
get result(): string;
|
|
49
49
|
}
|
|
50
|
-
export
|
|
50
|
+
export interface IConfirmDialogOptions {
|
|
51
|
+
message?: string;
|
|
52
|
+
funcOnYes?: () => void;
|
|
53
|
+
funcOnNo?: () => void;
|
|
54
|
+
applyTitle?: string;
|
|
55
|
+
locale?: string;
|
|
56
|
+
rootElement?: HTMLElement;
|
|
57
|
+
cssClass?: string;
|
|
58
|
+
}
|
|
59
|
+
export declare function showConfirmDialog(message: string, callback: (res: boolean) => void, options: IConfirmDialogOptions): boolean;
|
|
51
60
|
export declare function configConfirmDialog(popupViewModel: PopupBaseViewModel): void;
|
|
52
61
|
declare function chooseFiles(input: HTMLInputElement, callback: (files: File[]) => void): void;
|
|
53
62
|
export declare function compareArrays<T>(oldValue: Array<T>, newValue: Array<T>, getKey: (item: T) => any): {
|