survey-creator-core 1.9.25 → 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 +46 -59
- package/survey-creator-core.d.ts +67 -54
- package/survey-creator-core.i18n.js +1 -1
- package/survey-creator-core.i18n.min.js +1 -1
- package/survey-creator-core.js +269 -177
- package/survey-creator-core.min.css +2 -2
- 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;
|
|
@@ -1777,7 +1799,7 @@ export declare class SurveyLogic extends Base implements ISurveyLogicItemOwner {
|
|
|
1777
1799
|
*/
|
|
1778
1800
|
get mode(): string;
|
|
1779
1801
|
set mode(val: string);
|
|
1780
|
-
getLocString(name: string):
|
|
1802
|
+
getLocString(name: string): string;
|
|
1781
1803
|
getTypeByName(name: string): SurveyLogicType;
|
|
1782
1804
|
update(survey?: SurveyModel, options?: ISurveyCreatorOptions): void;
|
|
1783
1805
|
get optionsReadOnly(): boolean;
|
|
@@ -1827,7 +1849,7 @@ export declare class SurveyLogicAction {
|
|
|
1827
1849
|
get logicTypeDescription(): string;
|
|
1828
1850
|
get text(): string;
|
|
1829
1851
|
get deleteActionText(): string;
|
|
1830
|
-
getLocString(name: string):
|
|
1852
|
+
getLocString(name: string): string;
|
|
1831
1853
|
isSuitableByQuestionName(questionName: string): boolean;
|
|
1832
1854
|
isSuitableByLogicType(logicTypeName: string): boolean;
|
|
1833
1855
|
addQuestionNames(names: any): void;
|
|
@@ -1847,7 +1869,7 @@ export declare class SurveyLogicItem {
|
|
|
1847
1869
|
get name(): string;
|
|
1848
1870
|
get survey(): SurveyModel;
|
|
1849
1871
|
getVisibleLogicTypes(): Array<SurveyLogicType>;
|
|
1850
|
-
get expressionText():
|
|
1872
|
+
get expressionText(): string;
|
|
1851
1873
|
get actionsText(): any;
|
|
1852
1874
|
getDisplayText(): any;
|
|
1853
1875
|
edit(): void;
|
|
@@ -1958,12 +1980,12 @@ export declare class SurveyResultsModel extends Base {
|
|
|
1958
1980
|
resultViewType: string;
|
|
1959
1981
|
resultText: string;
|
|
1960
1982
|
resultData: any;
|
|
1961
|
-
getLocString(name: string):
|
|
1962
|
-
get surveyResultsText():
|
|
1963
|
-
get resultsTitle():
|
|
1964
|
-
get resultsName():
|
|
1965
|
-
get resultsValue():
|
|
1966
|
-
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;
|
|
1967
1989
|
get isTableSelected(): boolean;
|
|
1968
1990
|
get isJsonSelected(): boolean;
|
|
1969
1991
|
selectTableClick: any;
|
|
@@ -2440,8 +2462,8 @@ export declare class TabLogicPlugin implements ICreatorPlugin {
|
|
|
2440
2462
|
filterQuestionAction: Action;
|
|
2441
2463
|
filterActionTypeAction: Action;
|
|
2442
2464
|
fastEntryAction: Action;
|
|
2443
|
-
showAllQuestionsText:
|
|
2444
|
-
showAllActionTypesText:
|
|
2465
|
+
showAllQuestionsText: string;
|
|
2466
|
+
showAllActionTypesText: string;
|
|
2445
2467
|
model: SurveyLogicUI;
|
|
2446
2468
|
activate(): void;
|
|
2447
2469
|
update(): void;
|
|
@@ -2487,7 +2509,7 @@ export declare class TabTranslationPlugin implements ICreatorPlugin {
|
|
|
2487
2509
|
activate(): void;
|
|
2488
2510
|
update(): void;
|
|
2489
2511
|
deactivate(): boolean;
|
|
2490
|
-
get selectLanguageOptionsCaption():
|
|
2512
|
+
get selectLanguageOptionsCaption(): string;
|
|
2491
2513
|
get showAllStringsText(): string;
|
|
2492
2514
|
get showUsedStringsOnlyText(): string;
|
|
2493
2515
|
get showAllPagesText(): string;
|
|
@@ -2529,7 +2551,7 @@ export declare class TranslationGroup extends TranslationItemBase {
|
|
|
2529
2551
|
get groups(): any;
|
|
2530
2552
|
get isGroup(): boolean;
|
|
2531
2553
|
get locales(): any;
|
|
2532
|
-
get removeLocaleText():
|
|
2554
|
+
get removeLocaleText(): string;
|
|
2533
2555
|
get localeCount(): number;
|
|
2534
2556
|
get locWidth(): string;
|
|
2535
2557
|
getLocaleName(loc: string): string;
|
|
@@ -2738,7 +2760,7 @@ export declare class PropertyGridEditorMatrix extends PropertyGridEditor {
|
|
|
2738
2760
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
2739
2761
|
protected getMatrixJSON(obj: Base, prop: JsonObjectProperty, propNames: any, options: ISurveyCreatorOptions): any;
|
|
2740
2762
|
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
2741
|
-
protected getEmptyRowsText(props: any):
|
|
2763
|
+
protected getEmptyRowsText(props: any): string;
|
|
2742
2764
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
2743
2765
|
protected getColumnsJSON(obj: Base, prop: JsonObjectProperty, propNames: any, options: ISurveyCreatorOptions): any;
|
|
2744
2766
|
protected getEditItemAsStandAlone(): boolean;
|
|
@@ -2786,8 +2808,8 @@ export declare class QuestionRatingAdornerViewModel extends QuestionAdornerViewM
|
|
|
2786
2808
|
removeItem(model: QuestionRatingAdornerViewModel): void;
|
|
2787
2809
|
get allowAdd(): boolean;
|
|
2788
2810
|
get allowRemove(): boolean;
|
|
2789
|
-
get addTooltip():
|
|
2790
|
-
get removeTooltip():
|
|
2811
|
+
get addTooltip(): string;
|
|
2812
|
+
get removeTooltip(): string;
|
|
2791
2813
|
}
|
|
2792
2814
|
export declare class TabJsonEditorAcePlugin extends TabJsonEditorBasePlugin implements ICreatorPlugin {
|
|
2793
2815
|
constructor(creator: CreatorBase);
|
|
@@ -2871,7 +2893,7 @@ export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEdit
|
|
|
2871
2893
|
protected getDefaulColumnNames(): Array<any>;
|
|
2872
2894
|
protected getKeyValue(): string;
|
|
2873
2895
|
protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
|
|
2874
|
-
protected getEmptyRowsText(prop: any):
|
|
2896
|
+
protected getEmptyRowsText(prop: any): string;
|
|
2875
2897
|
protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
|
|
2876
2898
|
}
|
|
2877
2899
|
export declare class PropertyGridEditorMatrixMultipleTypes extends PropertyGridEditorMatrix {
|
|
@@ -3006,7 +3028,7 @@ export declare class PropertyGridTriggerValueInLogicEditor extends PropertyGridT
|
|
|
3006
3028
|
fit(prop: JsonObjectProperty, context?: string): boolean;
|
|
3007
3029
|
getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
|
|
3008
3030
|
}
|
|
3009
|
-
export declare function getLocString(strName: string, locale?: string):
|
|
3031
|
+
export declare function getLocString(strName: string, locale?: string): string;
|
|
3010
3032
|
export declare function getNextValue(prefix: string, values: any): string | number;
|
|
3011
3033
|
export declare function findParentNode(className: string, sourceNode: any): any;
|
|
3012
3034
|
export declare function focusFirstControl(renderedElements: any): void;
|
|
@@ -3021,38 +3043,20 @@ export declare function copyObject(dst: any, src: any): void;
|
|
|
3021
3043
|
export declare function copyCssClasses(dest: any, source: any): void;
|
|
3022
3044
|
export declare function assignDefaultV2Classes(destination: any, questionType: string): void;
|
|
3023
3045
|
export declare function wrapTextByCurlyBraces(text: string): string;
|
|
3024
|
-
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;
|
|
3025
3049
|
export declare function findAction(actions: any, id: string): IAction;
|
|
3026
3050
|
export declare function updateMatrixLogicExpandAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
|
|
3027
3051
|
export declare function updateMatrixLogicRemoveAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
|
|
3028
3052
|
export declare function updateMatrixRemoveAction(question: QuestionMatrixDynamicModel, actions: any, row: MatrixDynamicRowModel): void;
|
|
3029
|
-
export declare function setSurveyJSONForPropertyGrid(json: any, updateOnTyping?: boolean, titleLocationLeft?: boolean): void;
|
|
3030
3053
|
export declare function getElementWrapperComponentName(element: any, reason: string, isPopupEditorContent: boolean): string;
|
|
3031
3054
|
export declare function getQuestionContentWrapperComponentName(element: any): string;
|
|
3032
3055
|
export declare function getElementWrapperComponentData(element: any, reason: string, creator: CreatorBase): any;
|
|
3033
3056
|
export declare function getItemValueWrapperComponentName(item: ItemValue, question: QuestionSelectBase): string;
|
|
3034
3057
|
export declare function getItemValueWrapperComponentData(item: ItemValue, question: QuestionSelectBase, creator: CreatorBase): any;
|
|
3035
3058
|
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
|
-
};
|
|
3059
|
+
export declare var editorLocalization: EditorLocalization;
|
|
3056
3060
|
export declare var defaultStrings: any;
|
|
3057
3061
|
export declare var settings: {
|
|
3058
3062
|
translation: {
|
|
@@ -3431,6 +3435,14 @@ export declare var propertyGridCss: {
|
|
|
3431
3435
|
buttonCollapsed: string,
|
|
3432
3436
|
},
|
|
3433
3437
|
},
|
|
3438
|
+
actionBar: {
|
|
3439
|
+
root: string,
|
|
3440
|
+
item: string,
|
|
3441
|
+
itemPressed: string,
|
|
3442
|
+
itemAsIcon: string,
|
|
3443
|
+
itemIcon: string,
|
|
3444
|
+
itemTitle: string,
|
|
3445
|
+
},
|
|
3434
3446
|
};
|
|
3435
3447
|
export declare var json: {
|
|
3436
3448
|
name: string,
|
|
@@ -4246,6 +4258,7 @@ export declare var logicCss: {
|
|
|
4246
4258
|
embeddedsurvey: {
|
|
4247
4259
|
mainRoot: string,
|
|
4248
4260
|
},
|
|
4261
|
+
actionBar: any,
|
|
4249
4262
|
};
|
|
4250
4263
|
export declare var initialSettingsAllowShowEmptyTitleInDesignMode: boolean;
|
|
4251
4264
|
export declare var editableStringRendererName: any;
|