@eo4geo/ngx-bok-visualization 1.3.14 → 1.4.0
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { EventEmitter, Output, Input, Component, Pipe, inject, Injectable, ViewContainerRef, ViewChild } from '@angular/core';
|
|
2
|
+
import { EventEmitter, Output, Input, Component, signal, Pipe, inject, Injectable, ViewContainerRef, ViewChild } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
5
|
import { select } from 'd3-selection';
|
|
@@ -8,11 +8,14 @@ import { pack, hierarchy } from 'd3-hierarchy';
|
|
|
8
8
|
import { interpolateHcl, interpolateZoom } from 'd3-interpolate';
|
|
9
9
|
import { transition } from 'd3-transition';
|
|
10
10
|
import { schemeCategory10 } from 'd3';
|
|
11
|
-
import * as
|
|
11
|
+
import * as i2 from 'primeng/tree';
|
|
12
|
+
import { TreeModule } from 'primeng/tree';
|
|
13
|
+
import * as i3 from 'primeng/api';
|
|
14
|
+
import * as i3$2 from 'primeng/progressspinner';
|
|
12
15
|
import { ProgressSpinnerModule } from 'primeng/progressspinner';
|
|
13
|
-
import * as i3 from '@angular/forms';
|
|
16
|
+
import * as i3$1 from '@angular/forms';
|
|
14
17
|
import { FormsModule } from '@angular/forms';
|
|
15
|
-
import * as i2 from 'primeng/inputtext';
|
|
18
|
+
import * as i2$1 from 'primeng/inputtext';
|
|
16
19
|
import { InputTextModule } from 'primeng/inputtext';
|
|
17
20
|
import { FloatLabel } from 'primeng/floatlabel';
|
|
18
21
|
import * as i4 from 'primeng/checkbox';
|
|
@@ -66,7 +69,7 @@ class CustomD3NodeCollection {
|
|
|
66
69
|
this.nodes.forEach(node => {
|
|
67
70
|
if (Array.isArray(node.demonstrableSkills)) {
|
|
68
71
|
node.demonstrableSkills.forEach(skill => {
|
|
69
|
-
if (skill.
|
|
72
|
+
if (skill.name.toUpperCase().includes(upperKeyword) && !result.includes(node)) {
|
|
70
73
|
result.push(node);
|
|
71
74
|
}
|
|
72
75
|
});
|
|
@@ -103,7 +106,7 @@ class CustomD3NodeCollection {
|
|
|
103
106
|
this.nodes.forEach(node => {
|
|
104
107
|
if (Array.isArray(node.demonstrableSkills)) {
|
|
105
108
|
node.demonstrableSkills.forEach(skill => {
|
|
106
|
-
if (skill.
|
|
109
|
+
if (skill.name.toUpperCase().includes(upperKeyword) && node.id && !result.includes(node.id)) {
|
|
107
110
|
result.push(node.id);
|
|
108
111
|
}
|
|
109
112
|
});
|
|
@@ -462,11 +465,11 @@ class ListComponent {
|
|
|
462
465
|
return 0;
|
|
463
466
|
};
|
|
464
467
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
465
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: ListComponent, isStandalone: true, selector: "list", inputs: { array: "array", propertyname: "propertyname", propertyname2: "propertyname2", headline: "headline", isConcept: "isConcept" }, outputs: { codSelectedChange: "codSelectedChange" }, ngImport: i0, template: "<div *ngIf=\"array && array.length > 0\">\
|
|
468
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: ListComponent, isStandalone: true, selector: "list", inputs: { array: "array", propertyname: "propertyname", propertyname2: "propertyname2", headline: "headline", isConcept: "isConcept" }, outputs: { codSelectedChange: "codSelectedChange" }, ngImport: i0, template: "<div *ngIf=\"array && array.length > 0\">\n <h3>{{ headline }} [{{ array.length }}]</h3>\n <div>\n <ul [ngStyle]=\"{'list-style-type': isConcept ? 'none' : 'disc', 'padding-left': isConcept ? '1em' : '2em'}\">\n <ng-container *ngFor=\"let item of sortedArray; let i = index\">\n <li style=\"margin-top: 0.25em;\">\n <!-- Conditional Rendering based on the Headline -->\n <ng-container [ngSwitch]=\"isConcept\">\n <!-- Concept -->\n <a\n *ngSwitchCase=\"true\"\n style=\"font-weight: 400; cursor: pointer;\"\n (click)=\"browseToConcept(item[propertyname2!])\"\n id=\"sc-{{ mapValue(item) }}\"\n >\n [{{ item[propertyname2!] }}] {{ mapValue(item) }}\n </a>\n <!-- No Concept -->\n <div *ngSwitchCase=\"false\">\n <!-- URL -->\n <a\n *ngIf=\"propertyname2 && item[propertyname2] && item[propertyname2].trim().length > 0\"\n style=\"font-weight: 400; cursor: pointer; text-decoration: none;\"\n [href]=\"item[propertyname2]\"\n target=\"_blank\"\n >\n {{ mapValue(item) }}\n </a>\n <!-- Text -->\n <span *ngIf=\"!propertyname2 || !item[propertyname2] || item[propertyname2].trim().length == 0\">\n {{ mapValue(item) }}\n </span>\n </div>\n <!-- Default -->\n <a *ngSwitchDefault>{{ mapValue(item) }}</a>\n </ng-container>\n </li>\n </ng-container>\n </ul>\n </div>\n</div>\n ", styles: ["a{color:var(--secondary-color)}a:hover{color:var(--hover-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }] });
|
|
466
469
|
}
|
|
467
470
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: ListComponent, decorators: [{
|
|
468
471
|
type: Component,
|
|
469
|
-
args: [{ standalone: true, selector: 'list', imports: [CommonModule], template: "<div *ngIf=\"array && array.length > 0\">\
|
|
472
|
+
args: [{ standalone: true, selector: 'list', imports: [CommonModule], template: "<div *ngIf=\"array && array.length > 0\">\n <h3>{{ headline }} [{{ array.length }}]</h3>\n <div>\n <ul [ngStyle]=\"{'list-style-type': isConcept ? 'none' : 'disc', 'padding-left': isConcept ? '1em' : '2em'}\">\n <ng-container *ngFor=\"let item of sortedArray; let i = index\">\n <li style=\"margin-top: 0.25em;\">\n <!-- Conditional Rendering based on the Headline -->\n <ng-container [ngSwitch]=\"isConcept\">\n <!-- Concept -->\n <a\n *ngSwitchCase=\"true\"\n style=\"font-weight: 400; cursor: pointer;\"\n (click)=\"browseToConcept(item[propertyname2!])\"\n id=\"sc-{{ mapValue(item) }}\"\n >\n [{{ item[propertyname2!] }}] {{ mapValue(item) }}\n </a>\n <!-- No Concept -->\n <div *ngSwitchCase=\"false\">\n <!-- URL -->\n <a\n *ngIf=\"propertyname2 && item[propertyname2] && item[propertyname2].trim().length > 0\"\n style=\"font-weight: 400; cursor: pointer; text-decoration: none;\"\n [href]=\"item[propertyname2]\"\n target=\"_blank\"\n >\n {{ mapValue(item) }}\n </a>\n <!-- Text -->\n <span *ngIf=\"!propertyname2 || !item[propertyname2] || item[propertyname2].trim().length == 0\">\n {{ mapValue(item) }}\n </span>\n </div>\n <!-- Default -->\n <a *ngSwitchDefault>{{ mapValue(item) }}</a>\n </ng-container>\n </li>\n </ng-container>\n </ul>\n </div>\n</div>\n ", styles: ["a{color:var(--secondary-color)}a:hover{color:var(--hover-color)}\n"] }]
|
|
470
473
|
}], propDecorators: { array: [{
|
|
471
474
|
type: Input
|
|
472
475
|
}], propertyname: [{
|
|
@@ -491,11 +494,11 @@ class VersionsComponent {
|
|
|
491
494
|
this.bokVersionChange.emit(version);
|
|
492
495
|
}
|
|
493
496
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: VersionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
494
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: VersionsComponent, isStandalone: true, selector: "versions", inputs: { currentVersion: "currentVersion", bokVersion: "bokVersion", bokVersions: "bokVersions" }, outputs: { bokVersionChange: "bokVersionChange" }, ngImport: i0, template: "<div *ngIf=\"bokVersions && bokVersion && currentVersion\">\
|
|
497
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: VersionsComponent, isStandalone: true, selector: "versions", inputs: { currentVersion: "currentVersion", bokVersion: "bokVersion", bokVersions: "bokVersions" }, outputs: { bokVersionChange: "bokVersionChange" }, ngImport: i0, template: "<div *ngIf=\"bokVersions && bokVersion && currentVersion\">\n <h3>Versioning</h3>\n <div *ngIf=\"bokVersions.size > 0\">\n <div style=\"padding-left: 1em;\">\n <dl>\n <ng-container *ngFor=\"let version of bokVersions | keyvalue : descendingOrder\">\n <dt *ngIf=\"version.key == currentVersion && version.key != bokVersion\" class=\"concept-name dt-link\" \n style=\"font-weight: 400; cursor: pointer; margin-top: 0.25em;\"\n (click)=\"loadOldBokVersion(version.key)\">\n <b>-</b> Version {{ currentVersion.slice(1) }}.0 ({{version.value}}) (Current BoK Version)\n </dt>\n <dt *ngIf=\"version.key == currentVersion && version.key == bokVersion\" class=\"concept-name\" \n style=\"font-weight: 800; margin-top: 0.25em; margin-bottom: 1em;\">\n <b>\u2192</b> You are viewing: Version {{ currentVersion.slice(1) }}.0 ({{version.value}}) (Current BoK Version)\n </dt>\n <dt *ngIf=\"version.key != currentVersion && version.key != bokVersion\" class=\"concept-name dt-link\" \n style=\"font-weight: 400; cursor: pointer; margin-top: 0.25em;\"\n (click)=\"loadOldBokVersion(version.key)\">\n <b>-</b> Version {{ version.key.slice(1)}}.0 ({{version.value}})\n </dt>\n <dt *ngIf=\"version.key != currentVersion && version.key == bokVersion\" class=\"concept-name\" \n style=\"font-weight: 800; margin-top: 0.25em; margin-bottom: 1em;\">\n <b>\u2192</b> You are viewing: Version {{ version.key.slice(1) }}.0 ({{version.value}})\n </dt>\n </ng-container>\n </dl>\n </div>\n </div>\n</div>", styles: [".dt-link{color:var(--secondary-color)}.dt-link:hover{color:var(--hover-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.KeyValuePipe, name: "keyvalue" }] });
|
|
495
498
|
}
|
|
496
499
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: VersionsComponent, decorators: [{
|
|
497
500
|
type: Component,
|
|
498
|
-
args: [{ standalone: true, selector: 'versions', imports: [CommonModule], template: "<div *ngIf=\"bokVersions && bokVersion && currentVersion\">\
|
|
501
|
+
args: [{ standalone: true, selector: 'versions', imports: [CommonModule], template: "<div *ngIf=\"bokVersions && bokVersion && currentVersion\">\n <h3>Versioning</h3>\n <div *ngIf=\"bokVersions.size > 0\">\n <div style=\"padding-left: 1em;\">\n <dl>\n <ng-container *ngFor=\"let version of bokVersions | keyvalue : descendingOrder\">\n <dt *ngIf=\"version.key == currentVersion && version.key != bokVersion\" class=\"concept-name dt-link\" \n style=\"font-weight: 400; cursor: pointer; margin-top: 0.25em;\"\n (click)=\"loadOldBokVersion(version.key)\">\n <b>-</b> Version {{ currentVersion.slice(1) }}.0 ({{version.value}}) (Current BoK Version)\n </dt>\n <dt *ngIf=\"version.key == currentVersion && version.key == bokVersion\" class=\"concept-name\" \n style=\"font-weight: 800; margin-top: 0.25em; margin-bottom: 1em;\">\n <b>\u2192</b> You are viewing: Version {{ currentVersion.slice(1) }}.0 ({{version.value}}) (Current BoK Version)\n </dt>\n <dt *ngIf=\"version.key != currentVersion && version.key != bokVersion\" class=\"concept-name dt-link\" \n style=\"font-weight: 400; cursor: pointer; margin-top: 0.25em;\"\n (click)=\"loadOldBokVersion(version.key)\">\n <b>-</b> Version {{ version.key.slice(1)}}.0 ({{version.value}})\n </dt>\n <dt *ngIf=\"version.key != currentVersion && version.key == bokVersion\" class=\"concept-name\" \n style=\"font-weight: 800; margin-top: 0.25em; margin-bottom: 1em;\">\n <b>\u2192</b> You are viewing: Version {{ version.key.slice(1) }}.0 ({{version.value}})\n </dt>\n </ng-container>\n </dl>\n </div>\n </div>\n</div>", styles: [".dt-link{color:var(--secondary-color)}.dt-link:hover{color:var(--hover-color)}\n"] }]
|
|
499
502
|
}], propDecorators: { currentVersion: [{
|
|
500
503
|
type: Input
|
|
501
504
|
}], bokVersion: [{
|
|
@@ -506,6 +509,219 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImpor
|
|
|
506
509
|
type: Output
|
|
507
510
|
}] } });
|
|
508
511
|
|
|
512
|
+
class SkillsTreeComponent {
|
|
513
|
+
array = [];
|
|
514
|
+
headline = '';
|
|
515
|
+
formattedTree = signal([]);
|
|
516
|
+
placeholderData = [
|
|
517
|
+
{
|
|
518
|
+
"name": "Recognize Geospatial Data types, including primary sources like remote sensing imagery and secondary sources like scanned analog maps.",
|
|
519
|
+
"bloomLevel": 1,
|
|
520
|
+
"bloomVerb": "Recognizing"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"name": "Recall Geospatial Data core properties, including spatial autocorrelation and the inherent geometric complexity of the Earth's surface.",
|
|
524
|
+
"bloomLevel": 1,
|
|
525
|
+
"bloomVerb": "Recalling"
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
"name": "Interpret Geospatial Data by translating raw measurements of locations and attributes into meaningful spatial information for environmental questions.",
|
|
529
|
+
"bloomLevel": 2,
|
|
530
|
+
"bloomVerb": "Interpreting"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"name": "Exemplify Geospatial Data sources using police traffic crash reports, environmental monitoring station logs, and satellite imagery datasets.",
|
|
534
|
+
"bloomLevel": 2,
|
|
535
|
+
"bloomVerb": "Exemplifying"
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
"name": "Classify Geospatial Data into primary field surveys and secondary digitized datasets containing spatial, temporal, and attribute components.",
|
|
539
|
+
"bloomLevel": 2,
|
|
540
|
+
"bloomVerb": "Classifying"
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"name": "Summarize Geospatial Data characteristics, including data currency, information value, metadata presence, and collection costs.",
|
|
544
|
+
"bloomLevel": 2,
|
|
545
|
+
"bloomVerb": "Summarizing"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"name": "Infer Geospatial Data quality from metadata, including potential tracking errors and positional uncertainty in historical datasets.",
|
|
549
|
+
"bloomLevel": 2,
|
|
550
|
+
"bloomVerb": "Inferring"
|
|
551
|
+
},
|
|
552
|
+
{
|
|
553
|
+
"name": "Compare Geospatial Data properties across different eras, contrasting legacy expert-produced data with modern web-based geographic information clearinghouses.",
|
|
554
|
+
"bloomLevel": 2,
|
|
555
|
+
"bloomVerb": "Comparing"
|
|
556
|
+
},
|
|
557
|
+
{
|
|
558
|
+
"name": "Explain Geospatial Data workflows and how analytical methods transform raw measurements into information for government planning agencies.",
|
|
559
|
+
"bloomLevel": 2,
|
|
560
|
+
"bloomVerb": "Explaining"
|
|
561
|
+
},
|
|
562
|
+
{
|
|
563
|
+
"name": "Execute Geospatial Data processing tasks by cleaning raw surveying measurements and appending descriptive attributes to localized spatial points.",
|
|
564
|
+
"bloomLevel": 3,
|
|
565
|
+
"bloomVerb": "Executing"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"name": "Implement Geospatial Data collection procedures using GPS tracking and field surveys to systematically gather localized attribute and temporal data.",
|
|
569
|
+
"bloomLevel": 3,
|
|
570
|
+
"bloomVerb": "Implementing"
|
|
571
|
+
},
|
|
572
|
+
{
|
|
573
|
+
"name": "Differentiate Geospatial Data elements by distinguishing spatial coordinates, temporal markers, and descriptive attributes in geographic data models.",
|
|
574
|
+
"bloomLevel": 4,
|
|
575
|
+
"bloomVerb": "Differentiating"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"name": "Organize Geospatial Data sets by arranging primary surveying points and secondary scanned maps within an established spatial data infrastructure framework.",
|
|
579
|
+
"bloomLevel": 4,
|
|
580
|
+
"bloomVerb": "Organizing"
|
|
581
|
+
},
|
|
582
|
+
{
|
|
583
|
+
"name": "Attribute Geospatial Data point biases to commercial or proprietary interests influencing primary data acquisition methods.",
|
|
584
|
+
"bloomLevel": 4,
|
|
585
|
+
"bloomVerb": "Attributing"
|
|
586
|
+
},
|
|
587
|
+
{
|
|
588
|
+
"name": "Check Geospatial Data integrity by testing file structures against data quality standards and identifying inconsistencies in scale, attributes, or temporal components.",
|
|
589
|
+
"bloomLevel": 5,
|
|
590
|
+
"bloomVerb": "Checking"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"name": "Critique Geospatial Data quality by evaluating fitness for process modeling based on currency, resolution errors, and gaps in historical data.",
|
|
594
|
+
"bloomLevel": 5,
|
|
595
|
+
"bloomVerb": "Critiquing"
|
|
596
|
+
},
|
|
597
|
+
{
|
|
598
|
+
"name": "Generate Geospatial Data hypotheses by exploring spatial autocorrelation and predicting interactions among location-based phenomena across geographical extents.",
|
|
599
|
+
"bloomLevel": 6,
|
|
600
|
+
"bloomVerb": "Generating"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
"name": "Plan Geospatial Data acquisition frameworks by designing collection strategies that balance surveying costs with web-based data clearinghouse options.",
|
|
604
|
+
"bloomLevel": 6,
|
|
605
|
+
"bloomVerb": "Planning"
|
|
606
|
+
},
|
|
607
|
+
{
|
|
608
|
+
"name": "Produce Geospatial Data schemas by combining spatial, temporal, and descriptive attributes with comprehensive metadata in a coherent database.",
|
|
609
|
+
"bloomLevel": 6,
|
|
610
|
+
"bloomVerb": "Producing"
|
|
611
|
+
}
|
|
612
|
+
];
|
|
613
|
+
ngOnInit() {
|
|
614
|
+
const tempTree = [
|
|
615
|
+
{
|
|
616
|
+
key: '1',
|
|
617
|
+
label: 'Level 1: Remember',
|
|
618
|
+
children: [],
|
|
619
|
+
leaf: false,
|
|
620
|
+
expanded: false,
|
|
621
|
+
},
|
|
622
|
+
{
|
|
623
|
+
key: '2',
|
|
624
|
+
label: 'Level 2: Understand',
|
|
625
|
+
children: [],
|
|
626
|
+
leaf: false,
|
|
627
|
+
expanded: false,
|
|
628
|
+
},
|
|
629
|
+
{
|
|
630
|
+
key: '3',
|
|
631
|
+
label: 'Level 3: Apply',
|
|
632
|
+
children: [],
|
|
633
|
+
leaf: false,
|
|
634
|
+
expanded: false,
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
key: '4',
|
|
638
|
+
label: 'Level 4: Analyze',
|
|
639
|
+
children: [],
|
|
640
|
+
leaf: false,
|
|
641
|
+
expanded: false,
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
key: '5',
|
|
645
|
+
label: 'Level 5: Evaluate',
|
|
646
|
+
children: [],
|
|
647
|
+
leaf: false,
|
|
648
|
+
expanded: false,
|
|
649
|
+
},
|
|
650
|
+
{
|
|
651
|
+
key: '6',
|
|
652
|
+
label: 'Level 6: Create',
|
|
653
|
+
children: [],
|
|
654
|
+
leaf: false,
|
|
655
|
+
expanded: false,
|
|
656
|
+
},
|
|
657
|
+
];
|
|
658
|
+
this.placeholderData.forEach(element => {
|
|
659
|
+
const levelNode = tempTree[element.bloomLevel - 1];
|
|
660
|
+
if (!levelNode)
|
|
661
|
+
return;
|
|
662
|
+
levelNode.children ??= [];
|
|
663
|
+
levelNode.children.push({
|
|
664
|
+
key: `${element.bloomLevel}-${element.bloomVerb}-${levelNode.children.length}`,
|
|
665
|
+
label: element.name,
|
|
666
|
+
children: [],
|
|
667
|
+
leaf: true,
|
|
668
|
+
expanded: false,
|
|
669
|
+
type: 'leaf',
|
|
670
|
+
data: element.bloomVerb
|
|
671
|
+
});
|
|
672
|
+
});
|
|
673
|
+
tempTree.forEach(levelNode => {
|
|
674
|
+
levelNode.children = this.getSortedArray(levelNode.children ?? []);
|
|
675
|
+
});
|
|
676
|
+
this.formattedTree.set(tempTree);
|
|
677
|
+
}
|
|
678
|
+
getSortedArray(values) {
|
|
679
|
+
if (values.length > 0) {
|
|
680
|
+
return [...values].sort((a, b) => this.compareStrings(a.label ?? '', b.label ?? ''));
|
|
681
|
+
}
|
|
682
|
+
return values;
|
|
683
|
+
}
|
|
684
|
+
countChildren(node) {
|
|
685
|
+
let count = 0;
|
|
686
|
+
if (node.children && node.children.length > 0) {
|
|
687
|
+
node.children.forEach(child => count += this.countChildren(child));
|
|
688
|
+
}
|
|
689
|
+
else
|
|
690
|
+
count += 1;
|
|
691
|
+
return count;
|
|
692
|
+
}
|
|
693
|
+
compareStrings = (a, b) => {
|
|
694
|
+
const partsA = a.split('-');
|
|
695
|
+
const partsB = b.split('-');
|
|
696
|
+
for (let i = 0; i < Math.max(partsA.length, partsB.length); i++) {
|
|
697
|
+
const partA = partsA[i];
|
|
698
|
+
const partB = partsB[i];
|
|
699
|
+
if (!isNaN(Number(partA)) && !isNaN(Number(partB))) {
|
|
700
|
+
const numA = parseInt(partA, 10);
|
|
701
|
+
const numB = parseInt(partB, 10);
|
|
702
|
+
if (numA !== numB)
|
|
703
|
+
return numA - numB;
|
|
704
|
+
}
|
|
705
|
+
else {
|
|
706
|
+
const result = (partA || "").localeCompare(partB || "");
|
|
707
|
+
if (result !== 0)
|
|
708
|
+
return result;
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
return 0;
|
|
712
|
+
};
|
|
713
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SkillsTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
714
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: SkillsTreeComponent, isStandalone: true, selector: "skillsTree", inputs: { array: "array", headline: "headline" }, ngImport: i0, template: "<div *ngIf=\"array && array.length > 0\">\n <h3>{{ headline }} [{{ array.length }}]</h3>\n <p-tree [value]=\"formattedTree()\" class=\"w-full custom-tree ml-0\" >\n <ng-template let-node pTemplate=\"leaf\">\n <div [style.display]=\"'list-item'\" [style.list-style-type]=\"'disc'\"><b>{{node.data}}:</b> {{ node.label }}</div>\n </ng-template>\n <ng-template let-node pTemplate=\"default\">\n <a (click)=\"node.expanded = !node.expanded\">{{ node.label }} ({{countChildren(node)}})</a>\n </ng-template>\n </p-tree>\n</div>\n ", styles: [".custom-tree{--p-tree-node-color: var(--primary-color);--p-tree-node-icon-color: var(--primary-color);--p-tree-indent: 2rem;--p-tree-padding: 0rem;--p-tree-gap: 0rem}::ng-deep .p-tree{padding-bottom:0rem;padding-left:0rem}::ng-deep .p-tree-node-content.p-tree-node-selected .p-tree-node-label{font-weight:700}a{cursor:pointer;text-decoration:none;color:var(--secondary-color)}a:hover{color:var(--hover-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: TreeModule }, { kind: "component", type: i2.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "loadingMode", "selection", "style", "styleClass", "contextMenu", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterInputAutoFocus", "filterBy", "filterMode", "filterOptions", "filterPlaceholder", "filteredNodes", "filterLocale", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "indentation", "_templateMap", "trackBy", "highlightOnSelect", "virtualNodeHeight"], outputs: ["selectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDoubleClick", "onNodeDrop", "onLazyLoad", "onScroll", "onScrollIndexChange", "onFilter"] }, { kind: "directive", type: i3.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }] });
|
|
715
|
+
}
|
|
716
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SkillsTreeComponent, decorators: [{
|
|
717
|
+
type: Component,
|
|
718
|
+
args: [{ standalone: true, selector: 'skillsTree', imports: [CommonModule, TreeModule], template: "<div *ngIf=\"array && array.length > 0\">\n <h3>{{ headline }} [{{ array.length }}]</h3>\n <p-tree [value]=\"formattedTree()\" class=\"w-full custom-tree ml-0\" >\n <ng-template let-node pTemplate=\"leaf\">\n <div [style.display]=\"'list-item'\" [style.list-style-type]=\"'disc'\"><b>{{node.data}}:</b> {{ node.label }}</div>\n </ng-template>\n <ng-template let-node pTemplate=\"default\">\n <a (click)=\"node.expanded = !node.expanded\">{{ node.label }} ({{countChildren(node)}})</a>\n </ng-template>\n </p-tree>\n</div>\n ", styles: [".custom-tree{--p-tree-node-color: var(--primary-color);--p-tree-node-icon-color: var(--primary-color);--p-tree-indent: 2rem;--p-tree-padding: 0rem;--p-tree-gap: 0rem}::ng-deep .p-tree{padding-bottom:0rem;padding-left:0rem}::ng-deep .p-tree-node-content.p-tree-node-selected .p-tree-node-label{font-weight:700}a{cursor:pointer;text-decoration:none;color:var(--secondary-color)}a:hover{color:var(--hover-color)}\n"] }]
|
|
719
|
+
}], propDecorators: { array: [{
|
|
720
|
+
type: Input
|
|
721
|
+
}], headline: [{
|
|
722
|
+
type: Input
|
|
723
|
+
}] } });
|
|
724
|
+
|
|
509
725
|
class DescriptionComponent {
|
|
510
726
|
bokNode = new CustomD3Node();
|
|
511
727
|
isAnOldVersion = false;
|
|
@@ -561,11 +777,11 @@ class DescriptionComponent {
|
|
|
561
777
|
return text.replace(/<\/?[^>]+(>|$)/g, "");
|
|
562
778
|
}
|
|
563
779
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: DescriptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
564
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: DescriptionComponent, isStandalone: true, selector: "description", inputs: { bokNode: "bokNode", isAnOldVersion: "isAnOldVersion", isAnObsoleteId: "isAnObsoleteId", showVersions: "showVersions", versionMap: "versionMap", currentVersion: "currentVersion", bokVersion: "bokVersion" }, outputs: { codSelectedChange: "codSelectedChange", bokVersionChange: "bokVersionChange" }, ngImport: i0, template: "<div>\
|
|
780
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: DescriptionComponent, isStandalone: true, selector: "description", inputs: { bokNode: "bokNode", isAnOldVersion: "isAnOldVersion", isAnObsoleteId: "isAnObsoleteId", showVersions: "showVersions", versionMap: "versionMap", currentVersion: "currentVersion", bokVersion: "bokVersion" }, outputs: { codSelectedChange: "codSelectedChange", bokVersionChange: "bokVersionChange" }, ngImport: i0, template: "<div>\n <!-- Permalink -->\n <p>\n Permalink: \n <a style=\"text-decoration: none;\" [href]=\"permalink\">{{ permalink }}</a>\n </p>\n\n <!-- Title -->\n <h2 id=\"boktitle\" style=\"margin-bottom: 0px;\">\n [{{ bokNode.nameShort }}] {{ bokNode.name }}\n </h2>\n\n <!-- Status -->\n <div *ngIf=\"statusText\" style=\"margin-bottom: 1em;\">\n {{ statusText }}\n </div>\n\n <!-- Warning for obsolete BoK concept -->\n <p *ngIf=\"isAnObsoleteId && currentVersion\">\n <span style=\"color: var(--danger-color); font-weight: normal;\">\n warning: this is an obsolete BoK concept - this concept is no longer present in \n <a \n style=\"color: var(--danger-color); font-weight: normal; cursor: pointer; text-decoration: underline;\"\n (click)=\"loadOldBokVersion(currentVersion)\">\n the current version of the BoK\n </a>\n </span>\n </p>\n \n <!-- Warning for old version -->\n <p *ngIf=\"isAnOldVersion && !isAnObsoleteId\">\n <span style=\"color: var(--warning-color); font-weight: normal;\">\n warning: this is an old version of this BoK concept; see \"Versioning\" below for more recent version(s)\n </span>\n </p>\n\n <!-- Last Updated -->\n <small *ngIf=\"formattedTimestamp\">{{ formattedTimestamp }}</small>\n \n <!-- Description -->\n <h3>Description:</h3>\n <div id=\"currentDescription\" class=\"hideContent\">\n {{ bokNode.description }}\n </div>\n\n <!-- Superconcepts -->\n <div *ngIf=\"parentHierarchy.length > 0\">\n <h3>Superconcepts [{{ 1 + bokNode.otherParents.length }}]</h3>\n <div style=\"padding-left: 1em;\">\n <dl>\n <ng-container *ngFor=\"let parent of parentHierarchy; let i = index\">\n <dt *ngIf=\"parent === parentHierarchy[0]\" class=\"concept-name dt-link\" \n style=\"font-weight: 400; cursor: pointer;\"\n (click)=\"browseToConcept(parent.nameShort)\">\n <b>-</b> [{{ parent.nameShort }}] {{ parent.name }}\n </dt>\n <dd *ngIf=\"parent !== parentHierarchy[0]\"\n [style.marginLeft.em]=\"i * 0.8\"\n style=\"margin-top: 0.25em;\">\n <dl>\n <dt class=\"concept-name dt-link\" \n style=\"font-weight: 400; cursor: pointer;\"\n (click)=\"browseToConcept(parent.nameShort)\">\n <b>-</b> [{{ parent.nameShort }}] {{ parent.name }}\n </dt>\n </dl>\n </dd>\n </ng-container>\n </dl>\n </div>\n </div>\n\n <!-- Other Superconcepts -->\n <div *ngFor=\"let hierarchy of otherParentHierarchies\">\n <div style=\"margin-top: 1em; padding-left: 1em;\">\n <dl>\n <ng-container *ngFor=\"let other of hierarchy; let i = index\">\n <dt *ngIf=\"other === hierarchy[0]\" class=\"concept-name dt-link\" \n style=\"font-weight: 400; cursor: pointer;\"\n (click)=\"browseToConcept(other.nameShort)\">\n <b>-</b> [{{ other.nameShort }}] {{ other.name }}\n </dt>\n <dd *ngIf=\"other !== hierarchy[0]\"\n [style.marginLeft.px]=\"i * 8\"\n style=\"margin-top: 0.25em;\">\n <dl>\n <dt class=\"concept-name dt-link\" \n style=\"font-weight: 400; cursor: pointer;\"\n (click)=\"browseToConcept(other.nameShort)\">\n <b>-</b> [{{ other.nameShort }}] {{ other.name }}\n </dt>\n </dl>\n </dd>\n </ng-container>\n </dl>\n </div>\n </div>\n\n <!-- Subconcepts -->\n <list [array]=\"bokNode.children\" [propertyname]=\"'name'\" [propertyname2]=\"'nameShort'\" \n [headline]=\"'Subconcepts'\" [isConcept]=\"true\" (codSelectedChange)=\"browseToConcept($event)\"></list>\n\n <!-- Prerequisites -->\n <list [array]=\"bokNode.prerequisites\" [propertyname]=\"'name'\" [propertyname2]=\"'nameShort'\" \n [headline]=\"'Prerequisites'\" [isConcept]=\"true\" (codSelectedChange)=\"browseToConcept($event)\"></list>\n\n <!-- postrequisites -->\n <list [array]=\"bokNode.postrequisites\" [propertyname]=\"'name'\" [propertyname2]=\"'nameShort'\" \n [headline]=\"'Postrequisites'\" [isConcept]=\"true\" (codSelectedChange)=\"browseToConcept($event)\"></list>\n\n <!-- Similar concepts -->\n <list [array]=\"bokNode.similarConcepts\" [propertyname]=\"'name'\" [propertyname2]=\"'nameShort'\" \n [headline]=\"'Similar concepts'\" [isConcept]=\"true\" (codSelectedChange)=\"browseToConcept($event)\"></list>\n\n <!-- Skills -->\n <skillsTree [array]=\"bokNode.demonstrableSkills\" [headline]=\"'Skills'\"></skillsTree>\n\n <!-- Contributors -->\n <list [array]=\"bokNode.contributors\" [propertyname]=\"'nameShort'\" [propertyname2]=\"'url'\" \n [headline]=\"'Contributors'\" [isConcept]=\"false\"></list>\n\n <!-- Source Documents -->\n <list [array]=\"bokNode.sourceDocuments\" [propertyname]=\"'nameShort'\" [propertyname2]=\"'url'\" \n [headline]=\"'Source documents'\" [isConcept]=\"false\"></list>\n\n <!-- Versions -->\n <div *ngIf=\"showVersions && bokVersion && currentVersion && versionMap\">\n <versions (bokVersionChange)=\"loadOldBokVersion($event)\" [bokVersion]=\"bokVersion\" [currentVersion]=\"currentVersion\" [bokVersions]=\"versionMap\"></versions>\n </div>\n\n</div>\n ", styles: [".dt-link{color:var(--secondary-color)}.dt-link:hover{color:var(--hover-color)}a{color:var(--secondary-color)}a:hover{color:var(--hover-color)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ListComponent, selector: "list", inputs: ["array", "propertyname", "propertyname2", "headline", "isConcept"], outputs: ["codSelectedChange"] }, { kind: "component", type: VersionsComponent, selector: "versions", inputs: ["currentVersion", "bokVersion", "bokVersions"], outputs: ["bokVersionChange"] }, { kind: "component", type: SkillsTreeComponent, selector: "skillsTree", inputs: ["array", "headline"] }] });
|
|
565
781
|
}
|
|
566
782
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: DescriptionComponent, decorators: [{
|
|
567
783
|
type: Component,
|
|
568
|
-
args: [{ standalone: true, selector: 'description', imports: [CommonModule, ListComponent, VersionsComponent], template: "<div>\
|
|
784
|
+
args: [{ standalone: true, selector: 'description', imports: [CommonModule, ListComponent, VersionsComponent, SkillsTreeComponent], template: "<div>\n <!-- Permalink -->\n <p>\n Permalink: \n <a style=\"text-decoration: none;\" [href]=\"permalink\">{{ permalink }}</a>\n </p>\n\n <!-- Title -->\n <h2 id=\"boktitle\" style=\"margin-bottom: 0px;\">\n [{{ bokNode.nameShort }}] {{ bokNode.name }}\n </h2>\n\n <!-- Status -->\n <div *ngIf=\"statusText\" style=\"margin-bottom: 1em;\">\n {{ statusText }}\n </div>\n\n <!-- Warning for obsolete BoK concept -->\n <p *ngIf=\"isAnObsoleteId && currentVersion\">\n <span style=\"color: var(--danger-color); font-weight: normal;\">\n warning: this is an obsolete BoK concept - this concept is no longer present in \n <a \n style=\"color: var(--danger-color); font-weight: normal; cursor: pointer; text-decoration: underline;\"\n (click)=\"loadOldBokVersion(currentVersion)\">\n the current version of the BoK\n </a>\n </span>\n </p>\n \n <!-- Warning for old version -->\n <p *ngIf=\"isAnOldVersion && !isAnObsoleteId\">\n <span style=\"color: var(--warning-color); font-weight: normal;\">\n warning: this is an old version of this BoK concept; see \"Versioning\" below for more recent version(s)\n </span>\n </p>\n\n <!-- Last Updated -->\n <small *ngIf=\"formattedTimestamp\">{{ formattedTimestamp }}</small>\n \n <!-- Description -->\n <h3>Description:</h3>\n <div id=\"currentDescription\" class=\"hideContent\">\n {{ bokNode.description }}\n </div>\n\n <!-- Superconcepts -->\n <div *ngIf=\"parentHierarchy.length > 0\">\n <h3>Superconcepts [{{ 1 + bokNode.otherParents.length }}]</h3>\n <div style=\"padding-left: 1em;\">\n <dl>\n <ng-container *ngFor=\"let parent of parentHierarchy; let i = index\">\n <dt *ngIf=\"parent === parentHierarchy[0]\" class=\"concept-name dt-link\" \n style=\"font-weight: 400; cursor: pointer;\"\n (click)=\"browseToConcept(parent.nameShort)\">\n <b>-</b> [{{ parent.nameShort }}] {{ parent.name }}\n </dt>\n <dd *ngIf=\"parent !== parentHierarchy[0]\"\n [style.marginLeft.em]=\"i * 0.8\"\n style=\"margin-top: 0.25em;\">\n <dl>\n <dt class=\"concept-name dt-link\" \n style=\"font-weight: 400; cursor: pointer;\"\n (click)=\"browseToConcept(parent.nameShort)\">\n <b>-</b> [{{ parent.nameShort }}] {{ parent.name }}\n </dt>\n </dl>\n </dd>\n </ng-container>\n </dl>\n </div>\n </div>\n\n <!-- Other Superconcepts -->\n <div *ngFor=\"let hierarchy of otherParentHierarchies\">\n <div style=\"margin-top: 1em; padding-left: 1em;\">\n <dl>\n <ng-container *ngFor=\"let other of hierarchy; let i = index\">\n <dt *ngIf=\"other === hierarchy[0]\" class=\"concept-name dt-link\" \n style=\"font-weight: 400; cursor: pointer;\"\n (click)=\"browseToConcept(other.nameShort)\">\n <b>-</b> [{{ other.nameShort }}] {{ other.name }}\n </dt>\n <dd *ngIf=\"other !== hierarchy[0]\"\n [style.marginLeft.px]=\"i * 8\"\n style=\"margin-top: 0.25em;\">\n <dl>\n <dt class=\"concept-name dt-link\" \n style=\"font-weight: 400; cursor: pointer;\"\n (click)=\"browseToConcept(other.nameShort)\">\n <b>-</b> [{{ other.nameShort }}] {{ other.name }}\n </dt>\n </dl>\n </dd>\n </ng-container>\n </dl>\n </div>\n </div>\n\n <!-- Subconcepts -->\n <list [array]=\"bokNode.children\" [propertyname]=\"'name'\" [propertyname2]=\"'nameShort'\" \n [headline]=\"'Subconcepts'\" [isConcept]=\"true\" (codSelectedChange)=\"browseToConcept($event)\"></list>\n\n <!-- Prerequisites -->\n <list [array]=\"bokNode.prerequisites\" [propertyname]=\"'name'\" [propertyname2]=\"'nameShort'\" \n [headline]=\"'Prerequisites'\" [isConcept]=\"true\" (codSelectedChange)=\"browseToConcept($event)\"></list>\n\n <!-- postrequisites -->\n <list [array]=\"bokNode.postrequisites\" [propertyname]=\"'name'\" [propertyname2]=\"'nameShort'\" \n [headline]=\"'Postrequisites'\" [isConcept]=\"true\" (codSelectedChange)=\"browseToConcept($event)\"></list>\n\n <!-- Similar concepts -->\n <list [array]=\"bokNode.similarConcepts\" [propertyname]=\"'name'\" [propertyname2]=\"'nameShort'\" \n [headline]=\"'Similar concepts'\" [isConcept]=\"true\" (codSelectedChange)=\"browseToConcept($event)\"></list>\n\n <!-- Skills -->\n <skillsTree [array]=\"bokNode.demonstrableSkills\" [headline]=\"'Skills'\"></skillsTree>\n\n <!-- Contributors -->\n <list [array]=\"bokNode.contributors\" [propertyname]=\"'nameShort'\" [propertyname2]=\"'url'\" \n [headline]=\"'Contributors'\" [isConcept]=\"false\"></list>\n\n <!-- Source Documents -->\n <list [array]=\"bokNode.sourceDocuments\" [propertyname]=\"'nameShort'\" [propertyname2]=\"'url'\" \n [headline]=\"'Source documents'\" [isConcept]=\"false\"></list>\n\n <!-- Versions -->\n <div *ngIf=\"showVersions && bokVersion && currentVersion && versionMap\">\n <versions (bokVersionChange)=\"loadOldBokVersion($event)\" [bokVersion]=\"bokVersion\" [currentVersion]=\"currentVersion\" [bokVersions]=\"versionMap\"></versions>\n </div>\n\n</div>\n ", styles: [".dt-link{color:var(--secondary-color)}.dt-link:hover{color:var(--hover-color)}a{color:var(--secondary-color)}a:hover{color:var(--hover-color)}\n"] }]
|
|
569
785
|
}], propDecorators: { bokNode: [{
|
|
570
786
|
type: Input
|
|
571
787
|
}], isAnOldVersion: [{
|
|
@@ -617,11 +833,11 @@ class SearchResultsComponent {
|
|
|
617
833
|
highlightDescription = false;
|
|
618
834
|
codSelectedChange = new EventEmitter();
|
|
619
835
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SearchResultsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
620
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: SearchResultsComponent, isStandalone: true, selector: "searchResults", inputs: { nodeSuggestions: ["suggestions", "nodeSuggestions"], searchValue: "searchValue", highlightDescription: "highlightDescription" }, outputs: { codSelectedChange: "codSelectedChange" }, ngImport: i0, template: "<p *ngIf=\"nodeSuggestions.length > 0\">{{nodeSuggestions.length}} concepts</p>\
|
|
836
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: SearchResultsComponent, isStandalone: true, selector: "searchResults", inputs: { nodeSuggestions: ["suggestions", "nodeSuggestions"], searchValue: "searchValue", highlightDescription: "highlightDescription" }, outputs: { codSelectedChange: "codSelectedChange" }, ngImport: i0, template: "<p *ngIf=\"nodeSuggestions.length > 0\">{{nodeSuggestions.length}} concepts</p>\n<p-dataview [value]=\"nodeSuggestions\" [rows]=\"8\" [paginator]=\"true\" >\n <ng-template #list let-items>\n <div class=\"h-4rem mt-2 pr-4\" *ngFor=\"let item of items; let first = first\">\n <a (click)=\"codSelectedChange.emit(item.nameShort)\" style=\"font-weight: 400; cursor: pointer;\">\n <div class=\"white-space-nowrap overflow-hidden text-overflow-ellipsis\">\n [{{item.nameShort}}] {{item.name}}\n </div>\n </a>\n <div class=\"mt-1 white-space-nowrap overflow-hidden text-overflow-ellipsis\" style=\"font-size: 0.85em\" \n [innerHTML]=\"highlightDescription ? (item.description | truncate : searchValue : 25) : item.description\"></div>\n </div>\n </ng-template>\n</p-dataview>", styles: ["a{color:var(--secondary-color)}a:hover{color:var(--hover-color)}\n"], dependencies: [{ kind: "component", type: DataView, selector: "p-dataView, p-dataview, p-data-view", inputs: ["paginator", "rows", "totalRecords", "pageLinks", "rowsPerPageOptions", "paginatorPosition", "paginatorStyleClass", "alwaysShowPaginator", "paginatorDropdownAppendTo", "paginatorDropdownScrollHeight", "currentPageReportTemplate", "showCurrentPageReport", "showJumpToPageDropdown", "showFirstLastIcon", "showPageLinks", "lazy", "lazyLoadOnInit", "emptyMessage", "style", "styleClass", "gridStyleClass", "trackBy", "filterBy", "filterLocale", "loading", "loadingIcon", "first", "sortField", "sortOrder", "value", "layout"], outputs: ["onLazyLoad", "onPage", "onSort", "onChangeLayout"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "pipe", type: TruncatePipe, name: "truncate" }] });
|
|
621
837
|
}
|
|
622
838
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SearchResultsComponent, decorators: [{
|
|
623
839
|
type: Component,
|
|
624
|
-
args: [{ standalone: true, selector: 'searchResults', imports: [DataView, CommonModule, ButtonModule, TruncatePipe], template: "<p *ngIf=\"nodeSuggestions.length > 0\">{{nodeSuggestions.length}} concepts</p>\
|
|
840
|
+
args: [{ standalone: true, selector: 'searchResults', imports: [DataView, CommonModule, ButtonModule, TruncatePipe], template: "<p *ngIf=\"nodeSuggestions.length > 0\">{{nodeSuggestions.length}} concepts</p>\n<p-dataview [value]=\"nodeSuggestions\" [rows]=\"8\" [paginator]=\"true\" >\n <ng-template #list let-items>\n <div class=\"h-4rem mt-2 pr-4\" *ngFor=\"let item of items; let first = first\">\n <a (click)=\"codSelectedChange.emit(item.nameShort)\" style=\"font-weight: 400; cursor: pointer;\">\n <div class=\"white-space-nowrap overflow-hidden text-overflow-ellipsis\">\n [{{item.nameShort}}] {{item.name}}\n </div>\n </a>\n <div class=\"mt-1 white-space-nowrap overflow-hidden text-overflow-ellipsis\" style=\"font-size: 0.85em\" \n [innerHTML]=\"highlightDescription ? (item.description | truncate : searchValue : 25) : item.description\"></div>\n </div>\n </ng-template>\n</p-dataview>", styles: ["a{color:var(--secondary-color)}a:hover{color:var(--hover-color)}\n"] }]
|
|
625
841
|
}], propDecorators: { nodeSuggestions: [{
|
|
626
842
|
type: Input,
|
|
627
843
|
args: [{ alias: 'suggestions' }]
|
|
@@ -673,14 +889,14 @@ class SearchComponent {
|
|
|
673
889
|
this.visible = false;
|
|
674
890
|
}
|
|
675
891
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SearchComponent, deps: [{ token: i1$1.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Component });
|
|
676
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: SearchComponent, isStandalone: true, selector: "search", inputs: { inputValue: "inputValue", searchBooleans: "searchBooleans", nodeSuggestions: ["suggestions", "nodeSuggestions"] }, outputs: { inputValueChange: "inputValueChange", searchSettingsChange: "searchSettingsChange", codSelectedChange: "codSelectedChange" }, usesOnChanges: true, ngImport: i0, template: "<p-drawer header=\"Search Concepts\" position=\"right\" [(visible)]=\"visible\" [blockScroll]=\"true\" styleClass=\"w-full md:w-25rem xl:w-30rem\">\
|
|
892
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: SearchComponent, isStandalone: true, selector: "search", inputs: { inputValue: "inputValue", searchBooleans: "searchBooleans", nodeSuggestions: ["suggestions", "nodeSuggestions"] }, outputs: { inputValueChange: "inputValueChange", searchSettingsChange: "searchSettingsChange", codSelectedChange: "codSelectedChange" }, usesOnChanges: true, ngImport: i0, template: "<p-drawer header=\"Search Concepts\" position=\"right\" [(visible)]=\"visible\" [blockScroll]=\"true\" styleClass=\"w-full md:w-25rem xl:w-30rem\">\n <div class=\"flex flex-wrap justify-center align-items-center my-4\">\n <p-floatlabel variant=\"on\">\n <input pInputText id=\"on_label\" [(ngModel)]=\"inputValue\" (ngModelChange)=\"onInputValueChange($event)\" autocomplete=\"off\" class=\"w-19rem custom-input\"/>\n <label for=\"on_label\" class=\"custom-label\">Search</label>\n </p-floatlabel>\n <p-button variant=\"text\" severity=\"secondary\" (click)=\"onInputValueChange('')\" size=\"small\" [rounded]=\"true\" icon=\"pi pi-times\"/>\n </div>\n <div class=\"flex flex-wrap justify-center align-items-center gap-3\">\n <div class=\"flex items-center\">\n <p-checkbox inputId=\"searchCode\" [(ngModel)]=\"searchBooleans.searchCode\" (ngModelChange)=\"updateSearchSettings()\" [binary]=\"true\" class=\"custom-checkbox\"/>\n <label for=\"searchCode\" class=\"ml-2\"> Code </label>\n </div>\n <div class=\"flex items-center\">\n <p-checkbox inputId=\"searchName\" [(ngModel)]=\"searchBooleans.searchName\" (ngModelChange)=\"updateSearchSettings()\" [binary]=\"true\" class=\"custom-checkbox\"/>\n <label for=\"searchName\" class=\"ml-2\"> Name </label>\n </div>\n <div class=\"flex items-center\">\n <p-checkbox inputId=\"searchDescription\" [(ngModel)]=\"searchBooleans.searchDescription\" (ngModelChange)=\"updateSearchSettings()\" [binary]=\"true\" class=\"custom-checkbox\"/>\n <label for=\"searchDescription\" class=\"ml-2\"> Description </label>\n </div>\n <div class=\"flex items-center\">\n <p-checkbox inputId=\"searchSkills\" [(ngModel)]=\"searchBooleans.searchSkills\" (ngModelChange)=\"updateSearchSettings()\" [binary]=\"true\" class=\"custom-checkbox\"/>\n <label for=\"searchSkills\" class=\"ml-2\"> Skills </label>\n </div>\n </div>\n <p-divider />\n <searchResults [suggestions]=\"nodeSuggestions\" [searchValue]=\"inputValue\" [highlightDescription]=\"searchBooleans.searchDescription\" (codSelectedChange)=\"onCodSelectedChange($event)\"/>\n</p-drawer>\n<p-button variant=\"text\" (click)=\"visible = true\" icon=\"pi pi-search\" [label]=\"isMobile ? '' : 'Search'\" class=\"absolute top-70px right-0 m-4 custom-button\"/>\n", styles: [".custom-checkbox{--p-checkbox-checked-background: var(--secondary-color);--p-checkbox-checked-border-color: var(--secondary-color);--p-checkbox-checked-hover-background: var(--hover-color);--p-checkbox-checked-hover-border-color: var(--hover-color);--p-checkbox-checked-focus-border-color: var(--secondary-color);--p-checkbox-focus-ring-color: var(--secondary-color)}.custom-input{--p-inputtext-focus-border-color: var(--hover-color)}.custom-label{--p-floatlabel-focus-color: var(--hover-color)}.custom-button{--p-button-text-primary-color: var(--secondary-color);--p-button-text-primary-hover-background: var(--p-button-text-secondary-hover-background);--p-button-text-primary-active-background: var(--p-button-text-secondary-active-background)}.custom-button:hover{--p-button-text-primary-color: var(--hover-color)}\n"], dependencies: [{ kind: "ngmodule", type: InputTextModule }, { kind: "directive", type: i2$1.InputText, selector: "[pInputText]", inputs: ["variant", "fluid", "pSize"] }, { kind: "component", type: FloatLabel, selector: "p-floatlabel, p-floatLabel, p-float-label", inputs: ["variant"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i3$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CheckboxModule }, { kind: "component", type: i4.Checkbox, selector: "p-checkbox, p-checkBox, p-check-box", inputs: ["value", "name", "disabled", "binary", "ariaLabelledBy", "ariaLabel", "tabindex", "inputId", "style", "inputStyle", "styleClass", "inputClass", "indeterminate", "size", "formControl", "checkboxIcon", "readonly", "required", "autofocus", "trueValue", "falseValue", "variant"], outputs: ["onChange", "onFocus", "onBlur"] }, { kind: "ngmodule", type: DrawerModule }, { kind: "component", type: i5.Drawer, selector: "p-drawer", inputs: ["appendTo", "blockScroll", "style", "styleClass", "ariaCloseLabel", "autoZIndex", "baseZIndex", "modal", "closeButtonProps", "dismissible", "showCloseIcon", "closeOnEscape", "transitionOptions", "visible", "position", "fullScreen", "header", "maskStyle", "closable"], outputs: ["onShow", "onHide", "visibleChange"] }, { kind: "ngmodule", type: ButtonModule }, { kind: "component", type: i6.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "raised", "rounded", "text", "plain", "severity", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "fluid", "buttonProps"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: DividerModule }, { kind: "component", type: i7.Divider, selector: "p-divider", inputs: ["style", "styleClass", "layout", "type", "align"] }, { kind: "component", type: SearchResultsComponent, selector: "searchResults", inputs: ["suggestions", "searchValue", "highlightDescription"], outputs: ["codSelectedChange"] }] });
|
|
677
893
|
}
|
|
678
894
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: SearchComponent, decorators: [{
|
|
679
895
|
type: Component,
|
|
680
896
|
args: [{ standalone: true, selector: 'search', imports: [InputTextModule, FloatLabel,
|
|
681
897
|
FormsModule, CheckboxModule,
|
|
682
898
|
DrawerModule, ButtonModule,
|
|
683
|
-
DividerModule, SearchResultsComponent], template: "<p-drawer header=\"Search Concepts\" position=\"right\" [(visible)]=\"visible\" [blockScroll]=\"true\" styleClass=\"w-full md:w-25rem xl:w-30rem\">\
|
|
899
|
+
DividerModule, SearchResultsComponent], template: "<p-drawer header=\"Search Concepts\" position=\"right\" [(visible)]=\"visible\" [blockScroll]=\"true\" styleClass=\"w-full md:w-25rem xl:w-30rem\">\n <div class=\"flex flex-wrap justify-center align-items-center my-4\">\n <p-floatlabel variant=\"on\">\n <input pInputText id=\"on_label\" [(ngModel)]=\"inputValue\" (ngModelChange)=\"onInputValueChange($event)\" autocomplete=\"off\" class=\"w-19rem custom-input\"/>\n <label for=\"on_label\" class=\"custom-label\">Search</label>\n </p-floatlabel>\n <p-button variant=\"text\" severity=\"secondary\" (click)=\"onInputValueChange('')\" size=\"small\" [rounded]=\"true\" icon=\"pi pi-times\"/>\n </div>\n <div class=\"flex flex-wrap justify-center align-items-center gap-3\">\n <div class=\"flex items-center\">\n <p-checkbox inputId=\"searchCode\" [(ngModel)]=\"searchBooleans.searchCode\" (ngModelChange)=\"updateSearchSettings()\" [binary]=\"true\" class=\"custom-checkbox\"/>\n <label for=\"searchCode\" class=\"ml-2\"> Code </label>\n </div>\n <div class=\"flex items-center\">\n <p-checkbox inputId=\"searchName\" [(ngModel)]=\"searchBooleans.searchName\" (ngModelChange)=\"updateSearchSettings()\" [binary]=\"true\" class=\"custom-checkbox\"/>\n <label for=\"searchName\" class=\"ml-2\"> Name </label>\n </div>\n <div class=\"flex items-center\">\n <p-checkbox inputId=\"searchDescription\" [(ngModel)]=\"searchBooleans.searchDescription\" (ngModelChange)=\"updateSearchSettings()\" [binary]=\"true\" class=\"custom-checkbox\"/>\n <label for=\"searchDescription\" class=\"ml-2\"> Description </label>\n </div>\n <div class=\"flex items-center\">\n <p-checkbox inputId=\"searchSkills\" [(ngModel)]=\"searchBooleans.searchSkills\" (ngModelChange)=\"updateSearchSettings()\" [binary]=\"true\" class=\"custom-checkbox\"/>\n <label for=\"searchSkills\" class=\"ml-2\"> Skills </label>\n </div>\n </div>\n <p-divider />\n <searchResults [suggestions]=\"nodeSuggestions\" [searchValue]=\"inputValue\" [highlightDescription]=\"searchBooleans.searchDescription\" (codSelectedChange)=\"onCodSelectedChange($event)\"/>\n</p-drawer>\n<p-button variant=\"text\" (click)=\"visible = true\" icon=\"pi pi-search\" [label]=\"isMobile ? '' : 'Search'\" class=\"absolute top-70px right-0 m-4 custom-button\"/>\n", styles: [".custom-checkbox{--p-checkbox-checked-background: var(--secondary-color);--p-checkbox-checked-border-color: var(--secondary-color);--p-checkbox-checked-hover-background: var(--hover-color);--p-checkbox-checked-hover-border-color: var(--hover-color);--p-checkbox-checked-focus-border-color: var(--secondary-color);--p-checkbox-focus-ring-color: var(--secondary-color)}.custom-input{--p-inputtext-focus-border-color: var(--hover-color)}.custom-label{--p-floatlabel-focus-color: var(--hover-color)}.custom-button{--p-button-text-primary-color: var(--secondary-color);--p-button-text-primary-hover-background: var(--p-button-text-secondary-hover-background);--p-button-text-primary-active-background: var(--p-button-text-secondary-active-background)}.custom-button:hover{--p-button-text-primary-color: var(--hover-color)}\n"] }]
|
|
684
900
|
}], ctorParameters: () => [{ type: i1$1.BreakpointObserver }], propDecorators: { inputValue: [{
|
|
685
901
|
type: Input
|
|
686
902
|
}], searchBooleans: [{
|
|
@@ -943,9 +1159,9 @@ class BokDataService {
|
|
|
943
1159
|
for (const conceptIndex of skill.concepts) {
|
|
944
1160
|
const node = allNodes[conceptIndex];
|
|
945
1161
|
node.demonstrableSkills.push({
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
1162
|
+
name: skill.name,
|
|
1163
|
+
bloomLevel: skill.bloomLevel,
|
|
1164
|
+
bloomVerb: skill.bloomVerb,
|
|
949
1165
|
});
|
|
950
1166
|
}
|
|
951
1167
|
}
|
|
@@ -1133,11 +1349,11 @@ class BokComponent {
|
|
|
1133
1349
|
}
|
|
1134
1350
|
}
|
|
1135
1351
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: BokComponent, deps: [{ token: BokFirebaseService }, { token: BokDataService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1136
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: BokComponent, isStandalone: true, selector: "bok-visualization", inputs: { customSpinner: "customSpinner", codSelected: ["selectedConcept", "codSelected"], showDescription: "showDescription", showVersions: "showVersions", showSearchEngine: "showSearchEngine" }, outputs: { codSelectedChange: "selectedConceptChange" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<div *ngIf=\"!loading; else spinner\">\
|
|
1352
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.0.5", type: BokComponent, isStandalone: true, selector: "bok-visualization", inputs: { customSpinner: "customSpinner", codSelected: ["selectedConcept", "codSelected"], showDescription: "showDescription", showVersions: "showVersions", showSearchEngine: "showSearchEngine" }, outputs: { codSelectedChange: "selectedConceptChange" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: ViewContainerRef }], ngImport: i0, template: "<div *ngIf=\"!loading; else spinner\">\n <div *ngIf=\"showSearchEngine && this.bubbleData\" class=\"flex justify-content-center\">\n <search [inputValue]=\"searchInputFieldDoc\" [searchBooleans]=\"searchBooleans\" (inputValueChange)=\"onSearchValueChange($event)\" \n (searchSettingsChange)=\"onSearchBooleansChange($event)\" [suggestions]=\"suggestions\" (codSelectedChange)=\"onCodeSelectedChange($event)\"></search>\n </div>\n <div class=\"flex flex-wrap\">\n <div class=\"flex-1 p-3\" *ngIf=\"bubbleData\">\n <bubble [bokData]=\"bubbleData\" [codSelected]=\"codSelected\" [selectedNodes]=\"selectedNodes\" (codSelectedChange)=\"onCodeSelectedChange($event)\"></bubble>\n </div>\n <div class=\"flex-1 p-3 overflow-auto min-w-screen lg:min-w-0 max-h-full lg:max-h-screen\" *ngIf=\"nodeSelected && showDescription\">\n <div class=\"card h-full flex flex-col\">\n <description [bokNode]=\"nodeSelected\" [showVersions]=\"showVersions\" [versionMap]=\"versionMap\" \n [bokVersion]=\"bokVersion\" [currentVersion]=\"currentVersion\" (codSelectedChange)=\"onCodeSelectedChange($event)\"\n (bokVersionChange)=\"onBokversionChange($event)\" [isAnOldVersion]=\"isAnOldVersion\"\n [isAnObsoleteId]=\"isAnObsoleteId\"></description>\n </div>\n </div>\n </div>\n <p-scrolltop class=\"lg:hidden scroll-top\" *ngIf=\"showDescription\"/>\n</div>\n\n<ng-template #spinner>\n <div class=\"flex justify-content-center align-content-center\" style=\"min-height: 30rem\">\n <ng-container #container></ng-container>\n <p-progress-spinner *ngIf=\"!customSpinner\" strokeWidth=\"3\" ariaLabel=\"loading\" class=\"flex align-items-center justify-content-center\" />\n </div>\n</ng-template>\n", styles: [".card{background-color:#fff;padding:1rem;box-sizing:border-box;height:100%;display:flex;flex-direction:column;overflow:auto}@media (min-width: 992px){.card{border-left:1px solid rgba(0,0,0,.1)}}.scroll-top{--p-button-primary-background: var(--secondary-color);--p-button-primary-border-color: var(--secondary-color);--p-button-primary-hover-background: var(--hover-color);--p-button-primary-hover-border-color: var(--hover-color)}\n"], dependencies: [{ kind: "component", type: BubbleComponent, selector: "bubble", inputs: ["bokData", "COLOR_STROKE_SELECTED", "margin", "codSelected", "selectedNodes"], outputs: ["codSelectedChange"] }, { kind: "component", type: DescriptionComponent, selector: "description", inputs: ["bokNode", "isAnOldVersion", "isAnObsoleteId", "showVersions", "versionMap", "currentVersion", "bokVersion"], outputs: ["codSelectedChange", "bokVersionChange"] }, { kind: "component", type: SearchComponent, selector: "search", inputs: ["inputValue", "searchBooleans", "suggestions"], outputs: ["inputValueChange", "searchSettingsChange", "codSelectedChange"] }, { kind: "ngmodule", type: ProgressSpinnerModule }, { kind: "component", type: i3$2.ProgressSpinner, selector: "p-progressSpinner, p-progress-spinner, p-progressspinner", inputs: ["styleClass", "style", "strokeWidth", "fill", "animationDuration", "ariaLabel"] }, { kind: "ngmodule", type: ScrollTopModule }, { kind: "component", type: i4$1.ScrollTop, selector: "p-scrollTop, p-scrolltop, p-scroll-top", inputs: ["styleClass", "style", "target", "threshold", "icon", "behavior", "showTransitionOptions", "hideTransitionOptions", "buttonAriaLabel", "buttonProps"] }, { kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1137
1353
|
}
|
|
1138
1354
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.5", ngImport: i0, type: BokComponent, decorators: [{
|
|
1139
1355
|
type: Component,
|
|
1140
|
-
args: [{ standalone: true, selector: 'bok-visualization', imports: [BubbleComponent, DescriptionComponent, SearchComponent, ProgressSpinnerModule, ScrollTopModule, CommonModule], template: "<div *ngIf=\"!loading; else spinner\">\
|
|
1356
|
+
args: [{ standalone: true, selector: 'bok-visualization', imports: [BubbleComponent, DescriptionComponent, SearchComponent, ProgressSpinnerModule, ScrollTopModule, CommonModule], template: "<div *ngIf=\"!loading; else spinner\">\n <div *ngIf=\"showSearchEngine && this.bubbleData\" class=\"flex justify-content-center\">\n <search [inputValue]=\"searchInputFieldDoc\" [searchBooleans]=\"searchBooleans\" (inputValueChange)=\"onSearchValueChange($event)\" \n (searchSettingsChange)=\"onSearchBooleansChange($event)\" [suggestions]=\"suggestions\" (codSelectedChange)=\"onCodeSelectedChange($event)\"></search>\n </div>\n <div class=\"flex flex-wrap\">\n <div class=\"flex-1 p-3\" *ngIf=\"bubbleData\">\n <bubble [bokData]=\"bubbleData\" [codSelected]=\"codSelected\" [selectedNodes]=\"selectedNodes\" (codSelectedChange)=\"onCodeSelectedChange($event)\"></bubble>\n </div>\n <div class=\"flex-1 p-3 overflow-auto min-w-screen lg:min-w-0 max-h-full lg:max-h-screen\" *ngIf=\"nodeSelected && showDescription\">\n <div class=\"card h-full flex flex-col\">\n <description [bokNode]=\"nodeSelected\" [showVersions]=\"showVersions\" [versionMap]=\"versionMap\" \n [bokVersion]=\"bokVersion\" [currentVersion]=\"currentVersion\" (codSelectedChange)=\"onCodeSelectedChange($event)\"\n (bokVersionChange)=\"onBokversionChange($event)\" [isAnOldVersion]=\"isAnOldVersion\"\n [isAnObsoleteId]=\"isAnObsoleteId\"></description>\n </div>\n </div>\n </div>\n <p-scrolltop class=\"lg:hidden scroll-top\" *ngIf=\"showDescription\"/>\n</div>\n\n<ng-template #spinner>\n <div class=\"flex justify-content-center align-content-center\" style=\"min-height: 30rem\">\n <ng-container #container></ng-container>\n <p-progress-spinner *ngIf=\"!customSpinner\" strokeWidth=\"3\" ariaLabel=\"loading\" class=\"flex align-items-center justify-content-center\" />\n </div>\n</ng-template>\n", styles: [".card{background-color:#fff;padding:1rem;box-sizing:border-box;height:100%;display:flex;flex-direction:column;overflow:auto}@media (min-width: 992px){.card{border-left:1px solid rgba(0,0,0,.1)}}.scroll-top{--p-button-primary-background: var(--secondary-color);--p-button-primary-border-color: var(--secondary-color);--p-button-primary-hover-background: var(--hover-color);--p-button-primary-hover-border-color: var(--hover-color)}\n"] }]
|
|
1141
1357
|
}], ctorParameters: () => [{ type: BokFirebaseService }, { type: BokDataService }], propDecorators: { customSpinner: [{
|
|
1142
1358
|
type: Input
|
|
1143
1359
|
}], container: [{
|
|
@@ -1211,7 +1427,7 @@ class BokInformationService {
|
|
|
1211
1427
|
getConceptSkills(code) {
|
|
1212
1428
|
return this.bokDataService.getParsedBokData().pipe(filter((parsedData) => parsedData !== undefined), map((parsedData) => {
|
|
1213
1429
|
const skills = parsedData.conceptNodeCollection.getNodeByNameShort(code)?.demonstrableSkills || [];
|
|
1214
|
-
return skills.map(value => value.
|
|
1430
|
+
return skills.map(value => value.name);
|
|
1215
1431
|
}));
|
|
1216
1432
|
}
|
|
1217
1433
|
checkParents(node, knowledgeAreas) {
|