Skip to content

Commit 54c969f

Browse files
chore: update stencil to 4 and outputs
1 parent 4608fb9 commit 54c969f

File tree

148 files changed

+2141
-13073
lines changed

Some content is hidden

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

148 files changed

+2141
-13073
lines changed

.github/workflows/build-pr.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v2
1212
- uses: actions/setup-node@v3
1313
with:
14-
node-version: 16
14+
node-version: 22
1515

1616
- name: Restore Lerna
1717
id: yarn-cache
@@ -44,7 +44,7 @@ jobs:
4444
- uses: actions/checkout@v2
4545
- uses: actions/setup-node@v3
4646
with:
47-
node-version: 16
47+
node-version: 22
4848

4949
- name: Restore Lerna
5050
id: yarn-cache
@@ -73,7 +73,7 @@ jobs:
7373
- uses: actions/checkout@v2
7474
- uses: actions/setup-node@v3
7575
with:
76-
node-version: 16
76+
node-version: 22
7777

7878
- name: Restore Lerna
7979
id: yarn-cache
@@ -102,7 +102,7 @@ jobs:
102102
- uses: actions/checkout@v2
103103
- uses: actions/setup-node@v3
104104
with:
105-
node-version: 16
105+
node-version: 22
106106

107107
- name: Restore Lerna
108108
id: yarn-cache
@@ -136,13 +136,13 @@ jobs:
136136
- uses: actions/checkout@v3
137137
- uses: actions/setup-node@v3
138138
with:
139-
node-version: 16
140-
- name: Set up Docker Compose alias
139+
node-version: 22
140+
- name: Set up Docker Compose alias
141141
run: |
142142
sudo touch /usr/bin/docker-compose
143143
echo 'docker compose --compatibility "$@"' | sudo tee /usr/bin/docker-compose
144144
sudo chmod +x /usr/bin/docker-compose
145-
145+
146146
- name: Restore Lerna
147147
id: yarn-cache
148148
uses: actions/cache@v3
@@ -195,7 +195,7 @@ jobs:
195195

196196
- name: Create pull request with new snapshots
197197
if: failure()
198-
uses: peter-evans/create-pull-request@v4
198+
uses: peter-evans/create-pull-request@v7
199199
with:
200200
commit-message: 'test(visual): update snapshots'
201201
title: 'update visual snapshots: ${{ github.event.pull_request.title }}'
@@ -209,7 +209,7 @@ jobs:
209209
- uses: actions/checkout@v2
210210
- uses: actions/setup-node@v3
211211
with:
212-
node-version: 16
212+
node-version: 22
213213

214214
- name: Restore Lerna
215215
id: yarn-cache

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
- uses: actions/checkout@v3
1212
- uses: actions/setup-node@v3
1313
with:
14-
node-version: 16
14+
node-version: 22
1515

1616
- name: Configure CI Git User
1717
run: |
@@ -55,7 +55,7 @@ jobs:
5555
- uses: actions/checkout@v3
5656
- uses: actions/setup-node@v3
5757
with:
58-
node-version: 16
58+
node-version: 22
5959

6060
- name: Authenticate with Registry
6161
run: |
@@ -119,7 +119,7 @@ jobs:
119119
- uses: actions/checkout@v3
120120
- uses: actions/setup-node@v3
121121
with:
122-
node-version: 16
122+
node-version: 22
123123

124124
- name: Configure CI Git User
125125
run: |

examples/react-form/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"react-scripts": "3.4.1"
1616
},
1717
"devDependencies": {
18-
"typescript": "^3.8.3"
18+
"typescript": "^5.8.3"
1919
},
2020
"peerDependencies": {
2121
"rimraf": "*"

examples/vite-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@
2424
"eslint": "^8.45.0",
2525
"eslint-plugin-react-hooks": "^4.6.0",
2626
"eslint-plugin-react-refresh": "^0.4.3",
27-
"typescript": "^5.0.2",
27+
"typescript": "^5.8.3",
2828
"vite": "^4.4.5"
2929
},
3030
"resolutions": {
3131
"@types/react": "^18.2.37"
32-
}
32+
}
3333
}

examples/vitest/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@
1515
"jsdom": "latest",
1616
"vite": "latest",
1717
"vitest": "latest",
18-
"typescript": "^5.0.3"
18+
"typescript": "^5.8.3"
1919
}
2020
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
}
3535
},
3636
"engines": {
37-
"node": "16.x",
37+
"node": "22.x",
3838
"npm": "please-use-yarn",
3939
"yarn": "1.x"
4040
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
dist/
22
build/
33
src/directives/proxies.ts
4-
src/directives/proxies-list.tsx
4+
src/directives/proxies-list.ts

packages/components-angular/package.json

Lines changed: 23 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -33,33 +33,33 @@
3333
],
3434
"dependencies": {
3535
"@ionic/angular": "^5.3.1",
36-
"tslib": "^1.9.3"
36+
"tslib": "^2.8.1"
3737
},
3838
"peerDependencies": {
39-
"@angular-devkit/core": "^7.2.1",
40-
"@angular-devkit/schematics": "^7.2.1",
41-
"@angular/common": "^7.2.1",
42-
"@angular/compiler": "^7.2.1",
43-
"@angular/compiler-cli": "^7.2.1",
44-
"@angular/core": "^7.2.1",
45-
"@angular/forms": "^7.2.1",
46-
"@angular/platform-browser": "^7.2.1",
47-
"@angular/platform-browser-dynamic": "^7.2.1",
48-
"@angular/router": "^7.2.1",
39+
"@angular-devkit/core": "^20.0.5",
40+
"@angular-devkit/schematics": "^20.0.5",
41+
"@angular/common": "^20.0.6",
42+
"@angular/compiler": "^20.0.6",
43+
"@angular/compiler-cli": "^20.0.6",
44+
"@angular/core": "^20.0.6",
45+
"@angular/forms": "^20.0.6",
46+
"@angular/platform-browser": "^20.0.6",
47+
"@angular/platform-browser-dynamic": "^20.0.6",
48+
"@angular/router": "^20.0.6",
4949
"rxjs": ">=6.2.0",
5050
"zone.js": "^0.8.26"
5151
},
5252
"devDependencies": {
53-
"@angular-devkit/core": "^7.2.1",
54-
"@angular-devkit/schematics": "^7.2.1",
55-
"@angular/common": "^7.2.1",
56-
"@angular/compiler": "^7.2.1",
57-
"@angular/compiler-cli": "^7.2.1",
58-
"@angular/core": "^7.2.1",
59-
"@angular/forms": "^7.2.1",
60-
"@angular/platform-browser": "^7.2.1",
61-
"@angular/platform-browser-dynamic": "^7.2.1",
62-
"@angular/router": "^7.2.1",
53+
"@angular-devkit/core": "^20.0.5",
54+
"@angular-devkit/schematics": "^20.0.5",
55+
"@angular/common": "^20.0.6",
56+
"@angular/compiler": "^20.0.6",
57+
"@angular/compiler-cli": "^20.0.6",
58+
"@angular/core": "^20.0.6",
59+
"@angular/forms": "^20.0.6",
60+
"@angular/platform-browser": "^20.0.6",
61+
"@angular/platform-browser-dynamic": "^20.0.6",
62+
"@angular/router": "^20.0.6",
6363
"@types/jest": "^25.2.3",
6464
"@types/node": "~10.12.0",
6565
"fs-extra": "^7.0.0",
@@ -70,9 +70,10 @@
7070
"rollup-plugin-node-resolve": "^4.0.0",
7171
"rxjs": "^6.2.0",
7272
"tsickle": "^0.34.0",
73+
"tslib": "^2.8.1",
7374
"tslint": "^5.12.1",
7475
"tslint-ionic-rules": "0.0.21",
75-
"typescript": "3.2.4",
76+
"typescript": "^5.8.3",
7677
"zone.js": "^0.8.28"
7778
},
7879
"jest": {
Lines changed: 17 additions & 120 deletions
Original file line numberDiff line numberDiff line change
@@ -1,125 +1,22 @@
1-
import { NgModule } from '@angular/core';
2-
import { defineCustomElements } from '@telekom/scale-components/loader';
3-
4-
import { BooleanValueAccessor } from './directives/boolean-value-accessor';
5-
import { NumericValueAccessor } from './directives/number-value-accessor';
6-
import { RadioValueAccessor } from './directives/radio-value-accessor';
7-
import { SelectValueAccessor } from './directives/select-value-accessor';
81
import {
9-
AppLogo,
10-
AppMegaMenu,
11-
AppNavigationMainMobile,
12-
AppNavigationSectorMobile,
13-
ScaleAccordion,
14-
ScaleAlert,
15-
ScaleAppHeader,
16-
ScaleAppShell,
17-
ScaleCallout,
18-
ScaleBreadcrumb,
19-
ScaleButton,
20-
ScaleCard,
21-
ScaleCarousel,
22-
ScaleChartStackCard,
23-
ScaleCheckbox,
24-
ScaleCollapsible,
25-
ScaleDataGrid,
26-
ScaleDatePicker,
27-
ScaleDivider,
28-
ScaleIcon,
29-
ScaleInput,
30-
ScaleLink,
31-
ScaleList,
32-
ScaleListItem,
33-
ScaleLoadingSpinner,
34-
ScaleMenuFlyout,
35-
ScaleMenuFlyoutDivider,
36-
ScaleMenuFlyoutItem,
37-
ScaleMenuFlyoutList,
38-
ScaleModal,
39-
ScalePagination,
40-
ScaleProgressBar,
41-
ScaleRadioButton,
42-
ScaleRatingStars,
43-
ScaleSidebarNav,
44-
ScaleSidebarNavCollapsible,
45-
ScaleSidebarNavItem,
46-
ScaleSlider,
47-
ScaleSsrSlotFix,
48-
ScaleSwitch,
49-
ScaleTabHeader,
50-
ScaleTabNav,
51-
ScaleTabPanel,
52-
ScaleTable,
53-
ScaleTag,
54-
ScaleTextField,
55-
ScaleToast
56-
} from './directives/proxies';
57-
import { TextValueAccessor } from './directives/text-value-accessor';
58-
59-
defineCustomElements(window);
60-
61-
const DECLARATIONS = [
62-
// proxies
63-
AppLogo,
64-
AppMegaMenu,
65-
AppNavigationMainMobile,
66-
AppNavigationSectorMobile,
67-
ScaleAccordion,
68-
ScaleAlert,
69-
ScaleAppHeader,
70-
ScaleAppShell,
71-
ScaleCallout,
72-
ScaleBreadcrumb,
73-
ScaleButton,
74-
ScaleCard,
75-
ScaleCarousel,
76-
ScaleChartStackCard,
77-
ScaleCheckbox,
78-
ScaleCollapsible,
79-
ScaleDataGrid,
80-
ScaleDatePicker,
81-
ScaleDivider,
82-
ScaleIcon,
83-
ScaleInput,
84-
ScaleLink,
85-
ScaleList,
86-
ScaleListItem,
87-
ScaleLoadingSpinner,
88-
ScaleMenuFlyout,
89-
ScaleMenuFlyoutDivider,
90-
ScaleMenuFlyoutItem,
91-
ScaleMenuFlyoutList,
92-
ScaleModal,
93-
ScalePagination,
94-
ScaleProgressBar,
95-
ScaleRadioButton,
96-
ScaleRatingStars,
97-
ScaleSidebarNav,
98-
ScaleSidebarNavCollapsible,
99-
ScaleSidebarNavItem,
100-
ScaleSlider,
101-
ScaleSsrSlotFix,
102-
ScaleSwitch,
103-
ScaleTabHeader,
104-
ScaleTabNav,
105-
ScaleTabPanel,
106-
ScaleTable,
107-
ScaleTag,
108-
ScaleTextField,
109-
ScaleToast,
110-
111-
// Value Accessors
112-
BooleanValueAccessor,
113-
NumericValueAccessor,
114-
RadioValueAccessor,
115-
SelectValueAccessor,
116-
TextValueAccessor,
117-
];
2+
APP_INITIALIZER,
3+
CUSTOM_ELEMENTS_SCHEMA,
4+
NgModule,
5+
} from '@angular/core';
6+
import { defineCustomElements } from '@telekom/scale-components/loader';
7+
import { DIRECTIVES } from './directives/proxies-list';
1188

1199
@NgModule({
120-
declarations: DECLARATIONS,
121-
exports: DECLARATIONS,
122-
imports: [],
123-
providers: [],
10+
declarations: [...DIRECTIVES],
11+
exports: [...DIRECTIVES],
12+
providers: [
13+
{
14+
//! TODO it is depcrecated
15+
provide: APP_INITIALIZER,
16+
useFactory: () => defineCustomElements,
17+
multi: true,
18+
},
19+
],
20+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
12421
})
12522
export class ComponentLibraryModule {}

0 commit comments

Comments
 (0)