chore: update Angular build cache and TypeScript definitions

This commit is contained in:
2025-09-28 07:13:09 -04:00
parent 53bef252d9
commit f68440656e
13 changed files with 397 additions and 89 deletions
@@ -20,7 +20,7 @@ import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';
import { MarkdownCalendarService } from '../../services/markdown-calendar.service';
import { FileMetadata } from '../../types';
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
import { Observable, Subject } from 'rxjs';
import { Observable, Subject, Subscription } from 'rxjs';
interface DayBucket {
created: FileMetadata[];
@@ -77,6 +77,7 @@ export class MarkdownCalendarComponent {
private dragAnchor: Date | null = null;
private searchRequestId = 0;
private searchSubscription: Subscription | null = null;
constructor() {
this.loadMetadata();
@@ -193,12 +194,13 @@ export class MarkdownCalendarComponent {
private runSearch(source$: Observable<FileMetadata[]>): void {
const token = ++this.searchRequestId;
this.searchSubscription?.unsubscribe();
this.isSearching.set(true);
this.searchError.set(null);
this.searchStateChange.emit('loading');
this.searchErrorChange.emit(null);
source$.subscribe({
this.searchSubscription = source$.subscribe({
next: (files: FileMetadata[]) => {
if (token !== this.searchRequestId) {
return;