@tilde-nlp/ngx-translate 2.0.2 → 2.0.3-deepl-1
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/esm2020/lib/i18n/en.mjs +5 -4
- package/esm2020/lib/i18n/lv.mjs +4 -2
- package/esm2020/lib/modules/tld-common/components/tld-list-menu/tld-list-menu.component.mjs +4 -3
- package/esm2020/lib/modules/tld-common/index.mjs +1 -1
- package/esm2020/lib/modules/tld-common/models/configs/tld-translate-text-config.model.mjs +1 -1
- package/esm2020/lib/modules/tld-common/pipes/capitalize.pipe.mjs +16 -0
- package/esm2020/lib/modules/tld-common/pipes/index.mjs +2 -1
- package/esm2020/lib/modules/tld-common/services/tld-alert.service.mjs +11 -3
- package/esm2020/lib/modules/tld-common/services/tld-translate-config.service.mjs +2 -1
- package/esm2020/lib/modules/tld-common/tld-common.module.mjs +9 -4
- package/esm2020/lib/modules/tld-document/services/tld-translate-file.service.mjs +6 -2
- package/esm2020/lib/modules/tld-text/components/textarea-with-background/textarea-with-background.component.mjs +2 -2
- package/esm2020/lib/modules/tld-text/components/tld-translate-text/tld-translate-text.component.mjs +2 -2
- package/esm2020/lib/modules/tld-text/services/tld-translate-text.service.mjs +5 -1
- package/esm2020/lib/modules/tld-tooltip/tld-domain-list/tld-domain-list.component.mjs +6 -5
- package/esm2020/lib/modules/tld-tooltip/tld-translate-switcher/tld-translate-switcher.component.mjs +5 -4
- package/esm2020/lib/tld-translate.component.mjs +7 -3
- package/fesm2015/tilde-nlp-ngx-translate.mjs +166 -123
- package/fesm2015/tilde-nlp-ngx-translate.mjs.map +1 -1
- package/fesm2020/tilde-nlp-ngx-translate.mjs +136 -94
- package/fesm2020/tilde-nlp-ngx-translate.mjs.map +1 -1
- package/lib/i18n/en.d.ts +2 -1
- package/lib/i18n/lv.d.ts +2 -0
- package/lib/modules/tld-common/models/configs/tld-translate-text-config.model.d.ts +2 -0
- package/lib/modules/tld-common/pipes/capitalize.pipe.d.ts +7 -0
- package/lib/modules/tld-common/pipes/index.d.ts +1 -0
- package/lib/modules/tld-common/services/tld-alert.service.d.ts +2 -0
- package/lib/modules/tld-common/tld-common.module.d.ts +8 -7
- package/lib/modules/tld-text/services/tld-translate-text.service.d.ts +1 -0
- package/lib/modules/tld-tooltip/tld-domain-list/tld-domain-list.component.d.ts +1 -1
- package/lib/modules/tld-tooltip/tld-translate-switcher/tld-translate-switcher.component.d.ts +1 -1
- package/lib/tld-translate.component.d.ts +2 -1
- package/package.json +2 -2
- package/src/assets/webcomponent/styles.css +1 -1
- package/src/assets/webcomponent/tld-translate.js +1 -1
- package/tilde-nlp-ngx-translate-2.0.3-deepl-1.tgz +0 -0
- package/tilde-nlp-ngx-translate-2.0.2.tgz +0 -0
|
@@ -563,8 +563,7 @@ const i18n_en = {
|
|
|
563
563
|
"E_12_TITLE": "Text size limit",
|
|
564
564
|
"E_12": "Text size limit reached. Send less text in the request.",
|
|
565
565
|
"E_12_SUPPORT": " To increase the text size limit, please contact <a href=\"mailto:{{email}}\"><strong>support</strong></a>.",
|
|
566
|
-
"
|
|
567
|
-
"E_21": "You will be able to translate in a few moments.",
|
|
566
|
+
"E_21": "The translation engine is starting up, this may take a moment!",
|
|
568
567
|
"E_22_TITLE": "Machine translation engine not found",
|
|
569
568
|
"E_22": "Machine translation engine not found.",
|
|
570
569
|
"E_22_SUPPORT": " Please contact <a href=\"mailto:{{email}}\"><strong>support</strong></a>.",
|
|
@@ -652,7 +651,9 @@ const i18n_en = {
|
|
|
652
651
|
"KO": "Korean",
|
|
653
652
|
"TR": "Turkish",
|
|
654
653
|
"HR": "Croatian",
|
|
655
|
-
"RO": "Romanian"
|
|
654
|
+
"RO": "Romanian",
|
|
655
|
+
"UZ": "Uzbek",
|
|
656
|
+
"ID": "Indonesian"
|
|
656
657
|
},
|
|
657
658
|
"ARIA_LABELS": {
|
|
658
659
|
"CLOSE_BUTTON": "Clear",
|
|
@@ -2115,7 +2116,9 @@ const i18n_lv = {
|
|
|
2115
2116
|
"KO": "Korejiešu",
|
|
2116
2117
|
"TR": "Turku",
|
|
2117
2118
|
"HR": "Horvātu",
|
|
2118
|
-
"RO": "Rumāņu"
|
|
2119
|
+
"RO": "Rumāņu",
|
|
2120
|
+
"UZ": "Uzbeku",
|
|
2121
|
+
"ID": "Indonēziešu"
|
|
2119
2122
|
},
|
|
2120
2123
|
"MULTIPLE_FILES": {
|
|
2121
2124
|
"APPEND": "Pievienot failus",
|
|
@@ -3532,6 +3535,7 @@ class TldTranslateConfigService {
|
|
|
3532
3535
|
this._textConfig.progressIndicatorTimeoutMiliSeconds = text?.progressIndicatorTimeoutMiliSeconds ?? 2000;
|
|
3533
3536
|
this._textConfig.progressIndicatorTitleVisibleForVendors = text?.progressIndicatorTitleVisibleForVendors ?? ["ETranslation"];
|
|
3534
3537
|
this._textConfig.progressIndicatorVisible = text?.progressIndicatorVisible ?? false;
|
|
3538
|
+
this._textConfig.displaySingleAvailableDomain = text?.displaySingleAvailableDomain ?? false;
|
|
3535
3539
|
this._audioConfig.audioTextInput = audio?.audioTextInput ?? false;
|
|
3536
3540
|
// Not setting default url because there is no service provided by Tilde and this is not used by default in website project.
|
|
3537
3541
|
this._audioConfig.audioApiUrl = audio?.audioApiUrl;
|
|
@@ -3632,7 +3636,13 @@ class TldAlertService {
|
|
|
3632
3636
|
getMessages() {
|
|
3633
3637
|
return this.messageSubject.asObservable();
|
|
3634
3638
|
}
|
|
3639
|
+
basic(text, params) {
|
|
3640
|
+
this.emit(NotificationMessageType.BASIC, text, null, params);
|
|
3641
|
+
}
|
|
3635
3642
|
info(text, params) {
|
|
3643
|
+
this.emit(NotificationMessageType.INFO, text, null, params);
|
|
3644
|
+
}
|
|
3645
|
+
success(text, params) {
|
|
3636
3646
|
this.emit(NotificationMessageType.SUCCESS, text, null, params);
|
|
3637
3647
|
}
|
|
3638
3648
|
error(text, error, params) {
|
|
@@ -3700,9 +3710,11 @@ class TldAlertService {
|
|
|
3700
3710
|
return this.errorKey + (errorKey ?? this.defaultErrorKey);
|
|
3701
3711
|
}
|
|
3702
3712
|
emit(type, text, error, params) {
|
|
3713
|
+
// if there is no title for this text, text will be shown as title
|
|
3714
|
+
const title = this.findPostfix(text, this.titlePostFix) ?? text;
|
|
3703
3715
|
const message = {
|
|
3704
|
-
body: text,
|
|
3705
|
-
title
|
|
3716
|
+
body: text === title ? null : text,
|
|
3717
|
+
title,
|
|
3706
3718
|
type,
|
|
3707
3719
|
localizationParams: { ...this.defaultParams, ...params },
|
|
3708
3720
|
support: this.config.coreConfig.contactSupport ? this.findPostfix(text, this.supportPostFix) : null
|
|
@@ -3781,6 +3793,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
3781
3793
|
}]
|
|
3782
3794
|
}], ctorParameters: function () { return [{ type: i1$1.TranslateService }]; } });
|
|
3783
3795
|
|
|
3796
|
+
class CapitalizePipe {
|
|
3797
|
+
transform(value) {
|
|
3798
|
+
return `${value.charAt(0).toUpperCase()}${value.slice(1)}`;
|
|
3799
|
+
}
|
|
3800
|
+
}
|
|
3801
|
+
CapitalizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
3802
|
+
CapitalizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CapitalizePipe, name: "capitalize" });
|
|
3803
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CapitalizePipe, decorators: [{
|
|
3804
|
+
type: Pipe,
|
|
3805
|
+
args: [{
|
|
3806
|
+
name: 'capitalize',
|
|
3807
|
+
}]
|
|
3808
|
+
}] });
|
|
3809
|
+
|
|
3784
3810
|
class TldTranslateAchievementComponent {
|
|
3785
3811
|
constructor() {
|
|
3786
3812
|
this.link = "https://tilde.com/news/tilde-machine-translation-technology-announced-worlds-most-accurate-wmt-competition";
|
|
@@ -4185,10 +4211,10 @@ class TldListMenuComponent {
|
|
|
4185
4211
|
}
|
|
4186
4212
|
}
|
|
4187
4213
|
TldListMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldListMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4188
|
-
TldListMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TldListMenuComponent, selector: "tld-list-menu", inputs: { titleKey: "titleKey", list: "list", showContent: "showContent", selectedValue: "selectedValue", disabled: "disabled", ariaLabel: "ariaLabel", valueKey: "valueKey", testId: "testId" }, outputs: { selectionChange: "selectionChange" }, viewQueries: [{ propertyName: "menu", first: true, predicate: MatMenu, descendants: true }], ngImport: i0, template: "<tld-open-close-button [isOpened]=\"state.menuOpen\" #state=\"matMenuTrigger\" [disabled]=\"disabled\"\r\n\r\n[matMenuTriggerFor]=\"listMenu\" (menuOpened)=\"onMenuOpen()\" [ariaLabelCode]=\"ariaLabel\">\r\n <ng-content *ngIf=\"showContent\"></ng-content>\r\n <ng-container *ngIf=\"!showContent && selected\">\r\n <span>{{(titleKey? selected[titleKey]:selected) |
|
|
4214
|
+
TldListMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TldListMenuComponent, selector: "tld-list-menu", inputs: { titleKey: "titleKey", list: "list", showContent: "showContent", selectedValue: "selectedValue", disabled: "disabled", ariaLabel: "ariaLabel", valueKey: "valueKey", testId: "testId" }, outputs: { selectionChange: "selectionChange" }, viewQueries: [{ propertyName: "menu", first: true, predicate: MatMenu, descendants: true }], ngImport: i0, template: "<tld-open-close-button [isOpened]=\"state.menuOpen\" #state=\"matMenuTrigger\" [disabled]=\"disabled\"\r\n\r\n[matMenuTriggerFor]=\"listMenu\" (menuOpened)=\"onMenuOpen()\" [ariaLabelCode]=\"ariaLabel\">\r\n <ng-content *ngIf=\"showContent\"></ng-content>\r\n <ng-container *ngIf=\"!showContent && selected\">\r\n <span>{{(titleKey? selected[titleKey]:selected) | capitalize}}</span>\r\n </ng-container>\r\n</tld-open-close-button>\r\n<mat-menu #listMenu=\"matMenu\" fxLayout=\"column\">\r\n <ng-container *ngFor=\"let element of list\">\r\n <button fxLayoutAlign=\"start center\" mat-menu-item [attr.aria-label]=\"(titleKey? element[titleKey]:element)\"\r\n *ngIf=\"element\" class=\"tld-list-title\" (click)=\"select(element)\" [disabled]=\"disabled\">\r\n {{(titleKey? element[titleKey]:element) | capitalize}}\r\n </button>\r\n </ng-container>\r\n</mat-menu>", styles: [".tld-list-title{font-weight:500}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3$1.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i3$1.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i3$1.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "directive", type: i4.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i4.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "component", type: TldOpenCloseButtonComponent, selector: "tld-open-close-button", inputs: ["disableFocusOnAction", "isOpened", "disabled", "isIcon", "ariaLabelCode"] }, { kind: "pipe", type: CapitalizePipe, name: "capitalize" }] });
|
|
4189
4215
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldListMenuComponent, decorators: [{
|
|
4190
4216
|
type: Component,
|
|
4191
|
-
args: [{ selector: 'tld-list-menu', template: "<tld-open-close-button [isOpened]=\"state.menuOpen\" #state=\"matMenuTrigger\" [disabled]=\"disabled\"\r\n\r\n[matMenuTriggerFor]=\"listMenu\" (menuOpened)=\"onMenuOpen()\" [ariaLabelCode]=\"ariaLabel\">\r\n <ng-content *ngIf=\"showContent\"></ng-content>\r\n <ng-container *ngIf=\"!showContent && selected\">\r\n <span>{{(titleKey? selected[titleKey]:selected) |
|
|
4217
|
+
args: [{ selector: 'tld-list-menu', template: "<tld-open-close-button [isOpened]=\"state.menuOpen\" #state=\"matMenuTrigger\" [disabled]=\"disabled\"\r\n\r\n[matMenuTriggerFor]=\"listMenu\" (menuOpened)=\"onMenuOpen()\" [ariaLabelCode]=\"ariaLabel\">\r\n <ng-content *ngIf=\"showContent\"></ng-content>\r\n <ng-container *ngIf=\"!showContent && selected\">\r\n <span>{{(titleKey? selected[titleKey]:selected) | capitalize}}</span>\r\n </ng-container>\r\n</tld-open-close-button>\r\n<mat-menu #listMenu=\"matMenu\" fxLayout=\"column\">\r\n <ng-container *ngFor=\"let element of list\">\r\n <button fxLayoutAlign=\"start center\" mat-menu-item [attr.aria-label]=\"(titleKey? element[titleKey]:element)\"\r\n *ngIf=\"element\" class=\"tld-list-title\" (click)=\"select(element)\" [disabled]=\"disabled\">\r\n {{(titleKey? element[titleKey]:element) | capitalize}}\r\n </button>\r\n </ng-container>\r\n</mat-menu>", styles: [".tld-list-title{font-weight:500}\n"] }]
|
|
4192
4218
|
}], propDecorators: { menu: [{
|
|
4193
4219
|
type: ViewChild,
|
|
4194
4220
|
args: [MatMenu]
|
|
@@ -4418,7 +4444,8 @@ TldCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
4418
4444
|
TldOpenCloseButtonComponent,
|
|
4419
4445
|
TranslateDomainPipe,
|
|
4420
4446
|
TldListMenuComponent,
|
|
4421
|
-
SourceAndTargetWrapperComponent
|
|
4447
|
+
SourceAndTargetWrapperComponent,
|
|
4448
|
+
CapitalizePipe], imports: [FormsModule,
|
|
4422
4449
|
CommonModule,
|
|
4423
4450
|
MaterialModule,
|
|
4424
4451
|
TranslateModule,
|
|
@@ -4432,7 +4459,8 @@ TldCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
4432
4459
|
TldOpenCloseButtonComponent,
|
|
4433
4460
|
TranslateDomainPipe,
|
|
4434
4461
|
TldListMenuComponent,
|
|
4435
|
-
SourceAndTargetWrapperComponent
|
|
4462
|
+
SourceAndTargetWrapperComponent,
|
|
4463
|
+
CapitalizePipe] });
|
|
4436
4464
|
TldCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldCommonModule, imports: [FormsModule,
|
|
4437
4465
|
CommonModule,
|
|
4438
4466
|
MaterialModule,
|
|
@@ -4452,7 +4480,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4452
4480
|
TldOpenCloseButtonComponent,
|
|
4453
4481
|
TranslateDomainPipe,
|
|
4454
4482
|
TldListMenuComponent,
|
|
4455
|
-
SourceAndTargetWrapperComponent
|
|
4483
|
+
SourceAndTargetWrapperComponent,
|
|
4484
|
+
CapitalizePipe
|
|
4456
4485
|
],
|
|
4457
4486
|
imports: [
|
|
4458
4487
|
FormsModule,
|
|
@@ -4473,6 +4502,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4473
4502
|
TranslateDomainPipe,
|
|
4474
4503
|
TldListMenuComponent,
|
|
4475
4504
|
SourceAndTargetWrapperComponent,
|
|
4505
|
+
CapitalizePipe
|
|
4476
4506
|
]
|
|
4477
4507
|
}]
|
|
4478
4508
|
}] });
|
|
@@ -4850,6 +4880,76 @@ var FileConversionTypes;
|
|
|
4850
4880
|
FileConversionTypes["IMAGE"] = "IMAGE";
|
|
4851
4881
|
})(FileConversionTypes || (FileConversionTypes = {}));
|
|
4852
4882
|
|
|
4883
|
+
var FileTypeIcons;
|
|
4884
|
+
(function (FileTypeIcons) {
|
|
4885
|
+
FileTypeIcons["WORD"] = "file_type_word";
|
|
4886
|
+
FileTypeIcons["WEB"] = "file_type_web";
|
|
4887
|
+
FileTypeIcons["OTHER"] = "file_type_other";
|
|
4888
|
+
FileTypeIcons["POWERPOINT"] = "file_type_powerpoint";
|
|
4889
|
+
FileTypeIcons["EXCEL"] = "file_type_excel";
|
|
4890
|
+
FileTypeIcons["OFFICE_OTHER"] = "file_type_office_other";
|
|
4891
|
+
FileTypeIcons["PDF"] = "file_type_pdf";
|
|
4892
|
+
FileTypeIcons["SCANNED"] = "file_type_scanned";
|
|
4893
|
+
FileTypeIcons["INTERCHANGE"] = "file_type_interchange";
|
|
4894
|
+
})(FileTypeIcons || (FileTypeIcons = {}));
|
|
4895
|
+
|
|
4896
|
+
var FileCategories;
|
|
4897
|
+
(function (FileCategories) {
|
|
4898
|
+
FileCategories["OFFICE"] = "OFFICE";
|
|
4899
|
+
FileCategories["SCANNED"] = "SCANNED";
|
|
4900
|
+
FileCategories["INTERCHANGE"] = "INTERCHANGE";
|
|
4901
|
+
FileCategories["WEB"] = "WEB";
|
|
4902
|
+
FileCategories["OTHER"] = "OTHER";
|
|
4903
|
+
})(FileCategories || (FileCategories = {}));
|
|
4904
|
+
|
|
4905
|
+
var FileTypes;
|
|
4906
|
+
(function (FileTypes) {
|
|
4907
|
+
FileTypes["WORD"] = "WORD";
|
|
4908
|
+
FileTypes["WEB"] = "WEB";
|
|
4909
|
+
FileTypes["OTHER"] = "OTHER";
|
|
4910
|
+
FileTypes["POWERPOINT"] = "POWERPOINT";
|
|
4911
|
+
FileTypes["EXCEL"] = "EXCEL";
|
|
4912
|
+
FileTypes["OFFICE_OTHER"] = "OFFICE_OTHER";
|
|
4913
|
+
FileTypes["PDF"] = "PDF";
|
|
4914
|
+
FileTypes["SCANNED"] = "SCANNED";
|
|
4915
|
+
FileTypes["INTERCHANGE"] = "INTERCHANGE";
|
|
4916
|
+
})(FileTypes || (FileTypes = {}));
|
|
4917
|
+
|
|
4918
|
+
var FileExtensions;
|
|
4919
|
+
(function (FileExtensions) {
|
|
4920
|
+
FileExtensions["DOC"] = "doc";
|
|
4921
|
+
FileExtensions["DOCX"] = "docx";
|
|
4922
|
+
FileExtensions["XLSX"] = "xlsx";
|
|
4923
|
+
FileExtensions["PPTX"] = "pptx";
|
|
4924
|
+
FileExtensions["ODT"] = "odt";
|
|
4925
|
+
FileExtensions["ODP"] = "odp";
|
|
4926
|
+
FileExtensions["ODS"] = "ods";
|
|
4927
|
+
FileExtensions["TXT"] = "txt";
|
|
4928
|
+
FileExtensions["RTF"] = "rtf";
|
|
4929
|
+
FileExtensions["PAGES"] = "pages";
|
|
4930
|
+
FileExtensions["SXW"] = "sxw";
|
|
4931
|
+
FileExtensions["JPG"] = "jpg";
|
|
4932
|
+
FileExtensions["JPEG"] = "jpeg";
|
|
4933
|
+
FileExtensions["PNG"] = "png";
|
|
4934
|
+
FileExtensions["BMP"] = "bmp";
|
|
4935
|
+
FileExtensions["PDF"] = "pdf";
|
|
4936
|
+
FileExtensions["SDLXLIFF"] = "sdlxliff";
|
|
4937
|
+
FileExtensions["SDLXLF"] = "sdlxlf";
|
|
4938
|
+
FileExtensions["TTX"] = "ttx";
|
|
4939
|
+
FileExtensions["TMX"] = "tmx";
|
|
4940
|
+
FileExtensions["XLF"] = "xlf";
|
|
4941
|
+
FileExtensions["XLIF"] = "xlif";
|
|
4942
|
+
FileExtensions["HTML"] = "html";
|
|
4943
|
+
FileExtensions["HTM"] = "htm";
|
|
4944
|
+
FileExtensions["JSON"] = "json";
|
|
4945
|
+
FileExtensions["XHTML"] = "xhtml";
|
|
4946
|
+
FileExtensions["XHT"] = "xht";
|
|
4947
|
+
FileExtensions["XLIFF"] = "xliff";
|
|
4948
|
+
FileExtensions["TEX"] = "tex";
|
|
4949
|
+
FileExtensions["TTL"] = "ttl";
|
|
4950
|
+
FileExtensions["SRT"] = "srt";
|
|
4951
|
+
})(FileExtensions || (FileExtensions = {}));
|
|
4952
|
+
|
|
4853
4953
|
class TldTranslateFileService {
|
|
4854
4954
|
constructor(fileApi, alerts, sanitizer, config, tldSystem) {
|
|
4855
4955
|
this.fileApi = fileApi;
|
|
@@ -5137,8 +5237,11 @@ class TldTranslateFileService {
|
|
|
5137
5237
|
translationFile.filePreviewProgress = data.percentDone;
|
|
5138
5238
|
}
|
|
5139
5239
|
translatedDocPreview(translationFile) {
|
|
5240
|
+
// show preview for original extension if exists, if not, then preview for docx, if not then try with original filename.
|
|
5241
|
+
const fileName = translationFile.availableExtensions.find(ext => ext.extension === FileExtensions.DOCX)?.fileName
|
|
5242
|
+
?? translationFile.originalFileName;
|
|
5140
5243
|
const params = {
|
|
5141
|
-
fileName:
|
|
5244
|
+
fileName: fileName,
|
|
5142
5245
|
translationDocId: translationFile.id
|
|
5143
5246
|
};
|
|
5144
5247
|
this.fileApi.translatedDocumentPreview(params)
|
|
@@ -6447,76 +6550,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
6447
6550
|
}]
|
|
6448
6551
|
}] });
|
|
6449
6552
|
|
|
6450
|
-
var FileTypeIcons;
|
|
6451
|
-
(function (FileTypeIcons) {
|
|
6452
|
-
FileTypeIcons["WORD"] = "file_type_word";
|
|
6453
|
-
FileTypeIcons["WEB"] = "file_type_web";
|
|
6454
|
-
FileTypeIcons["OTHER"] = "file_type_other";
|
|
6455
|
-
FileTypeIcons["POWERPOINT"] = "file_type_powerpoint";
|
|
6456
|
-
FileTypeIcons["EXCEL"] = "file_type_excel";
|
|
6457
|
-
FileTypeIcons["OFFICE_OTHER"] = "file_type_office_other";
|
|
6458
|
-
FileTypeIcons["PDF"] = "file_type_pdf";
|
|
6459
|
-
FileTypeIcons["SCANNED"] = "file_type_scanned";
|
|
6460
|
-
FileTypeIcons["INTERCHANGE"] = "file_type_interchange";
|
|
6461
|
-
})(FileTypeIcons || (FileTypeIcons = {}));
|
|
6462
|
-
|
|
6463
|
-
var FileCategories;
|
|
6464
|
-
(function (FileCategories) {
|
|
6465
|
-
FileCategories["OFFICE"] = "OFFICE";
|
|
6466
|
-
FileCategories["SCANNED"] = "SCANNED";
|
|
6467
|
-
FileCategories["INTERCHANGE"] = "INTERCHANGE";
|
|
6468
|
-
FileCategories["WEB"] = "WEB";
|
|
6469
|
-
FileCategories["OTHER"] = "OTHER";
|
|
6470
|
-
})(FileCategories || (FileCategories = {}));
|
|
6471
|
-
|
|
6472
|
-
var FileTypes;
|
|
6473
|
-
(function (FileTypes) {
|
|
6474
|
-
FileTypes["WORD"] = "WORD";
|
|
6475
|
-
FileTypes["WEB"] = "WEB";
|
|
6476
|
-
FileTypes["OTHER"] = "OTHER";
|
|
6477
|
-
FileTypes["POWERPOINT"] = "POWERPOINT";
|
|
6478
|
-
FileTypes["EXCEL"] = "EXCEL";
|
|
6479
|
-
FileTypes["OFFICE_OTHER"] = "OFFICE_OTHER";
|
|
6480
|
-
FileTypes["PDF"] = "PDF";
|
|
6481
|
-
FileTypes["SCANNED"] = "SCANNED";
|
|
6482
|
-
FileTypes["INTERCHANGE"] = "INTERCHANGE";
|
|
6483
|
-
})(FileTypes || (FileTypes = {}));
|
|
6484
|
-
|
|
6485
|
-
var FileExtensions;
|
|
6486
|
-
(function (FileExtensions) {
|
|
6487
|
-
FileExtensions["DOC"] = "doc";
|
|
6488
|
-
FileExtensions["DOCX"] = "docx";
|
|
6489
|
-
FileExtensions["XLSX"] = "xlsx";
|
|
6490
|
-
FileExtensions["PPTX"] = "pptx";
|
|
6491
|
-
FileExtensions["ODT"] = "odt";
|
|
6492
|
-
FileExtensions["ODP"] = "odp";
|
|
6493
|
-
FileExtensions["ODS"] = "ods";
|
|
6494
|
-
FileExtensions["TXT"] = "txt";
|
|
6495
|
-
FileExtensions["RTF"] = "rtf";
|
|
6496
|
-
FileExtensions["PAGES"] = "pages";
|
|
6497
|
-
FileExtensions["SXW"] = "sxw";
|
|
6498
|
-
FileExtensions["JPG"] = "jpg";
|
|
6499
|
-
FileExtensions["JPEG"] = "jpeg";
|
|
6500
|
-
FileExtensions["PNG"] = "png";
|
|
6501
|
-
FileExtensions["BMP"] = "bmp";
|
|
6502
|
-
FileExtensions["PDF"] = "pdf";
|
|
6503
|
-
FileExtensions["SDLXLIFF"] = "sdlxliff";
|
|
6504
|
-
FileExtensions["SDLXLF"] = "sdlxlf";
|
|
6505
|
-
FileExtensions["TTX"] = "ttx";
|
|
6506
|
-
FileExtensions["TMX"] = "tmx";
|
|
6507
|
-
FileExtensions["XLF"] = "xlf";
|
|
6508
|
-
FileExtensions["XLIF"] = "xlif";
|
|
6509
|
-
FileExtensions["HTML"] = "html";
|
|
6510
|
-
FileExtensions["HTM"] = "htm";
|
|
6511
|
-
FileExtensions["JSON"] = "json";
|
|
6512
|
-
FileExtensions["XHTML"] = "xhtml";
|
|
6513
|
-
FileExtensions["XHT"] = "xht";
|
|
6514
|
-
FileExtensions["XLIFF"] = "xliff";
|
|
6515
|
-
FileExtensions["TEX"] = "tex";
|
|
6516
|
-
FileExtensions["TTL"] = "ttl";
|
|
6517
|
-
FileExtensions["SRT"] = "srt";
|
|
6518
|
-
})(FileExtensions || (FileExtensions = {}));
|
|
6519
|
-
|
|
6520
6553
|
class ExtensionDialogComponent {
|
|
6521
6554
|
constructor(data) {
|
|
6522
6555
|
this.data = data;
|
|
@@ -7450,6 +7483,7 @@ class TldTranslateTextService {
|
|
|
7450
7483
|
/** How many paragraphs can be translated at the same time. */
|
|
7451
7484
|
this.CONCURRENT_UPLOADS = 5;
|
|
7452
7485
|
this.DEBOUNCE_TIME = 1000;
|
|
7486
|
+
this.standbyEngineNotificationErrorKey = '21';
|
|
7453
7487
|
/** Whether progress indicator should be shown. This value must be set to true only if configured time has passed. */
|
|
7454
7488
|
this._shouldShowProgressIndicator = false;
|
|
7455
7489
|
this._untranslatedParagraphCount = 0;
|
|
@@ -7629,6 +7663,9 @@ class TldTranslateTextService {
|
|
|
7629
7663
|
if (err.status === 500) {
|
|
7630
7664
|
this.alertsService.unhandeledError({ ErrorCode: ErrorCode.TRANSLATION_FAILED });
|
|
7631
7665
|
}
|
|
7666
|
+
else if (err.error.ErrorCode === this.standbyEngineNotificationErrorKey) {
|
|
7667
|
+
this.alertsService.info('ERRORS.E_21');
|
|
7668
|
+
}
|
|
7632
7669
|
else {
|
|
7633
7670
|
this.alertsService.unhandeledError(err);
|
|
7634
7671
|
}
|
|
@@ -7914,10 +7951,10 @@ class TextareaWithBackgroundComponent {
|
|
|
7914
7951
|
}
|
|
7915
7952
|
}
|
|
7916
7953
|
TextareaWithBackgroundComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TextareaWithBackgroundComponent, deps: [{ token: TldAlertService }, { token: TldTranslateTextService }], target: i0.ɵɵFactoryTarget.Component });
|
|
7917
|
-
TextareaWithBackgroundComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TextareaWithBackgroundComponent, selector: "tld-textarea-with-background", inputs: { maxCharLength: "maxCharLength", autoFocuss: "autoFocuss", highlightTree: "highlightTree", highlight: "highlight", gramCheck: "gramCheck", textareaDisabled: "textareaDisabled" }, viewQueries: [{ propertyName: "sourceInput", first: true, predicate: ["sourceInput"], descendants: true }, { propertyName: "treeWrapper", first: true, predicate: ["treeWrapper"], descendants: true }], ngImport: i0, template: "<div class=\"textarea-with-background\">\r\n <textarea [disabled]=\"textareaDisabled\" cdkScrollable (paste)=\"onPaste($event)\" matInput [(ngModel)]=\"sourceText\" #sourceInput fxFlex\r\n spellcheck=\"false\" (mousemove)=\"onTextAreaMouseMove($event)\" [attr.maxLength]=\"maxCharLength? maxCharLength: null\"\r\n [attr.aria-label]=\"'TLD_TRANSLATE.SOURCE_TOOLTIP' | translate\" (click)=\"textareaClick($event)\"></textarea>\r\n <div class=\"{{wrapperClass}}\" *ngIf=\"gramCheck || highlight\" cdkScrollable #treeWrapper>\r\n <div class=\"textarea-highlight-backround-inner\" cdkScrollable>\r\n <div *ngFor=\"let paragraph of highlightTree\">\r\n <tld-highlight-tree [isSource]=\"true\" [tree]=\"paragraph\" [highlight]=\"highlight\" [gramCheck]=\"gramCheck\"\r\n (onReplace)=\"replace($event)\"></tld-highlight-tree>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [".textarea-with-background{position:relative}.textarea-with-background .textarea-highlight-background{position:absolute;color:transparent}.textarea-with-background textarea{resize:none!important;z-index:1;caret-color:#000!important}.textarea-with-background textarea,.textarea-with-background .textarea-highlight-backround-inner{padding:1em!important}.textarea-with-background .textarea-highlight-backround-inner{max-width:calc(100% - 2em);width:calc(100% - 2em);min-width:calc(100% - 2em);min-height:calc(100% - 2em);max-height:calc(100% - 2em);height:calc(100% - 2em);overflow-y:auto}.textarea-with-background,.textarea-highlight-background{width:100%;max-width:100%;min-width:100%;min-height:100%;max-height:100%;height:100%}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i2$2.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "directive", type: i4.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i3$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: HighlightTreeComponent, selector: "tld-highlight-tree", inputs: ["tree", "isSource", "correctionsEnabled", "highlight", "gramCheck", "selectSentence"], outputs: ["onReplace"] }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] });
|
|
7954
|
+
TextareaWithBackgroundComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TextareaWithBackgroundComponent, selector: "tld-textarea-with-background", inputs: { maxCharLength: "maxCharLength", autoFocuss: "autoFocuss", highlightTree: "highlightTree", highlight: "highlight", gramCheck: "gramCheck", textareaDisabled: "textareaDisabled" }, viewQueries: [{ propertyName: "sourceInput", first: true, predicate: ["sourceInput"], descendants: true }, { propertyName: "treeWrapper", first: true, predicate: ["treeWrapper"], descendants: true }], ngImport: i0, template: "<div class=\"textarea-with-background\">\r\n <textarea [disabled]=\"textareaDisabled\" cdkScrollable (paste)=\"onPaste($event)\" matInput [(ngModel)]=\"sourceText\" #sourceInput fxFlex\r\n spellcheck=\"false\" (mousemove)=\"onTextAreaMouseMove($event)\" [attr.maxLength]=\"maxCharLength? maxCharLength: null\"\r\n [attr.aria-label]=\"'TLD_TRANSLATE.SOURCE_TOOLTIP' | translate\" (click)=\"textareaClick($event)\"></textarea>\r\n <div class=\"{{wrapperClass}}\" *ngIf=\"gramCheck || highlight\" cdkScrollable #treeWrapper>\r\n <div class=\"textarea-highlight-backround-inner\" cdkScrollable>\r\n <div *ngFor=\"let paragraph of highlightTree\">\r\n <tld-highlight-tree [isSource]=\"true\" [tree]=\"paragraph\" [highlight]=\"highlight\" [gramCheck]=\"gramCheck\"\r\n (onReplace)=\"replace($event)\"></tld-highlight-tree>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [".textarea-with-background{position:relative}.textarea-with-background .textarea-highlight-background{position:absolute;color:transparent}.textarea-with-background textarea{resize:none!important;z-index:1;caret-color:#000!important}.textarea-with-background textarea,.textarea-with-background .textarea-highlight-backround-inner{padding:1em 3em 1em 1em!important}.textarea-with-background .textarea-highlight-backround-inner{max-width:calc(100% - 2em);width:calc(100% - 2em);min-width:calc(100% - 2em);min-height:calc(100% - 2em);max-height:calc(100% - 2em);height:calc(100% - 2em);overflow-y:auto}.textarea-with-background,.textarea-highlight-background{width:100%;max-width:100%;min-width:100%;min-height:100%;max-height:100%;height:100%}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "directive", type: i2$2.CdkScrollable, selector: "[cdk-scrollable], [cdkScrollable]" }, { kind: "directive", type: i4.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i3$2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: HighlightTreeComponent, selector: "tld-highlight-tree", inputs: ["tree", "isSource", "correctionsEnabled", "highlight", "gramCheck", "selectSentence"], outputs: ["onReplace"] }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }] });
|
|
7918
7955
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TextareaWithBackgroundComponent, decorators: [{
|
|
7919
7956
|
type: Component,
|
|
7920
|
-
args: [{ selector: 'tld-textarea-with-background', template: "<div class=\"textarea-with-background\">\r\n <textarea [disabled]=\"textareaDisabled\" cdkScrollable (paste)=\"onPaste($event)\" matInput [(ngModel)]=\"sourceText\" #sourceInput fxFlex\r\n spellcheck=\"false\" (mousemove)=\"onTextAreaMouseMove($event)\" [attr.maxLength]=\"maxCharLength? maxCharLength: null\"\r\n [attr.aria-label]=\"'TLD_TRANSLATE.SOURCE_TOOLTIP' | translate\" (click)=\"textareaClick($event)\"></textarea>\r\n <div class=\"{{wrapperClass}}\" *ngIf=\"gramCheck || highlight\" cdkScrollable #treeWrapper>\r\n <div class=\"textarea-highlight-backround-inner\" cdkScrollable>\r\n <div *ngFor=\"let paragraph of highlightTree\">\r\n <tld-highlight-tree [isSource]=\"true\" [tree]=\"paragraph\" [highlight]=\"highlight\" [gramCheck]=\"gramCheck\"\r\n (onReplace)=\"replace($event)\"></tld-highlight-tree>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [".textarea-with-background{position:relative}.textarea-with-background .textarea-highlight-background{position:absolute;color:transparent}.textarea-with-background textarea{resize:none!important;z-index:1;caret-color:#000!important}.textarea-with-background textarea,.textarea-with-background .textarea-highlight-backround-inner{padding:1em!important}.textarea-with-background .textarea-highlight-backround-inner{max-width:calc(100% - 2em);width:calc(100% - 2em);min-width:calc(100% - 2em);min-height:calc(100% - 2em);max-height:calc(100% - 2em);height:calc(100% - 2em);overflow-y:auto}.textarea-with-background,.textarea-highlight-background{width:100%;max-width:100%;min-width:100%;min-height:100%;max-height:100%;height:100%}\n"] }]
|
|
7957
|
+
args: [{ selector: 'tld-textarea-with-background', template: "<div class=\"textarea-with-background\">\r\n <textarea [disabled]=\"textareaDisabled\" cdkScrollable (paste)=\"onPaste($event)\" matInput [(ngModel)]=\"sourceText\" #sourceInput fxFlex\r\n spellcheck=\"false\" (mousemove)=\"onTextAreaMouseMove($event)\" [attr.maxLength]=\"maxCharLength? maxCharLength: null\"\r\n [attr.aria-label]=\"'TLD_TRANSLATE.SOURCE_TOOLTIP' | translate\" (click)=\"textareaClick($event)\"></textarea>\r\n <div class=\"{{wrapperClass}}\" *ngIf=\"gramCheck || highlight\" cdkScrollable #treeWrapper>\r\n <div class=\"textarea-highlight-backround-inner\" cdkScrollable>\r\n <div *ngFor=\"let paragraph of highlightTree\">\r\n <tld-highlight-tree [isSource]=\"true\" [tree]=\"paragraph\" [highlight]=\"highlight\" [gramCheck]=\"gramCheck\"\r\n (onReplace)=\"replace($event)\"></tld-highlight-tree>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [".textarea-with-background{position:relative}.textarea-with-background .textarea-highlight-background{position:absolute;color:transparent}.textarea-with-background textarea{resize:none!important;z-index:1;caret-color:#000!important}.textarea-with-background textarea,.textarea-with-background .textarea-highlight-backround-inner{padding:1em 3em 1em 1em!important}.textarea-with-background .textarea-highlight-backround-inner{max-width:calc(100% - 2em);width:calc(100% - 2em);min-width:calc(100% - 2em);min-height:calc(100% - 2em);max-height:calc(100% - 2em);height:calc(100% - 2em);overflow-y:auto}.textarea-with-background,.textarea-highlight-background{width:100%;max-width:100%;min-width:100%;min-height:100%;max-height:100%;height:100%}\n"] }]
|
|
7921
7958
|
}], ctorParameters: function () { return [{ type: TldAlertService }, { type: TldTranslateTextService }]; }, propDecorators: { sourceInput: [{
|
|
7922
7959
|
type: ViewChild,
|
|
7923
7960
|
args: ["sourceInput"]
|
|
@@ -8311,7 +8348,7 @@ class TldTranslateTextComponent {
|
|
|
8311
8348
|
}
|
|
8312
8349
|
copy() {
|
|
8313
8350
|
this.clipboard.copy(this.translatedText);
|
|
8314
|
-
this.alerts.
|
|
8351
|
+
this.alerts.success("TLD_TRANSLATE.TEXT_COPIED", { id: this.copyMessageId, closeButtonId: this.copyMessageCloseButtonId, parentId: this.copyButtonId });
|
|
8315
8352
|
}
|
|
8316
8353
|
switchFocusFromCopy(event) {
|
|
8317
8354
|
const copyMessageCloseButton = document.getElementById(this.copyMessageCloseButtonId)?.getElementsByTagName("button")?.item(0);
|
|
@@ -8494,6 +8531,7 @@ class TldDomainListComponent {
|
|
|
8494
8531
|
this.selectionChange = new EventEmitter();
|
|
8495
8532
|
this.titleKey = "title";
|
|
8496
8533
|
this.valueKey = "domain";
|
|
8534
|
+
this.showTitle = this.config.coreConfig.showDomainTitle;
|
|
8497
8535
|
}
|
|
8498
8536
|
get list() { return this._list; }
|
|
8499
8537
|
set list(value) {
|
|
@@ -8507,7 +8545,6 @@ class TldDomainListComponent {
|
|
|
8507
8545
|
this.selectedDomainName = this.translateDomainName(value?.title);
|
|
8508
8546
|
}
|
|
8509
8547
|
;
|
|
8510
|
-
get showTitle() { return this.config.coreConfig.showDomainTitle; }
|
|
8511
8548
|
ngOnInit() {
|
|
8512
8549
|
this.translate.stream("DOMAINS").subscribe((translations) => {
|
|
8513
8550
|
this.translations = translations;
|
|
@@ -8531,10 +8568,10 @@ class TldDomainListComponent {
|
|
|
8531
8568
|
}
|
|
8532
8569
|
}
|
|
8533
8570
|
TldDomainListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldDomainListComponent, deps: [{ token: i1$1.TranslateService }, { token: TldTranslateConfigService }, { token: TranslateDomainPipe }], target: i0.ɵɵFactoryTarget.Component });
|
|
8534
|
-
TldDomainListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TldDomainListComponent, selector: "tld-domain-list", inputs: { list: "list", selected: "selected", disabled: "disabled" }, outputs: { selectionChange: "selectionChange" }, providers: [TranslateDomainPipe], ngImport: i0, template: "<span fxHide.lt-md class=\"domain-title\" *ngIf=\"showTitle\">{{'DOMAINS.TITLE' | translate}}</span>\r\n<tld-list-menu (selectionChange)=\"select($event)\" [list]=\"translatedList | sortTranslations: null: 'title': currentLanguage | async\" [titleKey]=\"titleKey\" \r\n[valueKey]=\"valueKey\" testId=\"tld-domain-list\" [disabled]=\"disabled\" [ariaLabel]=\"'DOMAINS.OPEN_LIST_ARIA_LABEL' | translate\">\r\n {{selectedDomainName |
|
|
8571
|
+
TldDomainListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TldDomainListComponent, selector: "tld-domain-list", inputs: { list: "list", selected: "selected", disabled: "disabled" }, outputs: { selectionChange: "selectionChange" }, providers: [TranslateDomainPipe], ngImport: i0, template: "<span fxHide.lt-md class=\"domain-title\" *ngIf=\"showTitle\">{{'DOMAINS.TITLE' | translate}}</span>\r\n<tld-list-menu (selectionChange)=\"select($event)\" [list]=\"translatedList | sortTranslations: null: 'title': currentLanguage | async\" [titleKey]=\"titleKey\" \r\n[valueKey]=\"valueKey\" testId=\"tld-domain-list\" [disabled]=\"disabled\" [ariaLabel]=\"'DOMAINS.OPEN_LIST_ARIA_LABEL' | translate\">\r\n <span [ngClass.lt-sm]=\"'selected-domain'\">{{ selectedDomainName | capitalize }}</span> \r\n</tld-list-menu>", styles: [".selected-domain{max-width:60px;overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5$1.DefaultShowHideDirective, selector: " [fxShow], [fxShow.print], [fxShow.xs], [fxShow.sm], [fxShow.md], [fxShow.lg], [fxShow.xl], [fxShow.lt-sm], [fxShow.lt-md], [fxShow.lt-lg], [fxShow.lt-xl], [fxShow.gt-xs], [fxShow.gt-sm], [fxShow.gt-md], [fxShow.gt-lg], [fxHide], [fxHide.print], [fxHide.xs], [fxHide.sm], [fxHide.md], [fxHide.lg], [fxHide.xl], [fxHide.lt-sm], [fxHide.lt-md], [fxHide.lt-lg], [fxHide.lt-xl], [fxHide.gt-xs], [fxHide.gt-sm], [fxHide.gt-md], [fxHide.gt-lg]", inputs: ["fxShow", "fxShow.print", "fxShow.xs", "fxShow.sm", "fxShow.md", "fxShow.lg", "fxShow.xl", "fxShow.lt-sm", "fxShow.lt-md", "fxShow.lt-lg", "fxShow.lt-xl", "fxShow.gt-xs", "fxShow.gt-sm", "fxShow.gt-md", "fxShow.gt-lg", "fxHide", "fxHide.print", "fxHide.xs", "fxHide.sm", "fxHide.md", "fxHide.lg", "fxHide.xl", "fxHide.lt-sm", "fxHide.lt-md", "fxHide.lt-lg", "fxHide.lt-xl", "fxHide.gt-xs", "fxHide.gt-sm", "fxHide.gt-md", "fxHide.gt-lg"] }, { kind: "directive", type: i5$1.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: TldListMenuComponent, selector: "tld-list-menu", inputs: ["titleKey", "list", "showContent", "selectedValue", "disabled", "ariaLabel", "valueKey", "testId"], outputs: ["selectionChange"] }, { kind: "pipe", type: i3.AsyncPipe, name: "async" }, { kind: "pipe", type: i1$1.TranslatePipe, name: "translate" }, { kind: "pipe", type: CapitalizePipe, name: "capitalize" }, { kind: "pipe", type: i12.SortTranslationsPipe, name: "sortTranslations" }] });
|
|
8535
8572
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldDomainListComponent, decorators: [{
|
|
8536
8573
|
type: Component,
|
|
8537
|
-
args: [{ selector: 'tld-domain-list', providers: [TranslateDomainPipe], template: "<span fxHide.lt-md class=\"domain-title\" *ngIf=\"showTitle\">{{'DOMAINS.TITLE' | translate}}</span>\r\n<tld-list-menu (selectionChange)=\"select($event)\" [list]=\"translatedList | sortTranslations: null: 'title': currentLanguage | async\" [titleKey]=\"titleKey\" \r\n[valueKey]=\"valueKey\" testId=\"tld-domain-list\" [disabled]=\"disabled\" [ariaLabel]=\"'DOMAINS.OPEN_LIST_ARIA_LABEL' | translate\">\r\n {{selectedDomainName |
|
|
8574
|
+
args: [{ selector: 'tld-domain-list', providers: [TranslateDomainPipe], template: "<span fxHide.lt-md class=\"domain-title\" *ngIf=\"showTitle\">{{'DOMAINS.TITLE' | translate}}</span>\r\n<tld-list-menu (selectionChange)=\"select($event)\" [list]=\"translatedList | sortTranslations: null: 'title': currentLanguage | async\" [titleKey]=\"titleKey\" \r\n[valueKey]=\"valueKey\" testId=\"tld-domain-list\" [disabled]=\"disabled\" [ariaLabel]=\"'DOMAINS.OPEN_LIST_ARIA_LABEL' | translate\">\r\n <span [ngClass.lt-sm]=\"'selected-domain'\">{{ selectedDomainName | capitalize }}</span> \r\n</tld-list-menu>", styles: [".selected-domain{max-width:60px;overflow:hidden;text-overflow:ellipsis}\n"] }]
|
|
8538
8575
|
}], ctorParameters: function () { return [{ type: i1$1.TranslateService }, { type: TldTranslateConfigService }, { type: TranslateDomainPipe }]; }, propDecorators: { list: [{
|
|
8539
8576
|
type: Input
|
|
8540
8577
|
}], selected: [{
|
|
@@ -8595,10 +8632,11 @@ class TldTranslateSwitcherComponent {
|
|
|
8595
8632
|
return this.config?.coreConfig.showVendors && this.settings.vendors?.length > 0;
|
|
8596
8633
|
}
|
|
8597
8634
|
get showDomains() {
|
|
8598
|
-
|
|
8635
|
+
const singleDomainAvailable = this.config?.textConfig.displaySingleAvailableDomain && this.settings?.domains?.domains?.length >= 1;
|
|
8636
|
+
return (this.config?.coreConfig.showDomains &&
|
|
8599
8637
|
!this.showDomainsWithLanguageName &&
|
|
8600
|
-
this.settings?.domains?.domains?.length > 1 &&
|
|
8601
|
-
|
|
8638
|
+
((this.settings?.domains?.domains?.length > 1 && this.settings?.source) ||
|
|
8639
|
+
singleDomainAvailable));
|
|
8602
8640
|
}
|
|
8603
8641
|
get isSwapLanguagesDisabled() {
|
|
8604
8642
|
return this.disabled || !this.settings.swapActive;
|
|
@@ -9984,6 +10022,7 @@ class TldTranslateComponent {
|
|
|
9984
10022
|
this.wtwQueryService = wtwQueryService;
|
|
9985
10023
|
this.systemPickerService = systemPickerService;
|
|
9986
10024
|
this.onError = new EventEmitter();
|
|
10025
|
+
this.onSystemChange = new EventEmitter();
|
|
9987
10026
|
this.messages = [];
|
|
9988
10027
|
this.noSystemsError = { body: "TLD_TRANSLATE.ERROR_NO_SYSTEMS_LOADED", type: NotificationMessageType.ERROR, hideClose: true };
|
|
9989
10028
|
this.languageMenuV1 = languageMenuVersion.V1;
|
|
@@ -10055,6 +10094,7 @@ class TldTranslateComponent {
|
|
|
10055
10094
|
if (!val) {
|
|
10056
10095
|
return;
|
|
10057
10096
|
}
|
|
10097
|
+
this.onSystemChange.emit(val);
|
|
10058
10098
|
this.switcherOptions = {
|
|
10059
10099
|
domains: val.domains,
|
|
10060
10100
|
source: { code: val.sourceLang.lang, systemId: val.systemId },
|
|
@@ -10145,7 +10185,7 @@ class TldTranslateComponent {
|
|
|
10145
10185
|
}
|
|
10146
10186
|
}
|
|
10147
10187
|
TldTranslateComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldTranslateComponent, deps: [{ token: i1$1.TranslateService }, { token: TldTranslateFileService }, { token: TldTranslateTextService }, { token: TldTranslateConfigService }, { token: TldAlertService }, { token: TldTranslateButtonService }, { token: TldSystemService }, { token: AudioRecordService }, { token: TldVoiceInputService }, { token: WtwLinkParamsService }, { token: TranslationSystemPickerService }, { token: IconService }], target: i0.ɵɵFactoryTarget.Component });
|
|
10148
|
-
TldTranslateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TldTranslateComponent, selector: "tld-translate", outputs: { onError: "onError" }, viewQueries: [{ propertyName: "tldTranslateBody", first: true, predicate: TldTranslateBodyComponent, descendants: true }], ngImport: i0, template: "<div fxLayout=\"column\" class=\"h-100 tld-translate\" *ngIf=\"!showNoSystemsError\"\r\n [ngClass.lt-md]=\"'tld-translate-tablet tld-default-border-bottom'\"\r\n [ngClass.lt-sm]=\"'tld-translate-mobile tld-default-border-bottom'\"\r\n [class.tld-translate-multiple-files-active]=\"isMultipleFilesActive\">\r\n <div class=\"tld-translate-wrapper tld-default-border\" fxLayout=\"column\" fxFlex>\r\n <div class=\"tld-translate-switcher-wrapper tld-default-border-bottom\">\r\n <tld-translate-switcher *ngIf=\"switcherOptions && languageMenuVersion === languageMenuV1\"\r\n [disabled]=\"actionButtonDisabled\" [isCollectionsActivated]=\"isCollectionsActivated\" [settings]=\"switcherOptions\"\r\n [maxDisplayedLanguages]=\"maxDisplayedLanguages\" [showDomainsWithLanguageName]=\"showDomainsWithLanguageName\"\r\n [buttonDisabled]=\"actionButtonDisabled\" [hideLangMenuLabels]=\"hideLangMenuLabels\"\r\n (onDomainChange)=\"systemChange($event)\" (onActionClick)=\"translateButtonClick()\"\r\n (onLanguageSwap)=\"swapLanguages()\" (onSourceLanguageChange)=\"sourceLanguageChange($event)\"\r\n (onTargetLanguageChange)=\"targetLanguageChange($event)\" [loader]=\"actionButtonLoader\" [showTranslateButton]=\"showTranslateButton\">\r\n </tld-translate-switcher>\r\n <tld-translation-system-picker *ngIf=\"languageMenuVersion===languageMenuV2\"\r\n [isCollectionsActivated]=\"isCollectionsActivated\"></tld-translation-system-picker>\r\n </div>\r\n <lib-tld-notification-message [inline]=\"true\" *ngFor=\"let message of messages; let ix = index\" [message]=\"message\"\r\n
|
|
10188
|
+
TldTranslateComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.3.0", type: TldTranslateComponent, selector: "tld-translate", outputs: { onError: "onError", onSystemChange: "onSystemChange" }, viewQueries: [{ propertyName: "tldTranslateBody", first: true, predicate: TldTranslateBodyComponent, descendants: true }], ngImport: i0, template: "<div fxLayout=\"column\" class=\"h-100 tld-translate\" *ngIf=\"!showNoSystemsError\"\r\n [ngClass.lt-md]=\"'tld-translate-tablet tld-default-border-bottom'\"\r\n [ngClass.lt-sm]=\"'tld-translate-mobile tld-default-border-bottom'\"\r\n [class.tld-translate-multiple-files-active]=\"isMultipleFilesActive\">\r\n <div class=\"tld-translate-wrapper tld-default-border\" fxLayout=\"column\" fxFlex>\r\n <div class=\"tld-translate-switcher-wrapper tld-default-border-bottom\">\r\n <tld-translate-switcher *ngIf=\"switcherOptions && languageMenuVersion === languageMenuV1\"\r\n [disabled]=\"actionButtonDisabled\" [isCollectionsActivated]=\"isCollectionsActivated\" [settings]=\"switcherOptions\"\r\n [maxDisplayedLanguages]=\"maxDisplayedLanguages\" [showDomainsWithLanguageName]=\"showDomainsWithLanguageName\"\r\n [buttonDisabled]=\"actionButtonDisabled\" [hideLangMenuLabels]=\"hideLangMenuLabels\"\r\n (onDomainChange)=\"systemChange($event)\" (onActionClick)=\"translateButtonClick()\"\r\n (onLanguageSwap)=\"swapLanguages()\" (onSourceLanguageChange)=\"sourceLanguageChange($event)\"\r\n (onTargetLanguageChange)=\"targetLanguageChange($event)\" [loader]=\"actionButtonLoader\" [showTranslateButton]=\"showTranslateButton\">\r\n </tld-translate-switcher>\r\n <tld-translation-system-picker *ngIf=\"languageMenuVersion===languageMenuV2\"\r\n [isCollectionsActivated]=\"isCollectionsActivated\"></tld-translation-system-picker>\r\n </div>\r\n <div *ngIf=\"messages.length\" class=\"message-wrapper\">\r\n <lib-tld-notification-message [inline]=\"true\" *ngFor=\"let message of messages; let ix = index\" [message]=\"message\"\r\n (closeClicked)=\"removeMessage(ix)\">\r\n </lib-tld-notification-message>\r\n </div>\r\n <div fxFlex style=\"position: relative;\">\r\n <tld-translate-body fxFlex fxLayoutAlign=\"column\" [attr.source-language]=\"sourceLanguage\"\r\n [attr.target-language]=\"targetLanguage\"></tld-translate-body>\r\n <tld-translation-system-picker-dropdown [ngClass.xs]=\"'mobile'\" *ngIf=\"systemPickerDropdownVisible\">\r\n </tld-translation-system-picker-dropdown>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<lib-tld-notification-message *ngIf=\"showNoSystemsError\" [message]=\"noSystemsError\">\r\n</lib-tld-notification-message>\r\n", styles: [".tld-translate-wrapper{overflow:hidden;background:#ffffff;box-shadow:0 3.2px 7.2px #00000021}.tld-translate-switcher-wrapper{padding:.5em 1em}.h-100{height:100%}tld-translation-system-picker-dropdown{z-index:2}tld-translation-system-picker-dropdown:not(.mobile){position:absolute;width:100%;height:100%}tld-translation-system-picker-dropdown.mobile{position:fixed;top:0;left:0;width:100vw;height:100vh}.tld-translate-tablet .message-wrapper,.tld-translate-mobile .message-wrapper{padding:0}.message-wrapper{padding:16px 32px 0}lib-tld-notification-message:not(:first-child){margin-top:4px}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i4.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i4.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i5$1.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "component", type: TldTranslateSwitcherComponent, selector: "tld-translate-switcher", inputs: ["buttonDisabled", "showTranslateButton", "hideOnSmallScreens", "disabled", "hideLangMenuLabels", "maxDisplayedLanguages", "collections", "showDomainsWithLanguageName", "isCollectionsActivated", "useParentWidth", "loader", "settings"], outputs: ["onDomainChange", "onActionClick", "onSourceLanguageChange", "onTargetLanguageChange", "onLanguageSwap", "onVendorChange"] }, { kind: "component", type: TranslationSystemPickerComponent, selector: "tld-translation-system-picker", inputs: ["isCollectionsActivated"] }, { kind: "component", type: TranslationSystemPickerDropdownComponent, selector: "tld-translation-system-picker-dropdown" }, { kind: "component", type: i12.NotificationMessageComponent, selector: "lib-tld-notification-message", inputs: ["message", "inline"], outputs: ["buttonClicked", "closeClicked", "linkClicked"] }, { kind: "component", type: TldTranslateBodyComponent, selector: "tld-translate-body" }], animations: [
|
|
10149
10189
|
trigger('openCloseAnimation', [
|
|
10150
10190
|
transition(':enter', [
|
|
10151
10191
|
style({ height: 0 }),
|
|
@@ -10164,9 +10204,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
10164
10204
|
]),
|
|
10165
10205
|
transition(':leave', animate(500, style({ height: 0 })))
|
|
10166
10206
|
])
|
|
10167
|
-
], template: "<div fxLayout=\"column\" class=\"h-100 tld-translate\" *ngIf=\"!showNoSystemsError\"\r\n [ngClass.lt-md]=\"'tld-translate-tablet tld-default-border-bottom'\"\r\n [ngClass.lt-sm]=\"'tld-translate-mobile tld-default-border-bottom'\"\r\n [class.tld-translate-multiple-files-active]=\"isMultipleFilesActive\">\r\n <div class=\"tld-translate-wrapper tld-default-border\" fxLayout=\"column\" fxFlex>\r\n <div class=\"tld-translate-switcher-wrapper tld-default-border-bottom\">\r\n <tld-translate-switcher *ngIf=\"switcherOptions && languageMenuVersion === languageMenuV1\"\r\n [disabled]=\"actionButtonDisabled\" [isCollectionsActivated]=\"isCollectionsActivated\" [settings]=\"switcherOptions\"\r\n [maxDisplayedLanguages]=\"maxDisplayedLanguages\" [showDomainsWithLanguageName]=\"showDomainsWithLanguageName\"\r\n [buttonDisabled]=\"actionButtonDisabled\" [hideLangMenuLabels]=\"hideLangMenuLabels\"\r\n (onDomainChange)=\"systemChange($event)\" (onActionClick)=\"translateButtonClick()\"\r\n (onLanguageSwap)=\"swapLanguages()\" (onSourceLanguageChange)=\"sourceLanguageChange($event)\"\r\n (onTargetLanguageChange)=\"targetLanguageChange($event)\" [loader]=\"actionButtonLoader\" [showTranslateButton]=\"showTranslateButton\">\r\n </tld-translate-switcher>\r\n <tld-translation-system-picker *ngIf=\"languageMenuVersion===languageMenuV2\"\r\n [isCollectionsActivated]=\"isCollectionsActivated\"></tld-translation-system-picker>\r\n </div>\r\n <lib-tld-notification-message [inline]=\"true\" *ngFor=\"let message of messages; let ix = index\" [message]=\"message\"\r\n
|
|
10207
|
+
], template: "<div fxLayout=\"column\" class=\"h-100 tld-translate\" *ngIf=\"!showNoSystemsError\"\r\n [ngClass.lt-md]=\"'tld-translate-tablet tld-default-border-bottom'\"\r\n [ngClass.lt-sm]=\"'tld-translate-mobile tld-default-border-bottom'\"\r\n [class.tld-translate-multiple-files-active]=\"isMultipleFilesActive\">\r\n <div class=\"tld-translate-wrapper tld-default-border\" fxLayout=\"column\" fxFlex>\r\n <div class=\"tld-translate-switcher-wrapper tld-default-border-bottom\">\r\n <tld-translate-switcher *ngIf=\"switcherOptions && languageMenuVersion === languageMenuV1\"\r\n [disabled]=\"actionButtonDisabled\" [isCollectionsActivated]=\"isCollectionsActivated\" [settings]=\"switcherOptions\"\r\n [maxDisplayedLanguages]=\"maxDisplayedLanguages\" [showDomainsWithLanguageName]=\"showDomainsWithLanguageName\"\r\n [buttonDisabled]=\"actionButtonDisabled\" [hideLangMenuLabels]=\"hideLangMenuLabels\"\r\n (onDomainChange)=\"systemChange($event)\" (onActionClick)=\"translateButtonClick()\"\r\n (onLanguageSwap)=\"swapLanguages()\" (onSourceLanguageChange)=\"sourceLanguageChange($event)\"\r\n (onTargetLanguageChange)=\"targetLanguageChange($event)\" [loader]=\"actionButtonLoader\" [showTranslateButton]=\"showTranslateButton\">\r\n </tld-translate-switcher>\r\n <tld-translation-system-picker *ngIf=\"languageMenuVersion===languageMenuV2\"\r\n [isCollectionsActivated]=\"isCollectionsActivated\"></tld-translation-system-picker>\r\n </div>\r\n <div *ngIf=\"messages.length\" class=\"message-wrapper\">\r\n <lib-tld-notification-message [inline]=\"true\" *ngFor=\"let message of messages; let ix = index\" [message]=\"message\"\r\n (closeClicked)=\"removeMessage(ix)\">\r\n </lib-tld-notification-message>\r\n </div>\r\n <div fxFlex style=\"position: relative;\">\r\n <tld-translate-body fxFlex fxLayoutAlign=\"column\" [attr.source-language]=\"sourceLanguage\"\r\n [attr.target-language]=\"targetLanguage\"></tld-translate-body>\r\n <tld-translation-system-picker-dropdown [ngClass.xs]=\"'mobile'\" *ngIf=\"systemPickerDropdownVisible\">\r\n </tld-translation-system-picker-dropdown>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<lib-tld-notification-message *ngIf=\"showNoSystemsError\" [message]=\"noSystemsError\">\r\n</lib-tld-notification-message>\r\n", styles: [".tld-translate-wrapper{overflow:hidden;background:#ffffff;box-shadow:0 3.2px 7.2px #00000021}.tld-translate-switcher-wrapper{padding:.5em 1em}.h-100{height:100%}tld-translation-system-picker-dropdown{z-index:2}tld-translation-system-picker-dropdown:not(.mobile){position:absolute;width:100%;height:100%}tld-translation-system-picker-dropdown.mobile{position:fixed;top:0;left:0;width:100vw;height:100vh}.tld-translate-tablet .message-wrapper,.tld-translate-mobile .message-wrapper{padding:0}.message-wrapper{padding:16px 32px 0}lib-tld-notification-message:not(:first-child){margin-top:4px}\n"] }]
|
|
10168
10208
|
}], ctorParameters: function () { return [{ type: i1$1.TranslateService }, { type: TldTranslateFileService }, { type: TldTranslateTextService }, { type: TldTranslateConfigService }, { type: TldAlertService }, { type: TldTranslateButtonService }, { type: TldSystemService }, { type: AudioRecordService }, { type: TldVoiceInputService }, { type: WtwLinkParamsService }, { type: TranslationSystemPickerService }, { type: IconService }]; }, propDecorators: { onError: [{
|
|
10169
10209
|
type: Output
|
|
10210
|
+
}], onSystemChange: [{
|
|
10211
|
+
type: Output
|
|
10170
10212
|
}], tldTranslateBody: [{
|
|
10171
10213
|
type: ViewChild,
|
|
10172
10214
|
args: [TldTranslateBodyComponent]
|
|
@@ -10777,5 +10819,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
10777
10819
|
* Generated bundle index. Do not edit.
|
|
10778
10820
|
*/
|
|
10779
10821
|
|
|
10780
|
-
export { AudioRecordService, Common, ConvertedCollectionTooltipKey, ConvertedCollectionType, ErrorCode, ExtensionDialogComponent, ExtensionDialogModule, ExtensionDialogService, FILE_API_SERVICE_TOKEN, FileCategories, FileExtensions, FileTranslationSubstatus, FileTypeIcons, FileTypes, HighlightParams, HighlightTreeComponent, IconService, MtCollectionsApiService, OPEN_CLOSE_BTN_ICONS_TOKEN, OpenExtensionDialogComponent, OpenedMenu, SYSTEM_SERVICE_TOKEN, SourceAndTargetWrapperComponent, TEXT_API_SERVICE_TOKEN, TLD_TRANSLATE_CONFIG_TOKEN, TRANSLATION_API_VERSION_TOKEN, TermApiService, TextToSpeechComponent, TextToSpeechModule, TextareaWithBackgroundComponent, TldAlertService, TldAudioModule, TldCommonModule, TldConvertedCollection, TldDictateComponent, TldDictionaryComponent, TldDocumentModule, TldDomainListComponent, TldFileTranslateBaseComponent, TldHighlightService, TldLangListComponent, TldListMenuComponent, TldLoaderComponent, TldMessageComponent, TldMessageType, TldOpenCloseButtonComponent, TldRecordComponent, TldSystemService, TldTermCollectionComponent, TldTermCollectionListComponent, TldTermCollectionsService, TldTermCreateCollectionDialogComponent, TldTermMenuComponent, TldTermModule, TldTermPromotionComponent, TldTextModule, TldTooltipModule, TldTranslateAchievementComponent, TldTranslateButtonComponent, TldTranslateComponent, TldTranslateConfigService, TldTranslateFileApiService, TldTranslateFileComponent, TldTranslateFileDownloadButtonComponent, TldTranslateFileMultipleComponent, TldTranslateFileService, TldTranslateImageConversionHelpComponent, TldTranslateModule, TldTranslatePdfConversionHelpComponent, TldTranslateSourceComponent, TldTranslateSuggestComponent, TldTranslateSuggestDialogComponent, TldTranslateSwitcherComponent, TldTranslateTextComponent, TldTranslateTextService, TldTranslateWebsiteComponent, TldVoiceInputApiService, TldVoiceInputService, TldWebModule, TranslateDomainPipe, TranslationApiVersion, TranslationStatuss, TranslationSystemPickerButtonComponent, TranslationSystemPickerComponent, TranslationSystemPickerDropdownComponent, TranslationSystemPickerFilterComponent, TranslationSystemPickerLanguageListComponent, TranslationSystemPickerService, VoiceToTextState, availableLanguages, languageMenuVersion };
|
|
10822
|
+
export { AudioRecordService, CapitalizePipe, Common, ConvertedCollectionTooltipKey, ConvertedCollectionType, ErrorCode, ExtensionDialogComponent, ExtensionDialogModule, ExtensionDialogService, FILE_API_SERVICE_TOKEN, FileCategories, FileExtensions, FileTranslationSubstatus, FileTypeIcons, FileTypes, HighlightParams, HighlightTreeComponent, IconService, MtCollectionsApiService, OPEN_CLOSE_BTN_ICONS_TOKEN, OpenExtensionDialogComponent, OpenedMenu, SYSTEM_SERVICE_TOKEN, SourceAndTargetWrapperComponent, TEXT_API_SERVICE_TOKEN, TLD_TRANSLATE_CONFIG_TOKEN, TRANSLATION_API_VERSION_TOKEN, TermApiService, TextToSpeechComponent, TextToSpeechModule, TextareaWithBackgroundComponent, TldAlertService, TldAudioModule, TldCommonModule, TldConvertedCollection, TldDictateComponent, TldDictionaryComponent, TldDocumentModule, TldDomainListComponent, TldFileTranslateBaseComponent, TldHighlightService, TldLangListComponent, TldListMenuComponent, TldLoaderComponent, TldMessageComponent, TldMessageType, TldOpenCloseButtonComponent, TldRecordComponent, TldSystemService, TldTermCollectionComponent, TldTermCollectionListComponent, TldTermCollectionsService, TldTermCreateCollectionDialogComponent, TldTermMenuComponent, TldTermModule, TldTermPromotionComponent, TldTextModule, TldTooltipModule, TldTranslateAchievementComponent, TldTranslateButtonComponent, TldTranslateComponent, TldTranslateConfigService, TldTranslateFileApiService, TldTranslateFileComponent, TldTranslateFileDownloadButtonComponent, TldTranslateFileMultipleComponent, TldTranslateFileService, TldTranslateImageConversionHelpComponent, TldTranslateModule, TldTranslatePdfConversionHelpComponent, TldTranslateSourceComponent, TldTranslateSuggestComponent, TldTranslateSuggestDialogComponent, TldTranslateSwitcherComponent, TldTranslateTextComponent, TldTranslateTextService, TldTranslateWebsiteComponent, TldVoiceInputApiService, TldVoiceInputService, TldWebModule, TranslateDomainPipe, TranslationApiVersion, TranslationStatuss, TranslationSystemPickerButtonComponent, TranslationSystemPickerComponent, TranslationSystemPickerDropdownComponent, TranslationSystemPickerFilterComponent, TranslationSystemPickerLanguageListComponent, TranslationSystemPickerService, VoiceToTextState, availableLanguages, languageMenuVersion };
|
|
10781
10823
|
//# sourceMappingURL=tilde-nlp-ngx-translate.mjs.map
|