@tilde-nlp/ngx-common 8.1.71 → 8.1.73
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/fesm2022/tilde-nlp-ngx-common.mjs +157 -127
- package/fesm2022/tilde-nlp-ngx-common.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -684,8 +684,8 @@ class SortHelper {
|
|
|
684
684
|
if (!sortingValueKey) {
|
|
685
685
|
return a.localeCompare(b);
|
|
686
686
|
}
|
|
687
|
-
const aTranslated = a[sortingValueKey]
|
|
688
|
-
const bTranslated = b[sortingValueKey]
|
|
687
|
+
const aTranslated = a[sortingValueKey]?.toLowerCase() ?? '';
|
|
688
|
+
const bTranslated = b[sortingValueKey]?.toLowerCase() ?? '';
|
|
689
689
|
return aTranslated.localeCompare(bTranslated);
|
|
690
690
|
});
|
|
691
691
|
return values;
|
|
@@ -2303,7 +2303,7 @@ class CompanyProductModule {
|
|
|
2303
2303
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(CompanyProductModule, { declarations: [CompanyProductComponent], imports: [CommonModule], exports: [CompanyProductComponent] }); })();
|
|
2304
2304
|
|
|
2305
2305
|
const _c0$c = a0 => ({ currentYear: a0 });
|
|
2306
|
-
const _c1$
|
|
2306
|
+
const _c1$7 = a0 => [a0];
|
|
2307
2307
|
function FooterComponent_ng_container_6_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
2308
2308
|
i0.ɵɵelementStart(0, "a", 7);
|
|
2309
2309
|
i0.ɵɵtext(1);
|
|
@@ -2333,7 +2333,7 @@ function FooterComponent_ng_container_6_a_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
2333
2333
|
i0.ɵɵelementEnd();
|
|
2334
2334
|
} if (rf & 2) {
|
|
2335
2335
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
2336
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$
|
|
2336
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$7, ctx_r0.contactUsRoute));
|
|
2337
2337
|
i0.ɵɵadvance();
|
|
2338
2338
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "FOOTER.CONTACT_US"));
|
|
2339
2339
|
} }
|
|
@@ -2357,7 +2357,7 @@ function FooterComponent_ng_template_7_a_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
2357
2357
|
i0.ɵɵelementEnd();
|
|
2358
2358
|
} if (rf & 2) {
|
|
2359
2359
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
2360
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$
|
|
2360
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$7, ctx_r0.termsOfUseRoute));
|
|
2361
2361
|
i0.ɵɵadvance();
|
|
2362
2362
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "FOOTER.TERMS_OF_USE"));
|
|
2363
2363
|
} }
|
|
@@ -2368,7 +2368,7 @@ function FooterComponent_ng_template_7_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
2368
2368
|
i0.ɵɵelementEnd();
|
|
2369
2369
|
} if (rf & 2) {
|
|
2370
2370
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
2371
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$
|
|
2371
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$7, ctx_r0.privacyRoute));
|
|
2372
2372
|
i0.ɵɵadvance();
|
|
2373
2373
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "FOOTER.PRIVACY"));
|
|
2374
2374
|
} }
|
|
@@ -2379,7 +2379,7 @@ function FooterComponent_ng_template_7_a_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
2379
2379
|
i0.ɵɵelementEnd();
|
|
2380
2380
|
} if (rf & 2) {
|
|
2381
2381
|
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
2382
|
-
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$
|
|
2382
|
+
i0.ɵɵproperty("routerLink", i0.ɵɵpureFunction1(4, _c1$7, ctx_r0.contactUsRoute));
|
|
2383
2383
|
i0.ɵɵadvance();
|
|
2384
2384
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 2, "FOOTER.CONTACT_US"));
|
|
2385
2385
|
} }
|
|
@@ -2952,7 +2952,7 @@ class ExtensionDialogModule {
|
|
|
2952
2952
|
const FILE_UPLOAD_ICON = `<svg width="23" height="22" viewBox="0 0 23 22" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M19.4999 15V19H3.49992V15H0.833252V19C0.833252 20.4666 2.03325 21.6666 3.49992 21.6666H19.4999C20.9666 21.6666 22.1666 20.4666 22.1666 19V15H19.4999ZM4.83325 6.99998L6.71325 8.87998L10.1666 5.43998V16.3333H12.8333V5.43998L16.2866 8.87998L18.1666 6.99998L11.4999 0.333313L4.83325 6.99998Z" fill="currentColor"/></svg>`;
|
|
2953
2953
|
|
|
2954
2954
|
const _c0$b = ["fileInput"];
|
|
2955
|
-
const _c1$
|
|
2955
|
+
const _c1$6 = ["*", [["", "customLimits", ""]]];
|
|
2956
2956
|
const _c2$3 = ["*", "[customLimits]"];
|
|
2957
2957
|
const _c3$1 = a0 => ({ maxSize: a0 });
|
|
2958
2958
|
function FileUploadComponent_mat_progress_bar_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -3136,7 +3136,7 @@ class FileUploadComponent {
|
|
|
3136
3136
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.fileInput = _t.first);
|
|
3137
3137
|
} }, inputs: { accept: "accept", useCompactUpload: "useCompactUpload", maxSize: "maxSize", multiple: "multiple", filePreviewProgress: "filePreviewProgress", allowEmpty: "allowEmpty", disabled: "disabled", dragZoneLabel: "dragZoneLabel", uploadIconName: "uploadIconName", uploadButtonLabel: "uploadButtonLabel", openExtensionPopupLabel: "openExtensionPopupLabel", minSupportedFormatCount: "minSupportedFormatCount", hideDefaultLimitsLabel: "hideDefaultLimitsLabel", extendedAcceptList: "extendedAcceptList" }, outputs: { fileChange: "fileChange", errorEvent: "errorEvent" }, standalone: false, ngContentSelectors: _c2$3, decls: 7, vars: 9, consts: [["regularUpload", ""], ["fileInput", ""], ["inputButton", ""], [1, "file-upload", 3, "ngClass.lt-sm"], ["color", "primary", "class", "tld-file-upload-progress", 3, "value", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["testId", "input-file-upload", "type", "file", "name", "files", 1, "native-file-input", 3, "change", "accept", "multiple", "disabled"], ["color", "primary", 1, "tld-file-upload-progress", 3, "value"], ["tldDragAndDrop", "", "mat-button", "", "type", "button", 1, "upload-button", "text-l", 3, "fileDropped", "click", "disabled"], [4, "ngIf"], ["tldDragAndDrop", "", 1, "upload-zone", 3, "fileDropped"], ["svgIcon", "file_upload_icon"], [1, "upload-zone-labels"], ["color", "accent", 1, "file-upload--btn", 3, "click"], ["fxHide.lt-sm", "", 1, "upload-label", 3, "innerHTML"], [1, "upload-zone-formats"], [4, "ngFor", "ngForOf"], [3, "innerHTML", 4, "ngIf"], [1, "supported-formats-btn"], [3, "innerHTML"], [1, "supported-formats-btn", 3, "click"]], template: function FileUploadComponent_Template(rf, ctx) { if (rf & 1) {
|
|
3138
3138
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
3139
|
-
i0.ɵɵprojectionDef(_c1$
|
|
3139
|
+
i0.ɵɵprojectionDef(_c1$6);
|
|
3140
3140
|
i0.ɵɵelementStart(0, "div", 3);
|
|
3141
3141
|
i0.ɵɵtemplate(1, FileUploadComponent_mat_progress_bar_1_Template, 1, 1, "mat-progress-bar", 4)(2, FileUploadComponent_ng_container_2_Template, 5, 2, "ng-container", 5)(3, FileUploadComponent_ng_template_3_Template, 13, 7, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
3142
3142
|
i0.ɵɵelementStart(5, "input", 6, 1);
|
|
@@ -3236,7 +3236,7 @@ class FileUploadModule {
|
|
|
3236
3236
|
TranslateModule], exports: [FileUploadComponent] }); })();
|
|
3237
3237
|
|
|
3238
3238
|
const _c0$a = ["filterWrapper"];
|
|
3239
|
-
const _c1$
|
|
3239
|
+
const _c1$5 = ["optionSearchInput"];
|
|
3240
3240
|
const _c2$2 = a0 => ({ default: a0 });
|
|
3241
3241
|
const _forTrack0$2 = ($index, $item) => $item.fieldName;
|
|
3242
3242
|
const _forTrack1 = ($index, $item) => $item.key;
|
|
@@ -3595,7 +3595,7 @@ class FilterBarComponent {
|
|
|
3595
3595
|
static { this.ɵfac = function FilterBarComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FilterBarComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1.TranslateService)); }; }
|
|
3596
3596
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FilterBarComponent, selectors: [["tld-filter-bar"]], viewQuery: function FilterBarComponent_Query(rf, ctx) { if (rf & 1) {
|
|
3597
3597
|
i0.ɵɵviewQuery(_c0$a, 5);
|
|
3598
|
-
i0.ɵɵviewQuery(_c1$
|
|
3598
|
+
i0.ɵɵviewQuery(_c1$5, 5);
|
|
3599
3599
|
} if (rf & 2) {
|
|
3600
3600
|
let _t;
|
|
3601
3601
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.filterWrapper = _t.first);
|
|
@@ -3760,7 +3760,7 @@ class StatusDisplayComponent {
|
|
|
3760
3760
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(StatusDisplayComponent, { className: "StatusDisplayComponent", filePath: "lib/status-display/status-display.component.ts", lineNumber: 10 }); })();
|
|
3761
3761
|
|
|
3762
3762
|
const _c0$8 = ["tableContainer"];
|
|
3763
|
-
const _c1$
|
|
3763
|
+
const _c1$4 = ["filterBar"];
|
|
3764
3764
|
const _c2$1 = [[["", "additionalActions", ""]], [["", "batchActions", ""]], "*"];
|
|
3765
3765
|
const _c3 = ["[additionalActions]", "[batchActions]", "*"];
|
|
3766
3766
|
const _c4 = () => [10];
|
|
@@ -4287,7 +4287,7 @@ class MultiFunctionalTableComponent {
|
|
|
4287
4287
|
i0.ɵɵviewQuery(MatTable, 7);
|
|
4288
4288
|
i0.ɵɵviewQuery(MatSort, 5);
|
|
4289
4289
|
i0.ɵɵviewQuery(_c0$8, 5);
|
|
4290
|
-
i0.ɵɵviewQuery(_c1$
|
|
4290
|
+
i0.ɵɵviewQuery(_c1$4, 5);
|
|
4291
4291
|
i0.ɵɵviewQuery(MatPaginator, 5);
|
|
4292
4292
|
i0.ɵɵviewQuery(MatTable, 5, ElementRef);
|
|
4293
4293
|
} if (rf & 2) {
|
|
@@ -5459,9 +5459,9 @@ class TerminologyService {
|
|
|
5459
5459
|
}], () => [{ type: TerminologyConfigService }, { type: AlertService }, { type: TerminologyCollectionService }, { type: TerminologyApiService }], null); })();
|
|
5460
5460
|
|
|
5461
5461
|
const _c0$6 = a0 => ({ termCount: a0 });
|
|
5462
|
-
const _c1$
|
|
5462
|
+
const _c1$3 = a0 => ({ date: a0 });
|
|
5463
5463
|
function TerminologyCollectionCardComponent_ng_container_0_span_6_Template(rf, ctx) { if (rf & 1) {
|
|
5464
|
-
i0.ɵɵelementStart(0, "span",
|
|
5464
|
+
i0.ɵɵelementStart(0, "span", 13);
|
|
5465
5465
|
i0.ɵɵtext(1);
|
|
5466
5466
|
i0.ɵɵelementEnd();
|
|
5467
5467
|
} if (rf & 2) {
|
|
@@ -5471,7 +5471,7 @@ function TerminologyCollectionCardComponent_ng_container_0_span_6_Template(rf, c
|
|
|
5471
5471
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.collection.name, " ");
|
|
5472
5472
|
} }
|
|
5473
5473
|
function TerminologyCollectionCardComponent_ng_container_0_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
5474
|
-
i0.ɵɵelementStart(0, "span",
|
|
5474
|
+
i0.ɵɵelementStart(0, "span", 14);
|
|
5475
5475
|
i0.ɵɵtext(1);
|
|
5476
5476
|
i0.ɵɵelementEnd();
|
|
5477
5477
|
} if (rf & 2) {
|
|
@@ -5479,18 +5479,8 @@ function TerminologyCollectionCardComponent_ng_container_0_span_7_Template(rf, c
|
|
|
5479
5479
|
i0.ɵɵadvance();
|
|
5480
5480
|
i0.ɵɵtextInterpolate1(" ", ctx_r1.collection.name, " ");
|
|
5481
5481
|
} }
|
|
5482
|
-
function
|
|
5483
|
-
i0.ɵɵelementStart(0, "span",
|
|
5484
|
-
i0.ɵɵtext(1);
|
|
5485
|
-
i0.ɵɵpipe(2, "translate");
|
|
5486
|
-
i0.ɵɵelementEnd();
|
|
5487
|
-
} if (rf & 2) {
|
|
5488
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
5489
|
-
i0.ɵɵadvance();
|
|
5490
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.localizationKey + "DEFAULT"));
|
|
5491
|
-
} }
|
|
5492
|
-
function TerminologyCollectionCardComponent_ng_container_0_div_9_ng_container_1_ng_container_1_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
5493
|
-
i0.ɵɵelementStart(0, "span", 23);
|
|
5482
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_8_ng_container_1_ng_container_1_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
5483
|
+
i0.ɵɵelementStart(0, "span", 22);
|
|
5494
5484
|
i0.ɵɵtext(1);
|
|
5495
5485
|
i0.ɵɵelementEnd();
|
|
5496
5486
|
} if (rf & 2) {
|
|
@@ -5498,17 +5488,17 @@ function TerminologyCollectionCardComponent_ng_container_0_div_9_ng_container_1_
|
|
|
5498
5488
|
i0.ɵɵadvance();
|
|
5499
5489
|
i0.ɵɵtextInterpolate(lang_r3.id);
|
|
5500
5490
|
} }
|
|
5501
|
-
function
|
|
5491
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_8_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
5502
5492
|
i0.ɵɵelementContainerStart(0);
|
|
5503
|
-
i0.ɵɵtemplate(1,
|
|
5493
|
+
i0.ɵɵtemplate(1, TerminologyCollectionCardComponent_ng_container_0_div_8_ng_container_1_ng_container_1_span_1_Template, 2, 1, "span", 21);
|
|
5504
5494
|
i0.ɵɵelementContainerEnd();
|
|
5505
5495
|
} if (rf & 2) {
|
|
5506
5496
|
const ix_r4 = ctx.index;
|
|
5507
5497
|
i0.ɵɵadvance();
|
|
5508
5498
|
i0.ɵɵproperty("ngIf", ix_r4 <= 1);
|
|
5509
5499
|
} }
|
|
5510
|
-
function
|
|
5511
|
-
i0.ɵɵelementStart(0, "span",
|
|
5500
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_8_ng_container_1_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
5501
|
+
i0.ɵɵelementStart(0, "span", 23);
|
|
5512
5502
|
i0.ɵɵtext(1);
|
|
5513
5503
|
i0.ɵɵelementEnd();
|
|
5514
5504
|
} if (rf & 2) {
|
|
@@ -5516,9 +5506,9 @@ function TerminologyCollectionCardComponent_ng_container_0_div_9_ng_container_1_
|
|
|
5516
5506
|
i0.ɵɵadvance();
|
|
5517
5507
|
i0.ɵɵtextInterpolate1(" +", ctx_r1.collection.termCollection.languages.length - 2, " ");
|
|
5518
5508
|
} }
|
|
5519
|
-
function
|
|
5509
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_8_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
5520
5510
|
i0.ɵɵelementContainerStart(0);
|
|
5521
|
-
i0.ɵɵtemplate(1,
|
|
5511
|
+
i0.ɵɵtemplate(1, TerminologyCollectionCardComponent_ng_container_0_div_8_ng_container_1_ng_container_1_Template, 2, 1, "ng-container", 19)(2, TerminologyCollectionCardComponent_ng_container_0_div_8_ng_container_1_span_2_Template, 2, 1, "span", 20);
|
|
5522
5512
|
i0.ɵɵelementContainerEnd();
|
|
5523
5513
|
} if (rf & 2) {
|
|
5524
5514
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
@@ -5527,11 +5517,11 @@ function TerminologyCollectionCardComponent_ng_container_0_div_9_ng_container_1_
|
|
|
5527
5517
|
i0.ɵɵadvance();
|
|
5528
5518
|
i0.ɵɵproperty("ngIf", ctx_r1.collection.termCollection.languages && ctx_r1.collection.termCollection.languages.length > 2);
|
|
5529
5519
|
} }
|
|
5530
|
-
function
|
|
5531
|
-
i0.ɵɵelementStart(0, "span",
|
|
5520
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_8_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
5521
|
+
i0.ɵɵelementStart(0, "span", 22);
|
|
5532
5522
|
i0.ɵɵtext(1);
|
|
5533
5523
|
i0.ɵɵelementEnd();
|
|
5534
|
-
i0.ɵɵelementStart(2, "span",
|
|
5524
|
+
i0.ɵɵelementStart(2, "span", 22);
|
|
5535
5525
|
i0.ɵɵtext(3);
|
|
5536
5526
|
i0.ɵɵelementEnd();
|
|
5537
5527
|
} if (rf & 2) {
|
|
@@ -5541,24 +5531,21 @@ function TerminologyCollectionCardComponent_ng_container_0_div_9_ng_template_2_T
|
|
|
5541
5531
|
i0.ɵɵadvance(2);
|
|
5542
5532
|
i0.ɵɵtextInterpolate(ctx_r1.targetLanguageCode);
|
|
5543
5533
|
} }
|
|
5544
|
-
function
|
|
5545
|
-
i0.ɵɵ
|
|
5546
|
-
i0.ɵɵ
|
|
5547
|
-
i0.ɵɵpipe(2, "translate");
|
|
5548
|
-
i0.ɵɵelementEnd();
|
|
5534
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_8_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
5535
|
+
i0.ɵɵelement(0, "span", 24);
|
|
5536
|
+
i0.ɵɵpipe(1, "translate");
|
|
5549
5537
|
} if (rf & 2) {
|
|
5550
5538
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
5551
|
-
i0.ɵɵ
|
|
5552
|
-
i0.ɵɵtextInterpolate1(" \u2022 ", i0.ɵɵpipeBind2(2, 1, ctx_r1.localizationKey + "TERMS_IN_USE", i0.ɵɵpureFunction1(4, _c0$6, ctx_r1.collection.termCollection.entryCount)), " ");
|
|
5539
|
+
i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind2(1, 1, ctx_r1.localizationKey + "TERMS_IN_USE", i0.ɵɵpureFunction1(4, _c0$6, ctx_r1.collection.termCollection.entryCount)), i0.ɵɵsanitizeHtml);
|
|
5553
5540
|
} }
|
|
5554
|
-
function
|
|
5555
|
-
i0.ɵɵ
|
|
5541
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_8_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
5542
|
+
i0.ɵɵelement(0, "span", 24);
|
|
5556
5543
|
i0.ɵɵpipe(1, "translate");
|
|
5557
5544
|
} if (rf & 2) {
|
|
5558
5545
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
5559
|
-
i0.ɵɵ
|
|
5546
|
+
i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind2(1, 1, ctx_r1.localizationKey + "TERMS_IN_USE", i0.ɵɵpureFunction1(4, _c0$6, ctx_r1.collection.termCount)), i0.ɵɵsanitizeHtml);
|
|
5560
5547
|
} }
|
|
5561
|
-
function
|
|
5548
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_8_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
5562
5549
|
i0.ɵɵelementStart(0, "span", 25);
|
|
5563
5550
|
i0.ɵɵtext(1);
|
|
5564
5551
|
i0.ɵɵpipe(2, "dateAgo");
|
|
@@ -5567,11 +5554,11 @@ function TerminologyCollectionCardComponent_ng_container_0_div_9_span_7_Template
|
|
|
5567
5554
|
} if (rf & 2) {
|
|
5568
5555
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
5569
5556
|
i0.ɵɵadvance();
|
|
5570
|
-
i0.ɵɵtextInterpolate1(" \u2022 ", i0.ɵɵpipeBind2(3, 3, ctx_r1.localizationKey + "LAST_UPDATED", i0.ɵɵpureFunction1(6, _c1$
|
|
5557
|
+
i0.ɵɵtextInterpolate1(" \u2022 ", i0.ɵɵpipeBind2(3, 3, ctx_r1.localizationKey + "LAST_UPDATED", i0.ɵɵpureFunction1(6, _c1$3, i0.ɵɵpipeBind1(2, 1, ctx_r1.collection.lastUpdated))), " ");
|
|
5571
5558
|
} }
|
|
5572
|
-
function
|
|
5573
|
-
i0.ɵɵelementStart(0, "div",
|
|
5574
|
-
i0.ɵɵtemplate(1,
|
|
5559
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
5560
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
5561
|
+
i0.ɵɵtemplate(1, TerminologyCollectionCardComponent_ng_container_0_div_8_ng_container_1_Template, 3, 2, "ng-container", 16)(2, TerminologyCollectionCardComponent_ng_container_0_div_8_ng_template_2_Template, 4, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(4, TerminologyCollectionCardComponent_ng_container_0_div_8_span_4_Template, 2, 6, "span", 17)(5, TerminologyCollectionCardComponent_ng_container_0_div_8_ng_template_5_Template, 2, 6, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(7, TerminologyCollectionCardComponent_ng_container_0_div_8_span_7_Template, 4, 8, "span", 18);
|
|
5575
5562
|
i0.ɵɵelementEnd();
|
|
5576
5563
|
} if (rf & 2) {
|
|
5577
5564
|
const currentDirection_r5 = i0.ɵɵreference(3);
|
|
@@ -5584,7 +5571,7 @@ function TerminologyCollectionCardComponent_ng_container_0_div_9_Template(rf, ct
|
|
|
5584
5571
|
i0.ɵɵadvance(3);
|
|
5585
5572
|
i0.ɵɵproperty("ngIf", ctx_r1.collection.lastUpdated);
|
|
5586
5573
|
} }
|
|
5587
|
-
function
|
|
5574
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_10_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
5588
5575
|
i0.ɵɵelementStart(0, "span");
|
|
5589
5576
|
i0.ɵɵtext(1);
|
|
5590
5577
|
i0.ɵɵpipe(2, "uppercase");
|
|
@@ -5595,18 +5582,18 @@ function TerminologyCollectionCardComponent_ng_container_0_div_11_span_3_Templat
|
|
|
5595
5582
|
i0.ɵɵadvance();
|
|
5596
5583
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, ctx_r1.localizationKey + "ERRORS." + i0.ɵɵpipeBind1(2, 1, ctx_r1.collection.mtCollection == null ? null : ctx_r1.collection.mtCollection.subStatus)), " ");
|
|
5597
5584
|
} }
|
|
5598
|
-
function
|
|
5585
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_10_Template(rf, ctx) { if (rf & 1) {
|
|
5599
5586
|
i0.ɵɵelementStart(0, "div", 26)(1, "span", 27);
|
|
5600
5587
|
i0.ɵɵtext(2, " error ");
|
|
5601
5588
|
i0.ɵɵelementEnd();
|
|
5602
|
-
i0.ɵɵtemplate(3,
|
|
5589
|
+
i0.ɵɵtemplate(3, TerminologyCollectionCardComponent_ng_container_0_div_10_span_3_Template, 4, 5, "span", 2);
|
|
5603
5590
|
i0.ɵɵelementEnd();
|
|
5604
5591
|
} if (rf & 2) {
|
|
5605
5592
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
5606
5593
|
i0.ɵɵadvance(3);
|
|
5607
5594
|
i0.ɵɵproperty("ngIf", (ctx_r1.collection.mtCollection == null ? null : ctx_r1.collection.mtCollection.subStatus) === ctx_r1.collectionImportingErrorSubStatus);
|
|
5608
5595
|
} }
|
|
5609
|
-
function
|
|
5596
|
+
function TerminologyCollectionCardComponent_ng_container_0_span_11_Template(rf, ctx) { if (rf & 1) {
|
|
5610
5597
|
i0.ɵɵelementStart(0, "span", 28);
|
|
5611
5598
|
i0.ɵɵelement(1, "mat-spinner", 29);
|
|
5612
5599
|
i0.ɵɵelementStart(2, "span");
|
|
@@ -5618,11 +5605,11 @@ function TerminologyCollectionCardComponent_ng_container_0_span_12_Template(rf,
|
|
|
5618
5605
|
i0.ɵɵadvance(3);
|
|
5619
5606
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 1, ctx_r1.tooltipLocalizationKey + "IMPORTING"), " ");
|
|
5620
5607
|
} }
|
|
5621
|
-
function
|
|
5608
|
+
function TerminologyCollectionCardComponent_ng_container_0_button_12_Template(rf, ctx) { if (rf & 1) {
|
|
5622
5609
|
const _r7 = i0.ɵɵgetCurrentView();
|
|
5623
5610
|
i0.ɵɵelementStart(0, "button", 30);
|
|
5624
5611
|
i0.ɵɵpipe(1, "translate");
|
|
5625
|
-
i0.ɵɵlistener("click", function
|
|
5612
|
+
i0.ɵɵlistener("click", function TerminologyCollectionCardComponent_ng_container_0_button_12_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r7); const ctx_r1 = i0.ɵɵnextContext(2); ctx_r1.attach(ctx_r1.collection); return i0.ɵɵresetView($event.stopPropagation()); });
|
|
5626
5613
|
i0.ɵɵelementStart(2, "span", 31)(3, "mat-icon", 32);
|
|
5627
5614
|
i0.ɵɵtext(4, "sync");
|
|
5628
5615
|
i0.ɵɵelementEnd();
|
|
@@ -5635,7 +5622,7 @@ function TerminologyCollectionCardComponent_ng_container_0_button_13_Template(rf
|
|
|
5635
5622
|
i0.ɵɵadvance(5);
|
|
5636
5623
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 4, ctx_r1.localizationKey + "SYNC"), " ");
|
|
5637
5624
|
} }
|
|
5638
|
-
function
|
|
5625
|
+
function TerminologyCollectionCardComponent_ng_container_0_ng_container_13_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
5639
5626
|
i0.ɵɵelementStart(0, "a", 34);
|
|
5640
5627
|
i0.ɵɵpipe(1, "translate");
|
|
5641
5628
|
i0.ɵɵelementStart(2, "mat-icon", 35);
|
|
@@ -5646,9 +5633,9 @@ function TerminologyCollectionCardComponent_ng_container_0_ng_container_14_a_1_T
|
|
|
5646
5633
|
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 2, ctx_r1.tooltipLocalizationKey + "EDIT"));
|
|
5647
5634
|
i0.ɵɵattribute("href", ctx_r1.getEditLink(ctx_r1.collection), i0.ɵɵsanitizeUrl);
|
|
5648
5635
|
} }
|
|
5649
|
-
function
|
|
5636
|
+
function TerminologyCollectionCardComponent_ng_container_0_ng_container_13_Template(rf, ctx) { if (rf & 1) {
|
|
5650
5637
|
i0.ɵɵelementContainerStart(0);
|
|
5651
|
-
i0.ɵɵtemplate(1,
|
|
5638
|
+
i0.ɵɵtemplate(1, TerminologyCollectionCardComponent_ng_container_0_ng_container_13_a_1_Template, 4, 4, "a", 33);
|
|
5652
5639
|
i0.ɵɵelementContainerEnd();
|
|
5653
5640
|
} if (rf & 2) {
|
|
5654
5641
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -5663,28 +5650,24 @@ function TerminologyCollectionCardComponent_ng_container_0_Template(rf, ctx) { i
|
|
|
5663
5650
|
i0.ɵɵlistener("click", function TerminologyCollectionCardComponent_ng_container_0_Template_mat_radio_button_click_2_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.selectGlossary(ctx_r1.collection)); });
|
|
5664
5651
|
i0.ɵɵelementStart(4, "div", 3)(5, "div", 5);
|
|
5665
5652
|
i0.ɵɵtemplate(6, TerminologyCollectionCardComponent_ng_container_0_span_6_Template, 2, 2, "span", 6)(7, TerminologyCollectionCardComponent_ng_container_0_span_7_Template, 2, 1, "span", 7);
|
|
5666
|
-
i0.ɵɵelementEnd();
|
|
5667
|
-
i0.ɵɵtemplate(8, TerminologyCollectionCardComponent_ng_container_0_span_8_Template, 3, 3, "span", 8);
|
|
5668
|
-
i0.ɵɵelementEnd();
|
|
5669
|
-
i0.ɵɵtemplate(9, TerminologyCollectionCardComponent_ng_container_0_div_9_Template, 8, 5, "div", 9);
|
|
5670
|
-
i0.ɵɵelementStart(10, "div", 10);
|
|
5671
|
-
i0.ɵɵtemplate(11, TerminologyCollectionCardComponent_ng_container_0_div_11_Template, 4, 1, "div", 11)(12, TerminologyCollectionCardComponent_ng_container_0_span_12_Template, 5, 3, "span", 12)(13, TerminologyCollectionCardComponent_ng_container_0_button_13_Template, 7, 6, "button", 13);
|
|
5672
5653
|
i0.ɵɵelementEnd()();
|
|
5673
|
-
i0.ɵɵtemplate(
|
|
5654
|
+
i0.ɵɵtemplate(8, TerminologyCollectionCardComponent_ng_container_0_div_8_Template, 8, 5, "div", 8);
|
|
5655
|
+
i0.ɵɵelementStart(9, "div", 9);
|
|
5656
|
+
i0.ɵɵtemplate(10, TerminologyCollectionCardComponent_ng_container_0_div_10_Template, 4, 1, "div", 10)(11, TerminologyCollectionCardComponent_ng_container_0_span_11_Template, 5, 3, "span", 11)(12, TerminologyCollectionCardComponent_ng_container_0_button_12_Template, 7, 6, "button", 12);
|
|
5657
|
+
i0.ɵɵelementEnd()();
|
|
5658
|
+
i0.ɵɵtemplate(13, TerminologyCollectionCardComponent_ng_container_0_ng_container_13_Template, 2, 1, "ng-container", 2);
|
|
5674
5659
|
i0.ɵɵelementEnd();
|
|
5675
5660
|
i0.ɵɵelementContainerEnd();
|
|
5676
5661
|
} if (rf & 2) {
|
|
5677
5662
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
5678
5663
|
i0.ɵɵadvance(2);
|
|
5679
5664
|
i0.ɵɵclassProp("mat-mdc-radio-checked", ctx_r1.collection.default || ctx_r1.collection === ctx_r1.selected);
|
|
5680
|
-
i0.ɵɵproperty("disabled", ctx_r1.isSelectionDisabled)("matTooltip", ctx_r1.collection.termTooltipKey ? i0.ɵɵpipeBind1(3,
|
|
5665
|
+
i0.ɵɵproperty("disabled", ctx_r1.isSelectionDisabled)("matTooltip", ctx_r1.collection.termTooltipKey ? i0.ɵɵpipeBind1(3, 11, ctx_r1.tooltipLocalizationKey + ctx_r1.collection.termTooltipKey) : "");
|
|
5681
5666
|
i0.ɵɵadvance(4);
|
|
5682
5667
|
i0.ɵɵproperty("ngIf", !ctx_r1.collection.termTooltipKey);
|
|
5683
5668
|
i0.ɵɵadvance();
|
|
5684
5669
|
i0.ɵɵproperty("ngIf", ctx_r1.collection.termTooltipKey);
|
|
5685
5670
|
i0.ɵɵadvance();
|
|
5686
|
-
i0.ɵɵproperty("ngIf", ctx_r1.collection.default);
|
|
5687
|
-
i0.ɵɵadvance();
|
|
5688
5671
|
i0.ɵɵproperty("ngIf", ctx_r1.showCollectionLanguages);
|
|
5689
5672
|
i0.ɵɵadvance(2);
|
|
5690
5673
|
i0.ɵɵproperty("ngIf", ctx_r1.collection.mtStatus && ctx_r1.collection.mtStatus === ctx_r1.collectionErrorStatus);
|
|
@@ -5727,15 +5710,15 @@ class TerminologyCollectionCardComponent {
|
|
|
5727
5710
|
return collection.termId !== null && collection.termEntries <= 0 || collection.default;
|
|
5728
5711
|
}
|
|
5729
5712
|
static { this.ɵfac = function TerminologyCollectionCardComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TerminologyCollectionCardComponent)(i0.ɵɵdirectiveInject(TerminologyService), i0.ɵɵdirectiveInject(TerminologyCollectionService)); }; }
|
|
5730
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TerminologyCollectionCardComponent, selectors: [["lib-terminology-collection-card"]], inputs: { collection: "collection", selected: "selected", localizationKey: "localizationKey", tooltipLocalizationKey: "tooltipLocalizationKey", sourceLanguageCode: "sourceLanguageCode", engineId: "engineId", targetLanguageCode: "targetLanguageCode", hasEditPermissions: "hasEditPermissions", showCollectionLanguages: "showCollectionLanguages" }, outputs: { glossarySelectEvent: "glossarySelectEvent" }, standalone: false, decls: 1, vars: 1, consts: [["currentDirection", ""], ["termCount", ""], [4, "ngIf"], ["fxLayout", "row", "fxLayoutAlign", "start center"], ["fxFlex", "", "fxLayoutAlign", "center center", 3, "click", "disabled", "matTooltip"], [1, "collection-label"], ["class", "text-m-semi-bold", 3, "matTooltip", 4, "ngIf"], ["class", "text-m-semi-bold", 4, "ngIf"], ["class", "
|
|
5731
|
-
i0.ɵɵtemplate(0, TerminologyCollectionCardComponent_ng_container_0_Template,
|
|
5713
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TerminologyCollectionCardComponent, selectors: [["lib-terminology-collection-card"]], inputs: { collection: "collection", selected: "selected", localizationKey: "localizationKey", tooltipLocalizationKey: "tooltipLocalizationKey", sourceLanguageCode: "sourceLanguageCode", engineId: "engineId", targetLanguageCode: "targetLanguageCode", hasEditPermissions: "hasEditPermissions", showCollectionLanguages: "showCollectionLanguages" }, outputs: { glossarySelectEvent: "glossarySelectEvent" }, standalone: false, decls: 1, vars: 1, consts: [["currentDirection", ""], ["termCount", ""], [4, "ngIf"], ["fxLayout", "row", "fxLayoutAlign", "start center"], ["fxFlex", "", "fxLayoutAlign", "center center", 3, "click", "disabled", "matTooltip"], [1, "collection-label"], ["class", "text-m-semi-bold", 3, "matTooltip", 4, "ngIf"], ["class", "text-m-semi-bold", 4, "ngIf"], ["class", "collection-details", 4, "ngIf"], ["fxLayout", "row", "fxLayoutAlign", "start center", "fxLayoutGap", "0.5rem", 1, "collection-label-block", "collection-status-labels", "text-s"], ["fxLayout", "row", "fxLayoutAlign", "start center", "fxLayoutGap", "0.25rem", 4, "ngIf"], ["fxLayout", "row", "fxLayoutAlign", "start center", "fxLayoutGap", "0.5rem", 4, "ngIf"], ["mat-button", "", "color", "primary", 3, "matTooltip", "click", 4, "ngIf"], [1, "text-m-semi-bold", 3, "matTooltip"], [1, "text-m-semi-bold"], [1, "collection-details"], [4, "ngIf", "ngIfElse"], [3, "innerHTML", 4, "ngIf", "ngIfElse"], ["class", "collection-label-block text-s", 4, "ngIf"], [4, "ngFor", "ngForOf"], ["class", "collection-term-count", 4, "ngIf"], ["class", "collection-languages", 4, "ngIf"], [1, "collection-languages"], [1, "collection-term-count"], [3, "innerHTML"], [1, "collection-label-block", "text-s"], ["fxLayout", "row", "fxLayoutAlign", "start center", "fxLayoutGap", "0.25rem"], ["color", "accent", 1, "material-icons", "collection-list-error"], ["fxLayout", "row", "fxLayoutAlign", "start center", "fxLayoutGap", "0.5rem"], ["color", "accent", "diameter", "20"], ["mat-button", "", "color", "primary", 3, "click", "matTooltip"], ["fxLayout", "row", "fxLayoutAlign", "start center", 1, "text-s"], [1, "pt-1"], ["class", "collection-list-edit", "mat-icon-button", "", "target", "_blank", 3, "matTooltip", 4, "ngIf"], ["mat-icon-button", "", "target", "_blank", 1, "collection-list-edit", 3, "matTooltip"], [1, "material-icons", "material-icons-outlined"]], template: function TerminologyCollectionCardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5714
|
+
i0.ɵɵtemplate(0, TerminologyCollectionCardComponent_ng_container_0_Template, 14, 13, "ng-container", 2);
|
|
5732
5715
|
} if (rf & 2) {
|
|
5733
5716
|
i0.ɵɵproperty("ngIf", ctx.collection);
|
|
5734
5717
|
} }, dependencies: [i1$1.NgForOf, i1$1.NgIf, i2$4.DefaultLayoutDirective, i2$4.DefaultLayoutGapDirective, i2$4.DefaultLayoutAlignDirective, i2$4.DefaultFlexDirective, i2$2.MatButton, i2$2.MatIconButton, i2.MatIcon, i2$6.MatProgressSpinner, i5.MatRadioButton, i2$3.MatTooltip, i1$1.UpperCasePipe, i1.TranslatePipe, DateAgoPipe], styles: [".collection-details[_ngcontent-%COMP%]{display:flex;gap:4px;font-size:.75rem}.collection-languages[_ngcontent-%COMP%]{text-transform:uppercase}"] }); }
|
|
5735
5718
|
}
|
|
5736
5719
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TerminologyCollectionCardComponent, [{
|
|
5737
5720
|
type: Component,
|
|
5738
|
-
args: [{ selector: 'lib-terminology-collection-card', standalone: false, template: "<ng-container *ngIf=\"collection\">\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\r\n <mat-radio-button\r\n fxFlex\r\n fxLayoutAlign=\"center center\"\r\n [class.mat-mdc-radio-checked]=\"collection.default || collection === selected\"\r\n [disabled]=\"isSelectionDisabled\"\r\n [matTooltip]=\"collection.termTooltipKey ? (tooltipLocalizationKey + collection.termTooltipKey | translate) : ''\"\r\n (click)=\"selectGlossary(collection)\"\r\n >\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\r\n <div class=\"collection-label\">\r\n <span *ngIf=\"!collection.termTooltipKey\" class=\"text-m-semi-bold\" [matTooltip]=\"collection.name ?? ''\">\r\n {{ collection.name }}\r\n </span>\r\n\r\n <span *ngIf=\"collection.termTooltipKey\" class=\"text-m-semi-bold\">\r\n {{ collection.name }}\r\n </span>\r\n </div>\r\n
|
|
5721
|
+
args: [{ selector: 'lib-terminology-collection-card', standalone: false, template: "<ng-container *ngIf=\"collection\">\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\r\n <mat-radio-button\r\n fxFlex\r\n fxLayoutAlign=\"center center\"\r\n [class.mat-mdc-radio-checked]=\"collection.default || collection === selected\"\r\n [disabled]=\"isSelectionDisabled\"\r\n [matTooltip]=\"collection.termTooltipKey ? (tooltipLocalizationKey + collection.termTooltipKey | translate) : ''\"\r\n (click)=\"selectGlossary(collection)\"\r\n >\r\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\r\n <div class=\"collection-label\">\r\n <span *ngIf=\"!collection.termTooltipKey\" class=\"text-m-semi-bold\" [matTooltip]=\"collection.name ?? ''\">\r\n {{ collection.name }}\r\n </span>\r\n\r\n <span *ngIf=\"collection.termTooltipKey\" class=\"text-m-semi-bold\">\r\n {{ collection.name }}\r\n </span>\r\n </div>\r\n </div>\r\n\r\n <div *ngIf=\"showCollectionLanguages\" class=\"collection-details\">\r\n <ng-container *ngIf=\"collection.termCollection && collection.termCollection.languages; else currentDirection\">\r\n <ng-container *ngFor=\"let lang of collection.termCollection.languages; let ix = index\">\r\n <span class=\"collection-languages\" *ngIf=\"ix <= 1\">{{lang.id}}</span>\r\n </ng-container>\r\n <span *ngIf=\"collection.termCollection.languages && collection.termCollection.languages.length > 2\" class=\"collection-term-count\">\r\n +{{collection.termCollection.languages.length - 2}}\r\n </span>\r\n </ng-container>\r\n <ng-template #currentDirection>\r\n <span class=\"collection-languages\">{{sourceLanguageCode}}</span>\r\n <span class=\"collection-languages\">{{targetLanguageCode}}</span>\r\n </ng-template>\r\n\r\n <span *ngIf=\"collection.termCollection?.entryCount !== null; else termCount\" [innerHTML]=\"localizationKey + 'TERMS_IN_USE' | translate : { termCount: collection.termCollection!.entryCount }\">\r\n </span>\r\n <ng-template #termCount>\r\n <span [innerHTML]=\"localizationKey + 'TERMS_IN_USE' | translate : { termCount: collection.termCount }\"></span>\r\n </ng-template>\r\n\r\n <span *ngIf=\"collection.lastUpdated\" class=\"collection-label-block text-s\">\r\n \u2022 {{ localizationKey + \"LAST_UPDATED\" | translate : { date: collection.lastUpdated | dateAgo } }}\r\n </span>\r\n </div>\r\n \r\n <div class=\"collection-label-block collection-status-labels text-s\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"0.5rem\">\r\n <div *ngIf=\"collection.mtStatus && collection.mtStatus === collectionErrorStatus\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"0.25rem\">\r\n <span color=\"accent\" class=\"material-icons collection-list-error\"> error </span>\r\n \r\n <span *ngIf=\"collection.mtCollection?.subStatus === collectionImportingErrorSubStatus\">\r\n {{ localizationKey + \"ERRORS.\" + (collection.mtCollection?.subStatus | uppercase) | translate }}\r\n </span>\r\n </div>\r\n \r\n <span *ngIf=\"collection.isImporting\" fxLayout=\"row\" fxLayoutAlign=\"start center\" fxLayoutGap=\"0.5rem\">\r\n <mat-spinner color=\"accent\" diameter=\"20\"> </mat-spinner>\r\n <span>\r\n {{ tooltipLocalizationKey + \"IMPORTING\" | translate }}\r\n </span>\r\n </span>\r\n \r\n <button *ngIf=\"collection.syncButtonVisible\" mat-button color=\"primary\" (click)=\"attach(collection); $event.stopPropagation()\" [matTooltip]=\"tooltipLocalizationKey + 'SYNC' | translate\">\r\n <span fxLayout=\"row\" fxLayoutAlign=\"start center\" class=\"text-s\">\r\n <mat-icon class=\"pt-1\">sync</mat-icon>\r\n {{ localizationKey + \"SYNC\" | translate }}\r\n </span>\r\n </button>\r\n </div>\r\n </mat-radio-button>\r\n\r\n <ng-container *ngIf=\"hasEditPermissions\">\r\n <a\r\n class=\"collection-list-edit\"\r\n mat-icon-button\r\n target=\"_blank\"\r\n [matTooltip]=\"tooltipLocalizationKey + 'EDIT' | translate\"\r\n [attr.href]=\"getEditLink(collection)\"\r\n *ngIf=\"collection.termCollection\"\r\n >\r\n <mat-icon class=\"material-icons material-icons-outlined\">edit</mat-icon>\r\n </a>\r\n </ng-container>\r\n </div>\r\n</ng-container>\r\n", styles: [".collection-details{display:flex;gap:4px;font-size:.75rem}.collection-languages{text-transform:uppercase}\n"] }]
|
|
5739
5722
|
}], () => [{ type: TerminologyService }, { type: TerminologyCollectionService }], { collection: [{
|
|
5740
5723
|
type: Input
|
|
5741
5724
|
}], selected: [{
|
|
@@ -5760,9 +5743,10 @@ class TerminologyCollectionCardComponent {
|
|
|
5760
5743
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(TerminologyCollectionCardComponent, { className: "TerminologyCollectionCardComponent", filePath: "lib/terminology/components/terminology-panel/terminology-collection-list/terminology-collection-card/terminology-collection-card.component.ts", lineNumber: 12 }); })();
|
|
5761
5744
|
|
|
5762
5745
|
const _c0$5 = (a0, a1) => ({ srcLang: a0, trgLang: a1 });
|
|
5746
|
+
const _c1$2 = a0 => ({ collection: a0 });
|
|
5763
5747
|
function TerminologyCollectionListComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
5764
5748
|
i0.ɵɵelementContainerStart(0);
|
|
5765
|
-
i0.ɵɵelementStart(1, "p",
|
|
5749
|
+
i0.ɵɵelementStart(1, "p", 5)(2, "span");
|
|
5766
5750
|
i0.ɵɵtext(3);
|
|
5767
5751
|
i0.ɵɵpipe(4, "translate");
|
|
5768
5752
|
i0.ɵɵelementEnd()();
|
|
@@ -5774,11 +5758,11 @@ function TerminologyCollectionListComponent_ng_container_5_Template(rf, ctx) { i
|
|
|
5774
5758
|
} }
|
|
5775
5759
|
function TerminologyCollectionListComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
5776
5760
|
i0.ɵɵelementContainerStart(0);
|
|
5777
|
-
i0.ɵɵelementStart(1, "p",
|
|
5761
|
+
i0.ɵɵelementStart(1, "p", 6);
|
|
5778
5762
|
i0.ɵɵtext(2);
|
|
5779
5763
|
i0.ɵɵpipe(3, "translate");
|
|
5780
5764
|
i0.ɵɵelementEnd();
|
|
5781
|
-
i0.ɵɵelement(4, "p",
|
|
5765
|
+
i0.ɵɵelement(4, "p", 7);
|
|
5782
5766
|
i0.ɵɵpipe(5, "languageTranslate");
|
|
5783
5767
|
i0.ɵɵpipe(6, "languageTranslate");
|
|
5784
5768
|
i0.ɵɵpipe(7, "translate");
|
|
@@ -5790,47 +5774,90 @@ function TerminologyCollectionListComponent_ng_container_6_Template(rf, ctx) { i
|
|
|
5790
5774
|
i0.ɵɵadvance(2);
|
|
5791
5775
|
i0.ɵɵproperty("innerHtml", i0.ɵɵpipeBind2(7, 8, ctx_r0.localizationKey + "DESCRIPTION_EMPTY", i0.ɵɵpureFunction2(11, _c0$5, i0.ɵɵpipeBind1(5, 4, ctx_r0.system.sourceLanguageCode), i0.ɵɵpipeBind1(6, 6, ctx_r0.system.targetLanguageCode))), i0.ɵɵsanitizeHtml);
|
|
5792
5776
|
} }
|
|
5793
|
-
function
|
|
5794
|
-
|
|
5795
|
-
|
|
5796
|
-
|
|
5777
|
+
function TerminologyCollectionListComponent_div_7_div_8_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
5778
|
+
i0.ɵɵelementContainer(0);
|
|
5779
|
+
} }
|
|
5780
|
+
function TerminologyCollectionListComponent_div_7_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
5781
|
+
i0.ɵɵelementStart(0, "div", 16);
|
|
5782
|
+
i0.ɵɵtemplate(1, TerminologyCollectionListComponent_div_7_div_8_ng_container_1_Template, 1, 0, "ng-container", 17);
|
|
5797
5783
|
i0.ɵɵelementEnd();
|
|
5798
5784
|
} if (rf & 2) {
|
|
5799
|
-
const
|
|
5800
|
-
|
|
5801
|
-
|
|
5785
|
+
const collection_r3 = ctx.$implicit;
|
|
5786
|
+
i0.ɵɵnextContext();
|
|
5787
|
+
const collectionCard_r4 = i0.ɵɵreference(18);
|
|
5788
|
+
i0.ɵɵadvance();
|
|
5789
|
+
i0.ɵɵproperty("ngTemplateOutlet", collectionCard_r4)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$2, collection_r3));
|
|
5802
5790
|
} }
|
|
5803
|
-
function
|
|
5804
|
-
i0.ɵɵ
|
|
5805
|
-
|
|
5791
|
+
function TerminologyCollectionListComponent_div_7_div_16_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
5792
|
+
i0.ɵɵelementContainer(0);
|
|
5793
|
+
} }
|
|
5794
|
+
function TerminologyCollectionListComponent_div_7_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
5795
|
+
i0.ɵɵelementStart(0, "div", 16);
|
|
5796
|
+
i0.ɵɵtemplate(1, TerminologyCollectionListComponent_div_7_div_16_ng_container_1_Template, 1, 0, "ng-container", 17);
|
|
5806
5797
|
i0.ɵɵelementEnd();
|
|
5807
5798
|
} if (rf & 2) {
|
|
5808
|
-
const
|
|
5799
|
+
const collection_r5 = ctx.$implicit;
|
|
5800
|
+
i0.ɵɵnextContext();
|
|
5801
|
+
const collectionCard_r4 = i0.ɵɵreference(18);
|
|
5809
5802
|
i0.ɵɵadvance();
|
|
5810
|
-
i0.ɵɵproperty("
|
|
5803
|
+
i0.ɵɵproperty("ngTemplateOutlet", collectionCard_r4)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c1$2, collection_r5));
|
|
5804
|
+
} }
|
|
5805
|
+
function TerminologyCollectionListComponent_div_7_ng_template_17_lib_terminology_collection_card_0_Template(rf, ctx) { if (rf & 1) {
|
|
5806
|
+
const _r6 = i0.ɵɵgetCurrentView();
|
|
5807
|
+
i0.ɵɵelementStart(0, "lib-terminology-collection-card", 19);
|
|
5808
|
+
i0.ɵɵlistener("glossarySelectEvent", function TerminologyCollectionListComponent_div_7_ng_template_17_lib_terminology_collection_card_0_Template_lib_terminology_collection_card_glossarySelectEvent_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r0 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r0.selectGlossary($event)); });
|
|
5809
|
+
i0.ɵɵelementEnd();
|
|
5810
|
+
} if (rf & 2) {
|
|
5811
|
+
const collection_r7 = i0.ɵɵnextContext().collection;
|
|
5812
|
+
const ctx_r0 = i0.ɵɵnextContext(2);
|
|
5813
|
+
i0.ɵɵproperty("collection", collection_r7)("engineId", ctx_r0.system.systemId)("selected", ctx_r0.selectedCollection)("localizationKey", ctx_r0.localizationKey)("tooltipLocalizationKey", ctx_r0.tooltipLocalizationKey)("hasEditPermissions", ctx_r0.hasEditPermissions)("sourceLanguageCode", ctx_r0.system.sourceLanguageCode)("targetLanguageCode", ctx_r0.system.targetLanguageCode)("showCollectionLanguages", ctx_r0.showCollectionLanguages);
|
|
5814
|
+
} }
|
|
5815
|
+
function TerminologyCollectionListComponent_div_7_ng_template_17_Template(rf, ctx) { if (rf & 1) {
|
|
5816
|
+
i0.ɵɵtemplate(0, TerminologyCollectionListComponent_div_7_ng_template_17_lib_terminology_collection_card_0_Template, 1, 9, "lib-terminology-collection-card", 18);
|
|
5817
|
+
} if (rf & 2) {
|
|
5818
|
+
const collection_r7 = ctx.collection;
|
|
5819
|
+
i0.ɵɵproperty("ngIf", collection_r7.status);
|
|
5811
5820
|
} }
|
|
5812
5821
|
function TerminologyCollectionListComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
5813
5822
|
const _r2 = i0.ɵɵgetCurrentView();
|
|
5814
|
-
i0.ɵɵelementStart(0, "div",
|
|
5823
|
+
i0.ɵɵelementStart(0, "div", 8)(1, "mat-radio-group");
|
|
5815
5824
|
i0.ɵɵpipe(2, "translate");
|
|
5816
|
-
i0.ɵɵelementStart(3, "div",
|
|
5825
|
+
i0.ɵɵelementStart(3, "div", 9)(4, "mat-radio-button", 10);
|
|
5817
5826
|
i0.ɵɵlistener("click", function TerminologyCollectionListComponent_div_7_Template_mat_radio_button_click_4_listener() { i0.ɵɵrestoreView(_r2); const ctx_r0 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r0.selectGlossary(null)); });
|
|
5818
|
-
i0.ɵɵelementStart(5, "span",
|
|
5827
|
+
i0.ɵɵelementStart(5, "span", 11);
|
|
5819
5828
|
i0.ɵɵtext(6);
|
|
5820
5829
|
i0.ɵɵpipe(7, "translate");
|
|
5821
5830
|
i0.ɵɵelementEnd()()();
|
|
5822
|
-
i0.ɵɵtemplate(8, TerminologyCollectionListComponent_div_7_div_8_Template, 2,
|
|
5823
|
-
i0.ɵɵelementEnd()
|
|
5831
|
+
i0.ɵɵtemplate(8, TerminologyCollectionListComponent_div_7_div_8_Template, 2, 4, "div", 12);
|
|
5832
|
+
i0.ɵɵelementEnd();
|
|
5833
|
+
i0.ɵɵelementStart(9, "div", 13)(10, "h2", 14);
|
|
5834
|
+
i0.ɵɵtext(11);
|
|
5835
|
+
i0.ɵɵpipe(12, "translate");
|
|
5836
|
+
i0.ɵɵelementEnd();
|
|
5837
|
+
i0.ɵɵelementStart(13, "p", 15);
|
|
5838
|
+
i0.ɵɵtext(14);
|
|
5839
|
+
i0.ɵɵpipe(15, "translate");
|
|
5840
|
+
i0.ɵɵelementEnd();
|
|
5841
|
+
i0.ɵɵtemplate(16, TerminologyCollectionListComponent_div_7_div_16_Template, 2, 4, "div", 12);
|
|
5842
|
+
i0.ɵɵelementEnd();
|
|
5843
|
+
i0.ɵɵtemplate(17, TerminologyCollectionListComponent_div_7_ng_template_17_Template, 1, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
5844
|
+
i0.ɵɵelementEnd();
|
|
5824
5845
|
} if (rf & 2) {
|
|
5825
5846
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
5826
5847
|
i0.ɵɵadvance();
|
|
5827
|
-
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2,
|
|
5848
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 8, ctx_r0.localizationKey + "ARIA_LABELS.RADIO_GROUP"));
|
|
5828
5849
|
i0.ɵɵadvance(3);
|
|
5829
5850
|
i0.ɵɵclassProp("mat-mdc-radio-checked", !ctx_r0.selectedCollection);
|
|
5830
5851
|
i0.ɵɵadvance(2);
|
|
5831
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7,
|
|
5852
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 10, ctx_r0.localizationKey + "SELECTED_NONE"), " ");
|
|
5832
5853
|
i0.ɵɵadvance(2);
|
|
5833
5854
|
i0.ɵɵproperty("ngForOf", ctx_r0.collections);
|
|
5855
|
+
i0.ɵɵadvance(3);
|
|
5856
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 12, ctx_r0.localizationKey + "DEFAULT_GLOSSARIES_TITLE"));
|
|
5857
|
+
i0.ɵɵadvance(3);
|
|
5858
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 14, ctx_r0.localizationKey + "DEFAULT_GLOSSARIES_DESCRIPTION"));
|
|
5859
|
+
i0.ɵɵadvance(2);
|
|
5860
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.defaultCollections);
|
|
5834
5861
|
} }
|
|
5835
5862
|
class TerminologyCollectionListComponent {
|
|
5836
5863
|
get hasAnyCollections() {
|
|
@@ -5847,6 +5874,7 @@ class TerminologyCollectionListComponent {
|
|
|
5847
5874
|
this.config = config;
|
|
5848
5875
|
this.glossarySelectEvent = new EventEmitter();
|
|
5849
5876
|
this.collections = [];
|
|
5877
|
+
this.defaultCollections = [];
|
|
5850
5878
|
this.localizationKey = "TERM_COLLECTIONS.";
|
|
5851
5879
|
this.tooltipLocalizationKey = "TERM_COLLECTIONS.TOOLTIPS.";
|
|
5852
5880
|
this.destroy = new Subject();
|
|
@@ -5860,15 +5888,21 @@ class TerminologyCollectionListComponent {
|
|
|
5860
5888
|
ngOnInit() {
|
|
5861
5889
|
this.terminologyService.getCollections().pipe(takeUntil(this.destroy)).subscribe((data) => {
|
|
5862
5890
|
const collections = [];
|
|
5891
|
+
const defaultCollections = [];
|
|
5863
5892
|
if (data[this.system.systemId]?.collections) {
|
|
5864
5893
|
const srcKey = `"id":"${this.system.sourceLanguageCode}"`;
|
|
5865
5894
|
const trgKey = `"id":"${this.system.targetLanguageCode}"`;
|
|
5866
5895
|
data[this.system.systemId]?.collections.forEach((collection) => {
|
|
5867
5896
|
if (JSON.stringify(collection.termCollection?.languages ?? []).includes(srcKey && trgKey) || !collection.isTermPortalCollection || collection?.mtCollection) {
|
|
5897
|
+
if (collection.default) {
|
|
5898
|
+
defaultCollections.push(collection);
|
|
5899
|
+
return;
|
|
5900
|
+
}
|
|
5868
5901
|
collections.push(collection);
|
|
5869
5902
|
}
|
|
5870
5903
|
});
|
|
5871
5904
|
this.collections = collections.sort(this.collectionsSortFunction);
|
|
5905
|
+
this.defaultCollections = defaultCollections.sort(this.collectionsSortFunction);
|
|
5872
5906
|
}
|
|
5873
5907
|
});
|
|
5874
5908
|
}
|
|
@@ -5880,14 +5914,14 @@ class TerminologyCollectionListComponent {
|
|
|
5880
5914
|
this.destroy.complete();
|
|
5881
5915
|
}
|
|
5882
5916
|
static { this.ɵfac = function TerminologyCollectionListComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TerminologyCollectionListComponent)(i0.ɵɵdirectiveInject(TerminologyService), i0.ɵɵdirectiveInject(TerminologyConfigService)); }; }
|
|
5883
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TerminologyCollectionListComponent, selectors: [["lib-terminology-collection-list"]], inputs: { system: "system", selectedCollection: "selectedCollection" }, outputs: { glossarySelectEvent: "glossarySelectEvent" }, standalone: false, decls: 8, vars: 6, consts: [[1, "tld-collection-list-header"], [1, "term-window-title", "text-l-semi-bold"], [4, "ngIf"], ["class", "tld-collection-list-body", 4, "ngIf"], [1, "term-window-description", "text-s"], [1, "term-window-unavailable", "text-xl-semi-bold"], [1, "term-window-description", "text-m", 3, "innerHtml"], [1, "tld-collection-list-body"], ["fxLayout", "row", "fxLayoutAlign", "start center", 1, "none-option"], [3, "click"], [1, "text-m-semi-bold"], ["class", "collection", 4, "ngFor", "ngForOf"], [1, "collection"], ["class", "collection-card", 3, "collection", "engineId", "selected", "localizationKey", "tooltipLocalizationKey", "hasEditPermissions", "sourceLanguageCode", "targetLanguageCode", "showCollectionLanguages", "glossarySelectEvent", 4, "ngIf"], [1, "collection-card", 3, "glossarySelectEvent", "collection", "engineId", "selected", "localizationKey", "tooltipLocalizationKey", "hasEditPermissions", "sourceLanguageCode", "targetLanguageCode", "showCollectionLanguages"]], template: function TerminologyCollectionListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5884
|
-
i0.ɵɵelementStart(0, "header",
|
|
5917
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TerminologyCollectionListComponent, selectors: [["lib-terminology-collection-list"]], inputs: { system: "system", selectedCollection: "selectedCollection" }, outputs: { glossarySelectEvent: "glossarySelectEvent" }, standalone: false, decls: 8, vars: 6, consts: [["collectionCard", ""], [1, "tld-collection-list-header"], [1, "term-window-title", "text-l-semi-bold"], [4, "ngIf"], ["class", "tld-collection-list-body", 4, "ngIf"], [1, "term-window-description", "text-s"], [1, "term-window-unavailable", "text-xl-semi-bold"], [1, "term-window-description", "text-m", 3, "innerHtml"], [1, "tld-collection-list-body"], ["fxLayout", "row", "fxLayoutAlign", "start center", 1, "none-option"], [3, "click"], [1, "text-m-semi-bold"], ["class", "collection", 4, "ngFor", "ngForOf"], [1, "default-collections"], [1, "default-collections-header", "text-m-semi-bold"], [1, "default-collections-description"], [1, "collection"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["class", "collection-card", 3, "collection", "engineId", "selected", "localizationKey", "tooltipLocalizationKey", "hasEditPermissions", "sourceLanguageCode", "targetLanguageCode", "showCollectionLanguages", "glossarySelectEvent", 4, "ngIf"], [1, "collection-card", 3, "glossarySelectEvent", "collection", "engineId", "selected", "localizationKey", "tooltipLocalizationKey", "hasEditPermissions", "sourceLanguageCode", "targetLanguageCode", "showCollectionLanguages"]], template: function TerminologyCollectionListComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5918
|
+
i0.ɵɵelementStart(0, "header", 1)(1, "h1", 2)(2, "span");
|
|
5885
5919
|
i0.ɵɵtext(3);
|
|
5886
5920
|
i0.ɵɵpipe(4, "translate");
|
|
5887
5921
|
i0.ɵɵelementEnd()();
|
|
5888
|
-
i0.ɵɵtemplate(5, TerminologyCollectionListComponent_ng_container_5_Template, 5, 3, "ng-container",
|
|
5922
|
+
i0.ɵɵtemplate(5, TerminologyCollectionListComponent_ng_container_5_Template, 5, 3, "ng-container", 3)(6, TerminologyCollectionListComponent_ng_container_6_Template, 8, 14, "ng-container", 3);
|
|
5889
5923
|
i0.ɵɵelementEnd();
|
|
5890
|
-
i0.ɵɵtemplate(7, TerminologyCollectionListComponent_div_7_Template,
|
|
5924
|
+
i0.ɵɵtemplate(7, TerminologyCollectionListComponent_div_7_Template, 19, 16, "div", 4);
|
|
5891
5925
|
} if (rf & 2) {
|
|
5892
5926
|
i0.ɵɵadvance(3);
|
|
5893
5927
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 4, ctx.localizationKey + "TITLE"));
|
|
@@ -5897,11 +5931,11 @@ class TerminologyCollectionListComponent {
|
|
|
5897
5931
|
i0.ɵɵproperty("ngIf", !ctx.hasAnyCollections);
|
|
5898
5932
|
i0.ɵɵadvance();
|
|
5899
5933
|
i0.ɵɵproperty("ngIf", ctx.hasAnyCollections);
|
|
5900
|
-
} }, dependencies: [i1$1.NgForOf, i1$1.NgIf, i2$4.DefaultLayoutDirective, i2$4.DefaultLayoutAlignDirective, i5.MatRadioGroup, i5.MatRadioButton, TerminologyCollectionCardComponent, i1.TranslatePipe, LanguageTranslatePipe], styles: ["[_nghost-%COMP%] .tld-collection-list-body, [_nghost-%COMP%] .tld-collection-list-header{padding:.5em .75em}[_nghost-%COMP%] .term-window-unavailable{font-style:italic}[_nghost-%COMP%] .term-window-unavailable, [_nghost-%COMP%] .term-window-description span{font-weight:500}[_nghost-%COMP%] .collection-label{max-width:280px;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .collection-label-block{display:block}[_nghost-%COMP%] .collection-status-labels .mat-icon, [_nghost-%COMP%] .collection-status-labels .material-icons{font-size:18px}[_nghost-%COMP%] .default-
|
|
5934
|
+
} }, dependencies: [i1$1.NgForOf, i1$1.NgIf, i1$1.NgTemplateOutlet, i2$4.DefaultLayoutDirective, i2$4.DefaultLayoutAlignDirective, i5.MatRadioGroup, i5.MatRadioButton, TerminologyCollectionCardComponent, i1.TranslatePipe, LanguageTranslatePipe], styles: ["[_nghost-%COMP%] .tld-collection-list-body, [_nghost-%COMP%] .tld-collection-list-header{padding:.5em .75em}[_nghost-%COMP%] .term-window-unavailable{font-style:italic}[_nghost-%COMP%] .term-window-unavailable, [_nghost-%COMP%] .term-window-description span{font-weight:500}[_nghost-%COMP%] .collection-label{max-width:280px;overflow:hidden;text-overflow:ellipsis}[_nghost-%COMP%] .collection-label-block{display:block}[_nghost-%COMP%] .collection-status-labels .mat-icon, [_nghost-%COMP%] .collection-status-labels .material-icons{font-size:18px}[_nghost-%COMP%] .default-collections{padding:10px 3px}[_nghost-%COMP%] .mat-mdc-radio-button{overflow:hidden;padding:5px 0;place-content:start!important}[_nghost-%COMP%] .mat-mdc-radio-button .mat-radio-ripple{display:none}[_nghost-%COMP%] .mat-mdc-radio-button .mat-mdc-button{padding:0!important}[_nghost-%COMP%] .collection{min-height:70px}[_nghost-%COMP%] .collection-card{width:100%}[_nghost-%COMP%] .collection, [_nghost-%COMP%] .none-option{border-bottom:1px solid var(--base-70)}[_nghost-%COMP%] mat-spinner{display:inline-block}[_nghost-%COMP%] .mdc-radio__inner-circle{transform:scale(0)!important}[_nghost-%COMP%] .mdc-radio__outer-circle{border-color:inherit!important}[_nghost-%COMP%] .mat-mdc-radio-checked .mdc-radio__inner-circle{transform:scale(.5)!important}[_nghost-%COMP%] .mat-mdc-radio-checked .mdc-radio__outer-circle{border-color:var(--accent)!important}[_nghost-%COMP%] .mat-mdc-radio-checked .mdc-radio--disabled .mdc-radio__outer-circle{border-color:inherit!important} .default-collections .mdc-radio--disabled{display:none!important} .default-collections .mdc-label{color:inherit!important;padding-left:10px}"] }); }
|
|
5901
5935
|
}
|
|
5902
5936
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TerminologyCollectionListComponent, [{
|
|
5903
5937
|
type: Component,
|
|
5904
|
-
args: [{ selector: "lib-terminology-collection-list", standalone: false, template: "<header class=\"tld-collection-list-header\">\r\n
|
|
5938
|
+
args: [{ selector: "lib-terminology-collection-list", standalone: false, template: "<header class=\"tld-collection-list-header\">\r\n\t<h1 class=\"term-window-title text-l-semi-bold\">\r\n\t\t<span>{{ localizationKey + \"TITLE\" | translate }}</span>\r\n\t</h1>\r\n\t<ng-container *ngIf=\"hasAnyCollections\">\r\n\t\t<p class=\"term-window-description text-s\">\r\n\t\t\t<span>{{ localizationKey + \"DESCRIPTION\" | translate }}</span>\r\n\t\t</p>\r\n\t</ng-container>\r\n\t<ng-container *ngIf=\"!hasAnyCollections\">\r\n\t\t<p class=\"term-window-unavailable text-xl-semi-bold\">\r\n\t\t\t{{ localizationKey + \"UNAVAILABLE_GLOSSARIES\" | translate }}\r\n\t\t</p>\r\n\r\n\t\t<p\r\n\t\t\t[innerHtml]=\"\r\n\t\t\t\tlocalizationKey + 'DESCRIPTION_EMPTY'\r\n\t\t\t\t\t| translate\r\n\t\t\t\t\t\t: {\r\n\t\t\t\t\t\t\t\tsrcLang: system.sourceLanguageCode | languageTranslate,\r\n\t\t\t\t\t\t\t\ttrgLang: system.targetLanguageCode | languageTranslate,\r\n\t\t\t\t\t\t }\r\n\t\t\t\"\r\n\t\t\tclass=\"term-window-description text-m\"\r\n\t\t></p>\r\n\t</ng-container>\r\n</header>\r\n<div *ngIf=\"hasAnyCollections\" class=\"tld-collection-list-body\">\r\n\t<mat-radio-group [attr.aria-label]=\"localizationKey + 'ARIA_LABELS.RADIO_GROUP' | translate\">\r\n\t\t<div fxLayout=\"row\" fxLayoutAlign=\"start center\" class=\"none-option\">\r\n\t\t\t<mat-radio-button [class.mat-mdc-radio-checked]=\"!selectedCollection\" (click)=\"selectGlossary(null)\">\r\n\t\t\t\t<span class=\"text-m-semi-bold\">\r\n\t\t\t\t\t{{ localizationKey + \"SELECTED_NONE\" | translate }}\r\n\t\t\t\t</span>\r\n\t\t\t</mat-radio-button>\r\n\t\t</div>\r\n\t\t<div class=\"collection\" *ngFor=\"let collection of collections\">\r\n <ng-container *ngTemplateOutlet=\"collectionCard; context: { collection: collection }\"></ng-container>\r\n\t\t</div>\r\n\t</mat-radio-group>\r\n\t<div class=\"default-collections\">\r\n\t\t<h2 class=\"default-collections-header text-m-semi-bold\">{{ localizationKey + \"DEFAULT_GLOSSARIES_TITLE\" | translate }}</h2>\r\n\t\t<p class=\"default-collections-description\">{{ localizationKey + \"DEFAULT_GLOSSARIES_DESCRIPTION\" | translate }}</p>\r\n\t\t<div class=\"collection\" *ngFor=\"let collection of defaultCollections\">\r\n <ng-container *ngTemplateOutlet=\"collectionCard; context: { collection: collection }\"></ng-container>\r\n </div>\r\n\t</div>\r\n\r\n\t<ng-template #collectionCard let-collection=\"collection\">\r\n\t\t<lib-terminology-collection-card\r\n\t\t\t*ngIf=\"collection.status\"\r\n\t\t\tclass=\"collection-card\"\r\n\t\t\t[collection]=\"collection\"\r\n\t\t\t[engineId]=\"system.systemId\"\r\n\t\t\t[selected]=\"selectedCollection\"\r\n\t\t\t[localizationKey]=\"localizationKey\"\r\n\t\t\t[tooltipLocalizationKey]=\"tooltipLocalizationKey\"\r\n\t\t\t[hasEditPermissions]=\"hasEditPermissions\"\r\n\t\t\t[sourceLanguageCode]=\"system.sourceLanguageCode\"\r\n\t\t\t[targetLanguageCode]=\"system.targetLanguageCode\"\r\n\t\t\t[showCollectionLanguages]=\"showCollectionLanguages\"\r\n\t\t\t(glossarySelectEvent)=\"selectGlossary($event)\"\r\n\t\t></lib-terminology-collection-card>\r\n\t</ng-template>\r\n</div>\r\n", styles: [":host ::ng-deep .tld-collection-list-body,:host ::ng-deep .tld-collection-list-header{padding:.5em .75em}:host ::ng-deep .term-window-unavailable{font-style:italic}:host ::ng-deep .term-window-unavailable,:host ::ng-deep .term-window-description span{font-weight:500}:host ::ng-deep .collection-label{max-width:280px;overflow:hidden;text-overflow:ellipsis}:host ::ng-deep .collection-label-block{display:block}:host ::ng-deep .collection-status-labels .mat-icon,:host ::ng-deep .collection-status-labels .material-icons{font-size:18px}:host ::ng-deep .default-collections{padding:10px 3px}:host ::ng-deep .mat-mdc-radio-button{overflow:hidden;padding:5px 0;place-content:start!important}:host ::ng-deep .mat-mdc-radio-button .mat-radio-ripple{display:none}:host ::ng-deep .mat-mdc-radio-button .mat-mdc-button{padding:0!important}:host ::ng-deep .collection{min-height:70px}:host ::ng-deep .collection-card{width:100%}:host ::ng-deep .collection,:host ::ng-deep .none-option{border-bottom:1px solid var(--base-70)}:host ::ng-deep mat-spinner{display:inline-block}:host ::ng-deep .mdc-radio__inner-circle{transform:scale(0)!important}:host ::ng-deep .mdc-radio__outer-circle{border-color:inherit!important}:host ::ng-deep .mat-mdc-radio-checked .mdc-radio__inner-circle{transform:scale(.5)!important}:host ::ng-deep .mat-mdc-radio-checked .mdc-radio__outer-circle{border-color:var(--accent)!important}:host ::ng-deep .mat-mdc-radio-checked .mdc-radio--disabled .mdc-radio__outer-circle{border-color:inherit!important}::ng-deep .default-collections .mdc-radio--disabled{display:none!important}::ng-deep .default-collections .mdc-label{color:inherit!important;padding-left:10px}\n"] }]
|
|
5905
5939
|
}], () => [{ type: TerminologyService }, { type: TerminologyConfigService }], { system: [{
|
|
5906
5940
|
type: Input,
|
|
5907
5941
|
args: [{ required: true }]
|
|
@@ -5914,7 +5948,7 @@ class TerminologyCollectionListComponent {
|
|
|
5914
5948
|
|
|
5915
5949
|
const _c0$4 = (a0, a1) => ({ appName: a0, termPortalName: a1 });
|
|
5916
5950
|
const _c1$1 = (a0, a1) => ({ minLength: a0, maxLength: a1 });
|
|
5917
|
-
function
|
|
5951
|
+
function TerminologyCreateCollectionDialogComponent_mat_error_13_Template(rf, ctx) { if (rf & 1) {
|
|
5918
5952
|
i0.ɵɵelementStart(0, "mat-error");
|
|
5919
5953
|
i0.ɵɵtext(1);
|
|
5920
5954
|
i0.ɵɵpipe(2, "translate");
|
|
@@ -5960,7 +5994,7 @@ class TerminologyCreateCollectionDialogComponent {
|
|
|
5960
5994
|
this.subscription.unsubscribe();
|
|
5961
5995
|
}
|
|
5962
5996
|
static { this.ɵfac = function TerminologyCreateCollectionDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TerminologyCreateCollectionDialogComponent)(i0.ɵɵdirectiveInject(i1$3.MatDialogRef), i0.ɵɵdirectiveInject(TerminologyConfigService), i0.ɵɵdirectiveInject(i1.TranslateService), i0.ɵɵdirectiveInject(i4$1.FormBuilder), i0.ɵɵdirectiveInject(MAT_DIALOG_DATA)); }; }
|
|
5963
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TerminologyCreateCollectionDialogComponent, selectors: [["lib-terminology-create-collection-dialog"]], standalone: false, decls:
|
|
5997
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TerminologyCreateCollectionDialogComponent, selectors: [["lib-terminology-create-collection-dialog"]], standalone: false, decls: 21, vars: 22, consts: [["mat-dialog-title", ""], ["mat-dialog-close", "", 1, "close-button"], ["mat-dialog-content", ""], [1, "main-description", 3, "innerHtml"], [3, "formGroup"], ["appearance", "outline", 1, "collection-name-form-field"], ["matInput", "", "formControlName", "collectionName", 3, "keyup.enter"], [4, "ngIf"], ["fxLayout", "row", "fxLayoutAlign", "end center", 1, "glossary-create-actions"], ["mat-stroked-button", "", "mat-dialog-close", "", "color", "accent"], ["mat-flat-button", "", "cdkFocusInitial", "", "color", "accent", 3, "click", "disabled"]], template: function TerminologyCreateCollectionDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5964
5998
|
i0.ɵɵelementStart(0, "h1", 0);
|
|
5965
5999
|
i0.ɵɵtext(1);
|
|
5966
6000
|
i0.ɵɵpipe(2, "translate");
|
|
@@ -5969,50 +6003,46 @@ class TerminologyCreateCollectionDialogComponent {
|
|
|
5969
6003
|
i0.ɵɵelementStart(4, "div", 2);
|
|
5970
6004
|
i0.ɵɵelement(5, "p", 3);
|
|
5971
6005
|
i0.ɵɵpipe(6, "translate");
|
|
5972
|
-
i0.ɵɵ
|
|
5973
|
-
i0.ɵɵ
|
|
5974
|
-
i0.ɵɵ
|
|
5975
|
-
i0.ɵɵtext(12);
|
|
5976
|
-
i0.ɵɵpipe(13, "translate");
|
|
6006
|
+
i0.ɵɵelementStart(7, "form", 4)(8, "mat-form-field", 5)(9, "mat-label");
|
|
6007
|
+
i0.ɵɵtext(10);
|
|
6008
|
+
i0.ɵɵpipe(11, "translate");
|
|
5977
6009
|
i0.ɵɵelementEnd();
|
|
5978
|
-
i0.ɵɵelementStart(
|
|
5979
|
-
i0.ɵɵlistener("keyup.enter", function
|
|
6010
|
+
i0.ɵɵelementStart(12, "input", 6);
|
|
6011
|
+
i0.ɵɵlistener("keyup.enter", function TerminologyCreateCollectionDialogComponent_Template_input_keyup_enter_12_listener() { return ctx.create(); });
|
|
5980
6012
|
i0.ɵɵelementEnd();
|
|
5981
|
-
i0.ɵɵtemplate(
|
|
6013
|
+
i0.ɵɵtemplate(13, TerminologyCreateCollectionDialogComponent_mat_error_13_Template, 3, 7, "mat-error", 7);
|
|
5982
6014
|
i0.ɵɵelementEnd()()();
|
|
5983
|
-
i0.ɵɵelementStart(
|
|
5984
|
-
i0.ɵɵtext(
|
|
5985
|
-
i0.ɵɵpipe(
|
|
6015
|
+
i0.ɵɵelementStart(14, "mat-dialog-actions", 8)(15, "button", 9);
|
|
6016
|
+
i0.ɵɵtext(16);
|
|
6017
|
+
i0.ɵɵpipe(17, "translate");
|
|
5986
6018
|
i0.ɵɵelementEnd();
|
|
5987
|
-
i0.ɵɵelementStart(
|
|
5988
|
-
i0.ɵɵlistener("click", function
|
|
5989
|
-
i0.ɵɵtext(
|
|
5990
|
-
i0.ɵɵpipe(
|
|
6019
|
+
i0.ɵɵelementStart(18, "button", 10);
|
|
6020
|
+
i0.ɵɵlistener("click", function TerminologyCreateCollectionDialogComponent_Template_button_click_18_listener() { return ctx.create(); });
|
|
6021
|
+
i0.ɵɵtext(19);
|
|
6022
|
+
i0.ɵɵpipe(20, "translate");
|
|
5991
6023
|
i0.ɵɵelementEnd()();
|
|
5992
6024
|
} if (rf & 2) {
|
|
5993
6025
|
i0.ɵɵadvance();
|
|
5994
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2,
|
|
6026
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 8, "TERM_COLLECTIONS.CREATE_DIALOG.TITLE"));
|
|
5995
6027
|
i0.ɵɵadvance(4);
|
|
5996
|
-
i0.ɵɵproperty("innerHtml", i0.ɵɵpipeBind2(6,
|
|
5997
|
-
i0.ɵɵadvance(2);
|
|
5998
|
-
i0.ɵɵproperty("innerHtml", i0.ɵɵpipeBind1(8, 14, "TERM_COLLECTIONS.CREATE_DIALOG.DESCRIPTION_2"), i0.ɵɵsanitizeHtml);
|
|
6028
|
+
i0.ɵɵproperty("innerHtml", i0.ɵɵpipeBind2(6, 10, "TERM_COLLECTIONS.CREATE_DIALOG.DESCRIPTION_1", i0.ɵɵpureFunction2(19, _c0$4, ctx.appName, ctx.termPortalName)), i0.ɵɵsanitizeHtml);
|
|
5999
6029
|
i0.ɵɵadvance(2);
|
|
6000
6030
|
i0.ɵɵproperty("formGroup", ctx.form);
|
|
6001
6031
|
i0.ɵɵadvance(3);
|
|
6002
|
-
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(
|
|
6032
|
+
i0.ɵɵtextInterpolate1("", i0.ɵɵpipeBind1(11, 13, "TERM_COLLECTIONS.CREATE_DIALOG.COLLECTION_NAME_LABEL"), " ");
|
|
6003
6033
|
i0.ɵɵadvance(3);
|
|
6004
6034
|
i0.ɵɵproperty("ngIf", ctx.form.controls["collectionName"].errors);
|
|
6005
6035
|
i0.ɵɵadvance(3);
|
|
6006
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6036
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(17, 15, "TERM_COLLECTIONS.CREATE_DIALOG.CANCEL"));
|
|
6007
6037
|
i0.ɵɵadvance(2);
|
|
6008
6038
|
i0.ɵɵproperty("disabled", ctx.form.invalid);
|
|
6009
6039
|
i0.ɵɵadvance();
|
|
6010
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
6040
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(20, 17, "TERM_COLLECTIONS.CREATE_DIALOG.CREATE"));
|
|
6011
6041
|
} }, dependencies: [i1$1.NgIf, i2$4.DefaultLayoutDirective, i2$4.DefaultLayoutAlignDirective, i4$1.ɵNgNoValidate, i4$1.DefaultValueAccessor, i4$1.NgControlStatus, i4$1.NgControlStatusGroup, i4$1.FormGroupDirective, i4$1.FormControlName, CloseButtonComponent, i2$2.MatButton, i1$3.MatDialogClose, i1$3.MatDialogTitle, i1$3.MatDialogActions, i1$3.MatDialogContent, i9.MatInput, i9.MatFormField, i9.MatLabel, i9.MatError, i1.TranslatePipe], styles: ["input[_ngcontent-%COMP%]{outline:none!important}.create-dialog-wrapper[_ngcontent-%COMP%]{position:relative}.close-button[_ngcontent-%COMP%]{position:absolute;right:1em;top:1em}.main-description[_ngcontent-%COMP%]{margin-bottom:.25em}.collection-name-form-field[_ngcontent-%COMP%]{margin-top:2em}.mdc-dialog__content[_ngcontent-%COMP%]{padding:0 24px!important}"] }); }
|
|
6012
6042
|
}
|
|
6013
6043
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TerminologyCreateCollectionDialogComponent, [{
|
|
6014
6044
|
type: Component,
|
|
6015
|
-
args: [{ selector: "lib-terminology-create-collection-dialog", standalone: false, template: "<h1 mat-dialog-title>{{ \"TERM_COLLECTIONS.CREATE_DIALOG.TITLE\" | translate }}</h1>\r\n<tld-close-button class=\"close-button\" mat-dialog-close> </tld-close-button>\r\n<div mat-dialog-content>\r\n <p class=\"main-description\" [innerHtml]=\"'TERM_COLLECTIONS.CREATE_DIALOG.DESCRIPTION_1' | translate : { appName, termPortalName }\"></p>\r\n <
|
|
6045
|
+
args: [{ selector: "lib-terminology-create-collection-dialog", standalone: false, template: "<h1 mat-dialog-title>{{ \"TERM_COLLECTIONS.CREATE_DIALOG.TITLE\" | translate }}</h1>\r\n<tld-close-button class=\"close-button\" mat-dialog-close> </tld-close-button>\r\n<div mat-dialog-content>\r\n <p class=\"main-description\" [innerHtml]=\"'TERM_COLLECTIONS.CREATE_DIALOG.DESCRIPTION_1' | translate : { appName, termPortalName }\"></p>\r\n <form [formGroup]=\"form\">\r\n <mat-form-field appearance=\"outline\" class=\"collection-name-form-field\">\r\n <mat-label>{{ \"TERM_COLLECTIONS.CREATE_DIALOG.COLLECTION_NAME_LABEL\" | translate }} </mat-label>\r\n <input matInput formControlName=\"collectionName\" (keyup.enter)=\"create()\" />\r\n <mat-error *ngIf=\"form.controls['collectionName'].errors\">{{ \"TERM_COLLECTIONS.CREATE_DIALOG.COLLECTION_NAME_ERROR\" | translate : { minLength: minLength, maxLength: maxLength } }}</mat-error>\r\n </mat-form-field>\r\n</form>\r\n</div>\r\n<mat-dialog-actions fxLayout=\"row\" fxLayoutAlign=\"end center\" class=\"glossary-create-actions\">\r\n <button mat-stroked-button mat-dialog-close color=\"accent\">{{ \"TERM_COLLECTIONS.CREATE_DIALOG.CANCEL\" | translate }}</button>\r\n <button mat-flat-button (click)=\"create()\" cdkFocusInitial color=\"accent\" [disabled]=\"form.invalid\">{{ \"TERM_COLLECTIONS.CREATE_DIALOG.CREATE\" | translate }}</button>\r\n</mat-dialog-actions>\r\n", styles: ["input{outline:none!important}.create-dialog-wrapper{position:relative}.close-button{position:absolute;right:1em;top:1em}.main-description{margin-bottom:.25em}.collection-name-form-field{margin-top:2em}.mdc-dialog__content{padding:0 24px!important}\n"] }]
|
|
6016
6046
|
}], () => [{ type: i1$3.MatDialogRef }, { type: TerminologyConfigService }, { type: i1.TranslateService }, { type: i4$1.FormBuilder }, { type: undefined, decorators: [{
|
|
6017
6047
|
type: Inject,
|
|
6018
6048
|
args: [MAT_DIALOG_DATA]
|