Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update taiga-ui family dependencies to v4 (major) - autoclosed #948

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion apps/demo/src/app/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@
/>
</a>

<!-- 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/ng-morph"
rel="noreferrer"
target="_blank"
tuiLink
tuiMode="onLight"
tuiTheme="light"
class="github-link"
>
<img
Expand Down
6 changes: 3 additions & 3 deletions apps/demo/src/app/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiDocMainModule} 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 {HighlightModule} from 'ngx-highlightjs';

@Component({
standalone: true,
selector: 'app-root',
imports: [HighlightModule, TuiDocMainModule, TuiLinkModule],
imports: [HighlightModule, TuiAddonDoc, TuiLink],
templateUrl: './app.component.html',
styleUrls: ['./app.component.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
6 changes: 3 additions & 3 deletions apps/demo/src/app/getting-started/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {RouterLink} from '@angular/router';
import {TuiDocCodeModule, TuiDocPageModule} from '@taiga-ui/addon-doc';
import {TuiLinkModule} from '@taiga-ui/core';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';
import {TuiLink} from '@taiga-ui/core';

const script = `import {
setActiveProject,
Expand Down Expand Up @@ -131,7 +131,7 @@ describe('ng-add', () => {
@Component({
standalone: true,
selector: 'getting-started',
imports: [RouterLink, TuiDocCodeModule, TuiDocPageModule, TuiLinkModule],
imports: [RouterLink, TuiAddonDoc, TuiLink],
templateUrl: './index.html',
styles: [':host {max-width: 1200px}'],
changeDetection: ChangeDetectionStrategy.OnPush,
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/src/app/logo/index.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({
standalone: true,
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
4 changes: 2 additions & 2 deletions apps/demo/src/app/pages/classes/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiDocCodeModule, TuiDocPageModule} from '@taiga-ui/addon-doc';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';

import {ACCESSORS_SAMPLES} from './samples/accessors';
import {CONSTRUCTORS_SAMPLES} from './samples/constructors';
Expand Down Expand Up @@ -77,7 +77,7 @@ saveActiveProject();

@Component({
standalone: true,
imports: [TuiDocCodeModule, TuiDocPageModule],
imports: [TuiAddonDoc],
templateUrl: './index.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/src/app/pages/enums/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiDocCodeModule, TuiDocPageModule} from '@taiga-ui/addon-doc';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';

const code = `import {
addEnums,
Expand Down Expand Up @@ -37,7 +37,7 @@ saveActiveProject();

@Component({
standalone: true,
imports: [TuiDocCodeModule, TuiDocPageModule],
imports: [TuiAddonDoc],
templateUrl: './index.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/src/app/pages/functions/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiAddonDocModule} from '@taiga-ui/addon-doc';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';

const code = `import {
addFunctions,
Expand Down Expand Up @@ -33,7 +33,7 @@ saveActiveProject();

@Component({
standalone: true,
imports: [TuiAddonDocModule],
imports: [TuiAddonDoc],
templateUrl: './index.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/src/app/pages/get-bootstrap-function/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiDocCodeModule, TuiDocPageModule} from '@taiga-ui/addon-doc';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';

const bootstrap = `import {
getBootstrapFn,
Expand Down Expand Up @@ -36,7 +36,7 @@ addProviderToBootstrapApplicationFn(bootstrapFn, 'provideRouter()');

@Component({
standalone: true,
imports: [TuiDocCodeModule, TuiDocPageModule],
imports: [TuiAddonDoc],
templateUrl: './index.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/src/app/pages/get-main-module/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiAddonDocModule, TuiDocPageModule} from '@taiga-ui/addon-doc';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';

const code = `import {
getMainModule
Expand All @@ -13,7 +13,7 @@ const classDeclaration = getMainModule('src/main.ts');

@Component({
standalone: true,
imports: [TuiAddonDocModule, TuiDocPageModule],
imports: [TuiAddonDoc],
templateUrl: './index.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/src/app/pages/imports-and-exports/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiDocCodeModule, TuiDocPageModule} from '@taiga-ui/addon-doc';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';

const imports = `import {
addImports,
Expand Down Expand Up @@ -88,7 +88,7 @@ saveActiveProject();

@Component({
standalone: true,
imports: [TuiDocCodeModule, TuiDocPageModule],
imports: [TuiAddonDoc],
templateUrl: './index.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
Expand Down
6 changes: 3 additions & 3 deletions apps/demo/src/app/pages/inject-sample/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiDocCodeModule, TuiDocPageModule} from '@taiga-ui/addon-doc';
import {TuiLinkModule} from '@taiga-ui/core';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';
import {TuiLink} from '@taiga-ui/core';

const example = `import {
setActiveProject,
Expand Down Expand Up @@ -72,7 +72,7 @@ function fixInjectImport(file: string) {

@Component({
standalone: true,
imports: [TuiDocCodeModule, TuiDocPageModule, TuiLinkModule],
imports: [TuiAddonDoc, TuiLink],
templateUrl: './index.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/src/app/pages/interfaces/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiDocCodeModule, TuiDocPageModule} from '@taiga-ui/addon-doc';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';

const interfaces = `import {
addInterfaces,
Expand Down Expand Up @@ -31,7 +31,7 @@ saveActiveProject();

@Component({
standalone: true,
imports: [TuiDocCodeModule, TuiDocPageModule],
imports: [TuiAddonDoc],
templateUrl: './index.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/src/app/pages/source-files/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiDocCodeModule, TuiDocPageModule} from '@taiga-ui/addon-doc';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';

const code = `import {
createSourceFile,
Expand All @@ -24,7 +24,7 @@ saveActiveProject();

@Component({
standalone: true,
imports: [TuiDocCodeModule, TuiDocPageModule],
imports: [TuiAddonDoc],
templateUrl: './index.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/src/app/pages/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiDocCodeModule, TuiDocPageModule} from '@taiga-ui/addon-doc';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';

const types = `import {
addTypeAliases,
Expand Down Expand Up @@ -31,7 +31,7 @@ saveActiveProject();

@Component({
standalone: true,
imports: [TuiDocCodeModule, TuiDocPageModule],
imports: [TuiAddonDoc],
templateUrl: './index.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
Expand Down
4 changes: 2 additions & 2 deletions apps/demo/src/app/pages/variables/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiAddonDocModule} from '@taiga-ui/addon-doc';
import {TuiAddonDoc} from '@taiga-ui/addon-doc';

const code = `import {
addVariables,
Expand Down Expand Up @@ -36,7 +36,7 @@ saveActiveProject();
@Component({
standalone: true,
selector: 'variables',
imports: [TuiAddonDocModule],
imports: [TuiAddonDoc],
templateUrl: './index.html',
changeDetection: ChangeDetectionStrategy.OnPush,
})
Expand Down
5 changes: 3 additions & 2 deletions apps/demo/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
} from '@angular/platform-browser/animations';
import {PreloadAllModules, provideRouter, withPreloading} from '@angular/router';
import {TUI_DOC_LOGO, TUI_DOC_PAGES} from '@taiga-ui/addon-doc';
import {TuiRootModule} from '@taiga-ui/core';
import {NG_EVENT_PLUGINS} from '@taiga-ui/event-plugins';

import {AppComponent} from './app/app.component';
import {LOGO_CONTENT} from './app/logo';
Expand All @@ -15,7 +15,7 @@ import {ROUTES} from './app/routes';

bootstrapApplication(AppComponent, {
providers: [
importProvidersFrom(BrowserModule, BrowserAnimationsModule, TuiRootModule),
importProvidersFrom(BrowserModule, BrowserAnimationsModule),
provideRouter(ROUTES, withPreloading(PreloadAllModules)),
{
provide: TUI_DOC_LOGO,
Expand All @@ -26,5 +26,6 @@ bootstrapApplication(AppComponent, {
useValue: pages,
},
provideAnimations(),
NG_EVENT_PLUGINS,
],
}).catch((e: unknown) => console.error(e));
6 changes: 3 additions & 3 deletions apps/demo/src/styles.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ li {
}

code {
background: var(--tui-base-02);
color: var(--tui-link);
background: var(--tui-background-base-alt);
color: var(--tui-text-action);
vertical-align: middle;
box-shadow: inset 0 -2px var(--tui-secondary);
box-shadow: inset 0 -2px var(--tui-background-neutral-1);
padding: 0.375rem 0.5rem;
font-size: 0.875rem;
border-radius: 0.5rem;
Expand Down
Loading
Loading