survey-creator-core 1.9.3-beta.1 → 1.9.7-beta.1
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 +635 -356
- package/survey-creator-core.d.ts +195 -64
- package/survey-creator-core.js +2179 -598
- package/survey-creator-core.min.css +41 -39
- package/survey-creator-core.min.js +4 -4
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*Type definitions for SurveyJS Creator JavaScript library v1.9.
|
|
2
|
-
(c) 2015-
|
|
1
|
+
/*Type definitions for SurveyJS Creator JavaScript library v1.9.7-beta.1
|
|
2
|
+
(c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
3
3
|
Github: https://github.com/surveyjs/survey-creator
|
|
4
4
|
License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
@@ -31,6 +31,7 @@ import { SurveyModel, Base, Question } from "survey-core";
|
|
|
31
31
|
import { Base } from "survey-core";
|
|
32
32
|
import { Base, LocalizableString, JsonObjectProperty } from "survey-core";
|
|
33
33
|
import { SurveyModel, QuestionNonValue } from "survey-core";
|
|
34
|
+
import { Question } from "survey-core";
|
|
34
35
|
import { Base, JsonObjectProperty, PanelModel, PanelModelBase, Question, SurveyModel, MatrixDynamicRowModel } from "survey-core";
|
|
35
36
|
import { Base, JsonObjectProperty, Question } from "survey-core";
|
|
36
37
|
import { Base, JsonObjectProperty, MatrixDynamicRowModel, Question, QuestionMatrixDynamicModel } from "survey-core";
|
|
@@ -44,8 +45,9 @@ import { ArrayChanges, Base } from "survey-core";
|
|
|
44
45
|
import { Base, SurveyModel, EventBase, PageModel } from "survey-core";
|
|
45
46
|
import { Action, Base, Event, SurveyModel } from "survey-core";
|
|
46
47
|
import { SurveyModel, Base } from "survey-core";
|
|
47
|
-
import { SurveyModel,
|
|
48
|
-
import { SurveyModel, QuestionPanelDynamicModel, PanelModel } from "survey-core";
|
|
48
|
+
import { SurveyModel, Base, Question, SurveyElement } from "survey-core";
|
|
49
|
+
import { SurveyModel, QuestionPanelDynamicModel, ItemValue, PanelModel, Base, Question, QuestionCommentModel } from "survey-core";
|
|
50
|
+
import { SurveyModel, QuestionPanelDynamicModel, PanelModel, Question } from "survey-core";
|
|
49
51
|
import { Base, AdaptiveActionContainer, Action, SurveyModel, SurveyElement } from "survey-core";
|
|
50
52
|
|
|
51
53
|
|
|
@@ -60,6 +62,7 @@ import "../components/side-bar/side-bar.scss";
|
|
|
60
62
|
import "../property-grid-theme/property-grid.scss";
|
|
61
63
|
import "../utils/design.scss";
|
|
62
64
|
import "../utils/layout.scss";
|
|
65
|
+
import "../localization/arabic";
|
|
63
66
|
import "../localization/danish";
|
|
64
67
|
import "../localization/french";
|
|
65
68
|
import "../localization/german";
|
|
@@ -209,6 +212,7 @@ export declare var enStrings: {
|
|
|
209
212
|
chooseElement: string;
|
|
210
213
|
htmlPlaceHolder: string;
|
|
211
214
|
panelPlaceHolder: string;
|
|
215
|
+
surveyPlaceHolder: string;
|
|
212
216
|
addNewQuestion: string;
|
|
213
217
|
addNewTypeQuestion: string;
|
|
214
218
|
chooseLogoPlaceholder: string;
|
|
@@ -221,6 +225,9 @@ export declare var enStrings: {
|
|
|
221
225
|
question_visibilityName: string;
|
|
222
226
|
question_enableName: string;
|
|
223
227
|
question_requireName: string;
|
|
228
|
+
column_visibilityName: string;
|
|
229
|
+
column_enableName: string;
|
|
230
|
+
column_requireName: string;
|
|
224
231
|
trigger_completeName: string;
|
|
225
232
|
trigger_setvalueName: string;
|
|
226
233
|
trigger_copyvalueName: string;
|
|
@@ -247,6 +254,9 @@ export declare var enStrings: {
|
|
|
247
254
|
question_visibilityText: string;
|
|
248
255
|
question_enableText: string;
|
|
249
256
|
question_requireText: string;
|
|
257
|
+
column_visibilityText: string;
|
|
258
|
+
column_enableText: string;
|
|
259
|
+
column_requireText: string;
|
|
250
260
|
trigger_completeText: string;
|
|
251
261
|
trigger_setvalueText: string;
|
|
252
262
|
trigger_copyvalueText: string;
|
|
@@ -325,6 +335,8 @@ export declare var enStrings: {
|
|
|
325
335
|
propertyIsNoUnique: string;
|
|
326
336
|
propertyNameIsNotUnique: string;
|
|
327
337
|
listIsEmpty: string;
|
|
338
|
+
choicesListIsEmpty: string;
|
|
339
|
+
"addNew@choices": string;
|
|
328
340
|
expressionIsEmpty: string;
|
|
329
341
|
value: string;
|
|
330
342
|
text: string;
|
|
@@ -525,6 +537,7 @@ export declare var enStrings: {
|
|
|
525
537
|
triggerGotoName: string;
|
|
526
538
|
triggerIsVariable: string;
|
|
527
539
|
triggerRunExpressionEmpty: string;
|
|
540
|
+
emptyExpressionPlaceHolder: string;
|
|
528
541
|
noFile: string;
|
|
529
542
|
};
|
|
530
543
|
pv: {
|
|
@@ -1034,6 +1047,7 @@ export declare var defaultStrings: {
|
|
|
1034
1047
|
chooseElement: string;
|
|
1035
1048
|
htmlPlaceHolder: string;
|
|
1036
1049
|
panelPlaceHolder: string;
|
|
1050
|
+
surveyPlaceHolder: string;
|
|
1037
1051
|
addNewQuestion: string;
|
|
1038
1052
|
addNewTypeQuestion: string;
|
|
1039
1053
|
chooseLogoPlaceholder: string;
|
|
@@ -1046,6 +1060,9 @@ export declare var defaultStrings: {
|
|
|
1046
1060
|
question_visibilityName: string;
|
|
1047
1061
|
question_enableName: string;
|
|
1048
1062
|
question_requireName: string;
|
|
1063
|
+
column_visibilityName: string;
|
|
1064
|
+
column_enableName: string;
|
|
1065
|
+
column_requireName: string;
|
|
1049
1066
|
trigger_completeName: string;
|
|
1050
1067
|
trigger_setvalueName: string;
|
|
1051
1068
|
trigger_copyvalueName: string;
|
|
@@ -1072,6 +1089,9 @@ export declare var defaultStrings: {
|
|
|
1072
1089
|
question_visibilityText: string;
|
|
1073
1090
|
question_enableText: string;
|
|
1074
1091
|
question_requireText: string;
|
|
1092
|
+
column_visibilityText: string;
|
|
1093
|
+
column_enableText: string;
|
|
1094
|
+
column_requireText: string;
|
|
1075
1095
|
trigger_completeText: string;
|
|
1076
1096
|
trigger_setvalueText: string;
|
|
1077
1097
|
trigger_copyvalueText: string;
|
|
@@ -1150,6 +1170,8 @@ export declare var defaultStrings: {
|
|
|
1150
1170
|
propertyIsNoUnique: string;
|
|
1151
1171
|
propertyNameIsNotUnique: string;
|
|
1152
1172
|
listIsEmpty: string;
|
|
1173
|
+
choicesListIsEmpty: string;
|
|
1174
|
+
"addNew@choices": string;
|
|
1153
1175
|
expressionIsEmpty: string;
|
|
1154
1176
|
value: string;
|
|
1155
1177
|
text: string;
|
|
@@ -1350,6 +1372,7 @@ export declare var defaultStrings: {
|
|
|
1350
1372
|
triggerGotoName: string;
|
|
1351
1373
|
triggerIsVariable: string;
|
|
1352
1374
|
triggerRunExpressionEmpty: string;
|
|
1375
|
+
emptyExpressionPlaceHolder: string;
|
|
1353
1376
|
noFile: string;
|
|
1354
1377
|
};
|
|
1355
1378
|
pv: {
|
|
@@ -1737,11 +1760,7 @@ export declare var settings: {
|
|
|
1737
1760
|
greaterorequal: string[];
|
|
1738
1761
|
lessorequal: string[];
|
|
1739
1762
|
};
|
|
1740
|
-
defaultNewSurveyJSON: {
|
|
1741
|
-
pages: {
|
|
1742
|
-
name: string;
|
|
1743
|
-
}[];
|
|
1744
|
-
};
|
|
1763
|
+
defaultNewSurveyJSON: {};
|
|
1745
1764
|
logic: {
|
|
1746
1765
|
visibleActions: any[];
|
|
1747
1766
|
logicItemTitleMaxChars: number;
|
|
@@ -1938,8 +1957,12 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1938
1957
|
*/
|
|
1939
1958
|
pageHoverDelay: number;
|
|
1940
1959
|
/**
|
|
1941
|
-
*
|
|
1960
|
+
* You need to set this property to true if you want to inplace edit item values instead of texts.
|
|
1942
1961
|
*/
|
|
1962
|
+
inplaceEditForValues: boolean;
|
|
1963
|
+
/**
|
|
1964
|
+
* Set it to false to hide survey title and coresponding properties
|
|
1965
|
+
*/
|
|
1943
1966
|
get allowEditSurveyTitle(): boolean;
|
|
1944
1967
|
set allowEditSurveyTitle(val: boolean);
|
|
1945
1968
|
/**
|
|
@@ -1949,7 +1972,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1949
1972
|
* @see haveCommercialLicense
|
|
1950
1973
|
*/
|
|
1951
1974
|
haveCommercialLicense: boolean;
|
|
1952
|
-
get licenseText():
|
|
1975
|
+
get licenseText(): string;
|
|
1953
1976
|
/**
|
|
1954
1977
|
* A boolean property, false by default. Set it to true to call protected doSave method automatically on survey changing.
|
|
1955
1978
|
*/
|
|
@@ -2331,11 +2354,14 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2331
2354
|
*/
|
|
2332
2355
|
onUploadFile: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2333
2356
|
/**
|
|
2334
|
-
* Use this event to modify the list of the strings available in
|
|
2335
|
-
*
|
|
2336
|
-
*
|
|
2337
|
-
*
|
|
2338
|
-
*
|
|
2357
|
+
* Use this event to modify the list of the strings available in the Translation tab.
|
|
2358
|
+
*
|
|
2359
|
+
* The event handler accepts the following arguments:
|
|
2360
|
+
*
|
|
2361
|
+
* - `sender` - A Survey Creator instance that raised the event.
|
|
2362
|
+
* - `options.obj` - A survey object instance (survey, page, panel, question) whose string translations are being edited in the Translation tab.
|
|
2363
|
+
* - `options.propertyName` - The name of a property being translated.
|
|
2364
|
+
* - `options.visible` - A Boolean value that specifies the property visibility. Set it to `false` to hide the property.
|
|
2339
2365
|
*/
|
|
2340
2366
|
onTranslationStringVisibility: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2341
2367
|
/**
|
|
@@ -2472,15 +2498,14 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2472
2498
|
* @param viewName name of new active view (tab). The following values are available: "designer", "editor", "test", "embed", "logic" and "translation".
|
|
2473
2499
|
*/
|
|
2474
2500
|
makeNewViewActive(viewName: string): boolean;
|
|
2475
|
-
static defaultNewSurveyText: string;
|
|
2476
2501
|
toolbox: QuestionToolbox;
|
|
2477
2502
|
get toolboxCategories(): Array<any>;
|
|
2478
2503
|
sideBar: SideBarModel;
|
|
2479
2504
|
constructor(options: ICreatorOptions, options2?: ICreatorOptions);
|
|
2480
2505
|
updateToolboxIsCompact(newVal?: boolean): void;
|
|
2481
2506
|
onSurveyElementPropertyValueChanged(property: Survey.JsonObjectProperty, obj: any, newValue: any): void;
|
|
2482
|
-
get showToolbox():
|
|
2483
|
-
set showToolbox(val:
|
|
2507
|
+
get showToolbox(): "left" | "right" | "top" | "none" | boolean;
|
|
2508
|
+
set showToolbox(val: "left" | "right" | "top" | "none" | boolean);
|
|
2484
2509
|
onShowPropertyGridVisiblityChanged: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2485
2510
|
/**
|
|
2486
2511
|
* Set this this property grid false to hide the property grid.
|
|
@@ -2811,8 +2836,8 @@ import "./json-editor-ace.scss";
|
|
|
2811
2836
|
export declare class AceJsonEditorModel extends JsonEditorBaseModel {
|
|
2812
2837
|
static aceBasePath: string;
|
|
2813
2838
|
constructor(creator: CreatorBase<SurveyModel>);
|
|
2814
|
-
|
|
2815
|
-
|
|
2839
|
+
protected getText(): string;
|
|
2840
|
+
protected setText(value: string): void;
|
|
2816
2841
|
init(aceEditor: AceAjax.Editor): void;
|
|
2817
2842
|
protected onTextChanged(): void;
|
|
2818
2843
|
protected setErrors(errors: any[]): void;
|
|
@@ -2829,7 +2854,10 @@ export declare abstract class JsonEditorBaseModel extends Base {
|
|
|
2829
2854
|
isJSONChanged: boolean;
|
|
2830
2855
|
isProcessingImmediately: boolean;
|
|
2831
2856
|
constructor(creator: CreatorBase<SurveyModel>);
|
|
2832
|
-
|
|
2857
|
+
get text(): string;
|
|
2858
|
+
set text(val: string);
|
|
2859
|
+
protected abstract getText(): string;
|
|
2860
|
+
protected abstract setText(val: string): void;
|
|
2833
2861
|
protected onEditorActivated(): void;
|
|
2834
2862
|
onPluginActivate(): void;
|
|
2835
2863
|
protected onTextChanged(): void;
|
|
@@ -2852,8 +2880,8 @@ export declare class TextareaJsonEditorModel extends JsonEditorBaseModel {
|
|
|
2852
2880
|
canShowErrors: boolean;
|
|
2853
2881
|
constructor(creator: CreatorBase<SurveyModel>);
|
|
2854
2882
|
checkKey(data: any, e: any): boolean;
|
|
2855
|
-
|
|
2856
|
-
|
|
2883
|
+
protected getText(): string;
|
|
2884
|
+
protected setText(value: string): void;
|
|
2857
2885
|
get errorButtonText(): string;
|
|
2858
2886
|
toggleErrors(): void;
|
|
2859
2887
|
get userFriendlyErrors(): any[];
|
|
@@ -2870,6 +2898,7 @@ import "./test.scss";
|
|
|
2870
2898
|
export declare class TestSurveyTabViewModel extends Base {
|
|
2871
2899
|
pages: ActionContainer;
|
|
2872
2900
|
prevPageAction: Action;
|
|
2901
|
+
testAgainAction: Action;
|
|
2873
2902
|
nextPageAction: Action;
|
|
2874
2903
|
onSurveyCreatedCallback: (survey: SurveyModel) => any;
|
|
2875
2904
|
simulator: SurveySimulatorModel;
|
|
@@ -2913,6 +2942,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2913
2942
|
baseClass: string;
|
|
2914
2943
|
propertyName: string;
|
|
2915
2944
|
showIf: (survey: SurveyModel) => boolean;
|
|
2945
|
+
getSelectorChoices(survey: SurveyModel, context: Question): import("survey-core").SurveyElement[];
|
|
2916
2946
|
showInUI?: undefined;
|
|
2917
2947
|
isUniqueItem?: undefined;
|
|
2918
2948
|
isInvisible?: undefined;
|
|
@@ -2920,7 +2950,21 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2920
2950
|
dependedOnPropertyName?: undefined;
|
|
2921
2951
|
questionNames?: undefined;
|
|
2922
2952
|
getDisplayText?: undefined;
|
|
2923
|
-
|
|
2953
|
+
getElementName?: undefined;
|
|
2954
|
+
getCollection?: undefined;
|
|
2955
|
+
} | {
|
|
2956
|
+
name: string;
|
|
2957
|
+
baseClass: string;
|
|
2958
|
+
propertyName: string;
|
|
2959
|
+
showIf?: undefined;
|
|
2960
|
+
showInUI?: undefined;
|
|
2961
|
+
isUniqueItem?: undefined;
|
|
2962
|
+
isInvisible?: undefined;
|
|
2963
|
+
dynamicPropertyName?: undefined;
|
|
2964
|
+
dependedOnPropertyName?: undefined;
|
|
2965
|
+
questionNames?: undefined;
|
|
2966
|
+
getDisplayText?: undefined;
|
|
2967
|
+
getElementName?: undefined;
|
|
2924
2968
|
getCollection?: undefined;
|
|
2925
2969
|
} | {
|
|
2926
2970
|
name: string;
|
|
@@ -2934,7 +2978,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2934
2978
|
dependedOnPropertyName?: undefined;
|
|
2935
2979
|
questionNames?: undefined;
|
|
2936
2980
|
getDisplayText?: undefined;
|
|
2937
|
-
|
|
2981
|
+
getElementName?: undefined;
|
|
2938
2982
|
getCollection?: undefined;
|
|
2939
2983
|
} | {
|
|
2940
2984
|
name: string;
|
|
@@ -2948,7 +2992,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2948
2992
|
dependedOnPropertyName?: undefined;
|
|
2949
2993
|
questionNames?: undefined;
|
|
2950
2994
|
getDisplayText?: undefined;
|
|
2951
|
-
|
|
2995
|
+
getElementName?: undefined;
|
|
2952
2996
|
getCollection?: undefined;
|
|
2953
2997
|
} | {
|
|
2954
2998
|
name: string;
|
|
@@ -2962,7 +3006,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2962
3006
|
showInUI?: undefined;
|
|
2963
3007
|
isUniqueItem?: undefined;
|
|
2964
3008
|
isInvisible?: undefined;
|
|
2965
|
-
|
|
3009
|
+
getElementName?: undefined;
|
|
2966
3010
|
getCollection?: undefined;
|
|
2967
3011
|
} | {
|
|
2968
3012
|
name: string;
|
|
@@ -2976,7 +3020,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2976
3020
|
isInvisible?: undefined;
|
|
2977
3021
|
dynamicPropertyName?: undefined;
|
|
2978
3022
|
dependedOnPropertyName?: undefined;
|
|
2979
|
-
|
|
3023
|
+
getElementName?: undefined;
|
|
2980
3024
|
getCollection?: undefined;
|
|
2981
3025
|
} | {
|
|
2982
3026
|
name: string;
|
|
@@ -2984,7 +3028,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2984
3028
|
propertyName: string;
|
|
2985
3029
|
questionNames: string[];
|
|
2986
3030
|
isUniqueItem: boolean;
|
|
2987
|
-
|
|
3031
|
+
getElementName: (element: Base) => string;
|
|
2988
3032
|
showIf?: undefined;
|
|
2989
3033
|
showInUI?: undefined;
|
|
2990
3034
|
isInvisible?: undefined;
|
|
@@ -3005,7 +3049,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
3005
3049
|
dependedOnPropertyName?: undefined;
|
|
3006
3050
|
questionNames?: undefined;
|
|
3007
3051
|
getDisplayText?: undefined;
|
|
3008
|
-
|
|
3052
|
+
getElementName?: undefined;
|
|
3009
3053
|
})[];
|
|
3010
3054
|
invisibleItems: Array<SurveyLogicItem>;
|
|
3011
3055
|
onChangedCallback: (item: SurveyLogicItem, changeType: string) => void;
|
|
@@ -3529,15 +3573,18 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
|
3529
3573
|
}
|
|
3530
3574
|
|
|
3531
3575
|
import "./designer.scss";
|
|
3576
|
+
export declare const initialSettingsAllowShowEmptyTitleInDesignMode: boolean;
|
|
3532
3577
|
export declare class TabDesignerViewModel<T extends SurveyModel> extends Base {
|
|
3533
3578
|
newPage: PageModel;
|
|
3534
3579
|
showNewPage: boolean;
|
|
3535
3580
|
pageCount: number;
|
|
3536
3581
|
withModifier: string;
|
|
3582
|
+
showPlaceholder: boolean;
|
|
3537
3583
|
creator: CreatorBase<T>;
|
|
3538
3584
|
constructor(creator: CreatorBase<T>);
|
|
3539
3585
|
get survey(): T;
|
|
3540
3586
|
get isToolboxVisible(): boolean;
|
|
3587
|
+
get placeholderText(): string;
|
|
3541
3588
|
initSurvey(): void;
|
|
3542
3589
|
dispose(): void;
|
|
3543
3590
|
clickDesigner(): void;
|
|
@@ -3961,6 +4008,7 @@ export declare class PageViewModel<T extends SurveyModel> extends ActionContaine
|
|
|
3961
4008
|
select(model: PageViewModel<T>, event: IPortableMouseEvent): void;
|
|
3962
4009
|
get css(): string;
|
|
3963
4010
|
hover(event: MouseEvent, element: HTMLElement): void;
|
|
4011
|
+
hoverStopper(event: MouseEvent, element: HTMLElement): void;
|
|
3964
4012
|
protected duplicate(): void;
|
|
3965
4013
|
get allowEdit(): boolean;
|
|
3966
4014
|
get addNewQuestionText(): string;
|
|
@@ -3985,7 +4033,7 @@ export declare class QuestionAdornerViewModel extends ActionContainerViewModel<S
|
|
|
3985
4033
|
rootCss(): "" | " svc-question__adorner--start-with-new-line";
|
|
3986
4034
|
css(): string;
|
|
3987
4035
|
get isDragMe(): boolean;
|
|
3988
|
-
|
|
4036
|
+
dragTypeOverMe: DragTypeOverMeEnum;
|
|
3989
4037
|
dispose(): void;
|
|
3990
4038
|
get isDraggable(): boolean;
|
|
3991
4039
|
hover(event: MouseEvent, element: HTMLElement): void;
|
|
@@ -3994,7 +4042,8 @@ export declare class QuestionAdornerViewModel extends ActionContainerViewModel<S
|
|
|
3994
4042
|
get placeholderText(): string;
|
|
3995
4043
|
get isRequired(): any;
|
|
3996
4044
|
set isRequired(newVal: any);
|
|
3997
|
-
|
|
4045
|
+
onPointerDown(pointerDownEvent: PointerEvent): void;
|
|
4046
|
+
startDragSurveyElement: (event: PointerEvent) => boolean;
|
|
3998
4047
|
get allowEdit(): boolean;
|
|
3999
4048
|
getConvertToTypesActions(): Array<IAction>;
|
|
4000
4049
|
protected buildActions(items: Array<Action>): void;
|
|
@@ -4025,6 +4074,8 @@ export declare class QuestionRatingAdornerViewModel extends QuestionAdornerViewM
|
|
|
4025
4074
|
removeItem(model: QuestionRatingAdornerViewModel): void;
|
|
4026
4075
|
get allowAdd(): boolean;
|
|
4027
4076
|
get allowRemove(): boolean;
|
|
4077
|
+
get addTooltip(): any;
|
|
4078
|
+
get removeTooltip(): any;
|
|
4028
4079
|
}
|
|
4029
4080
|
|
|
4030
4081
|
import "./item-value.scss";
|
|
@@ -4286,8 +4337,9 @@ export declare var simulatorDevices: {
|
|
|
4286
4337
|
import "./results.scss";
|
|
4287
4338
|
export declare class SurveyResultsItemModel extends Base {
|
|
4288
4339
|
collapsed: boolean;
|
|
4340
|
+
lvl: number;
|
|
4289
4341
|
items: Array<any>;
|
|
4290
|
-
constructor(_data: any);
|
|
4342
|
+
constructor(_data: any, _lvl: number);
|
|
4291
4343
|
get data(): Array<any>;
|
|
4292
4344
|
toggle: () => void;
|
|
4293
4345
|
get isNode(): boolean;
|
|
@@ -4296,6 +4348,8 @@ export declare class SurveyResultsItemModel extends Base {
|
|
|
4296
4348
|
get value(): any;
|
|
4297
4349
|
get displayValue(): string;
|
|
4298
4350
|
getString(data: any): string;
|
|
4351
|
+
get markerMargin(): string;
|
|
4352
|
+
get textMargin(): string;
|
|
4299
4353
|
}
|
|
4300
4354
|
export declare class SurveyResultsModel extends Base {
|
|
4301
4355
|
constructor(survey: Survey.SurveyModel);
|
|
@@ -4308,8 +4362,10 @@ export declare class SurveyResultsModel extends Base {
|
|
|
4308
4362
|
get resultsName(): any;
|
|
4309
4363
|
get resultsValue(): any;
|
|
4310
4364
|
get resultsDisplayValue(): any;
|
|
4311
|
-
|
|
4312
|
-
|
|
4365
|
+
get isTableSelected(): boolean;
|
|
4366
|
+
get isJsonSelected(): boolean;
|
|
4367
|
+
selectTableClick: () => void;
|
|
4368
|
+
selectJsonClick: () => void;
|
|
4313
4369
|
}
|
|
4314
4370
|
|
|
4315
4371
|
import "./logo-image.scss";
|
|
@@ -4336,6 +4392,7 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
4336
4392
|
onKeyDown(event: KeyboardEvent): boolean;
|
|
4337
4393
|
findProperty(): JsonObjectProperty;
|
|
4338
4394
|
get maxLength(): number;
|
|
4395
|
+
placeholderValue: string;
|
|
4339
4396
|
get placeholder(): string;
|
|
4340
4397
|
get contentEditable(): boolean;
|
|
4341
4398
|
className(text: any): string;
|
|
@@ -4347,6 +4404,26 @@ export declare class QuestionEmbeddedSurveyModel extends QuestionNonValue {
|
|
|
4347
4404
|
getType(): string;
|
|
4348
4405
|
}
|
|
4349
4406
|
|
|
4407
|
+
import "./link-value.scss";
|
|
4408
|
+
export declare class QuestionLinkValueModel extends Question {
|
|
4409
|
+
linkClickCallback: () => void;
|
|
4410
|
+
resetClickCallback: () => void;
|
|
4411
|
+
linkSetButtonCssClasses: string;
|
|
4412
|
+
linkClearButtonCssClasses: string;
|
|
4413
|
+
isSelected: boolean;
|
|
4414
|
+
linkValueText: string;
|
|
4415
|
+
showClear: boolean;
|
|
4416
|
+
allowClear: boolean;
|
|
4417
|
+
showValueInLink: boolean;
|
|
4418
|
+
showTooltip: boolean;
|
|
4419
|
+
constructor(name: string, json?: any);
|
|
4420
|
+
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
4421
|
+
get tooltip(): string;
|
|
4422
|
+
getType(): string;
|
|
4423
|
+
doLinkClick(): void;
|
|
4424
|
+
doClearClick(): void;
|
|
4425
|
+
}
|
|
4426
|
+
|
|
4350
4427
|
export declare class SurveyJSON5 {
|
|
4351
4428
|
static positionName: string;
|
|
4352
4429
|
constructor(parseType?: number);
|
|
@@ -4451,10 +4528,13 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
|
|
|
4451
4528
|
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
|
|
4452
4529
|
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
4453
4530
|
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
4531
|
+
isSupportGrouping(): boolean;
|
|
4532
|
+
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
4454
4533
|
}
|
|
4455
4534
|
export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
4456
4535
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
4457
4536
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4537
|
+
isSupportGrouping(): boolean;
|
|
4458
4538
|
}
|
|
4459
4539
|
export declare abstract class PropertyGridEditorStringBase extends PropertyGridEditor {
|
|
4460
4540
|
protected updateMaxLength(prop: JsonObjectProperty, json: any): any;
|
|
@@ -4551,6 +4631,8 @@ export declare abstract class PropertyGridEditorMatrix extends PropertyGridEdito
|
|
|
4551
4631
|
protected getAllowRowDragDrop(): boolean;
|
|
4552
4632
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4553
4633
|
protected getMatrixJSON(obj: Base, prop: JsonObjectProperty, propNames: Array<string>, options: ISurveyCreatorOptions): any;
|
|
4634
|
+
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
4635
|
+
protected getEmptyRowsText(props: any): any;
|
|
4554
4636
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
4555
4637
|
protected getColumnsJSON(obj: Base, prop: JsonObjectProperty, propNames: Array<string>, options: ISurveyCreatorOptions): any;
|
|
4556
4638
|
protected getEditItemAsStandAlone(): boolean;
|
|
@@ -4559,7 +4641,6 @@ export declare abstract class PropertyGridEditorMatrix extends PropertyGridEdito
|
|
|
4559
4641
|
export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEditorMatrix {
|
|
4560
4642
|
fit(prop: JsonObjectProperty): boolean;
|
|
4561
4643
|
isPropertyEditorSetupEnabled(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
|
|
4562
|
-
setupMatrixQuestion(obj: Base, matrix: QuestionMatrixDynamicModel, prop: JsonObjectProperty): void;
|
|
4563
4644
|
protected getAllowRowDragDrop(): boolean;
|
|
4564
4645
|
createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
|
|
4565
4646
|
canClearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
|
|
@@ -4567,6 +4648,8 @@ export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEdit
|
|
|
4567
4648
|
protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
|
|
4568
4649
|
protected getDefaulColumnNames(): Array<string>;
|
|
4569
4650
|
protected getKeyValue(): string;
|
|
4651
|
+
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
4652
|
+
protected getEmptyRowsText(prop: any): any;
|
|
4570
4653
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
4571
4654
|
}
|
|
4572
4655
|
export declare class PropertyGridEditorMatrixColumns extends PropertyGridEditorMatrix {
|
|
@@ -4678,26 +4761,12 @@ export declare class PropertyGridEditorQuestionRestfull extends PropertyGridEdit
|
|
|
4678
4761
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4679
4762
|
}
|
|
4680
4763
|
|
|
4681
|
-
export declare class QuestionLinkValueModel extends Question {
|
|
4682
|
-
linkClickCallback: () => void;
|
|
4683
|
-
resetClickCallback: () => void;
|
|
4684
|
-
isSelected: boolean;
|
|
4685
|
-
linkValueText: string;
|
|
4686
|
-
showClear: boolean;
|
|
4687
|
-
allowClear: boolean;
|
|
4688
|
-
showValueInLink: boolean;
|
|
4689
|
-
constructor(name: string, json?: any);
|
|
4690
|
-
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
4691
|
-
getType(): string;
|
|
4692
|
-
doLinkClick(): void;
|
|
4693
|
-
doClearClick(): void;
|
|
4694
|
-
}
|
|
4695
4764
|
export declare abstract class PropertyGridValueEditorBase extends PropertyGridEditor {
|
|
4696
4765
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4697
4766
|
onCreated: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
|
|
4698
4767
|
clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
4699
|
-
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
4700
4768
|
protected isValueEmpty(val: any): boolean;
|
|
4769
|
+
isSupportGrouping(): boolean;
|
|
4701
4770
|
}
|
|
4702
4771
|
export declare class PropertyGridCellsEditor extends PropertyGridValueEditorBase {
|
|
4703
4772
|
fit(prop: JsonObjectProperty): boolean;
|
|
@@ -4840,6 +4909,7 @@ export declare var propertyGridCss: {
|
|
|
4840
4909
|
itemHover: string;
|
|
4841
4910
|
itemInline: string;
|
|
4842
4911
|
label: string;
|
|
4912
|
+
itemSvgIconId: string;
|
|
4843
4913
|
labelChecked: string;
|
|
4844
4914
|
itemControl: string;
|
|
4845
4915
|
itemDecorator: string;
|
|
@@ -4873,6 +4943,7 @@ export declare var propertyGridCss: {
|
|
|
4873
4943
|
itemChecked: string;
|
|
4874
4944
|
itemIndeterminate: string;
|
|
4875
4945
|
itemDisabled: string;
|
|
4946
|
+
svgIconId: string;
|
|
4876
4947
|
label: string;
|
|
4877
4948
|
disabledLabel: string;
|
|
4878
4949
|
itemDecorator: string;
|
|
@@ -4953,6 +5024,8 @@ export declare var propertyGridCss: {
|
|
|
4953
5024
|
iconDrag: string;
|
|
4954
5025
|
dragDropGhostPositionTop: string;
|
|
4955
5026
|
dragDropGhostPositionBottom: string;
|
|
5027
|
+
emptyRowsSection: string;
|
|
5028
|
+
emptyRowsText: string;
|
|
4956
5029
|
};
|
|
4957
5030
|
rating: {
|
|
4958
5031
|
root: string;
|
|
@@ -5076,6 +5149,7 @@ export declare class QuestionToolboxCategory extends Base {
|
|
|
5076
5149
|
}
|
|
5077
5150
|
export declare class QuestionToolboxItem extends Action implements IQuestionToolboxItem {
|
|
5078
5151
|
constructor(item: IQuestionToolboxItem);
|
|
5152
|
+
iconName: string;
|
|
5079
5153
|
name: string;
|
|
5080
5154
|
json: any;
|
|
5081
5155
|
title: string;
|
|
@@ -5226,6 +5300,8 @@ export declare class SideBarModel extends Base {
|
|
|
5226
5300
|
tabs: Array<SideBarTabModel>;
|
|
5227
5301
|
headerText: string;
|
|
5228
5302
|
visible: boolean;
|
|
5303
|
+
collapsedManually: boolean;
|
|
5304
|
+
expandedManually: boolean;
|
|
5229
5305
|
hasVisibleTabs: boolean;
|
|
5230
5306
|
flyoutMode: boolean;
|
|
5231
5307
|
activeTab: string;
|
|
@@ -5281,6 +5357,7 @@ export declare function select(element: any): void;
|
|
|
5281
5357
|
export declare function copyObject(dst: any, src: any): void;
|
|
5282
5358
|
export declare function copyCssClasses(dest: any, source: any): void;
|
|
5283
5359
|
export declare function assignDefaultV2Classes(destination: any, questionType: string): void;
|
|
5360
|
+
export declare function wrapTextByCurlyBraces(text: string): string;
|
|
5284
5361
|
|
|
5285
5362
|
export interface ISurveyQuestionEditorDefinition {
|
|
5286
5363
|
title?: string;
|
|
@@ -5328,13 +5405,17 @@ export declare class SurveyHelper {
|
|
|
5328
5405
|
static disableSelectingObj(obj: Base): void;
|
|
5329
5406
|
static enableSelectingObj(obj: Base): void;
|
|
5330
5407
|
static canSelectObj(obj: Base): boolean;
|
|
5331
|
-
static warnNonSupported(name: string): void;
|
|
5408
|
+
static warnNonSupported(name: string, newPropertyName?: string): void;
|
|
5332
5409
|
static warnText(text: string): void;
|
|
5333
5410
|
static updateQuestionJson(questionJson: any): void;
|
|
5334
5411
|
static convertMatrixRowsToText(rows: any): string;
|
|
5335
5412
|
static convertItemValuesToText(items: ItemValue[]): string;
|
|
5336
5413
|
static convertTextToItemValues(text: string, properties: JsonObjectProperty[], className: string): ItemValue[];
|
|
5337
5414
|
static sortItems(items: Array<any>, propertyName?: string): void;
|
|
5415
|
+
static getQuestionContextIndexInfo(name: string, prefix?: string): {
|
|
5416
|
+
index: number;
|
|
5417
|
+
name: string;
|
|
5418
|
+
};
|
|
5338
5419
|
}
|
|
5339
5420
|
|
|
5340
5421
|
import "./notifier.scss";
|
|
@@ -5487,6 +5568,7 @@ export declare class SurveyLogicAction {
|
|
|
5487
5568
|
constructor(logicType: SurveyLogicType, element: Base, survey: SurveyModel);
|
|
5488
5569
|
get logicType(): SurveyLogicType;
|
|
5489
5570
|
get element(): Base;
|
|
5571
|
+
get parentElement(): Base;
|
|
5490
5572
|
get survey(): SurveyModel;
|
|
5491
5573
|
apply(expression: string, isRenaming?: boolean): void;
|
|
5492
5574
|
renameQuestion(oldName: string, newName: string): void;
|
|
@@ -5501,6 +5583,7 @@ export declare class SurveyLogicAction {
|
|
|
5501
5583
|
isSuitableByQuestionName(questionName: string): boolean;
|
|
5502
5584
|
isSuitableByLogicType(logicTypeName: string): boolean;
|
|
5503
5585
|
addQuestionNames(names: string[]): void;
|
|
5586
|
+
get elementName(): string;
|
|
5504
5587
|
}
|
|
5505
5588
|
export interface ISurveyLogicItemOwner {
|
|
5506
5589
|
survey: SurveyModel;
|
|
@@ -5520,8 +5603,7 @@ export declare class SurveyLogicItem {
|
|
|
5520
5603
|
get name(): string;
|
|
5521
5604
|
get survey(): SurveyModel;
|
|
5522
5605
|
getVisibleLogicTypes(): Array<SurveyLogicType>;
|
|
5523
|
-
|
|
5524
|
-
get actionsText(): string;
|
|
5606
|
+
getDisplayText(): any;
|
|
5525
5607
|
edit(): void;
|
|
5526
5608
|
remove(): void;
|
|
5527
5609
|
get isReadOnly(): boolean;
|
|
@@ -5535,9 +5617,10 @@ export declare class SurveyLogicItem {
|
|
|
5535
5617
|
removeQuestion(name: string): void;
|
|
5536
5618
|
getQuestionNames(): string[];
|
|
5537
5619
|
getActionTypes(): string[];
|
|
5538
|
-
|
|
5620
|
+
getContext(): Base;
|
|
5539
5621
|
get editText(): string;
|
|
5540
5622
|
get deleteText(): string;
|
|
5623
|
+
get ifText(): string;
|
|
5541
5624
|
isSuitable(filteredName: string, logicTypeName?: string): boolean;
|
|
5542
5625
|
}
|
|
5543
5626
|
|
|
@@ -5555,7 +5638,10 @@ export interface ISurveyLogicType {
|
|
|
5555
5638
|
isUniqueItem?: boolean;
|
|
5556
5639
|
questionNames?: Array<string>;
|
|
5557
5640
|
getDisplayText?: (element: Base, formatStr: string, lt: SurveyLogicType) => string;
|
|
5558
|
-
|
|
5641
|
+
getElementName?: (element: Base) => string;
|
|
5642
|
+
getSelectorChoices?: (survey: SurveyModel, context: Question) => Array<SurveyElement>;
|
|
5643
|
+
supportContext?: (question: Base) => boolean;
|
|
5644
|
+
getParentElement?(element: Base): Base;
|
|
5559
5645
|
}
|
|
5560
5646
|
export declare class SurveyLogicType {
|
|
5561
5647
|
survey: SurveyModel;
|
|
@@ -5579,16 +5665,39 @@ export declare class SurveyLogicType {
|
|
|
5579
5665
|
get questionNames(): Array<string>;
|
|
5580
5666
|
get displayName(): string;
|
|
5581
5667
|
get description(): string;
|
|
5668
|
+
getParentElement(element: Base): Base;
|
|
5669
|
+
get hasSelectorChoices(): boolean;
|
|
5670
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
5582
5671
|
getDisplayText(element: Base): string;
|
|
5583
5672
|
formatElName(name: string): string;
|
|
5584
5673
|
formatExpression(expression: string): string;
|
|
5674
|
+
supportContext(context: Base): boolean;
|
|
5585
5675
|
}
|
|
5586
5676
|
export declare class SurveyLogicTypes {
|
|
5677
|
+
static baseTypes: {
|
|
5678
|
+
panel: {
|
|
5679
|
+
showIf: (survey: SurveyModel) => boolean;
|
|
5680
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
5681
|
+
};
|
|
5682
|
+
question: {
|
|
5683
|
+
showIf: (survey: SurveyModel) => boolean;
|
|
5684
|
+
supportContext(context: Base): boolean;
|
|
5685
|
+
getParentElement(element: Base): Base;
|
|
5686
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
5687
|
+
};
|
|
5688
|
+
matrixdropdowncolumn: {
|
|
5689
|
+
showIf: (survey: SurveyModel) => boolean;
|
|
5690
|
+
supportContext(context: Base): boolean;
|
|
5691
|
+
getParentElement(element: Base): Base;
|
|
5692
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
5693
|
+
};
|
|
5694
|
+
};
|
|
5587
5695
|
static types: ({
|
|
5588
5696
|
name: string;
|
|
5589
5697
|
baseClass: string;
|
|
5590
5698
|
propertyName: string;
|
|
5591
5699
|
showIf: (survey: SurveyModel) => boolean;
|
|
5700
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
5592
5701
|
showInUI?: undefined;
|
|
5593
5702
|
isUniqueItem?: undefined;
|
|
5594
5703
|
isInvisible?: undefined;
|
|
@@ -5596,7 +5705,21 @@ export declare class SurveyLogicTypes {
|
|
|
5596
5705
|
dependedOnPropertyName?: undefined;
|
|
5597
5706
|
questionNames?: undefined;
|
|
5598
5707
|
getDisplayText?: undefined;
|
|
5599
|
-
|
|
5708
|
+
getElementName?: undefined;
|
|
5709
|
+
getCollection?: undefined;
|
|
5710
|
+
} | {
|
|
5711
|
+
name: string;
|
|
5712
|
+
baseClass: string;
|
|
5713
|
+
propertyName: string;
|
|
5714
|
+
showIf?: undefined;
|
|
5715
|
+
showInUI?: undefined;
|
|
5716
|
+
isUniqueItem?: undefined;
|
|
5717
|
+
isInvisible?: undefined;
|
|
5718
|
+
dynamicPropertyName?: undefined;
|
|
5719
|
+
dependedOnPropertyName?: undefined;
|
|
5720
|
+
questionNames?: undefined;
|
|
5721
|
+
getDisplayText?: undefined;
|
|
5722
|
+
getElementName?: undefined;
|
|
5600
5723
|
getCollection?: undefined;
|
|
5601
5724
|
} | {
|
|
5602
5725
|
name: string;
|
|
@@ -5610,7 +5733,7 @@ export declare class SurveyLogicTypes {
|
|
|
5610
5733
|
dependedOnPropertyName?: undefined;
|
|
5611
5734
|
questionNames?: undefined;
|
|
5612
5735
|
getDisplayText?: undefined;
|
|
5613
|
-
|
|
5736
|
+
getElementName?: undefined;
|
|
5614
5737
|
getCollection?: undefined;
|
|
5615
5738
|
} | {
|
|
5616
5739
|
name: string;
|
|
@@ -5624,7 +5747,7 @@ export declare class SurveyLogicTypes {
|
|
|
5624
5747
|
dependedOnPropertyName?: undefined;
|
|
5625
5748
|
questionNames?: undefined;
|
|
5626
5749
|
getDisplayText?: undefined;
|
|
5627
|
-
|
|
5750
|
+
getElementName?: undefined;
|
|
5628
5751
|
getCollection?: undefined;
|
|
5629
5752
|
} | {
|
|
5630
5753
|
name: string;
|
|
@@ -5638,7 +5761,7 @@ export declare class SurveyLogicTypes {
|
|
|
5638
5761
|
showInUI?: undefined;
|
|
5639
5762
|
isUniqueItem?: undefined;
|
|
5640
5763
|
isInvisible?: undefined;
|
|
5641
|
-
|
|
5764
|
+
getElementName?: undefined;
|
|
5642
5765
|
getCollection?: undefined;
|
|
5643
5766
|
} | {
|
|
5644
5767
|
name: string;
|
|
@@ -5652,7 +5775,7 @@ export declare class SurveyLogicTypes {
|
|
|
5652
5775
|
isInvisible?: undefined;
|
|
5653
5776
|
dynamicPropertyName?: undefined;
|
|
5654
5777
|
dependedOnPropertyName?: undefined;
|
|
5655
|
-
|
|
5778
|
+
getElementName?: undefined;
|
|
5656
5779
|
getCollection?: undefined;
|
|
5657
5780
|
} | {
|
|
5658
5781
|
name: string;
|
|
@@ -5660,7 +5783,7 @@ export declare class SurveyLogicTypes {
|
|
|
5660
5783
|
propertyName: string;
|
|
5661
5784
|
questionNames: string[];
|
|
5662
5785
|
isUniqueItem: boolean;
|
|
5663
|
-
|
|
5786
|
+
getElementName: (element: Base) => string;
|
|
5664
5787
|
showIf?: undefined;
|
|
5665
5788
|
showInUI?: undefined;
|
|
5666
5789
|
isInvisible?: undefined;
|
|
@@ -5681,7 +5804,7 @@ export declare class SurveyLogicTypes {
|
|
|
5681
5804
|
dependedOnPropertyName?: undefined;
|
|
5682
5805
|
questionNames?: undefined;
|
|
5683
5806
|
getDisplayText?: undefined;
|
|
5684
|
-
|
|
5807
|
+
getElementName?: undefined;
|
|
5685
5808
|
})[];
|
|
5686
5809
|
}
|
|
5687
5810
|
|
|
@@ -5708,6 +5831,7 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
|
|
|
5708
5831
|
static canParseExpression(text: string): boolean;
|
|
5709
5832
|
static canBuildExpression(text: string): boolean;
|
|
5710
5833
|
allConditionQuestions: Array<ItemValue>;
|
|
5834
|
+
onContextChanged: (context: Question) => void;
|
|
5711
5835
|
constructor(survey: SurveyModel, object?: Base, options?: ISurveyCreatorOptions, propertyName?: string);
|
|
5712
5836
|
get title(): string;
|
|
5713
5837
|
set title(val: string);
|
|
@@ -5718,6 +5842,8 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
|
|
|
5718
5842
|
get text(): string;
|
|
5719
5843
|
set text(val: string);
|
|
5720
5844
|
isModified(prevText: string): boolean;
|
|
5845
|
+
get context(): Question;
|
|
5846
|
+
set context(val: Question);
|
|
5721
5847
|
get survey(): SurveyModel;
|
|
5722
5848
|
get object(): Base;
|
|
5723
5849
|
get panel(): QuestionPanelDynamicModel;
|
|
@@ -5739,6 +5865,8 @@ export declare class LogicItemEditor extends PropertyEditorSetupValue {
|
|
|
5739
5865
|
get panels(): Array<PanelModel>;
|
|
5740
5866
|
getPanelByAction(action: SurveyLogicAction): PanelModel;
|
|
5741
5867
|
getActionByPanel(panel: PanelModel): SurveyLogicAction;
|
|
5868
|
+
get context(): Question;
|
|
5869
|
+
set context(val: Question);
|
|
5742
5870
|
protected getSurveyJSON(): any;
|
|
5743
5871
|
protected getSurveyCreationReason(): string;
|
|
5744
5872
|
resetModified(): void;
|
|
@@ -5862,10 +5990,13 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
|
|
|
5862
5990
|
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
|
|
5863
5991
|
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
5864
5992
|
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
5993
|
+
isSupportGrouping(): boolean;
|
|
5994
|
+
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
5865
5995
|
}
|
|
5866
5996
|
export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
5867
5997
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
5868
5998
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
5999
|
+
isSupportGrouping(): boolean;
|
|
5869
6000
|
}
|
|
5870
6001
|
export declare abstract class PropertyGridEditorStringBase extends PropertyGridEditor {
|
|
5871
6002
|
protected updateMaxLength(prop: JsonObjectProperty, json: any): any;
|