Skip to content

Commit aa7991c

Browse files
authored
Merge pull request #3986 from IgniteUI/vnext
Updating production with changes from 22
2 parents f97abed + e6a2615 commit aa7991c

860 files changed

Lines changed: 10686 additions & 9610 deletions

File tree

Some content is hidden

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

.browserslistrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ not > 0.5%
1010
not last 2 versions
1111
not dead
1212
not IE 9-11
13-
Safari >=15.7
13+
Safari >=16.4

.github/workflows/build-app-crm.yml

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,6 @@ name: App CRM CI
55
# Controls when the action will run. Triggers the workflow on push or pull request
66
# events but only for the master branch
77
on:
8-
push:
9-
branches: [ master, vnext ]
10-
paths:
11-
- '**'
12-
- '!src/**'
13-
- '!live-editing/**'
14-
- '!projects/app-lob/**'
158
pull_request:
169
branches: [ master, vnext ]
1710
paths:
@@ -27,19 +20,15 @@ jobs:
2720
# The type of runner that the job will run on
2821
runs-on: ubuntu-latest
2922

30-
strategy:
31-
matrix:
32-
node-version: [20.x, 22.x]
33-
3423
# Steps represent a sequence of tasks that will be executed as part of the job
3524
steps:
3625
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
37-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v6
3827

39-
- name: Use Node.js ${{ matrix.node-version }}
40-
uses: actions/setup-node@v3
28+
- name: Use Node.js 24
29+
uses: actions/setup-node@v6
4130
with:
42-
node-version: ${{ matrix.node-version }}
31+
node-version: 24
4332
cache: 'npm'
4433

4534
- name: Npm add registry

.github/workflows/build-app-lob.yml

Lines changed: 4 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@ name: App LOB CI
55
# Controls when the action will run. Triggers the workflow on push or pull request
66
# events but only for the master branch
77
on:
8-
push:
9-
branches: [ master, vnext ]
10-
paths:
11-
- '**'
12-
- '!src/**'
13-
- '!live-editing/configs/**'
14-
- 'live-editing/configs/app-dv-configs/**'
15-
- '!live-editing/generators/**'
16-
- 'live-editing/generators/AppDVConfigGenerators.ts'
17-
- '!projects/app-crm/**'
188
pull_request:
199
branches: [ master, vnext ]
2010
paths:
@@ -32,19 +22,15 @@ jobs:
3222
# The type of runner that the job will run on
3323
runs-on: ubuntu-latest
3424

35-
strategy:
36-
matrix:
37-
node-version: [20.x, 22.x]
38-
3925
# Steps represent a sequence of tasks that will be executed as part of the job
4026
steps:
4127
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
42-
- uses: actions/checkout@v3
28+
- uses: actions/checkout@v6
4329

44-
- name: Use Node.js ${{ matrix.node-version }}
45-
uses: actions/setup-node@v3
30+
- name: Use Node.js 24
31+
uses: actions/setup-node@v6
4632
with:
47-
node-version: ${{ matrix.node-version }}
33+
node-version: 24
4834
cache: 'npm'
4935

5036
- name: Npm add registry

.github/workflows/build-app.yml

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@ permissions:
88
# Controls when the action will run. Triggers the workflow on push or pull request
99
# events but only for the master branch
1010
on:
11-
push:
12-
branches: [ master, vnext ]
13-
paths:
14-
- '**'
15-
- '!projects/**'
1611
pull_request:
1712
branches: [ master, vnext ]
1813
paths:
@@ -25,19 +20,15 @@ jobs:
2520
# The type of runner that the job will run on
2621
runs-on: ubuntu-latest
2722

28-
strategy:
29-
matrix:
30-
node-version: [20.x, 22.x]
31-
3223
# Steps represent a sequence of tasks that will be executed as part of the job
3324
steps:
3425
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
35-
- uses: actions/checkout@v3
26+
- uses: actions/checkout@v6
3627

37-
- name: Use Node.js ${{ matrix.node-version }}
38-
uses: actions/setup-node@v3
28+
- name: Use Node.js 24
29+
uses: actions/setup-node@v6
3930
with:
40-
node-version: ${{ matrix.node-version }}
31+
node-version: 24
4132
cache: 'npm'
4233

4334
- name: Npm add registry

.github/workflows/cd-matrix.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,16 @@ jobs:
5050

5151
steps:
5252
- name: Checkout repository
53-
uses: actions/checkout@v4
53+
uses: actions/checkout@v6
5454
with:
5555
fetch-depth: 0
5656
ref: ${{ env.BRANCH_REF }}
5757
token: ${{ secrets.GITHUB_TOKEN }}
5858

5959
- name: Setup Node.js
60-
uses: actions/setup-node@v4
60+
uses: actions/setup-node@v6
6161
with:
62-
node-version: '22.x'
62+
node-version: 24
6363

6464
- name: Replace with licensed angular-extras
6565
shell: pwsh

eslint.config.js

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
// @ts-check
2+
const tseslint = require("typescript-eslint");
3+
const angular = require("angular-eslint");
4+
5+
// Rules carried over from the original .eslintrc.json
6+
const sharedTsRules = {
7+
// angular-eslint rules not in the original config
8+
"@angular-eslint/prefer-on-push-component-change-detection": "off",
9+
"@angular-eslint/prefer-inject": "off",
10+
"@angular-eslint/prefer-standalone": "off",
11+
// explicit typescript-eslint rules from .eslintrc.json
12+
"@typescript-eslint/array-type": ["error", { default: "array" }],
13+
"no-unused-expressions": "off",
14+
"@typescript-eslint/no-unused-expressions": "off",
15+
"@typescript-eslint/dot-notation": "off",
16+
"@typescript-eslint/no-this-alias": "error",
17+
"@typescript-eslint/prefer-for-of": "off",
18+
// explicit eslint core rules from .eslintrc.json
19+
"arrow-parens": ["off", "always"],
20+
"comma-dangle": "error",
21+
"no-underscore-dangle": "off",
22+
"id-blacklist": "error",
23+
"no-bitwise": "off",
24+
"no-duplicate-case": "error",
25+
"no-duplicate-imports": "error",
26+
"no-extra-bind": "error",
27+
"no-fallthrough": "off",
28+
"no-new-func": "error",
29+
"no-redeclare": "error",
30+
"no-return-await": "error",
31+
"no-sequences": "error",
32+
"no-sparse-arrays": "error",
33+
"no-template-curly-in-string": "error",
34+
"prefer-object-spread": "off",
35+
"space-in-parens": ["error", "never"],
36+
};
37+
38+
const subProjectRules = {
39+
"@angular-eslint/component-selector": [
40+
"error",
41+
{ type: "element", prefix: "app", style: "kebab-case" },
42+
],
43+
"@angular-eslint/directive-selector": [
44+
"error",
45+
{ type: "attribute", prefix: "app", style: "camelCase" },
46+
],
47+
};
48+
49+
module.exports = tseslint.config(
50+
// ── main app (src/) ──
51+
{
52+
files: ["src/**/*.ts"],
53+
extends: [
54+
tseslint.configs.base,
55+
...angular.configs.tsRecommended,
56+
],
57+
processor: angular.processInlineTemplates,
58+
languageOptions: {
59+
parserOptions: {
60+
project: ["tsconfig.json"],
61+
},
62+
},
63+
rules: { ...sharedTsRules },
64+
},
65+
{
66+
files: ["src/**/*.html"],
67+
extends: [...angular.configs.templateRecommended],
68+
rules: {},
69+
},
70+
71+
// ── app-lob ──
72+
{
73+
files: ["projects/app-lob/**/*.ts"],
74+
extends: [
75+
tseslint.configs.base,
76+
...angular.configs.tsRecommended,
77+
],
78+
processor: angular.processInlineTemplates,
79+
languageOptions: {
80+
parserOptions: {
81+
project: [
82+
"projects/app-lob/tsconfig.app.json",
83+
"projects/app-lob/tsconfig.spec.json",
84+
],
85+
},
86+
},
87+
rules: { ...sharedTsRules, ...subProjectRules },
88+
},
89+
{
90+
files: ["projects/app-lob/**/*.html"],
91+
extends: [...angular.configs.templateRecommended],
92+
rules: {},
93+
},
94+
95+
// ── app-crm ──
96+
{
97+
files: ["projects/app-crm/**/*.ts"],
98+
extends: [
99+
tseslint.configs.base,
100+
...angular.configs.tsRecommended,
101+
],
102+
processor: angular.processInlineTemplates,
103+
languageOptions: {
104+
parserOptions: {
105+
project: [
106+
"projects/app-crm/tsconfig.app.json",
107+
"projects/app-crm/tsconfig.spec.json",
108+
],
109+
},
110+
},
111+
rules: { ...sharedTsRules, ...subProjectRules },
112+
},
113+
{
114+
files: ["projects/app-crm/**/*.html"],
115+
extends: [...angular.configs.templateRecommended],
116+
rules: {},
117+
}
118+
);

gulpfile.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,10 @@ require('ts-node').register({
1010
transpileOnly: true,
1111
compilerOptions: {
1212
module: "commonjs",
13-
moduleResolution: "node",
14-
allowJs: true
13+
moduleResolution: "node10",
14+
allowJs: true,
15+
rootDir: ".",
16+
ignoreDeprecations: "6.0"
1517
}
1618
});
1719

ignite-ui-cli.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"project": {
44
"defaultPort": 4200,
55
"framework": "angular",
6-
"projectType": "igx-ts-legacy",
6+
"projectType": "igx-ts",
77
"projectTemplate": "side-nav",
88
"theme": "Custom",
99
"isBundle": false,

live-editing/configs/BadgeConfigGenerator.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,20 +33,30 @@ export class BadgeConfigGenerator implements IConfigGenerator {
3333
shortenComponentPathBy: "/data-display/badge/"
3434
}));
3535

36+
// badge styling sample
3637
configs.push(new Config({
3738
component: 'BadgeStylingSampleComponent',
3839
additionalFiles: ["src/app/data-display/badge/model/member.model.ts", "src/app/data-display/badge/badge-styling-sample/layout.scss"],
3940
appConfig: BaseAppConfig,
4041
shortenComponentPathBy: "/data-display/badge/"
4142
}));
4243

44+
// badge dot sample
4345
configs.push(new Config({
4446
component: 'BadgeDotSampleComponent',
4547
additionalFiles: ["src/app/data-display/badge/model/member.model.ts", "src/app/data-display/badge/badge-dot-sample/badge-dot-sample.component.scss"],
4648
appConfig: BaseAppConfig,
4749
shortenComponentPathBy: "/data-display/badge/"
4850
}));
4951

52+
// badge outlined
53+
configs.push(new Config({
54+
component: 'BadgeOutlinedComponent',
55+
additionalFiles: ["src/app/data-display/badge/model/member.model.ts"],
56+
appConfig: BaseAppConfig,
57+
shortenComponentPathBy: "/data-display/badge/"
58+
}));
59+
5060
return configs;
5161
}
5262
}

live-editing/configs/BaseConfig-AngularLocale.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ export const BaseAppAngularLocaleConfig = {
22
modules: [
33
{ 'module': 'BrowserModule', 'import': '@angular/platform-browser' },
44
{ 'module': 'FormsModule', 'import': '@angular/forms' },
5-
{ 'module': 'HammerModule', 'import': '@angular/platform-browser' },
65
],
76
providers: [
8-
{ 'provider': 'provideAnimations()', 'import': '@angular/platform-browser/animations' }
7+
{ 'provider': 'provideAnimations()', 'import': '@angular/platform-browser/animations' },
8+
{ 'provider': 'provideRouter([])', 'import': '@angular/router' }
99
],
1010
router: false
1111
}

0 commit comments

Comments
 (0)