Browse Source
Merge pull request #9260 from vvlladd28/improvement/string-items/ontouch-hint-style
Added default color for mat-hint; Added onTouch event for string items list component
pull/9264/head
Igor Kulikov
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with
9 additions and
2 deletions
-
ui-ngx/src/app/shared/components/string-items-list.component.html
-
ui-ngx/src/app/shared/components/string-items-list.component.ts
-
ui-ngx/src/theme-overwrites.scss
|
|
|
@ -29,6 +29,7 @@ |
|
|
|
<mat-icon matChipRemove *ngIf="!disabled">close</mat-icon> |
|
|
|
</mat-chip-row> |
|
|
|
<input matInput type="text" |
|
|
|
(blur)="onTouched()" |
|
|
|
placeholder="{{ placeholder }}" |
|
|
|
style="max-width: 300px;min-width: 250px" |
|
|
|
#stringItemInput |
|
|
|
|
|
|
|
@ -120,8 +120,8 @@ export class StringItemsListComponent implements ControlValueAccessor, OnInit { |
|
|
|
return this.stringItemsForm.get('item'); |
|
|
|
} |
|
|
|
|
|
|
|
private propagateChange = (v: any) => { |
|
|
|
}; |
|
|
|
onTouched = () => {}; |
|
|
|
private propagateChange: (value: any) => void = () => {}; |
|
|
|
private dirty = false; |
|
|
|
|
|
|
|
constructor(private fb: FormBuilder) { |
|
|
|
@ -159,6 +159,7 @@ export class StringItemsListComponent implements ControlValueAccessor, OnInit { |
|
|
|
} |
|
|
|
|
|
|
|
registerOnTouched(fn: any): void { |
|
|
|
this.onTouched = fn; |
|
|
|
} |
|
|
|
|
|
|
|
setDisabledState(isDisabled: boolean): void { |
|
|
|
|
|
|
|
@ -52,6 +52,11 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
.mat-mdc-form-field { |
|
|
|
.mat-mdc-form-field-hint-wrapper { |
|
|
|
color: rgba(0, 0, 0, 0.6); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@mixin _mat-button-overwrites($primary, $config-or-theme) { |
|
|
|
|