Skip to content

Commit c3c9cf4

Browse files
update to 22.0.1
1 parent 8b69b43 commit c3c9cf4

28 files changed

Lines changed: 598 additions & 458 deletions

package-lock.json

Lines changed: 225 additions & 330 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,17 @@
3939
"private": true,
4040
"requiredAngularVersion": ">=22.0.0",
4141
"dependencies": {
42-
"@angular/animations": "22.0.0-rc.3",
43-
"@angular/common": "22.0.0-rc.3",
44-
"@angular/compiler": "22.0.0-rc.3",
45-
"@angular/core": "22.0.0-rc.3",
46-
"@angular/forms": "22.0.0-rc.3",
47-
"@angular/material": "22.0.0-rc.3",
48-
"@angular/platform-browser": "22.0.0-rc.3",
49-
"@angular/platform-browser-dynamic": "22.0.0-rc.3",
50-
"@angular/platform-server": "22.0.0-rc.3",
51-
"@angular/router": "22.0.0-rc.3",
52-
"@angular/ssr": "22.0.0-rc.3",
42+
"@angular/animations": "22.0.1",
43+
"@angular/common": "22.0.1",
44+
"@angular/compiler": "22.0.1",
45+
"@angular/core": "22.0.1",
46+
"@angular/forms": "22.0.1",
47+
"@angular/material": "22.0.1",
48+
"@angular/platform-browser": "22.0.1",
49+
"@angular/platform-browser-dynamic": "22.0.1",
50+
"@angular/platform-server": "22.0.1",
51+
"@angular/router": "22.0.1",
52+
"@angular/ssr": "22.0.1",
5353
"@docusaurus/preset-classic": "^3.10.0",
5454
"@mdx-js/react": "^3.1.1",
5555
"clsx": "^2.1.1",
@@ -62,22 +62,22 @@
6262
"zone.js": "^0.15.1"
6363
},
6464
"devDependencies": {
65-
"@angular/build": "22.0.0-rc.3",
66-
"@angular/cdk": "22.0.0-rc.3",
67-
"@angular/cli": "22.0.0-rc.3",
68-
"@angular/compiler-cli": "22.0.0-rc.3",
69-
"@angular/language-service": "22.0.0-rc.3",
65+
"@angular/build": "^22.0.1",
66+
"@angular/cdk": "22.0.1",
67+
"@angular/cli": "22.0.1",
68+
"@angular/compiler-cli": "22.0.1",
69+
"@angular/language-service": "22.0.1",
7070
"@docusaurus/module-type-aliases": "^3.10.0",
7171
"@docusaurus/tsconfig": "^3.10.1",
7272
"@docusaurus/types": "^3.8.1",
7373
"@types/express": "^4.17.25",
7474
"@types/node": "^20.19.25",
75-
"angular-eslint": "21.4.0",
75+
"angular-eslint": "22.0.0",
7676
"conventional-changelog": "^7.2.0",
7777
"eslint": "^9.39.1",
7878
"eslint-config-prettier": "10.1.5",
7979
"jsdom": "^29.1.1",
80-
"ng-packagr": "22.0.0-rc.0",
80+
"ng-packagr": "22.0.0",
8181
"postcss": "^8.5.6",
8282
"postcss-scss": "^4.0.9",
8383
"prettier": "^3.6.2",

projects/libs/flex-layout/core/style-utils/style-utils.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import { CommonModule, isPlatformServer } from '@angular/common';
9-
import { Component, PLATFORM_ID } from '@angular/core';
9+
import { Component, PLATFORM_ID, ChangeDetectionStrategy } from '@angular/core';
1010
import { ComponentFixture, inject, TestBed } from '@angular/core/testing';
1111

1212
import {
@@ -36,7 +36,6 @@ describe('styler', () => {
3636
};
3737

3838
beforeEach(() => {
39-
4039
// Configure testbed to prepare services
4140
TestBed.configureTestingModule({
4241
imports: [CommonModule, TestLayoutComponent],
@@ -92,6 +91,7 @@ describe('styler', () => {
9291
@Component({
9392
selector: 'test-style-utils',
9493
template: `<span>PlaceHolder Template HTML</span>`,
94+
changeDetection: ChangeDetectionStrategy.Eager,
9595
imports: [CommonModule],
9696
})
9797
class TestLayoutComponent {}

projects/libs/flex-layout/extended/class/class.spec.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import { CommonModule, isPlatformServer } from '@angular/common';
9-
import { Component, PLATFORM_ID } from '@angular/core';
9+
import { Component, PLATFORM_ID, ChangeDetectionStrategy } from '@angular/core';
1010
import {
1111
ComponentFixture,
1212
fakeAsync,
@@ -46,7 +46,6 @@ describe('class directive', () => {
4646
};
4747

4848
beforeEach(() => {
49-
5049
// Configure testbed to prepare services
5150
TestBed.configureTestingModule({
5251
imports: [
@@ -341,6 +340,7 @@ describe('class directive', () => {
341340
@Component({
342341
selector: 'test-class-api',
343342
template: `<span>PlaceHolder Template HTML</span>`,
343+
changeDetection: ChangeDetectionStrategy.Eager,
344344
imports: [MatButtonModule, CommonModule, CoreModule, DefaultClassDirective],
345345
})
346346
class TestClassComponent {
@@ -710,6 +710,7 @@ describe('binding to CSS class list', () => {
710710
@Component({
711711
selector: 'test-cmp',
712712
template: '',
713+
changeDetection: ChangeDetectionStrategy.Eager,
713714
imports: [CommonModule],
714715
})
715716
class TestComponent {

projects/libs/flex-layout/extended/img-src/img-src.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import { CommonModule, isPlatformServer } from '@angular/common';
9-
import { Component, PLATFORM_ID } from '@angular/core';
9+
import { Component, PLATFORM_ID, ChangeDetectionStrategy } from '@angular/core';
1010
import { ComponentFixture, inject, TestBed } from '@angular/core/testing';
1111
import {
1212
ɵMatchMedia as MatchMedia,
@@ -77,7 +77,6 @@ describe('img-src directive', () => {
7777
};
7878

7979
beforeEach(() => {
80-
8180
// Configure testbed to prepare services
8281
TestBed.configureTestingModule({
8382
imports: [CommonModule, FlexLayoutModule, TestSrcComponent],
@@ -375,6 +374,7 @@ describe('img-src directive', () => {
375374
@Component({
376375
selector: 'test-src-api',
377376
template: '',
377+
changeDetection: ChangeDetectionStrategy.Eager,
378378
imports: [CommonModule, DefaultImgSrcDirective],
379379
})
380380
class TestSrcComponent {

projects/libs/flex-layout/extended/show-hide/hide.spec.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import { CommonModule } from '@angular/common';
9-
import { Component } from '@angular/core';
9+
import { Component, ChangeDetectionStrategy } from '@angular/core';
1010
import { ComponentFixture, inject, TestBed } from '@angular/core/testing';
1111
import {
1212
ɵMatchMedia as MatchMedia,
@@ -69,7 +69,6 @@ describe('hide directive', () => {
6969
};
7070

7171
beforeEach(() => {
72-
7372
// Configure testbed to prepare services
7473
TestBed.configureTestingModule({
7574
imports: [CommonModule, FlexLayoutModule, TestHideComponent],
@@ -375,7 +374,14 @@ describe('hide directive', () => {
375374
@Component({
376375
selector: 'test-hide-api',
377376
template: `<span>PlaceHolder Template HTML</span>`,
378-
imports: [CommonModule, DefaultShowHideDirective, DefaultLayoutDirective, DefaultLayoutAlignDirective, DefaultFlexDirective],
377+
changeDetection: ChangeDetectionStrategy.Eager,
378+
imports: [
379+
CommonModule,
380+
DefaultShowHideDirective,
381+
DefaultLayoutDirective,
382+
DefaultLayoutAlignDirective,
383+
DefaultFlexDirective,
384+
],
379385
})
380386
class TestHideComponent {
381387
isVisible = 0;

projects/libs/flex-layout/extended/show-hide/show.spec.ts

Lines changed: 21 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,13 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import { CommonModule, isPlatformBrowser } from '@angular/common';
9-
import { Component, Directive, OnInit, PLATFORM_ID } from '@angular/core';
9+
import {
10+
Component,
11+
Directive,
12+
OnInit,
13+
PLATFORM_ID,
14+
ChangeDetectionStrategy,
15+
} from '@angular/core';
1016
import { ComponentFixture, inject, TestBed } from '@angular/core/testing';
1117
import { FormsModule } from '@angular/forms';
1218
import { MatFormFieldModule, MatLabel } from '@angular/material/form-field';
@@ -61,7 +67,6 @@ describe('show directive', () => {
6167
};
6268

6369
beforeEach(() => {
64-
6570
// Configure testbed to prepare services
6671
TestBed.configureTestingModule({
6772
imports: [
@@ -348,7 +353,6 @@ describe('show directive', () => {
348353

349354
describe('with custom breakpoints', () => {
350355
beforeEach(() => {
351-
352356
// Configure testbed to prepare services
353357
TestBed.configureTestingModule({
354358
imports: [
@@ -418,16 +422,27 @@ class FxShowHideDirective extends ShowHideDirective {
418422
@Component({
419423
selector: 'test-show-api',
420424
template: `<span>PlaceHolder Template HTML</span>`,
421-
imports: [CommonModule, MatFormFieldModule, FormsModule, MatSelectModule, MatLabel, DefaultShowHideDirective, DefaultLayoutDirective, DefaultLayoutAlignDirective, DefaultFlexDirective, FxShowHideDirective],
425+
changeDetection: ChangeDetectionStrategy.Eager,
426+
imports: [
427+
CommonModule,
428+
MatFormFieldModule,
429+
FormsModule,
430+
MatSelectModule,
431+
MatLabel,
432+
DefaultShowHideDirective,
433+
DefaultLayoutDirective,
434+
DefaultLayoutAlignDirective,
435+
DefaultFlexDirective,
436+
FxShowHideDirective,
437+
],
422438
})
423439
class TestShowComponent implements OnInit {
424440
isVisible = 0;
425441
isHidden = false;
426442
menuOpen = true;
427443

428444
constructor(public media: MediaObserver) {}
429-
ngOnInit(): void {
430-
}
445+
ngOnInit(): void {}
431446

432447
toggleMenu() {
433448
this.menuOpen = !this.menuOpen;

projects/libs/flex-layout/extended/style/style.spec.ts

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import { CommonModule } from '@angular/common';
9-
import { Component } from '@angular/core';
9+
import { Component, ChangeDetectionStrategy } from '@angular/core';
1010
import { ComponentFixture, inject, TestBed } from '@angular/core/testing';
1111
import {
1212
CoreModule,
@@ -40,10 +40,15 @@ describe('style directive', () => {
4040
};
4141

4242
beforeEach(() => {
43-
4443
// Configure testbed to prepare services
4544
TestBed.configureTestingModule({
46-
imports: [CommonModule, CoreModule, StyleDirective, LayoutDirective, TestStyleComponent],
45+
imports: [
46+
CommonModule,
47+
CoreModule,
48+
StyleDirective,
49+
LayoutDirective,
50+
TestStyleComponent,
51+
],
4752
providers: [MockMatchMediaProvider],
4853
});
4954
});
@@ -205,6 +210,7 @@ describe('style directive', () => {
205210
@Component({
206211
selector: 'test-style-api',
207212
template: `<span>PlaceHolder Template HTML</span>`,
213+
changeDetection: ChangeDetectionStrategy.Eager,
208214
imports: [CommonModule, CoreModule, StyleDirective, LayoutDirective],
209215
})
210216
class TestStyleComponent {

projects/libs/flex-layout/flex/flex-offset/flex-offset.spec.ts

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,12 @@
77
*/
88
import { DIR_DOCUMENT } from '@angular/cdk/bidi';
99
import { CommonModule, isPlatformServer } from '@angular/common';
10-
import { Component, Injectable, PLATFORM_ID } from '@angular/core';
10+
import {
11+
Component,
12+
Injectable,
13+
PLATFORM_ID,
14+
ChangeDetectionStrategy,
15+
} from '@angular/core';
1116
import { ComponentFixture, inject, TestBed } from '@angular/core/testing';
1217
import { FlexLayoutModule } from '@ngbracket/ngx-layout';
1318
import {
@@ -16,7 +21,13 @@ import {
1621
StyleUtils,
1722
ɵMockMatchMediaProvider as MockMatchMediaProvider,
1823
} from '@ngbracket/ngx-layout/core';
19-
import { DefaultFlexDirective, DefaultFlexOffsetDirective, DefaultLayoutDirective, FlexModule, FlexOffsetStyleBuilder } from '@ngbracket/ngx-layout/flex';
24+
import {
25+
DefaultFlexDirective,
26+
DefaultFlexOffsetDirective,
27+
DefaultLayoutDirective,
28+
FlexModule,
29+
FlexOffsetStyleBuilder,
30+
} from '@ngbracket/ngx-layout/flex';
2031
import {
2132
expectEl,
2233
expectNativeEl,
@@ -57,7 +68,8 @@ describe('flex-offset directive', () => {
5768
unit: 'px',
5869
},
5970
}),
60-
TestFlexComponent],
71+
TestFlexComponent,
72+
],
6173
providers: [
6274
{ provide: DIR_DOCUMENT, useValue: fakeDocument },
6375
{ provide: SERVER_TOKEN, useValue: true },
@@ -212,7 +224,6 @@ describe('flex-offset directive', () => {
212224

213225
describe('with custom builder', () => {
214226
beforeEach(() => {
215-
216227
// Configure testbed to prepare services
217228
TestBed.configureTestingModule({
218229
imports: [
@@ -261,7 +272,13 @@ export class MockFlexOffsetStyleBuilder extends StyleBuilder {
261272
@Component({
262273
selector: 'test-component-shell',
263274
template: `<span>PlaceHolder Template HTML</span>`,
264-
imports: [CommonModule, DefaultLayoutDirective, DefaultFlexDirective, DefaultFlexOffsetDirective],
275+
changeDetection: ChangeDetectionStrategy.Eager,
276+
imports: [
277+
CommonModule,
278+
DefaultLayoutDirective,
279+
DefaultFlexDirective,
280+
DefaultFlexOffsetDirective,
281+
],
265282
})
266283
class TestFlexComponent {
267284
direction = 'column';

projects/libs/flex-layout/flex/flex-order/flex-order.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
import { CommonModule } from '@angular/common';
9-
import { Component } from '@angular/core';
9+
import { Component, ChangeDetectionStrategy } from '@angular/core';
1010
import { ComponentFixture, inject, TestBed } from '@angular/core/testing';
1111
import {
1212
ɵMatchMedia as MatchMedia,
@@ -95,6 +95,7 @@ describe('flex-order', () => {
9595
@Component({
9696
selector: 'test-layout',
9797
template: `<span>PlaceHolder Template HTML</span>`,
98+
changeDetection: ChangeDetectionStrategy.Eager,
9899
imports: [CommonModule, DefaultFlexOrderDirective],
99100
})
100101
class TestOrderComponent {

0 commit comments

Comments
 (0)