survey-creator-core 1.9.35 → 1.9.36

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.
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.35
2
+ * Type definition for Survey Creatorlibrary. Platform independent (core) v1.9.36
3
3
  * Copyright (c) 2015-2022 Devsoft Baltic OÜ - https://surveyjs.io/
4
4
  * License: https://surveyjs.io/Licenses#SurveyCreator
5
5
  */
@@ -778,6 +778,21 @@ export declare class CreatorBase extends Base implements ISurveyCreatorOptions,
778
778
  */
779
779
  onTranslationLocaleInitiallySelected: Event<(sender: CreatorBase, options: any) => any, any>;
780
780
  /*
781
+ * Use this event to modify the imported localizable text. To block importing a particular localization text, set the options.text into undefined.
782
+ *
783
+ * The event handler accepts the following arguments:
784
+ *
785
+ * - `sender` - A Survey Creator instance that raised the event.
786
+ * - `options.locale` - the locale name, like 'en', 'de' and so on.
787
+ * - `options.name` - The full name of the localizable string, it can be: "survey.page1.question2.title"
788
+ * - `options.text` - The imported text for the locale for this item. Set it to undefined or empty string to block importing for this item
789
+ */
790
+ onTranslationImportItem: Event<(sender: CreatorBase, options: any) => any, any>;
791
+ /*
792
+ * The method is called when the translation from csv file is imported.
793
+ */
794
+ onTranslationImported: Event<(sender: CreatorBase, options: any) => any, any>;
795
+ /*
781
796
  * Use this event to control drag&drop operations.
782
797
  * sender the survey creator object that fires the event.
783
798
  * options.survey the editing survey object.
@@ -2244,6 +2259,7 @@ export declare class Translation extends Base implements ITranslationLocales {
2244
2259
  static newLineDelimiter: string;
2245
2260
  exportToCSVFileUI: any;
2246
2261
  importFromCSVFileUI: any;
2262
+ importItemCallback: (name: string, locale: string, text: string) => string;
2247
2263
  importFinishedCallback: any;
2248
2264
  translateItemAfterRenderCallback: (item: TranslationItem, el: any, locale: string) => void;
2249
2265
  availableTranlationsChangedCallback: any;
@@ -2296,7 +2312,7 @@ export declare class Translation extends Base implements ITranslationLocales {
2296
2312
  /*
2297
2313
  * Update a translation item with given values
2298
2314
  */
2299
- updateItemWithStrings(item: TranslationItem, values: any, locales: any): void;
2315
+ updateItemWithStrings(name: string, item: TranslationItem, values: any, locales: any): void;
2300
2316
  dispose(): void;
2301
2317
  }
2302
2318
  export declare class TranslationItemBase extends Base {
@@ -2905,8 +2921,7 @@ export declare class PropertyGridEditorMatrix extends PropertyGridEditor {
2905
2921
  protected getAllowRowDragDrop(prop: JsonObjectProperty): boolean;
2906
2922
  getJSON(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): any;
2907
2923
  protected getMatrixJSON(obj: Base, prop: JsonObjectProperty, propNames: any, options: ISurveyCreatorOptions): any;
2908
- protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
2909
- protected getEmptyRowsText(props: any): string;
2924
+ protected getEmptyRowsText(prop: JsonObjectProperty): string;
2910
2925
  protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
2911
2926
  protected getColumnsJSON(obj: Base, prop: JsonObjectProperty, propNames: any, options: ISurveyCreatorOptions): any;
2912
2927
  protected getEditItemAsStandAlone(): boolean;
@@ -3028,8 +3043,6 @@ export declare class PropertyGridEditorMatrixItemValues extends PropertyGridEdit
3028
3043
  protected getColumnClassName(obj: Base, prop: JsonObjectProperty): string;
3029
3044
  protected getDefaulColumnNames(): Array<any>;
3030
3045
  protected getKeyValue(): string;
3031
- protected getHideColumnsEmpty(prop: JsonObjectProperty): boolean;
3032
- protected getEmptyRowsText(prop: any): string;
3033
3046
  protected getMaximumRowCount(obj: Base, prop: JsonObjectProperty, options: ISurveyCreatorOptions): number;
3034
3047
  }
3035
3048
  export declare class PropertyGridEditorMatrixMultipleTypes extends PropertyGridEditorMatrix {
@@ -3204,6 +3217,10 @@ export declare var settings: {
3204
3217
  * The maximum number of locales that user can select at once for translation
3205
3218
  */
3206
3219
  maximumSelectedLocales: number,
3220
+ /*
3221
+ * The name of the translation export file in csv format
3222
+ */
3223
+ exportFileName: string,
3207
3224
  },
3208
3225
  operators: {
3209
3226
  empty: any,