@tilde-nlp/ngx-translate 2.0.2 → 2.0.3-deepl
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 +4 -2
- 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-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-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 +6 -2
- package/fesm2015/tilde-nlp-ngx-translate.mjs +148 -117
- package/fesm2015/tilde-nlp-ngx-translate.mjs.map +1 -1
- package/fesm2020/tilde-nlp-ngx-translate.mjs +119 -88
- package/fesm2020/tilde-nlp-ngx-translate.mjs.map +1 -1
- package/lib/i18n/en.d.ts +2 -0
- 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/tld-common.module.d.ts +8 -7
- 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 +1 -1
- package/src/assets/webcomponent/tld-translate.js +1 -1
- package/tilde-nlp-ngx-translate-2.0.3-deepl.tgz +0 -0
- package/tilde-nlp-ngx-translate-2.0.2.tgz +0 -0
|
@@ -652,7 +652,9 @@ const i18n_en = {
|
|
|
652
652
|
"KO": "Korean",
|
|
653
653
|
"TR": "Turkish",
|
|
654
654
|
"HR": "Croatian",
|
|
655
|
-
"RO": "Romanian"
|
|
655
|
+
"RO": "Romanian",
|
|
656
|
+
"UZ": "Uzbek",
|
|
657
|
+
"ID": "Indonesian"
|
|
656
658
|
},
|
|
657
659
|
"ARIA_LABELS": {
|
|
658
660
|
"CLOSE_BUTTON": "Clear",
|
|
@@ -2115,7 +2117,9 @@ const i18n_lv = {
|
|
|
2115
2117
|
"KO": "Korejiešu",
|
|
2116
2118
|
"TR": "Turku",
|
|
2117
2119
|
"HR": "Horvātu",
|
|
2118
|
-
"RO": "Rumāņu"
|
|
2120
|
+
"RO": "Rumāņu",
|
|
2121
|
+
"UZ": "Uzbeku",
|
|
2122
|
+
"ID": "Indonēziešu"
|
|
2119
2123
|
},
|
|
2120
2124
|
"MULTIPLE_FILES": {
|
|
2121
2125
|
"APPEND": "Pievienot failus",
|
|
@@ -3426,7 +3430,7 @@ class TldTranslateConfigService {
|
|
|
3426
3430
|
return this._textToSpeechConfig;
|
|
3427
3431
|
}
|
|
3428
3432
|
initConfigs(configuration) {
|
|
3429
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36;
|
|
3433
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37;
|
|
3430
3434
|
const config = (_a = configuration !== null && configuration !== void 0 ? configuration : this.config) !== null && _a !== void 0 ? _a : {};
|
|
3431
3435
|
const core = config === null || config === void 0 ? void 0 : config.core;
|
|
3432
3436
|
const file = config === null || config === void 0 ? void 0 : config.file;
|
|
@@ -3536,49 +3540,50 @@ class TldTranslateConfigService {
|
|
|
3536
3540
|
this._textConfig.progressIndicatorTimeoutMiliSeconds = (_7 = text === null || text === void 0 ? void 0 : text.progressIndicatorTimeoutMiliSeconds) !== null && _7 !== void 0 ? _7 : 2000;
|
|
3537
3541
|
this._textConfig.progressIndicatorTitleVisibleForVendors = (_8 = text === null || text === void 0 ? void 0 : text.progressIndicatorTitleVisibleForVendors) !== null && _8 !== void 0 ? _8 : ["ETranslation"];
|
|
3538
3542
|
this._textConfig.progressIndicatorVisible = (_9 = text === null || text === void 0 ? void 0 : text.progressIndicatorVisible) !== null && _9 !== void 0 ? _9 : false;
|
|
3539
|
-
this.
|
|
3543
|
+
this._textConfig.displaySingleAvailableDomain = (_10 = text === null || text === void 0 ? void 0 : text.displaySingleAvailableDomain) !== null && _10 !== void 0 ? _10 : false;
|
|
3544
|
+
this._audioConfig.audioTextInput = (_11 = audio === null || audio === void 0 ? void 0 : audio.audioTextInput) !== null && _11 !== void 0 ? _11 : false;
|
|
3540
3545
|
// Not setting default url because there is no service provided by Tilde and this is not used by default in website project.
|
|
3541
3546
|
this._audioConfig.audioApiUrl = audio === null || audio === void 0 ? void 0 : audio.audioApiUrl;
|
|
3542
|
-
this._audioConfig.audioMaxSizeBytes = (
|
|
3543
|
-
this._audioConfig.sourceLanguages = (
|
|
3544
|
-
this._audioConfig.dataUpdateTimeFrame = (
|
|
3545
|
-
this._audioConfig.maximumRecordTime = (
|
|
3546
|
-
this._audioConfig.dictateApiUrl = (
|
|
3547
|
+
this._audioConfig.audioMaxSizeBytes = (_12 = audio === null || audio === void 0 ? void 0 : audio.audioMaxSizeBytes) !== null && _12 !== void 0 ? _12 : 10000000;
|
|
3548
|
+
this._audioConfig.sourceLanguages = (_13 = audio === null || audio === void 0 ? void 0 : audio.sourceLanguages) !== null && _13 !== void 0 ? _13 : [];
|
|
3549
|
+
this._audioConfig.dataUpdateTimeFrame = (_14 = audio === null || audio === void 0 ? void 0 : audio.dataUpdateTimeFrame) !== null && _14 !== void 0 ? _14 : 5000;
|
|
3550
|
+
this._audioConfig.maximumRecordTime = (_15 = audio === null || audio === void 0 ? void 0 : audio.maximumRecordTime) !== null && _15 !== void 0 ? _15 : 300;
|
|
3551
|
+
this._audioConfig.dictateApiUrl = (_16 = audio === null || audio === void 0 ? void 0 : audio.dictateApiUrl) !== null && _16 !== void 0 ? _16 : "runa.tilde.lv";
|
|
3547
3552
|
this._audioConfig.appId = audio === null || audio === void 0 ? void 0 : audio.appId;
|
|
3548
3553
|
this._audioConfig.appSecret = audio === null || audio === void 0 ? void 0 : audio.appSecret;
|
|
3549
|
-
this._audioConfig.punctuationMessage = (
|
|
3550
|
-
this._audioConfig.disableAutomaticTranslation = (
|
|
3554
|
+
this._audioConfig.punctuationMessage = (_17 = audio === null || audio === void 0 ? void 0 : audio.punctuationMessage) !== null && _17 !== void 0 ? _17 : true;
|
|
3555
|
+
this._audioConfig.disableAutomaticTranslation = (_18 = audio === null || audio === void 0 ? void 0 : audio.disableAutomaticTranslation) !== null && _18 !== void 0 ? _18 : true;
|
|
3551
3556
|
this._webtranslateConfig.logoLocation = (webtranslate === null || webtranslate === void 0 ? void 0 : webtranslate.logoLocation) || 'assets/webtranslate/tilde_logo.png';
|
|
3552
3557
|
this._webtranslateConfig.translatePagePath = webtranslate === null || webtranslate === void 0 ? void 0 : webtranslate.translatePagePath;
|
|
3553
3558
|
this._webtranslateConfig.debug = (webtranslate === null || webtranslate === void 0 ? void 0 : webtranslate.debug) || false;
|
|
3554
3559
|
this._webtranslateConfig.webLangAutodetect = (webtranslate === null || webtranslate === void 0 ? void 0 : webtranslate.webLangAutodetect) || true;
|
|
3555
3560
|
this._webtranslateConfig.allowSuggestions = (webtranslate === null || webtranslate === void 0 ? void 0 : webtranslate.allowSuggestions) || false;
|
|
3556
3561
|
this._webtranslateConfig.hidePopup = (webtranslate === null || webtranslate === void 0 ? void 0 : webtranslate.hidePopup) || false;
|
|
3557
|
-
this._webtranslateConfig.sandbox = (
|
|
3562
|
+
this._webtranslateConfig.sandbox = (_19 = webtranslate === null || webtranslate === void 0 ? void 0 : webtranslate.sandbox) !== null && _19 !== void 0 ? _19 : "allow-forms allow-scripts allow-same-origin";
|
|
3558
3563
|
this._termConfig.apiUrl = (termConfig === null || termConfig === void 0 ? void 0 : termConfig.apiUrl) || "https://term.tilde.com";
|
|
3559
3564
|
this._termConfig.canCreateCollection = termConfig === null || termConfig === void 0 ? void 0 : termConfig.canCreateCollection;
|
|
3560
3565
|
this._termConfig.isCollectionsActivated = termConfig === null || termConfig === void 0 ? void 0 : termConfig.isCollectionsActivated;
|
|
3561
|
-
this._termConfig.isTermPortalSupported = (
|
|
3562
|
-
this._termConfig.collectionNameMinLength = (
|
|
3563
|
-
this._termConfig.collectionNameMaxLength = (
|
|
3564
|
-
this._termConfig.refreshTimeoutMs = (
|
|
3565
|
-
this._termConfig.refreshTimeoutMsWhenImporting = (
|
|
3566
|
-
this._termConfig.freeTrialUrl = (
|
|
3567
|
-
this._termConfig.learnMoreUrl = (
|
|
3566
|
+
this._termConfig.isTermPortalSupported = (_20 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.isTermPortalSupported) !== null && _20 !== void 0 ? _20 : false;
|
|
3567
|
+
this._termConfig.collectionNameMinLength = (_21 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.collectionNameMinLength) !== null && _21 !== void 0 ? _21 : 8;
|
|
3568
|
+
this._termConfig.collectionNameMaxLength = (_22 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.collectionNameMaxLength) !== null && _22 !== void 0 ? _22 : 300;
|
|
3569
|
+
this._termConfig.refreshTimeoutMs = (_23 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.refreshTimeoutMs) !== null && _23 !== void 0 ? _23 : 10000;
|
|
3570
|
+
this._termConfig.refreshTimeoutMsWhenImporting = (_24 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.refreshTimeoutMsWhenImporting) !== null && _24 !== void 0 ? _24 : 5000;
|
|
3571
|
+
this._termConfig.freeTrialUrl = (_25 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.freeTrialUrl) !== null && _25 !== void 0 ? _25 : "https://tilde.com/products-and-services/machine-translation/pricing/Tilde-MT";
|
|
3572
|
+
this._termConfig.learnMoreUrl = (_26 = termConfig === null || termConfig === void 0 ? void 0 : termConfig.learnMoreUrl) !== null && _26 !== void 0 ? _26 : "https://www.tilde.com/products-and-services/machine-translation/Tilde-MT-features-glossary";
|
|
3568
3573
|
// seperated because following urls have method names added
|
|
3569
3574
|
this._coreConfig.translationServiceUrl = (core === null || core === void 0 ? void 0 : core.translationServiceUrl) || "https://www.letsmt.eu/ws/service.svc/json/";
|
|
3570
|
-
this._textConfig.translationUrl = (
|
|
3571
|
-
this._textConfig.updateTranslationUrl = (
|
|
3572
|
-
this._coreConfig.systemListUrl = (
|
|
3575
|
+
this._textConfig.translationUrl = (_27 = text === null || text === void 0 ? void 0 : text.translationUrl) !== null && _27 !== void 0 ? _27 : this._coreConfig.translationServiceUrl + "TranslateEx";
|
|
3576
|
+
this._textConfig.updateTranslationUrl = (_28 = text === null || text === void 0 ? void 0 : text.updateTranslationUrl) !== null && _28 !== void 0 ? _28 : this._coreConfig.translationServiceUrl + "UpdateTranslation";
|
|
3577
|
+
this._coreConfig.systemListUrl = (_29 = core === null || core === void 0 ? void 0 : core.systemListUrl) !== null && _29 !== void 0 ? _29 : this._coreConfig.translationServiceUrl + "GetSystemList";
|
|
3573
3578
|
this._apiV2Config.xApiKey = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.xApiKey;
|
|
3574
|
-
this._apiV2Config.mtApiUrl = (
|
|
3575
|
-
this._apiV2Config.systemListUrl = (
|
|
3576
|
-
this._apiV2Config.translationUrl = (
|
|
3577
|
-
this._apiV2Config.fileTranslationUrl = (
|
|
3578
|
-
this._apiV2Config.grammarCheckUrl = (
|
|
3579
|
-
this._apiV2Config.autoDomainDetection = (
|
|
3580
|
-
this._textToSpeechConfig.languages = (
|
|
3581
|
-
this._textToSpeechConfig.maxCharsInText = (
|
|
3579
|
+
this._apiV2Config.mtApiUrl = (_30 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.mtApiUrl) !== null && _30 !== void 0 ? _30 : "api/translate/";
|
|
3580
|
+
this._apiV2Config.systemListUrl = (_31 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.systemListUrl) !== null && _31 !== void 0 ? _31 : this._apiV2Config.mtApiUrl + "language-directions";
|
|
3581
|
+
this._apiV2Config.translationUrl = (_32 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.translationUrl) !== null && _32 !== void 0 ? _32 : this._apiV2Config.mtApiUrl + "text";
|
|
3582
|
+
this._apiV2Config.fileTranslationUrl = (_33 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.fileTranslationUrl) !== null && _33 !== void 0 ? _33 : this._apiV2Config.mtApiUrl + "file";
|
|
3583
|
+
this._apiV2Config.grammarCheckUrl = (_34 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.grammarCheckUrl) !== null && _34 !== void 0 ? _34 : "https://mt.cs.ut.ee/api/grammar";
|
|
3584
|
+
this._apiV2Config.autoDomainDetection = (_35 = apiV2Config === null || apiV2Config === void 0 ? void 0 : apiV2Config.autoDomainDetection) !== null && _35 !== void 0 ? _35 : false;
|
|
3585
|
+
this._textToSpeechConfig.languages = (_36 = textToSpeech === null || textToSpeech === void 0 ? void 0 : textToSpeech.languages) !== null && _36 !== void 0 ? _36 : {};
|
|
3586
|
+
this._textToSpeechConfig.maxCharsInText = (_37 = textToSpeech === null || textToSpeech === void 0 ? void 0 : textToSpeech.maxCharsInText) !== null && _37 !== void 0 ? _37 : 3000;
|
|
3582
3587
|
this.editPropertiesBasedOnApi();
|
|
3583
3588
|
}
|
|
3584
3589
|
/**
|
|
@@ -3789,6 +3794,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
3789
3794
|
}]
|
|
3790
3795
|
}], ctorParameters: function () { return [{ type: i1$1.TranslateService }]; } });
|
|
3791
3796
|
|
|
3797
|
+
class CapitalizePipe {
|
|
3798
|
+
transform(value) {
|
|
3799
|
+
return `${value.charAt(0).toUpperCase()}${value.slice(1)}`;
|
|
3800
|
+
}
|
|
3801
|
+
}
|
|
3802
|
+
CapitalizePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CapitalizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
3803
|
+
CapitalizePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.3.0", ngImport: i0, type: CapitalizePipe, name: "capitalize" });
|
|
3804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: CapitalizePipe, decorators: [{
|
|
3805
|
+
type: Pipe,
|
|
3806
|
+
args: [{
|
|
3807
|
+
name: 'capitalize',
|
|
3808
|
+
}]
|
|
3809
|
+
}] });
|
|
3810
|
+
|
|
3792
3811
|
class TldTranslateAchievementComponent {
|
|
3793
3812
|
constructor() {
|
|
3794
3813
|
this.link = "https://tilde.com/news/tilde-machine-translation-technology-announced-worlds-most-accurate-wmt-competition";
|
|
@@ -4200,10 +4219,10 @@ class TldListMenuComponent {
|
|
|
4200
4219
|
}
|
|
4201
4220
|
}
|
|
4202
4221
|
TldListMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldListMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4203
|
-
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) |
|
|
4222
|
+
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" }] });
|
|
4204
4223
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldListMenuComponent, decorators: [{
|
|
4205
4224
|
type: Component,
|
|
4206
|
-
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) |
|
|
4225
|
+
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"] }]
|
|
4207
4226
|
}], propDecorators: { menu: [{
|
|
4208
4227
|
type: ViewChild,
|
|
4209
4228
|
args: [MatMenu]
|
|
@@ -4436,7 +4455,8 @@ TldCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
4436
4455
|
TldOpenCloseButtonComponent,
|
|
4437
4456
|
TranslateDomainPipe,
|
|
4438
4457
|
TldListMenuComponent,
|
|
4439
|
-
SourceAndTargetWrapperComponent
|
|
4458
|
+
SourceAndTargetWrapperComponent,
|
|
4459
|
+
CapitalizePipe], imports: [FormsModule,
|
|
4440
4460
|
CommonModule,
|
|
4441
4461
|
MaterialModule,
|
|
4442
4462
|
TranslateModule,
|
|
@@ -4450,7 +4470,8 @@ TldCommonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version
|
|
|
4450
4470
|
TldOpenCloseButtonComponent,
|
|
4451
4471
|
TranslateDomainPipe,
|
|
4452
4472
|
TldListMenuComponent,
|
|
4453
|
-
SourceAndTargetWrapperComponent
|
|
4473
|
+
SourceAndTargetWrapperComponent,
|
|
4474
|
+
CapitalizePipe] });
|
|
4454
4475
|
TldCommonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldCommonModule, imports: [FormsModule,
|
|
4455
4476
|
CommonModule,
|
|
4456
4477
|
MaterialModule,
|
|
@@ -4470,7 +4491,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4470
4491
|
TldOpenCloseButtonComponent,
|
|
4471
4492
|
TranslateDomainPipe,
|
|
4472
4493
|
TldListMenuComponent,
|
|
4473
|
-
SourceAndTargetWrapperComponent
|
|
4494
|
+
SourceAndTargetWrapperComponent,
|
|
4495
|
+
CapitalizePipe
|
|
4474
4496
|
],
|
|
4475
4497
|
imports: [
|
|
4476
4498
|
FormsModule,
|
|
@@ -4491,6 +4513,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
4491
4513
|
TranslateDomainPipe,
|
|
4492
4514
|
TldListMenuComponent,
|
|
4493
4515
|
SourceAndTargetWrapperComponent,
|
|
4516
|
+
CapitalizePipe
|
|
4494
4517
|
]
|
|
4495
4518
|
}]
|
|
4496
4519
|
}] });
|
|
@@ -4874,6 +4897,76 @@ var FileConversionTypes;
|
|
|
4874
4897
|
FileConversionTypes["IMAGE"] = "IMAGE";
|
|
4875
4898
|
})(FileConversionTypes || (FileConversionTypes = {}));
|
|
4876
4899
|
|
|
4900
|
+
var FileTypeIcons;
|
|
4901
|
+
(function (FileTypeIcons) {
|
|
4902
|
+
FileTypeIcons["WORD"] = "file_type_word";
|
|
4903
|
+
FileTypeIcons["WEB"] = "file_type_web";
|
|
4904
|
+
FileTypeIcons["OTHER"] = "file_type_other";
|
|
4905
|
+
FileTypeIcons["POWERPOINT"] = "file_type_powerpoint";
|
|
4906
|
+
FileTypeIcons["EXCEL"] = "file_type_excel";
|
|
4907
|
+
FileTypeIcons["OFFICE_OTHER"] = "file_type_office_other";
|
|
4908
|
+
FileTypeIcons["PDF"] = "file_type_pdf";
|
|
4909
|
+
FileTypeIcons["SCANNED"] = "file_type_scanned";
|
|
4910
|
+
FileTypeIcons["INTERCHANGE"] = "file_type_interchange";
|
|
4911
|
+
})(FileTypeIcons || (FileTypeIcons = {}));
|
|
4912
|
+
|
|
4913
|
+
var FileCategories;
|
|
4914
|
+
(function (FileCategories) {
|
|
4915
|
+
FileCategories["OFFICE"] = "OFFICE";
|
|
4916
|
+
FileCategories["SCANNED"] = "SCANNED";
|
|
4917
|
+
FileCategories["INTERCHANGE"] = "INTERCHANGE";
|
|
4918
|
+
FileCategories["WEB"] = "WEB";
|
|
4919
|
+
FileCategories["OTHER"] = "OTHER";
|
|
4920
|
+
})(FileCategories || (FileCategories = {}));
|
|
4921
|
+
|
|
4922
|
+
var FileTypes;
|
|
4923
|
+
(function (FileTypes) {
|
|
4924
|
+
FileTypes["WORD"] = "WORD";
|
|
4925
|
+
FileTypes["WEB"] = "WEB";
|
|
4926
|
+
FileTypes["OTHER"] = "OTHER";
|
|
4927
|
+
FileTypes["POWERPOINT"] = "POWERPOINT";
|
|
4928
|
+
FileTypes["EXCEL"] = "EXCEL";
|
|
4929
|
+
FileTypes["OFFICE_OTHER"] = "OFFICE_OTHER";
|
|
4930
|
+
FileTypes["PDF"] = "PDF";
|
|
4931
|
+
FileTypes["SCANNED"] = "SCANNED";
|
|
4932
|
+
FileTypes["INTERCHANGE"] = "INTERCHANGE";
|
|
4933
|
+
})(FileTypes || (FileTypes = {}));
|
|
4934
|
+
|
|
4935
|
+
var FileExtensions;
|
|
4936
|
+
(function (FileExtensions) {
|
|
4937
|
+
FileExtensions["DOC"] = "doc";
|
|
4938
|
+
FileExtensions["DOCX"] = "docx";
|
|
4939
|
+
FileExtensions["XLSX"] = "xlsx";
|
|
4940
|
+
FileExtensions["PPTX"] = "pptx";
|
|
4941
|
+
FileExtensions["ODT"] = "odt";
|
|
4942
|
+
FileExtensions["ODP"] = "odp";
|
|
4943
|
+
FileExtensions["ODS"] = "ods";
|
|
4944
|
+
FileExtensions["TXT"] = "txt";
|
|
4945
|
+
FileExtensions["RTF"] = "rtf";
|
|
4946
|
+
FileExtensions["PAGES"] = "pages";
|
|
4947
|
+
FileExtensions["SXW"] = "sxw";
|
|
4948
|
+
FileExtensions["JPG"] = "jpg";
|
|
4949
|
+
FileExtensions["JPEG"] = "jpeg";
|
|
4950
|
+
FileExtensions["PNG"] = "png";
|
|
4951
|
+
FileExtensions["BMP"] = "bmp";
|
|
4952
|
+
FileExtensions["PDF"] = "pdf";
|
|
4953
|
+
FileExtensions["SDLXLIFF"] = "sdlxliff";
|
|
4954
|
+
FileExtensions["SDLXLF"] = "sdlxlf";
|
|
4955
|
+
FileExtensions["TTX"] = "ttx";
|
|
4956
|
+
FileExtensions["TMX"] = "tmx";
|
|
4957
|
+
FileExtensions["XLF"] = "xlf";
|
|
4958
|
+
FileExtensions["XLIF"] = "xlif";
|
|
4959
|
+
FileExtensions["HTML"] = "html";
|
|
4960
|
+
FileExtensions["HTM"] = "htm";
|
|
4961
|
+
FileExtensions["JSON"] = "json";
|
|
4962
|
+
FileExtensions["XHTML"] = "xhtml";
|
|
4963
|
+
FileExtensions["XHT"] = "xht";
|
|
4964
|
+
FileExtensions["XLIFF"] = "xliff";
|
|
4965
|
+
FileExtensions["TEX"] = "tex";
|
|
4966
|
+
FileExtensions["TTL"] = "ttl";
|
|
4967
|
+
FileExtensions["SRT"] = "srt";
|
|
4968
|
+
})(FileExtensions || (FileExtensions = {}));
|
|
4969
|
+
|
|
4877
4970
|
class TldTranslateFileService {
|
|
4878
4971
|
constructor(fileApi, alerts, sanitizer, config, tldSystem) {
|
|
4879
4972
|
this.fileApi = fileApi;
|
|
@@ -5162,8 +5255,11 @@ class TldTranslateFileService {
|
|
|
5162
5255
|
translationFile.filePreviewProgress = data.percentDone;
|
|
5163
5256
|
}
|
|
5164
5257
|
translatedDocPreview(translationFile) {
|
|
5258
|
+
var _a, _b;
|
|
5259
|
+
// show preview for original extension if exists, if not, then preview for docx, if not then try with original filename.
|
|
5260
|
+
const fileName = (_b = (_a = translationFile.availableExtensions.find(ext => ext.extension === FileExtensions.DOCX)) === null || _a === void 0 ? void 0 : _a.fileName) !== null && _b !== void 0 ? _b : translationFile.originalFileName;
|
|
5165
5261
|
const params = {
|
|
5166
|
-
fileName:
|
|
5262
|
+
fileName: fileName,
|
|
5167
5263
|
translationDocId: translationFile.id
|
|
5168
5264
|
};
|
|
5169
5265
|
this.fileApi.translatedDocumentPreview(params)
|
|
@@ -6494,76 +6590,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
6494
6590
|
}]
|
|
6495
6591
|
}] });
|
|
6496
6592
|
|
|
6497
|
-
var FileTypeIcons;
|
|
6498
|
-
(function (FileTypeIcons) {
|
|
6499
|
-
FileTypeIcons["WORD"] = "file_type_word";
|
|
6500
|
-
FileTypeIcons["WEB"] = "file_type_web";
|
|
6501
|
-
FileTypeIcons["OTHER"] = "file_type_other";
|
|
6502
|
-
FileTypeIcons["POWERPOINT"] = "file_type_powerpoint";
|
|
6503
|
-
FileTypeIcons["EXCEL"] = "file_type_excel";
|
|
6504
|
-
FileTypeIcons["OFFICE_OTHER"] = "file_type_office_other";
|
|
6505
|
-
FileTypeIcons["PDF"] = "file_type_pdf";
|
|
6506
|
-
FileTypeIcons["SCANNED"] = "file_type_scanned";
|
|
6507
|
-
FileTypeIcons["INTERCHANGE"] = "file_type_interchange";
|
|
6508
|
-
})(FileTypeIcons || (FileTypeIcons = {}));
|
|
6509
|
-
|
|
6510
|
-
var FileCategories;
|
|
6511
|
-
(function (FileCategories) {
|
|
6512
|
-
FileCategories["OFFICE"] = "OFFICE";
|
|
6513
|
-
FileCategories["SCANNED"] = "SCANNED";
|
|
6514
|
-
FileCategories["INTERCHANGE"] = "INTERCHANGE";
|
|
6515
|
-
FileCategories["WEB"] = "WEB";
|
|
6516
|
-
FileCategories["OTHER"] = "OTHER";
|
|
6517
|
-
})(FileCategories || (FileCategories = {}));
|
|
6518
|
-
|
|
6519
|
-
var FileTypes;
|
|
6520
|
-
(function (FileTypes) {
|
|
6521
|
-
FileTypes["WORD"] = "WORD";
|
|
6522
|
-
FileTypes["WEB"] = "WEB";
|
|
6523
|
-
FileTypes["OTHER"] = "OTHER";
|
|
6524
|
-
FileTypes["POWERPOINT"] = "POWERPOINT";
|
|
6525
|
-
FileTypes["EXCEL"] = "EXCEL";
|
|
6526
|
-
FileTypes["OFFICE_OTHER"] = "OFFICE_OTHER";
|
|
6527
|
-
FileTypes["PDF"] = "PDF";
|
|
6528
|
-
FileTypes["SCANNED"] = "SCANNED";
|
|
6529
|
-
FileTypes["INTERCHANGE"] = "INTERCHANGE";
|
|
6530
|
-
})(FileTypes || (FileTypes = {}));
|
|
6531
|
-
|
|
6532
|
-
var FileExtensions;
|
|
6533
|
-
(function (FileExtensions) {
|
|
6534
|
-
FileExtensions["DOC"] = "doc";
|
|
6535
|
-
FileExtensions["DOCX"] = "docx";
|
|
6536
|
-
FileExtensions["XLSX"] = "xlsx";
|
|
6537
|
-
FileExtensions["PPTX"] = "pptx";
|
|
6538
|
-
FileExtensions["ODT"] = "odt";
|
|
6539
|
-
FileExtensions["ODP"] = "odp";
|
|
6540
|
-
FileExtensions["ODS"] = "ods";
|
|
6541
|
-
FileExtensions["TXT"] = "txt";
|
|
6542
|
-
FileExtensions["RTF"] = "rtf";
|
|
6543
|
-
FileExtensions["PAGES"] = "pages";
|
|
6544
|
-
FileExtensions["SXW"] = "sxw";
|
|
6545
|
-
FileExtensions["JPG"] = "jpg";
|
|
6546
|
-
FileExtensions["JPEG"] = "jpeg";
|
|
6547
|
-
FileExtensions["PNG"] = "png";
|
|
6548
|
-
FileExtensions["BMP"] = "bmp";
|
|
6549
|
-
FileExtensions["PDF"] = "pdf";
|
|
6550
|
-
FileExtensions["SDLXLIFF"] = "sdlxliff";
|
|
6551
|
-
FileExtensions["SDLXLF"] = "sdlxlf";
|
|
6552
|
-
FileExtensions["TTX"] = "ttx";
|
|
6553
|
-
FileExtensions["TMX"] = "tmx";
|
|
6554
|
-
FileExtensions["XLF"] = "xlf";
|
|
6555
|
-
FileExtensions["XLIF"] = "xlif";
|
|
6556
|
-
FileExtensions["HTML"] = "html";
|
|
6557
|
-
FileExtensions["HTM"] = "htm";
|
|
6558
|
-
FileExtensions["JSON"] = "json";
|
|
6559
|
-
FileExtensions["XHTML"] = "xhtml";
|
|
6560
|
-
FileExtensions["XHT"] = "xht";
|
|
6561
|
-
FileExtensions["XLIFF"] = "xliff";
|
|
6562
|
-
FileExtensions["TEX"] = "tex";
|
|
6563
|
-
FileExtensions["TTL"] = "ttl";
|
|
6564
|
-
FileExtensions["SRT"] = "srt";
|
|
6565
|
-
})(FileExtensions || (FileExtensions = {}));
|
|
6566
|
-
|
|
6567
6593
|
class ExtensionDialogComponent {
|
|
6568
6594
|
constructor(data) {
|
|
6569
6595
|
this.data = data;
|
|
@@ -7977,10 +8003,10 @@ class TextareaWithBackgroundComponent {
|
|
|
7977
8003
|
}
|
|
7978
8004
|
}
|
|
7979
8005
|
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 });
|
|
7980
|
-
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" }] });
|
|
8006
|
+
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" }] });
|
|
7981
8007
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TextareaWithBackgroundComponent, decorators: [{
|
|
7982
8008
|
type: Component,
|
|
7983
|
-
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"] }]
|
|
8009
|
+
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"] }]
|
|
7984
8010
|
}], ctorParameters: function () { return [{ type: TldAlertService }, { type: TldTranslateTextService }]; }, propDecorators: { sourceInput: [{
|
|
7985
8011
|
type: ViewChild,
|
|
7986
8012
|
args: ["sourceInput"]
|
|
@@ -8564,6 +8590,7 @@ class TldDomainListComponent {
|
|
|
8564
8590
|
this.selectionChange = new EventEmitter();
|
|
8565
8591
|
this.titleKey = "title";
|
|
8566
8592
|
this.valueKey = "domain";
|
|
8593
|
+
this.showTitle = this.config.coreConfig.showDomainTitle;
|
|
8567
8594
|
}
|
|
8568
8595
|
get list() { return this._list; }
|
|
8569
8596
|
set list(value) {
|
|
@@ -8577,7 +8604,6 @@ class TldDomainListComponent {
|
|
|
8577
8604
|
this.selectedDomainName = this.translateDomainName(value === null || value === void 0 ? void 0 : value.title);
|
|
8578
8605
|
}
|
|
8579
8606
|
;
|
|
8580
|
-
get showTitle() { return this.config.coreConfig.showDomainTitle; }
|
|
8581
8607
|
ngOnInit() {
|
|
8582
8608
|
this.translate.stream("DOMAINS").subscribe((translations) => {
|
|
8583
8609
|
this.translations = translations;
|
|
@@ -8602,10 +8628,10 @@ class TldDomainListComponent {
|
|
|
8602
8628
|
}
|
|
8603
8629
|
}
|
|
8604
8630
|
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 });
|
|
8605
|
-
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 |
|
|
8631
|
+
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" }] });
|
|
8606
8632
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImport: i0, type: TldDomainListComponent, decorators: [{
|
|
8607
8633
|
type: Component,
|
|
8608
|
-
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 |
|
|
8634
|
+
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"] }]
|
|
8609
8635
|
}], ctorParameters: function () { return [{ type: i1$1.TranslateService }, { type: TldTranslateConfigService }, { type: TranslateDomainPipe }]; }, propDecorators: { list: [{
|
|
8610
8636
|
type: Input
|
|
8611
8637
|
}], selected: [{
|
|
@@ -8668,11 +8694,12 @@ class TldTranslateSwitcherComponent {
|
|
|
8668
8694
|
return ((_a = this.config) === null || _a === void 0 ? void 0 : _a.coreConfig.showVendors) && ((_b = this.settings.vendors) === null || _b === void 0 ? void 0 : _b.length) > 0;
|
|
8669
8695
|
}
|
|
8670
8696
|
get showDomains() {
|
|
8671
|
-
var _a, _b, _c, _d, _e;
|
|
8672
|
-
|
|
8697
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
8698
|
+
const singleDomainAvailable = ((_a = this.config) === null || _a === void 0 ? void 0 : _a.textConfig.displaySingleAvailableDomain) && ((_d = (_c = (_b = this.settings) === null || _b === void 0 ? void 0 : _b.domains) === null || _c === void 0 ? void 0 : _c.domains) === null || _d === void 0 ? void 0 : _d.length) >= 1;
|
|
8699
|
+
return (((_e = this.config) === null || _e === void 0 ? void 0 : _e.coreConfig.showDomains) &&
|
|
8673
8700
|
!this.showDomainsWithLanguageName &&
|
|
8674
|
-
((
|
|
8675
|
-
|
|
8701
|
+
((((_h = (_g = (_f = this.settings) === null || _f === void 0 ? void 0 : _f.domains) === null || _g === void 0 ? void 0 : _g.domains) === null || _h === void 0 ? void 0 : _h.length) > 1 && ((_j = this.settings) === null || _j === void 0 ? void 0 : _j.source)) ||
|
|
8702
|
+
singleDomainAvailable));
|
|
8676
8703
|
}
|
|
8677
8704
|
get isSwapLanguagesDisabled() {
|
|
8678
8705
|
return this.disabled || !this.settings.swapActive;
|
|
@@ -10079,6 +10106,7 @@ class TldTranslateComponent {
|
|
|
10079
10106
|
this.wtwQueryService = wtwQueryService;
|
|
10080
10107
|
this.systemPickerService = systemPickerService;
|
|
10081
10108
|
this.onError = new EventEmitter();
|
|
10109
|
+
this.onSystemChange = new EventEmitter();
|
|
10082
10110
|
this.messages = [];
|
|
10083
10111
|
this.noSystemsError = { body: "TLD_TRANSLATE.ERROR_NO_SYSTEMS_LOADED", type: NotificationMessageType.ERROR, hideClose: true };
|
|
10084
10112
|
this.languageMenuV1 = languageMenuVersion.V1;
|
|
@@ -10157,6 +10185,7 @@ class TldTranslateComponent {
|
|
|
10157
10185
|
if (!val) {
|
|
10158
10186
|
return;
|
|
10159
10187
|
}
|
|
10188
|
+
this.onSystemChange.emit(val);
|
|
10160
10189
|
this.switcherOptions = {
|
|
10161
10190
|
domains: val.domains,
|
|
10162
10191
|
source: { code: val.sourceLang.lang, systemId: val.systemId },
|
|
@@ -10248,7 +10277,7 @@ class TldTranslateComponent {
|
|
|
10248
10277
|
}
|
|
10249
10278
|
}
|
|
10250
10279
|
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 });
|
|
10251
|
-
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 (closeClicked)=\"removeMessage(ix)\">\r\n </lib-tld-notification-message>\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}\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: [
|
|
10280
|
+
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 <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 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}\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: [
|
|
10252
10281
|
trigger('openCloseAnimation', [
|
|
10253
10282
|
transition(':enter', [
|
|
10254
10283
|
style({ height: 0 }),
|
|
@@ -10270,6 +10299,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
10270
10299
|
], 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 (closeClicked)=\"removeMessage(ix)\">\r\n </lib-tld-notification-message>\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}\n"] }]
|
|
10271
10300
|
}], 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: [{
|
|
10272
10301
|
type: Output
|
|
10302
|
+
}], onSystemChange: [{
|
|
10303
|
+
type: Output
|
|
10273
10304
|
}], tldTranslateBody: [{
|
|
10274
10305
|
type: ViewChild,
|
|
10275
10306
|
args: [TldTranslateBodyComponent]
|
|
@@ -10887,5 +10918,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.3.0", ngImpor
|
|
|
10887
10918
|
* Generated bundle index. Do not edit.
|
|
10888
10919
|
*/
|
|
10889
10920
|
|
|
10890
|
-
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 };
|
|
10921
|
+
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 };
|
|
10891
10922
|
//# sourceMappingURL=tilde-nlp-ngx-translate.mjs.map
|