@syncfusion/ej2-angular-base 26.2.10 → 27.1.50
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/README.md +2 -2
- package/dist/ej2-angular-base.umd.min.js +2 -2
- package/dist/ej2-angular-base.umd.min.js.map +1 -1
- package/dist/es6/ej2-angular-base.es2015.js +1 -1
- package/dist/es6/ej2-angular-base.es2015.js.map +1 -1
- package/dist/es6/ej2-angular-base.es5.js +1 -1
- package/dist/es6/ej2-angular-base.es5.js.map +1 -1
- package/dist/global/ej2-angular-base.min.js +2 -2
- package/dist/global/ej2-angular-base.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +9 -8
- package/release/27.1.1.txt +1 -0
- package/schematics/generators/component-builder.d.ts +0 -3
- package/schematics/generators/component-builder.js +22 -23
- package/schematics/generators/index.js +0 -1
- package/schematics/index.d.ts +4 -0
- package/schematics/index.js +9 -21
- package/schematics/ng-add/index.d.ts +0 -3
- package/schematics/ng-add/index.js +12 -14
- package/schematics/ng-add/theme.d.ts +0 -3
- package/schematics/ng-add/theme.js +8 -10
- package/schematics/utils/ast.d.ts +2 -3
- package/schematics/utils/ast.js +8 -8
- package/schematics/utils/get-project.d.ts +2 -4
- package/schematics/utils/get-project.js +2 -3
- package/schematics/utils/helpers/helpers.js +18 -19
- package/schematics/utils/package.js +0 -1
- package/schematics/utils/project-style-file.d.ts +3 -5
- package/schematics/utils/project-style-file.js +3 -4
- package/src/component-base.js +1 -1
- package/styles/bootstrap5.3.css +2 -0
- package/styles/bootstrap5.3.scss +1 -0
- package/hotfix/26.1.35_Vol2.txt +0 -1
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.install = void 0;
|
|
4
3
|
const core_1 = require("@angular-devkit/core");
|
|
5
4
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
5
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
@@ -11,7 +10,7 @@ const theme_1 = require("./theme");
|
|
|
11
10
|
const package_1 = require("./../utils/package");
|
|
12
11
|
function addEJ2ToPackageJson(libOptions) {
|
|
13
12
|
return (host) => {
|
|
14
|
-
|
|
13
|
+
package_1.addEJ2PackageToPackageJson(host, 'dependencies', libOptions.pkgName, libOptions.pkgVer);
|
|
15
14
|
return host;
|
|
16
15
|
};
|
|
17
16
|
}
|
|
@@ -29,12 +28,12 @@ function installNodePackages() {
|
|
|
29
28
|
*/
|
|
30
29
|
function install(options, libOptions) {
|
|
31
30
|
const theme = options.theme || 'material';
|
|
32
|
-
return
|
|
33
|
-
options && options.skipPackageJson ?
|
|
34
|
-
|
|
35
|
-
(options && !options.skipPackageJson) ? installNodePackages() :
|
|
31
|
+
return schematics_1.chain([
|
|
32
|
+
options && options.skipPackageJson ? schematics_1.noop() : addEJ2ToPackageJson(libOptions),
|
|
33
|
+
theme_1.addEJ2ThemeToPackageJson(options, libOptions),
|
|
34
|
+
(options && !options.skipPackageJson) ? installNodePackages() : schematics_1.noop(),
|
|
36
35
|
addEJ2PackageRootConfig(options, libOptions),
|
|
37
|
-
|
|
36
|
+
theme_1.addEJ2Theme(options, theme)
|
|
38
37
|
]);
|
|
39
38
|
}
|
|
40
39
|
exports.install = install;
|
|
@@ -45,7 +44,7 @@ function validateEJ2Modules(moduleName, libOptions) {
|
|
|
45
44
|
}
|
|
46
45
|
function addModuleImportToCustomModule(host, options, validModules, libOptions) {
|
|
47
46
|
if (host.exists(options.modulePath.toString())) {
|
|
48
|
-
|
|
47
|
+
ast_1.addModuleImportToModule(host, core_1.normalize(options.modulePath.toString()), validModules, libOptions.pkgName);
|
|
49
48
|
}
|
|
50
49
|
else {
|
|
51
50
|
throw new schematics_1.SchematicsException(`Could not find the module file. The given path \'${options.modulePath}\' is invalid. ` +
|
|
@@ -58,9 +57,8 @@ function addModuleImportToCustomModule(host, options, validModules, libOptions)
|
|
|
58
57
|
*/
|
|
59
58
|
function addEJ2PackageRootConfig(options, libOptions) {
|
|
60
59
|
return (host) => {
|
|
61
|
-
const workspace =
|
|
62
|
-
const project =
|
|
63
|
-
const architect = project.architect;
|
|
60
|
+
const workspace = helpers_1.getWorkspace(host);
|
|
61
|
+
const project = get_project_1.getProjectFromWorkspace(workspace, options.project);
|
|
64
62
|
let validModules;
|
|
65
63
|
let availableModules = libOptions.moduleName.replace(/Module/g, '').trim();
|
|
66
64
|
if (options.modules !== '') {
|
|
@@ -80,13 +78,13 @@ function addEJ2PackageRootConfig(options, libOptions) {
|
|
|
80
78
|
else {
|
|
81
79
|
validModules = libOptions.moduleName;
|
|
82
80
|
}
|
|
83
|
-
if (architect.build.options.main) {
|
|
81
|
+
if (project.architect.build.options.main) {
|
|
84
82
|
(options.modulePath !== undefined && options.modulePath !== "") ? addModuleImportToCustomModule(host, options, validModules, libOptions) :
|
|
85
|
-
|
|
83
|
+
ast_1.addModuleImportToRootModule(host, validModules, libOptions.pkgName, project);
|
|
86
84
|
}
|
|
87
85
|
else {
|
|
88
86
|
const modulePath = '/src/app/app.component.ts';
|
|
89
|
-
|
|
87
|
+
ast_1.addModuleImportToModule(host, modulePath, validModules, libOptions.pkgName);
|
|
90
88
|
}
|
|
91
89
|
return host;
|
|
92
90
|
};
|
|
@@ -1,7 +1,4 @@
|
|
|
1
1
|
import { Tree } from "@angular-devkit/schematics";
|
|
2
|
-
import { workspaces } from '@angular-devkit/core';
|
|
3
2
|
import { LibOptionsSchema, OptionsSchema } from "../ng-add/schema";
|
|
4
|
-
export type WorkspaceDefinition = workspaces.WorkspaceDefinition;
|
|
5
|
-
export type ProjectDefinition = workspaces.ProjectDefinition;
|
|
6
3
|
export declare function addEJ2ThemeToPackageJson(options: OptionsSchema, libOptions: LibOptionsSchema): (host: Tree) => Tree;
|
|
7
4
|
export declare function addEJ2Theme(options: OptionsSchema, theme: string): (host: Tree) => Tree;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.addEJ2Theme = exports.addEJ2ThemeToPackageJson = void 0;
|
|
4
3
|
const change_1 = require("@schematics/angular/utility/change");
|
|
5
4
|
const helpers_1 = require("../utils/helpers/helpers");
|
|
6
5
|
const get_project_1 = require("../utils/get-project");
|
|
@@ -12,7 +11,7 @@ const project_style_file_1 = require("../utils/project-style-file");
|
|
|
12
11
|
function addEJ2ThemeToPackageJson(options, libOptions) {
|
|
13
12
|
const themeVer = libOptions.themeVer ? libOptions.themeVer : 'latest';
|
|
14
13
|
return (host) => {
|
|
15
|
-
|
|
14
|
+
package_1.addEJ2PackageToPackageJson(host, 'dependencies', `@syncfusion/ej2-${options.theme || 'material'}-theme`, themeVer);
|
|
16
15
|
return host;
|
|
17
16
|
};
|
|
18
17
|
}
|
|
@@ -24,15 +23,14 @@ function addEJ2Theme(options, theme) {
|
|
|
24
23
|
return (host) => {
|
|
25
24
|
let themePath = `@import \'..\/node_modules/@syncfusion/ej2-${theme}-theme/styles/${theme}.css\'`;
|
|
26
25
|
const strippedThemePath = `./node_modules/@syncfusion/ej2-${theme}-theme/styles/${theme}.css`;
|
|
27
|
-
const workspace =
|
|
28
|
-
const project =
|
|
29
|
-
const
|
|
30
|
-
const stylesPath = (0, project_style_file_1.getProjectStyleFile)(workspace);
|
|
26
|
+
const workspace = helpers_1.getWorkspace(host);
|
|
27
|
+
const project = get_project_1.getProjectFromWorkspace(workspace, options.project);
|
|
28
|
+
const stylesPath = project_style_file_1.getProjectStyleFile(project);
|
|
31
29
|
const stylesBuffer = host.read(stylesPath);
|
|
32
30
|
themePath += stylesPath.includes("sass") ? `\n` : `;\n`;
|
|
33
31
|
// Because the build setup for the Angular CLI can be changed so dramatically, we can't know
|
|
34
32
|
// where to generate anything if the project is not using the default config for build and test.
|
|
35
|
-
|
|
33
|
+
project_style_file_1.assertDefaultBuildersConfigured(project);
|
|
36
34
|
options.skipPackageJson ? console.log('\x1b[33m%s\x1b[0m', `WARNING: You skipped the dependency installation. ` +
|
|
37
35
|
`You must manually install the \'@syncfusion/ej2-${theme}-theme\' package. ` +
|
|
38
36
|
`If you have already done this, you can ignore this message.`) :
|
|
@@ -49,9 +47,9 @@ function addEJ2Theme(options, theme) {
|
|
|
49
47
|
else {
|
|
50
48
|
console.log('\x1b[31m%s\x1b[0m', `Cannot import theme file. The file \'/src/styles.css\' is missing.`);
|
|
51
49
|
}
|
|
52
|
-
architect ? [
|
|
53
|
-
addStyleToTarget(architect['build'], host, strippedThemePath, workspace),
|
|
54
|
-
addStyleToTarget(architect['test'], host, strippedThemePath, workspace)
|
|
50
|
+
project.architect ? [
|
|
51
|
+
addStyleToTarget(project.architect['build'], host, strippedThemePath, workspace),
|
|
52
|
+
addStyleToTarget(project.architect['test'], host, strippedThemePath, workspace)
|
|
55
53
|
] :
|
|
56
54
|
console.log('\x1b[31m%s\x1b[0m', `The project does not have an architect configuration. `
|
|
57
55
|
+ `Cannot add entry theme file in \'angular.json\'.`);
|
|
@@ -8,9 +8,7 @@
|
|
|
8
8
|
import { Tree } from '@angular-devkit/schematics';
|
|
9
9
|
import * as ts from 'typescript';
|
|
10
10
|
import { Change } from '@schematics/angular/utility/change';
|
|
11
|
-
import {
|
|
12
|
-
export type WorkspaceDefinition = workspaces.WorkspaceDefinition;
|
|
13
|
-
export type ProjectDefinition = workspaces.ProjectDefinition;
|
|
11
|
+
import { WorkspaceProject } from '@schematics/angular/utility/config';
|
|
14
12
|
/**
|
|
15
13
|
* Reads file given path and returns TypeScript source file.
|
|
16
14
|
*/
|
|
@@ -18,6 +16,7 @@ export declare function getSourceFile(host: Tree, path: string): ts.SourceFile;
|
|
|
18
16
|
/**
|
|
19
17
|
* Import and add module to root app module.
|
|
20
18
|
*/
|
|
19
|
+
export declare function addModuleImportToRootModule(host: Tree, moduleName: string, src: string, project: WorkspaceProject): void;
|
|
21
20
|
/**
|
|
22
21
|
* Import and add module to specific module path.
|
|
23
22
|
* @param host the tree we are updating
|
package/schematics/utils/ast.js
CHANGED
|
@@ -7,11 +7,11 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.updateChanges = exports.addModuleImportToModule = exports.getSourceFile = void 0;
|
|
11
10
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
12
11
|
const ts = require("typescript");
|
|
13
12
|
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
|
14
13
|
const change_1 = require("@schematics/angular/utility/change");
|
|
14
|
+
const ng_ast_utils_1 = require("@schematics/angular/utility/ng-ast-utils");
|
|
15
15
|
/**
|
|
16
16
|
* Reads file given path and returns TypeScript source file.
|
|
17
17
|
*/
|
|
@@ -27,11 +27,11 @@ exports.getSourceFile = getSourceFile;
|
|
|
27
27
|
/**
|
|
28
28
|
* Import and add module to root app module.
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
30
|
+
function addModuleImportToRootModule(host, moduleName, src, project) {
|
|
31
|
+
const modulePath = ng_ast_utils_1.getAppModulePath(host, project.architect.build.options.main);
|
|
32
|
+
addModuleImportToModule(host, modulePath, moduleName, src);
|
|
33
|
+
}
|
|
34
|
+
exports.addModuleImportToRootModule = addModuleImportToRootModule;
|
|
35
35
|
/**
|
|
36
36
|
* Import and add module to specific module path.
|
|
37
37
|
* @param host the tree we are updating
|
|
@@ -46,12 +46,12 @@ function addModuleImportToModule(host, modulePath, moduleName, src) {
|
|
|
46
46
|
throw new schematics_1.SchematicsException(`Module not found: ${modulePath}`);
|
|
47
47
|
}
|
|
48
48
|
moduleName.split(',').forEach((module) => {
|
|
49
|
-
if (!
|
|
49
|
+
if (!ast_utils_1.isImported(moduleSource, module.trim(), src) && module !== '') {
|
|
50
50
|
modulesToBeAdded.push(module);
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
if (modulesToBeAdded.length) {
|
|
54
|
-
let changes =
|
|
54
|
+
let changes = ast_utils_1.addImportToModule(moduleSource, modulePath, modulesToBeAdded.toString().trim(), src);
|
|
55
55
|
if (!changes[0] && modulePath.includes("component.ts")) {
|
|
56
56
|
changes = updateChanges(changes, modulePath, moduleSource, moduleName, src);
|
|
57
57
|
}
|
|
@@ -5,7 +5,5 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
export
|
|
10
|
-
export type ProjectDefinition = workspaces.ProjectDefinition;
|
|
11
|
-
export declare function getProjectFromWorkspace(workspace: WorkspaceDefinition, projectName?: string): ProjectDefinition;
|
|
8
|
+
import { WorkspaceProject, WorkspaceSchema } from '@schematics/angular/utility/config';
|
|
9
|
+
export declare function getProjectFromWorkspace(workspace: WorkspaceSchema, projectName?: string): WorkspaceProject;
|
|
@@ -7,10 +7,9 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.getProjectFromWorkspace = void 0;
|
|
11
10
|
function getProjectFromWorkspace(workspace, projectName) {
|
|
12
|
-
let project = workspace.projects[projectName];
|
|
13
|
-
if (
|
|
11
|
+
let project = workspace.projects[projectName || workspace.defaultProject];
|
|
12
|
+
if (workspace.defaultProject === undefined) {
|
|
14
13
|
project = workspace.projects[projectName || Object.keys(workspace.projects)[0]];
|
|
15
14
|
}
|
|
16
15
|
if (!project) {
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.validateHtmlSelector = exports.htmlSelectorRe = exports.validateName = exports.insertImport = exports.parseName = exports.getAppModulePath = exports.findBootstrapModulePath = exports.findBootstrapModuleCall = exports.isImported = exports.addBootstrapToModule = exports.addExportToModule = exports.addProviderToModule = exports.addImportToModule = exports.addDeclarationToModule = exports.addSymbolToNgModuleMetadata = exports.getFirstNgModuleName = exports.getDecoratorMetadata = exports.getContentOfKeyLiteral = exports.insertAfterLastOccurrence = exports.findNode = exports.getSourceNodes = exports.findNodes = exports.ReplaceChange = exports.RemoveChange = exports.InsertChange = exports.NoopChange = exports.getProjectFromWorkspace = exports.getWorkspace = exports.ANGULAR_CLI_WORKSPACE_PATH = exports.buildRelativePath = exports.findModule = exports.findModuleFromOptions = void 0;
|
|
11
10
|
const core_1 = require("@angular-devkit/core");
|
|
12
11
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
13
12
|
const ts = require("typescript");
|
|
@@ -26,19 +25,19 @@ function findModuleFromOptions(host, options) {
|
|
|
26
25
|
if (!options.module) {
|
|
27
26
|
const pathToCheck = (options.path || '')
|
|
28
27
|
+ (options.flat ? '' : '/' + core_1.strings.dasherize(options.name));
|
|
29
|
-
return
|
|
28
|
+
return core_1.normalize(findModule(host, pathToCheck, moduleExt, routingModuleExt));
|
|
30
29
|
}
|
|
31
30
|
else {
|
|
32
|
-
const modulePath =
|
|
33
|
-
const componentPath =
|
|
34
|
-
const moduleBaseName =
|
|
31
|
+
const modulePath = core_1.normalize(`/${options.path}/${options.module}`);
|
|
32
|
+
const componentPath = core_1.normalize(`/${options.path}/${options.name}`);
|
|
33
|
+
const moduleBaseName = core_1.normalize(modulePath).split('/').pop();
|
|
35
34
|
const candidateSet = new Set([
|
|
36
|
-
|
|
35
|
+
core_1.normalize(options.path || '/'),
|
|
37
36
|
]);
|
|
38
|
-
for (let dir = modulePath; dir != core_1.NormalizedRoot; dir =
|
|
37
|
+
for (let dir = modulePath; dir != core_1.NormalizedRoot; dir = core_1.dirname(dir)) {
|
|
39
38
|
candidateSet.add(dir);
|
|
40
39
|
}
|
|
41
|
-
for (let dir = componentPath; dir != core_1.NormalizedRoot; dir =
|
|
40
|
+
for (let dir = componentPath; dir != core_1.NormalizedRoot; dir = core_1.dirname(dir)) {
|
|
42
41
|
candidateSet.add(dir);
|
|
43
42
|
}
|
|
44
43
|
const candidatesDirs = [...candidateSet].sort((a, b) => b.length - a.length);
|
|
@@ -47,10 +46,10 @@ function findModuleFromOptions(host, options) {
|
|
|
47
46
|
'',
|
|
48
47
|
`${moduleBaseName}.ts`,
|
|
49
48
|
`${moduleBaseName}${moduleExt}`,
|
|
50
|
-
].map(x =>
|
|
49
|
+
].map(x => core_1.join(c, x));
|
|
51
50
|
for (const sc of candidateFiles) {
|
|
52
51
|
if (host.exists(sc)) {
|
|
53
|
-
return
|
|
52
|
+
return core_1.normalize(sc);
|
|
54
53
|
}
|
|
55
54
|
}
|
|
56
55
|
}
|
|
@@ -70,7 +69,7 @@ function findModule(host, generateDir, moduleExt = MODULE_EXT, routingModuleExt
|
|
|
70
69
|
const filteredMatches = allMatches.filter(p => !p.endsWith(routingModuleExt));
|
|
71
70
|
foundRoutingModule = foundRoutingModule || allMatches.length !== filteredMatches.length;
|
|
72
71
|
if (filteredMatches.length == 1) {
|
|
73
|
-
return
|
|
72
|
+
return core_1.join(dir.path, filteredMatches[0]);
|
|
74
73
|
}
|
|
75
74
|
else if (filteredMatches.length > 1) {
|
|
76
75
|
throw new Error('More than one module matches. Use skip-import option to skip importing '
|
|
@@ -89,15 +88,15 @@ exports.findModule = findModule;
|
|
|
89
88
|
* Build a relative path from one file path to another file path.
|
|
90
89
|
*/
|
|
91
90
|
function buildRelativePath(from, to) {
|
|
92
|
-
from =
|
|
93
|
-
to =
|
|
91
|
+
from = core_1.normalize(from);
|
|
92
|
+
to = core_1.normalize(to);
|
|
94
93
|
// Convert to arrays.
|
|
95
94
|
const fromParts = from.split('/');
|
|
96
95
|
const toParts = to.split('/');
|
|
97
96
|
// Remove file names (preserving destination)
|
|
98
97
|
fromParts.pop();
|
|
99
98
|
const toFileName = toParts.pop();
|
|
100
|
-
const relativePath =
|
|
99
|
+
const relativePath = core_1.relative(core_1.normalize(fromParts.join('/')), core_1.normalize(toParts.join('/')));
|
|
101
100
|
let pathPrefix = '';
|
|
102
101
|
// Set the path prefix for same dir or child dir, parent dir starts with `..`
|
|
103
102
|
if (!relativePath) {
|
|
@@ -708,17 +707,17 @@ function findBootstrapModulePath(host, mainPath) {
|
|
|
708
707
|
exports.findBootstrapModulePath = findBootstrapModulePath;
|
|
709
708
|
function getAppModulePath(host, mainPath) {
|
|
710
709
|
const moduleRelativePath = findBootstrapModulePath(host, mainPath);
|
|
711
|
-
const mainDir =
|
|
712
|
-
const modulePath =
|
|
710
|
+
const mainDir = path_1.dirname(mainPath);
|
|
711
|
+
const modulePath = core_1.normalize(`/${mainDir}/${moduleRelativePath}.ts`);
|
|
713
712
|
return modulePath;
|
|
714
713
|
}
|
|
715
714
|
exports.getAppModulePath = getAppModulePath;
|
|
716
715
|
function parseName(path, name) {
|
|
717
|
-
const nameWithoutPath =
|
|
718
|
-
const namePath =
|
|
716
|
+
const nameWithoutPath = core_1.basename(name);
|
|
717
|
+
const namePath = core_1.dirname((path + '/' + name));
|
|
719
718
|
return {
|
|
720
719
|
name: nameWithoutPath,
|
|
721
|
-
path:
|
|
720
|
+
path: core_1.normalize('/' + namePath),
|
|
722
721
|
};
|
|
723
722
|
}
|
|
724
723
|
exports.parseName = parseName;
|
|
@@ -5,13 +5,11 @@
|
|
|
5
5
|
* Use of this source code is governed by an MIT-style license that can be
|
|
6
6
|
* found in the LICENSE file at https://angular.io/license
|
|
7
7
|
*/
|
|
8
|
-
import {
|
|
9
|
-
export type WorkspaceDefinition = workspaces.WorkspaceDefinition;
|
|
10
|
-
export type ProjectDefinition = workspaces.ProjectDefinition;
|
|
8
|
+
import { WorkspaceProject } from '@schematics/angular/utility/config';
|
|
11
9
|
/**
|
|
12
10
|
* Gets a style file with the given extension in a project and returns its path. If no
|
|
13
11
|
* extension is specified, any style file with a valid extension will be returned.
|
|
14
12
|
*/
|
|
15
|
-
export declare function getProjectStyleFile(project:
|
|
13
|
+
export declare function getProjectStyleFile(project: WorkspaceProject, extension?: string): string | null;
|
|
16
14
|
/** Throws if the project is not using the default Angular devkit builders. */
|
|
17
|
-
export declare function assertDefaultBuildersConfigured(project:
|
|
15
|
+
export declare function assertDefaultBuildersConfigured(project: WorkspaceProject): void;
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
* found in the LICENSE file at https://angular.io/license
|
|
8
8
|
*/
|
|
9
9
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
-
exports.assertDefaultBuildersConfigured = exports.getProjectStyleFile = void 0;
|
|
11
10
|
const core_1 = require("@angular-devkit/core");
|
|
12
11
|
const schematics_1 = require("@angular-devkit/schematics");
|
|
13
12
|
/** Regular expression that matches all possible Angular CLI default style files. */
|
|
@@ -19,7 +18,7 @@ const validStyleFileRegex = /\.(c|le|sa|sc)ss/;
|
|
|
19
18
|
* extension is specified, any style file with a valid extension will be returned.
|
|
20
19
|
*/
|
|
21
20
|
function getProjectStyleFile(project, extension) {
|
|
22
|
-
const buildTarget = project.
|
|
21
|
+
const buildTarget = project.architect['build'];
|
|
23
22
|
if (buildTarget.options && buildTarget.options.styles && buildTarget.options.styles.length) {
|
|
24
23
|
const styles = buildTarget.options.styles.map(s => typeof s === 'string' ? s : s.input);
|
|
25
24
|
// Look for the default style file that is generated for new projects by the Angular CLI. This
|
|
@@ -27,7 +26,7 @@ function getProjectStyleFile(project, extension) {
|
|
|
27
26
|
const defaultMainStylePath = styles
|
|
28
27
|
.find(file => extension ? file === `styles.${extension}` : defaultStyleFileRegex.test(file));
|
|
29
28
|
if (defaultMainStylePath) {
|
|
30
|
-
return
|
|
29
|
+
return core_1.normalize(defaultMainStylePath);
|
|
31
30
|
}
|
|
32
31
|
// If no default style file could be found, use the first style file that matches the given
|
|
33
32
|
// extension. If no extension specified explicitly, we look for any file with a valid style
|
|
@@ -35,7 +34,7 @@ function getProjectStyleFile(project, extension) {
|
|
|
35
34
|
const fallbackStylePath = styles
|
|
36
35
|
.find(file => extension ? file.endsWith(`.${extension}`) : validStyleFileRegex.test(file));
|
|
37
36
|
if (fallbackStylePath) {
|
|
38
|
-
return
|
|
37
|
+
return core_1.normalize(fallbackStylePath);
|
|
39
38
|
}
|
|
40
39
|
}
|
|
41
40
|
return null;
|
package/src/component-base.js
CHANGED
|
@@ -300,7 +300,7 @@ var ComponentBase = /** @class */ (function () {
|
|
|
300
300
|
}
|
|
301
301
|
list.isUpdated = true;
|
|
302
302
|
}
|
|
303
|
-
if ((/grid/.test(tempAfterContentThis.getModuleName()) && hasDiffLength) || tempAfterContentThis.getModuleName()
|
|
303
|
+
if ((/grid/.test(tempAfterContentThis.getModuleName()) && hasDiffLength) || /chart/.test(tempAfterContentThis.getModuleName())) {
|
|
304
304
|
propObj[tagObject.name] = tagObject.instance.getProperties();
|
|
305
305
|
tempAfterContentThis.setProperties(propObj, tagObject.instance.isInitChanges);
|
|
306
306
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@import 'ej2-base/styles/definition/bootstrap5.3.scss';
|
package/hotfix/26.1.35_Vol2.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
hotfix/26.1.35_Vol2
|