angular update 14.1.2

This commit is contained in:
2022-08-14 23:09:05 +02:00
parent 01fb6ab144
commit 829786cbed
22 changed files with 10448 additions and 10835 deletions

View File

@@ -1,5 +1,5 @@
import {Component, Input} from '@angular/core';
import {FormControl} from '@angular/forms';
import {UntypedFormControl} from '@angular/forms';
import {filterSong} from '../../../services/filter.helper';
import {MatSelectChange} from '@angular/material/select';
import {Song} from '../../../modules/songs/services/song';
@@ -18,7 +18,7 @@ export class AddSongComponent {
@Input() public showSongs: ShowSong[] | null = null;
@Input() public show: Show | null = null;
@Input() public addedLive = false;
public filteredSongsControl = new FormControl();
public filteredSongsControl = new UntypedFormControl();
public constructor(private showSongService: ShowSongService, private showService: ShowService) {}
@@ -45,7 +45,7 @@ export class AddSongComponent {
public async onAddSongSelectionChanged(event: MatSelectChange): Promise<void> {
if (!this.show) return;
const newId = await this.showSongService.new$(this.show?.id, event.value, this.addedLive);
const newId = await this.showSongService.new$(this.show?.id, event.value as string, this.addedLive);
await this.showService.update$(this.show?.id, {order: [...this.show.order, newId ?? '']});
event.source.value = null;
}

View File

@@ -1,6 +1,6 @@
import {Component, Input} from '@angular/core';
import {IconProp} from '@fortawesome/fontawesome-svg-core';
import {faCross} from '@fortawesome/free-solid-svg-icons/faCross';
import {faCross} from '@fortawesome/free-solid-svg-icons';
@Component({
selector: 'app-link',

View File

@@ -1,8 +1,7 @@
import {Component} from '@angular/core';
import {faMusic, faPersonBooth, faUserCog} from '@fortawesome/free-solid-svg-icons';
import {faChalkboard, faMusic, faPersonBooth, faUserCog} from '@fortawesome/free-solid-svg-icons';
import {fromEvent, Observable} from 'rxjs';
import {distinctUntilChanged, map, shareReplay, startWith} from 'rxjs/operators';
import {faChalkboard} from '@fortawesome/free-solid-svg-icons/faChalkboard';
@Component({
selector: 'app-navigation',

View File

@@ -1,6 +1,6 @@
import {Component, Input} from '@angular/core';
import {IconProp} from '@fortawesome/fontawesome-svg-core';
import {faCross} from '@fortawesome/free-solid-svg-icons/faCross';
import {faCross} from '@fortawesome/free-solid-svg-icons';
@Component({
selector: 'app-button',

View File

@@ -56,7 +56,8 @@
}
.chord {
color: #009;
color: #00b;
font-weight: bold;
}
.offset {

View File

@@ -1,6 +1,6 @@
import {Component, ElementRef, EventEmitter, Input, OnInit, Output, QueryList, ViewChildren} from '@angular/core';
import {TextRenderingService} from '../../../modules/songs/services/text-rendering.service';
import {faGripLines} from '@fortawesome/free-solid-svg-icons/faGripLines';
import {faGripLines} from '@fortawesome/free-solid-svg-icons';
import {songSwitch} from './animation';
import {TransposeMode} from '../../../modules/songs/services/transpose-mode';
import {SectionType} from '../../../modules/songs/services/section-type';