This is an automated email from the ASF dual-hosted git repository. zehnder pushed a commit to branch STREAMPIPES-145 in repository https://gitbox.apache.org/repos/asf/incubator-streampipes.git
commit 587f210cee76e75aeda43d4d5c91fc606065c7e5 Author: Philipp Zehnder <[email protected]> AuthorDate: Thu Aug 6 23:01:35 2020 +0200 Remove select static properties component --- ui/src/app/connect/connect.module.ts | 3 - .../select-static-properties.component.css | 26 -------- .../select-static-properties.component.html | 26 -------- .../select-static-properties.component.ts | 70 ---------------------- 4 files changed, 125 deletions(-) diff --git a/ui/src/app/connect/connect.module.ts b/ui/src/app/connect/connect.module.ts index a8ae2f2..9fed4b0 100644 --- a/ui/src/app/connect/connect.module.ts +++ b/ui/src/app/connect/connect.module.ts @@ -59,7 +59,6 @@ import { FormatComponent } from './format-component/format.component'; import { FormatListComponent } from './format-list-component/format-list.component'; import { IconService } from './new-adapter/icon.service'; 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'; @@ -123,7 +122,6 @@ import {DisplayRecommendedPipe} from "./static-properties/filter/display-recomme ], exports: [ StaticPropertyComponent, - SelectStaticPropertiesComponent, PipelineElementRuntimeInfoComponent ], declarations: [ @@ -151,7 +149,6 @@ import {DisplayRecommendedPipe} from "./static-properties/filter/display-recomme DataMarketplaceComponent, AdapterDescriptionComponent, ConnectComponent, - SelectStaticPropertiesComponent, StaticOneOfInputComponent, StaticRuntimeResolvableAnyInputComponent, StaticRuntimeResolvableOneOfInputComponent, diff --git a/ui/src/app/connect/select-static-properties-component/select-static-properties.component.css b/ui/src/app/connect/select-static-properties-component/select-static-properties.component.css deleted file mode 100644 index 339f1ad..0000000 --- a/ui/src/app/connect/select-static-properties-component/select-static-properties.component.css +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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. - * - */ - -.fullWidth { - width: 100%; -} -.blockElement { - margin-top: 15px; - clear: both; - display: block; -} diff --git a/ui/src/app/connect/select-static-properties-component/select-static-properties.component.html b/ui/src/app/connect/select-static-properties-component/select-static-properties.component.html deleted file mode 100644 index ff9795c..0000000 --- a/ui/src/app/connect/select-static-properties-component/select-static-properties.component.html +++ /dev/null @@ -1,26 +0,0 @@ -<!-- - ~ 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. - ~ - --> - -<div id="select-static-properties" *ngFor="let staticProperty of staticProperties" class="blockElement fullWidth"> - <app-static-property [adapterId]="adapterId" - [staticProperties]="staticProperties" - [eventSchemas]="eventSchema" - [fieldName]="staticProperty.internalName" - [staticProperty]="staticProperty" (validateEmitter)="validateText()" (updateEmitter)="triggerUpdate($event)" [completedStaticProperty]="completedStaticProperty" class="test fullWidth"> - </app-static-property> -</div> \ No newline at end of file diff --git a/ui/src/app/connect/select-static-properties-component/select-static-properties.component.ts b/ui/src/app/connect/select-static-properties-component/select-static-properties.component.ts deleted file mode 100644 index d0a7b54..0000000 --- a/ui/src/app/connect/select-static-properties-component/select-static-properties.component.ts +++ /dev/null @@ -1,70 +0,0 @@ -/* - * 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, EventEmitter, Input, OnInit, Output} from '@angular/core'; - -import {ConfigurationInfo} from "../model/message/ConfigurationInfo"; -import {EventSchema, StaticProperty} from "../../core-model/gen/streampipes-model"; - -@Component({ - selector: 'app-select-static-properties', - templateUrl: './select-static-properties.component.html', - styleUrls: ['./select-static-properties.component.css'], -}) -export class SelectStaticPropertiesComponent implements OnInit{ - - - @Input() - adapterId: string; - - @Input() - staticProperties: StaticProperty[]; - - @Input() - eventSchema: EventSchema; - - @Output() - validateEmitter = new EventEmitter(); - - @Output() - emitter: EventEmitter<any> = new EventEmitter<any>(); - - completedStaticProperty: ConfigurationInfo; - eventSchemas: EventSchema[]; - - ngOnInit() { - console.log(this.staticProperties); - this.eventSchemas = [this.eventSchema]; - } - - validateText() { - if (this.staticProperties.every(this.allValid)) { - this.validateEmitter.emit(true); - } else { - this.validateEmitter.emit(false); - } - } - - allValid(staticProperty) { - return staticProperty.isValid; - } - - triggerUpdate(configurationInfo: ConfigurationInfo) { - this.completedStaticProperty = Object.assign({}, configurationInfo); - } -}
