survey-creator-core 1.9.40 → 1.9.41
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 +60 -49
- package/survey-creator-core.d.ts +50 -15
- package/survey-creator-core.i18n.js +3 -3
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +389 -255
- 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.41
|
|
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
|
+
* Specify this property if questions with many choices occupy much vertical space on the design surface.
|
|
227
|
+
*
|
|
228
|
+
* Default value: -1 (unlimited)
|
|
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;
|
|
@@ -855,12 +864,15 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
855
864
|
*/
|
|
856
865
|
onConditionGetTitle: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
857
866
|
/*
|
|
858
|
-
* Use this event to modify the display text
|
|
859
|
-
*
|
|
860
|
-
*
|
|
861
|
-
*
|
|
862
|
-
* -
|
|
863
|
-
* - options.
|
|
867
|
+
* Use this event to modify the display text of a logic item in the Logic tab.
|
|
868
|
+
*
|
|
869
|
+
* The event handler accepts the following arguments:
|
|
870
|
+
*
|
|
871
|
+
* - `sender` - A Survey Creator instance that raised the event.
|
|
872
|
+
* - `options.expression` - A logical expression associated with the logic item.
|
|
873
|
+
* - `options.expressionText` - The same expression in a user-friendly format. It may contain question titles instead of question names.
|
|
874
|
+
* - `options.logicItem` - A logic item object. Contains an array of actions and other properties.
|
|
875
|
+
* - `options.text` - The expression and actions in a user-friendly format. Redefine this property if you want to change the display text.
|
|
864
876
|
*/
|
|
865
877
|
onLogicItemDisplayText: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
866
878
|
/*
|
|
@@ -1049,6 +1061,14 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1049
1061
|
*/
|
|
1050
1062
|
showObjectTitles: boolean;
|
|
1051
1063
|
/*
|
|
1064
|
+
* Limits the number of visible choices. Users can click "Show more..." to view hidden choices.
|
|
1065
|
+
*
|
|
1066
|
+
* Specify this property if questions with many choices occupy much vertical space on the design surface.
|
|
1067
|
+
*
|
|
1068
|
+
* Default value: -1 (unlimited)
|
|
1069
|
+
*/
|
|
1070
|
+
maxVisibleChoices: number;
|
|
1071
|
+
/*
|
|
1052
1072
|
* Specifies whether to display question titles instead of names when users edit logical expressions.
|
|
1053
1073
|
*
|
|
1054
1074
|
* Default value: `false`
|
|
@@ -2078,6 +2098,7 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
2078
2098
|
onClick(event: any): void;
|
|
2079
2099
|
onFocus(event: any): void;
|
|
2080
2100
|
onInput(event: any): void;
|
|
2101
|
+
onBlur(event: any): void;
|
|
2081
2102
|
done(event: any): void;
|
|
2082
2103
|
onKeyDown(event: any): boolean;
|
|
2083
2104
|
onKeyUp(event: any): boolean;
|
|
@@ -2461,9 +2482,6 @@ export declare class SurveyTextWorker {
|
|
|
2461
2482
|
export declare class TabDesignerViewModel extends Base {
|
|
2462
2483
|
constructor(creator: CreatorBase);
|
|
2463
2484
|
widthUpdater: any;
|
|
2464
|
-
checkNewPageHandler: (sender: SurveyModel, options: any) => void;
|
|
2465
|
-
checkRemovePageHandler: (sender: SurveyModel, options: any) => void;
|
|
2466
|
-
surveyOnPropertyChanged: (sender: SurveyModel, options: any) => void;
|
|
2467
2485
|
pagesControllerValue: PagesController;
|
|
2468
2486
|
newPage: PageModel;
|
|
2469
2487
|
showNewPage: boolean;
|
|
@@ -2475,8 +2493,9 @@ export declare class TabDesignerViewModel extends Base {
|
|
|
2475
2493
|
get pagesController(): PagesController;
|
|
2476
2494
|
get isToolboxVisible(): boolean;
|
|
2477
2495
|
get placeholderText(): string;
|
|
2496
|
+
isUpdatingNewPage: boolean;
|
|
2497
|
+
onDesignerSurveyPropertyChanged(obj: Base, propName: string): void;
|
|
2478
2498
|
initSurvey(): void;
|
|
2479
|
-
dispose(): void;
|
|
2480
2499
|
clickDesigner(): void;
|
|
2481
2500
|
getDesignerCss(): string;
|
|
2482
2501
|
getRootCss(): string;
|
|
@@ -2622,6 +2641,7 @@ export declare class UndoRedoController extends Base {
|
|
|
2622
2641
|
undoAction: Action;
|
|
2623
2642
|
redoAction: Action;
|
|
2624
2643
|
undoRedoManager: UndoRedoManager;
|
|
2644
|
+
updateSurvey(): void;
|
|
2625
2645
|
undo(): void;
|
|
2626
2646
|
redo(): void;
|
|
2627
2647
|
startTransaction(name?: string): void;
|
|
@@ -2890,6 +2910,7 @@ export declare class TabDesignerPlugin implements ICreatorPlugin {
|
|
|
2890
2910
|
previewAction: Action;
|
|
2891
2911
|
activate(): void;
|
|
2892
2912
|
deactivate(): boolean;
|
|
2913
|
+
onDesignerSurveyPropertyChanged(obj: Base, propName: string): void;
|
|
2893
2914
|
update(): void;
|
|
2894
2915
|
createActions(): any;
|
|
2895
2916
|
selectSurvey(): void;
|
|
@@ -3250,6 +3271,20 @@ export declare class PropertyGridValueEditorBase extends PropertyGridEditor {
|
|
|
3250
3271
|
protected isValueEmpty(val: any): boolean;
|
|
3251
3272
|
isSupportGrouping(): boolean;
|
|
3252
3273
|
}
|
|
3274
|
+
export declare class QuestionDropdownAdornerViewModel extends QuestionAdornerViewModel {
|
|
3275
|
+
constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
|
|
3276
|
+
isCollapsed: boolean;
|
|
3277
|
+
visibleCount: number;
|
|
3278
|
+
get question(): QuestionDropdownModel;
|
|
3279
|
+
get needToCollapse(): boolean;
|
|
3280
|
+
get isCollapseView(): boolean;
|
|
3281
|
+
leftFocus(): void;
|
|
3282
|
+
getChoiceCss(): string;
|
|
3283
|
+
getRenderedItems(): any;
|
|
3284
|
+
getButtonText(): string;
|
|
3285
|
+
switchCollapse: any;
|
|
3286
|
+
dispose(): void;
|
|
3287
|
+
}
|
|
3253
3288
|
export declare class QuestionImageAdornerViewModel extends QuestionAdornerViewModel {
|
|
3254
3289
|
constructor(creator: CreatorBase, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData, questionRoot: any);
|
|
3255
3290
|
questionRoot: any;
|