survey-creator-core 1.9.7-beta.1 → 1.9.8-beta.1
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 +31 -11
- package/survey-creator-core.d.ts +45 -20
- package/survey-creator-core.js +244 -145
- package/survey-creator-core.min.css +7 -7
- package/survey-creator-core.min.js +2 -2
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*Type definitions for SurveyJS Creator JavaScript library v1.9.
|
|
1
|
+
/*Type definitions for SurveyJS Creator JavaScript library v1.9.8-beta.1
|
|
2
2
|
(c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
3
3
|
Github: https://github.com/surveyjs/survey-creator
|
|
4
4
|
License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -1742,9 +1742,13 @@ export declare enum QuestionConvertMode {
|
|
|
1742
1742
|
CompatibleTypes = 1
|
|
1743
1743
|
}
|
|
1744
1744
|
export declare var settings: {
|
|
1745
|
-
|
|
1745
|
+
translation: {
|
|
1746
1746
|
sortByName: boolean;
|
|
1747
1747
|
exportPrefix: string;
|
|
1748
|
+
/**
|
|
1749
|
+
* The maximum number of locales that user can select at once for translation
|
|
1750
|
+
*/
|
|
1751
|
+
maximumSelectedLocales: number;
|
|
1748
1752
|
};
|
|
1749
1753
|
operators: {
|
|
1750
1754
|
empty: any[];
|
|
@@ -1770,7 +1774,6 @@ export declare var settings: {
|
|
|
1770
1774
|
*/
|
|
1771
1775
|
questionConvertMode: QuestionConvertMode;
|
|
1772
1776
|
propertyGrid: {
|
|
1773
|
-
allowCollapse: boolean;
|
|
1774
1777
|
useButtonGroup: boolean;
|
|
1775
1778
|
maxCharsInButtonGroup: number;
|
|
1776
1779
|
showNavigationButtons: boolean;
|
|
@@ -1804,6 +1807,7 @@ export declare var settings: {
|
|
|
1804
1807
|
layout: {
|
|
1805
1808
|
showTabs: boolean;
|
|
1806
1809
|
showToolbar: boolean;
|
|
1810
|
+
allowCollapseSidebar: boolean;
|
|
1807
1811
|
};
|
|
1808
1812
|
jsonEditor: {
|
|
1809
1813
|
indentation: number;
|
|
@@ -1916,7 +1920,7 @@ export declare class ToolbarActionContainer extends ActionContainer {
|
|
|
1916
1920
|
constructor(creator: CreatorBase);
|
|
1917
1921
|
protected getRenderedActions(): Array<Action>;
|
|
1918
1922
|
}
|
|
1919
|
-
export declare type
|
|
1923
|
+
export declare type toolboxLocationType = "left" | "right" | "sidebar";
|
|
1920
1924
|
/**
|
|
1921
1925
|
* Base class for Survey Creator.
|
|
1922
1926
|
*/
|
|
@@ -2364,6 +2368,16 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2364
2368
|
* - `options.visible` - A Boolean value that specifies the property visibility. Set it to `false` to hide the property.
|
|
2365
2369
|
*/
|
|
2366
2370
|
onTranslationStringVisibility: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2371
|
+
/**
|
|
2372
|
+
* Use this event to define is the locale initially selected (default value) and ready for translaion or it is unselected.
|
|
2373
|
+
*
|
|
2374
|
+
* The event handler accepts the following arguments:
|
|
2375
|
+
*
|
|
2376
|
+
* - `sender` - A Survey Creator instance that raised the event.
|
|
2377
|
+
* - `options.locale` - the locale name, like 'en', 'de' and so on.
|
|
2378
|
+
* - `options.isSelected` - it is true by default. Set it to false to make the translation unselected.
|
|
2379
|
+
*/
|
|
2380
|
+
onTranslationLocaleInitiallySelected: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2367
2381
|
/**
|
|
2368
2382
|
* This callback is used internally for providing survey JSON text.
|
|
2369
2383
|
*/
|
|
@@ -2500,16 +2514,20 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2500
2514
|
makeNewViewActive(viewName: string): boolean;
|
|
2501
2515
|
toolbox: QuestionToolbox;
|
|
2502
2516
|
get toolboxCategories(): Array<any>;
|
|
2503
|
-
|
|
2517
|
+
sidebar: SidebarModel;
|
|
2504
2518
|
constructor(options: ICreatorOptions, options2?: ICreatorOptions);
|
|
2505
2519
|
updateToolboxIsCompact(newVal?: boolean): void;
|
|
2506
2520
|
onSurveyElementPropertyValueChanged(property: Survey.JsonObjectProperty, obj: any, newValue: any): void;
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2521
|
+
showToolboxValue: boolean;
|
|
2522
|
+
get showToolbox(): boolean;
|
|
2523
|
+
set showToolbox(val: boolean);
|
|
2524
|
+
onShowSidebarVisiblityChanged: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2510
2525
|
/**
|
|
2511
2526
|
* Set this this property grid false to hide the property grid.
|
|
2512
2527
|
*/
|
|
2528
|
+
get showSidebar(): boolean;
|
|
2529
|
+
set showSidebar(val: boolean);
|
|
2530
|
+
onShowPropertyGridVisiblityChanged: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2513
2531
|
get showPropertyGrid(): boolean;
|
|
2514
2532
|
set showPropertyGrid(val: boolean);
|
|
2515
2533
|
rightContainerActiveItem(name: string): void;
|
|
@@ -2544,6 +2562,10 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2544
2562
|
* This method stops undo/redo transaction.
|
|
2545
2563
|
*/
|
|
2546
2564
|
stopUndoRedoTransaction(): void;
|
|
2565
|
+
/**
|
|
2566
|
+
* Returns true if Creator is currently doing undo or redo opertaions
|
|
2567
|
+
*/
|
|
2568
|
+
get isProcessingUndoRedo(): boolean;
|
|
2547
2569
|
/**
|
|
2548
2570
|
* This method performs undo uperation if possible.
|
|
2549
2571
|
*/
|
|
@@ -2796,9 +2818,10 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2796
2818
|
showPageNavigator: any;
|
|
2797
2819
|
showTabs: any;
|
|
2798
2820
|
showToolbar: any;
|
|
2821
|
+
allowCollapseSidebar: any;
|
|
2799
2822
|
isMobileView: any;
|
|
2800
|
-
toolboxLocation:
|
|
2801
|
-
|
|
2823
|
+
toolboxLocation: toolboxLocationType;
|
|
2824
|
+
sidebarLocation: "left" | "right";
|
|
2802
2825
|
selectFromStringEditor: boolean;
|
|
2803
2826
|
}
|
|
2804
2827
|
export declare class StylesManager {
|
|
@@ -3214,6 +3237,7 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
3214
3237
|
availableTranlationsChangedCallback: () => void;
|
|
3215
3238
|
tranlationChangedCallback: (locale: string, name: string, value: string, context: any) => void;
|
|
3216
3239
|
translationStringVisibilityCallback: (obj: Base, propertyName: string, visible: boolean) => boolean;
|
|
3240
|
+
localeInitialVisibleCallback: (locale: string) => boolean;
|
|
3217
3241
|
chooseLanguageActions: Array<IAction>;
|
|
3218
3242
|
constructor(survey: SurveyModel, options?: ISurveyCreatorOptions, hasUI?: boolean);
|
|
3219
3243
|
getType(): string;
|
|
@@ -5185,7 +5209,7 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
5185
5209
|
canCollapseCategories: boolean;
|
|
5186
5210
|
isCompact: boolean;
|
|
5187
5211
|
constructor(supportedQuestions?: Array<string>, creator?: CreatorBase<SurveyModel>);
|
|
5188
|
-
setLocation(toolboxLocation:
|
|
5212
|
+
setLocation(toolboxLocation: toolboxLocationType): void;
|
|
5189
5213
|
/**
|
|
5190
5214
|
* The Array of Toolbox items as Text JSON.
|
|
5191
5215
|
*/
|
|
@@ -5295,9 +5319,9 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
5295
5319
|
dispose(): void;
|
|
5296
5320
|
}
|
|
5297
5321
|
|
|
5298
|
-
export declare class
|
|
5322
|
+
export declare class SidebarModel extends Base {
|
|
5299
5323
|
toolbar: AdaptiveActionContainer;
|
|
5300
|
-
tabs: Array<
|
|
5324
|
+
tabs: Array<SidebarTabModel>;
|
|
5301
5325
|
headerText: string;
|
|
5302
5326
|
visible: boolean;
|
|
5303
5327
|
collapsedManually: boolean;
|
|
@@ -5307,26 +5331,26 @@ export declare class SideBarModel extends Base {
|
|
|
5307
5331
|
activeTab: string;
|
|
5308
5332
|
get flyoutPanelMode(): boolean;
|
|
5309
5333
|
get closeText(): string;
|
|
5310
|
-
getTabById(id: string):
|
|
5334
|
+
getTabById(id: string): SidebarTabModel;
|
|
5311
5335
|
constructor(creator: CreatorBase, collapseAction?: () => void, expandAction?: () => void);
|
|
5312
5336
|
getExpandAction(): Action;
|
|
5313
|
-
|
|
5314
|
-
|
|
5315
|
-
addTab(id: string, componentName?: string, model?: any, buildActions?: () => Array<Action>):
|
|
5337
|
+
collapseSidebar(): void;
|
|
5338
|
+
expandSidebar(): void;
|
|
5339
|
+
addTab(id: string, componentName?: string, model?: any, buildActions?: () => Array<Action>): SidebarTabModel;
|
|
5316
5340
|
updateHasVisibleTabs(): void;
|
|
5317
5341
|
dispose(): void;
|
|
5318
5342
|
initResizeManager(container: HTMLDivElement): void;
|
|
5319
5343
|
resetResizeManager(): void;
|
|
5320
5344
|
}
|
|
5321
5345
|
|
|
5322
|
-
export declare class
|
|
5346
|
+
export declare class SidebarTabModel extends Base {
|
|
5323
5347
|
id: string;
|
|
5324
|
-
sidePanel:
|
|
5348
|
+
sidePanel: SidebarModel;
|
|
5325
5349
|
caption: string;
|
|
5326
5350
|
visible: boolean;
|
|
5327
5351
|
model: any;
|
|
5328
5352
|
componentName: string;
|
|
5329
|
-
constructor(id: string, sidePanel:
|
|
5353
|
+
constructor(id: string, sidePanel: SidebarModel, componentName?: string, model?: any);
|
|
5330
5354
|
}
|
|
5331
5355
|
|
|
5332
5356
|
export interface IPortableMouseEvent {
|
|
@@ -5460,6 +5484,7 @@ export declare class UndoRedoManager {
|
|
|
5460
5484
|
canUndoRedoCallback(): void;
|
|
5461
5485
|
startTransaction(name: string): void;
|
|
5462
5486
|
stopTransaction(): void;
|
|
5487
|
+
get isProcessingUndoRedo(): boolean;
|
|
5463
5488
|
canUndo(): boolean;
|
|
5464
5489
|
undo(): void;
|
|
5465
5490
|
canRedo(): boolean;
|