Skip to content

Commit

Permalink
chore(deps): update dependency @ng-web-apis/common to v4
Browse files Browse the repository at this point in the history
  • Loading branch information
taiga-family-bot committed Sep 23, 2024
1 parent d9fcc2e commit 0a8921d
Show file tree
Hide file tree
Showing 21 changed files with 413 additions and 456 deletions.
3 changes: 2 additions & 1 deletion apps/demo/src/app/app.component.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<tui-doc-main>
<ng-container ngProjectAs="tuiDocHeader">
<!-- TODO: (Taiga UI migration) TuiMode has been removed. Please use tuiTheme attribute to set theme https://taiga-ui.dev/directives/theme -->
<a
href="https://github.com/taiga-family/microzord"
target="_blank"
tuiLink
tuiMode="onLight"
tuiTheme="light"
class="link"
>
<img
Expand Down
8 changes: 4 additions & 4 deletions apps/demo/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ import {NgModule} from '@angular/core';
import {BrowserModule} from '@angular/platform-browser';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {RouterModule} from '@angular/router';
import {TUI_DOC_LOGO, TUI_DOC_PAGES, TuiDocMainModule} from '@taiga-ui/addon-doc';
import {TuiLinkModule} from '@taiga-ui/core';
import {TUI_DOC_LOGO, TUI_DOC_PAGES, TuiAddonDoc} from '@taiga-ui/addon-doc';
import {TuiLink} from '@taiga-ui/core';
import {HIGHLIGHT_OPTIONS, HighlightOptions} from 'ngx-highlightjs';

import {AppComponent} from './app.component';
Expand All @@ -26,8 +26,8 @@ export const HIGHLIGHT_OPTIONS_VALUE: HighlightOptions = {
imports: [
BrowserModule,
BrowserAnimationsModule,
TuiDocMainModule,
TuiLinkModule,
...TuiAddonDoc,
TuiLink,
GettingStartedModule,
RouterModule.forRoot(ROUTES, {initialNavigation: 'enabledBlocking'}),
],
Expand Down
15 changes: 7 additions & 8 deletions apps/demo/src/app/getting-started/getting-started.module.ts
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {RouterModule} from '@angular/router';
import {TuiDocCodeModule, TuiDocPageModule} from '@taiga-ui/addon-doc';
import {TuiLinkModule, TuiNotificationModule} from '@taiga-ui/core';
import {TuiIslandModule} from '@taiga-ui/kit';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';
import {TuiLink, TuiNotification} from '@taiga-ui/core';
import {TuiIslandDirective} from '@taiga-ui/legacy';

import {HostChildWarningModule} from '../shared/host-child-warning/host-child-warning.module';
import {GettingStartedComponent} from './getting-started.component';

@NgModule({
imports: [
CommonModule,
TuiDocPageModule,
TuiLinkModule,
TuiDocCodeModule,
...TuiAddonDoc,
TuiLink,
RouterModule,
TuiNotificationModule,
TuiIslandModule,
TuiNotification,
TuiIslandDirective,
HostChildWarningModule,
],
declarations: [GettingStartedComponent],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,10 @@ <h2>What it is about</h2>
</li>
</ul>

<tui-notification class="tui-space_top-4">
<tui-notification
size="m"
class="tui-space_top-4"
>
Some application can host any amount of child apps and be a child for other app at the same time
</tui-notification>

Expand Down
2 changes: 1 addition & 1 deletion apps/demo/src/app/logo/logo.component.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {PolymorpheusComponent} from '@tinkoff/ng-polymorpheus';
import {PolymorpheusComponent} from '@taiga-ui/polymorpheus';

@Component({
selector: 'logo',
Expand Down
10 changes: 3 additions & 7 deletions apps/demo/src/app/modules/angular-child/angular-child.module.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import {NgModule} from '@angular/core';
import {RouterModule} from '@angular/router';
import {TuiAddonDocModule, tuiGenerateRoutes} from '@taiga-ui/addon-doc';
import {TuiLinkModule} from '@taiga-ui/core';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';
import {TuiLink} from '@taiga-ui/core';

import {AngularChildComponent} from './angular-child.component';

@NgModule({
imports: [
TuiLinkModule,
TuiAddonDocModule,
RouterModule.forChild(tuiGenerateRoutes(AngularChildComponent)),
],
imports: [TuiLink, ...TuiAddonDoc, RouterModule],
declarations: [AngularChildComponent],
exports: [AngularChildComponent],
})
Expand Down
10 changes: 3 additions & 7 deletions apps/demo/src/app/modules/angular-host/angular-host.module.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import {NgModule} from '@angular/core';
import {RouterModule} from '@angular/router';
import {TuiAddonDocModule, tuiGenerateRoutes} from '@taiga-ui/addon-doc';
import {TuiLinkModule} from '@taiga-ui/core';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';
import {TuiLink} from '@taiga-ui/core';

import {AngularHostComponent} from './angular-host.component';

@NgModule({
imports: [
TuiLinkModule,
TuiAddonDocModule,
RouterModule.forChild(tuiGenerateRoutes(AngularHostComponent)),
],
imports: [TuiLink, ...TuiAddonDoc, RouterModule],
declarations: [AngularHostComponent],
exports: [AngularHostComponent],
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
import {NgModule} from '@angular/core';
import {RouterModule} from '@angular/router';
import {TuiAddonDocModule, tuiGenerateRoutes} from '@taiga-ui/addon-doc';
import {TuiLinkModule} from '@taiga-ui/core';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';
import {TuiLink} from '@taiga-ui/core';

import {HostChildWarningModule} from '../../shared/host-child-warning/host-child-warning.module';
import {AngularInstallationComponent} from './angular-installation.component';

@NgModule({
imports: [
TuiLinkModule,
TuiAddonDocModule,
HostChildWarningModule,
RouterModule.forChild(tuiGenerateRoutes(AngularInstallationComponent)),
],
imports: [TuiLink, ...TuiAddonDoc, HostChildWarningModule, RouterModule],
declarations: [AngularInstallationComponent],
exports: [AngularInstallationComponent],
})
Expand Down
11 changes: 3 additions & 8 deletions apps/demo/src/app/modules/application/application.module.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,12 @@
import {NgModule} from '@angular/core';
import {RouterModule} from '@angular/router';
import {TuiAddonDocModule, tuiGenerateRoutes} from '@taiga-ui/addon-doc';
import {TuiLinkModule, TuiNotificationModule} from '@taiga-ui/core';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';
import {TuiLink, TuiNotification} from '@taiga-ui/core';

import {ApplicationComponent} from './application.component';

@NgModule({
imports: [
TuiLinkModule,
TuiAddonDocModule,
TuiNotificationModule,
RouterModule.forChild(tuiGenerateRoutes(ApplicationComponent)),
],
imports: [TuiLink, ...TuiAddonDoc, TuiNotification, RouterModule],
declarations: [ApplicationComponent],
exports: [ApplicationComponent],
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<p>It can give you more flexability in interaction between complex apps if needed.</p>

<tui-notification
status="warning"
appearance="warning"
size="m"
class="tui-space_top-8"
>
Be careful, if you need this in your not native application, something probably is going wrong.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import {NgModule} from '@angular/core';
import {RouterModule} from '@angular/router';
import {TuiAddonDocModule, tuiGenerateRoutes} from '@taiga-ui/addon-doc';
import {TuiLinkModule} from '@taiga-ui/core';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';
import {TuiLink} from '@taiga-ui/core';

import {NativeInstallationComponent} from './native-installation.component';

@NgModule({
imports: [
TuiLinkModule,
TuiAddonDocModule,
RouterModule.forChild(tuiGenerateRoutes(NativeInstallationComponent)),
],
imports: [TuiLink, ...TuiAddonDoc, RouterModule],
declarations: [NativeInstallationComponent],
exports: [NativeInstallationComponent],
})
Expand Down
10 changes: 3 additions & 7 deletions apps/demo/src/app/modules/react-child/react-child.module.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import {NgModule} from '@angular/core';
import {RouterModule} from '@angular/router';
import {TuiAddonDocModule, tuiGenerateRoutes} from '@taiga-ui/addon-doc';
import {TuiLinkModule} from '@taiga-ui/core';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';
import {TuiLink} from '@taiga-ui/core';

import {ReactChildComponent} from './react-child.component';

@NgModule({
imports: [
TuiLinkModule,
TuiAddonDocModule,
RouterModule.forChild(tuiGenerateRoutes(ReactChildComponent)),
],
imports: [TuiLink, ...TuiAddonDoc, RouterModule],
declarations: [ReactChildComponent],
exports: [ReactChildComponent],
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
import {NgModule} from '@angular/core';
import {RouterModule} from '@angular/router';
import {TuiAddonDocModule, tuiGenerateRoutes} from '@taiga-ui/addon-doc';
import {TuiLinkModule} from '@taiga-ui/core';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';
import {TuiLink} from '@taiga-ui/core';

import {ReactInstallationComponent} from './react-installation.component';

@NgModule({
imports: [
TuiLinkModule,
TuiAddonDocModule,
RouterModule.forChild(tuiGenerateRoutes(ReactInstallationComponent)),
],
imports: [TuiLink, ...TuiAddonDoc, RouterModule],
declarations: [ReactInstallationComponent],
exports: [ReactInstallationComponent],
})
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/src/app/pages.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type {TuiDocPages} from '@taiga-ui/addon-doc';
import type {TuiDocRoutePages} from '@taiga-ui/addon-doc';

export const pages: TuiDocPages = [
export const pages: TuiDocRoutePages = [
{
section: 'Starting',
title: 'Getting started',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import {NgModule} from '@angular/core';
import {TuiNotificationModule} from '@taiga-ui/core';
import {TuiNotification} from '@taiga-ui/core';

import {HostChildWarningComponent} from './host-child-warning.component';

@NgModule({
imports: [TuiNotificationModule],
imports: [TuiNotification],
declarations: [HostChildWarningComponent],
exports: [HostChildWarningComponent],
})
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<tui-notification>The application can be a host and a child at the same time</tui-notification>
<tui-notification size="m">The application can be a host and a child at the same time</tui-notification>
4 changes: 2 additions & 2 deletions apps/host/src/app/app.component.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
}

.embed-container {
border: 2px var(--tui-support-02) dashed;
border: 2px var(--tui-chart-categorical-02) dashed;
padding: 0 1rem 1rem;
margin-bottom: 1rem;
}

.embedded {
border: 2px var(--tui-support-05) dashed;
border: 2px var(--tui-chart-categorical-05) dashed;

&:not(:last-child) {
margin-bottom: 1rem;
Expand Down
4 changes: 2 additions & 2 deletions apps/host/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,9 @@ export class AppComponent {
console.log(`${event.target?.name}: ${event.type}`);
this.alertService
.open(event.type, {
hasIcon: false,
icon: '',
label: event.target?.name,
status: 'info',
appearance: 'info',
})
.subscribe();
this.cdr.detectChanges();
Expand Down
9 changes: 5 additions & 4 deletions apps/host/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {BrowserModule} from '@angular/platform-browser';
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
import {RouterModule} from '@angular/router';
import {MicrozordHostModule} from '@microzord/angular';
import {TuiAlertModule, TuiRootModule} from '@taiga-ui/core';
import {TuiAlert, TuiRoot} from '@taiga-ui/core';
import {NG_EVENT_PLUGINS} from '@taiga-ui/event-plugins';

import {AppComponent} from './app.component';

Expand All @@ -14,8 +15,8 @@ import {AppComponent} from './app.component';
BrowserAnimationsModule,
RouterModule.forRoot([], {initialNavigation: 'enabledBlocking'}),
HttpClientModule,
TuiRootModule,
TuiAlertModule,
TuiRoot,
TuiAlert,
MicrozordHostModule.register({
modules: [
{
Expand All @@ -42,7 +43,7 @@ import {AppComponent} from './app.component';
}),
],
declarations: [AppComponent],
providers: [{provide: 'some-token', useValue: 'true'}],
providers: [{provide: 'some-token', useValue: 'true'}, NG_EVENT_PLUGINS],
bootstrap: [AppComponent],
})
export class AppModule {}
Loading

0 comments on commit 0a8921d

Please sign in to comment.