File

ecosystem/packages/package-versions/package-contents/packages-contents.component.ts

Metadata

Index

Properties
Methods
Inputs

Constructor

constructor(activatedRoute: ActivatedRoute, applicationService: ApplicationService, alertService: AlertService, contextRouteService: ContextRouteService)
Parameters :
Name Type Optional
activatedRoute ActivatedRoute No
applicationService ApplicationService No
alertService AlertService No
contextRouteService ContextRouteService No

Inputs

selectedVersion
Type : string

Methods

Async loadManifest
loadManifest(version: string)
Parameters :
Name Type Optional
version string No
Returns : any
Async ngOnChanges
ngOnChanges(changes: SimpleChanges)
Parameters :
Name Type Optional
changes SimpleChanges No
Returns : any

Properties

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>

results matching ""

    No results matching ""