@colijnit/extendedcomponents 12.0.10 → 12.0.11
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/bundles/colijnit-extendedcomponents.umd.js +13 -4
- package/bundles/colijnit-extendedcomponents.umd.js.map +1 -1
- package/esm2015/lib/components/summary-grid/components/recursive-list/recursive-list.component.js +16 -8
- package/esm2015/lib/components/summary-grid/summary-grid.component.js +6 -3
- package/esm2015/lib/enum/icon.enum.js +1 -1
- package/esm2015/lib/model/icon-svg.js +1 -1
- package/fesm2015/colijnit-extendedcomponents.js +20 -9
- package/fesm2015/colijnit-extendedcomponents.js.map +1 -1
- package/lib/components/summary-grid/components/recursive-list/recursive-list.component.d.ts +3 -1
- package/lib/components/summary-grid/summary-grid.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -822,6 +822,7 @@ class RecursiveListComponent {
|
|
|
822
822
|
constructor(iconCacheService) {
|
|
823
823
|
this.iconCacheService = iconCacheService;
|
|
824
824
|
this.icons = Icon;
|
|
825
|
+
this.hyperLinkDeepestLevel = false;
|
|
825
826
|
this.columns = [];
|
|
826
827
|
this.subColumns = [];
|
|
827
828
|
this.tableLegend = "";
|
|
@@ -851,9 +852,12 @@ class RecursiveListComponent {
|
|
|
851
852
|
handleDataPointClicked(event) {
|
|
852
853
|
this.dataPointClicked.emit(event);
|
|
853
854
|
}
|
|
855
|
+
parseableToInt(prop) {
|
|
856
|
+
return parseInt(prop) !== undefined;
|
|
857
|
+
}
|
|
854
858
|
}
|
|
855
859
|
RecursiveListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RecursiveListComponent, deps: [{ token: IconCacheService }], target: i0.ɵɵFactoryTarget.Component });
|
|
856
|
-
RecursiveListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: RecursiveListComponent, selector: "co-recursive-list", inputs: { collection: "collection", columns: "columns", subColumns: "subColumns", tableLegend: "tableLegend", depth: "depth", indentation: "indentation", dataPipe: "dataPipe", params: "params" }, outputs: { dataPointClicked: "dataPointClicked" }, ngImport: i0, template: `
|
|
860
|
+
RecursiveListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: RecursiveListComponent, selector: "co-recursive-list", inputs: { hyperLinkDeepestLevel: "hyperLinkDeepestLevel", collection: "collection", columns: "columns", subColumns: "subColumns", tableLegend: "tableLegend", depth: "depth", indentation: "indentation", dataPipe: "dataPipe", params: "params" }, outputs: { dataPointClicked: "dataPointClicked" }, ngImport: i0, template: `
|
|
857
861
|
<div class="co-recursive-list">
|
|
858
862
|
<div class="table-header-row">
|
|
859
863
|
<div class="table-legend" *ngIf="tableLegend.length > 1">
|
|
@@ -875,8 +879,9 @@ RecursiveListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
875
879
|
<div class="tree-node" [class.background]="depth === 0" *ngFor="let item of collection" (click)="toggleCollapse($event, item)">
|
|
876
880
|
<div class="table-row">
|
|
877
881
|
<div class="table-cell node-text-icon" [ngStyle]="{'padding-left.px' : indentation}">
|
|
878
|
-
<co-icon *ngIf="item
|
|
879
|
-
<span (click)="handleDataPointClicked(item.name)" [textContent]="item.name"></span>
|
|
882
|
+
<co-icon *ngIf="item?.children && item.children?.length > 0" [iconData]="iconCacheService.getIcon(getCurrentIcon(item))"></co-icon>
|
|
883
|
+
<span *ngIf="item?.children || depth === 0" (click)="handleDataPointClicked(item.name)" [textContent]="item.name"></span>
|
|
884
|
+
<a *ngIf="!item.children && depth !== 0 && parseableToInt(item.name)" (click)="handleDataPointClicked(item.name)" [textContent]="item.name"></a>
|
|
880
885
|
</div>
|
|
881
886
|
<div class="table-cell data-points">
|
|
882
887
|
<div *ngFor="let dataPoint of item.data" class="custom-property">
|
|
@@ -889,7 +894,7 @@ RecursiveListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0",
|
|
|
889
894
|
</ng-container>
|
|
890
895
|
</div>
|
|
891
896
|
</div>
|
|
892
|
-
`, isInline: true, components: [{ type: i2.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { type: RecursiveListComponent, selector: "co-recursive-list", inputs: ["collection", "columns", "subColumns", "tableLegend", "depth", "indentation", "dataPipe", "params"], outputs: ["dataPointClicked"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "localize": LocalizePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
897
|
+
`, isInline: true, components: [{ type: i2.IconComponent, selector: "co-icon", inputs: ["icon", "iconData"] }, { type: RecursiveListComponent, selector: "co-recursive-list", inputs: ["hyperLinkDeepestLevel", "collection", "columns", "subColumns", "tableLegend", "depth", "indentation", "dataPipe", "params"], outputs: ["dataPointClicked"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], pipes: { "localize": LocalizePipe }, encapsulation: i0.ViewEncapsulation.None });
|
|
893
898
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: RecursiveListComponent, decorators: [{
|
|
894
899
|
type: Component,
|
|
895
900
|
args: [{
|
|
@@ -916,8 +921,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
916
921
|
<div class="tree-node" [class.background]="depth === 0" *ngFor="let item of collection" (click)="toggleCollapse($event, item)">
|
|
917
922
|
<div class="table-row">
|
|
918
923
|
<div class="table-cell node-text-icon" [ngStyle]="{'padding-left.px' : indentation}">
|
|
919
|
-
<co-icon *ngIf="item
|
|
920
|
-
<span (click)="handleDataPointClicked(item.name)" [textContent]="item.name"></span>
|
|
924
|
+
<co-icon *ngIf="item?.children && item.children?.length > 0" [iconData]="iconCacheService.getIcon(getCurrentIcon(item))"></co-icon>
|
|
925
|
+
<span *ngIf="item?.children || depth === 0" (click)="handleDataPointClicked(item.name)" [textContent]="item.name"></span>
|
|
926
|
+
<a *ngIf="!item.children && depth !== 0 && parseableToInt(item.name)" (click)="handleDataPointClicked(item.name)" [textContent]="item.name"></a>
|
|
921
927
|
</div>
|
|
922
928
|
<div class="table-cell data-points">
|
|
923
929
|
<div *ngFor="let dataPoint of item.data" class="custom-property">
|
|
@@ -933,7 +939,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
933
939
|
`,
|
|
934
940
|
encapsulation: ViewEncapsulation.None,
|
|
935
941
|
}]
|
|
936
|
-
}], ctorParameters: function () { return [{ type: IconCacheService }]; }, propDecorators: {
|
|
942
|
+
}], ctorParameters: function () { return [{ type: IconCacheService }]; }, propDecorators: { hyperLinkDeepestLevel: [{
|
|
943
|
+
type: Input
|
|
944
|
+
}], collection: [{
|
|
937
945
|
type: Input
|
|
938
946
|
}], columns: [{
|
|
939
947
|
type: Input
|
|
@@ -957,6 +965,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
957
965
|
class SummaryGridComponent {
|
|
958
966
|
constructor() {
|
|
959
967
|
this.showClass = true;
|
|
968
|
+
this.hyperLinkDeepestLevel = false;
|
|
960
969
|
this.columns = [];
|
|
961
970
|
this.subColumns = [];
|
|
962
971
|
this.tableLegend = "";
|
|
@@ -966,7 +975,7 @@ class SummaryGridComponent {
|
|
|
966
975
|
}
|
|
967
976
|
}
|
|
968
977
|
SummaryGridComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SummaryGridComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
969
|
-
SummaryGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SummaryGridComponent, selector: "co-summary-grid", inputs: { columns: "columns", subColumns: "subColumns", tableLegend: "tableLegend", dataPipe: "dataPipe", params: "params", collection: "collection" }, outputs: { dataPointClickedEvent: "dataPointClickedEvent" }, host: { properties: { "class.co-summary-grid": "this.showClass" } }, ngImport: i0, template: `
|
|
978
|
+
SummaryGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SummaryGridComponent, selector: "co-summary-grid", inputs: { hyperLinkDeepestLevel: "hyperLinkDeepestLevel", columns: "columns", subColumns: "subColumns", tableLegend: "tableLegend", dataPipe: "dataPipe", params: "params", collection: "collection" }, outputs: { dataPointClickedEvent: "dataPointClickedEvent" }, host: { properties: { "class.co-summary-grid": "this.showClass" } }, ngImport: i0, template: `
|
|
970
979
|
<co-recursive-list
|
|
971
980
|
[collection]="collection"
|
|
972
981
|
[columns]="columns"
|
|
@@ -976,7 +985,7 @@ SummaryGridComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", v
|
|
|
976
985
|
[params]="params"
|
|
977
986
|
(dataPointClicked)="dataPointClickedEvent.emit($event)"
|
|
978
987
|
></co-recursive-list>
|
|
979
|
-
`, isInline: true, components: [{ type: RecursiveListComponent, selector: "co-recursive-list", inputs: ["collection", "columns", "subColumns", "tableLegend", "depth", "indentation", "dataPipe", "params"], outputs: ["dataPointClicked"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
988
|
+
`, isInline: true, components: [{ type: RecursiveListComponent, selector: "co-recursive-list", inputs: ["hyperLinkDeepestLevel", "collection", "columns", "subColumns", "tableLegend", "depth", "indentation", "dataPipe", "params"], outputs: ["dataPointClicked"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
980
989
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SummaryGridComponent, decorators: [{
|
|
981
990
|
type: Component,
|
|
982
991
|
args: [{
|
|
@@ -997,6 +1006,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
997
1006
|
}], propDecorators: { showClass: [{
|
|
998
1007
|
type: HostBinding,
|
|
999
1008
|
args: ['class.co-summary-grid']
|
|
1009
|
+
}], hyperLinkDeepestLevel: [{
|
|
1010
|
+
type: Input
|
|
1000
1011
|
}], columns: [{
|
|
1001
1012
|
type: Input
|
|
1002
1013
|
}], subColumns: [{
|