@skyux/packages 14.5.0 → 14.6.0
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/migrations.json +2 -2
- package/package.json +60 -60
- package/src/schematics/ng-generate/convert-grid-to-data-grid/convert-grid-to-data-grid.schematic.d.ts +6 -0
- package/src/schematics/ng-generate/convert-grid-to-data-grid/convert-grid-to-data-grid.schematic.js +15 -0
- package/src/schematics/ng-generate/convert-grid-to-data-grid/convert-grid-to-data-grid.schematic.js.map +1 -0
- package/src/schematics/ng-generate/convert-grid-to-data-grid/schema.d.ts +9 -0
- package/src/schematics/ng-generate/convert-grid-to-data-grid/schema.js +3 -0
- package/src/schematics/ng-generate/convert-grid-to-data-grid/schema.js.map +1 -0
- package/src/schematics/ng-generate/convert-grid-to-data-grid/schema.json +13 -0
- package/src/schematics/rules/convert-grid-to-data-grid/convert-grid-to-data-grid.d.ts +2 -0
- package/src/schematics/rules/convert-grid-to-data-grid/convert-grid-to-data-grid.js +310 -0
- package/src/schematics/rules/convert-grid-to-data-grid/convert-grid-to-data-grid.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/schematics/utility/typescript/swap-imported-class.d.ts +1 -1
- package/src/schematics/utility/typescript/swap-imported-class.js +13 -5
- package/src/schematics/utility/typescript/swap-imported-class.js.map +1 -1
- package/src/version.js +1 -1
package/collection.json
CHANGED
|
@@ -26,6 +26,11 @@
|
|
|
26
26
|
"factory": "./src/schematics/ng-generate/convert-page-summary-to-page-header/convert-page-summary-to-page-header.schematic",
|
|
27
27
|
"schema": "./src/schematics/ng-generate/convert-page-summary-to-page-header/schema.json"
|
|
28
28
|
},
|
|
29
|
+
"convert-grid-to-data-grid": {
|
|
30
|
+
"description": "Convert <sky-grid> components to <sky-data-grid> components.",
|
|
31
|
+
"factory": "./src/schematics/ng-generate/convert-grid-to-data-grid/convert-grid-to-data-grid.schematic",
|
|
32
|
+
"schema": "./src/schematics/ng-generate/convert-grid-to-data-grid/schema.json"
|
|
33
|
+
},
|
|
29
34
|
"convert-progress-indicator-wizard-to-tab-wizard": {
|
|
30
35
|
"description": "Convert <sky-progress-indicator> components using wizard to use <sky-tabset> components.",
|
|
31
36
|
"factory": "./src/schematics/ng-generate/convert-progress-indicator-wizard-to-tab-wizard/convert-progress-indicator-wizard-to-tab-wizard.schematic",
|
package/migrations.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schematics": {
|
|
3
3
|
"noop": {
|
|
4
|
-
"version": "14.
|
|
4
|
+
"version": "14.6.0",
|
|
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": "14.
|
|
9
|
+
"version": "14.6.0",
|
|
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
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skyux/packages",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.6.0",
|
|
4
4
|
"author": "Blackbaud, Inc.",
|
|
5
5
|
"description": "Handles the `ng update` command for SKY UX component libraries.",
|
|
6
6
|
"keywords": [
|
|
@@ -35,71 +35,71 @@
|
|
|
35
35
|
"ng-update": {
|
|
36
36
|
"migrations": "./migrations.json",
|
|
37
37
|
"packageGroup": {
|
|
38
|
-
"@skyux/packages": "14.
|
|
38
|
+
"@skyux/packages": "14.6.0",
|
|
39
39
|
"@blackbaud/angular-tree-component": "^1.0.0",
|
|
40
|
-
"@skyux-sdk/eslint-schematics": "14.
|
|
41
|
-
"@skyux-sdk/stylelint-schematics": "14.
|
|
42
|
-
"@skyux-sdk/testing": "14.
|
|
43
|
-
"@skyux-sdk/testing-schematics": "14.
|
|
44
|
-
"@skyux/a11y": "14.
|
|
45
|
-
"@skyux/action-bars": "14.
|
|
46
|
-
"@skyux/ag-grid": "14.
|
|
47
|
-
"@skyux/angular-tree-component": "14.
|
|
48
|
-
"@skyux/animations": "14.
|
|
49
|
-
"@skyux/assets": "14.
|
|
50
|
-
"@skyux/autonumeric": "14.
|
|
51
|
-
"@skyux/avatar": "14.
|
|
52
|
-
"@skyux/charts": "14.
|
|
53
|
-
"@skyux/code-examples": "14.
|
|
54
|
-
"@skyux/colorpicker": "14.
|
|
55
|
-
"@skyux/config": "14.
|
|
56
|
-
"@skyux/core": "14.
|
|
57
|
-
"@skyux/data-grid": "14.
|
|
58
|
-
"@skyux/data-manager": "14.
|
|
59
|
-
"@skyux/datetime": "14.
|
|
60
|
-
"@skyux/docs-tools": "14.
|
|
61
|
-
"@skyux/errors": "14.
|
|
62
|
-
"@skyux/filter-bar": "14.
|
|
63
|
-
"@skyux/flyout": "14.
|
|
64
|
-
"@skyux/forms": "14.
|
|
65
|
-
"@skyux/grids": "14.
|
|
66
|
-
"@skyux/help-inline": "14.
|
|
67
|
-
"@skyux/i18n": "14.
|
|
68
|
-
"@skyux/icon": "14.
|
|
40
|
+
"@skyux-sdk/eslint-schematics": "14.6.0",
|
|
41
|
+
"@skyux-sdk/stylelint-schematics": "14.6.0",
|
|
42
|
+
"@skyux-sdk/testing": "14.6.0",
|
|
43
|
+
"@skyux-sdk/testing-schematics": "14.6.0",
|
|
44
|
+
"@skyux/a11y": "14.6.0",
|
|
45
|
+
"@skyux/action-bars": "14.6.0",
|
|
46
|
+
"@skyux/ag-grid": "14.6.0",
|
|
47
|
+
"@skyux/angular-tree-component": "14.6.0",
|
|
48
|
+
"@skyux/animations": "14.6.0",
|
|
49
|
+
"@skyux/assets": "14.6.0",
|
|
50
|
+
"@skyux/autonumeric": "14.6.0",
|
|
51
|
+
"@skyux/avatar": "14.6.0",
|
|
52
|
+
"@skyux/charts": "14.6.0",
|
|
53
|
+
"@skyux/code-examples": "14.6.0",
|
|
54
|
+
"@skyux/colorpicker": "14.6.0",
|
|
55
|
+
"@skyux/config": "14.6.0",
|
|
56
|
+
"@skyux/core": "14.6.0",
|
|
57
|
+
"@skyux/data-grid": "14.6.0",
|
|
58
|
+
"@skyux/data-manager": "14.6.0",
|
|
59
|
+
"@skyux/datetime": "14.6.0",
|
|
60
|
+
"@skyux/docs-tools": "14.6.0",
|
|
61
|
+
"@skyux/errors": "14.6.0",
|
|
62
|
+
"@skyux/filter-bar": "14.6.0",
|
|
63
|
+
"@skyux/flyout": "14.6.0",
|
|
64
|
+
"@skyux/forms": "14.6.0",
|
|
65
|
+
"@skyux/grids": "14.6.0",
|
|
66
|
+
"@skyux/help-inline": "14.6.0",
|
|
67
|
+
"@skyux/i18n": "14.6.0",
|
|
68
|
+
"@skyux/icon": "14.6.0",
|
|
69
69
|
"@skyux/icons": "^10.4.0",
|
|
70
|
-
"@skyux/indicators": "14.
|
|
71
|
-
"@skyux/inline-form": "14.
|
|
72
|
-
"@skyux/layout": "14.
|
|
73
|
-
"@skyux/list-builder": "14.
|
|
74
|
-
"@skyux/list-builder-common": "14.
|
|
75
|
-
"@skyux/list-builder-view-checklist": "14.
|
|
76
|
-
"@skyux/list-builder-view-grids": "14.
|
|
77
|
-
"@skyux/lists": "14.
|
|
78
|
-
"@skyux/lookup": "14.
|
|
79
|
-
"@skyux/manifest": "14.
|
|
80
|
-
"@skyux/modals": "14.
|
|
81
|
-
"@skyux/navbar": "14.
|
|
82
|
-
"@skyux/pages": "14.
|
|
83
|
-
"@skyux/phone-field": "14.
|
|
84
|
-
"@skyux/popovers": "14.
|
|
85
|
-
"@skyux/progress-indicator": "14.
|
|
86
|
-
"@skyux/router": "14.
|
|
87
|
-
"@skyux/select-field": "14.
|
|
88
|
-
"@skyux/split-view": "14.
|
|
89
|
-
"@skyux/tabs": "14.
|
|
90
|
-
"@skyux/text-editor": "14.
|
|
91
|
-
"@skyux/theme": "14.
|
|
92
|
-
"@skyux/tiles": "14.
|
|
93
|
-
"@skyux/toast": "14.
|
|
94
|
-
"@skyux/validation": "14.
|
|
70
|
+
"@skyux/indicators": "14.6.0",
|
|
71
|
+
"@skyux/inline-form": "14.6.0",
|
|
72
|
+
"@skyux/layout": "14.6.0",
|
|
73
|
+
"@skyux/list-builder": "14.6.0",
|
|
74
|
+
"@skyux/list-builder-common": "14.6.0",
|
|
75
|
+
"@skyux/list-builder-view-checklist": "14.6.0",
|
|
76
|
+
"@skyux/list-builder-view-grids": "14.6.0",
|
|
77
|
+
"@skyux/lists": "14.6.0",
|
|
78
|
+
"@skyux/lookup": "14.6.0",
|
|
79
|
+
"@skyux/manifest": "14.6.0",
|
|
80
|
+
"@skyux/modals": "14.6.0",
|
|
81
|
+
"@skyux/navbar": "14.6.0",
|
|
82
|
+
"@skyux/pages": "14.6.0",
|
|
83
|
+
"@skyux/phone-field": "14.6.0",
|
|
84
|
+
"@skyux/popovers": "14.6.0",
|
|
85
|
+
"@skyux/progress-indicator": "14.6.0",
|
|
86
|
+
"@skyux/router": "14.6.0",
|
|
87
|
+
"@skyux/select-field": "14.6.0",
|
|
88
|
+
"@skyux/split-view": "14.6.0",
|
|
89
|
+
"@skyux/tabs": "14.6.0",
|
|
90
|
+
"@skyux/text-editor": "14.6.0",
|
|
91
|
+
"@skyux/theme": "14.6.0",
|
|
92
|
+
"@skyux/tiles": "14.6.0",
|
|
93
|
+
"@skyux/toast": "14.6.0",
|
|
94
|
+
"@skyux/validation": "14.6.0",
|
|
95
95
|
"ag-grid-angular": "^35.1.0",
|
|
96
96
|
"ag-grid-community": "^35.1.0",
|
|
97
97
|
"ag-grid-enterprise": "^35.1.0",
|
|
98
98
|
"autonumeric": "^4.10.9",
|
|
99
|
-
"eslint-config-skyux": "14.
|
|
100
|
-
"skyux-eslint": "14.
|
|
101
|
-
"skyux-stylelint": "14.
|
|
102
|
-
"stylelint-config-skyux": "14.
|
|
99
|
+
"eslint-config-skyux": "14.6.0",
|
|
100
|
+
"skyux-eslint": "14.6.0",
|
|
101
|
+
"skyux-stylelint": "14.6.0",
|
|
102
|
+
"stylelint-config-skyux": "14.6.0"
|
|
103
103
|
}
|
|
104
104
|
},
|
|
105
105
|
"peerDependencies": {
|
package/src/schematics/ng-generate/convert-grid-to-data-grid/convert-grid-to-data-grid.schematic.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = convertGridToDataGridSchematic;
|
|
4
|
+
const convert_grid_to_data_grid_1 = require("../../rules/convert-grid-to-data-grid/convert-grid-to-data-grid");
|
|
5
|
+
const workspace_1 = require("../../utility/workspace");
|
|
6
|
+
/**
|
|
7
|
+
* Converts `<sky-grid>` components to `<sky-data-grid>` components.
|
|
8
|
+
*/
|
|
9
|
+
function convertGridToDataGridSchematic(options) {
|
|
10
|
+
return async (tree) => {
|
|
11
|
+
const { project } = await (0, workspace_1.getRequiredProject)(tree, options.project);
|
|
12
|
+
return (0, convert_grid_to_data_grid_1.convertGridToDataGrid)(project.root);
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=convert-grid-to-data-grid.schematic.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convert-grid-to-data-grid.schematic.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/ng-generate/convert-grid-to-data-grid/convert-grid-to-data-grid.schematic.ts"],"names":[],"mappings":";;AAUA,iDAMC;AAdD,+GAAwG;AACxG,uDAA6D;AAI7D;;GAEG;AACH,SAAwB,8BAA8B,CAAC,OAAe;IACpE,OAAO,KAAK,EAAE,IAAI,EAAE,EAAE;QACpB,MAAM,EAAE,OAAO,EAAE,GAAG,MAAM,IAAA,8BAAkB,EAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;QAEpE,OAAO,IAAA,iDAAqB,EAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,CAAC,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/ng-generate/convert-grid-to-data-grid/schema.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,310 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.convertGridToDataGrid = convertGridToDataGrid;
|
|
4
|
+
const schematics_1 = require("@angular-devkit/schematics");
|
|
5
|
+
const utility_1 = require("@schematics/angular/utility");
|
|
6
|
+
const log_once_1 = require("../../utility/log-once");
|
|
7
|
+
const template_1 = require("../../utility/template");
|
|
8
|
+
const ng_ast_1 = require("../../utility/typescript/ng-ast");
|
|
9
|
+
const swap_imported_class_1 = require("../../utility/typescript/swap-imported-class");
|
|
10
|
+
const visit_project_files_1 = require("../../utility/visit-project-files");
|
|
11
|
+
const MIGRATION_DOC_URL = 'https://developer.blackbaud.com/skyux/components/data-grid';
|
|
12
|
+
const GRID_TAG = ['sky-grid'];
|
|
13
|
+
const COLUMN_TAG = ['sky-grid-column'];
|
|
14
|
+
/**
|
|
15
|
+
* Attribute name swaps applied to `<sky-grid>`. A value of `''` drops the
|
|
16
|
+
* attribute. Bound (`[x]`) and event (`(x)`) spellings are listed separately
|
|
17
|
+
* because parse5 treats them as distinct attribute names. `fit`'s unbound
|
|
18
|
+
* `width`/`scroll` literal values are additionally translated to `columnFit`'s
|
|
19
|
+
* `container`/`content` values by `gridAttributeSwapCallback`. Anything not
|
|
20
|
+
* listed (`data`, `selectedRowIds`) is copied through unchanged.
|
|
21
|
+
*/
|
|
22
|
+
const GRID_ATTRIBUTE_SWAPS = {
|
|
23
|
+
enableMultiselect: 'multiselect',
|
|
24
|
+
'[enableMultiselect]': '[multiselect]',
|
|
25
|
+
'(multiselectSelectionChange)': '(selectedRowIdsChange)',
|
|
26
|
+
fit: 'columnFit',
|
|
27
|
+
'[fit]': '[columnFit]',
|
|
28
|
+
hasToolbar: '',
|
|
29
|
+
'[hasToolbar]': '',
|
|
30
|
+
height: '',
|
|
31
|
+
'[height]': '',
|
|
32
|
+
highlightText: '',
|
|
33
|
+
'[highlightText]': '',
|
|
34
|
+
messageStream: '',
|
|
35
|
+
'[messageStream]': '',
|
|
36
|
+
multiselectRowId: '',
|
|
37
|
+
'[multiselectRowId]': '',
|
|
38
|
+
'(rowDeleteCancel)': '',
|
|
39
|
+
'(rowDeleteConfirm)': '',
|
|
40
|
+
rowHighlightedId: '',
|
|
41
|
+
'[rowHighlightedId]': '',
|
|
42
|
+
selectedColumnIds: '',
|
|
43
|
+
'[selectedColumnIds]': '',
|
|
44
|
+
'(selectedColumnIdsChange)': '',
|
|
45
|
+
settingsKey: '',
|
|
46
|
+
'[settingsKey]': '',
|
|
47
|
+
sortField: 'sort',
|
|
48
|
+
'[sortField]': '[sort]',
|
|
49
|
+
'(sortFieldChange)': '(sortChange)',
|
|
50
|
+
width: '',
|
|
51
|
+
'[width]': '',
|
|
52
|
+
'(columnWidthChange)': '',
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Inputs removed from `<sky-grid>` with no `<sky-data-grid>` equivalent.
|
|
56
|
+
*/
|
|
57
|
+
const GRID_REMOVED_INPUTS = [
|
|
58
|
+
'hasToolbar',
|
|
59
|
+
'height',
|
|
60
|
+
'highlightText',
|
|
61
|
+
'messageStream',
|
|
62
|
+
'multiselectRowId',
|
|
63
|
+
'rowHighlightedId',
|
|
64
|
+
'selectedColumnIds',
|
|
65
|
+
'settingsKey',
|
|
66
|
+
'width',
|
|
67
|
+
];
|
|
68
|
+
/** Outputs removed from `<sky-grid>` with no `<sky-data-grid>` equivalent. */
|
|
69
|
+
const GRID_REMOVED_OUTPUTS = [
|
|
70
|
+
'selectedColumnIdsChange',
|
|
71
|
+
'columnWidthChange',
|
|
72
|
+
'rowDeleteCancel',
|
|
73
|
+
'rowDeleteConfirm',
|
|
74
|
+
];
|
|
75
|
+
/**
|
|
76
|
+
* Inputs removed from `<sky-grid-column>` with no `<sky-data-grid-column>`
|
|
77
|
+
* equivalent. `alignment` and the help-popover inputs are handled separately
|
|
78
|
+
* because their messages depend on the value or on sibling attributes.
|
|
79
|
+
*/
|
|
80
|
+
const COLUMN_REMOVED_INPUTS = ['excludeFromHighlighting', 'search', 'type'];
|
|
81
|
+
/**
|
|
82
|
+
* Returns the parse5 attribute names for an input, covering the plain and
|
|
83
|
+
* property-bound (`[x]`) spellings. parse5 lowercases attribute names.
|
|
84
|
+
*/
|
|
85
|
+
function inputForms(name) {
|
|
86
|
+
const lower = name.toLowerCase();
|
|
87
|
+
return [lower, `[${lower}]`];
|
|
88
|
+
}
|
|
89
|
+
/** Returns the parse5 attribute name for an event binding (`(x)`). */
|
|
90
|
+
function outputForm(name) {
|
|
91
|
+
return `(${name.toLowerCase()})`;
|
|
92
|
+
}
|
|
93
|
+
function gridRemovedMessage(label) {
|
|
94
|
+
return `The "${label}" binding on <sky-grid> is not supported on <sky-data-grid> and was removed. Review the component for an alternative.`;
|
|
95
|
+
}
|
|
96
|
+
function columnRemovedMessage(label) {
|
|
97
|
+
return `The "${label}" binding on <sky-grid-column> is not supported on <sky-data-grid-column> and was removed. Review the component for an alternative.`;
|
|
98
|
+
}
|
|
99
|
+
function hasAttribute(node, names) {
|
|
100
|
+
return node.attrs.some((attr) => names.includes(attr.name));
|
|
101
|
+
}
|
|
102
|
+
function findAttribute(node, names) {
|
|
103
|
+
return node.attrs.find((attr) => names.includes(attr.name));
|
|
104
|
+
}
|
|
105
|
+
/**
|
|
106
|
+
* Builds the replacement open tag, rewriting the attribute list with
|
|
107
|
+
* `swapAttributes` (which preserves the spacing between attributes) and
|
|
108
|
+
* preserving whether the original tag was self-closing.
|
|
109
|
+
*/
|
|
110
|
+
function buildOpenTag(newTag, swaps, node, content, callback) {
|
|
111
|
+
const attributes = node.attrs.length > 0
|
|
112
|
+
? (0, template_1.swapAttributes)(node, swaps, content, callback).replace(/\s+$/, '')
|
|
113
|
+
: '';
|
|
114
|
+
const startTagText = content.substring(node.sourceCodeLocation.startTag.startOffset, node.sourceCodeLocation.startTag.endOffset);
|
|
115
|
+
const selfClosing = /\/>\s*$/.test(startTagText);
|
|
116
|
+
return `<${newTag}${attributes}${selfClosing ? ' />' : '>'}`;
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Translates `fit`'s unbound `"width"`/`"scroll"` literal values to
|
|
120
|
+
* `columnFit`'s `"container"`/`"content"` values. Falls back to a plain
|
|
121
|
+
* name swap (keeping the original value text) for `[fit]` (bound, so the
|
|
122
|
+
* runtime value can't be statically translated) and for every other
|
|
123
|
+
* attribute in `GRID_ATTRIBUTE_SWAPS`.
|
|
124
|
+
*/
|
|
125
|
+
const gridAttributeSwapCallback = (oldAttribute, newAttribute, node, content) => {
|
|
126
|
+
if (oldAttribute === 'fit') {
|
|
127
|
+
const valueText = (0, template_1.getAttributeValueText)(content, node, oldAttribute);
|
|
128
|
+
const match = /^=(["'])(width|scroll)\1$/.exec(valueText);
|
|
129
|
+
if (match) {
|
|
130
|
+
const translated = match[2] === 'width' ? 'container' : 'content';
|
|
131
|
+
return `${newAttribute}=${match[1]}${translated}${match[1]}`;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
return newAttribute + (0, template_1.getAttributeValueText)(content, node, oldAttribute);
|
|
135
|
+
};
|
|
136
|
+
function gridTagSwap(context) {
|
|
137
|
+
return (position, _tag, node, content) => {
|
|
138
|
+
if (position === 'close') {
|
|
139
|
+
return '</sky-data-grid>';
|
|
140
|
+
}
|
|
141
|
+
if (hasAttribute(node, [outputForm('multiselectSelectionChange')])) {
|
|
142
|
+
(0, log_once_1.logOnce)(context, 'warn', 'The "(multiselectSelectionChange)" output on <sky-grid> was renamed to "(selectedRowIdsChange)" on <sky-data-grid>. The emitted value is now a string[] of selected row IDs instead of a SkyGridSelectedRowsModelChange object (the "source" property is no longer available). Review the handler.');
|
|
143
|
+
}
|
|
144
|
+
if (hasAttribute(node, [
|
|
145
|
+
...inputForms('sortField'),
|
|
146
|
+
outputForm('sortFieldChange'),
|
|
147
|
+
])) {
|
|
148
|
+
(0, log_once_1.logOnce)(context, 'warn', 'The "sortField"/"(sortFieldChange)" bindings on <sky-grid> were renamed to "sort"/"(sortChange)" on <sky-data-grid>. The value shape changed from { fieldSelector: string, descending: boolean } to { field: string, direction: "asc" | "desc" }. Review the bound value and handler.');
|
|
149
|
+
}
|
|
150
|
+
if (hasAttribute(node, inputForms('fit'))) {
|
|
151
|
+
(0, log_once_1.logOnce)(context, 'warn', 'The "fit" input on <sky-grid> was renamed to "columnFit" on <sky-data-grid>, with values "width"/"scroll" renamed to "container"/"content". A bound "[fit]" value could not be translated automatically; review it.');
|
|
152
|
+
}
|
|
153
|
+
for (const label of GRID_REMOVED_INPUTS) {
|
|
154
|
+
if (hasAttribute(node, inputForms(label))) {
|
|
155
|
+
(0, log_once_1.logOnce)(context, 'warn', gridRemovedMessage(label));
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
for (const label of GRID_REMOVED_OUTPUTS) {
|
|
159
|
+
if (hasAttribute(node, [outputForm(label)])) {
|
|
160
|
+
(0, log_once_1.logOnce)(context, 'warn', gridRemovedMessage(label));
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
return buildOpenTag('sky-data-grid', GRID_ATTRIBUTE_SWAPS, node, content, gridAttributeSwapCallback);
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Logs the help-popover, alignment, and removed-input warnings for a single
|
|
168
|
+
* `<sky-grid-column>`.
|
|
169
|
+
*/
|
|
170
|
+
function warnColumnAttributes(context, node, hasInlineHelp, hasDescription) {
|
|
171
|
+
if (hasInlineHelp) {
|
|
172
|
+
(0, log_once_1.logOnce)(context, 'warn', 'The "inlineHelpPopover" input on <sky-grid-column> was mapped to "helpPopoverContent" on <sky-data-grid-column>. Review the binding: "helpPopoverContent" accepts a string or a TemplateRef.');
|
|
173
|
+
if (hasDescription) {
|
|
174
|
+
(0, log_once_1.logOnce)(context, 'warn', 'The "description" input on <sky-grid-column> could not be migrated because "helpPopoverContent" was already mapped from "inlineHelpPopover". Review the column.');
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
else if (hasDescription) {
|
|
178
|
+
(0, log_once_1.logOnce)(context, 'warn', 'The "description" input on <sky-grid-column> was mapped to "helpPopoverContent" on <sky-data-grid-column>. Review the result.');
|
|
179
|
+
}
|
|
180
|
+
const alignment = findAttribute(node, inputForms('alignment'));
|
|
181
|
+
if (alignment) {
|
|
182
|
+
if (alignment.name === 'alignment' && alignment.value === 'right') {
|
|
183
|
+
(0, log_once_1.logOnce)(context, 'warn', 'The "alignment" input is not supported on <sky-data-grid-column>. For right alignment, set dataType="number" on the column.');
|
|
184
|
+
}
|
|
185
|
+
else {
|
|
186
|
+
(0, log_once_1.logOnce)(context, 'warn', 'The "alignment" input is not supported on <sky-data-grid-column> and was removed. Apply alignment via a cell template or CSS.');
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
for (const label of COLUMN_REMOVED_INPUTS) {
|
|
190
|
+
if (hasAttribute(node, inputForms(label))) {
|
|
191
|
+
(0, log_once_1.logOnce)(context, 'warn', columnRemovedMessage(label));
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
function buildColumnSwaps(hasInlineHelp) {
|
|
196
|
+
return {
|
|
197
|
+
heading: 'headingText',
|
|
198
|
+
'[heading]': '[headingText]',
|
|
199
|
+
hidden: 'columnHidden',
|
|
200
|
+
'[hidden]': '[columnHidden]',
|
|
201
|
+
id: 'columnId',
|
|
202
|
+
'[id]': '[columnId]',
|
|
203
|
+
isSortable: 'sortable',
|
|
204
|
+
'[isSortable]': '[sortable]',
|
|
205
|
+
inlineHelpPopover: 'helpPopoverContent',
|
|
206
|
+
'[inlineHelpPopover]': '[helpPopoverContent]',
|
|
207
|
+
description: hasInlineHelp ? '' : 'helpPopoverContent',
|
|
208
|
+
'[description]': hasInlineHelp ? '' : '[helpPopoverContent]',
|
|
209
|
+
alignment: '',
|
|
210
|
+
'[alignment]': '',
|
|
211
|
+
excludeFromHighlighting: '',
|
|
212
|
+
'[excludeFromHighlighting]': '',
|
|
213
|
+
search: '',
|
|
214
|
+
'[search]': '',
|
|
215
|
+
type: '',
|
|
216
|
+
'[type]': '',
|
|
217
|
+
};
|
|
218
|
+
}
|
|
219
|
+
function columnTagSwap(context) {
|
|
220
|
+
return (position, _tag, node, content) => {
|
|
221
|
+
if (position === 'close') {
|
|
222
|
+
return '</sky-data-grid-column>';
|
|
223
|
+
}
|
|
224
|
+
const hasInlineHelp = hasAttribute(node, inputForms('inlineHelpPopover'));
|
|
225
|
+
const hasDescription = hasAttribute(node, inputForms('description'));
|
|
226
|
+
warnColumnAttributes(context, node, hasInlineHelp, hasDescription);
|
|
227
|
+
return buildOpenTag('sky-data-grid-column', buildColumnSwaps(hasInlineHelp), node, content);
|
|
228
|
+
};
|
|
229
|
+
}
|
|
230
|
+
function convertTemplate(recorder, content, context, offset = 0) {
|
|
231
|
+
const fragment = (0, template_1.parseTemplate)(content);
|
|
232
|
+
const grids = (0, template_1.getElementsByTagName)('sky-grid', fragment);
|
|
233
|
+
// Columns belonging to a skipped `[columns]` grid are excluded from the
|
|
234
|
+
// column swap so we never leave `<sky-data-grid-column>` inside `<sky-grid>`.
|
|
235
|
+
const skippedColumns = new Set();
|
|
236
|
+
let converted = 0;
|
|
237
|
+
for (const grid of grids) {
|
|
238
|
+
if (hasAttribute(grid, ['columns', '[columns]'])) {
|
|
239
|
+
(0, log_once_1.logOnce)(context, 'warn', 'A <sky-grid> using the "columns" input was left unchanged. The data grid has no "columns" input; define columns with <sky-data-grid-column> elements and migrate this usage manually.');
|
|
240
|
+
(0, template_1.getElementsByTagName)('sky-grid-column', grid).forEach((column) => skippedColumns.add(column));
|
|
241
|
+
continue;
|
|
242
|
+
}
|
|
243
|
+
// Each grid is swapped on its own so traversal never has to descend into
|
|
244
|
+
// self-closing columns (which parse5 nests instead of treating as siblings).
|
|
245
|
+
(0, template_1.swapTags)(content, recorder, offset, GRID_TAG, gridTagSwap(context), grid);
|
|
246
|
+
converted++;
|
|
247
|
+
}
|
|
248
|
+
// Collect columns from the whole fragment (getElementsByTagName traverses
|
|
249
|
+
// unconditionally) and swap each individually for the same reason.
|
|
250
|
+
const columns = (0, template_1.getElementsByTagName)('sky-grid-column', fragment).filter((column) => !skippedColumns.has(column));
|
|
251
|
+
for (const column of columns) {
|
|
252
|
+
(0, template_1.swapTags)(content, recorder, offset, COLUMN_TAG, columnTagSwap(context), column);
|
|
253
|
+
}
|
|
254
|
+
if (converted > 0) {
|
|
255
|
+
(0, log_once_1.logOnce)(context, 'info', `Converted <sky-grid> component(s) to <sky-data-grid> component(s). Next steps: ${MIGRATION_DOC_URL}`);
|
|
256
|
+
(0, log_once_1.logOnce)(context, 'info', 'Data grid columns default to dataType="text". Review numeric and date columns and set "dataType" so sorting and formatting behave correctly.');
|
|
257
|
+
(0, log_once_1.logOnce)(context, 'warn', 'Some <sky-grid> features have no <sky-data-grid> equivalent (toolbar, text and row highlighting, custom per-column search, message-stream commands such as row delete, settingsKey persistence, and explicit width/height). Reimplement these manually as needed.');
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
function convertHtmlFile(tree, filePath, context) {
|
|
261
|
+
const content = tree.readText(filePath);
|
|
262
|
+
if (content.includes('<sky-grid')) {
|
|
263
|
+
const recorder = tree.beginUpdate(filePath);
|
|
264
|
+
convertTemplate(recorder, content, context);
|
|
265
|
+
tree.commitUpdate(recorder);
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
function convertTypescriptFile(tree, filePath, context) {
|
|
269
|
+
const source = (0, ng_ast_1.parseSourceFile)(tree, filePath);
|
|
270
|
+
const templates = (0, ng_ast_1.getInlineTemplates)(source);
|
|
271
|
+
const recorder = tree.beginUpdate(filePath);
|
|
272
|
+
if (templates.length > 0) {
|
|
273
|
+
const content = tree.readText(filePath);
|
|
274
|
+
for (const template of templates) {
|
|
275
|
+
convertTemplate(recorder, content.slice(template.start, template.end), context, template.start);
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
if ((0, ng_ast_1.isImportedFromPackage)(source, 'SkyGridModule', '@skyux/grids')) {
|
|
279
|
+
(0, swap_imported_class_1.swapImportedClass)(recorder, filePath, source, [
|
|
280
|
+
{
|
|
281
|
+
classNames: {
|
|
282
|
+
SkyGridModule: ['SkyDataGrid', 'SkyDataGridColumn'],
|
|
283
|
+
},
|
|
284
|
+
moduleName: {
|
|
285
|
+
old: '@skyux/grids',
|
|
286
|
+
new: '@skyux/data-grid',
|
|
287
|
+
},
|
|
288
|
+
},
|
|
289
|
+
]);
|
|
290
|
+
}
|
|
291
|
+
tree.commitUpdate(recorder);
|
|
292
|
+
}
|
|
293
|
+
function convertGridToDataGrid(projectPath) {
|
|
294
|
+
return (0, schematics_1.chain)([
|
|
295
|
+
(tree, context) => {
|
|
296
|
+
(0, visit_project_files_1.visitProjectFiles)(tree, projectPath, (filePath) => {
|
|
297
|
+
if (filePath.endsWith('.html')) {
|
|
298
|
+
convertHtmlFile(tree, filePath, context);
|
|
299
|
+
}
|
|
300
|
+
else if (filePath.endsWith('.ts')) {
|
|
301
|
+
convertTypescriptFile(tree, filePath, context);
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
},
|
|
305
|
+
(0, utility_1.addDependency)('@skyux/data-grid', `14.6.0`, {
|
|
306
|
+
existing: utility_1.ExistingBehavior.Skip,
|
|
307
|
+
}),
|
|
308
|
+
]);
|
|
309
|
+
}
|
|
310
|
+
//# sourceMappingURL=convert-grid-to-data-grid.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convert-grid-to-data-grid.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/rules/convert-grid-to-data-grid/convert-grid-to-data-grid.ts"],"names":[],"mappings":";;AAscA,sDAeC;AArdD,2DAMoC;AACpC,yDAA8E;AAE9E,qDAAiD;AACjD,qDASgC;AAChC,4DAIyC;AACzC,sFAAiF;AACjF,2EAAsE;AAEtE,MAAM,iBAAiB,GACrB,4DAA4D,CAAC;AAE/D,MAAM,QAAQ,GAAiB,CAAC,UAAU,CAAC,CAAC;AAC5C,MAAM,UAAU,GAAwB,CAAC,iBAAiB,CAAC,CAAC;AAE5D;;;;;;;GAOG;AACH,MAAM,oBAAoB,GAA2B;IACnD,iBAAiB,EAAE,aAAa;IAChC,qBAAqB,EAAE,eAAe;IACtC,8BAA8B,EAAE,wBAAwB;IACxD,GAAG,EAAE,WAAW;IAChB,OAAO,EAAE,aAAa;IACtB,UAAU,EAAE,EAAE;IACd,cAAc,EAAE,EAAE;IAClB,MAAM,EAAE,EAAE;IACV,UAAU,EAAE,EAAE;IACd,aAAa,EAAE,EAAE;IACjB,iBAAiB,EAAE,EAAE;IACrB,aAAa,EAAE,EAAE;IACjB,iBAAiB,EAAE,EAAE;IACrB,gBAAgB,EAAE,EAAE;IACpB,oBAAoB,EAAE,EAAE;IACxB,mBAAmB,EAAE,EAAE;IACvB,oBAAoB,EAAE,EAAE;IACxB,gBAAgB,EAAE,EAAE;IACpB,oBAAoB,EAAE,EAAE;IACxB,iBAAiB,EAAE,EAAE;IACrB,qBAAqB,EAAE,EAAE;IACzB,2BAA2B,EAAE,EAAE;IAC/B,WAAW,EAAE,EAAE;IACf,eAAe,EAAE,EAAE;IACnB,SAAS,EAAE,MAAM;IACjB,aAAa,EAAE,QAAQ;IACvB,mBAAmB,EAAE,cAAc;IACnC,KAAK,EAAE,EAAE;IACT,SAAS,EAAE,EAAE;IACb,qBAAqB,EAAE,EAAE;CAC1B,CAAC;AAEF;;GAEG;AACH,MAAM,mBAAmB,GAAG;IAC1B,YAAY;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|
201
|
+
(0, utility_1.addDependency)('@skyux/pages', `14.6.0`, {
|
|
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', `14.
|
|
299
|
+
(0, utility_1.addDependency)('@skyux/tabs', `14.6.0`, {
|
|
300
300
|
existing: utility_1.ExistingBehavior.Skip,
|
|
301
301
|
}),
|
|
302
302
|
]);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { UpdateRecorder } from '@angular-devkit/schematics';
|
|
2
2
|
import ts from '@schematics/angular/third_party/github.com/Microsoft/TypeScript/lib/typescript';
|
|
3
3
|
export interface SwapImportedClassOptions {
|
|
4
|
-
classNames: Record<string, string>;
|
|
4
|
+
classNames: Record<string, string | string[]>;
|
|
5
5
|
moduleName: string | {
|
|
6
6
|
old: string;
|
|
7
7
|
new: string;
|
|
@@ -42,22 +42,30 @@ function swapImportedClass(recorder, filePath, sourceFile, options) {
|
|
|
42
42
|
Object.entries(classNames).forEach(([oldClassName, newClassName]) => {
|
|
43
43
|
const referencesInCode = findReferences(sourceFile, oldClassName).filter((reference) => reference.getStart() > endOfImports);
|
|
44
44
|
const referencesFiltered = referencesInCode.filter(filter ?? (() => true));
|
|
45
|
+
const newClassNameString = Array.isArray(newClassName)
|
|
46
|
+
? newClassName.join(', ')
|
|
47
|
+
: newClassName;
|
|
45
48
|
referencesFiltered.forEach((reference) => {
|
|
46
|
-
swapReference(recorder, reference,
|
|
49
|
+
swapReference(recorder, reference, newClassNameString);
|
|
47
50
|
});
|
|
48
51
|
if (referencesFiltered.length > 0) {
|
|
49
52
|
const allReferencesToBeReplaced = referencesFiltered.length === referencesInCode.length;
|
|
50
|
-
|
|
53
|
+
const newClassNameArray = Array.isArray(newClassName)
|
|
54
|
+
? newClassName
|
|
55
|
+
: [newClassName];
|
|
56
|
+
const missingClassNames = newClassNameArray.filter((name) => !(0, ng_ast_1.isImportedFromPackage)(sourceFile, name, newModuleName));
|
|
57
|
+
if (missingClassNames.length > 0) {
|
|
58
|
+
const missingClassNameString = missingClassNames.join(', ');
|
|
51
59
|
if (allReferencesToBeReplaced) {
|
|
52
60
|
if (oldModuleName === newModuleName) {
|
|
53
61
|
const referencesInImport = findReferences(sourceFile, oldClassName).filter((reference) => reference.getEnd() <= endOfImports);
|
|
54
62
|
if (referencesInImport.length !== 1) {
|
|
55
63
|
throw new Error(`Expected exactly one import for ${oldClassName} from ${oldModuleName}, found ${referencesInImport.length}.`);
|
|
56
64
|
}
|
|
57
|
-
swapReference(recorder, referencesInImport[0],
|
|
65
|
+
swapReference(recorder, referencesInImport[0], missingClassNameString);
|
|
58
66
|
}
|
|
59
67
|
else {
|
|
60
|
-
const change = (0, ast_utils_1.insertImport)(sourceFile, filePath,
|
|
68
|
+
const change = (0, ast_utils_1.insertImport)(sourceFile, filePath, missingClassNameString, newModuleName);
|
|
61
69
|
shiftLineBreakForInsertedImport(change, eol);
|
|
62
70
|
(0, change_1.applyToUpdateRecorder)(recorder, [change]);
|
|
63
71
|
removeImports[oldModuleName] ??= [];
|
|
@@ -66,7 +74,7 @@ function swapImportedClass(recorder, filePath, sourceFile, options) {
|
|
|
66
74
|
}
|
|
67
75
|
else {
|
|
68
76
|
(0, change_1.applyToUpdateRecorder)(recorder, [
|
|
69
|
-
(0, ast_utils_1.insertImport)(sourceFile, filePath,
|
|
77
|
+
(0, ast_utils_1.insertImport)(sourceFile, filePath, missingClassNameString, newModuleName),
|
|
70
78
|
]);
|
|
71
79
|
}
|
|
72
80
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swap-imported-class.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/utility/typescript/swap-imported-class.ts"],"names":[],"mappings":";;AAwDA,
|
|
1
|
+
{"version":3,"file":"swap-imported-class.js","sourceRoot":"","sources":["../../../../../../../../libs/components/packages/src/schematics/utility/typescript/swap-imported-class.ts"],"names":[],"mappings":";;AAwDA,8CA8GC;;AArKD,wIAAgG;AAChG,qEAAgF;AAChF,+DAG4C;AAC5C,yDAAyD;AAEzD,qCAAiD;AACjD,mDAA+C;AAQ/C,SAAS,cAAc,CACrB,UAAyB,EACzB,SAAiB;IAEjB,OAAO,IAAA,qBAAS,EAAC,UAAU,EAAE,oBAAE,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,MAAM,CAC3D,CAAC,IAAI,EAAyB,EAAE,CAC9B,oBAAE,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,KAAK,SAAS,CACnD,CAAC;AACJ,CAAC;AAED,SAAS,aAAa,CACpB,QAAwB,EACxB,SAAwB,EACxB,YAAoB;IAEpB,MAAM,KAAK,GAAG,SAAS,CAAC,QAAQ,EAAE,CAAC;IACnC,QAAQ,CAAC,MAAM,CAAC,KAAK,EAAE,SAAS,CAAC,QAAQ,EAAE,CAAC,CAAC;IAC7C,QAAQ,CAAC,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,CAAC;AAC5C,CAAC;AAED,SAAS,+BAA+B,CACtC,MAAoB,EACpB,GAAW;IAEX,IAAI,MAAM,CAAC,KAAK,CAAC,UAAU,CAAC,IAAI,GAAG,SAAS,CAAC,EAAE,CAAC;QAC9C,6EAA6E;QAC7E,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,EAAE,CAAC;QACpE,MAAM,CAAC,GAAG,IAAI,IAAI,GAAG,EAAE,CAAC,MAAM,CAAC;IACjC,CAAC;AACH,CAAC;AAED,SAAS,aAAa,CACpB,UAAiD,EACjD,KAAoB;IAEpB,OAAO,OAAO,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,UAAU,CAAC,K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