survey-creator-core 1.9.49 → 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 +23 -8
- package/survey-creator-core.d.ts +64 -32
- package/survey-creator-core.i18n.js +4 -4
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +373 -213
- package/survey-creator-core.min.css +3 -3
- package/survey-creator-core.min.js +3 -3
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
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
|
*/
|
|
6
6
|
import { Base, JsonObjectProperty, Question, SurveyModel, ItemValue } from "survey-core";
|
|
7
|
-
import { MatrixDropdownColumn, IAction, Action,
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import { ArrayChanges, ImageItemValue, HashTable, QuestionMatrixDynamicModel
|
|
14
|
-
import { QuestionMatrixDropdownModel, QuestionPanelDynamicModel, QuestionCommentModel, MatrixDynamicRowModel } from "survey-core";
|
|
7
|
+
import { MatrixDropdownColumn, IAction, Action, ILocalizableOwner, LocalizableString } from "survey-core";
|
|
8
|
+
import { ActionContainer, DragDropSurveyElements, DragDropChoices, Event, AdaptiveActionContainer } from "survey-core";
|
|
9
|
+
import { PageModel, IElement, IPanel, ISurveyElement, SurveyElement } from "survey-core";
|
|
10
|
+
import { QuestionSelectBase, Operand, DragOrClickHelper, PanelModel, QuestionDropdownModel } from "survey-core";
|
|
11
|
+
import { ListModel, PopupModel, EventBase, PanelModelBase, QuestionNonValue } from "survey-core";
|
|
12
|
+
import { SurveyTemplateRendererTemplateData, QuestionRatingModel, QuestionRowModel, ComputedUpdater, QuestionCheckboxModel } from "survey-core";
|
|
13
|
+
import { ILocalizableString, ArrayChanges, ImageItemValue, HashTable, QuestionMatrixDynamicModel } from "survey-core";
|
|
14
|
+
import { QuestionMatrixModel, QuestionMatrixDropdownModel, QuestionPanelDynamicModel, QuestionCommentModel, MatrixDynamicRowModel } from "survey-core";
|
|
15
15
|
|
|
16
16
|
export { editorLocalization as localization };
|
|
17
17
|
|
|
@@ -455,11 +455,7 @@ export interface ICreatorPlugin {
|
|
|
455
455
|
onDesignerSurveyPropertyChanged?: (obj: Base, propName: string) => void;
|
|
456
456
|
model: Base;
|
|
457
457
|
}
|
|
458
|
-
export interface
|
|
459
|
-
locTitleName?: string;
|
|
460
|
-
locTooltipName?: string;
|
|
461
|
-
}
|
|
462
|
-
export interface ITabbedMenuItem extends ICreatorAction {
|
|
458
|
+
export interface ITabbedMenuItem extends IAction {
|
|
463
459
|
componentContent: string;
|
|
464
460
|
renderTab?: any;
|
|
465
461
|
}
|
|
@@ -487,17 +483,19 @@ export declare class ConditionEditorItemsBuilder {
|
|
|
487
483
|
constructor(hasValue?: (name: string) => boolean);
|
|
488
484
|
build(text: string): Array<ConditionEditorItem>;
|
|
489
485
|
}
|
|
490
|
-
export declare class CreatorAction extends Action
|
|
491
|
-
constructor(
|
|
492
|
-
locTitleName: string;
|
|
493
|
-
locTooltipName: string;
|
|
494
|
-
updateTitle(): void;
|
|
486
|
+
export declare class CreatorAction extends Action {
|
|
487
|
+
constructor(innerItem: IAction);
|
|
495
488
|
}
|
|
496
489
|
/*
|
|
497
490
|
* Base class for Survey Creator.
|
|
498
491
|
*/
|
|
499
|
-
export declare class CreatorBase extends Base implements ISurveyCreatorOptions, ICreatorSelectionOwner {
|
|
492
|
+
export declare class CreatorBase extends Base implements ISurveyCreatorOptions, ICreatorSelectionOwner, ILocalizableOwner {
|
|
500
493
|
constructor(options: ICreatorOptions, options2?: ICreatorOptions);
|
|
494
|
+
getMarkdownHtml(text: string, name: string): string;
|
|
495
|
+
getRenderer(name: string): string;
|
|
496
|
+
getRendererContext(locStr: LocalizableString): any;
|
|
497
|
+
getProcessedText(text: string): string;
|
|
498
|
+
getLocale(): string;
|
|
501
499
|
/*
|
|
502
500
|
* Specifies whether to display the Designer tab.
|
|
503
501
|
*
|
|
@@ -1226,6 +1224,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1226
1224
|
*/
|
|
1227
1225
|
get locale(): string;
|
|
1228
1226
|
set locale(val: string);
|
|
1227
|
+
locStrsChanged(): void;
|
|
1229
1228
|
/*
|
|
1230
1229
|
* Enables the read-only mode. If you set this property to `true`, users cannot change the initial survey configuration.
|
|
1231
1230
|
*
|
|
@@ -1430,7 +1429,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1430
1429
|
protected deleteObject(obj: any): void;
|
|
1431
1430
|
protected updateConditionsOnRemove(obj: any): void;
|
|
1432
1431
|
isElementSelected(element: Base): boolean;
|
|
1433
|
-
selectElement(element: any, propertyName?: string, focus?: boolean): void;
|
|
1432
|
+
selectElement(element: any, propertyName?: string, focus?: boolean, startEdit?: boolean): void;
|
|
1434
1433
|
protected get designerPropertyGrid(): any;
|
|
1435
1434
|
/*
|
|
1436
1435
|
* Collapse certain property editor tab (category) in properties panel/grid
|
|
@@ -1519,7 +1518,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1519
1518
|
get addNewQuestionText(): any;
|
|
1520
1519
|
getQuestionTypeSelectorModel(beforeAdd: (type: string) => void, panel?: IPanel): any;
|
|
1521
1520
|
addNewQuestionInPage(beforeAdd: (string: any) => void, panel?: IPanel, type?: string): void;
|
|
1522
|
-
createIActionBarItemByClass(className: string, title: string, iconName: string): Action;
|
|
1521
|
+
createIActionBarItemByClass(className: string, title: string, iconName: string, needSeparator: boolean): Action;
|
|
1523
1522
|
onElementMenuItemsChanged(element: any, items: any): void;
|
|
1524
1523
|
getElementAllowOperations(element: SurveyElement): any;
|
|
1525
1524
|
getNextItemValue(question: QuestionSelectBase): string | number;
|
|
@@ -1634,6 +1633,7 @@ export declare class ItemValueWrapperViewModel extends Base {
|
|
|
1634
1633
|
get isDraggable(): boolean;
|
|
1635
1634
|
isDraggableItem(item: ItemValue): boolean;
|
|
1636
1635
|
add(model: ItemValueWrapperViewModel): void;
|
|
1636
|
+
addNewItem(item: ItemValue, question: QuestionSelectBase, creator: CreatorBase): void;
|
|
1637
1637
|
remove(model: ItemValueWrapperViewModel): void;
|
|
1638
1638
|
get allowRemove(): boolean;
|
|
1639
1639
|
get tooltip(): string;
|
|
@@ -1870,11 +1870,13 @@ export declare class QuestionRatingAdornerViewModel extends Base {
|
|
|
1870
1870
|
* The list of Toolbox items.
|
|
1871
1871
|
*/
|
|
1872
1872
|
export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToolboxItem> implements IQuestionToolbox {
|
|
1873
|
-
constructor(supportedQuestions?: any, creator?: CreatorBase);
|
|
1873
|
+
constructor(supportedQuestions?: any, creator?: CreatorBase, useDefaultCategories?: boolean);
|
|
1874
1874
|
creator: CreatorBase;
|
|
1875
1875
|
static hiddenTypes: any;
|
|
1876
1876
|
static defaultIconName: string;
|
|
1877
|
+
static defaultCategories: any;
|
|
1877
1878
|
_orderedQuestions: any;
|
|
1879
|
+
showTitleOnCategoryChange: boolean;
|
|
1878
1880
|
static getQuestionDefaultSettings(questionType: string): any;
|
|
1879
1881
|
/*
|
|
1880
1882
|
* Modify this array to change the toolbox items order.
|
|
@@ -1887,6 +1889,7 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
1887
1889
|
copiedItemMaxCount: number;
|
|
1888
1890
|
allowExpandMultipleCategoriesValue: boolean;
|
|
1889
1891
|
keepAllCategoriesExpandedValue: boolean;
|
|
1892
|
+
showCategoryTitlesValue: boolean;
|
|
1890
1893
|
dragOrClickHelper: DragOrClickHelper;
|
|
1891
1894
|
/*
|
|
1892
1895
|
* Contains toolbox categories and allows you to modify them.
|
|
@@ -1975,6 +1978,13 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
1975
1978
|
*/
|
|
1976
1979
|
get keepAllCategoriesExpanded(): boolean;
|
|
1977
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);
|
|
1978
1988
|
updateTitles(): void;
|
|
1979
1989
|
/*
|
|
1980
1990
|
* Change the category of the toolbox item
|
|
@@ -1984,6 +1994,10 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
1984
1994
|
* Change categories for several toolbox items.
|
|
1985
1995
|
*/
|
|
1986
1996
|
changeCategories(changedItems: any): void;
|
|
1997
|
+
/*
|
|
1998
|
+
* Removes categories from the Toolbox.
|
|
1999
|
+
*/
|
|
2000
|
+
removeCategories(): void;
|
|
1987
2001
|
toggleCategoryState(categoryName: string): void;
|
|
1988
2002
|
/*
|
|
1989
2003
|
* Expand a category by its name. If allowExpandMultipleCategories is false (default value), all other categories become collapsed
|
|
@@ -2098,15 +2112,30 @@ export declare class SidebarTabModel extends Base {
|
|
|
2098
2112
|
model: any;
|
|
2099
2113
|
componentName: string;
|
|
2100
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
|
+
}
|
|
2101
2126
|
export declare class StringEditorViewModelBase extends Base {
|
|
2102
2127
|
constructor(locString: LocalizableString, creator: CreatorBase);
|
|
2103
2128
|
blurredByEscape: boolean;
|
|
2104
2129
|
focusedProgram: boolean;
|
|
2105
2130
|
valueBeforeEdit: string;
|
|
2131
|
+
connector: StringEditorConnector;
|
|
2132
|
+
getEditorElement: any;
|
|
2106
2133
|
errorText: string;
|
|
2107
2134
|
focused: boolean;
|
|
2108
2135
|
editAsText: boolean;
|
|
2109
2136
|
compostionInProgress: boolean;
|
|
2137
|
+
afterRender(): void;
|
|
2138
|
+
activate(): void;
|
|
2110
2139
|
setLocString(locString: LocalizableString): void;
|
|
2111
2140
|
checkConstraints(event: any): void;
|
|
2112
2141
|
blurEditor: any;
|
|
@@ -2523,6 +2552,11 @@ export declare class TabDesignerViewModel extends Base {
|
|
|
2523
2552
|
export declare class TabbedMenuContainer extends AdaptiveActionContainer<TabbedMenuItem> {
|
|
2524
2553
|
constructor();
|
|
2525
2554
|
}
|
|
2555
|
+
export declare class TabbedMenuItem extends Action implements ITabbedMenuItem {
|
|
2556
|
+
constructor(item: ITabbedMenuItem);
|
|
2557
|
+
componentContent: string;
|
|
2558
|
+
renderTab: any;
|
|
2559
|
+
}
|
|
2526
2560
|
export declare class TestSurveyTabViewModel extends Base {
|
|
2527
2561
|
constructor(surveyProvider: CreatorBase, startTheme?: any);
|
|
2528
2562
|
json: any;
|
|
@@ -2948,9 +2982,9 @@ export declare class TabJsonEditorBasePlugin implements ICreatorPlugin {
|
|
|
2948
2982
|
}
|
|
2949
2983
|
export declare class TabLogicPlugin implements ICreatorPlugin {
|
|
2950
2984
|
constructor(creator: CreatorBase);
|
|
2951
|
-
filterQuestionAction:
|
|
2952
|
-
filterActionTypeAction:
|
|
2953
|
-
fastEntryAction:
|
|
2985
|
+
filterQuestionAction: Action;
|
|
2986
|
+
filterActionTypeAction: Action;
|
|
2987
|
+
fastEntryAction: Action;
|
|
2954
2988
|
model: SurveyLogicUI;
|
|
2955
2989
|
activate(): void;
|
|
2956
2990
|
update(): void;
|
|
@@ -2962,7 +2996,7 @@ export declare class TabTestPlugin implements ICreatorPlugin {
|
|
|
2962
2996
|
languageSelectorAction: Action;
|
|
2963
2997
|
changeThemePopupModel: any;
|
|
2964
2998
|
changeThemeModel: ListModel;
|
|
2965
|
-
protected changeThemeAction:
|
|
2999
|
+
protected changeThemeAction: Action;
|
|
2966
3000
|
deviceSelectorAction: Action;
|
|
2967
3001
|
orientationSelectorAction: Action;
|
|
2968
3002
|
invisibleToggleAction: Action;
|
|
@@ -3000,11 +3034,6 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
|
3000
3034
|
get importFromCSVText(): string;
|
|
3001
3035
|
createActions(): Array<Action>;
|
|
3002
3036
|
}
|
|
3003
|
-
export declare class TabbedMenuItem extends CreatorAction implements ITabbedMenuItem {
|
|
3004
|
-
constructor(item: ITabbedMenuItem);
|
|
3005
|
-
componentContent: string;
|
|
3006
|
-
renderTab: any;
|
|
3007
|
-
}
|
|
3008
3037
|
export declare class TextareaJsonEditorModel extends JsonEditorBaseModel {
|
|
3009
3038
|
constructor(creator: CreatorBase);
|
|
3010
3039
|
protected _text: string;
|
|
@@ -3071,6 +3100,9 @@ export declare class TranslationItem extends TranslationItemBase {
|
|
|
3071
3100
|
fillLocales(locales: any): void;
|
|
3072
3101
|
toJSON(): any;
|
|
3073
3102
|
mergeLocaleWithDefault(loc: string): void;
|
|
3103
|
+
getPlaceholder(locale: string): string;
|
|
3104
|
+
getTextForExport(loc: string): string;
|
|
3105
|
+
getPlaceholderText(loc: string): string;
|
|
3074
3106
|
}
|
|
3075
3107
|
export declare class UndoRedoAction implements IUndoRedoAction {
|
|
3076
3108
|
constructor(_propertyName: string, _oldValue: any, _newValue: any, _sender: Base);
|