survey-creator-core 1.8.77-beta.1 → 1.9.1-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 +996 -3578
- package/survey-creator-core.d.ts +155 -48
- package/survey-creator-core.js +1621 -916
- package/survey-creator-core.min.css +37 -1578
- 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.1-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
|
|
@@ -17,9 +17,9 @@ 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
25
|
import { SurveyElement, SurveyModel, SurveyTemplateRendererTemplateData, Action, DragTypeOverMeEnum } 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;
|
|
@@ -1872,7 +1877,6 @@ export interface ICreatorPlugin {
|
|
|
1872
1877
|
update?: () => void;
|
|
1873
1878
|
deactivate?: () => boolean;
|
|
1874
1879
|
model: Base;
|
|
1875
|
-
propertyGrid?: PropertyGridViewModelBase;
|
|
1876
1880
|
}
|
|
1877
1881
|
export interface ITabbedMenuItem extends IAction {
|
|
1878
1882
|
componentContent: string;
|
|
@@ -1886,13 +1890,18 @@ export declare class TabbedMenuItem extends Action implements ITabbedMenuItem {
|
|
|
1886
1890
|
export declare class TabbedMenuContainer extends AdaptiveActionContainer<TabbedMenuItem> {
|
|
1887
1891
|
constructor();
|
|
1888
1892
|
}
|
|
1893
|
+
export declare class ToolbarActionContainer extends ActionContainer {
|
|
1894
|
+
constructor(creator: CreatorBase);
|
|
1895
|
+
protected getRenderedActions(): Array<Action>;
|
|
1896
|
+
}
|
|
1897
|
+
export declare type toolBoxLocationType = "left" | "right" | "insideSideBar" | "hidden";
|
|
1889
1898
|
/**
|
|
1890
1899
|
* Base class for Survey Creator.
|
|
1891
1900
|
*/
|
|
1892
1901
|
export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Survey.Base implements ISurveyCreatorOptions, ICreatorSelectionOwner {
|
|
1893
1902
|
protected options: ICreatorOptions;
|
|
1894
1903
|
/**
|
|
1895
|
-
* Set it to true to show "
|
|
1904
|
+
* Set it to true to show "Designer" tab and to false to hide the tab
|
|
1896
1905
|
*/
|
|
1897
1906
|
showDesignerTab: boolean;
|
|
1898
1907
|
/**
|
|
@@ -1900,9 +1909,15 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1900
1909
|
*/
|
|
1901
1910
|
showJSONEditorTab: boolean;
|
|
1902
1911
|
/**
|
|
1903
|
-
*
|
|
1912
|
+
* Obsolete. Please use showPreviewTab property
|
|
1913
|
+
* @see showPreviewTab
|
|
1904
1914
|
*/
|
|
1905
1915
|
showTestSurveyTab: boolean;
|
|
1916
|
+
/**
|
|
1917
|
+
* Set it to true to show "Preview" tab and to false to hide the tab
|
|
1918
|
+
*/
|
|
1919
|
+
get showPreviewTab(): boolean;
|
|
1920
|
+
set showPreviewTab(val: boolean);
|
|
1906
1921
|
/**
|
|
1907
1922
|
* Set it to true to show "Embed Survey" tab and to false to hide the tab
|
|
1908
1923
|
*/
|
|
@@ -1915,6 +1930,10 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1915
1930
|
* Set it to true to show "Logic" tab and to false to hide the tab
|
|
1916
1931
|
*/
|
|
1917
1932
|
showLogicTab: boolean;
|
|
1933
|
+
/**
|
|
1934
|
+
* Set delay for page hover
|
|
1935
|
+
*/
|
|
1936
|
+
pageHoverDelay: number;
|
|
1918
1937
|
/**
|
|
1919
1938
|
* Set it to false to hide survey title and coresponding properties
|
|
1920
1939
|
*/
|
|
@@ -1953,7 +1972,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1953
1972
|
* Returns the current show view name. The possible returns values are:
|
|
1954
1973
|
* "designer", "editor", "test", "embed", "logic" and "translation".
|
|
1955
1974
|
* @see showDesigner
|
|
1956
|
-
* @see
|
|
1975
|
+
* @see showPreview
|
|
1957
1976
|
* @see showJsonEditor
|
|
1958
1977
|
* @see showLogicEditor
|
|
1959
1978
|
* @see showTranslationEditor
|
|
@@ -1963,7 +1982,15 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1963
1982
|
get isDesignerShowing(): boolean;
|
|
1964
1983
|
showDesigner(): void;
|
|
1965
1984
|
get isTestSurveyShowing(): boolean;
|
|
1985
|
+
/**
|
|
1986
|
+
* Return true if Preview tab is currently active
|
|
1987
|
+
*/
|
|
1988
|
+
get isPreviewShowing(): boolean;
|
|
1966
1989
|
showTestSurvey(): void;
|
|
1990
|
+
/**
|
|
1991
|
+
* Show Preview tab
|
|
1992
|
+
*/
|
|
1993
|
+
showPreview(): void;
|
|
1967
1994
|
protected plugins: {
|
|
1968
1995
|
[name: string]: ICreatorPlugin;
|
|
1969
1996
|
};
|
|
@@ -1993,7 +2020,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1993
2020
|
* The event is fired when the survey creator creates a survey object (Survey.Survey).
|
|
1994
2021
|
* <br/> sender the survey creator object that fires the event
|
|
1995
2022
|
* <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 "
|
|
2023
|
+
* <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
2024
|
*/
|
|
1998
2025
|
onSurveyInstanceCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
1999
2026
|
/**
|
|
@@ -2005,8 +2032,8 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2005
2032
|
* <br/> options.displayName change this property to show your custom display name for the object
|
|
2006
2033
|
* <br/> The list of possible values in options.reason:
|
|
2007
2034
|
* <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 "
|
|
2035
|
+
* <br/> "survey-tester" - raised from page selector list in "Preview" tab
|
|
2036
|
+
* <br/> "survey-tester-selected" - raised on setting page selector title in "Preview" tab
|
|
2010
2037
|
* <br/> "survey-translation" - raised from translation tab
|
|
2011
2038
|
* <br/> "property-grid" - raised from showing object selector for property grid in "Designer" tab.
|
|
2012
2039
|
* @see showObjectTitles
|
|
@@ -2248,10 +2275,15 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2248
2275
|
*/
|
|
2249
2276
|
onDesignerSurveyCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2250
2277
|
/**
|
|
2251
|
-
* The event is fired when the survey creator
|
|
2278
|
+
* The event is fired when the survey creator creates survey in Preview tab for testing.
|
|
2252
2279
|
* <br/> sender the survey creator object that fires the event
|
|
2253
|
-
* <br/> options.survey the survey object showing in the "
|
|
2280
|
+
* <br/> options.survey the survey object showing in the "Preview" tab.
|
|
2254
2281
|
*/
|
|
2282
|
+
onPreviewSurveyCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2283
|
+
/**
|
|
2284
|
+
* Obsolete. Please use onPreviewSurveyCreated event.
|
|
2285
|
+
* @see onPreviewSurveyCreated
|
|
2286
|
+
*/
|
|
2255
2287
|
onTestSurveyCreated: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2256
2288
|
/**
|
|
2257
2289
|
* The event is called in case of UI notifications. By default all notifications are done via built-in alert () function.
|
|
@@ -2286,6 +2318,14 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2286
2318
|
* @see uploadFile
|
|
2287
2319
|
*/
|
|
2288
2320
|
onUploadFile: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2321
|
+
/**
|
|
2322
|
+
* Use this event to modify the list of the strings available in a translation tab.
|
|
2323
|
+
* <br/> sender - the survey creator object that fires the event
|
|
2324
|
+
* <br/> options.obj - the survey object which property translations are edited in the translation tab.
|
|
2325
|
+
* <br/> options.propertyName - the name of the property.
|
|
2326
|
+
* <br/> options.visible - a boolean value. You can change it to hide the property.
|
|
2327
|
+
*/
|
|
2328
|
+
onTranslationStringVisibility: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2289
2329
|
/**
|
|
2290
2330
|
* This callback is used internally for providing survey JSON text.
|
|
2291
2331
|
*/
|
|
@@ -2335,29 +2375,51 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2335
2375
|
*/
|
|
2336
2376
|
maximumRateValues: number;
|
|
2337
2377
|
/**
|
|
2338
|
-
*
|
|
2378
|
+
* Obsolete. Please use showPagesInPreviewTab
|
|
2339
2379
|
*/
|
|
2340
2380
|
showPagesInTestSurveyTab: boolean;
|
|
2341
2381
|
/**
|
|
2342
|
-
* Set this property to false to hide the
|
|
2382
|
+
* Set this property to false to hide the pages selector in the Preview Tab
|
|
2383
|
+
*/
|
|
2384
|
+
get showPagesInPreviewTab(): boolean;
|
|
2385
|
+
set showPagesInPreviewTab(val: boolean);
|
|
2386
|
+
/**
|
|
2387
|
+
* Obsolete. Please use showSimulatorInPreviewTab.
|
|
2388
|
+
* @see showSimulatorInPreviewTab
|
|
2343
2389
|
*/
|
|
2344
2390
|
showSimulatorInTestSurveyTab: boolean;
|
|
2391
|
+
/**
|
|
2392
|
+
* Set this property to false to hide the device simulator in the Preview Tab
|
|
2393
|
+
*/
|
|
2394
|
+
get showSimulatorInPreviewTab(): boolean;
|
|
2395
|
+
set showSimulatorInPreviewTab(val: boolean);
|
|
2345
2396
|
/**
|
|
2346
2397
|
* Set this property to false to disable pages adding, editing and deleting
|
|
2347
2398
|
*/
|
|
2348
2399
|
allowModifyPages: boolean;
|
|
2400
|
+
/**
|
|
2401
|
+
* Obsolete. Please use showDefaultLanguageInPreviewTab
|
|
2402
|
+
* @see showDefaultLanguageInPreviewTab
|
|
2403
|
+
*/
|
|
2404
|
+
showDefaultLanguageInTestSurveyTab: boolean | string;
|
|
2349
2405
|
/**
|
|
2350
2406
|
* The default value is _"auto"_. It shows the language selector if there are more than two languages are using in the survey.
|
|
2351
2407
|
* It shows only used languages in the survey.
|
|
2352
|
-
* Set this property to _false_ to hide the default language selector in the
|
|
2408
|
+
* Set this property to _false_ to hide the default language selector in the Preview Tab.
|
|
2353
2409
|
* Set it to _true_ to show this selector even if there is only one language in the survey
|
|
2354
2410
|
* Set it to _all_ to show the selector with all available languages (30+)
|
|
2355
2411
|
*/
|
|
2356
|
-
|
|
2412
|
+
get showDefaultLanguageInPreviewTab(): boolean | string;
|
|
2413
|
+
set showDefaultLanguageInPreviewTab(val: boolean | string);
|
|
2357
2414
|
/**
|
|
2358
|
-
* Set this property to false to hide the show invisible element checkbox in the
|
|
2415
|
+
* Set this property to false to hide the show invisible element checkbox in the Preview Tab
|
|
2359
2416
|
*/
|
|
2360
2417
|
showInvisibleElementsInTestSurveyTab: boolean;
|
|
2418
|
+
/**
|
|
2419
|
+
* Set this property to false to hide the show invisible element checkbox in the Preview Tab
|
|
2420
|
+
*/
|
|
2421
|
+
get showInvisibleElementsInPreviewTab(): boolean;
|
|
2422
|
+
set showInvisibleElementsInPreviewTab(val: boolean);
|
|
2361
2423
|
/**
|
|
2362
2424
|
* Set this property to true if you want to show "page selector" in the toolabar instead of "pages editor"
|
|
2363
2425
|
*/
|
|
@@ -2401,9 +2463,9 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2401
2463
|
static defaultNewSurveyText: string;
|
|
2402
2464
|
toolbox: QuestionToolbox;
|
|
2403
2465
|
get toolboxCategories(): Array<any>;
|
|
2404
|
-
|
|
2405
|
-
getTabPropertyGrid(id: string): PropertyGridViewModelBase;
|
|
2466
|
+
sideBar: SideBarModel;
|
|
2406
2467
|
constructor(options: ICreatorOptions, options2?: ICreatorOptions);
|
|
2468
|
+
updateToolboxIsCompact(newVal?: boolean): void;
|
|
2407
2469
|
onSurveyElementPropertyValueChanged(property: Survey.JsonObjectProperty, obj: any, newValue: any): void;
|
|
2408
2470
|
get showToolbox(): string;
|
|
2409
2471
|
set showToolbox(val: string);
|
|
@@ -2696,6 +2758,8 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2696
2758
|
showTabs: any;
|
|
2697
2759
|
showToolbar: any;
|
|
2698
2760
|
isMobileView: any;
|
|
2761
|
+
toolboxLocation: toolBoxLocationType;
|
|
2762
|
+
sideBarLocation: "left" | "right";
|
|
2699
2763
|
selectFromStringEditor: boolean;
|
|
2700
2764
|
}
|
|
2701
2765
|
export declare class StylesManager {
|
|
@@ -2709,6 +2773,7 @@ export declare function getItemValueWrapperComponentName(item: ItemValue, questi
|
|
|
2709
2773
|
export declare function getItemValueWrapperComponentData(item: ItemValue, question: QuestionSelectBase, creator: CreatorBase<SurveyModel>): any;
|
|
2710
2774
|
export declare function isStringEditable(element: any, name: string): boolean;
|
|
2711
2775
|
|
|
2776
|
+
import "./responsivity.scss";
|
|
2712
2777
|
export declare class CreatorResponsivityManager {
|
|
2713
2778
|
protected container: HTMLDivElement;
|
|
2714
2779
|
constructor(container: HTMLDivElement, creator: CreatorBase);
|
|
@@ -2790,6 +2855,8 @@ export declare class TabJsonEditorTextareaPlugin extends TabJsonEditorBasePlugin
|
|
|
2790
2855
|
import "./test.scss";
|
|
2791
2856
|
export declare class TestSurveyTabViewModel extends Base {
|
|
2792
2857
|
pages: ActionContainer;
|
|
2858
|
+
prevPageAction: Action;
|
|
2859
|
+
nextPageAction: Action;
|
|
2793
2860
|
onSurveyCreatedCallback: (survey: SurveyModel) => any;
|
|
2794
2861
|
simulator: SurveySimulatorModel;
|
|
2795
2862
|
showInvisibleElements: any;
|
|
@@ -2801,6 +2868,7 @@ export declare class TestSurveyTabViewModel extends Base {
|
|
|
2801
2868
|
set activeLanguage(val: string);
|
|
2802
2869
|
get survey(): SurveyModel;
|
|
2803
2870
|
get pageActions(): Array<Action>;
|
|
2871
|
+
get isPageToolbarVisible(): boolean;
|
|
2804
2872
|
constructor(surveyProvider: CreatorBase<SurveyModel>);
|
|
2805
2873
|
setJSON(json: any): void;
|
|
2806
2874
|
initialize(json: any, options: any): void;
|
|
@@ -3048,7 +3116,7 @@ export interface ITranslationLocales {
|
|
|
3048
3116
|
translateItemAfterRender(item: TranslationItem, el: any, locale: string): any;
|
|
3049
3117
|
fireOnObjCreating(obj: Base): any;
|
|
3050
3118
|
removeLocale(loc: string): void;
|
|
3051
|
-
canShowProperty(obj: Base, prop: JsonObjectProperty): boolean;
|
|
3119
|
+
canShowProperty(obj: Base, prop: JsonObjectProperty, isEmpty: boolean): boolean;
|
|
3052
3120
|
}
|
|
3053
3121
|
export declare class TranslationGroup extends TranslationItemBase {
|
|
3054
3122
|
name: any;
|
|
@@ -3086,6 +3154,7 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
3086
3154
|
translateItemAfterRenderCallback: (item: TranslationItem, el: any, locale: string) => void;
|
|
3087
3155
|
availableTranlationsChangedCallback: () => void;
|
|
3088
3156
|
tranlationChangedCallback: (locale: string, name: string, value: string, context: any) => void;
|
|
3157
|
+
translationStringVisibilityCallback: (obj: Base, propertyName: string, visible: boolean) => boolean;
|
|
3089
3158
|
chooseLanguageActions: Array<IAction>;
|
|
3090
3159
|
constructor(survey: SurveyModel, options?: ISurveyCreatorOptions, hasUI?: boolean);
|
|
3091
3160
|
getType(): string;
|
|
@@ -3109,7 +3178,7 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
3109
3178
|
get survey(): SurveyModel;
|
|
3110
3179
|
set survey(val: SurveyModel);
|
|
3111
3180
|
reset(): void;
|
|
3112
|
-
canShowProperty(obj: Base, prop: JsonObjectProperty): boolean;
|
|
3181
|
+
canShowProperty(obj: Base, prop: JsonObjectProperty, isEmpty: boolean): boolean;
|
|
3113
3182
|
get defaultLocale(): string;
|
|
3114
3183
|
getLocaleName(loc: string): string;
|
|
3115
3184
|
removeLocale(locale: string): void;
|
|
@@ -3432,7 +3501,6 @@ export declare var translationCss: {
|
|
|
3432
3501
|
|
|
3433
3502
|
export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
3434
3503
|
model: Translation;
|
|
3435
|
-
propertyGrid: PropertyGridViewModelBase;
|
|
3436
3504
|
constructor(creator: CreatorBase<SurveyModel>);
|
|
3437
3505
|
activate(): void;
|
|
3438
3506
|
update(): void;
|
|
@@ -3450,17 +3518,20 @@ export declare class TabDesignerViewModel<T extends SurveyModel> extends Base {
|
|
|
3450
3518
|
newPage: PageModel;
|
|
3451
3519
|
showNewPage: boolean;
|
|
3452
3520
|
pageCount: number;
|
|
3521
|
+
withModifier: string;
|
|
3453
3522
|
creator: CreatorBase<T>;
|
|
3454
3523
|
constructor(creator: CreatorBase<T>);
|
|
3455
3524
|
get survey(): T;
|
|
3525
|
+
get isToolboxVisible(): boolean;
|
|
3456
3526
|
initSurvey(): void;
|
|
3457
3527
|
dispose(): void;
|
|
3458
|
-
withModifier: string;
|
|
3459
3528
|
getDesignerCss(): string;
|
|
3529
|
+
getRootCss(): string;
|
|
3460
3530
|
}
|
|
3531
|
+
|
|
3461
3532
|
export declare class TabDesignerPlugin<T extends SurveyModel> implements ICreatorPlugin {
|
|
3462
3533
|
model: TabDesignerViewModel<T>;
|
|
3463
|
-
propertyGrid:
|
|
3534
|
+
propertyGrid: PropertyGridViewModel<T>;
|
|
3464
3535
|
previewAction: Action;
|
|
3465
3536
|
constructor(creator: CreatorBase<T>);
|
|
3466
3537
|
activate(): void;
|
|
@@ -3551,6 +3622,7 @@ export declare var logicCss: {
|
|
|
3551
3622
|
requiredText: string;
|
|
3552
3623
|
};
|
|
3553
3624
|
paneldynamic: {
|
|
3625
|
+
mainRoot: string;
|
|
3554
3626
|
root: string;
|
|
3555
3627
|
navigation: string;
|
|
3556
3628
|
title: string;
|
|
@@ -3581,6 +3653,7 @@ export declare var logicCss: {
|
|
|
3581
3653
|
pageTitle: string;
|
|
3582
3654
|
pageDescription: string;
|
|
3583
3655
|
row: string;
|
|
3656
|
+
rowMultiple: string;
|
|
3584
3657
|
question: {
|
|
3585
3658
|
mainRoot: string;
|
|
3586
3659
|
flowRoot: string;
|
|
@@ -3610,7 +3683,6 @@ export declare var logicCss: {
|
|
|
3610
3683
|
};
|
|
3611
3684
|
image: {
|
|
3612
3685
|
root: string;
|
|
3613
|
-
image: string;
|
|
3614
3686
|
};
|
|
3615
3687
|
error: {
|
|
3616
3688
|
root: string;
|
|
@@ -3774,6 +3846,7 @@ export declare var logicCss: {
|
|
|
3774
3846
|
itemDisabled: string;
|
|
3775
3847
|
};
|
|
3776
3848
|
comment: {
|
|
3849
|
+
mainRoot: string;
|
|
3777
3850
|
root: string;
|
|
3778
3851
|
small: string;
|
|
3779
3852
|
};
|
|
@@ -3821,13 +3894,16 @@ export declare var logicCss: {
|
|
|
3821
3894
|
buttonCollapsed: string;
|
|
3822
3895
|
};
|
|
3823
3896
|
};
|
|
3897
|
+
embeddedsurvey: {
|
|
3898
|
+
mainRoot: string;
|
|
3899
|
+
};
|
|
3824
3900
|
};
|
|
3825
3901
|
|
|
3826
3902
|
export declare class ToolboxToolViewModel extends Base {
|
|
3827
3903
|
protected item: IQuestionToolboxItem;
|
|
3828
3904
|
protected creator: CreatorBase<SurveyModel>;
|
|
3829
3905
|
constructor(item: IQuestionToolboxItem, creator: CreatorBase<SurveyModel>);
|
|
3830
|
-
click: (event: any) =>
|
|
3906
|
+
click: (event: any) => void;
|
|
3831
3907
|
get allowAdd(): boolean;
|
|
3832
3908
|
onPointerDown(pointerDownEvent: any): boolean;
|
|
3833
3909
|
}
|
|
@@ -3845,6 +3921,9 @@ export declare class PageNavigatorViewModel<T extends SurveyModel> extends Base
|
|
|
3845
3921
|
isPopupOpened: boolean;
|
|
3846
3922
|
protected createActionBarCore(item: IAction): Action;
|
|
3847
3923
|
togglePageSelector: () => void;
|
|
3924
|
+
get pageSelectorCaption(): any;
|
|
3925
|
+
onContainerScroll(viewPort: HTMLDivElement): any;
|
|
3926
|
+
currentPage: PageModel;
|
|
3848
3927
|
}
|
|
3849
3928
|
|
|
3850
3929
|
import "./page.scss";
|
|
@@ -3866,6 +3945,7 @@ export declare class PageViewModel<T extends SurveyModel> extends ActionContaine
|
|
|
3866
3945
|
hover(event: MouseEvent, element: HTMLElement): void;
|
|
3867
3946
|
protected duplicate(): void;
|
|
3868
3947
|
get allowEdit(): boolean;
|
|
3948
|
+
get addNewQuestionText(): string;
|
|
3869
3949
|
}
|
|
3870
3950
|
|
|
3871
3951
|
import "./row.scss";
|
|
@@ -3885,6 +3965,7 @@ export declare class QuestionAdornerViewModel extends ActionContainerViewModel<S
|
|
|
3885
3965
|
select(model: QuestionAdornerViewModel, event: IPortableMouseEvent): boolean;
|
|
3886
3966
|
rootCss(): "" | " svc-question__adorner--start-with-new-line";
|
|
3887
3967
|
css(): string;
|
|
3968
|
+
get isDragMe(): boolean;
|
|
3888
3969
|
get dragTypeOverMe(): DragTypeOverMeEnum;
|
|
3889
3970
|
dispose(): void;
|
|
3890
3971
|
get isDraggable(): boolean;
|
|
@@ -4416,6 +4497,7 @@ export declare class PropertyGridEditorCondition extends PropertyGridEditorExpre
|
|
|
4416
4497
|
|
|
4417
4498
|
export declare abstract class PropertyGridEditorMatrix extends PropertyGridEditor {
|
|
4418
4499
|
onCreated(obj: Base, question: Question, prop: JsonObjectProperty): void;
|
|
4500
|
+
onMatrixCellCreated(obj: Base, options: any): void;
|
|
4419
4501
|
onGetMatrixRowAction(obj: Base, options: any, setObjFunc: (obj: Base) => void): void;
|
|
4420
4502
|
onGetQuestionTitleActions(obj: Base, options: any): void;
|
|
4421
4503
|
onValueChanged(obj: Base, prop: JsonObjectProperty, question: Question): void;
|
|
@@ -4524,26 +4606,16 @@ export declare class PropertyGridEditorBindings extends PropertyGridEditor {
|
|
|
4524
4606
|
onMatrixCellValueChanged(obj: Base, options: any): void;
|
|
4525
4607
|
}
|
|
4526
4608
|
|
|
4527
|
-
export declare class
|
|
4528
|
-
|
|
4529
|
-
|
|
4530
|
-
|
|
4531
|
-
headerText: string;
|
|
4532
|
-
visible: boolean;
|
|
4533
|
-
flyoutMode: boolean;
|
|
4534
|
-
get flyoutPanelMode(): boolean;
|
|
4535
|
-
get closeText(): string;
|
|
4536
|
-
constructor(model?: Base, collapseAction?: () => void, expandAction?: () => void);
|
|
4537
|
-
createExpandAction(): Action;
|
|
4538
|
-
closePropertyGrid(): void;
|
|
4539
|
-
}
|
|
4540
|
-
export declare class PropertyGridViewModel<T extends SurveyModel> extends PropertyGridViewModelBase {
|
|
4609
|
+
export declare class PropertyGridViewModel<T extends SurveyModel> extends Base {
|
|
4610
|
+
nextSelectionAction: Action;
|
|
4611
|
+
prevSelectionAction: Action;
|
|
4612
|
+
objectSelectionAction: Action;
|
|
4541
4613
|
hasPrev: boolean;
|
|
4542
4614
|
hasNext: boolean;
|
|
4543
|
-
|
|
4544
|
-
|
|
4615
|
+
survey: SurveyModel;
|
|
4616
|
+
selectedElementName: string;
|
|
4617
|
+
constructor(propertyGridModel: PropertyGridModel, creator: CreatorBase<T>);
|
|
4545
4618
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
4546
|
-
dispose(): void;
|
|
4547
4619
|
}
|
|
4548
4620
|
|
|
4549
4621
|
export declare class ObjectSelectorItem extends Action {
|
|
@@ -4910,7 +4982,7 @@ export declare class QuestionConverter {
|
|
|
4910
4982
|
static convertObject(obj: Survey.Question, convertToClass: string): Survey.Question;
|
|
4911
4983
|
}
|
|
4912
4984
|
|
|
4913
|
-
export declare var
|
|
4985
|
+
export declare var svgBundle: string;
|
|
4914
4986
|
|
|
4915
4987
|
export declare class SurveyTextWorker {
|
|
4916
4988
|
text: string;
|
|
@@ -5001,8 +5073,8 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
5001
5073
|
hasCategories: boolean;
|
|
5002
5074
|
canCollapseCategories: boolean;
|
|
5003
5075
|
isCompact: boolean;
|
|
5004
|
-
visible: boolean;
|
|
5005
5076
|
constructor(supportedQuestions?: Array<string>, creator?: CreatorBase<SurveyModel>);
|
|
5077
|
+
setLocation(toolboxLocation: toolBoxLocationType): void;
|
|
5006
5078
|
/**
|
|
5007
5079
|
* The Array of Toolbox items as Text JSON.
|
|
5008
5080
|
*/
|
|
@@ -5112,6 +5184,37 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
5112
5184
|
dispose(): void;
|
|
5113
5185
|
}
|
|
5114
5186
|
|
|
5187
|
+
export declare class SideBarModel extends Base {
|
|
5188
|
+
toolbar: AdaptiveActionContainer;
|
|
5189
|
+
tabs: Array<SideBarTabModel>;
|
|
5190
|
+
headerText: string;
|
|
5191
|
+
visible: boolean;
|
|
5192
|
+
hasVisibleTabs: boolean;
|
|
5193
|
+
flyoutMode: boolean;
|
|
5194
|
+
activeTab: string;
|
|
5195
|
+
get flyoutPanelMode(): boolean;
|
|
5196
|
+
get closeText(): string;
|
|
5197
|
+
getTabById(id: string): SideBarTabModel;
|
|
5198
|
+
constructor(creator: CreatorBase, collapseAction?: () => void, expandAction?: () => void);
|
|
5199
|
+
getExpandAction(): Action;
|
|
5200
|
+
closePropertyGrid(): void;
|
|
5201
|
+
addTab(id: string, componentName?: string, model?: any, buildActions?: () => Array<Action>): SideBarTabModel;
|
|
5202
|
+
updateHasVisibleTabs(): void;
|
|
5203
|
+
dispose(): void;
|
|
5204
|
+
initResizeManager(container: HTMLDivElement): void;
|
|
5205
|
+
resetResizeManager(): void;
|
|
5206
|
+
}
|
|
5207
|
+
|
|
5208
|
+
export declare class SideBarTabModel extends Base {
|
|
5209
|
+
id: string;
|
|
5210
|
+
sidePanel: SideBarModel;
|
|
5211
|
+
caption: string;
|
|
5212
|
+
visible: boolean;
|
|
5213
|
+
model: any;
|
|
5214
|
+
componentName: string;
|
|
5215
|
+
constructor(id: string, sidePanel: SideBarModel, componentName?: string, model?: any);
|
|
5216
|
+
}
|
|
5217
|
+
|
|
5115
5218
|
export interface IPortableMouseEvent {
|
|
5116
5219
|
stopPropagation(): any;
|
|
5117
5220
|
preventDefault(): any;
|
|
@@ -5134,9 +5237,12 @@ export declare function getFirstNonTextElement(elements: any): any;
|
|
|
5134
5237
|
export declare function getNodesFromKoComponentInfo(componentInfo: any): any;
|
|
5135
5238
|
export declare function propertyExists(obj: any, propertyName: string): boolean;
|
|
5136
5239
|
export declare function isPropertyVisible(obj: any, propertyName: string): boolean;
|
|
5137
|
-
export declare function toggleHovered(e: MouseEvent, element: HTMLElement): void;
|
|
5240
|
+
export declare function toggleHovered(e: MouseEvent, element: HTMLElement, timeout?: number): void;
|
|
5138
5241
|
export declare function clearNewLines(text: string): string;
|
|
5139
5242
|
export declare function select(element: any): void;
|
|
5243
|
+
export declare function copyObject(dst: any, src: any): void;
|
|
5244
|
+
export declare function copyCssClasses(dest: any, source: any): void;
|
|
5245
|
+
export declare function assignDefaultV2Classes(destination: any, questionType: string): void;
|
|
5140
5246
|
|
|
5141
5247
|
export interface ISurveyQuestionEditorDefinition {
|
|
5142
5248
|
title?: string;
|
|
@@ -5204,7 +5310,8 @@ export declare class Notifier extends Base {
|
|
|
5204
5310
|
}
|
|
5205
5311
|
|
|
5206
5312
|
export declare class ResizeManager {
|
|
5207
|
-
constructor(container: HTMLElement);
|
|
5313
|
+
constructor(container: HTMLElement, handles: string);
|
|
5314
|
+
setHandles(newVal: string): void;
|
|
5208
5315
|
dispose(): void;
|
|
5209
5316
|
}
|
|
5210
5317
|
|