survey-creator-core 1.9.50 → 1.9.51
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 +2 -2
- package/survey-creator-core.css +15 -6
- package/survey-creator-core.d.ts +37 -4
- package/survey-creator-core.i18n.js +4 -4
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +289 -97
- package/survey-creator-core.min.css +2 -2
- 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.51
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
@@ -1429,7 +1429,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1429
1429
|
protected deleteObject(obj: any): void;
|
|
1430
1430
|
protected updateConditionsOnRemove(obj: any): void;
|
|
1431
1431
|
isElementSelected(element: Base): boolean;
|
|
1432
|
-
selectElement(element: any, propertyName?: string, focus?: boolean): void;
|
|
1432
|
+
selectElement(element: any, propertyName?: string, focus?: boolean, startEdit?: boolean): void;
|
|
1433
1433
|
protected get designerPropertyGrid(): any;
|
|
1434
1434
|
/*
|
|
1435
1435
|
* Collapse certain property editor tab (category) in properties panel/grid
|
|
@@ -1518,7 +1518,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1518
1518
|
get addNewQuestionText(): any;
|
|
1519
1519
|
getQuestionTypeSelectorModel(beforeAdd: (type: string) => void, panel?: IPanel): any;
|
|
1520
1520
|
addNewQuestionInPage(beforeAdd: (string: any) => void, panel?: IPanel, type?: string): void;
|
|
1521
|
-
createIActionBarItemByClass(className: string, title: string, iconName: string): Action;
|
|
1521
|
+
createIActionBarItemByClass(className: string, title: string, iconName: string, needSeparator: boolean): Action;
|
|
1522
1522
|
onElementMenuItemsChanged(element: any, items: any): void;
|
|
1523
1523
|
getElementAllowOperations(element: SurveyElement): any;
|
|
1524
1524
|
getNextItemValue(question: QuestionSelectBase): string | number;
|
|
@@ -1633,6 +1633,7 @@ export declare class ItemValueWrapperViewModel extends Base {
|
|
|
1633
1633
|
get isDraggable(): boolean;
|
|
1634
1634
|
isDraggableItem(item: ItemValue): boolean;
|
|
1635
1635
|
add(model: ItemValueWrapperViewModel): void;
|
|
1636
|
+
addNewItem(item: ItemValue, question: QuestionSelectBase, creator: CreatorBase): void;
|
|
1636
1637
|
remove(model: ItemValueWrapperViewModel): void;
|
|
1637
1638
|
get allowRemove(): boolean;
|
|
1638
1639
|
get tooltip(): string;
|
|
@@ -1869,11 +1870,13 @@ export declare class QuestionRatingAdornerViewModel extends Base {
|
|
|
1869
1870
|
* The list of Toolbox items.
|
|
1870
1871
|
*/
|
|
1871
1872
|
export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToolboxItem> implements IQuestionToolbox {
|
|
1872
|
-
constructor(supportedQuestions?: any, creator?: CreatorBase);
|
|
1873
|
+
constructor(supportedQuestions?: any, creator?: CreatorBase, useDefaultCategories?: boolean);
|
|
1873
1874
|
creator: CreatorBase;
|
|
1874
1875
|
static hiddenTypes: any;
|
|
1875
1876
|
static defaultIconName: string;
|
|
1877
|
+
static defaultCategories: any;
|
|
1876
1878
|
_orderedQuestions: any;
|
|
1879
|
+
showTitleOnCategoryChange: boolean;
|
|
1877
1880
|
static getQuestionDefaultSettings(questionType: string): any;
|
|
1878
1881
|
/*
|
|
1879
1882
|
* Modify this array to change the toolbox items order.
|
|
@@ -1886,6 +1889,7 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
1886
1889
|
copiedItemMaxCount: number;
|
|
1887
1890
|
allowExpandMultipleCategoriesValue: boolean;
|
|
1888
1891
|
keepAllCategoriesExpandedValue: boolean;
|
|
1892
|
+
showCategoryTitlesValue: boolean;
|
|
1889
1893
|
dragOrClickHelper: DragOrClickHelper;
|
|
1890
1894
|
/*
|
|
1891
1895
|
* Contains toolbox categories and allows you to modify them.
|
|
@@ -1974,6 +1978,13 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
1974
1978
|
*/
|
|
1975
1979
|
get keepAllCategoriesExpanded(): boolean;
|
|
1976
1980
|
set keepAllCategoriesExpanded(val: boolean);
|
|
1981
|
+
/*
|
|
1982
|
+
* Specifies whether to display category titles in the Toolbox.
|
|
1983
|
+
*
|
|
1984
|
+
* If you disable this property, the Toolbox hides the titles but continues to display horizontal lines that divide categories. To remove these lines as well, call the `removeCategories()` method.
|
|
1985
|
+
*/
|
|
1986
|
+
get showCategoryTitles(): boolean;
|
|
1987
|
+
set showCategoryTitles(val: boolean);
|
|
1977
1988
|
updateTitles(): void;
|
|
1978
1989
|
/*
|
|
1979
1990
|
* Change the category of the toolbox item
|
|
@@ -1983,6 +1994,10 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
1983
1994
|
* Change categories for several toolbox items.
|
|
1984
1995
|
*/
|
|
1985
1996
|
changeCategories(changedItems: any): void;
|
|
1997
|
+
/*
|
|
1998
|
+
* Removes categories from the Toolbox.
|
|
1999
|
+
*/
|
|
2000
|
+
removeCategories(): void;
|
|
1986
2001
|
toggleCategoryState(categoryName: string): void;
|
|
1987
2002
|
/*
|
|
1988
2003
|
* Expand a category by its name. If allowExpandMultipleCategories is false (default value), all other categories become collapsed
|
|
@@ -2097,15 +2112,30 @@ export declare class SidebarTabModel extends Base {
|
|
|
2097
2112
|
model: any;
|
|
2098
2113
|
componentName: string;
|
|
2099
2114
|
}
|
|
2115
|
+
export declare class StringEditorConnector extends Base {
|
|
2116
|
+
constructor(locString: LocalizableString);
|
|
2117
|
+
static get(locString: LocalizableString): StringEditorConnector;
|
|
2118
|
+
setAutoFocus(): void;
|
|
2119
|
+
hasEditCompleteHandler: boolean;
|
|
2120
|
+
focusOnEditor: boolean;
|
|
2121
|
+
activateEditor(): void;
|
|
2122
|
+
setItemValue(item: ItemValueWrapperViewModel): void;
|
|
2123
|
+
onDoActivate: Event<(sender: StringEditorViewModelBase, options: any) => any, any>;
|
|
2124
|
+
onEditComplete: Event<(sender: StringEditorViewModelBase, options: any) => any, any>;
|
|
2125
|
+
}
|
|
2100
2126
|
export declare class StringEditorViewModelBase extends Base {
|
|
2101
2127
|
constructor(locString: LocalizableString, creator: CreatorBase);
|
|
2102
2128
|
blurredByEscape: boolean;
|
|
2103
2129
|
focusedProgram: boolean;
|
|
2104
2130
|
valueBeforeEdit: string;
|
|
2131
|
+
connector: StringEditorConnector;
|
|
2132
|
+
getEditorElement: any;
|
|
2105
2133
|
errorText: string;
|
|
2106
2134
|
focused: boolean;
|
|
2107
2135
|
editAsText: boolean;
|
|
2108
2136
|
compostionInProgress: boolean;
|
|
2137
|
+
afterRender(): void;
|
|
2138
|
+
activate(): void;
|
|
2109
2139
|
setLocString(locString: LocalizableString): void;
|
|
2110
2140
|
checkConstraints(event: any): void;
|
|
2111
2141
|
blurEditor: any;
|
|
@@ -3070,6 +3100,9 @@ export declare class TranslationItem extends TranslationItemBase {
|
|
|
3070
3100
|
fillLocales(locales: any): void;
|
|
3071
3101
|
toJSON(): any;
|
|
3072
3102
|
mergeLocaleWithDefault(loc: string): void;
|
|
3103
|
+
getPlaceholder(locale: string): string;
|
|
3104
|
+
getTextForExport(loc: string): string;
|
|
3105
|
+
getPlaceholderText(loc: string): string;
|
|
3073
3106
|
}
|
|
3074
3107
|
export declare class UndoRedoAction implements IUndoRedoAction {
|
|
3075
3108
|
constructor(_propertyName: string, _oldValue: any, _newValue: any, _sender: Base);
|