Skip to content

Commit 8e9daa6

Browse files
authored
Merge pull request #91 from shiftcode/#85-angular-22
feat: angular 22
2 parents cad82c9 + cddef5a commit 8e9daa6

48 files changed

Lines changed: 10886 additions & 15037 deletions

Some content is hidden

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

‎.npmrc‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
@shiftcode:registry=https://npm.pkg.github.com
2+
fund=false
3+
min-release-age=5
4+
min-release-age-exclude[]=@shiftcode/*

‎apps/styleguide/package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@shiftcode/styleguide",
3-
"version": "15.3.1",
3+
"version": "16.0.0-pr85.9",
44
"private": true,
55
"type": "module",
66
"scripts": {

‎apps/styleguide/src/main.ts‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { provideHttpClient } from '@angular/common/http'
22
import { DOCUMENT, inject, provideEnvironmentInitializer, provideZoneChangeDetection } from '@angular/core'
33
import { takeUntilDestroyed } from '@angular/core/rxjs-interop'
44
import { bootstrapApplication } from '@angular/platform-browser'
5-
import { provideAnimations } from '@angular/platform-browser/animations'
65
import { NavigationEnd, provideRouter, Router } from '@angular/router'
76
import { LogLevel } from '@shiftcode/logger'
87
import { provideNavigationClassHandler, provideTestingFab } from '@shiftcode/ngx-components'
@@ -23,7 +22,6 @@ bootstrapApplication(AppComponent, {
2322
providers: [
2423
provideZoneChangeDetection(),
2524
provideHttpClient(),
26-
provideAnimations(),
2725
provideRouter(ROUTES),
2826

2927
provideLocalStorage({ prefix: 'sg.' }),

‎lerna.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
33
"useNx": false,
44
"packages": ["libs/*", "apps/*"],
5-
"version": "15.3.1",
5+
"version": "16.0.0-pr85.9",
66
"command": {
77
"version": {
88
"allowBranch": "*",
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,25 @@
11
{
2+
"src/lib/rx/rx-if.directive.ts": {
3+
"unused-imports/no-unused-vars": {
4+
"count": 1
5+
}
6+
},
7+
"src/lib/rx/rx-let.directive.ts": {
8+
"unused-imports/no-unused-vars": {
9+
"count": 1
10+
}
11+
},
212
"src/lib/tooltip/flexible-connected-position-strategy-2.ts": {
313
"@typescript-eslint/no-unsafe-call": {
414
"count": 9
515
},
616
"@typescript-eslint/no-unsafe-member-access": {
717
"count": 17
818
}
19+
},
20+
"src/lib/tooltip/tooltip.component.html": {
21+
"@angular-eslint/template/prefer-class-binding": {
22+
"count": 1
23+
}
924
}
1025
}

‎libs/components/eslint.config.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export default defineScAngularConfig(
2020
'@angular-eslint/prefer-signals': 'error',
2121
'@angular-eslint/prefer-output-emitter-ref': 'error',
2222
'@angular-eslint/use-component-selector': 'error',
23+
'@angular-eslint/prefer-service-decorator': 'error',
2324
},
2425
},
2526
{

‎libs/components/package.json‎

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@shiftcode/ngx-components",
3-
"version": "15.3.1",
3+
"version": "16.0.0-pr85.9",
44
"repository": "https://github.com/shiftcode/sc-ng-commons-public",
55
"license": "MIT",
66
"author": "shiftcode GmbH <team@shiftcode.ch>",
@@ -10,14 +10,13 @@
1010
"tslib": "^2.5.0"
1111
},
1212
"peerDependencies": {
13-
"@angular/animations": "^21.0.0",
14-
"@angular/cdk": "^21.0.0",
15-
"@angular/common": "^21.0.0",
16-
"@angular/core": "^21.0.0",
17-
"@angular/forms": "^21.0.0",
18-
"@angular/router": "^21.0.0",
13+
"@angular/cdk": "^22.2.0",
14+
"@angular/common": "^22.2.0",
15+
"@angular/core": "^22.2.0",
16+
"@angular/forms": "^22.2.0",
17+
"@angular/router": "^22.2.0",
1918
"@shiftcode/logger": "^5.0.0",
20-
"@shiftcode/ngx-core": "^15.0.0 || ^15.3.0-pr87",
19+
"@shiftcode/ngx-core": "^16.0.0 || ^16.0.0-pr85",
2120
"@shiftcode/utilities": "^5.0.0",
2221
"rxjs": "^6.5.3 || ^7.4.0"
2322
},

‎libs/components/src/lib/svg/svg-registry.service.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { HttpClient, HttpErrorResponse } from '@angular/common/http'
2-
import { DOCUMENT, inject, Injectable } from '@angular/core'
2+
import { DOCUMENT, inject, Service } from '@angular/core'
33
import { firstValueFrom } from 'rxjs'
44

55
/**
66
* Service to load, cache and create svg elements
77
*/
8-
@Injectable({ providedIn: 'root' })
8+
@Service()
99
export class SvgRegistry {
1010
private readonly cache = new Map<string, Promise<SVGElement>>()
1111
private readonly document = inject(DOCUMENT)

‎libs/components/src/lib/testing-fab/provide-testing-fab.spec.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function setup(testingFabProviders: EnvironmentProviders) {
3535
delete: vi.fn(),
3636
clear: vi.fn(),
3737
keys: vi.fn().mockReturnValue([]),
38-
} as unknown as LocalStorage
38+
}
3939
}
4040

4141
TestBed.configureTestingModule({

‎libs/components/src/lib/testing-fab/testing-fab-widget.type.ts‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import { Type } from '@angular/core'
22

33
export type TestingFabWidget =
4-
| TestingFabSelectQueryParamWidget
5-
| TestingFabToggleQueryParamWidget
6-
| TestingFabCustomComponentWidget
4+
TestingFabSelectQueryParamWidget | TestingFabToggleQueryParamWidget | TestingFabCustomComponentWidget
75

86
interface TestingFabWidgetBase {
97
type: 'select-query-param' | 'toggle-query-param' | 'custom-component'

0 commit comments

Comments
 (0)