ecosystem/packages/package-versions/package-contents/packages-contents.component.ts
selector | c8y-package-contents |
templateUrl | ./packages-contents.component.html |
Properties |
Methods |
|
Inputs |
constructor(activatedRoute: ActivatedRoute, applicationService: ApplicationService, alertService: AlertService, contextRouteService: ContextRouteService)
|
|||||||||||||||
Parameters :
|
selectedVersion |
Type : string
|
Async loadManifest | ||||||
loadManifest(version: string)
|
||||||
Parameters :
Returns :
any
|
Async ngOnChanges | ||||||
ngOnChanges(changes: SimpleChanges)
|
||||||
Parameters :
Returns :
any
|
isLoading |
Default value : false
|
package |
Type : IApplication
|
Default value : {}
|
Readonly packageVersionProperties |
Type : PropertiesListItem[]
|
Default value : packageProperties
|
selectedVersionManifest |
Type : IManifest
|
<div class="inner-scroll">
<ng-container *ngIf="!selectedVersionManifest && !isLoading">
<div class="p-16">
<c8y-ui-empty-state
[icon]="'big-parcel'"
[horizontal]="true"
[title]="'No package selected' | translate"
[subtitle]="'Select a package from the list to display the package contents.' | translate"
></c8y-ui-empty-state>
</div>
</ng-container>
<ng-container *ngIf="isLoading">
<c8y-loading></c8y-loading>
</ng-container>
<ng-container *ngIf="selectedVersionManifest && !isLoading">
<!-- DETAILS -->
<div class="card-block p-t-0">
<c8y-properties-list
[data]="selectedVersionManifest"
[emptyLabel]="'--'"
[properties]="packageVersionProperties"
>
</c8y-properties-list>
<!-- APPS -->
<c8y-contents-apps
class="p-t-16 d-block"
[selectedVersionManifest]="selectedVersionManifest"
></c8y-contents-apps>
<!-- PLUGINS -->
<c8y-contents-plugins
class="p-t-16 d-block"
[selectedVersionManifest]="selectedVersionManifest"
></c8y-contents-plugins>
</div>
</ng-container>
</div>