diff --git a/.prettierignore b/.prettierignore index f26a922d..d002cbaf 100644 --- a/.prettierignore +++ b/.prettierignore @@ -37,4 +37,4 @@ testem.log # System Files .DS_Store Thumbs.db -./package-lock.json \ No newline at end of file +./package-lock.json diff --git a/projects/ngx-formentry/src/components/ngx-remote-select/ngx-remote-select.component.ts b/projects/ngx-formentry/src/components/ngx-remote-select/ngx-remote-select.component.ts index a7d25829..108d8b57 100644 --- a/projects/ngx-formentry/src/components/ngx-remote-select/ngx-remote-select.component.ts +++ b/projects/ngx-formentry/src/components/ngx-remote-select/ngx-remote-select.component.ts @@ -19,6 +19,8 @@ import { SelectOption } from '../../form-entry/question-models/interfaces/select import { DataSource } from '../../form-entry/question-models/interfaces/data-source'; import * as _ from 'lodash'; +import { TranslateService } from '@ngx-translate/core'; + @Component({ selector: 'ofe-remote-select', templateUrl: 'remote-select.component.html', @@ -40,11 +42,12 @@ export class RemoteSelectComponent implements OnInit, ControlValueAccessor { value = []; loading = false; searchText = ''; - notFoundMsg = 'match no found'; - @Input() placeholder = 'Search...'; + notFoundMsg = this.translate.instant('matchNotFound'); + @Input() placeholder = this.translate.instant('search'); @Input() componentID: string; @Input() disabled = false; @Input() theme = 'dark'; + @Input() invalid = 'false'; @Output() done: EventEmitter = new EventEmitter(); private _dataSource: DataSource; @@ -59,7 +62,10 @@ export class RemoteSelectComponent implements OnInit, ControlValueAccessor { } } - constructor(private renderer: Renderer2) {} + constructor( + private renderer: Renderer2, + private translate: TranslateService + ) {} ngOnInit() { this.loadOptions(); @@ -71,7 +77,7 @@ export class RemoteSelectComponent implements OnInit, ControlValueAccessor { this.items = results; this.notFoundMsg = ''; } else { - this.notFoundMsg = 'Not found'; + this.notFoundMsg = 'Match not found'; this.items = []; } }); diff --git a/projects/ngx-formentry/src/components/ngx-remote-select/remote-select.component.html b/projects/ngx-formentry/src/components/ngx-remote-select/remote-select.component.html index 51b1d2ce..5a981497 100644 --- a/projects/ngx-formentry/src/components/ngx-remote-select/remote-select.component.html +++ b/projects/ngx-formentry/src/components/ngx-remote-select/remote-select.component.html @@ -1,20 +1,21 @@ -
- - -
+ + diff --git a/projects/ngx-formentry/src/components/number-input/number-input.component.html b/projects/ngx-formentry/src/components/number-input/number-input.component.html index 3aa7545e..a538561b 100644 --- a/projects/ngx-formentry/src/components/number-input/number-input.component.html +++ b/projects/ngx-formentry/src/components/number-input/number-input.component.html @@ -8,7 +8,8 @@ 'cds--number--helpertext': helperText, 'cds--skeleton': skeleton, 'cds--number--sm': size === 'sm', - 'cds--number--xl': size === 'xl' + 'cds--number--md': size === 'md', + 'cds--number--lg': size === 'lg' }" >
+ +
+ +
+
- + >
+
    @@ -169,8 +172,7 @@ - + >
    @@ -209,8 +211,7 @@ [formControlName]="node.question.key" [id]="node.question.key + 'id'" [question]="node.question" - > - + >
    @@ -220,6 +221,7 @@ *ngSwitchCase="'select'" [formControlName]="node.question.key" [id]="node.question.key + 'id'" + [invalid]="node.control.touched && !node.control.valid" >