survey-creator-core 1.8.78-beta.1 → 1.8.79-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/package.json +1 -1
- package/survey-creator-core.css +796 -2028
- package/survey-creator-core.d.ts +62 -34
- package/survey-creator-core.js +833 -597
- package/survey-creator-core.min.css +225 -61
- 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.8.
|
|
1
|
+
/*Type definitions for SurveyJS Creator JavaScript library v1.8.79-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,7 +17,7 @@ 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
22
|
import { PopupModel, ListModel, Base, SurveyModel, IAction, Action } from "survey-core";
|
|
23
23
|
import { PageModel, 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";
|
|
@@ -1872,7 +1874,6 @@ export interface ICreatorPlugin {
|
|
|
1872
1874
|
update?: () => void;
|
|
1873
1875
|
deactivate?: () => boolean;
|
|
1874
1876
|
model: Base;
|
|
1875
|
-
propertyGrid?: PropertyGridViewModelBase;
|
|
1876
1877
|
}
|
|
1877
1878
|
export interface ITabbedMenuItem extends IAction {
|
|
1878
1879
|
componentContent: string;
|
|
@@ -1886,6 +1887,7 @@ export declare class TabbedMenuItem extends Action implements ITabbedMenuItem {
|
|
|
1886
1887
|
export declare class TabbedMenuContainer extends AdaptiveActionContainer<TabbedMenuItem> {
|
|
1887
1888
|
constructor();
|
|
1888
1889
|
}
|
|
1890
|
+
export declare type toolBoxLocationType = "left" | "right" | "insideSideBar" | "hidden";
|
|
1889
1891
|
/**
|
|
1890
1892
|
* Base class for Survey Creator.
|
|
1891
1893
|
*/
|
|
@@ -2286,6 +2288,14 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2286
2288
|
* @see uploadFile
|
|
2287
2289
|
*/
|
|
2288
2290
|
onUploadFile: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2291
|
+
/**
|
|
2292
|
+
* Use this event to modify the list of the strings available in a translation tab.
|
|
2293
|
+
* <br/> sender - the survey creator object that fires the event
|
|
2294
|
+
* <br/> options.obj - the survey object which property translations are edited in the translation tab.
|
|
2295
|
+
* <br/> options.propertyName - the name of the property.
|
|
2296
|
+
* <br/> options.visible - a boolean value. You can change it to hide the property.
|
|
2297
|
+
*/
|
|
2298
|
+
onTranslationStringVisibility: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2289
2299
|
/**
|
|
2290
2300
|
* This callback is used internally for providing survey JSON text.
|
|
2291
2301
|
*/
|
|
@@ -2401,9 +2411,9 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2401
2411
|
static defaultNewSurveyText: string;
|
|
2402
2412
|
toolbox: QuestionToolbox;
|
|
2403
2413
|
get toolboxCategories(): Array<any>;
|
|
2404
|
-
|
|
2405
|
-
getTabPropertyGrid(id: string): PropertyGridViewModelBase;
|
|
2414
|
+
sideBar: SideBarModel;
|
|
2406
2415
|
constructor(options: ICreatorOptions, options2?: ICreatorOptions);
|
|
2416
|
+
updateToolboxIsCompact(newVal?: boolean): void;
|
|
2407
2417
|
onSurveyElementPropertyValueChanged(property: Survey.JsonObjectProperty, obj: any, newValue: any): void;
|
|
2408
2418
|
get showToolbox(): string;
|
|
2409
2419
|
set showToolbox(val: string);
|
|
@@ -2696,6 +2706,8 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2696
2706
|
showTabs: any;
|
|
2697
2707
|
showToolbar: any;
|
|
2698
2708
|
isMobileView: any;
|
|
2709
|
+
toolboxLocation: toolBoxLocationType;
|
|
2710
|
+
sideBarLocation: "left" | "right";
|
|
2699
2711
|
selectFromStringEditor: boolean;
|
|
2700
2712
|
}
|
|
2701
2713
|
export declare class StylesManager {
|
|
@@ -3052,7 +3064,7 @@ export interface ITranslationLocales {
|
|
|
3052
3064
|
translateItemAfterRender(item: TranslationItem, el: any, locale: string): any;
|
|
3053
3065
|
fireOnObjCreating(obj: Base): any;
|
|
3054
3066
|
removeLocale(loc: string): void;
|
|
3055
|
-
canShowProperty(obj: Base, prop: JsonObjectProperty): boolean;
|
|
3067
|
+
canShowProperty(obj: Base, prop: JsonObjectProperty, isEmpty: boolean): boolean;
|
|
3056
3068
|
}
|
|
3057
3069
|
export declare class TranslationGroup extends TranslationItemBase {
|
|
3058
3070
|
name: any;
|
|
@@ -3090,6 +3102,7 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
3090
3102
|
translateItemAfterRenderCallback: (item: TranslationItem, el: any, locale: string) => void;
|
|
3091
3103
|
availableTranlationsChangedCallback: () => void;
|
|
3092
3104
|
tranlationChangedCallback: (locale: string, name: string, value: string, context: any) => void;
|
|
3105
|
+
translationStringVisibilityCallback: (obj: Base, propertyName: string, visible: boolean) => boolean;
|
|
3093
3106
|
chooseLanguageActions: Array<IAction>;
|
|
3094
3107
|
constructor(survey: SurveyModel, options?: ISurveyCreatorOptions, hasUI?: boolean);
|
|
3095
3108
|
getType(): string;
|
|
@@ -3113,7 +3126,7 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
3113
3126
|
get survey(): SurveyModel;
|
|
3114
3127
|
set survey(val: SurveyModel);
|
|
3115
3128
|
reset(): void;
|
|
3116
|
-
canShowProperty(obj: Base, prop: JsonObjectProperty): boolean;
|
|
3129
|
+
canShowProperty(obj: Base, prop: JsonObjectProperty, isEmpty: boolean): boolean;
|
|
3117
3130
|
get defaultLocale(): string;
|
|
3118
3131
|
getLocaleName(loc: string): string;
|
|
3119
3132
|
removeLocale(locale: string): void;
|
|
@@ -3434,12 +3447,8 @@ export declare var translationCss: {
|
|
|
3434
3447
|
};
|
|
3435
3448
|
};
|
|
3436
3449
|
|
|
3437
|
-
export declare class PropertyGridViewTranslationModel extends PropertyGridViewModelBase {
|
|
3438
|
-
get propertyGridType(): string;
|
|
3439
|
-
}
|
|
3440
3450
|
export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
3441
3451
|
model: Translation;
|
|
3442
|
-
propertyGrid: PropertyGridViewModelBase;
|
|
3443
3452
|
constructor(creator: CreatorBase<SurveyModel>);
|
|
3444
3453
|
activate(): void;
|
|
3445
3454
|
update(): void;
|
|
@@ -3457,17 +3466,19 @@ export declare class TabDesignerViewModel<T extends SurveyModel> extends Base {
|
|
|
3457
3466
|
newPage: PageModel;
|
|
3458
3467
|
showNewPage: boolean;
|
|
3459
3468
|
pageCount: number;
|
|
3469
|
+
withModifier: string;
|
|
3460
3470
|
creator: CreatorBase<T>;
|
|
3461
3471
|
constructor(creator: CreatorBase<T>);
|
|
3462
3472
|
get survey(): T;
|
|
3473
|
+
get isToolboxVisible(): boolean;
|
|
3463
3474
|
initSurvey(): void;
|
|
3464
3475
|
dispose(): void;
|
|
3465
|
-
withModifier: string;
|
|
3466
3476
|
getDesignerCss(): string;
|
|
3467
3477
|
}
|
|
3478
|
+
|
|
3468
3479
|
export declare class TabDesignerPlugin<T extends SurveyModel> implements ICreatorPlugin {
|
|
3469
3480
|
model: TabDesignerViewModel<T>;
|
|
3470
|
-
propertyGrid:
|
|
3481
|
+
propertyGrid: PropertyGridViewModel<T>;
|
|
3471
3482
|
previewAction: Action;
|
|
3472
3483
|
constructor(creator: CreatorBase<T>);
|
|
3473
3484
|
activate(): void;
|
|
@@ -4534,28 +4545,16 @@ export declare class PropertyGridEditorBindings extends PropertyGridEditor {
|
|
|
4534
4545
|
onMatrixCellValueChanged(obj: Base, options: any): void;
|
|
4535
4546
|
}
|
|
4536
4547
|
|
|
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 {
|
|
4548
|
+
export declare class PropertyGridViewModel<T extends SurveyModel> extends Base {
|
|
4549
|
+
nextSelectionAction: Action;
|
|
4550
|
+
prevSelectionAction: Action;
|
|
4551
|
+
objectSelectionAction: Action;
|
|
4552
4552
|
hasPrev: boolean;
|
|
4553
4553
|
hasNext: boolean;
|
|
4554
|
-
|
|
4555
|
-
|
|
4556
|
-
|
|
4554
|
+
survey: SurveyModel;
|
|
4555
|
+
selectedElementName: string;
|
|
4556
|
+
constructor(propertyGridModel: PropertyGridModel, creator: CreatorBase<T>);
|
|
4557
4557
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
4558
|
-
dispose(): void;
|
|
4559
4558
|
}
|
|
4560
4559
|
|
|
4561
4560
|
export declare class ObjectSelectorItem extends Action {
|
|
@@ -5013,8 +5012,8 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
5013
5012
|
hasCategories: boolean;
|
|
5014
5013
|
canCollapseCategories: boolean;
|
|
5015
5014
|
isCompact: boolean;
|
|
5016
|
-
visible: boolean;
|
|
5017
5015
|
constructor(supportedQuestions?: Array<string>, creator?: CreatorBase<SurveyModel>);
|
|
5016
|
+
setLocation(toolboxLocation: toolBoxLocationType): void;
|
|
5018
5017
|
/**
|
|
5019
5018
|
* The Array of Toolbox items as Text JSON.
|
|
5020
5019
|
*/
|
|
@@ -5124,6 +5123,35 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
5124
5123
|
dispose(): void;
|
|
5125
5124
|
}
|
|
5126
5125
|
|
|
5126
|
+
export declare class SideBarModel extends Base {
|
|
5127
|
+
toolbar: AdaptiveActionContainer;
|
|
5128
|
+
tabs: Array<SideBarTabModel>;
|
|
5129
|
+
headerText: string;
|
|
5130
|
+
visible: boolean;
|
|
5131
|
+
hasVisibleTabs: boolean;
|
|
5132
|
+
flyoutMode: boolean;
|
|
5133
|
+
activeTab: string;
|
|
5134
|
+
get flyoutPanelMode(): boolean;
|
|
5135
|
+
get closeText(): string;
|
|
5136
|
+
getTabById(id: string): SideBarTabModel;
|
|
5137
|
+
constructor(creator: CreatorBase, collapseAction?: () => void, expandAction?: () => void);
|
|
5138
|
+
getExpandAction(): Action;
|
|
5139
|
+
closePropertyGrid(): void;
|
|
5140
|
+
addTab(id: string, componentName?: string, model?: any, buildActions?: () => Array<Action>): SideBarTabModel;
|
|
5141
|
+
updateHasVisibleTabs(): void;
|
|
5142
|
+
dispose(): void;
|
|
5143
|
+
}
|
|
5144
|
+
|
|
5145
|
+
export declare class SideBarTabModel extends Base {
|
|
5146
|
+
id: string;
|
|
5147
|
+
sidePanel: SideBarModel;
|
|
5148
|
+
caption: string;
|
|
5149
|
+
visible: boolean;
|
|
5150
|
+
model: any;
|
|
5151
|
+
componentName: string;
|
|
5152
|
+
constructor(id: string, sidePanel: SideBarModel, componentName?: string, model?: any);
|
|
5153
|
+
}
|
|
5154
|
+
|
|
5127
5155
|
export interface IPortableMouseEvent {
|
|
5128
5156
|
stopPropagation(): any;
|
|
5129
5157
|
preventDefault(): any;
|