mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
* [ADF-3538] start creating new folder for cloud components * [ADF-3538] added new package to the script and the builds * [ADF-3538] added some more changes to scripts * [ADF-3538] - starting the new package * fix package * Add a cloud component as example * Skip the scss style * remove useless codes * Add i18n example * remove useless code * Simplify the hello component Fix the wrong path * add the app-list-cloud-component add the app-details-cloud-component * Expose and use the new component * Consume the new package and component from the demoshell * Fix unit test app list cloud * Fix process service cloud path * Remove useless file * * Added documentation to the appListcloud component * Fix failing unit tests
45 lines
1.3 KiB
TypeScript
45 lines
1.3 KiB
TypeScript
/*!
|
|
* @license
|
|
* Copyright 2016 Alfresco Software, Ltd.
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
import { ApplicationInstanceModel } from '../models/application-instance.model';
|
|
|
|
@Component({
|
|
selector: 'adf-cloud-app-details',
|
|
templateUrl: './app-details-cloud.component.html',
|
|
styleUrls: ['./app-details-cloud.component.scss']
|
|
})
|
|
|
|
export class AppDetailsCloudComponent {
|
|
|
|
@Input()
|
|
applicationInstance: ApplicationInstanceModel;
|
|
|
|
@Output()
|
|
selectedApp: EventEmitter<ApplicationInstanceModel> = new EventEmitter<ApplicationInstanceModel>();
|
|
|
|
constructor() {}
|
|
|
|
/**
|
|
* Pass the selected app as next
|
|
* @param app
|
|
*/
|
|
public onSelectApp(app: ApplicationInstanceModel): void {
|
|
this.selectedApp.emit(app);
|
|
}
|
|
}
|