Skip to content

Commit e56e47a

Browse files
authored
Merge branch '26_1' into 26_1_2978-strict-mode
Signed-off-by: Andrei Kharitonov <pharret31@gmail.com>
2 parents 7544c05 + b6e8885 commit e56e47a

File tree

178 files changed

+2739
-4671
lines changed

Some content is hidden

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

178 files changed

+2739
-4671
lines changed

apps/angular/angular.json

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,22 @@
1111
"schematics": {},
1212
"architect": {
1313
"build": {
14-
"builder": "@angular-devkit/build-angular:browser",
14+
"builder": "@angular-devkit/build-angular:application",
1515
"options": {
16-
"outputPath": "dist/sandbox",
16+
"outputPath": {
17+
"base": "dist/sandbox"
18+
},
1719
"index": "src/index.html",
18-
"main": "src/main.ts",
19-
"polyfills": "src/polyfills.ts",
20+
"polyfills": [
21+
"src/polyfills.ts"
22+
],
2023
"tsConfig": "src/tsconfig.app.json",
2124
"styles": [
2225
"node_modules/devextreme/dist/css/dx.common.css",
2326
"node_modules/devextreme/dist/css/dx.light.css"
2427
],
25-
"scripts": []
28+
"scripts": [],
29+
"browser": "src/main.ts"
2630
},
2731
"configurations": {
2832
"production": {
@@ -35,12 +39,9 @@
3539
"optimization": true,
3640
"outputHashing": "all",
3741
"sourceMap": false,
38-
"extractCss": true,
3942
"namedChunks": false,
4043
"aot": true,
4144
"extractLicenses": true,
42-
"vendorChunk": false,
43-
"buildOptimizer": true,
4445
"budgets": [
4546
{
4647
"type": "initial",
@@ -53,26 +54,23 @@
5354
"optimization": false,
5455
"outputHashing": "none",
5556
"sourceMap": true,
56-
"extractCss": true,
5757
"namedChunks": false,
5858
"aot": true,
59-
"extractLicenses": true,
60-
"vendorChunk": false,
61-
"buildOptimizer": false
59+
"extractLicenses": true
6260
}
6361
}
6462
},
6563
"serve": {
6664
"builder": "@angular-devkit/build-angular:dev-server",
6765
"options": {
68-
"browserTarget": "sandbox:build"
66+
"buildTarget": "sandbox:build"
6967
},
7068
"configurations": {
7169
"production": {
72-
"browserTarget": "sandbox:build:production"
70+
"buildTarget": "sandbox:build:production"
7371
},
7472
"dev": {
75-
"browserTarget": "sandbox:build:dev"
73+
"buildTarget": "sandbox:build:dev"
7674
}
7775
}
7876
},
@@ -93,6 +91,5 @@
9391
}
9492
}
9593
}
96-
},
97-
"defaultProject": "sandbox"
94+
}
9895
}

apps/angular/package.json

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,32 +6,28 @@
66
"author": "Developer Express Inc.",
77
"license": "MIT",
88
"dependencies": {
9-
"@angular/animations": "17.3.12",
10-
"@angular/common": "17.3.12",
11-
"@angular/compiler": "17.3.12",
12-
"@angular/compiler-cli": "17.3.12",
13-
"@angular/core": "17.3.12",
14-
"@angular/forms": "17.3.12",
15-
"@angular/platform-browser": "17.3.12",
16-
"@angular/platform-browser-dynamic": "17.3.12",
17-
"@angular/router": "17.3.12",
9+
"@angular/common": "catalog:angular",
10+
"@angular/compiler": "catalog:angular",
11+
"@angular/compiler-cli": "catalog:angular",
12+
"@angular/core": "catalog:angular",
13+
"@angular/forms": "catalog:angular",
14+
"@angular/platform-browser": "catalog:angular",
15+
"@angular/platform-browser-dynamic": "catalog:angular",
16+
"@angular/router": "catalog:angular",
1817
"core-js": "^2.6.12",
1918
"devextreme": "workspace:*",
2019
"devextreme-angular": "workspace:*",
21-
"rxjs": "7.8.1",
2220
"tslib": "^2.6.1",
23-
"zone.js": "0.14.10"
21+
"zone.js": "catalog:angular"
2422
},
2523
"devDependencies": {
26-
"@angular-devkit/build-angular": "17.3.11",
27-
"@angular/cli": "17.3.11",
28-
"@angular/language-service": "17.3.12",
29-
"@angular/platform-server": "17.3.12",
24+
"@angular-devkit/build-angular": "catalog:angular",
25+
"@angular/cli": "catalog:angular",
3026
"@types/jasmine": "5.1.4",
3127
"@types/node": "20.11.17",
3228
"cross-env": "7.0.3",
3329
"ts-node": "10.9.2",
34-
"typescript": "5.4.5"
30+
"typescript": "catalog:angular"
3531
},
3632
"scripts": {
3733
"ng": "ng",

apps/angular/src/app/app.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/* tslint:disable:component-selector */
2-
32
import {
43
Component,
54
OnInit,
@@ -95,7 +94,8 @@ import ArrayStore from 'devextreme/data/array_store';
9594
CustomerService,
9695
AppointmentService,
9796
OwnerService
98-
]
97+
],
98+
standalone: false
9999
})
100100
export class AppComponent implements OnInit, AfterViewInit {
101101
@ViewChild(DxPopoverComponent) popover: DxPopoverComponent;

apps/angular/src/app/app.module.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { BrowserModule } from '@angular/platform-browser';
33
import { ReactiveFormsModule } from '@angular/forms';
44
import { AppComponent } from './app.component';
55

6-
76
import { DevExtremeModule } from 'devextreme-angular';
87

98
@NgModule({

apps/angular/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,11 @@
55
"outDir": "./dist/out-tsc",
66
"sourceMap": true,
77
"declaration": false,
8-
"module": "es2015",
8+
"module": "ES2022",
99
"moduleResolution": "node",
1010
"emitDecoratorMetadata": true,
1111
"experimentalDecorators": true,
1212
"importHelpers": true,
13-
"target": "es5",
1413
"typeRoots": [
1514
"node_modules/@types"
1615
],

apps/demos/Demos/Button/PredefinedTypes/React/App.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import React from 'react';
2-
import { Button, type ButtonTypes } from 'devextreme-react/button';
2+
import { Button } from 'devextreme-react/button';
3+
import type { ButtonTypes } from 'devextreme-react/button';
34
import notify from 'devextreme/ui/notify';
45

5-
const onClick = (e: ButtonTypes.ClickEvent) => {
6-
const buttonText = e.component.option('text');
6+
const onClick = (e: ButtonTypes.ClickEvent): void => {
7+
const buttonText = e.component.option('text') ?? '';
78
notify(`The ${capitalize(buttonText)} button was clicked`);
89
};
910

10-
function capitalize(text: string) {
11+
function capitalize(text: string): string {
1112
return text.charAt(0).toUpperCase() + text.slice(1);
1213
}
1314

apps/demos/Demos/Button/PredefinedTypes/ReactJs/App.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Button } from 'devextreme-react/button';
33
import notify from 'devextreme/ui/notify';
44

55
const onClick = (e) => {
6-
const buttonText = e.component.option('text');
6+
const buttonText = e.component.option('text') ?? '';
77
notify(`The ${capitalize(buttonText)} button was clicked`);
88
};
99
function capitalize(text) {

apps/demos/Demos/Charts/AjaxRequest/React/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import Chart, {
99
Tick,
1010
} from 'devextreme-react/chart';
1111

12-
const customizeText = (e) => `Day ${e.value}`;
12+
const customizeText = (e: { value: string | number | Date }): string => `Day ${e.value}`;
1313

1414
function App() {
1515
return (

apps/demos/Demos/Charts/Annotation/React/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
} from 'devextreme-react/chart';
1515
import { dataSource, annotationSources } from './data.ts';
1616

17-
const customizeTooltip = (annotation) => ({
17+
const customizeTooltip = (annotation: { description: string }): Record<string, string> => ({
1818
html: `<div class='tooltip'>${annotation.description}</div>`,
1919
});
2020

apps/demos/Demos/Charts/AreaSelectionZooming/React/App.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,23 +11,23 @@ import Chart, {
1111
Crosshair,
1212
Legend,
1313
Border,
14-
type ChartTypes,
1514
} from 'devextreme-react/chart';
15+
import type { ChartTypes, ChartRef } from 'devextreme-react/chart';
1616
import Button from 'devextreme-react/button';
1717
import { birthLife } from './data.ts';
1818

19-
function customizeTooltip(pointInfo: ChartTypes.CommonPointInfo) {
20-
const { data } = pointInfo.point;
19+
function customizeTooltip(pointInfo: ChartTypes.CommonPointInfo): Record<string, string> {
20+
const { data } = pointInfo.point ?? {};
2121
return {
2222
text: `${data.country} ${data.year}`,
2323
};
2424
}
2525

2626
function App() {
27-
const chartRef = useRef(null);
27+
const chartRef = useRef<ChartRef>(null);
2828

2929
const resetZoom = useCallback(() => {
30-
chartRef.current.instance().resetVisualRange();
30+
chartRef.current?.instance().resetVisualRange();
3131
}, []);
3232

3333
return (

0 commit comments

Comments
 (0)