@clr/angular 18.0.0-beta.3 → 18.0.0-beta.5
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/fesm2022/clr-angular-data-datagrid.mjs +8 -2
- package/fesm2022/clr-angular-data-datagrid.mjs.map +1 -1
- package/fesm2022/clr-angular-forms-combobox.mjs +332 -39
- package/fesm2022/clr-angular-forms-combobox.mjs.map +1 -1
- package/fesm2022/clr-angular-layout-nav.mjs +27 -25
- package/fesm2022/clr-angular-layout-nav.mjs.map +1 -1
- package/fesm2022/clr-angular-modal.mjs +2 -3
- package/fesm2022/clr-angular-modal.mjs.map +1 -1
- package/fesm2022/clr-angular-utils.mjs +5 -0
- package/fesm2022/clr-angular-utils.mjs.map +1 -1
- package/fesm2022/clr-angular-wizard.mjs +427 -224
- package/fesm2022/clr-angular-wizard.mjs.map +1 -1
- package/package.json +7 -2
- package/schematics/collection.json +10 -0
- package/schematics/ng-update/index.d.ts +2 -0
- package/schematics/ng-update/index.js +69 -0
- package/schematics/ng-update/index.js.map +1 -0
- package/schematics/ng-update/migrations/css-migration.d.ts +6 -0
- package/schematics/ng-update/migrations/css-migration.js +177 -0
- package/schematics/ng-update/migrations/css-migration.js.map +1 -0
- package/schematics/ng-update/migrations/import-migration.d.ts +4 -0
- package/schematics/ng-update/migrations/import-migration.js +187 -0
- package/schematics/ng-update/migrations/import-migration.js.map +1 -0
- package/schematics/ng-update/migrations/template-migration.d.ts +6 -0
- package/schematics/ng-update/migrations/template-migration.js +203 -0
- package/schematics/ng-update/migrations/template-migration.js.map +1 -0
- package/schematics/ng-update/replacements/css-replacements.d.ts +17 -0
- package/schematics/ng-update/replacements/css-replacements.js +74 -0
- package/schematics/ng-update/replacements/css-replacements.js.map +1 -0
- package/schematics/ng-update/replacements/import-replacements.d.ts +13 -0
- package/schematics/ng-update/replacements/import-replacements.js +101 -0
- package/schematics/ng-update/replacements/import-replacements.js.map +1 -0
- package/schematics/ng-update/replacements/symbol-replacements.d.ts +12 -0
- package/schematics/ng-update/replacements/symbol-replacements.js +68 -0
- package/schematics/ng-update/replacements/symbol-replacements.js.map +1 -0
- package/schematics/ng-update/replacements/template-replacements.d.ts +14 -0
- package/schematics/ng-update/replacements/template-replacements.js +53 -0
- package/schematics/ng-update/replacements/template-replacements.js.map +1 -0
- package/schematics/ng-update/tests/test-helpers.d.ts +6 -0
- package/schematics/ng-update/tests/test-helpers.js +34 -0
- package/schematics/ng-update/tests/test-helpers.js.map +1 -0
- package/schematics/ng-update/utils/file-visitor.d.ts +8 -0
- package/schematics/ng-update/utils/file-visitor.js +44 -0
- package/schematics/ng-update/utils/file-visitor.js.map +1 -0
- package/schematics/ng-update/utils/regexp-utils.d.ts +16 -0
- package/schematics/ng-update/utils/regexp-utils.js +34 -0
- package/schematics/ng-update/utils/regexp-utils.js.map +1 -0
- package/schematics/vitest.config.d.ts +2 -0
- package/schematics/vitest.config.js +17 -0
- package/schematics/vitest.config.js.map +1 -0
- package/types/clr-angular-forms-combobox.d.ts +55 -9
- package/types/clr-angular-layout-nav.d.ts +6 -2
- package/types/clr-angular-utils.d.ts +5 -0
- package/types/clr-angular-wizard.d.ts +89 -35
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
4
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
* This software is released under MIT license.
|
|
6
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.TEMPLATE_MIGRATION_INLINE_CANDIDATES = exports.TEMPLATE_MIGRATION_HTML_CANDIDATES = void 0;
|
|
10
|
+
exports.transformInlineTemplates = transformInlineTemplates;
|
|
11
|
+
exports.migrateTemplates = migrateTemplates;
|
|
12
|
+
exports.applyHtmlTransforms = applyHtmlTransforms;
|
|
13
|
+
const css_replacements_1 = require("../replacements/css-replacements");
|
|
14
|
+
const template_replacements_1 = require("../replacements/template-replacements");
|
|
15
|
+
const file_visitor_1 = require("../utils/file-visitor");
|
|
16
|
+
const regexp_utils_1 = require("../utils/regexp-utils");
|
|
17
|
+
// ---------------------------------------------------------------------------
|
|
18
|
+
// Pre-compiled regex arrays — built once at module load, not per-file
|
|
19
|
+
// ---------------------------------------------------------------------------
|
|
20
|
+
const COMPILED_OUTPUT_REGEXES = template_replacements_1.TEMPLATE_OUTPUT_REPLACEMENTS.map(r => ({
|
|
21
|
+
old: r.old,
|
|
22
|
+
new: r.new,
|
|
23
|
+
regex: new RegExp(`\\(${(0, regexp_utils_1.escapeRegExp)(r.old)}\\)`, 'g'),
|
|
24
|
+
}));
|
|
25
|
+
const COMPILED_INPUT_BOUND_REGEXES = template_replacements_1.TEMPLATE_INPUT_REPLACEMENTS.map(r => ({
|
|
26
|
+
old: r.old,
|
|
27
|
+
new: r.new,
|
|
28
|
+
boundRegex: new RegExp(`\\[${(0, regexp_utils_1.escapeRegExp)(r.old)}\\]`, 'g'),
|
|
29
|
+
bareRegex: new RegExp(`(?<=\\s)${(0, regexp_utils_1.escapeRegExp)(r.old)}(?==)`, 'g'),
|
|
30
|
+
}));
|
|
31
|
+
// cds-icon [attr.*] replacements: applied only within <cds-icon> opening tags to
|
|
32
|
+
// avoid false positives on native elements like <input [attr.size]="x">.
|
|
33
|
+
const COMPILED_CDS_ICON_ATTR_ENTRIES = template_replacements_1.TEMPLATE_ATTRIBUTE_REPLACEMENTS.filter(r => r.context === 'cds-icon');
|
|
34
|
+
// Non-scoped attribute replacements: applied globally (e.g. clrPopoverAnchor).
|
|
35
|
+
// Word boundaries (\b) prevent matching inside longer identifiers such as clrPopoverAnchorClose.
|
|
36
|
+
const COMPILED_GLOBAL_ATTR_REGEXES = template_replacements_1.TEMPLATE_ATTRIBUTE_REPLACEMENTS.filter(r => r.context !== 'cds-icon').map(r => ({
|
|
37
|
+
old: r.old,
|
|
38
|
+
new: r.new,
|
|
39
|
+
regex: (0, regexp_utils_1.wordBoundaryRegex)(r.old),
|
|
40
|
+
}));
|
|
41
|
+
// Quote-aware regex that matches a complete <cds-icon …> or <cds-icon … /> opening tag.
|
|
42
|
+
// Handles attribute values that contain > (e.g. [attr.size]="size > 0 ? 'lg' : 'md'").
|
|
43
|
+
const CDS_ICON_TAG_RE = /<cds-icon\b(?:[^"'/>]|"[^"]*"|'[^']*')*(?:\/?>)/g;
|
|
44
|
+
const COMPILED_HEADER_REGEXES = template_replacements_1.HEADER_CLASS_REPLACEMENTS.map(r => ({
|
|
45
|
+
old: r.old,
|
|
46
|
+
new: r.new,
|
|
47
|
+
regex: (0, regexp_utils_1.wordBoundaryRegex)(r.old),
|
|
48
|
+
}));
|
|
49
|
+
const COMPILED_CDS_TEXT_REGEXES = css_replacements_1.CSS_ATTRIBUTE_REPLACEMENTS.map(r => ({
|
|
50
|
+
old: r.old,
|
|
51
|
+
new: r.new,
|
|
52
|
+
regex: new RegExp((0, regexp_utils_1.escapeRegExp)(r.old), 'g'),
|
|
53
|
+
}));
|
|
54
|
+
// ---------------------------------------------------------------------------
|
|
55
|
+
// Fast-path candidate strings
|
|
56
|
+
// ---------------------------------------------------------------------------
|
|
57
|
+
exports.TEMPLATE_MIGRATION_HTML_CANDIDATES = [
|
|
58
|
+
...template_replacements_1.TEMPLATE_OUTPUT_REPLACEMENTS.map(r => r.old),
|
|
59
|
+
...template_replacements_1.TEMPLATE_INPUT_REPLACEMENTS.map(r => r.old),
|
|
60
|
+
...template_replacements_1.TEMPLATE_ATTRIBUTE_REPLACEMENTS.map(r => r.old),
|
|
61
|
+
...template_replacements_1.HEADER_CLASS_REPLACEMENTS.map(r => r.old),
|
|
62
|
+
...css_replacements_1.CSS_ATTRIBUTE_REPLACEMENTS.map(r => r.old),
|
|
63
|
+
];
|
|
64
|
+
exports.TEMPLATE_MIGRATION_INLINE_CANDIDATES = exports.TEMPLATE_MIGRATION_HTML_CANDIDATES;
|
|
65
|
+
// ---------------------------------------------------------------------------
|
|
66
|
+
// Public pure transforms — used by the unified .ts pass in index.ts
|
|
67
|
+
// ---------------------------------------------------------------------------
|
|
68
|
+
function transformInlineTemplates(text) {
|
|
69
|
+
const templateRegex = /template\s*:\s*(`[\s\S]*?`|'[\s\S]*?')/g;
|
|
70
|
+
return text.replace(templateRegex, (match, templateContent) => {
|
|
71
|
+
if (!exports.TEMPLATE_MIGRATION_INLINE_CANDIDATES.some(c => templateContent.includes(c))) {
|
|
72
|
+
return match;
|
|
73
|
+
}
|
|
74
|
+
const updated = applyHtmlTransforms(templateContent);
|
|
75
|
+
return updated !== templateContent ? match.replace(templateContent, updated) : match;
|
|
76
|
+
});
|
|
77
|
+
}
|
|
78
|
+
// ---------------------------------------------------------------------------
|
|
79
|
+
// Schematic Rule — visits .html files; .ts inline templates handled in unified pass
|
|
80
|
+
// ---------------------------------------------------------------------------
|
|
81
|
+
function migrateTemplates() {
|
|
82
|
+
return (tree, context) => {
|
|
83
|
+
context.logger.info(' Migrating HTML templates');
|
|
84
|
+
let htmlScanCount = 0;
|
|
85
|
+
let htmlUpdateCount = 0;
|
|
86
|
+
let tsScanCount = 0;
|
|
87
|
+
let tsUpdateCount = 0;
|
|
88
|
+
(0, file_visitor_1.visitFiles)(tree, '**/*.html', filePath => {
|
|
89
|
+
htmlScanCount++;
|
|
90
|
+
const content = tree.read(filePath);
|
|
91
|
+
if (!content) {
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
const original = content.toString('utf-8');
|
|
95
|
+
if (!exports.TEMPLATE_MIGRATION_HTML_CANDIDATES.some(c => original.includes(c))) {
|
|
96
|
+
return;
|
|
97
|
+
}
|
|
98
|
+
const updated = applyHtmlTransforms(original);
|
|
99
|
+
if (updated !== original) {
|
|
100
|
+
tree.overwrite(filePath, updated);
|
|
101
|
+
htmlUpdateCount++;
|
|
102
|
+
context.logger.info(` UPDATE ${filePath}`);
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
(0, file_visitor_1.visitFiles)(tree, '**/*.ts', filePath => {
|
|
106
|
+
tsScanCount++;
|
|
107
|
+
const content = tree.read(filePath);
|
|
108
|
+
if (!content) {
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
const original = content.toString('utf-8');
|
|
112
|
+
if (!exports.TEMPLATE_MIGRATION_INLINE_CANDIDATES.some(c => original.includes(c))) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
const updated = transformInlineTemplates(original);
|
|
116
|
+
if (updated !== original) {
|
|
117
|
+
tree.overwrite(filePath, updated);
|
|
118
|
+
tsUpdateCount++;
|
|
119
|
+
context.logger.info(` UPDATE ${filePath}`);
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
const totalScanned = htmlScanCount + tsScanCount;
|
|
123
|
+
const totalUpdated = htmlUpdateCount + tsUpdateCount;
|
|
124
|
+
context.logger.info(` ${totalUpdated} of ${totalScanned} file(s) updated.`);
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
// ---------------------------------------------------------------------------
|
|
128
|
+
// Helpers — exported for direct testing; not part of the public schematic API
|
|
129
|
+
// ---------------------------------------------------------------------------
|
|
130
|
+
function applyHtmlTransforms(text) {
|
|
131
|
+
text = migrateOutputBindings(text);
|
|
132
|
+
text = migrateInputBindings(text);
|
|
133
|
+
text = migrateCdsIconAttributes(text);
|
|
134
|
+
text = migrateHeaderClasses(text);
|
|
135
|
+
text = migrateCdsTextAttributes(text);
|
|
136
|
+
return text;
|
|
137
|
+
}
|
|
138
|
+
function migrateOutputBindings(text) {
|
|
139
|
+
for (const r of COMPILED_OUTPUT_REGEXES) {
|
|
140
|
+
if (!text.includes(r.old)) {
|
|
141
|
+
continue;
|
|
142
|
+
}
|
|
143
|
+
r.regex.lastIndex = 0;
|
|
144
|
+
text = text.replace(r.regex, `(${r.new})`);
|
|
145
|
+
}
|
|
146
|
+
return text;
|
|
147
|
+
}
|
|
148
|
+
function migrateInputBindings(text) {
|
|
149
|
+
for (const r of COMPILED_INPUT_BOUND_REGEXES) {
|
|
150
|
+
if (!text.includes(r.old)) {
|
|
151
|
+
continue;
|
|
152
|
+
}
|
|
153
|
+
r.boundRegex.lastIndex = 0;
|
|
154
|
+
r.bareRegex.lastIndex = 0;
|
|
155
|
+
text = text.replace(r.boundRegex, `[${r.new}]`);
|
|
156
|
+
text = text.replace(r.bareRegex, r.new);
|
|
157
|
+
}
|
|
158
|
+
return text;
|
|
159
|
+
}
|
|
160
|
+
function migrateCdsIconAttributes(text) {
|
|
161
|
+
// Scoped pass: only touch [attr.*] inside <cds-icon> opening tags.
|
|
162
|
+
if (COMPILED_CDS_ICON_ATTR_ENTRIES.some(r => text.includes(r.old))) {
|
|
163
|
+
CDS_ICON_TAG_RE.lastIndex = 0;
|
|
164
|
+
text = text.replace(CDS_ICON_TAG_RE, tagMatch => {
|
|
165
|
+
for (const { old: oldStr, new: newStr } of COMPILED_CDS_ICON_ATTR_ENTRIES) {
|
|
166
|
+
if (tagMatch.includes(oldStr)) {
|
|
167
|
+
tagMatch = tagMatch.split(oldStr).join(newStr);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
return tagMatch;
|
|
171
|
+
});
|
|
172
|
+
}
|
|
173
|
+
// Global pass: non-scoped attribute replacements.
|
|
174
|
+
for (const r of COMPILED_GLOBAL_ATTR_REGEXES) {
|
|
175
|
+
if (!text.includes(r.old)) {
|
|
176
|
+
continue;
|
|
177
|
+
}
|
|
178
|
+
r.regex.lastIndex = 0;
|
|
179
|
+
text = text.replace(r.regex, r.new);
|
|
180
|
+
}
|
|
181
|
+
return text;
|
|
182
|
+
}
|
|
183
|
+
function migrateHeaderClasses(text) {
|
|
184
|
+
for (const r of COMPILED_HEADER_REGEXES) {
|
|
185
|
+
if (!text.includes(r.old)) {
|
|
186
|
+
continue;
|
|
187
|
+
}
|
|
188
|
+
r.regex.lastIndex = 0;
|
|
189
|
+
text = text.replace(r.regex, r.new);
|
|
190
|
+
}
|
|
191
|
+
return text;
|
|
192
|
+
}
|
|
193
|
+
function migrateCdsTextAttributes(text) {
|
|
194
|
+
for (const r of COMPILED_CDS_TEXT_REGEXES) {
|
|
195
|
+
if (!text.includes(r.old)) {
|
|
196
|
+
continue;
|
|
197
|
+
}
|
|
198
|
+
r.regex.lastIndex = 0;
|
|
199
|
+
text = text.replace(r.regex, r.new);
|
|
200
|
+
}
|
|
201
|
+
return text;
|
|
202
|
+
}
|
|
203
|
+
//# sourceMappingURL=template-migration.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-migration.js","sourceRoot":"","sources":["../../../../../projects/angular/schematics/ng-update/migrations/template-migration.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AA6EH,4DAUC;AAMD,4CAuDC;AAMD,kDAOC;AA7JD,uEAA8E;AAC9E,iFAK+C;AAC/C,wDAAmD;AACnD,wDAAwE;AAExE,8EAA8E;AAC9E,sEAAsE;AACtE,8EAA8E;AAE9E,MAAM,uBAAuB,GAAG,oDAA4B,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACrE,GAAG,EAAE,CAAC,CAAC,GAAG;IACV,GAAG,EAAE,CAAC,CAAC,GAAG;IACV,KAAK,EAAE,IAAI,MAAM,CAAC,MAAM,IAAA,2BAAY,EAAC,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC;CACvD,CAAC,CAAC,CAAC;AAEJ,MAAM,4BAA4B,GAAG,mDAA2B,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACzE,GAAG,EAAE,CAAC,CAAC,GAAG;IACV,GAAG,EAAE,CAAC,CAAC,GAAG;IACV,UAAU,EAAE,IAAI,MAAM,CAAC,MAAM,IAAA,2BAAY,EAAC,CAAC,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC;IAC3D,SAAS,EAAE,IAAI,MAAM,CAAC,WAAW,IAAA,2BAAY,EAAC,C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
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CSS custom property renames and removals for v18 migration.
|
|
3
|
+
*
|
|
4
|
+
* Applied to .scss, .css, and inline template styles.
|
|
5
|
+
*/
|
|
6
|
+
export interface CssReplacement {
|
|
7
|
+
readonly old: string;
|
|
8
|
+
readonly new: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const CSS_PROPERTY_REPLACEMENTS: readonly CssReplacement[];
|
|
11
|
+
export declare const CSS_SELECTOR_REPLACEMENTS: readonly CssReplacement[];
|
|
12
|
+
export declare const CSS_ATTRIBUTE_REPLACEMENTS: readonly CssReplacement[];
|
|
13
|
+
/**
|
|
14
|
+
* SCSS/Sass mixin names that have been removed in v18.
|
|
15
|
+
* Any `@include <name>(...)` call will be commented out with a TODO note.
|
|
16
|
+
*/
|
|
17
|
+
export declare const REMOVED_SCSS_MIXINS: readonly string[];
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
4
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
* This software is released under MIT license.
|
|
6
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.REMOVED_SCSS_MIXINS = exports.CSS_ATTRIBUTE_REPLACEMENTS = exports.CSS_SELECTOR_REPLACEMENTS = exports.CSS_PROPERTY_REPLACEMENTS = void 0;
|
|
10
|
+
exports.CSS_PROPERTY_REPLACEMENTS = [
|
|
11
|
+
// #2229 - Wizard stepnav CSS custom properties
|
|
12
|
+
{
|
|
13
|
+
old: '--clr-wizard-stepnav-text--active',
|
|
14
|
+
new: '--clr-wizard-stepnav-text-selected',
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
old: '--clr-wizard-stepnav-item-border-color--active',
|
|
18
|
+
new: '--clr-wizard-stepnav-item-complete-border-color',
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
old: '--clr-wizard-stepnav-active-bgcolor',
|
|
22
|
+
new: '--clr-wizard-stepnav-selected-bgcolor',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
old: '--clr-wizard-stepnav-link-hover-bg-color',
|
|
26
|
+
new: '--clr-wizard-stepnav-hover-bgcolor',
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
old: '--clr-wizard-stepnav-link-active-bg-color',
|
|
30
|
+
new: '--clr-wizard-stepnav-active-bgcolor',
|
|
31
|
+
},
|
|
32
|
+
// #2230 - Accordion/Collapsible panel deprecated properties
|
|
33
|
+
{
|
|
34
|
+
old: '--clr-accordion-active-background-color',
|
|
35
|
+
new: '--clr-accordion-header-open-background-color',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
old: '--clr-collapsible-panel-active-background-color',
|
|
39
|
+
new: '--clr-collapsible-panel-header-open-background-color',
|
|
40
|
+
},
|
|
41
|
+
// #2229 - Wizard additional rename from beta.1 release
|
|
42
|
+
{
|
|
43
|
+
old: '--clr-wizard-step-title-min-width',
|
|
44
|
+
new: '',
|
|
45
|
+
},
|
|
46
|
+
// #2207 - Accordion step title min width removed
|
|
47
|
+
{
|
|
48
|
+
old: '--clr-accordion-step-title-min-width',
|
|
49
|
+
new: '',
|
|
50
|
+
},
|
|
51
|
+
];
|
|
52
|
+
exports.CSS_SELECTOR_REPLACEMENTS = [
|
|
53
|
+
// #2180 - Header variant classes removed
|
|
54
|
+
{ old: 'header-4', new: 'header-3' },
|
|
55
|
+
{ old: 'header-5', new: 'header-3' },
|
|
56
|
+
{ old: 'header-6', new: 'header-1' },
|
|
57
|
+
{ old: 'header-7', new: 'header-2' },
|
|
58
|
+
];
|
|
59
|
+
exports.CSS_ATTRIBUTE_REPLACEMENTS = [
|
|
60
|
+
// #2240 - cds-text heading → headline
|
|
61
|
+
{ old: "cds-text*='heading'", new: "cds-text*='headline'" },
|
|
62
|
+
{ old: 'cds-text*="heading"', new: 'cds-text*="headline"' },
|
|
63
|
+
{ old: "[cds-text*='heading']", new: "[cds-text*='headline']" },
|
|
64
|
+
{ old: '[cds-text*="heading"]', new: '[cds-text*="headline"]' },
|
|
65
|
+
];
|
|
66
|
+
/**
|
|
67
|
+
* SCSS/Sass mixin names that have been removed in v18.
|
|
68
|
+
* Any `@include <name>(...)` call will be commented out with a TODO note.
|
|
69
|
+
*/
|
|
70
|
+
exports.REMOVED_SCSS_MIXINS = [
|
|
71
|
+
// #2253 - IE/Edge range input mixin removed (beta.2)
|
|
72
|
+
'range-track-style',
|
|
73
|
+
];
|
|
74
|
+
//# sourceMappingURL=css-replacements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"css-replacements.js","sourceRoot":"","sources":["../../../../../projects/angular/schematics/ng-update/replacements/css-replacements.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAYU,QAAA,yBAAyB,GAA8B;IAClE,+CAA+C;IAC/C;QACE,GAAG,EAAE,mCAAmC;QACxC,GAAG,EAAE,oCAAoC;KAC1C;IACD;QACE,GAAG,EAAE,gDAAgD;QACrD,GAAG,EAAE,iDAAiD;KACvD;IACD;QACE,GAAG,EAAE,qCAAqC;QAC1C,GAAG,EAAE,uCAAuC;KAC7C;IACD;QACE,GAAG,EAAE,0CAA0C;QAC/C,GAAG,EAAE,oCAAoC;KAC1C;IACD;QACE,GAAG,EAAE,2CAA2C;QAChD,GAAG,EAAE,qCAAqC;KAC3C;IAED,4DAA4D;IAC5D;QACE,GAAG,EAAE,yCAAyC;QAC9C,GAAG,EAAE,8CAA8C;KACpD;IACD;QACE,GAAG,EAAE,iDAAiD;QACtD,GAAG,EAAE,sDAAsD;KAC5D;IAED,uDAAuD;IACvD;QACE,GAAG,EAAE,mCAAmC;QACxC,GAAG,EAAE,EAAE;KACR;IAED,iDAAiD;IACjD;QACE,GAAG,EAAE,sCAAsC;QAC3C,GAAG,EAAE,EAAE;KACR;CACF,CAAC;AAEW,QAAA,yBAAyB,GAA8B;IAClE,yCAAyC;IACzC,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE;IACpC,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE;IACpC,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE;IACpC,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE;CACrC,CAAC;AAEW,QAAA,0BAA0B,GAA8B;IACnE,sCAAsC;IACtC,EAAE,GAAG,EAAE,qBAAqB,EAAE,GAAG,EAAE,sBAAsB,EAAE;IAC3D,EAAE,GAAG,EAAE,qBAAqB,EAAE,GAAG,EAAE,sBAAsB,EAAE;IAC3D,EAAE,GAAG,EAAE,uBAAuB,EAAE,GAAG,EAAE,wBAAwB,EAAE;IAC/D,EAAE,GAAG,EAAE,uBAAuB,EAAE,GAAG,EAAE,wBAAwB,EAAE;CAChE,CAAC;AAEF;;;GAGG;AACU,QAAA,mBAAmB,GAAsB;IACpD,qDAAqD;IACrD,mBAAmB;CACpB,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TypeScript import path and symbol replacements for v18 migration.
|
|
3
|
+
*
|
|
4
|
+
* Each entry maps an old import to its replacement. The migration will update
|
|
5
|
+
* both the import specifier and optionally rename the imported symbol.
|
|
6
|
+
*/
|
|
7
|
+
export interface ImportReplacement {
|
|
8
|
+
readonly oldModule: string;
|
|
9
|
+
readonly newModule: string;
|
|
10
|
+
readonly oldSymbol: string;
|
|
11
|
+
readonly newSymbol: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const IMPORT_REPLACEMENTS: readonly ImportReplacement[];
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
4
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
* This software is released under MIT license.
|
|
6
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.IMPORT_REPLACEMENTS = void 0;
|
|
10
|
+
exports.IMPORT_REPLACEMENTS = [
|
|
11
|
+
// #2107 - Secondary entrypoints: deep /src/ imports → package entrypoints
|
|
12
|
+
{
|
|
13
|
+
oldModule: '@clr/angular/src/accordion',
|
|
14
|
+
newModule: '@clr/angular/accordion',
|
|
15
|
+
oldSymbol: '*',
|
|
16
|
+
newSymbol: '*',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
oldModule: '@clr/angular/src/accordion/stepper',
|
|
20
|
+
newModule: '@clr/angular/stepper',
|
|
21
|
+
oldSymbol: '*',
|
|
22
|
+
newSymbol: '*',
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
oldModule: '@clr/angular/src/emphasis',
|
|
26
|
+
newModule: '@clr/angular/emphasis',
|
|
27
|
+
oldSymbol: '*',
|
|
28
|
+
newSymbol: '*',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
oldModule: '@clr/angular/src/forms',
|
|
32
|
+
newModule: '@clr/angular/forms',
|
|
33
|
+
oldSymbol: '*',
|
|
34
|
+
newSymbol: '*',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
oldModule: '@clr/angular/src/data',
|
|
38
|
+
newModule: '@clr/angular/data',
|
|
39
|
+
oldSymbol: '*',
|
|
40
|
+
newSymbol: '*',
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
oldModule: '@clr/angular/src/layout',
|
|
44
|
+
newModule: '@clr/angular/layout',
|
|
45
|
+
oldSymbol: '*',
|
|
46
|
+
newSymbol: '*',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
oldModule: '@clr/angular/src/modal',
|
|
50
|
+
newModule: '@clr/angular/modal',
|
|
51
|
+
oldSymbol: '*',
|
|
52
|
+
newSymbol: '*',
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
oldModule: '@clr/angular/src/popover',
|
|
56
|
+
newModule: '@clr/angular/popover',
|
|
57
|
+
oldSymbol: '*',
|
|
58
|
+
newSymbol: '*',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
oldModule: '@clr/angular/src/utils',
|
|
62
|
+
newModule: '@clr/angular/utils',
|
|
63
|
+
oldSymbol: '*',
|
|
64
|
+
newSymbol: '*',
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
oldModule: '@clr/angular/src/wizard',
|
|
68
|
+
newModule: '@clr/angular/wizard',
|
|
69
|
+
oldSymbol: '*',
|
|
70
|
+
newSymbol: '*',
|
|
71
|
+
},
|
|
72
|
+
// #2098 - Smart popovers moved from utils/popover → popover/common
|
|
73
|
+
{
|
|
74
|
+
oldModule: '@clr/angular/utils/popover',
|
|
75
|
+
newModule: '@clr/angular/popover/common',
|
|
76
|
+
oldSymbol: '*',
|
|
77
|
+
newSymbol: '*',
|
|
78
|
+
},
|
|
79
|
+
// #2107 - ClrIfOpen moved from utils → popover/common
|
|
80
|
+
{
|
|
81
|
+
oldModule: '@clr/angular/utils',
|
|
82
|
+
newModule: '@clr/angular/popover/common',
|
|
83
|
+
oldSymbol: 'ClrIfOpen',
|
|
84
|
+
newSymbol: 'ClrIfOpen',
|
|
85
|
+
},
|
|
86
|
+
// #2107 - FocusService renamed to FormsFocusService
|
|
87
|
+
{
|
|
88
|
+
oldModule: '@clr/angular/forms',
|
|
89
|
+
newModule: '@clr/angular/forms/common',
|
|
90
|
+
oldSymbol: 'FocusService',
|
|
91
|
+
newSymbol: 'FormsFocusService',
|
|
92
|
+
},
|
|
93
|
+
// #2101 - cds-icon: @cds/core/icon → @clr/angular or @clr/angular/icon
|
|
94
|
+
{
|
|
95
|
+
oldModule: '@cds/core/icon',
|
|
96
|
+
newModule: '@clr/angular/icon',
|
|
97
|
+
oldSymbol: '*',
|
|
98
|
+
newSymbol: '*',
|
|
99
|
+
},
|
|
100
|
+
];
|
|
101
|
+
//# sourceMappingURL=import-replacements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"import-replacements.js","sourceRoot":"","sources":["../../../../../projects/angular/schematics/ng-update/replacements/import-replacements.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAeU,QAAA,mBAAmB,GAAiC;IAC/D,0EAA0E;IAC1E;QACE,SAAS,EAAE,4BAA4B;QACvC,SAAS,EAAE,wBAAwB;QACnC,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf;IACD;QACE,SAAS,EAAE,oCAAoC;QAC/C,SAAS,EAAE,sBAAsB;QACjC,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf;IACD;QACE,SAAS,EAAE,2BAA2B;QACtC,SAAS,EAAE,uBAAuB;QAClC,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf;IACD;QACE,SAAS,EAAE,wBAAwB;QACnC,SAAS,EAAE,oBAAoB;QAC/B,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf;IACD;QACE,SAAS,EAAE,uBAAuB;QAClC,SAAS,EAAE,mBAAmB;QAC9B,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf;IACD;QACE,SAAS,EAAE,yBAAyB;QACpC,SAAS,EAAE,qBAAqB;QAChC,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf;IACD;QACE,SAAS,EAAE,wBAAwB;QACnC,SAAS,EAAE,oBAAoB;QAC/B,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf;IACD;QACE,SAAS,EAAE,0BAA0B;QACrC,SAAS,EAAE,sBAAsB;QACjC,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf;IACD;QACE,SAAS,EAAE,wBAAwB;QACnC,SAAS,EAAE,oBAAoB;QAC/B,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf;IACD;QACE,SAAS,EAAE,yBAAyB;QACpC,SAAS,EAAE,qBAAqB;QAChC,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf;IAED,mEAAmE;IACnE;QACE,SAAS,EAAE,4BAA4B;QACvC,SAAS,EAAE,6BAA6B;QACxC,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf;IAED,sDAAsD;IACtD;QACE,SAAS,EAAE,oBAAoB;QAC/B,SAAS,EAAE,6BAA6B;QACxC,SAAS,EAAE,WAAW;QACtB,SAAS,EAAE,WAAW;KACvB;IAED,oDAAoD;IACpD;QACE,SAAS,EAAE,oBAAoB;QAC/B,SAAS,EAAE,2BAA2B;QACtC,SAAS,EAAE,cAAc;QACzB,SAAS,EAAE,mBAAmB;KAC/B;IAED,uEAAuE;IACvE;QACE,SAAS,EAAE,gBAAgB;QAC3B,SAAS,EAAE,mBAAmB;QAC9B,SAAS,EAAE,GAAG;QACd,SAAS,EAAE,GAAG;KACf;CACF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TypeScript symbol renames for v18 migration.
|
|
3
|
+
*
|
|
4
|
+
* These are applied across all .ts files after import path updates.
|
|
5
|
+
* Symbols with an empty `new` are removed (import stripped, usage annotated with TODO).
|
|
6
|
+
*/
|
|
7
|
+
export interface SymbolReplacement {
|
|
8
|
+
readonly old: string;
|
|
9
|
+
readonly new: string;
|
|
10
|
+
readonly context?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const SYMBOL_REPLACEMENTS: readonly SymbolReplacement[];
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
4
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
* This software is released under MIT license.
|
|
6
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.SYMBOL_REPLACEMENTS = void 0;
|
|
10
|
+
exports.SYMBOL_REPLACEMENTS = [
|
|
11
|
+
// #2023 - ClrLabel → ClrControlLabel (form directive)
|
|
12
|
+
{ old: 'ClrLabel', new: 'ClrControlLabel', context: 'form-label-directive' },
|
|
13
|
+
// #2007 - clrDgItemsTrackBy → clrDgItemsIdentityFn
|
|
14
|
+
{ old: 'clrDgItemsTrackBy', new: 'clrDgItemsIdentityFn', context: 'datagrid' },
|
|
15
|
+
// #2107 - FocusService → FormsFocusService
|
|
16
|
+
{ old: 'FocusService', new: 'FormsFocusService', context: 'forms' },
|
|
17
|
+
// #2062 - Removed popover services/enums/interfaces
|
|
18
|
+
{ old: 'ClrPopoverEventsService', new: 'ClrPopoverService', context: 'popover-removed' },
|
|
19
|
+
{ old: 'ClrPopoverPositionService', new: 'ClrPopoverService', context: 'popover-removed' },
|
|
20
|
+
{ old: 'ClrPopoverToggleService', new: 'ClrPopoverService', context: 'popover-removed' },
|
|
21
|
+
// #2101 - ClrIconModule → ClrIcon (standalone)
|
|
22
|
+
{ old: 'ClrIconModule', new: 'ClrIcon', context: 'icon-standalone' },
|
|
23
|
+
// #2207 - Accordion/Stepper decoupling
|
|
24
|
+
{ old: 'AccordionPanelModel', new: 'CollapsiblePanelModel', context: 'accordion-stepper-decoupling' },
|
|
25
|
+
{ old: 'AccordionStatus', new: 'StepperPanelStatus', context: 'accordion-stepper-decoupling' },
|
|
26
|
+
{ old: 'panelAnimation', new: 'collapsiblePanelAnimation', context: 'accordion-stepper-decoupling' },
|
|
27
|
+
{ old: 'getAccordionContentId', new: 'getContentId', context: 'accordion-stepper-decoupling' },
|
|
28
|
+
{ old: 'getAccordionHeaderId', new: 'getHeaderId', context: 'accordion-stepper-decoupling' },
|
|
29
|
+
// #2228 - IE11 removals
|
|
30
|
+
{ old: 'IEKeys', new: '', context: 'ie-removal' },
|
|
31
|
+
{ old: 'normalizeKey', new: '', context: 'ie-removal' },
|
|
32
|
+
// #2267 - Popover anchor → origin rename (beta.2)
|
|
33
|
+
{ old: 'ClrPopoverAnchor', new: 'ClrPopoverOrigin', context: 'popover-anchor-origin' },
|
|
34
|
+
{ old: 'POPOVER_HOST_ANCHOR', new: 'POPOVER_HOST_ORIGIN', context: 'popover-anchor-origin' },
|
|
35
|
+
{ old: 'focusAnchor', new: 'focusOrigin', context: 'popover-anchor-origin' },
|
|
36
|
+
{ old: 'getAnchorPosition', new: 'getOriginPosition', context: 'popover-anchor-origin' },
|
|
37
|
+
// #2266 - Ç-prefix symbol renames (beta.3)
|
|
38
|
+
// Note: Ç (U+00C7) is not a regex word-boundary character; matching uses lookahead/lookbehind.
|
|
39
|
+
{ old: 'ÇlrClrPopoverModuleNext', new: 'ClrPopoverModuleNext', context: 'c-prefix-rename' },
|
|
40
|
+
{ old: 'ÇlrClrPopoverCloseButton', new: 'ClrPopoverCloseButton', context: 'c-prefix-rename' },
|
|
41
|
+
{ old: 'ÇlrClrPopoverOpenCloseButton', new: 'ClrPopoverOpenCloseButton', context: 'c-prefix-rename' },
|
|
42
|
+
{ old: 'ÇlrAccordionWillyWonka', new: 'AccordionWillyWonka', context: 'c-prefix-rename' },
|
|
43
|
+
{ old: 'ÇlrAccordionOompaLoompa', new: 'AccordionOompaLoompa', context: 'c-prefix-rename' },
|
|
44
|
+
{ old: 'ÇlrStepperWillyWonka', new: 'StepperWillyWonka', context: 'c-prefix-rename' },
|
|
45
|
+
{ old: 'ÇlrStepperOompaLoompa', new: 'StepperOompaLoompa', context: 'c-prefix-rename' },
|
|
46
|
+
{ old: 'ÇlrTabsWillyWonka', new: 'TabsWillyWonka', context: 'c-prefix-rename' },
|
|
47
|
+
{ old: 'ÇlrActiveOompaLoompa', new: 'ActiveOompaLoompa', context: 'c-prefix-rename' },
|
|
48
|
+
{ old: 'ÇlrDatagridVirtualScrollDirective', new: 'ClrDatagridVirtualScrollDirective', context: 'c-prefix-rename' },
|
|
49
|
+
{ old: 'ÇlrDatagridSelectionCellDirective', new: 'ClrDatagridSelectionCellDirective', context: 'c-prefix-rename' },
|
|
50
|
+
{
|
|
51
|
+
old: 'ÇlrDatagridSingleSelectionValueAccessor',
|
|
52
|
+
new: 'ClrDatagridSingleSelectionValueAccessor',
|
|
53
|
+
context: 'c-prefix-rename',
|
|
54
|
+
},
|
|
55
|
+
{ old: 'ÇlrDatagridWillyWonka', new: 'DatagridWillyWonka', context: 'c-prefix-rename' },
|
|
56
|
+
{ old: 'ÇlrActionableOompaLoompa', new: 'ActionableOompaLoompa', context: 'c-prefix-rename' },
|
|
57
|
+
{ old: 'ÇlrExpandableOompaLoompa', new: 'ExpandableOompaLoompa', context: 'c-prefix-rename' },
|
|
58
|
+
{ old: 'ÇlrWrappedCell', new: 'WrappedCell', context: 'c-prefix-rename' },
|
|
59
|
+
{ old: 'ÇlrWrappedColumn', new: 'WrappedColumn', context: 'c-prefix-rename' },
|
|
60
|
+
{ old: 'ÇlrWrappedRow', new: 'WrappedRow', context: 'c-prefix-rename' },
|
|
61
|
+
{ old: 'ÇlrDatagridCellRenderer', new: 'DatagridCellRenderer', context: 'c-prefix-rename' },
|
|
62
|
+
{ old: 'ÇlrDatagridHeaderRenderer', new: 'DatagridHeaderRenderer', context: 'c-prefix-rename' },
|
|
63
|
+
{ old: 'ÇlrDatagridMainRenderer', new: 'DatagridMainRenderer', context: 'c-prefix-rename' },
|
|
64
|
+
{ old: 'ÇlrDatagridRowRenderer', new: 'DatagridRowRenderer', context: 'c-prefix-rename' },
|
|
65
|
+
{ old: 'ÇlrDatagridRowDetailRenderer', new: 'DatagridRowDetailRenderer', context: 'c-prefix-rename' },
|
|
66
|
+
{ old: 'ÇlrDatagridDetailRegisterer', new: 'DatagridDetailRegisterer', context: 'c-prefix-rename' },
|
|
67
|
+
];
|
|
68
|
+
//# sourceMappingURL=symbol-replacements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"symbol-replacements.js","sourceRoot":"","sources":["../../../../../projects/angular/schematics/ng-update/replacements/symbol-replacements.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAcU,QAAA,mBAAmB,GAAiC;IAC/D,sDAAsD;IACtD,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,iBAAiB,EAAE,OAAO,EAAE,sBAAsB,EAAE;IAE5E,mDAAmD;IACnD,EAAE,GAAG,EAAE,mBAAmB,EAAE,GAAG,EAAE,sBAAsB,EAAE,OAAO,EAAE,UAAU,EAAE;IAE9E,2CAA2C;IAC3C,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,EAAE,OAAO,EAAE;IAEnE,oDAAoD;IACpD,EAAE,GAAG,EAAE,yBAAyB,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,EAAE,iBAAiB,EAAE;IACxF,EAAE,GAAG,EAAE,2BAA2B,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,EAAE,iBAAiB,EAAE;IAC1F,EAAE,GAAG,EAAE,yBAAyB,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,EAAE,iBAAiB,EAAE;IAExF,+CAA+C;IAC/C,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,iBAAiB,EAAE;IAEpE,uCAAuC;IACvC,EAAE,GAAG,EAAE,qBAAqB,EAAE,GAAG,EAAE,uBAAuB,EAAE,OAAO,EAAE,8BAA8B,EAAE;IACrG,EAAE,GAAG,EAAE,iBAAiB,EAAE,GAAG,EAAE,oBAAoB,EAAE,OAAO,EAAE,8BAA8B,EAAE;IAC9F,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,2BAA2B,EAAE,OAAO,EAAE,8BAA8B,EAAE;IACpG,EAAE,GAAG,EAAE,uBAAuB,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,iBAAiB,EAAE;IAC3F,EAAE,GAAG,EAAE,2BAA2B,EAAE,GAAG,EAAE,wBAAwB,EAAE,OAAO,EAAE,iBAAiB,EAAE;IAC/F,EAAE,GAAG,EAAE,yBAAyB,EAAE,GAAG,EAAE,sBAAsB,EAAE,OAAO,EAAE,iBAAiB,EAAE;IAC3F,EAAE,GAAG,EAAE,wBAAwB,EAAE,GAAG,EAAE,qBAAqB,EAAE,OAAO,EAAE,iBAAiB,EAAE;IACzF,EAAE,GAAG,EAAE,8BAA8B,EAAE,GAAG,EAAE,2BAA2B,EAAE,OAAO,EAAE,iBAAiB,EAAE;IACrG,EAAE,GAAG,EAAE,6BAA6B,EAAE,GAAG,EAAE,0BAA0B,EAAE,OAAO,EAAE,iBAAiB,EAAE;CACpG,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* HTML template replacements for v18 migration.
|
|
3
|
+
*
|
|
4
|
+
* Covers Angular output renames, attribute binding changes, and selector updates.
|
|
5
|
+
*/
|
|
6
|
+
export interface TemplateReplacement {
|
|
7
|
+
readonly old: string;
|
|
8
|
+
readonly new: string;
|
|
9
|
+
readonly context?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const TEMPLATE_OUTPUT_REPLACEMENTS: readonly TemplateReplacement[];
|
|
12
|
+
export declare const TEMPLATE_ATTRIBUTE_REPLACEMENTS: readonly TemplateReplacement[];
|
|
13
|
+
export declare const TEMPLATE_INPUT_REPLACEMENTS: readonly TemplateReplacement[];
|
|
14
|
+
export declare const HEADER_CLASS_REPLACEMENTS: readonly TemplateReplacement[];
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
4
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
* This software is released under MIT license.
|
|
6
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.HEADER_CLASS_REPLACEMENTS = exports.TEMPLATE_INPUT_REPLACEMENTS = exports.TEMPLATE_ATTRIBUTE_REPLACEMENTS = exports.TEMPLATE_OUTPUT_REPLACEMENTS = void 0;
|
|
10
|
+
exports.TEMPLATE_OUTPUT_REPLACEMENTS = [
|
|
11
|
+
// #2249 - Wizard currentPageChanged → currentPageChange
|
|
12
|
+
{
|
|
13
|
+
old: 'clrWizardCurrentPageChanged',
|
|
14
|
+
new: 'clrWizardCurrentPageChange',
|
|
15
|
+
context: 'wizard',
|
|
16
|
+
},
|
|
17
|
+
];
|
|
18
|
+
exports.TEMPLATE_ATTRIBUTE_REPLACEMENTS = [
|
|
19
|
+
// #2101 - cds-icon: [attr.shape] → [shape], [attr.size] → [size], etc.
|
|
20
|
+
{ old: '[attr.shape]', new: '[shape]', context: 'cds-icon' },
|
|
21
|
+
{ old: '[attr.size]', new: '[size]', context: 'cds-icon' },
|
|
22
|
+
{ old: '[attr.dir]', new: '[dir]', context: 'cds-icon' },
|
|
23
|
+
{ old: '[attr.flip]', new: '[flip]', context: 'cds-icon' },
|
|
24
|
+
{ old: '[attr.status]', new: '[status]', context: 'cds-icon' },
|
|
25
|
+
{ old: '[attr.inverse]', new: '[inverse]', context: 'cds-icon' },
|
|
26
|
+
{ old: '[attr.badge]', new: '[badge]', context: 'cds-icon' },
|
|
27
|
+
{ old: '[attr.solid]', new: '[solid]', context: 'cds-icon' },
|
|
28
|
+
// #2267 - Popover anchor directive selector rename (beta.2)
|
|
29
|
+
// Matches bare attribute: clrPopoverAnchor and bound: [clrPopoverAnchor]
|
|
30
|
+
{ old: 'clrPopoverAnchor', new: 'clrPopoverOrigin', context: 'popover-anchor-origin' },
|
|
31
|
+
];
|
|
32
|
+
exports.TEMPLATE_INPUT_REPLACEMENTS = [
|
|
33
|
+
// #2022 - Badge color input rename
|
|
34
|
+
{
|
|
35
|
+
old: 'clrBadgeColor',
|
|
36
|
+
new: 'clrColor',
|
|
37
|
+
context: 'badge',
|
|
38
|
+
},
|
|
39
|
+
// #2007 - Datagrid identity function rename (input, not output)
|
|
40
|
+
{
|
|
41
|
+
old: 'clrDgItemsTrackBy',
|
|
42
|
+
new: 'clrDgItemsIdentityFn',
|
|
43
|
+
context: 'datagrid',
|
|
44
|
+
},
|
|
45
|
+
];
|
|
46
|
+
exports.HEADER_CLASS_REPLACEMENTS = [
|
|
47
|
+
// #2180 - Header variant removals
|
|
48
|
+
{ old: 'header-4', new: 'header-3' },
|
|
49
|
+
{ old: 'header-5', new: 'header-3' },
|
|
50
|
+
{ old: 'header-6', new: 'header-1' },
|
|
51
|
+
{ old: 'header-7', new: 'header-2' },
|
|
52
|
+
];
|
|
53
|
+
//# sourceMappingURL=template-replacements.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"template-replacements.js","sourceRoot":"","sources":["../../../../../projects/angular/schematics/ng-update/replacements/template-replacements.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAaU,QAAA,4BAA4B,GAAmC;IAC1E,wDAAwD;IACxD;QACE,GAAG,EAAE,6BAA6B;QAClC,GAAG,EAAE,4BAA4B;QACjC,OAAO,EAAE,QAAQ;KAClB;CACF,CAAC;AAEW,QAAA,+BAA+B,GAAmC;IAC7E,uEAAuE;IACvE,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE;IAC5D,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE;IAC1D,EAAE,GAAG,EAAE,YAAY,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE;IACxD,EAAE,GAAG,EAAE,aAAa,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE;IAC1D,EAAE,GAAG,EAAE,eAAe,EAAE,GAAG,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,EAAE;IAC9D,EAAE,GAAG,EAAE,gBAAgB,EAAE,GAAG,EAAE,WAAW,EAAE,OAAO,EAAE,UAAU,EAAE;IAChE,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE;IAC5D,EAAE,GAAG,EAAE,cAAc,EAAE,GAAG,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE;IAE5D,4DAA4D;IAC5D,yEAAyE;IACzE,EAAE,GAAG,EAAE,kBAAkB,EAAE,GAAG,EAAE,kBAAkB,EAAE,OAAO,EAAE,uBAAuB,EAAE;CACvF,CAAC;AAEW,QAAA,2BAA2B,GAAmC;IACzE,mCAAmC;IACnC;QACE,GAAG,EAAE,eAAe;QACpB,GAAG,EAAE,UAAU;QACf,OAAO,EAAE,OAAO;KACjB;IAED,gEAAgE;IAChE;QACE,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,sBAAsB;QAC3B,OAAO,EAAE,UAAU;KACpB;CACF,CAAC;AAEW,QAAA,yBAAyB,GAAmC;IACvE,kCAAkC;IAClC,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE;IACpC,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE;IACpC,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE;IACpC,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE;CACrC,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { HostTree, SchematicContext } from '@angular-devkit/schematics';
|
|
2
|
+
export declare function createContext(): SchematicContext;
|
|
3
|
+
/** Runs all three migration phases against an in-memory tree (mirrors index.ts). */
|
|
4
|
+
export declare function runMigrations(tree: HostTree): HostTree;
|
|
5
|
+
/** Applies all pure TypeScript transforms in sequence (mirrors the unified pass in index.ts). */
|
|
6
|
+
export declare function applyTsTransforms(text: string): string;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2016-2026 Broadcom. All Rights Reserved.
|
|
4
|
+
* The term "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
+
* This software is released under MIT license.
|
|
6
|
+
* The full license information can be found in LICENSE in the root directory of this project.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.createContext = createContext;
|
|
10
|
+
exports.runMigrations = runMigrations;
|
|
11
|
+
exports.applyTsTransforms = applyTsTransforms;
|
|
12
|
+
const core_1 = require("@angular-devkit/core");
|
|
13
|
+
const css_migration_1 = require("../migrations/css-migration");
|
|
14
|
+
const import_migration_1 = require("../migrations/import-migration");
|
|
15
|
+
const template_migration_1 = require("../migrations/template-migration");
|
|
16
|
+
function createContext() {
|
|
17
|
+
return { logger: new core_1.logging.NullLogger() };
|
|
18
|
+
}
|
|
19
|
+
/** Runs all three migration phases against an in-memory tree (mirrors index.ts). */
|
|
20
|
+
function runMigrations(tree) {
|
|
21
|
+
const context = createContext();
|
|
22
|
+
(0, import_migration_1.migrateImports)()(tree, context);
|
|
23
|
+
(0, template_migration_1.migrateTemplates)()(tree, context);
|
|
24
|
+
(0, css_migration_1.migrateCssProperties)()(tree, context);
|
|
25
|
+
return tree;
|
|
26
|
+
}
|
|
27
|
+
/** Applies all pure TypeScript transforms in sequence (mirrors the unified pass in index.ts). */
|
|
28
|
+
function applyTsTransforms(text) {
|
|
29
|
+
text = (0, import_migration_1.transformImports)(text);
|
|
30
|
+
text = (0, template_migration_1.transformInlineTemplates)(text);
|
|
31
|
+
text = (0, css_migration_1.transformInlineStyles)(text);
|
|
32
|
+
return text;
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=test-helpers.js.map
|