@tilde-nlp/ngx-translate 7.0.19 → 7.0.21

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.
Files changed (47) hide show
  1. package/assets/icons/icons.d.ts +2 -0
  2. package/assets/icons/index.d.ts +1 -0
  3. package/esm2022/assets/icons/icons.mjs +11 -0
  4. package/esm2022/assets/icons/index.mjs +2 -0
  5. package/esm2022/lib/i18n/de.mjs +1 -45
  6. package/esm2022/lib/i18n/en.mjs +10 -48
  7. package/esm2022/lib/i18n/et.mjs +1 -45
  8. package/esm2022/lib/i18n/fi.mjs +1 -45
  9. package/esm2022/lib/i18n/lt.mjs +1 -45
  10. package/esm2022/lib/i18n/lv.mjs +11 -49
  11. package/esm2022/lib/i18n/pl.mjs +1 -45
  12. package/esm2022/lib/modules/tld-common/models/configs/tld-llm-config.model.mjs +1 -1
  13. package/esm2022/lib/modules/tld-common/services/tld-translate-config.service.mjs +1 -3
  14. package/esm2022/lib/modules/tld-document/download-button/download-button.component.mjs +6 -4
  15. package/esm2022/lib/modules/tld-document/tld-document.module.mjs +12 -4
  16. package/esm2022/lib/modules/tld-document/tld-translate-file-multiple/tld-translate-file-multiple.component.mjs +3 -3
  17. package/esm2022/lib/modules/tld-text/components/tld-translate-text/tld-translate-text.component.mjs +62 -22
  18. package/esm2022/lib/modules/tld-text/tld-text.module.mjs +8 -4
  19. package/esm2022/lib/modules/tld-tooltip/tld-tooltip.module.mjs +3 -7
  20. package/esm2022/lib/modules/tld-tooltip/translation-system-picker/dropdown/translation-system-picker-dropdown.component.mjs +4 -11
  21. package/esm2022/lib/modules/tld-tooltip/translation-system-picker/filter/translation-system-picker-filter.component.mjs +3 -3
  22. package/esm2022/lib/modules/tld-tooltip/translation-system-picker/translation-system-picker.component.mjs +7 -15
  23. package/esm2022/lib/tld-translate.component.mjs +8 -4
  24. package/esm2022/lib/tld-translate.module.mjs +2 -8
  25. package/fesm2022/tilde-nlp-ngx-translate.mjs +123 -387
  26. package/fesm2022/tilde-nlp-ngx-translate.mjs.map +1 -1
  27. package/lib/i18n/de.d.ts +0 -44
  28. package/lib/i18n/en.d.ts +6 -44
  29. package/lib/i18n/et.d.ts +0 -44
  30. package/lib/i18n/fi.d.ts +0 -44
  31. package/lib/i18n/lt.d.ts +0 -44
  32. package/lib/i18n/lv.d.ts +6 -44
  33. package/lib/i18n/pl.d.ts +0 -44
  34. package/lib/modules/tld-common/models/configs/tld-llm-config.model.d.ts +0 -4
  35. package/lib/modules/tld-document/tld-document.module.d.ts +3 -1
  36. package/lib/modules/tld-text/components/tld-translate-text/tld-translate-text.component.d.ts +11 -1
  37. package/lib/modules/tld-text/tld-text.module.d.ts +2 -1
  38. package/lib/modules/tld-tooltip/tld-tooltip.module.d.ts +1 -1
  39. package/lib/modules/tld-tooltip/translation-system-picker/dropdown/translation-system-picker-dropdown.component.d.ts +0 -1
  40. package/lib/modules/tld-tooltip/translation-system-picker/translation-system-picker.component.d.ts +2 -5
  41. package/lib/tld-translate.component.d.ts +3 -2
  42. package/package.json +1 -1
  43. package/src/assets/webcomponent/styles.css +1 -1
  44. package/src/assets/webcomponent/tilde-translate-box.js +2 -2
  45. package/src/styles/styles.scss +2 -6
  46. package/esm2022/lib/factories/llm-service-configuration.factory.mjs +0 -9
  47. package/lib/factories/llm-service-configuration.factory.d.ts +0 -3
package/lib/i18n/de.d.ts CHANGED
@@ -488,50 +488,6 @@ export declare const i18n_de: {
488
488
  PLAY: string;
489
489
  PAUSE: string;
490
490
  };
491
- LLM: {
492
- SUMMARY: string;
493
- REPHRASE: string;
494
- MENU_TOOLTIP: string;
495
- MENU_DISABLED_TOOLTIP: string;
496
- MENU_SUMMARY_DISABLED_TOOLTIP: string;
497
- UNSUPPORTED_MENU_DISABLED_TOOLTIP: string;
498
- EU_DATA_TOOLTIP: string;
499
- REPHRASE_MODAL: {
500
- TITLE: string;
501
- DESCRIPTION: string;
502
- CLOSE: string;
503
- CANCEL: string;
504
- ACTION: string;
505
- REPHRASING: string;
506
- LIMIT: string;
507
- WRITING_STYLES: {
508
- TITLE: string;
509
- TOOLTIP_GENERAL: string;
510
- TOOLTIP_PROFESSIONAL: string;
511
- TOOLTIP_ACADEMIC: string;
512
- SPECIFIC_STYLE: string;
513
- GENERAL: string;
514
- PROFESSIONAL: string;
515
- ACADEMIC: string;
516
- };
517
- };
518
- SUMMARY_MODAL: {
519
- TITLE: string;
520
- DESCRIPTION: string;
521
- CANCEL: string;
522
- CLOSE: string;
523
- ACTION: string;
524
- REGENERATE: string;
525
- LIMIT: string;
526
- };
527
- ERRORS: {
528
- QUOTA_LIMIT: string;
529
- QUOTA_LIMIT_REACHED: string;
530
- DEFAULT: string;
531
- REPHRASE_REQUEST_TIMEOUT: string;
532
- SUMMARY_REQUEST_TIMEOUT: string;
533
- };
534
- };
535
491
  DICTIONARY: {
536
492
  SOURCE: string;
537
493
  };
package/lib/i18n/en.d.ts CHANGED
@@ -58,9 +58,12 @@ export declare const i18n_en: {
58
58
  PDF_PAGE_LIMIT_MSG: string;
59
59
  PDF_PAGE_LIMIT_MSG_SUBSCRIPTION: string;
60
60
  CLEAR_SOURCE_TOOLTIP: string;
61
+ SUMMARY: {
62
+ TITLE: string;
63
+ CREATING: string;
64
+ };
61
65
  };
62
66
  MULTIPLE_FILES: {
63
- APPEND: string;
64
67
  CLEAR_ALL: string;
65
68
  DOWNLOAD: string;
66
69
  STATUSS_INITIALIZING: string;
@@ -256,6 +259,7 @@ export declare const i18n_en: {
256
259
  SHOW_EXTENSIONS: string;
257
260
  COPY: string;
258
261
  REFRESH: string;
262
+ CREATE_SUMMARY: string;
259
263
  OPEN_IN_NEW: string;
260
264
  SWAP_LANGUAGES: string;
261
265
  OTHER_LANGUAGES_TRIGGER: string;
@@ -265,6 +269,7 @@ export declare const i18n_en: {
265
269
  REFRESH: string;
266
270
  SWAP_LANGUAGES: string;
267
271
  DISLIKE: string;
272
+ CREATE_SUMMARY: string;
268
273
  };
269
274
  PDF_CONVERSION: {
270
275
  TITLE_1: string;
@@ -487,49 +492,6 @@ export declare const i18n_en: {
487
492
  PLAY: string;
488
493
  PAUSE: string;
489
494
  };
490
- LLM: {
491
- SUMMARY: string;
492
- REPHRASE: string;
493
- MENU_TOOLTIP: string;
494
- MENU_DISABLED_TOOLTIP: string;
495
- MENU_SUMMARY_DISABLED_TOOLTIP: string;
496
- MENU_REPHRASE_DISABLED_TOOLTIP: string;
497
- UNSUPPORTED_MENU_DISABLED_TOOLTIP: string;
498
- EU_DATA_TOOLTIP: string;
499
- REPHRASE_MODAL: {
500
- TITLE: string;
501
- DESCRIPTION: string;
502
- CLOSE: string;
503
- CANCEL: string;
504
- ACTION: string;
505
- LIMIT: string;
506
- WRITING_STYLES: {
507
- TITLE: string;
508
- TOOLTIP_GENERAL: string;
509
- TOOLTIP_PROFESSIONAL: string;
510
- TOOLTIP_ACADEMIC: string;
511
- SPECIFIC_STYLE: string;
512
- GENERAL: string;
513
- PROFESSIONAL: string;
514
- ACADEMIC: string;
515
- };
516
- };
517
- SUMMARY_MODAL: {
518
- TITLE: string;
519
- DESCRIPTION: string;
520
- CANCEL: string;
521
- CLOSE: string;
522
- ACTION: string;
523
- REGENERATE: string;
524
- LIMIT: string;
525
- };
526
- ERRORS: {
527
- QUOTA_LIMIT_REACHED: string;
528
- DEFAULT: string;
529
- REPHRASE_REQUEST_TIMEOUT: string;
530
- SUMMARY_REQUEST_TIMEOUT: string;
531
- };
532
- };
533
495
  DICTIONARY: {
534
496
  SOURCE: string;
535
497
  };
package/lib/i18n/et.d.ts CHANGED
@@ -487,50 +487,6 @@ export declare const i18n_et: {
487
487
  PLAY: string;
488
488
  PAUSE: string;
489
489
  };
490
- LLM: {
491
- SUMMARY: string;
492
- REPHRASE: string;
493
- MENU_TOOLTIP: string;
494
- MENU_DISABLED_TOOLTIP: string;
495
- MENU_SUMMARY_DISABLED_TOOLTIP: string;
496
- UNSUPPORTED_MENU_DISABLED_TOOLTIP: string;
497
- EU_DATA_TOOLTIP: string;
498
- REPHRASE_MODAL: {
499
- TITLE: string;
500
- DESCRIPTION: string;
501
- CLOSE: string;
502
- CANCEL: string;
503
- ACTION: string;
504
- REPHRASING: string;
505
- LIMIT: string;
506
- WRITING_STYLES: {
507
- TITLE: string;
508
- TOOLTIP_GENERAL: string;
509
- TOOLTIP_PROFESSIONAL: string;
510
- TOOLTIP_ACADEMIC: string;
511
- SPECIFIC_STYLE: string;
512
- GENERAL: string;
513
- PROFESSIONAL: string;
514
- ACADEMIC: string;
515
- };
516
- };
517
- SUMMARY_MODAL: {
518
- TITLE: string;
519
- DESCRIPTION: string;
520
- CANCEL: string;
521
- CLOSE: string;
522
- ACTION: string;
523
- REGENERATE: string;
524
- LIMIT: string;
525
- };
526
- ERRORS: {
527
- QUOTA_LIMIT: string;
528
- QUOTA_LIMIT_REACHED: string;
529
- DEFAULT: string;
530
- REPHRASE_REQUEST_TIMEOUT: string;
531
- SUMMARY_REQUEST_TIMEOUT: string;
532
- };
533
- };
534
490
  DICTIONARY: {
535
491
  SOURCE: string;
536
492
  };
package/lib/i18n/fi.d.ts CHANGED
@@ -492,50 +492,6 @@ export declare const i18n_fi: {
492
492
  PLAY: string;
493
493
  PAUSE: string;
494
494
  };
495
- LLM: {
496
- SUMMARY: string;
497
- REPHRASE: string;
498
- MENU_TOOLTIP: string;
499
- MENU_DISABLED_TOOLTIP: string;
500
- MENU_SUMMARY_DISABLED_TOOLTIP: string;
501
- UNSUPPORTED_MENU_DISABLED_TOOLTIP: string;
502
- EU_DATA_TOOLTIP: string;
503
- REPHRASE_MODAL: {
504
- TITLE: string;
505
- DESCRIPTION: string;
506
- CLOSE: string;
507
- CANCEL: string;
508
- ACTION: string;
509
- REPHRASING: string;
510
- LIMIT: string;
511
- WRITING_STYLES: {
512
- TITLE: string;
513
- TOOLTIP_GENERAL: string;
514
- TOOLTIP_PROFESSIONAL: string;
515
- TOOLTIP_ACADEMIC: string;
516
- SPECIFIC_STYLE: string;
517
- GENERAL: string;
518
- PROFESSIONAL: string;
519
- ACADEMIC: string;
520
- };
521
- };
522
- SUMMARY_MODAL: {
523
- TITLE: string;
524
- DESCRIPTION: string;
525
- CANCEL: string;
526
- CLOSE: string;
527
- ACTION: string;
528
- REGENERATE: string;
529
- LIMIT: string;
530
- };
531
- ERRORS: {
532
- QUOTA_LIMIT: string;
533
- QUOTA_LIMIT_REACHED: string;
534
- DEFAULT: string;
535
- REPHRASE_REQUEST_TIMEOUT: string;
536
- SUMMARY_REQUEST_TIMEOUT: string;
537
- };
538
- };
539
495
  DICTIONARY: {
540
496
  SOURCE: string;
541
497
  };
package/lib/i18n/lt.d.ts CHANGED
@@ -488,50 +488,6 @@ export declare const i18n_lt: {
488
488
  PLAY: string;
489
489
  PAUSE: string;
490
490
  };
491
- LLM: {
492
- SUMMARY: string;
493
- REPHRASE: string;
494
- MENU_TOOLTIP: string;
495
- MENU_DISABLED_TOOLTIP: string;
496
- MENU_SUMMARY_DISABLED_TOOLTIP: string;
497
- UNSUPPORTED_MENU_DISABLED_TOOLTIP: string;
498
- EU_DATA_TOOLTIP: string;
499
- REPHRASE_MODAL: {
500
- TITLE: string;
501
- DESCRIPTION: string;
502
- CLOSE: string;
503
- CANCEL: string;
504
- ACTION: string;
505
- REPHRASING: string;
506
- LIMIT: string;
507
- WRITING_STYLES: {
508
- TITLE: string;
509
- TOOLTIP_GENERAL: string;
510
- TOOLTIP_PROFESSIONAL: string;
511
- TOOLTIP_ACADEMIC: string;
512
- SPECIFIC_STYLE: string;
513
- GENERAL: string;
514
- PROFESSIONAL: string;
515
- ACADEMIC: string;
516
- };
517
- };
518
- SUMMARY_MODAL: {
519
- TITLE: string;
520
- DESCRIPTION: string;
521
- CANCEL: string;
522
- CLOSE: string;
523
- ACTION: string;
524
- REGENERATE: string;
525
- LIMIT: string;
526
- };
527
- ERRORS: {
528
- QUOTA_LIMIT: string;
529
- QUOTA_LIMIT_REACHED: string;
530
- DEFAULT: string;
531
- REPHRASE_REQUEST_TIMEOUT: string;
532
- SUMMARY_REQUEST_TIMEOUT: string;
533
- };
534
- };
535
491
  DICTIONARY: {
536
492
  SOURCE: string;
537
493
  };
package/lib/i18n/lv.d.ts CHANGED
@@ -60,6 +60,10 @@ export declare const i18n_lv: {
60
60
  WORD_TYPE_CONJUNCTION: string;
61
61
  WORD_TYPE_INTERJECTION: string;
62
62
  WORD_TYPE_PRONOUN: string;
63
+ SUMMARY: {
64
+ TITLE: string;
65
+ CREATING: string;
66
+ };
63
67
  };
64
68
  LANGUAGES: {
65
69
  AUTO: string;
@@ -261,12 +265,14 @@ export declare const i18n_lv: {
261
265
  CLEAR_FILES: string;
262
266
  SHOW_EXTENSIONS: string;
263
267
  REFRESH: string;
268
+ CREATE_SUMMARY: string;
264
269
  };
265
270
  TOOLTIPS: {
266
271
  COPY: string;
267
272
  SWAP_LANGUAGES: string;
268
273
  REFRESH: string;
269
274
  DISLIKE: string;
275
+ CREATE_SUMMARY: string;
270
276
  };
271
277
  PDF_CONVERSION: {
272
278
  TITLE_1: string;
@@ -489,50 +495,6 @@ export declare const i18n_lv: {
489
495
  PLAY: string;
490
496
  PAUSE: string;
491
497
  };
492
- LLM: {
493
- SUMMARY: string;
494
- REPHRASE: string;
495
- MENU_TOOLTIP: string;
496
- MENU_DISABLED_TOOLTIP: string;
497
- MENU_SUMMARY_DISABLED_TOOLTIP: string;
498
- UNSUPPORTED_MENU_DISABLED_TOOLTIP: string;
499
- EU_DATA_TOOLTIP: string;
500
- REPHRASE_MODAL: {
501
- TITLE: string;
502
- DESCRIPTION: string;
503
- CLOSE: string;
504
- CANCEL: string;
505
- ACTION: string;
506
- REPHRASING: string;
507
- LIMIT: string;
508
- WRITING_STYLES: {
509
- TITLE: string;
510
- TOOLTIP_GENERAL: string;
511
- TOOLTIP_PROFESSIONAL: string;
512
- TOOLTIP_ACADEMIC: string;
513
- SPECIFIC_STYLE: string;
514
- GENERAL: string;
515
- PROFESSIONAL: string;
516
- ACADEMIC: string;
517
- };
518
- };
519
- SUMMARY_MODAL: {
520
- TITLE: string;
521
- DESCRIPTION: string;
522
- CANCEL: string;
523
- CLOSE: string;
524
- ACTION: string;
525
- REGENERATE: string;
526
- LIMIT: string;
527
- };
528
- ERRORS: {
529
- QUOTA_LIMIT: string;
530
- QUOTA_LIMIT_REACHED: string;
531
- DEFAULT: string;
532
- REPHRASE_REQUEST_TIMEOUT: string;
533
- SUMMARY_REQUEST_TIMEOUT: string;
534
- };
535
- };
536
498
  DICTIONARY: {
537
499
  SOURCE: string;
538
500
  };
package/lib/i18n/pl.d.ts CHANGED
@@ -488,50 +488,6 @@ export declare const i18n_pl: {
488
488
  PLAY: string;
489
489
  PAUSE: string;
490
490
  };
491
- LLM: {
492
- SUMMARY: string;
493
- REPHRASE: string;
494
- MENU_TOOLTIP: string;
495
- MENU_DISABLED_TOOLTIP: string;
496
- MENU_SUMMARY_DISABLED_TOOLTIP: string;
497
- UNSUPPORTED_MENU_DISABLED_TOOLTIP: string;
498
- EU_DATA_TOOLTIP: string;
499
- REPHRASE_MODAL: {
500
- TITLE: string;
501
- DESCRIPTION: string;
502
- CLOSE: string;
503
- CANCEL: string;
504
- ACTION: string;
505
- REPHRASING: string;
506
- LIMIT: string;
507
- WRITING_STYLES: {
508
- TITLE: string;
509
- TOOLTIP_GENERAL: string;
510
- TOOLTIP_PROFESSIONAL: string;
511
- TOOLTIP_ACADEMIC: string;
512
- SPECIFIC_STYLE: string;
513
- GENERAL: string;
514
- PROFESSIONAL: string;
515
- ACADEMIC: string;
516
- };
517
- };
518
- SUMMARY_MODAL: {
519
- TITLE: string;
520
- DESCRIPTION: string;
521
- CANCEL: string;
522
- CLOSE: string;
523
- ACTION: string;
524
- REGENERATE: string;
525
- LIMIT: string;
526
- };
527
- ERRORS: {
528
- QUOTA_LIMIT: string;
529
- QUOTA_LIMIT_REACHED: string;
530
- DEFAULT: string;
531
- REPHRASE_REQUEST_TIMEOUT: string;
532
- SUMMARY_REQUEST_TIMEOUT: string;
533
- };
534
- };
535
491
  DICTIONARY: {
536
492
  SOURCE: string;
537
493
  };
@@ -3,8 +3,4 @@ export interface ITldLLMConfig {
3
3
  isEnabled?: boolean;
4
4
  /** LLM API service url. */
5
5
  apiUrl?: string;
6
- /** Max char length. */
7
- maxCharLength?: number;
8
- /** Set this to true, to avoid quota service requests. */
9
- useLocalQuota?: boolean;
10
6
  }
@@ -15,8 +15,10 @@ import * as i13 from "@angular/material/progress-bar";
15
15
  import * as i14 from "@angular/material/button";
16
16
  import * as i15 from "@angular/material/dialog";
17
17
  import * as i16 from "@angular/material/menu";
18
+ import * as i17 from "@angular/material/icon";
19
+ import * as i18 from "@angular/material/tooltip";
18
20
  export declare class TldDocumentModule {
19
21
  static ɵfac: i0.ɵɵFactoryDeclaration<TldDocumentModule, never>;
20
- static ɵmod: i0.ɵɵNgModuleDeclaration<TldDocumentModule, [typeof i1.TldTranslateFileComponent, typeof i2.TldTranslateFileMultipleComponent, typeof i3.TldTranslateFileDownloadButtonComponent, typeof i4.TldTranslatePdfConversionHelpComponent, typeof i5.TldTranslateImageConversionHelpComponent, typeof i6.TldFileTranslateBaseComponent], [typeof i7.CommonModule, typeof i8.TldCommonModule, typeof i9.TranslateModule, typeof i10.FlexLayoutModule, typeof i11.CloseButtonModule, typeof i11.InlineMessageModule, typeof i12.VendorDisclaimerModule, typeof i11.FileUploadModule, typeof i13.MatProgressBarModule, typeof i14.MatButtonModule, typeof i15.MatDialogModule, typeof i16.MatMenuModule], [typeof i1.TldTranslateFileComponent, typeof i2.TldTranslateFileMultipleComponent, typeof i3.TldTranslateFileDownloadButtonComponent]>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TldDocumentModule, [typeof i1.TldTranslateFileComponent, typeof i2.TldTranslateFileMultipleComponent, typeof i3.TldTranslateFileDownloadButtonComponent, typeof i4.TldTranslatePdfConversionHelpComponent, typeof i5.TldTranslateImageConversionHelpComponent, typeof i6.TldFileTranslateBaseComponent], [typeof i7.CommonModule, typeof i8.TldCommonModule, typeof i9.TranslateModule, typeof i10.FlexLayoutModule, typeof i11.CloseButtonModule, typeof i11.InlineMessageModule, typeof i12.VendorDisclaimerModule, typeof i11.FileUploadModule, typeof i13.MatProgressBarModule, typeof i14.MatButtonModule, typeof i15.MatDialogModule, typeof i16.MatMenuModule, typeof i17.MatIconModule, typeof i18.MatTooltipModule], [typeof i1.TldTranslateFileComponent, typeof i2.TldTranslateFileMultipleComponent, typeof i3.TldTranslateFileDownloadButtonComponent]>;
21
23
  static ɵinj: i0.ɵɵInjectorDeclaration<TldDocumentModule>;
22
24
  }
@@ -11,6 +11,7 @@ import { TldTranslateTextService } from '../../services/tld-translate-text.servi
11
11
  import { TldTranslateSourceComponent } from '../tld-translate-source/tld-translate-source.component';
12
12
  import { ActiveData, AlertService } from '@tilde-nlp/ngx-common';
13
13
  import { TldDictateComponent } from '../../../tld-audio';
14
+ import { LLMService } from '@tilde-nlp/ngx-services';
14
15
  import * as i0 from "@angular/core";
15
16
  export declare class TldTranslateTextComponent implements OnInit, OnDestroy {
16
17
  private readonly translateTextService;
@@ -23,6 +24,7 @@ export declare class TldTranslateTextComponent implements OnInit, OnDestroy {
23
24
  private readonly voiceInputService;
24
25
  private readonly fileService;
25
26
  private readonly breakpointObserver;
27
+ private readonly llmService;
26
28
  sourceComponent: TldTranslateSourceComponent;
27
29
  dictateComponent: TldDictateComponent;
28
30
  filePreviewProgress: number;
@@ -49,6 +51,7 @@ export declare class TldTranslateTextComponent implements OnInit, OnDestroy {
49
51
  get isDictating(): boolean;
50
52
  get maxDictateLength(): number;
51
53
  get sourceLanguage(): string;
54
+ get targetLanguage(): string;
52
55
  get hasTranslatedParagraphs(): boolean;
53
56
  get isEmptyTarget(): boolean;
54
57
  get showTargetPlaceholder(): string;
@@ -57,6 +60,7 @@ export declare class TldTranslateTextComponent implements OnInit, OnDestroy {
57
60
  get textToSpeechTargetSettings(): import("../../../../components/shared/text-to-speech/models/text-to-speech-settings.model").TextToSpeechSettings;
58
61
  get textToSpeechSourceSettings(): import("../../../../components/shared/text-to-speech/models/text-to-speech-settings.model").TextToSpeechSettings;
59
62
  get uploadIconName(): string;
63
+ get isLlmEnabled(): boolean;
60
64
  audioInputVisible: boolean;
61
65
  targetSentenceSelect: boolean;
62
66
  get urlToTranslate(): string;
@@ -66,6 +70,7 @@ export declare class TldTranslateTextComponent implements OnInit, OnDestroy {
66
70
  readonly copyButtonId = "tld-copy-to-clipboard";
67
71
  get translatedText(): string;
68
72
  get firstParagraphTranslated(): boolean;
73
+ get isTranslating(): boolean;
69
74
  get translationError(): boolean;
70
75
  get hasDictionary(): boolean;
71
76
  get dictionaryEntry(): import("@tilde-nlp/ngx-translate").Dictionary[];
@@ -80,13 +85,17 @@ export declare class TldTranslateTextComponent implements OnInit, OnDestroy {
80
85
  dictateConfig: IDictateConfiguration;
81
86
  visibleExtensions: string;
82
87
  maxSizeMB: number;
88
+ isSummarazing: boolean;
89
+ summarizedText: string;
83
90
  private isMobile;
84
91
  private readonly destroy$;
85
92
  private readonly mobileBreakpoints;
86
- constructor(translateTextService: TldTranslateTextService, clipboard: Clipboard, alerts: AlertService, config: TldTranslateConfigService, tldScrollService: TldScrollService, tldSystem: TldTranslateSystemManagementService, audioService: AudioRecordService, voiceInputService: TldVoiceInputService, fileService: TldTranslateFileService, breakpointObserver: BreakpointObserver);
93
+ constructor(translateTextService: TldTranslateTextService, clipboard: Clipboard, alerts: AlertService, config: TldTranslateConfigService, tldScrollService: TldScrollService, tldSystem: TldTranslateSystemManagementService, audioService: AudioRecordService, voiceInputService: TldVoiceInputService, fileService: TldTranslateFileService, breakpointObserver: BreakpointObserver, llmService: LLMService);
87
94
  ngOnInit(): void;
88
95
  copy(): void;
96
+ copySummarizedText(): void;
89
97
  refresh(): void;
98
+ createSummary(): void;
90
99
  switchFocusFromCopy(event: any): void;
91
100
  fileChange(files: File[]): void;
92
101
  fileUploadError(error: any): void;
@@ -99,6 +108,7 @@ export declare class TldTranslateTextComponent implements OnInit, OnDestroy {
99
108
  ngOnDestroy(): void;
100
109
  closeProgressIndicator(): void;
101
110
  private subscribeToBreakpointObserver;
111
+ private clearSummarization;
102
112
  static ɵfac: i0.ɵɵFactoryDeclaration<TldTranslateTextComponent, never>;
103
113
  static ɵcmp: i0.ɵɵComponentDeclaration<TldTranslateTextComponent, "tld-translate-text", never, { "filePreviewProgress": { "alias": "filePreviewProgress"; "required": false; }; }, { "onFileChange": "onFileChange"; }, never, never, false, never>;
104
114
  }
@@ -25,8 +25,9 @@ import * as i23 from "@angular/material/input";
25
25
  import * as i24 from "@angular/material/form-field";
26
26
  import * as i25 from "@angular/material/dialog";
27
27
  import * as i26 from "@angular/material/tooltip";
28
+ import * as i27 from "@angular/material/icon";
28
29
  export declare class TldTextModule {
29
30
  static ɵfac: i0.ɵɵFactoryDeclaration<TldTextModule, never>;
30
- static ɵmod: i0.ɵɵNgModuleDeclaration<TldTextModule, [typeof i1.TldTranslateSourceComponent, typeof i2.TldTranslateSuggestComponent, typeof i3.TldTranslateSuggestDialogComponent, typeof i4.TldTranslateTextComponent, typeof i5.TldDictionaryComponent, typeof i6.TextareaWithBackgroundComponent, typeof i7.HighlightTreeComponent, typeof i8.ProgressIndicatorComponent], [typeof i9.CommonModule, typeof i10.TranslateModule, typeof i11.FormsModule, typeof i12.TldCommonModule, typeof i13.ClipboardModule, typeof i14.TldAudioModule, typeof i15.CloseButtonModule, typeof i15.ExtensionDialogModule, typeof i16.LayoutModule, typeof i17.MatProgressBarModule, typeof i18.VendorDisclaimerModule, typeof i19.TextToSpeechModule, typeof i15.FileUploadModule, typeof i20.MatButtonModule, typeof i21.MatMenuModule, typeof i22.FlexLayoutModule, typeof i23.MatInputModule, typeof i24.MatFormFieldModule, typeof i25.MatDialogModule, typeof i26.MatTooltipModule], [typeof i1.TldTranslateSourceComponent, typeof i2.TldTranslateSuggestComponent, typeof i4.TldTranslateTextComponent]>;
31
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TldTextModule, [typeof i1.TldTranslateSourceComponent, typeof i2.TldTranslateSuggestComponent, typeof i3.TldTranslateSuggestDialogComponent, typeof i4.TldTranslateTextComponent, typeof i5.TldDictionaryComponent, typeof i6.TextareaWithBackgroundComponent, typeof i7.HighlightTreeComponent, typeof i8.ProgressIndicatorComponent], [typeof i9.CommonModule, typeof i10.TranslateModule, typeof i11.FormsModule, typeof i12.TldCommonModule, typeof i13.ClipboardModule, typeof i14.TldAudioModule, typeof i15.CloseButtonModule, typeof i15.ExtensionDialogModule, typeof i16.LayoutModule, typeof i17.MatProgressBarModule, typeof i18.VendorDisclaimerModule, typeof i19.TextToSpeechModule, typeof i15.FileUploadModule, typeof i20.MatButtonModule, typeof i21.MatMenuModule, typeof i22.FlexLayoutModule, typeof i23.MatInputModule, typeof i24.MatFormFieldModule, typeof i25.MatDialogModule, typeof i26.MatTooltipModule, typeof i27.MatIconModule], [typeof i1.TldTranslateSourceComponent, typeof i2.TldTranslateSuggestComponent, typeof i4.TldTranslateTextComponent]>;
31
32
  static ɵinj: i0.ɵɵInjectorDeclaration<TldTextModule>;
32
33
  }
@@ -21,6 +21,6 @@ import * as i19 from "@angular/material/tooltip";
21
21
  import * as i20 from "@angular/material/button";
22
22
  export declare class TldTooltipModule {
23
23
  static ɵfac: i0.ɵɵFactoryDeclaration<TldTooltipModule, never>;
24
- static ɵmod: i0.ɵɵNgModuleDeclaration<TldTooltipModule, [typeof i1.TldTranslateSwitcherComponent, typeof i2.TldDomainListComponent, typeof i3.TranslationSystemPickerComponent, typeof i4.TranslationSystemPickerDropdownComponent, typeof i5.TranslationSystemPickerLanguageListComponent, typeof i6.TranslationSystemPickerSystemListComponent, typeof i7.TranslationSystemPickerFilterComponent, typeof i8.TranslationSystemPickerDropdownBodyComponent, typeof i9.TranslationSystemPickerButtonComponent], [typeof i10.FormsModule, typeof i11.CommonModule, typeof i12.FlexLayoutModule, typeof i13.TranslateModule, typeof i14.TldCommonModule, typeof i15.SortTranslationsModule, typeof i15.FilterWithHighlightModule, typeof i15.ClickOutsideModule, typeof i15.OpenCloseButtonModule, typeof i15.TerminologyModule, typeof i16.MatFormFieldModule, typeof i17.MatInputModule, typeof i18.MatIconModule, typeof i19.MatTooltipModule, typeof i20.MatButtonModule, typeof i15.LanguageTranslateModule, typeof i15.LLMModule], [typeof i1.TldTranslateSwitcherComponent, typeof i2.TldDomainListComponent, typeof i3.TranslationSystemPickerComponent, typeof i4.TranslationSystemPickerDropdownComponent]>;
24
+ static ɵmod: i0.ɵɵNgModuleDeclaration<TldTooltipModule, [typeof i1.TldTranslateSwitcherComponent, typeof i2.TldDomainListComponent, typeof i3.TranslationSystemPickerComponent, typeof i4.TranslationSystemPickerDropdownComponent, typeof i5.TranslationSystemPickerLanguageListComponent, typeof i6.TranslationSystemPickerSystemListComponent, typeof i7.TranslationSystemPickerFilterComponent, typeof i8.TranslationSystemPickerDropdownBodyComponent, typeof i9.TranslationSystemPickerButtonComponent], [typeof i10.FormsModule, typeof i11.CommonModule, typeof i12.FlexLayoutModule, typeof i13.TranslateModule, typeof i14.TldCommonModule, typeof i15.SortTranslationsModule, typeof i15.FilterWithHighlightModule, typeof i15.ClickOutsideModule, typeof i15.OpenCloseButtonModule, typeof i15.TerminologyModule, typeof i16.MatFormFieldModule, typeof i17.MatInputModule, typeof i18.MatIconModule, typeof i19.MatTooltipModule, typeof i20.MatButtonModule, typeof i15.LanguageTranslateModule], [typeof i1.TldTranslateSwitcherComponent, typeof i2.TldDomainListComponent, typeof i3.TranslationSystemPickerComponent, typeof i4.TranslationSystemPickerDropdownComponent]>;
25
25
  static ɵinj: i0.ɵɵInjectorDeclaration<TldTooltipModule>;
26
26
  }
@@ -50,7 +50,6 @@ export declare class TranslationSystemPickerDropdownComponent implements OnInit,
50
50
  close(): void;
51
51
  filterChange(filter: string): void;
52
52
  ngOnDestroy(): void;
53
- toggleFilter(): void;
54
53
  clearFilter(): void;
55
54
  back(): void;
56
55
  nextStep(): void;
@@ -1,6 +1,6 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
2
  import { TranslationSystemPickerService } from './services/translation-system-picker.service';
3
- import { TldTranslateConfigService, TldTranslateSystemManagementService } from '../../tld-common/services';
3
+ import { TldTranslateSystemManagementService } from '../../tld-common/services';
4
4
  import { ActiveData } from '@tilde-nlp/ngx-common';
5
5
  import { TldTranslateFileService } from '../../tld-document/services';
6
6
  import { TldTranslateTextService } from '../../tld-text/services';
@@ -10,7 +10,6 @@ export declare class TranslationSystemPickerComponent implements OnInit, OnDestr
10
10
  private readonly tldSystem;
11
11
  private readonly file;
12
12
  private readonly text;
13
- private readonly config;
14
13
  isCollectionsActivated: boolean;
15
14
  get isSourceOpened(): boolean;
16
15
  get isTargetOpened(): boolean;
@@ -21,10 +20,8 @@ export declare class TranslationSystemPickerComponent implements OnInit, OnDestr
21
20
  get collectionsVisible(): boolean;
22
21
  get isFileTranslating(): boolean;
23
22
  get translatedText(): string;
24
- get isLLMEnabled(): boolean;
25
23
  get isTranslating(): boolean;
26
24
  get isFileView(): boolean;
27
- get disabledLLMMenuText(): "" | "LLM.UNSUPPORTED_MENU_DISABLED_TOOLTIP" | "LLM.MENU_DISABLED_TOOLTIP";
28
25
  readonly sourceAriaLabel = "SYSTEM_PICKER.OPEN_SOURCE_ARIA_LABEL";
29
26
  readonly targetAriaLabel = "SYSTEM_PICKER.OPEN_TARGET_ARIA_LABEL";
30
27
  domainLength: number;
@@ -40,7 +37,7 @@ export declare class TranslationSystemPickerComponent implements OnInit, OnDestr
40
37
  targetLanguageCode: string;
41
38
  detectedLanguage?: string;
42
39
  };
43
- constructor(systemPickerService: TranslationSystemPickerService, tldSystem: TldTranslateSystemManagementService, file: TldTranslateFileService, text: TldTranslateTextService, config: TldTranslateConfigService);
40
+ constructor(systemPickerService: TranslationSystemPickerService, tldSystem: TldTranslateSystemManagementService, file: TldTranslateFileService, text: TldTranslateTextService);
44
41
  ngOnInit(): void;
45
42
  sourceClick(event: MouseEvent): void;
46
43
  targetClick(event: MouseEvent): void;
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
2
  import { TranslateService } from '@ngx-translate/core';
3
- import { ActiveData, AlertService, NotificationMessage } from '@tilde-nlp/ngx-common';
3
+ import { ActiveData, AlertService, IconService, NotificationMessage } from '@tilde-nlp/ngx-common';
4
4
  import { AudioRecordService, TldVoiceInputService } from './modules/tld-audio/services';
5
5
  import { TldTranslateButtonService } from './modules/tld-common/components/translate-button/tld-translate-button.service';
6
6
  import { IAuthOptions, languageMenuVersion } from './modules/tld-common/models';
@@ -26,6 +26,7 @@ export declare class TldTranslateComponent implements OnInit, OnDestroy {
26
26
  private readonly wtwQueryService;
27
27
  private readonly systemPickerService;
28
28
  private readonly terminologyService;
29
+ private readonly iconService;
29
30
  onError: EventEmitter<any>;
30
31
  onSystemChange: EventEmitter<ActiveData>;
31
32
  tldTranslateBody: TldTranslateBodyComponent;
@@ -48,7 +49,7 @@ export declare class TldTranslateComponent implements OnInit, OnDestroy {
48
49
  readonly languageMenuV1 = languageMenuVersion.V1;
49
50
  readonly languageMenuV2 = languageMenuVersion.V2;
50
51
  private readonly destroy$;
51
- constructor(translate: TranslateService, translateFileService: TldTranslateFileService, translateTextService: TldTranslateTextService, configService: TldTranslateConfigService, alerts: AlertService, translateButtonService: TldTranslateButtonService, tldSystem: TldTranslateSystemManagementService, audioService: AudioRecordService, voiceProcessingService: TldVoiceInputService, wtwQueryService: WtwLinkParamsService, systemPickerService: TranslationSystemPickerService, terminologyService: TerminologyService);
52
+ constructor(translate: TranslateService, translateFileService: TldTranslateFileService, translateTextService: TldTranslateTextService, configService: TldTranslateConfigService, alerts: AlertService, translateButtonService: TldTranslateButtonService, tldSystem: TldTranslateSystemManagementService, audioService: AudioRecordService, voiceProcessingService: TldVoiceInputService, wtwQueryService: WtwLinkParamsService, systemPickerService: TranslationSystemPickerService, terminologyService: TerminologyService, iconService: IconService);
52
53
  changeAuth(authOptions: IAuthOptions): void;
53
54
  initializeWidget(): void;
54
55
  ngOnInit(): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tilde-nlp/ngx-translate",
3
- "version": "7.0.19",
3
+ "version": "7.0.21",
4
4
  "description": "Tilde Translate box - solution for machine translating text and documents. Built with angular, but also exposed as web component.",
5
5
  "keywords": [
6
6
  "Machine translation",