@syncfusion/ej2-angular-base 23.1.43 → 23.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/ej2-angular-base.umd.min.js +1 -1
- package/dist/global/ej2-angular-base.min.js +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +12 -16
- package/schematics/ng-add/index.js +15 -2
- package/schematics/utils/ast.d.ts +5 -0
- package/schematics/utils/ast.js +28 -1
- package/schematics/utils/project-style-file.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,14 @@
|
|
|
6
6
|
|
|
7
7
|
#### Bug Fixes
|
|
8
8
|
|
|
9
|
+
- Resolved component's compilation issue.
|
|
10
|
+
|
|
11
|
+
## 23.1.43 (2023-10-31)
|
|
12
|
+
|
|
13
|
+
### Common
|
|
14
|
+
|
|
15
|
+
#### Bug Fixes
|
|
16
|
+
|
|
9
17
|
- `#I507537`, `#I508879`, `#I505342` - Resolved `chart` loading delays to enhance overall performance.
|
|
10
18
|
|
|
11
19
|
## 23.1.38 (2023-09-26)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-angular-base.umd.min.js
|
|
3
|
-
* version : 23.
|
|
3
|
+
* version : 23.2.5
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: ej2-angular-base.min.js
|
|
3
|
-
* version : 23.
|
|
3
|
+
* version : 23.2.5
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 23.
|
|
3
|
+
* version : 23.2.5
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-angular-base@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-angular-base@23.
|
|
3
|
+
"_id": "@syncfusion/ej2-angular-base@23.2.4",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-h4oyhbLJFMbd+wZbtunhUE3qsFZGVGc+2ViEPzW+mrwUIQNT0UcJsPRyJx73ViyRprHHIe4t6e1w29eiUOWz/A==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-angular-base",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -19,27 +19,23 @@
|
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/",
|
|
21
21
|
"/@syncfusion/ej2-angular-barcode-generator",
|
|
22
|
-
"/@syncfusion/ej2-angular-buttons",
|
|
23
22
|
"/@syncfusion/ej2-angular-charts",
|
|
24
|
-
"/@syncfusion/ej2-angular-diagrams",
|
|
25
23
|
"/@syncfusion/ej2-angular-documenteditor",
|
|
26
24
|
"/@syncfusion/ej2-angular-dropdowns",
|
|
27
|
-
"/@syncfusion/ej2-angular-filemanager",
|
|
28
25
|
"/@syncfusion/ej2-angular-gantt",
|
|
29
|
-
"/@syncfusion/ej2-angular-grids",
|
|
30
26
|
"/@syncfusion/ej2-angular-image-editor",
|
|
31
|
-
"/@syncfusion/ej2-angular-
|
|
32
|
-
"/@syncfusion/ej2-angular-lists",
|
|
27
|
+
"/@syncfusion/ej2-angular-inplace-editor",
|
|
33
28
|
"/@syncfusion/ej2-angular-navigations",
|
|
29
|
+
"/@syncfusion/ej2-angular-notifications",
|
|
34
30
|
"/@syncfusion/ej2-angular-pdfviewer",
|
|
35
|
-
"/@syncfusion/ej2-angular-
|
|
31
|
+
"/@syncfusion/ej2-angular-pivotview",
|
|
32
|
+
"/@syncfusion/ej2-angular-progressbar",
|
|
36
33
|
"/@syncfusion/ej2-angular-ribbon",
|
|
37
34
|
"/@syncfusion/ej2-angular-richtexteditor",
|
|
38
|
-
"/@syncfusion/ej2-angular-
|
|
39
|
-
"/@syncfusion/ej2-angular-treegrid"
|
|
35
|
+
"/@syncfusion/ej2-angular-spreadsheet"
|
|
40
36
|
],
|
|
41
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-angular-base/-/ej2-angular-base-23.
|
|
42
|
-
"_shasum": "
|
|
37
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-angular-base/-/ej2-angular-base-23.2.4.tgz",
|
|
38
|
+
"_shasum": "6fb0f456ee96fc21d2eea609325997831644b71b",
|
|
43
39
|
"_spec": "@syncfusion/ej2-angular-base@*",
|
|
44
40
|
"_where": "/jenkins/workspace/elease-automation_release_23.1.1/packages/included",
|
|
45
41
|
"author": {
|
|
@@ -50,8 +46,8 @@
|
|
|
50
46
|
},
|
|
51
47
|
"bundleDependencies": false,
|
|
52
48
|
"dependencies": {
|
|
53
|
-
"@syncfusion/ej2-base": "~23.
|
|
54
|
-
"@syncfusion/ej2-icons": "~23.
|
|
49
|
+
"@syncfusion/ej2-base": "~23.2.4",
|
|
50
|
+
"@syncfusion/ej2-icons": "~23.2.4",
|
|
55
51
|
"core-js": "^3.4.8",
|
|
56
52
|
"reflect-metadata": "^0.1.9",
|
|
57
53
|
"rxjs": "^6.5.4",
|
|
@@ -83,6 +79,6 @@
|
|
|
83
79
|
"postinstall": "node ./postinstall.js"
|
|
84
80
|
},
|
|
85
81
|
"typings": "index.d.ts",
|
|
86
|
-
"version": "23.
|
|
82
|
+
"version": "23.2.5",
|
|
87
83
|
"sideEffects": true
|
|
88
84
|
}
|
|
@@ -59,6 +59,13 @@ function addEJ2PackageRootConfig(options, libOptions) {
|
|
|
59
59
|
return (host) => {
|
|
60
60
|
const workspace = helpers_1.getWorkspace(host);
|
|
61
61
|
const project = get_project_1.getProjectFromWorkspace(workspace, options.project);
|
|
62
|
+
let path = '';
|
|
63
|
+
if (!project.architect.build.options) {
|
|
64
|
+
throw new Error(`Could not find project architect build options from angular json in the workspace`);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
path = project.architect.build.options.main;
|
|
68
|
+
}
|
|
62
69
|
let validModules;
|
|
63
70
|
let availableModules = libOptions.moduleName.replace(/Module/g, '').trim();
|
|
64
71
|
if (options.modules !== '') {
|
|
@@ -78,8 +85,14 @@ function addEJ2PackageRootConfig(options, libOptions) {
|
|
|
78
85
|
else {
|
|
79
86
|
validModules = libOptions.moduleName;
|
|
80
87
|
}
|
|
81
|
-
(
|
|
82
|
-
|
|
88
|
+
if (!(path === undefined || path === null)) {
|
|
89
|
+
(options.modulePath !== undefined && options.modulePath !== "") ? addModuleImportToCustomModule(host, options, validModules, libOptions) :
|
|
90
|
+
ast_1.addModuleImportToRootModule(host, validModules, libOptions.pkgName, project);
|
|
91
|
+
}
|
|
92
|
+
else {
|
|
93
|
+
const modulePath = '/src/app/app.component.ts';
|
|
94
|
+
ast_1.addModuleImportToModule(host, modulePath, validModules, libOptions.pkgName);
|
|
95
|
+
}
|
|
83
96
|
return host;
|
|
84
97
|
};
|
|
85
98
|
}
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Tree } from '@angular-devkit/schematics';
|
|
9
9
|
import * as ts from 'typescript';
|
|
10
|
+
import { Change } from '@schematics/angular/utility/change';
|
|
10
11
|
import { WorkspaceProject } from '@schematics/angular/utility/config';
|
|
11
12
|
/**
|
|
12
13
|
* Reads file given path and returns TypeScript source file.
|
|
@@ -24,3 +25,7 @@ export declare function addModuleImportToRootModule(host: Tree, moduleName: stri
|
|
|
24
25
|
* @param src src location to import
|
|
25
26
|
*/
|
|
26
27
|
export declare function addModuleImportToModule(host: Tree, modulePath: string, moduleName: string, src: string): void;
|
|
28
|
+
/**
|
|
29
|
+
* Import and add module to root app component in Angular ^17.
|
|
30
|
+
*/
|
|
31
|
+
export declare function updateChanges(changes: Change[], modulePath: string, moduleSource: any, moduleName: string, src: string): Change[];
|
package/schematics/utils/ast.js
CHANGED
|
@@ -51,7 +51,10 @@ function addModuleImportToModule(host, modulePath, moduleName, src) {
|
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
if (modulesToBeAdded.length) {
|
|
54
|
-
|
|
54
|
+
let changes = ast_utils_1.addImportToModule(moduleSource, modulePath, modulesToBeAdded.toString().trim(), src);
|
|
55
|
+
if (!changes[0] && modulePath.includes("component.ts")) {
|
|
56
|
+
changes = updateChanges(changes, modulePath, moduleSource, moduleName, src);
|
|
57
|
+
}
|
|
55
58
|
const recorder = host.beginUpdate(modulePath);
|
|
56
59
|
changes.forEach((change) => {
|
|
57
60
|
if (change instanceof change_1.InsertChange) {
|
|
@@ -62,3 +65,27 @@ function addModuleImportToModule(host, modulePath, moduleName, src) {
|
|
|
62
65
|
}
|
|
63
66
|
}
|
|
64
67
|
exports.addModuleImportToModule = addModuleImportToModule;
|
|
68
|
+
/**
|
|
69
|
+
* Import and add module to root app component in Angular ^17.
|
|
70
|
+
*/
|
|
71
|
+
function updateChanges(changes, modulePath, moduleSource, moduleName, src) {
|
|
72
|
+
const imports = `import { ${moduleName} } from '${src}';\n`;
|
|
73
|
+
const importSearchRegex = /import\s*{[^}]*}\s*from\s*'@angular\/core';/;
|
|
74
|
+
const importBlockRegex = /imports:\s*\[/;
|
|
75
|
+
const match1 = moduleSource.text.match(importSearchRegex);
|
|
76
|
+
const match2 = moduleSource.text.match(importBlockRegex);
|
|
77
|
+
if (!match2) {
|
|
78
|
+
//Not a stand alone component no import statement under @component decorator.
|
|
79
|
+
return changes;
|
|
80
|
+
}
|
|
81
|
+
const position1 = match1.index + match1[0].length;
|
|
82
|
+
const position2 = match2.index + match2[0].length;
|
|
83
|
+
changes = [
|
|
84
|
+
new change_1.InsertChange(modulePath, position1 + 1, // Position
|
|
85
|
+
imports),
|
|
86
|
+
new change_1.InsertChange(modulePath, position2, // Position
|
|
87
|
+
moduleName + ", "),
|
|
88
|
+
];
|
|
89
|
+
return changes;
|
|
90
|
+
}
|
|
91
|
+
exports.updateChanges = updateChanges;
|
|
@@ -43,10 +43,11 @@ exports.getProjectStyleFile = getProjectStyleFile;
|
|
|
43
43
|
/** Throws if the project is not using the default Angular devkit builders. */
|
|
44
44
|
function assertDefaultBuildersConfigured(project) {
|
|
45
45
|
const defaultBuilder = '@angular-devkit/build-angular:browser';
|
|
46
|
+
const defaultApplicationBuilder = '@angular-devkit/build-angular:application';
|
|
46
47
|
const defaultTestBuilder = '@angular-devkit/build-angular:karma';
|
|
47
48
|
const hasDefaultBuilders = project.architect &&
|
|
48
49
|
project.architect['build'] &&
|
|
49
|
-
project.architect['build']['builder'] === defaultBuilder &&
|
|
50
|
+
(project.architect['build']['builder'] === defaultBuilder || project.architect['build']['builder'] === defaultApplicationBuilder) &&
|
|
50
51
|
project.architect['test'] &&
|
|
51
52
|
project.architect['test']['builder'] === defaultTestBuilder;
|
|
52
53
|
if (!hasDefaultBuilders) {
|