survey-creator-core 1.11.1 → 1.11.2
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/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/i18n/arabic.js +1 -1
- package/i18n/arabic.min.js +1 -1
- package/i18n/bulgarian.js +1 -1
- package/i18n/bulgarian.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/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/german.js +1 -1
- package/i18n/german.min.js +1 -1
- package/i18n/hebrew.js +1 -1
- package/i18n/hebrew.min.js +1 -1
- package/i18n/hungarian.js +1 -1
- package/i18n/hungarian.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/korean.js +1 -1
- package/i18n/korean.min.js +1 -1
- package/i18n/malay.js +1 -1
- package/i18n/malay.min.js +1 -1
- package/i18n/mongolian.js +1 -1
- package/i18n/mongolian.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.js +1 -1
- package/i18n/portuguese.min.js +1 -1
- package/i18n/russian.js +1 -1
- package/i18n/russian.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/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/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/package.json +2 -2
- package/survey-creator-core.css +17 -6
- package/survey-creator-core.fontless.css +16 -5
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +2 -2
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +483 -727
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +3 -3
- package/survey-creator-core.min.js +3 -3
- package/typings/components/tabs/preview.d.ts +51 -0
- package/typings/components/tabs/test.d.ts +5 -47
- package/typings/components/tabs/theme-builder.d.ts +5 -39
- package/typings/components/tabs/theme-model.d.ts +4 -3
- package/typings/property-grid/index.d.ts +1 -0
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { SurveySimulatorModel } from "../simulator";
|
|
2
|
+
import { Base, PageModel, SurveyModel, Action, IAction, ActionContainer } from "survey-core";
|
|
3
|
+
import { SurveyCreatorModel } from "../../creator-base";
|
|
4
|
+
export declare class PreviewViewModel extends Base {
|
|
5
|
+
protected surveyProvider: SurveyCreatorModel;
|
|
6
|
+
private startThemeClasses;
|
|
7
|
+
static tagRegex: RegExp;
|
|
8
|
+
enableInvisiblePages: boolean;
|
|
9
|
+
private json;
|
|
10
|
+
pages: ActionContainer;
|
|
11
|
+
prevPageAction: Action;
|
|
12
|
+
nextPageAction: Action;
|
|
13
|
+
selectPageAction: Action;
|
|
14
|
+
testAgainAction: Action;
|
|
15
|
+
simulator: SurveySimulatorModel;
|
|
16
|
+
onSurveyCreatedCallback: (survey: SurveyModel) => any;
|
|
17
|
+
showInvisibleElements: any;
|
|
18
|
+
showPagesInTestSurveyTab: any;
|
|
19
|
+
isRunning: boolean;
|
|
20
|
+
pageListItems: Array<IAction>;
|
|
21
|
+
activePage: PageModel;
|
|
22
|
+
get activeLanguage(): string;
|
|
23
|
+
set activeLanguage(val: string);
|
|
24
|
+
get survey(): SurveyModel;
|
|
25
|
+
get pageActions(): Array<Action>;
|
|
26
|
+
get isPageToolbarVisible(): boolean;
|
|
27
|
+
constructor(surveyProvider: SurveyCreatorModel, startThemeClasses?: any);
|
|
28
|
+
get isMobileView(): boolean;
|
|
29
|
+
get showResults(): boolean;
|
|
30
|
+
updateSimulatorSurvey(json: any, theme: any): void;
|
|
31
|
+
setJSON(json: any, currTheme: any): void;
|
|
32
|
+
initialize(json: any, options: any): void;
|
|
33
|
+
private updatePageItem;
|
|
34
|
+
private getCurrentPageItem;
|
|
35
|
+
private getSelectPageTitle;
|
|
36
|
+
private getPageTitle;
|
|
37
|
+
protected updatePageList(): void;
|
|
38
|
+
protected getTabName(): string;
|
|
39
|
+
protected getShowResults(): boolean;
|
|
40
|
+
show(): void;
|
|
41
|
+
testAgain(): void;
|
|
42
|
+
buildActions(): void;
|
|
43
|
+
private setActivePageItem;
|
|
44
|
+
private getPageItemByPage;
|
|
45
|
+
private updateResultsTemplate;
|
|
46
|
+
setTheme(themeName: string, themeMapper: any): void;
|
|
47
|
+
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
48
|
+
private updatePrevNextPageActionState;
|
|
49
|
+
onScroll(): boolean;
|
|
50
|
+
dispose(): void;
|
|
51
|
+
}
|
|
@@ -1,49 +1,7 @@
|
|
|
1
|
-
import { SurveySimulatorModel } from "../simulator";
|
|
2
|
-
import { Base, PageModel, SurveyModel, Action, IAction, ActionContainer } from "survey-core";
|
|
3
1
|
import { SurveyCreatorModel } from "../../creator-base";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
private json;
|
|
10
|
-
pages: ActionContainer;
|
|
11
|
-
prevPageAction: Action;
|
|
12
|
-
testAgainAction: Action;
|
|
13
|
-
nextPageAction: Action;
|
|
14
|
-
private selectPageAction;
|
|
15
|
-
onSurveyCreatedCallback: (survey: SurveyModel) => any;
|
|
16
|
-
simulator: SurveySimulatorModel;
|
|
17
|
-
showInvisibleElements: any;
|
|
18
|
-
showPagesInTestSurveyTab: any;
|
|
19
|
-
isRunning: boolean;
|
|
20
|
-
pageListItems: Array<IAction>;
|
|
21
|
-
activePage: PageModel;
|
|
22
|
-
get activeLanguage(): string;
|
|
23
|
-
set activeLanguage(val: string);
|
|
24
|
-
get survey(): SurveyModel;
|
|
25
|
-
get pageActions(): Array<Action>;
|
|
26
|
-
get isPageToolbarVisible(): boolean;
|
|
27
|
-
constructor(surveyProvider: SurveyCreatorModel, startTheme?: any);
|
|
28
|
-
get isMobileView(): boolean;
|
|
29
|
-
get showResults(): boolean;
|
|
30
|
-
updateSimulatorSurvey(json: any, theme: any): void;
|
|
31
|
-
setJSON(json: any, currTheme: any): void;
|
|
32
|
-
initialize(json: any, options: any): void;
|
|
33
|
-
private updatePageItem;
|
|
34
|
-
private getCurrentPageItem;
|
|
35
|
-
private getSelectPageTitle;
|
|
36
|
-
private getPageTitle;
|
|
37
|
-
private updatePageList;
|
|
38
|
-
show(): void;
|
|
39
|
-
testAgain(): void;
|
|
40
|
-
buildActions(): void;
|
|
41
|
-
private setActivePageItem;
|
|
42
|
-
private getPageItemByPage;
|
|
43
|
-
private updateResultsTemplate;
|
|
44
|
-
setTheme(themeName: string, themeMapper: any): void;
|
|
45
|
-
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
46
|
-
private updatePrevNextPageActionState;
|
|
47
|
-
onScroll(): boolean;
|
|
48
|
-
dispose(): void;
|
|
2
|
+
import { PreviewViewModel } from "./preview";
|
|
3
|
+
export declare class TestSurveyTabViewModel extends PreviewViewModel {
|
|
4
|
+
constructor(surveyProvider: SurveyCreatorModel, startThemeClasses: any);
|
|
5
|
+
protected getTabName(): string;
|
|
6
|
+
protected getShowResults(): boolean;
|
|
49
7
|
}
|
|
@@ -1,45 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Base, PageModel, SurveyModel, Action, IAction, ActionContainer, ITheme } from "survey-core";
|
|
1
|
+
import { ITheme } from "survey-core";
|
|
3
2
|
import { SurveyCreatorModel } from "../../creator-base";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
private json;
|
|
8
|
-
pages: ActionContainer;
|
|
9
|
-
prevPageAction: Action;
|
|
10
|
-
testAgainAction: Action;
|
|
11
|
-
nextPageAction: Action;
|
|
12
|
-
private blockChanges;
|
|
13
|
-
onSurveyCreatedCallback: (survey: SurveyModel) => any;
|
|
14
|
-
simulator: SurveySimulatorModel;
|
|
15
|
-
showInvisibleElements: any;
|
|
16
|
-
showPagesInTestSurveyTab: any;
|
|
17
|
-
isRunning: boolean;
|
|
18
|
-
pageListItems: Array<IAction>;
|
|
19
|
-
activePage: PageModel;
|
|
20
|
-
get survey(): SurveyModel;
|
|
21
|
-
get pageActions(): Array<Action>;
|
|
22
|
-
get isPageToolbarVisible(): boolean;
|
|
3
|
+
import { PreviewViewModel } from "./preview";
|
|
4
|
+
export declare class ThemeTabViewModel extends PreviewViewModel {
|
|
5
|
+
constructor(surveyProvider: SurveyCreatorModel, startThemeClasses: any);
|
|
23
6
|
get currentTheme(): ITheme;
|
|
24
7
|
get currentThemeCssVariables(): {
|
|
25
8
|
[index: string]: string;
|
|
26
9
|
};
|
|
27
|
-
|
|
28
|
-
get isMobileView(): boolean;
|
|
29
|
-
get showResults(): boolean;
|
|
30
|
-
updateSimulatorSurvey(json: any, theme: any): void;
|
|
31
|
-
setJSON(json: any, currTheme: any): void;
|
|
32
|
-
initialize(json: any, options: any): void;
|
|
33
|
-
private updatePageItem;
|
|
34
|
-
private getCurrentPageItem;
|
|
35
|
-
private getSelectPageTitle;
|
|
36
|
-
private getPageTitle;
|
|
37
|
-
private updatePageList;
|
|
38
|
-
show(): void;
|
|
39
|
-
testAgain(): void;
|
|
40
|
-
buildActions(): void;
|
|
41
|
-
private updatePrevNextPageActionState;
|
|
42
|
-
private setActivePageItem;
|
|
43
|
-
private getPageItemByPage;
|
|
44
|
-
dispose(): void;
|
|
10
|
+
protected getTabName(): string;
|
|
45
11
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { Base, ITheme, ILoadFromJSONOptions, ISaveToJSONOptions,
|
|
1
|
+
import { Base, ITheme, ILoadFromJSONOptions, ISaveToJSONOptions, EventBase, SurveyModel } from "survey-core";
|
|
2
|
+
import { HeaderModel } from "./header-model";
|
|
2
3
|
import { UndoRedoManager } from "../../plugins/undo-redo/undo-redo-manager";
|
|
3
4
|
export * from "./header-model";
|
|
4
5
|
export declare function getThemeFullName(theme: ITheme): string;
|
|
@@ -41,8 +42,8 @@ export declare class ThemeModel extends Base implements ITheme {
|
|
|
41
42
|
private setThemeCssVariablesChanges;
|
|
42
43
|
constructor();
|
|
43
44
|
initialize(surveyTheme?: ITheme, survey?: SurveyModel): void;
|
|
44
|
-
get header():
|
|
45
|
-
set header(val:
|
|
45
|
+
get header(): HeaderModel;
|
|
46
|
+
set header(val: HeaderModel);
|
|
46
47
|
questionPanel: any;
|
|
47
48
|
editorPanel: any;
|
|
48
49
|
onThemeSelected: EventBase<ThemeModel, {
|
|
@@ -133,6 +133,7 @@ export declare class PropertyGridModel {
|
|
|
133
133
|
expandAllCategories(): void;
|
|
134
134
|
private collapseOtherPanels;
|
|
135
135
|
private collapseAllCategoriesExcept;
|
|
136
|
+
surveyInstanceCreatedArea: string;
|
|
136
137
|
protected createSurvey(json: any, callback?: (survey: SurveyModel) => void): SurveyModel;
|
|
137
138
|
protected getSurveyJSON(): any;
|
|
138
139
|
private validateQuestionValue;
|