diff options
Diffstat (limited to 'catalog-ui/src/app/ng2/pages/properties-assignment')
2 files changed, 24 insertions, 25 deletions
diff --git a/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.module.ts b/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.module.ts index 3def63e0d2..0d676ed950 100644 --- a/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.module.ts +++ b/catalog-ui/src/app/ng2/pages/properties-assignment/properties-assignment.module.ts @@ -17,8 +17,7 @@ * limitations under the License. * ============LICENSE_END========================================================= */ -import { NgModule } from "@angular/core"; -import {HierarchyNavigationComponent} from "../../components/logic/hierarchy-navigtion/hierarchy-navigation.component"; +import {NgModule} from "@angular/core"; import {FormsModule} from "@angular/forms"; import {PropertyTableModule} from "../../components/logic/properties-table/property-table.module"; import {UiElementsModule} from "../../components/ui/ui-elements.module"; @@ -36,29 +35,30 @@ import {InputsUtils} from "./services/inputs.utils"; import {ComponentModeService} from "../../services/component-services/component-mode.service"; import {SdcUiComponentsModule} from "onap-ui-angular"; import {ModalFormsModule} from "app/ng2/components/ui/forms/modal-forms.module"; +import {HierarchyNavigationModule} from "../../components/logic/hierarchy-navigtion/hierarchy-navigation.module"; @NgModule({ - declarations: [ - PropertiesAssignmentComponent, - InputsTableComponent, - HierarchyNavigationComponent, - FilterPropertiesAssignmentComponent - ], - imports: [ - BrowserModule, - FormsModule, - GlobalPipesModule, - PropertyTableModule, - PoliciesTableModule, - UiElementsModule, - SdcUiComponentsModule, - ModalFormsModule], + declarations: [ + PropertiesAssignmentComponent, + InputsTableComponent, + FilterPropertiesAssignmentComponent + ], + imports: [ + BrowserModule, + FormsModule, + GlobalPipesModule, + PropertyTableModule, + PoliciesTableModule, + HierarchyNavigationModule, + UiElementsModule, + SdcUiComponentsModule, + ModalFormsModule], - entryComponents: [PropertiesAssignmentComponent], - exports: [ - PropertiesAssignmentComponent - ], - providers: [PropertiesService, HierarchyNavService, PropertiesUtils, InputsUtils, DataTypeService, ComponentModeService] + entryComponents: [PropertiesAssignmentComponent], + exports: [ + PropertiesAssignmentComponent + ], + providers: [PropertiesService, HierarchyNavService, PropertiesUtils, InputsUtils, DataTypeService, ComponentModeService] }) export class PropertiesAssignmentModule { diff --git a/catalog-ui/src/app/ng2/pages/properties-assignment/property-creator/property-creator.component.ts b/catalog-ui/src/app/ng2/pages/properties-assignment/property-creator/property-creator.component.ts index 5053d52cc8..8167caa959 100644 --- a/catalog-ui/src/app/ng2/pages/properties-assignment/property-creator/property-creator.component.ts +++ b/catalog-ui/src/app/ng2/pages/properties-assignment/property-creator/property-creator.component.ts @@ -6,6 +6,7 @@ import { DataTypeService } from 'app/ng2/services/data-type.service'; import { PROPERTY_DATA } from 'app/utils'; import * as _ from 'lodash'; import { PROPERTY_TYPES } from '../../../../utils'; +import {Validation} from "../../../../view-models/workspace/tabs/general/general-view-model"; @Component({ selector: 'property-creator', @@ -15,12 +16,10 @@ import { PROPERTY_TYPES } from '../../../../utils'; export class PropertyCreatorComponent { + validation:Validation; typesProperties: DropdownValue[]; typesSchemaProperties: DropdownValue[]; propertyModel: PropertyBEModel; - // propertyNameValidationPattern:RegExp = /^[a-zA-Z0-9_:-]{1,50}$/; - // commentValidationPattern:RegExp = /^[\u0000-\u00BF]*$/; - // types:Array<string>; dataTypes: DataTypesMap; isLoading: boolean; |