You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by ze...@apache.org on 2020/06/18 06:32:15 UTC

[incubator-streampipes] branch STREAMPIPES-164 created (now 7031e1f)

This is an automated email from the ASF dual-hosted git repository.

zehnder pushed a change to branch STREAMPIPES-164
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git.


      at 7031e1f  Add a model for adapter documentation

This branch includes the following new commits:

     new 7031e1f  Add a model for adapter documentation

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[incubator-streampipes] 01/01: Add a model for adapter documentation

Posted by ze...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

zehnder pushed a commit to branch STREAMPIPES-164
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git

commit 7031e1fe8c6fd7795fe673bdde87fe29532d9724
Author: Philipp Zehnder <ze...@fzi.de>
AuthorDate: Thu Jun 18 08:31:33 2020 +0200

    Add a model for adapter documentation
---
 ui/src/app/connect/connect.module.ts               | 142 +++++++++++----------
 .../adapter-description.component.html             |   9 +-
 .../adapter-description.component.ts               |  55 +++++---
 .../adapter-documentation-dialog.component.css     |  55 ++++++++
 .../adapter-documentation-dialog.component.html    |  43 +++++++
 .../adapter-documentation-dialog.component.ts      |  43 +++++++
 6 files changed, 258 insertions(+), 89 deletions(-)

diff --git a/ui/src/app/connect/connect.module.ts b/ui/src/app/connect/connect.module.ts
index c9c1b97..817746a 100644
--- a/ui/src/app/connect/connect.module.ts
+++ b/ui/src/app/connect/connect.module.ts
@@ -16,84 +16,85 @@
  *
  */
 
-import {CommonModule} from '@angular/common';
-import {NgModule} from '@angular/core';
-import {FlexLayoutModule} from '@angular/flex-layout';
-import {FormsModule, ReactiveFormsModule} from '@angular/forms';
-import {MatFormFieldModule} from '@angular/material/form-field';
-import {MatGridListModule} from '@angular/material/grid-list';
-import {MatProgressSpinnerModule} from '@angular/material/progress-spinner';
-import {BrowserModule} from '@angular/platform-browser';
+import { CommonModule } from '@angular/common';
+import { NgModule } from '@angular/core';
+import { FlexLayoutModule } from '@angular/flex-layout';
+import { FormsModule, ReactiveFormsModule } from '@angular/forms';
+import { MatFormFieldModule } from '@angular/material/form-field';
+import { MatGridListModule } from '@angular/material/grid-list';
+import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
+import { BrowserModule } from '@angular/platform-browser';
 
-import {ConnectComponent} from './connect.component';
-import {NewAdapterComponent} from './new-adapter/new-adapter.component';
+import { ConnectComponent } from './connect.component';
+import { NewAdapterComponent } from './new-adapter/new-adapter.component';
 
-import {FormatFormComponent} from './format-form/format-form.component';
-import {SelectProtocolComponent} from './select-protocol-component/select-protocol.component';
+import { FormatFormComponent } from './format-form/format-form.component';
+import { SelectProtocolComponent } from './select-protocol-component/select-protocol.component';
 
-import {EventPropertyPrimitiveComponent} from './schema-editor/event-property-primitive/event-property-primitive.component';
-import {EventPropertyComponent} from './schema-editor/event-property/event-property.component';
-import {EventSchemaComponent} from './schema-editor/event-schema/event-schema.component';
+import { EventPropertyPrimitiveComponent } from './schema-editor/event-property-primitive/event-property-primitive.component';
+import { EventPropertyComponent } from './schema-editor/event-property/event-property.component';
+import { EventSchemaComponent } from './schema-editor/event-schema/event-schema.component';
 
-import {StaticPropertyComponent} from './static-properties/static-property.component';
+import { StaticPropertyComponent } from './static-properties/static-property.component';
 
-import {CustomMaterialModule} from '../CustomMaterial/custom-material.module';
+import { CustomMaterialModule } from '../CustomMaterial/custom-material.module';
 
-import {RestService} from './rest.service';
+import { RestService } from './rest.service';
 
-import {MatInputModule} from '@angular/material/input';
-import {DragulaModule} from 'ng2-dragula';
-import {AdapterStartedDialog} from './new-adapter/component/adapter-started-dialog.component';
-import {DataTypesService} from './schema-editor/data-type.service';
-import {StaticFreeInputComponent} from './static-properties/static-free-input/static-free-input.component';
-import {StaticNumberInputComponent} from './static-properties/static-number-input/static-number-input.component';
-import {StaticPropertyUtilService} from './static-properties/static-property-util.service';
-import {StaticTextInputComponent} from './static-properties/static-text-input/static-text-input.component';
-import {StaticUrlInputComponent} from './static-properties/static-url-input/static-url-input.component';
-import {TransformationRuleService} from './transformation-rule.service';
-import {StaticSecretInputComponent} from "./static-properties/static-secret-input/static-secret-input.component";
+import { MatInputModule } from '@angular/material/input';
+import { DragulaModule } from 'ng2-dragula';
+import { AdapterStartedDialog } from './new-adapter/component/adapter-started-dialog.component';
+import { DataTypesService } from './schema-editor/data-type.service';
+import { StaticFreeInputComponent } from './static-properties/static-free-input/static-free-input.component';
+import { StaticNumberInputComponent } from './static-properties/static-number-input/static-number-input.component';
+import { StaticPropertyUtilService } from './static-properties/static-property-util.service';
+import { StaticSecretInputComponent } from './static-properties/static-secret-input/static-secret-input.component';
+import { StaticTextInputComponent } from './static-properties/static-text-input/static-text-input.component';
+import { StaticUrlInputComponent } from './static-properties/static-url-input/static-url-input.component';
+import { TransformationRuleService } from './transformation-rule.service';
 
-import {ProtocolComponent} from './protocol-component/protocol.component';
+import { ProtocolComponent } from './protocol-component/protocol.component';
 
-import {ShepherdService} from '../services/tour/shepherd.service';
-import {ConnectService} from './connect.service';
-import {AdapterDescriptionComponent} from './data-marketplace/adapter-description/adapter-description.component';
-import {DataMarketplaceComponent} from './data-marketplace/data-marketplace.component';
-import {DataMarketplaceService} from './data-marketplace/data-marketplace.service';
-import {FormatComponent} from './format-component/format.component';
-import {FormatListComponent} from './format-list-component/format-list.component';
-import {ProtocolListComponent} from './protocol-list-component/protocol-list.component';
-import {UnitProviderService} from './schema-editor/unit-provider.service';
-import {SelectStaticPropertiesComponent} from './select-static-properties-component/select-static-properties.component';
-import {StaticAnyInput} from './static-properties/static-any-input/static-any-input.component';
-import {StaticOneOfInputComponent} from './static-properties/static-one-of-input/static-one-of-input.component';
-import {IconService} from './new-adapter/icon.service';
-import {StaticFileInputComponent} from './static-properties/static-file-input/static-file-input.component';
-import {StaticFileRestService} from './static-properties/static-file-input/static-file-rest.service';
-import {FileManagementComponent} from './file-management/file-management.component';
-import {FileRestService} from './file-management/service/filerest.service';
-import {StaticRuntimeResolvableAnyInputComponent} from "./static-properties/static-runtime-resolvable-any-input/static-runtime-resolvable-any-input.component";
-import {StaticRuntimeResolvableOneOfInputComponent} from "./static-properties/static-runtime-resolvable-oneof-input/static-runtime-resolvable-oneof-input.component";
-import {StaticGroupComponent} from './static-properties/static-group/static-group.component';
-import {StaticAlternativesComponent} from './static-properties/static-alternatives/static-alternatives.component';
-import {StaticCollectionComponent} from './static-properties/static-collection/static-collection.component';
+import { ShepherdService } from '../services/tour/shepherd.service';
+import { ConnectService } from './connect.service';
+import { AdapterDescriptionComponent } from './data-marketplace/adapter-description/adapter-description.component';
+import { DataMarketplaceComponent } from './data-marketplace/data-marketplace.component';
+import { DataMarketplaceService } from './data-marketplace/data-marketplace.service';
+import { FileManagementComponent } from './file-management/file-management.component';
+import { FileRestService } from './file-management/service/filerest.service';
+import { FormatComponent } from './format-component/format.component';
+import { FormatListComponent } from './format-list-component/format-list.component';
+import { IconService } from './new-adapter/icon.service';
+import { ProtocolListComponent } from './protocol-list-component/protocol-list.component';
+import { UnitProviderService } from './schema-editor/unit-provider.service';
+import { SelectStaticPropertiesComponent } from './select-static-properties-component/select-static-properties.component';
+import { StaticAlternativesComponent } from './static-properties/static-alternatives/static-alternatives.component';
+import { StaticAnyInput } from './static-properties/static-any-input/static-any-input.component';
+import { StaticCollectionComponent } from './static-properties/static-collection/static-collection.component';
+import { StaticFileInputComponent } from './static-properties/static-file-input/static-file-input.component';
+import { StaticFileRestService } from './static-properties/static-file-input/static-file-rest.service';
+import { StaticGroupComponent } from './static-properties/static-group/static-group.component';
+import { StaticOneOfInputComponent } from './static-properties/static-one-of-input/static-one-of-input.component';
+import { StaticRuntimeResolvableAnyInputComponent } from './static-properties/static-runtime-resolvable-any-input/static-runtime-resolvable-any-input.component';
+import { StaticRuntimeResolvableOneOfInputComponent } from './static-properties/static-runtime-resolvable-oneof-input/static-runtime-resolvable-oneof-input.component';
 
 
-import {FilterPipe} from '../connect/data-marketplace/filter.pipe';
-import {AdapterExportDialog} from './data-marketplace/adapter-export/adapter-export-dialog.component';
-import {AdapterUploadDialog} from './data-marketplace/adapter-upload/adapter-upload-dialog.component';
-import {EventPropertyListComponent} from './schema-editor/event-property-list/event-property-list.component';
-import {StaticMappingNaryComponent} from './static-properties/static-mapping-nary/static-mapping-nary.component';
-import {StaticMappingUnaryComponent} from './static-properties/static-mapping-unary/static-mapping-unary.component';
-import {TimestampPipe} from './filter/timestamp.pipe';
-import {PlatformServicesModule} from '../platform-services/platform.module';
+import { FilterPipe } from '../connect/data-marketplace/filter.pipe';
+import { PlatformServicesModule } from '../platform-services/platform.module';
+import { AdapterExportDialog } from './data-marketplace/adapter-export/adapter-export-dialog.component';
+import { AdapterUploadDialog } from './data-marketplace/adapter-upload/adapter-upload-dialog.component';
+import { TimestampPipe } from './filter/timestamp.pipe';
+import { EventPropertyListComponent } from './schema-editor/event-property-list/event-property-list.component';
+import { StaticMappingNaryComponent } from './static-properties/static-mapping-nary/static-mapping-nary.component';
+import { StaticMappingUnaryComponent } from './static-properties/static-mapping-unary/static-mapping-unary.component';
 
-import {TreeModule} from 'angular-tree-component';
-import {EventSchemaPreviewComponent} from './schema-editor/event-schema-preview/event-schema-preview.component';
-import {EventPropertyRowComponent} from "./schema-editor/event-property-row/event-property-row.component";
-import {PropertySelectorService} from "../services/property-selector.service";
-import {StaticColorPickerComponent} from "./static-properties/static-color-picker/static-color-picker.component";
-import {ColorPickerModule} from "ngx-color-picker";
+import { TreeModule } from 'angular-tree-component';
+import { ColorPickerModule } from 'ngx-color-picker';
+import { PropertySelectorService } from '../services/property-selector.service';
+import { EventPropertyRowComponent } from './schema-editor/event-property-row/event-property-row.component';
+import { EventSchemaPreviewComponent } from './schema-editor/event-schema-preview/event-schema-preview.component';
+import { StaticColorPickerComponent } from './static-properties/static-color-picker/static-color-picker.component';
+import { AdapterDocumentationDialogComponent } from './data-marketplace/adapter-description/documentation/adapter-documentation-dialog.component';
 
 
 @NgModule({
@@ -130,6 +131,7 @@ import {ColorPickerModule} from "ngx-color-picker";
         AdapterStartedDialog,
         AdapterExportDialog,
         AdapterUploadDialog,
+        AdapterDocumentationDialogComponent,
         StaticNumberInputComponent,
         StaticUrlInputComponent,
         StaticTextInputComponent,
@@ -189,6 +191,12 @@ import {ColorPickerModule} from "ngx-color-picker";
             deps: ['$injector'],
         },
     ],
-    entryComponents: [ConnectComponent, AdapterStartedDialog, AdapterExportDialog, AdapterUploadDialog, EventPropertyComponent],
+    entryComponents: [
+        ConnectComponent,
+        AdapterStartedDialog,
+        AdapterExportDialog,
+        AdapterUploadDialog,
+        AdapterDocumentationDialogComponent,
+        EventPropertyComponent],
 })
 export class ConnectModule { }
diff --git a/ui/src/app/connect/data-marketplace/adapter-description/adapter-description.component.html b/ui/src/app/connect/data-marketplace/adapter-description/adapter-description.component.html
index f7fa368..90f443c 100644
--- a/ui/src/app/connect/data-marketplace/adapter-description/adapter-description.component.html
+++ b/ui/src/app/connect/data-marketplace/adapter-description/adapter-description.component.html
@@ -62,7 +62,14 @@
                 </i>
                 <mat-spinner *ngIf="deleteInProgress(adapter.couchDbId)" [diameter]="20" fxLayoutAlign="center"></mat-spinner>
             </button>
-
+        </div>
+        <div fxFlex="30" fxLayout="row" fxLayoutAlign="end end" class="delete">
+            <button matTooltip="Delete Adapter Template" color="primary" mat-fab (click)="openAdapterDocumentation(adapter); $event.stopPropagation()" [disabled]="deleteInProgress(adapter.couchDbId)">
+                <i class="material-icons" *ngIf="!deleteInProgress(adapter.couchDbId)">
+                    delete
+                </i>
+                <mat-spinner *ngIf="deleteInProgress(adapter.couchDbId)" [diameter]="20" fxLayoutAlign="center"></mat-spinner>
+            </button>
         </div>
         <!--<div fxFlex="30" *ngIf="!adapter.couchDbId" fxLayout="row" fxLayoutAlign="end end">-->
             <!--<button color="primary" mat-fab>-->
diff --git a/ui/src/app/connect/data-marketplace/adapter-description/adapter-description.component.ts b/ui/src/app/connect/data-marketplace/adapter-description/adapter-description.component.ts
index cb415a0..7a5ed6d 100644
--- a/ui/src/app/connect/data-marketplace/adapter-description/adapter-description.component.ts
+++ b/ui/src/app/connect/data-marketplace/adapter-description/adapter-description.component.ts
@@ -16,19 +16,20 @@
  *
  */
 
-import {Component, EventEmitter, Input, Output} from '@angular/core';
-import {AdapterDescription} from '../../model/connect/AdapterDescription';
-import {ConnectService} from '../../connect.service';
-import {DataMarketplaceService} from "../data-marketplace.service";
-import {AdapterExportDialog} from '../adapter-export/adapter-export-dialog.component';
-import {MatDialog} from '@angular/material/dialog';
+import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
+import { MatDialog } from '@angular/material/dialog';
+import { ConnectService } from '../../connect.service';
+import { AdapterDescription } from '../../model/connect/AdapterDescription';
+import { AdapterExportDialog } from '../adapter-export/adapter-export-dialog.component';
+import { DataMarketplaceService } from '../data-marketplace.service';
+import { AdapterDocumentationDialogComponent } from './documentation/adapter-documentation-dialog.component';
 
 @Component({
   selector: 'sp-adapter-description',
   templateUrl: './adapter-description.component.html',
   styleUrls: ['./adapter-description.component.css'],
 })
-export class AdapterDescriptionComponent {
+export class AdapterDescriptionComponent implements OnInit {
 
   @Input()
   adapter: AdapterDescription;
@@ -40,11 +41,11 @@ export class AdapterDescriptionComponent {
   createTemplateEmitter: EventEmitter<AdapterDescription> = new EventEmitter<AdapterDescription>();
 
   adapterToDelete: string;
-  deleting: boolean = false;
-  className: string = "";
-  isDataSetDescription: boolean = false;
-  isDataStreamDescription: boolean = false;
-  isRunningAdapter: boolean = false;
+  deleting = false;
+  className = '';
+  isDataSetDescription = false;
+  isDataStreamDescription = false;
+  isRunningAdapter = false;
   adapterLabel: string;
 
   constructor(private connectService: ConnectService, private dataMarketplaceService: DataMarketplaceService, public dialog: MatDialog) {}
@@ -52,7 +53,7 @@ export class AdapterDescriptionComponent {
   ngOnInit() {
       this.isDataSetDescription = this.connectService.isDataSetDescription(this.adapter);
       this.isDataStreamDescription = this.connectService.isDataStreamDescription(this.adapter);
-      this.isRunningAdapter = (this.adapter.couchDbId != undefined && !this.adapter.isTemplate);
+      this.isRunningAdapter = (this.adapter.couchDbId !== undefined && !this.adapter.isTemplate);
       this.adapterLabel = this.adapter.label.split(' ').join('_');
       this.className = this.getClassName();
   }
@@ -77,9 +78,9 @@ export class AdapterDescriptionComponent {
 
   shareAdapterTemplate(adapter: AdapterDescription): void {
 
-        let dialogRef = this.dialog.open(AdapterExportDialog, {
+        const dialogRef = this.dialog.open(AdapterExportDialog, {
             width: '70%',
-            data: { adapter: adapter
+            data: { adapter
             },
             panelClass: 'sp-no-padding-dialog'
         });
@@ -87,10 +88,21 @@ export class AdapterDescriptionComponent {
         dialogRef.afterClosed().subscribe(result => {
 
         });
+  }
 
+  openAdapterDocumentation(adapter: AdapterDescription): void {
 
-  }
+    const dialogRef = this.dialog.open(AdapterDocumentationDialogComponent, {
+      width: '70%',
+      data: { adapter
+      },
+      panelClass: 'sp-no-padding-dialog'
+    });
 
+    dialogRef.afterClosed().subscribe(result => {
+
+    });
+  }
 
   deleteAdapterTemplate(adapter: AdapterDescription): void {
       this.adapterToDelete = adapter.couchDbId;
@@ -106,12 +118,12 @@ export class AdapterDescriptionComponent {
   }
 
   getClassName() {
-    let className = this.isRunningAdapter ? "adapter-box" : "adapter-description-box";
+    let className = this.isRunningAdapter ? 'adapter-box' : 'adapter-description-box';
 
     if (this.isDataSetDescription) {
-      className += " adapter-box-set";
+      className += ' adapter-box-set';
     } else {
-      className +=" adapter-box-stream";
+      className += ' adapter-box-stream';
     }
 
     return className;
@@ -122,11 +134,12 @@ export class AdapterDescriptionComponent {
   }
 
   getIconUrl() {
-    //TODO Use "this.adapter.includesAssets" if boolean demoralizing is working
+    // TODO Use "this.adapter.includesAssets" if boolean demoralizing is working
     if (this.adapter.includedAssets.length > 0) {
-      return this.dataMarketplaceService.getAssetUrl(this.adapter.appId) + "/icon";
+      return this.dataMarketplaceService.getAssetUrl(this.adapter.appId) + '/icon';
     } else {
       return 'assets/img/connect/' + this.adapter.iconUrl;
     }
   }
 }
+
diff --git a/ui/src/app/connect/data-marketplace/adapter-description/documentation/adapter-documentation-dialog.component.css b/ui/src/app/connect/data-marketplace/adapter-description/documentation/adapter-documentation-dialog.component.css
new file mode 100644
index 0000000..e00a7b4
--- /dev/null
+++ b/ui/src/app/connect/data-marketplace/adapter-description/documentation/adapter-documentation-dialog.component.css
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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.
+ *
+ */
+
+.element-margin {
+    margin-top:10px;
+    margin-bottom:10px;
+}
+
+mat-toolbar {
+    background: #39b54a;
+    color:white;
+}
+
+mat-dialog-content {
+    padding: 24px;
+    -webkit-box-ordinal-group: 2;
+    -webkit-order: 1;
+    order: 1;
+    -webkit-box-orient: vertical;
+    -webkit-box-direction: normal;
+    -webkit-flex-direction: column;
+    flex-direction: column;
+    overflow: auto;
+    -webkit-overflow-scrolling: touch;
+}
+
+.mat-dialog-content {
+    width:100%;
+    height:74%;
+    margin: 0px;
+}
+
+.mat-dialog-actions {
+    margin-bottom:0px;
+    padding-right:10px;
+}
+
+.mat-radio-button {
+    padding: 10px;
+}
\ No newline at end of file
diff --git a/ui/src/app/connect/data-marketplace/adapter-description/documentation/adapter-documentation-dialog.component.html b/ui/src/app/connect/data-marketplace/adapter-description/documentation/adapter-documentation-dialog.component.html
new file mode 100644
index 0000000..41ae61d
--- /dev/null
+++ b/ui/src/app/connect/data-marketplace/adapter-description/documentation/adapter-documentation-dialog.component.html
@@ -0,0 +1,43 @@
+<!--
+~ Licensed to the Apache Software Foundation (ASF) under one or more
+~ contributor license agreements.  See the NOTICE file distributed with
+~ this work for additional information regarding copyright ownership.
+~ The ASF licenses this file to You 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.
+~
+-->
+
+<mat-toolbar>
+    <div class="md-toolbar-tools">
+        <h2>'New dashboard'</h2>
+        <span fxFlex></span>
+        <button mat-icon-button (click)="onCancel()">
+            <i class="material-icons">close</i>
+        </button>
+    </div>
+</mat-toolbar>
+<mat-divider></mat-divider>
+<div mat-dialog-content class="md-dialog-content">
+    <div fxFlex="100">
+        <div fxFlex="100" fxLayout="column" style="margin:5px;width:100%">
+
+        </div>
+    </div>
+</div>
+<mat-divider></mat-divider>
+<div mat-dialog-actions fxLayout="row" fxLayoutAlign="end center">
+    <button mat-button mat-raised-button class="mat-basic" (click)="onCancel()">
+        Cancel
+    </button>
+</div>
+
+
diff --git a/ui/src/app/connect/data-marketplace/adapter-description/documentation/adapter-documentation-dialog.component.ts b/ui/src/app/connect/data-marketplace/adapter-description/documentation/adapter-documentation-dialog.component.ts
new file mode 100644
index 0000000..7b6a750
--- /dev/null
+++ b/ui/src/app/connect/data-marketplace/adapter-description/documentation/adapter-documentation-dialog.component.ts
@@ -0,0 +1,43 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You 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, OnInit } from '@angular/core';
+import { MatDialogRef } from '@angular/material/dialog';
+
+@Component({
+    selector: 'sp-adapter-documentation-dialog-component',
+    templateUrl: './adapter-documentation-dialog.component.html',
+    styleUrls: ['./adapter-documentation-dialog.component.css']
+})
+export class AdapterDocumentationDialogComponent implements OnInit {
+
+    createMode: boolean;
+
+    constructor(
+        public dialogRef: MatDialogRef<AdapterDocumentationDialogComponent>) {
+    }
+
+    ngOnInit() {
+
+    }
+
+    onCancel(): void {
+        this.dialogRef.close();
+    }
+
+}