Skip to content

Commit

Permalink
bump to angular 14
Browse files Browse the repository at this point in the history
  • Loading branch information
ml054 committed Dec 19, 2023
1 parent 243470d commit f9d4e2d
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 26 deletions.
39 changes: 20 additions & 19 deletions front-end/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions front-end/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
"private": true,
"dependencies": {
"@angular/animations": "^14.3.0",
"@angular/cdk": "^12.0.2",
"@angular/cdk": "^14.2.7",
"@angular/common": "^14.3.0",
"@angular/compiler": "^14.3.0",
"@angular/core": "^14.3.0",
"@angular/forms": "^14.3.0",
"@angular/material": "^12.0.2",
"@angular/material": "^14.2.7",
"@angular/platform-browser": "^14.3.0",
"@angular/platform-browser-dynamic": "^14.3.0",
"@angular/router": "^14.3.0",
Expand Down Expand Up @@ -48,4 +48,4 @@
"tslint": "^6.1.3",
"typescript": "~4.6.4"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class TagsComponent extends CustomFormControlBase<string[]> {
}

add(event: MatChipInputEvent): void {
const input = event.input;
const input = event.chipInput?.inputElement;
const value = event.value;

// Add a new tag
Expand All @@ -59,6 +59,12 @@ export class TagsComponent extends CustomFormControlBase<string[]> {
}

selected(event: MatAutocompleteSelectedEvent): void {
this.add({ input: this.tagsInput.nativeElement, value: event.option.viewValue });
const value = event.option.viewValue;
if ((value || '').trim()) {
this.mainControl.setValue([...this.mainControl.value, value.trim()]);
this.mainControl.updateValueAndValidity();
}

this.tagsInput.nativeElement.value = '';
}
}
4 changes: 2 additions & 2 deletions front-end/src/styles/styles.scss
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
@use '~@angular/material' as mat;
@use '@angular/material' as mat;
@import url('//fonts.googleapis.com/icon?family=Material+Icons|Material+Icons+Outlined');
@import url('//fonts.googleapis.com/css?family=Roboto:300,400,500&display=swap');

@import 'theme';

/*
/*
Theming guidance - https://material.angular.io/guide/theming-your-components
*/
// Include non-theme styles for core.
Expand Down

0 comments on commit f9d4e2d

Please sign in to comment.