survey-creator-core 1.9.23 → 1.9.26
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 +83 -77
- package/survey-creator-core.d.ts +80 -57
- package/survey-creator-core.i18n.js +268 -141
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +413 -228
- package/survey-creator-core.min.css +6 -6
- package/survey-creator-core.min.js +2 -2
package/survey-creator-core.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.
|
|
2
|
+
* Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.26
|
|
3
3
|
* Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
|
|
4
4
|
* License: https://surveyjs.io/Licenses#SurveyCreator
|
|
5
5
|
*/
|
|
@@ -801,7 +801,7 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
|
|
|
801
801
|
/*
|
|
802
802
|
* Returns the localized string by its id
|
|
803
803
|
*/
|
|
804
|
-
getLocString(str: string):
|
|
804
|
+
getLocString(str: string): string;
|
|
805
805
|
/*
|
|
806
806
|
* Set it to false to suppress an alert message about error on saving the survey into database.
|
|
807
807
|
*/
|
|
@@ -1113,6 +1113,13 @@ export declare class CreatorResponsivityManager {
|
|
|
1113
1113
|
process(): void;
|
|
1114
1114
|
dispose(): void;
|
|
1115
1115
|
}
|
|
1116
|
+
export declare class DescriptionMardownParser {
|
|
1117
|
+
static boldRegEx: any;
|
|
1118
|
+
static italicRegEx: any;
|
|
1119
|
+
static codeRegEx: any;
|
|
1120
|
+
static linkRegEx: any;
|
|
1121
|
+
parse(text: string): string;
|
|
1122
|
+
}
|
|
1116
1123
|
export declare class DesignTimeSurveyModel extends SurveyModel {
|
|
1117
1124
|
constructor(creator: CreatorBase, jsonObj?: any);
|
|
1118
1125
|
creator: CreatorBase;
|
|
@@ -1143,6 +1150,29 @@ export declare class EditableObject {
|
|
|
1143
1150
|
applyAll(excludedProps?: any): void;
|
|
1144
1151
|
protected createEditableObj(): Base;
|
|
1145
1152
|
}
|
|
1153
|
+
export declare class EditorLocalization {
|
|
1154
|
+
camelCaseBreaking: boolean;
|
|
1155
|
+
currentLocale: string;
|
|
1156
|
+
locales: any;
|
|
1157
|
+
peByClass: any;
|
|
1158
|
+
peHelpByClass: any;
|
|
1159
|
+
reset(): void;
|
|
1160
|
+
getString(strName: string, locale?: string): string;
|
|
1161
|
+
hasString(strName: string, locale?: string): boolean;
|
|
1162
|
+
getLocaleName(loc: string, defaultLocale?: string): string;
|
|
1163
|
+
getPropertyName(strName: string, defaultName?: string): string;
|
|
1164
|
+
getPropertyTitle(strName: string): string;
|
|
1165
|
+
getPropertyNameInEditor(typeName: string, propName: string, defaultName?: string): string;
|
|
1166
|
+
getPropertyHelpInEditor(typeName: string, propName: string, propType?: string): string;
|
|
1167
|
+
getProperty(strName: string, defaultName?: string): string;
|
|
1168
|
+
convertToCamelCase(value: string, toLowCase?: boolean): string;
|
|
1169
|
+
getPropertyValueInEditor(propName: string, value: any): string;
|
|
1170
|
+
getPropertyValue(value: any, locale?: string): string;
|
|
1171
|
+
getValidatorName(name: string, locale?: string): string;
|
|
1172
|
+
getTriggerName(name: string, locale?: string): string;
|
|
1173
|
+
getLocale(locale?: string): any;
|
|
1174
|
+
getLocales(): Array<any>;
|
|
1175
|
+
}
|
|
1146
1176
|
export declare class EmbedModel extends Base {
|
|
1147
1177
|
constructor(creator: CreatorBase);
|
|
1148
1178
|
survey: SurveyModel;
|
|
@@ -1183,8 +1213,8 @@ export declare class ItemValueWrapperViewModel extends Base {
|
|
|
1183
1213
|
add(model: ItemValueWrapperViewModel): void;
|
|
1184
1214
|
remove(model: ItemValueWrapperViewModel): void;
|
|
1185
1215
|
get allowRemove(): boolean;
|
|
1186
|
-
get tooltip():
|
|
1187
|
-
get dragTooltip():
|
|
1216
|
+
get tooltip(): string;
|
|
1217
|
+
get dragTooltip(): string;
|
|
1188
1218
|
get allowAdd(): boolean;
|
|
1189
1219
|
select(model: ItemValueWrapperViewModel, event: any): void;
|
|
1190
1220
|
}
|
|
@@ -1225,7 +1255,7 @@ export declare class LogoImageViewModel extends Base {
|
|
|
1225
1255
|
get survey(): SurveyModel;
|
|
1226
1256
|
chooseFile(model: LogoImageViewModel): void;
|
|
1227
1257
|
remove(model: LogoImageViewModel): void;
|
|
1228
|
-
get chooseLogoPlaceholder():
|
|
1258
|
+
get chooseLogoPlaceholder(): string;
|
|
1229
1259
|
}
|
|
1230
1260
|
export declare class MatrixCellWrapperViewModel extends Base {
|
|
1231
1261
|
constructor(creator: CreatorBase, templateData: any, question: Question, row: any, column: any);
|
|
@@ -1293,7 +1323,7 @@ export declare class PageNavigatorViewModel extends Base {
|
|
|
1293
1323
|
isPopupOpened: boolean;
|
|
1294
1324
|
protected createActionBarCore(item: IAction): Action;
|
|
1295
1325
|
togglePageSelector: any;
|
|
1296
|
-
get pageSelectorCaption():
|
|
1326
|
+
get pageSelectorCaption(): string;
|
|
1297
1327
|
onContainerScroll(viewPort: any): any;
|
|
1298
1328
|
currentPage: PageModel;
|
|
1299
1329
|
}
|
|
@@ -1315,14 +1345,6 @@ export declare class PagesController extends Base {
|
|
|
1315
1345
|
onSurveyChanged(): void;
|
|
1316
1346
|
dispose(): void;
|
|
1317
1347
|
}
|
|
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
1348
|
export declare class PropertyGridModel {
|
|
1327
1349
|
constructor(obj?: Base, options?: ISurveyCreatorOptions);
|
|
1328
1350
|
surveyValue: SurveyModel;
|
|
@@ -1414,7 +1436,8 @@ export declare class QuestionToolbox extends AdaptiveActionContainer<QuestionToo
|
|
|
1414
1436
|
creator: CreatorBase;
|
|
1415
1437
|
static hiddenTypes: any;
|
|
1416
1438
|
_orderedQuestions: any;
|
|
1417
|
-
|
|
1439
|
+
static getQuestionDefaultSettings(questionType: string): any;
|
|
1440
|
+
static _questionDefaultSettings: any;
|
|
1418
1441
|
/*
|
|
1419
1442
|
* Modify this array to change the toolbox items order.
|
|
1420
1443
|
*/
|
|
@@ -1776,7 +1799,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
1776
1799
|
*/
|
|
1777
1800
|
get mode(): string;
|
|
1778
1801
|
set mode(val: string);
|
|
1779
|
-
getLocString(name: string):
|
|
1802
|
+
getLocString(name: string): string;
|
|
1780
1803
|
getTypeByName(name: string): SurveyLogicType;
|
|
1781
1804
|
update(survey?: SurveyModel, options?: ISurveyCreatorOptions): void;
|
|
1782
1805
|
get optionsReadOnly(): boolean;
|
|
@@ -1826,7 +1849,7 @@ export declare class SurveyLogicAction {
|
|
|
1826
1849
|
get logicTypeDescription(): string;
|
|
1827
1850
|
get text(): string;
|
|
1828
1851
|
get deleteActionText(): string;
|
|
1829
|
-
getLocString(name: string):
|
|
1852
|
+
getLocString(name: string): string;
|
|
1830
1853
|
isSuitableByQuestionName(questionName: string): boolean;
|
|
1831
1854
|
isSuitableByLogicType(logicTypeName: string): boolean;
|
|
1832
1855
|
addQuestionNames(names: any): void;
|
|
@@ -1846,7 +1869,7 @@ export declare class SurveyLogicItem {
|
|
|
1846
1869
|
get name(): string;
|
|
1847
1870
|
get survey(): SurveyModel;
|
|
1848
1871
|
getVisibleLogicTypes(): Array<SurveyLogicType>;
|
|
1849
|
-
get expressionText():
|
|
1872
|
+
get expressionText(): string;
|
|
1850
1873
|
get actionsText(): any;
|
|
1851
1874
|
getDisplayText(): any;
|
|
1852
1875
|
edit(): void;
|
|
@@ -1957,12 +1980,12 @@ export declare class SurveyResultsModel extends Base {
|
|
|
1957
1980
|
resultViewType: string;
|
|
1958
1981
|
resultText: string;
|
|
1959
1982
|
resultData: any;
|
|
1960
|
-
getLocString(name: string):
|
|
1961
|
-
get surveyResultsText():
|
|
1962
|
-
get resultsTitle():
|
|
1963
|
-
get resultsName():
|
|
1964
|
-
get resultsValue():
|
|
1965
|
-
get resultsDisplayValue():
|
|
1983
|
+
getLocString(name: string): string;
|
|
1984
|
+
get surveyResultsText(): string;
|
|
1985
|
+
get resultsTitle(): string;
|
|
1986
|
+
get resultsName(): string;
|
|
1987
|
+
get resultsValue(): string;
|
|
1988
|
+
get resultsDisplayValue(): string;
|
|
1966
1989
|
get isTableSelected(): boolean;
|
|
1967
1990
|
get isJsonSelected(): boolean;
|
|
1968
1991
|
selectTableClick: any;
|
|
@@ -2027,7 +2050,7 @@ export declare class TabbedMenuItem extends Action implements ITabbedMenuItem {
|
|
|
2027
2050
|
renderTab: any;
|
|
2028
2051
|
}
|
|
2029
2052
|
export declare class TestSurveyTabViewModel extends Base {
|
|
2030
|
-
constructor(surveyProvider: CreatorBase);
|
|
2053
|
+
constructor(surveyProvider: CreatorBase, startTheme?: any);
|
|
2031
2054
|
json: any;
|
|
2032
2055
|
pages: any;
|
|
2033
2056
|
prevPageAction: Action;
|
|
@@ -2047,11 +2070,14 @@ export declare class TestSurveyTabViewModel extends Base {
|
|
|
2047
2070
|
get survey(): SurveyModel;
|
|
2048
2071
|
get pageActions(): any;
|
|
2049
2072
|
get isPageToolbarVisible(): boolean;
|
|
2050
|
-
|
|
2073
|
+
updateSimulatorSurvey(json: any, theme: any): void;
|
|
2074
|
+
setJSON(json: any, currTheme: any): void;
|
|
2051
2075
|
initialize(json: any, options: any): void;
|
|
2052
2076
|
show(): void;
|
|
2053
2077
|
testAgain(): void;
|
|
2054
2078
|
buildActions(): void;
|
|
2079
|
+
setTheme(themeName: string, themeMapper: any): void;
|
|
2080
|
+
getCurrThemeTitle(themeMapper: any): string;
|
|
2055
2081
|
protected onPropertyValueChanged(name: string, oldValue: any, newValue: any): void;
|
|
2056
2082
|
}
|
|
2057
2083
|
export declare class ToolbarActionContainer extends ActionContainer {
|
|
@@ -2436,8 +2462,8 @@ export declare class TabLogicPlugin implements ICreatorPlugin {
|
|
|
2436
2462
|
filterQuestionAction: Action;
|
|
2437
2463
|
filterActionTypeAction: Action;
|
|
2438
2464
|
fastEntryAction: Action;
|
|
2439
|
-
showAllQuestionsText:
|
|
2440
|
-
showAllActionTypesText:
|
|
2465
|
+
showAllQuestionsText: string;
|
|
2466
|
+
showAllActionTypesText: string;
|
|
2441
2467
|
model: SurveyLogicUI;
|
|
2442
2468
|
activate(): void;
|
|
2443
2469
|
update(): void;
|
|
@@ -2449,6 +2475,9 @@ export declare class TabTestPlugin implements ICreatorPlugin {
|
|
|
2449
2475
|
languageSelectorAction: Action;
|
|
2450
2476
|
languagePopupModel: any;
|
|
2451
2477
|
languageListModel: ListModel;
|
|
2478
|
+
changeThemePopupModel: any;
|
|
2479
|
+
changeThemeModel: ListModel;
|
|
2480
|
+
changeThemeAction: Action;
|
|
2452
2481
|
deviceSelectorAction: Action;
|
|
2453
2482
|
deviceListModel: ListModel;
|
|
2454
2483
|
orientationSelectorAction: Action;
|
|
@@ -2457,6 +2486,7 @@ export declare class TabTestPlugin implements ICreatorPlugin {
|
|
|
2457
2486
|
designerAction: Action;
|
|
2458
2487
|
prevPageAction: Action;
|
|
2459
2488
|
nextPageAction: Action;
|
|
2489
|
+
simulatorTheme: any;
|
|
2460
2490
|
model: TestSurveyTabViewModel;
|
|
2461
2491
|
activate(): void;
|
|
2462
2492
|
update(): void;
|
|
@@ -2479,7 +2509,7 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
|
2479
2509
|
activate(): void;
|
|
2480
2510
|
update(): void;
|
|
2481
2511
|
deactivate(): boolean;
|
|
2482
|
-
get selectLanguageOptionsCaption():
|
|
2512
|
+
get selectLanguageOptionsCaption(): string;
|
|
2483
2513
|
get showAllStringsText(): string;
|
|
2484
2514
|
get showUsedStringsOnlyText(): string;
|
|
2485
2515
|
get showAllPagesText(): string;
|
|
@@ -2521,7 +2551,7 @@ export declare class TranslationGroup extends TranslationItemBase {
|
|
|
2521
2551
|
get groups(): any;
|
|
2522
2552
|
get isGroup(): boolean;
|
|
2523
2553
|
get locales(): any;
|
|
2524
|
-
get removeLocaleText():
|
|
2554
|
+
get removeLocaleText(): string;
|
|
2525
2555
|
get localeCount(): number;
|
|
2526
2556
|
get locWidth(): string;
|
|
2527
2557
|
getLocaleName(loc: string): string;
|
|
@@ -2730,7 +2760,7 @@ export declare class PropertyGridEditorMatrix extends PropertyGridEditor {
|
|
|
2730
2760
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
2731
2761
|
protected getMatrixJSON(obj: Base, prop: JsonObjectProperty, propNames: any, options: ISurveyCreatorOptions): any;
|
|
2732
2762
|
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
2733
|
-
protected getEmptyRowsText(props: any):
|
|
2763
|
+
protected getEmptyRowsText(props: any): string;
|
|
2734
2764
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
2735
2765
|
protected getColumnsJSON(obj: Base, prop: JsonObjectProperty, propNames: any, options: ISurveyCreatorOptions): any;
|
|
2736
2766
|
protected getEditItemAsStandAlone(): boolean;
|
|
@@ -2778,8 +2808,8 @@ export declare class QuestionRatingAdornerViewModel extends QuestionAdornerViewM
|
|
|
2778
2808
|
removeItem(model: QuestionRatingAdornerViewModel): void;
|
|
2779
2809
|
get allowAdd(): boolean;
|
|
2780
2810
|
get allowRemove(): boolean;
|
|
2781
|
-
get addTooltip():
|
|
2782
|
-
get removeTooltip():
|
|
2811
|
+
get addTooltip(): string;
|
|
2812
|
+
get removeTooltip(): string;
|
|
2783
2813
|
}
|
|
2784
2814
|
export declare class TabJsonEditorAcePlugin extends TabJsonEditorBasePlugin implements ICreatorPlugin {
|
|
2785
2815
|
constructor(creator: CreatorBase);
|
|
@@ -2863,7 +2893,7 @@ export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEdit
|
|
|
2863
2893
|
protected getDefaulColumnNames(): Array<any>;
|
|
2864
2894
|
protected getKeyValue(): string;
|
|
2865
2895
|
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
2866
|
-
protected getEmptyRowsText(prop: any):
|
|
2896
|
+
protected getEmptyRowsText(prop: any): string;
|
|
2867
2897
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
2868
2898
|
}
|
|
2869
2899
|
export declare class PropertyGridEditorMatrixMultipleTypes extends PropertyGridEditorMatrix {
|
|
@@ -2998,7 +3028,7 @@ export declare class PropertyGridTriggerValueInLogicEditor extends PropertyGridT
|
|
|
2998
3028
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
2999
3029
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
3000
3030
|
}
|
|
3001
|
-
export declare function getLocString(strName: string, locale?: string):
|
|
3031
|
+
export declare function getLocString(strName: string, locale?: string): string;
|
|
3002
3032
|
export declare function getNextValue(prefix: string, values: any): string | number;
|
|
3003
3033
|
export declare function findParentNode(className: string, sourceNode: any): any;
|
|
3004
3034
|
export declare function focusFirstControl(renderedElements: any): void;
|
|
@@ -3013,38 +3043,20 @@ export declare function copyObject(dst: any, src: any): void;
|
|
|
3013
3043
|
export declare function copyCssClasses(dest: any, source: any): void;
|
|
3014
3044
|
export declare function assignDefaultV2Classes(destination: any, questionType: string): void;
|
|
3015
3045
|
export declare function wrapTextByCurlyBraces(text: string): string;
|
|
3016
|
-
export declare function getLogicString(name: string):
|
|
3046
|
+
export declare function getLogicString(name: string): string;
|
|
3047
|
+
export declare function parsePropertyDescription(text: string): string;
|
|
3048
|
+
export declare function setSurveyJSONForPropertyGrid(json: any, updateOnTyping?: boolean, titleLocationLeft?: boolean): void;
|
|
3017
3049
|
export declare function findAction(actions: any, id: string): IAction;
|
|
3018
3050
|
export declare function updateMatrixLogicExpandAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
|
|
3019
3051
|
export declare function updateMatrixLogicRemoveAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
|
|
3020
3052
|
export declare function updateMatrixRemoveAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
|
|
3021
|
-
export declare function setSurveyJSONForPropertyGrid(json: any, updateOnTyping?: boolean, titleLocationLeft?: boolean): void;
|
|
3022
3053
|
export declare function getElementWrapperComponentName(element: any, reason: string, isPopupEditorContent: boolean): string;
|
|
3023
3054
|
export declare function getQuestionContentWrapperComponentName(element: any): string;
|
|
3024
3055
|
export declare function getElementWrapperComponentData(element: any, reason: string, creator: CreatorBase): any;
|
|
3025
3056
|
export declare function getItemValueWrapperComponentName(item: ItemValue, question: QuestionSelectBase): string;
|
|
3026
3057
|
export declare function getItemValueWrapperComponentData(item: ItemValue, question: QuestionSelectBase, creator: CreatorBase): any;
|
|
3027
3058
|
export declare function isStringEditable(element: any, name: string): boolean;
|
|
3028
|
-
export declare var editorLocalization:
|
|
3029
|
-
camelCaseBreaking: boolean,
|
|
3030
|
-
currentLocale: string,
|
|
3031
|
-
locales: any,
|
|
3032
|
-
getString: any,
|
|
3033
|
-
hasString: any,
|
|
3034
|
-
getLocaleName: any,
|
|
3035
|
-
getPropertyName: any,
|
|
3036
|
-
getPropertyTitle: any,
|
|
3037
|
-
getPropertyNameInEditor: any,
|
|
3038
|
-
getProperty: any,
|
|
3039
|
-
convertToCamelCase: any,
|
|
3040
|
-
getAutoPropertyName: any,
|
|
3041
|
-
getPropertyValue: any,
|
|
3042
|
-
getValidatorName: any,
|
|
3043
|
-
getTriggerName: any,
|
|
3044
|
-
getLocale: any,
|
|
3045
|
-
getValueInternal: any,
|
|
3046
|
-
getLocales: any,
|
|
3047
|
-
};
|
|
3059
|
+
export declare var editorLocalization: EditorLocalization;
|
|
3048
3060
|
export declare var defaultStrings: any;
|
|
3049
3061
|
export declare var settings: {
|
|
3050
3062
|
translation: {
|
|
@@ -3359,6 +3371,8 @@ export declare var propertyGridCss: {
|
|
|
3359
3371
|
buttonRemove: string,
|
|
3360
3372
|
iconAdd: string,
|
|
3361
3373
|
iconRemove: string,
|
|
3374
|
+
dragElementDecorator: string,
|
|
3375
|
+
iconDragElement: string,
|
|
3362
3376
|
iconDrag: string,
|
|
3363
3377
|
dragDropGhostPositionTop: string,
|
|
3364
3378
|
dragDropGhostPositionBottom: string,
|
|
@@ -3421,6 +3435,14 @@ export declare var propertyGridCss: {
|
|
|
3421
3435
|
buttonCollapsed: string,
|
|
3422
3436
|
},
|
|
3423
3437
|
},
|
|
3438
|
+
actionBar: {
|
|
3439
|
+
root: string,
|
|
3440
|
+
item: string,
|
|
3441
|
+
itemPressed: string,
|
|
3442
|
+
itemAsIcon: string,
|
|
3443
|
+
itemIcon: string,
|
|
3444
|
+
itemTitle: string,
|
|
3445
|
+
},
|
|
3424
3446
|
};
|
|
3425
3447
|
export declare var json: {
|
|
3426
3448
|
name: string,
|
|
@@ -4236,6 +4258,7 @@ export declare var logicCss: {
|
|
|
4236
4258
|
embeddedsurvey: {
|
|
4237
4259
|
mainRoot: string,
|
|
4238
4260
|
},
|
|
4261
|
+
actionBar: any,
|
|
4239
4262
|
};
|
|
4240
4263
|
export declare var initialSettingsAllowShowEmptyTitleInDesignMode: boolean;
|
|
4241
4264
|
export declare var editableStringRendererName: any;
|