Skip to content

Commit

Permalink
chore(deps): update taiga-ui
Browse files Browse the repository at this point in the history
  • Loading branch information
taiga-family-bot authored and splincode committed Mar 14, 2024
1 parent 5dfc4dd commit 140600b
Show file tree
Hide file tree
Showing 7 changed files with 5,270 additions and 3,105 deletions.
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

3 changes: 2 additions & 1 deletion apps/demo/src/app/app.config.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {ApplicationConfig, mergeApplicationConfig} from '@angular/core';
import type {ApplicationConfig} from '@angular/core';
import {mergeApplicationConfig} from '@angular/core';
import {provideServerRendering} from '@angular/platform-server';
import {UNIVERSAL_PROVIDERS} from '@ng-web-apis/universal';

Expand Down
3 changes: 2 additions & 1 deletion apps/demo/src/app/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import {ApplicationConfig, importProvidersFrom} from '@angular/core';
import type {ApplicationConfig} from '@angular/core';
import {importProvidersFrom} from '@angular/core';
import {provideClientHydration} from '@angular/platform-browser';
import {provideAnimations} from '@angular/platform-browser/animations';
import {provideRouter} from '@angular/router';
Expand Down
22 changes: 11 additions & 11 deletions apps/demo/src/app/home/home.component.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
import {CommonModule} from '@angular/common';
import type {TemplateRef} from '@angular/core';
import {
ChangeDetectionStrategy,
ChangeDetectorRef,
Component,
inject,
SecurityContext,
TemplateRef,
ViewEncapsulation,
} from '@angular/core';
import {FormsModule} from '@angular/forms';
import {TuiDay} from '@taiga-ui/cdk';
import type {TuiDay} from '@taiga-ui/cdk';
import {
TuiButtonModule,
TuiCalendarModule,
Expand Down Expand Up @@ -61,17 +61,17 @@ export default class HomeComponent {
private readonly dialogs = inject(TuiDialogService);
private readonly cd = inject(ChangeDetectorRef);

readonly labels = ['New', 'Read', 'Archived', 'Junk'];
tags = ['Angular', 'Open source'];
date: TuiDay | null = null;
notification = false;
slider = 80;
protected readonly labels = ['New', 'Read', 'Archived', 'Junk'];
protected tags = ['Angular', 'Open source'];
protected date: TuiDay | null = null;
protected notification = false;
protected slider = 80;

onDay(date: TuiDay): void {
protected onDay(date: TuiDay): void {
this.date = date;
}

call(content: TemplateRef<HTMLElement>): void {
protected call(content: TemplateRef<HTMLElement>): void {
this.dialogs
.open(content, {
appearance: 'call',
Expand All @@ -81,12 +81,12 @@ export default class HomeComponent {
.subscribe();
}

toggle(open: boolean): void {
protected toggle(open: boolean): void {
this.notification = open;
this.cd.detectChanges();
}

purify(value: string): string {
protected purify(value: string): string {
return this.dompurifySanitizer.sanitize(SecurityContext.HTML, value);
}
}
2 changes: 1 addition & 1 deletion apps/demo/src/main.server.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {ApplicationRef} from '@angular/core';
import type {ApplicationRef} from '@angular/core';
import {bootstrapApplication} from '@angular/platform-browser';

import {AppComponent} from './app/app.component';
Expand Down
Loading

0 comments on commit 140600b

Please sign in to comment.