survey-creator-core 1.9.18 → 1.9.21
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/README.md +1 -1
- package/package.json +1 -1
- package/survey-creator-core.css +145 -88
- package/survey-creator-core.d.ts +56 -13
- package/survey-creator-core.i18n.js +2716 -26
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +353 -161
- package/survey-creator-core.min.css +15 -15
- package/survey-creator-core.min.js +3 -3
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.
|
|
2
|
+
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.21
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
@@ -139,6 +139,18 @@ export interface ISurveyQuestionEditorDefinition {
|
|
|
139
139
|
properties?: any;
|
|
140
140
|
tabs?: any;
|
|
141
141
|
}
|
|
142
|
+
export interface IPropertyEditorInfo {
|
|
143
|
+
name: string;
|
|
144
|
+
title?: string;
|
|
145
|
+
tab?: string;
|
|
146
|
+
placeholder?: string;
|
|
147
|
+
}
|
|
148
|
+
export interface IPropertyTabInfo {
|
|
149
|
+
name: string;
|
|
150
|
+
index?: number;
|
|
151
|
+
title?: string;
|
|
152
|
+
visible?: boolean;
|
|
153
|
+
}
|
|
142
154
|
export interface IPropertyEditorSetup {
|
|
143
155
|
editSurvey: SurveyModel;
|
|
144
156
|
apply(): boolean;
|
|
@@ -311,7 +323,6 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
311
323
|
*/
|
|
312
324
|
isAutoSave: boolean;
|
|
313
325
|
showOptions: boolean;
|
|
314
|
-
showState: boolean;
|
|
315
326
|
showSearch: boolean;
|
|
316
327
|
generateValidJSON: boolean;
|
|
317
328
|
currentAddQuestionType: string;
|
|
@@ -827,12 +838,13 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
827
838
|
get showToolbox(): boolean;
|
|
828
839
|
set showToolbox(val: boolean);
|
|
829
840
|
showSidebarValue: boolean;
|
|
830
|
-
|
|
841
|
+
onShowSidebarVisibilityChanged: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
831
842
|
/*
|
|
832
843
|
* Set this this property grid false to hide the property grid.
|
|
833
844
|
*/
|
|
834
845
|
get showSidebar(): boolean;
|
|
835
846
|
set showSidebar(val: boolean);
|
|
847
|
+
setShowSidebar(value: boolean, isManualMode?: boolean): void;
|
|
836
848
|
onShowPropertyGridVisiblityChanged: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
837
849
|
get showPropertyGrid(): boolean;
|
|
838
850
|
set showPropertyGrid(val: boolean);
|
|
@@ -897,6 +909,8 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
897
909
|
existingPages: any;
|
|
898
910
|
protected initSurveyWithJSON(json: any, clearState: boolean): void;
|
|
899
911
|
protected initDragDrop(): void;
|
|
912
|
+
onBeforeDrop: Event<() => any, any>;
|
|
913
|
+
onAfterDrop: Event<() => any, any>;
|
|
900
914
|
updateElementsOnLocaleChanged(obj: Base, propertyName: string): void;
|
|
901
915
|
updateConditionsOnQuestionNameChanged(obj: Base, propertyName: string, oldValue: any): void;
|
|
902
916
|
updatePagesController(sender: Base, name: string): void;
|
|
@@ -1085,7 +1099,6 @@ export declare class CreatorResponsivityManager {
|
|
|
1085
1099
|
resizeObserver: any;
|
|
1086
1100
|
currentWidth: any;
|
|
1087
1101
|
prevShowToolbox: any;
|
|
1088
|
-
prevToolboxIsCompact: any;
|
|
1089
1102
|
prevShowPageNavigator: any;
|
|
1090
1103
|
screenWidth: any;
|
|
1091
1104
|
devicePixelRatio: any;
|
|
@@ -1097,6 +1110,7 @@ export declare class DesignTimeSurveyModel extends SurveyModel {
|
|
|
1097
1110
|
creator: CreatorBase;
|
|
1098
1111
|
isPopupEditorContent: boolean;
|
|
1099
1112
|
getElementWrapperComponentName(element: any, reason?: string): string;
|
|
1113
|
+
getQuestionContentWrapperComponentName(element: any, reason?: string): string;
|
|
1100
1114
|
getElementWrapperComponentData(element: any, reason?: string): any;
|
|
1101
1115
|
getRowWrapperComponentName(row: QuestionRowModel): string;
|
|
1102
1116
|
getRowWrapperComponentData(row: QuestionRowModel): any;
|
|
@@ -1414,6 +1428,7 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
1414
1428
|
hasCategories: boolean;
|
|
1415
1429
|
canCollapseCategories: boolean;
|
|
1416
1430
|
isCompact: boolean;
|
|
1431
|
+
forceCompact: boolean;
|
|
1417
1432
|
setLocation(toolboxLocation: any): void;
|
|
1418
1433
|
/*
|
|
1419
1434
|
* The Array of Toolbox items as Text JSON.
|
|
@@ -1560,7 +1575,7 @@ export declare class SelectionHistory extends Base {
|
|
|
1560
1575
|
onObjSelected(obj: Base): void;
|
|
1561
1576
|
}
|
|
1562
1577
|
export declare class SidebarModel extends Base {
|
|
1563
|
-
constructor(creator: CreatorBase
|
|
1578
|
+
constructor(creator: CreatorBase);
|
|
1564
1579
|
toolbar: any;
|
|
1565
1580
|
_expandAction: Action;
|
|
1566
1581
|
_collapseAction: Action;
|
|
@@ -2568,16 +2583,24 @@ export declare class DefaultValueEditor extends PropertyEditorSetupValue {
|
|
|
2568
2583
|
protected getSurveyCreationReason(): string;
|
|
2569
2584
|
apply(): boolean;
|
|
2570
2585
|
}
|
|
2571
|
-
export declare class
|
|
2586
|
+
export declare class FastEntryEditorBase extends PropertyEditorSetupValue {
|
|
2572
2587
|
constructor(choices: any, options?: ISurveyCreatorOptions, className?: string, names?: any);
|
|
2573
2588
|
choices: any;
|
|
2574
|
-
|
|
2575
|
-
|
|
2589
|
+
protected commentValue: QuestionCommentModel;
|
|
2590
|
+
protected static calcBeforeApplyItemsArray(dest: any, src: any, names: any): void;
|
|
2591
|
+
static applyItemsArray(dest: any, src: any, names?: any): void;
|
|
2576
2592
|
protected getSurveyJSON(): any;
|
|
2577
2593
|
protected getSurveyCreationReason(): string;
|
|
2578
|
-
get comment(): QuestionCommentModel;
|
|
2579
2594
|
apply(): boolean;
|
|
2595
|
+
protected convertTextToItemValues(text: string): Array<ItemValue>;
|
|
2596
|
+
get comment(): QuestionCommentModel;
|
|
2597
|
+
protected getChoicesCount(): number;
|
|
2598
|
+
protected getPlaceHolder(): string;
|
|
2599
|
+
protected get isValueUnique(): boolean;
|
|
2600
|
+
protected getFirstUniqueValue(): boolean;
|
|
2580
2601
|
setComment(): void;
|
|
2602
|
+
protected collectNames(item: any, type: string, separatorCounter: number): string;
|
|
2603
|
+
protected convertItemValuesToText(): string;
|
|
2581
2604
|
}
|
|
2582
2605
|
export declare class LogicItemEditor extends PropertyEditorSetupValue {
|
|
2583
2606
|
constructor(editableItem: SurveyLogicItem, options?: ISurveyCreatorOptions);
|
|
@@ -2660,7 +2683,7 @@ export declare class PropertyGridEditorMatrix extends PropertyGridEditor {
|
|
|
2660
2683
|
protected hasDetailPanel(): boolean;
|
|
2661
2684
|
hasPropertiesInDetail: boolean;
|
|
2662
2685
|
protected setupMatrixQuestion(obj: Base, matrix: QuestionMatrixDynamicModel, prop: JsonObjectProperty): void;
|
|
2663
|
-
protected getAllowRowDragDrop(): boolean;
|
|
2686
|
+
protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
|
|
2664
2687
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
2665
2688
|
protected getMatrixJSON(obj: Base, prop: JsonObjectProperty, propNames: any, options: ISurveyCreatorOptions): any;
|
|
2666
2689
|
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
@@ -2730,6 +2753,13 @@ export declare class DefaultArrayValueEditor extends DefaultValueEditor {
|
|
|
2730
2753
|
protected getQuestionValue(): any;
|
|
2731
2754
|
protected getEditValue(): any;
|
|
2732
2755
|
}
|
|
2756
|
+
export declare class FastEntryEditor extends FastEntryEditorBase {
|
|
2757
|
+
constructor(choices: any, options?: ISurveyCreatorOptions, className?: string, names?: any);
|
|
2758
|
+
choices: any;
|
|
2759
|
+
static applyItemValueArray(dest: any, src: any, names?: any): void;
|
|
2760
|
+
apply(): boolean;
|
|
2761
|
+
protected convertItemValuesToText(): string;
|
|
2762
|
+
}
|
|
2733
2763
|
export declare class PropertyGridCellsEditor extends PropertyGridValueEditorBase {
|
|
2734
2764
|
constructor();
|
|
2735
2765
|
fit(prop: JsonObjectProperty): boolean;
|
|
@@ -2748,6 +2778,11 @@ export declare class PropertyGridEditorHtml extends PropertyGridEditorStringBase
|
|
|
2748
2778
|
fit(prop: JsonObjectProperty): boolean;
|
|
2749
2779
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
2750
2780
|
}
|
|
2781
|
+
export declare class PropertyGridEditorImageSize extends PropertyGridEditorNumber {
|
|
2782
|
+
constructor();
|
|
2783
|
+
fit(prop: JsonObjectProperty): boolean;
|
|
2784
|
+
onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
|
|
2785
|
+
}
|
|
2751
2786
|
export declare class PropertyGridEditorMatrixCalculatedValues extends PropertyGridEditorMatrix {
|
|
2752
2787
|
constructor();
|
|
2753
2788
|
fit(prop: JsonObjectProperty): boolean;
|
|
@@ -2765,7 +2800,7 @@ export declare class PropertyGridEditorMatrixColumns extends PropertyGridEditorM
|
|
|
2765
2800
|
protected getKeyValue(): string;
|
|
2766
2801
|
protected getBaseValue(prop: JsonObjectProperty): string;
|
|
2767
2802
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
2768
|
-
protected getAllowRowDragDrop(): boolean;
|
|
2803
|
+
protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
|
|
2769
2804
|
}
|
|
2770
2805
|
export declare class PropertyGridEditorMatrixHtmlConditions extends PropertyGridEditorMatrix {
|
|
2771
2806
|
constructor();
|
|
@@ -2777,7 +2812,7 @@ export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEdit
|
|
|
2777
2812
|
constructor();
|
|
2778
2813
|
fit(prop: JsonObjectProperty): boolean;
|
|
2779
2814
|
isPropertyEditorSetupEnabled(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
|
|
2780
|
-
protected getAllowRowDragDrop(): boolean;
|
|
2815
|
+
protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
|
|
2781
2816
|
createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
|
|
2782
2817
|
canClearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
|
|
2783
2818
|
clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
@@ -2803,6 +2838,9 @@ export declare class PropertyGridEditorMatrixMutlipleTextItems extends PropertyG
|
|
|
2803
2838
|
protected getDefaulColumnNames(): Array<any>;
|
|
2804
2839
|
protected getKeyValue(): string;
|
|
2805
2840
|
protected getBaseValue(prop: JsonObjectProperty): string;
|
|
2841
|
+
protected getAllowRowDragDrop(): boolean;
|
|
2842
|
+
createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
|
|
2843
|
+
onMatrixCellCreated(obj: Base, options: any): void;
|
|
2806
2844
|
}
|
|
2807
2845
|
export declare class PropertyGridEditorMatrixPages extends PropertyGridEditorMatrix {
|
|
2808
2846
|
constructor();
|
|
@@ -2813,7 +2851,7 @@ export declare class PropertyGridEditorMatrixPages extends PropertyGridEditorMat
|
|
|
2813
2851
|
protected hasDetailPanel(): boolean;
|
|
2814
2852
|
protected getKeyValue(): string;
|
|
2815
2853
|
protected getBaseValue(prop: JsonObjectProperty): string;
|
|
2816
|
-
protected getAllowRowDragDrop(): boolean;
|
|
2854
|
+
protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
|
|
2817
2855
|
}
|
|
2818
2856
|
export declare class PropertyGridEditorMatrixUrlConditions extends PropertyGridEditorMatrix {
|
|
2819
2857
|
constructor();
|
|
@@ -2902,6 +2940,7 @@ export declare class PropertyGridEditorMatrixTriggers extends PropertyGridEditor
|
|
|
2902
2940
|
fit(prop: JsonObjectProperty): boolean;
|
|
2903
2941
|
protected getObjTypeName(): string;
|
|
2904
2942
|
protected getDefaultClassName(prop: JsonObjectProperty): string;
|
|
2943
|
+
protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
|
|
2905
2944
|
protected getChoices(obj: Base): Array<any>;
|
|
2906
2945
|
}
|
|
2907
2946
|
export declare class PropertyGridEditorMatrixValidators extends PropertyGridEditorMatrixMultipleTypes {
|
|
@@ -2934,9 +2973,11 @@ export declare function wrapTextByCurlyBraces(text: string): string;
|
|
|
2934
2973
|
export declare function getLogicString(name: string): any;
|
|
2935
2974
|
export declare function findAction(actions: any, id: string): IAction;
|
|
2936
2975
|
export declare function updateMatrixLogicExpandAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
|
|
2976
|
+
export declare function updateMatrixLogicRemoveAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
|
|
2937
2977
|
export declare function updateMatrixRemoveAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
|
|
2938
2978
|
export declare function setSurveyJSONForPropertyGrid(json: any, updateOnTyping?: boolean, titleLocationLeft?: boolean): void;
|
|
2939
2979
|
export declare function getElementWrapperComponentName(element: any, reason: string, isPopupEditorContent: boolean): string;
|
|
2980
|
+
export declare function getQuestionContentWrapperComponentName(element: any): string;
|
|
2940
2981
|
export declare function getElementWrapperComponentData(element: any, reason: string, creator: CreatorBase): any;
|
|
2941
2982
|
export declare function getItemValueWrapperComponentName(item: ItemValue, question: QuestionSelectBase): string;
|
|
2942
2983
|
export declare function getItemValueWrapperComponentData(item: ItemValue, question: QuestionSelectBase, creator: CreatorBase): any;
|
|
@@ -2989,6 +3030,8 @@ export declare var settings: {
|
|
|
2989
3030
|
logic: {
|
|
2990
3031
|
visibleActions: any,
|
|
2991
3032
|
logicItemTitleMaxChars: number,
|
|
3033
|
+
openBracket: string,
|
|
3034
|
+
closeBracket: string,
|
|
2992
3035
|
},
|
|
2993
3036
|
/*
|
|
2994
3037
|
* Determines which types of questions the conversion will be available for.
|