survey-creator-core 1.9.3-beta.1 → 1.9.4-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 +431 -218
- package/survey-creator-core.d.ts +62 -27
- package/survey-creator-core.js +573 -346
- package/survey-creator-core.min.css +40 -38
- package/survey-creator-core.min.js +3 -3
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*Type definitions for SurveyJS Creator JavaScript library v1.9.
|
|
1
|
+
/*Type definitions for SurveyJS Creator JavaScript library v1.9.4-beta.1
|
|
2
2
|
(c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
3
3
|
Github: https://github.com/surveyjs/survey-creator
|
|
4
4
|
License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -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";
|
|
@@ -325,6 +326,8 @@ export declare var enStrings: {
|
|
|
325
326
|
propertyIsNoUnique: string;
|
|
326
327
|
propertyNameIsNotUnique: string;
|
|
327
328
|
listIsEmpty: string;
|
|
329
|
+
choicesListIsEmpty: string;
|
|
330
|
+
"addNew@choices": string;
|
|
328
331
|
expressionIsEmpty: string;
|
|
329
332
|
value: string;
|
|
330
333
|
text: string;
|
|
@@ -1150,6 +1153,8 @@ export declare var defaultStrings: {
|
|
|
1150
1153
|
propertyIsNoUnique: string;
|
|
1151
1154
|
propertyNameIsNotUnique: string;
|
|
1152
1155
|
listIsEmpty: string;
|
|
1156
|
+
choicesListIsEmpty: string;
|
|
1157
|
+
"addNew@choices": string;
|
|
1153
1158
|
expressionIsEmpty: string;
|
|
1154
1159
|
value: string;
|
|
1155
1160
|
text: string;
|
|
@@ -1938,8 +1943,12 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1938
1943
|
*/
|
|
1939
1944
|
pageHoverDelay: number;
|
|
1940
1945
|
/**
|
|
1941
|
-
*
|
|
1946
|
+
* You need to set this property to true if you want to inplace edit item values instead of texts.
|
|
1942
1947
|
*/
|
|
1948
|
+
inplaceEditForValues: boolean;
|
|
1949
|
+
/**
|
|
1950
|
+
* Set it to false to hide survey title and coresponding properties
|
|
1951
|
+
*/
|
|
1943
1952
|
get allowEditSurveyTitle(): boolean;
|
|
1944
1953
|
set allowEditSurveyTitle(val: boolean);
|
|
1945
1954
|
/**
|
|
@@ -2479,8 +2488,8 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2479
2488
|
constructor(options: ICreatorOptions, options2?: ICreatorOptions);
|
|
2480
2489
|
updateToolboxIsCompact(newVal?: boolean): void;
|
|
2481
2490
|
onSurveyElementPropertyValueChanged(property: Survey.JsonObjectProperty, obj: any, newValue: any): void;
|
|
2482
|
-
get showToolbox():
|
|
2483
|
-
set showToolbox(val:
|
|
2491
|
+
get showToolbox(): "left" | "right" | "top" | "none" | boolean;
|
|
2492
|
+
set showToolbox(val: "left" | "right" | "top" | "none" | boolean);
|
|
2484
2493
|
onShowPropertyGridVisiblityChanged: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2485
2494
|
/**
|
|
2486
2495
|
* Set this this property grid false to hide the property grid.
|
|
@@ -2811,8 +2820,8 @@ import "./json-editor-ace.scss";
|
|
|
2811
2820
|
export declare class AceJsonEditorModel extends JsonEditorBaseModel {
|
|
2812
2821
|
static aceBasePath: string;
|
|
2813
2822
|
constructor(creator: CreatorBase<SurveyModel>);
|
|
2814
|
-
|
|
2815
|
-
|
|
2823
|
+
protected getText(): string;
|
|
2824
|
+
protected setText(value: string): void;
|
|
2816
2825
|
init(aceEditor: AceAjax.Editor): void;
|
|
2817
2826
|
protected onTextChanged(): void;
|
|
2818
2827
|
protected setErrors(errors: any[]): void;
|
|
@@ -2829,7 +2838,10 @@ export declare abstract class JsonEditorBaseModel extends Base {
|
|
|
2829
2838
|
isJSONChanged: boolean;
|
|
2830
2839
|
isProcessingImmediately: boolean;
|
|
2831
2840
|
constructor(creator: CreatorBase<SurveyModel>);
|
|
2832
|
-
|
|
2841
|
+
get text(): string;
|
|
2842
|
+
set text(val: string);
|
|
2843
|
+
protected abstract getText(): string;
|
|
2844
|
+
protected abstract setText(val: string): void;
|
|
2833
2845
|
protected onEditorActivated(): void;
|
|
2834
2846
|
onPluginActivate(): void;
|
|
2835
2847
|
protected onTextChanged(): void;
|
|
@@ -2852,8 +2864,8 @@ export declare class TextareaJsonEditorModel extends JsonEditorBaseModel {
|
|
|
2852
2864
|
canShowErrors: boolean;
|
|
2853
2865
|
constructor(creator: CreatorBase<SurveyModel>);
|
|
2854
2866
|
checkKey(data: any, e: any): boolean;
|
|
2855
|
-
|
|
2856
|
-
|
|
2867
|
+
protected getText(): string;
|
|
2868
|
+
protected setText(value: string): void;
|
|
2857
2869
|
get errorButtonText(): string;
|
|
2858
2870
|
toggleErrors(): void;
|
|
2859
2871
|
get userFriendlyErrors(): any[];
|
|
@@ -2870,6 +2882,7 @@ import "./test.scss";
|
|
|
2870
2882
|
export declare class TestSurveyTabViewModel extends Base {
|
|
2871
2883
|
pages: ActionContainer;
|
|
2872
2884
|
prevPageAction: Action;
|
|
2885
|
+
testAgainAction: Action;
|
|
2873
2886
|
nextPageAction: Action;
|
|
2874
2887
|
onSurveyCreatedCallback: (survey: SurveyModel) => any;
|
|
2875
2888
|
simulator: SurveySimulatorModel;
|
|
@@ -3985,7 +3998,7 @@ export declare class QuestionAdornerViewModel extends ActionContainerViewModel<S
|
|
|
3985
3998
|
rootCss(): "" | " svc-question__adorner--start-with-new-line";
|
|
3986
3999
|
css(): string;
|
|
3987
4000
|
get isDragMe(): boolean;
|
|
3988
|
-
|
|
4001
|
+
dragTypeOverMe: DragTypeOverMeEnum;
|
|
3989
4002
|
dispose(): void;
|
|
3990
4003
|
get isDraggable(): boolean;
|
|
3991
4004
|
hover(event: MouseEvent, element: HTMLElement): void;
|
|
@@ -3994,7 +4007,8 @@ export declare class QuestionAdornerViewModel extends ActionContainerViewModel<S
|
|
|
3994
4007
|
get placeholderText(): string;
|
|
3995
4008
|
get isRequired(): any;
|
|
3996
4009
|
set isRequired(newVal: any);
|
|
3997
|
-
|
|
4010
|
+
onPointerDown(pointerDownEvent: PointerEvent): void;
|
|
4011
|
+
startDragSurveyElement: (event: PointerEvent) => boolean;
|
|
3998
4012
|
get allowEdit(): boolean;
|
|
3999
4013
|
getConvertToTypesActions(): Array<IAction>;
|
|
4000
4014
|
protected buildActions(items: Array<Action>): void;
|
|
@@ -4025,6 +4039,8 @@ export declare class QuestionRatingAdornerViewModel extends QuestionAdornerViewM
|
|
|
4025
4039
|
removeItem(model: QuestionRatingAdornerViewModel): void;
|
|
4026
4040
|
get allowAdd(): boolean;
|
|
4027
4041
|
get allowRemove(): boolean;
|
|
4042
|
+
get addTooltip(): any;
|
|
4043
|
+
get removeTooltip(): any;
|
|
4028
4044
|
}
|
|
4029
4045
|
|
|
4030
4046
|
import "./item-value.scss";
|
|
@@ -4347,6 +4363,24 @@ export declare class QuestionEmbeddedSurveyModel extends QuestionNonValue {
|
|
|
4347
4363
|
getType(): string;
|
|
4348
4364
|
}
|
|
4349
4365
|
|
|
4366
|
+
import "./link-value.scss";
|
|
4367
|
+
export declare class QuestionLinkValueModel extends Question {
|
|
4368
|
+
linkClickCallback: () => void;
|
|
4369
|
+
resetClickCallback: () => void;
|
|
4370
|
+
linkSetButtonCssClasses: string;
|
|
4371
|
+
linkClearButtonCssClasses: string;
|
|
4372
|
+
isSelected: boolean;
|
|
4373
|
+
linkValueText: string;
|
|
4374
|
+
showClear: boolean;
|
|
4375
|
+
allowClear: boolean;
|
|
4376
|
+
showValueInLink: boolean;
|
|
4377
|
+
constructor(name: string, json?: any);
|
|
4378
|
+
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
4379
|
+
getType(): string;
|
|
4380
|
+
doLinkClick(): void;
|
|
4381
|
+
doClearClick(): void;
|
|
4382
|
+
}
|
|
4383
|
+
|
|
4350
4384
|
export declare class SurveyJSON5 {
|
|
4351
4385
|
static positionName: string;
|
|
4352
4386
|
constructor(parseType?: number);
|
|
@@ -4451,10 +4485,13 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
|
|
|
4451
4485
|
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
|
|
4452
4486
|
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
4453
4487
|
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
4488
|
+
protected isSupportGrouping(): boolean;
|
|
4489
|
+
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
4454
4490
|
}
|
|
4455
4491
|
export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
4456
4492
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
4457
4493
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4494
|
+
protected isSupportGrouping(): boolean;
|
|
4458
4495
|
}
|
|
4459
4496
|
export declare abstract class PropertyGridEditorStringBase extends PropertyGridEditor {
|
|
4460
4497
|
protected updateMaxLength(prop: JsonObjectProperty, json: any): any;
|
|
@@ -4551,6 +4588,8 @@ export declare abstract class PropertyGridEditorMatrix extends PropertyGridEdito
|
|
|
4551
4588
|
protected getAllowRowDragDrop(): boolean;
|
|
4552
4589
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4553
4590
|
protected getMatrixJSON(obj: Base, prop: JsonObjectProperty, propNames: Array<string>, options: ISurveyCreatorOptions): any;
|
|
4591
|
+
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
4592
|
+
protected getEmptyRowsText(props: any): any;
|
|
4554
4593
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
4555
4594
|
protected getColumnsJSON(obj: Base, prop: JsonObjectProperty, propNames: Array<string>, options: ISurveyCreatorOptions): any;
|
|
4556
4595
|
protected getEditItemAsStandAlone(): boolean;
|
|
@@ -4567,6 +4606,8 @@ export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEdit
|
|
|
4567
4606
|
protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
|
|
4568
4607
|
protected getDefaulColumnNames(): Array<string>;
|
|
4569
4608
|
protected getKeyValue(): string;
|
|
4609
|
+
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
4610
|
+
protected getEmptyRowsText(prop: any): any;
|
|
4570
4611
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
4571
4612
|
}
|
|
4572
4613
|
export declare class PropertyGridEditorMatrixColumns extends PropertyGridEditorMatrix {
|
|
@@ -4678,26 +4719,12 @@ export declare class PropertyGridEditorQuestionRestfull extends PropertyGridEdit
|
|
|
4678
4719
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4679
4720
|
}
|
|
4680
4721
|
|
|
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
4722
|
export declare abstract class PropertyGridValueEditorBase extends PropertyGridEditor {
|
|
4696
4723
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4697
4724
|
onCreated: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
|
|
4698
4725
|
clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
4699
|
-
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
4700
4726
|
protected isValueEmpty(val: any): boolean;
|
|
4727
|
+
protected isSupportGrouping(): boolean;
|
|
4701
4728
|
}
|
|
4702
4729
|
export declare class PropertyGridCellsEditor extends PropertyGridValueEditorBase {
|
|
4703
4730
|
fit(prop: JsonObjectProperty): boolean;
|
|
@@ -4840,6 +4867,7 @@ export declare var propertyGridCss: {
|
|
|
4840
4867
|
itemHover: string;
|
|
4841
4868
|
itemInline: string;
|
|
4842
4869
|
label: string;
|
|
4870
|
+
itemSvgIconId: string;
|
|
4843
4871
|
labelChecked: string;
|
|
4844
4872
|
itemControl: string;
|
|
4845
4873
|
itemDecorator: string;
|
|
@@ -4873,6 +4901,7 @@ export declare var propertyGridCss: {
|
|
|
4873
4901
|
itemChecked: string;
|
|
4874
4902
|
itemIndeterminate: string;
|
|
4875
4903
|
itemDisabled: string;
|
|
4904
|
+
svgIconId: string;
|
|
4876
4905
|
label: string;
|
|
4877
4906
|
disabledLabel: string;
|
|
4878
4907
|
itemDecorator: string;
|
|
@@ -4953,6 +4982,8 @@ export declare var propertyGridCss: {
|
|
|
4953
4982
|
iconDrag: string;
|
|
4954
4983
|
dragDropGhostPositionTop: string;
|
|
4955
4984
|
dragDropGhostPositionBottom: string;
|
|
4985
|
+
emptyRowsSection: string;
|
|
4986
|
+
emptyRowsText: string;
|
|
4956
4987
|
};
|
|
4957
4988
|
rating: {
|
|
4958
4989
|
root: string;
|
|
@@ -5076,6 +5107,7 @@ export declare class QuestionToolboxCategory extends Base {
|
|
|
5076
5107
|
}
|
|
5077
5108
|
export declare class QuestionToolboxItem extends Action implements IQuestionToolboxItem {
|
|
5078
5109
|
constructor(item: IQuestionToolboxItem);
|
|
5110
|
+
iconName: string;
|
|
5079
5111
|
name: string;
|
|
5080
5112
|
json: any;
|
|
5081
5113
|
title: string;
|
|
@@ -5328,7 +5360,7 @@ export declare class SurveyHelper {
|
|
|
5328
5360
|
static disableSelectingObj(obj: Base): void;
|
|
5329
5361
|
static enableSelectingObj(obj: Base): void;
|
|
5330
5362
|
static canSelectObj(obj: Base): boolean;
|
|
5331
|
-
static warnNonSupported(name: string): void;
|
|
5363
|
+
static warnNonSupported(name: string, newPropertyName?: string): void;
|
|
5332
5364
|
static warnText(text: string): void;
|
|
5333
5365
|
static updateQuestionJson(questionJson: any): void;
|
|
5334
5366
|
static convertMatrixRowsToText(rows: any): string;
|
|
@@ -5862,10 +5894,13 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
|
|
|
5862
5894
|
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
|
|
5863
5895
|
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
5864
5896
|
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
5897
|
+
protected isSupportGrouping(): boolean;
|
|
5898
|
+
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
5865
5899
|
}
|
|
5866
5900
|
export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
5867
5901
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
5868
5902
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
5903
|
+
protected isSupportGrouping(): boolean;
|
|
5869
5904
|
}
|
|
5870
5905
|
export declare abstract class PropertyGridEditorStringBase extends PropertyGridEditor {
|
|
5871
5906
|
protected updateMaxLength(prop: JsonObjectProperty, json: any): any;
|