@skyux/packages 15.0.0-alpha.10 → 15.0.0-alpha.12
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 +14 -9
- package/package.json +60 -60
- package/src/schematics/migrations/update-15/fluid-grid-inset/fluid-grid-inset.schematic.d.ts +8 -0
- package/src/schematics/migrations/update-15/fluid-grid-inset/fluid-grid-inset.schematic.js +173 -0
- package/src/schematics/migrations/update-15/fluid-grid-inset/fluid-grid-inset.schematic.js.map +1 -0
- package/src/schematics/rules/convert-grid-to-data-grid/convert-grid-to-data-grid.js +1 -1
- 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/schematics/utility/typescript/ng-ast.js +7 -3
- package/src/schematics/utility/typescript/ng-ast.js.map +1 -1
- package/src/version.js +1 -1
package/migrations.json
CHANGED
|
@@ -1,49 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schematics": {
|
|
3
3
|
"noop": {
|
|
4
|
-
"version": "15.0.0-alpha.
|
|
4
|
+
"version": "15.0.0-alpha.12",
|
|
5
5
|
"factory": "./src/schematics/migrations/all/noop/noop.schematic",
|
|
6
6
|
"description": "Update all SKY UX component packages"
|
|
7
7
|
},
|
|
8
8
|
"i18n-resources-module": {
|
|
9
|
-
"version": "15.0.0-alpha.
|
|
9
|
+
"version": "15.0.0-alpha.12",
|
|
10
10
|
"factory": "./src/schematics/migrations/all/i18n-resources-module/i18n-resources-module.schematic",
|
|
11
11
|
"description": "Regenerate i18n resources modules for libraries."
|
|
12
12
|
},
|
|
13
13
|
"remove-old-compat-stylesheets": {
|
|
14
|
-
"version": "15.0.0-alpha.
|
|
14
|
+
"version": "15.0.0-alpha.12",
|
|
15
15
|
"factory": "./src/schematics/migrations/all/remove-old-compat-stylesheets/remove-old-compat-stylesheets.schematic",
|
|
16
16
|
"description": "Remove backward compatible stylesheets for older versions of SKY UX."
|
|
17
17
|
},
|
|
18
18
|
"workspace-check": {
|
|
19
|
-
"version": "15.0.0-alpha.
|
|
19
|
+
"version": "15.0.0-alpha.12",
|
|
20
20
|
"factory": "./src/schematics/migrations/all/workspace-check/workspace-check.schematic",
|
|
21
21
|
"description": "Log warnings if the workspace is not configured correctly."
|
|
22
22
|
},
|
|
23
23
|
"migrate-dragula-polyfill": {
|
|
24
|
-
"version": "15.0.0-alpha.
|
|
24
|
+
"version": "15.0.0-alpha.12",
|
|
25
25
|
"factory": "./src/schematics/migrations/all/migrate-dragula-polyfill/migrate-dragula-polyfill.schematic",
|
|
26
26
|
"description": "Remove the @skyux/packages/polyfills entry from project config, replacing it with a local copy when Dragula is still installed."
|
|
27
27
|
},
|
|
28
28
|
"remove-timepicker-retain-invalid-values": {
|
|
29
|
-
"version": "15.0.0-alpha.
|
|
29
|
+
"version": "15.0.0-alpha.12",
|
|
30
30
|
"factory": "./src/schematics/migrations/update-15/remove-timepicker-retain-invalid-values/remove-timepicker-retain-invalid-values.schematic",
|
|
31
31
|
"description": "Remove the skyTimepickerRetainInvalidValues input from timepicker inputs since retaining invalid values is now the default behavior."
|
|
32
32
|
},
|
|
33
33
|
"add-compat-stylesheets": {
|
|
34
|
-
"version": "15.0.0-alpha.
|
|
34
|
+
"version": "15.0.0-alpha.12",
|
|
35
35
|
"factory": "./src/schematics/migrations/update-15/add-compat-stylesheets/add-compat-stylesheet.schematic",
|
|
36
36
|
"description": "Add a backwards-compatible stylesheet with styles that have been removed from components in SKY UX 15."
|
|
37
37
|
},
|
|
38
38
|
"migrate-sdk-testing-imports": {
|
|
39
|
-
"version": "15.0.0-alpha.
|
|
39
|
+
"version": "15.0.0-alpha.12",
|
|
40
40
|
"factory": "./src/schematics/migrations/update-15/migrate-sdk-testing-imports/migrate-sdk-testing-imports.schematic",
|
|
41
41
|
"description": "Move SkyAppTestUtility, SkyAppTestUtilityDomEventOptions, and SkyBy imports from the deprecated @skyux-sdk/testing package to @skyux/core/testing."
|
|
42
42
|
},
|
|
43
43
|
"legacy-i18n-services": {
|
|
44
|
-
"version": "15.0.0-alpha.
|
|
44
|
+
"version": "15.0.0-alpha.12",
|
|
45
45
|
"factory": "./src/schematics/migrations/update-15/legacy-i18n-services/legacy-i18n-services.schematic",
|
|
46
46
|
"description": "Replace SkyAppResourcesService and SkyLibResourcesService with their legacy equivalents since the originals now emit whenever the locale changes."
|
|
47
|
+
},
|
|
48
|
+
"fluid-grid-inset": {
|
|
49
|
+
"version": "15.0.0-alpha.12",
|
|
50
|
+
"factory": "./src/schematics/migrations/update-15/fluid-grid-inset/fluid-grid-inset.schematic",
|
|
51
|
+
"description": "Migrate sky-fluid-grid elements from the deprecated disableMargin input to the new inset input, since hiding the outer margin is now the default behavior."
|
|
47
52
|
}
|
|
48
53
|
}
|
|
49
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/packages",
|
|
3
|
-
"version": "15.0.0-alpha.
|
|
3
|
+
"version": "15.0.0-alpha.12",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"description": "Handles the `ng update` command for SKY UX component libraries.",
|
|
6
6
|
"keywords": [
|
|
@@ -32,71 +32,71 @@
|
|
|
32
32
|
"ng-update": {
|
|
33
33
|
"migrations": "./migrations.json",
|
|
34
34
|
"packageGroup": {
|
|
35
|
-
"@skyux/packages": "15.0.0-alpha.
|
|
35
|
+
"@skyux/packages": "15.0.0-alpha.12",
|
|
36
36
|
"@blackbaud/angular-tree-component": "^1.0.0",
|
|
37
|
-
"@skyux-sdk/eslint-schematics": "15.0.0-alpha.
|
|
38
|
-
"@skyux-sdk/stylelint-schematics": "15.0.0-alpha.
|
|
39
|
-
"@skyux-sdk/testing": "15.0.0-alpha.
|
|
40
|
-
"@skyux-sdk/testing-schematics": "15.0.0-alpha.
|
|
41
|
-
"@skyux-sdk/vitest": "15.0.0-alpha.
|
|
42
|
-
"@skyux/a11y": "15.0.0-alpha.
|
|
43
|
-
"@skyux/action-bars": "15.0.0-alpha.
|
|
44
|
-
"@skyux/ag-grid": "15.0.0-alpha.
|
|
45
|
-
"@skyux/angular-tree-component": "15.0.0-alpha.
|
|
46
|
-
"@skyux/animations": "15.0.0-alpha.
|
|
47
|
-
"@skyux/assets": "15.0.0-alpha.
|
|
48
|
-
"@skyux/autonumeric": "15.0.0-alpha.
|
|
49
|
-
"@skyux/avatar": "15.0.0-alpha.
|
|
50
|
-
"@skyux/charts": "15.0.0-alpha.
|
|
51
|
-
"@skyux/code-examples": "15.0.0-alpha.
|
|
52
|
-
"@skyux/colorpicker": "15.0.0-alpha.
|
|
53
|
-
"@skyux/config": "15.0.0-alpha.
|
|
54
|
-
"@skyux/core": "15.0.0-alpha.
|
|
55
|
-
"@skyux/data-grid": "15.0.0-alpha.
|
|
56
|
-
"@skyux/data-manager": "15.0.0-alpha.
|
|
57
|
-
"@skyux/datetime": "15.0.0-alpha.
|
|
58
|
-
"@skyux/docs-tools": "15.0.0-alpha.
|
|
59
|
-
"@skyux/errors": "15.0.0-alpha.
|
|
60
|
-
"@skyux/filter-bar": "15.0.0-alpha.
|
|
61
|
-
"@skyux/flyout": "15.0.0-alpha.
|
|
62
|
-
"@skyux/forms": "15.0.0-alpha.
|
|
63
|
-
"@skyux/grids": "15.0.0-alpha.
|
|
64
|
-
"@skyux/help-inline": "15.0.0-alpha.
|
|
65
|
-
"@skyux/i18n": "15.0.0-alpha.
|
|
66
|
-
"@skyux/icon": "15.0.0-alpha.
|
|
37
|
+
"@skyux-sdk/eslint-schematics": "15.0.0-alpha.12",
|
|
38
|
+
"@skyux-sdk/stylelint-schematics": "15.0.0-alpha.12",
|
|
39
|
+
"@skyux-sdk/testing": "15.0.0-alpha.12",
|
|
40
|
+
"@skyux-sdk/testing-schematics": "15.0.0-alpha.12",
|
|
41
|
+
"@skyux-sdk/vitest": "15.0.0-alpha.12",
|
|
42
|
+
"@skyux/a11y": "15.0.0-alpha.12",
|
|
43
|
+
"@skyux/action-bars": "15.0.0-alpha.12",
|
|
44
|
+
"@skyux/ag-grid": "15.0.0-alpha.12",
|
|
45
|
+
"@skyux/angular-tree-component": "15.0.0-alpha.12",
|
|
46
|
+
"@skyux/animations": "15.0.0-alpha.12",
|
|
47
|
+
"@skyux/assets": "15.0.0-alpha.12",
|
|
48
|
+
"@skyux/autonumeric": "15.0.0-alpha.12",
|
|
49
|
+
"@skyux/avatar": "15.0.0-alpha.12",
|
|
50
|
+
"@skyux/charts": "15.0.0-alpha.12",
|
|
51
|
+
"@skyux/code-examples": "15.0.0-alpha.12",
|
|
52
|
+
"@skyux/colorpicker": "15.0.0-alpha.12",
|
|
53
|
+
"@skyux/config": "15.0.0-alpha.12",
|
|
54
|
+
"@skyux/core": "15.0.0-alpha.12",
|
|
55
|
+
"@skyux/data-grid": "15.0.0-alpha.12",
|
|
56
|
+
"@skyux/data-manager": "15.0.0-alpha.12",
|
|
57
|
+
"@skyux/datetime": "15.0.0-alpha.12",
|
|
58
|
+
"@skyux/docs-tools": "15.0.0-alpha.12",
|
|
59
|
+
"@skyux/errors": "15.0.0-alpha.12",
|
|
60
|
+
"@skyux/filter-bar": "15.0.0-alpha.12",
|
|
61
|
+
"@skyux/flyout": "15.0.0-alpha.12",
|
|
62
|
+
"@skyux/forms": "15.0.0-alpha.12",
|
|
63
|
+
"@skyux/grids": "15.0.0-alpha.12",
|
|
64
|
+
"@skyux/help-inline": "15.0.0-alpha.12",
|
|
65
|
+
"@skyux/i18n": "15.0.0-alpha.12",
|
|
66
|
+
"@skyux/icon": "15.0.0-alpha.12",
|
|
67
67
|
"@skyux/icons": "^11.4.0",
|
|
68
|
-
"@skyux/indicators": "15.0.0-alpha.
|
|
69
|
-
"@skyux/inline-form": "15.0.0-alpha.
|
|
70
|
-
"@skyux/layout": "15.0.0-alpha.
|
|
71
|
-
"@skyux/list-builder": "15.0.0-alpha.
|
|
72
|
-
"@skyux/list-builder-common": "15.0.0-alpha.
|
|
73
|
-
"@skyux/list-builder-view-checklist": "15.0.0-alpha.
|
|
74
|
-
"@skyux/list-builder-view-grids": "15.0.0-alpha.
|
|
75
|
-
"@skyux/lists": "15.0.0-alpha.
|
|
76
|
-
"@skyux/lookup": "15.0.0-alpha.
|
|
77
|
-
"@skyux/manifest": "15.0.0-alpha.
|
|
78
|
-
"@skyux/modals": "15.0.0-alpha.
|
|
79
|
-
"@skyux/navbar": "15.0.0-alpha.
|
|
80
|
-
"@skyux/pages": "15.0.0-alpha.
|
|
81
|
-
"@skyux/phone-field": "15.0.0-alpha.
|
|
82
|
-
"@skyux/popovers": "15.0.0-alpha.
|
|
83
|
-
"@skyux/progress-indicator": "15.0.0-alpha.
|
|
84
|
-
"@skyux/router": "15.0.0-alpha.
|
|
85
|
-
"@skyux/split-view": "15.0.0-alpha.
|
|
86
|
-
"@skyux/tabs": "15.0.0-alpha.
|
|
87
|
-
"@skyux/text-editor": "15.0.0-alpha.
|
|
88
|
-
"@skyux/theme": "15.0.0-alpha.
|
|
89
|
-
"@skyux/tiles": "15.0.0-alpha.
|
|
90
|
-
"@skyux/toast": "15.0.0-alpha.
|
|
91
|
-
"@skyux/validation": "15.0.0-alpha.
|
|
68
|
+
"@skyux/indicators": "15.0.0-alpha.12",
|
|
69
|
+
"@skyux/inline-form": "15.0.0-alpha.12",
|
|
70
|
+
"@skyux/layout": "15.0.0-alpha.12",
|
|
71
|
+
"@skyux/list-builder": "15.0.0-alpha.12",
|
|
72
|
+
"@skyux/list-builder-common": "15.0.0-alpha.12",
|
|
73
|
+
"@skyux/list-builder-view-checklist": "15.0.0-alpha.12",
|
|
74
|
+
"@skyux/list-builder-view-grids": "15.0.0-alpha.12",
|
|
75
|
+
"@skyux/lists": "15.0.0-alpha.12",
|
|
76
|
+
"@skyux/lookup": "15.0.0-alpha.12",
|
|
77
|
+
"@skyux/manifest": "15.0.0-alpha.12",
|
|
78
|
+
"@skyux/modals": "15.0.0-alpha.12",
|
|
79
|
+
"@skyux/navbar": "15.0.0-alpha.12",
|
|
80
|
+
"@skyux/pages": "15.0.0-alpha.12",
|
|
81
|
+
"@skyux/phone-field": "15.0.0-alpha.12",
|
|
82
|
+
"@skyux/popovers": "15.0.0-alpha.12",
|
|
83
|
+
"@skyux/progress-indicator": "15.0.0-alpha.12",
|
|
84
|
+
"@skyux/router": "15.0.0-alpha.12",
|
|
85
|
+
"@skyux/split-view": "15.0.0-alpha.12",
|
|
86
|
+
"@skyux/tabs": "15.0.0-alpha.12",
|
|
87
|
+
"@skyux/text-editor": "15.0.0-alpha.12",
|
|
88
|
+
"@skyux/theme": "15.0.0-alpha.12",
|
|
89
|
+
"@skyux/tiles": "15.0.0-alpha.12",
|
|
90
|
+
"@skyux/toast": "15.0.0-alpha.12",
|
|
91
|
+
"@skyux/validation": "15.0.0-alpha.12",
|
|
92
92
|
"ag-grid-angular": "^36.1.0",
|
|
93
93
|
"ag-grid-community": "^36.1.0",
|
|
94
94
|
"ag-grid-enterprise": "^36.0.2",
|
|
95
95
|
"autonumeric": "^4.10.10",
|
|
96
|
-
"eslint-config-skyux": "15.0.0-alpha.
|
|
97
|
-
"skyux-eslint": "15.0.0-alpha.
|
|
98
|
-
"skyux-stylelint": "15.0.0-alpha.
|
|
99
|
-
"stylelint-config-skyux": "15.0.0-alpha.
|
|
96
|
+
"eslint-config-skyux": "15.0.0-alpha.12",
|
|
97
|
+
"skyux-eslint": "15.0.0-alpha.12",
|
|
98
|
+
"skyux-stylelint": "15.0.0-alpha.12",
|
|
99
|
+
"stylelint-config-skyux": "15.0.0-alpha.12"
|
|
100
100
|
}
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Rule } from '@angular-devkit/schematics';
|
|
2
|
+
/**
|
|
3
|
+
* Migrates `sky-fluid-grid` templates from the deprecated `disableMargin`
|
|
4
|
+
* input to the new `inset` input, which has the opposite default: the fluid
|
|
5
|
+
* grid's outer left and right margin is now hidden unless `inset` is set to
|
|
6
|
+
* `true`.
|
|
7
|
+
*/
|
|
8
|
+
export default function (): Rule;
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = default_1;
|
|
4
|
+
const workspace_1 = require("@schematics/angular/utility/workspace");
|
|
5
|
+
const template_1 = require("../../../utility/template");
|
|
6
|
+
const ng_ast_1 = require("../../../utility/typescript/ng-ast");
|
|
7
|
+
const visit_project_files_1 = require("../../../utility/visit-project-files");
|
|
8
|
+
// parse5 lowercases attribute names.
|
|
9
|
+
const STATIC_ATTRIBUTE = 'disablemargin';
|
|
10
|
+
// `[disableMargin]` and the equivalent long-form `bind-disableMargin` syntax
|
|
11
|
+
// are both bound (real boolean) forms.
|
|
12
|
+
const BOUND_ATTRIBUTES = ['[disablemargin]', 'bind-disablemargin'];
|
|
13
|
+
const INSET_ATTRIBUTES = ['inset', '[inset]', 'bind-inset'];
|
|
14
|
+
/**
|
|
15
|
+
* Quotes a value for use as an HTML attribute, choosing a quote character
|
|
16
|
+
* that doesn't appear in the value when possible. If the value contains
|
|
17
|
+
* both quote characters, double quotes are used and any embedded double
|
|
18
|
+
* quotes are entity-encoded so the attribute isn't terminated early.
|
|
19
|
+
*/
|
|
20
|
+
function quoteAttributeValue(value) {
|
|
21
|
+
if (!value.includes('"')) {
|
|
22
|
+
return `"${value}"`;
|
|
23
|
+
}
|
|
24
|
+
if (!value.includes("'")) {
|
|
25
|
+
return `'${value}'`;
|
|
26
|
+
}
|
|
27
|
+
return `"${value.replace(/"/g, '"')}"`;
|
|
28
|
+
}
|
|
29
|
+
function isElement(node) {
|
|
30
|
+
return 'tagName' in node;
|
|
31
|
+
}
|
|
32
|
+
function isFluidGrid(node) {
|
|
33
|
+
return node.tagName.toLowerCase() === 'sky-fluid-grid';
|
|
34
|
+
}
|
|
35
|
+
function removeAttribute(node, attributeName, content, offset, recorder) {
|
|
36
|
+
const location = node.sourceCodeLocation.attrs[attributeName];
|
|
37
|
+
// Also remove the whitespace preceding the attribute.
|
|
38
|
+
let start = location.startOffset;
|
|
39
|
+
while (/\s/.test(content.charAt(start - 1))) {
|
|
40
|
+
start--;
|
|
41
|
+
}
|
|
42
|
+
recorder.remove(offset + start, location.endOffset - start);
|
|
43
|
+
}
|
|
44
|
+
function replaceAttribute(node, attributeName, replacement, offset, recorder) {
|
|
45
|
+
const location = node.sourceCodeLocation.attrs[attributeName];
|
|
46
|
+
recorder.remove(offset + location.startOffset, location.endOffset - location.startOffset);
|
|
47
|
+
recorder.insertLeft(offset + location.startOffset, replacement);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Migrates a single `sky-fluid-grid` element's `disableMargin` usage to the
|
|
51
|
+
* new `inset` input, which has the opposite meaning:
|
|
52
|
+
* - A static (unbound) attribute binds its literal string value, and
|
|
53
|
+
* `disableMargin`'s `@Input()` doesn't coerce that to a boolean. So only a
|
|
54
|
+
* bare/empty attribute is falsy (the margin was shown); any other value --
|
|
55
|
+
* including the literal string `"false"` -- is truthy and already hides
|
|
56
|
+
* the margin, same as `"true"`. A bare/empty attribute becomes
|
|
57
|
+
* `inset` to keep the margin; any other static value is removed.
|
|
58
|
+
* - A bound literal `true` or `false` is a real boolean, so `[disableMargin]="true"`
|
|
59
|
+
* (or the equivalent `bind-disableMargin="true"`) is removed (hiding the
|
|
60
|
+
* margin is now the default) and `[disableMargin]="false"` becomes
|
|
61
|
+
* `inset` (preserving the margin).
|
|
62
|
+
* - A bound, non-literal expression becomes `[inset]="!(expression)"`.
|
|
63
|
+
* - If `disableMargin` isn't set at all, nothing changes: the fluid grid's
|
|
64
|
+
* default behavior is changing, so the file is left for manual review --
|
|
65
|
+
* unless `inset` is already set, in which case it's already migrated and
|
|
66
|
+
* doesn't need a warning.
|
|
67
|
+
*
|
|
68
|
+
* Known limitation: this only recognizes literal `disableMargin`/
|
|
69
|
+
* `[disableMargin]`/`bind-disableMargin` template attributes. It can't see
|
|
70
|
+
* usages set programmatically (e.g. via `ViewChild` or `Renderer2`), and a
|
|
71
|
+
* static, interpolated attribute (`disableMargin="{{ expression }}"`) is
|
|
72
|
+
* judged by its literal source text rather than the expression's runtime
|
|
73
|
+
* value.
|
|
74
|
+
*/
|
|
75
|
+
function migrateFluidGrid(node, content, offset, recorder) {
|
|
76
|
+
const staticAttr = node.attrs.find((attr) => attr.name === STATIC_ATTRIBUTE);
|
|
77
|
+
const boundAttr = node.attrs.find((attr) => BOUND_ATTRIBUTES.includes(attr.name));
|
|
78
|
+
if (!staticAttr && !boundAttr) {
|
|
79
|
+
// Elements that already set `inset` (static or bound) have already been
|
|
80
|
+
// migrated, so they don't need a warning even though `disableMargin`
|
|
81
|
+
// isn't present.
|
|
82
|
+
return node.attrs.some((attr) => INSET_ATTRIBUTES.includes(attr.name));
|
|
83
|
+
}
|
|
84
|
+
if (staticAttr) {
|
|
85
|
+
if (staticAttr.value.trim() === '') {
|
|
86
|
+
replaceAttribute(node, STATIC_ATTRIBUTE, 'inset', offset, recorder);
|
|
87
|
+
}
|
|
88
|
+
else {
|
|
89
|
+
removeAttribute(node, STATIC_ATTRIBUTE, content, offset, recorder);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
if (boundAttr) {
|
|
93
|
+
const attributeName = boundAttr.name;
|
|
94
|
+
const value = boundAttr.value.trim();
|
|
95
|
+
if (value === 'true') {
|
|
96
|
+
removeAttribute(node, attributeName, content, offset, recorder);
|
|
97
|
+
}
|
|
98
|
+
else if (value === 'false') {
|
|
99
|
+
replaceAttribute(node, attributeName, 'inset', offset, recorder);
|
|
100
|
+
}
|
|
101
|
+
else {
|
|
102
|
+
replaceAttribute(node, attributeName, `[inset]=${quoteAttributeValue(`!(${value})`)}`, offset, recorder);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
return true;
|
|
106
|
+
}
|
|
107
|
+
function migrateTemplate(content, offset, recorder) {
|
|
108
|
+
const nodeQueue = [(0, template_1.parseTemplate)(content)];
|
|
109
|
+
let notConfiguredCount = 0;
|
|
110
|
+
while (nodeQueue.length) {
|
|
111
|
+
const node = nodeQueue.shift();
|
|
112
|
+
if (isElement(node) && isFluidGrid(node)) {
|
|
113
|
+
const migrated = migrateFluidGrid(node, content, offset, recorder);
|
|
114
|
+
if (!migrated) {
|
|
115
|
+
notConfiguredCount++;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
if ((0, template_1.isParentNode)(node)) {
|
|
119
|
+
nodeQueue.push(...node.childNodes);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return notConfiguredCount;
|
|
123
|
+
}
|
|
124
|
+
async function updateSourceFiles(tree, context) {
|
|
125
|
+
const workspace = await (0, workspace_1.getWorkspace)(tree);
|
|
126
|
+
let notConfiguredCount = 0;
|
|
127
|
+
const visitedFiles = new Set();
|
|
128
|
+
workspace.projects.forEach((project) => {
|
|
129
|
+
(0, visit_project_files_1.visitProjectFiles)(tree, project.sourceRoot || project.root, (filePath) => {
|
|
130
|
+
if (filePath.endsWith('.html') || filePath.endsWith('.ts')) {
|
|
131
|
+
// Overlapping project roots (e.g. an app project at the workspace
|
|
132
|
+
// root with libraries nested inside it) can cause the same file to
|
|
133
|
+
// be visited more than once.
|
|
134
|
+
if (visitedFiles.has(filePath)) {
|
|
135
|
+
return;
|
|
136
|
+
}
|
|
137
|
+
visitedFiles.add(filePath);
|
|
138
|
+
const content = tree.readText(filePath);
|
|
139
|
+
if (!content.toLowerCase().includes('sky-fluid-grid')) {
|
|
140
|
+
return;
|
|
141
|
+
}
|
|
142
|
+
const recorder = tree.beginUpdate(filePath);
|
|
143
|
+
if (filePath.endsWith('.html')) {
|
|
144
|
+
notConfiguredCount += migrateTemplate(content, 0, recorder);
|
|
145
|
+
}
|
|
146
|
+
else {
|
|
147
|
+
const templates = (0, ng_ast_1.getInlineTemplates)((0, ng_ast_1.parseSourceFile)(tree, filePath));
|
|
148
|
+
templates.forEach((template) => {
|
|
149
|
+
notConfiguredCount += migrateTemplate(content.substring(template.start, template.end), template.start, recorder);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
tree.commitUpdate(recorder);
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
});
|
|
156
|
+
if (notConfiguredCount > 0) {
|
|
157
|
+
context.logger.warn(`Found ${notConfiguredCount} <sky-fluid-grid> element(s) that do not set 'disableMargin'. ` +
|
|
158
|
+
"Starting in SKY UX 15, the fluid grid's outer left and right margin is hidden by default. " +
|
|
159
|
+
"Review these elements and add the 'inset' input (e.g. <sky-fluid-grid inset>) to any that should keep their margin.");
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
/**
|
|
163
|
+
* Migrates `sky-fluid-grid` templates from the deprecated `disableMargin`
|
|
164
|
+
* input to the new `inset` input, which has the opposite default: the fluid
|
|
165
|
+
* grid's outer left and right margin is now hidden unless `inset` is set to
|
|
166
|
+
* `true`.
|
|
167
|
+
*/
|
|
168
|
+
function default_1() {
|
|
169
|
+
return async (tree, context) => {
|
|
170
|
+
await updateSourceFiles(tree, context);
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
//# sourceMappingURL=fluid-grid-inset.schematic.js.map
|
package/src/schematics/migrations/update-15/fluid-grid-inset/fluid-grid-inset.schematic.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fluid-grid-inset.schematic.js","sourceRoot":"","sources":["../../../../../../../../../libs/components/packages/src/schematics/migrations/update-15/fluid-grid-inset/fluid-grid-inset.schematic.ts"],"names":[],"mappings":";;AAuPA,4BAIC;AArPD,qEAAqE;AAIrE,wDAImC;AACnC,+DAG4C;AAC5C,8EAAyE;AAEzE,qCAAqC;AACrC,MAAM,gBAAgB,GAAG,eAAe,CAAC;AACzC,6EAA6E;AAC7E,uCAAuC;AACvC,MAAM,gBAAgB,GAAG,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,CAAC;AACn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AG,IAAA,2BAAkB,EAAC,IAAA,wBAAe,EAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;oBAEtE,SAAS,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,EAAE;wBAC7B,kBAAkB,IAAI,eAAe,CACnC,OAAO,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,EAC/C,QAAQ,CAAC,KAAK,EACd,QAAQ,CACT,CAAC;oBACJ,CAAC,CAAC,CAAC;gBACL,CAAC;gBAED,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,CAAC;YAC9B,CAAC;QACH,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,IAAI,kBAAkB,GAAG,CAAC,EAAE,CAAC;QAC3B,OAAO,CAAC,MAAM,CAAC,IAAI,CACjB,SAAS,kBAAkB,gEAAgE;YACzF,4FAA4F;YAC5F,qHAAqH,CACxH,CAAC;IACJ,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH;IACE,OAAO,KAAK,EAAE,IAAU,EAAE,OAAyB,EAAiB,EAAE;QACpE,MAAM,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IACzC,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -535,7 +535,7 @@ function convertGridToDataGrid(projectPath) {
|
|
|
535
535
|
},
|
|
536
536
|
() => {
|
|
537
537
|
if (anyConverted) {
|
|
538
|
-
return (0, utility_1.addDependency)('@skyux/data-grid', `15.0.0-alpha.
|
|
538
|
+
return (0, utility_1.addDependency)('@skyux/data-grid', `15.0.0-alpha.12`, {
|
|
539
539
|
existing: utility_1.ExistingBehavior.Skip,
|
|
540
540
|
});
|
|
541
541
|
}
|
|
@@ -198,7 +198,7 @@ function convertPageSummaryToPageHeader(projectPath) {
|
|
|
198
198
|
}
|
|
199
199
|
});
|
|
200
200
|
},
|
|
201
|
-
(0, utility_1.addDependency)('@skyux/pages', `15.0.0-alpha.
|
|
201
|
+
(0, utility_1.addDependency)('@skyux/pages', `15.0.0-alpha.12`, {
|
|
202
202
|
existing: utility_1.ExistingBehavior.Skip,
|
|
203
203
|
}),
|
|
204
204
|
]);
|
|
@@ -296,7 +296,7 @@ function convertProgressIndicatorWizardToTabWizard(options) {
|
|
|
296
296
|
});
|
|
297
297
|
}
|
|
298
298
|
},
|
|
299
|
-
(0, utility_1.addDependency)('@skyux/tabs', `15.0.0-alpha.
|
|
299
|
+
(0, utility_1.addDependency)('@skyux/tabs', `15.0.0-alpha.12`, {
|
|
300
300
|
existing: utility_1.ExistingBehavior.Skip,
|
|
301
301
|
}),
|
|
302
302
|
]);
|
|
@@ -17,11 +17,15 @@ const typescript_1 = tslib_1.__importDefault(require("typescript"));
|
|
|
17
17
|
* Parse a TypeScript source file from tree
|
|
18
18
|
*/
|
|
19
19
|
function parseSourceFile(tree, filePath) {
|
|
20
|
-
|
|
21
|
-
if (!content) {
|
|
20
|
+
if (tree.read(filePath) === null) {
|
|
22
21
|
throw new Error(`Could not read file: ${filePath}`);
|
|
23
22
|
}
|
|
24
|
-
|
|
23
|
+
// `Tree#readText` strips a leading UTF-8 BOM (via `TextDecoder`), matching
|
|
24
|
+
// the coordinate space `UpdateRecorder` uses internally. Reading raw bytes
|
|
25
|
+
// and calling `Buffer#toString()` instead keeps the BOM as a `\uFEFF`
|
|
26
|
+
// character, shifting every AST position by one relative to the recorder
|
|
27
|
+
// and corrupting edits in BOM-prefixed files.
|
|
28
|
+
return typescript_1.default.createSourceFile(filePath, tree.readText(filePath), typescript_1.default.ScriptTarget.Latest, true);
|
|
25
29
|
}
|
|
26
30
|
/**
|
|
27
31
|
* Similar to `isImported` from @schematics/angular/utility/ast-utils, but supports
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-ast.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/utility/typescript/ng-ast.ts"],"names":[],"mappings":";;AAcA,
|
|
1
|
+
{"version":3,"file":"ng-ast.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/utility/typescript/ng-ast.ts"],"names":[],"mappings":";;AAcA,0CAgBC;AAMD,sDAsCC;AAED,gDA4BC;AAED,0CAwBC;AAKD,4DAWC;AAKD,sDASC;AAOD,4DAiIC;AAKD,8EAwBC;;AArUD,+CAA4C;AAE5C,qEAK+C;AAC/C,+DAA0E;AAC1E,oEAA4B;AAE5B;;GAEG;AACH,SAAgB,eAAe,CAAC,IAAU,EAAE,QAAgB;IAC1D,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,IAAI,EAAE,CAAC;QACjC,MAAM,IAAI,KAAK,CAAC,wBAAwB,QAAQ,EAAE,CAAC,CAAC;IACtD,CAAC;IAED,2EAA2E;IAC3E,2EAA2E;IAC3E,sEAAsE;IACtE,yEAAyE;IACzE,8CAA8C;IAC9C,OAAO,oBAAE,CAAC,gBAAgB,CACxB,QAAQ,EACR,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,EACvB,oBAAE,CAAC,YAAY,CAAC,MAAM,EACtB,IAAI,CACL,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,qBAAqB,CACnC,UAAmB,EACnB,cAAsB,EACtB,WAAmB;IAEnB,MAAM,kBAAkB,GAAG,IAAA,qBAAS,EAClC,UAAU,EACV,oBAAE,CAAC,UAAU,CAAC,iBAAiB,CACN,CAAC;IAE5B,OAAO,kBAAkB,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE;QAC5C,IACE,CAAC,UAAU,CAAC,eAAe;YAC3B,CAAC,oBAAE,CAAC,eAAe,CAAC,UAAU,CAAC,eAAe,CAAC,EAC/C,CAAC;YACD,OAAO,KAAK,CAAC;QACf,CAAC;QAED,IAAI,UAAU,CAAC,eAAe,CAAC,IAAI,KAAK,WAAW,EAAE,CAAC;YACpD,OAAO,KAAK,CAAC;QACf,CAAC;QAED,IAAI,CAAC,UAAU,CAAC,YAAY,EAAE,CAAC;YAC7B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