@eui/core 22.0.0-alpha.77 → 22.0.0-alpha.78

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.
@@ -1032,12 +1032,12 @@
1032
1032
  },
1033
1033
  {
1034
1034
  "name": "Edit",
1035
- "id": "interface-Edit-d273b5462287e58c647e750a2b9d5c1b39b8fde0ee7ee3013262cc411acc2e284f9cc1465c0c07e04a7e14ec416956ca80650e192aa390a2be598e7cb1f5b5d5-4",
1036
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
1035
+ "id": "interface-Edit-ba2913a48a24293b4c7a11f3a7355ae733abcd99b6625fa243ebd78b3240c95743f9449aa35b04ec12e439e1d54ec8bf0d78c0c7ed9d2580e663f0f08cf9eb5b-4",
1036
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
1037
1037
  "deprecated": false,
1038
1038
  "deprecationMessage": "",
1039
1039
  "type": "interface",
1040
- "sourceCode": "import { parseTemplate, TmplAstBoundAttribute, TmplAstElement, TmplAstNode, TmplAstTextAttribute } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport * as ts from 'typescript';\nimport { logDryRun, logDryRunNote } from '../utils/dry-run';\nimport { createTodoEdit } from '../utils/todo-comment';\n\n/**\n * Migrates removed `eclLink` (EclLinkDirective) inputs for ECL v21 → v22.\n *\n * Two inputs were removed:\n * - `isHighlight`: only the `primary` variant could be highlighted, so\n * `eclLink variant=\"primary\" isHighlight` becomes\n * `eclLink variant=\"primary-highlight\"`. The `isHighlight` attribute is\n * removed and the `variant` value is set to `primary-highlight`.\n * - `isNoVisited`: had no effect; removed with no replacement.\n *\n * Only elements that carry the `eclLink` attribute are touched. The schematic\n * rewrites external `.html` templates and inline `@Component` templates.\n *\n * Cases that cannot be rewritten safely (a bound `[isHighlight]=\"expr\"` with a\n * non-literal expression, or a bound `[variant]` that cannot be statically\n * resolved) are left in place, reported as warnings and marked with a\n * `TODO: [eUI v22 migration]` HTML comment above the element.\n */\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\ninterface Edit {\n start: number;\n end: number;\n replacement: string;\n}\n\nconst ECL_LINK_ATTR = 'eclLink';\nconst IS_HIGHLIGHT = 'isHighlight';\nconst IS_NO_VISITED = 'isNoVisited';\nconst VARIANT = 'variant';\nconst HIGHLIGHT_VARIANT = 'primary-highlight';\n\nexport function migrateEclLink(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let fileCount = 0;\n\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n // Fast bail: must mention eclLink and one of the removed inputs.\n if (!original.includes(ECL_LINK_ATTR)) return;\n if (!original.includes(IS_HIGHLIGHT) && !original.includes(IS_NO_VISITED)) return;\n\n const result = path.endsWith('.html')\n ? migrateTemplate(original, path, context)\n : migrateTypeScript(original, path, context);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would migrate eclLink input(s) in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n fileCount++;\n }\n });\n\n context.logger.info(`Migrated eclLink inputs in ${fileCount} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction migrateTemplate(source: string, filePath: string, context: SchematicContext): string {\n let parsed;\n try {\n parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n } catch {\n return source;\n }\n\n const edits: Edit[] = [];\n visitNodes(parsed.nodes, source, edits, filePath, context);\n return applyEdits(source, edits);\n}\n\nfunction migrateTypeScript(source: string, filePath: string, context: SchematicContext): string {\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAssignment(node) && isTemplateProperty(node) && isComponentMetadataProperty(node)) {\n const init = unwrapExpression(node.initializer);\n if (ts.isStringLiteral(init) || ts.isNoSubstitutionTemplateLiteral(init)) {\n const start = init.getStart(sourceFile) + 1;\n const end = init.getEnd() - 1;\n const rawTemplate = source.slice(start, end);\n if (rawTemplate.includes(ECL_LINK_ATTR) && (rawTemplate.includes(IS_HIGHLIGHT) || rawTemplate.includes(IS_NO_VISITED))) {\n const migrated = migrateTemplate(rawTemplate, filePath, context);\n if (migrated !== rawTemplate) {\n edits.push({ start, end, replacement: migrated });\n }\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n return applyEdits(source, edits);\n}\n\nfunction visitNodes(nodes: TmplAstNode[], source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (hasEclLink(node)) {\n collectEclLinkEdits(node, source, edits, filePath, context);\n }\n visitNodes(node.children, source, edits, filePath, context);\n }\n }\n}\n\nfunction hasEclLink(element: TmplAstElement): boolean {\n return (\n element.attributes.some((a) => a.name === ECL_LINK_ATTR) ||\n element.inputs.some((i) => i.name === ECL_LINK_ATTR)\n );\n}\n\nfunction collectEclLinkEdits(\n element: TmplAstElement,\n source: string,\n edits: Edit[],\n filePath: string,\n context: SchematicContext,\n): void {\n // --- isNoVisited: always remove ---\n const noVisitedAttr = element.attributes.find((a) => a.name === IS_NO_VISITED);\n if (noVisitedAttr) {\n edits.push(removeAttribute(noVisitedAttr, source));\n }\n const noVisitedInput = element.inputs.find((i) => i.name === IS_NO_VISITED);\n if (noVisitedInput) {\n edits.push(removeBoundAttribute(noVisitedInput, source));\n }\n\n // --- isHighlight: convert to variant=\"primary-highlight\" ---\n const highlightAttr = element.attributes.find((a) => a.name === IS_HIGHLIGHT);\n const highlightInput = element.inputs.find((i) => i.name === IS_HIGHLIGHT);\n\n if (!highlightAttr && !highlightInput) {\n return;\n }\n\n // A bound [isHighlight]=\"expr\" where expr is not a truthy literal can't be\n // safely converted — the highlight was conditional. Warn and leave it.\n if (highlightInput && !isTruthyLiteralBinding(highlightInput, source)) {\n reportManual(\n context,\n filePath,\n element,\n source,\n edits,\n `\"[isHighlight]\" was removed. Set variant=\"${HIGHLIGHT_VARIANT}\" conditionally instead.`,\n );\n return;\n }\n\n // Resolve the variant edit first. A bound [variant]=\"...\" cannot be resolved\n // statically, so we leave the whole element untouched (including isHighlight)\n // and warn — a partial migration would be worse than none.\n const variantInput = element.inputs.find((i) => i.name === VARIANT);\n if (variantInput) {\n reportManual(\n context,\n filePath,\n element,\n source,\n edits,\n `\"isHighlight\" was removed but the bound \"[variant]\" could not be updated automatically; set it to \"${HIGHLIGHT_VARIANT}\" manually.`,\n );\n return;\n }\n\n // Safe to convert: remove the isHighlight attribute/binding...\n if (highlightAttr) {\n edits.push(removeAttribute(highlightAttr, source));\n }\n if (highlightInput) {\n edits.push(removeBoundAttribute(highlightInput, source));\n }\n\n // ...and set variant to primary-highlight.\n const variantAttr = element.attributes.find((a) => a.name === VARIANT);\n if (variantAttr) {\n // Replace the existing variant value (quoted) with primary-highlight.\n edits.push(setAttributeValue(variantAttr, source, HIGHLIGHT_VARIANT));\n } else {\n // No variant present — inject it right after the eclLink attribute.\n edits.push(injectVariantAttribute(element, source));\n }\n}\n\n// ---------------------------------------------------------------------------\n// Attribute edit helpers\n// ---------------------------------------------------------------------------\n\n/** Removes a plain text attribute including the preceding whitespace. */\nfunction removeAttribute(attr: TmplAstTextAttribute, source: string): Edit {\n let start = attr.sourceSpan.start.offset;\n const end = attr.sourceSpan.end.offset;\n start = consumeLeadingWhitespace(source, start);\n return { start, end, replacement: '' };\n}\n\n/** Removes a bound attribute `[name]=\"...\"` including the preceding whitespace. */\nfunction removeBoundAttribute(attr: TmplAstBoundAttribute, source: string): Edit {\n let start = attr.sourceSpan.start.offset;\n const end = attr.sourceSpan.end.offset;\n start = consumeLeadingWhitespace(source, start);\n return { start, end, replacement: '' };\n}\n\n/** Replaces the value of a text attribute `name=\"old\"` with a new value. */\nfunction setAttributeValue(attr: TmplAstTextAttribute, source: string, newValue: string): Edit {\n // keySpan covers the attribute name; valueSpan covers the value (without quotes).\n if (attr.valueSpan) {\n return { start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: newValue };\n }\n // Valueless attribute (e.g. `variant`) — rewrite the whole thing.\n return {\n start: attr.sourceSpan.start.offset,\n end: attr.sourceSpan.end.offset,\n replacement: `${VARIANT}=\"${newValue}\"`,\n };\n}\n\n/** Injects `variant=\"primary-highlight\"` immediately after the eclLink attribute. */\nfunction injectVariantAttribute(element: TmplAstElement, source: string): Edit {\n const eclLinkAttr =\n element.attributes.find((a) => a.name === ECL_LINK_ATTR) ??\n element.inputs.find((i) => i.name === ECL_LINK_ATTR);\n\n const anchorEnd = eclLinkAttr\n ? eclLinkAttr.sourceSpan.end.offset\n : element.startSourceSpan.start.offset + 1 + element.name.length;\n\n return { start: anchorEnd, end: anchorEnd, replacement: ` ${VARIANT}=\"${HIGHLIGHT_VARIANT}\"` };\n}\n\n/**\n * A `[isHighlight]=\"expr\"` binding is only safely convertible when expr is a\n * literal that is always truthy (`true`). Anything else (a property, a ternary,\n * `false`) is conditional and must be handled by the developer.\n */\nfunction isTruthyLiteralBinding(input: TmplAstBoundAttribute, source: string): boolean {\n const raw = readBindingExpression(input, source).trim();\n return raw === 'true';\n}\n\nfunction readBindingExpression(input: TmplAstBoundAttribute, source: string): string {\n if (input.valueSpan) {\n return source.slice(input.valueSpan.start.offset, input.valueSpan.end.offset);\n }\n return '';\n}\n\nfunction consumeLeadingWhitespace(source: string, start: number): number {\n let s = start;\n while (s > 0 && (source[s - 1] === ' ' || source[s - 1] === '\\t' || source[s - 1] === '\\n' || source[s - 1] === '\\r')) {\n s--;\n }\n return s;\n}\n\n/** Logs a warning and adds a TODO comment above the element for manual follow-up. */\nfunction reportManual(\n context: SchematicContext,\n filePath: string,\n element: TmplAstElement,\n source: string,\n edits: Edit[],\n message: string,\n): void {\n const { line } = element.startSourceSpan.start;\n context.logger.warn(`${filePath}:${line + 1} - ${message}`);\n const todo = createTodoEdit(source, element.startSourceSpan.start.offset, message);\n if (todo) edits.push(todo);\n}\n\n// ---------------------------------------------------------------------------\n// TypeScript inline-template helpers (shared conventions with sibling schematics)\n// ---------------------------------------------------------------------------\n\nfunction isTemplateProperty(node: ts.PropertyAssignment): boolean {\n const name = node.name;\n return (ts.isIdentifier(name) && name.text === 'template') || (ts.isStringLiteral(name) && name.text === 'template');\n}\n\nfunction isComponentMetadataProperty(node: ts.PropertyAssignment): boolean {\n const objectLiteral = node.parent;\n if (!ts.isObjectLiteralExpression(objectLiteral)) return false;\n const callExpression = objectLiteral.parent;\n if (!ts.isCallExpression(callExpression) || callExpression.arguments[0] !== objectLiteral) return false;\n return (\n ts.isDecorator(callExpression.parent) &&\n ts.isIdentifier(callExpression.expression) &&\n callExpression.expression.text === 'Component'\n );\n}\n\nfunction unwrapExpression(expression: ts.Expression): ts.Expression {\n let current = expression;\n while (ts.isParenthesizedExpression(current)) current = current.expression;\n return current;\n}\n\nfunction applyEdits(source: string, edits: Edit[]): string {\n const unique = deduplicateEdits(edits);\n let result = source;\n for (const edit of unique.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, edit.start) + edit.replacement + result.slice(edit.end);\n }\n return result;\n}\n\nfunction deduplicateEdits(edits: Edit[]): Edit[] {\n const seen = new Map<string, Edit>();\n for (const edit of edits) {\n const key = `${edit.start}:${edit.end}`;\n seen.set(key, edit);\n }\n return Array.from(seen.values());\n}\n\nfunction visitDir(dir: DirEntry, callback: (path: string) => void): void {\n for (const file of dir.subfiles) {\n if (file.endsWith('.d.ts')) continue;\n if (!file.endsWith('.html') && !file.endsWith('.ts')) continue;\n callback(`${dir.path}/${file}`);\n }\n for (const sub of dir.subdirs) {\n if (sub === 'node_modules' || sub === 'dist') continue;\n visitDir(dir.dir(sub), callback);\n }\n}\n",
1040
+ "sourceCode": "import { parseTemplate, TmplAstElement, TmplAstNode } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport * as ts from 'typescript';\nimport { logDryRun, logDryRunNote } from '../utils/dry-run';\n\n/**\n * Migrates the removed `ecl-page-header` element selector to `div[eclPageHeader]`.\n *\n * In v22 the `ecl-page-header` element selector was removed; the component only\n * matches `div[eclPageHeader]`. This schematic rewrites `<ecl-page-header>` to\n * `<div eclPageHeader>` (and the closing tag to `</div>`) in external `.html`\n * templates and inline `@Component` templates, preserving existing attributes\n * and content.\n */\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\ninterface Edit {\n start: number;\n end: number;\n replacement: string;\n}\n\nconst OLD_TAG = 'ecl-page-header';\nconst NEW_TAG = 'div';\nconst ATTRIBUTE = 'eclPageHeader';\n\nexport function migrateEclPageHeader(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let fileCount = 0;\n\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes(OLD_TAG)) return;\n\n const result = path.endsWith('.html') ? migrateTemplate(original) : migrateTypeScript(original, path);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would migrate ${OLD_TAG} → ${NEW_TAG}[${ATTRIBUTE}] in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n fileCount++;\n }\n });\n\n context.logger.info(`Migrated ${OLD_TAG} → ${NEW_TAG}[${ATTRIBUTE}] in ${fileCount} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction migrateTemplate(source: string): string {\n let parsed;\n try {\n parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n } catch {\n return source;\n }\n\n const edits: Edit[] = [];\n visitNodes(parsed.nodes, edits);\n return applyEdits(source, edits);\n}\n\nfunction migrateTypeScript(source: string, filePath: string): string {\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAssignment(node) && isTemplateProperty(node) && isComponentMetadataProperty(node)) {\n const init = unwrapExpression(node.initializer);\n if (ts.isStringLiteral(init) || ts.isNoSubstitutionTemplateLiteral(init)) {\n const start = init.getStart(sourceFile) + 1;\n const end = init.getEnd() - 1;\n const rawTemplate = source.slice(start, end);\n if (rawTemplate.includes(OLD_TAG)) {\n const migrated = migrateTemplate(rawTemplate);\n if (migrated !== rawTemplate) {\n edits.push({ start, end, replacement: migrated });\n }\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n return applyEdits(source, edits);\n}\n\nfunction visitNodes(nodes: TmplAstNode[], edits: Edit[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === OLD_TAG) {\n collectElementRename(node, edits);\n }\n visitNodes(node.children, edits);\n }\n }\n}\n\nfunction collectElementRename(element: TmplAstElement, edits: Edit[]): void {\n const openTagNameStart = element.startSourceSpan.start.offset + 1; // skip '<'\n const openTagNameEnd = openTagNameStart + OLD_TAG.length;\n\n const alreadyHasAttribute =\n element.attributes.some((a) => a.name === ATTRIBUTE) || element.inputs.some((i) => i.name === ATTRIBUTE);\n\n const replacement = alreadyHasAttribute ? NEW_TAG : `${NEW_TAG} ${ATTRIBUTE}`;\n edits.push({ start: openTagNameStart, end: openTagNameEnd, replacement });\n\n if (element.endSourceSpan) {\n const closeTagNameStart = element.endSourceSpan.start.offset + 2; // skip '</'\n edits.push({ start: closeTagNameStart, end: closeTagNameStart + OLD_TAG.length, replacement: NEW_TAG });\n }\n}\n\nfunction isTemplateProperty(node: ts.PropertyAssignment): boolean {\n const name = node.name;\n return (ts.isIdentifier(name) && name.text === 'template') || (ts.isStringLiteral(name) && name.text === 'template');\n}\n\nfunction isComponentMetadataProperty(node: ts.PropertyAssignment): boolean {\n const objectLiteral = node.parent;\n if (!ts.isObjectLiteralExpression(objectLiteral)) return false;\n const callExpression = objectLiteral.parent;\n if (!ts.isCallExpression(callExpression) || callExpression.arguments[0] !== objectLiteral) return false;\n return (\n ts.isDecorator(callExpression.parent) &&\n ts.isIdentifier(callExpression.expression) &&\n callExpression.expression.text === 'Component'\n );\n}\n\nfunction unwrapExpression(expression: ts.Expression): ts.Expression {\n let current = expression;\n while (ts.isParenthesizedExpression(current)) current = current.expression;\n return current;\n}\n\nfunction applyEdits(source: string, edits: Edit[]): string {\n const unique = deduplicateEdits(edits);\n let result = source;\n for (const edit of unique.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, edit.start) + edit.replacement + result.slice(edit.end);\n }\n return result;\n}\n\nfunction deduplicateEdits(edits: Edit[]): Edit[] {\n const seen = new Map<string, Edit>();\n for (const edit of edits) {\n const key = `${edit.start}:${edit.end}`;\n seen.set(key, edit);\n }\n return Array.from(seen.values());\n}\n\nfunction visitDir(dir: DirEntry, callback: (path: string) => void): void {\n for (const file of dir.subfiles) {\n if (file.endsWith('.d.ts')) continue;\n if (!file.endsWith('.html') && !file.endsWith('.ts')) continue;\n callback(`${dir.path}/${file}`);\n }\n for (const sub of dir.subdirs) {\n if (sub === 'node_modules' || sub === 'dist') continue;\n visitDir(dir.dir(sub), callback);\n }\n}\n",
1041
1041
  "displayName": "Edit",
1042
1042
  "properties": [
1043
1043
  {
@@ -1049,7 +1049,7 @@
1049
1049
  "indexKey": "",
1050
1050
  "optional": false,
1051
1051
  "description": "",
1052
- "line": 33,
1052
+ "line": 23,
1053
1053
  "rawdescription": "\n"
1054
1054
  },
1055
1055
  {
@@ -1061,7 +1061,7 @@
1061
1061
  "indexKey": "",
1062
1062
  "optional": false,
1063
1063
  "description": "",
1064
- "line": 34,
1064
+ "line": 24,
1065
1065
  "rawdescription": "\n"
1066
1066
  },
1067
1067
  {
@@ -1073,7 +1073,7 @@
1073
1073
  "indexKey": "",
1074
1074
  "optional": false,
1075
1075
  "description": "",
1076
- "line": 32,
1076
+ "line": 22,
1077
1077
  "rawdescription": "\n"
1078
1078
  }
1079
1079
  ],
@@ -1091,12 +1091,12 @@
1091
1091
  },
1092
1092
  {
1093
1093
  "name": "Edit",
1094
- "id": "interface-Edit-ba2913a48a24293b4c7a11f3a7355ae733abcd99b6625fa243ebd78b3240c95743f9449aa35b04ec12e439e1d54ec8bf0d78c0c7ed9d2580e663f0f08cf9eb5b-5",
1095
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
1094
+ "id": "interface-Edit-d273b5462287e58c647e750a2b9d5c1b39b8fde0ee7ee3013262cc411acc2e284f9cc1465c0c07e04a7e14ec416956ca80650e192aa390a2be598e7cb1f5b5d5-5",
1095
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
1096
1096
  "deprecated": false,
1097
1097
  "deprecationMessage": "",
1098
1098
  "type": "interface",
1099
- "sourceCode": "import { parseTemplate, TmplAstElement, TmplAstNode } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport * as ts from 'typescript';\nimport { logDryRun, logDryRunNote } from '../utils/dry-run';\n\n/**\n * Migrates the removed `ecl-page-header` element selector to `div[eclPageHeader]`.\n *\n * In v22 the `ecl-page-header` element selector was removed; the component only\n * matches `div[eclPageHeader]`. This schematic rewrites `<ecl-page-header>` to\n * `<div eclPageHeader>` (and the closing tag to `</div>`) in external `.html`\n * templates and inline `@Component` templates, preserving existing attributes\n * and content.\n */\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\ninterface Edit {\n start: number;\n end: number;\n replacement: string;\n}\n\nconst OLD_TAG = 'ecl-page-header';\nconst NEW_TAG = 'div';\nconst ATTRIBUTE = 'eclPageHeader';\n\nexport function migrateEclPageHeader(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let fileCount = 0;\n\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes(OLD_TAG)) return;\n\n const result = path.endsWith('.html') ? migrateTemplate(original) : migrateTypeScript(original, path);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would migrate ${OLD_TAG} → ${NEW_TAG}[${ATTRIBUTE}] in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n fileCount++;\n }\n });\n\n context.logger.info(`Migrated ${OLD_TAG} → ${NEW_TAG}[${ATTRIBUTE}] in ${fileCount} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction migrateTemplate(source: string): string {\n let parsed;\n try {\n parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n } catch {\n return source;\n }\n\n const edits: Edit[] = [];\n visitNodes(parsed.nodes, edits);\n return applyEdits(source, edits);\n}\n\nfunction migrateTypeScript(source: string, filePath: string): string {\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAssignment(node) && isTemplateProperty(node) && isComponentMetadataProperty(node)) {\n const init = unwrapExpression(node.initializer);\n if (ts.isStringLiteral(init) || ts.isNoSubstitutionTemplateLiteral(init)) {\n const start = init.getStart(sourceFile) + 1;\n const end = init.getEnd() - 1;\n const rawTemplate = source.slice(start, end);\n if (rawTemplate.includes(OLD_TAG)) {\n const migrated = migrateTemplate(rawTemplate);\n if (migrated !== rawTemplate) {\n edits.push({ start, end, replacement: migrated });\n }\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n return applyEdits(source, edits);\n}\n\nfunction visitNodes(nodes: TmplAstNode[], edits: Edit[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === OLD_TAG) {\n collectElementRename(node, edits);\n }\n visitNodes(node.children, edits);\n }\n }\n}\n\nfunction collectElementRename(element: TmplAstElement, edits: Edit[]): void {\n const openTagNameStart = element.startSourceSpan.start.offset + 1; // skip '<'\n const openTagNameEnd = openTagNameStart + OLD_TAG.length;\n\n const alreadyHasAttribute =\n element.attributes.some((a) => a.name === ATTRIBUTE) || element.inputs.some((i) => i.name === ATTRIBUTE);\n\n const replacement = alreadyHasAttribute ? NEW_TAG : `${NEW_TAG} ${ATTRIBUTE}`;\n edits.push({ start: openTagNameStart, end: openTagNameEnd, replacement });\n\n if (element.endSourceSpan) {\n const closeTagNameStart = element.endSourceSpan.start.offset + 2; // skip '</'\n edits.push({ start: closeTagNameStart, end: closeTagNameStart + OLD_TAG.length, replacement: NEW_TAG });\n }\n}\n\nfunction isTemplateProperty(node: ts.PropertyAssignment): boolean {\n const name = node.name;\n return (ts.isIdentifier(name) && name.text === 'template') || (ts.isStringLiteral(name) && name.text === 'template');\n}\n\nfunction isComponentMetadataProperty(node: ts.PropertyAssignment): boolean {\n const objectLiteral = node.parent;\n if (!ts.isObjectLiteralExpression(objectLiteral)) return false;\n const callExpression = objectLiteral.parent;\n if (!ts.isCallExpression(callExpression) || callExpression.arguments[0] !== objectLiteral) return false;\n return (\n ts.isDecorator(callExpression.parent) &&\n ts.isIdentifier(callExpression.expression) &&\n callExpression.expression.text === 'Component'\n );\n}\n\nfunction unwrapExpression(expression: ts.Expression): ts.Expression {\n let current = expression;\n while (ts.isParenthesizedExpression(current)) current = current.expression;\n return current;\n}\n\nfunction applyEdits(source: string, edits: Edit[]): string {\n const unique = deduplicateEdits(edits);\n let result = source;\n for (const edit of unique.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, edit.start) + edit.replacement + result.slice(edit.end);\n }\n return result;\n}\n\nfunction deduplicateEdits(edits: Edit[]): Edit[] {\n const seen = new Map<string, Edit>();\n for (const edit of edits) {\n const key = `${edit.start}:${edit.end}`;\n seen.set(key, edit);\n }\n return Array.from(seen.values());\n}\n\nfunction visitDir(dir: DirEntry, callback: (path: string) => void): void {\n for (const file of dir.subfiles) {\n if (file.endsWith('.d.ts')) continue;\n if (!file.endsWith('.html') && !file.endsWith('.ts')) continue;\n callback(`${dir.path}/${file}`);\n }\n for (const sub of dir.subdirs) {\n if (sub === 'node_modules' || sub === 'dist') continue;\n visitDir(dir.dir(sub), callback);\n }\n}\n",
1099
+ "sourceCode": "import { parseTemplate, TmplAstBoundAttribute, TmplAstElement, TmplAstNode, TmplAstTextAttribute } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport * as ts from 'typescript';\nimport { logDryRun, logDryRunNote } from '../utils/dry-run';\nimport { createTodoEdit } from '../utils/todo-comment';\n\n/**\n * Migrates removed `eclLink` (EclLinkDirective) inputs for ECL v21 → v22.\n *\n * Two inputs were removed:\n * - `isHighlight`: only the `primary` variant could be highlighted, so\n * `eclLink variant=\"primary\" isHighlight` becomes\n * `eclLink variant=\"primary-highlight\"`. The `isHighlight` attribute is\n * removed and the `variant` value is set to `primary-highlight`.\n * - `isNoVisited`: had no effect; removed with no replacement.\n *\n * Only elements that carry the `eclLink` attribute are touched. The schematic\n * rewrites external `.html` templates and inline `@Component` templates.\n *\n * Cases that cannot be rewritten safely (a bound `[isHighlight]=\"expr\"` with a\n * non-literal expression, or a bound `[variant]` that cannot be statically\n * resolved) are left in place, reported as warnings and marked with a\n * `TODO: [eUI v22 migration]` HTML comment above the element.\n */\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\ninterface Edit {\n start: number;\n end: number;\n replacement: string;\n}\n\nconst ECL_LINK_ATTR = 'eclLink';\nconst IS_HIGHLIGHT = 'isHighlight';\nconst IS_NO_VISITED = 'isNoVisited';\nconst VARIANT = 'variant';\nconst HIGHLIGHT_VARIANT = 'primary-highlight';\n\nexport function migrateEclLink(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let fileCount = 0;\n\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n // Fast bail: must mention eclLink and one of the removed inputs.\n if (!original.includes(ECL_LINK_ATTR)) return;\n if (!original.includes(IS_HIGHLIGHT) && !original.includes(IS_NO_VISITED)) return;\n\n const result = path.endsWith('.html')\n ? migrateTemplate(original, path, context)\n : migrateTypeScript(original, path, context);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would migrate eclLink input(s) in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n fileCount++;\n }\n });\n\n context.logger.info(`Migrated eclLink inputs in ${fileCount} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction migrateTemplate(source: string, filePath: string, context: SchematicContext): string {\n let parsed;\n try {\n parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n } catch {\n return source;\n }\n\n const edits: Edit[] = [];\n visitNodes(parsed.nodes, source, edits, filePath, context);\n return applyEdits(source, edits);\n}\n\nfunction migrateTypeScript(source: string, filePath: string, context: SchematicContext): string {\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAssignment(node) && isTemplateProperty(node) && isComponentMetadataProperty(node)) {\n const init = unwrapExpression(node.initializer);\n if (ts.isStringLiteral(init) || ts.isNoSubstitutionTemplateLiteral(init)) {\n const start = init.getStart(sourceFile) + 1;\n const end = init.getEnd() - 1;\n const rawTemplate = source.slice(start, end);\n if (rawTemplate.includes(ECL_LINK_ATTR) && (rawTemplate.includes(IS_HIGHLIGHT) || rawTemplate.includes(IS_NO_VISITED))) {\n const migrated = migrateTemplate(rawTemplate, filePath, context);\n if (migrated !== rawTemplate) {\n edits.push({ start, end, replacement: migrated });\n }\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n return applyEdits(source, edits);\n}\n\nfunction visitNodes(nodes: TmplAstNode[], source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (hasEclLink(node)) {\n collectEclLinkEdits(node, source, edits, filePath, context);\n }\n visitNodes(node.children, source, edits, filePath, context);\n }\n }\n}\n\nfunction hasEclLink(element: TmplAstElement): boolean {\n return (\n element.attributes.some((a) => a.name === ECL_LINK_ATTR) ||\n element.inputs.some((i) => i.name === ECL_LINK_ATTR)\n );\n}\n\nfunction collectEclLinkEdits(\n element: TmplAstElement,\n source: string,\n edits: Edit[],\n filePath: string,\n context: SchematicContext,\n): void {\n // --- isNoVisited: always remove ---\n const noVisitedAttr = element.attributes.find((a) => a.name === IS_NO_VISITED);\n if (noVisitedAttr) {\n edits.push(removeAttribute(noVisitedAttr, source));\n }\n const noVisitedInput = element.inputs.find((i) => i.name === IS_NO_VISITED);\n if (noVisitedInput) {\n edits.push(removeBoundAttribute(noVisitedInput, source));\n }\n\n // --- isHighlight: convert to variant=\"primary-highlight\" ---\n const highlightAttr = element.attributes.find((a) => a.name === IS_HIGHLIGHT);\n const highlightInput = element.inputs.find((i) => i.name === IS_HIGHLIGHT);\n\n if (!highlightAttr && !highlightInput) {\n return;\n }\n\n // A bound [isHighlight]=\"expr\" where expr is not a truthy literal can't be\n // safely converted — the highlight was conditional. Warn and leave it.\n if (highlightInput && !isTruthyLiteralBinding(highlightInput, source)) {\n reportManual(\n context,\n filePath,\n element,\n source,\n edits,\n `\"[isHighlight]\" was removed. Set variant=\"${HIGHLIGHT_VARIANT}\" conditionally instead.`,\n );\n return;\n }\n\n // Resolve the variant edit first. A bound [variant]=\"...\" cannot be resolved\n // statically, so we leave the whole element untouched (including isHighlight)\n // and warn — a partial migration would be worse than none.\n const variantInput = element.inputs.find((i) => i.name === VARIANT);\n if (variantInput) {\n reportManual(\n context,\n filePath,\n element,\n source,\n edits,\n `\"isHighlight\" was removed but the bound \"[variant]\" could not be updated automatically; set it to \"${HIGHLIGHT_VARIANT}\" manually.`,\n );\n return;\n }\n\n // Safe to convert: remove the isHighlight attribute/binding...\n if (highlightAttr) {\n edits.push(removeAttribute(highlightAttr, source));\n }\n if (highlightInput) {\n edits.push(removeBoundAttribute(highlightInput, source));\n }\n\n // ...and set variant to primary-highlight.\n const variantAttr = element.attributes.find((a) => a.name === VARIANT);\n if (variantAttr) {\n // Replace the existing variant value (quoted) with primary-highlight.\n edits.push(setAttributeValue(variantAttr, source, HIGHLIGHT_VARIANT));\n } else {\n // No variant present — inject it right after the eclLink attribute.\n edits.push(injectVariantAttribute(element, source));\n }\n}\n\n// ---------------------------------------------------------------------------\n// Attribute edit helpers\n// ---------------------------------------------------------------------------\n\n/** Removes a plain text attribute including the preceding whitespace. */\nfunction removeAttribute(attr: TmplAstTextAttribute, source: string): Edit {\n let start = attr.sourceSpan.start.offset;\n const end = attr.sourceSpan.end.offset;\n start = consumeLeadingWhitespace(source, start);\n return { start, end, replacement: '' };\n}\n\n/** Removes a bound attribute `[name]=\"...\"` including the preceding whitespace. */\nfunction removeBoundAttribute(attr: TmplAstBoundAttribute, source: string): Edit {\n let start = attr.sourceSpan.start.offset;\n const end = attr.sourceSpan.end.offset;\n start = consumeLeadingWhitespace(source, start);\n return { start, end, replacement: '' };\n}\n\n/** Replaces the value of a text attribute `name=\"old\"` with a new value. */\nfunction setAttributeValue(attr: TmplAstTextAttribute, source: string, newValue: string): Edit {\n // keySpan covers the attribute name; valueSpan covers the value (without quotes).\n if (attr.valueSpan) {\n return { start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: newValue };\n }\n // Valueless attribute (e.g. `variant`) — rewrite the whole thing.\n return {\n start: attr.sourceSpan.start.offset,\n end: attr.sourceSpan.end.offset,\n replacement: `${VARIANT}=\"${newValue}\"`,\n };\n}\n\n/** Injects `variant=\"primary-highlight\"` immediately after the eclLink attribute. */\nfunction injectVariantAttribute(element: TmplAstElement, source: string): Edit {\n const eclLinkAttr =\n element.attributes.find((a) => a.name === ECL_LINK_ATTR) ??\n element.inputs.find((i) => i.name === ECL_LINK_ATTR);\n\n const anchorEnd = eclLinkAttr\n ? eclLinkAttr.sourceSpan.end.offset\n : element.startSourceSpan.start.offset + 1 + element.name.length;\n\n return { start: anchorEnd, end: anchorEnd, replacement: ` ${VARIANT}=\"${HIGHLIGHT_VARIANT}\"` };\n}\n\n/**\n * A `[isHighlight]=\"expr\"` binding is only safely convertible when expr is a\n * literal that is always truthy (`true`). Anything else (a property, a ternary,\n * `false`) is conditional and must be handled by the developer.\n */\nfunction isTruthyLiteralBinding(input: TmplAstBoundAttribute, source: string): boolean {\n const raw = readBindingExpression(input, source).trim();\n return raw === 'true';\n}\n\nfunction readBindingExpression(input: TmplAstBoundAttribute, source: string): string {\n if (input.valueSpan) {\n return source.slice(input.valueSpan.start.offset, input.valueSpan.end.offset);\n }\n return '';\n}\n\nfunction consumeLeadingWhitespace(source: string, start: number): number {\n let s = start;\n while (s > 0 && (source[s - 1] === ' ' || source[s - 1] === '\\t' || source[s - 1] === '\\n' || source[s - 1] === '\\r')) {\n s--;\n }\n return s;\n}\n\n/** Logs a warning and adds a TODO comment above the element for manual follow-up. */\nfunction reportManual(\n context: SchematicContext,\n filePath: string,\n element: TmplAstElement,\n source: string,\n edits: Edit[],\n message: string,\n): void {\n const { line } = element.startSourceSpan.start;\n context.logger.warn(`${filePath}:${line + 1} - ${message}`);\n const todo = createTodoEdit(source, element.startSourceSpan.start.offset, message);\n if (todo) edits.push(todo);\n}\n\n// ---------------------------------------------------------------------------\n// TypeScript inline-template helpers (shared conventions with sibling schematics)\n// ---------------------------------------------------------------------------\n\nfunction isTemplateProperty(node: ts.PropertyAssignment): boolean {\n const name = node.name;\n return (ts.isIdentifier(name) && name.text === 'template') || (ts.isStringLiteral(name) && name.text === 'template');\n}\n\nfunction isComponentMetadataProperty(node: ts.PropertyAssignment): boolean {\n const objectLiteral = node.parent;\n if (!ts.isObjectLiteralExpression(objectLiteral)) return false;\n const callExpression = objectLiteral.parent;\n if (!ts.isCallExpression(callExpression) || callExpression.arguments[0] !== objectLiteral) return false;\n return (\n ts.isDecorator(callExpression.parent) &&\n ts.isIdentifier(callExpression.expression) &&\n callExpression.expression.text === 'Component'\n );\n}\n\nfunction unwrapExpression(expression: ts.Expression): ts.Expression {\n let current = expression;\n while (ts.isParenthesizedExpression(current)) current = current.expression;\n return current;\n}\n\nfunction applyEdits(source: string, edits: Edit[]): string {\n const unique = deduplicateEdits(edits);\n let result = source;\n for (const edit of unique.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, edit.start) + edit.replacement + result.slice(edit.end);\n }\n return result;\n}\n\nfunction deduplicateEdits(edits: Edit[]): Edit[] {\n const seen = new Map<string, Edit>();\n for (const edit of edits) {\n const key = `${edit.start}:${edit.end}`;\n seen.set(key, edit);\n }\n return Array.from(seen.values());\n}\n\nfunction visitDir(dir: DirEntry, callback: (path: string) => void): void {\n for (const file of dir.subfiles) {\n if (file.endsWith('.d.ts')) continue;\n if (!file.endsWith('.html') && !file.endsWith('.ts')) continue;\n callback(`${dir.path}/${file}`);\n }\n for (const sub of dir.subdirs) {\n if (sub === 'node_modules' || sub === 'dist') continue;\n visitDir(dir.dir(sub), callback);\n }\n}\n",
1100
1100
  "displayName": "Edit",
1101
1101
  "properties": [
1102
1102
  {
@@ -1108,7 +1108,7 @@
1108
1108
  "indexKey": "",
1109
1109
  "optional": false,
1110
1110
  "description": "",
1111
- "line": 23,
1111
+ "line": 33,
1112
1112
  "rawdescription": "\n"
1113
1113
  },
1114
1114
  {
@@ -1120,7 +1120,7 @@
1120
1120
  "indexKey": "",
1121
1121
  "optional": false,
1122
1122
  "description": "",
1123
- "line": 24,
1123
+ "line": 34,
1124
1124
  "rawdescription": "\n"
1125
1125
  },
1126
1126
  {
@@ -1132,7 +1132,7 @@
1132
1132
  "indexKey": "",
1133
1133
  "optional": false,
1134
1134
  "description": "",
1135
- "line": 22,
1135
+ "line": 32,
1136
1136
  "rawdescription": "\n"
1137
1137
  }
1138
1138
  ],
@@ -3525,12 +3525,12 @@
3525
3525
  },
3526
3526
  {
3527
3527
  "name": "Schema",
3528
- "id": "interface-Schema-d273b5462287e58c647e750a2b9d5c1b39b8fde0ee7ee3013262cc411acc2e284f9cc1465c0c07e04a7e14ec416956ca80650e192aa390a2be598e7cb1f5b5d5-8",
3529
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
3528
+ "id": "interface-Schema-ba2913a48a24293b4c7a11f3a7355ae733abcd99b6625fa243ebd78b3240c95743f9449aa35b04ec12e439e1d54ec8bf0d78c0c7ed9d2580e663f0f08cf9eb5b-8",
3529
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
3530
3530
  "deprecated": false,
3531
3531
  "deprecationMessage": "",
3532
3532
  "type": "interface",
3533
- "sourceCode": "import { parseTemplate, TmplAstBoundAttribute, TmplAstElement, TmplAstNode, TmplAstTextAttribute } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport * as ts from 'typescript';\nimport { logDryRun, logDryRunNote } from '../utils/dry-run';\nimport { createTodoEdit } from '../utils/todo-comment';\n\n/**\n * Migrates removed `eclLink` (EclLinkDirective) inputs for ECL v21 → v22.\n *\n * Two inputs were removed:\n * - `isHighlight`: only the `primary` variant could be highlighted, so\n * `eclLink variant=\"primary\" isHighlight` becomes\n * `eclLink variant=\"primary-highlight\"`. The `isHighlight` attribute is\n * removed and the `variant` value is set to `primary-highlight`.\n * - `isNoVisited`: had no effect; removed with no replacement.\n *\n * Only elements that carry the `eclLink` attribute are touched. The schematic\n * rewrites external `.html` templates and inline `@Component` templates.\n *\n * Cases that cannot be rewritten safely (a bound `[isHighlight]=\"expr\"` with a\n * non-literal expression, or a bound `[variant]` that cannot be statically\n * resolved) are left in place, reported as warnings and marked with a\n * `TODO: [eUI v22 migration]` HTML comment above the element.\n */\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\ninterface Edit {\n start: number;\n end: number;\n replacement: string;\n}\n\nconst ECL_LINK_ATTR = 'eclLink';\nconst IS_HIGHLIGHT = 'isHighlight';\nconst IS_NO_VISITED = 'isNoVisited';\nconst VARIANT = 'variant';\nconst HIGHLIGHT_VARIANT = 'primary-highlight';\n\nexport function migrateEclLink(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let fileCount = 0;\n\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n // Fast bail: must mention eclLink and one of the removed inputs.\n if (!original.includes(ECL_LINK_ATTR)) return;\n if (!original.includes(IS_HIGHLIGHT) && !original.includes(IS_NO_VISITED)) return;\n\n const result = path.endsWith('.html')\n ? migrateTemplate(original, path, context)\n : migrateTypeScript(original, path, context);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would migrate eclLink input(s) in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n fileCount++;\n }\n });\n\n context.logger.info(`Migrated eclLink inputs in ${fileCount} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction migrateTemplate(source: string, filePath: string, context: SchematicContext): string {\n let parsed;\n try {\n parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n } catch {\n return source;\n }\n\n const edits: Edit[] = [];\n visitNodes(parsed.nodes, source, edits, filePath, context);\n return applyEdits(source, edits);\n}\n\nfunction migrateTypeScript(source: string, filePath: string, context: SchematicContext): string {\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAssignment(node) && isTemplateProperty(node) && isComponentMetadataProperty(node)) {\n const init = unwrapExpression(node.initializer);\n if (ts.isStringLiteral(init) || ts.isNoSubstitutionTemplateLiteral(init)) {\n const start = init.getStart(sourceFile) + 1;\n const end = init.getEnd() - 1;\n const rawTemplate = source.slice(start, end);\n if (rawTemplate.includes(ECL_LINK_ATTR) && (rawTemplate.includes(IS_HIGHLIGHT) || rawTemplate.includes(IS_NO_VISITED))) {\n const migrated = migrateTemplate(rawTemplate, filePath, context);\n if (migrated !== rawTemplate) {\n edits.push({ start, end, replacement: migrated });\n }\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n return applyEdits(source, edits);\n}\n\nfunction visitNodes(nodes: TmplAstNode[], source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (hasEclLink(node)) {\n collectEclLinkEdits(node, source, edits, filePath, context);\n }\n visitNodes(node.children, source, edits, filePath, context);\n }\n }\n}\n\nfunction hasEclLink(element: TmplAstElement): boolean {\n return (\n element.attributes.some((a) => a.name === ECL_LINK_ATTR) ||\n element.inputs.some((i) => i.name === ECL_LINK_ATTR)\n );\n}\n\nfunction collectEclLinkEdits(\n element: TmplAstElement,\n source: string,\n edits: Edit[],\n filePath: string,\n context: SchematicContext,\n): void {\n // --- isNoVisited: always remove ---\n const noVisitedAttr = element.attributes.find((a) => a.name === IS_NO_VISITED);\n if (noVisitedAttr) {\n edits.push(removeAttribute(noVisitedAttr, source));\n }\n const noVisitedInput = element.inputs.find((i) => i.name === IS_NO_VISITED);\n if (noVisitedInput) {\n edits.push(removeBoundAttribute(noVisitedInput, source));\n }\n\n // --- isHighlight: convert to variant=\"primary-highlight\" ---\n const highlightAttr = element.attributes.find((a) => a.name === IS_HIGHLIGHT);\n const highlightInput = element.inputs.find((i) => i.name === IS_HIGHLIGHT);\n\n if (!highlightAttr && !highlightInput) {\n return;\n }\n\n // A bound [isHighlight]=\"expr\" where expr is not a truthy literal can't be\n // safely converted — the highlight was conditional. Warn and leave it.\n if (highlightInput && !isTruthyLiteralBinding(highlightInput, source)) {\n reportManual(\n context,\n filePath,\n element,\n source,\n edits,\n `\"[isHighlight]\" was removed. Set variant=\"${HIGHLIGHT_VARIANT}\" conditionally instead.`,\n );\n return;\n }\n\n // Resolve the variant edit first. A bound [variant]=\"...\" cannot be resolved\n // statically, so we leave the whole element untouched (including isHighlight)\n // and warn — a partial migration would be worse than none.\n const variantInput = element.inputs.find((i) => i.name === VARIANT);\n if (variantInput) {\n reportManual(\n context,\n filePath,\n element,\n source,\n edits,\n `\"isHighlight\" was removed but the bound \"[variant]\" could not be updated automatically; set it to \"${HIGHLIGHT_VARIANT}\" manually.`,\n );\n return;\n }\n\n // Safe to convert: remove the isHighlight attribute/binding...\n if (highlightAttr) {\n edits.push(removeAttribute(highlightAttr, source));\n }\n if (highlightInput) {\n edits.push(removeBoundAttribute(highlightInput, source));\n }\n\n // ...and set variant to primary-highlight.\n const variantAttr = element.attributes.find((a) => a.name === VARIANT);\n if (variantAttr) {\n // Replace the existing variant value (quoted) with primary-highlight.\n edits.push(setAttributeValue(variantAttr, source, HIGHLIGHT_VARIANT));\n } else {\n // No variant present — inject it right after the eclLink attribute.\n edits.push(injectVariantAttribute(element, source));\n }\n}\n\n// ---------------------------------------------------------------------------\n// Attribute edit helpers\n// ---------------------------------------------------------------------------\n\n/** Removes a plain text attribute including the preceding whitespace. */\nfunction removeAttribute(attr: TmplAstTextAttribute, source: string): Edit {\n let start = attr.sourceSpan.start.offset;\n const end = attr.sourceSpan.end.offset;\n start = consumeLeadingWhitespace(source, start);\n return { start, end, replacement: '' };\n}\n\n/** Removes a bound attribute `[name]=\"...\"` including the preceding whitespace. */\nfunction removeBoundAttribute(attr: TmplAstBoundAttribute, source: string): Edit {\n let start = attr.sourceSpan.start.offset;\n const end = attr.sourceSpan.end.offset;\n start = consumeLeadingWhitespace(source, start);\n return { start, end, replacement: '' };\n}\n\n/** Replaces the value of a text attribute `name=\"old\"` with a new value. */\nfunction setAttributeValue(attr: TmplAstTextAttribute, source: string, newValue: string): Edit {\n // keySpan covers the attribute name; valueSpan covers the value (without quotes).\n if (attr.valueSpan) {\n return { start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: newValue };\n }\n // Valueless attribute (e.g. `variant`) — rewrite the whole thing.\n return {\n start: attr.sourceSpan.start.offset,\n end: attr.sourceSpan.end.offset,\n replacement: `${VARIANT}=\"${newValue}\"`,\n };\n}\n\n/** Injects `variant=\"primary-highlight\"` immediately after the eclLink attribute. */\nfunction injectVariantAttribute(element: TmplAstElement, source: string): Edit {\n const eclLinkAttr =\n element.attributes.find((a) => a.name === ECL_LINK_ATTR) ??\n element.inputs.find((i) => i.name === ECL_LINK_ATTR);\n\n const anchorEnd = eclLinkAttr\n ? eclLinkAttr.sourceSpan.end.offset\n : element.startSourceSpan.start.offset + 1 + element.name.length;\n\n return { start: anchorEnd, end: anchorEnd, replacement: ` ${VARIANT}=\"${HIGHLIGHT_VARIANT}\"` };\n}\n\n/**\n * A `[isHighlight]=\"expr\"` binding is only safely convertible when expr is a\n * literal that is always truthy (`true`). Anything else (a property, a ternary,\n * `false`) is conditional and must be handled by the developer.\n */\nfunction isTruthyLiteralBinding(input: TmplAstBoundAttribute, source: string): boolean {\n const raw = readBindingExpression(input, source).trim();\n return raw === 'true';\n}\n\nfunction readBindingExpression(input: TmplAstBoundAttribute, source: string): string {\n if (input.valueSpan) {\n return source.slice(input.valueSpan.start.offset, input.valueSpan.end.offset);\n }\n return '';\n}\n\nfunction consumeLeadingWhitespace(source: string, start: number): number {\n let s = start;\n while (s > 0 && (source[s - 1] === ' ' || source[s - 1] === '\\t' || source[s - 1] === '\\n' || source[s - 1] === '\\r')) {\n s--;\n }\n return s;\n}\n\n/** Logs a warning and adds a TODO comment above the element for manual follow-up. */\nfunction reportManual(\n context: SchematicContext,\n filePath: string,\n element: TmplAstElement,\n source: string,\n edits: Edit[],\n message: string,\n): void {\n const { line } = element.startSourceSpan.start;\n context.logger.warn(`${filePath}:${line + 1} - ${message}`);\n const todo = createTodoEdit(source, element.startSourceSpan.start.offset, message);\n if (todo) edits.push(todo);\n}\n\n// ---------------------------------------------------------------------------\n// TypeScript inline-template helpers (shared conventions with sibling schematics)\n// ---------------------------------------------------------------------------\n\nfunction isTemplateProperty(node: ts.PropertyAssignment): boolean {\n const name = node.name;\n return (ts.isIdentifier(name) && name.text === 'template') || (ts.isStringLiteral(name) && name.text === 'template');\n}\n\nfunction isComponentMetadataProperty(node: ts.PropertyAssignment): boolean {\n const objectLiteral = node.parent;\n if (!ts.isObjectLiteralExpression(objectLiteral)) return false;\n const callExpression = objectLiteral.parent;\n if (!ts.isCallExpression(callExpression) || callExpression.arguments[0] !== objectLiteral) return false;\n return (\n ts.isDecorator(callExpression.parent) &&\n ts.isIdentifier(callExpression.expression) &&\n callExpression.expression.text === 'Component'\n );\n}\n\nfunction unwrapExpression(expression: ts.Expression): ts.Expression {\n let current = expression;\n while (ts.isParenthesizedExpression(current)) current = current.expression;\n return current;\n}\n\nfunction applyEdits(source: string, edits: Edit[]): string {\n const unique = deduplicateEdits(edits);\n let result = source;\n for (const edit of unique.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, edit.start) + edit.replacement + result.slice(edit.end);\n }\n return result;\n}\n\nfunction deduplicateEdits(edits: Edit[]): Edit[] {\n const seen = new Map<string, Edit>();\n for (const edit of edits) {\n const key = `${edit.start}:${edit.end}`;\n seen.set(key, edit);\n }\n return Array.from(seen.values());\n}\n\nfunction visitDir(dir: DirEntry, callback: (path: string) => void): void {\n for (const file of dir.subfiles) {\n if (file.endsWith('.d.ts')) continue;\n if (!file.endsWith('.html') && !file.endsWith('.ts')) continue;\n callback(`${dir.path}/${file}`);\n }\n for (const sub of dir.subdirs) {\n if (sub === 'node_modules' || sub === 'dist') continue;\n visitDir(dir.dir(sub), callback);\n }\n}\n",
3533
+ "sourceCode": "import { parseTemplate, TmplAstElement, TmplAstNode } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport * as ts from 'typescript';\nimport { logDryRun, logDryRunNote } from '../utils/dry-run';\n\n/**\n * Migrates the removed `ecl-page-header` element selector to `div[eclPageHeader]`.\n *\n * In v22 the `ecl-page-header` element selector was removed; the component only\n * matches `div[eclPageHeader]`. This schematic rewrites `<ecl-page-header>` to\n * `<div eclPageHeader>` (and the closing tag to `</div>`) in external `.html`\n * templates and inline `@Component` templates, preserving existing attributes\n * and content.\n */\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\ninterface Edit {\n start: number;\n end: number;\n replacement: string;\n}\n\nconst OLD_TAG = 'ecl-page-header';\nconst NEW_TAG = 'div';\nconst ATTRIBUTE = 'eclPageHeader';\n\nexport function migrateEclPageHeader(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let fileCount = 0;\n\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes(OLD_TAG)) return;\n\n const result = path.endsWith('.html') ? migrateTemplate(original) : migrateTypeScript(original, path);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would migrate ${OLD_TAG} → ${NEW_TAG}[${ATTRIBUTE}] in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n fileCount++;\n }\n });\n\n context.logger.info(`Migrated ${OLD_TAG} → ${NEW_TAG}[${ATTRIBUTE}] in ${fileCount} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction migrateTemplate(source: string): string {\n let parsed;\n try {\n parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n } catch {\n return source;\n }\n\n const edits: Edit[] = [];\n visitNodes(parsed.nodes, edits);\n return applyEdits(source, edits);\n}\n\nfunction migrateTypeScript(source: string, filePath: string): string {\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAssignment(node) && isTemplateProperty(node) && isComponentMetadataProperty(node)) {\n const init = unwrapExpression(node.initializer);\n if (ts.isStringLiteral(init) || ts.isNoSubstitutionTemplateLiteral(init)) {\n const start = init.getStart(sourceFile) + 1;\n const end = init.getEnd() - 1;\n const rawTemplate = source.slice(start, end);\n if (rawTemplate.includes(OLD_TAG)) {\n const migrated = migrateTemplate(rawTemplate);\n if (migrated !== rawTemplate) {\n edits.push({ start, end, replacement: migrated });\n }\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n return applyEdits(source, edits);\n}\n\nfunction visitNodes(nodes: TmplAstNode[], edits: Edit[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === OLD_TAG) {\n collectElementRename(node, edits);\n }\n visitNodes(node.children, edits);\n }\n }\n}\n\nfunction collectElementRename(element: TmplAstElement, edits: Edit[]): void {\n const openTagNameStart = element.startSourceSpan.start.offset + 1; // skip '<'\n const openTagNameEnd = openTagNameStart + OLD_TAG.length;\n\n const alreadyHasAttribute =\n element.attributes.some((a) => a.name === ATTRIBUTE) || element.inputs.some((i) => i.name === ATTRIBUTE);\n\n const replacement = alreadyHasAttribute ? NEW_TAG : `${NEW_TAG} ${ATTRIBUTE}`;\n edits.push({ start: openTagNameStart, end: openTagNameEnd, replacement });\n\n if (element.endSourceSpan) {\n const closeTagNameStart = element.endSourceSpan.start.offset + 2; // skip '</'\n edits.push({ start: closeTagNameStart, end: closeTagNameStart + OLD_TAG.length, replacement: NEW_TAG });\n }\n}\n\nfunction isTemplateProperty(node: ts.PropertyAssignment): boolean {\n const name = node.name;\n return (ts.isIdentifier(name) && name.text === 'template') || (ts.isStringLiteral(name) && name.text === 'template');\n}\n\nfunction isComponentMetadataProperty(node: ts.PropertyAssignment): boolean {\n const objectLiteral = node.parent;\n if (!ts.isObjectLiteralExpression(objectLiteral)) return false;\n const callExpression = objectLiteral.parent;\n if (!ts.isCallExpression(callExpression) || callExpression.arguments[0] !== objectLiteral) return false;\n return (\n ts.isDecorator(callExpression.parent) &&\n ts.isIdentifier(callExpression.expression) &&\n callExpression.expression.text === 'Component'\n );\n}\n\nfunction unwrapExpression(expression: ts.Expression): ts.Expression {\n let current = expression;\n while (ts.isParenthesizedExpression(current)) current = current.expression;\n return current;\n}\n\nfunction applyEdits(source: string, edits: Edit[]): string {\n const unique = deduplicateEdits(edits);\n let result = source;\n for (const edit of unique.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, edit.start) + edit.replacement + result.slice(edit.end);\n }\n return result;\n}\n\nfunction deduplicateEdits(edits: Edit[]): Edit[] {\n const seen = new Map<string, Edit>();\n for (const edit of edits) {\n const key = `${edit.start}:${edit.end}`;\n seen.set(key, edit);\n }\n return Array.from(seen.values());\n}\n\nfunction visitDir(dir: DirEntry, callback: (path: string) => void): void {\n for (const file of dir.subfiles) {\n if (file.endsWith('.d.ts')) continue;\n if (!file.endsWith('.html') && !file.endsWith('.ts')) continue;\n callback(`${dir.path}/${file}`);\n }\n for (const sub of dir.subdirs) {\n if (sub === 'node_modules' || sub === 'dist') continue;\n visitDir(dir.dir(sub), callback);\n }\n}\n",
3534
3534
  "displayName": "Schema",
3535
3535
  "properties": [
3536
3536
  {
@@ -3542,7 +3542,7 @@
3542
3542
  "indexKey": "",
3543
3543
  "optional": true,
3544
3544
  "description": "",
3545
- "line": 28,
3545
+ "line": 18,
3546
3546
  "rawdescription": "\n"
3547
3547
  },
3548
3548
  {
@@ -3554,14 +3554,14 @@
3554
3554
  "indexKey": "",
3555
3555
  "optional": true,
3556
3556
  "description": "",
3557
- "line": 27,
3557
+ "line": 17,
3558
3558
  "rawdescription": "\n"
3559
3559
  }
3560
3560
  ],
3561
3561
  "indexSignatures": [],
3562
3562
  "kind": 172,
3563
- "description": "<p>Migrates removed <code>eclLink</code> (EclLinkDirective) inputs for ECL v21 → v22.</p>\n<p>Two inputs were removed:</p>\n<ul>\n<li><code>isHighlight</code>: only the <code>primary</code> variant could be highlighted, so\n<code>eclLink variant=&quot;primary&quot; isHighlight</code> becomes\n<code>eclLink variant=&quot;primary-highlight&quot;</code>. The <code>isHighlight</code> attribute is\nremoved and the <code>variant</code> value is set to <code>primary-highlight</code>.</li>\n<li><code>isNoVisited</code>: had no effect; removed with no replacement.</li>\n</ul>\n<p>Only elements that carry the <code>eclLink</code> attribute are touched. The schematic\nrewrites external <code>.html</code> templates and inline <code>@Component</code> templates.</p>\n<p>Cases that cannot be rewritten safely (a bound <code>[isHighlight]=&quot;expr&quot;</code> with a\nnon-literal expression, or a bound <code>[variant]</code> that cannot be statically\nresolved) are left in place, reported as warnings and marked with a\n<code>TODO: [eUI v22 migration]</code> HTML comment above the element.</p>\n",
3564
- "rawdescription": "\n\nMigrates removed `eclLink` (EclLinkDirective) inputs for ECL v21 → v22.\n\nTwo inputs were removed:\n - `isHighlight`: only the `primary` variant could be highlighted, so\n `eclLink variant=\"primary\" isHighlight` becomes\n `eclLink variant=\"primary-highlight\"`. The `isHighlight` attribute is\n removed and the `variant` value is set to `primary-highlight`.\n - `isNoVisited`: had no effect; removed with no replacement.\n\nOnly elements that carry the `eclLink` attribute are touched. The schematic\nrewrites external `.html` templates and inline `@Component` templates.\n\nCases that cannot be rewritten safely (a bound `[isHighlight]=\"expr\"` with a\nnon-literal expression, or a bound `[variant]` that cannot be statically\nresolved) are left in place, reported as warnings and marked with a\n`TODO: [eUI v22 migration]` HTML comment above the element.\n",
3563
+ "description": "<p>Migrates the removed <code>ecl-page-header</code> element selector to <code>div[eclPageHeader]</code>.</p>\n<p>In v22 the <code>ecl-page-header</code> element selector was removed; the component only\nmatches <code>div[eclPageHeader]</code>. This schematic rewrites <code>&lt;ecl-page-header&gt;</code> to\n<code>&lt;div eclPageHeader&gt;</code> (and the closing tag to <code>&lt;/div&gt;</code>) in external <code>.html</code>\ntemplates and inline <code>@Component</code> templates, preserving existing attributes\nand content.</p>\n",
3564
+ "rawdescription": "\n\nMigrates the removed `ecl-page-header` element selector to `div[eclPageHeader]`.\n\nIn v22 the `ecl-page-header` element selector was removed; the component only\nmatches `div[eclPageHeader]`. This schematic rewrites `<ecl-page-header>` to\n`<div eclPageHeader>` (and the closing tag to `</div>`) in external `.html`\ntemplates and inline `@Component` templates, preserving existing attributes\nand content.\n",
3565
3565
  "methods": [],
3566
3566
  "extends": [],
3567
3567
  "isDuplicate": true,
@@ -3574,12 +3574,12 @@
3574
3574
  },
3575
3575
  {
3576
3576
  "name": "Schema",
3577
- "id": "interface-Schema-ba2913a48a24293b4c7a11f3a7355ae733abcd99b6625fa243ebd78b3240c95743f9449aa35b04ec12e439e1d54ec8bf0d78c0c7ed9d2580e663f0f08cf9eb5b-9",
3578
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
3577
+ "id": "interface-Schema-d273b5462287e58c647e750a2b9d5c1b39b8fde0ee7ee3013262cc411acc2e284f9cc1465c0c07e04a7e14ec416956ca80650e192aa390a2be598e7cb1f5b5d5-9",
3578
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
3579
3579
  "deprecated": false,
3580
3580
  "deprecationMessage": "",
3581
3581
  "type": "interface",
3582
- "sourceCode": "import { parseTemplate, TmplAstElement, TmplAstNode } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport * as ts from 'typescript';\nimport { logDryRun, logDryRunNote } from '../utils/dry-run';\n\n/**\n * Migrates the removed `ecl-page-header` element selector to `div[eclPageHeader]`.\n *\n * In v22 the `ecl-page-header` element selector was removed; the component only\n * matches `div[eclPageHeader]`. This schematic rewrites `<ecl-page-header>` to\n * `<div eclPageHeader>` (and the closing tag to `</div>`) in external `.html`\n * templates and inline `@Component` templates, preserving existing attributes\n * and content.\n */\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\ninterface Edit {\n start: number;\n end: number;\n replacement: string;\n}\n\nconst OLD_TAG = 'ecl-page-header';\nconst NEW_TAG = 'div';\nconst ATTRIBUTE = 'eclPageHeader';\n\nexport function migrateEclPageHeader(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let fileCount = 0;\n\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes(OLD_TAG)) return;\n\n const result = path.endsWith('.html') ? migrateTemplate(original) : migrateTypeScript(original, path);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would migrate ${OLD_TAG} → ${NEW_TAG}[${ATTRIBUTE}] in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n fileCount++;\n }\n });\n\n context.logger.info(`Migrated ${OLD_TAG} → ${NEW_TAG}[${ATTRIBUTE}] in ${fileCount} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction migrateTemplate(source: string): string {\n let parsed;\n try {\n parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n } catch {\n return source;\n }\n\n const edits: Edit[] = [];\n visitNodes(parsed.nodes, edits);\n return applyEdits(source, edits);\n}\n\nfunction migrateTypeScript(source: string, filePath: string): string {\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAssignment(node) && isTemplateProperty(node) && isComponentMetadataProperty(node)) {\n const init = unwrapExpression(node.initializer);\n if (ts.isStringLiteral(init) || ts.isNoSubstitutionTemplateLiteral(init)) {\n const start = init.getStart(sourceFile) + 1;\n const end = init.getEnd() - 1;\n const rawTemplate = source.slice(start, end);\n if (rawTemplate.includes(OLD_TAG)) {\n const migrated = migrateTemplate(rawTemplate);\n if (migrated !== rawTemplate) {\n edits.push({ start, end, replacement: migrated });\n }\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n return applyEdits(source, edits);\n}\n\nfunction visitNodes(nodes: TmplAstNode[], edits: Edit[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === OLD_TAG) {\n collectElementRename(node, edits);\n }\n visitNodes(node.children, edits);\n }\n }\n}\n\nfunction collectElementRename(element: TmplAstElement, edits: Edit[]): void {\n const openTagNameStart = element.startSourceSpan.start.offset + 1; // skip '<'\n const openTagNameEnd = openTagNameStart + OLD_TAG.length;\n\n const alreadyHasAttribute =\n element.attributes.some((a) => a.name === ATTRIBUTE) || element.inputs.some((i) => i.name === ATTRIBUTE);\n\n const replacement = alreadyHasAttribute ? NEW_TAG : `${NEW_TAG} ${ATTRIBUTE}`;\n edits.push({ start: openTagNameStart, end: openTagNameEnd, replacement });\n\n if (element.endSourceSpan) {\n const closeTagNameStart = element.endSourceSpan.start.offset + 2; // skip '</'\n edits.push({ start: closeTagNameStart, end: closeTagNameStart + OLD_TAG.length, replacement: NEW_TAG });\n }\n}\n\nfunction isTemplateProperty(node: ts.PropertyAssignment): boolean {\n const name = node.name;\n return (ts.isIdentifier(name) && name.text === 'template') || (ts.isStringLiteral(name) && name.text === 'template');\n}\n\nfunction isComponentMetadataProperty(node: ts.PropertyAssignment): boolean {\n const objectLiteral = node.parent;\n if (!ts.isObjectLiteralExpression(objectLiteral)) return false;\n const callExpression = objectLiteral.parent;\n if (!ts.isCallExpression(callExpression) || callExpression.arguments[0] !== objectLiteral) return false;\n return (\n ts.isDecorator(callExpression.parent) &&\n ts.isIdentifier(callExpression.expression) &&\n callExpression.expression.text === 'Component'\n );\n}\n\nfunction unwrapExpression(expression: ts.Expression): ts.Expression {\n let current = expression;\n while (ts.isParenthesizedExpression(current)) current = current.expression;\n return current;\n}\n\nfunction applyEdits(source: string, edits: Edit[]): string {\n const unique = deduplicateEdits(edits);\n let result = source;\n for (const edit of unique.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, edit.start) + edit.replacement + result.slice(edit.end);\n }\n return result;\n}\n\nfunction deduplicateEdits(edits: Edit[]): Edit[] {\n const seen = new Map<string, Edit>();\n for (const edit of edits) {\n const key = `${edit.start}:${edit.end}`;\n seen.set(key, edit);\n }\n return Array.from(seen.values());\n}\n\nfunction visitDir(dir: DirEntry, callback: (path: string) => void): void {\n for (const file of dir.subfiles) {\n if (file.endsWith('.d.ts')) continue;\n if (!file.endsWith('.html') && !file.endsWith('.ts')) continue;\n callback(`${dir.path}/${file}`);\n }\n for (const sub of dir.subdirs) {\n if (sub === 'node_modules' || sub === 'dist') continue;\n visitDir(dir.dir(sub), callback);\n }\n}\n",
3582
+ "sourceCode": "import { parseTemplate, TmplAstBoundAttribute, TmplAstElement, TmplAstNode, TmplAstTextAttribute } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport * as ts from 'typescript';\nimport { logDryRun, logDryRunNote } from '../utils/dry-run';\nimport { createTodoEdit } from '../utils/todo-comment';\n\n/**\n * Migrates removed `eclLink` (EclLinkDirective) inputs for ECL v21 → v22.\n *\n * Two inputs were removed:\n * - `isHighlight`: only the `primary` variant could be highlighted, so\n * `eclLink variant=\"primary\" isHighlight` becomes\n * `eclLink variant=\"primary-highlight\"`. The `isHighlight` attribute is\n * removed and the `variant` value is set to `primary-highlight`.\n * - `isNoVisited`: had no effect; removed with no replacement.\n *\n * Only elements that carry the `eclLink` attribute are touched. The schematic\n * rewrites external `.html` templates and inline `@Component` templates.\n *\n * Cases that cannot be rewritten safely (a bound `[isHighlight]=\"expr\"` with a\n * non-literal expression, or a bound `[variant]` that cannot be statically\n * resolved) are left in place, reported as warnings and marked with a\n * `TODO: [eUI v22 migration]` HTML comment above the element.\n */\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\ninterface Edit {\n start: number;\n end: number;\n replacement: string;\n}\n\nconst ECL_LINK_ATTR = 'eclLink';\nconst IS_HIGHLIGHT = 'isHighlight';\nconst IS_NO_VISITED = 'isNoVisited';\nconst VARIANT = 'variant';\nconst HIGHLIGHT_VARIANT = 'primary-highlight';\n\nexport function migrateEclLink(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let fileCount = 0;\n\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n // Fast bail: must mention eclLink and one of the removed inputs.\n if (!original.includes(ECL_LINK_ATTR)) return;\n if (!original.includes(IS_HIGHLIGHT) && !original.includes(IS_NO_VISITED)) return;\n\n const result = path.endsWith('.html')\n ? migrateTemplate(original, path, context)\n : migrateTypeScript(original, path, context);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would migrate eclLink input(s) in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n fileCount++;\n }\n });\n\n context.logger.info(`Migrated eclLink inputs in ${fileCount} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction migrateTemplate(source: string, filePath: string, context: SchematicContext): string {\n let parsed;\n try {\n parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n } catch {\n return source;\n }\n\n const edits: Edit[] = [];\n visitNodes(parsed.nodes, source, edits, filePath, context);\n return applyEdits(source, edits);\n}\n\nfunction migrateTypeScript(source: string, filePath: string, context: SchematicContext): string {\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAssignment(node) && isTemplateProperty(node) && isComponentMetadataProperty(node)) {\n const init = unwrapExpression(node.initializer);\n if (ts.isStringLiteral(init) || ts.isNoSubstitutionTemplateLiteral(init)) {\n const start = init.getStart(sourceFile) + 1;\n const end = init.getEnd() - 1;\n const rawTemplate = source.slice(start, end);\n if (rawTemplate.includes(ECL_LINK_ATTR) && (rawTemplate.includes(IS_HIGHLIGHT) || rawTemplate.includes(IS_NO_VISITED))) {\n const migrated = migrateTemplate(rawTemplate, filePath, context);\n if (migrated !== rawTemplate) {\n edits.push({ start, end, replacement: migrated });\n }\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n return applyEdits(source, edits);\n}\n\nfunction visitNodes(nodes: TmplAstNode[], source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (hasEclLink(node)) {\n collectEclLinkEdits(node, source, edits, filePath, context);\n }\n visitNodes(node.children, source, edits, filePath, context);\n }\n }\n}\n\nfunction hasEclLink(element: TmplAstElement): boolean {\n return (\n element.attributes.some((a) => a.name === ECL_LINK_ATTR) ||\n element.inputs.some((i) => i.name === ECL_LINK_ATTR)\n );\n}\n\nfunction collectEclLinkEdits(\n element: TmplAstElement,\n source: string,\n edits: Edit[],\n filePath: string,\n context: SchematicContext,\n): void {\n // --- isNoVisited: always remove ---\n const noVisitedAttr = element.attributes.find((a) => a.name === IS_NO_VISITED);\n if (noVisitedAttr) {\n edits.push(removeAttribute(noVisitedAttr, source));\n }\n const noVisitedInput = element.inputs.find((i) => i.name === IS_NO_VISITED);\n if (noVisitedInput) {\n edits.push(removeBoundAttribute(noVisitedInput, source));\n }\n\n // --- isHighlight: convert to variant=\"primary-highlight\" ---\n const highlightAttr = element.attributes.find((a) => a.name === IS_HIGHLIGHT);\n const highlightInput = element.inputs.find((i) => i.name === IS_HIGHLIGHT);\n\n if (!highlightAttr && !highlightInput) {\n return;\n }\n\n // A bound [isHighlight]=\"expr\" where expr is not a truthy literal can't be\n // safely converted — the highlight was conditional. Warn and leave it.\n if (highlightInput && !isTruthyLiteralBinding(highlightInput, source)) {\n reportManual(\n context,\n filePath,\n element,\n source,\n edits,\n `\"[isHighlight]\" was removed. Set variant=\"${HIGHLIGHT_VARIANT}\" conditionally instead.`,\n );\n return;\n }\n\n // Resolve the variant edit first. A bound [variant]=\"...\" cannot be resolved\n // statically, so we leave the whole element untouched (including isHighlight)\n // and warn — a partial migration would be worse than none.\n const variantInput = element.inputs.find((i) => i.name === VARIANT);\n if (variantInput) {\n reportManual(\n context,\n filePath,\n element,\n source,\n edits,\n `\"isHighlight\" was removed but the bound \"[variant]\" could not be updated automatically; set it to \"${HIGHLIGHT_VARIANT}\" manually.`,\n );\n return;\n }\n\n // Safe to convert: remove the isHighlight attribute/binding...\n if (highlightAttr) {\n edits.push(removeAttribute(highlightAttr, source));\n }\n if (highlightInput) {\n edits.push(removeBoundAttribute(highlightInput, source));\n }\n\n // ...and set variant to primary-highlight.\n const variantAttr = element.attributes.find((a) => a.name === VARIANT);\n if (variantAttr) {\n // Replace the existing variant value (quoted) with primary-highlight.\n edits.push(setAttributeValue(variantAttr, source, HIGHLIGHT_VARIANT));\n } else {\n // No variant present — inject it right after the eclLink attribute.\n edits.push(injectVariantAttribute(element, source));\n }\n}\n\n// ---------------------------------------------------------------------------\n// Attribute edit helpers\n// ---------------------------------------------------------------------------\n\n/** Removes a plain text attribute including the preceding whitespace. */\nfunction removeAttribute(attr: TmplAstTextAttribute, source: string): Edit {\n let start = attr.sourceSpan.start.offset;\n const end = attr.sourceSpan.end.offset;\n start = consumeLeadingWhitespace(source, start);\n return { start, end, replacement: '' };\n}\n\n/** Removes a bound attribute `[name]=\"...\"` including the preceding whitespace. */\nfunction removeBoundAttribute(attr: TmplAstBoundAttribute, source: string): Edit {\n let start = attr.sourceSpan.start.offset;\n const end = attr.sourceSpan.end.offset;\n start = consumeLeadingWhitespace(source, start);\n return { start, end, replacement: '' };\n}\n\n/** Replaces the value of a text attribute `name=\"old\"` with a new value. */\nfunction setAttributeValue(attr: TmplAstTextAttribute, source: string, newValue: string): Edit {\n // keySpan covers the attribute name; valueSpan covers the value (without quotes).\n if (attr.valueSpan) {\n return { start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: newValue };\n }\n // Valueless attribute (e.g. `variant`) — rewrite the whole thing.\n return {\n start: attr.sourceSpan.start.offset,\n end: attr.sourceSpan.end.offset,\n replacement: `${VARIANT}=\"${newValue}\"`,\n };\n}\n\n/** Injects `variant=\"primary-highlight\"` immediately after the eclLink attribute. */\nfunction injectVariantAttribute(element: TmplAstElement, source: string): Edit {\n const eclLinkAttr =\n element.attributes.find((a) => a.name === ECL_LINK_ATTR) ??\n element.inputs.find((i) => i.name === ECL_LINK_ATTR);\n\n const anchorEnd = eclLinkAttr\n ? eclLinkAttr.sourceSpan.end.offset\n : element.startSourceSpan.start.offset + 1 + element.name.length;\n\n return { start: anchorEnd, end: anchorEnd, replacement: ` ${VARIANT}=\"${HIGHLIGHT_VARIANT}\"` };\n}\n\n/**\n * A `[isHighlight]=\"expr\"` binding is only safely convertible when expr is a\n * literal that is always truthy (`true`). Anything else (a property, a ternary,\n * `false`) is conditional and must be handled by the developer.\n */\nfunction isTruthyLiteralBinding(input: TmplAstBoundAttribute, source: string): boolean {\n const raw = readBindingExpression(input, source).trim();\n return raw === 'true';\n}\n\nfunction readBindingExpression(input: TmplAstBoundAttribute, source: string): string {\n if (input.valueSpan) {\n return source.slice(input.valueSpan.start.offset, input.valueSpan.end.offset);\n }\n return '';\n}\n\nfunction consumeLeadingWhitespace(source: string, start: number): number {\n let s = start;\n while (s > 0 && (source[s - 1] === ' ' || source[s - 1] === '\\t' || source[s - 1] === '\\n' || source[s - 1] === '\\r')) {\n s--;\n }\n return s;\n}\n\n/** Logs a warning and adds a TODO comment above the element for manual follow-up. */\nfunction reportManual(\n context: SchematicContext,\n filePath: string,\n element: TmplAstElement,\n source: string,\n edits: Edit[],\n message: string,\n): void {\n const { line } = element.startSourceSpan.start;\n context.logger.warn(`${filePath}:${line + 1} - ${message}`);\n const todo = createTodoEdit(source, element.startSourceSpan.start.offset, message);\n if (todo) edits.push(todo);\n}\n\n// ---------------------------------------------------------------------------\n// TypeScript inline-template helpers (shared conventions with sibling schematics)\n// ---------------------------------------------------------------------------\n\nfunction isTemplateProperty(node: ts.PropertyAssignment): boolean {\n const name = node.name;\n return (ts.isIdentifier(name) && name.text === 'template') || (ts.isStringLiteral(name) && name.text === 'template');\n}\n\nfunction isComponentMetadataProperty(node: ts.PropertyAssignment): boolean {\n const objectLiteral = node.parent;\n if (!ts.isObjectLiteralExpression(objectLiteral)) return false;\n const callExpression = objectLiteral.parent;\n if (!ts.isCallExpression(callExpression) || callExpression.arguments[0] !== objectLiteral) return false;\n return (\n ts.isDecorator(callExpression.parent) &&\n ts.isIdentifier(callExpression.expression) &&\n callExpression.expression.text === 'Component'\n );\n}\n\nfunction unwrapExpression(expression: ts.Expression): ts.Expression {\n let current = expression;\n while (ts.isParenthesizedExpression(current)) current = current.expression;\n return current;\n}\n\nfunction applyEdits(source: string, edits: Edit[]): string {\n const unique = deduplicateEdits(edits);\n let result = source;\n for (const edit of unique.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, edit.start) + edit.replacement + result.slice(edit.end);\n }\n return result;\n}\n\nfunction deduplicateEdits(edits: Edit[]): Edit[] {\n const seen = new Map<string, Edit>();\n for (const edit of edits) {\n const key = `${edit.start}:${edit.end}`;\n seen.set(key, edit);\n }\n return Array.from(seen.values());\n}\n\nfunction visitDir(dir: DirEntry, callback: (path: string) => void): void {\n for (const file of dir.subfiles) {\n if (file.endsWith('.d.ts')) continue;\n if (!file.endsWith('.html') && !file.endsWith('.ts')) continue;\n callback(`${dir.path}/${file}`);\n }\n for (const sub of dir.subdirs) {\n if (sub === 'node_modules' || sub === 'dist') continue;\n visitDir(dir.dir(sub), callback);\n }\n}\n",
3583
3583
  "displayName": "Schema",
3584
3584
  "properties": [
3585
3585
  {
@@ -3591,7 +3591,7 @@
3591
3591
  "indexKey": "",
3592
3592
  "optional": true,
3593
3593
  "description": "",
3594
- "line": 18,
3594
+ "line": 28,
3595
3595
  "rawdescription": "\n"
3596
3596
  },
3597
3597
  {
@@ -3603,14 +3603,14 @@
3603
3603
  "indexKey": "",
3604
3604
  "optional": true,
3605
3605
  "description": "",
3606
- "line": 17,
3606
+ "line": 27,
3607
3607
  "rawdescription": "\n"
3608
3608
  }
3609
3609
  ],
3610
3610
  "indexSignatures": [],
3611
3611
  "kind": 172,
3612
- "description": "<p>Migrates the removed <code>ecl-page-header</code> element selector to <code>div[eclPageHeader]</code>.</p>\n<p>In v22 the <code>ecl-page-header</code> element selector was removed; the component only\nmatches <code>div[eclPageHeader]</code>. This schematic rewrites <code>&lt;ecl-page-header&gt;</code> to\n<code>&lt;div eclPageHeader&gt;</code> (and the closing tag to <code>&lt;/div&gt;</code>) in external <code>.html</code>\ntemplates and inline <code>@Component</code> templates, preserving existing attributes\nand content.</p>\n",
3613
- "rawdescription": "\n\nMigrates the removed `ecl-page-header` element selector to `div[eclPageHeader]`.\n\nIn v22 the `ecl-page-header` element selector was removed; the component only\nmatches `div[eclPageHeader]`. This schematic rewrites `<ecl-page-header>` to\n`<div eclPageHeader>` (and the closing tag to `</div>`) in external `.html`\ntemplates and inline `@Component` templates, preserving existing attributes\nand content.\n",
3612
+ "description": "<p>Migrates removed <code>eclLink</code> (EclLinkDirective) inputs for ECL v21 → v22.</p>\n<p>Two inputs were removed:</p>\n<ul>\n<li><code>isHighlight</code>: only the <code>primary</code> variant could be highlighted, so\n<code>eclLink variant=&quot;primary&quot; isHighlight</code> becomes\n<code>eclLink variant=&quot;primary-highlight&quot;</code>. The <code>isHighlight</code> attribute is\nremoved and the <code>variant</code> value is set to <code>primary-highlight</code>.</li>\n<li><code>isNoVisited</code>: had no effect; removed with no replacement.</li>\n</ul>\n<p>Only elements that carry the <code>eclLink</code> attribute are touched. The schematic\nrewrites external <code>.html</code> templates and inline <code>@Component</code> templates.</p>\n<p>Cases that cannot be rewritten safely (a bound <code>[isHighlight]=&quot;expr&quot;</code> with a\nnon-literal expression, or a bound <code>[variant]</code> that cannot be statically\nresolved) are left in place, reported as warnings and marked with a\n<code>TODO: [eUI v22 migration]</code> HTML comment above the element.</p>\n",
3613
+ "rawdescription": "\n\nMigrates removed `eclLink` (EclLinkDirective) inputs for ECL v21 → v22.\n\nTwo inputs were removed:\n - `isHighlight`: only the `primary` variant could be highlighted, so\n `eclLink variant=\"primary\" isHighlight` becomes\n `eclLink variant=\"primary-highlight\"`. The `isHighlight` attribute is\n removed and the `variant` value is set to `primary-highlight`.\n - `isNoVisited`: had no effect; removed with no replacement.\n\nOnly elements that carry the `eclLink` attribute are touched. The schematic\nrewrites external `.html` templates and inline `@Component` templates.\n\nCases that cannot be rewritten safely (a bound `[isHighlight]=\"expr\"` with a\nnon-literal expression, or a bound `[variant]` that cannot be statically\nresolved) are left in place, reported as warnings and marked with a\n`TODO: [eUI v22 migration]` HTML comment above the element.\n",
3614
3614
  "methods": [],
3615
3615
  "extends": [],
3616
3616
  "isDuplicate": true,
@@ -27266,7 +27266,7 @@
27266
27266
  },
27267
27267
  {
27268
27268
  "name": "applyEdits",
27269
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
27269
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
27270
27270
  "ctype": "miscellaneous",
27271
27271
  "subtype": "function",
27272
27272
  "coverageIgnore": false,
@@ -27311,7 +27311,7 @@
27311
27311
  },
27312
27312
  {
27313
27313
  "name": "applyEdits",
27314
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
27314
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
27315
27315
  "ctype": "miscellaneous",
27316
27316
  "subtype": "function",
27317
27317
  "coverageIgnore": false,
@@ -31626,7 +31626,7 @@
31626
31626
  },
31627
31627
  {
31628
31628
  "name": "deduplicateEdits",
31629
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
31629
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
31630
31630
  "ctype": "miscellaneous",
31631
31631
  "subtype": "function",
31632
31632
  "coverageIgnore": false,
@@ -31656,7 +31656,7 @@
31656
31656
  },
31657
31657
  {
31658
31658
  "name": "deduplicateEdits",
31659
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
31659
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
31660
31660
  "ctype": "miscellaneous",
31661
31661
  "subtype": "function",
31662
31662
  "coverageIgnore": false,
@@ -35267,7 +35267,7 @@
35267
35267
  },
35268
35268
  {
35269
35269
  "name": "isComponentMetadataProperty",
35270
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
35270
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
35271
35271
  "ctype": "miscellaneous",
35272
35272
  "subtype": "function",
35273
35273
  "coverageIgnore": false,
@@ -35297,7 +35297,7 @@
35297
35297
  },
35298
35298
  {
35299
35299
  "name": "isComponentMetadataProperty",
35300
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
35300
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
35301
35301
  "ctype": "miscellaneous",
35302
35302
  "subtype": "function",
35303
35303
  "coverageIgnore": false,
@@ -36279,7 +36279,7 @@
36279
36279
  },
36280
36280
  {
36281
36281
  "name": "isTemplateProperty",
36282
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
36282
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
36283
36283
  "ctype": "miscellaneous",
36284
36284
  "subtype": "function",
36285
36285
  "coverageIgnore": false,
@@ -36309,7 +36309,7 @@
36309
36309
  },
36310
36310
  {
36311
36311
  "name": "isTemplateProperty",
36312
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
36312
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
36313
36313
  "ctype": "miscellaneous",
36314
36314
  "subtype": "function",
36315
36315
  "coverageIgnore": false,
@@ -39718,68 +39718,6 @@
39718
39718
  }
39719
39719
  ]
39720
39720
  },
39721
- {
39722
- "name": "migrateTemplate",
39723
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
39724
- "ctype": "miscellaneous",
39725
- "subtype": "function",
39726
- "coverageIgnore": false,
39727
- "deprecated": false,
39728
- "deprecationMessage": "",
39729
- "rawdescription": "",
39730
- "description": "",
39731
- "displayName": "migrateTemplate",
39732
- "args": [
39733
- {
39734
- "name": "source",
39735
- "type": "string",
39736
- "deprecated": false,
39737
- "deprecationMessage": ""
39738
- },
39739
- {
39740
- "name": "filePath",
39741
- "type": "string",
39742
- "deprecated": false,
39743
- "deprecationMessage": ""
39744
- },
39745
- {
39746
- "name": "context",
39747
- "type": "SchematicContext",
39748
- "deprecated": false,
39749
- "deprecationMessage": ""
39750
- }
39751
- ],
39752
- "returnType": "string",
39753
- "jsdoctags": [
39754
- {
39755
- "name": "source",
39756
- "type": "string",
39757
- "deprecated": false,
39758
- "deprecationMessage": "",
39759
- "tagName": {
39760
- "text": "param"
39761
- }
39762
- },
39763
- {
39764
- "name": "filePath",
39765
- "type": "string",
39766
- "deprecated": false,
39767
- "deprecationMessage": "",
39768
- "tagName": {
39769
- "text": "param"
39770
- }
39771
- },
39772
- {
39773
- "name": "context",
39774
- "type": "SchematicContext",
39775
- "deprecated": false,
39776
- "deprecationMessage": "",
39777
- "tagName": {
39778
- "text": "param"
39779
- }
39780
- }
39781
- ]
39782
- },
39783
39721
  {
39784
39722
  "name": "migrateTemplate",
39785
39723
  "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
@@ -39814,7 +39752,7 @@
39814
39752
  },
39815
39753
  {
39816
39754
  "name": "migrateTemplate",
39817
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
39755
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
39818
39756
  "ctype": "miscellaneous",
39819
39757
  "subtype": "function",
39820
39758
  "coverageIgnore": false,
@@ -39829,68 +39767,16 @@
39829
39767
  "type": "string",
39830
39768
  "deprecated": false,
39831
39769
  "deprecationMessage": ""
39832
- }
39833
- ],
39834
- "returnType": "string",
39835
- "jsdoctags": [
39836
- {
39837
- "name": "source",
39838
- "type": "string",
39839
- "deprecated": false,
39840
- "deprecationMessage": "",
39841
- "tagName": {
39842
- "text": "param"
39843
- }
39844
- }
39845
- ]
39846
- },
39847
- {
39848
- "name": "migrateTemplate",
39849
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
39850
- "ctype": "miscellaneous",
39851
- "subtype": "function",
39852
- "coverageIgnore": false,
39853
- "deprecated": false,
39854
- "deprecationMessage": "",
39855
- "rawdescription": "",
39856
- "description": "",
39857
- "displayName": "migrateTemplate",
39858
- "args": [
39770
+ },
39859
39771
  {
39860
- "name": "source",
39772
+ "name": "filePath",
39861
39773
  "type": "string",
39862
39774
  "deprecated": false,
39863
39775
  "deprecationMessage": ""
39864
- }
39865
- ],
39866
- "returnType": "string",
39867
- "jsdoctags": [
39868
- {
39869
- "name": "source",
39870
- "type": "string",
39871
- "deprecated": false,
39872
- "deprecationMessage": "",
39873
- "tagName": {
39874
- "text": "param"
39875
- }
39876
- }
39877
- ]
39878
- },
39879
- {
39880
- "name": "migrateTemplate",
39881
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
39882
- "ctype": "miscellaneous",
39883
- "subtype": "function",
39884
- "coverageIgnore": false,
39885
- "deprecated": false,
39886
- "deprecationMessage": "",
39887
- "rawdescription": "",
39888
- "description": "",
39889
- "displayName": "migrateTemplate",
39890
- "args": [
39776
+ },
39891
39777
  {
39892
- "name": "source",
39893
- "type": "string",
39778
+ "name": "context",
39779
+ "type": "SchematicContext",
39894
39780
  "deprecated": false,
39895
39781
  "deprecationMessage": ""
39896
39782
  }
@@ -39905,65 +39791,19 @@
39905
39791
  "tagName": {
39906
39792
  "text": "param"
39907
39793
  }
39908
- }
39909
- ]
39910
- },
39911
- {
39912
- "name": "migrateTemplate",
39913
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
39914
- "ctype": "miscellaneous",
39915
- "subtype": "function",
39916
- "coverageIgnore": false,
39917
- "deprecated": false,
39918
- "deprecationMessage": "",
39919
- "rawdescription": "",
39920
- "description": "",
39921
- "displayName": "migrateTemplate",
39922
- "args": [
39923
- {
39924
- "name": "source",
39925
- "type": "string",
39926
- "deprecated": false,
39927
- "deprecationMessage": ""
39928
- }
39929
- ],
39930
- "returnType": "string",
39931
- "jsdoctags": [
39794
+ },
39932
39795
  {
39933
- "name": "source",
39796
+ "name": "filePath",
39934
39797
  "type": "string",
39935
39798
  "deprecated": false,
39936
39799
  "deprecationMessage": "",
39937
39800
  "tagName": {
39938
39801
  "text": "param"
39939
39802
  }
39940
- }
39941
- ]
39942
- },
39943
- {
39944
- "name": "migrateTemplate",
39945
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
39946
- "ctype": "miscellaneous",
39947
- "subtype": "function",
39948
- "coverageIgnore": false,
39949
- "deprecated": false,
39950
- "deprecationMessage": "",
39951
- "rawdescription": "",
39952
- "description": "",
39953
- "displayName": "migrateTemplate",
39954
- "args": [
39955
- {
39956
- "name": "source",
39957
- "type": "string",
39958
- "deprecated": false,
39959
- "deprecationMessage": ""
39960
- }
39961
- ],
39962
- "returnType": "string",
39963
- "jsdoctags": [
39803
+ },
39964
39804
  {
39965
- "name": "source",
39966
- "type": "string",
39805
+ "name": "context",
39806
+ "type": "SchematicContext",
39967
39807
  "deprecated": false,
39968
39808
  "deprecationMessage": "",
39969
39809
  "tagName": {
@@ -39974,7 +39814,7 @@
39974
39814
  },
39975
39815
  {
39976
39816
  "name": "migrateTemplate",
39977
- "file": "packages/core/schematics/migrate-ecl-timeline/index.ts",
39817
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
39978
39818
  "ctype": "miscellaneous",
39979
39819
  "subtype": "function",
39980
39820
  "coverageIgnore": false,
@@ -40006,7 +39846,7 @@
40006
39846
  },
40007
39847
  {
40008
39848
  "name": "migrateTemplate",
40009
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
39849
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
40010
39850
  "ctype": "miscellaneous",
40011
39851
  "subtype": "function",
40012
39852
  "coverageIgnore": false,
@@ -40038,7 +39878,7 @@
40038
39878
  },
40039
39879
  {
40040
39880
  "name": "migrateTemplate",
40041
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
39881
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
40042
39882
  "ctype": "miscellaneous",
40043
39883
  "subtype": "function",
40044
39884
  "coverageIgnore": false,
@@ -40070,7 +39910,7 @@
40070
39910
  },
40071
39911
  {
40072
39912
  "name": "migrateTemplate",
40073
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
39913
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
40074
39914
  "ctype": "miscellaneous",
40075
39915
  "subtype": "function",
40076
39916
  "coverageIgnore": false,
@@ -40102,7 +39942,7 @@
40102
39942
  },
40103
39943
  {
40104
39944
  "name": "migrateTemplate",
40105
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
39945
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
40106
39946
  "ctype": "miscellaneous",
40107
39947
  "subtype": "function",
40108
39948
  "coverageIgnore": false,
@@ -40134,7 +39974,7 @@
40134
39974
  },
40135
39975
  {
40136
39976
  "name": "migrateTemplate",
40137
- "file": "packages/core/schematics/migrate-eui-chip/index.ts",
39977
+ "file": "packages/core/schematics/migrate-ecl-timeline/index.ts",
40138
39978
  "ctype": "miscellaneous",
40139
39979
  "subtype": "function",
40140
39980
  "coverageIgnore": false,
@@ -40166,7 +40006,7 @@
40166
40006
  },
40167
40007
  {
40168
40008
  "name": "migrateTemplate",
40169
- "file": "packages/core/schematics/migrate-eui-chip-list/index.ts",
40009
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
40170
40010
  "ctype": "miscellaneous",
40171
40011
  "subtype": "function",
40172
40012
  "coverageIgnore": false,
@@ -40198,7 +40038,167 @@
40198
40038
  },
40199
40039
  {
40200
40040
  "name": "migrateTemplate",
40201
- "file": "packages/core/schematics/migrate-eui-discussion-thread/index.ts",
40041
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
40042
+ "ctype": "miscellaneous",
40043
+ "subtype": "function",
40044
+ "coverageIgnore": false,
40045
+ "deprecated": false,
40046
+ "deprecationMessage": "",
40047
+ "rawdescription": "",
40048
+ "description": "",
40049
+ "displayName": "migrateTemplate",
40050
+ "args": [
40051
+ {
40052
+ "name": "source",
40053
+ "type": "string",
40054
+ "deprecated": false,
40055
+ "deprecationMessage": ""
40056
+ }
40057
+ ],
40058
+ "returnType": "string",
40059
+ "jsdoctags": [
40060
+ {
40061
+ "name": "source",
40062
+ "type": "string",
40063
+ "deprecated": false,
40064
+ "deprecationMessage": "",
40065
+ "tagName": {
40066
+ "text": "param"
40067
+ }
40068
+ }
40069
+ ]
40070
+ },
40071
+ {
40072
+ "name": "migrateTemplate",
40073
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
40074
+ "ctype": "miscellaneous",
40075
+ "subtype": "function",
40076
+ "coverageIgnore": false,
40077
+ "deprecated": false,
40078
+ "deprecationMessage": "",
40079
+ "rawdescription": "",
40080
+ "description": "",
40081
+ "displayName": "migrateTemplate",
40082
+ "args": [
40083
+ {
40084
+ "name": "source",
40085
+ "type": "string",
40086
+ "deprecated": false,
40087
+ "deprecationMessage": ""
40088
+ }
40089
+ ],
40090
+ "returnType": "string",
40091
+ "jsdoctags": [
40092
+ {
40093
+ "name": "source",
40094
+ "type": "string",
40095
+ "deprecated": false,
40096
+ "deprecationMessage": "",
40097
+ "tagName": {
40098
+ "text": "param"
40099
+ }
40100
+ }
40101
+ ]
40102
+ },
40103
+ {
40104
+ "name": "migrateTemplate",
40105
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
40106
+ "ctype": "miscellaneous",
40107
+ "subtype": "function",
40108
+ "coverageIgnore": false,
40109
+ "deprecated": false,
40110
+ "deprecationMessage": "",
40111
+ "rawdescription": "",
40112
+ "description": "",
40113
+ "displayName": "migrateTemplate",
40114
+ "args": [
40115
+ {
40116
+ "name": "source",
40117
+ "type": "string",
40118
+ "deprecated": false,
40119
+ "deprecationMessage": ""
40120
+ }
40121
+ ],
40122
+ "returnType": "string",
40123
+ "jsdoctags": [
40124
+ {
40125
+ "name": "source",
40126
+ "type": "string",
40127
+ "deprecated": false,
40128
+ "deprecationMessage": "",
40129
+ "tagName": {
40130
+ "text": "param"
40131
+ }
40132
+ }
40133
+ ]
40134
+ },
40135
+ {
40136
+ "name": "migrateTemplate",
40137
+ "file": "packages/core/schematics/migrate-eui-chip/index.ts",
40138
+ "ctype": "miscellaneous",
40139
+ "subtype": "function",
40140
+ "coverageIgnore": false,
40141
+ "deprecated": false,
40142
+ "deprecationMessage": "",
40143
+ "rawdescription": "",
40144
+ "description": "",
40145
+ "displayName": "migrateTemplate",
40146
+ "args": [
40147
+ {
40148
+ "name": "source",
40149
+ "type": "string",
40150
+ "deprecated": false,
40151
+ "deprecationMessage": ""
40152
+ }
40153
+ ],
40154
+ "returnType": "string",
40155
+ "jsdoctags": [
40156
+ {
40157
+ "name": "source",
40158
+ "type": "string",
40159
+ "deprecated": false,
40160
+ "deprecationMessage": "",
40161
+ "tagName": {
40162
+ "text": "param"
40163
+ }
40164
+ }
40165
+ ]
40166
+ },
40167
+ {
40168
+ "name": "migrateTemplate",
40169
+ "file": "packages/core/schematics/migrate-eui-chip-list/index.ts",
40170
+ "ctype": "miscellaneous",
40171
+ "subtype": "function",
40172
+ "coverageIgnore": false,
40173
+ "deprecated": false,
40174
+ "deprecationMessage": "",
40175
+ "rawdescription": "",
40176
+ "description": "",
40177
+ "displayName": "migrateTemplate",
40178
+ "args": [
40179
+ {
40180
+ "name": "source",
40181
+ "type": "string",
40182
+ "deprecated": false,
40183
+ "deprecationMessage": ""
40184
+ }
40185
+ ],
40186
+ "returnType": "string",
40187
+ "jsdoctags": [
40188
+ {
40189
+ "name": "source",
40190
+ "type": "string",
40191
+ "deprecated": false,
40192
+ "deprecationMessage": "",
40193
+ "tagName": {
40194
+ "text": "param"
40195
+ }
40196
+ }
40197
+ ]
40198
+ },
40199
+ {
40200
+ "name": "migrateTemplate",
40201
+ "file": "packages/core/schematics/migrate-eui-discussion-thread/index.ts",
40202
40202
  "ctype": "miscellaneous",
40203
40203
  "subtype": "function",
40204
40204
  "coverageIgnore": false,
@@ -40956,7 +40956,7 @@
40956
40956
  },
40957
40957
  {
40958
40958
  "name": "migrateTypeScript",
40959
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
40959
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
40960
40960
  "ctype": "miscellaneous",
40961
40961
  "subtype": "function",
40962
40962
  "coverageIgnore": false,
@@ -40977,12 +40977,6 @@
40977
40977
  "type": "string",
40978
40978
  "deprecated": false,
40979
40979
  "deprecationMessage": ""
40980
- },
40981
- {
40982
- "name": "context",
40983
- "type": "SchematicContext",
40984
- "deprecated": false,
40985
- "deprecationMessage": ""
40986
40980
  }
40987
40981
  ],
40988
40982
  "returnType": "string",
@@ -41004,21 +40998,12 @@
41004
40998
  "tagName": {
41005
40999
  "text": "param"
41006
41000
  }
41007
- },
41008
- {
41009
- "name": "context",
41010
- "type": "SchematicContext",
41011
- "deprecated": false,
41012
- "deprecationMessage": "",
41013
- "tagName": {
41014
- "text": "param"
41015
- }
41016
41001
  }
41017
41002
  ]
41018
41003
  },
41019
41004
  {
41020
41005
  "name": "migrateTypeScript",
41021
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
41006
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
41022
41007
  "ctype": "miscellaneous",
41023
41008
  "subtype": "function",
41024
41009
  "coverageIgnore": false,
@@ -41039,51 +41024,10 @@
41039
41024
  "type": "string",
41040
41025
  "deprecated": false,
41041
41026
  "deprecationMessage": ""
41042
- }
41043
- ],
41044
- "returnType": "string",
41045
- "jsdoctags": [
41046
- {
41047
- "name": "source",
41048
- "type": "string",
41049
- "deprecated": false,
41050
- "deprecationMessage": "",
41051
- "tagName": {
41052
- "text": "param"
41053
- }
41054
- },
41055
- {
41056
- "name": "filePath",
41057
- "type": "string",
41058
- "deprecated": false,
41059
- "deprecationMessage": "",
41060
- "tagName": {
41061
- "text": "param"
41062
- }
41063
- }
41064
- ]
41065
- },
41066
- {
41067
- "name": "migrateTypeScript",
41068
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
41069
- "ctype": "miscellaneous",
41070
- "subtype": "function",
41071
- "coverageIgnore": false,
41072
- "deprecated": false,
41073
- "deprecationMessage": "",
41074
- "rawdescription": "",
41075
- "description": "",
41076
- "displayName": "migrateTypeScript",
41077
- "args": [
41078
- {
41079
- "name": "source",
41080
- "type": "string",
41081
- "deprecated": false,
41082
- "deprecationMessage": ""
41083
41027
  },
41084
41028
  {
41085
- "name": "filePath",
41086
- "type": "string",
41029
+ "name": "context",
41030
+ "type": "SchematicContext",
41087
41031
  "deprecated": false,
41088
41032
  "deprecationMessage": ""
41089
41033
  }
@@ -41107,48 +41051,10 @@
41107
41051
  "tagName": {
41108
41052
  "text": "param"
41109
41053
  }
41110
- }
41111
- ]
41112
- },
41113
- {
41114
- "name": "migrateTypeScript",
41115
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
41116
- "ctype": "miscellaneous",
41117
- "subtype": "function",
41118
- "coverageIgnore": false,
41119
- "deprecated": false,
41120
- "deprecationMessage": "",
41121
- "rawdescription": "",
41122
- "description": "",
41123
- "displayName": "migrateTypeScript",
41124
- "args": [
41125
- {
41126
- "name": "source",
41127
- "type": "string",
41128
- "deprecated": false,
41129
- "deprecationMessage": ""
41130
41054
  },
41131
41055
  {
41132
- "name": "filePath",
41133
- "type": "string",
41134
- "deprecated": false,
41135
- "deprecationMessage": ""
41136
- }
41137
- ],
41138
- "returnType": "string",
41139
- "jsdoctags": [
41140
- {
41141
- "name": "source",
41142
- "type": "string",
41143
- "deprecated": false,
41144
- "deprecationMessage": "",
41145
- "tagName": {
41146
- "text": "param"
41147
- }
41148
- },
41149
- {
41150
- "name": "filePath",
41151
- "type": "string",
41056
+ "name": "context",
41057
+ "type": "SchematicContext",
41152
41058
  "deprecated": false,
41153
41059
  "deprecationMessage": "",
41154
41060
  "tagName": {
@@ -41159,7 +41065,101 @@
41159
41065
  },
41160
41066
  {
41161
41067
  "name": "migrateTypeScript",
41162
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
41068
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
41069
+ "ctype": "miscellaneous",
41070
+ "subtype": "function",
41071
+ "coverageIgnore": false,
41072
+ "deprecated": false,
41073
+ "deprecationMessage": "",
41074
+ "rawdescription": "",
41075
+ "description": "",
41076
+ "displayName": "migrateTypeScript",
41077
+ "args": [
41078
+ {
41079
+ "name": "source",
41080
+ "type": "string",
41081
+ "deprecated": false,
41082
+ "deprecationMessage": ""
41083
+ },
41084
+ {
41085
+ "name": "filePath",
41086
+ "type": "string",
41087
+ "deprecated": false,
41088
+ "deprecationMessage": ""
41089
+ }
41090
+ ],
41091
+ "returnType": "string",
41092
+ "jsdoctags": [
41093
+ {
41094
+ "name": "source",
41095
+ "type": "string",
41096
+ "deprecated": false,
41097
+ "deprecationMessage": "",
41098
+ "tagName": {
41099
+ "text": "param"
41100
+ }
41101
+ },
41102
+ {
41103
+ "name": "filePath",
41104
+ "type": "string",
41105
+ "deprecated": false,
41106
+ "deprecationMessage": "",
41107
+ "tagName": {
41108
+ "text": "param"
41109
+ }
41110
+ }
41111
+ ]
41112
+ },
41113
+ {
41114
+ "name": "migrateTypeScript",
41115
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
41116
+ "ctype": "miscellaneous",
41117
+ "subtype": "function",
41118
+ "coverageIgnore": false,
41119
+ "deprecated": false,
41120
+ "deprecationMessage": "",
41121
+ "rawdescription": "",
41122
+ "description": "",
41123
+ "displayName": "migrateTypeScript",
41124
+ "args": [
41125
+ {
41126
+ "name": "source",
41127
+ "type": "string",
41128
+ "deprecated": false,
41129
+ "deprecationMessage": ""
41130
+ },
41131
+ {
41132
+ "name": "filePath",
41133
+ "type": "string",
41134
+ "deprecated": false,
41135
+ "deprecationMessage": ""
41136
+ }
41137
+ ],
41138
+ "returnType": "string",
41139
+ "jsdoctags": [
41140
+ {
41141
+ "name": "source",
41142
+ "type": "string",
41143
+ "deprecated": false,
41144
+ "deprecationMessage": "",
41145
+ "tagName": {
41146
+ "text": "param"
41147
+ }
41148
+ },
41149
+ {
41150
+ "name": "filePath",
41151
+ "type": "string",
41152
+ "deprecated": false,
41153
+ "deprecationMessage": "",
41154
+ "tagName": {
41155
+ "text": "param"
41156
+ }
41157
+ }
41158
+ ]
41159
+ },
41160
+ {
41161
+ "name": "migrateTypeScript",
41162
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
41163
41163
  "ctype": "miscellaneous",
41164
41164
  "subtype": "function",
41165
41165
  "coverageIgnore": false,
@@ -44172,7 +44172,7 @@
44172
44172
  },
44173
44173
  {
44174
44174
  "name": "unwrapExpression",
44175
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
44175
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
44176
44176
  "ctype": "miscellaneous",
44177
44177
  "subtype": "function",
44178
44178
  "coverageIgnore": false,
@@ -44202,7 +44202,7 @@
44202
44202
  },
44203
44203
  {
44204
44204
  "name": "unwrapExpression",
44205
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
44205
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
44206
44206
  "ctype": "miscellaneous",
44207
44207
  "subtype": "function",
44208
44208
  "coverageIgnore": false,
@@ -45297,7 +45297,7 @@
45297
45297
  },
45298
45298
  {
45299
45299
  "name": "visitDir",
45300
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
45300
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
45301
45301
  "ctype": "miscellaneous",
45302
45302
  "subtype": "function",
45303
45303
  "coverageIgnore": false,
@@ -45342,7 +45342,7 @@
45342
45342
  },
45343
45343
  {
45344
45344
  "name": "visitDir",
45345
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
45345
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
45346
45346
  "ctype": "miscellaneous",
45347
45347
  "subtype": "function",
45348
45348
  "coverageIgnore": false,
@@ -46862,6 +46862,49 @@
46862
46862
  }
46863
46863
  ]
46864
46864
  },
46865
+ {
46866
+ "name": "visitNodes",
46867
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
46868
+ "ctype": "miscellaneous",
46869
+ "subtype": "function",
46870
+ "coverageIgnore": false,
46871
+ "deprecated": false,
46872
+ "deprecationMessage": "",
46873
+ "rawdescription": "",
46874
+ "description": "",
46875
+ "displayName": "visitNodes",
46876
+ "args": [
46877
+ {
46878
+ "name": "nodes",
46879
+ "deprecated": false,
46880
+ "deprecationMessage": ""
46881
+ },
46882
+ {
46883
+ "name": "edits",
46884
+ "deprecated": false,
46885
+ "deprecationMessage": ""
46886
+ }
46887
+ ],
46888
+ "returnType": "void",
46889
+ "jsdoctags": [
46890
+ {
46891
+ "name": "nodes",
46892
+ "deprecated": false,
46893
+ "deprecationMessage": "",
46894
+ "tagName": {
46895
+ "text": "param"
46896
+ }
46897
+ },
46898
+ {
46899
+ "name": "edits",
46900
+ "deprecated": false,
46901
+ "deprecationMessage": "",
46902
+ "tagName": {
46903
+ "text": "param"
46904
+ }
46905
+ }
46906
+ ]
46907
+ },
46865
46908
  {
46866
46909
  "name": "visitNodes",
46867
46910
  "file": "packages/core/schematics/migrate-ecl-link/index.ts",
@@ -46952,7 +46995,7 @@
46952
46995
  },
46953
46996
  {
46954
46997
  "name": "visitNodes",
46955
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
46998
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
46956
46999
  "ctype": "miscellaneous",
46957
47000
  "subtype": "function",
46958
47001
  "coverageIgnore": false,
@@ -46995,7 +47038,7 @@
46995
47038
  },
46996
47039
  {
46997
47040
  "name": "visitNodes",
46998
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
47041
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
46999
47042
  "ctype": "miscellaneous",
47000
47043
  "subtype": "function",
47001
47044
  "coverageIgnore": false,
@@ -47038,7 +47081,7 @@
47038
47081
  },
47039
47082
  {
47040
47083
  "name": "visitNodes",
47041
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
47084
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
47042
47085
  "ctype": "miscellaneous",
47043
47086
  "subtype": "function",
47044
47087
  "coverageIgnore": false,
@@ -47053,6 +47096,12 @@
47053
47096
  "deprecated": false,
47054
47097
  "deprecationMessage": ""
47055
47098
  },
47099
+ {
47100
+ "name": "source",
47101
+ "type": "string",
47102
+ "deprecated": false,
47103
+ "deprecationMessage": ""
47104
+ },
47056
47105
  {
47057
47106
  "name": "edits",
47058
47107
  "deprecated": false,
@@ -47069,6 +47118,15 @@
47069
47118
  "text": "param"
47070
47119
  }
47071
47120
  },
47121
+ {
47122
+ "name": "source",
47123
+ "type": "string",
47124
+ "deprecated": false,
47125
+ "deprecationMessage": "",
47126
+ "tagName": {
47127
+ "text": "param"
47128
+ }
47129
+ },
47072
47130
  {
47073
47131
  "name": "edits",
47074
47132
  "deprecated": false,
@@ -47081,7 +47139,7 @@
47081
47139
  },
47082
47140
  {
47083
47141
  "name": "visitNodes",
47084
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
47142
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
47085
47143
  "ctype": "miscellaneous",
47086
47144
  "subtype": "function",
47087
47145
  "coverageIgnore": false,
@@ -47097,8 +47155,45 @@
47097
47155
  "deprecationMessage": ""
47098
47156
  },
47099
47157
  {
47100
- "name": "source",
47101
- "type": "string",
47158
+ "name": "edits",
47159
+ "deprecated": false,
47160
+ "deprecationMessage": ""
47161
+ }
47162
+ ],
47163
+ "returnType": "void",
47164
+ "jsdoctags": [
47165
+ {
47166
+ "name": "nodes",
47167
+ "deprecated": false,
47168
+ "deprecationMessage": "",
47169
+ "tagName": {
47170
+ "text": "param"
47171
+ }
47172
+ },
47173
+ {
47174
+ "name": "edits",
47175
+ "deprecated": false,
47176
+ "deprecationMessage": "",
47177
+ "tagName": {
47178
+ "text": "param"
47179
+ }
47180
+ }
47181
+ ]
47182
+ },
47183
+ {
47184
+ "name": "visitNodes",
47185
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
47186
+ "ctype": "miscellaneous",
47187
+ "subtype": "function",
47188
+ "coverageIgnore": false,
47189
+ "deprecated": false,
47190
+ "deprecationMessage": "",
47191
+ "rawdescription": "",
47192
+ "description": "",
47193
+ "displayName": "visitNodes",
47194
+ "args": [
47195
+ {
47196
+ "name": "nodes",
47102
47197
  "deprecated": false,
47103
47198
  "deprecationMessage": ""
47104
47199
  },
@@ -47119,8 +47214,42 @@
47119
47214
  }
47120
47215
  },
47121
47216
  {
47122
- "name": "source",
47123
- "type": "string",
47217
+ "name": "edits",
47218
+ "deprecated": false,
47219
+ "deprecationMessage": "",
47220
+ "tagName": {
47221
+ "text": "param"
47222
+ }
47223
+ }
47224
+ ]
47225
+ },
47226
+ {
47227
+ "name": "visitNodes",
47228
+ "file": "packages/core/schematics/migrate-ecl-timeline/index.ts",
47229
+ "ctype": "miscellaneous",
47230
+ "subtype": "function",
47231
+ "coverageIgnore": false,
47232
+ "deprecated": false,
47233
+ "deprecationMessage": "",
47234
+ "rawdescription": "",
47235
+ "description": "",
47236
+ "displayName": "visitNodes",
47237
+ "args": [
47238
+ {
47239
+ "name": "nodes",
47240
+ "deprecated": false,
47241
+ "deprecationMessage": ""
47242
+ },
47243
+ {
47244
+ "name": "edits",
47245
+ "deprecated": false,
47246
+ "deprecationMessage": ""
47247
+ }
47248
+ ],
47249
+ "returnType": "void",
47250
+ "jsdoctags": [
47251
+ {
47252
+ "name": "nodes",
47124
47253
  "deprecated": false,
47125
47254
  "deprecationMessage": "",
47126
47255
  "tagName": {
@@ -47139,7 +47268,7 @@
47139
47268
  },
47140
47269
  {
47141
47270
  "name": "visitNodes",
47142
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
47271
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
47143
47272
  "ctype": "miscellaneous",
47144
47273
  "subtype": "function",
47145
47274
  "coverageIgnore": false,
@@ -47182,7 +47311,7 @@
47182
47311
  },
47183
47312
  {
47184
47313
  "name": "visitNodes",
47185
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
47314
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
47186
47315
  "ctype": "miscellaneous",
47187
47316
  "subtype": "function",
47188
47317
  "coverageIgnore": false,
@@ -47198,7 +47327,7 @@
47198
47327
  "deprecationMessage": ""
47199
47328
  },
47200
47329
  {
47201
- "name": "edits",
47330
+ "name": "removals",
47202
47331
  "deprecated": false,
47203
47332
  "deprecationMessage": ""
47204
47333
  }
@@ -47214,7 +47343,7 @@
47214
47343
  }
47215
47344
  },
47216
47345
  {
47217
- "name": "edits",
47346
+ "name": "removals",
47218
47347
  "deprecated": false,
47219
47348
  "deprecationMessage": "",
47220
47349
  "tagName": {
@@ -47225,7 +47354,7 @@
47225
47354
  },
47226
47355
  {
47227
47356
  "name": "visitNodes",
47228
- "file": "packages/core/schematics/migrate-ecl-timeline/index.ts",
47357
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
47229
47358
  "ctype": "miscellaneous",
47230
47359
  "subtype": "function",
47231
47360
  "coverageIgnore": false,
@@ -47241,7 +47370,7 @@
47241
47370
  "deprecationMessage": ""
47242
47371
  },
47243
47372
  {
47244
- "name": "edits",
47373
+ "name": "removals",
47245
47374
  "deprecated": false,
47246
47375
  "deprecationMessage": ""
47247
47376
  }
@@ -47257,7 +47386,7 @@
47257
47386
  }
47258
47387
  },
47259
47388
  {
47260
- "name": "edits",
47389
+ "name": "removals",
47261
47390
  "deprecated": false,
47262
47391
  "deprecationMessage": "",
47263
47392
  "tagName": {
@@ -47268,136 +47397,7 @@
47268
47397
  },
47269
47398
  {
47270
47399
  "name": "visitNodes",
47271
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
47272
- "ctype": "miscellaneous",
47273
- "subtype": "function",
47274
- "coverageIgnore": false,
47275
- "deprecated": false,
47276
- "deprecationMessage": "",
47277
- "rawdescription": "",
47278
- "description": "",
47279
- "displayName": "visitNodes",
47280
- "args": [
47281
- {
47282
- "name": "nodes",
47283
- "deprecated": false,
47284
- "deprecationMessage": ""
47285
- },
47286
- {
47287
- "name": "edits",
47288
- "deprecated": false,
47289
- "deprecationMessage": ""
47290
- }
47291
- ],
47292
- "returnType": "void",
47293
- "jsdoctags": [
47294
- {
47295
- "name": "nodes",
47296
- "deprecated": false,
47297
- "deprecationMessage": "",
47298
- "tagName": {
47299
- "text": "param"
47300
- }
47301
- },
47302
- {
47303
- "name": "edits",
47304
- "deprecated": false,
47305
- "deprecationMessage": "",
47306
- "tagName": {
47307
- "text": "param"
47308
- }
47309
- }
47310
- ]
47311
- },
47312
- {
47313
- "name": "visitNodes",
47314
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
47315
- "ctype": "miscellaneous",
47316
- "subtype": "function",
47317
- "coverageIgnore": false,
47318
- "deprecated": false,
47319
- "deprecationMessage": "",
47320
- "rawdescription": "",
47321
- "description": "",
47322
- "displayName": "visitNodes",
47323
- "args": [
47324
- {
47325
- "name": "nodes",
47326
- "deprecated": false,
47327
- "deprecationMessage": ""
47328
- },
47329
- {
47330
- "name": "removals",
47331
- "deprecated": false,
47332
- "deprecationMessage": ""
47333
- }
47334
- ],
47335
- "returnType": "void",
47336
- "jsdoctags": [
47337
- {
47338
- "name": "nodes",
47339
- "deprecated": false,
47340
- "deprecationMessage": "",
47341
- "tagName": {
47342
- "text": "param"
47343
- }
47344
- },
47345
- {
47346
- "name": "removals",
47347
- "deprecated": false,
47348
- "deprecationMessage": "",
47349
- "tagName": {
47350
- "text": "param"
47351
- }
47352
- }
47353
- ]
47354
- },
47355
- {
47356
- "name": "visitNodes",
47357
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
47358
- "ctype": "miscellaneous",
47359
- "subtype": "function",
47360
- "coverageIgnore": false,
47361
- "deprecated": false,
47362
- "deprecationMessage": "",
47363
- "rawdescription": "",
47364
- "description": "",
47365
- "displayName": "visitNodes",
47366
- "args": [
47367
- {
47368
- "name": "nodes",
47369
- "deprecated": false,
47370
- "deprecationMessage": ""
47371
- },
47372
- {
47373
- "name": "removals",
47374
- "deprecated": false,
47375
- "deprecationMessage": ""
47376
- }
47377
- ],
47378
- "returnType": "void",
47379
- "jsdoctags": [
47380
- {
47381
- "name": "nodes",
47382
- "deprecated": false,
47383
- "deprecationMessage": "",
47384
- "tagName": {
47385
- "text": "param"
47386
- }
47387
- },
47388
- {
47389
- "name": "removals",
47390
- "deprecated": false,
47391
- "deprecationMessage": "",
47392
- "tagName": {
47393
- "text": "param"
47394
- }
47395
- }
47396
- ]
47397
- },
47398
- {
47399
- "name": "visitNodes",
47400
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
47400
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
47401
47401
  "ctype": "miscellaneous",
47402
47402
  "subtype": "function",
47403
47403
  "coverageIgnore": false,
@@ -59432,10 +59432,10 @@
59432
59432
  ]
59433
59433
  }
59434
59434
  ],
59435
- "packages/core/schematics/migrate-ecl-link/index.ts": [
59435
+ "packages/core/schematics/migrate-ecl-page-header/index.ts": [
59436
59436
  {
59437
59437
  "name": "applyEdits",
59438
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
59438
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59439
59439
  "ctype": "miscellaneous",
59440
59440
  "subtype": "function",
59441
59441
  "coverageIgnore": false,
@@ -59479,8 +59479,8 @@
59479
59479
  ]
59480
59480
  },
59481
59481
  {
59482
- "name": "collectEclLinkEdits",
59483
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
59482
+ "name": "collectElementRename",
59483
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59484
59484
  "ctype": "miscellaneous",
59485
59485
  "subtype": "function",
59486
59486
  "coverageIgnore": false,
@@ -59488,7 +59488,7 @@
59488
59488
  "deprecationMessage": "",
59489
59489
  "rawdescription": "",
59490
59490
  "description": "",
59491
- "displayName": "collectEclLinkEdits",
59491
+ "displayName": "collectElementRename",
59492
59492
  "args": [
59493
59493
  {
59494
59494
  "name": "element",
@@ -59496,28 +59496,10 @@
59496
59496
  "deprecated": false,
59497
59497
  "deprecationMessage": ""
59498
59498
  },
59499
- {
59500
- "name": "source",
59501
- "type": "string",
59502
- "deprecated": false,
59503
- "deprecationMessage": ""
59504
- },
59505
59499
  {
59506
59500
  "name": "edits",
59507
59501
  "deprecated": false,
59508
59502
  "deprecationMessage": ""
59509
- },
59510
- {
59511
- "name": "filePath",
59512
- "type": "string",
59513
- "deprecated": false,
59514
- "deprecationMessage": ""
59515
- },
59516
- {
59517
- "name": "context",
59518
- "type": "SchematicContext",
59519
- "deprecated": false,
59520
- "deprecationMessage": ""
59521
59503
  }
59522
59504
  ],
59523
59505
  "returnType": "void",
@@ -59531,15 +59513,6 @@
59531
59513
  "text": "param"
59532
59514
  }
59533
59515
  },
59534
- {
59535
- "name": "source",
59536
- "type": "string",
59537
- "deprecated": false,
59538
- "deprecationMessage": "",
59539
- "tagName": {
59540
- "text": "param"
59541
- }
59542
- },
59543
59516
  {
59544
59517
  "name": "edits",
59545
59518
  "deprecated": false,
@@ -59547,77 +59520,12 @@
59547
59520
  "tagName": {
59548
59521
  "text": "param"
59549
59522
  }
59550
- },
59551
- {
59552
- "name": "filePath",
59553
- "type": "string",
59554
- "deprecated": false,
59555
- "deprecationMessage": "",
59556
- "tagName": {
59557
- "text": "param"
59558
- }
59559
- },
59560
- {
59561
- "name": "context",
59562
- "type": "SchematicContext",
59563
- "deprecated": false,
59564
- "deprecationMessage": "",
59565
- "tagName": {
59566
- "text": "param"
59567
- }
59568
- }
59569
- ]
59570
- },
59571
- {
59572
- "name": "consumeLeadingWhitespace",
59573
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
59574
- "ctype": "miscellaneous",
59575
- "subtype": "function",
59576
- "coverageIgnore": false,
59577
- "deprecated": false,
59578
- "deprecationMessage": "",
59579
- "rawdescription": "",
59580
- "description": "",
59581
- "displayName": "consumeLeadingWhitespace",
59582
- "args": [
59583
- {
59584
- "name": "source",
59585
- "type": "string",
59586
- "deprecated": false,
59587
- "deprecationMessage": ""
59588
- },
59589
- {
59590
- "name": "start",
59591
- "type": "number",
59592
- "deprecated": false,
59593
- "deprecationMessage": ""
59594
- }
59595
- ],
59596
- "returnType": "number",
59597
- "jsdoctags": [
59598
- {
59599
- "name": "source",
59600
- "type": "string",
59601
- "deprecated": false,
59602
- "deprecationMessage": "",
59603
- "tagName": {
59604
- "text": "param"
59605
- }
59606
- },
59607
- {
59608
- "name": "start",
59609
- "type": "number",
59610
- "deprecated": false,
59611
- "deprecationMessage": "",
59612
- "tagName": {
59613
- "text": "param"
59614
- }
59615
59523
  }
59616
59524
  ]
59617
59525
  },
59618
59526
  {
59619
59527
  "name": "deduplicateEdits",
59620
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
59528
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59621
59529
  "ctype": "miscellaneous",
59622
59530
  "subtype": "function",
59623
59531
  "coverageIgnore": false,
@@ -59645,88 +59553,9 @@
59645
59553
  }
59646
59554
  ]
59647
59555
  },
59648
- {
59649
- "name": "hasEclLink",
59650
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
59651
- "ctype": "miscellaneous",
59652
- "subtype": "function",
59653
- "coverageIgnore": false,
59654
- "deprecated": false,
59655
- "deprecationMessage": "",
59656
- "rawdescription": "",
59657
- "description": "",
59658
- "displayName": "hasEclLink",
59659
- "args": [
59660
- {
59661
- "name": "element",
59662
- "type": "TmplAstElement",
59663
- "deprecated": false,
59664
- "deprecationMessage": ""
59665
- }
59666
- ],
59667
- "returnType": "boolean",
59668
- "jsdoctags": [
59669
- {
59670
- "name": "element",
59671
- "type": "TmplAstElement",
59672
- "deprecated": false,
59673
- "deprecationMessage": "",
59674
- "tagName": {
59675
- "text": "param"
59676
- }
59677
- }
59678
- ]
59679
- },
59680
- {
59681
- "name": "injectVariantAttribute",
59682
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
59683
- "ctype": "miscellaneous",
59684
- "subtype": "function",
59685
- "coverageIgnore": false,
59686
- "deprecated": false,
59687
- "deprecationMessage": "",
59688
- "rawdescription": "Injects `variant=\"primary-highlight\"` immediately after the eclLink attribute.",
59689
- "description": "<p>Injects <code>variant=&quot;primary-highlight&quot;</code> immediately after the eclLink attribute.</p>\n",
59690
- "displayName": "injectVariantAttribute",
59691
- "args": [
59692
- {
59693
- "name": "element",
59694
- "type": "TmplAstElement",
59695
- "deprecated": false,
59696
- "deprecationMessage": ""
59697
- },
59698
- {
59699
- "name": "source",
59700
- "type": "string",
59701
- "deprecated": false,
59702
- "deprecationMessage": ""
59703
- }
59704
- ],
59705
- "returnType": "Edit",
59706
- "jsdoctags": [
59707
- {
59708
- "name": "element",
59709
- "type": "TmplAstElement",
59710
- "deprecated": false,
59711
- "deprecationMessage": "",
59712
- "tagName": {
59713
- "text": "param"
59714
- }
59715
- },
59716
- {
59717
- "name": "source",
59718
- "type": "string",
59719
- "deprecated": false,
59720
- "deprecationMessage": "",
59721
- "tagName": {
59722
- "text": "param"
59723
- }
59724
- }
59725
- ]
59726
- },
59727
59556
  {
59728
59557
  "name": "isComponentMetadataProperty",
59729
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
59558
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59730
59559
  "ctype": "miscellaneous",
59731
59560
  "subtype": "function",
59732
59561
  "coverageIgnore": false,
@@ -59756,7 +59585,7 @@
59756
59585
  },
59757
59586
  {
59758
59587
  "name": "isTemplateProperty",
59759
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
59588
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59760
59589
  "ctype": "miscellaneous",
59761
59590
  "subtype": "function",
59762
59591
  "coverageIgnore": false,
@@ -59785,55 +59614,8 @@
59785
59614
  ]
59786
59615
  },
59787
59616
  {
59788
- "name": "isTruthyLiteralBinding",
59789
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
59790
- "ctype": "miscellaneous",
59791
- "subtype": "function",
59792
- "coverageIgnore": false,
59793
- "deprecated": false,
59794
- "deprecationMessage": "",
59795
- "rawdescription": "A `[isHighlight]=\"expr\"` binding is only safely convertible when expr is a\nliteral that is always truthy (`true`). Anything else (a property, a ternary,\n`false`) is conditional and must be handled by the developer.",
59796
- "description": "<p>A <code>[isHighlight]=&quot;expr&quot;</code> binding is only safely convertible when expr is a\nliteral that is always truthy (<code>true</code>). Anything else (a property, a ternary,\n<code>false</code>) is conditional and must be handled by the developer.</p>\n",
59797
- "displayName": "isTruthyLiteralBinding",
59798
- "args": [
59799
- {
59800
- "name": "input",
59801
- "type": "TmplAstBoundAttribute",
59802
- "deprecated": false,
59803
- "deprecationMessage": ""
59804
- },
59805
- {
59806
- "name": "source",
59807
- "type": "string",
59808
- "deprecated": false,
59809
- "deprecationMessage": ""
59810
- }
59811
- ],
59812
- "returnType": "boolean",
59813
- "jsdoctags": [
59814
- {
59815
- "name": "input",
59816
- "type": "TmplAstBoundAttribute",
59817
- "deprecated": false,
59818
- "deprecationMessage": "",
59819
- "tagName": {
59820
- "text": "param"
59821
- }
59822
- },
59823
- {
59824
- "name": "source",
59825
- "type": "string",
59826
- "deprecated": false,
59827
- "deprecationMessage": "",
59828
- "tagName": {
59829
- "text": "param"
59830
- }
59831
- }
59832
- ]
59833
- },
59834
- {
59835
- "name": "migrateEclLink",
59836
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
59617
+ "name": "migrateEclPageHeader",
59618
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59837
59619
  "ctype": "miscellaneous",
59838
59620
  "subtype": "function",
59839
59621
  "coverageIgnore": false,
@@ -59841,7 +59623,7 @@
59841
59623
  "deprecationMessage": "",
59842
59624
  "rawdescription": "",
59843
59625
  "description": "",
59844
- "displayName": "migrateEclLink",
59626
+ "displayName": "migrateEclPageHeader",
59845
59627
  "args": [
59846
59628
  {
59847
59629
  "name": "options",
@@ -59867,7 +59649,7 @@
59867
59649
  },
59868
59650
  {
59869
59651
  "name": "migrateTemplate",
59870
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
59652
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59871
59653
  "ctype": "miscellaneous",
59872
59654
  "subtype": "function",
59873
59655
  "coverageIgnore": false,
@@ -59882,18 +59664,6 @@
59882
59664
  "type": "string",
59883
59665
  "deprecated": false,
59884
59666
  "deprecationMessage": ""
59885
- },
59886
- {
59887
- "name": "filePath",
59888
- "type": "string",
59889
- "deprecated": false,
59890
- "deprecationMessage": ""
59891
- },
59892
- {
59893
- "name": "context",
59894
- "type": "SchematicContext",
59895
- "deprecated": false,
59896
- "deprecationMessage": ""
59897
59667
  }
59898
59668
  ],
59899
59669
  "returnType": "string",
@@ -59906,30 +59676,12 @@
59906
59676
  "tagName": {
59907
59677
  "text": "param"
59908
59678
  }
59909
- },
59910
- {
59911
- "name": "filePath",
59912
- "type": "string",
59913
- "deprecated": false,
59914
- "deprecationMessage": "",
59915
- "tagName": {
59916
- "text": "param"
59917
- }
59918
- },
59919
- {
59920
- "name": "context",
59921
- "type": "SchematicContext",
59922
- "deprecated": false,
59923
- "deprecationMessage": "",
59924
- "tagName": {
59925
- "text": "param"
59926
- }
59927
59679
  }
59928
59680
  ]
59929
59681
  },
59930
59682
  {
59931
59683
  "name": "migrateTypeScript",
59932
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
59684
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59933
59685
  "ctype": "miscellaneous",
59934
59686
  "subtype": "function",
59935
59687
  "coverageIgnore": false,
@@ -59950,12 +59702,6 @@
59950
59702
  "type": "string",
59951
59703
  "deprecated": false,
59952
59704
  "deprecationMessage": ""
59953
- },
59954
- {
59955
- "name": "context",
59956
- "type": "SchematicContext",
59957
- "deprecated": false,
59958
- "deprecationMessage": ""
59959
59705
  }
59960
59706
  ],
59961
59707
  "returnType": "string",
@@ -59977,10 +59723,31 @@
59977
59723
  "tagName": {
59978
59724
  "text": "param"
59979
59725
  }
59980
- },
59726
+ }
59727
+ ]
59728
+ },
59729
+ {
59730
+ "name": "unwrapExpression",
59731
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59732
+ "ctype": "miscellaneous",
59733
+ "subtype": "function",
59734
+ "coverageIgnore": false,
59735
+ "deprecated": false,
59736
+ "deprecationMessage": "",
59737
+ "rawdescription": "",
59738
+ "description": "",
59739
+ "displayName": "unwrapExpression",
59740
+ "args": [
59981
59741
  {
59982
- "name": "context",
59983
- "type": "SchematicContext",
59742
+ "name": "expression",
59743
+ "deprecated": false,
59744
+ "deprecationMessage": ""
59745
+ }
59746
+ ],
59747
+ "returnType": "ts.Expression",
59748
+ "jsdoctags": [
59749
+ {
59750
+ "name": "expression",
59984
59751
  "deprecated": false,
59985
59752
  "deprecationMessage": "",
59986
59753
  "tagName": {
@@ -59990,8 +59757,8 @@
59990
59757
  ]
59991
59758
  },
59992
59759
  {
59993
- "name": "readBindingExpression",
59994
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
59760
+ "name": "visitDir",
59761
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59995
59762
  "ctype": "miscellaneous",
59996
59763
  "subtype": "function",
59997
59764
  "coverageIgnore": false,
@@ -59999,26 +59766,25 @@
59999
59766
  "deprecationMessage": "",
60000
59767
  "rawdescription": "",
60001
59768
  "description": "",
60002
- "displayName": "readBindingExpression",
59769
+ "displayName": "visitDir",
60003
59770
  "args": [
60004
59771
  {
60005
- "name": "input",
60006
- "type": "TmplAstBoundAttribute",
59772
+ "name": "dir",
59773
+ "type": "DirEntry",
60007
59774
  "deprecated": false,
60008
59775
  "deprecationMessage": ""
60009
59776
  },
60010
59777
  {
60011
- "name": "source",
60012
- "type": "string",
59778
+ "name": "callback",
60013
59779
  "deprecated": false,
60014
59780
  "deprecationMessage": ""
60015
59781
  }
60016
59782
  ],
60017
- "returnType": "string",
59783
+ "returnType": "void",
60018
59784
  "jsdoctags": [
60019
59785
  {
60020
- "name": "input",
60021
- "type": "TmplAstBoundAttribute",
59786
+ "name": "dir",
59787
+ "type": "DirEntry",
60022
59788
  "deprecated": false,
60023
59789
  "deprecationMessage": "",
60024
59790
  "tagName": {
@@ -60026,8 +59792,7 @@
60026
59792
  }
60027
59793
  },
60028
59794
  {
60029
- "name": "source",
60030
- "type": "string",
59795
+ "name": "callback",
60031
59796
  "deprecated": false,
60032
59797
  "deprecationMessage": "",
60033
59798
  "tagName": {
@@ -60037,35 +59802,32 @@
60037
59802
  ]
60038
59803
  },
60039
59804
  {
60040
- "name": "removeAttribute",
60041
- "file": "packages/core/schematics/migrate-ecl-link/index.ts",
59805
+ "name": "visitNodes",
59806
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
60042
59807
  "ctype": "miscellaneous",
60043
59808
  "subtype": "function",
60044
59809
  "coverageIgnore": false,
60045
59810
  "deprecated": false,
60046
59811
  "deprecationMessage": "",
60047
- "rawdescription": "Removes a plain text attribute including the preceding whitespace.",
60048
- "description": "<p>Removes a plain text attribute including the preceding whitespace.</p>\n",
60049
- "displayName": "removeAttribute",
59812
+ "rawdescription": "",
59813
+ "description": "",
59814
+ "displayName": "visitNodes",
60050
59815
  "args": [
60051
59816
  {
60052
- "name": "attr",
60053
- "type": "TmplAstTextAttribute",
59817
+ "name": "nodes",
60054
59818
  "deprecated": false,
60055
59819
  "deprecationMessage": ""
60056
59820
  },
60057
59821
  {
60058
- "name": "source",
60059
- "type": "string",
59822
+ "name": "edits",
60060
59823
  "deprecated": false,
60061
59824
  "deprecationMessage": ""
60062
59825
  }
60063
59826
  ],
60064
- "returnType": "Edit",
59827
+ "returnType": "void",
60065
59828
  "jsdoctags": [
60066
59829
  {
60067
- "name": "attr",
60068
- "type": "TmplAstTextAttribute",
59830
+ "name": "nodes",
60069
59831
  "deprecated": false,
60070
59832
  "deprecationMessage": "",
60071
59833
  "tagName": {
@@ -60073,8 +59835,7 @@
60073
59835
  }
60074
59836
  },
60075
59837
  {
60076
- "name": "source",
60077
- "type": "string",
59838
+ "name": "edits",
60078
59839
  "deprecated": false,
60079
59840
  "deprecationMessage": "",
60080
59841
  "tagName": {
@@ -60082,37 +59843,38 @@
60082
59843
  }
60083
59844
  }
60084
59845
  ]
60085
- },
59846
+ }
59847
+ ],
59848
+ "packages/core/schematics/migrate-ecl-link/index.ts": [
60086
59849
  {
60087
- "name": "removeBoundAttribute",
59850
+ "name": "applyEdits",
60088
59851
  "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60089
59852
  "ctype": "miscellaneous",
60090
59853
  "subtype": "function",
60091
59854
  "coverageIgnore": false,
60092
59855
  "deprecated": false,
60093
59856
  "deprecationMessage": "",
60094
- "rawdescription": "Removes a bound attribute `[name]=\"...\"` including the preceding whitespace.",
60095
- "description": "<p>Removes a bound attribute <code>[name]=&quot;...&quot;</code> including the preceding whitespace.</p>\n",
60096
- "displayName": "removeBoundAttribute",
59857
+ "rawdescription": "",
59858
+ "description": "",
59859
+ "displayName": "applyEdits",
60097
59860
  "args": [
60098
59861
  {
60099
- "name": "attr",
60100
- "type": "TmplAstBoundAttribute",
59862
+ "name": "source",
59863
+ "type": "string",
60101
59864
  "deprecated": false,
60102
59865
  "deprecationMessage": ""
60103
59866
  },
60104
59867
  {
60105
- "name": "source",
60106
- "type": "string",
59868
+ "name": "edits",
60107
59869
  "deprecated": false,
60108
59870
  "deprecationMessage": ""
60109
59871
  }
60110
59872
  ],
60111
- "returnType": "Edit",
59873
+ "returnType": "string",
60112
59874
  "jsdoctags": [
60113
59875
  {
60114
- "name": "attr",
60115
- "type": "TmplAstBoundAttribute",
59876
+ "name": "source",
59877
+ "type": "string",
60116
59878
  "deprecated": false,
60117
59879
  "deprecationMessage": "",
60118
59880
  "tagName": {
@@ -60120,8 +59882,7 @@
60120
59882
  }
60121
59883
  },
60122
59884
  {
60123
- "name": "source",
60124
- "type": "string",
59885
+ "name": "edits",
60125
59886
  "deprecated": false,
60126
59887
  "deprecationMessage": "",
60127
59888
  "tagName": {
@@ -60131,29 +59892,17 @@
60131
59892
  ]
60132
59893
  },
60133
59894
  {
60134
- "name": "reportManual",
59895
+ "name": "collectEclLinkEdits",
60135
59896
  "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60136
59897
  "ctype": "miscellaneous",
60137
59898
  "subtype": "function",
60138
59899
  "coverageIgnore": false,
60139
59900
  "deprecated": false,
60140
59901
  "deprecationMessage": "",
60141
- "rawdescription": "Logs a warning and adds a TODO comment above the element for manual follow-up.",
60142
- "description": "<p>Logs a warning and adds a TODO comment above the element for manual follow-up.</p>\n",
60143
- "displayName": "reportManual",
59902
+ "rawdescription": "",
59903
+ "description": "",
59904
+ "displayName": "collectEclLinkEdits",
60144
59905
  "args": [
60145
- {
60146
- "name": "context",
60147
- "type": "SchematicContext",
60148
- "deprecated": false,
60149
- "deprecationMessage": ""
60150
- },
60151
- {
60152
- "name": "filePath",
60153
- "type": "string",
60154
- "deprecated": false,
60155
- "deprecationMessage": ""
60156
- },
60157
59906
  {
60158
59907
  "name": "element",
60159
59908
  "type": "TmplAstElement",
@@ -60172,17 +59921,23 @@
60172
59921
  "deprecationMessage": ""
60173
59922
  },
60174
59923
  {
60175
- "name": "message",
59924
+ "name": "filePath",
60176
59925
  "type": "string",
60177
59926
  "deprecated": false,
60178
59927
  "deprecationMessage": ""
59928
+ },
59929
+ {
59930
+ "name": "context",
59931
+ "type": "SchematicContext",
59932
+ "deprecated": false,
59933
+ "deprecationMessage": ""
60179
59934
  }
60180
59935
  ],
60181
59936
  "returnType": "void",
60182
59937
  "jsdoctags": [
60183
59938
  {
60184
- "name": "context",
60185
- "type": "SchematicContext",
59939
+ "name": "element",
59940
+ "type": "TmplAstElement",
60186
59941
  "deprecated": false,
60187
59942
  "deprecationMessage": "",
60188
59943
  "tagName": {
@@ -60190,7 +59945,7 @@
60190
59945
  }
60191
59946
  },
60192
59947
  {
60193
- "name": "filePath",
59948
+ "name": "source",
60194
59949
  "type": "string",
60195
59950
  "deprecated": false,
60196
59951
  "deprecationMessage": "",
@@ -60199,8 +59954,7 @@
60199
59954
  }
60200
59955
  },
60201
59956
  {
60202
- "name": "element",
60203
- "type": "TmplAstElement",
59957
+ "name": "edits",
60204
59958
  "deprecated": false,
60205
59959
  "deprecationMessage": "",
60206
59960
  "tagName": {
@@ -60208,7 +59962,7 @@
60208
59962
  }
60209
59963
  },
60210
59964
  {
60211
- "name": "source",
59965
+ "name": "filePath",
60212
59966
  "type": "string",
60213
59967
  "deprecated": false,
60214
59968
  "deprecationMessage": "",
@@ -60217,77 +59971,163 @@
60217
59971
  }
60218
59972
  },
60219
59973
  {
60220
- "name": "edits",
59974
+ "name": "context",
59975
+ "type": "SchematicContext",
60221
59976
  "deprecated": false,
60222
59977
  "deprecationMessage": "",
60223
59978
  "tagName": {
60224
59979
  "text": "param"
60225
59980
  }
59981
+ }
59982
+ ]
59983
+ },
59984
+ {
59985
+ "name": "consumeLeadingWhitespace",
59986
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
59987
+ "ctype": "miscellaneous",
59988
+ "subtype": "function",
59989
+ "coverageIgnore": false,
59990
+ "deprecated": false,
59991
+ "deprecationMessage": "",
59992
+ "rawdescription": "",
59993
+ "description": "",
59994
+ "displayName": "consumeLeadingWhitespace",
59995
+ "args": [
59996
+ {
59997
+ "name": "source",
59998
+ "type": "string",
59999
+ "deprecated": false,
60000
+ "deprecationMessage": ""
60226
60001
  },
60227
60002
  {
60228
- "name": "message",
60003
+ "name": "start",
60004
+ "type": "number",
60005
+ "deprecated": false,
60006
+ "deprecationMessage": ""
60007
+ }
60008
+ ],
60009
+ "returnType": "number",
60010
+ "jsdoctags": [
60011
+ {
60012
+ "name": "source",
60229
60013
  "type": "string",
60230
60014
  "deprecated": false,
60231
60015
  "deprecationMessage": "",
60232
60016
  "tagName": {
60233
60017
  "text": "param"
60234
60018
  }
60019
+ },
60020
+ {
60021
+ "name": "start",
60022
+ "type": "number",
60023
+ "deprecated": false,
60024
+ "deprecationMessage": "",
60025
+ "tagName": {
60026
+ "text": "param"
60027
+ }
60235
60028
  }
60236
60029
  ]
60237
60030
  },
60238
60031
  {
60239
- "name": "setAttributeValue",
60032
+ "name": "deduplicateEdits",
60240
60033
  "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60241
60034
  "ctype": "miscellaneous",
60242
60035
  "subtype": "function",
60243
60036
  "coverageIgnore": false,
60244
60037
  "deprecated": false,
60245
60038
  "deprecationMessage": "",
60246
- "rawdescription": "Replaces the value of a text attribute `name=\"old\"` with a new value.",
60247
- "description": "<p>Replaces the value of a text attribute <code>name=&quot;old&quot;</code> with a new value.</p>\n",
60248
- "displayName": "setAttributeValue",
60039
+ "rawdescription": "",
60040
+ "description": "",
60041
+ "displayName": "deduplicateEdits",
60249
60042
  "args": [
60250
60043
  {
60251
- "name": "attr",
60252
- "type": "TmplAstTextAttribute",
60044
+ "name": "edits",
60253
60045
  "deprecated": false,
60254
60046
  "deprecationMessage": ""
60255
- },
60047
+ }
60048
+ ],
60049
+ "returnType": "Edit[]",
60050
+ "jsdoctags": [
60256
60051
  {
60257
- "name": "source",
60258
- "type": "string",
60052
+ "name": "edits",
60259
60053
  "deprecated": false,
60260
- "deprecationMessage": ""
60261
- },
60054
+ "deprecationMessage": "",
60055
+ "tagName": {
60056
+ "text": "param"
60057
+ }
60058
+ }
60059
+ ]
60060
+ },
60061
+ {
60062
+ "name": "hasEclLink",
60063
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60064
+ "ctype": "miscellaneous",
60065
+ "subtype": "function",
60066
+ "coverageIgnore": false,
60067
+ "deprecated": false,
60068
+ "deprecationMessage": "",
60069
+ "rawdescription": "",
60070
+ "description": "",
60071
+ "displayName": "hasEclLink",
60072
+ "args": [
60262
60073
  {
60263
- "name": "newValue",
60264
- "type": "string",
60074
+ "name": "element",
60075
+ "type": "TmplAstElement",
60265
60076
  "deprecated": false,
60266
60077
  "deprecationMessage": ""
60267
60078
  }
60268
60079
  ],
60269
- "returnType": "Edit",
60080
+ "returnType": "boolean",
60270
60081
  "jsdoctags": [
60271
60082
  {
60272
- "name": "attr",
60273
- "type": "TmplAstTextAttribute",
60083
+ "name": "element",
60084
+ "type": "TmplAstElement",
60274
60085
  "deprecated": false,
60275
60086
  "deprecationMessage": "",
60276
60087
  "tagName": {
60277
60088
  "text": "param"
60278
60089
  }
60090
+ }
60091
+ ]
60092
+ },
60093
+ {
60094
+ "name": "injectVariantAttribute",
60095
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60096
+ "ctype": "miscellaneous",
60097
+ "subtype": "function",
60098
+ "coverageIgnore": false,
60099
+ "deprecated": false,
60100
+ "deprecationMessage": "",
60101
+ "rawdescription": "Injects `variant=\"primary-highlight\"` immediately after the eclLink attribute.",
60102
+ "description": "<p>Injects <code>variant=&quot;primary-highlight&quot;</code> immediately after the eclLink attribute.</p>\n",
60103
+ "displayName": "injectVariantAttribute",
60104
+ "args": [
60105
+ {
60106
+ "name": "element",
60107
+ "type": "TmplAstElement",
60108
+ "deprecated": false,
60109
+ "deprecationMessage": ""
60279
60110
  },
60280
60111
  {
60281
60112
  "name": "source",
60282
60113
  "type": "string",
60283
60114
  "deprecated": false,
60115
+ "deprecationMessage": ""
60116
+ }
60117
+ ],
60118
+ "returnType": "Edit",
60119
+ "jsdoctags": [
60120
+ {
60121
+ "name": "element",
60122
+ "type": "TmplAstElement",
60123
+ "deprecated": false,
60284
60124
  "deprecationMessage": "",
60285
60125
  "tagName": {
60286
60126
  "text": "param"
60287
60127
  }
60288
60128
  },
60289
60129
  {
60290
- "name": "newValue",
60130
+ "name": "source",
60291
60131
  "type": "string",
60292
60132
  "deprecated": false,
60293
60133
  "deprecationMessage": "",
@@ -60298,7 +60138,7 @@
60298
60138
  ]
60299
60139
  },
60300
60140
  {
60301
- "name": "unwrapExpression",
60141
+ "name": "isComponentMetadataProperty",
60302
60142
  "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60303
60143
  "ctype": "miscellaneous",
60304
60144
  "subtype": "function",
@@ -60307,18 +60147,18 @@
60307
60147
  "deprecationMessage": "",
60308
60148
  "rawdescription": "",
60309
60149
  "description": "",
60310
- "displayName": "unwrapExpression",
60150
+ "displayName": "isComponentMetadataProperty",
60311
60151
  "args": [
60312
60152
  {
60313
- "name": "expression",
60153
+ "name": "node",
60314
60154
  "deprecated": false,
60315
60155
  "deprecationMessage": ""
60316
60156
  }
60317
60157
  ],
60318
- "returnType": "ts.Expression",
60158
+ "returnType": "boolean",
60319
60159
  "jsdoctags": [
60320
60160
  {
60321
- "name": "expression",
60161
+ "name": "node",
60322
60162
  "deprecated": false,
60323
60163
  "deprecationMessage": "",
60324
60164
  "tagName": {
@@ -60328,7 +60168,7 @@
60328
60168
  ]
60329
60169
  },
60330
60170
  {
60331
- "name": "visitDir",
60171
+ "name": "isTemplateProperty",
60332
60172
  "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60333
60173
  "ctype": "miscellaneous",
60334
60174
  "subtype": "function",
@@ -60337,25 +60177,56 @@
60337
60177
  "deprecationMessage": "",
60338
60178
  "rawdescription": "",
60339
60179
  "description": "",
60340
- "displayName": "visitDir",
60180
+ "displayName": "isTemplateProperty",
60341
60181
  "args": [
60342
60182
  {
60343
- "name": "dir",
60344
- "type": "DirEntry",
60183
+ "name": "node",
60184
+ "deprecated": false,
60185
+ "deprecationMessage": ""
60186
+ }
60187
+ ],
60188
+ "returnType": "boolean",
60189
+ "jsdoctags": [
60190
+ {
60191
+ "name": "node",
60192
+ "deprecated": false,
60193
+ "deprecationMessage": "",
60194
+ "tagName": {
60195
+ "text": "param"
60196
+ }
60197
+ }
60198
+ ]
60199
+ },
60200
+ {
60201
+ "name": "isTruthyLiteralBinding",
60202
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60203
+ "ctype": "miscellaneous",
60204
+ "subtype": "function",
60205
+ "coverageIgnore": false,
60206
+ "deprecated": false,
60207
+ "deprecationMessage": "",
60208
+ "rawdescription": "A `[isHighlight]=\"expr\"` binding is only safely convertible when expr is a\nliteral that is always truthy (`true`). Anything else (a property, a ternary,\n`false`) is conditional and must be handled by the developer.",
60209
+ "description": "<p>A <code>[isHighlight]=&quot;expr&quot;</code> binding is only safely convertible when expr is a\nliteral that is always truthy (<code>true</code>). Anything else (a property, a ternary,\n<code>false</code>) is conditional and must be handled by the developer.</p>\n",
60210
+ "displayName": "isTruthyLiteralBinding",
60211
+ "args": [
60212
+ {
60213
+ "name": "input",
60214
+ "type": "TmplAstBoundAttribute",
60345
60215
  "deprecated": false,
60346
60216
  "deprecationMessage": ""
60347
60217
  },
60348
60218
  {
60349
- "name": "callback",
60219
+ "name": "source",
60220
+ "type": "string",
60350
60221
  "deprecated": false,
60351
60222
  "deprecationMessage": ""
60352
60223
  }
60353
60224
  ],
60354
- "returnType": "void",
60225
+ "returnType": "boolean",
60355
60226
  "jsdoctags": [
60356
60227
  {
60357
- "name": "dir",
60358
- "type": "DirEntry",
60228
+ "name": "input",
60229
+ "type": "TmplAstBoundAttribute",
60359
60230
  "deprecated": false,
60360
60231
  "deprecationMessage": "",
60361
60232
  "tagName": {
@@ -60363,7 +60234,8 @@
60363
60234
  }
60364
60235
  },
60365
60236
  {
60366
- "name": "callback",
60237
+ "name": "source",
60238
+ "type": "string",
60367
60239
  "deprecated": false,
60368
60240
  "deprecationMessage": "",
60369
60241
  "tagName": {
@@ -60373,7 +60245,7 @@
60373
60245
  ]
60374
60246
  },
60375
60247
  {
60376
- "name": "visitNodes",
60248
+ "name": "migrateEclLink",
60377
60249
  "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60378
60250
  "ctype": "miscellaneous",
60379
60251
  "subtype": "function",
@@ -60382,21 +60254,45 @@
60382
60254
  "deprecationMessage": "",
60383
60255
  "rawdescription": "",
60384
60256
  "description": "",
60385
- "displayName": "visitNodes",
60257
+ "displayName": "migrateEclLink",
60386
60258
  "args": [
60387
60259
  {
60388
- "name": "nodes",
60260
+ "name": "options",
60261
+ "type": "Schema",
60389
60262
  "deprecated": false,
60390
- "deprecationMessage": ""
60391
- },
60263
+ "deprecationMessage": "",
60264
+ "defaultValue": "{}"
60265
+ }
60266
+ ],
60267
+ "returnType": "Rule",
60268
+ "jsdoctags": [
60392
60269
  {
60393
- "name": "source",
60394
- "type": "string",
60270
+ "name": "options",
60271
+ "type": "Schema",
60395
60272
  "deprecated": false,
60396
- "deprecationMessage": ""
60397
- },
60273
+ "deprecationMessage": "",
60274
+ "defaultValue": "{}",
60275
+ "tagName": {
60276
+ "text": "param"
60277
+ }
60278
+ }
60279
+ ]
60280
+ },
60281
+ {
60282
+ "name": "migrateTemplate",
60283
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60284
+ "ctype": "miscellaneous",
60285
+ "subtype": "function",
60286
+ "coverageIgnore": false,
60287
+ "deprecated": false,
60288
+ "deprecationMessage": "",
60289
+ "rawdescription": "",
60290
+ "description": "",
60291
+ "displayName": "migrateTemplate",
60292
+ "args": [
60398
60293
  {
60399
- "name": "edits",
60294
+ "name": "source",
60295
+ "type": "string",
60400
60296
  "deprecated": false,
60401
60297
  "deprecationMessage": ""
60402
60298
  },
@@ -60413,16 +60309,8 @@
60413
60309
  "deprecationMessage": ""
60414
60310
  }
60415
60311
  ],
60416
- "returnType": "void",
60312
+ "returnType": "string",
60417
60313
  "jsdoctags": [
60418
- {
60419
- "name": "nodes",
60420
- "deprecated": false,
60421
- "deprecationMessage": "",
60422
- "tagName": {
60423
- "text": "param"
60424
- }
60425
- },
60426
60314
  {
60427
60315
  "name": "source",
60428
60316
  "type": "string",
@@ -60432,14 +60320,6 @@
60432
60320
  "text": "param"
60433
60321
  }
60434
60322
  },
60435
- {
60436
- "name": "edits",
60437
- "deprecated": false,
60438
- "deprecationMessage": "",
60439
- "tagName": {
60440
- "text": "param"
60441
- }
60442
- },
60443
60323
  {
60444
60324
  "name": "filePath",
60445
60325
  "type": "string",
@@ -60459,12 +60339,10 @@
60459
60339
  }
60460
60340
  }
60461
60341
  ]
60462
- }
60463
- ],
60464
- "packages/core/schematics/migrate-ecl-page-header/index.ts": [
60342
+ },
60465
60343
  {
60466
- "name": "applyEdits",
60467
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
60344
+ "name": "migrateTypeScript",
60345
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60468
60346
  "ctype": "miscellaneous",
60469
60347
  "subtype": "function",
60470
60348
  "coverageIgnore": false,
@@ -60472,7 +60350,7 @@
60472
60350
  "deprecationMessage": "",
60473
60351
  "rawdescription": "",
60474
60352
  "description": "",
60475
- "displayName": "applyEdits",
60353
+ "displayName": "migrateTypeScript",
60476
60354
  "args": [
60477
60355
  {
60478
60356
  "name": "source",
@@ -60481,7 +60359,14 @@
60481
60359
  "deprecationMessage": ""
60482
60360
  },
60483
60361
  {
60484
- "name": "edits",
60362
+ "name": "filePath",
60363
+ "type": "string",
60364
+ "deprecated": false,
60365
+ "deprecationMessage": ""
60366
+ },
60367
+ {
60368
+ "name": "context",
60369
+ "type": "SchematicContext",
60485
60370
  "deprecated": false,
60486
60371
  "deprecationMessage": ""
60487
60372
  }
@@ -60498,7 +60383,17 @@
60498
60383
  }
60499
60384
  },
60500
60385
  {
60501
- "name": "edits",
60386
+ "name": "filePath",
60387
+ "type": "string",
60388
+ "deprecated": false,
60389
+ "deprecationMessage": "",
60390
+ "tagName": {
60391
+ "text": "param"
60392
+ }
60393
+ },
60394
+ {
60395
+ "name": "context",
60396
+ "type": "SchematicContext",
60502
60397
  "deprecated": false,
60503
60398
  "deprecationMessage": "",
60504
60399
  "tagName": {
@@ -60508,8 +60403,8 @@
60508
60403
  ]
60509
60404
  },
60510
60405
  {
60511
- "name": "collectElementRename",
60512
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
60406
+ "name": "readBindingExpression",
60407
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60513
60408
  "ctype": "miscellaneous",
60514
60409
  "subtype": "function",
60515
60410
  "coverageIgnore": false,
@@ -60517,25 +60412,26 @@
60517
60412
  "deprecationMessage": "",
60518
60413
  "rawdescription": "",
60519
60414
  "description": "",
60520
- "displayName": "collectElementRename",
60415
+ "displayName": "readBindingExpression",
60521
60416
  "args": [
60522
60417
  {
60523
- "name": "element",
60524
- "type": "TmplAstElement",
60418
+ "name": "input",
60419
+ "type": "TmplAstBoundAttribute",
60525
60420
  "deprecated": false,
60526
60421
  "deprecationMessage": ""
60527
60422
  },
60528
60423
  {
60529
- "name": "edits",
60424
+ "name": "source",
60425
+ "type": "string",
60530
60426
  "deprecated": false,
60531
60427
  "deprecationMessage": ""
60532
60428
  }
60533
60429
  ],
60534
- "returnType": "void",
60430
+ "returnType": "string",
60535
60431
  "jsdoctags": [
60536
60432
  {
60537
- "name": "element",
60538
- "type": "TmplAstElement",
60433
+ "name": "input",
60434
+ "type": "TmplAstBoundAttribute",
60539
60435
  "deprecated": false,
60540
60436
  "deprecationMessage": "",
60541
60437
  "tagName": {
@@ -60543,7 +60439,8 @@
60543
60439
  }
60544
60440
  },
60545
60441
  {
60546
- "name": "edits",
60442
+ "name": "source",
60443
+ "type": "string",
60547
60444
  "deprecated": false,
60548
60445
  "deprecationMessage": "",
60549
60446
  "tagName": {
@@ -60553,27 +60450,44 @@
60553
60450
  ]
60554
60451
  },
60555
60452
  {
60556
- "name": "deduplicateEdits",
60557
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
60453
+ "name": "removeAttribute",
60454
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60558
60455
  "ctype": "miscellaneous",
60559
60456
  "subtype": "function",
60560
60457
  "coverageIgnore": false,
60561
60458
  "deprecated": false,
60562
60459
  "deprecationMessage": "",
60563
- "rawdescription": "",
60564
- "description": "",
60565
- "displayName": "deduplicateEdits",
60460
+ "rawdescription": "Removes a plain text attribute including the preceding whitespace.",
60461
+ "description": "<p>Removes a plain text attribute including the preceding whitespace.</p>\n",
60462
+ "displayName": "removeAttribute",
60566
60463
  "args": [
60567
60464
  {
60568
- "name": "edits",
60465
+ "name": "attr",
60466
+ "type": "TmplAstTextAttribute",
60467
+ "deprecated": false,
60468
+ "deprecationMessage": ""
60469
+ },
60470
+ {
60471
+ "name": "source",
60472
+ "type": "string",
60569
60473
  "deprecated": false,
60570
60474
  "deprecationMessage": ""
60571
60475
  }
60572
60476
  ],
60573
- "returnType": "Edit[]",
60477
+ "returnType": "Edit",
60574
60478
  "jsdoctags": [
60575
60479
  {
60576
- "name": "edits",
60480
+ "name": "attr",
60481
+ "type": "TmplAstTextAttribute",
60482
+ "deprecated": false,
60483
+ "deprecationMessage": "",
60484
+ "tagName": {
60485
+ "text": "param"
60486
+ }
60487
+ },
60488
+ {
60489
+ "name": "source",
60490
+ "type": "string",
60577
60491
  "deprecated": false,
60578
60492
  "deprecationMessage": "",
60579
60493
  "tagName": {
@@ -60583,27 +60497,44 @@
60583
60497
  ]
60584
60498
  },
60585
60499
  {
60586
- "name": "isComponentMetadataProperty",
60587
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
60500
+ "name": "removeBoundAttribute",
60501
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60588
60502
  "ctype": "miscellaneous",
60589
60503
  "subtype": "function",
60590
60504
  "coverageIgnore": false,
60591
60505
  "deprecated": false,
60592
60506
  "deprecationMessage": "",
60593
- "rawdescription": "",
60594
- "description": "",
60595
- "displayName": "isComponentMetadataProperty",
60507
+ "rawdescription": "Removes a bound attribute `[name]=\"...\"` including the preceding whitespace.",
60508
+ "description": "<p>Removes a bound attribute <code>[name]=&quot;...&quot;</code> including the preceding whitespace.</p>\n",
60509
+ "displayName": "removeBoundAttribute",
60596
60510
  "args": [
60597
60511
  {
60598
- "name": "node",
60512
+ "name": "attr",
60513
+ "type": "TmplAstBoundAttribute",
60514
+ "deprecated": false,
60515
+ "deprecationMessage": ""
60516
+ },
60517
+ {
60518
+ "name": "source",
60519
+ "type": "string",
60599
60520
  "deprecated": false,
60600
60521
  "deprecationMessage": ""
60601
60522
  }
60602
60523
  ],
60603
- "returnType": "boolean",
60524
+ "returnType": "Edit",
60604
60525
  "jsdoctags": [
60605
60526
  {
60606
- "name": "node",
60527
+ "name": "attr",
60528
+ "type": "TmplAstBoundAttribute",
60529
+ "deprecated": false,
60530
+ "deprecationMessage": "",
60531
+ "tagName": {
60532
+ "text": "param"
60533
+ }
60534
+ },
60535
+ {
60536
+ "name": "source",
60537
+ "type": "string",
60607
60538
  "deprecated": false,
60608
60539
  "deprecationMessage": "",
60609
60540
  "tagName": {
@@ -60613,92 +60544,101 @@
60613
60544
  ]
60614
60545
  },
60615
60546
  {
60616
- "name": "isTemplateProperty",
60617
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
60547
+ "name": "reportManual",
60548
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60618
60549
  "ctype": "miscellaneous",
60619
60550
  "subtype": "function",
60620
60551
  "coverageIgnore": false,
60621
60552
  "deprecated": false,
60622
60553
  "deprecationMessage": "",
60623
- "rawdescription": "",
60624
- "description": "",
60625
- "displayName": "isTemplateProperty",
60554
+ "rawdescription": "Logs a warning and adds a TODO comment above the element for manual follow-up.",
60555
+ "description": "<p>Logs a warning and adds a TODO comment above the element for manual follow-up.</p>\n",
60556
+ "displayName": "reportManual",
60626
60557
  "args": [
60627
60558
  {
60628
- "name": "node",
60559
+ "name": "context",
60560
+ "type": "SchematicContext",
60561
+ "deprecated": false,
60562
+ "deprecationMessage": ""
60563
+ },
60564
+ {
60565
+ "name": "filePath",
60566
+ "type": "string",
60567
+ "deprecated": false,
60568
+ "deprecationMessage": ""
60569
+ },
60570
+ {
60571
+ "name": "element",
60572
+ "type": "TmplAstElement",
60573
+ "deprecated": false,
60574
+ "deprecationMessage": ""
60575
+ },
60576
+ {
60577
+ "name": "source",
60578
+ "type": "string",
60579
+ "deprecated": false,
60580
+ "deprecationMessage": ""
60581
+ },
60582
+ {
60583
+ "name": "edits",
60584
+ "deprecated": false,
60585
+ "deprecationMessage": ""
60586
+ },
60587
+ {
60588
+ "name": "message",
60589
+ "type": "string",
60629
60590
  "deprecated": false,
60630
60591
  "deprecationMessage": ""
60631
60592
  }
60632
60593
  ],
60633
- "returnType": "boolean",
60594
+ "returnType": "void",
60634
60595
  "jsdoctags": [
60635
60596
  {
60636
- "name": "node",
60597
+ "name": "context",
60598
+ "type": "SchematicContext",
60637
60599
  "deprecated": false,
60638
60600
  "deprecationMessage": "",
60639
60601
  "tagName": {
60640
60602
  "text": "param"
60641
60603
  }
60642
- }
60643
- ]
60644
- },
60645
- {
60646
- "name": "migrateEclPageHeader",
60647
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
60648
- "ctype": "miscellaneous",
60649
- "subtype": "function",
60650
- "coverageIgnore": false,
60651
- "deprecated": false,
60652
- "deprecationMessage": "",
60653
- "rawdescription": "",
60654
- "description": "",
60655
- "displayName": "migrateEclPageHeader",
60656
- "args": [
60604
+ },
60657
60605
  {
60658
- "name": "options",
60659
- "type": "Schema",
60606
+ "name": "filePath",
60607
+ "type": "string",
60660
60608
  "deprecated": false,
60661
60609
  "deprecationMessage": "",
60662
- "defaultValue": "{}"
60663
- }
60664
- ],
60665
- "returnType": "Rule",
60666
- "jsdoctags": [
60610
+ "tagName": {
60611
+ "text": "param"
60612
+ }
60613
+ },
60667
60614
  {
60668
- "name": "options",
60669
- "type": "Schema",
60615
+ "name": "element",
60616
+ "type": "TmplAstElement",
60670
60617
  "deprecated": false,
60671
60618
  "deprecationMessage": "",
60672
- "defaultValue": "{}",
60673
60619
  "tagName": {
60674
60620
  "text": "param"
60675
60621
  }
60676
- }
60677
- ]
60678
- },
60679
- {
60680
- "name": "migrateTemplate",
60681
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
60682
- "ctype": "miscellaneous",
60683
- "subtype": "function",
60684
- "coverageIgnore": false,
60685
- "deprecated": false,
60686
- "deprecationMessage": "",
60687
- "rawdescription": "",
60688
- "description": "",
60689
- "displayName": "migrateTemplate",
60690
- "args": [
60622
+ },
60691
60623
  {
60692
60624
  "name": "source",
60693
60625
  "type": "string",
60694
60626
  "deprecated": false,
60695
- "deprecationMessage": ""
60696
- }
60697
- ],
60698
- "returnType": "string",
60699
- "jsdoctags": [
60627
+ "deprecationMessage": "",
60628
+ "tagName": {
60629
+ "text": "param"
60630
+ }
60631
+ },
60700
60632
  {
60701
- "name": "source",
60633
+ "name": "edits",
60634
+ "deprecated": false,
60635
+ "deprecationMessage": "",
60636
+ "tagName": {
60637
+ "text": "param"
60638
+ }
60639
+ },
60640
+ {
60641
+ "name": "message",
60702
60642
  "type": "string",
60703
60643
  "deprecated": false,
60704
60644
  "deprecationMessage": "",
@@ -60709,17 +60649,23 @@
60709
60649
  ]
60710
60650
  },
60711
60651
  {
60712
- "name": "migrateTypeScript",
60713
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
60652
+ "name": "setAttributeValue",
60653
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60714
60654
  "ctype": "miscellaneous",
60715
60655
  "subtype": "function",
60716
60656
  "coverageIgnore": false,
60717
60657
  "deprecated": false,
60718
60658
  "deprecationMessage": "",
60719
- "rawdescription": "",
60720
- "description": "",
60721
- "displayName": "migrateTypeScript",
60659
+ "rawdescription": "Replaces the value of a text attribute `name=\"old\"` with a new value.",
60660
+ "description": "<p>Replaces the value of a text attribute <code>name=&quot;old&quot;</code> with a new value.</p>\n",
60661
+ "displayName": "setAttributeValue",
60722
60662
  "args": [
60663
+ {
60664
+ "name": "attr",
60665
+ "type": "TmplAstTextAttribute",
60666
+ "deprecated": false,
60667
+ "deprecationMessage": ""
60668
+ },
60723
60669
  {
60724
60670
  "name": "source",
60725
60671
  "type": "string",
@@ -60727,14 +60673,23 @@
60727
60673
  "deprecationMessage": ""
60728
60674
  },
60729
60675
  {
60730
- "name": "filePath",
60676
+ "name": "newValue",
60731
60677
  "type": "string",
60732
60678
  "deprecated": false,
60733
60679
  "deprecationMessage": ""
60734
60680
  }
60735
60681
  ],
60736
- "returnType": "string",
60682
+ "returnType": "Edit",
60737
60683
  "jsdoctags": [
60684
+ {
60685
+ "name": "attr",
60686
+ "type": "TmplAstTextAttribute",
60687
+ "deprecated": false,
60688
+ "deprecationMessage": "",
60689
+ "tagName": {
60690
+ "text": "param"
60691
+ }
60692
+ },
60738
60693
  {
60739
60694
  "name": "source",
60740
60695
  "type": "string",
@@ -60745,7 +60700,7 @@
60745
60700
  }
60746
60701
  },
60747
60702
  {
60748
- "name": "filePath",
60703
+ "name": "newValue",
60749
60704
  "type": "string",
60750
60705
  "deprecated": false,
60751
60706
  "deprecationMessage": "",
@@ -60757,7 +60712,7 @@
60757
60712
  },
60758
60713
  {
60759
60714
  "name": "unwrapExpression",
60760
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
60715
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60761
60716
  "ctype": "miscellaneous",
60762
60717
  "subtype": "function",
60763
60718
  "coverageIgnore": false,
@@ -60787,7 +60742,7 @@
60787
60742
  },
60788
60743
  {
60789
60744
  "name": "visitDir",
60790
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
60745
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60791
60746
  "ctype": "miscellaneous",
60792
60747
  "subtype": "function",
60793
60748
  "coverageIgnore": false,
@@ -60832,7 +60787,7 @@
60832
60787
  },
60833
60788
  {
60834
60789
  "name": "visitNodes",
60835
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
60790
+ "file": "packages/core/schematics/migrate-ecl-link/index.ts",
60836
60791
  "ctype": "miscellaneous",
60837
60792
  "subtype": "function",
60838
60793
  "coverageIgnore": false,
@@ -60847,10 +60802,28 @@
60847
60802
  "deprecated": false,
60848
60803
  "deprecationMessage": ""
60849
60804
  },
60805
+ {
60806
+ "name": "source",
60807
+ "type": "string",
60808
+ "deprecated": false,
60809
+ "deprecationMessage": ""
60810
+ },
60850
60811
  {
60851
60812
  "name": "edits",
60852
60813
  "deprecated": false,
60853
60814
  "deprecationMessage": ""
60815
+ },
60816
+ {
60817
+ "name": "filePath",
60818
+ "type": "string",
60819
+ "deprecated": false,
60820
+ "deprecationMessage": ""
60821
+ },
60822
+ {
60823
+ "name": "context",
60824
+ "type": "SchematicContext",
60825
+ "deprecated": false,
60826
+ "deprecationMessage": ""
60854
60827
  }
60855
60828
  ],
60856
60829
  "returnType": "void",
@@ -60863,6 +60836,15 @@
60863
60836
  "text": "param"
60864
60837
  }
60865
60838
  },
60839
+ {
60840
+ "name": "source",
60841
+ "type": "string",
60842
+ "deprecated": false,
60843
+ "deprecationMessage": "",
60844
+ "tagName": {
60845
+ "text": "param"
60846
+ }
60847
+ },
60866
60848
  {
60867
60849
  "name": "edits",
60868
60850
  "deprecated": false,
@@ -60870,6 +60852,24 @@
60870
60852
  "tagName": {
60871
60853
  "text": "param"
60872
60854
  }
60855
+ },
60856
+ {
60857
+ "name": "filePath",
60858
+ "type": "string",
60859
+ "deprecated": false,
60860
+ "deprecationMessage": "",
60861
+ "tagName": {
60862
+ "text": "param"
60863
+ }
60864
+ },
60865
+ {
60866
+ "name": "context",
60867
+ "type": "SchematicContext",
60868
+ "deprecated": false,
60869
+ "deprecationMessage": "",
60870
+ "tagName": {
60871
+ "text": "param"
60872
+ }
60873
60873
  }
60874
60874
  ]
60875
60875
  }