survey-creator-core 1.8.79-beta.1 → 1.9.3-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/README.md +5 -76
- package/package.json +1 -1
- package/survey-creator-core.css +2159 -3568
- package/survey-creator-core.d.ts +148 -39
- package/survey-creator-core.js +1112 -563
- package/survey-creator-core.min.css +29 -1874
- package/survey-creator-core.min.js +3 -3
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*Type definitions for SurveyJS Creator JavaScript library v1.
|
|
1
|
+
/*Type definitions for SurveyJS Creator JavaScript library v1.9.3-beta.1
|
|
2
2
|
(c) 2015-2021 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
3
3
|
Github: https://github.com/surveyjs/survey-creator
|
|
4
4
|
License: https://surveyjs.io/Licenses#SurveyCreator
|
|
@@ -6,9 +6,9 @@ License: https://surveyjs.io/Licenses#SurveyCreator
|
|
|
6
6
|
// Dependencies for this module:
|
|
7
7
|
// ../../../survey-core
|
|
8
8
|
|
|
9
|
-
import { Base, ItemValue, JsonObjectProperty, MatrixDropdownColumn, Question, SurveyModel } from "survey-core";
|
|
9
|
+
import { Base, IAction, ItemValue, JsonObjectProperty, MatrixDropdownColumn, Question, SurveyModel } from "survey-core";
|
|
10
10
|
import * as Survey from "survey-core";
|
|
11
|
-
import { Base, SurveyModel, Question, PageModel, IElement, ActionContainer, AdaptiveActionContainer, IAction, Action, SurveyElement, ItemValue, QuestionSelectBase } from "survey-core";
|
|
11
|
+
import { Base, SurveyModel, Question, PageModel, IElement, ActionContainer, AdaptiveActionContainer, IAction, Action, IPanel, SurveyElement, ItemValue, QuestionSelectBase } from "survey-core";
|
|
12
12
|
import { DragDropSurveyElements, DragDropChoices } from "survey-core";
|
|
13
13
|
import { Base, SurveyModel } from "survey-core";
|
|
14
14
|
import { SurveyModel } from "survey-core";
|
|
@@ -19,10 +19,10 @@ import { Base, SurveyModel, JsonObjectProperty, PageModel, ILocalizableString, Q
|
|
|
19
19
|
import { SurveyModel, Action } from "survey-core";
|
|
20
20
|
import { Base, PageModel, SurveyModel } from "survey-core";
|
|
21
21
|
import { SurveyModel, Action, QuestionMatrixDynamicModel } from "survey-core";
|
|
22
|
-
import { PopupModel, ListModel, Base, SurveyModel, IAction, Action } from "survey-core";
|
|
22
|
+
import { PageModel, PopupModel, ListModel, Base, SurveyModel, IAction, Action } from "survey-core";
|
|
23
23
|
import { PageModel, SurveyModel } from "survey-core";
|
|
24
24
|
import { Base, SurveyModel, SurveyTemplateRendererTemplateData, QuestionRowModel } from "survey-core";
|
|
25
|
-
import { SurveyElement, SurveyModel, SurveyTemplateRendererTemplateData, Action, DragTypeOverMeEnum } from "survey-core";
|
|
25
|
+
import { SurveyElement, SurveyModel, SurveyTemplateRendererTemplateData, Action, PopupModel, ListModel, DragTypeOverMeEnum, IAction } from "survey-core";
|
|
26
26
|
import { SurveyElement, SurveyTemplateRendererTemplateData, SurveyModel } from "survey-core";
|
|
27
27
|
import { SurveyElement, SurveyTemplateRendererTemplateData, SurveyModel, QuestionRatingModel } from "survey-core";
|
|
28
28
|
import { Base, ItemValue, QuestionSelectBase, SurveyModel } from "survey-core";
|
|
@@ -1786,6 +1786,9 @@ export declare var settings: {
|
|
|
1786
1786
|
showTabs: boolean;
|
|
1787
1787
|
showToolbar: boolean;
|
|
1788
1788
|
};
|
|
1789
|
+
jsonEditor: {
|
|
1790
|
+
indentation: number;
|
|
1791
|
+
};
|
|
1789
1792
|
};
|
|
1790
1793
|
export interface ICollectionItemAllowOperations {
|
|
1791
1794
|
allowDelete: boolean;
|
|
@@ -1805,6 +1808,7 @@ export interface ISurveyCreatorOptions {
|
|
|
1805
1808
|
getObjectDisplayName(obj: Base, reason: string, displayName: string): string;
|
|
1806
1809
|
onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
|
|
1807
1810
|
onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): any;
|
|
1811
|
+
onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: IAction[]): any;
|
|
1808
1812
|
onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
|
|
1809
1813
|
onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
|
|
1810
1814
|
onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: Array<Base>, item: Base): boolean;
|
|
@@ -1835,6 +1839,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
1835
1839
|
getObjectDisplayName(obj: Base, reason: string, displayName: string): string;
|
|
1836
1840
|
onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
|
|
1837
1841
|
onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): void;
|
|
1842
|
+
onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: IAction[]): void;
|
|
1838
1843
|
onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
|
|
1839
1844
|
onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
|
|
1840
1845
|
onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: Array<Base>, item: Base): boolean;
|
|
@@ -1854,6 +1859,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
1854
1859
|
|
|
1855
1860
|
import "./components/creator.scss";
|
|
1856
1861
|
import "./components/string-editor.scss";
|
|
1862
|
+
import "./creator-theme/creator.scss";
|
|
1857
1863
|
export interface IKeyboardShortcut {
|
|
1858
1864
|
name?: string;
|
|
1859
1865
|
hotKey: {
|
|
@@ -1887,6 +1893,10 @@ export declare class TabbedMenuItem extends Action implements ITabbedMenuItem {
|
|
|
1887
1893
|
export declare class TabbedMenuContainer extends AdaptiveActionContainer<TabbedMenuItem> {
|
|
1888
1894
|
constructor();
|
|
1889
1895
|
}
|
|
1896
|
+
export declare class ToolbarActionContainer extends ActionContainer {
|
|
1897
|
+
constructor(creator: CreatorBase);
|
|
1898
|
+
protected getRenderedActions(): Array<Action>;
|
|
1899
|
+
}
|
|
1890
1900
|
export declare type toolBoxLocationType = "left" | "right" | "insideSideBar" | "hidden";
|
|
1891
1901
|
/**
|
|
1892
1902
|
* Base class for Survey Creator.
|
|
@@ -1894,7 +1904,7 @@ export declare type toolBoxLocationType = "left" | "right" | "insideSideBar" | "
|
|
|
1894
1904
|
export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Survey.Base implements ISurveyCreatorOptions, ICreatorSelectionOwner {
|
|
1895
1905
|
protected options: ICreatorOptions;
|
|
1896
1906
|
/**
|
|
1897
|
-
* Set it to true to show "
|
|
1907
|
+
* Set it to true to show "Designer" tab and to false to hide the tab
|
|
1898
1908
|
*/
|
|
1899
1909
|
showDesignerTab: boolean;
|
|
1900
1910
|
/**
|
|
@@ -1902,9 +1912,15 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1902
1912
|
*/
|
|
1903
1913
|
showJSONEditorTab: boolean;
|
|
1904
1914
|
/**
|
|
1905
|
-
*
|
|
1915
|
+
* Obsolete. Please use showPreviewTab property
|
|
1916
|
+
* @see showPreviewTab
|
|
1906
1917
|
*/
|
|
1907
1918
|
showTestSurveyTab: boolean;
|
|
1919
|
+
/**
|
|
1920
|
+
* Set it to true to show "Preview" tab and to false to hide the tab
|
|
1921
|
+
*/
|
|
1922
|
+
get showPreviewTab(): boolean;
|
|
1923
|
+
set showPreviewTab(val: boolean);
|
|
1908
1924
|
/**
|
|
1909
1925
|
* Set it to true to show "Embed Survey" tab and to false to hide the tab
|
|
1910
1926
|
*/
|
|
@@ -1917,6 +1933,10 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1917
1933
|
* Set it to true to show "Logic" tab and to false to hide the tab
|
|
1918
1934
|
*/
|
|
1919
1935
|
showLogicTab: boolean;
|
|
1936
|
+
/**
|
|
1937
|
+
* Set delay for page hover
|
|
1938
|
+
*/
|
|
1939
|
+
pageHoverDelay: number;
|
|
1920
1940
|
/**
|
|
1921
1941
|
* Set it to false to hide survey title and coresponding properties
|
|
1922
1942
|
*/
|
|
@@ -1955,7 +1975,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1955
1975
|
* Returns the current show view name. The possible returns values are:
|
|
1956
1976
|
* "designer", "editor", "test", "embed", "logic" and "translation".
|
|
1957
1977
|
* @see showDesigner
|
|
1958
|
-
* @see
|
|
1978
|
+
* @see showPreview
|
|
1959
1979
|
* @see showJsonEditor
|
|
1960
1980
|
* @see showLogicEditor
|
|
1961
1981
|
* @see showTranslationEditor
|
|
@@ -1965,7 +1985,15 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1965
1985
|
get isDesignerShowing(): boolean;
|
|
1966
1986
|
showDesigner(): void;
|
|
1967
1987
|
get isTestSurveyShowing(): boolean;
|
|
1988
|
+
/**
|
|
1989
|
+
* Return true if Preview tab is currently active
|
|
1990
|
+
*/
|
|
1991
|
+
get isPreviewShowing(): boolean;
|
|
1968
1992
|
showTestSurvey(): void;
|
|
1993
|
+
/**
|
|
1994
|
+
* Show Preview tab
|
|
1995
|
+
*/
|
|
1996
|
+
showPreview(): void;
|
|
1969
1997
|
protected plugins: {
|
|
1970
1998
|
[name: string]: ICreatorPlugin;
|
|
1971
1999
|
};
|
|
@@ -1995,7 +2023,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1995
2023
|
* The event is fired when the survey creator creates a survey object (Survey.Survey).
|
|
1996
2024
|
* <br/> sender the survey creator object that fires the event
|
|
1997
2025
|
* <br/> options.survey the survey object showing in the creator.
|
|
1998
|
-
* <br/> options.reason indicates what component of the creator requests the survey. There are several reason types: "designer" - survey for designer survey, "test" - survey for "
|
|
2026
|
+
* <br/> options.reason indicates what component of the creator requests the survey. There are several reason types: "designer" - survey for designer survey, "test" - survey for "Preview" tab and "conditionEditor", "defaultValueEditor", "restfulEditor" - surveys for different property editors.
|
|
1999
2027
|
*/
|
|
2000
2028
|
onSurveyInstanceCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2001
2029
|
/**
|
|
@@ -2007,8 +2035,8 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2007
2035
|
* <br/> options.displayName change this property to show your custom display name for the object
|
|
2008
2036
|
* <br/> The list of possible values in options.reason:
|
|
2009
2037
|
* <br/> "condition" - raised from Condition modal window or on setup condition in a logic tab
|
|
2010
|
-
* <br/> "survey-tester" - raised from page selector list in "
|
|
2011
|
-
* <br/> "survey-tester-selected" - raised on setting page selector title in "
|
|
2038
|
+
* <br/> "survey-tester" - raised from page selector list in "Preview" tab
|
|
2039
|
+
* <br/> "survey-tester-selected" - raised on setting page selector title in "Preview" tab
|
|
2012
2040
|
* <br/> "survey-translation" - raised from translation tab
|
|
2013
2041
|
* <br/> "property-grid" - raised from showing object selector for property grid in "Designer" tab.
|
|
2014
2042
|
* @see showObjectTitles
|
|
@@ -2065,14 +2093,23 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2065
2093
|
*/
|
|
2066
2094
|
onPropertyEditorCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2067
2095
|
/**
|
|
2068
|
-
* The event is called
|
|
2069
|
-
*
|
|
2070
|
-
* <br/>
|
|
2071
|
-
* <br/> options.
|
|
2072
|
-
* <br/> options.
|
|
2073
|
-
* <br/> options.
|
|
2074
|
-
* @see onCollectionItemAllowOperations
|
|
2096
|
+
* The event is called after a property editor setups its title actions.
|
|
2097
|
+
* You can use this event to modify the property editor title actions
|
|
2098
|
+
* <br/> options.obj the survey object that is currently editing in the property grid
|
|
2099
|
+
* <br/> options.property the property that the current property editor is editing
|
|
2100
|
+
* <br/> options.editor the property editor. In fact it is a survey question. We are using a heavily customizable survey as a property grid in Creator V2. It means that every property editor is a question.
|
|
2101
|
+
* <br/> options.titleActions the list of title actions.
|
|
2075
2102
|
*/
|
|
2103
|
+
onPropertyEditorUpdateTitleActions: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2104
|
+
/**
|
|
2105
|
+
* The event is called before rendering a delete button in the Property Grid or in Question Editor.
|
|
2106
|
+
* Obsolete, please use onCollectionItemAllowOperations
|
|
2107
|
+
* <br/> sender the survey creator object that fires the event
|
|
2108
|
+
* <br/> options.obj the survey Question
|
|
2109
|
+
* <br/> options.item the object property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
|
|
2110
|
+
* <br/> options.canDelete a boolean value. It is true by default. Set it false to remove delete button from the Property Grid or in Question Editor
|
|
2111
|
+
* @see onCollectionItemAllowOperations
|
|
2112
|
+
*/
|
|
2076
2113
|
onCanDeleteItem: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2077
2114
|
/**
|
|
2078
2115
|
* The event is called on deleting a collection item from the Property Editor. For example: column in columns editor or item in choices and so on.
|
|
@@ -2250,10 +2287,15 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2250
2287
|
*/
|
|
2251
2288
|
onDesignerSurveyCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2252
2289
|
/**
|
|
2253
|
-
* The event is fired when the survey creator
|
|
2290
|
+
* The event is fired when the survey creator creates survey in Preview tab for testing.
|
|
2254
2291
|
* <br/> sender the survey creator object that fires the event
|
|
2255
|
-
* <br/> options.survey the survey object showing in the "
|
|
2292
|
+
* <br/> options.survey the survey object showing in the "Preview" tab.
|
|
2256
2293
|
*/
|
|
2294
|
+
onPreviewSurveyCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2295
|
+
/**
|
|
2296
|
+
* Obsolete. Please use onPreviewSurveyCreated event.
|
|
2297
|
+
* @see onPreviewSurveyCreated
|
|
2298
|
+
*/
|
|
2257
2299
|
onTestSurveyCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2258
2300
|
/**
|
|
2259
2301
|
* The event is called in case of UI notifications. By default all notifications are done via built-in alert () function.
|
|
@@ -2345,29 +2387,51 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2345
2387
|
*/
|
|
2346
2388
|
maximumRateValues: number;
|
|
2347
2389
|
/**
|
|
2348
|
-
*
|
|
2390
|
+
* Obsolete. Please use showPagesInPreviewTab
|
|
2349
2391
|
*/
|
|
2350
2392
|
showPagesInTestSurveyTab: boolean;
|
|
2351
2393
|
/**
|
|
2352
|
-
* Set this property to false to hide the
|
|
2394
|
+
* Set this property to false to hide the pages selector in the Preview Tab
|
|
2395
|
+
*/
|
|
2396
|
+
get showPagesInPreviewTab(): boolean;
|
|
2397
|
+
set showPagesInPreviewTab(val: boolean);
|
|
2398
|
+
/**
|
|
2399
|
+
* Obsolete. Please use showSimulatorInPreviewTab.
|
|
2400
|
+
* @see showSimulatorInPreviewTab
|
|
2353
2401
|
*/
|
|
2354
2402
|
showSimulatorInTestSurveyTab: boolean;
|
|
2403
|
+
/**
|
|
2404
|
+
* Set this property to false to hide the device simulator in the Preview Tab
|
|
2405
|
+
*/
|
|
2406
|
+
get showSimulatorInPreviewTab(): boolean;
|
|
2407
|
+
set showSimulatorInPreviewTab(val: boolean);
|
|
2355
2408
|
/**
|
|
2356
2409
|
* Set this property to false to disable pages adding, editing and deleting
|
|
2357
2410
|
*/
|
|
2358
2411
|
allowModifyPages: boolean;
|
|
2412
|
+
/**
|
|
2413
|
+
* Obsolete. Please use showDefaultLanguageInPreviewTab
|
|
2414
|
+
* @see showDefaultLanguageInPreviewTab
|
|
2415
|
+
*/
|
|
2416
|
+
showDefaultLanguageInTestSurveyTab: boolean | string;
|
|
2359
2417
|
/**
|
|
2360
2418
|
* The default value is _"auto"_. It shows the language selector if there are more than two languages are using in the survey.
|
|
2361
2419
|
* It shows only used languages in the survey.
|
|
2362
|
-
* Set this property to _false_ to hide the default language selector in the
|
|
2420
|
+
* Set this property to _false_ to hide the default language selector in the Preview Tab.
|
|
2363
2421
|
* Set it to _true_ to show this selector even if there is only one language in the survey
|
|
2364
2422
|
* Set it to _all_ to show the selector with all available languages (30+)
|
|
2365
2423
|
*/
|
|
2366
|
-
|
|
2424
|
+
get showDefaultLanguageInPreviewTab(): boolean | string;
|
|
2425
|
+
set showDefaultLanguageInPreviewTab(val: boolean | string);
|
|
2367
2426
|
/**
|
|
2368
|
-
* Set this property to false to hide the show invisible element checkbox in the
|
|
2427
|
+
* Set this property to false to hide the show invisible element checkbox in the Preview Tab
|
|
2369
2428
|
*/
|
|
2370
2429
|
showInvisibleElementsInTestSurveyTab: boolean;
|
|
2430
|
+
/**
|
|
2431
|
+
* Set this property to false to hide the show invisible element checkbox in the Preview Tab
|
|
2432
|
+
*/
|
|
2433
|
+
get showInvisibleElementsInPreviewTab(): boolean;
|
|
2434
|
+
set showInvisibleElementsInPreviewTab(val: boolean);
|
|
2371
2435
|
/**
|
|
2372
2436
|
* Set this property to true if you want to show "page selector" in the toolabar instead of "pages editor"
|
|
2373
2437
|
*/
|
|
@@ -2524,7 +2588,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2524
2588
|
get JSON(): any;
|
|
2525
2589
|
set JSON(val: any);
|
|
2526
2590
|
loadSurvey(surveyId: string): void;
|
|
2527
|
-
protected doClickQuestionCore(element: IElement, modifiedType?: string, index?: number): void;
|
|
2591
|
+
protected doClickQuestionCore(element: IElement, modifiedType?: string, index?: number, panel?: IPanel): void;
|
|
2528
2592
|
setNewNames(element: Survey.ISurveyElement): void;
|
|
2529
2593
|
protected getAllQuestions(): Array<any>;
|
|
2530
2594
|
protected getAllPanels(): Array<any>;
|
|
@@ -2628,7 +2692,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2628
2692
|
* Returns true if selected element is null or there is no errors.
|
|
2629
2693
|
*/
|
|
2630
2694
|
validateSelectedElement(): boolean;
|
|
2631
|
-
clickToolboxItem(newElement: any): void;
|
|
2695
|
+
clickToolboxItem(newElement: any, panel?: IPanel): void;
|
|
2632
2696
|
getJSONForNewElement(json: any): any;
|
|
2633
2697
|
/**
|
|
2634
2698
|
* Open file chooser dialog
|
|
@@ -2657,6 +2721,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2657
2721
|
set alwaySaveTextInPropertyEditors(value: boolean);
|
|
2658
2722
|
onCanShowPropertyCallback(object: any, property: Survey.JsonObjectProperty, showMode: string, parentObj: any, parentProperty: Survey.JsonObjectProperty): boolean;
|
|
2659
2723
|
onPropertyEditorCreatedCallback(object: any, property: Survey.JsonObjectProperty, editor: Question): void;
|
|
2724
|
+
onPropertyEditorUpdateTitleActionsCallback(object: any, property: Survey.JsonObjectProperty, editor: Question, titleActions: IAction[]): void;
|
|
2660
2725
|
onCanDeleteItemCallback(object: any, item: Survey.Base, allowDelete: boolean): boolean;
|
|
2661
2726
|
onCollectionItemDeletingCallback(obj: Survey.Base, property: Survey.JsonObjectProperty, collection: Array<Survey.Base>, item: Survey.Base): boolean;
|
|
2662
2727
|
onCollectionItemAllowingCallback(obj: Base, property: Survey.JsonObjectProperty, collection: Array<Base>, item: Base, itemOptions: ICollectionItemAllowOperations): void;
|
|
@@ -2685,15 +2750,16 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2685
2750
|
get saveSurveyFunc(): any;
|
|
2686
2751
|
set saveSurveyFunc(value: any);
|
|
2687
2752
|
convertCurrentQuestion(newType: string): void;
|
|
2753
|
+
getAddNewQuestionText(currentAddQuestionType?: string): any;
|
|
2688
2754
|
get addNewQuestionText(): any;
|
|
2689
|
-
getQuestionTypeSelectorModel(beforeAdd: () => void): {
|
|
2755
|
+
getQuestionTypeSelectorModel(beforeAdd: (type: string) => void, panel?: IPanel): {
|
|
2690
2756
|
iconName: string;
|
|
2691
2757
|
action: () => void;
|
|
2692
2758
|
popupModel: Survey.PopupModel<{
|
|
2693
2759
|
model: Survey.ListModel;
|
|
2694
2760
|
}>;
|
|
2695
2761
|
};
|
|
2696
|
-
addNewQuestionInPage(beforeAdd: () => void): void;
|
|
2762
|
+
addNewQuestionInPage(beforeAdd: (string: any) => void, panel?: IPanel, type?: string): void;
|
|
2697
2763
|
createIActionBarItemByClass(className: string, title?: string): Action;
|
|
2698
2764
|
onElementMenuItemsChanged(element: any, items: Action[]): void;
|
|
2699
2765
|
getElementAllowOperations(element: SurveyElement): any;
|
|
@@ -3070,7 +3136,8 @@ export declare class TranslationGroup extends TranslationItemBase {
|
|
|
3070
3136
|
name: any;
|
|
3071
3137
|
obj: any;
|
|
3072
3138
|
text: string;
|
|
3073
|
-
|
|
3139
|
+
hasIndent: boolean;
|
|
3140
|
+
constructor(name: any, obj: any, translation?: ITranslationLocales, text?: string, hasIndent?: boolean);
|
|
3074
3141
|
getType(): string;
|
|
3075
3142
|
showHeader: boolean;
|
|
3076
3143
|
get items(): Array<TranslationItemBase>;
|
|
@@ -3473,7 +3540,9 @@ export declare class TabDesignerViewModel<T extends SurveyModel> extends Base {
|
|
|
3473
3540
|
get isToolboxVisible(): boolean;
|
|
3474
3541
|
initSurvey(): void;
|
|
3475
3542
|
dispose(): void;
|
|
3543
|
+
clickDesigner(): void;
|
|
3476
3544
|
getDesignerCss(): string;
|
|
3545
|
+
getRootCss(): string;
|
|
3477
3546
|
}
|
|
3478
3547
|
|
|
3479
3548
|
export declare class TabDesignerPlugin<T extends SurveyModel> implements ICreatorPlugin {
|
|
@@ -3485,6 +3554,7 @@ export declare class TabDesignerPlugin<T extends SurveyModel> implements ICreato
|
|
|
3485
3554
|
deactivate(): boolean;
|
|
3486
3555
|
update(): void;
|
|
3487
3556
|
createActions(): Action[];
|
|
3557
|
+
selectSurvey(): void;
|
|
3488
3558
|
addFooterActions(): void;
|
|
3489
3559
|
}
|
|
3490
3560
|
|
|
@@ -3569,6 +3639,7 @@ export declare var logicCss: {
|
|
|
3569
3639
|
requiredText: string;
|
|
3570
3640
|
};
|
|
3571
3641
|
paneldynamic: {
|
|
3642
|
+
mainRoot: string;
|
|
3572
3643
|
root: string;
|
|
3573
3644
|
navigation: string;
|
|
3574
3645
|
title: string;
|
|
@@ -3599,6 +3670,7 @@ export declare var logicCss: {
|
|
|
3599
3670
|
pageTitle: string;
|
|
3600
3671
|
pageDescription: string;
|
|
3601
3672
|
row: string;
|
|
3673
|
+
rowMultiple: string;
|
|
3602
3674
|
question: {
|
|
3603
3675
|
mainRoot: string;
|
|
3604
3676
|
flowRoot: string;
|
|
@@ -3628,7 +3700,6 @@ export declare var logicCss: {
|
|
|
3628
3700
|
};
|
|
3629
3701
|
image: {
|
|
3630
3702
|
root: string;
|
|
3631
|
-
image: string;
|
|
3632
3703
|
};
|
|
3633
3704
|
error: {
|
|
3634
3705
|
root: string;
|
|
@@ -3792,6 +3863,7 @@ export declare var logicCss: {
|
|
|
3792
3863
|
itemDisabled: string;
|
|
3793
3864
|
};
|
|
3794
3865
|
comment: {
|
|
3866
|
+
mainRoot: string;
|
|
3795
3867
|
root: string;
|
|
3796
3868
|
small: string;
|
|
3797
3869
|
};
|
|
@@ -3839,13 +3911,16 @@ export declare var logicCss: {
|
|
|
3839
3911
|
buttonCollapsed: string;
|
|
3840
3912
|
};
|
|
3841
3913
|
};
|
|
3914
|
+
embeddedsurvey: {
|
|
3915
|
+
mainRoot: string;
|
|
3916
|
+
};
|
|
3842
3917
|
};
|
|
3843
3918
|
|
|
3844
3919
|
export declare class ToolboxToolViewModel extends Base {
|
|
3845
3920
|
protected item: IQuestionToolboxItem;
|
|
3846
3921
|
protected creator: CreatorBase<SurveyModel>;
|
|
3847
3922
|
constructor(item: IQuestionToolboxItem, creator: CreatorBase<SurveyModel>);
|
|
3848
|
-
click: (event: any) =>
|
|
3923
|
+
click: (event: any) => void;
|
|
3849
3924
|
get allowAdd(): boolean;
|
|
3850
3925
|
onPointerDown(pointerDownEvent: any): boolean;
|
|
3851
3926
|
}
|
|
@@ -3863,6 +3938,9 @@ export declare class PageNavigatorViewModel<T extends SurveyModel> extends Base
|
|
|
3863
3938
|
isPopupOpened: boolean;
|
|
3864
3939
|
protected createActionBarCore(item: IAction): Action;
|
|
3865
3940
|
togglePageSelector: () => void;
|
|
3941
|
+
get pageSelectorCaption(): any;
|
|
3942
|
+
onContainerScroll(viewPort: HTMLDivElement): any;
|
|
3943
|
+
currentPage: PageModel;
|
|
3866
3944
|
}
|
|
3867
3945
|
|
|
3868
3946
|
import "./page.scss";
|
|
@@ -3871,6 +3949,7 @@ export declare class PageViewModel<T extends SurveyModel> extends ActionContaine
|
|
|
3871
3949
|
isPageLive: boolean;
|
|
3872
3950
|
onPageSelectedCallback: () => void;
|
|
3873
3951
|
questionTypeSelectorModel: any;
|
|
3952
|
+
currentAddQuestionType: string;
|
|
3874
3953
|
constructor(creator: CreatorBase<T>, page: PageModel);
|
|
3875
3954
|
protected onElementSelectedChanged(isSelected: boolean): void;
|
|
3876
3955
|
dispose(): void;
|
|
@@ -3900,6 +3979,7 @@ import "./question.scss";
|
|
|
3900
3979
|
export declare class QuestionAdornerViewModel extends ActionContainerViewModel<SurveyModel> {
|
|
3901
3980
|
templateData: SurveyTemplateRendererTemplateData;
|
|
3902
3981
|
isDragged: boolean;
|
|
3982
|
+
currentAddQuestionType: string;
|
|
3903
3983
|
constructor(creator: CreatorBase<SurveyModel>, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
|
|
3904
3984
|
select(model: QuestionAdornerViewModel, event: IPortableMouseEvent): boolean;
|
|
3905
3985
|
rootCss(): "" | " svc-question__adorner--start-with-new-line";
|
|
@@ -3916,8 +3996,18 @@ export declare class QuestionAdornerViewModel extends ActionContainerViewModel<S
|
|
|
3916
3996
|
set isRequired(newVal: any);
|
|
3917
3997
|
startDragSurveyElement(event: PointerEvent): boolean;
|
|
3918
3998
|
get allowEdit(): boolean;
|
|
3999
|
+
getConvertToTypesActions(): Array<IAction>;
|
|
3919
4000
|
protected buildActions(items: Array<Action>): void;
|
|
3920
4001
|
protected duplicate(): void;
|
|
4002
|
+
addNewQuestion(): void;
|
|
4003
|
+
questionTypeSelectorModel: {
|
|
4004
|
+
iconName: string;
|
|
4005
|
+
action: () => void;
|
|
4006
|
+
popupModel: PopupModel<{
|
|
4007
|
+
model: ListModel;
|
|
4008
|
+
}>;
|
|
4009
|
+
};
|
|
4010
|
+
get addNewQuestionText(): string;
|
|
3921
4011
|
}
|
|
3922
4012
|
|
|
3923
4013
|
import "./question-image.scss";
|
|
@@ -4298,6 +4388,7 @@ export interface IPropertyGridEditor {
|
|
|
4298
4388
|
onMatrixCellValueChanged?: (obj: Base, options: any) => void;
|
|
4299
4389
|
onMatrixAllowRemoveRow?: (obj: Base, row: any) => boolean;
|
|
4300
4390
|
onGetQuestionTitleActions?: (obj: Base, options: any) => void;
|
|
4391
|
+
onUpdateQuestionCssClasses?: (obj: Base, options: any) => void;
|
|
4301
4392
|
}
|
|
4302
4393
|
export declare var PropertyGridEditorCollection: {
|
|
4303
4394
|
editors: IPropertyGridEditor[];
|
|
@@ -4313,6 +4404,7 @@ export declare var PropertyGridEditorCollection: {
|
|
|
4313
4404
|
onMatrixCellValueChanged(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
4314
4405
|
onMatrixAllowRemoveRow(obj: Base, prop: JsonObjectProperty, row: MatrixDynamicRowModel): boolean;
|
|
4315
4406
|
onGetMatrixRowAction(obj: Base, prop: JsonObjectProperty, options: any, setObjFunc: (obj: Base) => void): void;
|
|
4407
|
+
onUpdateQuestionCssClasses(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
4316
4408
|
onGetQuestionTitleActions(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
4317
4409
|
onValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
|
|
4318
4410
|
onMasterValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
|
|
@@ -4356,7 +4448,9 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
|
|
|
4356
4448
|
constructor();
|
|
4357
4449
|
abstract fit(prop: JsonObjectProperty): boolean;
|
|
4358
4450
|
abstract getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4359
|
-
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): any;
|
|
4451
|
+
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
|
|
4452
|
+
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
4453
|
+
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
4360
4454
|
}
|
|
4361
4455
|
export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
4362
4456
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
@@ -4587,8 +4681,10 @@ export declare class PropertyGridEditorQuestionRestfull extends PropertyGridEdit
|
|
|
4587
4681
|
export declare class QuestionLinkValueModel extends Question {
|
|
4588
4682
|
linkClickCallback: () => void;
|
|
4589
4683
|
resetClickCallback: () => void;
|
|
4684
|
+
isSelected: boolean;
|
|
4590
4685
|
linkValueText: string;
|
|
4591
4686
|
showClear: boolean;
|
|
4687
|
+
allowClear: boolean;
|
|
4592
4688
|
showValueInLink: boolean;
|
|
4593
4689
|
constructor(name: string, json?: any);
|
|
4594
4690
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
@@ -4600,6 +4696,7 @@ export declare abstract class PropertyGridValueEditorBase extends PropertyGridEd
|
|
|
4600
4696
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4601
4697
|
onCreated: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
|
|
4602
4698
|
clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
4699
|
+
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
4603
4700
|
protected isValueEmpty(val: any): boolean;
|
|
4604
4701
|
}
|
|
4605
4702
|
export declare class PropertyGridCellsEditor extends PropertyGridValueEditorBase {
|
|
@@ -4694,6 +4791,7 @@ export declare var propertyGridCss: {
|
|
|
4694
4791
|
pageTitle: string;
|
|
4695
4792
|
pageDescription: string;
|
|
4696
4793
|
row: string;
|
|
4794
|
+
rowMultiple: string;
|
|
4697
4795
|
question: {
|
|
4698
4796
|
mainRoot: string;
|
|
4699
4797
|
flowRoot: string;
|
|
@@ -4917,11 +5015,11 @@ export declare var propertyGridCss: {
|
|
|
4917
5015
|
export declare class QuestionConverter {
|
|
4918
5016
|
static convertInfo: {};
|
|
4919
5017
|
static addConvertInfo(className: string, convertToClassName: string): void;
|
|
4920
|
-
static getConvertToClasses(className: string, availableTypes?: Array<string
|
|
5018
|
+
static getConvertToClasses(className: string, availableTypes?: Array<string>, includeCurrent?: boolean): Array<string>;
|
|
4921
5019
|
static convertObject(obj: Survey.Question, convertToClass: string): Survey.Question;
|
|
4922
5020
|
}
|
|
4923
5021
|
|
|
4924
|
-
export declare var
|
|
5022
|
+
export declare var svgBundle: string;
|
|
4925
5023
|
|
|
4926
5024
|
export declare class SurveyTextWorker {
|
|
4927
5025
|
text: string;
|
|
@@ -5136,10 +5234,13 @@ export declare class SideBarModel extends Base {
|
|
|
5136
5234
|
getTabById(id: string): SideBarTabModel;
|
|
5137
5235
|
constructor(creator: CreatorBase, collapseAction?: () => void, expandAction?: () => void);
|
|
5138
5236
|
getExpandAction(): Action;
|
|
5139
|
-
|
|
5237
|
+
collapseSideBar(): void;
|
|
5238
|
+
expandSideBar(): void;
|
|
5140
5239
|
addTab(id: string, componentName?: string, model?: any, buildActions?: () => Array<Action>): SideBarTabModel;
|
|
5141
5240
|
updateHasVisibleTabs(): void;
|
|
5142
5241
|
dispose(): void;
|
|
5242
|
+
initResizeManager(container: HTMLDivElement): void;
|
|
5243
|
+
resetResizeManager(): void;
|
|
5143
5244
|
}
|
|
5144
5245
|
|
|
5145
5246
|
export declare class SideBarTabModel extends Base {
|
|
@@ -5174,9 +5275,12 @@ export declare function getFirstNonTextElement(elements: any): any;
|
|
|
5174
5275
|
export declare function getNodesFromKoComponentInfo(componentInfo: any): any;
|
|
5175
5276
|
export declare function propertyExists(obj: any, propertyName: string): boolean;
|
|
5176
5277
|
export declare function isPropertyVisible(obj: any, propertyName: string): boolean;
|
|
5177
|
-
export declare function toggleHovered(e: MouseEvent, element: HTMLElement): void;
|
|
5278
|
+
export declare function toggleHovered(e: MouseEvent, element: HTMLElement, timeout?: number): void;
|
|
5178
5279
|
export declare function clearNewLines(text: string): string;
|
|
5179
5280
|
export declare function select(element: any): void;
|
|
5281
|
+
export declare function copyObject(dst: any, src: any): void;
|
|
5282
|
+
export declare function copyCssClasses(dest: any, source: any): void;
|
|
5283
|
+
export declare function assignDefaultV2Classes(destination: any, questionType: string): void;
|
|
5180
5284
|
|
|
5181
5285
|
export interface ISurveyQuestionEditorDefinition {
|
|
5182
5286
|
title?: string;
|
|
@@ -5244,7 +5348,8 @@ export declare class Notifier extends Base {
|
|
|
5244
5348
|
}
|
|
5245
5349
|
|
|
5246
5350
|
export declare class ResizeManager {
|
|
5247
|
-
constructor(container: HTMLElement);
|
|
5351
|
+
constructor(container: HTMLElement, handles: string);
|
|
5352
|
+
setHandles(newVal: string): void;
|
|
5248
5353
|
dispose(): void;
|
|
5249
5354
|
}
|
|
5250
5355
|
|
|
@@ -5694,6 +5799,7 @@ export interface IPropertyGridEditor {
|
|
|
5694
5799
|
onMatrixCellValueChanged?: (obj: Base, options: any) => void;
|
|
5695
5800
|
onMatrixAllowRemoveRow?: (obj: Base, row: any) => boolean;
|
|
5696
5801
|
onGetQuestionTitleActions?: (obj: Base, options: any) => void;
|
|
5802
|
+
onUpdateQuestionCssClasses?: (obj: Base, options: any) => void;
|
|
5697
5803
|
}
|
|
5698
5804
|
export declare var PropertyGridEditorCollection: {
|
|
5699
5805
|
editors: IPropertyGridEditor[];
|
|
@@ -5709,6 +5815,7 @@ export declare var PropertyGridEditorCollection: {
|
|
|
5709
5815
|
onMatrixCellValueChanged(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
5710
5816
|
onMatrixAllowRemoveRow(obj: Base, prop: JsonObjectProperty, row: MatrixDynamicRowModel): boolean;
|
|
5711
5817
|
onGetMatrixRowAction(obj: Base, prop: JsonObjectProperty, options: any, setObjFunc: (obj: Base) => void): void;
|
|
5818
|
+
onUpdateQuestionCssClasses(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
5712
5819
|
onGetQuestionTitleActions(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
5713
5820
|
onValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
|
|
5714
5821
|
onMasterValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
|
|
@@ -5752,7 +5859,9 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
|
|
|
5752
5859
|
constructor();
|
|
5753
5860
|
abstract fit(prop: JsonObjectProperty): boolean;
|
|
5754
5861
|
abstract getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
5755
|
-
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): any;
|
|
5862
|
+
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
|
|
5863
|
+
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
5864
|
+
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
5756
5865
|
}
|
|
5757
5866
|
export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
5758
5867
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|