Skip to content

Commit f140fcc

Browse files
valentinpalkovicstorybook-bot
authored andcommitted
Merge pull request #29659 from leosvelperez/feat/angular-19
Angular: Support v19 (cherry picked from commit fa3cf88)
1 parent 4019947 commit f140fcc

File tree

45 files changed

+64
-32
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+64
-32
lines changed

code/frameworks/angular/package.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -81,17 +81,17 @@
8181
"zone.js": "^0.14.2"
8282
},
8383
"peerDependencies": {
84-
"@angular-devkit/architect": ">=0.1500.0 < 0.1900.0",
85-
"@angular-devkit/build-angular": ">=15.0.0 < 19.0.0",
86-
"@angular-devkit/core": ">=15.0.0 < 19.0.0",
87-
"@angular/cli": ">=15.0.0 < 19.0.0",
88-
"@angular/common": ">=15.0.0 < 19.0.0",
89-
"@angular/compiler": ">=15.0.0 < 19.0.0",
90-
"@angular/compiler-cli": ">=15.0.0 < 19.0.0",
91-
"@angular/core": ">=15.0.0 < 19.0.0",
92-
"@angular/forms": ">=15.0.0 < 19.0.0",
93-
"@angular/platform-browser": ">=15.0.0 < 19.0.0",
94-
"@angular/platform-browser-dynamic": ">=15.0.0 < 19.0.0",
84+
"@angular-devkit/architect": ">=0.1500.0 < 0.2000.0",
85+
"@angular-devkit/build-angular": ">=15.0.0 < 20.0.0",
86+
"@angular-devkit/core": ">=15.0.0 < 20.0.0",
87+
"@angular/cli": ">=15.0.0 < 20.0.0",
88+
"@angular/common": ">=15.0.0 < 20.0.0",
89+
"@angular/compiler": ">=15.0.0 < 20.0.0",
90+
"@angular/compiler-cli": ">=15.0.0 < 20.0.0",
91+
"@angular/core": ">=15.0.0 < 20.0.0",
92+
"@angular/forms": ">=15.0.0 < 20.0.0",
93+
"@angular/platform-browser": ">=15.0.0 < 20.0.0",
94+
"@angular/platform-browser-dynamic": ">=15.0.0 < 20.0.0",
9595
"rxjs": "^6.0.0 || ^7.4.0",
9696
"storybook": "workspace:^",
9797
"typescript": "^4.0.0 || ^5.0.0",

code/frameworks/angular/template/components/button.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Component, Input, Output, EventEmitter } from '@angular/core';
22

33
@Component({
4+
standalone: false,
45
// Needs to be a different name to the CLI template button
56
selector: 'storybook-framework-button',
67
template: ` <button

code/frameworks/angular/template/components/form.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Component, Output, EventEmitter } from '@angular/core';
22

33
@Component({
4+
standalone: false,
45
selector: 'storybook-form',
56
template: `
67
<form id="interaction-test-form" (submit)="handleSubmit($event)">

code/frameworks/angular/template/components/html.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { Component, Input } from '@angular/core';
22
import { DomSanitizer } from '@angular/platform-browser';
33

44
@Component({
5+
standalone: false,
56
selector: 'storybook-html',
67
template: `<div [innerHTML]="safeContent"></div>`,
78
})

code/frameworks/angular/template/components/pre.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { Component, Input } from '@angular/core';
22

33
@Component({
4+
standalone: false,
45
selector: 'storybook-pre',
56
template: `<pre data-testid="pre" [ngStyle]="style">{{ finalText }}</pre>`,
67
})

code/frameworks/angular/template/stories/argTypes/doc-button/doc-button.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export enum ButtonAccent {
3838
* @html <span class="badge">aaa</span>
3939
*/
4040
@Component({
41+
standalone: false,
4142
selector: 'my-button',
4243
templateUrl: './doc-button.component.html',
4344
styleUrls: ['./doc-button.component.scss'],

code/frameworks/angular/template/stories/argTypes/doc-directive/doc-directive.directive.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { ElementRef, AfterViewInit, Directive, Input } from '@angular/core';
22

33
/** This is an Angular Directive example that has a Prop Table. */
44
@Directive({
5+
standalone: false,
56
selector: '[docDirective]',
67
})
78
export class DocDirective implements AfterViewInit {

code/frameworks/angular/template/stories/argTypes/doc-pipe/doc-pipe.pipe.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { PipeTransform, Pipe } from '@angular/core';
22

33
/** This is an Angular Pipe example that has a Prop Table. */
44
@Pipe({
5+
standalone: false,
56
name: 'docPipe',
67
})
78
export class DocPipe implements PipeTransform {

code/frameworks/angular/template/stories/basics/angular-forms/customControlValueAccessor/custom-cva.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';
44
const NOOP = () => {};
55

66
@Component({
7+
standalone: false,
78
selector: 'storybook-custom-cva-component',
89
template: ` <div>{{ value }}</div>
910
<input type="text" [(ngModel)]="value" /> `,

code/frameworks/angular/template/stories/basics/component-with-complex-selectors/attribute-selector.component.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { ComponentFactoryResolver, ElementRef, Component } from '@angular/core';
22

33
@Component({
4+
standalone: false,
45
selector: 'storybook-attribute-selector[foo=bar]',
56
template: `<h3>Attribute selector</h3>
67
Selector: {{ selectors }} <br />

0 commit comments

Comments
 (0)