survey-creator-core 1.9.65 → 1.9.67
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 +2 -2
- package/survey-creator-core.css +34 -34
- package/survey-creator-core.d.ts +119 -10
- package/survey-creator-core.fontless.css +32 -32
- package/survey-creator-core.fontless.min.css +3 -3
- package/survey-creator-core.i18n.js +2 -2
- package/survey-creator-core.i18n.min.js +2 -2
- package/survey-creator-core.js +168 -68
- package/survey-creator-core.min.css +5 -5
- package/survey-creator-core.min.js +3 -3
package/survey-creator-core.d.ts
CHANGED
|
@@ -8,7 +8,6 @@ declare module "localization/english" {
|
|
|
8
8
|
addLogicItem: string;
|
|
9
9
|
copy: string;
|
|
10
10
|
duplicate: string;
|
|
11
|
-
settings: string;
|
|
12
11
|
addToToolbox: string;
|
|
13
12
|
deletePanel: string;
|
|
14
13
|
deleteQuestion: string;
|
|
@@ -47,6 +46,8 @@ declare module "localization/english" {
|
|
|
47
46
|
survey: string;
|
|
48
47
|
settings: string;
|
|
49
48
|
settingsTooltip: string;
|
|
49
|
+
surveySettings: string;
|
|
50
|
+
surveySettingsTooltip: string;
|
|
50
51
|
showPanel: string;
|
|
51
52
|
hidePanel: string;
|
|
52
53
|
prevSelected: string;
|
|
@@ -76,8 +77,6 @@ declare module "localization/english" {
|
|
|
76
77
|
logic: string;
|
|
77
78
|
embedSurvey: string;
|
|
78
79
|
translation: string;
|
|
79
|
-
surveySettings: string;
|
|
80
|
-
surveySettingsTooltip: string;
|
|
81
80
|
saveSurvey: string;
|
|
82
81
|
saveSurveyTooltip: string;
|
|
83
82
|
designer: string;
|
|
@@ -507,7 +506,7 @@ declare module "localization/english" {
|
|
|
507
506
|
choicesFromQuestion: string;
|
|
508
507
|
choicesFromQuestionMode: string;
|
|
509
508
|
showCommentArea: string;
|
|
510
|
-
|
|
509
|
+
commentPlaceholder: string;
|
|
511
510
|
displayRateDescriptionsAsExtremeItems: string;
|
|
512
511
|
rowsOrder: string;
|
|
513
512
|
columnsLayout: string;
|
|
@@ -563,6 +562,7 @@ declare module "localization/english" {
|
|
|
563
562
|
showOnCompleted: string;
|
|
564
563
|
logo: string;
|
|
565
564
|
slider: string;
|
|
565
|
+
expression: string;
|
|
566
566
|
others: string;
|
|
567
567
|
};
|
|
568
568
|
editProperty: string;
|
|
@@ -598,6 +598,16 @@ declare module "localization/english" {
|
|
|
598
598
|
triggerRunExpressionEmpty: string;
|
|
599
599
|
emptyExpressionPlaceHolder: string;
|
|
600
600
|
noFile: string;
|
|
601
|
+
clearIfInvisible: string;
|
|
602
|
+
valuePropertyName: string;
|
|
603
|
+
searchEnabled: string;
|
|
604
|
+
hideSelectedItems: string;
|
|
605
|
+
signatureWidth: string;
|
|
606
|
+
signatureHeight: string;
|
|
607
|
+
verticalAlign: string;
|
|
608
|
+
alternateRows: string;
|
|
609
|
+
columnsVisibleIf: string;
|
|
610
|
+
rowsVisibleIf: string;
|
|
601
611
|
};
|
|
602
612
|
pv: {
|
|
603
613
|
true: string;
|
|
@@ -705,6 +715,28 @@ declare module "localization/english" {
|
|
|
705
715
|
collapsed: string;
|
|
706
716
|
expanded: string;
|
|
707
717
|
};
|
|
718
|
+
widthMode: {
|
|
719
|
+
auto: string;
|
|
720
|
+
static: string;
|
|
721
|
+
responsive: string;
|
|
722
|
+
};
|
|
723
|
+
imageFit: {
|
|
724
|
+
none: string;
|
|
725
|
+
contain: string;
|
|
726
|
+
cover: string;
|
|
727
|
+
fill: string;
|
|
728
|
+
};
|
|
729
|
+
contentMode: {
|
|
730
|
+
auto: string;
|
|
731
|
+
image: string;
|
|
732
|
+
video: string;
|
|
733
|
+
youtube: string;
|
|
734
|
+
};
|
|
735
|
+
displayMode: {
|
|
736
|
+
auto: string;
|
|
737
|
+
buttons: string;
|
|
738
|
+
dropdown: string;
|
|
739
|
+
};
|
|
708
740
|
};
|
|
709
741
|
op: {
|
|
710
742
|
empty: string;
|
|
@@ -833,6 +865,7 @@ declare module "localization/english" {
|
|
|
833
865
|
showCaption: string;
|
|
834
866
|
iconName: string;
|
|
835
867
|
iconSize: string;
|
|
868
|
+
value: string;
|
|
836
869
|
};
|
|
837
870
|
};
|
|
838
871
|
}
|
|
@@ -1008,9 +1041,11 @@ declare module "creator-settings" {
|
|
|
1008
1041
|
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[]): string;
|
|
1009
1042
|
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
1010
1043
|
onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
|
|
1044
|
+
getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
|
|
1011
1045
|
getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
|
|
1012
1046
|
}
|
|
1013
1047
|
export class EmptySurveyCreatorOptions implements ISurveyCreatorOptions {
|
|
1048
|
+
getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
|
|
1014
1049
|
isMobileView: boolean;
|
|
1015
1050
|
alwaySaveTextInPropertyEditors: boolean;
|
|
1016
1051
|
readOnly: boolean;
|
|
@@ -1104,7 +1139,6 @@ declare module "editorLocalization" {
|
|
|
1104
1139
|
addLogicItem: string;
|
|
1105
1140
|
copy: string;
|
|
1106
1141
|
duplicate: string;
|
|
1107
|
-
settings: string;
|
|
1108
1142
|
addToToolbox: string;
|
|
1109
1143
|
deletePanel: string;
|
|
1110
1144
|
deleteQuestion: string;
|
|
@@ -1143,6 +1177,8 @@ declare module "editorLocalization" {
|
|
|
1143
1177
|
survey: string;
|
|
1144
1178
|
settings: string;
|
|
1145
1179
|
settingsTooltip: string;
|
|
1180
|
+
surveySettings: string;
|
|
1181
|
+
surveySettingsTooltip: string;
|
|
1146
1182
|
showPanel: string;
|
|
1147
1183
|
hidePanel: string;
|
|
1148
1184
|
prevSelected: string;
|
|
@@ -1172,8 +1208,6 @@ declare module "editorLocalization" {
|
|
|
1172
1208
|
logic: string;
|
|
1173
1209
|
embedSurvey: string;
|
|
1174
1210
|
translation: string;
|
|
1175
|
-
surveySettings: string;
|
|
1176
|
-
surveySettingsTooltip: string;
|
|
1177
1211
|
saveSurvey: string;
|
|
1178
1212
|
saveSurveyTooltip: string;
|
|
1179
1213
|
designer: string;
|
|
@@ -1603,7 +1637,7 @@ declare module "editorLocalization" {
|
|
|
1603
1637
|
choicesFromQuestion: string;
|
|
1604
1638
|
choicesFromQuestionMode: string;
|
|
1605
1639
|
showCommentArea: string;
|
|
1606
|
-
|
|
1640
|
+
commentPlaceholder: string;
|
|
1607
1641
|
displayRateDescriptionsAsExtremeItems: string;
|
|
1608
1642
|
rowsOrder: string;
|
|
1609
1643
|
columnsLayout: string;
|
|
@@ -1659,6 +1693,7 @@ declare module "editorLocalization" {
|
|
|
1659
1693
|
showOnCompleted: string;
|
|
1660
1694
|
logo: string;
|
|
1661
1695
|
slider: string;
|
|
1696
|
+
expression: string;
|
|
1662
1697
|
others: string;
|
|
1663
1698
|
};
|
|
1664
1699
|
editProperty: string;
|
|
@@ -1694,6 +1729,16 @@ declare module "editorLocalization" {
|
|
|
1694
1729
|
triggerRunExpressionEmpty: string;
|
|
1695
1730
|
emptyExpressionPlaceHolder: string;
|
|
1696
1731
|
noFile: string;
|
|
1732
|
+
clearIfInvisible: string;
|
|
1733
|
+
valuePropertyName: string;
|
|
1734
|
+
searchEnabled: string;
|
|
1735
|
+
hideSelectedItems: string;
|
|
1736
|
+
signatureWidth: string;
|
|
1737
|
+
signatureHeight: string;
|
|
1738
|
+
verticalAlign: string;
|
|
1739
|
+
alternateRows: string;
|
|
1740
|
+
columnsVisibleIf: string;
|
|
1741
|
+
rowsVisibleIf: string;
|
|
1697
1742
|
};
|
|
1698
1743
|
pv: {
|
|
1699
1744
|
true: string;
|
|
@@ -1801,6 +1846,28 @@ declare module "editorLocalization" {
|
|
|
1801
1846
|
collapsed: string;
|
|
1802
1847
|
expanded: string;
|
|
1803
1848
|
};
|
|
1849
|
+
widthMode: {
|
|
1850
|
+
auto: string;
|
|
1851
|
+
static: string;
|
|
1852
|
+
responsive: string;
|
|
1853
|
+
};
|
|
1854
|
+
imageFit: {
|
|
1855
|
+
none: string;
|
|
1856
|
+
contain: string;
|
|
1857
|
+
cover: string;
|
|
1858
|
+
fill: string;
|
|
1859
|
+
};
|
|
1860
|
+
contentMode: {
|
|
1861
|
+
auto: string;
|
|
1862
|
+
image: string;
|
|
1863
|
+
video: string;
|
|
1864
|
+
youtube: string;
|
|
1865
|
+
};
|
|
1866
|
+
displayMode: {
|
|
1867
|
+
auto: string;
|
|
1868
|
+
buttons: string;
|
|
1869
|
+
dropdown: string;
|
|
1870
|
+
};
|
|
1804
1871
|
};
|
|
1805
1872
|
op: {
|
|
1806
1873
|
empty: string;
|
|
@@ -1929,6 +1996,7 @@ declare module "editorLocalization" {
|
|
|
1929
1996
|
showCaption: string;
|
|
1930
1997
|
iconName: string;
|
|
1931
1998
|
iconSize: string;
|
|
1999
|
+
value: string;
|
|
1932
2000
|
};
|
|
1933
2001
|
};
|
|
1934
2002
|
}
|
|
@@ -2754,11 +2822,13 @@ declare module "property-grid-theme/property-grid" {
|
|
|
2754
2822
|
cellTextDisabled: string;
|
|
2755
2823
|
};
|
|
2756
2824
|
matrixdropdown: {
|
|
2825
|
+
tableWrapper: string;
|
|
2757
2826
|
root: string;
|
|
2758
2827
|
cell: string;
|
|
2759
2828
|
headerCell: string;
|
|
2760
2829
|
};
|
|
2761
2830
|
matrixdynamic: {
|
|
2831
|
+
tableWrapper: string;
|
|
2762
2832
|
root: string;
|
|
2763
2833
|
cell: string;
|
|
2764
2834
|
headerCell: string;
|
|
@@ -3631,7 +3701,6 @@ declare module "components/tabs/test-plugin" {
|
|
|
3631
3701
|
deactivate(): boolean;
|
|
3632
3702
|
private getAvailableThemes;
|
|
3633
3703
|
private getThemeLocName;
|
|
3634
|
-
protected filterThemeMapper(themeMapper: Array<any>): Array<any>;
|
|
3635
3704
|
createActions(): Array<Action>;
|
|
3636
3705
|
addFooterActions(): void;
|
|
3637
3706
|
}
|
|
@@ -4440,6 +4509,7 @@ declare module "components/tabs/translation" {
|
|
|
4440
4509
|
fireOnObjCreating(obj: Base): any;
|
|
4441
4510
|
removeLocale(loc: string): void;
|
|
4442
4511
|
canShowProperty(obj: Base, prop: JsonObjectProperty, isEmpty: boolean): boolean;
|
|
4512
|
+
getProcessedTranslationItemText(locale: string, name: ILocalizableString, newValue: string, context: any): string;
|
|
4443
4513
|
}
|
|
4444
4514
|
export class TranslationGroup extends TranslationItemBase {
|
|
4445
4515
|
name: any;
|
|
@@ -4502,6 +4572,7 @@ declare module "components/tabs/translation" {
|
|
|
4502
4572
|
private addLanguageAction;
|
|
4503
4573
|
chooseLanguageActions: Array<IAction>;
|
|
4504
4574
|
constructor(survey: SurveyModel, options?: ISurveyCreatorOptions, hasUI?: boolean);
|
|
4575
|
+
getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, context: any): string;
|
|
4505
4576
|
getType(): string;
|
|
4506
4577
|
locales: Array<string>;
|
|
4507
4578
|
canMergeLocaleWithDefault: boolean;
|
|
@@ -4830,6 +4901,7 @@ declare module "components/tabs/logic-theme" {
|
|
|
4830
4901
|
cellTextDisabled: string;
|
|
4831
4902
|
};
|
|
4832
4903
|
matrixdropdown: {
|
|
4904
|
+
tableWrapper: string;
|
|
4833
4905
|
mainRoot: string;
|
|
4834
4906
|
root: string;
|
|
4835
4907
|
row: string;
|
|
@@ -4838,6 +4910,7 @@ declare module "components/tabs/logic-theme" {
|
|
|
4838
4910
|
headerCell: string;
|
|
4839
4911
|
};
|
|
4840
4912
|
matrixdynamic: {
|
|
4913
|
+
tableWrapper: string;
|
|
4841
4914
|
mainRoot: string;
|
|
4842
4915
|
root: string;
|
|
4843
4916
|
row: string;
|
|
@@ -6488,6 +6561,28 @@ declare module "creator-base" {
|
|
|
6488
6561
|
* - `options.text` - A text string to be exported. The string is taken from the current locale. Redefine this property if you want to export a different string.
|
|
6489
6562
|
*/
|
|
6490
6563
|
onTranslationExportItem: CreatorEvent;
|
|
6564
|
+
/**
|
|
6565
|
+
* An event that is raised before a string translation is changed. Use this event to override a new translation value.
|
|
6566
|
+
*
|
|
6567
|
+
* Parameters:
|
|
6568
|
+
*
|
|
6569
|
+
* - `sender`: `CreatorBase`\
|
|
6570
|
+
* A Survey Creator instance that raised the event.
|
|
6571
|
+
* - `options.obj`: `any`\
|
|
6572
|
+
* A survey object instance (survey, page, panel, question) whose string translation is being changed.
|
|
6573
|
+
* - `options.locale`: `String`\
|
|
6574
|
+
* The current locale identifier (`"en"`, `"de"`, etc.). Contains an empty string if the default locale is used.
|
|
6575
|
+
* - `options.locString`: `LocalizableString`\
|
|
6576
|
+
* An object that you can use to manipulate a localization string. Call the `options.locString.getLocaleText(locale)` method if you need to get a text string for a specific locale.
|
|
6577
|
+
* - `options.newText`: `String`\
|
|
6578
|
+
* A new value for the string translation.
|
|
6579
|
+
*
|
|
6580
|
+
* Refer to the following help topics for more information on localization:
|
|
6581
|
+
*
|
|
6582
|
+
* - [Localization & Globalization in SurveyJS Form Library](https://surveyjs.io/form-library/documentation/survey-localization)
|
|
6583
|
+
* - [Localization & Globalization in Survey Creator](https://surveyjs.io/survey-creator/documentation/localization)
|
|
6584
|
+
*/
|
|
6585
|
+
onTranslationItemChanging: CreatorEvent;
|
|
6491
6586
|
/**
|
|
6492
6587
|
* Use this event to control drag&drop operations.
|
|
6493
6588
|
*- sender the survey creator object that fires the event.
|
|
@@ -6790,7 +6885,20 @@ declare module "creator-base" {
|
|
|
6790
6885
|
get selectionHistoryController(): SelectionHistory;
|
|
6791
6886
|
get currentPage(): PageModel;
|
|
6792
6887
|
set currentPage(value: PageModel);
|
|
6793
|
-
|
|
6888
|
+
/**
|
|
6889
|
+
* An event that is raised before a new page is added to the survey.
|
|
6890
|
+
*
|
|
6891
|
+
* Parameters:
|
|
6892
|
+
*
|
|
6893
|
+
* - `sender`: `CreatorBase`\
|
|
6894
|
+
* A Survey Creator instance that raised the event.
|
|
6895
|
+
* - `options.page`: [`PageModel`](https://surveyjs.io/form-library/documentation/api-reference/page-model)\
|
|
6896
|
+
* An added page.
|
|
6897
|
+
* - `options.allow`: `Boolean`\
|
|
6898
|
+
* Set this property to `false` if you do not want to add the page.
|
|
6899
|
+
*/
|
|
6900
|
+
onPageAdding: CreatorEvent;
|
|
6901
|
+
addPage(pageToAdd?: PageModel, changeSelection?: boolean, beforeAdd?: () => boolean): PageModel;
|
|
6794
6902
|
private addNewPageIntoSurvey;
|
|
6795
6903
|
protected initTabs(): void;
|
|
6796
6904
|
private initPlugins;
|
|
@@ -7047,6 +7155,7 @@ declare module "creator-base" {
|
|
|
7047
7155
|
onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[]): string;
|
|
7048
7156
|
onConditionGetTitleCallback(expression: string, title: string): string;
|
|
7049
7157
|
onLogicGetTitleCallback(expression: string, expressionText: string, text: string, logicItem: any): string;
|
|
7158
|
+
getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
|
|
7050
7159
|
getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
|
|
7051
7160
|
/**
|
|
7052
7161
|
* The delay on saving survey JSON on autoSave in ms. It is 500 ms by default.
|