survey-creator-core 1.9.0-beta.1 → 1.9.4-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 +1344 -717
- package/survey-creator-core.d.ts +194 -60
- package/survey-creator-core.js +1544 -850
- package/survey-creator-core.min.css +41 -37
- 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.9.
|
|
1
|
+
/*Type definitions for SurveyJS Creator JavaScript library v1.9.4-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";
|
|
@@ -31,6 +31,7 @@ import { SurveyModel, Base, Question } from "survey-core";
|
|
|
31
31
|
import { Base } from "survey-core";
|
|
32
32
|
import { Base, LocalizableString, JsonObjectProperty } from "survey-core";
|
|
33
33
|
import { SurveyModel, QuestionNonValue } from "survey-core";
|
|
34
|
+
import { Question } from "survey-core";
|
|
34
35
|
import { Base, JsonObjectProperty, PanelModel, PanelModelBase, Question, SurveyModel, MatrixDynamicRowModel } from "survey-core";
|
|
35
36
|
import { Base, JsonObjectProperty, Question } from "survey-core";
|
|
36
37
|
import { Base, JsonObjectProperty, MatrixDynamicRowModel, Question, QuestionMatrixDynamicModel } from "survey-core";
|
|
@@ -325,6 +326,8 @@ export declare var enStrings: {
|
|
|
325
326
|
propertyIsNoUnique: string;
|
|
326
327
|
propertyNameIsNotUnique: string;
|
|
327
328
|
listIsEmpty: string;
|
|
329
|
+
choicesListIsEmpty: string;
|
|
330
|
+
"addNew@choices": string;
|
|
328
331
|
expressionIsEmpty: string;
|
|
329
332
|
value: string;
|
|
330
333
|
text: string;
|
|
@@ -1150,6 +1153,8 @@ export declare var defaultStrings: {
|
|
|
1150
1153
|
propertyIsNoUnique: string;
|
|
1151
1154
|
propertyNameIsNotUnique: string;
|
|
1152
1155
|
listIsEmpty: string;
|
|
1156
|
+
choicesListIsEmpty: string;
|
|
1157
|
+
"addNew@choices": string;
|
|
1153
1158
|
expressionIsEmpty: string;
|
|
1154
1159
|
value: string;
|
|
1155
1160
|
text: string;
|
|
@@ -1808,6 +1813,7 @@ export interface ISurveyCreatorOptions {
|
|
|
1808
1813
|
getObjectDisplayName(obj: Base, reason: string, displayName: string): string;
|
|
1809
1814
|
onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
|
|
1810
1815
|
onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): any;
|
|
1816
|
+
onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: IAction[]): any;
|
|
1811
1817
|
onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
|
|
1812
1818
|
onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
|
|
1813
1819
|
onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: Array<Base>, item: Base): boolean;
|
|
@@ -1838,6 +1844,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
1838
1844
|
getObjectDisplayName(obj: Base, reason: string, displayName: string): string;
|
|
1839
1845
|
onCanShowPropertyCallback(object: any, property: JsonObjectProperty, showMode: string, parentObj: any, parentProperty: JsonObjectProperty): boolean;
|
|
1840
1846
|
onPropertyEditorCreatedCallback(object: any, property: JsonObjectProperty, editor: Question): void;
|
|
1847
|
+
onPropertyEditorUpdateTitleActionsCallback(object: any, property: JsonObjectProperty, editor: Question, titleActions: IAction[]): void;
|
|
1841
1848
|
onIsPropertyReadOnlyCallback(obj: Base, property: JsonObjectProperty, readOnly: boolean, parentObj: Base, parentProperty: JsonObjectProperty): boolean;
|
|
1842
1849
|
onCanDeleteItemCallback(object: any, item: Base, allowDelete: boolean): boolean;
|
|
1843
1850
|
onCollectionItemDeletingCallback(obj: Base, property: JsonObjectProperty, collection: Array<Base>, item: Base): boolean;
|
|
@@ -1857,6 +1864,7 @@ export declare class EmptySurveyCreatorOptions implements ISurveyCreatorOptions
|
|
|
1857
1864
|
|
|
1858
1865
|
import "./components/creator.scss";
|
|
1859
1866
|
import "./components/string-editor.scss";
|
|
1867
|
+
import "./creator-theme/creator.scss";
|
|
1860
1868
|
export interface IKeyboardShortcut {
|
|
1861
1869
|
name?: string;
|
|
1862
1870
|
hotKey: {
|
|
@@ -1901,7 +1909,7 @@ export declare type toolBoxLocationType = "left" | "right" | "insideSideBar" | "
|
|
|
1901
1909
|
export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Survey.Base implements ISurveyCreatorOptions, ICreatorSelectionOwner {
|
|
1902
1910
|
protected options: ICreatorOptions;
|
|
1903
1911
|
/**
|
|
1904
|
-
* Set it to true to show "
|
|
1912
|
+
* Set it to true to show "Designer" tab and to false to hide the tab
|
|
1905
1913
|
*/
|
|
1906
1914
|
showDesignerTab: boolean;
|
|
1907
1915
|
/**
|
|
@@ -1909,9 +1917,15 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1909
1917
|
*/
|
|
1910
1918
|
showJSONEditorTab: boolean;
|
|
1911
1919
|
/**
|
|
1912
|
-
*
|
|
1920
|
+
* Obsolete. Please use showPreviewTab property
|
|
1921
|
+
* @see showPreviewTab
|
|
1913
1922
|
*/
|
|
1914
1923
|
showTestSurveyTab: boolean;
|
|
1924
|
+
/**
|
|
1925
|
+
* Set it to true to show "Preview" tab and to false to hide the tab
|
|
1926
|
+
*/
|
|
1927
|
+
get showPreviewTab(): boolean;
|
|
1928
|
+
set showPreviewTab(val: boolean);
|
|
1915
1929
|
/**
|
|
1916
1930
|
* Set it to true to show "Embed Survey" tab and to false to hide the tab
|
|
1917
1931
|
*/
|
|
@@ -1925,8 +1939,16 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1925
1939
|
*/
|
|
1926
1940
|
showLogicTab: boolean;
|
|
1927
1941
|
/**
|
|
1928
|
-
* Set
|
|
1942
|
+
* Set delay for page hover
|
|
1943
|
+
*/
|
|
1944
|
+
pageHoverDelay: number;
|
|
1945
|
+
/**
|
|
1946
|
+
* You need to set this property to true if you want to inplace edit item values instead of texts.
|
|
1929
1947
|
*/
|
|
1948
|
+
inplaceEditForValues: boolean;
|
|
1949
|
+
/**
|
|
1950
|
+
* Set it to false to hide survey title and coresponding properties
|
|
1951
|
+
*/
|
|
1930
1952
|
get allowEditSurveyTitle(): boolean;
|
|
1931
1953
|
set allowEditSurveyTitle(val: boolean);
|
|
1932
1954
|
/**
|
|
@@ -1962,7 +1984,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1962
1984
|
* Returns the current show view name. The possible returns values are:
|
|
1963
1985
|
* "designer", "editor", "test", "embed", "logic" and "translation".
|
|
1964
1986
|
* @see showDesigner
|
|
1965
|
-
* @see
|
|
1987
|
+
* @see showPreview
|
|
1966
1988
|
* @see showJsonEditor
|
|
1967
1989
|
* @see showLogicEditor
|
|
1968
1990
|
* @see showTranslationEditor
|
|
@@ -1972,7 +1994,15 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1972
1994
|
get isDesignerShowing(): boolean;
|
|
1973
1995
|
showDesigner(): void;
|
|
1974
1996
|
get isTestSurveyShowing(): boolean;
|
|
1997
|
+
/**
|
|
1998
|
+
* Return true if Preview tab is currently active
|
|
1999
|
+
*/
|
|
2000
|
+
get isPreviewShowing(): boolean;
|
|
1975
2001
|
showTestSurvey(): void;
|
|
2002
|
+
/**
|
|
2003
|
+
* Show Preview tab
|
|
2004
|
+
*/
|
|
2005
|
+
showPreview(): void;
|
|
1976
2006
|
protected plugins: {
|
|
1977
2007
|
[name: string]: ICreatorPlugin;
|
|
1978
2008
|
};
|
|
@@ -2002,7 +2032,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2002
2032
|
* The event is fired when the survey creator creates a survey object (Survey.Survey).
|
|
2003
2033
|
* <br/> sender the survey creator object that fires the event
|
|
2004
2034
|
* <br/> options.survey the survey object showing in the creator.
|
|
2005
|
-
* <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 "
|
|
2035
|
+
* <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.
|
|
2006
2036
|
*/
|
|
2007
2037
|
onSurveyInstanceCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2008
2038
|
/**
|
|
@@ -2014,8 +2044,8 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2014
2044
|
* <br/> options.displayName change this property to show your custom display name for the object
|
|
2015
2045
|
* <br/> The list of possible values in options.reason:
|
|
2016
2046
|
* <br/> "condition" - raised from Condition modal window or on setup condition in a logic tab
|
|
2017
|
-
* <br/> "survey-tester" - raised from page selector list in "
|
|
2018
|
-
* <br/> "survey-tester-selected" - raised on setting page selector title in "
|
|
2047
|
+
* <br/> "survey-tester" - raised from page selector list in "Preview" tab
|
|
2048
|
+
* <br/> "survey-tester-selected" - raised on setting page selector title in "Preview" tab
|
|
2019
2049
|
* <br/> "survey-translation" - raised from translation tab
|
|
2020
2050
|
* <br/> "property-grid" - raised from showing object selector for property grid in "Designer" tab.
|
|
2021
2051
|
* @see showObjectTitles
|
|
@@ -2072,14 +2102,23 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2072
2102
|
*/
|
|
2073
2103
|
onPropertyEditorCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2074
2104
|
/**
|
|
2075
|
-
* The event is called
|
|
2076
|
-
*
|
|
2077
|
-
* <br/>
|
|
2078
|
-
* <br/> options.
|
|
2079
|
-
* <br/> options.
|
|
2080
|
-
* <br/> options.
|
|
2081
|
-
* @see onCollectionItemAllowOperations
|
|
2105
|
+
* The event is called after a property editor setups its title actions.
|
|
2106
|
+
* You can use this event to modify the property editor title actions
|
|
2107
|
+
* <br/> options.obj the survey object that is currently editing in the property grid
|
|
2108
|
+
* <br/> options.property the property that the current property editor is editing
|
|
2109
|
+
* <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.
|
|
2110
|
+
* <br/> options.titleActions the list of title actions.
|
|
2082
2111
|
*/
|
|
2112
|
+
onPropertyEditorUpdateTitleActions: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2113
|
+
/**
|
|
2114
|
+
* The event is called before rendering a delete button in the Property Grid or in Question Editor.
|
|
2115
|
+
* Obsolete, please use onCollectionItemAllowOperations
|
|
2116
|
+
* <br/> sender the survey creator object that fires the event
|
|
2117
|
+
* <br/> options.obj the survey Question
|
|
2118
|
+
* <br/> options.item the object property (Survey.JsonObjectProperty object). It has name, className, type, visible, readOnly and other properties
|
|
2119
|
+
* <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
|
|
2120
|
+
* @see onCollectionItemAllowOperations
|
|
2121
|
+
*/
|
|
2083
2122
|
onCanDeleteItem: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2084
2123
|
/**
|
|
2085
2124
|
* 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.
|
|
@@ -2257,10 +2296,15 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2257
2296
|
*/
|
|
2258
2297
|
onDesignerSurveyCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2259
2298
|
/**
|
|
2260
|
-
* The event is fired when the survey creator
|
|
2299
|
+
* The event is fired when the survey creator creates survey in Preview tab for testing.
|
|
2261
2300
|
* <br/> sender the survey creator object that fires the event
|
|
2262
|
-
* <br/> options.survey the survey object showing in the "
|
|
2301
|
+
* <br/> options.survey the survey object showing in the "Preview" tab.
|
|
2263
2302
|
*/
|
|
2303
|
+
onPreviewSurveyCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2304
|
+
/**
|
|
2305
|
+
* Obsolete. Please use onPreviewSurveyCreated event.
|
|
2306
|
+
* @see onPreviewSurveyCreated
|
|
2307
|
+
*/
|
|
2264
2308
|
onTestSurveyCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2265
2309
|
/**
|
|
2266
2310
|
* The event is called in case of UI notifications. By default all notifications are done via built-in alert () function.
|
|
@@ -2352,29 +2396,51 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2352
2396
|
*/
|
|
2353
2397
|
maximumRateValues: number;
|
|
2354
2398
|
/**
|
|
2355
|
-
*
|
|
2399
|
+
* Obsolete. Please use showPagesInPreviewTab
|
|
2356
2400
|
*/
|
|
2357
2401
|
showPagesInTestSurveyTab: boolean;
|
|
2358
2402
|
/**
|
|
2359
|
-
* Set this property to false to hide the
|
|
2403
|
+
* Set this property to false to hide the pages selector in the Preview Tab
|
|
2404
|
+
*/
|
|
2405
|
+
get showPagesInPreviewTab(): boolean;
|
|
2406
|
+
set showPagesInPreviewTab(val: boolean);
|
|
2407
|
+
/**
|
|
2408
|
+
* Obsolete. Please use showSimulatorInPreviewTab.
|
|
2409
|
+
* @see showSimulatorInPreviewTab
|
|
2360
2410
|
*/
|
|
2361
2411
|
showSimulatorInTestSurveyTab: boolean;
|
|
2412
|
+
/**
|
|
2413
|
+
* Set this property to false to hide the device simulator in the Preview Tab
|
|
2414
|
+
*/
|
|
2415
|
+
get showSimulatorInPreviewTab(): boolean;
|
|
2416
|
+
set showSimulatorInPreviewTab(val: boolean);
|
|
2362
2417
|
/**
|
|
2363
2418
|
* Set this property to false to disable pages adding, editing and deleting
|
|
2364
2419
|
*/
|
|
2365
2420
|
allowModifyPages: boolean;
|
|
2421
|
+
/**
|
|
2422
|
+
* Obsolete. Please use showDefaultLanguageInPreviewTab
|
|
2423
|
+
* @see showDefaultLanguageInPreviewTab
|
|
2424
|
+
*/
|
|
2425
|
+
showDefaultLanguageInTestSurveyTab: boolean | string;
|
|
2366
2426
|
/**
|
|
2367
2427
|
* The default value is _"auto"_. It shows the language selector if there are more than two languages are using in the survey.
|
|
2368
2428
|
* It shows only used languages in the survey.
|
|
2369
|
-
* Set this property to _false_ to hide the default language selector in the
|
|
2429
|
+
* Set this property to _false_ to hide the default language selector in the Preview Tab.
|
|
2370
2430
|
* Set it to _true_ to show this selector even if there is only one language in the survey
|
|
2371
2431
|
* Set it to _all_ to show the selector with all available languages (30+)
|
|
2372
2432
|
*/
|
|
2373
|
-
|
|
2433
|
+
get showDefaultLanguageInPreviewTab(): boolean | string;
|
|
2434
|
+
set showDefaultLanguageInPreviewTab(val: boolean | string);
|
|
2374
2435
|
/**
|
|
2375
|
-
* Set this property to false to hide the show invisible element checkbox in the
|
|
2436
|
+
* Set this property to false to hide the show invisible element checkbox in the Preview Tab
|
|
2376
2437
|
*/
|
|
2377
2438
|
showInvisibleElementsInTestSurveyTab: boolean;
|
|
2439
|
+
/**
|
|
2440
|
+
* Set this property to false to hide the show invisible element checkbox in the Preview Tab
|
|
2441
|
+
*/
|
|
2442
|
+
get showInvisibleElementsInPreviewTab(): boolean;
|
|
2443
|
+
set showInvisibleElementsInPreviewTab(val: boolean);
|
|
2378
2444
|
/**
|
|
2379
2445
|
* Set this property to true if you want to show "page selector" in the toolabar instead of "pages editor"
|
|
2380
2446
|
*/
|
|
@@ -2422,8 +2488,8 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2422
2488
|
constructor(options: ICreatorOptions, options2?: ICreatorOptions);
|
|
2423
2489
|
updateToolboxIsCompact(newVal?: boolean): void;
|
|
2424
2490
|
onSurveyElementPropertyValueChanged(property: Survey.JsonObjectProperty, obj: any, newValue: any): void;
|
|
2425
|
-
get showToolbox():
|
|
2426
|
-
set showToolbox(val:
|
|
2491
|
+
get showToolbox(): "left" | "right" | "top" | "none" | boolean;
|
|
2492
|
+
set showToolbox(val: "left" | "right" | "top" | "none" | boolean);
|
|
2427
2493
|
onShowPropertyGridVisiblityChanged: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2428
2494
|
/**
|
|
2429
2495
|
* Set this this property grid false to hide the property grid.
|
|
@@ -2531,7 +2597,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2531
2597
|
get JSON(): any;
|
|
2532
2598
|
set JSON(val: any);
|
|
2533
2599
|
loadSurvey(surveyId: string): void;
|
|
2534
|
-
protected doClickQuestionCore(element: IElement, modifiedType?: string, index?: number): void;
|
|
2600
|
+
protected doClickQuestionCore(element: IElement, modifiedType?: string, index?: number, panel?: IPanel): void;
|
|
2535
2601
|
setNewNames(element: Survey.ISurveyElement): void;
|
|
2536
2602
|
protected getAllQuestions(): Array<any>;
|
|
2537
2603
|
protected getAllPanels(): Array<any>;
|
|
@@ -2635,7 +2701,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2635
2701
|
* Returns true if selected element is null or there is no errors.
|
|
2636
2702
|
*/
|
|
2637
2703
|
validateSelectedElement(): boolean;
|
|
2638
|
-
clickToolboxItem(newElement: any): void;
|
|
2704
|
+
clickToolboxItem(newElement: any, panel?: IPanel): void;
|
|
2639
2705
|
getJSONForNewElement(json: any): any;
|
|
2640
2706
|
/**
|
|
2641
2707
|
* Open file chooser dialog
|
|
@@ -2664,6 +2730,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2664
2730
|
set alwaySaveTextInPropertyEditors(value: boolean);
|
|
2665
2731
|
onCanShowPropertyCallback(object: any, property: Survey.JsonObjectProperty, showMode: string, parentObj: any, parentProperty: Survey.JsonObjectProperty): boolean;
|
|
2666
2732
|
onPropertyEditorCreatedCallback(object: any, property: Survey.JsonObjectProperty, editor: Question): void;
|
|
2733
|
+
onPropertyEditorUpdateTitleActionsCallback(object: any, property: Survey.JsonObjectProperty, editor: Question, titleActions: IAction[]): void;
|
|
2667
2734
|
onCanDeleteItemCallback(object: any, item: Survey.Base, allowDelete: boolean): boolean;
|
|
2668
2735
|
onCollectionItemDeletingCallback(obj: Survey.Base, property: Survey.JsonObjectProperty, collection: Array<Survey.Base>, item: Survey.Base): boolean;
|
|
2669
2736
|
onCollectionItemAllowingCallback(obj: Base, property: Survey.JsonObjectProperty, collection: Array<Base>, item: Base, itemOptions: ICollectionItemAllowOperations): void;
|
|
@@ -2692,15 +2759,16 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2692
2759
|
get saveSurveyFunc(): any;
|
|
2693
2760
|
set saveSurveyFunc(value: any);
|
|
2694
2761
|
convertCurrentQuestion(newType: string): void;
|
|
2762
|
+
getAddNewQuestionText(currentAddQuestionType?: string): any;
|
|
2695
2763
|
get addNewQuestionText(): any;
|
|
2696
|
-
getQuestionTypeSelectorModel(beforeAdd: () => void): {
|
|
2764
|
+
getQuestionTypeSelectorModel(beforeAdd: (type: string) => void, panel?: IPanel): {
|
|
2697
2765
|
iconName: string;
|
|
2698
2766
|
action: () => void;
|
|
2699
2767
|
popupModel: Survey.PopupModel<{
|
|
2700
2768
|
model: Survey.ListModel;
|
|
2701
2769
|
}>;
|
|
2702
2770
|
};
|
|
2703
|
-
addNewQuestionInPage(beforeAdd: () => void): void;
|
|
2771
|
+
addNewQuestionInPage(beforeAdd: (string: any) => void, panel?: IPanel, type?: string): void;
|
|
2704
2772
|
createIActionBarItemByClass(className: string, title?: string): Action;
|
|
2705
2773
|
onElementMenuItemsChanged(element: any, items: Action[]): void;
|
|
2706
2774
|
getElementAllowOperations(element: SurveyElement): any;
|
|
@@ -2752,8 +2820,8 @@ import "./json-editor-ace.scss";
|
|
|
2752
2820
|
export declare class AceJsonEditorModel extends JsonEditorBaseModel {
|
|
2753
2821
|
static aceBasePath: string;
|
|
2754
2822
|
constructor(creator: CreatorBase<SurveyModel>);
|
|
2755
|
-
|
|
2756
|
-
|
|
2823
|
+
protected getText(): string;
|
|
2824
|
+
protected setText(value: string): void;
|
|
2757
2825
|
init(aceEditor: AceAjax.Editor): void;
|
|
2758
2826
|
protected onTextChanged(): void;
|
|
2759
2827
|
protected setErrors(errors: any[]): void;
|
|
@@ -2770,7 +2838,10 @@ export declare abstract class JsonEditorBaseModel extends Base {
|
|
|
2770
2838
|
isJSONChanged: boolean;
|
|
2771
2839
|
isProcessingImmediately: boolean;
|
|
2772
2840
|
constructor(creator: CreatorBase<SurveyModel>);
|
|
2773
|
-
|
|
2841
|
+
get text(): string;
|
|
2842
|
+
set text(val: string);
|
|
2843
|
+
protected abstract getText(): string;
|
|
2844
|
+
protected abstract setText(val: string): void;
|
|
2774
2845
|
protected onEditorActivated(): void;
|
|
2775
2846
|
onPluginActivate(): void;
|
|
2776
2847
|
protected onTextChanged(): void;
|
|
@@ -2793,8 +2864,8 @@ export declare class TextareaJsonEditorModel extends JsonEditorBaseModel {
|
|
|
2793
2864
|
canShowErrors: boolean;
|
|
2794
2865
|
constructor(creator: CreatorBase<SurveyModel>);
|
|
2795
2866
|
checkKey(data: any, e: any): boolean;
|
|
2796
|
-
|
|
2797
|
-
|
|
2867
|
+
protected getText(): string;
|
|
2868
|
+
protected setText(value: string): void;
|
|
2798
2869
|
get errorButtonText(): string;
|
|
2799
2870
|
toggleErrors(): void;
|
|
2800
2871
|
get userFriendlyErrors(): any[];
|
|
@@ -2811,6 +2882,7 @@ import "./test.scss";
|
|
|
2811
2882
|
export declare class TestSurveyTabViewModel extends Base {
|
|
2812
2883
|
pages: ActionContainer;
|
|
2813
2884
|
prevPageAction: Action;
|
|
2885
|
+
testAgainAction: Action;
|
|
2814
2886
|
nextPageAction: Action;
|
|
2815
2887
|
onSurveyCreatedCallback: (survey: SurveyModel) => any;
|
|
2816
2888
|
simulator: SurveySimulatorModel;
|
|
@@ -3077,7 +3149,8 @@ export declare class TranslationGroup extends TranslationItemBase {
|
|
|
3077
3149
|
name: any;
|
|
3078
3150
|
obj: any;
|
|
3079
3151
|
text: string;
|
|
3080
|
-
|
|
3152
|
+
hasIndent: boolean;
|
|
3153
|
+
constructor(name: any, obj: any, translation?: ITranslationLocales, text?: string, hasIndent?: boolean);
|
|
3081
3154
|
getType(): string;
|
|
3082
3155
|
showHeader: boolean;
|
|
3083
3156
|
get items(): Array<TranslationItemBase>;
|
|
@@ -3480,7 +3553,9 @@ export declare class TabDesignerViewModel<T extends SurveyModel> extends Base {
|
|
|
3480
3553
|
get isToolboxVisible(): boolean;
|
|
3481
3554
|
initSurvey(): void;
|
|
3482
3555
|
dispose(): void;
|
|
3556
|
+
clickDesigner(): void;
|
|
3483
3557
|
getDesignerCss(): string;
|
|
3558
|
+
getRootCss(): string;
|
|
3484
3559
|
}
|
|
3485
3560
|
|
|
3486
3561
|
export declare class TabDesignerPlugin<T extends SurveyModel> implements ICreatorPlugin {
|
|
@@ -3492,6 +3567,7 @@ export declare class TabDesignerPlugin<T extends SurveyModel> implements ICreato
|
|
|
3492
3567
|
deactivate(): boolean;
|
|
3493
3568
|
update(): void;
|
|
3494
3569
|
createActions(): Action[];
|
|
3570
|
+
selectSurvey(): void;
|
|
3495
3571
|
addFooterActions(): void;
|
|
3496
3572
|
}
|
|
3497
3573
|
|
|
@@ -3576,6 +3652,7 @@ export declare var logicCss: {
|
|
|
3576
3652
|
requiredText: string;
|
|
3577
3653
|
};
|
|
3578
3654
|
paneldynamic: {
|
|
3655
|
+
mainRoot: string;
|
|
3579
3656
|
root: string;
|
|
3580
3657
|
navigation: string;
|
|
3581
3658
|
title: string;
|
|
@@ -3606,6 +3683,7 @@ export declare var logicCss: {
|
|
|
3606
3683
|
pageTitle: string;
|
|
3607
3684
|
pageDescription: string;
|
|
3608
3685
|
row: string;
|
|
3686
|
+
rowMultiple: string;
|
|
3609
3687
|
question: {
|
|
3610
3688
|
mainRoot: string;
|
|
3611
3689
|
flowRoot: string;
|
|
@@ -3635,7 +3713,6 @@ export declare var logicCss: {
|
|
|
3635
3713
|
};
|
|
3636
3714
|
image: {
|
|
3637
3715
|
root: string;
|
|
3638
|
-
image: string;
|
|
3639
3716
|
};
|
|
3640
3717
|
error: {
|
|
3641
3718
|
root: string;
|
|
@@ -3799,6 +3876,7 @@ export declare var logicCss: {
|
|
|
3799
3876
|
itemDisabled: string;
|
|
3800
3877
|
};
|
|
3801
3878
|
comment: {
|
|
3879
|
+
mainRoot: string;
|
|
3802
3880
|
root: string;
|
|
3803
3881
|
small: string;
|
|
3804
3882
|
};
|
|
@@ -3846,13 +3924,16 @@ export declare var logicCss: {
|
|
|
3846
3924
|
buttonCollapsed: string;
|
|
3847
3925
|
};
|
|
3848
3926
|
};
|
|
3927
|
+
embeddedsurvey: {
|
|
3928
|
+
mainRoot: string;
|
|
3929
|
+
};
|
|
3849
3930
|
};
|
|
3850
3931
|
|
|
3851
3932
|
export declare class ToolboxToolViewModel extends Base {
|
|
3852
3933
|
protected item: IQuestionToolboxItem;
|
|
3853
3934
|
protected creator: CreatorBase<SurveyModel>;
|
|
3854
3935
|
constructor(item: IQuestionToolboxItem, creator: CreatorBase<SurveyModel>);
|
|
3855
|
-
click: (event: any) =>
|
|
3936
|
+
click: (event: any) => void;
|
|
3856
3937
|
get allowAdd(): boolean;
|
|
3857
3938
|
onPointerDown(pointerDownEvent: any): boolean;
|
|
3858
3939
|
}
|
|
@@ -3870,6 +3951,9 @@ export declare class PageNavigatorViewModel<T extends SurveyModel> extends Base
|
|
|
3870
3951
|
isPopupOpened: boolean;
|
|
3871
3952
|
protected createActionBarCore(item: IAction): Action;
|
|
3872
3953
|
togglePageSelector: () => void;
|
|
3954
|
+
get pageSelectorCaption(): any;
|
|
3955
|
+
onContainerScroll(viewPort: HTMLDivElement): any;
|
|
3956
|
+
currentPage: PageModel;
|
|
3873
3957
|
}
|
|
3874
3958
|
|
|
3875
3959
|
import "./page.scss";
|
|
@@ -3878,6 +3962,7 @@ export declare class PageViewModel<T extends SurveyModel> extends ActionContaine
|
|
|
3878
3962
|
isPageLive: boolean;
|
|
3879
3963
|
onPageSelectedCallback: () => void;
|
|
3880
3964
|
questionTypeSelectorModel: any;
|
|
3965
|
+
currentAddQuestionType: string;
|
|
3881
3966
|
constructor(creator: CreatorBase<T>, page: PageModel);
|
|
3882
3967
|
protected onElementSelectedChanged(isSelected: boolean): void;
|
|
3883
3968
|
dispose(): void;
|
|
@@ -3907,12 +3992,13 @@ import "./question.scss";
|
|
|
3907
3992
|
export declare class QuestionAdornerViewModel extends ActionContainerViewModel<SurveyModel> {
|
|
3908
3993
|
templateData: SurveyTemplateRendererTemplateData;
|
|
3909
3994
|
isDragged: boolean;
|
|
3995
|
+
currentAddQuestionType: string;
|
|
3910
3996
|
constructor(creator: CreatorBase<SurveyModel>, surveyElement: SurveyElement, templateData: SurveyTemplateRendererTemplateData);
|
|
3911
3997
|
select(model: QuestionAdornerViewModel, event: IPortableMouseEvent): boolean;
|
|
3912
3998
|
rootCss(): "" | " svc-question__adorner--start-with-new-line";
|
|
3913
3999
|
css(): string;
|
|
3914
4000
|
get isDragMe(): boolean;
|
|
3915
|
-
|
|
4001
|
+
dragTypeOverMe: DragTypeOverMeEnum;
|
|
3916
4002
|
dispose(): void;
|
|
3917
4003
|
get isDraggable(): boolean;
|
|
3918
4004
|
hover(event: MouseEvent, element: HTMLElement): void;
|
|
@@ -3921,10 +4007,21 @@ export declare class QuestionAdornerViewModel extends ActionContainerViewModel<S
|
|
|
3921
4007
|
get placeholderText(): string;
|
|
3922
4008
|
get isRequired(): any;
|
|
3923
4009
|
set isRequired(newVal: any);
|
|
3924
|
-
|
|
4010
|
+
onPointerDown(pointerDownEvent: PointerEvent): void;
|
|
4011
|
+
startDragSurveyElement: (event: PointerEvent) => boolean;
|
|
3925
4012
|
get allowEdit(): boolean;
|
|
4013
|
+
getConvertToTypesActions(): Array<IAction>;
|
|
3926
4014
|
protected buildActions(items: Array<Action>): void;
|
|
3927
4015
|
protected duplicate(): void;
|
|
4016
|
+
addNewQuestion(): void;
|
|
4017
|
+
questionTypeSelectorModel: {
|
|
4018
|
+
iconName: string;
|
|
4019
|
+
action: () => void;
|
|
4020
|
+
popupModel: PopupModel<{
|
|
4021
|
+
model: ListModel;
|
|
4022
|
+
}>;
|
|
4023
|
+
};
|
|
4024
|
+
get addNewQuestionText(): string;
|
|
3928
4025
|
}
|
|
3929
4026
|
|
|
3930
4027
|
import "./question-image.scss";
|
|
@@ -3942,6 +4039,8 @@ export declare class QuestionRatingAdornerViewModel extends QuestionAdornerViewM
|
|
|
3942
4039
|
removeItem(model: QuestionRatingAdornerViewModel): void;
|
|
3943
4040
|
get allowAdd(): boolean;
|
|
3944
4041
|
get allowRemove(): boolean;
|
|
4042
|
+
get addTooltip(): any;
|
|
4043
|
+
get removeTooltip(): any;
|
|
3945
4044
|
}
|
|
3946
4045
|
|
|
3947
4046
|
import "./item-value.scss";
|
|
@@ -4264,6 +4363,24 @@ export declare class QuestionEmbeddedSurveyModel extends QuestionNonValue {
|
|
|
4264
4363
|
getType(): string;
|
|
4265
4364
|
}
|
|
4266
4365
|
|
|
4366
|
+
import "./link-value.scss";
|
|
4367
|
+
export declare class QuestionLinkValueModel extends Question {
|
|
4368
|
+
linkClickCallback: () => void;
|
|
4369
|
+
resetClickCallback: () => void;
|
|
4370
|
+
linkSetButtonCssClasses: string;
|
|
4371
|
+
linkClearButtonCssClasses: string;
|
|
4372
|
+
isSelected: boolean;
|
|
4373
|
+
linkValueText: string;
|
|
4374
|
+
showClear: boolean;
|
|
4375
|
+
allowClear: boolean;
|
|
4376
|
+
showValueInLink: boolean;
|
|
4377
|
+
constructor(name: string, json?: any);
|
|
4378
|
+
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
4379
|
+
getType(): string;
|
|
4380
|
+
doLinkClick(): void;
|
|
4381
|
+
doClearClick(): void;
|
|
4382
|
+
}
|
|
4383
|
+
|
|
4267
4384
|
export declare class SurveyJSON5 {
|
|
4268
4385
|
static positionName: string;
|
|
4269
4386
|
constructor(parseType?: number);
|
|
@@ -4305,6 +4422,7 @@ export interface IPropertyGridEditor {
|
|
|
4305
4422
|
onMatrixCellValueChanged?: (obj: Base, options: any) => void;
|
|
4306
4423
|
onMatrixAllowRemoveRow?: (obj: Base, row: any) => boolean;
|
|
4307
4424
|
onGetQuestionTitleActions?: (obj: Base, options: any) => void;
|
|
4425
|
+
onUpdateQuestionCssClasses?: (obj: Base, options: any) => void;
|
|
4308
4426
|
}
|
|
4309
4427
|
export declare var PropertyGridEditorCollection: {
|
|
4310
4428
|
editors: IPropertyGridEditor[];
|
|
@@ -4320,6 +4438,7 @@ export declare var PropertyGridEditorCollection: {
|
|
|
4320
4438
|
onMatrixCellValueChanged(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
4321
4439
|
onMatrixAllowRemoveRow(obj: Base, prop: JsonObjectProperty, row: MatrixDynamicRowModel): boolean;
|
|
4322
4440
|
onGetMatrixRowAction(obj: Base, prop: JsonObjectProperty, options: any, setObjFunc: (obj: Base) => void): void;
|
|
4441
|
+
onUpdateQuestionCssClasses(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
4323
4442
|
onGetQuestionTitleActions(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
4324
4443
|
onValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
|
|
4325
4444
|
onMasterValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
|
|
@@ -4363,11 +4482,16 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
|
|
|
4363
4482
|
constructor();
|
|
4364
4483
|
abstract fit(prop: JsonObjectProperty): boolean;
|
|
4365
4484
|
abstract getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4366
|
-
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): any;
|
|
4485
|
+
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
|
|
4486
|
+
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
4487
|
+
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
4488
|
+
protected isSupportGrouping(): boolean;
|
|
4489
|
+
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
4367
4490
|
}
|
|
4368
4491
|
export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
4369
4492
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
4370
4493
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4494
|
+
protected isSupportGrouping(): boolean;
|
|
4371
4495
|
}
|
|
4372
4496
|
export declare abstract class PropertyGridEditorStringBase extends PropertyGridEditor {
|
|
4373
4497
|
protected updateMaxLength(prop: JsonObjectProperty, json: any): any;
|
|
@@ -4464,6 +4588,8 @@ export declare abstract class PropertyGridEditorMatrix extends PropertyGridEdito
|
|
|
4464
4588
|
protected getAllowRowDragDrop(): boolean;
|
|
4465
4589
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4466
4590
|
protected getMatrixJSON(obj: Base, prop: JsonObjectProperty, propNames: Array<string>, options: ISurveyCreatorOptions): any;
|
|
4591
|
+
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
4592
|
+
protected getEmptyRowsText(props: any): any;
|
|
4467
4593
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
4468
4594
|
protected getColumnsJSON(obj: Base, prop: JsonObjectProperty, propNames: Array<string>, options: ISurveyCreatorOptions): any;
|
|
4469
4595
|
protected getEditItemAsStandAlone(): boolean;
|
|
@@ -4480,6 +4606,8 @@ export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEdit
|
|
|
4480
4606
|
protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
|
|
4481
4607
|
protected getDefaulColumnNames(): Array<string>;
|
|
4482
4608
|
protected getKeyValue(): string;
|
|
4609
|
+
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
4610
|
+
protected getEmptyRowsText(prop: any): any;
|
|
4483
4611
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
4484
4612
|
}
|
|
4485
4613
|
export declare class PropertyGridEditorMatrixColumns extends PropertyGridEditorMatrix {
|
|
@@ -4591,23 +4719,12 @@ export declare class PropertyGridEditorQuestionRestfull extends PropertyGridEdit
|
|
|
4591
4719
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4592
4720
|
}
|
|
4593
4721
|
|
|
4594
|
-
export declare class QuestionLinkValueModel extends Question {
|
|
4595
|
-
linkClickCallback: () => void;
|
|
4596
|
-
resetClickCallback: () => void;
|
|
4597
|
-
linkValueText: string;
|
|
4598
|
-
showClear: boolean;
|
|
4599
|
-
showValueInLink: boolean;
|
|
4600
|
-
constructor(name: string, json?: any);
|
|
4601
|
-
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
4602
|
-
getType(): string;
|
|
4603
|
-
doLinkClick(): void;
|
|
4604
|
-
doClearClick(): void;
|
|
4605
|
-
}
|
|
4606
4722
|
export declare abstract class PropertyGridValueEditorBase extends PropertyGridEditor {
|
|
4607
4723
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4608
4724
|
onCreated: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
|
|
4609
4725
|
clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
4610
4726
|
protected isValueEmpty(val: any): boolean;
|
|
4727
|
+
protected isSupportGrouping(): boolean;
|
|
4611
4728
|
}
|
|
4612
4729
|
export declare class PropertyGridCellsEditor extends PropertyGridValueEditorBase {
|
|
4613
4730
|
fit(prop: JsonObjectProperty): boolean;
|
|
@@ -4701,6 +4818,7 @@ export declare var propertyGridCss: {
|
|
|
4701
4818
|
pageTitle: string;
|
|
4702
4819
|
pageDescription: string;
|
|
4703
4820
|
row: string;
|
|
4821
|
+
rowMultiple: string;
|
|
4704
4822
|
question: {
|
|
4705
4823
|
mainRoot: string;
|
|
4706
4824
|
flowRoot: string;
|
|
@@ -4749,6 +4867,7 @@ export declare var propertyGridCss: {
|
|
|
4749
4867
|
itemHover: string;
|
|
4750
4868
|
itemInline: string;
|
|
4751
4869
|
label: string;
|
|
4870
|
+
itemSvgIconId: string;
|
|
4752
4871
|
labelChecked: string;
|
|
4753
4872
|
itemControl: string;
|
|
4754
4873
|
itemDecorator: string;
|
|
@@ -4782,6 +4901,7 @@ export declare var propertyGridCss: {
|
|
|
4782
4901
|
itemChecked: string;
|
|
4783
4902
|
itemIndeterminate: string;
|
|
4784
4903
|
itemDisabled: string;
|
|
4904
|
+
svgIconId: string;
|
|
4785
4905
|
label: string;
|
|
4786
4906
|
disabledLabel: string;
|
|
4787
4907
|
itemDecorator: string;
|
|
@@ -4862,6 +4982,8 @@ export declare var propertyGridCss: {
|
|
|
4862
4982
|
iconDrag: string;
|
|
4863
4983
|
dragDropGhostPositionTop: string;
|
|
4864
4984
|
dragDropGhostPositionBottom: string;
|
|
4985
|
+
emptyRowsSection: string;
|
|
4986
|
+
emptyRowsText: string;
|
|
4865
4987
|
};
|
|
4866
4988
|
rating: {
|
|
4867
4989
|
root: string;
|
|
@@ -4924,7 +5046,7 @@ export declare var propertyGridCss: {
|
|
|
4924
5046
|
export declare class QuestionConverter {
|
|
4925
5047
|
static convertInfo: {};
|
|
4926
5048
|
static addConvertInfo(className: string, convertToClassName: string): void;
|
|
4927
|
-
static getConvertToClasses(className: string, availableTypes?: Array<string
|
|
5049
|
+
static getConvertToClasses(className: string, availableTypes?: Array<string>, includeCurrent?: boolean): Array<string>;
|
|
4928
5050
|
static convertObject(obj: Survey.Question, convertToClass: string): Survey.Question;
|
|
4929
5051
|
}
|
|
4930
5052
|
|
|
@@ -4985,6 +5107,7 @@ export declare class QuestionToolboxCategory extends Base {
|
|
|
4985
5107
|
}
|
|
4986
5108
|
export declare class QuestionToolboxItem extends Action implements IQuestionToolboxItem {
|
|
4987
5109
|
constructor(item: IQuestionToolboxItem);
|
|
5110
|
+
iconName: string;
|
|
4988
5111
|
name: string;
|
|
4989
5112
|
json: any;
|
|
4990
5113
|
title: string;
|
|
@@ -5143,7 +5266,8 @@ export declare class SideBarModel extends Base {
|
|
|
5143
5266
|
getTabById(id: string): SideBarTabModel;
|
|
5144
5267
|
constructor(creator: CreatorBase, collapseAction?: () => void, expandAction?: () => void);
|
|
5145
5268
|
getExpandAction(): Action;
|
|
5146
|
-
|
|
5269
|
+
collapseSideBar(): void;
|
|
5270
|
+
expandSideBar(): void;
|
|
5147
5271
|
addTab(id: string, componentName?: string, model?: any, buildActions?: () => Array<Action>): SideBarTabModel;
|
|
5148
5272
|
updateHasVisibleTabs(): void;
|
|
5149
5273
|
dispose(): void;
|
|
@@ -5183,9 +5307,12 @@ export declare function getFirstNonTextElement(elements: any): any;
|
|
|
5183
5307
|
export declare function getNodesFromKoComponentInfo(componentInfo: any): any;
|
|
5184
5308
|
export declare function propertyExists(obj: any, propertyName: string): boolean;
|
|
5185
5309
|
export declare function isPropertyVisible(obj: any, propertyName: string): boolean;
|
|
5186
|
-
export declare function toggleHovered(e: MouseEvent, element: HTMLElement): void;
|
|
5310
|
+
export declare function toggleHovered(e: MouseEvent, element: HTMLElement, timeout?: number): void;
|
|
5187
5311
|
export declare function clearNewLines(text: string): string;
|
|
5188
5312
|
export declare function select(element: any): void;
|
|
5313
|
+
export declare function copyObject(dst: any, src: any): void;
|
|
5314
|
+
export declare function copyCssClasses(dest: any, source: any): void;
|
|
5315
|
+
export declare function assignDefaultV2Classes(destination: any, questionType: string): void;
|
|
5189
5316
|
|
|
5190
5317
|
export interface ISurveyQuestionEditorDefinition {
|
|
5191
5318
|
title?: string;
|
|
@@ -5233,7 +5360,7 @@ export declare class SurveyHelper {
|
|
|
5233
5360
|
static disableSelectingObj(obj: Base): void;
|
|
5234
5361
|
static enableSelectingObj(obj: Base): void;
|
|
5235
5362
|
static canSelectObj(obj: Base): boolean;
|
|
5236
|
-
static warnNonSupported(name: string): void;
|
|
5363
|
+
static warnNonSupported(name: string, newPropertyName?: string): void;
|
|
5237
5364
|
static warnText(text: string): void;
|
|
5238
5365
|
static updateQuestionJson(questionJson: any): void;
|
|
5239
5366
|
static convertMatrixRowsToText(rows: any): string;
|
|
@@ -5704,6 +5831,7 @@ export interface IPropertyGridEditor {
|
|
|
5704
5831
|
onMatrixCellValueChanged?: (obj: Base, options: any) => void;
|
|
5705
5832
|
onMatrixAllowRemoveRow?: (obj: Base, row: any) => boolean;
|
|
5706
5833
|
onGetQuestionTitleActions?: (obj: Base, options: any) => void;
|
|
5834
|
+
onUpdateQuestionCssClasses?: (obj: Base, options: any) => void;
|
|
5707
5835
|
}
|
|
5708
5836
|
export declare var PropertyGridEditorCollection: {
|
|
5709
5837
|
editors: IPropertyGridEditor[];
|
|
@@ -5719,6 +5847,7 @@ export declare var PropertyGridEditorCollection: {
|
|
|
5719
5847
|
onMatrixCellValueChanged(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
5720
5848
|
onMatrixAllowRemoveRow(obj: Base, prop: JsonObjectProperty, row: MatrixDynamicRowModel): boolean;
|
|
5721
5849
|
onGetMatrixRowAction(obj: Base, prop: JsonObjectProperty, options: any, setObjFunc: (obj: Base) => void): void;
|
|
5850
|
+
onUpdateQuestionCssClasses(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
5722
5851
|
onGetQuestionTitleActions(obj: Base, prop: JsonObjectProperty, options: any): void;
|
|
5723
5852
|
onValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
|
|
5724
5853
|
onMasterValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
|
|
@@ -5762,11 +5891,16 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
|
|
|
5762
5891
|
constructor();
|
|
5763
5892
|
abstract fit(prop: JsonObjectProperty): boolean;
|
|
5764
5893
|
abstract getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
5765
|
-
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): any;
|
|
5894
|
+
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
|
|
5895
|
+
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
5896
|
+
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
5897
|
+
protected isSupportGrouping(): boolean;
|
|
5898
|
+
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
5766
5899
|
}
|
|
5767
5900
|
export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
5768
5901
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
5769
5902
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
5903
|
+
protected isSupportGrouping(): boolean;
|
|
5770
5904
|
}
|
|
5771
5905
|
export declare abstract class PropertyGridEditorStringBase extends PropertyGridEditor {
|
|
5772
5906
|
protected updateMaxLength(prop: JsonObjectProperty, json: any): any;
|