survey-creator-core 1.9.2-beta.1 → 1.9.6-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 +588 -298
- package/survey-creator-core.d.ts +187 -56
- package/survey-creator-core.js +2186 -648
- 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.6-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";
|
|
@@ -221,6 +224,9 @@ export declare var enStrings: {
|
|
|
221
224
|
question_visibilityName: string;
|
|
222
225
|
question_enableName: string;
|
|
223
226
|
question_requireName: string;
|
|
227
|
+
column_visibilityName: string;
|
|
228
|
+
column_enableName: string;
|
|
229
|
+
column_requireName: string;
|
|
224
230
|
trigger_completeName: string;
|
|
225
231
|
trigger_setvalueName: string;
|
|
226
232
|
trigger_copyvalueName: string;
|
|
@@ -247,6 +253,9 @@ export declare var enStrings: {
|
|
|
247
253
|
question_visibilityText: string;
|
|
248
254
|
question_enableText: string;
|
|
249
255
|
question_requireText: string;
|
|
256
|
+
column_visibilityText: string;
|
|
257
|
+
column_enableText: string;
|
|
258
|
+
column_requireText: string;
|
|
250
259
|
trigger_completeText: string;
|
|
251
260
|
trigger_setvalueText: string;
|
|
252
261
|
trigger_copyvalueText: string;
|
|
@@ -325,6 +334,8 @@ export declare var enStrings: {
|
|
|
325
334
|
propertyIsNoUnique: string;
|
|
326
335
|
propertyNameIsNotUnique: string;
|
|
327
336
|
listIsEmpty: string;
|
|
337
|
+
choicesListIsEmpty: string;
|
|
338
|
+
"addNew@choices": string;
|
|
328
339
|
expressionIsEmpty: string;
|
|
329
340
|
value: string;
|
|
330
341
|
text: string;
|
|
@@ -525,6 +536,7 @@ export declare var enStrings: {
|
|
|
525
536
|
triggerGotoName: string;
|
|
526
537
|
triggerIsVariable: string;
|
|
527
538
|
triggerRunExpressionEmpty: string;
|
|
539
|
+
emptyExpressionPlaceHolder: string;
|
|
528
540
|
noFile: string;
|
|
529
541
|
};
|
|
530
542
|
pv: {
|
|
@@ -1046,6 +1058,9 @@ export declare var defaultStrings: {
|
|
|
1046
1058
|
question_visibilityName: string;
|
|
1047
1059
|
question_enableName: string;
|
|
1048
1060
|
question_requireName: string;
|
|
1061
|
+
column_visibilityName: string;
|
|
1062
|
+
column_enableName: string;
|
|
1063
|
+
column_requireName: string;
|
|
1049
1064
|
trigger_completeName: string;
|
|
1050
1065
|
trigger_setvalueName: string;
|
|
1051
1066
|
trigger_copyvalueName: string;
|
|
@@ -1072,6 +1087,9 @@ export declare var defaultStrings: {
|
|
|
1072
1087
|
question_visibilityText: string;
|
|
1073
1088
|
question_enableText: string;
|
|
1074
1089
|
question_requireText: string;
|
|
1090
|
+
column_visibilityText: string;
|
|
1091
|
+
column_enableText: string;
|
|
1092
|
+
column_requireText: string;
|
|
1075
1093
|
trigger_completeText: string;
|
|
1076
1094
|
trigger_setvalueText: string;
|
|
1077
1095
|
trigger_copyvalueText: string;
|
|
@@ -1150,6 +1168,8 @@ export declare var defaultStrings: {
|
|
|
1150
1168
|
propertyIsNoUnique: string;
|
|
1151
1169
|
propertyNameIsNotUnique: string;
|
|
1152
1170
|
listIsEmpty: string;
|
|
1171
|
+
choicesListIsEmpty: string;
|
|
1172
|
+
"addNew@choices": string;
|
|
1153
1173
|
expressionIsEmpty: string;
|
|
1154
1174
|
value: string;
|
|
1155
1175
|
text: string;
|
|
@@ -1350,6 +1370,7 @@ export declare var defaultStrings: {
|
|
|
1350
1370
|
triggerGotoName: string;
|
|
1351
1371
|
triggerIsVariable: string;
|
|
1352
1372
|
triggerRunExpressionEmpty: string;
|
|
1373
|
+
emptyExpressionPlaceHolder: string;
|
|
1353
1374
|
noFile: string;
|
|
1354
1375
|
};
|
|
1355
1376
|
pv: {
|
|
@@ -1938,8 +1959,12 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1938
1959
|
*/
|
|
1939
1960
|
pageHoverDelay: number;
|
|
1940
1961
|
/**
|
|
1941
|
-
*
|
|
1962
|
+
* You need to set this property to true if you want to inplace edit item values instead of texts.
|
|
1942
1963
|
*/
|
|
1964
|
+
inplaceEditForValues: boolean;
|
|
1965
|
+
/**
|
|
1966
|
+
* Set it to false to hide survey title and coresponding properties
|
|
1967
|
+
*/
|
|
1943
1968
|
get allowEditSurveyTitle(): boolean;
|
|
1944
1969
|
set allowEditSurveyTitle(val: boolean);
|
|
1945
1970
|
/**
|
|
@@ -1949,7 +1974,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1949
1974
|
* @see haveCommercialLicense
|
|
1950
1975
|
*/
|
|
1951
1976
|
haveCommercialLicense: boolean;
|
|
1952
|
-
get licenseText():
|
|
1977
|
+
get licenseText(): string;
|
|
1953
1978
|
/**
|
|
1954
1979
|
* A boolean property, false by default. Set it to true to call protected doSave method automatically on survey changing.
|
|
1955
1980
|
*/
|
|
@@ -2331,11 +2356,14 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2331
2356
|
*/
|
|
2332
2357
|
onUploadFile: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2333
2358
|
/**
|
|
2334
|
-
* Use this event to modify the list of the strings available in
|
|
2335
|
-
*
|
|
2336
|
-
*
|
|
2337
|
-
*
|
|
2338
|
-
*
|
|
2359
|
+
* Use this event to modify the list of the strings available in the Translation tab.
|
|
2360
|
+
*
|
|
2361
|
+
* The event handler accepts the following arguments:
|
|
2362
|
+
*
|
|
2363
|
+
* - `sender` - A Survey Creator instance that raised the event.
|
|
2364
|
+
* - `options.obj` - A survey object instance (survey, page, panel, question) whose string translations are being edited in the Translation tab.
|
|
2365
|
+
* - `options.propertyName` - The name of a property being translated.
|
|
2366
|
+
* - `options.visible` - A Boolean value that specifies the property visibility. Set it to `false` to hide the property.
|
|
2339
2367
|
*/
|
|
2340
2368
|
onTranslationStringVisibility: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2341
2369
|
/**
|
|
@@ -2479,8 +2507,8 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2479
2507
|
constructor(options: ICreatorOptions, options2?: ICreatorOptions);
|
|
2480
2508
|
updateToolboxIsCompact(newVal?: boolean): void;
|
|
2481
2509
|
onSurveyElementPropertyValueChanged(property: Survey.JsonObjectProperty, obj: any, newValue: any): void;
|
|
2482
|
-
get showToolbox():
|
|
2483
|
-
set showToolbox(val:
|
|
2510
|
+
get showToolbox(): "left" | "right" | "top" | "none" | boolean;
|
|
2511
|
+
set showToolbox(val: "left" | "right" | "top" | "none" | boolean);
|
|
2484
2512
|
onShowPropertyGridVisiblityChanged: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2485
2513
|
/**
|
|
2486
2514
|
* Set this this property grid false to hide the property grid.
|
|
@@ -2811,8 +2839,8 @@ import "./json-editor-ace.scss";
|
|
|
2811
2839
|
export declare class AceJsonEditorModel extends JsonEditorBaseModel {
|
|
2812
2840
|
static aceBasePath: string;
|
|
2813
2841
|
constructor(creator: CreatorBase<SurveyModel>);
|
|
2814
|
-
|
|
2815
|
-
|
|
2842
|
+
protected getText(): string;
|
|
2843
|
+
protected setText(value: string): void;
|
|
2816
2844
|
init(aceEditor: AceAjax.Editor): void;
|
|
2817
2845
|
protected onTextChanged(): void;
|
|
2818
2846
|
protected setErrors(errors: any[]): void;
|
|
@@ -2829,7 +2857,10 @@ export declare abstract class JsonEditorBaseModel extends Base {
|
|
|
2829
2857
|
isJSONChanged: boolean;
|
|
2830
2858
|
isProcessingImmediately: boolean;
|
|
2831
2859
|
constructor(creator: CreatorBase<SurveyModel>);
|
|
2832
|
-
|
|
2860
|
+
get text(): string;
|
|
2861
|
+
set text(val: string);
|
|
2862
|
+
protected abstract getText(): string;
|
|
2863
|
+
protected abstract setText(val: string): void;
|
|
2833
2864
|
protected onEditorActivated(): void;
|
|
2834
2865
|
onPluginActivate(): void;
|
|
2835
2866
|
protected onTextChanged(): void;
|
|
@@ -2852,8 +2883,8 @@ export declare class TextareaJsonEditorModel extends JsonEditorBaseModel {
|
|
|
2852
2883
|
canShowErrors: boolean;
|
|
2853
2884
|
constructor(creator: CreatorBase<SurveyModel>);
|
|
2854
2885
|
checkKey(data: any, e: any): boolean;
|
|
2855
|
-
|
|
2856
|
-
|
|
2886
|
+
protected getText(): string;
|
|
2887
|
+
protected setText(value: string): void;
|
|
2857
2888
|
get errorButtonText(): string;
|
|
2858
2889
|
toggleErrors(): void;
|
|
2859
2890
|
get userFriendlyErrors(): any[];
|
|
@@ -2870,6 +2901,7 @@ import "./test.scss";
|
|
|
2870
2901
|
export declare class TestSurveyTabViewModel extends Base {
|
|
2871
2902
|
pages: ActionContainer;
|
|
2872
2903
|
prevPageAction: Action;
|
|
2904
|
+
testAgainAction: Action;
|
|
2873
2905
|
nextPageAction: Action;
|
|
2874
2906
|
onSurveyCreatedCallback: (survey: SurveyModel) => any;
|
|
2875
2907
|
simulator: SurveySimulatorModel;
|
|
@@ -2913,6 +2945,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2913
2945
|
baseClass: string;
|
|
2914
2946
|
propertyName: string;
|
|
2915
2947
|
showIf: (survey: SurveyModel) => boolean;
|
|
2948
|
+
getSelectorChoices(survey: SurveyModel, context: Question): import("survey-core").SurveyElement[];
|
|
2916
2949
|
showInUI?: undefined;
|
|
2917
2950
|
isUniqueItem?: undefined;
|
|
2918
2951
|
isInvisible?: undefined;
|
|
@@ -2920,7 +2953,21 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2920
2953
|
dependedOnPropertyName?: undefined;
|
|
2921
2954
|
questionNames?: undefined;
|
|
2922
2955
|
getDisplayText?: undefined;
|
|
2923
|
-
|
|
2956
|
+
getElementName?: undefined;
|
|
2957
|
+
getCollection?: undefined;
|
|
2958
|
+
} | {
|
|
2959
|
+
name: string;
|
|
2960
|
+
baseClass: string;
|
|
2961
|
+
propertyName: string;
|
|
2962
|
+
showIf?: undefined;
|
|
2963
|
+
showInUI?: undefined;
|
|
2964
|
+
isUniqueItem?: undefined;
|
|
2965
|
+
isInvisible?: undefined;
|
|
2966
|
+
dynamicPropertyName?: undefined;
|
|
2967
|
+
dependedOnPropertyName?: undefined;
|
|
2968
|
+
questionNames?: undefined;
|
|
2969
|
+
getDisplayText?: undefined;
|
|
2970
|
+
getElementName?: undefined;
|
|
2924
2971
|
getCollection?: undefined;
|
|
2925
2972
|
} | {
|
|
2926
2973
|
name: string;
|
|
@@ -2934,7 +2981,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2934
2981
|
dependedOnPropertyName?: undefined;
|
|
2935
2982
|
questionNames?: undefined;
|
|
2936
2983
|
getDisplayText?: undefined;
|
|
2937
|
-
|
|
2984
|
+
getElementName?: undefined;
|
|
2938
2985
|
getCollection?: undefined;
|
|
2939
2986
|
} | {
|
|
2940
2987
|
name: string;
|
|
@@ -2948,7 +2995,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2948
2995
|
dependedOnPropertyName?: undefined;
|
|
2949
2996
|
questionNames?: undefined;
|
|
2950
2997
|
getDisplayText?: undefined;
|
|
2951
|
-
|
|
2998
|
+
getElementName?: undefined;
|
|
2952
2999
|
getCollection?: undefined;
|
|
2953
3000
|
} | {
|
|
2954
3001
|
name: string;
|
|
@@ -2962,7 +3009,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2962
3009
|
showInUI?: undefined;
|
|
2963
3010
|
isUniqueItem?: undefined;
|
|
2964
3011
|
isInvisible?: undefined;
|
|
2965
|
-
|
|
3012
|
+
getElementName?: undefined;
|
|
2966
3013
|
getCollection?: undefined;
|
|
2967
3014
|
} | {
|
|
2968
3015
|
name: string;
|
|
@@ -2976,7 +3023,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2976
3023
|
isInvisible?: undefined;
|
|
2977
3024
|
dynamicPropertyName?: undefined;
|
|
2978
3025
|
dependedOnPropertyName?: undefined;
|
|
2979
|
-
|
|
3026
|
+
getElementName?: undefined;
|
|
2980
3027
|
getCollection?: undefined;
|
|
2981
3028
|
} | {
|
|
2982
3029
|
name: string;
|
|
@@ -2984,7 +3031,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2984
3031
|
propertyName: string;
|
|
2985
3032
|
questionNames: string[];
|
|
2986
3033
|
isUniqueItem: boolean;
|
|
2987
|
-
|
|
3034
|
+
getElementName: (element: Base) => string;
|
|
2988
3035
|
showIf?: undefined;
|
|
2989
3036
|
showInUI?: undefined;
|
|
2990
3037
|
isInvisible?: undefined;
|
|
@@ -3005,7 +3052,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
3005
3052
|
dependedOnPropertyName?: undefined;
|
|
3006
3053
|
questionNames?: undefined;
|
|
3007
3054
|
getDisplayText?: undefined;
|
|
3008
|
-
|
|
3055
|
+
getElementName?: undefined;
|
|
3009
3056
|
})[];
|
|
3010
3057
|
invisibleItems: Array<SurveyLogicItem>;
|
|
3011
3058
|
onChangedCallback: (item: SurveyLogicItem, changeType: string) => void;
|
|
@@ -3136,7 +3183,8 @@ export declare class TranslationGroup extends TranslationItemBase {
|
|
|
3136
3183
|
name: any;
|
|
3137
3184
|
obj: any;
|
|
3138
3185
|
text: string;
|
|
3139
|
-
|
|
3186
|
+
hasIndent: boolean;
|
|
3187
|
+
constructor(name: any, obj: any, translation?: ITranslationLocales, text?: string, hasIndent?: boolean);
|
|
3140
3188
|
getType(): string;
|
|
3141
3189
|
showHeader: boolean;
|
|
3142
3190
|
get items(): Array<TranslationItemBase>;
|
|
@@ -3984,7 +4032,7 @@ export declare class QuestionAdornerViewModel extends ActionContainerViewModel<S
|
|
|
3984
4032
|
rootCss(): "" | " svc-question__adorner--start-with-new-line";
|
|
3985
4033
|
css(): string;
|
|
3986
4034
|
get isDragMe(): boolean;
|
|
3987
|
-
|
|
4035
|
+
dragTypeOverMe: DragTypeOverMeEnum;
|
|
3988
4036
|
dispose(): void;
|
|
3989
4037
|
get isDraggable(): boolean;
|
|
3990
4038
|
hover(event: MouseEvent, element: HTMLElement): void;
|
|
@@ -3993,7 +4041,8 @@ export declare class QuestionAdornerViewModel extends ActionContainerViewModel<S
|
|
|
3993
4041
|
get placeholderText(): string;
|
|
3994
4042
|
get isRequired(): any;
|
|
3995
4043
|
set isRequired(newVal: any);
|
|
3996
|
-
|
|
4044
|
+
onPointerDown(pointerDownEvent: PointerEvent): void;
|
|
4045
|
+
startDragSurveyElement: (event: PointerEvent) => boolean;
|
|
3997
4046
|
get allowEdit(): boolean;
|
|
3998
4047
|
getConvertToTypesActions(): Array<IAction>;
|
|
3999
4048
|
protected buildActions(items: Array<Action>): void;
|
|
@@ -4024,6 +4073,8 @@ export declare class QuestionRatingAdornerViewModel extends QuestionAdornerViewM
|
|
|
4024
4073
|
removeItem(model: QuestionRatingAdornerViewModel): void;
|
|
4025
4074
|
get allowAdd(): boolean;
|
|
4026
4075
|
get allowRemove(): boolean;
|
|
4076
|
+
get addTooltip(): any;
|
|
4077
|
+
get removeTooltip(): any;
|
|
4027
4078
|
}
|
|
4028
4079
|
|
|
4029
4080
|
import "./item-value.scss";
|
|
@@ -4335,6 +4386,7 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
4335
4386
|
onKeyDown(event: KeyboardEvent): boolean;
|
|
4336
4387
|
findProperty(): JsonObjectProperty;
|
|
4337
4388
|
get maxLength(): number;
|
|
4389
|
+
placeholderValue: string;
|
|
4338
4390
|
get placeholder(): string;
|
|
4339
4391
|
get contentEditable(): boolean;
|
|
4340
4392
|
className(text: any): string;
|
|
@@ -4346,6 +4398,26 @@ export declare class QuestionEmbeddedSurveyModel extends QuestionNonValue {
|
|
|
4346
4398
|
getType(): string;
|
|
4347
4399
|
}
|
|
4348
4400
|
|
|
4401
|
+
import "./link-value.scss";
|
|
4402
|
+
export declare class QuestionLinkValueModel extends Question {
|
|
4403
|
+
linkClickCallback: () => void;
|
|
4404
|
+
resetClickCallback: () => void;
|
|
4405
|
+
linkSetButtonCssClasses: string;
|
|
4406
|
+
linkClearButtonCssClasses: string;
|
|
4407
|
+
isSelected: boolean;
|
|
4408
|
+
linkValueText: string;
|
|
4409
|
+
showClear: boolean;
|
|
4410
|
+
allowClear: boolean;
|
|
4411
|
+
showValueInLink: boolean;
|
|
4412
|
+
showTooltip: boolean;
|
|
4413
|
+
constructor(name: string, json?: any);
|
|
4414
|
+
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
4415
|
+
get tooltip(): string;
|
|
4416
|
+
getType(): string;
|
|
4417
|
+
doLinkClick(): void;
|
|
4418
|
+
doClearClick(): void;
|
|
4419
|
+
}
|
|
4420
|
+
|
|
4349
4421
|
export declare class SurveyJSON5 {
|
|
4350
4422
|
static positionName: string;
|
|
4351
4423
|
constructor(parseType?: number);
|
|
@@ -4387,6 +4459,7 @@ export interface IPropertyGridEditor {
|
|
|
4387
4459
|
onMatrixCellValueChanged?: (obj: Base, options: any) => void;
|
|
4388
4460
|
onMatrixAllowRemoveRow?: (obj: Base, row: any) => boolean;
|
|
4389
4461
|
onGetQuestionTitleActions?: (obj: Base, options: any) => void;
|
|
4462
|
+
onUpdateQuestionCssClasses?: (obj: Base, options: any) => void;
|
|
4390
4463
|
}
|
|
4391
4464
|
export declare var PropertyGridEditorCollection: {
|
|
4392
4465
|
editors: IPropertyGridEditor[];
|
|
@@ -4402,6 +4475,7 @@ export declare var PropertyGridEditorCollection: {
|
|
|
4402
4475
|
onMatrixCellValueChanged(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
4403
4476
|
onMatrixAllowRemoveRow(obj: Base, prop: JsonObjectProperty, row: MatrixDynamicRowModel): boolean;
|
|
4404
4477
|
onGetMatrixRowAction(obj: Base, prop: JsonObjectProperty, options: any, setObjFunc: (obj: Base) => void): void;
|
|
4478
|
+
onUpdateQuestionCssClasses(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
4405
4479
|
onGetQuestionTitleActions(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
4406
4480
|
onValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
|
|
4407
4481
|
onMasterValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
|
|
@@ -4448,10 +4522,13 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
|
|
|
4448
4522
|
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
|
|
4449
4523
|
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
4450
4524
|
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
4525
|
+
isSupportGrouping(): boolean;
|
|
4526
|
+
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
4451
4527
|
}
|
|
4452
4528
|
export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
4453
4529
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
4454
4530
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4531
|
+
isSupportGrouping(): boolean;
|
|
4455
4532
|
}
|
|
4456
4533
|
export declare abstract class PropertyGridEditorStringBase extends PropertyGridEditor {
|
|
4457
4534
|
protected updateMaxLength(prop: JsonObjectProperty, json: any): any;
|
|
@@ -4548,6 +4625,8 @@ export declare abstract class PropertyGridEditorMatrix extends PropertyGridEdito
|
|
|
4548
4625
|
protected getAllowRowDragDrop(): boolean;
|
|
4549
4626
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4550
4627
|
protected getMatrixJSON(obj: Base, prop: JsonObjectProperty, propNames: Array<string>, options: ISurveyCreatorOptions): any;
|
|
4628
|
+
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
4629
|
+
protected getEmptyRowsText(props: any): any;
|
|
4551
4630
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
4552
4631
|
protected getColumnsJSON(obj: Base, prop: JsonObjectProperty, propNames: Array<string>, options: ISurveyCreatorOptions): any;
|
|
4553
4632
|
protected getEditItemAsStandAlone(): boolean;
|
|
@@ -4556,7 +4635,6 @@ export declare abstract class PropertyGridEditorMatrix extends PropertyGridEdito
|
|
|
4556
4635
|
export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEditorMatrix {
|
|
4557
4636
|
fit(prop: JsonObjectProperty): boolean;
|
|
4558
4637
|
isPropertyEditorSetupEnabled(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
|
|
4559
|
-
setupMatrixQuestion(obj: Base, matrix: QuestionMatrixDynamicModel, prop: JsonObjectProperty): void;
|
|
4560
4638
|
protected getAllowRowDragDrop(): boolean;
|
|
4561
4639
|
createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
|
|
4562
4640
|
canClearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
|
|
@@ -4564,6 +4642,8 @@ export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEdit
|
|
|
4564
4642
|
protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
|
|
4565
4643
|
protected getDefaulColumnNames(): Array<string>;
|
|
4566
4644
|
protected getKeyValue(): string;
|
|
4645
|
+
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
4646
|
+
protected getEmptyRowsText(prop: any): any;
|
|
4567
4647
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
4568
4648
|
}
|
|
4569
4649
|
export declare class PropertyGridEditorMatrixColumns extends PropertyGridEditorMatrix {
|
|
@@ -4675,25 +4755,12 @@ export declare class PropertyGridEditorQuestionRestfull extends PropertyGridEdit
|
|
|
4675
4755
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4676
4756
|
}
|
|
4677
4757
|
|
|
4678
|
-
export declare class QuestionLinkValueModel extends Question {
|
|
4679
|
-
linkClickCallback: () => void;
|
|
4680
|
-
resetClickCallback: () => void;
|
|
4681
|
-
isSelected: boolean;
|
|
4682
|
-
linkValueText: string;
|
|
4683
|
-
showClear: boolean;
|
|
4684
|
-
allowClear: boolean;
|
|
4685
|
-
showValueInLink: boolean;
|
|
4686
|
-
constructor(name: string, json?: any);
|
|
4687
|
-
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
4688
|
-
getType(): string;
|
|
4689
|
-
doLinkClick(): void;
|
|
4690
|
-
doClearClick(): void;
|
|
4691
|
-
}
|
|
4692
4758
|
export declare abstract class PropertyGridValueEditorBase extends PropertyGridEditor {
|
|
4693
4759
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4694
4760
|
onCreated: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
|
|
4695
4761
|
clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
4696
4762
|
protected isValueEmpty(val: any): boolean;
|
|
4763
|
+
isSupportGrouping(): boolean;
|
|
4697
4764
|
}
|
|
4698
4765
|
export declare class PropertyGridCellsEditor extends PropertyGridValueEditorBase {
|
|
4699
4766
|
fit(prop: JsonObjectProperty): boolean;
|
|
@@ -4787,6 +4854,7 @@ export declare var propertyGridCss: {
|
|
|
4787
4854
|
pageTitle: string;
|
|
4788
4855
|
pageDescription: string;
|
|
4789
4856
|
row: string;
|
|
4857
|
+
rowMultiple: string;
|
|
4790
4858
|
question: {
|
|
4791
4859
|
mainRoot: string;
|
|
4792
4860
|
flowRoot: string;
|
|
@@ -4835,6 +4903,7 @@ export declare var propertyGridCss: {
|
|
|
4835
4903
|
itemHover: string;
|
|
4836
4904
|
itemInline: string;
|
|
4837
4905
|
label: string;
|
|
4906
|
+
itemSvgIconId: string;
|
|
4838
4907
|
labelChecked: string;
|
|
4839
4908
|
itemControl: string;
|
|
4840
4909
|
itemDecorator: string;
|
|
@@ -4868,6 +4937,7 @@ export declare var propertyGridCss: {
|
|
|
4868
4937
|
itemChecked: string;
|
|
4869
4938
|
itemIndeterminate: string;
|
|
4870
4939
|
itemDisabled: string;
|
|
4940
|
+
svgIconId: string;
|
|
4871
4941
|
label: string;
|
|
4872
4942
|
disabledLabel: string;
|
|
4873
4943
|
itemDecorator: string;
|
|
@@ -4948,6 +5018,8 @@ export declare var propertyGridCss: {
|
|
|
4948
5018
|
iconDrag: string;
|
|
4949
5019
|
dragDropGhostPositionTop: string;
|
|
4950
5020
|
dragDropGhostPositionBottom: string;
|
|
5021
|
+
emptyRowsSection: string;
|
|
5022
|
+
emptyRowsText: string;
|
|
4951
5023
|
};
|
|
4952
5024
|
rating: {
|
|
4953
5025
|
root: string;
|
|
@@ -5071,6 +5143,7 @@ export declare class QuestionToolboxCategory extends Base {
|
|
|
5071
5143
|
}
|
|
5072
5144
|
export declare class QuestionToolboxItem extends Action implements IQuestionToolboxItem {
|
|
5073
5145
|
constructor(item: IQuestionToolboxItem);
|
|
5146
|
+
iconName: string;
|
|
5074
5147
|
name: string;
|
|
5075
5148
|
json: any;
|
|
5076
5149
|
title: string;
|
|
@@ -5229,7 +5302,8 @@ export declare class SideBarModel extends Base {
|
|
|
5229
5302
|
getTabById(id: string): SideBarTabModel;
|
|
5230
5303
|
constructor(creator: CreatorBase, collapseAction?: () => void, expandAction?: () => void);
|
|
5231
5304
|
getExpandAction(): Action;
|
|
5232
|
-
|
|
5305
|
+
collapseSideBar(): void;
|
|
5306
|
+
expandSideBar(): void;
|
|
5233
5307
|
addTab(id: string, componentName?: string, model?: any, buildActions?: () => Array<Action>): SideBarTabModel;
|
|
5234
5308
|
updateHasVisibleTabs(): void;
|
|
5235
5309
|
dispose(): void;
|
|
@@ -5275,6 +5349,7 @@ export declare function select(element: any): void;
|
|
|
5275
5349
|
export declare function copyObject(dst: any, src: any): void;
|
|
5276
5350
|
export declare function copyCssClasses(dest: any, source: any): void;
|
|
5277
5351
|
export declare function assignDefaultV2Classes(destination: any, questionType: string): void;
|
|
5352
|
+
export declare function wrapTextByCurlyBraces(text: string): string;
|
|
5278
5353
|
|
|
5279
5354
|
export interface ISurveyQuestionEditorDefinition {
|
|
5280
5355
|
title?: string;
|
|
@@ -5322,13 +5397,17 @@ export declare class SurveyHelper {
|
|
|
5322
5397
|
static disableSelectingObj(obj: Base): void;
|
|
5323
5398
|
static enableSelectingObj(obj: Base): void;
|
|
5324
5399
|
static canSelectObj(obj: Base): boolean;
|
|
5325
|
-
static warnNonSupported(name: string): void;
|
|
5400
|
+
static warnNonSupported(name: string, newPropertyName?: string): void;
|
|
5326
5401
|
static warnText(text: string): void;
|
|
5327
5402
|
static updateQuestionJson(questionJson: any): void;
|
|
5328
5403
|
static convertMatrixRowsToText(rows: any): string;
|
|
5329
5404
|
static convertItemValuesToText(items: ItemValue[]): string;
|
|
5330
5405
|
static convertTextToItemValues(text: string, properties: JsonObjectProperty[], className: string): ItemValue[];
|
|
5331
5406
|
static sortItems(items: Array<any>, propertyName?: string): void;
|
|
5407
|
+
static getQuestionContextIndexInfo(name: string, prefix?: string): {
|
|
5408
|
+
index: number;
|
|
5409
|
+
name: string;
|
|
5410
|
+
};
|
|
5332
5411
|
}
|
|
5333
5412
|
|
|
5334
5413
|
import "./notifier.scss";
|
|
@@ -5481,6 +5560,7 @@ export declare class SurveyLogicAction {
|
|
|
5481
5560
|
constructor(logicType: SurveyLogicType, element: Base, survey: SurveyModel);
|
|
5482
5561
|
get logicType(): SurveyLogicType;
|
|
5483
5562
|
get element(): Base;
|
|
5563
|
+
get parentElement(): Base;
|
|
5484
5564
|
get survey(): SurveyModel;
|
|
5485
5565
|
apply(expression: string, isRenaming?: boolean): void;
|
|
5486
5566
|
renameQuestion(oldName: string, newName: string): void;
|
|
@@ -5495,6 +5575,7 @@ export declare class SurveyLogicAction {
|
|
|
5495
5575
|
isSuitableByQuestionName(questionName: string): boolean;
|
|
5496
5576
|
isSuitableByLogicType(logicTypeName: string): boolean;
|
|
5497
5577
|
addQuestionNames(names: string[]): void;
|
|
5578
|
+
get elementName(): string;
|
|
5498
5579
|
}
|
|
5499
5580
|
export interface ISurveyLogicItemOwner {
|
|
5500
5581
|
survey: SurveyModel;
|
|
@@ -5514,8 +5595,7 @@ export declare class SurveyLogicItem {
|
|
|
5514
5595
|
get name(): string;
|
|
5515
5596
|
get survey(): SurveyModel;
|
|
5516
5597
|
getVisibleLogicTypes(): Array<SurveyLogicType>;
|
|
5517
|
-
|
|
5518
|
-
get actionsText(): string;
|
|
5598
|
+
getDisplayText(): any;
|
|
5519
5599
|
edit(): void;
|
|
5520
5600
|
remove(): void;
|
|
5521
5601
|
get isReadOnly(): boolean;
|
|
@@ -5529,9 +5609,10 @@ export declare class SurveyLogicItem {
|
|
|
5529
5609
|
removeQuestion(name: string): void;
|
|
5530
5610
|
getQuestionNames(): string[];
|
|
5531
5611
|
getActionTypes(): string[];
|
|
5532
|
-
|
|
5612
|
+
getContext(): Base;
|
|
5533
5613
|
get editText(): string;
|
|
5534
5614
|
get deleteText(): string;
|
|
5615
|
+
get ifText(): string;
|
|
5535
5616
|
isSuitable(filteredName: string, logicTypeName?: string): boolean;
|
|
5536
5617
|
}
|
|
5537
5618
|
|
|
@@ -5549,7 +5630,10 @@ export interface ISurveyLogicType {
|
|
|
5549
5630
|
isUniqueItem?: boolean;
|
|
5550
5631
|
questionNames?: Array<string>;
|
|
5551
5632
|
getDisplayText?: (element: Base, formatStr: string, lt: SurveyLogicType) => string;
|
|
5552
|
-
|
|
5633
|
+
getElementName?: (element: Base) => string;
|
|
5634
|
+
getSelectorChoices?: (survey: SurveyModel, context: Question) => Array<SurveyElement>;
|
|
5635
|
+
supportContext?: (question: Base) => boolean;
|
|
5636
|
+
getParentElement?(element: Base): Base;
|
|
5553
5637
|
}
|
|
5554
5638
|
export declare class SurveyLogicType {
|
|
5555
5639
|
survey: SurveyModel;
|
|
@@ -5573,16 +5657,53 @@ export declare class SurveyLogicType {
|
|
|
5573
5657
|
get questionNames(): Array<string>;
|
|
5574
5658
|
get displayName(): string;
|
|
5575
5659
|
get description(): string;
|
|
5660
|
+
getParentElement(element: Base): Base;
|
|
5661
|
+
get hasSelectorChoices(): boolean;
|
|
5662
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
5576
5663
|
getDisplayText(element: Base): string;
|
|
5577
5664
|
formatElName(name: string): string;
|
|
5578
5665
|
formatExpression(expression: string): string;
|
|
5666
|
+
supportContext(context: Base): boolean;
|
|
5579
5667
|
}
|
|
5580
5668
|
export declare class SurveyLogicTypes {
|
|
5669
|
+
static baseTypes: {
|
|
5670
|
+
panel: {
|
|
5671
|
+
showIf: (survey: SurveyModel) => boolean;
|
|
5672
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
5673
|
+
};
|
|
5674
|
+
question: {
|
|
5675
|
+
showIf: (survey: SurveyModel) => boolean;
|
|
5676
|
+
supportContext(context: Base): boolean;
|
|
5677
|
+
getParentElement(element: Base): Base;
|
|
5678
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
5679
|
+
};
|
|
5680
|
+
matrixdropdowncolumn: {
|
|
5681
|
+
showIf: (survey: SurveyModel) => boolean;
|
|
5682
|
+
supportContext(context: Base): boolean;
|
|
5683
|
+
getParentElement(element: Base): Base;
|
|
5684
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
5685
|
+
};
|
|
5686
|
+
};
|
|
5581
5687
|
static types: ({
|
|
5582
5688
|
name: string;
|
|
5583
5689
|
baseClass: string;
|
|
5584
5690
|
propertyName: string;
|
|
5585
5691
|
showIf: (survey: SurveyModel) => boolean;
|
|
5692
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
5693
|
+
showInUI?: undefined;
|
|
5694
|
+
isUniqueItem?: undefined;
|
|
5695
|
+
isInvisible?: undefined;
|
|
5696
|
+
dynamicPropertyName?: undefined;
|
|
5697
|
+
dependedOnPropertyName?: undefined;
|
|
5698
|
+
questionNames?: undefined;
|
|
5699
|
+
getDisplayText?: undefined;
|
|
5700
|
+
getElementName?: undefined;
|
|
5701
|
+
getCollection?: undefined;
|
|
5702
|
+
} | {
|
|
5703
|
+
name: string;
|
|
5704
|
+
baseClass: string;
|
|
5705
|
+
propertyName: string;
|
|
5706
|
+
showIf?: undefined;
|
|
5586
5707
|
showInUI?: undefined;
|
|
5587
5708
|
isUniqueItem?: undefined;
|
|
5588
5709
|
isInvisible?: undefined;
|
|
@@ -5590,7 +5711,7 @@ export declare class SurveyLogicTypes {
|
|
|
5590
5711
|
dependedOnPropertyName?: undefined;
|
|
5591
5712
|
questionNames?: undefined;
|
|
5592
5713
|
getDisplayText?: undefined;
|
|
5593
|
-
|
|
5714
|
+
getElementName?: undefined;
|
|
5594
5715
|
getCollection?: undefined;
|
|
5595
5716
|
} | {
|
|
5596
5717
|
name: string;
|
|
@@ -5604,7 +5725,7 @@ export declare class SurveyLogicTypes {
|
|
|
5604
5725
|
dependedOnPropertyName?: undefined;
|
|
5605
5726
|
questionNames?: undefined;
|
|
5606
5727
|
getDisplayText?: undefined;
|
|
5607
|
-
|
|
5728
|
+
getElementName?: undefined;
|
|
5608
5729
|
getCollection?: undefined;
|
|
5609
5730
|
} | {
|
|
5610
5731
|
name: string;
|
|
@@ -5618,7 +5739,7 @@ export declare class SurveyLogicTypes {
|
|
|
5618
5739
|
dependedOnPropertyName?: undefined;
|
|
5619
5740
|
questionNames?: undefined;
|
|
5620
5741
|
getDisplayText?: undefined;
|
|
5621
|
-
|
|
5742
|
+
getElementName?: undefined;
|
|
5622
5743
|
getCollection?: undefined;
|
|
5623
5744
|
} | {
|
|
5624
5745
|
name: string;
|
|
@@ -5632,7 +5753,7 @@ export declare class SurveyLogicTypes {
|
|
|
5632
5753
|
showInUI?: undefined;
|
|
5633
5754
|
isUniqueItem?: undefined;
|
|
5634
5755
|
isInvisible?: undefined;
|
|
5635
|
-
|
|
5756
|
+
getElementName?: undefined;
|
|
5636
5757
|
getCollection?: undefined;
|
|
5637
5758
|
} | {
|
|
5638
5759
|
name: string;
|
|
@@ -5646,7 +5767,7 @@ export declare class SurveyLogicTypes {
|
|
|
5646
5767
|
isInvisible?: undefined;
|
|
5647
5768
|
dynamicPropertyName?: undefined;
|
|
5648
5769
|
dependedOnPropertyName?: undefined;
|
|
5649
|
-
|
|
5770
|
+
getElementName?: undefined;
|
|
5650
5771
|
getCollection?: undefined;
|
|
5651
5772
|
} | {
|
|
5652
5773
|
name: string;
|
|
@@ -5654,7 +5775,7 @@ export declare class SurveyLogicTypes {
|
|
|
5654
5775
|
propertyName: string;
|
|
5655
5776
|
questionNames: string[];
|
|
5656
5777
|
isUniqueItem: boolean;
|
|
5657
|
-
|
|
5778
|
+
getElementName: (element: Base) => string;
|
|
5658
5779
|
showIf?: undefined;
|
|
5659
5780
|
showInUI?: undefined;
|
|
5660
5781
|
isInvisible?: undefined;
|
|
@@ -5675,7 +5796,7 @@ export declare class SurveyLogicTypes {
|
|
|
5675
5796
|
dependedOnPropertyName?: undefined;
|
|
5676
5797
|
questionNames?: undefined;
|
|
5677
5798
|
getDisplayText?: undefined;
|
|
5678
|
-
|
|
5799
|
+
getElementName?: undefined;
|
|
5679
5800
|
})[];
|
|
5680
5801
|
}
|
|
5681
5802
|
|
|
@@ -5702,6 +5823,7 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
|
|
|
5702
5823
|
static canParseExpression(text: string): boolean;
|
|
5703
5824
|
static canBuildExpression(text: string): boolean;
|
|
5704
5825
|
allConditionQuestions: Array<ItemValue>;
|
|
5826
|
+
onContextChanged: (context: Question) => void;
|
|
5705
5827
|
constructor(survey: SurveyModel, object?: Base, options?: ISurveyCreatorOptions, propertyName?: string);
|
|
5706
5828
|
get title(): string;
|
|
5707
5829
|
set title(val: string);
|
|
@@ -5712,6 +5834,8 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
|
|
|
5712
5834
|
get text(): string;
|
|
5713
5835
|
set text(val: string);
|
|
5714
5836
|
isModified(prevText: string): boolean;
|
|
5837
|
+
get context(): Question;
|
|
5838
|
+
set context(val: Question);
|
|
5715
5839
|
get survey(): SurveyModel;
|
|
5716
5840
|
get object(): Base;
|
|
5717
5841
|
get panel(): QuestionPanelDynamicModel;
|
|
@@ -5733,6 +5857,8 @@ export declare class LogicItemEditor extends PropertyEditorSetupValue {
|
|
|
5733
5857
|
get panels(): Array<PanelModel>;
|
|
5734
5858
|
getPanelByAction(action: SurveyLogicAction): PanelModel;
|
|
5735
5859
|
getActionByPanel(panel: PanelModel): SurveyLogicAction;
|
|
5860
|
+
get context(): Question;
|
|
5861
|
+
set context(val: Question);
|
|
5736
5862
|
protected getSurveyJSON(): any;
|
|
5737
5863
|
protected getSurveyCreationReason(): string;
|
|
5738
5864
|
resetModified(): void;
|
|
@@ -5793,6 +5919,7 @@ export interface IPropertyGridEditor {
|
|
|
5793
5919
|
onMatrixCellValueChanged?: (obj: Base, options: any) => void;
|
|
5794
5920
|
onMatrixAllowRemoveRow?: (obj: Base, row: any) => boolean;
|
|
5795
5921
|
onGetQuestionTitleActions?: (obj: Base, options: any) => void;
|
|
5922
|
+
onUpdateQuestionCssClasses?: (obj: Base, options: any) => void;
|
|
5796
5923
|
}
|
|
5797
5924
|
export declare var PropertyGridEditorCollection: {
|
|
5798
5925
|
editors: IPropertyGridEditor[];
|
|
@@ -5808,6 +5935,7 @@ export declare var PropertyGridEditorCollection: {
|
|
|
5808
5935
|
onMatrixCellValueChanged(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
5809
5936
|
onMatrixAllowRemoveRow(obj: Base, prop: JsonObjectProperty, row: MatrixDynamicRowModel): boolean;
|
|
5810
5937
|
onGetMatrixRowAction(obj: Base, prop: JsonObjectProperty, options: any, setObjFunc: (obj: Base) => void): void;
|
|
5938
|
+
onUpdateQuestionCssClasses(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
5811
5939
|
onGetQuestionTitleActions(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
5812
5940
|
onValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
|
|
5813
5941
|
onMasterValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
|
|
@@ -5854,10 +5982,13 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
|
|
|
5854
5982
|
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
|
|
5855
5983
|
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
5856
5984
|
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
5985
|
+
isSupportGrouping(): boolean;
|
|
5986
|
+
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
5857
5987
|
}
|
|
5858
5988
|
export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
5859
5989
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
5860
5990
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
5991
|
+
isSupportGrouping(): boolean;
|
|
5861
5992
|
}
|
|
5862
5993
|
export declare abstract class PropertyGridEditorStringBase extends PropertyGridEditor {
|
|
5863
5994
|
protected updateMaxLength(prop: JsonObjectProperty, json: any): any;
|