survey-creator-core 1.9.66 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "survey-creator-core",
3
- "version": "1.9.66",
3
+ "version": "1.9.67",
4
4
  "description": "Use SurveyJS Creator to create or edit JSON for SurveyJS Library.",
5
5
  "keywords": [
6
6
  "Survey",
@@ -37,7 +37,7 @@
37
37
  "ace-builds": "^1.4.12"
38
38
  },
39
39
  "dependencies": {
40
- "survey-core": "1.9.66"
40
+ "survey-core": "1.9.67"
41
41
  },
42
42
  "devDependencies": {}
43
43
  }
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.66
3
- * (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
2
+ * SurveyJS Creator v1.9.67
3
+ * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
6
6
  */
@@ -35,8 +35,8 @@
35
35
 
36
36
 
37
37
  /*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9TdXJ2ZXlDcmVhdG9yQ29yZS8uL3NyYy9lbnRyaWVzL2ZvbnRzLnNjc3MiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0FBQUE7QUFDQTtFQUNFLHdCQUF3QjtFQUN4QixrQkFBa0I7RUFDbEIsZ0JBQWdCO0VBQ2hCLHdKQUVtQjtFQUNuQix5S0FFZ0I7O0FBRWxCO0FBQ0E7RUFDRSx3QkFBd0I7RUFDeEIsa0JBQWtCO0VBQ2xCLGdCQUFnQjtFQUNoQixrQkFBa0I7RUFDbEIsNEtBRW1CO0VBQ25CLHlLQUVnQjs7QUFFbEI7QUFDQTtFQUNFLHdCQU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LWZvbnQtZmFtaWx5OiBcIk9wZW4gU2Fuc1wiLCBcIkhlbHZldGljYSBOZXVlXCIsIEhlbHZldGljYSwgQXJpYWwsIHNhbnMtc2VyaWY7XG59Il0sInNvdXJjZVJvb3QiOiIifQ==*//*!
38
- * SurveyJS Creator v1.9.66
39
- * (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
38
+ * SurveyJS Creator v1.9.67
39
+ * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
40
40
  * Github: https://github.com/surveyjs/survey-creator
41
41
  * License: https://surveyjs.io/Licenses#SurveyCreator
42
42
  */
@@ -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
- commentPlaceHolder: string;
509
+ commentPlaceholder: string;
511
510
  displayRateDescriptionsAsExtremeItems: string;
512
511
  rowsOrder: string;
513
512
  columnsLayout: string;
@@ -599,6 +598,16 @@ declare module "localization/english" {
599
598
  triggerRunExpressionEmpty: string;
600
599
  emptyExpressionPlaceHolder: string;
601
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;
602
611
  };
603
612
  pv: {
604
613
  true: string;
@@ -706,6 +715,28 @@ declare module "localization/english" {
706
715
  collapsed: string;
707
716
  expanded: string;
708
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
+ };
709
740
  };
710
741
  op: {
711
742
  empty: string;
@@ -834,6 +865,7 @@ declare module "localization/english" {
834
865
  showCaption: string;
835
866
  iconName: string;
836
867
  iconSize: string;
868
+ value: string;
837
869
  };
838
870
  };
839
871
  }
@@ -1009,9 +1041,11 @@ declare module "creator-settings" {
1009
1041
  onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[]): string;
1010
1042
  onConditionGetTitleCallback(expression: string, title: string): string;
1011
1043
  onLogicGetTitleCallback(expression: string, displayExpression: string, text: string, logicItem: any): string;
1044
+ getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
1012
1045
  getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
1013
1046
  }
1014
1047
  export class EmptySurveyCreatorOptions implements ISurveyCreatorOptions {
1048
+ getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
1015
1049
  isMobileView: boolean;
1016
1050
  alwaySaveTextInPropertyEditors: boolean;
1017
1051
  readOnly: boolean;
@@ -1105,7 +1139,6 @@ declare module "editorLocalization" {
1105
1139
  addLogicItem: string;
1106
1140
  copy: string;
1107
1141
  duplicate: string;
1108
- settings: string;
1109
1142
  addToToolbox: string;
1110
1143
  deletePanel: string;
1111
1144
  deleteQuestion: string;
@@ -1144,6 +1177,8 @@ declare module "editorLocalization" {
1144
1177
  survey: string;
1145
1178
  settings: string;
1146
1179
  settingsTooltip: string;
1180
+ surveySettings: string;
1181
+ surveySettingsTooltip: string;
1147
1182
  showPanel: string;
1148
1183
  hidePanel: string;
1149
1184
  prevSelected: string;
@@ -1173,8 +1208,6 @@ declare module "editorLocalization" {
1173
1208
  logic: string;
1174
1209
  embedSurvey: string;
1175
1210
  translation: string;
1176
- surveySettings: string;
1177
- surveySettingsTooltip: string;
1178
1211
  saveSurvey: string;
1179
1212
  saveSurveyTooltip: string;
1180
1213
  designer: string;
@@ -1604,7 +1637,7 @@ declare module "editorLocalization" {
1604
1637
  choicesFromQuestion: string;
1605
1638
  choicesFromQuestionMode: string;
1606
1639
  showCommentArea: string;
1607
- commentPlaceHolder: string;
1640
+ commentPlaceholder: string;
1608
1641
  displayRateDescriptionsAsExtremeItems: string;
1609
1642
  rowsOrder: string;
1610
1643
  columnsLayout: string;
@@ -1696,6 +1729,16 @@ declare module "editorLocalization" {
1696
1729
  triggerRunExpressionEmpty: string;
1697
1730
  emptyExpressionPlaceHolder: string;
1698
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;
1699
1742
  };
1700
1743
  pv: {
1701
1744
  true: string;
@@ -1803,6 +1846,28 @@ declare module "editorLocalization" {
1803
1846
  collapsed: string;
1804
1847
  expanded: string;
1805
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
+ };
1806
1871
  };
1807
1872
  op: {
1808
1873
  empty: string;
@@ -1931,6 +1996,7 @@ declare module "editorLocalization" {
1931
1996
  showCaption: string;
1932
1997
  iconName: string;
1933
1998
  iconSize: string;
1999
+ value: string;
1934
2000
  };
1935
2001
  };
1936
2002
  }
@@ -4443,6 +4509,7 @@ declare module "components/tabs/translation" {
4443
4509
  fireOnObjCreating(obj: Base): any;
4444
4510
  removeLocale(loc: string): void;
4445
4511
  canShowProperty(obj: Base, prop: JsonObjectProperty, isEmpty: boolean): boolean;
4512
+ getProcessedTranslationItemText(locale: string, name: ILocalizableString, newValue: string, context: any): string;
4446
4513
  }
4447
4514
  export class TranslationGroup extends TranslationItemBase {
4448
4515
  name: any;
@@ -4505,6 +4572,7 @@ declare module "components/tabs/translation" {
4505
4572
  private addLanguageAction;
4506
4573
  chooseLanguageActions: Array<IAction>;
4507
4574
  constructor(survey: SurveyModel, options?: ISurveyCreatorOptions, hasUI?: boolean);
4575
+ getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, context: any): string;
4508
4576
  getType(): string;
4509
4577
  locales: Array<string>;
4510
4578
  canMergeLocaleWithDefault: boolean;
@@ -6493,6 +6561,28 @@ declare module "creator-base" {
6493
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.
6494
6562
  */
6495
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;
6496
6586
  /**
6497
6587
  * Use this event to control drag&drop operations.
6498
6588
  *- sender the survey creator object that fires the event.
@@ -7065,6 +7155,7 @@ declare module "creator-base" {
7065
7155
  onConditionQuestionsGetListCallback(propertyName: string, obj: Base, editor: any, list: any[]): string;
7066
7156
  onConditionGetTitleCallback(expression: string, title: string): string;
7067
7157
  onLogicGetTitleCallback(expression: string, expressionText: string, text: string, logicItem: any): string;
7158
+ getProcessedTranslationItemText(locale: string, locString: ILocalizableString, newText: string, obj: any): string;
7068
7159
  getTranslationExportedText(obj: Base, name: string, locString: ILocalizableString, locale: string, text: string): string;
7069
7160
  /**
7070
7161
  * The delay on saving survey JSON on autoSave in ms. It is 500 ms by default.
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.66
3
- * (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
2
+ * SurveyJS Creator v1.9.67
3
+ * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.66
3
- * (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
2
+ * SurveyJS Creator v1.9.67
3
+ * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.66
3
- * (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
2
+ * SurveyJS Creator v1.9.67
3
+ * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
6
6
  */
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * SurveyJS Creator v1.9.66
3
- * (c) 2015-2022 Devsoft Baltic OÜ - http://surveyjs.io/
2
+ * SurveyJS Creator v1.9.67
3
+ * (c) 2015-2023 Devsoft Baltic OÜ - http://surveyjs.io/
4
4
  * Github: https://github.com/surveyjs/survey-creator
5
5
  * License: https://surveyjs.io/Licenses#SurveyCreator
6
6
  */