survey-creator-core 1.9.4-beta.1 → 1.9.8-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 +271 -185
- package/survey-creator-core.d.ts +183 -62
- package/survey-creator-core.js +1868 -415
- package/survey-creator-core.min.css +20 -20
- package/survey-creator-core.min.js +3 -3
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
/*Type definitions for SurveyJS Creator JavaScript library v1.9.
|
|
2
|
-
(c) 2015-
|
|
1
|
+
/*Type definitions for SurveyJS Creator JavaScript library v1.9.8-beta.1
|
|
2
|
+
(c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
|
|
3
3
|
Github: https://github.com/surveyjs/survey-creator
|
|
4
4
|
License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
@@ -45,8 +45,9 @@ import { ArrayChanges, Base } from "survey-core";
|
|
|
45
45
|
import { Base, SurveyModel, EventBase, PageModel } from "survey-core";
|
|
46
46
|
import { Action, Base, Event, SurveyModel } from "survey-core";
|
|
47
47
|
import { SurveyModel, Base } from "survey-core";
|
|
48
|
-
import { SurveyModel,
|
|
49
|
-
import { SurveyModel, QuestionPanelDynamicModel, PanelModel } from "survey-core";
|
|
48
|
+
import { SurveyModel, Base, Question, SurveyElement } from "survey-core";
|
|
49
|
+
import { SurveyModel, QuestionPanelDynamicModel, ItemValue, PanelModel, Base, Question, QuestionCommentModel } from "survey-core";
|
|
50
|
+
import { SurveyModel, QuestionPanelDynamicModel, PanelModel, Question } from "survey-core";
|
|
50
51
|
import { Base, AdaptiveActionContainer, Action, SurveyModel, SurveyElement } from "survey-core";
|
|
51
52
|
|
|
52
53
|
|
|
@@ -61,6 +62,7 @@ import "../components/side-bar/side-bar.scss";
|
|
|
61
62
|
import "../property-grid-theme/property-grid.scss";
|
|
62
63
|
import "../utils/design.scss";
|
|
63
64
|
import "../utils/layout.scss";
|
|
65
|
+
import "../localization/arabic";
|
|
64
66
|
import "../localization/danish";
|
|
65
67
|
import "../localization/french";
|
|
66
68
|
import "../localization/german";
|
|
@@ -210,6 +212,7 @@ export declare var enStrings: {
|
|
|
210
212
|
chooseElement: string;
|
|
211
213
|
htmlPlaceHolder: string;
|
|
212
214
|
panelPlaceHolder: string;
|
|
215
|
+
surveyPlaceHolder: string;
|
|
213
216
|
addNewQuestion: string;
|
|
214
217
|
addNewTypeQuestion: string;
|
|
215
218
|
chooseLogoPlaceholder: string;
|
|
@@ -222,6 +225,9 @@ export declare var enStrings: {
|
|
|
222
225
|
question_visibilityName: string;
|
|
223
226
|
question_enableName: string;
|
|
224
227
|
question_requireName: string;
|
|
228
|
+
column_visibilityName: string;
|
|
229
|
+
column_enableName: string;
|
|
230
|
+
column_requireName: string;
|
|
225
231
|
trigger_completeName: string;
|
|
226
232
|
trigger_setvalueName: string;
|
|
227
233
|
trigger_copyvalueName: string;
|
|
@@ -248,6 +254,9 @@ export declare var enStrings: {
|
|
|
248
254
|
question_visibilityText: string;
|
|
249
255
|
question_enableText: string;
|
|
250
256
|
question_requireText: string;
|
|
257
|
+
column_visibilityText: string;
|
|
258
|
+
column_enableText: string;
|
|
259
|
+
column_requireText: string;
|
|
251
260
|
trigger_completeText: string;
|
|
252
261
|
trigger_setvalueText: string;
|
|
253
262
|
trigger_copyvalueText: string;
|
|
@@ -528,6 +537,7 @@ export declare var enStrings: {
|
|
|
528
537
|
triggerGotoName: string;
|
|
529
538
|
triggerIsVariable: string;
|
|
530
539
|
triggerRunExpressionEmpty: string;
|
|
540
|
+
emptyExpressionPlaceHolder: string;
|
|
531
541
|
noFile: string;
|
|
532
542
|
};
|
|
533
543
|
pv: {
|
|
@@ -1037,6 +1047,7 @@ export declare var defaultStrings: {
|
|
|
1037
1047
|
chooseElement: string;
|
|
1038
1048
|
htmlPlaceHolder: string;
|
|
1039
1049
|
panelPlaceHolder: string;
|
|
1050
|
+
surveyPlaceHolder: string;
|
|
1040
1051
|
addNewQuestion: string;
|
|
1041
1052
|
addNewTypeQuestion: string;
|
|
1042
1053
|
chooseLogoPlaceholder: string;
|
|
@@ -1049,6 +1060,9 @@ export declare var defaultStrings: {
|
|
|
1049
1060
|
question_visibilityName: string;
|
|
1050
1061
|
question_enableName: string;
|
|
1051
1062
|
question_requireName: string;
|
|
1063
|
+
column_visibilityName: string;
|
|
1064
|
+
column_enableName: string;
|
|
1065
|
+
column_requireName: string;
|
|
1052
1066
|
trigger_completeName: string;
|
|
1053
1067
|
trigger_setvalueName: string;
|
|
1054
1068
|
trigger_copyvalueName: string;
|
|
@@ -1075,6 +1089,9 @@ export declare var defaultStrings: {
|
|
|
1075
1089
|
question_visibilityText: string;
|
|
1076
1090
|
question_enableText: string;
|
|
1077
1091
|
question_requireText: string;
|
|
1092
|
+
column_visibilityText: string;
|
|
1093
|
+
column_enableText: string;
|
|
1094
|
+
column_requireText: string;
|
|
1078
1095
|
trigger_completeText: string;
|
|
1079
1096
|
trigger_setvalueText: string;
|
|
1080
1097
|
trigger_copyvalueText: string;
|
|
@@ -1355,6 +1372,7 @@ export declare var defaultStrings: {
|
|
|
1355
1372
|
triggerGotoName: string;
|
|
1356
1373
|
triggerIsVariable: string;
|
|
1357
1374
|
triggerRunExpressionEmpty: string;
|
|
1375
|
+
emptyExpressionPlaceHolder: string;
|
|
1358
1376
|
noFile: string;
|
|
1359
1377
|
};
|
|
1360
1378
|
pv: {
|
|
@@ -1724,9 +1742,13 @@ export declare enum QuestionConvertMode {
|
|
|
1724
1742
|
CompatibleTypes = 1
|
|
1725
1743
|
}
|
|
1726
1744
|
export declare var settings: {
|
|
1727
|
-
|
|
1745
|
+
translation: {
|
|
1728
1746
|
sortByName: boolean;
|
|
1729
1747
|
exportPrefix: string;
|
|
1748
|
+
/**
|
|
1749
|
+
* The maximum number of locales that user can select at once for translation
|
|
1750
|
+
*/
|
|
1751
|
+
maximumSelectedLocales: number;
|
|
1730
1752
|
};
|
|
1731
1753
|
operators: {
|
|
1732
1754
|
empty: any[];
|
|
@@ -1742,11 +1764,7 @@ export declare var settings: {
|
|
|
1742
1764
|
greaterorequal: string[];
|
|
1743
1765
|
lessorequal: string[];
|
|
1744
1766
|
};
|
|
1745
|
-
defaultNewSurveyJSON: {
|
|
1746
|
-
pages: {
|
|
1747
|
-
name: string;
|
|
1748
|
-
}[];
|
|
1749
|
-
};
|
|
1767
|
+
defaultNewSurveyJSON: {};
|
|
1750
1768
|
logic: {
|
|
1751
1769
|
visibleActions: any[];
|
|
1752
1770
|
logicItemTitleMaxChars: number;
|
|
@@ -1756,7 +1774,6 @@ export declare var settings: {
|
|
|
1756
1774
|
*/
|
|
1757
1775
|
questionConvertMode: QuestionConvertMode;
|
|
1758
1776
|
propertyGrid: {
|
|
1759
|
-
allowCollapse: boolean;
|
|
1760
1777
|
useButtonGroup: boolean;
|
|
1761
1778
|
maxCharsInButtonGroup: number;
|
|
1762
1779
|
showNavigationButtons: boolean;
|
|
@@ -1790,6 +1807,7 @@ export declare var settings: {
|
|
|
1790
1807
|
layout: {
|
|
1791
1808
|
showTabs: boolean;
|
|
1792
1809
|
showToolbar: boolean;
|
|
1810
|
+
allowCollapseSidebar: boolean;
|
|
1793
1811
|
};
|
|
1794
1812
|
jsonEditor: {
|
|
1795
1813
|
indentation: number;
|
|
@@ -1902,7 +1920,7 @@ export declare class ToolbarActionContainer extends ActionContainer {
|
|
|
1902
1920
|
constructor(creator: CreatorBase);
|
|
1903
1921
|
protected getRenderedActions(): Array<Action>;
|
|
1904
1922
|
}
|
|
1905
|
-
export declare type
|
|
1923
|
+
export declare type toolboxLocationType = "left" | "right" | "sidebar";
|
|
1906
1924
|
/**
|
|
1907
1925
|
* Base class for Survey Creator.
|
|
1908
1926
|
*/
|
|
@@ -1958,7 +1976,7 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
1958
1976
|
* @see haveCommercialLicense
|
|
1959
1977
|
*/
|
|
1960
1978
|
haveCommercialLicense: boolean;
|
|
1961
|
-
get licenseText():
|
|
1979
|
+
get licenseText(): string;
|
|
1962
1980
|
/**
|
|
1963
1981
|
* A boolean property, false by default. Set it to true to call protected doSave method automatically on survey changing.
|
|
1964
1982
|
*/
|
|
@@ -2340,13 +2358,26 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2340
2358
|
*/
|
|
2341
2359
|
onUploadFile: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2342
2360
|
/**
|
|
2343
|
-
* Use this event to modify the list of the strings available in
|
|
2344
|
-
*
|
|
2345
|
-
*
|
|
2346
|
-
*
|
|
2347
|
-
*
|
|
2361
|
+
* Use this event to modify the list of the strings available in the Translation tab.
|
|
2362
|
+
*
|
|
2363
|
+
* The event handler accepts the following arguments:
|
|
2364
|
+
*
|
|
2365
|
+
* - `sender` - A Survey Creator instance that raised the event.
|
|
2366
|
+
* - `options.obj` - A survey object instance (survey, page, panel, question) whose string translations are being edited in the Translation tab.
|
|
2367
|
+
* - `options.propertyName` - The name of a property being translated.
|
|
2368
|
+
* - `options.visible` - A Boolean value that specifies the property visibility. Set it to `false` to hide the property.
|
|
2348
2369
|
*/
|
|
2349
2370
|
onTranslationStringVisibility: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2371
|
+
/**
|
|
2372
|
+
* Use this event to define is the locale initially selected (default value) and ready for translaion or it is unselected.
|
|
2373
|
+
*
|
|
2374
|
+
* The event handler accepts the following arguments:
|
|
2375
|
+
*
|
|
2376
|
+
* - `sender` - A Survey Creator instance that raised the event.
|
|
2377
|
+
* - `options.locale` - the locale name, like 'en', 'de' and so on.
|
|
2378
|
+
* - `options.isSelected` - it is true by default. Set it to false to make the translation unselected.
|
|
2379
|
+
*/
|
|
2380
|
+
onTranslationLocaleInitiallySelected: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2350
2381
|
/**
|
|
2351
2382
|
* This callback is used internally for providing survey JSON text.
|
|
2352
2383
|
*/
|
|
@@ -2481,19 +2512,22 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2481
2512
|
* @param viewName name of new active view (tab). The following values are available: "designer", "editor", "test", "embed", "logic" and "translation".
|
|
2482
2513
|
*/
|
|
2483
2514
|
makeNewViewActive(viewName: string): boolean;
|
|
2484
|
-
static defaultNewSurveyText: string;
|
|
2485
2515
|
toolbox: QuestionToolbox;
|
|
2486
2516
|
get toolboxCategories(): Array<any>;
|
|
2487
|
-
|
|
2517
|
+
sidebar: SidebarModel;
|
|
2488
2518
|
constructor(options: ICreatorOptions, options2?: ICreatorOptions);
|
|
2489
2519
|
updateToolboxIsCompact(newVal?: boolean): void;
|
|
2490
2520
|
onSurveyElementPropertyValueChanged(property: Survey.JsonObjectProperty, obj: any, newValue: any): void;
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2521
|
+
showToolboxValue: boolean;
|
|
2522
|
+
get showToolbox(): boolean;
|
|
2523
|
+
set showToolbox(val: boolean);
|
|
2524
|
+
onShowSidebarVisiblityChanged: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2494
2525
|
/**
|
|
2495
2526
|
* Set this this property grid false to hide the property grid.
|
|
2496
2527
|
*/
|
|
2528
|
+
get showSidebar(): boolean;
|
|
2529
|
+
set showSidebar(val: boolean);
|
|
2530
|
+
onShowPropertyGridVisiblityChanged: Survey.Event<(sender: CreatorBase<T>, options: any) => any, any>;
|
|
2497
2531
|
get showPropertyGrid(): boolean;
|
|
2498
2532
|
set showPropertyGrid(val: boolean);
|
|
2499
2533
|
rightContainerActiveItem(name: string): void;
|
|
@@ -2528,6 +2562,10 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2528
2562
|
* This method stops undo/redo transaction.
|
|
2529
2563
|
*/
|
|
2530
2564
|
stopUndoRedoTransaction(): void;
|
|
2565
|
+
/**
|
|
2566
|
+
* Returns true if Creator is currently doing undo or redo opertaions
|
|
2567
|
+
*/
|
|
2568
|
+
get isProcessingUndoRedo(): boolean;
|
|
2531
2569
|
/**
|
|
2532
2570
|
* This method performs undo uperation if possible.
|
|
2533
2571
|
*/
|
|
@@ -2780,9 +2818,10 @@ export declare class CreatorBase<T extends SurveyModel = SurveyModel> extends Su
|
|
|
2780
2818
|
showPageNavigator: any;
|
|
2781
2819
|
showTabs: any;
|
|
2782
2820
|
showToolbar: any;
|
|
2821
|
+
allowCollapseSidebar: any;
|
|
2783
2822
|
isMobileView: any;
|
|
2784
|
-
toolboxLocation:
|
|
2785
|
-
|
|
2823
|
+
toolboxLocation: toolboxLocationType;
|
|
2824
|
+
sidebarLocation: "left" | "right";
|
|
2786
2825
|
selectFromStringEditor: boolean;
|
|
2787
2826
|
}
|
|
2788
2827
|
export declare class StylesManager {
|
|
@@ -2926,6 +2965,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2926
2965
|
baseClass: string;
|
|
2927
2966
|
propertyName: string;
|
|
2928
2967
|
showIf: (survey: SurveyModel) => boolean;
|
|
2968
|
+
getSelectorChoices(survey: SurveyModel, context: Question): import("survey-core").SurveyElement[];
|
|
2929
2969
|
showInUI?: undefined;
|
|
2930
2970
|
isUniqueItem?: undefined;
|
|
2931
2971
|
isInvisible?: undefined;
|
|
@@ -2933,7 +2973,21 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2933
2973
|
dependedOnPropertyName?: undefined;
|
|
2934
2974
|
questionNames?: undefined;
|
|
2935
2975
|
getDisplayText?: undefined;
|
|
2936
|
-
|
|
2976
|
+
getElementName?: undefined;
|
|
2977
|
+
getCollection?: undefined;
|
|
2978
|
+
} | {
|
|
2979
|
+
name: string;
|
|
2980
|
+
baseClass: string;
|
|
2981
|
+
propertyName: string;
|
|
2982
|
+
showIf?: undefined;
|
|
2983
|
+
showInUI?: undefined;
|
|
2984
|
+
isUniqueItem?: undefined;
|
|
2985
|
+
isInvisible?: undefined;
|
|
2986
|
+
dynamicPropertyName?: undefined;
|
|
2987
|
+
dependedOnPropertyName?: undefined;
|
|
2988
|
+
questionNames?: undefined;
|
|
2989
|
+
getDisplayText?: undefined;
|
|
2990
|
+
getElementName?: undefined;
|
|
2937
2991
|
getCollection?: undefined;
|
|
2938
2992
|
} | {
|
|
2939
2993
|
name: string;
|
|
@@ -2947,7 +3001,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2947
3001
|
dependedOnPropertyName?: undefined;
|
|
2948
3002
|
questionNames?: undefined;
|
|
2949
3003
|
getDisplayText?: undefined;
|
|
2950
|
-
|
|
3004
|
+
getElementName?: undefined;
|
|
2951
3005
|
getCollection?: undefined;
|
|
2952
3006
|
} | {
|
|
2953
3007
|
name: string;
|
|
@@ -2961,7 +3015,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2961
3015
|
dependedOnPropertyName?: undefined;
|
|
2962
3016
|
questionNames?: undefined;
|
|
2963
3017
|
getDisplayText?: undefined;
|
|
2964
|
-
|
|
3018
|
+
getElementName?: undefined;
|
|
2965
3019
|
getCollection?: undefined;
|
|
2966
3020
|
} | {
|
|
2967
3021
|
name: string;
|
|
@@ -2975,7 +3029,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2975
3029
|
showInUI?: undefined;
|
|
2976
3030
|
isUniqueItem?: undefined;
|
|
2977
3031
|
isInvisible?: undefined;
|
|
2978
|
-
|
|
3032
|
+
getElementName?: undefined;
|
|
2979
3033
|
getCollection?: undefined;
|
|
2980
3034
|
} | {
|
|
2981
3035
|
name: string;
|
|
@@ -2989,7 +3043,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2989
3043
|
isInvisible?: undefined;
|
|
2990
3044
|
dynamicPropertyName?: undefined;
|
|
2991
3045
|
dependedOnPropertyName?: undefined;
|
|
2992
|
-
|
|
3046
|
+
getElementName?: undefined;
|
|
2993
3047
|
getCollection?: undefined;
|
|
2994
3048
|
} | {
|
|
2995
3049
|
name: string;
|
|
@@ -2997,7 +3051,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
2997
3051
|
propertyName: string;
|
|
2998
3052
|
questionNames: string[];
|
|
2999
3053
|
isUniqueItem: boolean;
|
|
3000
|
-
|
|
3054
|
+
getElementName: (element: Base) => string;
|
|
3001
3055
|
showIf?: undefined;
|
|
3002
3056
|
showInUI?: undefined;
|
|
3003
3057
|
isInvisible?: undefined;
|
|
@@ -3018,7 +3072,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
3018
3072
|
dependedOnPropertyName?: undefined;
|
|
3019
3073
|
questionNames?: undefined;
|
|
3020
3074
|
getDisplayText?: undefined;
|
|
3021
|
-
|
|
3075
|
+
getElementName?: undefined;
|
|
3022
3076
|
})[];
|
|
3023
3077
|
invisibleItems: Array<SurveyLogicItem>;
|
|
3024
3078
|
onChangedCallback: (item: SurveyLogicItem, changeType: string) => void;
|
|
@@ -3183,6 +3237,7 @@ export declare class Translation extends Base implements ITranslationLocales {
|
|
|
3183
3237
|
availableTranlationsChangedCallback: () => void;
|
|
3184
3238
|
tranlationChangedCallback: (locale: string, name: string, value: string, context: any) => void;
|
|
3185
3239
|
translationStringVisibilityCallback: (obj: Base, propertyName: string, visible: boolean) => boolean;
|
|
3240
|
+
localeInitialVisibleCallback: (locale: string) => boolean;
|
|
3186
3241
|
chooseLanguageActions: Array<IAction>;
|
|
3187
3242
|
constructor(survey: SurveyModel, options?: ISurveyCreatorOptions, hasUI?: boolean);
|
|
3188
3243
|
getType(): string;
|
|
@@ -3542,15 +3597,18 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
|
3542
3597
|
}
|
|
3543
3598
|
|
|
3544
3599
|
import "./designer.scss";
|
|
3600
|
+
export declare const initialSettingsAllowShowEmptyTitleInDesignMode: boolean;
|
|
3545
3601
|
export declare class TabDesignerViewModel<T extends SurveyModel> extends Base {
|
|
3546
3602
|
newPage: PageModel;
|
|
3547
3603
|
showNewPage: boolean;
|
|
3548
3604
|
pageCount: number;
|
|
3549
3605
|
withModifier: string;
|
|
3606
|
+
showPlaceholder: boolean;
|
|
3550
3607
|
creator: CreatorBase<T>;
|
|
3551
3608
|
constructor(creator: CreatorBase<T>);
|
|
3552
3609
|
get survey(): T;
|
|
3553
3610
|
get isToolboxVisible(): boolean;
|
|
3611
|
+
get placeholderText(): string;
|
|
3554
3612
|
initSurvey(): void;
|
|
3555
3613
|
dispose(): void;
|
|
3556
3614
|
clickDesigner(): void;
|
|
@@ -3974,6 +4032,7 @@ export declare class PageViewModel<T extends SurveyModel> extends ActionContaine
|
|
|
3974
4032
|
select(model: PageViewModel<T>, event: IPortableMouseEvent): void;
|
|
3975
4033
|
get css(): string;
|
|
3976
4034
|
hover(event: MouseEvent, element: HTMLElement): void;
|
|
4035
|
+
hoverStopper(event: MouseEvent, element: HTMLElement): void;
|
|
3977
4036
|
protected duplicate(): void;
|
|
3978
4037
|
get allowEdit(): boolean;
|
|
3979
4038
|
get addNewQuestionText(): string;
|
|
@@ -4302,8 +4361,9 @@ export declare var simulatorDevices: {
|
|
|
4302
4361
|
import "./results.scss";
|
|
4303
4362
|
export declare class SurveyResultsItemModel extends Base {
|
|
4304
4363
|
collapsed: boolean;
|
|
4364
|
+
lvl: number;
|
|
4305
4365
|
items: Array<any>;
|
|
4306
|
-
constructor(_data: any);
|
|
4366
|
+
constructor(_data: any, _lvl: number);
|
|
4307
4367
|
get data(): Array<any>;
|
|
4308
4368
|
toggle: () => void;
|
|
4309
4369
|
get isNode(): boolean;
|
|
@@ -4312,6 +4372,8 @@ export declare class SurveyResultsItemModel extends Base {
|
|
|
4312
4372
|
get value(): any;
|
|
4313
4373
|
get displayValue(): string;
|
|
4314
4374
|
getString(data: any): string;
|
|
4375
|
+
get markerMargin(): string;
|
|
4376
|
+
get textMargin(): string;
|
|
4315
4377
|
}
|
|
4316
4378
|
export declare class SurveyResultsModel extends Base {
|
|
4317
4379
|
constructor(survey: Survey.SurveyModel);
|
|
@@ -4324,8 +4386,10 @@ export declare class SurveyResultsModel extends Base {
|
|
|
4324
4386
|
get resultsName(): any;
|
|
4325
4387
|
get resultsValue(): any;
|
|
4326
4388
|
get resultsDisplayValue(): any;
|
|
4327
|
-
|
|
4328
|
-
|
|
4389
|
+
get isTableSelected(): boolean;
|
|
4390
|
+
get isJsonSelected(): boolean;
|
|
4391
|
+
selectTableClick: () => void;
|
|
4392
|
+
selectJsonClick: () => void;
|
|
4329
4393
|
}
|
|
4330
4394
|
|
|
4331
4395
|
import "./logo-image.scss";
|
|
@@ -4352,6 +4416,7 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
4352
4416
|
onKeyDown(event: KeyboardEvent): boolean;
|
|
4353
4417
|
findProperty(): JsonObjectProperty;
|
|
4354
4418
|
get maxLength(): number;
|
|
4419
|
+
placeholderValue: string;
|
|
4355
4420
|
get placeholder(): string;
|
|
4356
4421
|
get contentEditable(): boolean;
|
|
4357
4422
|
className(text: any): string;
|
|
@@ -4374,8 +4439,10 @@ export declare class QuestionLinkValueModel extends Question {
|
|
|
4374
4439
|
showClear: boolean;
|
|
4375
4440
|
allowClear: boolean;
|
|
4376
4441
|
showValueInLink: boolean;
|
|
4442
|
+
showTooltip: boolean;
|
|
4377
4443
|
constructor(name: string, json?: any);
|
|
4378
4444
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
4445
|
+
get tooltip(): string;
|
|
4379
4446
|
getType(): string;
|
|
4380
4447
|
doLinkClick(): void;
|
|
4381
4448
|
doClearClick(): void;
|
|
@@ -4485,13 +4552,13 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
|
|
|
4485
4552
|
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
|
|
4486
4553
|
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
4487
4554
|
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
4488
|
-
|
|
4555
|
+
isSupportGrouping(): boolean;
|
|
4489
4556
|
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
4490
4557
|
}
|
|
4491
4558
|
export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
4492
4559
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
4493
4560
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
4494
|
-
|
|
4561
|
+
isSupportGrouping(): boolean;
|
|
4495
4562
|
}
|
|
4496
4563
|
export declare abstract class PropertyGridEditorStringBase extends PropertyGridEditor {
|
|
4497
4564
|
protected updateMaxLength(prop: JsonObjectProperty, json: any): any;
|
|
@@ -4598,7 +4665,6 @@ export declare abstract class PropertyGridEditorMatrix extends PropertyGridEdito
|
|
|
4598
4665
|
export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEditorMatrix {
|
|
4599
4666
|
fit(prop: JsonObjectProperty): boolean;
|
|
4600
4667
|
isPropertyEditorSetupEnabled(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
|
|
4601
|
-
setupMatrixQuestion(obj: Base, matrix: QuestionMatrixDynamicModel, prop: JsonObjectProperty): void;
|
|
4602
4668
|
protected getAllowRowDragDrop(): boolean;
|
|
4603
4669
|
createPropertyEditorSetup(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): IPropertyEditorSetup;
|
|
4604
4670
|
canClearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): boolean;
|
|
@@ -4724,7 +4790,7 @@ export declare abstract class PropertyGridValueEditorBase extends PropertyGridEd
|
|
|
4724
4790
|
onCreated: (obj: Base, question: Question, prop: JsonObjectProperty, options: ISurveyCreatorOptions) => void;
|
|
4725
4791
|
clearPropertyValue(obj: Base, prop: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
4726
4792
|
protected isValueEmpty(val: any): boolean;
|
|
4727
|
-
|
|
4793
|
+
isSupportGrouping(): boolean;
|
|
4728
4794
|
}
|
|
4729
4795
|
export declare class PropertyGridCellsEditor extends PropertyGridValueEditorBase {
|
|
4730
4796
|
fit(prop: JsonObjectProperty): boolean;
|
|
@@ -5143,7 +5209,7 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
5143
5209
|
canCollapseCategories: boolean;
|
|
5144
5210
|
isCompact: boolean;
|
|
5145
5211
|
constructor(supportedQuestions?: Array<string>, creator?: CreatorBase<SurveyModel>);
|
|
5146
|
-
setLocation(toolboxLocation:
|
|
5212
|
+
setLocation(toolboxLocation: toolboxLocationType): void;
|
|
5147
5213
|
/**
|
|
5148
5214
|
* The Array of Toolbox items as Text JSON.
|
|
5149
5215
|
*/
|
|
@@ -5253,36 +5319,38 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
5253
5319
|
dispose(): void;
|
|
5254
5320
|
}
|
|
5255
5321
|
|
|
5256
|
-
export declare class
|
|
5322
|
+
export declare class SidebarModel extends Base {
|
|
5257
5323
|
toolbar: AdaptiveActionContainer;
|
|
5258
|
-
tabs: Array<
|
|
5324
|
+
tabs: Array<SidebarTabModel>;
|
|
5259
5325
|
headerText: string;
|
|
5260
5326
|
visible: boolean;
|
|
5327
|
+
collapsedManually: boolean;
|
|
5328
|
+
expandedManually: boolean;
|
|
5261
5329
|
hasVisibleTabs: boolean;
|
|
5262
5330
|
flyoutMode: boolean;
|
|
5263
5331
|
activeTab: string;
|
|
5264
5332
|
get flyoutPanelMode(): boolean;
|
|
5265
5333
|
get closeText(): string;
|
|
5266
|
-
getTabById(id: string):
|
|
5334
|
+
getTabById(id: string): SidebarTabModel;
|
|
5267
5335
|
constructor(creator: CreatorBase, collapseAction?: () => void, expandAction?: () => void);
|
|
5268
5336
|
getExpandAction(): Action;
|
|
5269
|
-
|
|
5270
|
-
|
|
5271
|
-
addTab(id: string, componentName?: string, model?: any, buildActions?: () => Array<Action>):
|
|
5337
|
+
collapseSidebar(): void;
|
|
5338
|
+
expandSidebar(): void;
|
|
5339
|
+
addTab(id: string, componentName?: string, model?: any, buildActions?: () => Array<Action>): SidebarTabModel;
|
|
5272
5340
|
updateHasVisibleTabs(): void;
|
|
5273
5341
|
dispose(): void;
|
|
5274
5342
|
initResizeManager(container: HTMLDivElement): void;
|
|
5275
5343
|
resetResizeManager(): void;
|
|
5276
5344
|
}
|
|
5277
5345
|
|
|
5278
|
-
export declare class
|
|
5346
|
+
export declare class SidebarTabModel extends Base {
|
|
5279
5347
|
id: string;
|
|
5280
|
-
sidePanel:
|
|
5348
|
+
sidePanel: SidebarModel;
|
|
5281
5349
|
caption: string;
|
|
5282
5350
|
visible: boolean;
|
|
5283
5351
|
model: any;
|
|
5284
5352
|
componentName: string;
|
|
5285
|
-
constructor(id: string, sidePanel:
|
|
5353
|
+
constructor(id: string, sidePanel: SidebarModel, componentName?: string, model?: any);
|
|
5286
5354
|
}
|
|
5287
5355
|
|
|
5288
5356
|
export interface IPortableMouseEvent {
|
|
@@ -5313,6 +5381,7 @@ export declare function select(element: any): void;
|
|
|
5313
5381
|
export declare function copyObject(dst: any, src: any): void;
|
|
5314
5382
|
export declare function copyCssClasses(dest: any, source: any): void;
|
|
5315
5383
|
export declare function assignDefaultV2Classes(destination: any, questionType: string): void;
|
|
5384
|
+
export declare function wrapTextByCurlyBraces(text: string): string;
|
|
5316
5385
|
|
|
5317
5386
|
export interface ISurveyQuestionEditorDefinition {
|
|
5318
5387
|
title?: string;
|
|
@@ -5367,6 +5436,10 @@ export declare class SurveyHelper {
|
|
|
5367
5436
|
static convertItemValuesToText(items: ItemValue[]): string;
|
|
5368
5437
|
static convertTextToItemValues(text: string, properties: JsonObjectProperty[], className: string): ItemValue[];
|
|
5369
5438
|
static sortItems(items: Array<any>, propertyName?: string): void;
|
|
5439
|
+
static getQuestionContextIndexInfo(name: string, prefix?: string): {
|
|
5440
|
+
index: number;
|
|
5441
|
+
name: string;
|
|
5442
|
+
};
|
|
5370
5443
|
}
|
|
5371
5444
|
|
|
5372
5445
|
import "./notifier.scss";
|
|
@@ -5411,6 +5484,7 @@ export declare class UndoRedoManager {
|
|
|
5411
5484
|
canUndoRedoCallback(): void;
|
|
5412
5485
|
startTransaction(name: string): void;
|
|
5413
5486
|
stopTransaction(): void;
|
|
5487
|
+
get isProcessingUndoRedo(): boolean;
|
|
5414
5488
|
canUndo(): boolean;
|
|
5415
5489
|
undo(): void;
|
|
5416
5490
|
canRedo(): boolean;
|
|
@@ -5519,6 +5593,7 @@ export declare class SurveyLogicAction {
|
|
|
5519
5593
|
constructor(logicType: SurveyLogicType, element: Base, survey: SurveyModel);
|
|
5520
5594
|
get logicType(): SurveyLogicType;
|
|
5521
5595
|
get element(): Base;
|
|
5596
|
+
get parentElement(): Base;
|
|
5522
5597
|
get survey(): SurveyModel;
|
|
5523
5598
|
apply(expression: string, isRenaming?: boolean): void;
|
|
5524
5599
|
renameQuestion(oldName: string, newName: string): void;
|
|
@@ -5533,6 +5608,7 @@ export declare class SurveyLogicAction {
|
|
|
5533
5608
|
isSuitableByQuestionName(questionName: string): boolean;
|
|
5534
5609
|
isSuitableByLogicType(logicTypeName: string): boolean;
|
|
5535
5610
|
addQuestionNames(names: string[]): void;
|
|
5611
|
+
get elementName(): string;
|
|
5536
5612
|
}
|
|
5537
5613
|
export interface ISurveyLogicItemOwner {
|
|
5538
5614
|
survey: SurveyModel;
|
|
@@ -5552,8 +5628,7 @@ export declare class SurveyLogicItem {
|
|
|
5552
5628
|
get name(): string;
|
|
5553
5629
|
get survey(): SurveyModel;
|
|
5554
5630
|
getVisibleLogicTypes(): Array<SurveyLogicType>;
|
|
5555
|
-
|
|
5556
|
-
get actionsText(): string;
|
|
5631
|
+
getDisplayText(): any;
|
|
5557
5632
|
edit(): void;
|
|
5558
5633
|
remove(): void;
|
|
5559
5634
|
get isReadOnly(): boolean;
|
|
@@ -5567,9 +5642,10 @@ export declare class SurveyLogicItem {
|
|
|
5567
5642
|
removeQuestion(name: string): void;
|
|
5568
5643
|
getQuestionNames(): string[];
|
|
5569
5644
|
getActionTypes(): string[];
|
|
5570
|
-
|
|
5645
|
+
getContext(): Base;
|
|
5571
5646
|
get editText(): string;
|
|
5572
5647
|
get deleteText(): string;
|
|
5648
|
+
get ifText(): string;
|
|
5573
5649
|
isSuitable(filteredName: string, logicTypeName?: string): boolean;
|
|
5574
5650
|
}
|
|
5575
5651
|
|
|
@@ -5587,7 +5663,10 @@ export interface ISurveyLogicType {
|
|
|
5587
5663
|
isUniqueItem?: boolean;
|
|
5588
5664
|
questionNames?: Array<string>;
|
|
5589
5665
|
getDisplayText?: (element: Base, formatStr: string, lt: SurveyLogicType) => string;
|
|
5590
|
-
|
|
5666
|
+
getElementName?: (element: Base) => string;
|
|
5667
|
+
getSelectorChoices?: (survey: SurveyModel, context: Question) => Array<SurveyElement>;
|
|
5668
|
+
supportContext?: (question: Base) => boolean;
|
|
5669
|
+
getParentElement?(element: Base): Base;
|
|
5591
5670
|
}
|
|
5592
5671
|
export declare class SurveyLogicType {
|
|
5593
5672
|
survey: SurveyModel;
|
|
@@ -5611,16 +5690,53 @@ export declare class SurveyLogicType {
|
|
|
5611
5690
|
get questionNames(): Array<string>;
|
|
5612
5691
|
get displayName(): string;
|
|
5613
5692
|
get description(): string;
|
|
5693
|
+
getParentElement(element: Base): Base;
|
|
5694
|
+
get hasSelectorChoices(): boolean;
|
|
5695
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
5614
5696
|
getDisplayText(element: Base): string;
|
|
5615
5697
|
formatElName(name: string): string;
|
|
5616
5698
|
formatExpression(expression: string): string;
|
|
5699
|
+
supportContext(context: Base): boolean;
|
|
5617
5700
|
}
|
|
5618
5701
|
export declare class SurveyLogicTypes {
|
|
5702
|
+
static baseTypes: {
|
|
5703
|
+
panel: {
|
|
5704
|
+
showIf: (survey: SurveyModel) => boolean;
|
|
5705
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
5706
|
+
};
|
|
5707
|
+
question: {
|
|
5708
|
+
showIf: (survey: SurveyModel) => boolean;
|
|
5709
|
+
supportContext(context: Base): boolean;
|
|
5710
|
+
getParentElement(element: Base): Base;
|
|
5711
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
5712
|
+
};
|
|
5713
|
+
matrixdropdowncolumn: {
|
|
5714
|
+
showIf: (survey: SurveyModel) => boolean;
|
|
5715
|
+
supportContext(context: Base): boolean;
|
|
5716
|
+
getParentElement(element: Base): Base;
|
|
5717
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
5718
|
+
};
|
|
5719
|
+
};
|
|
5619
5720
|
static types: ({
|
|
5620
5721
|
name: string;
|
|
5621
5722
|
baseClass: string;
|
|
5622
5723
|
propertyName: string;
|
|
5623
5724
|
showIf: (survey: SurveyModel) => boolean;
|
|
5725
|
+
getSelectorChoices(survey: SurveyModel, context: Question): Array<SurveyElement>;
|
|
5726
|
+
showInUI?: undefined;
|
|
5727
|
+
isUniqueItem?: undefined;
|
|
5728
|
+
isInvisible?: undefined;
|
|
5729
|
+
dynamicPropertyName?: undefined;
|
|
5730
|
+
dependedOnPropertyName?: undefined;
|
|
5731
|
+
questionNames?: undefined;
|
|
5732
|
+
getDisplayText?: undefined;
|
|
5733
|
+
getElementName?: undefined;
|
|
5734
|
+
getCollection?: undefined;
|
|
5735
|
+
} | {
|
|
5736
|
+
name: string;
|
|
5737
|
+
baseClass: string;
|
|
5738
|
+
propertyName: string;
|
|
5739
|
+
showIf?: undefined;
|
|
5624
5740
|
showInUI?: undefined;
|
|
5625
5741
|
isUniqueItem?: undefined;
|
|
5626
5742
|
isInvisible?: undefined;
|
|
@@ -5628,7 +5744,7 @@ export declare class SurveyLogicTypes {
|
|
|
5628
5744
|
dependedOnPropertyName?: undefined;
|
|
5629
5745
|
questionNames?: undefined;
|
|
5630
5746
|
getDisplayText?: undefined;
|
|
5631
|
-
|
|
5747
|
+
getElementName?: undefined;
|
|
5632
5748
|
getCollection?: undefined;
|
|
5633
5749
|
} | {
|
|
5634
5750
|
name: string;
|
|
@@ -5642,7 +5758,7 @@ export declare class SurveyLogicTypes {
|
|
|
5642
5758
|
dependedOnPropertyName?: undefined;
|
|
5643
5759
|
questionNames?: undefined;
|
|
5644
5760
|
getDisplayText?: undefined;
|
|
5645
|
-
|
|
5761
|
+
getElementName?: undefined;
|
|
5646
5762
|
getCollection?: undefined;
|
|
5647
5763
|
} | {
|
|
5648
5764
|
name: string;
|
|
@@ -5656,7 +5772,7 @@ export declare class SurveyLogicTypes {
|
|
|
5656
5772
|
dependedOnPropertyName?: undefined;
|
|
5657
5773
|
questionNames?: undefined;
|
|
5658
5774
|
getDisplayText?: undefined;
|
|
5659
|
-
|
|
5775
|
+
getElementName?: undefined;
|
|
5660
5776
|
getCollection?: undefined;
|
|
5661
5777
|
} | {
|
|
5662
5778
|
name: string;
|
|
@@ -5670,7 +5786,7 @@ export declare class SurveyLogicTypes {
|
|
|
5670
5786
|
showInUI?: undefined;
|
|
5671
5787
|
isUniqueItem?: undefined;
|
|
5672
5788
|
isInvisible?: undefined;
|
|
5673
|
-
|
|
5789
|
+
getElementName?: undefined;
|
|
5674
5790
|
getCollection?: undefined;
|
|
5675
5791
|
} | {
|
|
5676
5792
|
name: string;
|
|
@@ -5684,7 +5800,7 @@ export declare class SurveyLogicTypes {
|
|
|
5684
5800
|
isInvisible?: undefined;
|
|
5685
5801
|
dynamicPropertyName?: undefined;
|
|
5686
5802
|
dependedOnPropertyName?: undefined;
|
|
5687
|
-
|
|
5803
|
+
getElementName?: undefined;
|
|
5688
5804
|
getCollection?: undefined;
|
|
5689
5805
|
} | {
|
|
5690
5806
|
name: string;
|
|
@@ -5692,7 +5808,7 @@ export declare class SurveyLogicTypes {
|
|
|
5692
5808
|
propertyName: string;
|
|
5693
5809
|
questionNames: string[];
|
|
5694
5810
|
isUniqueItem: boolean;
|
|
5695
|
-
|
|
5811
|
+
getElementName: (element: Base) => string;
|
|
5696
5812
|
showIf?: undefined;
|
|
5697
5813
|
showInUI?: undefined;
|
|
5698
5814
|
isInvisible?: undefined;
|
|
@@ -5713,7 +5829,7 @@ export declare class SurveyLogicTypes {
|
|
|
5713
5829
|
dependedOnPropertyName?: undefined;
|
|
5714
5830
|
questionNames?: undefined;
|
|
5715
5831
|
getDisplayText?: undefined;
|
|
5716
|
-
|
|
5832
|
+
getElementName?: undefined;
|
|
5717
5833
|
})[];
|
|
5718
5834
|
}
|
|
5719
5835
|
|
|
@@ -5740,6 +5856,7 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
|
|
|
5740
5856
|
static canParseExpression(text: string): boolean;
|
|
5741
5857
|
static canBuildExpression(text: string): boolean;
|
|
5742
5858
|
allConditionQuestions: Array<ItemValue>;
|
|
5859
|
+
onContextChanged: (context: Question) => void;
|
|
5743
5860
|
constructor(survey: SurveyModel, object?: Base, options?: ISurveyCreatorOptions, propertyName?: string);
|
|
5744
5861
|
get title(): string;
|
|
5745
5862
|
set title(val: string);
|
|
@@ -5750,6 +5867,8 @@ export declare class ConditionEditor extends PropertyEditorSetupValue {
|
|
|
5750
5867
|
get text(): string;
|
|
5751
5868
|
set text(val: string);
|
|
5752
5869
|
isModified(prevText: string): boolean;
|
|
5870
|
+
get context(): Question;
|
|
5871
|
+
set context(val: Question);
|
|
5753
5872
|
get survey(): SurveyModel;
|
|
5754
5873
|
get object(): Base;
|
|
5755
5874
|
get panel(): QuestionPanelDynamicModel;
|
|
@@ -5771,6 +5890,8 @@ export declare class LogicItemEditor extends PropertyEditorSetupValue {
|
|
|
5771
5890
|
get panels(): Array<PanelModel>;
|
|
5772
5891
|
getPanelByAction(action: SurveyLogicAction): PanelModel;
|
|
5773
5892
|
getActionByPanel(panel: PanelModel): SurveyLogicAction;
|
|
5893
|
+
get context(): Question;
|
|
5894
|
+
set context(val: Question);
|
|
5774
5895
|
protected getSurveyJSON(): any;
|
|
5775
5896
|
protected getSurveyCreationReason(): string;
|
|
5776
5897
|
resetModified(): void;
|
|
@@ -5894,13 +6015,13 @@ export declare abstract class PropertyGridEditor implements IPropertyGridEditor
|
|
|
5894
6015
|
showModalPropertyEditor(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, onClose?: (reason: "apply" | "cancel") => void): any;
|
|
5895
6016
|
protected onModalPropertyEditorShown(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions): void;
|
|
5896
6017
|
protected onModalPropertyEditorClosed(editor: IPropertyGridEditor, property: JsonObjectProperty, question: Question, options: ISurveyCreatorOptions, reason: "apply" | "cancel"): void;
|
|
5897
|
-
|
|
6018
|
+
isSupportGrouping(): boolean;
|
|
5898
6019
|
onUpdateQuestionCssClasses(obj: Base, options: any): void;
|
|
5899
6020
|
}
|
|
5900
6021
|
export declare class PropertyGridEditorBoolean extends PropertyGridEditor {
|
|
5901
6022
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
5902
6023
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
5903
|
-
|
|
6024
|
+
isSupportGrouping(): boolean;
|
|
5904
6025
|
}
|
|
5905
6026
|
export declare abstract class PropertyGridEditorStringBase extends PropertyGridEditor {
|
|
5906
6027
|
protected updateMaxLength(prop: JsonObjectProperty, json: any): any;
|