diff --git a/code/frameworks/angular/package.json b/code/frameworks/angular/package.json index 775ccf58bbdd..6ebca5e1677c 100644 --- a/code/frameworks/angular/package.json +++ b/code/frameworks/angular/package.json @@ -81,17 +81,17 @@ "zone.js": "^0.14.2" }, "peerDependencies": { - "@angular-devkit/architect": ">=0.1500.0 < 0.1900.0", - "@angular-devkit/build-angular": ">=15.0.0 < 19.0.0", - "@angular-devkit/core": ">=15.0.0 < 19.0.0", - "@angular/cli": ">=15.0.0 < 19.0.0", - "@angular/common": ">=15.0.0 < 19.0.0", - "@angular/compiler": ">=15.0.0 < 19.0.0", - "@angular/compiler-cli": ">=15.0.0 < 19.0.0", - "@angular/core": ">=15.0.0 < 19.0.0", - "@angular/forms": ">=15.0.0 < 19.0.0", - "@angular/platform-browser": ">=15.0.0 < 19.0.0", - "@angular/platform-browser-dynamic": ">=15.0.0 < 19.0.0", + "@angular-devkit/architect": ">=0.1500.0 < 0.2000.0", + "@angular-devkit/build-angular": ">=15.0.0 < 20.0.0", + "@angular-devkit/core": ">=15.0.0 < 20.0.0", + "@angular/cli": ">=15.0.0 < 20.0.0", + "@angular/common": ">=15.0.0 < 20.0.0", + "@angular/compiler": ">=15.0.0 < 20.0.0", + "@angular/compiler-cli": ">=15.0.0 < 20.0.0", + "@angular/core": ">=15.0.0 < 20.0.0", + "@angular/forms": ">=15.0.0 < 20.0.0", + "@angular/platform-browser": ">=15.0.0 < 20.0.0", + "@angular/platform-browser-dynamic": ">=15.0.0 < 20.0.0", "rxjs": "^6.0.0 || ^7.4.0", "storybook": "workspace:^", "typescript": "^4.0.0 || ^5.0.0", diff --git a/code/frameworks/angular/template/components/button.component.ts b/code/frameworks/angular/template/components/button.component.ts index 7a0fc8e8408a..4407ead9b050 100644 --- a/code/frameworks/angular/template/components/button.component.ts +++ b/code/frameworks/angular/template/components/button.component.ts @@ -1,6 +1,7 @@ import { Component, Input, Output, EventEmitter } from '@angular/core'; @Component({ + standalone: false, // Needs to be a different name to the CLI template button selector: 'storybook-framework-button', template: ` `, }) diff --git a/code/frameworks/angular/template/stories/basics/component-with-inheritance/icon-button.component.ts b/code/frameworks/angular/template/stories/basics/component-with-inheritance/icon-button.component.ts index 3994a3de2a97..4dfc63e09c8a 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-inheritance/icon-button.component.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-inheritance/icon-button.component.ts @@ -2,6 +2,7 @@ import { Component, Input } from '@angular/core'; import { BaseButtonComponent } from './base-button.component'; @Component({ + standalone: false, selector: `storybook-icon-button`, template: ` `, }) diff --git a/code/frameworks/angular/template/stories/basics/component-with-ng-content/ng-content-about-parent.stories.ts b/code/frameworks/angular/template/stories/basics/component-with-ng-content/ng-content-about-parent.stories.ts index f8185f8eb80a..9f54986c6cc5 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-ng-content/ng-content-about-parent.stories.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-ng-content/ng-content-about-parent.stories.ts @@ -2,6 +2,7 @@ import { Component, Input } from '@angular/core'; import { componentWrapperDecorator, Meta, StoryObj } from '@storybook/angular'; @Component({ + standalone: false, selector: 'sb-button', template: ``, styles: [ diff --git a/code/frameworks/angular/template/stories/basics/component-with-ng-content/ng-content-simple.stories.ts b/code/frameworks/angular/template/stories/basics/component-with-ng-content/ng-content-simple.stories.ts index cc6bd1ccf6e2..775a895aa5dc 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-ng-content/ng-content-simple.stories.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-ng-content/ng-content-simple.stories.ts @@ -3,6 +3,7 @@ import { Component } from '@angular/core'; import { Meta, StoryObj } from '@storybook/angular'; @Component({ + standalone: false, selector: 'storybook-with-ng-content', template: `Content value:
`, diff --git a/code/frameworks/angular/template/stories/basics/component-with-ng-on-destroy/component-with-on-destroy.stories.ts b/code/frameworks/angular/template/stories/basics/component-with-ng-on-destroy/component-with-on-destroy.stories.ts index 24edd068f7f1..8ccc180b991b 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-ng-on-destroy/component-with-on-destroy.stories.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-ng-on-destroy/component-with-on-destroy.stories.ts @@ -2,6 +2,7 @@ import { OnDestroy, OnInit, Component } from '@angular/core'; import { Meta, StoryObj } from '@storybook/angular'; @Component({ + standalone: false, selector: 'on-destroy', template: `Current time: {{ time }}
📝 The current time in console should no longer display after a change of story`, diff --git a/code/frameworks/angular/template/stories/basics/component-with-on-push/on-push-box.component.ts b/code/frameworks/angular/template/stories/basics/component-with-on-push/on-push-box.component.ts index b6bf293f1b0e..9d8a86aa67fb 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-on-push/on-push-box.component.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-on-push/on-push-box.component.ts @@ -1,6 +1,7 @@ import { Component, Input, ChangeDetectionStrategy, HostBinding } from '@angular/core'; @Component({ + standalone: false, selector: 'storybook-on-push-box', template: ` Word of the day: {{ word }} `, styles: [ diff --git a/code/frameworks/angular/template/stories/basics/component-with-pipe/custom-pipes.stories.ts b/code/frameworks/angular/template/stories/basics/component-with-pipe/custom-pipes.stories.ts index 1c83974691d0..9a4a8e53c577 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-pipe/custom-pipes.stories.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-pipe/custom-pipes.stories.ts @@ -11,8 +11,6 @@ const meta: Meta = { declarations: [CustomPipePipe], }), ], - tags: ['!test', '!vitest'], - parameters: { chromatic: { disable: true } }, }; export default meta; diff --git a/code/frameworks/angular/template/stories/basics/component-with-pipe/custom.pipe.ts b/code/frameworks/angular/template/stories/basics/component-with-pipe/custom.pipe.ts index 0038bd609241..e588751b936e 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-pipe/custom.pipe.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-pipe/custom.pipe.ts @@ -1,6 +1,7 @@ import { PipeTransform, Pipe } from '@angular/core'; @Pipe({ + standalone: false, name: 'customPipe', }) export class CustomPipePipe implements PipeTransform { diff --git a/code/frameworks/angular/template/stories/basics/component-with-pipe/with-pipe.component.ts b/code/frameworks/angular/template/stories/basics/component-with-pipe/with-pipe.component.ts index 4582170ecf73..12ec82171649 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-pipe/with-pipe.component.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-pipe/with-pipe.component.ts @@ -1,6 +1,7 @@ import { Component, Input } from '@angular/core'; @Component({ + standalone: false, selector: 'storybook-with-pipe', template: `

{{ field | customPipe }}

`, }) diff --git a/code/frameworks/angular/template/stories/basics/component-with-provider/di.component.ts b/code/frameworks/angular/template/stories/basics/component-with-provider/di.component.ts index e3e8a28ac18f..c840bf64a4a6 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-provider/di.component.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-provider/di.component.ts @@ -4,6 +4,7 @@ import { stringify } from 'telejson'; export const TEST_TOKEN = new InjectionToken('test'); @Component({ + standalone: false, selector: 'storybook-di-component', templateUrl: './di.component.html', providers: [{ provide: TEST_TOKEN, useValue: 123 }], diff --git a/code/frameworks/angular/template/stories/basics/component-with-style/styled.component.ts b/code/frameworks/angular/template/stories/basics/component-with-style/styled.component.ts index 6cdb0a9a627b..63ac3c56b07e 100644 --- a/code/frameworks/angular/template/stories/basics/component-with-style/styled.component.ts +++ b/code/frameworks/angular/template/stories/basics/component-with-style/styled.component.ts @@ -1,6 +1,7 @@ import { Component } from '@angular/core'; @Component({ + standalone: false, selector: 'storybook-styled-component', templateUrl: './styled.component.html', styleUrls: ['./styled.component.css', './styled.component.scss'], diff --git a/code/frameworks/angular/template/stories/basics/component-without-selector/without-selector-ng-component-outlet.stories.ts b/code/frameworks/angular/template/stories/basics/component-without-selector/without-selector-ng-component-outlet.stories.ts index 5518e437763e..64347d989fc1 100644 --- a/code/frameworks/angular/template/stories/basics/component-without-selector/without-selector-ng-component-outlet.stories.ts +++ b/code/frameworks/angular/template/stories/basics/component-without-selector/without-selector-ng-component-outlet.stories.ts @@ -19,6 +19,7 @@ type Story = StoryObj; // Advanced example with custom *ngComponentOutlet @Component({ + standalone: false, selector: 'ng-component-outlet-wrapper', template: `{{ name }} `, diff --git a/code/frameworks/angular/template/stories/basics/ng-module/angular-src/chip-text.pipe.ts b/code/frameworks/angular/template/stories/basics/ng-module/angular-src/chip-text.pipe.ts index 0d628239d07b..9c6f1745063a 100644 --- a/code/frameworks/angular/template/stories/basics/ng-module/angular-src/chip-text.pipe.ts +++ b/code/frameworks/angular/template/stories/basics/ng-module/angular-src/chip-text.pipe.ts @@ -1,6 +1,7 @@ import { PipeTransform, Pipe } from '@angular/core'; @Pipe({ + standalone: false, name: 'chipText', }) export class ChipTextPipe implements PipeTransform { diff --git a/code/frameworks/angular/template/stories/basics/ng-module/angular-src/chip.component.ts b/code/frameworks/angular/template/stories/basics/ng-module/angular-src/chip.component.ts index 52546084465a..7804fe73fbd7 100644 --- a/code/frameworks/angular/template/stories/basics/ng-module/angular-src/chip.component.ts +++ b/code/frameworks/angular/template/stories/basics/ng-module/angular-src/chip.component.ts @@ -2,6 +2,7 @@ import { Component, Input, Output, EventEmitter, Inject, HostBinding } from '@an import { CHIP_COLOR } from './chip-color.token'; @Component({ + standalone: false, selector: 'storybook-chip', template: ` {{ displayText | chipText }} diff --git a/code/frameworks/angular/template/stories/basics/ng-module/angular-src/chips-group.component.ts b/code/frameworks/angular/template/stories/basics/ng-module/angular-src/chips-group.component.ts index 98131407a01c..fa56aca48860 100644 --- a/code/frameworks/angular/template/stories/basics/ng-module/angular-src/chips-group.component.ts +++ b/code/frameworks/angular/template/stories/basics/ng-module/angular-src/chips-group.component.ts @@ -1,6 +1,7 @@ import { Component, Input, Output, EventEmitter } from '@angular/core'; @Component({ + standalone: false, selector: 'storybook-chips-group', template: ` = { imports: [ChipsModule], }), ], - tags: ['!test', '!vitest'], - parameters: { chromatic: { disable: true } }, }; export default meta; diff --git a/code/frameworks/angular/template/stories/basics/ng-module/import-module-for-root.stories.ts b/code/frameworks/angular/template/stories/basics/ng-module/import-module-for-root.stories.ts index f3768cc7d3da..73ef9915d437 100644 --- a/code/frameworks/angular/template/stories/basics/ng-module/import-module-for-root.stories.ts +++ b/code/frameworks/angular/template/stories/basics/ng-module/import-module-for-root.stories.ts @@ -28,8 +28,6 @@ const meta: Meta = { removeChipClick: { action: 'Remove chip' }, removeAllChipsClick: { action: 'Remove all chips clicked' }, }, - tags: ['!test', '!vitest'], - parameters: { chromatic: { disable: true } }, }; export default meta; diff --git a/code/frameworks/angular/template/stories/basics/ng-module/import-module.stories.ts b/code/frameworks/angular/template/stories/basics/ng-module/import-module.stories.ts index e13c48a43389..b82541424db0 100644 --- a/code/frameworks/angular/template/stories/basics/ng-module/import-module.stories.ts +++ b/code/frameworks/angular/template/stories/basics/ng-module/import-module.stories.ts @@ -11,8 +11,6 @@ const meta: Meta = { imports: [ChipsModule], }), ], - tags: ['!test', '!vitest'], - parameters: { chromatic: { disable: true } }, }; export default meta; diff --git a/code/frameworks/angular/template/stories/button.component.ts b/code/frameworks/angular/template/stories/button.component.ts index 3617f8c59935..0d675ad1a609 100644 --- a/code/frameworks/angular/template/stories/button.component.ts +++ b/code/frameworks/angular/template/stories/button.component.ts @@ -1,6 +1,7 @@ import { Component, Input, Output, EventEmitter } from '@angular/core'; @Component({ + standalone: false, selector: 'storybook-button-component', template: ` `, styles: [ diff --git a/code/frameworks/angular/template/stories/core/decorators/componentWrapperDecorator/child.component.ts b/code/frameworks/angular/template/stories/core/decorators/componentWrapperDecorator/child.component.ts index 5caf5db9cb20..3ac601cf8e86 100644 --- a/code/frameworks/angular/template/stories/core/decorators/componentWrapperDecorator/child.component.ts +++ b/code/frameworks/angular/template/stories/core/decorators/componentWrapperDecorator/child.component.ts @@ -1,6 +1,7 @@ import { Component, Input, Output, EventEmitter } from '@angular/core'; @Component({ + standalone: false, selector: 'child-component', template: ` Child
diff --git a/code/frameworks/angular/template/stories/core/decorators/componentWrapperDecorator/parent.component.ts b/code/frameworks/angular/template/stories/core/decorators/componentWrapperDecorator/parent.component.ts index 20a4447636b5..b32984ebb99a 100644 --- a/code/frameworks/angular/template/stories/core/decorators/componentWrapperDecorator/parent.component.ts +++ b/code/frameworks/angular/template/stories/core/decorators/componentWrapperDecorator/parent.component.ts @@ -1,6 +1,7 @@ import { Component, Input, Output, EventEmitter } from '@angular/core'; @Component({ + standalone: false, selector: 'parent-component', template: ` Parent
diff --git a/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/custom.pipe.ts b/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/custom.pipe.ts index 0038bd609241..e588751b936e 100644 --- a/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/custom.pipe.ts +++ b/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/custom.pipe.ts @@ -1,6 +1,7 @@ import { PipeTransform, Pipe } from '@angular/core'; @Pipe({ + standalone: false, name: 'customPipe', }) export class CustomPipePipe implements PipeTransform { diff --git a/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/open-close-component/open-close.component.ts b/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/open-close-component/open-close.component.ts index db630db4d4b0..4982f166e2a2 100644 --- a/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/open-close-component/open-close.component.ts +++ b/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/open-close-component/open-close.component.ts @@ -2,6 +2,7 @@ import { Component } from '@angular/core'; import { trigger, state, style, transition, animate } from '@angular/animations'; @Component({ + standalone: false, selector: 'app-open-close', animations: [ trigger('openClose', [ diff --git a/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/service.component.ts b/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/service.component.ts index 6e84cb430447..736c6cbff923 100644 --- a/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/service.component.ts +++ b/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/service.component.ts @@ -2,6 +2,7 @@ import { OnInit, Component, Input } from '@angular/core'; import { DummyService } from './dummy.service'; @Component({ + standalone: false, selector: 'storybook-simple-service-component', template: `

{{ name }}:

    diff --git a/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/token.component.ts b/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/token.component.ts index 8268bceaf3c0..df1c85925aac 100644 --- a/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/token.component.ts +++ b/code/frameworks/angular/template/stories/core/moduleMetadata/angular-src/token.component.ts @@ -4,6 +4,7 @@ export const ITEMS = new InjectionToken('TokenComponent.Items'); export const DEFAULT_NAME = new InjectionToken('TokenComponent.DefaultName'); @Component({ + standalone: false, selector: 'storybook-simple-token-component', template: `

    {{ name }}

    diff --git a/code/frameworks/angular/template/stories/core/parameters/bootstrap-options.stories.ts b/code/frameworks/angular/template/stories/core/parameters/bootstrap-options.stories.ts index f3cebdb807ad..b5c4d1d9725a 100644 --- a/code/frameworks/angular/template/stories/core/parameters/bootstrap-options.stories.ts +++ b/code/frameworks/angular/template/stories/core/parameters/bootstrap-options.stories.ts @@ -2,6 +2,7 @@ import { Meta, StoryObj } from '@storybook/angular'; import { Component } from '@angular/core'; @Component({ + standalone: false, selector: 'component-with-whitespace', preserveWhitespaces: true, template: `
    diff --git a/code/frameworks/angular/template/stories_angular-cli-default-ts/signal/button.component.ts b/code/frameworks/angular/template/stories_angular-cli-default-ts/signal/button.component.ts index a471debefafa..d0513056aea1 100644 --- a/code/frameworks/angular/template/stories_angular-cli-default-ts/signal/button.component.ts +++ b/code/frameworks/angular/template/stories_angular-cli-default-ts/signal/button.component.ts @@ -1,6 +1,7 @@ import { Component, Input, input, output } from '@angular/core'; @Component({ + standalone: false, // Needs to be a different name to the CLI template button selector: 'storybook-signal-button', template: `