survey-creator-core 1.9.40 → 1.9.43
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 +62 -49
- package/survey-creator-core.d.ts +52 -16
- package/survey-creator-core.i18n.js +3 -3
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +434 -269
- package/survey-creator-core.min.css +6 -6
- 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.43
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
@@ -221,6 +221,14 @@ export interface ICreatorOptions {
|
|
|
221
221
|
*/
|
|
222
222
|
showObjectTitles?: boolean;
|
|
223
223
|
/*
|
|
224
|
+
* Limits the number of visible choices. Users can click "Show more" to view hidden choices.
|
|
225
|
+
*
|
|
226
|
+
* Set this property to -1 if you do not want to hide any choices.
|
|
227
|
+
*
|
|
228
|
+
* Default value: 10
|
|
229
|
+
*/
|
|
230
|
+
maxVisibleChoices?: number;
|
|
231
|
+
/*
|
|
224
232
|
* Specifies whether the design surface displays the survey title and description when the survey does not contain any elements.
|
|
225
233
|
*
|
|
226
234
|
* Default value: `false`
|
|
@@ -290,7 +298,7 @@ export interface ICreatorOptions {
|
|
|
290
298
|
* - `"bypage"`
|
|
291
299
|
* Questions and panels are divided between pages. Users can use the page navigator to switch to a required page.
|
|
292
300
|
*/
|
|
293
|
-
pageEditMode?: "standard" | "single" | "bypage"
|
|
301
|
+
pageEditMode?: "standard" | "single" | "bypage";
|
|
294
302
|
}
|
|
295
303
|
/*
|
|
296
304
|
* The Toolbox item description.
|
|
@@ -443,6 +451,7 @@ export interface ICreatorPlugin {
|
|
|
443
451
|
update?: any;
|
|
444
452
|
deactivate?: any;
|
|
445
453
|
dispose?: any;
|
|
454
|
+
onDesignerSurveyPropertyChanged?: (obj: Base, propName: string) => void;
|
|
446
455
|
model: Base;
|
|
447
456
|
}
|
|
448
457
|
export interface ICreatorAction extends IAction {
|
|
@@ -578,12 +587,12 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
578
587
|
toolbarValue: any;
|
|
579
588
|
responsivityManager: CreatorResponsivityManager;
|
|
580
589
|
footerToolbar: any;
|
|
581
|
-
pageEditModeValue: "standard" | "single" | "bypage"
|
|
590
|
+
pageEditModeValue: "standard" | "single" | "bypage";
|
|
582
591
|
/*
|
|
583
592
|
* Contains the value of the [`pageEditMode`](https://surveyjs.io/Documentation/Survey-Creator?id=ICreatorOptions#pageEditMode) property specified in the constructor.
|
|
584
593
|
*/
|
|
585
|
-
get pageEditMode(): "standard" | "single" | "bypage"
|
|
586
|
-
set pageEditMode(val: "standard" | "single" | "bypage"
|
|
594
|
+
get pageEditMode(): "standard" | "single" | "bypage";
|
|
595
|
+
set pageEditMode(val: "standard" | "single" | "bypage");
|
|
587
596
|
surveyValue: SurveyModel;
|
|
588
597
|
get toolbarItems(): any;
|
|
589
598
|
get toolbar(): any;
|
|
@@ -656,6 +665,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
656
665
|
* - "survey-tester" - raised from page selector list in "Preview" tab
|
|
657
666
|
* - "survey-tester-selected" - raised on setting page selector title in "Preview" tab
|
|
658
667
|
* - "survey-translation" - raised from translation tab
|
|
668
|
+
* - "property-editor" - raised on showing question property editor, for example "gotoName". It is raised for all elements (questions) in the dropdown.
|
|
659
669
|
* - "property-grid" - raised from showing object selector for property grid in "Designer" tab.
|
|
660
670
|
* - "property-grid-title" - raised on rendering selected object title in property grid in "Designer" tab.
|
|
661
671
|
*/
|
|
@@ -855,12 +865,15 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
855
865
|
*/
|
|
856
866
|
onConditionGetTitle: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
857
867
|
/*
|
|
858
|
-
* Use this event to modify the display text
|
|
859
|
-
*
|
|
860
|
-
*
|
|
861
|
-
*
|
|
862
|
-
* -
|
|
863
|
-
* - options.
|
|
868
|
+
* Use this event to modify the display text of a logic item in the Logic tab.
|
|
869
|
+
*
|
|
870
|
+
* The event handler accepts the following arguments:
|
|
871
|
+
*
|
|
872
|
+
* - `sender` - A Survey Creator instance that raised the event.
|
|
873
|
+
* - `options.expression` - A logical expression associated with the logic item.
|
|
874
|
+
* - `options.expressionText` - The same expression in a user-friendly format. It may contain question titles instead of question names.
|
|
875
|
+
* - `options.logicItem` - A logic item object. Contains an array of actions and other properties.
|
|
876
|
+
* - `options.text` - The expression and actions in a user-friendly format. Redefine this property if you want to change the display text.
|
|
864
877
|
*/
|
|
865
878
|
onLogicItemDisplayText: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
866
879
|
/*
|
|
@@ -1049,6 +1062,14 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1049
1062
|
*/
|
|
1050
1063
|
showObjectTitles: boolean;
|
|
1051
1064
|
/*
|
|
1065
|
+
* Limits the number of visible choices. Users can click "Show more" to view hidden choices.
|
|
1066
|
+
*
|
|
1067
|
+
* Set this property to -1 if you do not want to hide any choices.
|
|
1068
|
+
*
|
|
1069
|
+
* Default value: 10
|
|
1070
|
+
*/
|
|
1071
|
+
maxVisibleChoices: number;
|
|
1072
|
+
/*
|
|
1052
1073
|
* Specifies whether to display question titles instead of names when users edit logical expressions.
|
|
1053
1074
|
*
|
|
1054
1075
|
* Default value: `false`
|
|
@@ -2078,6 +2099,7 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
2078
2099
|
onClick(event: any): void;
|
|
2079
2100
|
onFocus(event: any): void;
|
|
2080
2101
|
onInput(event: any): void;
|
|
2102
|
+
onBlur(event: any): void;
|
|
2081
2103
|
done(event: any): void;
|
|
2082
2104
|
onKeyDown(event: any): boolean;
|
|
2083
2105
|
onKeyUp(event: any): boolean;
|
|
@@ -2461,9 +2483,6 @@ export declare class SurveyTextWorker {
|
|
|
2461
2483
|
export declare class TabDesignerViewModel extends Base {
|
|
2462
2484
|
constructor(creator: CreatorBase);
|
|
2463
2485
|
widthUpdater: any;
|
|
2464
|
-
checkNewPageHandler: (sender: SurveyModel, options: any) => void;
|
|
2465
|
-
checkRemovePageHandler: (sender: SurveyModel, options: any) => void;
|
|
2466
|
-
surveyOnPropertyChanged: (sender: SurveyModel, options: any) => void;
|
|
2467
2486
|
pagesControllerValue: PagesController;
|
|
2468
2487
|
newPage: PageModel;
|
|
2469
2488
|
showNewPage: boolean;
|
|
@@ -2475,8 +2494,9 @@ export declare class TabDesignerViewModel extends Base {
|
|
|
2475
2494
|
get pagesController(): PagesController;
|
|
2476
2495
|
get isToolboxVisible(): boolean;
|
|
2477
2496
|
get placeholderText(): string;
|
|
2497
|
+
isUpdatingNewPage: boolean;
|
|
2498
|
+
onDesignerSurveyPropertyChanged(obj: Base, propName: string): void;
|
|
2478
2499
|
initSurvey(): void;
|
|
2479
|
-
dispose(): void;
|
|
2480
2500
|
clickDesigner(): void;
|
|
2481
2501
|
getDesignerCss(): string;
|
|
2482
2502
|
getRootCss(): string;
|
|
@@ -2622,6 +2642,7 @@ export declare class UndoRedoController extends Base {
|
|
|
2622
2642
|
undoAction: Action;
|
|
2623
2643
|
redoAction: Action;
|
|
2624
2644
|
undoRedoManager: UndoRedoManager;
|
|
2645
|
+
updateSurvey(): void;
|
|
2625
2646
|
undo(): void;
|
|
2626
2647
|
redo(): void;
|
|
2627
2648
|
startTransaction(name?: string): void;
|
|
@@ -2890,6 +2911,7 @@ export declare class TabDesignerPlugin implements ICreatorPlugin {
|
|
|
2890
2911
|
previewAction: Action;
|
|
2891
2912
|
activate(): void;
|
|
2892
2913
|
deactivate(): boolean;
|
|
2914
|
+
onDesignerSurveyPropertyChanged(obj: Base, propName: string): void;
|
|
2893
2915
|
update(): void;
|
|
2894
2916
|
createActions(): any;
|
|
2895
2917
|
selectSurvey(): void;
|
|
@@ -3043,7 +3065,7 @@ export declare class UndoRedoAction implements IUndoRedoAction {
|
|
|
3043
3065
|
constructor(_propertyName: string, _oldValue: any, _newValue: any, _sender: Base);
|
|
3044
3066
|
apply(): void;
|
|
3045
3067
|
rollback(): void;
|
|
3046
|
-
getChanges(): IUndoRedoChange;
|
|
3068
|
+
getChanges(isUndo?: boolean): IUndoRedoChange;
|
|
3047
3069
|
tryMerge(sender: Base, propertyName: string, newValue: any): boolean;
|
|
3048
3070
|
}
|
|
3049
3071
|
export declare class UndoRedoArrayAction implements IUndoRedoAction {
|
|
@@ -3250,6 +3272,20 @@ export declare class PropertyGridValueEditorBase extends PropertyGridEditor {
|
|
|
3250
3272
|
protected isValueEmpty(val: any): boolean;
|
|
3251
3273
|
isSupportGrouping(): boolean;
|
|
3252
3274
|
}
|
|
3275
|
+
export declare class QuestionDropdownAdornerViewModel extends QuestionAdornerViewModel {
|
|
3276
|
+
constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
|
|
3277
|
+
isCollapsed: boolean;
|
|
3278
|
+
visibleCount: number;
|
|
3279
|
+
get question(): QuestionDropdownModel;
|
|
3280
|
+
get needToCollapse(): boolean;
|
|
3281
|
+
get isCollapseView(): boolean;
|
|
3282
|
+
leftFocus(): void;
|
|
3283
|
+
getChoiceCss(): string;
|
|
3284
|
+
getRenderedItems(): any;
|
|
3285
|
+
getButtonText(): string;
|
|
3286
|
+
switchCollapse: any;
|
|
3287
|
+
dispose(): void;
|
|
3288
|
+
}
|
|
3253
3289
|
export declare class QuestionImageAdornerViewModel extends QuestionAdornerViewModel {
|
|
3254
3290
|
constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData, questionRoot: any);
|
|
3255
3291
|
questionRoot: any;
|