survey-creator-core 1.9.48 → 1.9.50
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 +16 -10
- package/survey-creator-core.d.ts +58 -47
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +241 -178
- package/survey-creator-core.min.css +4 -4
- package/survey-creator-core.min.js +2 -2
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.50
|
|
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
|
|
|
@@ -60,7 +60,7 @@ export interface ISurveyCreatorOptions {
|
|
|
60
60
|
startUndoRedoTransaction(): any;
|
|
61
61
|
stopUndoRedoTransaction(): any;
|
|
62
62
|
createSurvey(json: any, reason: string, surveyType?: any): any;
|
|
63
|
-
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any):
|
|
63
|
+
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any): string;
|
|
64
64
|
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
65
65
|
onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
|
|
66
66
|
}
|
|
@@ -455,13 +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
|
-
onUpdateTitle?: any;
|
|
462
|
-
onUpdateTooltip?: any;
|
|
463
|
-
}
|
|
464
|
-
export interface ITabbedMenuItem extends ICreatorAction {
|
|
458
|
+
export interface ITabbedMenuItem extends IAction {
|
|
465
459
|
componentContent: string;
|
|
466
460
|
renderTab?: any;
|
|
467
461
|
}
|
|
@@ -489,19 +483,19 @@ export declare class ConditionEditorItemsBuilder {
|
|
|
489
483
|
constructor(hasValue?: (name: string) => boolean);
|
|
490
484
|
build(text: string): Array<ConditionEditorItem>;
|
|
491
485
|
}
|
|
492
|
-
export declare class CreatorAction extends Action
|
|
493
|
-
constructor(
|
|
494
|
-
locTitleName: string;
|
|
495
|
-
locTooltipName: string;
|
|
496
|
-
onUpdateTitle: any;
|
|
497
|
-
onUpdateTooltip: any;
|
|
498
|
-
updateTitle(): void;
|
|
486
|
+
export declare class CreatorAction extends Action {
|
|
487
|
+
constructor(innerItem: IAction);
|
|
499
488
|
}
|
|
500
489
|
/*
|
|
501
490
|
* Base class for Survey Creator.
|
|
502
491
|
*/
|
|
503
|
-
export declare class CreatorBase extends Base implements ISurveyCreatorOptions, ICreatorSelectionOwner {
|
|
492
|
+
export declare class CreatorBase extends Base implements ISurveyCreatorOptions, ICreatorSelectionOwner, ILocalizableOwner {
|
|
504
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;
|
|
505
499
|
/*
|
|
506
500
|
* Specifies whether to display the Designer tab.
|
|
507
501
|
*
|
|
@@ -667,6 +661,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
667
661
|
* - `"page-selector"` - Page selector on the design surface
|
|
668
662
|
* - `"condition-editor"` - Condition pop-up window or drop-down menus that allow users to select questions in the Logic tab
|
|
669
663
|
* - `"logic-tab:question-filter"` - Question filter in the Logic tab
|
|
664
|
+
* - `"logic-tab:question-selector"` - Question selector on editing actions in the Logic tab
|
|
670
665
|
* - `"preview-tab:page-list"` - Page list in the Preview tab
|
|
671
666
|
* - `"preview-tab:selected-page"` - Selected page name in the Preview tab
|
|
672
667
|
* - `"property-grid:property-editor"` - Property editors in the Property Grid
|
|
@@ -869,6 +864,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
869
864
|
* - options.propertyName the name of the edited property.
|
|
870
865
|
* - options.editor the instance of Property Editor.
|
|
871
866
|
* - options.list the list of the questions available for condition
|
|
867
|
+
* - options.sortOrder "asc" (default) | "none". Change it to "none", if you don't want to sort your condition list
|
|
872
868
|
*/
|
|
873
869
|
onConditionQuestionsGetList: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
874
870
|
/*
|
|
@@ -943,6 +939,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
943
939
|
* - sender the survey creator object that fires the event
|
|
944
940
|
* - options.question a new added survey question. Survey.Question object
|
|
945
941
|
* - options.page the survey Page object where question has been added.
|
|
942
|
+
* - options.reason how question has been added via UI: ADDED_FROM_TOOLBOX, ADDED_FROM_PAGEBUTTON, ELEMENT_COPIED.
|
|
946
943
|
*/
|
|
947
944
|
onQuestionAdded: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
948
945
|
/*
|
|
@@ -1227,6 +1224,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1227
1224
|
*/
|
|
1228
1225
|
get locale(): string;
|
|
1229
1226
|
set locale(val: string);
|
|
1227
|
+
locStrsChanged(): void;
|
|
1230
1228
|
/*
|
|
1231
1229
|
* Enables the read-only mode. If you set this property to `true`, users cannot change the initial survey configuration.
|
|
1232
1230
|
*
|
|
@@ -1251,6 +1249,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1251
1249
|
* The event is called when creator active tab is changed.
|
|
1252
1250
|
* - sender the survey creator object that fires the event
|
|
1253
1251
|
* - options.tabName the name of new active tab
|
|
1252
|
+
* - options.model the instance of the model of the new active tab
|
|
1254
1253
|
*/
|
|
1255
1254
|
onActiveTabChanged: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
1256
1255
|
/*
|
|
@@ -1340,6 +1339,11 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1340
1339
|
*/
|
|
1341
1340
|
get survey(): SurveyModel;
|
|
1342
1341
|
existingPages: any;
|
|
1342
|
+
isInitialSurveyEmptyValue: boolean;
|
|
1343
|
+
/*
|
|
1344
|
+
* Returns true if initial survey was empty. It was not set via JSON property and default new survey is empty as well.
|
|
1345
|
+
*/
|
|
1346
|
+
get isInitialSurveyEmpty(): boolean;
|
|
1343
1347
|
protected initSurveyWithJSON(json: any, clearState: boolean): void;
|
|
1344
1348
|
protected initDragDrop(): void;
|
|
1345
1349
|
onBeforeDrop: Event<() => any, any>;
|
|
@@ -1351,6 +1355,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1351
1355
|
protected createSurveyLogicForUpdate(): SurveyLogic;
|
|
1352
1356
|
isObjQuestion(obj: Base): boolean;
|
|
1353
1357
|
isObjPage(obj: Base): boolean;
|
|
1358
|
+
addNewElementReason: string;
|
|
1354
1359
|
protected setSurvey(survey: SurveyModel): void;
|
|
1355
1360
|
protected setTextValue(value: string): void;
|
|
1356
1361
|
/*
|
|
@@ -1453,7 +1458,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1453
1458
|
* Returns true if selected element is null or there is no errors.
|
|
1454
1459
|
*/
|
|
1455
1460
|
validateSelectedElement(): boolean;
|
|
1456
|
-
clickToolboxItem(newElement: any, panel?: IPanel): void;
|
|
1461
|
+
clickToolboxItem(newElement: any, panel?: IPanel, modifiedType?: string): void;
|
|
1457
1462
|
getJSONForNewElement(json: any): any;
|
|
1458
1463
|
/*
|
|
1459
1464
|
* Open file chooser dialog
|
|
@@ -1490,7 +1495,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
1490
1495
|
onGetErrorTextOnValidationCallback(propertyName: string, obj: Base, value: any): string;
|
|
1491
1496
|
onValueChangingCallback(options: any): void;
|
|
1492
1497
|
onGetElementEditorTitleCallback(obj: Base, title: string): string;
|
|
1493
|
-
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any):
|
|
1498
|
+
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any): string;
|
|
1494
1499
|
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
1495
1500
|
onLogicGetTitleCallback(expression: string, expressionText: string, text: string, logicItem: any): string;
|
|
1496
1501
|
/*
|
|
@@ -2100,12 +2105,15 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
2100
2105
|
errorText: string;
|
|
2101
2106
|
focused: boolean;
|
|
2102
2107
|
editAsText: boolean;
|
|
2108
|
+
compostionInProgress: boolean;
|
|
2103
2109
|
setLocString(locString: LocalizableString): void;
|
|
2104
2110
|
checkConstraints(event: any): void;
|
|
2105
2111
|
blurEditor: any;
|
|
2106
2112
|
onClick(event: any): void;
|
|
2107
2113
|
onFocus(event: any): void;
|
|
2114
|
+
onCompositionStart(event: any): void;
|
|
2108
2115
|
onInput(event: any): void;
|
|
2116
|
+
onCompositionEnd(event: any): void;
|
|
2109
2117
|
onBlur(event: any): void;
|
|
2110
2118
|
done(event: any): void;
|
|
2111
2119
|
onKeyDown(event: any): boolean;
|
|
@@ -2514,6 +2522,11 @@ export declare class TabDesignerViewModel extends Base {
|
|
|
2514
2522
|
export declare class TabbedMenuContainer extends AdaptiveActionContainer<TabbedMenuItem> {
|
|
2515
2523
|
constructor();
|
|
2516
2524
|
}
|
|
2525
|
+
export declare class TabbedMenuItem extends Action implements ITabbedMenuItem {
|
|
2526
|
+
constructor(item: ITabbedMenuItem);
|
|
2527
|
+
componentContent: string;
|
|
2528
|
+
renderTab: any;
|
|
2529
|
+
}
|
|
2517
2530
|
export declare class TestSurveyTabViewModel extends Base {
|
|
2518
2531
|
constructor(surveyProvider: CreatorBase, startTheme?: any);
|
|
2519
2532
|
json: any;
|
|
@@ -2746,7 +2759,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
2746
2759
|
startUndoRedoTransaction(): void;
|
|
2747
2760
|
stopUndoRedoTransaction(): void;
|
|
2748
2761
|
createSurvey(json: any, reason: string, surveyType?: any): SurveyModel;
|
|
2749
|
-
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any):
|
|
2762
|
+
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any): string;
|
|
2750
2763
|
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
2751
2764
|
onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
|
|
2752
2765
|
}
|
|
@@ -2939,9 +2952,9 @@ export declare class TabJsonEditorBasePlugin implements ICreatorPlugin {
|
|
|
2939
2952
|
}
|
|
2940
2953
|
export declare class TabLogicPlugin implements ICreatorPlugin {
|
|
2941
2954
|
constructor(creator: CreatorBase);
|
|
2942
|
-
filterQuestionAction:
|
|
2943
|
-
filterActionTypeAction:
|
|
2944
|
-
fastEntryAction:
|
|
2955
|
+
filterQuestionAction: Action;
|
|
2956
|
+
filterActionTypeAction: Action;
|
|
2957
|
+
fastEntryAction: Action;
|
|
2945
2958
|
model: SurveyLogicUI;
|
|
2946
2959
|
activate(): void;
|
|
2947
2960
|
update(): void;
|
|
@@ -2953,7 +2966,7 @@ export declare class TabTestPlugin implements ICreatorPlugin {
|
|
|
2953
2966
|
languageSelectorAction: Action;
|
|
2954
2967
|
changeThemePopupModel: any;
|
|
2955
2968
|
changeThemeModel: ListModel;
|
|
2956
|
-
protected changeThemeAction:
|
|
2969
|
+
protected changeThemeAction: Action;
|
|
2957
2970
|
deviceSelectorAction: Action;
|
|
2958
2971
|
orientationSelectorAction: Action;
|
|
2959
2972
|
invisibleToggleAction: Action;
|
|
@@ -2989,12 +3002,7 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
|
2989
3002
|
get showAllPagesText(): string;
|
|
2990
3003
|
get exportToCSVText(): string;
|
|
2991
3004
|
get importFromCSVText(): string;
|
|
2992
|
-
createActions():
|
|
2993
|
-
}
|
|
2994
|
-
export declare class TabbedMenuItem extends CreatorAction implements ITabbedMenuItem {
|
|
2995
|
-
constructor(item: ITabbedMenuItem);
|
|
2996
|
-
componentContent: string;
|
|
2997
|
-
renderTab: any;
|
|
3005
|
+
createActions(): Array<Action>;
|
|
2998
3006
|
}
|
|
2999
3007
|
export declare class TextareaJsonEditorModel extends JsonEditorBaseModel {
|
|
3000
3008
|
constructor(creator: CreatorBase);
|
|
@@ -3530,6 +3538,7 @@ export declare function capitalize(str: string): string;
|
|
|
3530
3538
|
export declare function getLocString(strName: string, locale?: string): string;
|
|
3531
3539
|
export declare function updateLogicExpression(expression: string, varName: string, oldValue: any, newValue: any): string;
|
|
3532
3540
|
export declare function getLogicString(name: string): string;
|
|
3541
|
+
export declare function initLogicOperator(question: QuestionDropdownModel): void;
|
|
3533
3542
|
export declare function parsePropertyDescription(text: string): string;
|
|
3534
3543
|
export declare function setSurveyJSONForPropertyGrid(json: any, updateOnTyping?: boolean, titleLocationLeft?: boolean): void;
|
|
3535
3544
|
export declare function findAction(actions: any, id: string): IAction;
|
|
@@ -3611,6 +3620,7 @@ export declare var settings: {
|
|
|
3611
3620
|
maximumRowsCount: number,
|
|
3612
3621
|
maximumRateValues: number,
|
|
3613
3622
|
generalTabName: string,
|
|
3623
|
+
defaultExpandedTabName: string,
|
|
3614
3624
|
},
|
|
3615
3625
|
toolbox: {
|
|
3616
3626
|
/*
|
|
@@ -3812,17 +3822,17 @@ export declare var propertyGridCss: {
|
|
|
3812
3822
|
},
|
|
3813
3823
|
boolean: {
|
|
3814
3824
|
mainRoot: string,
|
|
3815
|
-
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
|
|
3825
|
+
rootCheckbox: string,
|
|
3826
|
+
checkboxItem: string,
|
|
3827
|
+
checkboxItemChecked: string,
|
|
3828
|
+
checkboxitemIndeterminate: string,
|
|
3829
|
+
checkboxItemDisabled: string,
|
|
3820
3830
|
svgIconId: string,
|
|
3831
|
+
checkboxLabel: string,
|
|
3821
3832
|
controlCheckbox: string,
|
|
3822
|
-
|
|
3823
|
-
|
|
3824
|
-
|
|
3825
|
-
materialDecorator: string,
|
|
3833
|
+
checkboxControlLabel: string,
|
|
3834
|
+
checkboxItemDecorator: string,
|
|
3835
|
+
checkboxMaterialDecorator: string,
|
|
3826
3836
|
},
|
|
3827
3837
|
text: {
|
|
3828
3838
|
root: string,
|
|
@@ -3840,6 +3850,7 @@ export declare var propertyGridCss: {
|
|
|
3840
3850
|
root: string,
|
|
3841
3851
|
small: string,
|
|
3842
3852
|
control: string,
|
|
3853
|
+
filterStringInput: string,
|
|
3843
3854
|
selectWrapper: string,
|
|
3844
3855
|
other: string,
|
|
3845
3856
|
onError: string,
|