@tilde-nlp/ngx-common 8.1.69 → 8.1.71
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.
|
@@ -5489,29 +5489,49 @@ function TerminologyCollectionCardComponent_ng_container_0_span_8_Template(rf, c
|
|
|
5489
5489
|
i0.ɵɵadvance();
|
|
5490
5490
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, ctx_r1.localizationKey + "DEFAULT"));
|
|
5491
5491
|
} }
|
|
5492
|
-
function
|
|
5493
|
-
i0.ɵɵelementStart(0, "span");
|
|
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);
|
|
5494
5494
|
i0.ɵɵtext(1);
|
|
5495
5495
|
i0.ɵɵelementEnd();
|
|
5496
5496
|
} if (rf & 2) {
|
|
5497
|
-
const lang_r3 =
|
|
5497
|
+
const lang_r3 = i0.ɵɵnextContext().$implicit;
|
|
5498
5498
|
i0.ɵɵadvance();
|
|
5499
5499
|
i0.ɵɵtextInterpolate(lang_r3.id);
|
|
5500
5500
|
} }
|
|
5501
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_9_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
5502
|
+
i0.ɵɵelementContainerStart(0);
|
|
5503
|
+
i0.ɵɵtemplate(1, TerminologyCollectionCardComponent_ng_container_0_div_9_ng_container_1_ng_container_1_span_1_Template, 2, 1, "span", 22);
|
|
5504
|
+
i0.ɵɵelementContainerEnd();
|
|
5505
|
+
} if (rf & 2) {
|
|
5506
|
+
const ix_r4 = ctx.index;
|
|
5507
|
+
i0.ɵɵadvance();
|
|
5508
|
+
i0.ɵɵproperty("ngIf", ix_r4 <= 1);
|
|
5509
|
+
} }
|
|
5510
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_9_ng_container_1_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
5511
|
+
i0.ɵɵelementStart(0, "span", 24);
|
|
5512
|
+
i0.ɵɵtext(1);
|
|
5513
|
+
i0.ɵɵelementEnd();
|
|
5514
|
+
} if (rf & 2) {
|
|
5515
|
+
const ctx_r1 = i0.ɵɵnextContext(4);
|
|
5516
|
+
i0.ɵɵadvance();
|
|
5517
|
+
i0.ɵɵtextInterpolate1(" +", ctx_r1.collection.termCollection.languages.length - 2, " ");
|
|
5518
|
+
} }
|
|
5501
5519
|
function TerminologyCollectionCardComponent_ng_container_0_div_9_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
5502
5520
|
i0.ɵɵelementContainerStart(0);
|
|
5503
|
-
i0.ɵɵtemplate(1,
|
|
5521
|
+
i0.ɵɵtemplate(1, TerminologyCollectionCardComponent_ng_container_0_div_9_ng_container_1_ng_container_1_Template, 2, 1, "ng-container", 20)(2, TerminologyCollectionCardComponent_ng_container_0_div_9_ng_container_1_span_2_Template, 2, 1, "span", 21);
|
|
5504
5522
|
i0.ɵɵelementContainerEnd();
|
|
5505
5523
|
} if (rf & 2) {
|
|
5506
5524
|
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
5507
5525
|
i0.ɵɵadvance();
|
|
5508
5526
|
i0.ɵɵproperty("ngForOf", ctx_r1.collection.termCollection.languages);
|
|
5527
|
+
i0.ɵɵadvance();
|
|
5528
|
+
i0.ɵɵproperty("ngIf", ctx_r1.collection.termCollection.languages && ctx_r1.collection.termCollection.languages.length > 2);
|
|
5509
5529
|
} }
|
|
5510
5530
|
function TerminologyCollectionCardComponent_ng_container_0_div_9_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
5511
|
-
i0.ɵɵelementStart(0, "span");
|
|
5531
|
+
i0.ɵɵelementStart(0, "span", 23);
|
|
5512
5532
|
i0.ɵɵtext(1);
|
|
5513
5533
|
i0.ɵɵelementEnd();
|
|
5514
|
-
i0.ɵɵelementStart(2, "span");
|
|
5534
|
+
i0.ɵɵelementStart(2, "span", 23);
|
|
5515
5535
|
i0.ɵɵtext(3);
|
|
5516
5536
|
i0.ɵɵelementEnd();
|
|
5517
5537
|
} if (rf & 2) {
|
|
@@ -5521,38 +5541,50 @@ function TerminologyCollectionCardComponent_ng_container_0_div_9_ng_template_2_T
|
|
|
5521
5541
|
i0.ɵɵadvance(2);
|
|
5522
5542
|
i0.ɵɵtextInterpolate(ctx_r1.targetLanguageCode);
|
|
5523
5543
|
} }
|
|
5524
|
-
function
|
|
5525
|
-
i0.ɵɵelementStart(0, "
|
|
5526
|
-
i0.ɵɵtemplate(1, TerminologyCollectionCardComponent_ng_container_0_div_9_ng_container_1_Template, 2, 1, "ng-container", 18)(2, TerminologyCollectionCardComponent_ng_container_0_div_9_ng_template_2_Template, 4, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
5527
|
-
i0.ɵɵelementEnd();
|
|
5528
|
-
} if (rf & 2) {
|
|
5529
|
-
const currentDirection_r4 = i0.ɵɵreference(3);
|
|
5530
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
5531
|
-
i0.ɵɵadvance();
|
|
5532
|
-
i0.ɵɵproperty("ngIf", ctx_r1.collection.termCollection)("ngIfElse", currentDirection_r4);
|
|
5533
|
-
} }
|
|
5534
|
-
function TerminologyCollectionCardComponent_ng_container_0_span_10_Template(rf, ctx) { if (rf & 1) {
|
|
5535
|
-
i0.ɵɵelementStart(0, "span", 20);
|
|
5544
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_9_span_4_Template(rf, ctx) { if (rf & 1) {
|
|
5545
|
+
i0.ɵɵelementStart(0, "span");
|
|
5536
5546
|
i0.ɵɵtext(1);
|
|
5537
5547
|
i0.ɵɵpipe(2, "translate");
|
|
5538
5548
|
i0.ɵɵelementEnd();
|
|
5539
5549
|
} if (rf & 2) {
|
|
5540
|
-
const ctx_r1 = i0.ɵɵnextContext(
|
|
5550
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
5541
5551
|
i0.ɵɵadvance();
|
|
5542
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(2, 1, ctx_r1.localizationKey + "TERMS_IN_USE", i0.ɵɵpureFunction1(4, _c0$6, ctx_r1.collection.
|
|
5552
|
+
i0.ɵɵtextInterpolate1(" \u2022 ", i0.ɵɵpipeBind2(2, 1, ctx_r1.localizationKey + "TERMS_IN_USE", i0.ɵɵpureFunction1(4, _c0$6, ctx_r1.collection.termCollection.entryCount)), " ");
|
|
5553
|
+
} }
|
|
5554
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_9_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
5555
|
+
i0.ɵɵtext(0);
|
|
5556
|
+
i0.ɵɵpipe(1, "translate");
|
|
5557
|
+
} if (rf & 2) {
|
|
5558
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
5559
|
+
i0.ɵɵtextInterpolate1(" \u2022 ", i0.ɵɵpipeBind2(1, 1, ctx_r1.localizationKey + "TERMS_IN_USE", i0.ɵɵpureFunction1(4, _c0$6, ctx_r1.collection.termCount)), " ");
|
|
5543
5560
|
} }
|
|
5544
|
-
function
|
|
5545
|
-
i0.ɵɵelementStart(0, "span",
|
|
5561
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_9_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
5562
|
+
i0.ɵɵelementStart(0, "span", 25);
|
|
5546
5563
|
i0.ɵɵtext(1);
|
|
5547
5564
|
i0.ɵɵpipe(2, "dateAgo");
|
|
5548
5565
|
i0.ɵɵpipe(3, "translate");
|
|
5549
5566
|
i0.ɵɵelementEnd();
|
|
5550
5567
|
} if (rf & 2) {
|
|
5568
|
+
const ctx_r1 = i0.ɵɵnextContext(3);
|
|
5569
|
+
i0.ɵɵadvance();
|
|
5570
|
+
i0.ɵɵtextInterpolate1(" \u2022 ", i0.ɵɵpipeBind2(3, 3, ctx_r1.localizationKey + "LAST_UPDATED", i0.ɵɵpureFunction1(6, _c1$2, i0.ɵɵpipeBind1(2, 1, ctx_r1.collection.lastUpdated))), " ");
|
|
5571
|
+
} }
|
|
5572
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
5573
|
+
i0.ɵɵelementStart(0, "div", 17);
|
|
5574
|
+
i0.ɵɵtemplate(1, TerminologyCollectionCardComponent_ng_container_0_div_9_ng_container_1_Template, 3, 2, "ng-container", 18)(2, TerminologyCollectionCardComponent_ng_container_0_div_9_ng_template_2_Template, 4, 2, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor)(4, TerminologyCollectionCardComponent_ng_container_0_div_9_span_4_Template, 3, 6, "span", 18)(5, TerminologyCollectionCardComponent_ng_container_0_div_9_ng_template_5_Template, 2, 6, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor)(7, TerminologyCollectionCardComponent_ng_container_0_div_9_span_7_Template, 4, 8, "span", 19);
|
|
5575
|
+
i0.ɵɵelementEnd();
|
|
5576
|
+
} if (rf & 2) {
|
|
5577
|
+
const currentDirection_r5 = i0.ɵɵreference(3);
|
|
5578
|
+
const termCount_r6 = i0.ɵɵreference(6);
|
|
5551
5579
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
5552
5580
|
i0.ɵɵadvance();
|
|
5553
|
-
i0.ɵɵ
|
|
5581
|
+
i0.ɵɵproperty("ngIf", ctx_r1.collection.termCollection && ctx_r1.collection.termCollection.languages)("ngIfElse", currentDirection_r5);
|
|
5582
|
+
i0.ɵɵadvance(3);
|
|
5583
|
+
i0.ɵɵproperty("ngIf", (ctx_r1.collection.termCollection == null ? null : ctx_r1.collection.termCollection.entryCount) !== null)("ngIfElse", termCount_r6);
|
|
5584
|
+
i0.ɵɵadvance(3);
|
|
5585
|
+
i0.ɵɵproperty("ngIf", ctx_r1.collection.lastUpdated);
|
|
5554
5586
|
} }
|
|
5555
|
-
function
|
|
5587
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_11_span_3_Template(rf, ctx) { if (rf & 1) {
|
|
5556
5588
|
i0.ɵɵelementStart(0, "span");
|
|
5557
5589
|
i0.ɵɵtext(1);
|
|
5558
5590
|
i0.ɵɵpipe(2, "uppercase");
|
|
@@ -5563,20 +5595,20 @@ function TerminologyCollectionCardComponent_ng_container_0_div_13_span_3_Templat
|
|
|
5563
5595
|
i0.ɵɵadvance();
|
|
5564
5596
|
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)), " ");
|
|
5565
5597
|
} }
|
|
5566
|
-
function
|
|
5567
|
-
i0.ɵɵelementStart(0, "div",
|
|
5598
|
+
function TerminologyCollectionCardComponent_ng_container_0_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
5599
|
+
i0.ɵɵelementStart(0, "div", 26)(1, "span", 27);
|
|
5568
5600
|
i0.ɵɵtext(2, " error ");
|
|
5569
5601
|
i0.ɵɵelementEnd();
|
|
5570
|
-
i0.ɵɵtemplate(3,
|
|
5602
|
+
i0.ɵɵtemplate(3, TerminologyCollectionCardComponent_ng_container_0_div_11_span_3_Template, 4, 5, "span", 2);
|
|
5571
5603
|
i0.ɵɵelementEnd();
|
|
5572
5604
|
} if (rf & 2) {
|
|
5573
5605
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
5574
5606
|
i0.ɵɵadvance(3);
|
|
5575
5607
|
i0.ɵɵproperty("ngIf", (ctx_r1.collection.mtCollection == null ? null : ctx_r1.collection.mtCollection.subStatus) === ctx_r1.collectionImportingErrorSubStatus);
|
|
5576
5608
|
} }
|
|
5577
|
-
function
|
|
5578
|
-
i0.ɵɵelementStart(0, "span",
|
|
5579
|
-
i0.ɵɵelement(1, "mat-spinner",
|
|
5609
|
+
function TerminologyCollectionCardComponent_ng_container_0_span_12_Template(rf, ctx) { if (rf & 1) {
|
|
5610
|
+
i0.ɵɵelementStart(0, "span", 28);
|
|
5611
|
+
i0.ɵɵelement(1, "mat-spinner", 29);
|
|
5580
5612
|
i0.ɵɵelementStart(2, "span");
|
|
5581
5613
|
i0.ɵɵtext(3);
|
|
5582
5614
|
i0.ɵɵpipe(4, "translate");
|
|
@@ -5586,12 +5618,12 @@ function TerminologyCollectionCardComponent_ng_container_0_span_14_Template(rf,
|
|
|
5586
5618
|
i0.ɵɵadvance(3);
|
|
5587
5619
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 1, ctx_r1.tooltipLocalizationKey + "IMPORTING"), " ");
|
|
5588
5620
|
} }
|
|
5589
|
-
function
|
|
5590
|
-
const
|
|
5591
|
-
i0.ɵɵelementStart(0, "button",
|
|
5621
|
+
function TerminologyCollectionCardComponent_ng_container_0_button_13_Template(rf, ctx) { if (rf & 1) {
|
|
5622
|
+
const _r7 = i0.ɵɵgetCurrentView();
|
|
5623
|
+
i0.ɵɵelementStart(0, "button", 30);
|
|
5592
5624
|
i0.ɵɵpipe(1, "translate");
|
|
5593
|
-
i0.ɵɵlistener("click", function
|
|
5594
|
-
i0.ɵɵelementStart(2, "span",
|
|
5625
|
+
i0.ɵɵlistener("click", function TerminologyCollectionCardComponent_ng_container_0_button_13_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
|
+
i0.ɵɵelementStart(2, "span", 31)(3, "mat-icon", 32);
|
|
5595
5627
|
i0.ɵɵtext(4, "sync");
|
|
5596
5628
|
i0.ɵɵelementEnd();
|
|
5597
5629
|
i0.ɵɵtext(5);
|
|
@@ -5603,10 +5635,10 @@ function TerminologyCollectionCardComponent_ng_container_0_button_15_Template(rf
|
|
|
5603
5635
|
i0.ɵɵadvance(5);
|
|
5604
5636
|
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(6, 4, ctx_r1.localizationKey + "SYNC"), " ");
|
|
5605
5637
|
} }
|
|
5606
|
-
function
|
|
5607
|
-
i0.ɵɵelementStart(0, "a",
|
|
5638
|
+
function TerminologyCollectionCardComponent_ng_container_0_ng_container_14_a_1_Template(rf, ctx) { if (rf & 1) {
|
|
5639
|
+
i0.ɵɵelementStart(0, "a", 34);
|
|
5608
5640
|
i0.ɵɵpipe(1, "translate");
|
|
5609
|
-
i0.ɵɵelementStart(2, "mat-icon",
|
|
5641
|
+
i0.ɵɵelementStart(2, "mat-icon", 35);
|
|
5610
5642
|
i0.ɵɵtext(3, "edit");
|
|
5611
5643
|
i0.ɵɵelementEnd()();
|
|
5612
5644
|
} if (rf & 2) {
|
|
@@ -5614,9 +5646,9 @@ function TerminologyCollectionCardComponent_ng_container_0_ng_container_16_a_1_T
|
|
|
5614
5646
|
i0.ɵɵproperty("matTooltip", i0.ɵɵpipeBind1(1, 2, ctx_r1.tooltipLocalizationKey + "EDIT"));
|
|
5615
5647
|
i0.ɵɵattribute("href", ctx_r1.getEditLink(ctx_r1.collection), i0.ɵɵsanitizeUrl);
|
|
5616
5648
|
} }
|
|
5617
|
-
function
|
|
5649
|
+
function TerminologyCollectionCardComponent_ng_container_0_ng_container_14_Template(rf, ctx) { if (rf & 1) {
|
|
5618
5650
|
i0.ɵɵelementContainerStart(0);
|
|
5619
|
-
i0.ɵɵtemplate(1,
|
|
5651
|
+
i0.ɵɵtemplate(1, TerminologyCollectionCardComponent_ng_container_0_ng_container_14_a_1_Template, 4, 4, "a", 33);
|
|
5620
5652
|
i0.ɵɵelementContainerEnd();
|
|
5621
5653
|
} if (rf & 2) {
|
|
5622
5654
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
@@ -5626,26 +5658,26 @@ function TerminologyCollectionCardComponent_ng_container_0_ng_container_16_Templ
|
|
|
5626
5658
|
function TerminologyCollectionCardComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
5627
5659
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
5628
5660
|
i0.ɵɵelementContainerStart(0);
|
|
5629
|
-
i0.ɵɵelementStart(1, "div",
|
|
5661
|
+
i0.ɵɵelementStart(1, "div", 3)(2, "mat-radio-button", 4);
|
|
5630
5662
|
i0.ɵɵpipe(3, "translate");
|
|
5631
5663
|
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)); });
|
|
5632
|
-
i0.ɵɵelementStart(4, "div",
|
|
5633
|
-
i0.ɵɵtemplate(6, TerminologyCollectionCardComponent_ng_container_0_span_6_Template, 2, 2, "span",
|
|
5664
|
+
i0.ɵɵelementStart(4, "div", 3)(5, "div", 5);
|
|
5665
|
+
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);
|
|
5634
5666
|
i0.ɵɵelementEnd();
|
|
5635
|
-
i0.ɵɵtemplate(8, TerminologyCollectionCardComponent_ng_container_0_span_8_Template, 3, 3, "span",
|
|
5667
|
+
i0.ɵɵtemplate(8, TerminologyCollectionCardComponent_ng_container_0_span_8_Template, 3, 3, "span", 8);
|
|
5636
5668
|
i0.ɵɵelementEnd();
|
|
5637
|
-
i0.ɵɵtemplate(9, TerminologyCollectionCardComponent_ng_container_0_div_9_Template,
|
|
5638
|
-
i0.ɵɵelementStart(
|
|
5639
|
-
i0.ɵɵtemplate(
|
|
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);
|
|
5640
5672
|
i0.ɵɵelementEnd()();
|
|
5641
|
-
i0.ɵɵtemplate(
|
|
5673
|
+
i0.ɵɵtemplate(14, TerminologyCollectionCardComponent_ng_container_0_ng_container_14_Template, 2, 1, "ng-container", 2);
|
|
5642
5674
|
i0.ɵɵelementEnd();
|
|
5643
5675
|
i0.ɵɵelementContainerEnd();
|
|
5644
5676
|
} if (rf & 2) {
|
|
5645
5677
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
5646
5678
|
i0.ɵɵadvance(2);
|
|
5647
5679
|
i0.ɵɵclassProp("mat-mdc-radio-checked", ctx_r1.collection.default || ctx_r1.collection === ctx_r1.selected);
|
|
5648
|
-
i0.ɵɵproperty("disabled", ctx_r1.isSelectionDisabled)("matTooltip", ctx_r1.collection.termTooltipKey ? i0.ɵɵpipeBind1(3,
|
|
5680
|
+
i0.ɵɵproperty("disabled", ctx_r1.isSelectionDisabled)("matTooltip", ctx_r1.collection.termTooltipKey ? i0.ɵɵpipeBind1(3, 12, ctx_r1.tooltipLocalizationKey + ctx_r1.collection.termTooltipKey) : "");
|
|
5649
5681
|
i0.ɵɵadvance(4);
|
|
5650
5682
|
i0.ɵɵproperty("ngIf", !ctx_r1.collection.termTooltipKey);
|
|
5651
5683
|
i0.ɵɵadvance();
|
|
@@ -5654,10 +5686,6 @@ function TerminologyCollectionCardComponent_ng_container_0_Template(rf, ctx) { i
|
|
|
5654
5686
|
i0.ɵɵproperty("ngIf", ctx_r1.collection.default);
|
|
5655
5687
|
i0.ɵɵadvance();
|
|
5656
5688
|
i0.ɵɵproperty("ngIf", ctx_r1.showCollectionLanguages);
|
|
5657
|
-
i0.ɵɵadvance();
|
|
5658
|
-
i0.ɵɵproperty("ngIf", ctx_r1.collection.termCount);
|
|
5659
|
-
i0.ɵɵadvance();
|
|
5660
|
-
i0.ɵɵproperty("ngIf", ctx_r1.collection.lastUpdated);
|
|
5661
5689
|
i0.ɵɵadvance(2);
|
|
5662
5690
|
i0.ɵɵproperty("ngIf", ctx_r1.collection.mtStatus && ctx_r1.collection.mtStatus === ctx_r1.collectionErrorStatus);
|
|
5663
5691
|
i0.ɵɵadvance();
|
|
@@ -5699,15 +5727,15 @@ class TerminologyCollectionCardComponent {
|
|
|
5699
5727
|
return collection.termId !== null && collection.termEntries <= 0 || collection.default;
|
|
5700
5728
|
}
|
|
5701
5729
|
static { this.ɵfac = function TerminologyCollectionCardComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || TerminologyCollectionCardComponent)(i0.ɵɵdirectiveInject(TerminologyService), i0.ɵɵdirectiveInject(TerminologyCollectionService)); }; }
|
|
5702
|
-
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", ""], [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", "default-badge", 4, "ngIf"], ["class", "collection-
|
|
5703
|
-
i0.ɵɵtemplate(0, TerminologyCollectionCardComponent_ng_container_0_Template,
|
|
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", "default-badge", 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, "default-badge"], [1, "collection-details"], [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"], [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) {
|
|
5731
|
+
i0.ɵɵtemplate(0, TerminologyCollectionCardComponent_ng_container_0_Template, 15, 14, "ng-container", 2);
|
|
5704
5732
|
} if (rf & 2) {
|
|
5705
5733
|
i0.ɵɵproperty("ngIf", ctx.collection);
|
|
5706
|
-
} }, 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-
|
|
5734
|
+
} }, 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}"] }); }
|
|
5707
5735
|
}
|
|
5708
5736
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TerminologyCollectionCardComponent, [{
|
|
5709
5737
|
type: Component,
|
|
5710
|
-
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 \r\n <span *ngIf=\"collection.default\" class=\"default-badge\" >{{ localizationKey + \"DEFAULT\" | translate }}</span>\r\n </div>\r\n\r\n <div *ngIf=\"showCollectionLanguages\" class=\"collection-
|
|
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 \r\n <span *ngIf=\"collection.default\" class=\"default-badge\" >{{ localizationKey + \"DEFAULT\" | translate }}</span>\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\">\r\n \u2022 {{ localizationKey + \"TERMS_IN_USE\" | translate : { termCount: collection.termCollection!.entryCount } }}\r\n </span>\r\n <ng-template #termCount>\r\n \u2022 {{ localizationKey + \"TERMS_IN_USE\" | translate : { termCount: collection.termCount } }}\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"] }]
|
|
5711
5739
|
}], () => [{ type: TerminologyService }, { type: TerminologyCollectionService }], { collection: [{
|
|
5712
5740
|
type: Input
|
|
5713
5741
|
}], selected: [{
|