@skyux/packages 8.0.0-alpha.0 → 8.0.0-alpha.2
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/collection.json +5 -0
- package/package.json +58 -49
- package/src/polyfills.d.ts +0 -0
- package/src/polyfills.js +2 -0
- package/src/polyfills.js.map +1 -0
- package/src/schematics/migrations/migration-collection.json +5 -40
- package/src/schematics/migrations/update-8/update-polyfill/schema.json +7 -0
- package/src/schematics/migrations/update-8/update-polyfill/update-polyfill.schematic.d.ts +2 -0
- package/src/schematics/migrations/update-8/update-polyfill/update-polyfill.schematic.js +70 -0
- package/src/schematics/migrations/update-8/update-polyfill/update-polyfill.schematic.js.map +1 -0
- package/src/schematics/ng-add/ng-add.schematic.js +2 -2
- package/src/schematics/ng-add/ng-add.schematic.js.map +1 -1
- package/src/schematics/rules/add-polyfills-config.d.ts +2 -0
- package/src/schematics/rules/add-polyfills-config.js +35 -0
- package/src/schematics/rules/add-polyfills-config.js.map +1 -0
- package/src/schematics/migrations/update-7/add-autonumeric-dependency.d.ts +0 -2
- package/src/schematics/migrations/update-7/add-autonumeric-dependency.js +0 -11
- package/src/schematics/migrations/update-7/add-autonumeric-dependency.js.map +0 -1
- package/src/schematics/migrations/update-7/add-axe-core-dependency.d.ts +0 -2
- package/src/schematics/migrations/update-7/add-axe-core-dependency.js +0 -11
- package/src/schematics/migrations/update-7/add-axe-core-dependency.js.map +0 -1
- package/src/schematics/migrations/update-7/add-compat-stylesheets.d.ts +0 -2
- package/src/schematics/migrations/update-7/add-compat-stylesheets.js +0 -156
- package/src/schematics/migrations/update-7/add-compat-stylesheets.js.map +0 -1
- package/src/schematics/migrations/update-7/add-moment-dependency.d.ts +0 -2
- package/src/schematics/migrations/update-7/add-moment-dependency.js +0 -11
- package/src/schematics/migrations/update-7/add-moment-dependency.js.map +0 -1
- package/src/schematics/migrations/update-7/ag-grid-28.schematic.d.ts +0 -12
- package/src/schematics/migrations/update-7/ag-grid-28.schematic.js +0 -201
- package/src/schematics/migrations/update-7/ag-grid-28.schematic.js.map +0 -1
- package/src/schematics/migrations/update-7/fix-imports.d.ts +0 -2
- package/src/schematics/migrations/update-7/fix-imports.js +0 -172
- package/src/schematics/migrations/update-7/fix-imports.js.map +0 -1
- package/src/schematics/migrations/update-7/fix-scss-imports.d.ts +0 -2
- package/src/schematics/migrations/update-7/fix-scss-imports.js +0 -77
- package/src/schematics/migrations/update-7/fix-scss-imports.js.map +0 -1
- package/src/schematics/migrations/update-7/rename-mutation-observer-service.d.ts +0 -2
- package/src/schematics/migrations/update-7/rename-mutation-observer-service.js +0 -27
- package/src/schematics/migrations/update-7/rename-mutation-observer-service.js.map +0 -1
- package/src/schematics/rules/add-crossvent-fix.d.ts +0 -2
- package/src/schematics/rules/add-crossvent-fix.js +0 -58
- package/src/schematics/rules/add-crossvent-fix.js.map +0 -1
package/collection.json
CHANGED
|
@@ -5,6 +5,11 @@
|
|
|
5
5
|
"description": "Add @skyux/packages to your project.",
|
|
6
6
|
"factory": "./src/schematics/ng-add/ng-add.schematic",
|
|
7
7
|
"schema": "./src/schematics/ng-add/schema.json"
|
|
8
|
+
},
|
|
9
|
+
"update-polyfill": {
|
|
10
|
+
"description": "Remove code from polyfills.ts/test.ts and add @skyux/packages/polyfills to workspace config.",
|
|
11
|
+
"factory": "./src/schematics/migrations/update-8/update-polyfill/update-polyfill.schematic#updatePolyfillSchematic",
|
|
12
|
+
"schema": "./src/schematics/migrations/update-8/update-polyfill/schema.json"
|
|
8
13
|
}
|
|
9
14
|
}
|
|
10
15
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/packages",
|
|
3
|
-
"version": "8.0.0-alpha.
|
|
3
|
+
"version": "8.0.0-alpha.2",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"description": "Handles the `ng update` command for SKY UX component libraries.",
|
|
6
6
|
"keywords": [
|
|
@@ -16,6 +16,16 @@
|
|
|
16
16
|
"url": "https://github.com/blackbaud/skyux/issues"
|
|
17
17
|
},
|
|
18
18
|
"homepage": "https://github.com/blackbaud/skyux#readme",
|
|
19
|
+
"main": "./src/index.js",
|
|
20
|
+
"exports": {
|
|
21
|
+
".": {
|
|
22
|
+
"default": "./src/index.js",
|
|
23
|
+
"require": "./src/index.js"
|
|
24
|
+
},
|
|
25
|
+
"./polyfills": {
|
|
26
|
+
"default": "./src/polyfills.js"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
19
29
|
"schematics": "./collection.json",
|
|
20
30
|
"ng-add": {
|
|
21
31
|
"save": "dependencies"
|
|
@@ -23,54 +33,54 @@
|
|
|
23
33
|
"ng-update": {
|
|
24
34
|
"migrations": "./src/schematics/migrations/migration-collection.json",
|
|
25
35
|
"packageGroup": {
|
|
26
|
-
"@skyux-sdk/prettier-schematics": "8.0.0-alpha.
|
|
27
|
-
"@skyux-sdk/testing": "8.0.0-alpha.
|
|
28
|
-
"@skyux/a11y": "8.0.0-alpha.
|
|
29
|
-
"@skyux/action-bars": "8.0.0-alpha.
|
|
30
|
-
"@skyux/ag-grid": "8.0.0-alpha.
|
|
31
|
-
"@skyux/angular-tree-component": "8.0.0-alpha.
|
|
32
|
-
"@skyux/animations": "8.0.0-alpha.
|
|
33
|
-
"@skyux/assets": "8.0.0-alpha.
|
|
34
|
-
"@skyux/autonumeric": "8.0.0-alpha.
|
|
35
|
-
"@skyux/avatar": "8.0.0-alpha.
|
|
36
|
-
"@skyux/colorpicker": "8.0.0-alpha.
|
|
37
|
-
"@skyux/config": "8.0.0-alpha.
|
|
38
|
-
"@skyux/core": "8.0.0-alpha.
|
|
39
|
-
"@skyux/data-manager": "8.0.0-alpha.
|
|
40
|
-
"@skyux/datetime": "8.0.0-alpha.
|
|
36
|
+
"@skyux-sdk/prettier-schematics": "8.0.0-alpha.2",
|
|
37
|
+
"@skyux-sdk/testing": "8.0.0-alpha.2",
|
|
38
|
+
"@skyux/a11y": "8.0.0-alpha.2",
|
|
39
|
+
"@skyux/action-bars": "8.0.0-alpha.2",
|
|
40
|
+
"@skyux/ag-grid": "8.0.0-alpha.2",
|
|
41
|
+
"@skyux/angular-tree-component": "8.0.0-alpha.2",
|
|
42
|
+
"@skyux/animations": "8.0.0-alpha.2",
|
|
43
|
+
"@skyux/assets": "8.0.0-alpha.2",
|
|
44
|
+
"@skyux/autonumeric": "8.0.0-alpha.2",
|
|
45
|
+
"@skyux/avatar": "8.0.0-alpha.2",
|
|
46
|
+
"@skyux/colorpicker": "8.0.0-alpha.2",
|
|
47
|
+
"@skyux/config": "8.0.0-alpha.2",
|
|
48
|
+
"@skyux/core": "8.0.0-alpha.2",
|
|
49
|
+
"@skyux/data-manager": "8.0.0-alpha.2",
|
|
50
|
+
"@skyux/datetime": "8.0.0-alpha.2",
|
|
41
51
|
"@skyux/docs-tools": "^7.0.0",
|
|
42
|
-
"@skyux/errors": "8.0.0-alpha.
|
|
43
|
-
"@skyux/flyout": "8.0.0-alpha.
|
|
44
|
-
"@skyux/forms": "8.0.0-alpha.
|
|
45
|
-
"@skyux/grids": "8.0.0-alpha.
|
|
46
|
-
"@skyux/http": "8.0.0-alpha.
|
|
47
|
-
"@skyux/i18n": "8.0.0-alpha.
|
|
48
|
-
"@skyux/icons": "^5.
|
|
49
|
-
"@skyux/indicators": "8.0.0-alpha.
|
|
50
|
-
"@skyux/inline-form": "8.0.0-alpha.
|
|
51
|
-
"@skyux/layout": "8.0.0-alpha.
|
|
52
|
-
"@skyux/list-builder": "8.0.0-alpha.
|
|
53
|
-
"@skyux/list-builder-common": "8.0.0-alpha.
|
|
54
|
-
"@skyux/list-builder-view-checklist": "8.0.0-alpha.
|
|
55
|
-
"@skyux/list-builder-view-grids": "8.0.0-alpha.
|
|
56
|
-
"@skyux/lists": "8.0.0-alpha.
|
|
57
|
-
"@skyux/lookup": "8.0.0-alpha.
|
|
58
|
-
"@skyux/modals": "8.0.0-alpha.
|
|
59
|
-
"@skyux/navbar": "8.0.0-alpha.
|
|
60
|
-
"@skyux/omnibar-interop": "8.0.0-alpha.
|
|
61
|
-
"@skyux/pages": "8.0.0-alpha.
|
|
62
|
-
"@skyux/phone-field": "8.0.0-alpha.
|
|
63
|
-
"@skyux/popovers": "8.0.0-alpha.
|
|
64
|
-
"@skyux/progress-indicator": "8.0.0-alpha.
|
|
65
|
-
"@skyux/router": "8.0.0-alpha.
|
|
66
|
-
"@skyux/select-field": "8.0.0-alpha.
|
|
67
|
-
"@skyux/split-view": "8.0.0-alpha.
|
|
68
|
-
"@skyux/tabs": "8.0.0-alpha.
|
|
69
|
-
"@skyux/text-editor": "8.0.0-alpha.
|
|
70
|
-
"@skyux/theme": "8.0.0-alpha.
|
|
71
|
-
"@skyux/tiles": "8.0.0-alpha.
|
|
72
|
-
"@skyux/toast": "8.0.0-alpha.
|
|
73
|
-
"@skyux/validation": "8.0.0-alpha.
|
|
52
|
+
"@skyux/errors": "8.0.0-alpha.2",
|
|
53
|
+
"@skyux/flyout": "8.0.0-alpha.2",
|
|
54
|
+
"@skyux/forms": "8.0.0-alpha.2",
|
|
55
|
+
"@skyux/grids": "8.0.0-alpha.2",
|
|
56
|
+
"@skyux/http": "8.0.0-alpha.2",
|
|
57
|
+
"@skyux/i18n": "8.0.0-alpha.2",
|
|
58
|
+
"@skyux/icons": "^5.2.0",
|
|
59
|
+
"@skyux/indicators": "8.0.0-alpha.2",
|
|
60
|
+
"@skyux/inline-form": "8.0.0-alpha.2",
|
|
61
|
+
"@skyux/layout": "8.0.0-alpha.2",
|
|
62
|
+
"@skyux/list-builder": "8.0.0-alpha.2",
|
|
63
|
+
"@skyux/list-builder-common": "8.0.0-alpha.2",
|
|
64
|
+
"@skyux/list-builder-view-checklist": "8.0.0-alpha.2",
|
|
65
|
+
"@skyux/list-builder-view-grids": "8.0.0-alpha.2",
|
|
66
|
+
"@skyux/lists": "8.0.0-alpha.2",
|
|
67
|
+
"@skyux/lookup": "8.0.0-alpha.2",
|
|
68
|
+
"@skyux/modals": "8.0.0-alpha.2",
|
|
69
|
+
"@skyux/navbar": "8.0.0-alpha.2",
|
|
70
|
+
"@skyux/omnibar-interop": "8.0.0-alpha.2",
|
|
71
|
+
"@skyux/pages": "8.0.0-alpha.2",
|
|
72
|
+
"@skyux/phone-field": "8.0.0-alpha.2",
|
|
73
|
+
"@skyux/popovers": "8.0.0-alpha.2",
|
|
74
|
+
"@skyux/progress-indicator": "8.0.0-alpha.2",
|
|
75
|
+
"@skyux/router": "8.0.0-alpha.2",
|
|
76
|
+
"@skyux/select-field": "8.0.0-alpha.2",
|
|
77
|
+
"@skyux/split-view": "8.0.0-alpha.2",
|
|
78
|
+
"@skyux/tabs": "8.0.0-alpha.2",
|
|
79
|
+
"@skyux/text-editor": "8.0.0-alpha.2",
|
|
80
|
+
"@skyux/theme": "8.0.0-alpha.2",
|
|
81
|
+
"@skyux/tiles": "8.0.0-alpha.2",
|
|
82
|
+
"@skyux/toast": "8.0.0-alpha.2",
|
|
83
|
+
"@skyux/validation": "8.0.0-alpha.2",
|
|
74
84
|
"ag-grid-angular": "^28.2.1",
|
|
75
85
|
"ag-grid-community": "^28.2.1",
|
|
76
86
|
"ag-grid-enterprise": "^28.2.1"
|
|
@@ -83,6 +93,5 @@
|
|
|
83
93
|
"fs-extra": "10.1.0",
|
|
84
94
|
"jsonc-parser": "3.2.0"
|
|
85
95
|
},
|
|
86
|
-
"main": "./src/index.js",
|
|
87
96
|
"types": "./src/index.d.ts"
|
|
88
97
|
}
|
|
File without changes
|
package/src/polyfills.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"polyfills.js","sourceRoot":"","sources":["../../../../../libs/components/packages/src/polyfills.ts"],"names":[],"mappings":""}
|
|
@@ -1,49 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schematics": {
|
|
3
3
|
"noop": {
|
|
4
|
-
"version": "8.0.0-alpha.
|
|
4
|
+
"version": "8.0.0-alpha.2",
|
|
5
5
|
"factory": "./noop/noop.schematic",
|
|
6
6
|
"description": "Update all SKY UX component packages"
|
|
7
7
|
},
|
|
8
|
-
"
|
|
9
|
-
"version": "
|
|
10
|
-
"factory": "./update-
|
|
11
|
-
"description": "
|
|
12
|
-
},
|
|
13
|
-
"add-autonumeric-dependency": {
|
|
14
|
-
"version": "7.0.0-beta.0",
|
|
15
|
-
"factory": "./update-7/add-autonumeric-dependency",
|
|
16
|
-
"description": "Add autonumeric as a dependency since @skyux/autonumeric@7 references autonumeric as a peer."
|
|
17
|
-
},
|
|
18
|
-
"add-axe-core-dependency": {
|
|
19
|
-
"version": "7.0.0-beta.0",
|
|
20
|
-
"factory": "./update-7/add-axe-core-dependency",
|
|
21
|
-
"description": "Add axe-core as a dependency since @skyux-sdk/testing@7 references axe-core as a peer."
|
|
22
|
-
},
|
|
23
|
-
"add-moment-dependency": {
|
|
24
|
-
"version": "7.0.0-beta.0",
|
|
25
|
-
"factory": "./update-7/add-moment-dependency",
|
|
26
|
-
"description": "Add moment.js as a dependency since SKY UX 7 references moment.js as a peer."
|
|
27
|
-
},
|
|
28
|
-
"rename-mutation-observer-service": {
|
|
29
|
-
"version": "7.0.0-beta.0",
|
|
30
|
-
"factory": "./update-7/rename-mutation-observer-service",
|
|
31
|
-
"description": "Replace all instances of 'MutationObserverService' with 'SkyMutationObserverService'"
|
|
32
|
-
},
|
|
33
|
-
"add-compat-stylesheets": {
|
|
34
|
-
"version": "7.0.0-beta.0",
|
|
35
|
-
"factory": "./update-7/add-compat-stylesheets",
|
|
36
|
-
"description": "Add a backwards-compatible stylesheet with styles that have been removed from components in SKY UX 7."
|
|
37
|
-
},
|
|
38
|
-
"fix-scss-imports": {
|
|
39
|
-
"version": "7.0.0-beta.0",
|
|
40
|
-
"factory": "./update-7/fix-scss-imports",
|
|
41
|
-
"description": "Fix SCSS imports"
|
|
42
|
-
},
|
|
43
|
-
"fix-imports": {
|
|
44
|
-
"version": "7.0.0-beta.0",
|
|
45
|
-
"factory": "./update-7/fix-imports",
|
|
46
|
-
"description": "Fix import and export statements where the file case does not match the filesystem, and fix or warn about core-js imports"
|
|
8
|
+
"update-polyfill": {
|
|
9
|
+
"version": "8.0.0-alpha.0",
|
|
10
|
+
"factory": "./update-8/update-polyfill/update-polyfill",
|
|
11
|
+
"description": "Remove code from polyfills.ts/test.ts and add @skyux/packages/polyfills to workspace config."
|
|
47
12
|
}
|
|
48
13
|
}
|
|
49
14
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.updatePolyfillSchematic = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
6
|
+
const ts = tslib_1.__importStar(require("@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript"));
|
|
7
|
+
const add_polyfills_config_1 = require("../../../rules/add-polyfills-config");
|
|
8
|
+
const workspace_1 = require("../../../utility/workspace");
|
|
9
|
+
const polyfillBlockStart = `* SKY UX POLYFILLS - DO NOT MODIFY THIS SECTION`;
|
|
10
|
+
const polyfillBlockEnd = `* END SKY UX POLYFILLS`;
|
|
11
|
+
function removePolyfillCode() {
|
|
12
|
+
return async (tree) => {
|
|
13
|
+
const { workspace } = await (0, workspace_1.getWorkspace)(tree);
|
|
14
|
+
workspace.projects.forEach((project) => {
|
|
15
|
+
['polyfills.ts', 'test.ts'].forEach((filename) => {
|
|
16
|
+
const path = `${project.root}/src/${filename}`;
|
|
17
|
+
if (tree.exists(path)) {
|
|
18
|
+
const polyfillsFile = tree.readText(path).replace(/\r\n/g, `\n`);
|
|
19
|
+
const polyfillBlockStartIndex = polyfillsFile.indexOf(polyfillBlockStart);
|
|
20
|
+
const polyfillBlockEndIndex = polyfillsFile.indexOf(polyfillBlockEnd);
|
|
21
|
+
if (polyfillBlockStartIndex !== -1 && polyfillBlockEndIndex !== -1) {
|
|
22
|
+
const changeStart = polyfillsFile.lastIndexOf(`/*`, polyfillBlockStartIndex);
|
|
23
|
+
const changeEnd = polyfillsFile.indexOf(`*/`, polyfillBlockEndIndex) + 2;
|
|
24
|
+
const change = tree.beginUpdate(path);
|
|
25
|
+
change.remove(changeStart, changeEnd - changeStart);
|
|
26
|
+
tree.commitUpdate(change);
|
|
27
|
+
}
|
|
28
|
+
else {
|
|
29
|
+
const sourceFile = ts.createSourceFile(path, polyfillsFile, ts.ScriptTarget.Latest, true);
|
|
30
|
+
// Find the expression that assigns the global property to the window object.
|
|
31
|
+
const expression = sourceFile.statements.find((node) => {
|
|
32
|
+
if (ts.isExpressionStatement(node)) {
|
|
33
|
+
const expression = node.expression;
|
|
34
|
+
if (ts.isBinaryExpression(expression)) {
|
|
35
|
+
const left = expression.left;
|
|
36
|
+
if (ts.isPropertyAccessExpression(left)) {
|
|
37
|
+
let leftExpression = left.expression;
|
|
38
|
+
if (ts.isParenthesizedExpression(leftExpression)) {
|
|
39
|
+
leftExpression = leftExpression.expression;
|
|
40
|
+
}
|
|
41
|
+
if (ts.isAsExpression(leftExpression) &&
|
|
42
|
+
ts.isIdentifier(leftExpression.expression) &&
|
|
43
|
+
leftExpression.expression.text === 'window' &&
|
|
44
|
+
left.name.text === 'global') {
|
|
45
|
+
const right = expression.right;
|
|
46
|
+
if (ts.isIdentifier(right) && right.text === 'window') {
|
|
47
|
+
return true;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
return false;
|
|
54
|
+
});
|
|
55
|
+
if (expression) {
|
|
56
|
+
const change = tree.beginUpdate(path);
|
|
57
|
+
change.remove(expression.pos, expression.end - expression.pos);
|
|
58
|
+
tree.commitUpdate(change);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
});
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
function updatePolyfillSchematic() {
|
|
67
|
+
return (0, schematics_1.chain)([removePolyfillCode(), (0, add_polyfills_config_1.addPolyfillsConfig)()]);
|
|
68
|
+
}
|
|
69
|
+
exports.updatePolyfillSchematic = updatePolyfillSchematic;
|
|
70
|
+
//# sourceMappingURL=update-polyfill.schematic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-polyfill.schematic.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/packages/src/schematics/migrations/update-8/update-polyfill/update-polyfill.schematic.ts"],"names":[],"mappings":";;;;AAAA,2DAAyD;AACzD,2HAAqG;AAErG,8EAAyE;AACzE,0DAA0D;AAE1D,MAAM,kBAAkB,GAAG,iDAAiD,CAAC;AAC7E,MAAM,gBAAgB,GAAG,wBAAwB,CAAC;AAElD,SAAS,kBAAkB;IACzB,OAAO,KAAK,EAAE,IAAI,EAAiB,EAAE;QACnC,MAAM,EAAE,SAAS,EAAE,GAAG,MAAM,IAAA,wBAAY,EAAC,IAAI,CAAC,CAAC;QAC/C,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACrC,CAAC,cAAc,EAAE,SAAS,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;gBAC/C,MAAM,IAAI,GAAG,GAAG,OAAO,CAAC,IAAI,QAAQ,QAAQ,EAAE,CAAC;gBAC/C,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;oBACrB,MAAM,aAAa,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;oBACjE,MAAM,uBAAuB,GAC3B,aAAa,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC;oBAC5C,MAAM,qBAAqB,GAAG,aAAa,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;oBACtE,IAAI,uBAAuB,KAAK,CAAC,CAAC,IAAI,qBAAqB,KAAK,CAAC,CAAC,EAAE;wBAClE,MAAM,WAAW,GAA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CACA,MAAM,KAAK,GAAG,UAAU,CAAC,KAAK,CAAC;4CAC/B,IAAI,EAAE,CAAC,YAAY,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,IAAI,KAAK,QAAQ,EAAE;gDACrD,OAAO,IAAI,CAAC;6CACb;yCACF;qCACF;iCACF;6BACF;4BACD,OAAO,KAAK,CAAC;wBACf,CAAC,CAAC,CAAC;wBACH,IAAI,UAAU,EAAE;4BACd,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;4BACtC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,GAAG,EAAE,UAAU,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC;4BAC/D,IAAI,CAAC,YAAY,CAAC,MAAM,CAAC,CAAC;yBAC3B;qBACF;iBACF;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAED,SAAgB,uBAAuB;IACrC,OAAO,IAAA,kBAAK,EAAC,CAAC,kBAAkB,EAAE,EAAE,IAAA,yCAAkB,GAAE,CAAC,CAAC,CAAC;AAC7D,CAAC;AAFD,0DAEC"}
|
|
@@ -6,7 +6,7 @@ const schematics_1 = require("@angular-devkit/schematics");
|
|
|
6
6
|
const tasks_1 = require("@angular-devkit/schematics/tasks");
|
|
7
7
|
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
8
8
|
const fs_extra_1 = tslib_1.__importDefault(require("fs-extra"));
|
|
9
|
-
const
|
|
9
|
+
const add_polyfills_config_1 = require("../rules/add-polyfills-config");
|
|
10
10
|
const apply_skyux_stylesheets_to_workspace_1 = require("../rules/apply-skyux-stylesheets-to-workspace");
|
|
11
11
|
const install_angular_cdk_1 = require("../rules/install-angular-cdk");
|
|
12
12
|
function installEssentialSkyUxPackages(skyuxVersion) {
|
|
@@ -35,7 +35,7 @@ function ngAdd() {
|
|
|
35
35
|
return (0, schematics_1.chain)([
|
|
36
36
|
installEssentialSkyUxPackages(skyuxVersion),
|
|
37
37
|
(0, install_angular_cdk_1.installAngularCdk)(),
|
|
38
|
-
(0,
|
|
38
|
+
(0, add_polyfills_config_1.addPolyfillsConfig)(),
|
|
39
39
|
(0, apply_skyux_stylesheets_to_workspace_1.applySkyuxStylesheetsToWorkspace)(),
|
|
40
40
|
]);
|
|
41
41
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-add.schematic.js","sourceRoot":"","sources":["../../../../../../../libs/components/packages/src/schematics/ng-add/ng-add.schematic.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AACjD,2DAAyD;AACzD,4DAA0E;AAC1E,2EAGkD;AAElD,gEAA0B;AAE1B,
|
|
1
|
+
{"version":3,"file":"ng-add.schematic.js","sourceRoot":"","sources":["../../../../../../../libs/components/packages/src/schematics/ng-add/ng-add.schematic.ts"],"names":[],"mappings":";;;AAAA,+CAAiD;AACjD,2DAAyD;AACzD,4DAA0E;AAC1E,2EAGkD;AAElD,gEAA0B;AAE1B,wEAAmE;AACnE,wGAAiG;AACjG,sEAAiE;AAEjE,SAAS,6BAA6B,CAAC,YAAoB;IACzD,OAAO,KAAK,EAAE,IAAI,EAAE,EAAE;QACpB,MAAM,YAAY,GAAG;YACnB,eAAe;YACf,aAAa;YACb,aAAa;YACb,cAAc;SACf,CAAC;QAEF,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE;YACtC,IAAA,uCAAwB,EAAC,IAAI,EAAE;gBAC7B,IAAI,EAAE,iCAAkB,CAAC,OAAO;gBAChC,IAAI,EAAE,WAAW;gBACjB,OAAO,EAAE,IAAI,YAAY,EAAE;gBAC3B,SAAS,EAAE,IAAI;aAChB,CAAC,CAAC;SACJ;IACH,CAAC,CAAC;AACJ,CAAC;AAED,SAAwB,KAAK;IAC3B,OAAO,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE;QAC7B,iDAAiD;QACjD,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,kBAAE,CAAC,YAAY,CAC/C,IAAA,gBAAS,EAAC,GAAG,SAAS,wBAAwB,CAAC,CAChD,CAAC;QAEF,OAAO,CAAC,OAAO,CAAC,IAAI,8BAAsB,EAAE,CAAC,CAAC;QAE9C,OAAO,IAAA,kBAAK,EAAC;YACX,6BAA6B,CAAC,YAAY,CAAC;YAC3C,IAAA,uCAAiB,GAAE;YACnB,IAAA,yCAAkB,GAAE;YACpB,IAAA,uEAAgC,GAAE;SACnC,CAAC,CAAC;IACL,CAAC,CAAC;AACJ,CAAC;AAhBD,wBAgBC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.addPolyfillsConfig = void 0;
|
|
4
|
+
const workspace_1 = require("../utility/workspace");
|
|
5
|
+
const polyfillsBuilders = [
|
|
6
|
+
'@angular-devkit/build-angular:browser',
|
|
7
|
+
'@angular-devkit/build-angular:karma',
|
|
8
|
+
'@blackbaud-internal/skyux-angular-builders:browser',
|
|
9
|
+
'@blackbaud-internal/skyux-angular-builders:karma',
|
|
10
|
+
];
|
|
11
|
+
function addPolyfillsConfig() {
|
|
12
|
+
return (0, workspace_1.updateWorkspace)((workspace) => {
|
|
13
|
+
workspace.projects.forEach((project) => {
|
|
14
|
+
project.targets.forEach((target) => {
|
|
15
|
+
if (polyfillsBuilders.includes(target.builder)) {
|
|
16
|
+
if (!target.options?.polyfills) {
|
|
17
|
+
target.options = {
|
|
18
|
+
...(target.options || {}),
|
|
19
|
+
polyfills: [],
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
else if (typeof target.options.polyfills === 'string') {
|
|
23
|
+
target.options.polyfills = [target.options.polyfills];
|
|
24
|
+
}
|
|
25
|
+
if (Array.isArray(target.options.polyfills) &&
|
|
26
|
+
!target.options.polyfills.includes('@skyux/packages/polyfills')) {
|
|
27
|
+
target.options.polyfills.push('@skyux/packages/polyfills');
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
exports.addPolyfillsConfig = addPolyfillsConfig;
|
|
35
|
+
//# sourceMappingURL=add-polyfills-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add-polyfills-config.js","sourceRoot":"","sources":["../../../../../../../libs/components/packages/src/schematics/rules/add-polyfills-config.ts"],"names":[],"mappings":";;;AAEA,oDAAuD;AAEvD,MAAM,iBAAiB,GAAG;IACxB,uCAAuC;IACvC,qCAAqC;IACrC,oDAAoD;IACpD,kDAAkD;CACnD,CAAC;AAEF,SAAgB,kBAAkB;IAChC,OAAO,IAAA,2BAAe,EAAC,CAAC,SAAS,EAAE,EAAE;QACnC,SAAS,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;YACrC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE;gBACjC,IAAI,iBAAiB,CAAC,QAAQ,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE;oBAC9C,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,SAAS,EAAE;wBAC9B,MAAM,CAAC,OAAO,GAAG;4BACf,GAAG,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,CAAC;4BACzB,SAAS,EAAE,EAAE;yBACd,CAAC;qBACH;yBAAM,IAAI,OAAO,MAAM,CAAC,OAAO,CAAC,SAAS,KAAK,QAAQ,EAAE;wBACvD,MAAM,CAAC,OAAO,CAAC,SAAS,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;qBACvD;oBACD,IACE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC;wBACvC,CAAC,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,2BAA2B,CAAC,EAC/D;wBACA,MAAM,CAAC,OAAO,CAAC,SAAS,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAC;qBAC5D;iBACF;YACH,CAAC,CAAC,CAAC;QACL,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC;AAvBD,gDAuBC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
4
|
-
const ensure_peers_installed_1 = require("../../rules/ensure-peers-installed");
|
|
5
|
-
function default_1() {
|
|
6
|
-
return (0, ensure_peers_installed_1.ensurePeersInstalled)('@skyux/autonumeric', [
|
|
7
|
-
{ name: 'autonumeric', version: '4.6.0', type: dependencies_1.NodeDependencyType.Default },
|
|
8
|
-
]);
|
|
9
|
-
}
|
|
10
|
-
exports.default = default_1;
|
|
11
|
-
//# sourceMappingURL=add-autonumeric-dependency.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-autonumeric-dependency.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-7/add-autonumeric-dependency.ts"],"names":[],"mappings":";;AACA,2EAA8E;AAE9E,+EAA0E;AAE1E;IACE,OAAO,IAAA,6CAAoB,EAAC,oBAAoB,EAAE;QAChD,EAAE,IAAI,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,iCAAkB,CAAC,OAAO,EAAE;KAC5E,CAAC,CAAC;AACL,CAAC;AAJD,4BAIC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
4
|
-
const ensure_peers_installed_1 = require("../../rules/ensure-peers-installed");
|
|
5
|
-
function default_1() {
|
|
6
|
-
return (0, ensure_peers_installed_1.ensurePeersInstalled)('@skyux-sdk/testing', [
|
|
7
|
-
{ name: 'axe-core', version: '3.5.6', type: dependencies_1.NodeDependencyType.Dev },
|
|
8
|
-
]);
|
|
9
|
-
}
|
|
10
|
-
exports.default = default_1;
|
|
11
|
-
//# sourceMappingURL=add-axe-core-dependency.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-axe-core-dependency.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-7/add-axe-core-dependency.ts"],"names":[],"mappings":";;AACA,2EAA8E;AAE9E,+EAA0E;AAE1E;IACE,OAAO,IAAA,6CAAoB,EAAC,oBAAoB,EAAE;QAChD,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,iCAAkB,CAAC,GAAG,EAAE;KACrE,CAAC,CAAC;AACL,CAAC;AAJD,4BAIC"}
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const schematics_1 = require("@angular-devkit/schematics");
|
|
4
|
-
const tree_1 = require("../../utility/tree");
|
|
5
|
-
const workspace_1 = require("../../utility/workspace");
|
|
6
|
-
const SKYUX7_COMPAT_CSS_FILE_NAME = 'skyux7-compat.css';
|
|
7
|
-
const compatStyles = {
|
|
8
|
-
libraries: [
|
|
9
|
-
{
|
|
10
|
-
name: '@skyux/indicators',
|
|
11
|
-
components: [
|
|
12
|
-
{
|
|
13
|
-
name: 'alert',
|
|
14
|
-
styles: [
|
|
15
|
-
{
|
|
16
|
-
css: `
|
|
17
|
-
.sky-alert {
|
|
18
|
-
margin-bottom: 20px;
|
|
19
|
-
}`,
|
|
20
|
-
instructions: `
|
|
21
|
-
The preset bottom margin has been removed from alert components. To implement the newly-recommended spacing, add the \`sky-margin-stacked-lg\` CSS class to each \`sky-alert\` component in your application, then remove this block.`,
|
|
22
|
-
},
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
|
-
],
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
name: '@skyux/layout',
|
|
29
|
-
components: [
|
|
30
|
-
{
|
|
31
|
-
name: 'description list',
|
|
32
|
-
styles: [
|
|
33
|
-
{
|
|
34
|
-
css: `
|
|
35
|
-
.sky-description-list-vertical-mode .sky-description-list-content:last-child {
|
|
36
|
-
margin-bottom: 15px;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.sky-theme-modern .sky-description-list-vertical-mode .sky-description-list-content:last-child {
|
|
40
|
-
margin-bottom: 20px;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
:root {
|
|
44
|
-
--sky-compat-description-list-margin-bottom: 0;
|
|
45
|
-
}
|
|
46
|
-
`,
|
|
47
|
-
instructions: `
|
|
48
|
-
The preset bottom margin has been removed from description list components in horizontal and vertical modes in default theme and vertical mode in modern. To implement the newly-recommended spacing, add the \`sky-margin-stacked-lg\` CSS class to each \`sky-description-list\` component in your application, then remove this block.`,
|
|
49
|
-
},
|
|
50
|
-
],
|
|
51
|
-
},
|
|
52
|
-
],
|
|
53
|
-
},
|
|
54
|
-
],
|
|
55
|
-
};
|
|
56
|
-
function getProjectSourcePath(projectDefinition) {
|
|
57
|
-
/*istanbul ignore else*/
|
|
58
|
-
if (projectDefinition.sourceRoot) {
|
|
59
|
-
return `${projectDefinition.sourceRoot}/app`;
|
|
60
|
-
}
|
|
61
|
-
else {
|
|
62
|
-
return `${projectDefinition.root}/src/app`;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function buildCommentBlock(message) {
|
|
66
|
-
return `/${'*'.repeat(79)}
|
|
67
|
-
* ${message.replace(/(?![^\n]{1,75}$)([^\n]{1,75})\s/g, '$1\n * ')}
|
|
68
|
-
${'*'.repeat(79)}/`;
|
|
69
|
-
}
|
|
70
|
-
function buildComponentCss(component) {
|
|
71
|
-
let contents = buildCommentBlock(`COMPONENT: ${component.name.toUpperCase()}`);
|
|
72
|
-
for (const style of component.styles) {
|
|
73
|
-
contents += `
|
|
74
|
-
|
|
75
|
-
${buildCommentBlock(style.instructions.trim())}
|
|
76
|
-
|
|
77
|
-
${style.css.trim()}
|
|
78
|
-
`;
|
|
79
|
-
}
|
|
80
|
-
return contents;
|
|
81
|
-
}
|
|
82
|
-
function writeStylesheet(sourceRoot, contents) {
|
|
83
|
-
const filePath = `${sourceRoot}/${SKYUX7_COMPAT_CSS_FILE_NAME}`;
|
|
84
|
-
return (tree) => {
|
|
85
|
-
if (tree.exists(filePath)) {
|
|
86
|
-
tree.overwrite(filePath, contents);
|
|
87
|
-
}
|
|
88
|
-
else {
|
|
89
|
-
tree.create(filePath, contents);
|
|
90
|
-
}
|
|
91
|
-
};
|
|
92
|
-
}
|
|
93
|
-
function addStylesheetToWorkspace() {
|
|
94
|
-
return () => (0, workspace_1.updateWorkspace)((workspace) => {
|
|
95
|
-
for (const project of workspace.projects.values()) {
|
|
96
|
-
for (const targetName of ['build', 'test']) {
|
|
97
|
-
if (project.extensions.projectType === 'application') {
|
|
98
|
-
const target = project.targets.get(targetName);
|
|
99
|
-
const sourceRoot = getProjectSourcePath(project);
|
|
100
|
-
const filePath = `${sourceRoot}/${SKYUX7_COMPAT_CSS_FILE_NAME}`;
|
|
101
|
-
/* istanbul ignore else */
|
|
102
|
-
if (target && target.options) {
|
|
103
|
-
const styles = (target.options.styles = (target.options.styles ||
|
|
104
|
-
[]));
|
|
105
|
-
if (!styles.includes(filePath)) {
|
|
106
|
-
styles.push(filePath);
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
}
|
|
114
|
-
function getCompatStyles(tree) {
|
|
115
|
-
let contents = '';
|
|
116
|
-
const packageJson = JSON.parse((0, tree_1.readRequiredFile)(tree, '/package.json'));
|
|
117
|
-
for (const library of compatStyles.libraries) {
|
|
118
|
-
if (packageJson.dependencies?.[library.name] ||
|
|
119
|
-
packageJson.devDependencies?.[library.name]) {
|
|
120
|
-
for (const component of library.components) {
|
|
121
|
-
contents += buildComponentCss(component);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
return contents
|
|
126
|
-
? `${buildCommentBlock(`TODO: The following component libraries introduced visual breaking changes in SKY UX 7. Each block of CSS reintroduces the styles that were changed or removed for backwards compatibility. You will need to do the following before migrating to the next major version of SKY UX:
|
|
127
|
-
- Address each of the changes by following the instructions
|
|
128
|
-
in each block of CSS, then remove the block.
|
|
129
|
-
- Delete this file after all blocks have been addressed.
|
|
130
|
-
- Remove each occurrence of this file in your project's
|
|
131
|
-
angular.json file.`)}
|
|
132
|
-
|
|
133
|
-
${contents}`
|
|
134
|
-
: undefined;
|
|
135
|
-
}
|
|
136
|
-
function default_1() {
|
|
137
|
-
return async (tree) => {
|
|
138
|
-
const { workspace } = await (0, workspace_1.getWorkspace)(tree);
|
|
139
|
-
const styles = getCompatStyles(tree);
|
|
140
|
-
const rules = [];
|
|
141
|
-
for (const [, projectDefinition] of workspace.projects.entries()) {
|
|
142
|
-
if (projectDefinition.extensions.projectType === 'application') {
|
|
143
|
-
if (styles) {
|
|
144
|
-
const sourcePath = getProjectSourcePath(projectDefinition);
|
|
145
|
-
rules.push(writeStylesheet(sourcePath, styles));
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
if (styles) {
|
|
150
|
-
rules.push(addStylesheetToWorkspace());
|
|
151
|
-
}
|
|
152
|
-
return (0, schematics_1.chain)(rules);
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
exports.default = default_1;
|
|
156
|
-
//# sourceMappingURL=add-compat-stylesheets.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-compat-stylesheets.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-7/add-compat-stylesheets.ts"],"names":[],"mappings":";;AACA,2DAA+D;AAE/D,6CAAsD;AACtD,uDAAwE;AAExE,MAAM,2BAA2B,GAAG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EAAE;YACV,KAAK,CAAC,IAAI,CAAC,wBAAwB,EAAE,CAAC,CAAC;SACxC;QAED,OAAO,IAAA,kBAAK,EAAC,KAAK,CAAC,CAAC;IACtB,CAAC,CAAC;AACJ,CAAC;AArBD,4BAqBC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const dependencies_1 = require("@schematics/angular/utility/dependencies");
|
|
4
|
-
const ensure_peers_installed_1 = require("../../rules/ensure-peers-installed");
|
|
5
|
-
function default_1() {
|
|
6
|
-
return (0, ensure_peers_installed_1.ensurePeersInstalled)('@skyux/datetime', [
|
|
7
|
-
{ name: 'moment', version: '2.29.4', type: dependencies_1.NodeDependencyType.Default },
|
|
8
|
-
]);
|
|
9
|
-
}
|
|
10
|
-
exports.default = default_1;
|
|
11
|
-
//# sourceMappingURL=add-moment-dependency.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"add-moment-dependency.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/migrations/update-7/add-moment-dependency.ts"],"names":[],"mappings":";;AACA,2EAA8E;AAE9E,+EAA0E;AAE1E;IACE,OAAO,IAAA,6CAAoB,EAAC,iBAAiB,EAAE;QAC7C,EAAE,IAAI,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,iCAAkB,CAAC,OAAO,EAAE;KACxE,CAAC,CAAC;AACL,CAAC;AAJD,4BAIC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
-
export declare const UPDATE_TO_VERSION = "28.2.1";
|
|
3
|
-
/**
|
|
4
|
-
* Upgrade to AG Grid 28 and address three breaking changes:
|
|
5
|
-
*
|
|
6
|
-
* - No longer support `@ag-grid-community/all-modules` -- just use the package
|
|
7
|
-
* - Remove `AgGridModule.withComponents` in module import
|
|
8
|
-
* - Column API renamed getSecondaryColumns / setSecondaryColumns
|
|
9
|
-
*
|
|
10
|
-
* Also advise against mixing modules and packages.
|
|
11
|
-
*/
|
|
12
|
-
export default function (): Rule;
|