survey-creator-core 1.9.42 → 1.9.45
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 +5 -3
- package/survey-creator-core.d.ts +11 -15
- package/survey-creator-core.i18n.js +39 -47
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +183 -168
- package/survey-creator-core.min.css +2 -2
- 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.45
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
@@ -223,7 +223,7 @@ export interface ICreatorOptions {
|
|
|
223
223
|
/*
|
|
224
224
|
* Limits the number of visible choices. Users can click "Show more" to view hidden choices.
|
|
225
225
|
*
|
|
226
|
-
* Set this property to -1 if you do not want any choices
|
|
226
|
+
* Set this property to -1 if you do not want to hide any choices.
|
|
227
227
|
*
|
|
228
228
|
* Default value: 10
|
|
229
229
|
*/
|
|
@@ -665,6 +665,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
665
665
|
* - "survey-tester" - raised from page selector list in "Preview" tab
|
|
666
666
|
* - "survey-tester-selected" - raised on setting page selector title in "Preview" tab
|
|
667
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.
|
|
668
669
|
* - "property-grid" - raised from showing object selector for property grid in "Designer" tab.
|
|
669
670
|
* - "property-grid-title" - raised on rendering selected object title in property grid in "Designer" tab.
|
|
670
671
|
*/
|
|
@@ -1063,7 +1064,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1063
1064
|
/*
|
|
1064
1065
|
* Limits the number of visible choices. Users can click "Show more" to view hidden choices.
|
|
1065
1066
|
*
|
|
1066
|
-
* Set this property to -1 if you do not want any choices
|
|
1067
|
+
* Set this property to -1 if you do not want to hide any choices.
|
|
1067
1068
|
*
|
|
1068
1069
|
* Default value: 10
|
|
1069
1070
|
*/
|
|
@@ -2135,6 +2136,9 @@ export declare class SurveyElementAdornerBase<T extends SurveyElement = SurveyEl
|
|
|
2135
2136
|
protected updateActionVisibility(id: string, isVisible: boolean): void;
|
|
2136
2137
|
getActionById(id: string): Action;
|
|
2137
2138
|
protected buildActions(items: any): void;
|
|
2139
|
+
get allowEdit(): boolean;
|
|
2140
|
+
get showAddQuestionButton(): boolean;
|
|
2141
|
+
protected setShowAddQuestionButton(val: boolean): void;
|
|
2138
2142
|
protected duplicate(): void;
|
|
2139
2143
|
}
|
|
2140
2144
|
export declare class SurveyForTextWorker extends SurveyModel {
|
|
@@ -2511,7 +2515,6 @@ export declare class TestSurveyTabViewModel extends Base {
|
|
|
2511
2515
|
testAgainAction: Action;
|
|
2512
2516
|
nextPageAction: Action;
|
|
2513
2517
|
selectPageAction: Action;
|
|
2514
|
-
pagePopupModel: any;
|
|
2515
2518
|
onSurveyCreatedCallback: (survey: SurveyModel) => any;
|
|
2516
2519
|
simulator: SurveySimulatorModel;
|
|
2517
2520
|
showInvisibleElements: any;
|
|
@@ -2550,6 +2553,7 @@ export declare class ToolboxToolViewModel extends Base {
|
|
|
2550
2553
|
export declare class Transaction {
|
|
2551
2554
|
constructor(_name: string);
|
|
2552
2555
|
_actions: any;
|
|
2556
|
+
undoCallback: any;
|
|
2553
2557
|
apply(): void;
|
|
2554
2558
|
rollback(): void;
|
|
2555
2559
|
addAction(action: any): void;
|
|
@@ -2572,7 +2576,7 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
2572
2576
|
surveyValue: SurveyModel;
|
|
2573
2577
|
settingsSurveyValue: SurveyModel;
|
|
2574
2578
|
onBaseObjCreatingCallback: (obj: Base) => void;
|
|
2575
|
-
|
|
2579
|
+
addLanguageAction: Action;
|
|
2576
2580
|
chooseLanguageActions: any;
|
|
2577
2581
|
getType(): string;
|
|
2578
2582
|
locales: any;
|
|
@@ -2683,6 +2687,7 @@ export declare class UndoRedoManager {
|
|
|
2683
2687
|
transactionCounter: number;
|
|
2684
2688
|
startTransaction(name: string): void;
|
|
2685
2689
|
stopTransaction(): void;
|
|
2690
|
+
setUndoCallbackForTransaction(callback: any): void;
|
|
2686
2691
|
get isProcessingUndoRedo(): boolean;
|
|
2687
2692
|
canUndo(): boolean;
|
|
2688
2693
|
undo(): void;
|
|
@@ -2794,8 +2799,6 @@ export declare class PageAdorner extends SurveyElementAdornerBase<PageModel> {
|
|
|
2794
2799
|
hover(event: any, element: any): void;
|
|
2795
2800
|
hoverStopper(event: any, element: any): void;
|
|
2796
2801
|
protected duplicate(): void;
|
|
2797
|
-
get allowEdit(): boolean;
|
|
2798
|
-
get showAddQuestionButton(): boolean;
|
|
2799
2802
|
get addNewQuestionText(): string;
|
|
2800
2803
|
}
|
|
2801
2804
|
export declare class PropertyEditorSetupValue implements IPropertyEditorSetup {
|
|
@@ -2842,8 +2845,6 @@ export declare class QuestionAdornerViewModel extends SurveyElementAdornerBase {
|
|
|
2842
2845
|
set isRequired(val: any);
|
|
2843
2846
|
onPointerDown(pointerDownEvent: any): void;
|
|
2844
2847
|
startDragSurveyElement: (event: any) => boolean;
|
|
2845
|
-
get allowEdit(): boolean;
|
|
2846
|
-
get showAddQuestionButton(): boolean;
|
|
2847
2848
|
getConvertToTypesActions(): Array<IAction>;
|
|
2848
2849
|
protected buildActions(items: any): void;
|
|
2849
2850
|
protected duplicate(): void;
|
|
@@ -2943,13 +2944,10 @@ export declare class TabLogicPlugin implements ICreatorPlugin {
|
|
|
2943
2944
|
export declare class TabTestPlugin implements ICreatorPlugin {
|
|
2944
2945
|
constructor(creator: CreatorBase);
|
|
2945
2946
|
languageSelectorAction: Action;
|
|
2946
|
-
languagePopupModel: any;
|
|
2947
|
-
languageListModel: ListModel;
|
|
2948
2947
|
changeThemePopupModel: any;
|
|
2949
2948
|
changeThemeModel: ListModel;
|
|
2950
2949
|
protected changeThemeAction: CreatorAction;
|
|
2951
2950
|
deviceSelectorAction: Action;
|
|
2952
|
-
deviceListModel: ListModel;
|
|
2953
2951
|
orientationSelectorAction: Action;
|
|
2954
2952
|
invisibleToggleAction: Action;
|
|
2955
2953
|
testAgainAction: Action;
|
|
@@ -2973,8 +2971,6 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
|
2973
2971
|
importCsvAction: Action;
|
|
2974
2972
|
exportCsvAction: Action;
|
|
2975
2973
|
inputFileElement: any;
|
|
2976
|
-
pagePopupModel: any;
|
|
2977
|
-
stringsPopupModel: any;
|
|
2978
2974
|
sidebarTab: SidebarTabModel;
|
|
2979
2975
|
model: Translation;
|
|
2980
2976
|
activate(): void;
|
|
@@ -3064,7 +3060,7 @@ export declare class UndoRedoAction implements IUndoRedoAction {
|
|
|
3064
3060
|
constructor(_propertyName: string, _oldValue: any, _newValue: any, _sender: Base);
|
|
3065
3061
|
apply(): void;
|
|
3066
3062
|
rollback(): void;
|
|
3067
|
-
getChanges(): IUndoRedoChange;
|
|
3063
|
+
getChanges(isUndo?: boolean): IUndoRedoChange;
|
|
3068
3064
|
tryMerge(sender: Base, propertyName: string, newValue: any): boolean;
|
|
3069
3065
|
}
|
|
3070
3066
|
export declare class UndoRedoArrayAction implements IUndoRedoAction {
|