@tilde-nlp/ngx-common 4.0.26 → 4.0.27
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/esm2022/lib/open-close-button/open-close-button.component.mjs +3 -3
- package/esm2022/lib/open-close-button/open-close-button.module.mjs +1 -1
- package/esm2022/lib/terminology/config/services/terminology-config/terminology-config.service.mjs +20 -17
- package/esm2022/lib/terminology/factories/terminology-api.factory.mjs +4 -4
- package/esm2022/lib/terminology/factories/terminology-system.factory.mjs +4 -4
- package/fesm2022/tilde-nlp-ngx-common.mjs +32 -30
- package/fesm2022/tilde-nlp-ngx-common.mjs.map +1 -1
- package/lib/terminology/config/services/terminology-config/terminology-config.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -26,11 +26,11 @@ export class OpenCloseButtonComponent {
|
|
|
26
26
|
this.button.focus();
|
|
27
27
|
}
|
|
28
28
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OpenCloseButtonComponent, deps: [{ token: OPEN_CLOSE_BTN_ICONS_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
29
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: OpenCloseButtonComponent, selector: "lib-open-close-button", inputs: { disableFocusOnAction: "disableFocusOnAction", disabled: "disabled", isIcon: "isIcon", ariaLabelCode: "ariaLabelCode", isOpened: "isOpened" }, viewQueries: [{ propertyName: "button", first: true, predicate: MatButton, descendants: true }], ngImport: i0, template: "<button\r\n mat-button\r\n *ngIf=\"!isIcon\"\r\n [disabled]=\"disabled\"\r\n [disableRipple]=\"true\"\r\n [ngClass.lt-md]=\"'open-close-button-tablet'\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\"
|
|
29
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: OpenCloseButtonComponent, selector: "lib-open-close-button", inputs: { disableFocusOnAction: "disableFocusOnAction", disabled: "disabled", isIcon: "isIcon", ariaLabelCode: "ariaLabelCode", isOpened: "isOpened" }, viewQueries: [{ propertyName: "button", first: true, predicate: MatButton, descendants: true }], ngImport: i0, template: "<button\r\n mat-button\r\n *ngIf=\"!isIcon\"\r\n [disabled]=\"disabled\"\r\n [disableRipple]=\"true\"\r\n [ngClass.lt-md]=\"'open-close-button-tablet'\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\">\r\n <span fxLayout=\"row\" fxLayoutAlign=\"center center\">\r\n <span class=\"open-close-button-content text-l\" fxLayoutAlign=\"center center\">\r\n <ng-content></ng-content>\r\n </span>\r\n\r\n <span class=\"material-icons\">\r\n {{ isOpened ? icons.open : icons.close }}\r\n </span>\r\n </span>\r\n</button>\r\n<button\r\n mat-icon-button\r\n fxLayoutAlign=\"center center\"\r\n *ngIf=\"isIcon\"\r\n [disabled]=\"disabled\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\">\r\n <span class=\"material-icons\">\r\n {{ isOpened ? icons.open : icons.close }}\r\n </span>\r\n</button>\r\n", dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3.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: i3.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.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: "pipe", type: i5.TranslatePipe, name: "translate" }] }); }
|
|
30
30
|
}
|
|
31
31
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OpenCloseButtonComponent, decorators: [{
|
|
32
32
|
type: Component,
|
|
33
|
-
args: [{ selector: 'lib-open-close-button', template: "<button\r\n mat-button\r\n *ngIf=\"!isIcon\"\r\n [disabled]=\"disabled\"\r\n [disableRipple]=\"true\"\r\n [ngClass.lt-md]=\"'open-close-button-tablet'\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\"
|
|
33
|
+
args: [{ selector: 'lib-open-close-button', template: "<button\r\n mat-button\r\n *ngIf=\"!isIcon\"\r\n [disabled]=\"disabled\"\r\n [disableRipple]=\"true\"\r\n [ngClass.lt-md]=\"'open-close-button-tablet'\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\">\r\n <span fxLayout=\"row\" fxLayoutAlign=\"center center\">\r\n <span class=\"open-close-button-content text-l\" fxLayoutAlign=\"center center\">\r\n <ng-content></ng-content>\r\n </span>\r\n\r\n <span class=\"material-icons\">\r\n {{ isOpened ? icons.open : icons.close }}\r\n </span>\r\n </span>\r\n</button>\r\n<button\r\n mat-icon-button\r\n fxLayoutAlign=\"center center\"\r\n *ngIf=\"isIcon\"\r\n [disabled]=\"disabled\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\">\r\n <span class=\"material-icons\">\r\n {{ isOpened ? icons.open : icons.close }}\r\n </span>\r\n</button>\r\n" }]
|
|
34
34
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
35
35
|
type: Optional
|
|
36
36
|
}, {
|
|
@@ -50,4 +50,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
50
50
|
type: ViewChild,
|
|
51
51
|
args: [MatButton]
|
|
52
52
|
}] } });
|
|
53
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
53
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3Blbi1jbG9zZS1idXR0b24uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNv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lnbj1cImNlbnRlciBjZW50ZXJcIlxyXG4gICpuZ0lmPVwiaXNJY29uXCJcclxuICBbZGlzYWJsZWRdPVwiZGlzYWJsZWRcIlxyXG4gIFthdHRyLmFyaWEtbGFiZWxdPVwiYXJpYUxhYmVsQ29kZSB8IHRyYW5zbGF0ZVwiPlxyXG4gIDxzcGFuIGNsYXNzPVwibWF0ZXJpYWwtaWNvbnNcIj5cclxuICAgIHt7IGlzT3BlbmVkID8gaWNvbnMub3BlbiA6IGljb25zLmNsb3NlIH19XHJcbiAgPC9zcGFuPlxyXG48L2J1dHRvbj5cclxuIl19
|
|
@@ -18,4 +18,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
18
18
|
exports: [OpenCloseButtonComponent]
|
|
19
19
|
}]
|
|
20
20
|
}] });
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib3Blbi1jbG9zZS1idXR0b24ubW9kdWxlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvbmd4LWNvbW1vbi9zcmMvbGliL29wZW4tY2xvc2UtYnV0dG9uL29wZW4tY2xvc2UtYnV0dG9uLm1vZHVsZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ3pDLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMvQyxPQUFPLEVBQUUsd0JBQXdCLEVBQUUsTUFBTSwrQkFBK0IsQ0FBQztBQUN6RSxPQUFPLEVBQUUsZUFBZSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFDdEQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLDBCQUEwQixDQUFD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uICBkZWNsYXJhdGlvbnM6IFtPcGVuQ2xvc2VCdXR0b25Db21wb25lbnRdLFxyXG4gIGltcG9ydHM6IFtDb21tb25Nb2R1bGUsIFRyYW5zbGF0ZU1vZHVsZSwgTWF0QnV0dG9uTW9kdWxlLCBGbGV4TGF5b3V0TW9kdWxlXSxcclxuICBleHBvcnRzOiBbT3BlbkNsb3NlQnV0dG9uQ29tcG9uZW50XVxyXG59KVxyXG5leHBvcnQgY2xhc3MgT3BlbkNsb3NlQnV0dG9uTW9kdWxlIHsgfVxyXG4iXX0=
|
package/esm2022/lib/terminology/config/services/terminology-config/terminology-config.service.mjs
CHANGED
|
@@ -1,37 +1,40 @@
|
|
|
1
1
|
import { Injectable } from "@angular/core";
|
|
2
|
+
import { TranslationApiVersion } from "../../../enums/translation-api-version.model";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export class TerminologyConfigService {
|
|
4
5
|
constructor() {
|
|
5
6
|
this._termConfig = {};
|
|
7
|
+
this.defaultTranslationServiceUrl = "https://www.letsmt.eu/ws/service.svc/json/";
|
|
6
8
|
}
|
|
7
9
|
get termConfig() {
|
|
8
10
|
return this._termConfig;
|
|
9
11
|
}
|
|
10
12
|
initConfigs(configuration) {
|
|
11
13
|
const config = configuration ?? {};
|
|
12
|
-
this._termConfig.collectionNameMinLength = config?.collectionNameMinLength;
|
|
13
|
-
this._termConfig.collectionNameMaxLength = config?.collectionNameMaxLength;
|
|
14
|
-
this._termConfig.translationServiceUrl = config?.translationServiceUrl;
|
|
15
|
-
this._termConfig.apiVersion = config?.apiVersion;
|
|
14
|
+
this._termConfig.collectionNameMinLength = config?.collectionNameMinLength ?? 8;
|
|
15
|
+
this._termConfig.collectionNameMaxLength = config?.collectionNameMaxLength ?? 300;
|
|
16
|
+
this._termConfig.translationServiceUrl = config?.translationServiceUrl ?? this.defaultTranslationServiceUrl;
|
|
17
|
+
this._termConfig.apiVersion = config?.apiVersion ?? TranslationApiVersion.V1;
|
|
16
18
|
this._termConfig.xApiKey = config?.xApiKey;
|
|
17
|
-
this._termConfig.systemListUrl = config?.systemListUrl;
|
|
19
|
+
this._termConfig.systemListUrl = config?.systemListUrl ?? this.defaultTranslationServiceUrl + "GetSystemList";
|
|
20
|
+
;
|
|
18
21
|
this._termConfig.engineTermUrl = config?.engineTermUrl;
|
|
19
|
-
this._termConfig.terminologyPortalUrl = config?.terminologyPortalUrl;
|
|
20
|
-
this._termConfig.isTermPortalSupported = config?.isTermPortalSupported;
|
|
21
|
-
this._termConfig.refreshTimeoutMs = config?.refreshTimeoutMs;
|
|
22
|
-
this._termConfig.refreshTimeoutMsWhenImporting = config?.refreshTimeoutMsWhenImporting;
|
|
23
|
-
this._termConfig.allowedSystemStatuses = config?.allowedSystemStatuses;
|
|
24
|
-
this._termConfig.defaultVendor = config?.defaultVendor;
|
|
22
|
+
this._termConfig.terminologyPortalUrl = config?.terminologyPortalUrl ?? "https://term.tilde.com";
|
|
23
|
+
this._termConfig.isTermPortalSupported = config?.isTermPortalSupported ?? false;
|
|
24
|
+
this._termConfig.refreshTimeoutMs = config?.refreshTimeoutMs ?? 10000;
|
|
25
|
+
this._termConfig.refreshTimeoutMsWhenImporting = config?.refreshTimeoutMsWhenImporting ?? 5000;
|
|
26
|
+
this._termConfig.allowedSystemStatuses = config?.allowedSystemStatuses ?? ['running', 'standby', 'queuingtransl'];
|
|
27
|
+
this._termConfig.defaultVendor = config?.defaultVendor ?? "Tilde";
|
|
25
28
|
this._termConfig.canCreateCollection = config?.canCreateCollection;
|
|
26
|
-
this._termConfig.isAuth = config?.isAuth;
|
|
29
|
+
this._termConfig.isAuth = config?.isAuth ?? false;
|
|
27
30
|
this._termConfig.defaultGlossaryManagementLink = config?.defaultGlossaryManagementLink;
|
|
28
31
|
this._termConfig.isCollectionsActivated = config?.isCollectionsActivated;
|
|
29
|
-
this._termConfig.maxRecentSystemCount = config?.maxRecentSystemCount;
|
|
30
|
-
this._termConfig.autoDomainDetection = config?.autoDomainDetection;
|
|
31
|
-
this._termConfig.defaultDomains = config?.defaultDomains;
|
|
32
|
+
this._termConfig.maxRecentSystemCount = config?.maxRecentSystemCount ?? 4;
|
|
33
|
+
this._termConfig.autoDomainDetection = config?.autoDomainDetection ?? false;
|
|
34
|
+
this._termConfig.defaultDomains = config?.defaultDomains ?? ["GEN", "general"];
|
|
32
35
|
this._termConfig.clientId = config?.clientId;
|
|
33
36
|
this._termConfig.appId = config?.appId;
|
|
34
|
-
this._termConfig.appName = config?.appName;
|
|
37
|
+
this._termConfig.appName = config?.appName ?? "Tilde MT";
|
|
35
38
|
}
|
|
36
39
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TerminologyConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
37
40
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TerminologyConfigService, providedIn: "root" }); }
|
|
@@ -42,4 +45,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
42
45
|
providedIn: "root",
|
|
43
46
|
}]
|
|
44
47
|
}] });
|
|
45
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
48
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVybWlub2xvZ3ktY29uZmlnLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtY29tbW9uL3NyYy9saWIvdGVybWlub2xvZ3kvY29uZmlnL3NlcnZpY2VzL3Rlcm1pbm9sb2d5LWNvbmZpZy90ZXJtaW5vbG9neS1jb25maWcuc2VydmljZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsVUFBVSxFQUFFLE1BQU0sZUFBZSxDQ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nPy5kZWZhdWx0R2xvc3NhcnlNYW5hZ2VtZW50TGluaztcclxuXHJcbiAgICB0aGlzLl90ZXJtQ29uZmlnLmlzQ29sbGVjdGlvbnNBY3RpdmF0ZWQgPSBjb25maWc/LmlzQ29sbGVjdGlvbnNBY3RpdmF0ZWQ7XHJcbiAgICB0aGlzLl90ZXJtQ29uZmlnLm1heFJlY2VudFN5c3RlbUNvdW50ID0gY29uZmlnPy5tYXhSZWNlbnRTeXN0ZW1Db3VudCA/PyA0O1xyXG4gICAgdGhpcy5fdGVybUNvbmZpZy5hdXRvRG9tYWluRGV0ZWN0aW9uID0gY29uZmlnPy5hdXRvRG9tYWluRGV0ZWN0aW9uID8/IGZhbHNlO1xyXG4gICAgdGhpcy5fdGVybUNvbmZpZy5kZWZhdWx0RG9tYWlucyA9IGNvbmZpZz8uZGVmYXVsdERvbWFpbnMgPz8gW1wiR0VOXCIsIFwiZ2VuZXJhbFwiXTtcclxuICAgIHRoaXMuX3Rlcm1Db25maWcuY2xpZW50SWQgPSBjb25maWc/LmNsaWVudElkO1xyXG4gICAgdGhpcy5fdGVybUNvbmZpZy5hcHBJZCA9IGNvbmZpZz8uYXBwSWQ7XHJcbiAgICB0aGlzLl90ZXJtQ29uZmlnLmFwcE5hbWUgPSBjb25maWc/LmFwcE5hbWUgPz8gXCJUaWxkZSBNVFwiO1xyXG4gIH1cclxufVxyXG4iXX0=
|
|
@@ -2,11 +2,11 @@ import { TranslationApiVersion } from "../enums/translation-api-version.model";
|
|
|
2
2
|
import { TerminologyApiV1Service, TerminologyApiV2Service } from "../services";
|
|
3
3
|
export function terminologyApiFactory(http, config, engineTermApi) {
|
|
4
4
|
const apiVersion = config?.termConfig?.apiVersion;
|
|
5
|
-
if (apiVersion === TranslationApiVersion.
|
|
6
|
-
return new
|
|
5
|
+
if (apiVersion === TranslationApiVersion.V2) {
|
|
6
|
+
return new TerminologyApiV2Service(config, engineTermApi);
|
|
7
7
|
}
|
|
8
8
|
else {
|
|
9
|
-
return new
|
|
9
|
+
return new TerminologyApiV1Service(http, config);
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
12
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVybWlub2xvZ3ktYXBpLmZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtY29tbW9uL3NyYy9saWIvdGVybWlub2xvZ3kvZmFjdG9yaWVzL3Rlcm1pbm9sb2d5LWFwaS5mYWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQy9FLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSx1QkFBdUIsRUFBRSxNQUFNLGFBQWEsQ0FBQztBQUcvRSxNQUFNLFVBQVUscUJBQXFCLENBQUMsSUFBZ0IsRUFBRSxNQUFnQyxFQUFFLGFBQW1DO0lBQzNILE1BQU0sVUFBVSxHQUFHLE1BQU0sRUFBRSxVQUFVLEVBQUUsVUFBVSxDQUFDO0lBRWxELElBQUksVUFBVSxLQUFLLHFCQUFxQixDQUFDLEVBQUUsRUFBRTtRQUMzQyxPQUFPLElBQUksdUJBQXVCLENBQUMsTUFBTSxFQUFFLGFBQWEsQ0FBQyxDQUFDO0tBQzNEO1NBQU07UUFDTCxPQUFPLElBQUksdUJBQXVCLENBQUMsSUFBSSxFQUFFLE1BQU0sQ0FBQyxDQUFDO0tBQ2xEO0FBQ0gsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IEh0dHBDbGllbnQgfSBmcm9tIFwiQGFuZ3VsYXIvY29tbW9uL2h0dHBcIjtcclxuaW1wb3J0IHsgVGVybWlub2xvZ3lDb25maWdTZXJ2aWNlIH0gZnJvbSBcIi4uL2NvbmZpZy9zZXJ2aWNlc1wiO1xyXG5pbXBvcnQgeyBUcmFuc2xhdGlvbkFwaVZlcnNpb24gfSBmcm9tIFwiLi4vZW51bXMvdHJhbnNsYXRpb24tYXBpLXZlcnNpb24ubW9kZWxcIjtcclxuaW1wb3J0IHsgVGVybWlub2xvZ3lBcGlWMVNlcnZpY2UsIFRlcm1pbm9sb2d5QXBpVjJTZXJ2aWNlIH0gZnJvbSBcIi4uL3NlcnZpY2VzXCI7XHJcbmltcG9ydCB7IEVuZ2luZVRlcm1BcGlTZXJ2aWNlIH0gZnJvbSBcIi4uL3NlcnZpY2VzL2VuZ2luZS10ZXJtLWFwaS9lbmdpbmUtdGVybS1hcGkuc2VydmljZVwiO1xyXG5cclxuZXhwb3J0IGZ1bmN0aW9uIHRlcm1pbm9sb2d5QXBpRmFjdG9yeShodHRwOiBIdHRwQ2xpZW50LCBjb25maWc6IFRlcm1pbm9sb2d5Q29uZmlnU2VydmljZSwgZW5naW5lVGVybUFwaTogRW5naW5lVGVybUFwaVNlcnZpY2UpIHtcclxuICBjb25zdCBhcGlWZXJzaW9uID0gY29uZmlnPy50ZXJtQ29uZmlnPy5hcGlWZXJzaW9uO1xyXG5cclxuICBpZiAoYXBpVmVyc2lvbiA9PT0gVHJhbnNsYXRpb25BcGlWZXJzaW9uLlYyKSB7XHJcbiAgICByZXR1cm4gbmV3IFRlcm1pbm9sb2d5QXBpVjJTZXJ2aWNlKGNvbmZpZywgZW5naW5lVGVybUFwaSk7XHJcbiAgfSBlbHNlIHtcclxuICAgIHJldHVybiBuZXcgVGVybWlub2xvZ3lBcGlWMVNlcnZpY2UoaHR0cCwgY29uZmlnKTtcclxuICB9XHJcbn1cclxuIl19
|
|
@@ -3,11 +3,11 @@ import { SystemApiV1Service } from "../services/system-api-v1/system-api-v1.serv
|
|
|
3
3
|
import { SystemApiV2Service } from "../services/system-api-v2/system-api-v2.service";
|
|
4
4
|
export function terminologySystemFactory(config, http) {
|
|
5
5
|
const apiVersion = config?.termConfig?.apiVersion;
|
|
6
|
-
if (apiVersion === TranslationApiVersion.
|
|
7
|
-
return new
|
|
6
|
+
if (apiVersion === TranslationApiVersion.V2) {
|
|
7
|
+
return new SystemApiV2Service(http, config);
|
|
8
8
|
}
|
|
9
9
|
else {
|
|
10
|
-
return new
|
|
10
|
+
return new SystemApiV1Service(http, config);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVybWlub2xvZ3ktc3lzdGVtLmZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9uZ3gtY29tbW9uL3NyYy9saWIvdGVybWlub2xvZ3kvZmFjdG9yaWVzL3Rlcm1pbm9sb2d5LXN5c3RlbS5mYWN0b3J5LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUVBLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLHdDQUF3QyxDQUFDO0FBQy9FLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGlEQUFpRCxDQUFDO0FBQ3JGLE9BQU8sRUFBRSxrQkFBa0IsRUFBRSxNQUFNLGlEQUFpRCxDQUFDO0FBRXJGLE1BQU0sVUFBVSx3QkFBd0IsQ0FBQyxNQUFnQyxFQUFFLElBQWdCO0lBQ3pGLE1BQU0sVUFBVSxHQUFHLE1BQU0sRUFBRSxVQUFVLEVBQUUsVUFBVSxDQUFDO0lBRWxELElBQUksVUFBVSxLQUFLLHFCQUFxQixDQUFDLEVBQUUsRUFBRTtRQUMzQyxPQUFPLElBQUksa0JBQWtCLENBQUMsSUFBSSxFQUFFLE1BQU0sQ0FBQyxDQUFDO0tBQzdDO1NBQU07UUFDTCxPQUFPLElBQUksa0JBQWtCLENBQUMsSUFBSSxFQUFFLE1BQU0sQ0FBQyxDQUFDO0tBQzdDO0FBQ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1hcGktdjIuc2VydmljZVwiO1xyXG5cclxuZXhwb3J0IGZ1bmN0aW9uIHRlcm1pbm9sb2d5U3lzdGVtRmFjdG9yeShjb25maWc6IFRlcm1pbm9sb2d5Q29uZmlnU2VydmljZSwgaHR0cDogSHR0cENsaWVudCkge1xyXG4gIGNvbnN0IGFwaVZlcnNpb24gPSBjb25maWc/LnRlcm1Db25maWc/LmFwaVZlcnNpb247XHJcblxyXG4gIGlmIChhcGlWZXJzaW9uID09PSBUcmFuc2xhdGlvbkFwaVZlcnNpb24uVjIpIHtcclxuICAgIHJldHVybiBuZXcgU3lzdGVtQXBpVjJTZXJ2aWNlKGh0dHAsIGNvbmZpZyk7XHJcbiAgfSBlbHNlIHtcclxuICAgIHJldHVybiBuZXcgU3lzdGVtQXBpVjFTZXJ2aWNlKGh0dHAsIGNvbmZpZyk7XHJcbiAgfVxyXG59XHJcbiJdfQ==
|
|
@@ -2234,11 +2234,11 @@ class OpenCloseButtonComponent {
|
|
|
2234
2234
|
this.button.focus();
|
|
2235
2235
|
}
|
|
2236
2236
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OpenCloseButtonComponent, deps: [{ token: OPEN_CLOSE_BTN_ICONS_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2237
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: OpenCloseButtonComponent, selector: "lib-open-close-button", inputs: { disableFocusOnAction: "disableFocusOnAction", disabled: "disabled", isIcon: "isIcon", ariaLabelCode: "ariaLabelCode", isOpened: "isOpened" }, viewQueries: [{ propertyName: "button", first: true, predicate: MatButton, descendants: true }], ngImport: i0, template: "<button\r\n mat-button\r\n *ngIf=\"!isIcon\"\r\n [disabled]=\"disabled\"\r\n [disableRipple]=\"true\"\r\n [ngClass.lt-md]=\"'open-close-button-tablet'\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\"
|
|
2237
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: OpenCloseButtonComponent, selector: "lib-open-close-button", inputs: { disableFocusOnAction: "disableFocusOnAction", disabled: "disabled", isIcon: "isIcon", ariaLabelCode: "ariaLabelCode", isOpened: "isOpened" }, viewQueries: [{ propertyName: "button", first: true, predicate: MatButton, descendants: true }], ngImport: i0, template: "<button\r\n mat-button\r\n *ngIf=\"!isIcon\"\r\n [disabled]=\"disabled\"\r\n [disableRipple]=\"true\"\r\n [ngClass.lt-md]=\"'open-close-button-tablet'\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\">\r\n <span fxLayout=\"row\" fxLayoutAlign=\"center center\">\r\n <span class=\"open-close-button-content text-l\" fxLayoutAlign=\"center center\">\r\n <ng-content></ng-content>\r\n </span>\r\n\r\n <span class=\"material-icons\">\r\n {{ isOpened ? icons.open : icons.close }}\r\n </span>\r\n </span>\r\n</button>\r\n<button\r\n mat-icon-button\r\n fxLayoutAlign=\"center center\"\r\n *ngIf=\"isIcon\"\r\n [disabled]=\"disabled\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\">\r\n <span class=\"material-icons\">\r\n {{ isOpened ? icons.open : icons.close }}\r\n </span>\r\n</button>\r\n", dependencies: [{ kind: "directive", type: i2$2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i1$1.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i1$1.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i2$3.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: i2$3.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: i6.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: "pipe", type: i1$2.TranslatePipe, name: "translate" }] }); }
|
|
2238
2238
|
}
|
|
2239
2239
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: OpenCloseButtonComponent, decorators: [{
|
|
2240
2240
|
type: Component,
|
|
2241
|
-
args: [{ selector: 'lib-open-close-button', template: "<button\r\n mat-button\r\n *ngIf=\"!isIcon\"\r\n [disabled]=\"disabled\"\r\n [disableRipple]=\"true\"\r\n [ngClass.lt-md]=\"'open-close-button-tablet'\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\"
|
|
2241
|
+
args: [{ selector: 'lib-open-close-button', template: "<button\r\n mat-button\r\n *ngIf=\"!isIcon\"\r\n [disabled]=\"disabled\"\r\n [disableRipple]=\"true\"\r\n [ngClass.lt-md]=\"'open-close-button-tablet'\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\">\r\n <span fxLayout=\"row\" fxLayoutAlign=\"center center\">\r\n <span class=\"open-close-button-content text-l\" fxLayoutAlign=\"center center\">\r\n <ng-content></ng-content>\r\n </span>\r\n\r\n <span class=\"material-icons\">\r\n {{ isOpened ? icons.open : icons.close }}\r\n </span>\r\n </span>\r\n</button>\r\n<button\r\n mat-icon-button\r\n fxLayoutAlign=\"center center\"\r\n *ngIf=\"isIcon\"\r\n [disabled]=\"disabled\"\r\n [attr.aria-label]=\"ariaLabelCode | translate\">\r\n <span class=\"material-icons\">\r\n {{ isOpened ? icons.open : icons.close }}\r\n </span>\r\n</button>\r\n" }]
|
|
2242
2242
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
2243
2243
|
type: Optional
|
|
2244
2244
|
}, {
|
|
@@ -2536,38 +2536,46 @@ class CombinedCollection {
|
|
|
2536
2536
|
|
|
2537
2537
|
const TERMINOLOGY_API_TOKEN = "TERMINOLOGY_API_TOKEN";
|
|
2538
2538
|
|
|
2539
|
+
var TranslationApiVersion;
|
|
2540
|
+
(function (TranslationApiVersion) {
|
|
2541
|
+
TranslationApiVersion[TranslationApiVersion["V1"] = 0] = "V1";
|
|
2542
|
+
TranslationApiVersion[TranslationApiVersion["V2"] = 1] = "V2";
|
|
2543
|
+
})(TranslationApiVersion || (TranslationApiVersion = {}));
|
|
2544
|
+
|
|
2539
2545
|
class TerminologyConfigService {
|
|
2540
2546
|
constructor() {
|
|
2541
2547
|
this._termConfig = {};
|
|
2548
|
+
this.defaultTranslationServiceUrl = "https://www.letsmt.eu/ws/service.svc/json/";
|
|
2542
2549
|
}
|
|
2543
2550
|
get termConfig() {
|
|
2544
2551
|
return this._termConfig;
|
|
2545
2552
|
}
|
|
2546
2553
|
initConfigs(configuration) {
|
|
2547
2554
|
const config = configuration ?? {};
|
|
2548
|
-
this._termConfig.collectionNameMinLength = config?.collectionNameMinLength;
|
|
2549
|
-
this._termConfig.collectionNameMaxLength = config?.collectionNameMaxLength;
|
|
2550
|
-
this._termConfig.translationServiceUrl = config?.translationServiceUrl;
|
|
2551
|
-
this._termConfig.apiVersion = config?.apiVersion;
|
|
2555
|
+
this._termConfig.collectionNameMinLength = config?.collectionNameMinLength ?? 8;
|
|
2556
|
+
this._termConfig.collectionNameMaxLength = config?.collectionNameMaxLength ?? 300;
|
|
2557
|
+
this._termConfig.translationServiceUrl = config?.translationServiceUrl ?? this.defaultTranslationServiceUrl;
|
|
2558
|
+
this._termConfig.apiVersion = config?.apiVersion ?? TranslationApiVersion.V1;
|
|
2552
2559
|
this._termConfig.xApiKey = config?.xApiKey;
|
|
2553
|
-
this._termConfig.systemListUrl = config?.systemListUrl;
|
|
2560
|
+
this._termConfig.systemListUrl = config?.systemListUrl ?? this.defaultTranslationServiceUrl + "GetSystemList";
|
|
2561
|
+
;
|
|
2554
2562
|
this._termConfig.engineTermUrl = config?.engineTermUrl;
|
|
2555
|
-
this._termConfig.terminologyPortalUrl = config?.terminologyPortalUrl;
|
|
2556
|
-
this._termConfig.isTermPortalSupported = config?.isTermPortalSupported;
|
|
2557
|
-
this._termConfig.refreshTimeoutMs = config?.refreshTimeoutMs;
|
|
2558
|
-
this._termConfig.refreshTimeoutMsWhenImporting = config?.refreshTimeoutMsWhenImporting;
|
|
2559
|
-
this._termConfig.allowedSystemStatuses = config?.allowedSystemStatuses;
|
|
2560
|
-
this._termConfig.defaultVendor = config?.defaultVendor;
|
|
2563
|
+
this._termConfig.terminologyPortalUrl = config?.terminologyPortalUrl ?? "https://term.tilde.com";
|
|
2564
|
+
this._termConfig.isTermPortalSupported = config?.isTermPortalSupported ?? false;
|
|
2565
|
+
this._termConfig.refreshTimeoutMs = config?.refreshTimeoutMs ?? 10000;
|
|
2566
|
+
this._termConfig.refreshTimeoutMsWhenImporting = config?.refreshTimeoutMsWhenImporting ?? 5000;
|
|
2567
|
+
this._termConfig.allowedSystemStatuses = config?.allowedSystemStatuses ?? ['running', 'standby', 'queuingtransl'];
|
|
2568
|
+
this._termConfig.defaultVendor = config?.defaultVendor ?? "Tilde";
|
|
2561
2569
|
this._termConfig.canCreateCollection = config?.canCreateCollection;
|
|
2562
|
-
this._termConfig.isAuth = config?.isAuth;
|
|
2570
|
+
this._termConfig.isAuth = config?.isAuth ?? false;
|
|
2563
2571
|
this._termConfig.defaultGlossaryManagementLink = config?.defaultGlossaryManagementLink;
|
|
2564
2572
|
this._termConfig.isCollectionsActivated = config?.isCollectionsActivated;
|
|
2565
|
-
this._termConfig.maxRecentSystemCount = config?.maxRecentSystemCount;
|
|
2566
|
-
this._termConfig.autoDomainDetection = config?.autoDomainDetection;
|
|
2567
|
-
this._termConfig.defaultDomains = config?.defaultDomains;
|
|
2573
|
+
this._termConfig.maxRecentSystemCount = config?.maxRecentSystemCount ?? 4;
|
|
2574
|
+
this._termConfig.autoDomainDetection = config?.autoDomainDetection ?? false;
|
|
2575
|
+
this._termConfig.defaultDomains = config?.defaultDomains ?? ["GEN", "general"];
|
|
2568
2576
|
this._termConfig.clientId = config?.clientId;
|
|
2569
2577
|
this._termConfig.appId = config?.appId;
|
|
2570
|
-
this._termConfig.appName = config?.appName;
|
|
2578
|
+
this._termConfig.appName = config?.appName ?? "Tilde MT";
|
|
2571
2579
|
}
|
|
2572
2580
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TerminologyConfigService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2573
2581
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: TerminologyConfigService, providedIn: "root" }); }
|
|
@@ -3479,19 +3487,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3479
3487
|
type: Output
|
|
3480
3488
|
}] } });
|
|
3481
3489
|
|
|
3482
|
-
var TranslationApiVersion;
|
|
3483
|
-
(function (TranslationApiVersion) {
|
|
3484
|
-
TranslationApiVersion[TranslationApiVersion["V1"] = 0] = "V1";
|
|
3485
|
-
TranslationApiVersion[TranslationApiVersion["V2"] = 1] = "V2";
|
|
3486
|
-
})(TranslationApiVersion || (TranslationApiVersion = {}));
|
|
3487
|
-
|
|
3488
3490
|
function terminologyApiFactory(http, config, engineTermApi) {
|
|
3489
3491
|
const apiVersion = config?.termConfig?.apiVersion;
|
|
3490
|
-
if (apiVersion === TranslationApiVersion.
|
|
3491
|
-
return new
|
|
3492
|
+
if (apiVersion === TranslationApiVersion.V2) {
|
|
3493
|
+
return new TerminologyApiV2Service(config, engineTermApi);
|
|
3492
3494
|
}
|
|
3493
3495
|
else {
|
|
3494
|
-
return new
|
|
3496
|
+
return new TerminologyApiV1Service(http, config);
|
|
3495
3497
|
}
|
|
3496
3498
|
}
|
|
3497
3499
|
|
|
@@ -3629,11 +3631,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3629
3631
|
|
|
3630
3632
|
function terminologySystemFactory(config, http) {
|
|
3631
3633
|
const apiVersion = config?.termConfig?.apiVersion;
|
|
3632
|
-
if (apiVersion === TranslationApiVersion.
|
|
3633
|
-
return new
|
|
3634
|
+
if (apiVersion === TranslationApiVersion.V2) {
|
|
3635
|
+
return new SystemApiV2Service(http, config);
|
|
3634
3636
|
}
|
|
3635
3637
|
else {
|
|
3636
|
-
return new
|
|
3638
|
+
return new SystemApiV1Service(http, config);
|
|
3637
3639
|
}
|
|
3638
3640
|
}
|
|
3639
3641
|
|