survey-creator-core 1.9.22 → 1.9.25
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 +59 -29
- package/survey-creator-core.d.ts +55 -12
- package/survey-creator-core.i18n.js +268 -141
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +323 -111
- package/survey-creator-core.min.css +7 -7
- package/survey-creator-core.min.js +2 -2
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.25
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
@@ -279,6 +279,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
279
279
|
* Set it to true to show "Logic" tab and to false to hide the tab
|
|
280
280
|
*/
|
|
281
281
|
showLogicTab: boolean;
|
|
282
|
+
useTableViewInLogicTab: boolean;
|
|
282
283
|
/*
|
|
283
284
|
* Set delay for page hover
|
|
284
285
|
*/
|
|
@@ -393,14 +394,21 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
393
394
|
*/
|
|
394
395
|
onGetObjectDisplayName: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
395
396
|
/*
|
|
396
|
-
* Use this event to disable
|
|
397
|
-
*
|
|
398
|
-
*
|
|
399
|
-
*
|
|
400
|
-
*
|
|
401
|
-
*
|
|
402
|
-
*
|
|
403
|
-
*
|
|
397
|
+
* Use this event to disable user interactions with a question or panel on the design surface.
|
|
398
|
+
*
|
|
399
|
+
* The event handler accepts the following arguments:
|
|
400
|
+
*
|
|
401
|
+
* - `sender`- A Survey Creator instance that raised the event.
|
|
402
|
+
* - `options.obj` - A survey element instance (question or panel) for which you can disable user interactions.
|
|
403
|
+
* - `options.allowAddToToolbox` - Allows users to save the current survey element configuration in the Toolbox.
|
|
404
|
+
* - `options.allowChangeRequired` - Allows users to make the survey element required.
|
|
405
|
+
* - `options.allowChangeType` - Allows users to change the survey element type.
|
|
406
|
+
* - `options.allowCopy` - Allows users to duplicate the survey element.
|
|
407
|
+
* - `options.allowDelete` - Allows users to delete the survey element.
|
|
408
|
+
* - `options.allowDragging` - Allows users to drag and drop the survey element.
|
|
409
|
+
* - `options.allowEdit` - Allows users to edit survey element properties on the design surface. If you disable this property, users can edit the properties only in the Property Grid.
|
|
410
|
+
*
|
|
411
|
+
* To disable a user interaction, set the correponding `allow...` property to `false`.
|
|
404
412
|
*/
|
|
405
413
|
onElementAllowOperations: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
406
414
|
/*
|
|
@@ -684,6 +692,18 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
684
692
|
*/
|
|
685
693
|
onTranslationLocaleInitiallySelected: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
686
694
|
/*
|
|
695
|
+
* Use this event to control drag&drop operations.
|
|
696
|
+
* <br/> sender the survey creator object that fires the event.
|
|
697
|
+
* <br/> options.survey the editing survey object.
|
|
698
|
+
* <br/> options.allow set it to false to disable dragging.
|
|
699
|
+
* <br/> options.target a target element that is dragging.
|
|
700
|
+
* <br/> options.source a source element. It can be null, if it is a new element, dragging from toolbox.
|
|
701
|
+
* <br/> options.parent a page or panel where target element is dragging.
|
|
702
|
+
* <br/> options.insertBefore an element before the target element is dragging. It can be null if parent container (page or panel) is empty or dragging an element under the last element of the container.
|
|
703
|
+
* <br/> options.insertAfter an element after the target element is dragging. It can be null if parent container (page or panel) is empty or dragging element to the top of the parent container.
|
|
704
|
+
*/
|
|
705
|
+
onDragDropAllow: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
706
|
+
/*
|
|
687
707
|
* This callback is used internally for providing survey JSON text.
|
|
688
708
|
*/
|
|
689
709
|
getSurveyJSONTextCallback: any;
|
|
@@ -797,6 +817,17 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
797
817
|
*/
|
|
798
818
|
get isRTL(): boolean;
|
|
799
819
|
set isRTL(val: boolean);
|
|
820
|
+
/*
|
|
821
|
+
* The event is called when creator is going to change the active tab.
|
|
822
|
+
* <br/> sender the survey creator object that fires the event
|
|
823
|
+
* <br/> options.tabName the name of new active tab
|
|
824
|
+
*/
|
|
825
|
+
onActiveTabChanging: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
826
|
+
/*
|
|
827
|
+
* The event is called when creator active tab is changed.
|
|
828
|
+
* <br/> sender the survey creator object that fires the event
|
|
829
|
+
* <br/> options.tabName the name of new active tab
|
|
830
|
+
*/
|
|
800
831
|
onActiveTabChanged: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
801
832
|
/*
|
|
802
833
|
* Get/set the active tab.
|
|
@@ -1383,7 +1414,8 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
1383
1414
|
creator: CreatorBase;
|
|
1384
1415
|
static hiddenTypes: any;
|
|
1385
1416
|
_orderedQuestions: any;
|
|
1386
|
-
|
|
1417
|
+
static getQuestionDefaultSettings(questionType: string): any;
|
|
1418
|
+
static _questionDefaultSettings: any;
|
|
1387
1419
|
/*
|
|
1388
1420
|
* Modify this array to change the toolbox items order.
|
|
1389
1421
|
*/
|
|
@@ -1815,6 +1847,8 @@ export declare class SurveyLogicItem {
|
|
|
1815
1847
|
get name(): string;
|
|
1816
1848
|
get survey(): SurveyModel;
|
|
1817
1849
|
getVisibleLogicTypes(): Array<SurveyLogicType>;
|
|
1850
|
+
get expressionText(): any;
|
|
1851
|
+
get actionsText(): any;
|
|
1818
1852
|
getDisplayText(): any;
|
|
1819
1853
|
edit(): void;
|
|
1820
1854
|
remove(): void;
|
|
@@ -1994,7 +2028,7 @@ export declare class TabbedMenuItem extends Action implements ITabbedMenuItem {
|
|
|
1994
2028
|
renderTab: any;
|
|
1995
2029
|
}
|
|
1996
2030
|
export declare class TestSurveyTabViewModel extends Base {
|
|
1997
|
-
constructor(surveyProvider: CreatorBase);
|
|
2031
|
+
constructor(surveyProvider: CreatorBase, startTheme?: any);
|
|
1998
2032
|
json: any;
|
|
1999
2033
|
pages: any;
|
|
2000
2034
|
prevPageAction: Action;
|
|
@@ -2014,11 +2048,14 @@ export declare class TestSurveyTabViewModel extends Base {
|
|
|
2014
2048
|
get survey(): SurveyModel;
|
|
2015
2049
|
get pageActions(): any;
|
|
2016
2050
|
get isPageToolbarVisible(): boolean;
|
|
2017
|
-
|
|
2051
|
+
updateSimulatorSurvey(json: any, theme: any): void;
|
|
2052
|
+
setJSON(json: any, currTheme: any): void;
|
|
2018
2053
|
initialize(json: any, options: any): void;
|
|
2019
2054
|
show(): void;
|
|
2020
2055
|
testAgain(): void;
|
|
2021
2056
|
buildActions(): void;
|
|
2057
|
+
setTheme(themeName: string, themeMapper: any): void;
|
|
2058
|
+
getCurrThemeTitle(themeMapper: any): string;
|
|
2022
2059
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
2023
2060
|
}
|
|
2024
2061
|
export declare class ToolbarActionContainer extends ActionContainer {
|
|
@@ -2416,6 +2453,9 @@ export declare class TabTestPlugin implements ICreatorPlugin {
|
|
|
2416
2453
|
languageSelectorAction: Action;
|
|
2417
2454
|
languagePopupModel: any;
|
|
2418
2455
|
languageListModel: ListModel;
|
|
2456
|
+
changeThemePopupModel: any;
|
|
2457
|
+
changeThemeModel: ListModel;
|
|
2458
|
+
changeThemeAction: Action;
|
|
2419
2459
|
deviceSelectorAction: Action;
|
|
2420
2460
|
deviceListModel: ListModel;
|
|
2421
2461
|
orientationSelectorAction: Action;
|
|
@@ -2424,6 +2464,7 @@ export declare class TabTestPlugin implements ICreatorPlugin {
|
|
|
2424
2464
|
designerAction: Action;
|
|
2425
2465
|
prevPageAction: Action;
|
|
2426
2466
|
nextPageAction: Action;
|
|
2467
|
+
simulatorTheme: any;
|
|
2427
2468
|
model: TestSurveyTabViewModel;
|
|
2428
2469
|
activate(): void;
|
|
2429
2470
|
update(): void;
|
|
@@ -3326,6 +3367,8 @@ export declare var propertyGridCss: {
|
|
|
3326
3367
|
buttonRemove: string,
|
|
3327
3368
|
iconAdd: string,
|
|
3328
3369
|
iconRemove: string,
|
|
3370
|
+
dragElementDecorator: string,
|
|
3371
|
+
iconDragElement: string,
|
|
3329
3372
|
iconDrag: string,
|
|
3330
3373
|
dragDropGhostPositionTop: string,
|
|
3331
3374
|
dragDropGhostPositionBottom: string,
|