survey-creator-core 1.9.8-beta.1 → 1.9.12-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 +5 -4
- package/survey-creator-core.css +38 -13
- package/survey-creator-core.d.ts +47 -30
- package/survey-creator-core.i18n.js +13365 -0
- package/survey-creator-core.i18n.min.js +7 -0
- package/survey-creator-core.js +1102 -14169
- package/survey-creator-core.min.css +6 -6
- 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.12-beta.1
|
|
2
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
|
|
@@ -49,6 +49,7 @@ import { SurveyModel, Base, Question, SurveyElement } from "survey-core";
|
|
|
49
49
|
import { SurveyModel, QuestionPanelDynamicModel, ItemValue, PanelModel, Base, Question, QuestionCommentModel } from "survey-core";
|
|
50
50
|
import { SurveyModel, QuestionPanelDynamicModel, PanelModel, Question } from "survey-core";
|
|
51
51
|
import { Base, AdaptiveActionContainer, Action, SurveyModel, SurveyElement } from "survey-core";
|
|
52
|
+
import { Base, ItemValue, PanelModel, QuestionDropdownModel, SurveyModel } from "survey-core";
|
|
52
53
|
|
|
53
54
|
|
|
54
55
|
import "../components/property-panel/property-panel-item.scss";
|
|
@@ -62,28 +63,6 @@ import "../components/side-bar/side-bar.scss";
|
|
|
62
63
|
import "../property-grid-theme/property-grid.scss";
|
|
63
64
|
import "../utils/design.scss";
|
|
64
65
|
import "../utils/layout.scss";
|
|
65
|
-
import "../localization/arabic";
|
|
66
|
-
import "../localization/danish";
|
|
67
|
-
import "../localization/french";
|
|
68
|
-
import "../localization/german";
|
|
69
|
-
import "../localization/finnish";
|
|
70
|
-
import "../localization/italian";
|
|
71
|
-
import "../localization/indonesian";
|
|
72
|
-
import "../localization/korean";
|
|
73
|
-
import "../localization/persian";
|
|
74
|
-
import "../localization/polish";
|
|
75
|
-
import "../localization/portuguese";
|
|
76
|
-
import "../localization/simplified-chinese";
|
|
77
|
-
import "../localization/spanish";
|
|
78
|
-
import "../localization/swedish";
|
|
79
|
-
import "../localization/traditional-chinese";
|
|
80
|
-
import "../localization/turkish";
|
|
81
|
-
import "../localization/norwegian";
|
|
82
|
-
import "../localization/hungarian";
|
|
83
|
-
import "../localization/russian";
|
|
84
|
-
import "../localization/tajik";
|
|
85
|
-
import "../localization/dutch";
|
|
86
|
-
import "../localization/croatian";
|
|
87
66
|
|
|
88
67
|
export declare var enStrings: {
|
|
89
68
|
survey: {
|
|
@@ -198,6 +177,7 @@ export declare var enStrings: {
|
|
|
198
177
|
translationLanguages: string;
|
|
199
178
|
translationAddLanguage: string;
|
|
200
179
|
translationShowAllStrings: string;
|
|
180
|
+
translationShowUsedStringsOnly: string;
|
|
201
181
|
translationShowAllPages: string;
|
|
202
182
|
translationNoStrings: string;
|
|
203
183
|
translationExportToSCVButton: string;
|
|
@@ -1033,6 +1013,7 @@ export declare var defaultStrings: {
|
|
|
1033
1013
|
translationLanguages: string;
|
|
1034
1014
|
translationAddLanguage: string;
|
|
1035
1015
|
translationShowAllStrings: string;
|
|
1016
|
+
translationShowUsedStringsOnly: string;
|
|
1036
1017
|
translationShowAllPages: string;
|
|
1037
1018
|
translationNoStrings: string;
|
|
1038
1019
|
translationExportToSCVButton: string;
|
|
@@ -3131,6 +3112,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
3131
3112
|
protected hasErrorInUI(): boolean;
|
|
3132
3113
|
protected getExpressionText(): string;
|
|
3133
3114
|
protected getEditingActions(): Array<SurveyLogicAction>;
|
|
3115
|
+
protected onReadOnlyChanged(): void;
|
|
3134
3116
|
addNew(): void;
|
|
3135
3117
|
editItem(item: SurveyLogicItem): void;
|
|
3136
3118
|
protected onStartEditing(): void;
|
|
@@ -3590,6 +3572,7 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
|
3590
3572
|
deactivate(): boolean;
|
|
3591
3573
|
get selectLanguageOptionsCaption(): any;
|
|
3592
3574
|
get showAllStringsText(): string;
|
|
3575
|
+
get showUsedStringsOnlyText(): string;
|
|
3593
3576
|
get showAllPagesText(): string;
|
|
3594
3577
|
get exportToCSVText(): string;
|
|
3595
3578
|
get importFromCSVText(): string;
|
|
@@ -3645,6 +3628,7 @@ export declare class SurveyLogicUI extends SurveyLogic {
|
|
|
3645
3628
|
addNewUI(): void;
|
|
3646
3629
|
toggleExpressionEditorIsFastEntry(): void;
|
|
3647
3630
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
3631
|
+
protected onReadOnlyChanged(): void;
|
|
3648
3632
|
get expressionEditor(): ConditionEditor;
|
|
3649
3633
|
get itemEditor(): LogicItemEditor;
|
|
3650
3634
|
getExpressionEditor(item: SurveyLogicItem): ConditionEditor;
|
|
@@ -4405,6 +4389,7 @@ export declare class LogoImageViewModel extends Base {
|
|
|
4405
4389
|
|
|
4406
4390
|
export declare class StringEditorViewModelBase extends Base {
|
|
4407
4391
|
errorText: string;
|
|
4392
|
+
focused: boolean;
|
|
4408
4393
|
constructor(locString: LocalizableString, creator: CreatorBase);
|
|
4409
4394
|
setLocString(locString: LocalizableString): void;
|
|
4410
4395
|
checkConstraints(event: any): void;
|
|
@@ -4476,7 +4461,7 @@ export interface IPropertyGridEditor {
|
|
|
4476
4461
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
4477
4462
|
isDefault?: () => boolean;
|
|
4478
4463
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4479
|
-
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions)
|
|
4464
|
+
showModalPropertyEditor?: (editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => any;
|
|
4480
4465
|
onCreated?: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
|
|
4481
4466
|
onAfterRenderQuestion?: (obj: Base, prop: JsonObjectProperty, evtOptions: any) => void;
|
|
4482
4467
|
createPropertyEditorSetup?: (obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => IPropertyEditorSetup;
|
|
@@ -4743,7 +4728,7 @@ export declare class PropertyGridEditorBindings extends PropertyGridEditor {
|
|
|
4743
4728
|
fit(prop: JsonObjectProperty): boolean;
|
|
4744
4729
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4745
4730
|
onMatrixCellCreated(obj: Base, options: any): void;
|
|
4746
|
-
|
|
4731
|
+
onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
|
|
4747
4732
|
}
|
|
4748
4733
|
|
|
4749
4734
|
export declare class PropertyGridViewModel<T extends SurveyModel> extends Base {
|
|
@@ -4936,7 +4921,6 @@ export declare var propertyGridCss: {
|
|
|
4936
4921
|
itemSvgIconId: string;
|
|
4937
4922
|
labelChecked: string;
|
|
4938
4923
|
itemControl: string;
|
|
4939
|
-
itemDecorator: string;
|
|
4940
4924
|
controlLabel: string;
|
|
4941
4925
|
materialDecorator: string;
|
|
4942
4926
|
other: string;
|
|
@@ -4970,7 +4954,6 @@ export declare var propertyGridCss: {
|
|
|
4970
4954
|
svgIconId: string;
|
|
4971
4955
|
label: string;
|
|
4972
4956
|
disabledLabel: string;
|
|
4973
|
-
itemDecorator: string;
|
|
4974
4957
|
materialDecorator: string;
|
|
4975
4958
|
};
|
|
4976
4959
|
text: {
|
|
@@ -5888,8 +5871,8 @@ export declare class LogicItemEditor extends PropertyEditorSetupValue {
|
|
|
5888
5871
|
get isModified(): boolean;
|
|
5889
5872
|
get panel(): QuestionPanelDynamicModel;
|
|
5890
5873
|
get panels(): Array<PanelModel>;
|
|
5891
|
-
|
|
5892
|
-
|
|
5874
|
+
getActionModelByPanel(panel: PanelModel): LogicActionModelBase;
|
|
5875
|
+
setActionModelByPanel(panel: PanelModel, actionModel: LogicActionModelBase): void;
|
|
5893
5876
|
get context(): Question;
|
|
5894
5877
|
set context(val: Question);
|
|
5895
5878
|
protected getSurveyJSON(): any;
|
|
@@ -5939,7 +5922,7 @@ export interface IPropertyGridEditor {
|
|
|
5939
5922
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
5940
5923
|
isDefault?: () => boolean;
|
|
5941
5924
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
5942
|
-
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions)
|
|
5925
|
+
showModalPropertyEditor?: (editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => any;
|
|
5943
5926
|
onCreated?: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
|
|
5944
5927
|
onAfterRenderQuestion?: (obj: Base, prop: JsonObjectProperty, evtOptions: any) => void;
|
|
5945
5928
|
createPropertyEditorSetup?: (obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions) => IPropertyEditorSetup;
|
|
@@ -6084,3 +6067,37 @@ export declare class PropertyGridEditorQuestionValue extends PropertyGridEditorQ
|
|
|
6084
6067
|
protected getItemValue(question: Question): any;
|
|
6085
6068
|
}
|
|
6086
6069
|
|
|
6070
|
+
export declare class LogicActionModelBase {
|
|
6071
|
+
protected panel: PanelModel;
|
|
6072
|
+
initialLogicAction: SurveyLogicAction;
|
|
6073
|
+
logicType: SurveyLogicType;
|
|
6074
|
+
isTrigger: boolean;
|
|
6075
|
+
currentLogicAction: SurveyLogicAction;
|
|
6076
|
+
static createActionModel(panel: PanelModel, logicAction: SurveyLogicAction, logicType: SurveyLogicType, selectorElementsHash: any): LogicActionModelBase;
|
|
6077
|
+
constructor(panel: PanelModel, initialLogicAction: SurveyLogicAction, logicType: SurveyLogicType);
|
|
6078
|
+
updateCurrentLogicAction(survey: SurveyModel): boolean;
|
|
6079
|
+
afterUpdateInitialLogicAction(): void;
|
|
6080
|
+
resetElements(): void;
|
|
6081
|
+
getSelectedElement(): string;
|
|
6082
|
+
updateInitialLogicAction(): void;
|
|
6083
|
+
setInitialElementValue(question: QuestionDropdownModel, action: SurveyLogicAction, selectedQuestion: string): void;
|
|
6084
|
+
}
|
|
6085
|
+
export declare class LogicActionModel extends LogicActionModelBase {
|
|
6086
|
+
constructor(panel: PanelModel, logicAction: SurveyLogicAction, logicType: SurveyLogicType, selectorElementsHash: any);
|
|
6087
|
+
updateCurrentLogicAction(survey: SurveyModel): boolean;
|
|
6088
|
+
resetElements(): void;
|
|
6089
|
+
updatePanelElements(selectedElement: string, choices: Array<ItemValue>): void;
|
|
6090
|
+
getSelectedElement(): string;
|
|
6091
|
+
}
|
|
6092
|
+
export declare class LogicActionTriggerModel extends LogicActionModelBase {
|
|
6093
|
+
isTrigger: boolean;
|
|
6094
|
+
constructor(panel: PanelModel, logicAction: SurveyLogicAction, logicType: SurveyLogicType);
|
|
6095
|
+
afterUpdateInitialLogicAction(): void;
|
|
6096
|
+
updateCurrentLogicAction(survey: SurveyModel): boolean;
|
|
6097
|
+
updatePanel(propertyName: string, newValue: any, options: ISurveyCreatorOptions, survey: SurveyModel): void;
|
|
6098
|
+
setPanelObj(obj: Base): void;
|
|
6099
|
+
resetElements(): void;
|
|
6100
|
+
updatePanelElements(selectedElement: string, options?: ISurveyCreatorOptions): void;
|
|
6101
|
+
getSelectedElement(): string;
|
|
6102
|
+
}
|
|
6103
|
+
|