survey-creator-core 1.9.48 → 1.9.49
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 +2 -2
- package/survey-creator-core.css +8 -8
- package/survey-creator-core.d.ts +31 -19
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +165 -70
- package/survey-creator-core.min.css +3 -3
- 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.49
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
@@ -60,7 +60,7 @@ export interface ISurveyCreatorOptions {
|
|
|
60
60
|
startUndoRedoTransaction(): any;
|
|
61
61
|
stopUndoRedoTransaction(): any;
|
|
62
62
|
createSurvey(json: any, reason: string, surveyType?: any): any;
|
|
63
|
-
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any):
|
|
63
|
+
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any): string;
|
|
64
64
|
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
65
65
|
onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
|
|
66
66
|
}
|
|
@@ -458,8 +458,6 @@ export interface ICreatorPlugin {
|
|
|
458
458
|
export interface ICreatorAction extends IAction {
|
|
459
459
|
locTitleName?: string;
|
|
460
460
|
locTooltipName?: string;
|
|
461
|
-
onUpdateTitle?: any;
|
|
462
|
-
onUpdateTooltip?: any;
|
|
463
461
|
}
|
|
464
462
|
export interface ITabbedMenuItem extends ICreatorAction {
|
|
465
463
|
componentContent: string;
|
|
@@ -493,8 +491,6 @@ export declare class CreatorAction extends Action implements ICreatorAction {
|
|
|
493
491
|
constructor(item: ICreatorAction);
|
|
494
492
|
locTitleName: string;
|
|
495
493
|
locTooltipName: string;
|
|
496
|
-
onUpdateTitle: any;
|
|
497
|
-
onUpdateTooltip: any;
|
|
498
494
|
updateTitle(): void;
|
|
499
495
|
}
|
|
500
496
|
/*
|
|
@@ -667,6 +663,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
667
663
|
* - `"page-selector"` - Page selector on the design surface
|
|
668
664
|
* - `"condition-editor"` - Condition pop-up window or drop-down menus that allow users to select questions in the Logic tab
|
|
669
665
|
* - `"logic-tab:question-filter"` - Question filter in the Logic tab
|
|
666
|
+
* - `"logic-tab:question-selector"` - Question selector on editing actions in the Logic tab
|
|
670
667
|
* - `"preview-tab:page-list"` - Page list in the Preview tab
|
|
671
668
|
* - `"preview-tab:selected-page"` - Selected page name in the Preview tab
|
|
672
669
|
* - `"property-grid:property-editor"` - Property editors in the Property Grid
|
|
@@ -869,6 +866,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
869
866
|
* - options.propertyName the name of the edited property.
|
|
870
867
|
* - options.editor the instance of Property Editor.
|
|
871
868
|
* - options.list the list of the questions available for condition
|
|
869
|
+
* - options.sortOrder "asc" (default) | "none". Change it to "none", if you don't want to sort your condition list
|
|
872
870
|
*/
|
|
873
871
|
onConditionQuestionsGetList: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
874
872
|
/*
|
|
@@ -943,6 +941,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
943
941
|
* - sender the survey creator object that fires the event
|
|
944
942
|
* - options.question a new added survey question. Survey.Question object
|
|
945
943
|
* - options.page the survey Page object where question has been added.
|
|
944
|
+
* - options.reason how question has been added via UI: ADDED_FROM_TOOLBOX, ADDED_FROM_PAGEBUTTON, ELEMENT_COPIED.
|
|
946
945
|
*/
|
|
947
946
|
onQuestionAdded: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
948
947
|
/*
|
|
@@ -1251,6 +1250,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1251
1250
|
* The event is called when creator active tab is changed.
|
|
1252
1251
|
* - sender the survey creator object that fires the event
|
|
1253
1252
|
* - options.tabName the name of new active tab
|
|
1253
|
+
* - options.model the instance of the model of the new active tab
|
|
1254
1254
|
*/
|
|
1255
1255
|
onActiveTabChanged: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
1256
1256
|
/*
|
|
@@ -1340,6 +1340,11 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1340
1340
|
*/
|
|
1341
1341
|
get survey(): SurveyModel;
|
|
1342
1342
|
existingPages: any;
|
|
1343
|
+
isInitialSurveyEmptyValue: boolean;
|
|
1344
|
+
/*
|
|
1345
|
+
* Returns true if initial survey was empty. It was not set via JSON property and default new survey is empty as well.
|
|
1346
|
+
*/
|
|
1347
|
+
get isInitialSurveyEmpty(): boolean;
|
|
1343
1348
|
protected initSurveyWithJSON(json: any, clearState: boolean): void;
|
|
1344
1349
|
protected initDragDrop(): void;
|
|
1345
1350
|
onBeforeDrop: Event<() => any, any>;
|
|
@@ -1351,6 +1356,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1351
1356
|
protected createSurveyLogicForUpdate(): SurveyLogic;
|
|
1352
1357
|
isObjQuestion(obj: Base): boolean;
|
|
1353
1358
|
isObjPage(obj: Base): boolean;
|
|
1359
|
+
addNewElementReason: string;
|
|
1354
1360
|
protected setSurvey(survey: SurveyModel): void;
|
|
1355
1361
|
protected setTextValue(value: string): void;
|
|
1356
1362
|
/*
|
|
@@ -1453,7 +1459,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1453
1459
|
* Returns true if selected element is null or there is no errors.
|
|
1454
1460
|
*/
|
|
1455
1461
|
validateSelectedElement(): boolean;
|
|
1456
|
-
clickToolboxItem(newElement: any, panel?: IPanel): void;
|
|
1462
|
+
clickToolboxItem(newElement: any, panel?: IPanel, modifiedType?: string): void;
|
|
1457
1463
|
getJSONForNewElement(json: any): any;
|
|
1458
1464
|
/*
|
|
1459
1465
|
* Open file chooser dialog
|
|
@@ -1490,7 +1496,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1490
1496
|
onGetErrorTextOnValidationCallback(propertyName: string, obj: Base, value: any): string;
|
|
1491
1497
|
onValueChangingCallback(options: any): void;
|
|
1492
1498
|
onGetElementEditorTitleCallback(obj: Base, title: string): string;
|
|
1493
|
-
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any):
|
|
1499
|
+
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any): string;
|
|
1494
1500
|
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
1495
1501
|
onLogicGetTitleCallback(expression: string, expressionText: string, text: string, logicItem: any): string;
|
|
1496
1502
|
/*
|
|
@@ -2100,12 +2106,15 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
2100
2106
|
errorText: string;
|
|
2101
2107
|
focused: boolean;
|
|
2102
2108
|
editAsText: boolean;
|
|
2109
|
+
compostionInProgress: boolean;
|
|
2103
2110
|
setLocString(locString: LocalizableString): void;
|
|
2104
2111
|
checkConstraints(event: any): void;
|
|
2105
2112
|
blurEditor: any;
|
|
2106
2113
|
onClick(event: any): void;
|
|
2107
2114
|
onFocus(event: any): void;
|
|
2115
|
+
onCompositionStart(event: any): void;
|
|
2108
2116
|
onInput(event: any): void;
|
|
2117
|
+
onCompositionEnd(event: any): void;
|
|
2109
2118
|
onBlur(event: any): void;
|
|
2110
2119
|
done(event: any): void;
|
|
2111
2120
|
onKeyDown(event: any): boolean;
|
|
@@ -2746,7 +2755,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
2746
2755
|
startUndoRedoTransaction(): void;
|
|
2747
2756
|
stopUndoRedoTransaction(): void;
|
|
2748
2757
|
createSurvey(json: any, reason: string, surveyType?: any): SurveyModel;
|
|
2749
|
-
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any):
|
|
2758
|
+
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any): string;
|
|
2750
2759
|
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
2751
2760
|
onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
|
|
2752
2761
|
}
|
|
@@ -2989,7 +2998,7 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
|
2989
2998
|
get showAllPagesText(): string;
|
|
2990
2999
|
get exportToCSVText(): string;
|
|
2991
3000
|
get importFromCSVText(): string;
|
|
2992
|
-
createActions():
|
|
3001
|
+
createActions(): Array<Action>;
|
|
2993
3002
|
}
|
|
2994
3003
|
export declare class TabbedMenuItem extends CreatorAction implements ITabbedMenuItem {
|
|
2995
3004
|
constructor(item: ITabbedMenuItem);
|
|
@@ -3530,6 +3539,7 @@ export declare function capitalize(str: string): string;
|
|
|
3530
3539
|
export declare function getLocString(strName: string, locale?: string): string;
|
|
3531
3540
|
export declare function updateLogicExpression(expression: string, varName: string, oldValue: any, newValue: any): string;
|
|
3532
3541
|
export declare function getLogicString(name: string): string;
|
|
3542
|
+
export declare function initLogicOperator(question: QuestionDropdownModel): void;
|
|
3533
3543
|
export declare function parsePropertyDescription(text: string): string;
|
|
3534
3544
|
export declare function setSurveyJSONForPropertyGrid(json: any, updateOnTyping?: boolean, titleLocationLeft?: boolean): void;
|
|
3535
3545
|
export declare function findAction(actions: any, id: string): IAction;
|
|
@@ -3611,6 +3621,7 @@ export declare var settings: {
|
|
|
3611
3621
|
maximumRowsCount: number,
|
|
3612
3622
|
maximumRateValues: number,
|
|
3613
3623
|
generalTabName: string,
|
|
3624
|
+
defaultExpandedTabName: string,
|
|
3614
3625
|
},
|
|
3615
3626
|
toolbox: {
|
|
3616
3627
|
/*
|
|
@@ -3812,17 +3823,17 @@ export declare var propertyGridCss: {
|
|
|
3812
3823
|
},
|
|
3813
3824
|
boolean: {
|
|
3814
3825
|
mainRoot: string,
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3826
|
+
rootCheckbox: string,
|
|
3827
|
+
checkboxItem: string,
|
|
3828
|
+
checkboxItemChecked: string,
|
|
3829
|
+
checkboxitemIndeterminate: string,
|
|
3830
|
+
checkboxItemDisabled: string,
|
|
3820
3831
|
svgIconId: string,
|
|
3832
|
+
checkboxLabel: string,
|
|
3821
3833
|
controlCheckbox: string,
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
materialDecorator: string,
|
|
3834
|
+
checkboxControlLabel: string,
|
|
3835
|
+
checkboxItemDecorator: string,
|
|
3836
|
+
checkboxMaterialDecorator: string,
|
|
3826
3837
|
},
|
|
3827
3838
|
text: {
|
|
3828
3839
|
root: string,
|
|
@@ -3840,6 +3851,7 @@ export declare var propertyGridCss: {
|
|
|
3840
3851
|
root: string,
|
|
3841
3852
|
small: string,
|
|
3842
3853
|
control: string,
|
|
3854
|
+
filterStringInput: string,
|
|
3843
3855
|
selectWrapper: string,
|
|
3844
3856
|
other: string,
|
|
3845
3857
|
onError: string,
|