Catalog alignment
[sdc.git] / catalog-ui / src / app / ng2 / pages / composition / panel / panel-header / edit-name-modal / edit-name-modal.component.ts
1 import { Component, Input } from "@angular/core";
2
3 @Component({
4     selector: 'edit-name-modal',
5     templateUrl: './edit-name-modal.component.html',
6     styleUrls: ['./edit-name-modal.component.less']
7 })
8 export class EditNameModalComponent {
9
10     @Input() name:String;
11     @Input() validityChangedCallback: Function;
12
13     private pattern:string = "^[\\s\\w\&_.:-]{1,1024}$"
14     constructor(){
15     }
16
17     private validityChanged = (value):void => {
18         if(this.validityChangedCallback) {
19             this.validityChangedCallback(value);
20         }
21     }
22
23
24
25 }