survey-creator-core 1.9.83 → 1.9.85
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/fonts.fontless.css +1 -1
- package/fonts.fontless.min.css +1 -1
- package/package.json +2 -2
- package/survey-creator-core.css +102 -25
- package/survey-creator-core.d.ts +1 -8046
- package/survey-creator-core.fontless.css +101 -24
- package/survey-creator-core.fontless.css.map +1 -1
- package/survey-creator-core.fontless.min.css +6 -6
- package/survey-creator-core.i18n.js +126 -128
- package/survey-creator-core.i18n.js.map +1 -1
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +530 -165
- package/survey-creator-core.js.map +1 -1
- package/survey-creator-core.min.css +7 -7
- package/survey-creator-core.min.js +2 -2
- package/typings/components/action-container-view-model.d.ts +27 -0
- package/typings/components/embedded-survey.d.ts +9 -0
- package/typings/components/header/logo-image.d.ts +15 -0
- package/typings/components/image-item-value.d.ts +21 -0
- package/typings/components/item-value.d.ts +42 -0
- package/typings/components/link-value.d.ts +27 -0
- package/typings/components/matrix-cell.d.ts +25 -0
- package/typings/components/page-navigator/page-navigator.d.ts +39 -0
- package/typings/components/page.d.ts +28 -0
- package/typings/components/question-dropdown.d.ts +18 -0
- package/typings/components/question-image.d.ts +9 -0
- package/typings/components/question-rating.d.ts +18 -0
- package/typings/components/question.d.ts +41 -0
- package/typings/components/results.d.ts +40 -0
- package/typings/components/row.d.ts +9 -0
- package/typings/components/side-bar/side-bar-model.d.ts +34 -0
- package/typings/components/side-bar/side-bar-tab-model.d.ts +11 -0
- package/typings/components/simulator.d.ts +205 -0
- package/typings/components/string-editor.d.ts +68 -0
- package/typings/components/tabs/designer-plugin.d.ts +26 -0
- package/typings/components/tabs/designer.d.ts +30 -0
- package/typings/components/tabs/embed-json.d.ts +1 -0
- package/typings/components/tabs/embed.d.ts +13 -0
- package/typings/components/tabs/json-editor-ace.d.ts +22 -0
- package/typings/components/tabs/json-editor-plugin.d.ts +28 -0
- package/typings/components/tabs/json-editor-textarea.d.ts +22 -0
- package/typings/components/tabs/logic-actions-model.d.ts +49 -0
- package/typings/components/tabs/logic-expression.d.ts +32 -0
- package/typings/components/tabs/logic-item-editor.d.ts +53 -0
- package/typings/components/tabs/logic-items.d.ts +96 -0
- package/typings/components/tabs/logic-plugin.d.ts +22 -0
- package/typings/components/tabs/logic-theme.d.ts +327 -0
- package/typings/components/tabs/logic-types.d.ts +77 -0
- package/typings/components/tabs/logic-ui.d.ts +68 -0
- package/typings/components/tabs/logic.d.ts +102 -0
- package/typings/components/tabs/test-plugin.d.ts +33 -0
- package/typings/components/tabs/test.d.ts +43 -0
- package/typings/components/tabs/translation-plugin.d.ts +33 -0
- package/typings/components/tabs/translation-theme.d.ts +301 -0
- package/typings/components/tabs/translation.d.ts +199 -0
- package/typings/components/toolbox/toolbox-tool.d.ts +16 -0
- package/typings/creator-base.d.ts +1375 -0
- package/typings/creator-options.d.ts +247 -0
- package/typings/creator-responsivity-manager.d.ts +22 -0
- package/typings/creator-settings.d.ts +219 -0
- package/typings/custom-questions/question-color.d.ts +15 -0
- package/typings/custom-questions/question-file.d.ts +15 -0
- package/typings/custom-questions/question-spin-editor.d.ts +25 -0
- package/typings/editable-object.d.ts +20 -0
- package/typings/editorLocalization.d.ts +954 -0
- package/typings/entries/index.d.ts +68 -0
- package/typings/expressionToDisplayText.d.ts +46 -0
- package/typings/json5.d.ts +46 -0
- package/typings/localization/english.d.ts +925 -0
- package/typings/pages-controller.d.ts +21 -0
- package/typings/plugins/undo-redo/index.d.ts +12 -0
- package/typings/plugins/undo-redo/undo-redo-controller.d.ts +40 -0
- package/typings/plugins/undo-redo/undo-redo-manager.d.ts +78 -0
- package/typings/property-grid/bindings.d.ts +10 -0
- package/typings/property-grid/cells-survey.d.ts +14 -0
- package/typings/property-grid/condition-survey.d.ts +117 -0
- package/typings/property-grid/condition.d.ts +13 -0
- package/typings/property-grid/description-parser.d.ts +10 -0
- package/typings/property-grid/fast-entry.d.ts +32 -0
- package/typings/property-grid/index.d.ts +239 -0
- package/typings/property-grid/matrices.d.ts +135 -0
- package/typings/property-grid/object-selector.d.ts +42 -0
- package/typings/property-grid/property-grid-view-model.d.ts +23 -0
- package/typings/property-grid/restfull.d.ts +8 -0
- package/typings/property-grid/values-survey.d.ts +42 -0
- package/typings/property-grid/values.d.ts +37 -0
- package/typings/property-grid-theme/property-grid.d.ts +346 -0
- package/typings/question-editor/definition.d.ts +22 -0
- package/typings/question-editor/properties.d.ts +49 -0
- package/typings/questionconverter.d.ts +12 -0
- package/typings/selection-history.d.ts +20 -0
- package/typings/selection-owner.d.ts +7 -0
- package/typings/survey-helper.d.ts +44 -0
- package/typings/svgbundle.d.ts +1 -0
- package/typings/textWorker.d.ts +18 -0
- package/typings/toolbox.d.ts +269 -0
- package/typings/utils/actions.d.ts +5 -0
- package/typings/utils/events.d.ts +14 -0
- package/typings/utils/resizer.d.ts +24 -0
- package/typings/utils/utils.d.ts +19 -0
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
import { Base, JsonObjectProperty, MatrixDynamicRowModel, Question, QuestionMatrixDynamicModel } from "survey-core";
|
|
2
|
+
import { ISurveyCreatorOptions } from "../creator-settings";
|
|
3
|
+
import { IPropertyEditorSetup, PropertyGridEditor } from "./index";
|
|
4
|
+
export declare abstract class PropertyGridEditorMatrix extends PropertyGridEditor {
|
|
5
|
+
static getNewColumnName(objs: Array<any>, keyPropName: string, baseName: string): string | number;
|
|
6
|
+
onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
|
|
7
|
+
private initializePlaceholder;
|
|
8
|
+
onMatrixCellCreated(obj: Base, options: any): void;
|
|
9
|
+
private updateMatixActionsClasses;
|
|
10
|
+
onGetMatrixRowAction(obj: Base, options: any, setObjFunc: (obj: Base) => void): void;
|
|
11
|
+
private getShowDetailActionIconName;
|
|
12
|
+
onGetQuestionTitleActions(obj: Base, options: any): void;
|
|
13
|
+
protected createNewItem(matrix: QuestionMatrixDynamicModel, prop: JsonObjectProperty): Base;
|
|
14
|
+
protected getDefaultClassName(prop: JsonObjectProperty): string;
|
|
15
|
+
protected getBaseValue(prop: JsonObjectProperty): string;
|
|
16
|
+
protected getKeyValue(): string;
|
|
17
|
+
protected getColumnNames(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): Array<string>;
|
|
18
|
+
protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
|
|
19
|
+
protected getPropertiesNames(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): Array<string>;
|
|
20
|
+
protected getDefinedListProperties(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): Array<any>;
|
|
21
|
+
protected getDefaultListProperties(prop: JsonObjectProperty): Array<string>;
|
|
22
|
+
protected getDefaulColumnNames(): Array<string>;
|
|
23
|
+
private isPropertyShownInList;
|
|
24
|
+
protected getObjTypeName(): string;
|
|
25
|
+
protected hasDetailPanel(): boolean;
|
|
26
|
+
private hasPropertiesInDetail;
|
|
27
|
+
protected setupMatrixQuestion(obj: Base, matrix: QuestionMatrixDynamicModel, prop: JsonObjectProperty): void;
|
|
28
|
+
protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
|
|
29
|
+
private calcHasPropertiesInDetail;
|
|
30
|
+
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
31
|
+
protected getMatrixJSON(obj: Base, prop: JsonObjectProperty, propNames: Array<string>, options: ISurveyCreatorOptions): any;
|
|
32
|
+
protected getEmptyRowsText(prop: JsonObjectProperty): string;
|
|
33
|
+
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
34
|
+
protected filterPropertyNames(propNames: Array<string>): string[];
|
|
35
|
+
protected getColumnsJSON(obj: Base, prop: JsonObjectProperty, propNames: Array<string>, options: ISurveyCreatorOptions): any;
|
|
36
|
+
protected getEditItemAsStandAlone(): boolean;
|
|
37
|
+
protected getShowDetailPanelOnAdding(): boolean;
|
|
38
|
+
private getAddRowText;
|
|
39
|
+
private setupUsingOptions;
|
|
40
|
+
}
|
|
41
|
+
export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEditorMatrix {
|
|
42
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
43
|
+
protected filterPropertyNames(propNames: Array<string>): string[];
|
|
44
|
+
isPropertyEditorSetupEnabled(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
|
|
45
|
+
protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
|
|
46
|
+
createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
|
|
47
|
+
canClearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
|
|
48
|
+
clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
49
|
+
protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
|
|
50
|
+
protected getDefaulColumnNames(): Array<string>;
|
|
51
|
+
protected getKeyValue(): string;
|
|
52
|
+
protected getMatrixJSON(obj: Base, prop: JsonObjectProperty, propNames: Array<string>, options: ISurveyCreatorOptions): any;
|
|
53
|
+
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
54
|
+
private hasMultipleLanguage;
|
|
55
|
+
private hasVisibleIfOrEnableIf;
|
|
56
|
+
onMatrixCellCreated(obj: Base, options: any): void;
|
|
57
|
+
onMatrixCellValueChanged(obj: Base, options: any): void;
|
|
58
|
+
}
|
|
59
|
+
export declare class PropertyGridEditorMatrixRateValues extends PropertyGridEditorMatrixItemValues {
|
|
60
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
61
|
+
private updateAllowAddRemove;
|
|
62
|
+
onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
|
|
63
|
+
onGetQuestionTitleActions(obj: Base, options: any): void;
|
|
64
|
+
protected filterPropertyNames(propNames: Array<string>): string[];
|
|
65
|
+
}
|
|
66
|
+
export declare class PropertyGridEditorMatrixColumns extends PropertyGridEditorMatrix {
|
|
67
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
68
|
+
protected getEditItemAsStandAlone(): boolean;
|
|
69
|
+
protected getDefaulColumnNames(): Array<string>;
|
|
70
|
+
protected getKeyValue(): string;
|
|
71
|
+
protected getBaseValue(prop: JsonObjectProperty): string;
|
|
72
|
+
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
73
|
+
protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
|
|
74
|
+
}
|
|
75
|
+
export declare class PropertyGridEditorMatrixPages extends PropertyGridEditorMatrix {
|
|
76
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
77
|
+
onMatrixAllowRemoveRow(obj: Base, row: MatrixDynamicRowModel): boolean;
|
|
78
|
+
protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
|
|
79
|
+
protected getDefaulColumnNames(): Array<string>;
|
|
80
|
+
protected hasDetailPanel(): boolean;
|
|
81
|
+
protected getKeyValue(): string;
|
|
82
|
+
protected getBaseValue(prop: JsonObjectProperty): string;
|
|
83
|
+
protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
|
|
84
|
+
}
|
|
85
|
+
export declare class PropertyGridEditorMatrixCalculatedValues extends PropertyGridEditorMatrix {
|
|
86
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
87
|
+
protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
|
|
88
|
+
protected getDefaulColumnNames(): Array<string>;
|
|
89
|
+
protected getKeyValue(): string;
|
|
90
|
+
protected getBaseValue(prop: JsonObjectProperty): string;
|
|
91
|
+
protected getShowDetailPanelOnAdding(): boolean;
|
|
92
|
+
protected setupMatrixQuestion(obj: Base, matrix: QuestionMatrixDynamicModel, prop: JsonObjectProperty): void;
|
|
93
|
+
}
|
|
94
|
+
export declare class PropertyGridEditorMatrixHtmlConditions extends PropertyGridEditorMatrix {
|
|
95
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
96
|
+
protected getDefaulColumnNames(): Array<string>;
|
|
97
|
+
protected getShowDetailPanelOnAdding(): boolean;
|
|
98
|
+
}
|
|
99
|
+
export declare class PropertyGridEditorMatrixUrlConditions extends PropertyGridEditorMatrix {
|
|
100
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
101
|
+
protected getDefaulColumnNames(): Array<string>;
|
|
102
|
+
protected getShowDetailPanelOnAdding(): boolean;
|
|
103
|
+
}
|
|
104
|
+
export declare class PropertyGridEditorMatrixMutlipleTextItems extends PropertyGridEditorMatrix {
|
|
105
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
106
|
+
protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
|
|
107
|
+
protected getDefaulColumnNames(): Array<string>;
|
|
108
|
+
protected getKeyValue(): string;
|
|
109
|
+
protected getBaseValue(prop: JsonObjectProperty): string;
|
|
110
|
+
protected getAllowRowDragDrop(): boolean;
|
|
111
|
+
createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
|
|
112
|
+
onMatrixCellCreated(obj: Base, options: any): void;
|
|
113
|
+
}
|
|
114
|
+
export declare abstract class PropertyGridEditorMatrixMultipleTypes extends PropertyGridEditorMatrix {
|
|
115
|
+
protected abstract getChoices(obj: Base): Array<any>;
|
|
116
|
+
protected getColumnsJSON(obj: Base, prop: JsonObjectProperty, propNames: Array<string>, options: ISurveyCreatorOptions): any;
|
|
117
|
+
onMatrixCellCreated(obj: Base, options: any): void;
|
|
118
|
+
onMatrixCellValueChanged(obj: Base, options: any): void;
|
|
119
|
+
protected getShowDetailPanelOnAdding(): boolean;
|
|
120
|
+
}
|
|
121
|
+
export declare class PropertyGridEditorMatrixValidators extends PropertyGridEditorMatrixMultipleTypes {
|
|
122
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
123
|
+
protected getObjTypeName(): string;
|
|
124
|
+
protected getDefaultClassName(prop: JsonObjectProperty): string;
|
|
125
|
+
protected getChoices(obj: Base): Array<any>;
|
|
126
|
+
private getSupportedValidators;
|
|
127
|
+
}
|
|
128
|
+
export declare class PropertyGridEditorMatrixTriggers extends PropertyGridEditorMatrixMultipleTypes {
|
|
129
|
+
private getAvailableTriggers;
|
|
130
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
131
|
+
protected getObjTypeName(): string;
|
|
132
|
+
protected getDefaultClassName(prop: JsonObjectProperty): string;
|
|
133
|
+
protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
|
|
134
|
+
protected getChoices(obj: Base): Array<any>;
|
|
135
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { CreatorBase } from "../creator-base";
|
|
2
|
+
import { Base, SurveyModel, ListModel, IAction, Action } from "survey-core";
|
|
3
|
+
export declare class ObjectSelectorItem extends Action {
|
|
4
|
+
data: Base;
|
|
5
|
+
level: number;
|
|
6
|
+
private textInLow;
|
|
7
|
+
constructor(id: number, data: Base, title: string, level: number);
|
|
8
|
+
hasText(filteredTextInLow: string): boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class ObjectSelector {
|
|
11
|
+
private creator;
|
|
12
|
+
private getObjectDisplayName;
|
|
13
|
+
private surveyValue;
|
|
14
|
+
private deepestLevel;
|
|
15
|
+
private filteredTextInLow;
|
|
16
|
+
private itemsValue;
|
|
17
|
+
constructor(creator: CreatorBase, survey: SurveyModel, getObjectDisplayName?: (obj: Base, area: string, reason: string, displayName: string) => string);
|
|
18
|
+
get survey(): SurveyModel;
|
|
19
|
+
get items(): Array<ObjectSelectorItem>;
|
|
20
|
+
getItemByObj(obj: Base): IAction;
|
|
21
|
+
filterByText(filteredText: string): void;
|
|
22
|
+
private rebuild;
|
|
23
|
+
private updateItemsVisibility;
|
|
24
|
+
private updateItemsLevelVisibility;
|
|
25
|
+
private hasVisibleChildren;
|
|
26
|
+
private getElements;
|
|
27
|
+
private buildElements;
|
|
28
|
+
private static uniqueId;
|
|
29
|
+
private createItem;
|
|
30
|
+
private getText;
|
|
31
|
+
}
|
|
32
|
+
export declare class ObjectSelectorModel extends Base {
|
|
33
|
+
private creator;
|
|
34
|
+
private getObjectDisplayName;
|
|
35
|
+
private selector;
|
|
36
|
+
private listModelValue;
|
|
37
|
+
isVisible: boolean;
|
|
38
|
+
constructor(creator: CreatorBase, getObjectDisplayName?: (obj: Base, area: string, reason: string, displayName: string) => string);
|
|
39
|
+
get list(): ListModel;
|
|
40
|
+
show(survey: SurveyModel, selectedObj: Base, onClose: (obj: Base) => void): void;
|
|
41
|
+
refresh(): void;
|
|
42
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Base, SurveyModel, Action } from "survey-core";
|
|
2
|
+
import { PropertyGridModel } from "./index";
|
|
3
|
+
import { CreatorBase } from "../creator-base";
|
|
4
|
+
export declare class PropertyGridViewModel extends Base {
|
|
5
|
+
private propertyGridModel;
|
|
6
|
+
private creator;
|
|
7
|
+
nextSelectionAction: Action;
|
|
8
|
+
prevSelectionAction: Action;
|
|
9
|
+
objectSelectionAction: Action;
|
|
10
|
+
private selectorPopupModel;
|
|
11
|
+
hasPrev: boolean;
|
|
12
|
+
hasNext: boolean;
|
|
13
|
+
survey: SurveyModel;
|
|
14
|
+
selectedElementName: string;
|
|
15
|
+
constructor(propertyGridModel: PropertyGridModel, creator: CreatorBase);
|
|
16
|
+
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
17
|
+
private get selectionController();
|
|
18
|
+
private onSurveyChanged;
|
|
19
|
+
private updateTitle;
|
|
20
|
+
private getTitle;
|
|
21
|
+
private getSelectedObj;
|
|
22
|
+
private initActions;
|
|
23
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Base, JsonObjectProperty, Question } from "survey-core";
|
|
2
|
+
import { PropertyGridEditorQuestion } from "./index";
|
|
3
|
+
import { ISurveyCreatorOptions } from "../creator-settings";
|
|
4
|
+
export declare class PropertyGridEditorQuestionRestfull extends PropertyGridEditorQuestion {
|
|
5
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
6
|
+
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
7
|
+
onCreated(obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions): void;
|
|
8
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { Question, Base } from "survey-core";
|
|
2
|
+
import { PropertyEditorSetupValue } from "./index";
|
|
3
|
+
import { ISurveyCreatorOptions } from "../creator-settings";
|
|
4
|
+
export declare class DefaultValueEditor extends PropertyEditorSetupValue {
|
|
5
|
+
editQuestion: Question;
|
|
6
|
+
protected propertyName: string;
|
|
7
|
+
constructor(editQuestion: Question, propertyName: string, options?: ISurveyCreatorOptions);
|
|
8
|
+
get question(): Question;
|
|
9
|
+
protected getSurveyJSON(): any;
|
|
10
|
+
protected getQuestionJSON(): any;
|
|
11
|
+
protected getQuestionValue(): any;
|
|
12
|
+
protected getEditValue(): any;
|
|
13
|
+
protected getSurveyCreationReason(): string;
|
|
14
|
+
apply(): boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare class DefaultArrayValueEditor extends DefaultValueEditor {
|
|
17
|
+
editQuestion: Question;
|
|
18
|
+
protected propertyName: string;
|
|
19
|
+
constructor(editQuestion: Question, propertyName: string, options?: ISurveyCreatorOptions);
|
|
20
|
+
protected getQuestionValue(): any;
|
|
21
|
+
protected getEditValue(): any;
|
|
22
|
+
}
|
|
23
|
+
export declare class DefaultMatrixRowValueEditor extends DefaultArrayValueEditor {
|
|
24
|
+
editQuestion: Question;
|
|
25
|
+
protected propertyName: string;
|
|
26
|
+
constructor(editQuestion: Question, propertyName: string, options?: ISurveyCreatorOptions);
|
|
27
|
+
protected getQuestionJSON(): any;
|
|
28
|
+
}
|
|
29
|
+
export declare class DefaultPanelDynamicPanelValueEditor extends DefaultArrayValueEditor {
|
|
30
|
+
editQuestion: Question;
|
|
31
|
+
protected propertyName: string;
|
|
32
|
+
constructor(editQuestion: Question, propertyName: string, options?: ISurveyCreatorOptions);
|
|
33
|
+
protected getQuestionJSON(): any;
|
|
34
|
+
}
|
|
35
|
+
export declare class TriggerValueEditor extends DefaultValueEditor {
|
|
36
|
+
editQuestion: Question;
|
|
37
|
+
editObj: Base;
|
|
38
|
+
protected propertyName: string;
|
|
39
|
+
constructor(editQuestion: Question, editObj: Base, propertyName: string, options?: ISurveyCreatorOptions);
|
|
40
|
+
protected getQuestionValue(): any;
|
|
41
|
+
apply(): boolean;
|
|
42
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { Base, JsonObjectProperty, Question } from "survey-core";
|
|
2
|
+
import { IPropertyEditorSetup, PropertyGridEditor } from "./index";
|
|
3
|
+
import { ISurveyCreatorOptions } from "../creator-settings";
|
|
4
|
+
export declare abstract class PropertyGridValueEditorBase extends PropertyGridEditor {
|
|
5
|
+
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
6
|
+
onCreated: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
|
|
7
|
+
clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
8
|
+
protected isValueEmpty(val: any): boolean;
|
|
9
|
+
isSupportGrouping(): boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare class PropertyGridCellsEditor extends PropertyGridValueEditorBase {
|
|
12
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
13
|
+
createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
|
|
14
|
+
clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
15
|
+
protected isValueEmpty(val: any): boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare class PropertyGridValueEditor extends PropertyGridValueEditorBase {
|
|
18
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
19
|
+
createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
|
|
20
|
+
}
|
|
21
|
+
export declare class PropertyGridRowValueEditor extends PropertyGridValueEditorBase {
|
|
22
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
23
|
+
createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
|
|
24
|
+
}
|
|
25
|
+
export declare class PropertyGridPanelValueEditor extends PropertyGridValueEditorBase {
|
|
26
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
27
|
+
createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
|
|
28
|
+
}
|
|
29
|
+
export declare class PropertyGridTriggerValueEditor extends PropertyGridValueEditorBase {
|
|
30
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
31
|
+
createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
|
|
32
|
+
protected getSetToNameQuestion(obj: Base): Question;
|
|
33
|
+
}
|
|
34
|
+
export declare class PropertyGridTriggerValueInLogicEditor extends PropertyGridTriggerValueEditor {
|
|
35
|
+
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
36
|
+
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
37
|
+
}
|
|
@@ -0,0 +1,346 @@
|
|
|
1
|
+
export declare var propertyGridCss: {
|
|
2
|
+
root: string;
|
|
3
|
+
container: string;
|
|
4
|
+
header: string;
|
|
5
|
+
body: string;
|
|
6
|
+
bodyEmpty: string;
|
|
7
|
+
footer: string;
|
|
8
|
+
title: string;
|
|
9
|
+
description: string;
|
|
10
|
+
logo: string;
|
|
11
|
+
logoImage: string;
|
|
12
|
+
headerText: string;
|
|
13
|
+
navigationButton: string;
|
|
14
|
+
completedPage: string;
|
|
15
|
+
navigation: {
|
|
16
|
+
complete: string;
|
|
17
|
+
prev: string;
|
|
18
|
+
next: string;
|
|
19
|
+
start: string;
|
|
20
|
+
preview: string;
|
|
21
|
+
edit: string;
|
|
22
|
+
};
|
|
23
|
+
panel: {
|
|
24
|
+
title: string;
|
|
25
|
+
titleExpandable: string;
|
|
26
|
+
titleOnExpand: string;
|
|
27
|
+
titleOnError: string;
|
|
28
|
+
description: string;
|
|
29
|
+
container: string;
|
|
30
|
+
content: string;
|
|
31
|
+
icon: string;
|
|
32
|
+
iconExpanded: string;
|
|
33
|
+
footer: string;
|
|
34
|
+
requiredText: string;
|
|
35
|
+
};
|
|
36
|
+
paneldynamic: {
|
|
37
|
+
root: string;
|
|
38
|
+
navigation: string;
|
|
39
|
+
title: string;
|
|
40
|
+
button: string;
|
|
41
|
+
buttonRemove: string;
|
|
42
|
+
buttonAdd: string;
|
|
43
|
+
progressTop: string;
|
|
44
|
+
progressBottom: string;
|
|
45
|
+
buttonPrev: string;
|
|
46
|
+
buttonNext: string;
|
|
47
|
+
progressContainer: string;
|
|
48
|
+
progress: string;
|
|
49
|
+
progressBar: string;
|
|
50
|
+
progressText: string;
|
|
51
|
+
separator: string;
|
|
52
|
+
};
|
|
53
|
+
progress: string;
|
|
54
|
+
progressBar: string;
|
|
55
|
+
progressText: string;
|
|
56
|
+
progressTextInBar: string;
|
|
57
|
+
page: {
|
|
58
|
+
root: string;
|
|
59
|
+
title: string;
|
|
60
|
+
description: string;
|
|
61
|
+
};
|
|
62
|
+
pageTitle: string;
|
|
63
|
+
pageDescription: string;
|
|
64
|
+
row: string;
|
|
65
|
+
rowMultiple: string;
|
|
66
|
+
question: {
|
|
67
|
+
mainRoot: string;
|
|
68
|
+
flowRoot: string;
|
|
69
|
+
asCell: string;
|
|
70
|
+
header: string;
|
|
71
|
+
headerLeft: string;
|
|
72
|
+
headerTop: string;
|
|
73
|
+
headerBottom: string;
|
|
74
|
+
content: string;
|
|
75
|
+
contentLeft: string;
|
|
76
|
+
titleLeftRoot: string;
|
|
77
|
+
titleOnAnswer: string;
|
|
78
|
+
titleOnError: string;
|
|
79
|
+
title: string;
|
|
80
|
+
requiredText: string;
|
|
81
|
+
number: string;
|
|
82
|
+
description: string;
|
|
83
|
+
descriptionUnderInput: string;
|
|
84
|
+
comment: string;
|
|
85
|
+
required: string;
|
|
86
|
+
titleRequired: string;
|
|
87
|
+
indent: number;
|
|
88
|
+
footer: string;
|
|
89
|
+
formGroup: string;
|
|
90
|
+
hasError: string;
|
|
91
|
+
disabled: string;
|
|
92
|
+
};
|
|
93
|
+
image: {
|
|
94
|
+
root: string;
|
|
95
|
+
image: string;
|
|
96
|
+
};
|
|
97
|
+
error: {
|
|
98
|
+
root: string;
|
|
99
|
+
icon: string;
|
|
100
|
+
item: string;
|
|
101
|
+
locationTop: string;
|
|
102
|
+
locationBottom: string;
|
|
103
|
+
};
|
|
104
|
+
checkbox: {
|
|
105
|
+
root: string;
|
|
106
|
+
item: string;
|
|
107
|
+
itemSelectAll: string;
|
|
108
|
+
itemNone: string;
|
|
109
|
+
itemDisabled: string;
|
|
110
|
+
itemChecked: string;
|
|
111
|
+
itemHover: string;
|
|
112
|
+
itemInline: string;
|
|
113
|
+
label: string;
|
|
114
|
+
itemSvgIconId: string;
|
|
115
|
+
labelChecked: string;
|
|
116
|
+
itemControl: string;
|
|
117
|
+
itemDecorator: string;
|
|
118
|
+
controlLabel: string;
|
|
119
|
+
materialDecorator: string;
|
|
120
|
+
other: string;
|
|
121
|
+
column: string;
|
|
122
|
+
};
|
|
123
|
+
radiogroup: {
|
|
124
|
+
root: string;
|
|
125
|
+
item: string;
|
|
126
|
+
itemInline: string;
|
|
127
|
+
label: string;
|
|
128
|
+
labelChecked: string;
|
|
129
|
+
itemDisabled: string;
|
|
130
|
+
itemChecked: string;
|
|
131
|
+
itemHover: string;
|
|
132
|
+
itemControl: string;
|
|
133
|
+
itemDecorator: string;
|
|
134
|
+
controlLabel: string;
|
|
135
|
+
materialDecorator: string;
|
|
136
|
+
other: string;
|
|
137
|
+
clearButton: string;
|
|
138
|
+
column: string;
|
|
139
|
+
};
|
|
140
|
+
boolean: {
|
|
141
|
+
mainRoot: string;
|
|
142
|
+
rootCheckbox: string;
|
|
143
|
+
checkboxItem: string;
|
|
144
|
+
checkboxItemChecked: string;
|
|
145
|
+
checkboxitemIndeterminate: string;
|
|
146
|
+
checkboxItemDisabled: string;
|
|
147
|
+
svgIconId: string;
|
|
148
|
+
checkboxLabel: string;
|
|
149
|
+
controlCheckbox: string;
|
|
150
|
+
checkboxControlLabel: string;
|
|
151
|
+
checkboxItemDecorator: string;
|
|
152
|
+
checkboxMaterialDecorator: string;
|
|
153
|
+
};
|
|
154
|
+
text: {
|
|
155
|
+
root: string;
|
|
156
|
+
small: string;
|
|
157
|
+
content: string;
|
|
158
|
+
remainingCharacterCounter: string;
|
|
159
|
+
onError: string;
|
|
160
|
+
};
|
|
161
|
+
multipletext: {
|
|
162
|
+
root: string;
|
|
163
|
+
item: string;
|
|
164
|
+
itemTitle: string;
|
|
165
|
+
content: string;
|
|
166
|
+
row: string;
|
|
167
|
+
cell: string;
|
|
168
|
+
};
|
|
169
|
+
dropdown: {
|
|
170
|
+
root: string;
|
|
171
|
+
popup: string;
|
|
172
|
+
small: string;
|
|
173
|
+
control: string;
|
|
174
|
+
filterStringInput: string;
|
|
175
|
+
selectWrapper: string;
|
|
176
|
+
other: string;
|
|
177
|
+
onError: string;
|
|
178
|
+
};
|
|
179
|
+
imagepicker: {
|
|
180
|
+
root: string;
|
|
181
|
+
item: string;
|
|
182
|
+
itemInline: string;
|
|
183
|
+
itemChecked: string;
|
|
184
|
+
itemDisabled: string;
|
|
185
|
+
itemHover: string;
|
|
186
|
+
label: string;
|
|
187
|
+
itemControl: string;
|
|
188
|
+
image: string;
|
|
189
|
+
itemText: string;
|
|
190
|
+
clearButton: string;
|
|
191
|
+
other: string;
|
|
192
|
+
};
|
|
193
|
+
matrix: {
|
|
194
|
+
tableWrapper: string;
|
|
195
|
+
root: string;
|
|
196
|
+
rowError: string;
|
|
197
|
+
cell: string;
|
|
198
|
+
headerCell: string;
|
|
199
|
+
label: string;
|
|
200
|
+
itemValue: string;
|
|
201
|
+
itemChecked: string;
|
|
202
|
+
itemDisabled: string;
|
|
203
|
+
itemHover: string;
|
|
204
|
+
materialDecorator: string;
|
|
205
|
+
itemDecorator: string;
|
|
206
|
+
cellText: string;
|
|
207
|
+
cellTextSelected: string;
|
|
208
|
+
cellTextDisabled: string;
|
|
209
|
+
};
|
|
210
|
+
matrixdropdown: {
|
|
211
|
+
tableWrapper: string;
|
|
212
|
+
root: string;
|
|
213
|
+
cell: string;
|
|
214
|
+
headerCell: string;
|
|
215
|
+
};
|
|
216
|
+
matrixdynamic: {
|
|
217
|
+
tableWrapper: string;
|
|
218
|
+
root: string;
|
|
219
|
+
content: string;
|
|
220
|
+
cell: string;
|
|
221
|
+
headerCell: string;
|
|
222
|
+
button: string;
|
|
223
|
+
detailRow: string;
|
|
224
|
+
detailButton: string;
|
|
225
|
+
detailButtonExpanded: string;
|
|
226
|
+
detailIcon: string;
|
|
227
|
+
detailIconExpanded: string;
|
|
228
|
+
detailPanelCell: string;
|
|
229
|
+
actionsCell: string;
|
|
230
|
+
buttonAdd: string;
|
|
231
|
+
buttonRemove: string;
|
|
232
|
+
iconAdd: string;
|
|
233
|
+
iconRemove: string;
|
|
234
|
+
dragElementDecorator: string;
|
|
235
|
+
iconDragElement: string;
|
|
236
|
+
iconDrag: string;
|
|
237
|
+
footer: string;
|
|
238
|
+
dragDropGhostPositionTop: string;
|
|
239
|
+
dragDropGhostPositionBottom: string;
|
|
240
|
+
emptyRowsSection: string;
|
|
241
|
+
emptyRowsText: string;
|
|
242
|
+
cellQuestionWrapper: string;
|
|
243
|
+
};
|
|
244
|
+
rating: {
|
|
245
|
+
root: string;
|
|
246
|
+
item: string;
|
|
247
|
+
selected: string;
|
|
248
|
+
minText: string;
|
|
249
|
+
itemText: string;
|
|
250
|
+
maxText: string;
|
|
251
|
+
disabled: string;
|
|
252
|
+
};
|
|
253
|
+
comment: {
|
|
254
|
+
root: string;
|
|
255
|
+
content: string;
|
|
256
|
+
remainingCharacterCounter: string;
|
|
257
|
+
small: string;
|
|
258
|
+
onError: string;
|
|
259
|
+
};
|
|
260
|
+
expression: string;
|
|
261
|
+
file: {
|
|
262
|
+
root: string;
|
|
263
|
+
other: string;
|
|
264
|
+
placeholderInput: string;
|
|
265
|
+
preview: string;
|
|
266
|
+
fileSign: string;
|
|
267
|
+
fileSignBottom: string;
|
|
268
|
+
fileDecorator: string;
|
|
269
|
+
fileInput: string;
|
|
270
|
+
noFileChosen: string;
|
|
271
|
+
chooseFile: string;
|
|
272
|
+
disabled: string;
|
|
273
|
+
removeButton: string;
|
|
274
|
+
removeButtonBottom: string;
|
|
275
|
+
removeFile: string;
|
|
276
|
+
removeFileSvg: string;
|
|
277
|
+
wrapper: string;
|
|
278
|
+
};
|
|
279
|
+
signaturepad: {
|
|
280
|
+
root: string;
|
|
281
|
+
small: string;
|
|
282
|
+
controls: string;
|
|
283
|
+
clearButton: string;
|
|
284
|
+
};
|
|
285
|
+
propertygrid_bindings: {
|
|
286
|
+
content: string;
|
|
287
|
+
};
|
|
288
|
+
propertygrid_restfull: {
|
|
289
|
+
content: string;
|
|
290
|
+
};
|
|
291
|
+
saveData: {
|
|
292
|
+
root: string;
|
|
293
|
+
saving: string;
|
|
294
|
+
error: string;
|
|
295
|
+
success: string;
|
|
296
|
+
saveAgainButton: string;
|
|
297
|
+
};
|
|
298
|
+
window: {
|
|
299
|
+
root: string;
|
|
300
|
+
body: string;
|
|
301
|
+
header: {
|
|
302
|
+
root: string;
|
|
303
|
+
title: string;
|
|
304
|
+
button: string;
|
|
305
|
+
buttonExpanded: string;
|
|
306
|
+
buttonCollapsed: string;
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
actionBar: {
|
|
310
|
+
root: string;
|
|
311
|
+
item: string;
|
|
312
|
+
itemPressed: string;
|
|
313
|
+
itemAsIcon: string;
|
|
314
|
+
itemIcon: string;
|
|
315
|
+
itemTitle: string;
|
|
316
|
+
};
|
|
317
|
+
spinedit: {
|
|
318
|
+
root: string;
|
|
319
|
+
control: string;
|
|
320
|
+
buttonsContainer: string;
|
|
321
|
+
arrowButton: string;
|
|
322
|
+
increaseButtonIcon: string;
|
|
323
|
+
decreaseButtonIcon: string;
|
|
324
|
+
};
|
|
325
|
+
color: {
|
|
326
|
+
root: string;
|
|
327
|
+
swatch: string;
|
|
328
|
+
colorInput: string;
|
|
329
|
+
control: string;
|
|
330
|
+
colorDropdown: string;
|
|
331
|
+
colorDrodownIcon: string;
|
|
332
|
+
};
|
|
333
|
+
fileedit: {
|
|
334
|
+
root: string;
|
|
335
|
+
control: string;
|
|
336
|
+
buttonsContainer: string;
|
|
337
|
+
chooseButtonIcon: string;
|
|
338
|
+
clearButtonIcon: string;
|
|
339
|
+
fileInput: string;
|
|
340
|
+
clearButton: string;
|
|
341
|
+
chooseButton: string;
|
|
342
|
+
};
|
|
343
|
+
linkvalue: {
|
|
344
|
+
content: string;
|
|
345
|
+
};
|
|
346
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface ISurveyQuestionEditorDefinition {
|
|
2
|
+
title?: string;
|
|
3
|
+
properties?: Array<string | IPropertyEditorInfo>;
|
|
4
|
+
tabs?: Array<IPropertyTabInfo>;
|
|
5
|
+
}
|
|
6
|
+
export interface IPropertyEditorInfo {
|
|
7
|
+
name: string;
|
|
8
|
+
title?: string;
|
|
9
|
+
tab?: string;
|
|
10
|
+
placeholder?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface IPropertyTabInfo {
|
|
13
|
+
name: string;
|
|
14
|
+
index?: number;
|
|
15
|
+
title?: string;
|
|
16
|
+
visible?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare class SurveyQuestionEditorDefinition {
|
|
19
|
+
static definition: {
|
|
20
|
+
[key: string]: ISurveyQuestionEditorDefinition;
|
|
21
|
+
};
|
|
22
|
+
}
|