survey-creator-core 1.9.26 → 1.9.27
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 +1 -1
- package/survey-creator-core.css +13 -9
- package/survey-creator-core.d.ts +57 -17
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +693 -464
- package/survey-creator-core.min.css +4 -4
- package/survey-creator-core.min.js +2 -2
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.
|
|
2
|
+
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.27
|
|
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, ItemValue, MatrixDropdownColumn } from "survey-core";
|
|
7
|
-
import { IAction, SurveyModel, ActionContainer, DragDropSurveyElements
|
|
8
|
-
import { Event, AdaptiveActionContainer, PageModel, IElement
|
|
9
|
-
import {
|
|
7
|
+
import { IAction, SurveyModel, Action, ActionContainer, DragDropSurveyElements } from "survey-core";
|
|
8
|
+
import { DragDropChoices, Event, AdaptiveActionContainer, PageModel, IElement } from "survey-core";
|
|
9
|
+
import { IPanel, ISurveyElement, SurveyElement, QuestionSelectBase, QuestionRowModel } from "survey-core";
|
|
10
10
|
import { LocalizableString, DragOrClickHelper, PanelModel, QuestionDropdownModel, ListModel } from "survey-core";
|
|
11
11
|
import { PopupModel, EventBase, PanelModelBase, QuestionNonValue, SurveyTemplateRendererTemplateData } from "survey-core";
|
|
12
12
|
import { ComputedUpdater, QuestionCheckboxModel, ILocalizableString, ArrayChanges, ImageItemValue } from "survey-core";
|
|
@@ -217,7 +217,13 @@ export interface ICreatorPlugin {
|
|
|
217
217
|
dispose?: any;
|
|
218
218
|
model: Base;
|
|
219
219
|
}
|
|
220
|
-
export interface
|
|
220
|
+
export interface ICreatorAction extends IAction {
|
|
221
|
+
locTitleName?: string;
|
|
222
|
+
locTooltipName?: string;
|
|
223
|
+
onUpdateTitle?: any;
|
|
224
|
+
onUpdateTooltip?: any;
|
|
225
|
+
}
|
|
226
|
+
export interface ITabbedMenuItem extends ICreatorAction {
|
|
221
227
|
componentContent: string;
|
|
222
228
|
renderTab?: any;
|
|
223
229
|
}
|
|
@@ -245,6 +251,14 @@ export declare class ConditionEditorItemsBuilder {
|
|
|
245
251
|
constructor(hasValue?: any);
|
|
246
252
|
build(text: string): Array<ConditionEditorItem>;
|
|
247
253
|
}
|
|
254
|
+
export declare class CreatorAction extends Action implements ICreatorAction {
|
|
255
|
+
constructor(item: ICreatorAction);
|
|
256
|
+
locTitleName: string;
|
|
257
|
+
locTooltipName: string;
|
|
258
|
+
onUpdateTitle: any;
|
|
259
|
+
onUpdateTooltip: any;
|
|
260
|
+
updateTitle(): void;
|
|
261
|
+
}
|
|
248
262
|
/*
|
|
249
263
|
* Base class for Survey Creator.
|
|
250
264
|
*/
|
|
@@ -394,6 +408,18 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
394
408
|
*/
|
|
395
409
|
onGetObjectDisplayName: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
396
410
|
/*
|
|
411
|
+
* This event is raised after a user has edited a text value on the design surface. This value may include HTML markup. You can handle the `onHtmlToMarkdown` event to convert the HTML markup to Markdown.
|
|
412
|
+
*
|
|
413
|
+
* The event handler accepts the following arguments:
|
|
414
|
+
*
|
|
415
|
+
* - `sender` - A Survey Creator instance that raised the event.
|
|
416
|
+
* - `options.element` - The instance of a survey element (survey, page, panel, question) that the user configures.
|
|
417
|
+
* - `options.name` - The name of a property whose value has been edited.
|
|
418
|
+
* - `options.html` - HTML content. Pass this field's value to an HTML-to-Markdown converter.
|
|
419
|
+
* - `options.text` - A text string that may contain Markdown. Assign the result of the HTML-to-Markdown conversion to this field.
|
|
420
|
+
*/
|
|
421
|
+
onHtmlToMarkdown: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
422
|
+
/*
|
|
397
423
|
* Use this event to disable user interactions with a question or panel on the design surface.
|
|
398
424
|
*
|
|
399
425
|
* The event handler accepts the following arguments:
|
|
@@ -508,8 +534,8 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
508
534
|
* <br/> options.editorOptions options that can be changed.
|
|
509
535
|
* <br/> options.editorOptions.allowAddRemoveItems a boolean property, true by default. Set it false to disable add/remove items in array properties. For example 'choices', 'columns', 'rows'.
|
|
510
536
|
* <br/> options.editorOptions.allowRemoveAllItems a boolean property, true by default. Set it false to disable remove all items in array properties. For example 'choices', 'columns', 'rows'.
|
|
511
|
-
* <br/> options.editorOptions.showTextView a boolean property, true by default. Set it false to disable "
|
|
512
|
-
* <br/> options.editorOptions.itemsEntryType a string property, 'form' by default. Set it 'fast' to show "
|
|
537
|
+
* <br/> options.editorOptions.showTextView a boolean property, true by default. Set it false to disable "Manual Entry" tab for "choices" property.
|
|
538
|
+
* <br/> options.editorOptions.itemsEntryType a string property, 'form' by default. Set it 'fast' to show "Manual Entry" tab for "choices" property by default.
|
|
513
539
|
*/
|
|
514
540
|
onSetPropertyEditorOptions: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
515
541
|
/*
|
|
@@ -808,6 +834,12 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
808
834
|
showErrorOnFailedSave: boolean;
|
|
809
835
|
protected onSetReadOnly(newVal: boolean): void;
|
|
810
836
|
/*
|
|
837
|
+
* Gets or sets the survey locale. The default value it is empty, this means the 'en' locale is used.
|
|
838
|
+
* You can set it to 'de' - German, 'fr' - French and so on.
|
|
839
|
+
*/
|
|
840
|
+
get locale(): string;
|
|
841
|
+
set locale(val: string);
|
|
842
|
+
/*
|
|
811
843
|
* A boolean property, false by default. Set it to true to deny editing.
|
|
812
844
|
*/
|
|
813
845
|
get readOnly(): boolean;
|
|
@@ -1528,6 +1560,7 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
1528
1560
|
*/
|
|
1529
1561
|
get keepAllCategoriesExpanded(): boolean;
|
|
1530
1562
|
set keepAllCategoriesExpanded(val: boolean);
|
|
1563
|
+
updateTitles(): void;
|
|
1531
1564
|
/*
|
|
1532
1565
|
* Change the category of the toolbox item
|
|
1533
1566
|
*/
|
|
@@ -1658,6 +1691,7 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
1658
1691
|
valueBeforeEdit: string;
|
|
1659
1692
|
errorText: string;
|
|
1660
1693
|
focused: boolean;
|
|
1694
|
+
editAsText: boolean;
|
|
1661
1695
|
setLocString(locString: LocalizableString): void;
|
|
1662
1696
|
checkConstraints(event: any): void;
|
|
1663
1697
|
blurEditor: any;
|
|
@@ -2000,6 +2034,14 @@ export declare class SurveySimulatorModel extends Base {
|
|
|
2000
2034
|
considerDPI: boolean;
|
|
2001
2035
|
simulatorEnabled: boolean;
|
|
2002
2036
|
simulatorScaleEnabled: boolean;
|
|
2037
|
+
currZoomScale: number;
|
|
2038
|
+
get zoomScale(): number;
|
|
2039
|
+
activateZoom: any;
|
|
2040
|
+
deactivateZoom: any;
|
|
2041
|
+
listenTryToZoomWithWheel: any;
|
|
2042
|
+
listenTryToZoom: any;
|
|
2043
|
+
tryToZoom(data: any, event: any): boolean;
|
|
2044
|
+
resetZoomParameters(): void;
|
|
2003
2045
|
get activeDevice(): string;
|
|
2004
2046
|
set activeDevice(val: string);
|
|
2005
2047
|
get landscapeOrientation(): boolean;
|
|
@@ -2044,11 +2086,6 @@ export declare class TabDesignerViewModel extends Base {
|
|
|
2044
2086
|
export declare class TabbedMenuContainer extends AdaptiveActionContainer<TabbedMenuItem> {
|
|
2045
2087
|
constructor();
|
|
2046
2088
|
}
|
|
2047
|
-
export declare class TabbedMenuItem extends Action implements ITabbedMenuItem {
|
|
2048
|
-
constructor(item: ITabbedMenuItem);
|
|
2049
|
-
componentContent: string;
|
|
2050
|
-
renderTab: any;
|
|
2051
|
-
}
|
|
2052
2089
|
export declare class TestSurveyTabViewModel extends Base {
|
|
2053
2090
|
constructor(surveyProvider: CreatorBase, startTheme?: any);
|
|
2054
2091
|
json: any;
|
|
@@ -2459,11 +2496,9 @@ export declare class TabJsonEditorBasePlugin implements ICreatorPlugin {
|
|
|
2459
2496
|
}
|
|
2460
2497
|
export declare class TabLogicPlugin implements ICreatorPlugin {
|
|
2461
2498
|
constructor(creator: CreatorBase);
|
|
2462
|
-
filterQuestionAction:
|
|
2463
|
-
filterActionTypeAction:
|
|
2464
|
-
fastEntryAction:
|
|
2465
|
-
showAllQuestionsText: string;
|
|
2466
|
-
showAllActionTypesText: string;
|
|
2499
|
+
filterQuestionAction: CreatorAction;
|
|
2500
|
+
filterActionTypeAction: CreatorAction;
|
|
2501
|
+
fastEntryAction: CreatorAction;
|
|
2467
2502
|
model: SurveyLogicUI;
|
|
2468
2503
|
activate(): void;
|
|
2469
2504
|
update(): void;
|
|
@@ -2517,6 +2552,11 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
|
2517
2552
|
get importFromCSVText(): string;
|
|
2518
2553
|
createActions(): any;
|
|
2519
2554
|
}
|
|
2555
|
+
export declare class TabbedMenuItem extends CreatorAction implements ITabbedMenuItem {
|
|
2556
|
+
constructor(item: ITabbedMenuItem);
|
|
2557
|
+
componentContent: string;
|
|
2558
|
+
renderTab: any;
|
|
2559
|
+
}
|
|
2520
2560
|
export declare class TextareaJsonEditorModel extends JsonEditorBaseModel {
|
|
2521
2561
|
constructor(creator: CreatorBase);
|
|
2522
2562
|
protected _text: string;
|