diff --git a/sharedComponents/input/input.component.ts b/sharedComponents/input/input.component.ts index 2042a7ec..9578f7bb 100644 --- a/sharedComponents/input/input.component.ts +++ b/sharedComponents/input/input.component.ts @@ -41,76 +41,78 @@ declare var UIkit; @Component({ selector: '[dashboard-input], [input]', template: ` -
-
-
- -
-
- - - - +
+
+
+
+ +
+
+ + + + - - -
{{getLabel(formControl.value)}}
-
{{placeholderInfo.label}}
-
- -
-
- -
-
-
- -
-
-
- {{getLabel(chip.value)}} - + + +
{{getLabel(formControl.value)}}
+
{{placeholderInfo.label}}
+
+ +
+
+
-
- -
-
- -
- - - - - + +
+
+
+ {{getLabel(chip.value)}} + +
+
+
+ +
+
+
+
+ + + + + + +
+
+
+
-
- -
-
-
- +
+ +
{{formControl.errors.error}} @@ -133,6 +135,7 @@ declare var UIkit; ` }) export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChanges { + private static INPUT_COUNTER: number = 0; /** Deprecated options*/ /** @deprecated */ @Input('label') label: string; @@ -185,6 +188,7 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang /** LogoUrl information */ public secure: boolean = true; /** Internal basic information */ + public id: string; public placeholderInfo: Placeholder = {label: '', static: true}; public required: boolean = false; public focused: boolean = false; @@ -221,6 +225,8 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang } ngOnInit() { + InputComponent.INPUT_COUNTER++; + this.id = 'input-' + InputComponent.INPUT_COUNTER; if (!this.formControl) { if (Array.isArray(this.value)) { this.formControl = new FormArray([]); @@ -350,7 +356,6 @@ export class InputComponent implements OnInit, OnDestroy, AfterViewInit, OnChang return (this.showOptionsOnEmpty) ? options : []; } const filterValue = value.toString().toLowerCase(); - console.log(options.filter(option => option.label.toLowerCase().indexOf(filterValue) != -1)); return options.filter(option => option.label.toLowerCase().indexOf(filterValue) != -1); }