survey-creator-core 1.8.78-beta.1 → 1.9.2-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 +2890 -5579
- package/survey-creator-core.d.ts +199 -70
- package/survey-creator-core.js +1782 -1053
- package/survey-creator-core.min.css +38 -1719
- 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.2-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";
|
|
@@ -17,12 +17,12 @@ import { Action, SurveyModel } from "survey-core";
|
|
|
17
17
|
import { SurveyModel, Base, Event, Question } from "survey-core";
|
|
18
18
|
import { Base, SurveyModel, JsonObjectProperty, PageModel, ILocalizableString, QuestionCheckboxModel, IAction } from "survey-core";
|
|
19
19
|
import { SurveyModel, Action } from "survey-core";
|
|
20
|
-
import { Base, PageModel, SurveyModel
|
|
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";
|
|
@@ -34,10 +34,11 @@ import { SurveyModel, QuestionNonValue } from "survey-core";
|
|
|
34
34
|
import { Base, JsonObjectProperty, PanelModel, PanelModelBase, Question, SurveyModel, MatrixDynamicRowModel } from "survey-core";
|
|
35
35
|
import { Base, JsonObjectProperty, Question } from "survey-core";
|
|
36
36
|
import { Base, JsonObjectProperty, MatrixDynamicRowModel, Question, QuestionMatrixDynamicModel } from "survey-core";
|
|
37
|
-
import { Base, SurveyModel,
|
|
37
|
+
import { Base, SurveyModel, Action } from "survey-core";
|
|
38
38
|
import { Base, SurveyModel, ListModel, IAction, Action } from "survey-core";
|
|
39
39
|
import { Base, JsonObjectProperty } from "survey-core";
|
|
40
40
|
import { Action, AdaptiveActionContainer, Base, IAction, Question, SurveyModel } from "survey-core";
|
|
41
|
+
import { Base, AdaptiveActionContainer, Action } from "survey-core";
|
|
41
42
|
import { Base, ItemValue, JsonObjectProperty } from "survey-core";
|
|
42
43
|
import { ArrayChanges, Base } from "survey-core";
|
|
43
44
|
import { Base, SurveyModel, EventBase, PageModel } from "survey-core";
|
|
@@ -55,6 +56,7 @@ import "../components/tabbed-menu/tabbed-menu.scss";
|
|
|
55
56
|
import "../components/toolbox/toolbox-tool.scss";
|
|
56
57
|
import "../components/question-dropdown.scss";
|
|
57
58
|
import "../components/toolbox/toolbox.scss";
|
|
59
|
+
import "../components/side-bar/side-bar.scss";
|
|
58
60
|
import "../property-grid-theme/property-grid.scss";
|
|
59
61
|
import "../utils/design.scss";
|
|
60
62
|
import "../utils/layout.scss";
|
|
@@ -1784,6 +1786,9 @@ export declare var settings: {
|
|
|
1784
1786
|
showTabs: boolean;
|
|
1785
1787
|
showToolbar: boolean;
|
|
1786
1788
|
};
|
|
1789
|
+
jsonEditor: {
|
|
1790
|
+
indentation: number;
|
|
1791
|
+
};
|
|
1787
1792
|
};
|
|
1788
1793
|
export interface ICollectionItemAllowOperations {
|
|
1789
1794
|
allowDelete: boolean;
|
|
@@ -1803,6 +1808,7 @@ export interface ISurveyCreatorOptions {
|
|
|
1803
1808
|
getObjectDisplayName(obj: Base, reason: string, displayName: string): string;
|
|
1804
1809
|
onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
|
|
1805
1810
|
onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): any;
|
|
1811
|
+
onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: IAction[]): any;
|
|
1806
1812
|
onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
|
|
1807
1813
|
onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
|
|
1808
1814
|
onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: Array<Base>, item: Base): boolean;
|
|
@@ -1833,6 +1839,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
1833
1839
|
getObjectDisplayName(obj: Base, reason: string, displayName: string): string;
|
|
1834
1840
|
onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
|
|
1835
1841
|
onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): void;
|
|
1842
|
+
onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: IAction[]): void;
|
|
1836
1843
|
onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
|
|
1837
1844
|
onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
|
|
1838
1845
|
onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: Array<Base>, item: Base): boolean;
|
|
@@ -1852,6 +1859,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
1852
1859
|
|
|
1853
1860
|
import "./components/creator.scss";
|
|
1854
1861
|
import "./components/string-editor.scss";
|
|
1862
|
+
import "./creator-theme/creator.scss";
|
|
1855
1863
|
export interface IKeyboardShortcut {
|
|
1856
1864
|
name?: string;
|
|
1857
1865
|
hotKey: {
|
|
@@ -1872,7 +1880,6 @@ export interface ICreatorPlugin {
|
|
|
1872
1880
|
update?: () => void;
|
|
1873
1881
|
deactivate?: () => boolean;
|
|
1874
1882
|
model: Base;
|
|
1875
|
-
propertyGrid?: PropertyGridViewModelBase;
|
|
1876
1883
|
}
|
|
1877
1884
|
export interface ITabbedMenuItem extends IAction {
|
|
1878
1885
|
componentContent: string;
|
|
@@ -1886,13 +1893,18 @@ export declare class TabbedMenuItem extends Action implements ITabbedMenuItem {
|
|
|
1886
1893
|
export declare class TabbedMenuContainer extends AdaptiveActionContainer<TabbedMenuItem> {
|
|
1887
1894
|
constructor();
|
|
1888
1895
|
}
|
|
1896
|
+
export declare class ToolbarActionContainer extends ActionContainer {
|
|
1897
|
+
constructor(creator: CreatorBase);
|
|
1898
|
+
protected getRenderedActions(): Array<Action>;
|
|
1899
|
+
}
|
|
1900
|
+
export declare type toolBoxLocationType = "left" | "right" | "insideSideBar" | "hidden";
|
|
1889
1901
|
/**
|
|
1890
1902
|
* Base class for Survey Creator.
|
|
1891
1903
|
*/
|
|
1892
1904
|
export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Survey.Base implements ISurveyCreatorOptions, ICreatorSelectionOwner {
|
|
1893
1905
|
protected options: ICreatorOptions;
|
|
1894
1906
|
/**
|
|
1895
|
-
* Set it to true to show "
|
|
1907
|
+
* Set it to true to show "Designer" tab and to false to hide the tab
|
|
1896
1908
|
*/
|
|
1897
1909
|
showDesignerTab: boolean;
|
|
1898
1910
|
/**
|
|
@@ -1900,9 +1912,15 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1900
1912
|
*/
|
|
1901
1913
|
showJSONEditorTab: boolean;
|
|
1902
1914
|
/**
|
|
1903
|
-
*
|
|
1915
|
+
* Obsolete. Please use showPreviewTab property
|
|
1916
|
+
* @see showPreviewTab
|
|
1904
1917
|
*/
|
|
1905
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);
|
|
1906
1924
|
/**
|
|
1907
1925
|
* Set it to true to show "Embed Survey" tab and to false to hide the tab
|
|
1908
1926
|
*/
|
|
@@ -1915,6 +1933,10 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1915
1933
|
* Set it to true to show "Logic" tab and to false to hide the tab
|
|
1916
1934
|
*/
|
|
1917
1935
|
showLogicTab: boolean;
|
|
1936
|
+
/**
|
|
1937
|
+
* Set delay for page hover
|
|
1938
|
+
*/
|
|
1939
|
+
pageHoverDelay: number;
|
|
1918
1940
|
/**
|
|
1919
1941
|
* Set it to false to hide survey title and coresponding properties
|
|
1920
1942
|
*/
|
|
@@ -1953,7 +1975,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1953
1975
|
* Returns the current show view name. The possible returns values are:
|
|
1954
1976
|
* "designer", "editor", "test", "embed", "logic" and "translation".
|
|
1955
1977
|
* @see showDesigner
|
|
1956
|
-
* @see
|
|
1978
|
+
* @see showPreview
|
|
1957
1979
|
* @see showJsonEditor
|
|
1958
1980
|
* @see showLogicEditor
|
|
1959
1981
|
* @see showTranslationEditor
|
|
@@ -1963,7 +1985,15 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1963
1985
|
get isDesignerShowing(): boolean;
|
|
1964
1986
|
showDesigner(): void;
|
|
1965
1987
|
get isTestSurveyShowing(): boolean;
|
|
1988
|
+
/**
|
|
1989
|
+
* Return true if Preview tab is currently active
|
|
1990
|
+
*/
|
|
1991
|
+
get isPreviewShowing(): boolean;
|
|
1966
1992
|
showTestSurvey(): void;
|
|
1993
|
+
/**
|
|
1994
|
+
* Show Preview tab
|
|
1995
|
+
*/
|
|
1996
|
+
showPreview(): void;
|
|
1967
1997
|
protected plugins: {
|
|
1968
1998
|
[name: string]: ICreatorPlugin;
|
|
1969
1999
|
};
|
|
@@ -1993,7 +2023,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1993
2023
|
* The event is fired when the survey creator creates a survey object (Survey.Survey).
|
|
1994
2024
|
* <br/> sender the survey creator object that fires the event
|
|
1995
2025
|
* <br/> options.survey the survey object showing in the creator.
|
|
1996
|
-
* <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.
|
|
1997
2027
|
*/
|
|
1998
2028
|
onSurveyInstanceCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
1999
2029
|
/**
|
|
@@ -2005,8 +2035,8 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2005
2035
|
* <br/> options.displayName change this property to show your custom display name for the object
|
|
2006
2036
|
* <br/> The list of possible values in options.reason:
|
|
2007
2037
|
* <br/> "condition" - raised from Condition modal window or on setup condition in a logic tab
|
|
2008
|
-
* <br/> "survey-tester" - raised from page selector list in "
|
|
2009
|
-
* <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
|
|
2010
2040
|
* <br/> "survey-translation" - raised from translation tab
|
|
2011
2041
|
* <br/> "property-grid" - raised from showing object selector for property grid in "Designer" tab.
|
|
2012
2042
|
* @see showObjectTitles
|
|
@@ -2063,14 +2093,23 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2063
2093
|
*/
|
|
2064
2094
|
onPropertyEditorCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2065
2095
|
/**
|
|
2066
|
-
* The event is called
|
|
2067
|
-
*
|
|
2068
|
-
* <br/>
|
|
2069
|
-
* <br/> options.
|
|
2070
|
-
* <br/> options.
|
|
2071
|
-
* <br/> options.
|
|
2072
|
-
* @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.
|
|
2073
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
|
+
*/
|
|
2074
2113
|
onCanDeleteItem: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2075
2114
|
/**
|
|
2076
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.
|
|
@@ -2248,10 +2287,15 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2248
2287
|
*/
|
|
2249
2288
|
onDesignerSurveyCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2250
2289
|
/**
|
|
2251
|
-
* The event is fired when the survey creator
|
|
2290
|
+
* The event is fired when the survey creator creates survey in Preview tab for testing.
|
|
2252
2291
|
* <br/> sender the survey creator object that fires the event
|
|
2253
|
-
* <br/> options.survey the survey object showing in the "
|
|
2292
|
+
* <br/> options.survey the survey object showing in the "Preview" tab.
|
|
2254
2293
|
*/
|
|
2294
|
+
onPreviewSurveyCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2295
|
+
/**
|
|
2296
|
+
* Obsolete. Please use onPreviewSurveyCreated event.
|
|
2297
|
+
* @see onPreviewSurveyCreated
|
|
2298
|
+
*/
|
|
2255
2299
|
onTestSurveyCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2256
2300
|
/**
|
|
2257
2301
|
* The event is called in case of UI notifications. By default all notifications are done via built-in alert () function.
|
|
@@ -2286,6 +2330,14 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2286
2330
|
* @see uploadFile
|
|
2287
2331
|
*/
|
|
2288
2332
|
onUploadFile: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2333
|
+
/**
|
|
2334
|
+
* Use this event to modify the list of the strings available in a translation tab.
|
|
2335
|
+
* <br/> sender - the survey creator object that fires the event
|
|
2336
|
+
* <br/> options.obj - the survey object which property translations are edited in the translation tab.
|
|
2337
|
+
* <br/> options.propertyName - the name of the property.
|
|
2338
|
+
* <br/> options.visible - a boolean value. You can change it to hide the property.
|
|
2339
|
+
*/
|
|
2340
|
+
onTranslationStringVisibility: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2289
2341
|
/**
|
|
2290
2342
|
* This callback is used internally for providing survey JSON text.
|
|
2291
2343
|
*/
|
|
@@ -2335,29 +2387,51 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2335
2387
|
*/
|
|
2336
2388
|
maximumRateValues: number;
|
|
2337
2389
|
/**
|
|
2338
|
-
*
|
|
2390
|
+
* Obsolete. Please use showPagesInPreviewTab
|
|
2339
2391
|
*/
|
|
2340
2392
|
showPagesInTestSurveyTab: boolean;
|
|
2341
2393
|
/**
|
|
2342
|
-
* 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
|
|
2343
2401
|
*/
|
|
2344
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);
|
|
2345
2408
|
/**
|
|
2346
2409
|
* Set this property to false to disable pages adding, editing and deleting
|
|
2347
2410
|
*/
|
|
2348
2411
|
allowModifyPages: boolean;
|
|
2412
|
+
/**
|
|
2413
|
+
* Obsolete. Please use showDefaultLanguageInPreviewTab
|
|
2414
|
+
* @see showDefaultLanguageInPreviewTab
|
|
2415
|
+
*/
|
|
2416
|
+
showDefaultLanguageInTestSurveyTab: boolean | string;
|
|
2349
2417
|
/**
|
|
2350
2418
|
* The default value is _"auto"_. It shows the language selector if there are more than two languages are using in the survey.
|
|
2351
2419
|
* It shows only used languages in the survey.
|
|
2352
|
-
* 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.
|
|
2353
2421
|
* Set it to _true_ to show this selector even if there is only one language in the survey
|
|
2354
2422
|
* Set it to _all_ to show the selector with all available languages (30+)
|
|
2355
2423
|
*/
|
|
2356
|
-
|
|
2424
|
+
get showDefaultLanguageInPreviewTab(): boolean | string;
|
|
2425
|
+
set showDefaultLanguageInPreviewTab(val: boolean | string);
|
|
2357
2426
|
/**
|
|
2358
|
-
* 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
|
|
2359
2428
|
*/
|
|
2360
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);
|
|
2361
2435
|
/**
|
|
2362
2436
|
* Set this property to true if you want to show "page selector" in the toolabar instead of "pages editor"
|
|
2363
2437
|
*/
|
|
@@ -2401,9 +2475,9 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2401
2475
|
static defaultNewSurveyText: string;
|
|
2402
2476
|
toolbox: QuestionToolbox;
|
|
2403
2477
|
get toolboxCategories(): Array<any>;
|
|
2404
|
-
|
|
2405
|
-
getTabPropertyGrid(id: string): PropertyGridViewModelBase;
|
|
2478
|
+
sideBar: SideBarModel;
|
|
2406
2479
|
constructor(options: ICreatorOptions, options2?: ICreatorOptions);
|
|
2480
|
+
updateToolboxIsCompact(newVal?: boolean): void;
|
|
2407
2481
|
onSurveyElementPropertyValueChanged(property: Survey.JsonObjectProperty, obj: any, newValue: any): void;
|
|
2408
2482
|
get showToolbox(): string;
|
|
2409
2483
|
set showToolbox(val: string);
|
|
@@ -2514,7 +2588,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2514
2588
|
get JSON(): any;
|
|
2515
2589
|
set JSON(val: any);
|
|
2516
2590
|
loadSurvey(surveyId: string): void;
|
|
2517
|
-
protected doClickQuestionCore(element: IElement, modifiedType?: string, index?: number): void;
|
|
2591
|
+
protected doClickQuestionCore(element: IElement, modifiedType?: string, index?: number, panel?: IPanel): void;
|
|
2518
2592
|
setNewNames(element: Survey.ISurveyElement): void;
|
|
2519
2593
|
protected getAllQuestions(): Array<any>;
|
|
2520
2594
|
protected getAllPanels(): Array<any>;
|
|
@@ -2618,7 +2692,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2618
2692
|
* Returns true if selected element is null or there is no errors.
|
|
2619
2693
|
*/
|
|
2620
2694
|
validateSelectedElement(): boolean;
|
|
2621
|
-
clickToolboxItem(newElement: any): void;
|
|
2695
|
+
clickToolboxItem(newElement: any, panel?: IPanel): void;
|
|
2622
2696
|
getJSONForNewElement(json: any): any;
|
|
2623
2697
|
/**
|
|
2624
2698
|
* Open file chooser dialog
|
|
@@ -2647,6 +2721,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2647
2721
|
set alwaySaveTextInPropertyEditors(value: boolean);
|
|
2648
2722
|
onCanShowPropertyCallback(object: any, property: Survey.JsonObjectProperty, showMode: string, parentObj: any, parentProperty: Survey.JsonObjectProperty): boolean;
|
|
2649
2723
|
onPropertyEditorCreatedCallback(object: any, property: Survey.JsonObjectProperty, editor: Question): void;
|
|
2724
|
+
onPropertyEditorUpdateTitleActionsCallback(object: any, property: Survey.JsonObjectProperty, editor: Question, titleActions: IAction[]): void;
|
|
2650
2725
|
onCanDeleteItemCallback(object: any, item: Survey.Base, allowDelete: boolean): boolean;
|
|
2651
2726
|
onCollectionItemDeletingCallback(obj: Survey.Base, property: Survey.JsonObjectProperty, collection: Array<Survey.Base>, item: Survey.Base): boolean;
|
|
2652
2727
|
onCollectionItemAllowingCallback(obj: Base, property: Survey.JsonObjectProperty, collection: Array<Base>, item: Base, itemOptions: ICollectionItemAllowOperations): void;
|
|
@@ -2675,15 +2750,16 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2675
2750
|
get saveSurveyFunc(): any;
|
|
2676
2751
|
set saveSurveyFunc(value: any);
|
|
2677
2752
|
convertCurrentQuestion(newType: string): void;
|
|
2753
|
+
getAddNewQuestionText(currentAddQuestionType?: string): any;
|
|
2678
2754
|
get addNewQuestionText(): any;
|
|
2679
|
-
getQuestionTypeSelectorModel(beforeAdd: () => void): {
|
|
2755
|
+
getQuestionTypeSelectorModel(beforeAdd: (type: string) => void, panel?: IPanel): {
|
|
2680
2756
|
iconName: string;
|
|
2681
2757
|
action: () => void;
|
|
2682
2758
|
popupModel: Survey.PopupModel<{
|
|
2683
2759
|
model: Survey.ListModel;
|
|
2684
2760
|
}>;
|
|
2685
2761
|
};
|
|
2686
|
-
addNewQuestionInPage(beforeAdd: () => void): void;
|
|
2762
|
+
addNewQuestionInPage(beforeAdd: (string: any) => void, panel?: IPanel, type?: string): void;
|
|
2687
2763
|
createIActionBarItemByClass(className: string, title?: string): Action;
|
|
2688
2764
|
onElementMenuItemsChanged(element: any, items: Action[]): void;
|
|
2689
2765
|
getElementAllowOperations(element: SurveyElement): any;
|
|
@@ -2696,6 +2772,8 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2696
2772
|
showTabs: any;
|
|
2697
2773
|
showToolbar: any;
|
|
2698
2774
|
isMobileView: any;
|
|
2775
|
+
toolboxLocation: toolBoxLocationType;
|
|
2776
|
+
sideBarLocation: "left" | "right";
|
|
2699
2777
|
selectFromStringEditor: boolean;
|
|
2700
2778
|
}
|
|
2701
2779
|
export declare class StylesManager {
|
|
@@ -3052,7 +3130,7 @@ export interface ITranslationLocales {
|
|
|
3052
3130
|
translateItemAfterRender(item: TranslationItem, el: any, locale: string): any;
|
|
3053
3131
|
fireOnObjCreating(obj: Base): any;
|
|
3054
3132
|
removeLocale(loc: string): void;
|
|
3055
|
-
canShowProperty(obj: Base, prop: JsonObjectProperty): boolean;
|
|
3133
|
+
canShowProperty(obj: Base, prop: JsonObjectProperty, isEmpty: boolean): boolean;
|
|
3056
3134
|
}
|
|
3057
3135
|
export declare class TranslationGroup extends TranslationItemBase {
|
|
3058
3136
|
name: any;
|
|
@@ -3090,6 +3168,7 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
3090
3168
|
translateItemAfterRenderCallback: (item: TranslationItem, el: any, locale: string) => void;
|
|
3091
3169
|
availableTranlationsChangedCallback: () => void;
|
|
3092
3170
|
tranlationChangedCallback: (locale: string, name: string, value: string, context: any) => void;
|
|
3171
|
+
translationStringVisibilityCallback: (obj: Base, propertyName: string, visible: boolean) => boolean;
|
|
3093
3172
|
chooseLanguageActions: Array<IAction>;
|
|
3094
3173
|
constructor(survey: SurveyModel, options?: ISurveyCreatorOptions, hasUI?: boolean);
|
|
3095
3174
|
getType(): string;
|
|
@@ -3113,7 +3192,7 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
3113
3192
|
get survey(): SurveyModel;
|
|
3114
3193
|
set survey(val: SurveyModel);
|
|
3115
3194
|
reset(): void;
|
|
3116
|
-
canShowProperty(obj: Base, prop: JsonObjectProperty): boolean;
|
|
3195
|
+
canShowProperty(obj: Base, prop: JsonObjectProperty, isEmpty: boolean): boolean;
|
|
3117
3196
|
get defaultLocale(): string;
|
|
3118
3197
|
getLocaleName(loc: string): string;
|
|
3119
3198
|
removeLocale(locale: string): void;
|
|
@@ -3434,12 +3513,8 @@ export declare var translationCss: {
|
|
|
3434
3513
|
};
|
|
3435
3514
|
};
|
|
3436
3515
|
|
|
3437
|
-
export declare class PropertyGridViewTranslationModel extends PropertyGridViewModelBase {
|
|
3438
|
-
get propertyGridType(): string;
|
|
3439
|
-
}
|
|
3440
3516
|
export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
3441
3517
|
model: Translation;
|
|
3442
|
-
propertyGrid: PropertyGridViewModelBase;
|
|
3443
3518
|
constructor(creator: CreatorBase<SurveyModel>);
|
|
3444
3519
|
activate(): void;
|
|
3445
3520
|
update(): void;
|
|
@@ -3457,23 +3532,28 @@ export declare class TabDesignerViewModel<T extends SurveyModel> extends Base {
|
|
|
3457
3532
|
newPage: PageModel;
|
|
3458
3533
|
showNewPage: boolean;
|
|
3459
3534
|
pageCount: number;
|
|
3535
|
+
withModifier: string;
|
|
3460
3536
|
creator: CreatorBase<T>;
|
|
3461
3537
|
constructor(creator: CreatorBase<T>);
|
|
3462
3538
|
get survey(): T;
|
|
3539
|
+
get isToolboxVisible(): boolean;
|
|
3463
3540
|
initSurvey(): void;
|
|
3464
3541
|
dispose(): void;
|
|
3465
|
-
|
|
3542
|
+
clickDesigner(): void;
|
|
3466
3543
|
getDesignerCss(): string;
|
|
3544
|
+
getRootCss(): string;
|
|
3467
3545
|
}
|
|
3546
|
+
|
|
3468
3547
|
export declare class TabDesignerPlugin<T extends SurveyModel> implements ICreatorPlugin {
|
|
3469
3548
|
model: TabDesignerViewModel<T>;
|
|
3470
|
-
propertyGrid:
|
|
3549
|
+
propertyGrid: PropertyGridViewModel<T>;
|
|
3471
3550
|
previewAction: Action;
|
|
3472
3551
|
constructor(creator: CreatorBase<T>);
|
|
3473
3552
|
activate(): void;
|
|
3474
3553
|
deactivate(): boolean;
|
|
3475
3554
|
update(): void;
|
|
3476
3555
|
createActions(): Action[];
|
|
3556
|
+
selectSurvey(): void;
|
|
3477
3557
|
addFooterActions(): void;
|
|
3478
3558
|
}
|
|
3479
3559
|
|
|
@@ -3558,6 +3638,7 @@ export declare var logicCss: {
|
|
|
3558
3638
|
requiredText: string;
|
|
3559
3639
|
};
|
|
3560
3640
|
paneldynamic: {
|
|
3641
|
+
mainRoot: string;
|
|
3561
3642
|
root: string;
|
|
3562
3643
|
navigation: string;
|
|
3563
3644
|
title: string;
|
|
@@ -3588,6 +3669,7 @@ export declare var logicCss: {
|
|
|
3588
3669
|
pageTitle: string;
|
|
3589
3670
|
pageDescription: string;
|
|
3590
3671
|
row: string;
|
|
3672
|
+
rowMultiple: string;
|
|
3591
3673
|
question: {
|
|
3592
3674
|
mainRoot: string;
|
|
3593
3675
|
flowRoot: string;
|
|
@@ -3617,7 +3699,6 @@ export declare var logicCss: {
|
|
|
3617
3699
|
};
|
|
3618
3700
|
image: {
|
|
3619
3701
|
root: string;
|
|
3620
|
-
image: string;
|
|
3621
3702
|
};
|
|
3622
3703
|
error: {
|
|
3623
3704
|
root: string;
|
|
@@ -3781,6 +3862,7 @@ export declare var logicCss: {
|
|
|
3781
3862
|
itemDisabled: string;
|
|
3782
3863
|
};
|
|
3783
3864
|
comment: {
|
|
3865
|
+
mainRoot: string;
|
|
3784
3866
|
root: string;
|
|
3785
3867
|
small: string;
|
|
3786
3868
|
};
|
|
@@ -3828,13 +3910,16 @@ export declare var logicCss: {
|
|
|
3828
3910
|
buttonCollapsed: string;
|
|
3829
3911
|
};
|
|
3830
3912
|
};
|
|
3913
|
+
embeddedsurvey: {
|
|
3914
|
+
mainRoot: string;
|
|
3915
|
+
};
|
|
3831
3916
|
};
|
|
3832
3917
|
|
|
3833
3918
|
export declare class ToolboxToolViewModel extends Base {
|
|
3834
3919
|
protected item: IQuestionToolboxItem;
|
|
3835
3920
|
protected creator: CreatorBase<SurveyModel>;
|
|
3836
3921
|
constructor(item: IQuestionToolboxItem, creator: CreatorBase<SurveyModel>);
|
|
3837
|
-
click: (event: any) =>
|
|
3922
|
+
click: (event: any) => void;
|
|
3838
3923
|
get allowAdd(): boolean;
|
|
3839
3924
|
onPointerDown(pointerDownEvent: any): boolean;
|
|
3840
3925
|
}
|
|
@@ -3852,6 +3937,9 @@ export declare class PageNavigatorViewModel<T extends SurveyModel> extends Base
|
|
|
3852
3937
|
isPopupOpened: boolean;
|
|
3853
3938
|
protected createActionBarCore(item: IAction): Action;
|
|
3854
3939
|
togglePageSelector: () => void;
|
|
3940
|
+
get pageSelectorCaption(): any;
|
|
3941
|
+
onContainerScroll(viewPort: HTMLDivElement): any;
|
|
3942
|
+
currentPage: PageModel;
|
|
3855
3943
|
}
|
|
3856
3944
|
|
|
3857
3945
|
import "./page.scss";
|
|
@@ -3860,6 +3948,7 @@ export declare class PageViewModel<T extends SurveyModel> extends ActionContaine
|
|
|
3860
3948
|
isPageLive: boolean;
|
|
3861
3949
|
onPageSelectedCallback: () => void;
|
|
3862
3950
|
questionTypeSelectorModel: any;
|
|
3951
|
+
currentAddQuestionType: string;
|
|
3863
3952
|
constructor(creator: CreatorBase<T>, page: PageModel);
|
|
3864
3953
|
protected onElementSelectedChanged(isSelected: boolean): void;
|
|
3865
3954
|
dispose(): void;
|
|
@@ -3889,6 +3978,7 @@ import "./question.scss";
|
|
|
3889
3978
|
export declare class QuestionAdornerViewModel extends ActionContainerViewModel<SurveyModel> {
|
|
3890
3979
|
templateData: SurveyTemplateRendererTemplateData;
|
|
3891
3980
|
isDragged: boolean;
|
|
3981
|
+
currentAddQuestionType: string;
|
|
3892
3982
|
constructor(creator: CreatorBase<SurveyModel>, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
|
|
3893
3983
|
select(model: QuestionAdornerViewModel, event: IPortableMouseEvent): boolean;
|
|
3894
3984
|
rootCss(): "" | " svc-question__adorner--start-with-new-line";
|
|
@@ -3905,8 +3995,18 @@ export declare class QuestionAdornerViewModel extends ActionContainerViewModel<S
|
|
|
3905
3995
|
set isRequired(newVal: any);
|
|
3906
3996
|
startDragSurveyElement(event: PointerEvent): boolean;
|
|
3907
3997
|
get allowEdit(): boolean;
|
|
3998
|
+
getConvertToTypesActions(): Array<IAction>;
|
|
3908
3999
|
protected buildActions(items: Array<Action>): void;
|
|
3909
4000
|
protected duplicate(): void;
|
|
4001
|
+
addNewQuestion(): void;
|
|
4002
|
+
questionTypeSelectorModel: {
|
|
4003
|
+
iconName: string;
|
|
4004
|
+
action: () => void;
|
|
4005
|
+
popupModel: PopupModel<{
|
|
4006
|
+
model: ListModel;
|
|
4007
|
+
}>;
|
|
4008
|
+
};
|
|
4009
|
+
get addNewQuestionText(): string;
|
|
3910
4010
|
}
|
|
3911
4011
|
|
|
3912
4012
|
import "./question-image.scss";
|
|
@@ -4345,7 +4445,9 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
|
|
|
4345
4445
|
constructor();
|
|
4346
4446
|
abstract fit(prop: JsonObjectProperty): boolean;
|
|
4347
4447
|
abstract getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4348
|
-
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): any;
|
|
4448
|
+
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
|
|
4449
|
+
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
4450
|
+
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
4349
4451
|
}
|
|
4350
4452
|
export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
4351
4453
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
@@ -4534,28 +4636,16 @@ export declare class PropertyGridEditorBindings extends PropertyGridEditor {
|
|
|
4534
4636
|
onMatrixCellValueChanged(obj: Base, options: any): void;
|
|
4535
4637
|
}
|
|
4536
4638
|
|
|
4537
|
-
export declare
|
|
4538
|
-
|
|
4539
|
-
|
|
4540
|
-
|
|
4541
|
-
headerText: string;
|
|
4542
|
-
visible: boolean;
|
|
4543
|
-
flyoutMode: boolean;
|
|
4544
|
-
get flyoutPanelMode(): boolean;
|
|
4545
|
-
get closeText(): string;
|
|
4546
|
-
constructor(model?: Base, collapseAction?: () => void, expandAction?: () => void);
|
|
4547
|
-
abstract get propertyGridType(): string;
|
|
4548
|
-
createExpandAction(): Action;
|
|
4549
|
-
closePropertyGrid(): void;
|
|
4550
|
-
}
|
|
4551
|
-
export declare class PropertyGridViewModel<T extends SurveyModel> extends PropertyGridViewModelBase {
|
|
4639
|
+
export declare class PropertyGridViewModel<T extends SurveyModel> extends Base {
|
|
4640
|
+
nextSelectionAction: Action;
|
|
4641
|
+
prevSelectionAction: Action;
|
|
4642
|
+
objectSelectionAction: Action;
|
|
4552
4643
|
hasPrev: boolean;
|
|
4553
4644
|
hasNext: boolean;
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4645
|
+
survey: SurveyModel;
|
|
4646
|
+
selectedElementName: string;
|
|
4647
|
+
constructor(propertyGridModel: PropertyGridModel, creator: CreatorBase<T>);
|
|
4557
4648
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
4558
|
-
dispose(): void;
|
|
4559
4649
|
}
|
|
4560
4650
|
|
|
4561
4651
|
export declare class ObjectSelectorItem extends Action {
|
|
@@ -4588,8 +4678,10 @@ export declare class PropertyGridEditorQuestionRestfull extends PropertyGridEdit
|
|
|
4588
4678
|
export declare class QuestionLinkValueModel extends Question {
|
|
4589
4679
|
linkClickCallback: () => void;
|
|
4590
4680
|
resetClickCallback: () => void;
|
|
4681
|
+
isSelected: boolean;
|
|
4591
4682
|
linkValueText: string;
|
|
4592
4683
|
showClear: boolean;
|
|
4684
|
+
allowClear: boolean;
|
|
4593
4685
|
showValueInLink: boolean;
|
|
4594
4686
|
constructor(name: string, json?: any);
|
|
4595
4687
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
@@ -4918,11 +5010,11 @@ export declare var propertyGridCss: {
|
|
|
4918
5010
|
export declare class QuestionConverter {
|
|
4919
5011
|
static convertInfo: {};
|
|
4920
5012
|
static addConvertInfo(className: string, convertToClassName: string): void;
|
|
4921
|
-
static getConvertToClasses(className: string, availableTypes?: Array<string
|
|
5013
|
+
static getConvertToClasses(className: string, availableTypes?: Array<string>, includeCurrent?: boolean): Array<string>;
|
|
4922
5014
|
static convertObject(obj: Survey.Question, convertToClass: string): Survey.Question;
|
|
4923
5015
|
}
|
|
4924
5016
|
|
|
4925
|
-
export declare var
|
|
5017
|
+
export declare var svgBundle: string;
|
|
4926
5018
|
|
|
4927
5019
|
export declare class SurveyTextWorker {
|
|
4928
5020
|
text: string;
|
|
@@ -5013,8 +5105,8 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
5013
5105
|
hasCategories: boolean;
|
|
5014
5106
|
canCollapseCategories: boolean;
|
|
5015
5107
|
isCompact: boolean;
|
|
5016
|
-
visible: boolean;
|
|
5017
5108
|
constructor(supportedQuestions?: Array<string>, creator?: CreatorBase<SurveyModel>);
|
|
5109
|
+
setLocation(toolboxLocation: toolBoxLocationType): void;
|
|
5018
5110
|
/**
|
|
5019
5111
|
* The Array of Toolbox items as Text JSON.
|
|
5020
5112
|
*/
|
|
@@ -5124,6 +5216,37 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
5124
5216
|
dispose(): void;
|
|
5125
5217
|
}
|
|
5126
5218
|
|
|
5219
|
+
export declare class SideBarModel extends Base {
|
|
5220
|
+
toolbar: AdaptiveActionContainer;
|
|
5221
|
+
tabs: Array<SideBarTabModel>;
|
|
5222
|
+
headerText: string;
|
|
5223
|
+
visible: boolean;
|
|
5224
|
+
hasVisibleTabs: boolean;
|
|
5225
|
+
flyoutMode: boolean;
|
|
5226
|
+
activeTab: string;
|
|
5227
|
+
get flyoutPanelMode(): boolean;
|
|
5228
|
+
get closeText(): string;
|
|
5229
|
+
getTabById(id: string): SideBarTabModel;
|
|
5230
|
+
constructor(creator: CreatorBase, collapseAction?: () => void, expandAction?: () => void);
|
|
5231
|
+
getExpandAction(): Action;
|
|
5232
|
+
closePropertyGrid(): void;
|
|
5233
|
+
addTab(id: string, componentName?: string, model?: any, buildActions?: () => Array<Action>): SideBarTabModel;
|
|
5234
|
+
updateHasVisibleTabs(): void;
|
|
5235
|
+
dispose(): void;
|
|
5236
|
+
initResizeManager(container: HTMLDivElement): void;
|
|
5237
|
+
resetResizeManager(): void;
|
|
5238
|
+
}
|
|
5239
|
+
|
|
5240
|
+
export declare class SideBarTabModel extends Base {
|
|
5241
|
+
id: string;
|
|
5242
|
+
sidePanel: SideBarModel;
|
|
5243
|
+
caption: string;
|
|
5244
|
+
visible: boolean;
|
|
5245
|
+
model: any;
|
|
5246
|
+
componentName: string;
|
|
5247
|
+
constructor(id: string, sidePanel: SideBarModel, componentName?: string, model?: any);
|
|
5248
|
+
}
|
|
5249
|
+
|
|
5127
5250
|
export interface IPortableMouseEvent {
|
|
5128
5251
|
stopPropagation(): any;
|
|
5129
5252
|
preventDefault(): any;
|
|
@@ -5146,9 +5269,12 @@ export declare function getFirstNonTextElement(elements: any): any;
|
|
|
5146
5269
|
export declare function getNodesFromKoComponentInfo(componentInfo: any): any;
|
|
5147
5270
|
export declare function propertyExists(obj: any, propertyName: string): boolean;
|
|
5148
5271
|
export declare function isPropertyVisible(obj: any, propertyName: string): boolean;
|
|
5149
|
-
export declare function toggleHovered(e: MouseEvent, element: HTMLElement): void;
|
|
5272
|
+
export declare function toggleHovered(e: MouseEvent, element: HTMLElement, timeout?: number): void;
|
|
5150
5273
|
export declare function clearNewLines(text: string): string;
|
|
5151
5274
|
export declare function select(element: any): void;
|
|
5275
|
+
export declare function copyObject(dst: any, src: any): void;
|
|
5276
|
+
export declare function copyCssClasses(dest: any, source: any): void;
|
|
5277
|
+
export declare function assignDefaultV2Classes(destination: any, questionType: string): void;
|
|
5152
5278
|
|
|
5153
5279
|
export interface ISurveyQuestionEditorDefinition {
|
|
5154
5280
|
title?: string;
|
|
@@ -5216,7 +5342,8 @@ export declare class Notifier extends Base {
|
|
|
5216
5342
|
}
|
|
5217
5343
|
|
|
5218
5344
|
export declare class ResizeManager {
|
|
5219
|
-
constructor(container: HTMLElement);
|
|
5345
|
+
constructor(container: HTMLElement, handles: string);
|
|
5346
|
+
setHandles(newVal: string): void;
|
|
5220
5347
|
dispose(): void;
|
|
5221
5348
|
}
|
|
5222
5349
|
|
|
@@ -5724,7 +5851,9 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
|
|
|
5724
5851
|
constructor();
|
|
5725
5852
|
abstract fit(prop: JsonObjectProperty): boolean;
|
|
5726
5853
|
abstract getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
5727
|
-
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): any;
|
|
5854
|
+
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
|
|
5855
|
+
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
5856
|
+
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
5728
5857
|
}
|
|
5729
5858
|
export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
5730
5859
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|