@tilde-nlp/ngx-common 8.1.74 → 8.1.76
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.
|
@@ -832,7 +832,7 @@ const SCREEN_SIZE = {
|
|
|
832
832
|
* Local storage key which stores last used configuration of language direction in Machine Translation.
|
|
833
833
|
* By overwriting this value with langugeId (sourceLanguage-targetLanguage-domain-vendor-engineId), this system is going to be preselected.
|
|
834
834
|
*/
|
|
835
|
-
const LAST_USED_SYSTEM_LOCAL_STORAGE_KEY = '
|
|
835
|
+
const LAST_USED_SYSTEM_LOCAL_STORAGE_KEY = 'lastSystemUsed';
|
|
836
836
|
|
|
837
837
|
var ERROR_CODES;
|
|
838
838
|
(function (ERROR_CODES) {
|
|
@@ -6231,11 +6231,11 @@ class TerminologyPanelComponent {
|
|
|
6231
6231
|
const emptyView_r4 = i0.ɵɵreference(3);
|
|
6232
6232
|
i0.ɵɵadvance();
|
|
6233
6233
|
i0.ɵɵproperty("ngIf", ctx.showGlossaryList)("ngIfElse", emptyView_r4);
|
|
6234
|
-
} }, dependencies: [i1$1.NgIf, i2$4.DefaultLayoutDirective, i2$4.DefaultLayoutGapDirective, i2$4.DefaultLayoutAlignDirective, TerminologyCreateCollectionComponent, TerminologyCollectionListComponent, i1.TranslatePipe], styles: [".tld-collection-list-footer[_ngcontent-%COMP%]{margin-top:1rem;padding:.75em .75em 1em;position:sticky;bottom:0;background-color:var(--base-100)}.default-glossary-management[_ngcontent-%COMP%]{display:block;color:var(--base-30)}.term-reader-wrapper[_ngcontent-%COMP%]{margin:1em}.glossary-unavailable[_ngcontent-%COMP%]{font-weight:500;font-style:italic}.hint-title[_ngcontent-%COMP%]{margin-bottom:0}"] }); }
|
|
6234
|
+
} }, dependencies: [i1$1.NgIf, i2$4.DefaultLayoutDirective, i2$4.DefaultLayoutGapDirective, i2$4.DefaultLayoutAlignDirective, TerminologyCreateCollectionComponent, TerminologyCollectionListComponent, i1.TranslatePipe], styles: [".tld-collection-list-footer[_ngcontent-%COMP%]{z-index:1;margin-top:1rem;padding:.75em .75em 1em;position:sticky;bottom:0;background-color:var(--base-100)}.default-glossary-management[_ngcontent-%COMP%]{display:block;color:var(--base-30)}.term-reader-wrapper[_ngcontent-%COMP%]{margin:1em}.glossary-unavailable[_ngcontent-%COMP%]{font-weight:500;font-style:italic}.hint-title[_ngcontent-%COMP%]{margin-bottom:0}"] }); }
|
|
6235
6235
|
}
|
|
6236
6236
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TerminologyPanelComponent, [{
|
|
6237
6237
|
type: Component,
|
|
6238
|
-
args: [{ selector: "lib-terminology-panel", standalone: false, template: "<section class=\"tld-collection-list-wrapper\">\r\n <ng-container *ngIf=\"showGlossaryList; else emptyView\">\r\n <lib-terminology-collection-list (glossarySelectEvent)=\"selectGlossary($event)\" [system]=\"system\" [selectedCollection]=\"selectedCollection\"></lib-terminology-collection-list>\r\n\r\n <footer *ngIf=\"hasEditPermissions\" class=\"tld-collection-list-footer\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"1rem\">\r\n <lib-terminology-create-collection [sourceLanguageCode]=\"sourceLanguageCode\" [targetLanguageCode]=\"targetLanguageCode\"></lib-terminology-create-collection>\r\n \r\n <a *ngIf=\"defaultGlossaryManagementLink\" [attr.href]=\"defaultGlossaryManagementLink\" class=\"default-glossary-management text-m\" target=\"_blank\">\r\n {{ \"TERM_COLLECTIONS.DEFAULT_GLOSSARY_MANAGEMENT\" | translate }}\r\n </a>\r\n </footer>\r\n </ng-container>\r\n <ng-template #emptyView>\r\n <section class=\"term-reader-wrapper\" fxLayout=\"column\" fxLayoutGap=\"16px\">\r\n <div>\r\n <h1 class=\"text-l-semi-bold\">{{ readerLocalizationKey + \"TITLE\" | translate }}</h1>\r\n <p class=\"text-xl-semi-bold glossary-unavailable\">{{ readerLocalizationKey + \"UNAVAILABLE\" | translate }}</p>\r\n <p *ngIf=\"!isAuthenticated; else authEmptyView\" [innerHtml]=\"readerLocalizationKey + 'TEXT' | translate: { signInUrl: signInUrl, startTrialUrl: startTrialUrl }\"></p>\r\n\r\n <ng-template #authEmptyView>\r\n <p>{{ readerLocalizationKey + \"AUTH_UNAVAILABLE\" | translate }}</p>\r\n </ng-template>\r\n </div>\r\n </section>\r\n </ng-template>\r\n</section>\r\n", styles: [".tld-collection-list-footer{margin-top:1rem;padding:.75em .75em 1em;position:sticky;bottom:0;background-color:var(--base-100)}.default-glossary-management{display:block;color:var(--base-30)}.term-reader-wrapper{margin:1em}.glossary-unavailable{font-weight:500;font-style:italic}.hint-title{margin-bottom:0}\n"] }]
|
|
6238
|
+
args: [{ selector: "lib-terminology-panel", standalone: false, template: "<section class=\"tld-collection-list-wrapper\">\r\n <ng-container *ngIf=\"showGlossaryList; else emptyView\">\r\n <lib-terminology-collection-list (glossarySelectEvent)=\"selectGlossary($event)\" [system]=\"system\" [selectedCollection]=\"selectedCollection\"></lib-terminology-collection-list>\r\n\r\n <footer *ngIf=\"hasEditPermissions\" class=\"tld-collection-list-footer\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"1rem\">\r\n <lib-terminology-create-collection [sourceLanguageCode]=\"sourceLanguageCode\" [targetLanguageCode]=\"targetLanguageCode\"></lib-terminology-create-collection>\r\n \r\n <a *ngIf=\"defaultGlossaryManagementLink\" [attr.href]=\"defaultGlossaryManagementLink\" class=\"default-glossary-management text-m\" target=\"_blank\">\r\n {{ \"TERM_COLLECTIONS.DEFAULT_GLOSSARY_MANAGEMENT\" | translate }}\r\n </a>\r\n </footer>\r\n </ng-container>\r\n <ng-template #emptyView>\r\n <section class=\"term-reader-wrapper\" fxLayout=\"column\" fxLayoutGap=\"16px\">\r\n <div>\r\n <h1 class=\"text-l-semi-bold\">{{ readerLocalizationKey + \"TITLE\" | translate }}</h1>\r\n <p class=\"text-xl-semi-bold glossary-unavailable\">{{ readerLocalizationKey + \"UNAVAILABLE\" | translate }}</p>\r\n <p *ngIf=\"!isAuthenticated; else authEmptyView\" [innerHtml]=\"readerLocalizationKey + 'TEXT' | translate: { signInUrl: signInUrl, startTrialUrl: startTrialUrl }\"></p>\r\n\r\n <ng-template #authEmptyView>\r\n <p>{{ readerLocalizationKey + \"AUTH_UNAVAILABLE\" | translate }}</p>\r\n </ng-template>\r\n </div>\r\n </section>\r\n </ng-template>\r\n</section>\r\n", styles: [".tld-collection-list-footer{z-index:1;margin-top:1rem;padding:.75em .75em 1em;position:sticky;bottom:0;background-color:var(--base-100)}.default-glossary-management{display:block;color:var(--base-30)}.term-reader-wrapper{margin:1em}.glossary-unavailable{font-weight:500;font-style:italic}.hint-title{margin-bottom:0}\n"] }]
|
|
6239
6239
|
}], () => [{ type: TerminologyService }, { type: TerminologyConfigService }], { system: [{
|
|
6240
6240
|
type: Input,
|
|
6241
6241
|
args: [{ required: true }]
|