survey-creator-core 1.9.25 → 1.9.28
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 +57 -66
- package/survey-creator-core.d.ts +137 -69
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +1009 -660
- package/survey-creator-core.min.css +5 -5
- package/survey-creator-core.min.js +3 -3
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.
|
|
2
|
+
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.28
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
6
6
|
import { Base, JsonObjectProperty, Question, ItemValue, MatrixDropdownColumn } from "survey-core";
|
|
7
|
-
import { IAction, SurveyModel, ActionContainer, DragDropSurveyElements
|
|
8
|
-
import { Event, AdaptiveActionContainer, PageModel, IElement
|
|
9
|
-
import {
|
|
7
|
+
import { IAction, SurveyModel, Action, ActionContainer, DragDropSurveyElements } from "survey-core";
|
|
8
|
+
import { DragDropChoices, Event, AdaptiveActionContainer, PageModel, IElement } from "survey-core";
|
|
9
|
+
import { IPanel, ISurveyElement, SurveyElement, QuestionSelectBase, QuestionRowModel } from "survey-core";
|
|
10
10
|
import { LocalizableString, DragOrClickHelper, PanelModel, QuestionDropdownModel, ListModel } from "survey-core";
|
|
11
11
|
import { PopupModel, EventBase, PanelModelBase, QuestionNonValue, SurveyTemplateRendererTemplateData } from "survey-core";
|
|
12
12
|
import { ComputedUpdater, QuestionCheckboxModel, ILocalizableString, ArrayChanges, ImageItemValue } from "survey-core";
|
|
@@ -217,7 +217,13 @@ export interface ICreatorPlugin {
|
|
|
217
217
|
dispose?: any;
|
|
218
218
|
model: Base;
|
|
219
219
|
}
|
|
220
|
-
export interface
|
|
220
|
+
export interface ICreatorAction extends IAction {
|
|
221
|
+
locTitleName?: string;
|
|
222
|
+
locTooltipName?: string;
|
|
223
|
+
onUpdateTitle?: any;
|
|
224
|
+
onUpdateTooltip?: any;
|
|
225
|
+
}
|
|
226
|
+
export interface ITabbedMenuItem extends ICreatorAction {
|
|
221
227
|
componentContent: string;
|
|
222
228
|
renderTab?: any;
|
|
223
229
|
}
|
|
@@ -245,6 +251,14 @@ export declare class ConditionEditorItemsBuilder {
|
|
|
245
251
|
constructor(hasValue?: any);
|
|
246
252
|
build(text: string): Array<ConditionEditorItem>;
|
|
247
253
|
}
|
|
254
|
+
export declare class CreatorAction extends Action implements ICreatorAction {
|
|
255
|
+
constructor(item: ICreatorAction);
|
|
256
|
+
locTitleName: string;
|
|
257
|
+
locTooltipName: string;
|
|
258
|
+
onUpdateTitle: any;
|
|
259
|
+
onUpdateTooltip: any;
|
|
260
|
+
updateTitle(): void;
|
|
261
|
+
}
|
|
248
262
|
/*
|
|
249
263
|
* Base class for Survey Creator.
|
|
250
264
|
*/
|
|
@@ -394,6 +408,18 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
394
408
|
*/
|
|
395
409
|
onGetObjectDisplayName: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
396
410
|
/*
|
|
411
|
+
* This event is raised after a user has edited a text value on the design surface. This value may include HTML markup. You can handle the `onHtmlToMarkdown` event to convert the HTML markup to Markdown.
|
|
412
|
+
*
|
|
413
|
+
* The event handler accepts the following arguments:
|
|
414
|
+
*
|
|
415
|
+
* - `sender` - A Survey Creator instance that raised the event.
|
|
416
|
+
* - `options.element` - The instance of a survey element (survey, page, panel, question) that the user configures.
|
|
417
|
+
* - `options.name` - The name of a property whose value has been edited.
|
|
418
|
+
* - `options.html` - HTML content. Pass this field's value to an HTML-to-Markdown converter.
|
|
419
|
+
* - `options.text` - A text string that may contain Markdown. Assign the result of the HTML-to-Markdown conversion to this field.
|
|
420
|
+
*/
|
|
421
|
+
onHtmlToMarkdown: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
422
|
+
/*
|
|
397
423
|
* Use this event to disable user interactions with a question or panel on the design surface.
|
|
398
424
|
*
|
|
399
425
|
* The event handler accepts the following arguments:
|
|
@@ -508,8 +534,8 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
508
534
|
* <br/> options.editorOptions options that can be changed.
|
|
509
535
|
* <br/> options.editorOptions.allowAddRemoveItems a boolean property, true by default. Set it false to disable add/remove items in array properties. For example 'choices', 'columns', 'rows'.
|
|
510
536
|
* <br/> options.editorOptions.allowRemoveAllItems a boolean property, true by default. Set it false to disable remove all items in array properties. For example 'choices', 'columns', 'rows'.
|
|
511
|
-
* <br/> options.editorOptions.showTextView a boolean property, true by default. Set it false to disable "
|
|
512
|
-
* <br/> options.editorOptions.itemsEntryType a string property, 'form' by default. Set it 'fast' to show "
|
|
537
|
+
* <br/> options.editorOptions.showTextView a boolean property, true by default. Set it false to disable "Manual Entry" tab for "choices" property.
|
|
538
|
+
* <br/> options.editorOptions.itemsEntryType a string property, 'form' by default. Set it 'fast' to show "Manual Entry" tab for "choices" property by default.
|
|
513
539
|
*/
|
|
514
540
|
onSetPropertyEditorOptions: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
515
541
|
/*
|
|
@@ -667,7 +693,9 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
667
693
|
* <br/> sender the survey creator object that fires the event
|
|
668
694
|
* <br/> There are two properties in options:
|
|
669
695
|
* <br/> files the Javascript File objects array
|
|
670
|
-
* <br/> callback called on upload complete
|
|
696
|
+
* <br/> callback called on upload complete,
|
|
697
|
+
* <br/> which takes two string arguments:
|
|
698
|
+
* <br/> a status and an image link
|
|
671
699
|
*/
|
|
672
700
|
onUploadFile: Event<(sender: CreatorBase, options: any) => any, any>;
|
|
673
701
|
/*
|
|
@@ -801,13 +829,19 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
801
829
|
/*
|
|
802
830
|
* Returns the localized string by its id
|
|
803
831
|
*/
|
|
804
|
-
getLocString(str: string):
|
|
832
|
+
getLocString(str: string): string;
|
|
805
833
|
/*
|
|
806
834
|
* Set it to false to suppress an alert message about error on saving the survey into database.
|
|
807
835
|
*/
|
|
808
836
|
showErrorOnFailedSave: boolean;
|
|
809
837
|
protected onSetReadOnly(newVal: boolean): void;
|
|
810
838
|
/*
|
|
839
|
+
* Gets or sets the survey locale. The default value it is empty, this means the 'en' locale is used.
|
|
840
|
+
* You can set it to 'de' - German, 'fr' - French and so on.
|
|
841
|
+
*/
|
|
842
|
+
get locale(): string;
|
|
843
|
+
set locale(val: string);
|
|
844
|
+
/*
|
|
811
845
|
* A boolean property, false by default. Set it to true to deny editing.
|
|
812
846
|
*/
|
|
813
847
|
get readOnly(): boolean;
|
|
@@ -1113,6 +1147,13 @@ export declare class CreatorResponsivityManager {
|
|
|
1113
1147
|
process(): void;
|
|
1114
1148
|
dispose(): void;
|
|
1115
1149
|
}
|
|
1150
|
+
export declare class DescriptionMardownParser {
|
|
1151
|
+
static boldRegEx: any;
|
|
1152
|
+
static italicRegEx: any;
|
|
1153
|
+
static codeRegEx: any;
|
|
1154
|
+
static linkRegEx: any;
|
|
1155
|
+
parse(text: string): string;
|
|
1156
|
+
}
|
|
1116
1157
|
export declare class DesignTimeSurveyModel extends SurveyModel {
|
|
1117
1158
|
constructor(creator: CreatorBase, jsonObj?: any);
|
|
1118
1159
|
creator: CreatorBase;
|
|
@@ -1143,6 +1184,29 @@ export declare class EditableObject {
|
|
|
1143
1184
|
applyAll(excludedProps?: any): void;
|
|
1144
1185
|
protected createEditableObj(): Base;
|
|
1145
1186
|
}
|
|
1187
|
+
export declare class EditorLocalization {
|
|
1188
|
+
camelCaseBreaking: boolean;
|
|
1189
|
+
currentLocale: string;
|
|
1190
|
+
locales: any;
|
|
1191
|
+
peByClass: any;
|
|
1192
|
+
peHelpByClass: any;
|
|
1193
|
+
reset(): void;
|
|
1194
|
+
getString(strName: string, locale?: string): string;
|
|
1195
|
+
hasString(strName: string, locale?: string): boolean;
|
|
1196
|
+
getLocaleName(loc: string, defaultLocale?: string): string;
|
|
1197
|
+
getPropertyName(strName: string, defaultName?: string): string;
|
|
1198
|
+
getPropertyTitle(strName: string): string;
|
|
1199
|
+
getPropertyNameInEditor(typeName: string, propName: string, defaultName?: string): string;
|
|
1200
|
+
getPropertyHelpInEditor(typeName: string, propName: string, propType?: string): string;
|
|
1201
|
+
getProperty(strName: string, defaultName?: string): string;
|
|
1202
|
+
convertToCamelCase(value: string, toLowCase?: boolean): string;
|
|
1203
|
+
getPropertyValueInEditor(propName: string, value: any): string;
|
|
1204
|
+
getPropertyValue(value: any, locale?: string): string;
|
|
1205
|
+
getValidatorName(name: string, locale?: string): string;
|
|
1206
|
+
getTriggerName(name: string, locale?: string): string;
|
|
1207
|
+
getLocale(locale?: string): any;
|
|
1208
|
+
getLocales(): Array<any>;
|
|
1209
|
+
}
|
|
1146
1210
|
export declare class EmbedModel extends Base {
|
|
1147
1211
|
constructor(creator: CreatorBase);
|
|
1148
1212
|
survey: SurveyModel;
|
|
@@ -1183,8 +1247,8 @@ export declare class ItemValueWrapperViewModel extends Base {
|
|
|
1183
1247
|
add(model: ItemValueWrapperViewModel): void;
|
|
1184
1248
|
remove(model: ItemValueWrapperViewModel): void;
|
|
1185
1249
|
get allowRemove(): boolean;
|
|
1186
|
-
get tooltip():
|
|
1187
|
-
get dragTooltip():
|
|
1250
|
+
get tooltip(): string;
|
|
1251
|
+
get dragTooltip(): string;
|
|
1188
1252
|
get allowAdd(): boolean;
|
|
1189
1253
|
select(model: ItemValueWrapperViewModel, event: any): void;
|
|
1190
1254
|
}
|
|
@@ -1225,7 +1289,7 @@ export declare class LogoImageViewModel extends Base {
|
|
|
1225
1289
|
get survey(): SurveyModel;
|
|
1226
1290
|
chooseFile(model: LogoImageViewModel): void;
|
|
1227
1291
|
remove(model: LogoImageViewModel): void;
|
|
1228
|
-
get chooseLogoPlaceholder():
|
|
1292
|
+
get chooseLogoPlaceholder(): string;
|
|
1229
1293
|
}
|
|
1230
1294
|
export declare class MatrixCellWrapperViewModel extends Base {
|
|
1231
1295
|
constructor(creator: CreatorBase, templateData: any, question: Question, row: any, column: any);
|
|
@@ -1293,7 +1357,7 @@ export declare class PageNavigatorViewModel extends Base {
|
|
|
1293
1357
|
isPopupOpened: boolean;
|
|
1294
1358
|
protected createActionBarCore(item: IAction): Action;
|
|
1295
1359
|
togglePageSelector: any;
|
|
1296
|
-
get pageSelectorCaption():
|
|
1360
|
+
get pageSelectorCaption(): string;
|
|
1297
1361
|
onContainerScroll(viewPort: any): any;
|
|
1298
1362
|
currentPage: PageModel;
|
|
1299
1363
|
}
|
|
@@ -1315,14 +1379,6 @@ export declare class PagesController extends Base {
|
|
|
1315
1379
|
onSurveyChanged(): void;
|
|
1316
1380
|
dispose(): void;
|
|
1317
1381
|
}
|
|
1318
|
-
export declare class PropertiesHelpTexts {
|
|
1319
|
-
constructor();
|
|
1320
|
-
static instanceValue: PropertiesHelpTexts;
|
|
1321
|
-
static get instance(): PropertiesHelpTexts;
|
|
1322
|
-
locsCache: any;
|
|
1323
|
-
reset(): void;
|
|
1324
|
-
getHelpText(obj: Base, prop: JsonObjectProperty): string;
|
|
1325
|
-
}
|
|
1326
1382
|
export declare class PropertyGridModel {
|
|
1327
1383
|
constructor(obj?: Base, options?: ISurveyCreatorOptions);
|
|
1328
1384
|
surveyValue: SurveyModel;
|
|
@@ -1413,6 +1469,7 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
1413
1469
|
constructor(supportedQuestions?: any, creator?: CreatorBase);
|
|
1414
1470
|
creator: CreatorBase;
|
|
1415
1471
|
static hiddenTypes: any;
|
|
1472
|
+
static defaultIconName: string;
|
|
1416
1473
|
_orderedQuestions: any;
|
|
1417
1474
|
static getQuestionDefaultSettings(questionType: string): any;
|
|
1418
1475
|
static _questionDefaultSettings: any;
|
|
@@ -1506,6 +1563,7 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
1506
1563
|
*/
|
|
1507
1564
|
get keepAllCategoriesExpanded(): boolean;
|
|
1508
1565
|
set keepAllCategoriesExpanded(val: boolean);
|
|
1566
|
+
updateTitles(): void;
|
|
1509
1567
|
/*
|
|
1510
1568
|
* Change the category of the toolbox item
|
|
1511
1569
|
*/
|
|
@@ -1636,6 +1694,7 @@ export declare class StringEditorViewModelBase extends Base {
|
|
|
1636
1694
|
valueBeforeEdit: string;
|
|
1637
1695
|
errorText: string;
|
|
1638
1696
|
focused: boolean;
|
|
1697
|
+
editAsText: boolean;
|
|
1639
1698
|
setLocString(locString: LocalizableString): void;
|
|
1640
1699
|
checkConstraints(event: any): void;
|
|
1641
1700
|
blurEditor: any;
|
|
@@ -1777,7 +1836,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
1777
1836
|
*/
|
|
1778
1837
|
get mode(): string;
|
|
1779
1838
|
set mode(val: string);
|
|
1780
|
-
getLocString(name: string):
|
|
1839
|
+
getLocString(name: string): string;
|
|
1781
1840
|
getTypeByName(name: string): SurveyLogicType;
|
|
1782
1841
|
update(survey?: SurveyModel, options?: ISurveyCreatorOptions): void;
|
|
1783
1842
|
get optionsReadOnly(): boolean;
|
|
@@ -1827,7 +1886,7 @@ export declare class SurveyLogicAction {
|
|
|
1827
1886
|
get logicTypeDescription(): string;
|
|
1828
1887
|
get text(): string;
|
|
1829
1888
|
get deleteActionText(): string;
|
|
1830
|
-
getLocString(name: string):
|
|
1889
|
+
getLocString(name: string): string;
|
|
1831
1890
|
isSuitableByQuestionName(questionName: string): boolean;
|
|
1832
1891
|
isSuitableByLogicType(logicTypeName: string): boolean;
|
|
1833
1892
|
addQuestionNames(names: any): void;
|
|
@@ -1847,7 +1906,7 @@ export declare class SurveyLogicItem {
|
|
|
1847
1906
|
get name(): string;
|
|
1848
1907
|
get survey(): SurveyModel;
|
|
1849
1908
|
getVisibleLogicTypes(): Array<SurveyLogicType>;
|
|
1850
|
-
get expressionText():
|
|
1909
|
+
get expressionText(): string;
|
|
1851
1910
|
get actionsText(): any;
|
|
1852
1911
|
getDisplayText(): any;
|
|
1853
1912
|
edit(): void;
|
|
@@ -1958,12 +2017,12 @@ export declare class SurveyResultsModel extends Base {
|
|
|
1958
2017
|
resultViewType: string;
|
|
1959
2018
|
resultText: string;
|
|
1960
2019
|
resultData: any;
|
|
1961
|
-
getLocString(name: string):
|
|
1962
|
-
get surveyResultsText():
|
|
1963
|
-
get resultsTitle():
|
|
1964
|
-
get resultsName():
|
|
1965
|
-
get resultsValue():
|
|
1966
|
-
get resultsDisplayValue():
|
|
2020
|
+
getLocString(name: string): string;
|
|
2021
|
+
get surveyResultsText(): string;
|
|
2022
|
+
get resultsTitle(): string;
|
|
2023
|
+
get resultsName(): string;
|
|
2024
|
+
get resultsValue(): string;
|
|
2025
|
+
get resultsDisplayValue(): string;
|
|
1967
2026
|
get isTableSelected(): boolean;
|
|
1968
2027
|
get isJsonSelected(): boolean;
|
|
1969
2028
|
selectTableClick: any;
|
|
@@ -1978,6 +2037,14 @@ export declare class SurveySimulatorModel extends Base {
|
|
|
1978
2037
|
considerDPI: boolean;
|
|
1979
2038
|
simulatorEnabled: boolean;
|
|
1980
2039
|
simulatorScaleEnabled: boolean;
|
|
2040
|
+
currZoomScale: number;
|
|
2041
|
+
get zoomScale(): number;
|
|
2042
|
+
activateZoom: any;
|
|
2043
|
+
deactivateZoom: any;
|
|
2044
|
+
listenTryToZoomWithWheel: any;
|
|
2045
|
+
listenTryToZoom: any;
|
|
2046
|
+
tryToZoom(data: any, event: any): boolean;
|
|
2047
|
+
resetZoomParameters(): void;
|
|
1981
2048
|
get activeDevice(): string;
|
|
1982
2049
|
set activeDevice(val: string);
|
|
1983
2050
|
get landscapeOrientation(): boolean;
|
|
@@ -2022,11 +2089,6 @@ export declare class TabDesignerViewModel extends Base {
|
|
|
2022
2089
|
export declare class TabbedMenuContainer extends AdaptiveActionContainer<TabbedMenuItem> {
|
|
2023
2090
|
constructor();
|
|
2024
2091
|
}
|
|
2025
|
-
export declare class TabbedMenuItem extends Action implements ITabbedMenuItem {
|
|
2026
|
-
constructor(item: ITabbedMenuItem);
|
|
2027
|
-
componentContent: string;
|
|
2028
|
-
renderTab: any;
|
|
2029
|
-
}
|
|
2030
2092
|
export declare class TestSurveyTabViewModel extends Base {
|
|
2031
2093
|
constructor(surveyProvider: CreatorBase, startTheme?: any);
|
|
2032
2094
|
json: any;
|
|
@@ -2304,6 +2366,7 @@ export declare class PageAdorner extends SurveyElementAdornerBase<PageModel> {
|
|
|
2304
2366
|
hoverStopper(event: any, element: any): void;
|
|
2305
2367
|
protected duplicate(): void;
|
|
2306
2368
|
get allowEdit(): boolean;
|
|
2369
|
+
get showAddQuestionButton(): boolean;
|
|
2307
2370
|
get addNewQuestionText(): string;
|
|
2308
2371
|
}
|
|
2309
2372
|
export declare class PropertyEditorSetupValue implements IPropertyEditorSetup {
|
|
@@ -2351,6 +2414,7 @@ export declare class QuestionAdornerViewModel extends SurveyElementAdornerBase {
|
|
|
2351
2414
|
onPointerDown(pointerDownEvent: any): void;
|
|
2352
2415
|
startDragSurveyElement: any;
|
|
2353
2416
|
get allowEdit(): boolean;
|
|
2417
|
+
get showAddQuestionButton(): boolean;
|
|
2354
2418
|
getConvertToTypesActions(): Array<IAction>;
|
|
2355
2419
|
protected buildActions(items: any): void;
|
|
2356
2420
|
protected duplicate(): void;
|
|
@@ -2437,11 +2501,9 @@ export declare class TabJsonEditorBasePlugin implements ICreatorPlugin {
|
|
|
2437
2501
|
}
|
|
2438
2502
|
export declare class TabLogicPlugin implements ICreatorPlugin {
|
|
2439
2503
|
constructor(creator: CreatorBase);
|
|
2440
|
-
filterQuestionAction:
|
|
2441
|
-
filterActionTypeAction:
|
|
2442
|
-
fastEntryAction:
|
|
2443
|
-
showAllQuestionsText: any;
|
|
2444
|
-
showAllActionTypesText: any;
|
|
2504
|
+
filterQuestionAction: CreatorAction;
|
|
2505
|
+
filterActionTypeAction: CreatorAction;
|
|
2506
|
+
fastEntryAction: CreatorAction;
|
|
2445
2507
|
model: SurveyLogicUI;
|
|
2446
2508
|
activate(): void;
|
|
2447
2509
|
update(): void;
|
|
@@ -2487,7 +2549,7 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
|
2487
2549
|
activate(): void;
|
|
2488
2550
|
update(): void;
|
|
2489
2551
|
deactivate(): boolean;
|
|
2490
|
-
get selectLanguageOptionsCaption():
|
|
2552
|
+
get selectLanguageOptionsCaption(): string;
|
|
2491
2553
|
get showAllStringsText(): string;
|
|
2492
2554
|
get showUsedStringsOnlyText(): string;
|
|
2493
2555
|
get showAllPagesText(): string;
|
|
@@ -2495,6 +2557,11 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
|
2495
2557
|
get importFromCSVText(): string;
|
|
2496
2558
|
createActions(): any;
|
|
2497
2559
|
}
|
|
2560
|
+
export declare class TabbedMenuItem extends CreatorAction implements ITabbedMenuItem {
|
|
2561
|
+
constructor(item: ITabbedMenuItem);
|
|
2562
|
+
componentContent: string;
|
|
2563
|
+
renderTab: any;
|
|
2564
|
+
}
|
|
2498
2565
|
export declare class TextareaJsonEditorModel extends JsonEditorBaseModel {
|
|
2499
2566
|
constructor(creator: CreatorBase);
|
|
2500
2567
|
protected _text: string;
|
|
@@ -2529,7 +2596,7 @@ export declare class TranslationGroup extends TranslationItemBase {
|
|
|
2529
2596
|
get groups(): any;
|
|
2530
2597
|
get isGroup(): boolean;
|
|
2531
2598
|
get locales(): any;
|
|
2532
|
-
get removeLocaleText():
|
|
2599
|
+
get removeLocaleText(): string;
|
|
2533
2600
|
get localeCount(): number;
|
|
2534
2601
|
get locWidth(): string;
|
|
2535
2602
|
getLocaleName(loc: string): string;
|
|
@@ -2738,7 +2805,7 @@ export declare class PropertyGridEditorMatrix extends PropertyGridEditor {
|
|
|
2738
2805
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
2739
2806
|
protected getMatrixJSON(obj: Base, prop: JsonObjectProperty, propNames: any, options: ISurveyCreatorOptions): any;
|
|
2740
2807
|
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
2741
|
-
protected getEmptyRowsText(props: any):
|
|
2808
|
+
protected getEmptyRowsText(props: any): string;
|
|
2742
2809
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
2743
2810
|
protected getColumnsJSON(obj: Base, prop: JsonObjectProperty, propNames: any, options: ISurveyCreatorOptions): any;
|
|
2744
2811
|
protected getEditItemAsStandAlone(): boolean;
|
|
@@ -2786,8 +2853,8 @@ export declare class QuestionRatingAdornerViewModel extends QuestionAdornerViewM
|
|
|
2786
2853
|
removeItem(model: QuestionRatingAdornerViewModel): void;
|
|
2787
2854
|
get allowAdd(): boolean;
|
|
2788
2855
|
get allowRemove(): boolean;
|
|
2789
|
-
get addTooltip():
|
|
2790
|
-
get removeTooltip():
|
|
2856
|
+
get addTooltip(): string;
|
|
2857
|
+
get removeTooltip(): string;
|
|
2791
2858
|
}
|
|
2792
2859
|
export declare class TabJsonEditorAcePlugin extends TabJsonEditorBasePlugin implements ICreatorPlugin {
|
|
2793
2860
|
constructor(creator: CreatorBase);
|
|
@@ -2871,7 +2938,7 @@ export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEdit
|
|
|
2871
2938
|
protected getDefaulColumnNames(): Array<any>;
|
|
2872
2939
|
protected getKeyValue(): string;
|
|
2873
2940
|
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
2874
|
-
protected getEmptyRowsText(prop: any):
|
|
2941
|
+
protected getEmptyRowsText(prop: any): string;
|
|
2875
2942
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
2876
2943
|
}
|
|
2877
2944
|
export declare class PropertyGridEditorMatrixMultipleTypes extends PropertyGridEditorMatrix {
|
|
@@ -3006,7 +3073,7 @@ export declare class PropertyGridTriggerValueInLogicEditor extends PropertyGridT
|
|
|
3006
3073
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
3007
3074
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
3008
3075
|
}
|
|
3009
|
-
export declare function getLocString(strName: string, locale?: string):
|
|
3076
|
+
export declare function getLocString(strName: string, locale?: string): string;
|
|
3010
3077
|
export declare function getNextValue(prefix: string, values: any): string | number;
|
|
3011
3078
|
export declare function findParentNode(className: string, sourceNode: any): any;
|
|
3012
3079
|
export declare function focusFirstControl(renderedElements: any): void;
|
|
@@ -3021,38 +3088,20 @@ export declare function copyObject(dst: any, src: any): void;
|
|
|
3021
3088
|
export declare function copyCssClasses(dest: any, source: any): void;
|
|
3022
3089
|
export declare function assignDefaultV2Classes(destination: any, questionType: string): void;
|
|
3023
3090
|
export declare function wrapTextByCurlyBraces(text: string): string;
|
|
3024
|
-
export declare function getLogicString(name: string):
|
|
3091
|
+
export declare function getLogicString(name: string): string;
|
|
3092
|
+
export declare function parsePropertyDescription(text: string): string;
|
|
3093
|
+
export declare function setSurveyJSONForPropertyGrid(json: any, updateOnTyping?: boolean, titleLocationLeft?: boolean): void;
|
|
3025
3094
|
export declare function findAction(actions: any, id: string): IAction;
|
|
3026
3095
|
export declare function updateMatrixLogicExpandAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
|
|
3027
3096
|
export declare function updateMatrixLogicRemoveAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
|
|
3028
3097
|
export declare function updateMatrixRemoveAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
|
|
3029
|
-
export declare function setSurveyJSONForPropertyGrid(json: any, updateOnTyping?: boolean, titleLocationLeft?: boolean): void;
|
|
3030
3098
|
export declare function getElementWrapperComponentName(element: any, reason: string, isPopupEditorContent: boolean): string;
|
|
3031
3099
|
export declare function getQuestionContentWrapperComponentName(element: any): string;
|
|
3032
3100
|
export declare function getElementWrapperComponentData(element: any, reason: string, creator: CreatorBase): any;
|
|
3033
3101
|
export declare function getItemValueWrapperComponentName(item: ItemValue, question: QuestionSelectBase): string;
|
|
3034
3102
|
export declare function getItemValueWrapperComponentData(item: ItemValue, question: QuestionSelectBase, creator: CreatorBase): any;
|
|
3035
3103
|
export declare function isStringEditable(element: any, name: string): boolean;
|
|
3036
|
-
export declare var editorLocalization:
|
|
3037
|
-
camelCaseBreaking: boolean,
|
|
3038
|
-
currentLocale: string,
|
|
3039
|
-
locales: any,
|
|
3040
|
-
getString: any,
|
|
3041
|
-
hasString: any,
|
|
3042
|
-
getLocaleName: any,
|
|
3043
|
-
getPropertyName: any,
|
|
3044
|
-
getPropertyTitle: any,
|
|
3045
|
-
getPropertyNameInEditor: any,
|
|
3046
|
-
getProperty: any,
|
|
3047
|
-
convertToCamelCase: any,
|
|
3048
|
-
getAutoPropertyName: any,
|
|
3049
|
-
getPropertyValue: any,
|
|
3050
|
-
getValidatorName: any,
|
|
3051
|
-
getTriggerName: any,
|
|
3052
|
-
getLocale: any,
|
|
3053
|
-
getValueInternal: any,
|
|
3054
|
-
getLocales: any,
|
|
3055
|
-
};
|
|
3104
|
+
export declare var editorLocalization: EditorLocalization;
|
|
3056
3105
|
export declare var defaultStrings: any;
|
|
3057
3106
|
export declare var settings: {
|
|
3058
3107
|
translation: {
|
|
@@ -3078,6 +3127,16 @@ export declare var settings: {
|
|
|
3078
3127
|
lessorequal: any,
|
|
3079
3128
|
},
|
|
3080
3129
|
defaultNewSurveyJSON: any,
|
|
3130
|
+
designer: {
|
|
3131
|
+
/*
|
|
3132
|
+
* The default question type on clicking Add Question button.
|
|
3133
|
+
*/
|
|
3134
|
+
defaultAddQuestionType: string,
|
|
3135
|
+
/*
|
|
3136
|
+
* Set this property to false, to hide "Add Question" button on designer surface
|
|
3137
|
+
*/
|
|
3138
|
+
showAddQuestionButton: boolean,
|
|
3139
|
+
},
|
|
3081
3140
|
logic: {
|
|
3082
3141
|
visibleActions: any,
|
|
3083
3142
|
logicItemTitleMaxChars: number,
|
|
@@ -3431,6 +3490,14 @@ export declare var propertyGridCss: {
|
|
|
3431
3490
|
buttonCollapsed: string,
|
|
3432
3491
|
},
|
|
3433
3492
|
},
|
|
3493
|
+
actionBar: {
|
|
3494
|
+
root: string,
|
|
3495
|
+
item: string,
|
|
3496
|
+
itemPressed: string,
|
|
3497
|
+
itemAsIcon: string,
|
|
3498
|
+
itemIcon: string,
|
|
3499
|
+
itemTitle: string,
|
|
3500
|
+
},
|
|
3434
3501
|
};
|
|
3435
3502
|
export declare var json: {
|
|
3436
3503
|
name: string,
|
|
@@ -4246,6 +4313,7 @@ export declare var logicCss: {
|
|
|
4246
4313
|
embeddedsurvey: {
|
|
4247
4314
|
mainRoot: string,
|
|
4248
4315
|
},
|
|
4316
|
+
actionBar: any,
|
|
4249
4317
|
};
|
|
4250
4318
|
export declare var initialSettingsAllowShowEmptyTitleInDesignMode: boolean;
|
|
4251
4319
|
export declare var editableStringRendererName: any;
|