@skyux/packages 13.0.0-alpha.6 → 13.0.0-alpha.8
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/migrations.json +11 -6
- package/package.json +56 -57
- package/src/schematics/migrations/update-13/fix-imports/fix-imports.schematic.d.ts +2 -0
- package/src/schematics/migrations/update-13/fix-imports/fix-imports.schematic.js +38 -0
- package/src/schematics/migrations/update-13/fix-imports/fix-imports.schematic.js.map +1 -0
- package/src/schematics/rules/convert-page-summary-to-page-header/convert-page-summary-to-page-header.js +1 -1
- package/src/schematics/rules/convert-progress-indicator-wizard-to-tab-wizard/convert-progress-indicator-wizard-to-tab-wizard.js +1 -1
- package/src/version.js +1 -1
package/migrations.json
CHANGED
|
@@ -1,32 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schematics": {
|
|
3
3
|
"noop": {
|
|
4
|
-
"version": "13.0.0-alpha.
|
|
4
|
+
"version": "13.0.0-alpha.8",
|
|
5
5
|
"factory": "./src/schematics/migrations/noop/noop.schematic",
|
|
6
6
|
"description": "Update all SKY UX component packages"
|
|
7
7
|
},
|
|
8
|
+
"fix-imports": {
|
|
9
|
+
"version": "13.0.0-alpha.8",
|
|
10
|
+
"factory": "./src/schematics/migrations/update-13/fix-imports/fix-imports.schematic",
|
|
11
|
+
"description": "Update typescript imports for SKY UX packages."
|
|
12
|
+
},
|
|
8
13
|
"i18n-resources-module": {
|
|
9
|
-
"version": "13.0.0-alpha.
|
|
14
|
+
"version": "13.0.0-alpha.8",
|
|
10
15
|
"factory": "./src/schematics/migrations/update-13/i18n-resources-module/i18n-resources-module.schematic",
|
|
11
16
|
"description": "Regenerate i18n resources modules for libraries."
|
|
12
17
|
},
|
|
13
18
|
"icon-name": {
|
|
14
|
-
"version": "13.0.0-alpha.
|
|
19
|
+
"version": "13.0.0-alpha.8",
|
|
15
20
|
"factory": "./src/schematics/migrations/update-13/icon-name/icon-name.schematic",
|
|
16
21
|
"description": "Update icon `icon` properties to `iconName`."
|
|
17
22
|
},
|
|
18
23
|
"remove-old-compat-stylesheets": {
|
|
19
|
-
"version": "13.0.0-alpha.
|
|
24
|
+
"version": "13.0.0-alpha.8",
|
|
20
25
|
"factory": "./src/schematics/migrations/update-13/remove-old-compat-stylesheets/remove-old-compat-stylesheets.schematic",
|
|
21
26
|
"description": "Remove backward compatible stylesheets for older versions of SKY UX."
|
|
22
27
|
},
|
|
23
28
|
"workspace-check": {
|
|
24
|
-
"version": "13.0.0-alpha.
|
|
29
|
+
"version": "13.0.0-alpha.8",
|
|
25
30
|
"factory": "./src/schematics/migrations/update-13/workspace-check/workspace-check.schematic",
|
|
26
31
|
"description": "Log warnings if the workspace is not configured correctly."
|
|
27
32
|
},
|
|
28
33
|
"replace-light-blue-custom-property": {
|
|
29
|
-
"version": "13.0.0-alpha.
|
|
34
|
+
"version": "13.0.0-alpha.8",
|
|
30
35
|
"factory": "./src/schematics/migrations/update-13/replace-light-blue-custom-property/replace-light-blue-custom-property.schematic",
|
|
31
36
|
"description": "Replace --sky-category-color-light-blue custom property with --sky-category-color-green."
|
|
32
37
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/packages",
|
|
3
|
-
"version": "13.0.0-alpha.
|
|
3
|
+
"version": "13.0.0-alpha.8",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"description": "Handles the `ng update` command for SKY UX component libraries.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,68 +35,67 @@
|
|
|
35
35
|
"ng-update": {
|
|
36
36
|
"migrations": "./migrations.json",
|
|
37
37
|
"packageGroup": {
|
|
38
|
-
"@skyux/packages": "13.0.0-alpha.
|
|
38
|
+
"@skyux/packages": "13.0.0-alpha.8",
|
|
39
39
|
"@blackbaud/angular-tree-component": "^1.0.0",
|
|
40
|
-
"@skyux-sdk/eslint-
|
|
41
|
-
"@skyux-sdk/
|
|
42
|
-
"@skyux-sdk/
|
|
43
|
-
"@skyux
|
|
44
|
-
"@skyux-
|
|
45
|
-
"@skyux/
|
|
46
|
-
"@skyux/
|
|
47
|
-
"@skyux/
|
|
48
|
-
"@skyux/
|
|
49
|
-
"@skyux/
|
|
50
|
-
"@skyux/
|
|
51
|
-
"@skyux/
|
|
52
|
-
"@skyux/
|
|
53
|
-
"@skyux/
|
|
54
|
-
"@skyux/
|
|
55
|
-
"@skyux/
|
|
56
|
-
"@skyux/
|
|
57
|
-
"@skyux/
|
|
58
|
-
"@skyux/
|
|
59
|
-
"@skyux/
|
|
60
|
-
"@skyux/
|
|
61
|
-
"@skyux/
|
|
62
|
-
"@skyux/
|
|
63
|
-
"@skyux/
|
|
64
|
-
"@skyux/
|
|
65
|
-
"@skyux/i18n": "13.0.0-alpha.6",
|
|
66
|
-
"@skyux/icon": "13.0.0-alpha.6",
|
|
40
|
+
"@skyux-sdk/eslint-schematics": "13.0.0-alpha.8",
|
|
41
|
+
"@skyux-sdk/stylelint-schematics": "13.0.0-alpha.8",
|
|
42
|
+
"@skyux-sdk/testing": "13.0.0-alpha.8",
|
|
43
|
+
"@skyux/a11y": "13.0.0-alpha.8",
|
|
44
|
+
"@skyux/action-bars": "13.0.0-alpha.8",
|
|
45
|
+
"@skyux/ag-grid": "13.0.0-alpha.8",
|
|
46
|
+
"@skyux/angular-tree-component": "13.0.0-alpha.8",
|
|
47
|
+
"@skyux/animations": "13.0.0-alpha.8",
|
|
48
|
+
"@skyux/assets": "13.0.0-alpha.8",
|
|
49
|
+
"@skyux/autonumeric": "13.0.0-alpha.8",
|
|
50
|
+
"@skyux/avatar": "13.0.0-alpha.8",
|
|
51
|
+
"@skyux/code-examples": "13.0.0-alpha.8",
|
|
52
|
+
"@skyux/colorpicker": "13.0.0-alpha.8",
|
|
53
|
+
"@skyux/config": "13.0.0-alpha.8",
|
|
54
|
+
"@skyux/core": "13.0.0-alpha.8",
|
|
55
|
+
"@skyux/data-manager": "13.0.0-alpha.8",
|
|
56
|
+
"@skyux/datetime": "13.0.0-alpha.8",
|
|
57
|
+
"@skyux/docs-tools": "13.0.0-alpha.8",
|
|
58
|
+
"@skyux/errors": "13.0.0-alpha.8",
|
|
59
|
+
"@skyux/flyout": "13.0.0-alpha.8",
|
|
60
|
+
"@skyux/forms": "13.0.0-alpha.8",
|
|
61
|
+
"@skyux/grids": "13.0.0-alpha.8",
|
|
62
|
+
"@skyux/help-inline": "13.0.0-alpha.8",
|
|
63
|
+
"@skyux/i18n": "13.0.0-alpha.8",
|
|
64
|
+
"@skyux/icon": "13.0.0-alpha.8",
|
|
67
65
|
"@skyux/icons": "^9.0.0",
|
|
68
|
-
"@skyux/indicators": "13.0.0-alpha.
|
|
69
|
-
"@skyux/inline-form": "13.0.0-alpha.
|
|
70
|
-
"@skyux/layout": "13.0.0-alpha.
|
|
71
|
-
"@skyux/list-builder": "13.0.0-alpha.
|
|
72
|
-
"@skyux/list-builder-common": "13.0.0-alpha.
|
|
73
|
-
"@skyux/list-builder-view-checklist": "13.0.0-alpha.
|
|
74
|
-
"@skyux/list-builder-view-grids": "13.0.0-alpha.
|
|
75
|
-
"@skyux/lists": "13.0.0-alpha.
|
|
76
|
-
"@skyux/lookup": "13.0.0-alpha.
|
|
77
|
-
"@skyux/manifest": "13.0.0-alpha.
|
|
78
|
-
"@skyux/modals": "13.0.0-alpha.
|
|
79
|
-
"@skyux/navbar": "13.0.0-alpha.
|
|
80
|
-
"@skyux/pages": "13.0.0-alpha.
|
|
81
|
-
"@skyux/phone-field": "13.0.0-alpha.
|
|
82
|
-
"@skyux/popovers": "13.0.0-alpha.
|
|
83
|
-
"@skyux/progress-indicator": "13.0.0-alpha.
|
|
84
|
-
"@skyux/router": "13.0.0-alpha.
|
|
85
|
-
"@skyux/select-field": "13.0.0-alpha.
|
|
86
|
-
"@skyux/split-view": "13.0.0-alpha.
|
|
87
|
-
"@skyux/tabs": "13.0.0-alpha.
|
|
88
|
-
"@skyux/text-editor": "13.0.0-alpha.
|
|
89
|
-
"@skyux/theme": "13.0.0-alpha.
|
|
90
|
-
"@skyux/tiles": "13.0.0-alpha.
|
|
91
|
-
"@skyux/toast": "13.0.0-alpha.
|
|
92
|
-
"@skyux/validation": "13.0.0-alpha.
|
|
66
|
+
"@skyux/indicators": "13.0.0-alpha.8",
|
|
67
|
+
"@skyux/inline-form": "13.0.0-alpha.8",
|
|
68
|
+
"@skyux/layout": "13.0.0-alpha.8",
|
|
69
|
+
"@skyux/list-builder": "13.0.0-alpha.8",
|
|
70
|
+
"@skyux/list-builder-common": "13.0.0-alpha.8",
|
|
71
|
+
"@skyux/list-builder-view-checklist": "13.0.0-alpha.8",
|
|
72
|
+
"@skyux/list-builder-view-grids": "13.0.0-alpha.8",
|
|
73
|
+
"@skyux/lists": "13.0.0-alpha.8",
|
|
74
|
+
"@skyux/lookup": "13.0.0-alpha.8",
|
|
75
|
+
"@skyux/manifest": "13.0.0-alpha.8",
|
|
76
|
+
"@skyux/modals": "13.0.0-alpha.8",
|
|
77
|
+
"@skyux/navbar": "13.0.0-alpha.8",
|
|
78
|
+
"@skyux/pages": "13.0.0-alpha.8",
|
|
79
|
+
"@skyux/phone-field": "13.0.0-alpha.8",
|
|
80
|
+
"@skyux/popovers": "13.0.0-alpha.8",
|
|
81
|
+
"@skyux/progress-indicator": "13.0.0-alpha.8",
|
|
82
|
+
"@skyux/router": "13.0.0-alpha.8",
|
|
83
|
+
"@skyux/select-field": "13.0.0-alpha.8",
|
|
84
|
+
"@skyux/split-view": "13.0.0-alpha.8",
|
|
85
|
+
"@skyux/tabs": "13.0.0-alpha.8",
|
|
86
|
+
"@skyux/text-editor": "13.0.0-alpha.8",
|
|
87
|
+
"@skyux/theme": "13.0.0-alpha.8",
|
|
88
|
+
"@skyux/tiles": "13.0.0-alpha.8",
|
|
89
|
+
"@skyux/toast": "13.0.0-alpha.8",
|
|
90
|
+
"@skyux/validation": "13.0.0-alpha.8",
|
|
93
91
|
"ag-grid-angular": "^34.1.1",
|
|
94
92
|
"ag-grid-community": "^34.1.1",
|
|
95
93
|
"ag-grid-enterprise": "^34.1.1",
|
|
96
94
|
"autonumeric": "^4.10.8",
|
|
97
|
-
"eslint-config-skyux": "13.0.0-alpha.
|
|
98
|
-
"skyux-
|
|
99
|
-
"stylelint
|
|
95
|
+
"eslint-config-skyux": "13.0.0-alpha.8",
|
|
96
|
+
"skyux-eslint": "13.0.0-alpha.8",
|
|
97
|
+
"skyux-stylelint": "13.0.0-alpha.8",
|
|
98
|
+
"stylelint-config-skyux": "13.0.0-alpha.8"
|
|
100
99
|
}
|
|
101
100
|
},
|
|
102
101
|
"peerDependencies": {
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = fixImports;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const schematics_1 = require("@angular/cdk/schematics");
|
|
6
|
+
const typescript_1 = tslib_1.__importDefault(require("@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript"));
|
|
7
|
+
const ast_utils_1 = require("@schematics/angular/utility/ast-utils");
|
|
8
|
+
const visit_project_files_1 = require("../../../utility/visit-project-files");
|
|
9
|
+
const knownDeepImportUpdates = {
|
|
10
|
+
'@skyux/ag-grid/lib/modules/ag-grid/types/cell-editor-lookup-params': '@skyux/ag-grid',
|
|
11
|
+
'@skyux/core/lib/modules/breakpoint-observer/breakpoint': '@skyux/core',
|
|
12
|
+
'@skyux/lookup/testing/modules/lookup/lookup-show-more-picker-harness': '@skyux/lookup/testing',
|
|
13
|
+
'@skyux/modals/lib/modules/modal/modal.interface': '@skyux/modals',
|
|
14
|
+
'@skyux/pages/lib/modules/action-hub/types/action-hub-needs-attention-input': '@skyux/pages',
|
|
15
|
+
};
|
|
16
|
+
function fixImports() {
|
|
17
|
+
return (tree) => {
|
|
18
|
+
(0, visit_project_files_1.visitProjectFiles)(tree, '', (filePath) => {
|
|
19
|
+
if (filePath.endsWith('.ts')) {
|
|
20
|
+
const fileContent = tree.readText(filePath);
|
|
21
|
+
if (Object.keys(knownDeepImportUpdates).some((u) => fileContent.includes(u))) {
|
|
22
|
+
const sourceFile = (0, schematics_1.parseSourceFile)(tree, filePath);
|
|
23
|
+
const importSpecifiers = (0, ast_utils_1.findNodes)(sourceFile, (node) => typescript_1.default.isStringLiteral(node) &&
|
|
24
|
+
typescript_1.default.isImportDeclaration(node.parent) &&
|
|
25
|
+
node.text in knownDeepImportUpdates);
|
|
26
|
+
const recorder = tree.beginUpdate(filePath);
|
|
27
|
+
importSpecifiers.forEach((importSpecifier) => {
|
|
28
|
+
const shallowImportPath = knownDeepImportUpdates[importSpecifier.text];
|
|
29
|
+
recorder.remove(importSpecifier.getStart(sourceFile) + 1, importSpecifier.text.length);
|
|
30
|
+
recorder.insertLeft(importSpecifier.getStart(sourceFile) + 1, shallowImportPath);
|
|
31
|
+
});
|
|
32
|
+
tree.commitUpdate(recorder);
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=fix-imports.schematic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fix-imports.schematic.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/packages/src/schematics/migrations/update-13/fix-imports/fix-imports.schematic.ts"],"names":[],"mappings":";;AAkBA,6BAoCC;;AArDD,wDAA0D;AAC1D,wIAAgG;AAChG,qEAAkE;AAElE,8EAAyE;AAEzE,MAAM,sBAAsB,GAA2B;IACrD,oEAAoE,EAClE,gBAAgB;IAClB,wDAAwD,EAAE,aAAa;IACvE,sEAAsE,EACpE,uBAAuB;IACzB,iDAAiD,EAAE,eAAe;IAClE,4EAA4E,EAC1E,cAAc;CACjB,CAAC;AAEF,SAAwB,UAAU;IAChC,OAAO,CAAC,IAAU,EAAE,EAAE;QACpB,IAAA,uCAAiB,EAAC,IAAI,EAAE,EAAE,EAAE,CAAC,QAAQ,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ertPageSummaryToPageHeader(projectPath) {
|
|
|
175
175
|
}
|
|
176
176
|
});
|
|
177
177
|
},
|
|
178
|
-
(0, utility_1.addDependency)('@skyux/pages', `13.0.0-alpha.
|
|
178
|
+
(0, utility_1.addDependency)('@skyux/pages', `13.0.0-alpha.8`, {
|
|
179
179
|
existing: utility_1.ExistingBehavior.Skip,
|
|
180
180
|
}),
|
|
181
181
|
]);
|
|
@@ -297,7 +297,7 @@ function convertProgressIndicatorWizardToTabWizard(options) {
|
|
|
297
297
|
});
|
|
298
298
|
}
|
|
299
299
|
},
|
|
300
|
-
(0, utility_1.addDependency)('@skyux/tabs', `13.0.0-alpha.
|
|
300
|
+
(0, utility_1.addDependency)('@skyux/tabs', `13.0.0-alpha.8`, {
|
|
301
301
|
existing: utility_1.ExistingBehavior.Skip,
|
|
302
302
|
}),
|
|
303
303
|
]);
|
package/src/version.js
CHANGED