survey-creator-core 1.9.39 → 1.9.40
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/package.json +1 -1
- package/survey-creator-core.css +43 -30
- package/survey-creator-core.d.ts +52 -33
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +158 -122
- package/survey-creator-core.min.css +7 -7
- package/survey-creator-core.min.js +2 -2
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.
|
|
2
|
+
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.40
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
@@ -62,6 +62,7 @@ export interface ISurveyCreatorOptions {
|
|
|
62
62
|
createSurvey(json: any, reason: string, surveyType?: any): any;
|
|
63
63
|
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any): any;
|
|
64
64
|
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
65
|
+
onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
|
|
65
66
|
}
|
|
66
67
|
/*
|
|
67
68
|
* Survey Creator configuration. Pass it as an argument to the `SurveyCreator` constructor:
|
|
@@ -192,13 +193,13 @@ export interface ICreatorOptions {
|
|
|
192
193
|
*
|
|
193
194
|
* Accepted values:
|
|
194
195
|
*
|
|
195
|
-
* - `"auto"` (default)
|
|
196
|
-
* Display the language selector only if the survey is translated
|
|
196
|
+
* - `"auto"` (default)
|
|
197
|
+
* Display the language selector only if the survey is translated into more than one language.
|
|
197
198
|
*
|
|
198
|
-
* - `true`
|
|
199
|
+
* - `true`
|
|
199
200
|
* Always display the language selector regardless of how many languages are used in the survey.
|
|
200
|
-
*
|
|
201
|
-
* - `false`
|
|
201
|
+
*
|
|
202
|
+
* - `false`
|
|
202
203
|
* Never display the language selector.
|
|
203
204
|
*
|
|
204
205
|
* - `"all"`
|
|
@@ -269,6 +270,27 @@ export interface ICreatorOptions {
|
|
|
269
270
|
* [View the "Switch Between Themes" demo](https://surveyjs.io/Examples/Creator?id=theme-switcher)
|
|
270
271
|
*/
|
|
271
272
|
allowChangeThemeInPreview?: boolean;
|
|
273
|
+
/*
|
|
274
|
+
* Limits question and panels types available in the Toolbox and Add Question menu.
|
|
275
|
+
*
|
|
276
|
+
* Refer to the [Limit Available Question and Panel Types](https://surveyjs.io/Documentation/Survey-Creator?id=toolbox#limit-available-question-and-panel-types) help topic for more information.
|
|
277
|
+
*/
|
|
278
|
+
questionTypes?: any;
|
|
279
|
+
/*
|
|
280
|
+
* Specifies how Survey Creator users edit survey pages.
|
|
281
|
+
*
|
|
282
|
+
* Accepted values:
|
|
283
|
+
*
|
|
284
|
+
* - `"standard"` (default)
|
|
285
|
+
* Questions and panels are divided between pages. Users can scroll the design surface to reach a required page.
|
|
286
|
+
*
|
|
287
|
+
* - `"single"`
|
|
288
|
+
* All questions and panels belong to a single page. Users cannot add or remove pages.
|
|
289
|
+
*
|
|
290
|
+
* - `"bypage"`
|
|
291
|
+
* Questions and panels are divided between pages. Users can use the page navigator to switch to a required page.
|
|
292
|
+
*/
|
|
293
|
+
pageEditMode?: "standard" | "single" | "bypage" | "readonly";
|
|
272
294
|
}
|
|
273
295
|
/*
|
|
274
296
|
* The Toolbox item description.
|
|
@@ -556,13 +578,12 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
556
578
|
toolbarValue: any;
|
|
557
579
|
responsivityManager: CreatorResponsivityManager;
|
|
558
580
|
footerToolbar: any;
|
|
559
|
-
pageEditModeValue: "standard" | "single" | "bypage";
|
|
581
|
+
pageEditModeValue: "standard" | "single" | "bypage" | "readonly";
|
|
560
582
|
/*
|
|
561
|
-
*
|
|
562
|
-
* You can set this option in creator constructor only
|
|
583
|
+
* Contains the value of the [`pageEditMode`](https://surveyjs.io/Documentation/Survey-Creator?id=ICreatorOptions#pageEditMode) property specified in the constructor.
|
|
563
584
|
*/
|
|
564
|
-
get pageEditMode(): "standard" | "single" | "bypage";
|
|
565
|
-
set pageEditMode(val: "standard" | "single" | "bypage");
|
|
585
|
+
get pageEditMode(): "standard" | "single" | "bypage" | "readonly";
|
|
586
|
+
set pageEditMode(val: "standard" | "single" | "bypage" | "readonly");
|
|
566
587
|
surveyValue: SurveyModel;
|
|
567
588
|
get toolbarItems(): any;
|
|
568
589
|
get toolbar(): any;
|
|
@@ -834,6 +855,15 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
834
855
|
*/
|
|
835
856
|
onConditionGetTitle: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
836
857
|
/*
|
|
858
|
+
* Use this event to modify the display text in a logic viewer.
|
|
859
|
+
* - sender the survey creator object that fires the event.
|
|
860
|
+
* - options.expression the item expression.
|
|
861
|
+
* - options.expressionText expression as display text. It can show question title instead of question name
|
|
862
|
+
* - options.logicItem the link to the Logic Item object. It has the array of actions and other properties
|
|
863
|
+
* - options.text the string property that you can change
|
|
864
|
+
*/
|
|
865
|
+
onLogicItemDisplayText: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
866
|
+
/*
|
|
837
867
|
* The event is called when a survey is changed in the designer. A new page/question/page is added or existing is removed, a property is changed and so on.
|
|
838
868
|
* - sender the survey creator object that fires the event
|
|
839
869
|
* options object contains the information about certain modifications
|
|
@@ -999,22 +1029,6 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
999
1029
|
*/
|
|
1000
1030
|
onDragDropAllow: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
1001
1031
|
/*
|
|
1002
|
-
* Use this event to override/disable element adorners - wrapping component name.
|
|
1003
|
-
* - sender the survey creator object that fires the event.
|
|
1004
|
-
* - options.element a survey object to be wrapped.
|
|
1005
|
-
* - options.reason why we need to wrap an element.
|
|
1006
|
-
* - options.conponentName component wrapper name.
|
|
1007
|
-
*/
|
|
1008
|
-
onGetElementWrapperComponentName: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
1009
|
-
/*
|
|
1010
|
-
* Use this event to override/disable element adorners - wrapping component data.
|
|
1011
|
-
* - sender the survey creator object that fires the event.
|
|
1012
|
-
* - options.element a survey object to be wrapped.
|
|
1013
|
-
* - options.reason why we need to wrap an element.
|
|
1014
|
-
* - options.conponentData component wrapper data.
|
|
1015
|
-
*/
|
|
1016
|
-
onGetElementWrapperComponentData: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
1017
|
-
/*
|
|
1018
1032
|
* This callback is used internally for providing survey JSON text.
|
|
1019
1033
|
*/
|
|
1020
1034
|
getSurveyJSONTextCallback: any;
|
|
@@ -1102,12 +1116,14 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1102
1116
|
* Default value: `"defaultV2"`
|
|
1103
1117
|
*/
|
|
1104
1118
|
themeForPreview: string;
|
|
1119
|
+
_allowModifyPages: boolean;
|
|
1105
1120
|
/*
|
|
1106
1121
|
* Specifies whether users can add, edit, and delete survey pages.
|
|
1107
1122
|
*
|
|
1108
1123
|
* Default value: `true`
|
|
1109
1124
|
*/
|
|
1110
|
-
allowModifyPages: boolean;
|
|
1125
|
+
get allowModifyPages(): boolean;
|
|
1126
|
+
set allowModifyPages(val: boolean);
|
|
1111
1127
|
/*
|
|
1112
1128
|
* Obsolete. Use the [`showDefaultLanguageInPreviewTab`](https://surveyjs.io/Documentation/Survey-Creator?id=surveycreator#showDefaultLanguageInPreviewTab) property instead.
|
|
1113
1129
|
*/
|
|
@@ -1117,16 +1133,16 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1117
1133
|
*
|
|
1118
1134
|
* Accepted values:
|
|
1119
1135
|
*
|
|
1120
|
-
* - `"auto"` (default)
|
|
1121
|
-
* Display the language selector only if the survey is translated
|
|
1136
|
+
* - `"auto"` (default)
|
|
1137
|
+
* Display the language selector only if the survey is translated into more than one language.
|
|
1122
1138
|
*
|
|
1123
|
-
* - `true`
|
|
1139
|
+
* - `true`
|
|
1124
1140
|
* Always display the language selector regardless of how many languages are used in the survey.
|
|
1125
1141
|
*
|
|
1126
|
-
* - `false`
|
|
1142
|
+
* - `false`
|
|
1127
1143
|
* Never display the language selector.
|
|
1128
1144
|
*
|
|
1129
|
-
* - `"all"`
|
|
1145
|
+
* - `"all"`
|
|
1130
1146
|
* Always display the language selector with [all supported languages](https://github.com/surveyjs/survey-creator/tree/master/packages/survey-creator-core/src/localization).
|
|
1131
1147
|
*
|
|
1132
1148
|
* **See also**: [Localization & Globalization](https://surveyjs.io/Documentation/Survey-Creator?id=localization)
|
|
@@ -1441,6 +1457,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1441
1457
|
onGetElementEditorTitleCallback(obj: Base, title: string): string;
|
|
1442
1458
|
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any): void;
|
|
1443
1459
|
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
1460
|
+
onLogicGetTitleCallback(expression: string, expressionText: string, text: string, logicItem: any): string;
|
|
1444
1461
|
/*
|
|
1445
1462
|
* The delay on saving survey JSON on autoSave in ms. It is 500 ms by default.
|
|
1446
1463
|
* If during this period of time an end-user modify survey, then the last version will be saved only. Set to 0 to save immediately.
|
|
@@ -1631,6 +1648,7 @@ export declare class LogoImageViewModel extends Base {
|
|
|
1631
1648
|
constructor(creator: CreatorBase, root: any);
|
|
1632
1649
|
root: any;
|
|
1633
1650
|
get allowEdit(): boolean;
|
|
1651
|
+
get containerCss(): string;
|
|
1634
1652
|
get survey(): SurveyModel;
|
|
1635
1653
|
chooseFile(model: LogoImageViewModel): void;
|
|
1636
1654
|
remove(model: LogoImageViewModel): void;
|
|
@@ -2698,6 +2716,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
2698
2716
|
createSurvey(json: any, reason: string, surveyType?: any): SurveyModel;
|
|
2699
2717
|
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any): void;
|
|
2700
2718
|
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
2719
|
+
onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
|
|
2701
2720
|
}
|
|
2702
2721
|
export declare class ImageItemValueWrapperViewModel extends ItemValueWrapperViewModel {
|
|
2703
2722
|
constructor(creator: CreatorBase, question: QuestionSelectBase, item: ImageItemValue, templateData: any, itemsRoot: any);
|