@eui/core 22.0.0-alpha.67 → 22.0.0-alpha.69

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.
@@ -1144,12 +1144,12 @@
1144
1144
  },
1145
1145
  {
1146
1146
  "name": "Edit",
1147
- "id": "interface-Edit-ba2913a48a24293b4c7a11f3a7355ae733abcd99b6625fa243ebd78b3240c95743f9449aa35b04ec12e439e1d54ec8bf0d78c0c7ed9d2580e663f0f08cf9eb5b-5",
1148
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
1147
+ "id": "interface-Edit-4ea5f2bf16fa75da328d2855c2df843e0d88cb85f699afb589f2e86c06bb22b7deeb2b8c3335677f8c74468405cdfd062bb9fae30b0e941ca1a81cfb8658c20d-5",
1148
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
1149
1149
  "deprecated": false,
1150
1150
  "deprecationMessage": "",
1151
1151
  "type": "interface",
1152
- "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",
1152
+ "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-summary` element selector to\n * `section[eclPageSummary]`.\n *\n * In v22 the `ecl-page-summary` element selector was removed; the component only\n * matches `section[eclPageSummary]`. This schematic rewrites `<ecl-page-summary>`\n * to `<section eclPageSummary>` (and the closing tag to `</section>`) in external\n * `.html` templates and inline `@Component` templates, preserving existing\n * attributes 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-summary';\nconst NEW_TAG = 'section';\nconst ATTRIBUTE = 'eclPageSummary';\n\nexport function migrateEclPageSummary(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",
1153
1153
  "displayName": "Edit",
1154
1154
  "properties": [
1155
1155
  {
@@ -1161,7 +1161,7 @@
1161
1161
  "indexKey": "",
1162
1162
  "optional": false,
1163
1163
  "description": "",
1164
- "line": 23,
1164
+ "line": 24,
1165
1165
  "rawdescription": "\n"
1166
1166
  },
1167
1167
  {
@@ -1173,7 +1173,7 @@
1173
1173
  "indexKey": "",
1174
1174
  "optional": false,
1175
1175
  "description": "",
1176
- "line": 24,
1176
+ "line": 25,
1177
1177
  "rawdescription": "\n"
1178
1178
  },
1179
1179
  {
@@ -1185,7 +1185,7 @@
1185
1185
  "indexKey": "",
1186
1186
  "optional": false,
1187
1187
  "description": "",
1188
- "line": 22,
1188
+ "line": 23,
1189
1189
  "rawdescription": "\n"
1190
1190
  }
1191
1191
  ],
@@ -1203,12 +1203,12 @@
1203
1203
  },
1204
1204
  {
1205
1205
  "name": "Edit",
1206
- "id": "interface-Edit-4ea5f2bf16fa75da328d2855c2df843e0d88cb85f699afb589f2e86c06bb22b7deeb2b8c3335677f8c74468405cdfd062bb9fae30b0e941ca1a81cfb8658c20d-6",
1207
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
1206
+ "id": "interface-Edit-a8ce35352aa0ca0a2a8bc873b9e09d0b8c7f67ee00a3617f12150bf714784d8c65846dc4140aed4e25596563673fe33a365942644683060d26e1112c96bb67ac-6",
1207
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
1208
1208
  "deprecated": false,
1209
1209
  "deprecationMessage": "",
1210
1210
  "type": "interface",
1211
- "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-summary` element selector to\n * `section[eclPageSummary]`.\n *\n * In v22 the `ecl-page-summary` element selector was removed; the component only\n * matches `section[eclPageSummary]`. This schematic rewrites `<ecl-page-summary>`\n * to `<section eclPageSummary>` (and the closing tag to `</section>`) in external\n * `.html` templates and inline `@Component` templates, preserving existing\n * attributes 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-summary';\nconst NEW_TAG = 'section';\nconst ATTRIBUTE = 'eclPageSummary';\n\nexport function migrateEclPageSummary(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",
1211
+ "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-pagination-item` element selector to\n * `li[eclPaginationItem]`.\n *\n * In v22 the legacy `ecl-pagination-item` element selector was removed; the\n * component only matches `li[eclPaginationItem]`. This schematic rewrites\n * `<ecl-pagination-item>` to `<li eclPaginationItem>` (and the closing tag to\n * `</li>`) in external `.html` templates and inline `@Component` templates,\n * preserving existing attributes 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-pagination-item';\nconst NEW_TAG = 'li';\nconst ATTRIBUTE = 'eclPaginationItem';\n\nexport function migrateEclPagination(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",
1212
1212
  "displayName": "Edit",
1213
1213
  "properties": [
1214
1214
  {
@@ -1262,12 +1262,12 @@
1262
1262
  },
1263
1263
  {
1264
1264
  "name": "Edit",
1265
- "id": "interface-Edit-a8ce35352aa0ca0a2a8bc873b9e09d0b8c7f67ee00a3617f12150bf714784d8c65846dc4140aed4e25596563673fe33a365942644683060d26e1112c96bb67ac-7",
1266
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
1265
+ "id": "interface-Edit-ba2913a48a24293b4c7a11f3a7355ae733abcd99b6625fa243ebd78b3240c95743f9449aa35b04ec12e439e1d54ec8bf0d78c0c7ed9d2580e663f0f08cf9eb5b-7",
1266
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
1267
1267
  "deprecated": false,
1268
1268
  "deprecationMessage": "",
1269
1269
  "type": "interface",
1270
- "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-pagination-item` element selector to\n * `li[eclPaginationItem]`.\n *\n * In v22 the legacy `ecl-pagination-item` element selector was removed; the\n * component only matches `li[eclPaginationItem]`. This schematic rewrites\n * `<ecl-pagination-item>` to `<li eclPaginationItem>` (and the closing tag to\n * `</li>`) in external `.html` templates and inline `@Component` templates,\n * preserving existing attributes 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-pagination-item';\nconst NEW_TAG = 'li';\nconst ATTRIBUTE = 'eclPaginationItem';\n\nexport function migrateEclPagination(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",
1270
+ "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",
1271
1271
  "displayName": "Edit",
1272
1272
  "properties": [
1273
1273
  {
@@ -1279,7 +1279,7 @@
1279
1279
  "indexKey": "",
1280
1280
  "optional": false,
1281
1281
  "description": "",
1282
- "line": 24,
1282
+ "line": 23,
1283
1283
  "rawdescription": "\n"
1284
1284
  },
1285
1285
  {
@@ -1291,7 +1291,7 @@
1291
1291
  "indexKey": "",
1292
1292
  "optional": false,
1293
1293
  "description": "",
1294
- "line": 25,
1294
+ "line": 24,
1295
1295
  "rawdescription": "\n"
1296
1296
  },
1297
1297
  {
@@ -1303,7 +1303,7 @@
1303
1303
  "indexKey": "",
1304
1304
  "optional": false,
1305
1305
  "description": "",
1306
- "line": 23,
1306
+ "line": 22,
1307
1307
  "rawdescription": "\n"
1308
1308
  }
1309
1309
  ],
@@ -1321,12 +1321,12 @@
1321
1321
  },
1322
1322
  {
1323
1323
  "name": "Edit",
1324
- "id": "interface-Edit-85538b9b03a4d6cc8f540d7ac55af0681f69c6a8b2cc3f4bbb6973ffb4199fc7dffa6f4925f37cc888a8faf3804ebb11d9805fa6aef8e3253f9beda7ef8254c4-8",
1325
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
1324
+ "id": "interface-Edit-980d307276c8b7dbd48ad94213df663d231afab569cba05a1947cf59716ec7dcf4bd8878195c0cc50bb9e36acbd400e34de218d6fae8086e413d6940631f1c42-8",
1325
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
1326
1326
  "deprecated": false,
1327
1327
  "deprecationMessage": "",
1328
1328
  "type": "interface",
1329
- "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';\n\n/**\n * Removes the deprecated `category` input from `eclQuizCard` (EclQuizCardComponent)\n * for v21 → v22.\n *\n * Upstream ECL removed the category label from the quiz card markup and styling;\n * the input no longer renders anything and has no replacement. This schematic\n * drops the `category` attribute/binding from every element that carries the\n * `eclQuizCard` directive, in external `.html` templates and inline\n * `@Component` templates.\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 QUIZ_CARD_ATTR = 'eclQuizCard';\nconst REMOVED_INPUT = 'category';\n\nexport function migrateEclQuiz(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(QUIZ_CARD_ATTR) || !original.includes(REMOVED_INPUT)) 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 remove deprecated eclQuizCard \"category\" in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n fileCount++;\n }\n });\n\n context.logger.info(`Removed deprecated eclQuizCard \"category\" 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, source, 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(QUIZ_CARD_ATTR) && rawTemplate.includes(REMOVED_INPUT)) {\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[], source: string, edits: Edit[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (hasQuizCard(node)) {\n collectCategoryRemovals(node, source, edits);\n }\n visitNodes(node.children, source, edits);\n }\n }\n}\n\nfunction hasQuizCard(element: TmplAstElement): boolean {\n return (\n element.attributes.some((a) => a.name === QUIZ_CARD_ATTR) ||\n element.inputs.some((i) => i.name === QUIZ_CARD_ATTR)\n );\n}\n\nfunction collectCategoryRemovals(element: TmplAstElement, source: string, edits: Edit[]): void {\n for (const attr of element.attributes) {\n if (attr.name === REMOVED_INPUT) {\n edits.push(removeAttribute(attr, source));\n }\n }\n for (const input of element.inputs) {\n if (input.name === REMOVED_INPUT) {\n edits.push(removeAttribute(input, source));\n }\n }\n}\n\n/** Removes a text or bound attribute including preceding whitespace. */\nfunction removeAttribute(attr: TmplAstTextAttribute | TmplAstBoundAttribute, source: string): Edit {\n let start = attr.sourceSpan.start.offset;\n const end = attr.sourceSpan.end.offset;\n while (start > 0 && /\\s/.test(source[start - 1])) {\n start--;\n }\n return { start, end, replacement: '' };\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",
1329
+ "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-site-footer` element selector to\n * `footer[eclSiteFooter]`.\n *\n * In v22 the `ecl-site-footer` element selector was removed; the component only\n * matches `footer[eclSiteFooter]`. This schematic rewrites `<ecl-site-footer>`\n * to `<footer eclSiteFooter>` (and the closing tag to `</footer>`) in external\n * `.html` templates and inline `@Component` templates, preserving existing\n * attributes 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-site-footer';\nconst NEW_TAG = 'footer';\nconst ATTRIBUTE = 'eclSiteFooter';\n\nexport function migrateEclSiteFooter(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",
1330
1330
  "displayName": "Edit",
1331
1331
  "properties": [
1332
1332
  {
@@ -1380,12 +1380,12 @@
1380
1380
  },
1381
1381
  {
1382
1382
  "name": "Edit",
1383
- "id": "interface-Edit-980d307276c8b7dbd48ad94213df663d231afab569cba05a1947cf59716ec7dcf4bd8878195c0cc50bb9e36acbd400e34de218d6fae8086e413d6940631f1c42-9",
1384
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
1383
+ "id": "interface-Edit-c843ea269fc3d8500d533d44ebe7f67bffa8e4aed85455b57074dc76d3ff5194978ffa833f2b9d24a19121c6b30a501194aca63413c9498c63f7892da328ad45-9",
1384
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
1385
1385
  "deprecated": false,
1386
1386
  "deprecationMessage": "",
1387
1387
  "type": "interface",
1388
- "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-site-footer` element selector to\n * `footer[eclSiteFooter]`.\n *\n * In v22 the `ecl-site-footer` element selector was removed; the component only\n * matches `footer[eclSiteFooter]`. This schematic rewrites `<ecl-site-footer>`\n * to `<footer eclSiteFooter>` (and the closing tag to `</footer>`) in external\n * `.html` templates and inline `@Component` templates, preserving existing\n * attributes 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-site-footer';\nconst NEW_TAG = 'footer';\nconst ATTRIBUTE = 'eclSiteFooter';\n\nexport function migrateEclSiteFooter(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",
1388
+ "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-tab` element selector to `div[eclTab]`.\n *\n * In v22 the legacy `ecl-tab` element selector was removed; the component only\n * matches `div[eclTab]`. This schematic rewrites `<ecl-tab>` to `<div eclTab>`\n * (and the closing tag to `</div>`) in external `.html` templates and inline\n * `@Component` templates, preserving existing attributes 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-tab';\nconst NEW_TAG = 'div';\nconst ATTRIBUTE = 'eclTab';\n\nexport function migrateEclTabs(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 // Exact tag match only — must not touch e.g. `ecl-tabs` or `ecl-tab-header`.\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",
1389
1389
  "displayName": "Edit",
1390
1390
  "properties": [
1391
1391
  {
@@ -1397,7 +1397,7 @@
1397
1397
  "indexKey": "",
1398
1398
  "optional": false,
1399
1399
  "description": "",
1400
- "line": 24,
1400
+ "line": 22,
1401
1401
  "rawdescription": "\n"
1402
1402
  },
1403
1403
  {
@@ -1409,7 +1409,7 @@
1409
1409
  "indexKey": "",
1410
1410
  "optional": false,
1411
1411
  "description": "",
1412
- "line": 25,
1412
+ "line": 23,
1413
1413
  "rawdescription": "\n"
1414
1414
  },
1415
1415
  {
@@ -1421,7 +1421,7 @@
1421
1421
  "indexKey": "",
1422
1422
  "optional": false,
1423
1423
  "description": "",
1424
- "line": 23,
1424
+ "line": 21,
1425
1425
  "rawdescription": "\n"
1426
1426
  }
1427
1427
  ],
@@ -1439,12 +1439,12 @@
1439
1439
  },
1440
1440
  {
1441
1441
  "name": "Edit",
1442
- "id": "interface-Edit-c843ea269fc3d8500d533d44ebe7f67bffa8e4aed85455b57074dc76d3ff5194978ffa833f2b9d24a19121c6b30a501194aca63413c9498c63f7892da328ad45-10",
1443
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
1442
+ "id": "interface-Edit-85538b9b03a4d6cc8f540d7ac55af0681f69c6a8b2cc3f4bbb6973ffb4199fc7dffa6f4925f37cc888a8faf3804ebb11d9805fa6aef8e3253f9beda7ef8254c4-10",
1443
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
1444
1444
  "deprecated": false,
1445
1445
  "deprecationMessage": "",
1446
1446
  "type": "interface",
1447
- "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-tab` element selector to `div[eclTab]`.\n *\n * In v22 the legacy `ecl-tab` element selector was removed; the component only\n * matches `div[eclTab]`. This schematic rewrites `<ecl-tab>` to `<div eclTab>`\n * (and the closing tag to `</div>`) in external `.html` templates and inline\n * `@Component` templates, preserving existing attributes 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-tab';\nconst NEW_TAG = 'div';\nconst ATTRIBUTE = 'eclTab';\n\nexport function migrateEclTabs(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 // Exact tag match only — must not touch e.g. `ecl-tabs` or `ecl-tab-header`.\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",
1447
+ "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';\n\n/**\n * Removes the deprecated `category` input from `eclQuizCard` (EclQuizCardComponent)\n * for v21 → v22.\n *\n * Upstream ECL removed the category label from the quiz card markup and styling;\n * the input no longer renders anything and has no replacement. This schematic\n * drops the `category` attribute/binding from every element that carries the\n * `eclQuizCard` directive, in external `.html` templates and inline\n * `@Component` templates.\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 QUIZ_CARD_ATTR = 'eclQuizCard';\nconst REMOVED_INPUT = 'category';\n\nexport function migrateEclQuiz(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(QUIZ_CARD_ATTR) || !original.includes(REMOVED_INPUT)) 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 remove deprecated eclQuizCard \"category\" in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n fileCount++;\n }\n });\n\n context.logger.info(`Removed deprecated eclQuizCard \"category\" 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, source, 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(QUIZ_CARD_ATTR) && rawTemplate.includes(REMOVED_INPUT)) {\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[], source: string, edits: Edit[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (hasQuizCard(node)) {\n collectCategoryRemovals(node, source, edits);\n }\n visitNodes(node.children, source, edits);\n }\n }\n}\n\nfunction hasQuizCard(element: TmplAstElement): boolean {\n return (\n element.attributes.some((a) => a.name === QUIZ_CARD_ATTR) ||\n element.inputs.some((i) => i.name === QUIZ_CARD_ATTR)\n );\n}\n\nfunction collectCategoryRemovals(element: TmplAstElement, source: string, edits: Edit[]): void {\n for (const attr of element.attributes) {\n if (attr.name === REMOVED_INPUT) {\n edits.push(removeAttribute(attr, source));\n }\n }\n for (const input of element.inputs) {\n if (input.name === REMOVED_INPUT) {\n edits.push(removeAttribute(input, source));\n }\n }\n}\n\n/** Removes a text or bound attribute including preceding whitespace. */\nfunction removeAttribute(attr: TmplAstTextAttribute | TmplAstBoundAttribute, source: string): Edit {\n let start = attr.sourceSpan.start.offset;\n const end = attr.sourceSpan.end.offset;\n while (start > 0 && /\\s/.test(source[start - 1])) {\n start--;\n }\n return { start, end, replacement: '' };\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",
1448
1448
  "displayName": "Edit",
1449
1449
  "properties": [
1450
1450
  {
@@ -1456,7 +1456,7 @@
1456
1456
  "indexKey": "",
1457
1457
  "optional": false,
1458
1458
  "description": "",
1459
- "line": 22,
1459
+ "line": 24,
1460
1460
  "rawdescription": "\n"
1461
1461
  },
1462
1462
  {
@@ -1468,7 +1468,7 @@
1468
1468
  "indexKey": "",
1469
1469
  "optional": false,
1470
1470
  "description": "",
1471
- "line": 23,
1471
+ "line": 25,
1472
1472
  "rawdescription": "\n"
1473
1473
  },
1474
1474
  {
@@ -1480,7 +1480,7 @@
1480
1480
  "indexKey": "",
1481
1481
  "optional": false,
1482
1482
  "description": "",
1483
- "line": 21,
1483
+ "line": 23,
1484
1484
  "rawdescription": "\n"
1485
1485
  }
1486
1486
  ],
@@ -3559,12 +3559,12 @@
3559
3559
  },
3560
3560
  {
3561
3561
  "name": "Schema",
3562
- "id": "interface-Schema-ba2913a48a24293b4c7a11f3a7355ae733abcd99b6625fa243ebd78b3240c95743f9449aa35b04ec12e439e1d54ec8bf0d78c0c7ed9d2580e663f0f08cf9eb5b-9",
3563
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
3562
+ "id": "interface-Schema-4ea5f2bf16fa75da328d2855c2df843e0d88cb85f699afb589f2e86c06bb22b7deeb2b8c3335677f8c74468405cdfd062bb9fae30b0e941ca1a81cfb8658c20d-9",
3563
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
3564
3564
  "deprecated": false,
3565
3565
  "deprecationMessage": "",
3566
3566
  "type": "interface",
3567
- "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",
3567
+ "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-summary` element selector to\n * `section[eclPageSummary]`.\n *\n * In v22 the `ecl-page-summary` element selector was removed; the component only\n * matches `section[eclPageSummary]`. This schematic rewrites `<ecl-page-summary>`\n * to `<section eclPageSummary>` (and the closing tag to `</section>`) in external\n * `.html` templates and inline `@Component` templates, preserving existing\n * attributes 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-summary';\nconst NEW_TAG = 'section';\nconst ATTRIBUTE = 'eclPageSummary';\n\nexport function migrateEclPageSummary(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",
3568
3568
  "displayName": "Schema",
3569
3569
  "properties": [
3570
3570
  {
@@ -3576,7 +3576,7 @@
3576
3576
  "indexKey": "",
3577
3577
  "optional": true,
3578
3578
  "description": "",
3579
- "line": 18,
3579
+ "line": 19,
3580
3580
  "rawdescription": "\n"
3581
3581
  },
3582
3582
  {
@@ -3588,14 +3588,14 @@
3588
3588
  "indexKey": "",
3589
3589
  "optional": true,
3590
3590
  "description": "",
3591
- "line": 17,
3591
+ "line": 18,
3592
3592
  "rawdescription": "\n"
3593
3593
  }
3594
3594
  ],
3595
3595
  "indexSignatures": [],
3596
3596
  "kind": 172,
3597
- "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",
3598
- "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",
3597
+ "description": "<p>Migrates the removed <code>ecl-page-summary</code> element selector to\n<code>section[eclPageSummary]</code>.</p>\n<p>In v22 the <code>ecl-page-summary</code> element selector was removed; the component only\nmatches <code>section[eclPageSummary]</code>. This schematic rewrites <code>&lt;ecl-page-summary&gt;</code>\nto <code>&lt;section eclPageSummary&gt;</code> (and the closing tag to <code>&lt;/section&gt;</code>) in external\n<code>.html</code> templates and inline <code>@Component</code> templates, preserving existing\nattributes and content.</p>\n",
3598
+ "rawdescription": "\n\nMigrates the removed `ecl-page-summary` element selector to\n`section[eclPageSummary]`.\n\nIn v22 the `ecl-page-summary` element selector was removed; the component only\nmatches `section[eclPageSummary]`. This schematic rewrites `<ecl-page-summary>`\nto `<section eclPageSummary>` (and the closing tag to `</section>`) in external\n`.html` templates and inline `@Component` templates, preserving existing\nattributes and content.\n",
3599
3599
  "methods": [],
3600
3600
  "extends": [],
3601
3601
  "isDuplicate": true,
@@ -3608,12 +3608,12 @@
3608
3608
  },
3609
3609
  {
3610
3610
  "name": "Schema",
3611
- "id": "interface-Schema-4ea5f2bf16fa75da328d2855c2df843e0d88cb85f699afb589f2e86c06bb22b7deeb2b8c3335677f8c74468405cdfd062bb9fae30b0e941ca1a81cfb8658c20d-10",
3612
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
3611
+ "id": "interface-Schema-a8ce35352aa0ca0a2a8bc873b9e09d0b8c7f67ee00a3617f12150bf714784d8c65846dc4140aed4e25596563673fe33a365942644683060d26e1112c96bb67ac-10",
3612
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
3613
3613
  "deprecated": false,
3614
3614
  "deprecationMessage": "",
3615
3615
  "type": "interface",
3616
- "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-summary` element selector to\n * `section[eclPageSummary]`.\n *\n * In v22 the `ecl-page-summary` element selector was removed; the component only\n * matches `section[eclPageSummary]`. This schematic rewrites `<ecl-page-summary>`\n * to `<section eclPageSummary>` (and the closing tag to `</section>`) in external\n * `.html` templates and inline `@Component` templates, preserving existing\n * attributes 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-summary';\nconst NEW_TAG = 'section';\nconst ATTRIBUTE = 'eclPageSummary';\n\nexport function migrateEclPageSummary(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",
3616
+ "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-pagination-item` element selector to\n * `li[eclPaginationItem]`.\n *\n * In v22 the legacy `ecl-pagination-item` element selector was removed; the\n * component only matches `li[eclPaginationItem]`. This schematic rewrites\n * `<ecl-pagination-item>` to `<li eclPaginationItem>` (and the closing tag to\n * `</li>`) in external `.html` templates and inline `@Component` templates,\n * preserving existing attributes 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-pagination-item';\nconst NEW_TAG = 'li';\nconst ATTRIBUTE = 'eclPaginationItem';\n\nexport function migrateEclPagination(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",
3617
3617
  "displayName": "Schema",
3618
3618
  "properties": [
3619
3619
  {
@@ -3643,8 +3643,8 @@
3643
3643
  ],
3644
3644
  "indexSignatures": [],
3645
3645
  "kind": 172,
3646
- "description": "<p>Migrates the removed <code>ecl-page-summary</code> element selector to\n<code>section[eclPageSummary]</code>.</p>\n<p>In v22 the <code>ecl-page-summary</code> element selector was removed; the component only\nmatches <code>section[eclPageSummary]</code>. This schematic rewrites <code>&lt;ecl-page-summary&gt;</code>\nto <code>&lt;section eclPageSummary&gt;</code> (and the closing tag to <code>&lt;/section&gt;</code>) in external\n<code>.html</code> templates and inline <code>@Component</code> templates, preserving existing\nattributes and content.</p>\n",
3647
- "rawdescription": "\n\nMigrates the removed `ecl-page-summary` element selector to\n`section[eclPageSummary]`.\n\nIn v22 the `ecl-page-summary` element selector was removed; the component only\nmatches `section[eclPageSummary]`. This schematic rewrites `<ecl-page-summary>`\nto `<section eclPageSummary>` (and the closing tag to `</section>`) in external\n`.html` templates and inline `@Component` templates, preserving existing\nattributes and content.\n",
3646
+ "description": "<p>Migrates the removed <code>ecl-pagination-item</code> element selector to\n<code>li[eclPaginationItem]</code>.</p>\n<p>In v22 the legacy <code>ecl-pagination-item</code> element selector was removed; the\ncomponent only matches <code>li[eclPaginationItem]</code>. This schematic rewrites\n<code>&lt;ecl-pagination-item&gt;</code> to <code>&lt;li eclPaginationItem&gt;</code> (and the closing tag to\n<code>&lt;/li&gt;</code>) in external <code>.html</code> templates and inline <code>@Component</code> templates,\npreserving existing attributes and content.</p>\n",
3647
+ "rawdescription": "\n\nMigrates the removed `ecl-pagination-item` element selector to\n`li[eclPaginationItem]`.\n\nIn v22 the legacy `ecl-pagination-item` element selector was removed; the\ncomponent only matches `li[eclPaginationItem]`. This schematic rewrites\n`<ecl-pagination-item>` to `<li eclPaginationItem>` (and the closing tag to\n`</li>`) in external `.html` templates and inline `@Component` templates,\npreserving existing attributes and content.\n",
3648
3648
  "methods": [],
3649
3649
  "extends": [],
3650
3650
  "isDuplicate": true,
@@ -3657,12 +3657,12 @@
3657
3657
  },
3658
3658
  {
3659
3659
  "name": "Schema",
3660
- "id": "interface-Schema-a8ce35352aa0ca0a2a8bc873b9e09d0b8c7f67ee00a3617f12150bf714784d8c65846dc4140aed4e25596563673fe33a365942644683060d26e1112c96bb67ac-11",
3661
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
3660
+ "id": "interface-Schema-ba2913a48a24293b4c7a11f3a7355ae733abcd99b6625fa243ebd78b3240c95743f9449aa35b04ec12e439e1d54ec8bf0d78c0c7ed9d2580e663f0f08cf9eb5b-11",
3661
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
3662
3662
  "deprecated": false,
3663
3663
  "deprecationMessage": "",
3664
3664
  "type": "interface",
3665
- "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-pagination-item` element selector to\n * `li[eclPaginationItem]`.\n *\n * In v22 the legacy `ecl-pagination-item` element selector was removed; the\n * component only matches `li[eclPaginationItem]`. This schematic rewrites\n * `<ecl-pagination-item>` to `<li eclPaginationItem>` (and the closing tag to\n * `</li>`) in external `.html` templates and inline `@Component` templates,\n * preserving existing attributes 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-pagination-item';\nconst NEW_TAG = 'li';\nconst ATTRIBUTE = 'eclPaginationItem';\n\nexport function migrateEclPagination(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",
3665
+ "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",
3666
3666
  "displayName": "Schema",
3667
3667
  "properties": [
3668
3668
  {
@@ -3674,7 +3674,7 @@
3674
3674
  "indexKey": "",
3675
3675
  "optional": true,
3676
3676
  "description": "",
3677
- "line": 19,
3677
+ "line": 18,
3678
3678
  "rawdescription": "\n"
3679
3679
  },
3680
3680
  {
@@ -3686,14 +3686,14 @@
3686
3686
  "indexKey": "",
3687
3687
  "optional": true,
3688
3688
  "description": "",
3689
- "line": 18,
3689
+ "line": 17,
3690
3690
  "rawdescription": "\n"
3691
3691
  }
3692
3692
  ],
3693
3693
  "indexSignatures": [],
3694
3694
  "kind": 172,
3695
- "description": "<p>Migrates the removed <code>ecl-pagination-item</code> element selector to\n<code>li[eclPaginationItem]</code>.</p>\n<p>In v22 the legacy <code>ecl-pagination-item</code> element selector was removed; the\ncomponent only matches <code>li[eclPaginationItem]</code>. This schematic rewrites\n<code>&lt;ecl-pagination-item&gt;</code> to <code>&lt;li eclPaginationItem&gt;</code> (and the closing tag to\n<code>&lt;/li&gt;</code>) in external <code>.html</code> templates and inline <code>@Component</code> templates,\npreserving existing attributes and content.</p>\n",
3696
- "rawdescription": "\n\nMigrates the removed `ecl-pagination-item` element selector to\n`li[eclPaginationItem]`.\n\nIn v22 the legacy `ecl-pagination-item` element selector was removed; the\ncomponent only matches `li[eclPaginationItem]`. This schematic rewrites\n`<ecl-pagination-item>` to `<li eclPaginationItem>` (and the closing tag to\n`</li>`) in external `.html` templates and inline `@Component` templates,\npreserving existing attributes and content.\n",
3695
+ "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",
3696
+ "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",
3697
3697
  "methods": [],
3698
3698
  "extends": [],
3699
3699
  "isDuplicate": true,
@@ -3706,12 +3706,12 @@
3706
3706
  },
3707
3707
  {
3708
3708
  "name": "Schema",
3709
- "id": "interface-Schema-85538b9b03a4d6cc8f540d7ac55af0681f69c6a8b2cc3f4bbb6973ffb4199fc7dffa6f4925f37cc888a8faf3804ebb11d9805fa6aef8e3253f9beda7ef8254c4-12",
3710
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
3709
+ "id": "interface-Schema-0802af7de093a6df989cd8f4bc7da55cd9729f34d4642b7f5d9eae9f9a14cae4d644922a9d7ece99ba5b1c23696d54d83436ff79a54a50c37ade3ebbf0cbf92a-12",
3710
+ "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
3711
3711
  "deprecated": false,
3712
3712
  "deprecationMessage": "",
3713
3713
  "type": "interface",
3714
- "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';\n\n/**\n * Removes the deprecated `category` input from `eclQuizCard` (EclQuizCardComponent)\n * for v21 → v22.\n *\n * Upstream ECL removed the category label from the quiz card markup and styling;\n * the input no longer renders anything and has no replacement. This schematic\n * drops the `category` attribute/binding from every element that carries the\n * `eclQuizCard` directive, in external `.html` templates and inline\n * `@Component` templates.\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 QUIZ_CARD_ATTR = 'eclQuizCard';\nconst REMOVED_INPUT = 'category';\n\nexport function migrateEclQuiz(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(QUIZ_CARD_ATTR) || !original.includes(REMOVED_INPUT)) 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 remove deprecated eclQuizCard \"category\" in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n fileCount++;\n }\n });\n\n context.logger.info(`Removed deprecated eclQuizCard \"category\" 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, source, 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(QUIZ_CARD_ATTR) && rawTemplate.includes(REMOVED_INPUT)) {\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[], source: string, edits: Edit[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (hasQuizCard(node)) {\n collectCategoryRemovals(node, source, edits);\n }\n visitNodes(node.children, source, edits);\n }\n }\n}\n\nfunction hasQuizCard(element: TmplAstElement): boolean {\n return (\n element.attributes.some((a) => a.name === QUIZ_CARD_ATTR) ||\n element.inputs.some((i) => i.name === QUIZ_CARD_ATTR)\n );\n}\n\nfunction collectCategoryRemovals(element: TmplAstElement, source: string, edits: Edit[]): void {\n for (const attr of element.attributes) {\n if (attr.name === REMOVED_INPUT) {\n edits.push(removeAttribute(attr, source));\n }\n }\n for (const input of element.inputs) {\n if (input.name === REMOVED_INPUT) {\n edits.push(removeAttribute(input, source));\n }\n }\n}\n\n/** Removes a text or bound attribute including preceding whitespace. */\nfunction removeAttribute(attr: TmplAstTextAttribute | TmplAstBoundAttribute, source: string): Edit {\n let start = attr.sourceSpan.start.offset;\n const end = attr.sourceSpan.end.offset;\n while (start > 0 && /\\s/.test(source[start - 1])) {\n start--;\n }\n return { start, end, replacement: '' };\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",
3714
+ "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 * Flags usages of ECL members removed in v22 that have no automatic drop-in\n * replacement.\n *\n * For each usage it:\n * 1. Logs a precise manual-action warning.\n * 2. Inserts a `TODO: [eUI v22 migration] ...` comment on the line above the\n * usage so it is easy to locate in the editor.\n *\n * It makes **no other edits** — it never comments out, deletes, or rewrites the\n * user's code. These removed members require a developer decision (they are\n * components/directives with different APIs, or have no replacement), so the\n * schematic only points at what needs attention and leaves the change to the\n * developer. Searching a project for `TODO: [eUI v22 migration]` after the run\n * surfaces every spot to migrate.\n *\n * Removed members handled:\n * - `EclDatePickerDirective` (`input[eclDatePicker]`) → `EclDatePickerDuetDirective`\n * on `<duet-date-picker eclDatePicker>`.\n * - `EUI_ECL_DATE_PICKER` — still exported (now provides the Duet directive);\n * only the markup needs updating.\n * - `EclSiteHeaderBannerTopComponent` (`ecl-site-header-banner-top`) → removed, no replacement.\n * - `EclPageHeaderNextComponent` → removed, no longer exported.\n * - `EclRadioHelpComponent` (`[eclRadioHelp]`) → `[eclHelpBlock]` (`EclHelpBlockDirective`).\n */\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nconst TODO_PREFIX = 'TODO: [eUI v22 migration]';\n\ninterface RemovedTag {\n tag: string;\n message: string;\n}\n\ninterface RemovedAttr {\n attr: string;\n onTag?: string;\n message: string;\n}\n\ninterface RemovedIdentifier {\n name: string;\n message: string;\n}\n\nconst REMOVED_TAGS: readonly RemovedTag[] = [\n {\n tag: 'ecl-site-header-banner-top',\n message:\n 'EclSiteHeaderBannerTopComponent (<ecl-site-header-banner-top>) was removed in v22 with no replacement. Remove it and use the standard site-header variant without a banner-top.',\n },\n];\n\nconst REMOVED_ATTRS: readonly RemovedAttr[] = [\n {\n attr: 'eclDatePicker',\n onTag: 'input',\n message:\n 'EclDatePickerDirective (input[eclDatePicker]) was removed in v22. Use EclDatePickerDuetDirective on a <duet-date-picker eclDatePicker> element; yearRange/format/firstDayOfWeek are configured on the <duet-date-picker> web component.',\n },\n {\n attr: 'eclRadioHelp',\n message:\n 'EclRadioHelpComponent ([eclRadioHelp]) was removed in v22. Use [eclHelpBlock] (EclHelpBlockDirective from @eui/ecl/components/ecl-help-block) instead.',\n },\n];\n\nconst REMOVED_IDENTIFIERS: readonly RemovedIdentifier[] = [\n {\n name: 'EclDatePickerDirective',\n message:\n 'EclDatePickerDirective was removed in v22. Use EclDatePickerDuetDirective (selector \"duet-date-picker[eclDatePicker]\") instead.',\n },\n {\n name: 'EUI_ECL_DATE_PICKER',\n message:\n 'EUI_ECL_DATE_PICKER no longer includes the removed EclDatePickerDirective (it now provides EclDatePickerDuetDirective). The import still works; update your markup from <input eclDatePicker> to <duet-date-picker eclDatePicker>.',\n },\n {\n name: 'EclSiteHeaderBannerTopComponent',\n message: 'EclSiteHeaderBannerTopComponent was removed in v22 with no replacement. Remove its usage.',\n },\n {\n name: 'EclPageHeaderNextComponent',\n message: 'EclPageHeaderNextComponent was removed in v22 and is no longer exported from the package. Remove its usage.',\n },\n {\n name: 'EclRadioHelpComponent',\n message:\n 'EclRadioHelpComponent was removed in v22. Use EclHelpBlockDirective ([eclHelpBlock]) from @eui/ecl/components/ecl-help-block instead.',\n },\n];\n\n// Fast pre-check tokens — if none appear in a file, skip parsing it.\nconst TRIGGER_TOKENS = [\n ...REMOVED_TAGS.map((t) => t.tag),\n ...REMOVED_ATTRS.map((a) => a.attr),\n ...REMOVED_IDENTIFIERS.map((i) => i.name),\n];\n\n/** A TODO comment to insert above a given zero-based line. */\ninterface Annotation {\n line: number;\n commentStyle: 'ts' | 'html';\n message: string;\n}\n\nexport function migrateEclRemovedComponents(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let warningCount = 0;\n let fileCount = 0;\n\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const source = buffer.toString('utf-8');\n if (!TRIGGER_TOKENS.some((t) => source.includes(t))) return;\n\n const annotations = path.endsWith('.html')\n ? collectTemplateAnnotations(source, 0, 'html')\n : collectTypeScriptAnnotations(source, path);\n\n if (annotations.length === 0) return;\n\n for (const a of annotations) {\n context.logger.warn(`${path}:${a.line + 1} - ${a.message}`);\n warningCount++;\n }\n\n const result = applyAnnotations(source, annotations);\n if (result !== source) {\n if (options.dryRun) {\n logDryRun(context, `Would annotate removed ECL usage(s) with TODO comments in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n fileCount++;\n }\n });\n\n if (warningCount === 0) {\n context.logger.info('No usages of removed ECL components found.');\n } else {\n context.logger.info(\n `Found ${warningCount} usage(s) of removed ECL components in ${fileCount} file(s). Search for \"${TODO_PREFIX}\" and migrate them manually.`,\n );\n }\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\n// ---------------------------------------------------------------------------\n// Templates\n// ---------------------------------------------------------------------------\n\nfunction collectTemplateAnnotations(template: string, lineOffset: number, commentStyle: 'html' | 'ts'): Annotation[] {\n let parsed;\n try {\n parsed = parseTemplate(template, '', { preserveWhitespaces: true });\n } catch {\n return [];\n }\n\n const annotations: Annotation[] = [];\n const visit = (nodes: TmplAstNode[]): void => {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n collectElementAnnotation(node, lineOffset, commentStyle, annotations);\n visit(node.children);\n }\n }\n };\n visit(parsed.nodes);\n return annotations;\n}\n\nfunction collectElementAnnotation(\n element: TmplAstElement,\n lineOffset: number,\n commentStyle: 'html' | 'ts',\n annotations: Annotation[],\n): void {\n const line = element.startSourceSpan.start.line + lineOffset;\n\n const removedTag = REMOVED_TAGS.find((t) => t.tag === element.name);\n if (removedTag) {\n annotations.push({ line, commentStyle, message: removedTag.message });\n }\n\n for (const removed of REMOVED_ATTRS) {\n const hasAttr =\n element.attributes.some((a) => a.name === removed.attr) || element.inputs.some((i) => i.name === removed.attr);\n if (!hasAttr) continue;\n if (removed.onTag && element.name !== removed.onTag) continue;\n annotations.push({ line, commentStyle, message: removed.message });\n }\n}\n\n// ---------------------------------------------------------------------------\n// TypeScript\n// ---------------------------------------------------------------------------\n\nfunction collectTypeScriptAnnotations(source: string, path: string): Annotation[] {\n const sourceFile = ts.createSourceFile(path, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const annotations: Annotation[] = [];\n\n // 1. Inline templates — annotate with a `//` comment on the line of the\n // `template` property (inserting an HTML comment inside the template\n // literal is fragile across single/multi-line forms, so we place a TS\n // comment above the property instead).\n const visitForTemplates = (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 raw = init.getText(sourceFile).slice(1, -1);\n const inlineMessages = collectTemplateAnnotations(raw, 0, 'html').map((a) => a.message);\n if (inlineMessages.length > 0) {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile));\n annotations.push({ line, commentStyle: 'ts', message: [...new Set(inlineMessages)].join(' ') });\n }\n }\n }\n ts.forEachChild(node, visitForTemplates);\n };\n visitForTemplates(sourceFile);\n\n // 2. Identifier usages (imports, type references, array entries, etc.).\n // One annotation per affected line; merge messages for multiple symbols.\n const perLine = new Map<number, Set<string>>();\n const visitForIdentifiers = (node: ts.Node): void => {\n if (ts.isIdentifier(node)) {\n const removed = REMOVED_IDENTIFIERS.find((r) => r.name === node.text);\n if (removed) {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile));\n const set = perLine.get(line) ?? new Set<string>();\n set.add(removed.message);\n perLine.set(line, set);\n }\n }\n ts.forEachChild(node, visitForIdentifiers);\n };\n visitForIdentifiers(sourceFile);\n\n for (const [line, messages] of perLine) {\n annotations.push({ line, commentStyle: 'ts', message: [...messages].join(' ') });\n }\n\n return annotations;\n}\n\n// ---------------------------------------------------------------------------\n// Annotation application\n// ---------------------------------------------------------------------------\n\nfunction applyAnnotations(source: string, annotations: Annotation[]): string {\n if (annotations.length === 0) return source;\n\n const eol = source.includes('\\r\\n') ? '\\r\\n' : '\\n';\n const lines = source.split(/\\r?\\n/);\n\n // One annotation per line (merge messages if several target the same line).\n const byLine = new Map<number, Annotation>();\n for (const a of annotations) {\n const existing = byLine.get(a.line);\n if (!existing) {\n byLine.set(a.line, { ...a });\n } else if (!existing.message.includes(a.message)) {\n existing.message = `${existing.message} ${a.message}`;\n }\n }\n\n // Skip lines whose preceding line already carries this TODO (idempotency).\n // Apply bottom-up so inserted lines don't shift later targets.\n const sorted = [...byLine.values()].sort((a, b) => b.line - a.line);\n\n for (const a of sorted) {\n if (a.line < 0 || a.line >= lines.length) continue;\n\n const indent = (lines[a.line].match(/^(\\s*)/)?.[1]) ?? '';\n const todo =\n a.commentStyle === 'html'\n ? `${indent}<!-- ${TODO_PREFIX} ${a.message} -->`\n : `${indent}// ${TODO_PREFIX} ${a.message}`;\n\n // Idempotency guard: if the line above already is this exact TODO, skip.\n const prev = a.line > 0 ? lines[a.line - 1] : '';\n if (prev.trim() === todo.trim()) continue;\n\n lines.splice(a.line, 0, todo);\n }\n\n return lines.join(eol);\n}\n\n// ---------------------------------------------------------------------------\n// Shared\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 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",
3715
3715
  "displayName": "Schema",
3716
3716
  "properties": [
3717
3717
  {
@@ -3723,7 +3723,7 @@
3723
3723
  "indexKey": "",
3724
3724
  "optional": true,
3725
3725
  "description": "",
3726
- "line": 19,
3726
+ "line": 34,
3727
3727
  "rawdescription": "\n"
3728
3728
  },
3729
3729
  {
@@ -3735,14 +3735,14 @@
3735
3735
  "indexKey": "",
3736
3736
  "optional": true,
3737
3737
  "description": "",
3738
- "line": 18,
3738
+ "line": 33,
3739
3739
  "rawdescription": "\n"
3740
3740
  }
3741
3741
  ],
3742
3742
  "indexSignatures": [],
3743
3743
  "kind": 172,
3744
- "description": "<p>Removes the deprecated <code>category</code> input from <code>eclQuizCard</code> (EclQuizCardComponent)\nfor v21 → v22.</p>\n<p>Upstream ECL removed the category label from the quiz card markup and styling;\nthe input no longer renders anything and has no replacement. This schematic\ndrops the <code>category</code> attribute/binding from every element that carries the\n<code>eclQuizCard</code> directive, in external <code>.html</code> templates and inline\n<code>@Component</code> templates.</p>\n",
3745
- "rawdescription": "\n\nRemoves the deprecated `category` input from `eclQuizCard` (EclQuizCardComponent)\nfor v21 → v22.\n\nUpstream ECL removed the category label from the quiz card markup and styling;\nthe input no longer renders anything and has no replacement. This schematic\ndrops the `category` attribute/binding from every element that carries the\n`eclQuizCard` directive, in external `.html` templates and inline\n`@Component` templates.\n",
3744
+ "description": "<p>Flags usages of ECL members removed in v22 that have no automatic drop-in\nreplacement.</p>\n<p>For each usage it:</p>\n<ol>\n<li>Logs a precise manual-action warning.</li>\n<li>Inserts a <code>TODO: [eUI v22 migration] ...</code> comment on the line above the\nusage so it is easy to locate in the editor.</li>\n</ol>\n<p>It makes <strong>no other edits</strong> — it never comments out, deletes, or rewrites the\nuser&#39;s code. These removed members require a developer decision (they are\ncomponents/directives with different APIs, or have no replacement), so the\nschematic only points at what needs attention and leaves the change to the\ndeveloper. Searching a project for <code>TODO: [eUI v22 migration]</code> after the run\nsurfaces every spot to migrate.</p>\n<p>Removed members handled:</p>\n<ul>\n<li><code>EclDatePickerDirective</code> (<code>input[eclDatePicker]</code>) → <code>EclDatePickerDuetDirective</code>\non <code>&lt;duet-date-picker eclDatePicker&gt;</code>.</li>\n<li><code>EUI_ECL_DATE_PICKER</code> — still exported (now provides the Duet directive);\nonly the markup needs updating.</li>\n<li><code>EclSiteHeaderBannerTopComponent</code> (<code>ecl-site-header-banner-top</code>) → removed, no replacement.</li>\n<li><code>EclPageHeaderNextComponent</code> → removed, no longer exported.</li>\n<li><code>EclRadioHelpComponent</code> (<code>[eclRadioHelp]</code>) → <code>[eclHelpBlock]</code> (<code>EclHelpBlockDirective</code>).</li>\n</ul>\n",
3745
+ "rawdescription": "\n\nFlags usages of ECL members removed in v22 that have no automatic drop-in\nreplacement.\n\nFor each usage it:\n 1. Logs a precise manual-action warning.\n 2. Inserts a `TODO: [eUI v22 migration] ...` comment on the line above the\n usage so it is easy to locate in the editor.\n\nIt makes **no other edits** — it never comments out, deletes, or rewrites the\nuser's code. These removed members require a developer decision (they are\ncomponents/directives with different APIs, or have no replacement), so the\nschematic only points at what needs attention and leaves the change to the\ndeveloper. Searching a project for `TODO: [eUI v22 migration]` after the run\nsurfaces every spot to migrate.\n\nRemoved members handled:\n - `EclDatePickerDirective` (`input[eclDatePicker]`) → `EclDatePickerDuetDirective`\n on `<duet-date-picker eclDatePicker>`.\n - `EUI_ECL_DATE_PICKER` — still exported (now provides the Duet directive);\n only the markup needs updating.\n - `EclSiteHeaderBannerTopComponent` (`ecl-site-header-banner-top`) → removed, no replacement.\n - `EclPageHeaderNextComponent` → removed, no longer exported.\n - `EclRadioHelpComponent` (`[eclRadioHelp]`) → `[eclHelpBlock]` (`EclHelpBlockDirective`).\n",
3746
3746
  "methods": [],
3747
3747
  "extends": [],
3748
3748
  "isDuplicate": true,
@@ -3755,12 +3755,12 @@
3755
3755
  },
3756
3756
  {
3757
3757
  "name": "Schema",
3758
- "id": "interface-Schema-0802af7de093a6df989cd8f4bc7da55cd9729f34d4642b7f5d9eae9f9a14cae4d644922a9d7ece99ba5b1c23696d54d83436ff79a54a50c37ade3ebbf0cbf92a-13",
3759
- "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
3758
+ "id": "interface-Schema-980d307276c8b7dbd48ad94213df663d231afab569cba05a1947cf59716ec7dcf4bd8878195c0cc50bb9e36acbd400e34de218d6fae8086e413d6940631f1c42-13",
3759
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
3760
3760
  "deprecated": false,
3761
3761
  "deprecationMessage": "",
3762
3762
  "type": "interface",
3763
- "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 * Flags usages of ECL members removed in v22 that have no automatic drop-in\n * replacement.\n *\n * For each usage it:\n * 1. Logs a precise manual-action warning.\n * 2. Inserts a `TODO: [eUI v22 migration] ...` comment on the line above the\n * usage so it is easy to locate in the editor.\n *\n * It makes **no other edits** — it never comments out, deletes, or rewrites the\n * user's code. These removed members require a developer decision (they are\n * components/directives with different APIs, or have no replacement), so the\n * schematic only points at what needs attention and leaves the change to the\n * developer. Searching a project for `TODO: [eUI v22 migration]` after the run\n * surfaces every spot to migrate.\n *\n * Removed members handled:\n * - `EclDatePickerDirective` (`input[eclDatePicker]`) → `EclDatePickerDuetDirective`\n * on `<duet-date-picker eclDatePicker>`.\n * - `EUI_ECL_DATE_PICKER` — still exported (now provides the Duet directive);\n * only the markup needs updating.\n * - `EclSiteHeaderBannerTopComponent` (`ecl-site-header-banner-top`) → removed, no replacement.\n * - `EclPageHeaderNextComponent` → removed, no longer exported.\n * - `EclRadioHelpComponent` (`[eclRadioHelp]`) → `[eclHelpBlock]` (`EclHelpBlockDirective`).\n */\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nconst TODO_PREFIX = 'TODO: [eUI v22 migration]';\n\ninterface RemovedTag {\n tag: string;\n message: string;\n}\n\ninterface RemovedAttr {\n attr: string;\n onTag?: string;\n message: string;\n}\n\ninterface RemovedIdentifier {\n name: string;\n message: string;\n}\n\nconst REMOVED_TAGS: readonly RemovedTag[] = [\n {\n tag: 'ecl-site-header-banner-top',\n message:\n 'EclSiteHeaderBannerTopComponent (<ecl-site-header-banner-top>) was removed in v22 with no replacement. Remove it and use the standard site-header variant without a banner-top.',\n },\n];\n\nconst REMOVED_ATTRS: readonly RemovedAttr[] = [\n {\n attr: 'eclDatePicker',\n onTag: 'input',\n message:\n 'EclDatePickerDirective (input[eclDatePicker]) was removed in v22. Use EclDatePickerDuetDirective on a <duet-date-picker eclDatePicker> element; yearRange/format/firstDayOfWeek are configured on the <duet-date-picker> web component.',\n },\n {\n attr: 'eclRadioHelp',\n message:\n 'EclRadioHelpComponent ([eclRadioHelp]) was removed in v22. Use [eclHelpBlock] (EclHelpBlockDirective from @eui/ecl/components/ecl-help-block) instead.',\n },\n];\n\nconst REMOVED_IDENTIFIERS: readonly RemovedIdentifier[] = [\n {\n name: 'EclDatePickerDirective',\n message:\n 'EclDatePickerDirective was removed in v22. Use EclDatePickerDuetDirective (selector \"duet-date-picker[eclDatePicker]\") instead.',\n },\n {\n name: 'EUI_ECL_DATE_PICKER',\n message:\n 'EUI_ECL_DATE_PICKER no longer includes the removed EclDatePickerDirective (it now provides EclDatePickerDuetDirective). The import still works; update your markup from <input eclDatePicker> to <duet-date-picker eclDatePicker>.',\n },\n {\n name: 'EclSiteHeaderBannerTopComponent',\n message: 'EclSiteHeaderBannerTopComponent was removed in v22 with no replacement. Remove its usage.',\n },\n {\n name: 'EclPageHeaderNextComponent',\n message: 'EclPageHeaderNextComponent was removed in v22 and is no longer exported from the package. Remove its usage.',\n },\n {\n name: 'EclRadioHelpComponent',\n message:\n 'EclRadioHelpComponent was removed in v22. Use EclHelpBlockDirective ([eclHelpBlock]) from @eui/ecl/components/ecl-help-block instead.',\n },\n];\n\n// Fast pre-check tokens — if none appear in a file, skip parsing it.\nconst TRIGGER_TOKENS = [\n ...REMOVED_TAGS.map((t) => t.tag),\n ...REMOVED_ATTRS.map((a) => a.attr),\n ...REMOVED_IDENTIFIERS.map((i) => i.name),\n];\n\n/** A TODO comment to insert above a given zero-based line. */\ninterface Annotation {\n line: number;\n commentStyle: 'ts' | 'html';\n message: string;\n}\n\nexport function migrateEclRemovedComponents(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let warningCount = 0;\n let fileCount = 0;\n\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const source = buffer.toString('utf-8');\n if (!TRIGGER_TOKENS.some((t) => source.includes(t))) return;\n\n const annotations = path.endsWith('.html')\n ? collectTemplateAnnotations(source, 0, 'html')\n : collectTypeScriptAnnotations(source, path);\n\n if (annotations.length === 0) return;\n\n for (const a of annotations) {\n context.logger.warn(`${path}:${a.line + 1} - ${a.message}`);\n warningCount++;\n }\n\n const result = applyAnnotations(source, annotations);\n if (result !== source) {\n if (options.dryRun) {\n logDryRun(context, `Would annotate removed ECL usage(s) with TODO comments in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n fileCount++;\n }\n });\n\n if (warningCount === 0) {\n context.logger.info('No usages of removed ECL components found.');\n } else {\n context.logger.info(\n `Found ${warningCount} usage(s) of removed ECL components in ${fileCount} file(s). Search for \"${TODO_PREFIX}\" and migrate them manually.`,\n );\n }\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\n// ---------------------------------------------------------------------------\n// Templates\n// ---------------------------------------------------------------------------\n\nfunction collectTemplateAnnotations(template: string, lineOffset: number, commentStyle: 'html' | 'ts'): Annotation[] {\n let parsed;\n try {\n parsed = parseTemplate(template, '', { preserveWhitespaces: true });\n } catch {\n return [];\n }\n\n const annotations: Annotation[] = [];\n const visit = (nodes: TmplAstNode[]): void => {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n collectElementAnnotation(node, lineOffset, commentStyle, annotations);\n visit(node.children);\n }\n }\n };\n visit(parsed.nodes);\n return annotations;\n}\n\nfunction collectElementAnnotation(\n element: TmplAstElement,\n lineOffset: number,\n commentStyle: 'html' | 'ts',\n annotations: Annotation[],\n): void {\n const line = element.startSourceSpan.start.line + lineOffset;\n\n const removedTag = REMOVED_TAGS.find((t) => t.tag === element.name);\n if (removedTag) {\n annotations.push({ line, commentStyle, message: removedTag.message });\n }\n\n for (const removed of REMOVED_ATTRS) {\n const hasAttr =\n element.attributes.some((a) => a.name === removed.attr) || element.inputs.some((i) => i.name === removed.attr);\n if (!hasAttr) continue;\n if (removed.onTag && element.name !== removed.onTag) continue;\n annotations.push({ line, commentStyle, message: removed.message });\n }\n}\n\n// ---------------------------------------------------------------------------\n// TypeScript\n// ---------------------------------------------------------------------------\n\nfunction collectTypeScriptAnnotations(source: string, path: string): Annotation[] {\n const sourceFile = ts.createSourceFile(path, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const annotations: Annotation[] = [];\n\n // 1. Inline templates — annotate with a `//` comment on the line of the\n // `template` property (inserting an HTML comment inside the template\n // literal is fragile across single/multi-line forms, so we place a TS\n // comment above the property instead).\n const visitForTemplates = (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 raw = init.getText(sourceFile).slice(1, -1);\n const inlineMessages = collectTemplateAnnotations(raw, 0, 'html').map((a) => a.message);\n if (inlineMessages.length > 0) {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile));\n annotations.push({ line, commentStyle: 'ts', message: [...new Set(inlineMessages)].join(' ') });\n }\n }\n }\n ts.forEachChild(node, visitForTemplates);\n };\n visitForTemplates(sourceFile);\n\n // 2. Identifier usages (imports, type references, array entries, etc.).\n // One annotation per affected line; merge messages for multiple symbols.\n const perLine = new Map<number, Set<string>>();\n const visitForIdentifiers = (node: ts.Node): void => {\n if (ts.isIdentifier(node)) {\n const removed = REMOVED_IDENTIFIERS.find((r) => r.name === node.text);\n if (removed) {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile));\n const set = perLine.get(line) ?? new Set<string>();\n set.add(removed.message);\n perLine.set(line, set);\n }\n }\n ts.forEachChild(node, visitForIdentifiers);\n };\n visitForIdentifiers(sourceFile);\n\n for (const [line, messages] of perLine) {\n annotations.push({ line, commentStyle: 'ts', message: [...messages].join(' ') });\n }\n\n return annotations;\n}\n\n// ---------------------------------------------------------------------------\n// Annotation application\n// ---------------------------------------------------------------------------\n\nfunction applyAnnotations(source: string, annotations: Annotation[]): string {\n if (annotations.length === 0) return source;\n\n const eol = source.includes('\\r\\n') ? '\\r\\n' : '\\n';\n const lines = source.split(/\\r?\\n/);\n\n // One annotation per line (merge messages if several target the same line).\n const byLine = new Map<number, Annotation>();\n for (const a of annotations) {\n const existing = byLine.get(a.line);\n if (!existing) {\n byLine.set(a.line, { ...a });\n } else if (!existing.message.includes(a.message)) {\n existing.message = `${existing.message} ${a.message}`;\n }\n }\n\n // Skip lines whose preceding line already carries this TODO (idempotency).\n // Apply bottom-up so inserted lines don't shift later targets.\n const sorted = [...byLine.values()].sort((a, b) => b.line - a.line);\n\n for (const a of sorted) {\n if (a.line < 0 || a.line >= lines.length) continue;\n\n const indent = (lines[a.line].match(/^(\\s*)/)?.[1]) ?? '';\n const todo =\n a.commentStyle === 'html'\n ? `${indent}<!-- ${TODO_PREFIX} ${a.message} -->`\n : `${indent}// ${TODO_PREFIX} ${a.message}`;\n\n // Idempotency guard: if the line above already is this exact TODO, skip.\n const prev = a.line > 0 ? lines[a.line - 1] : '';\n if (prev.trim() === todo.trim()) continue;\n\n lines.splice(a.line, 0, todo);\n }\n\n return lines.join(eol);\n}\n\n// ---------------------------------------------------------------------------\n// Shared\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 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",
3763
+ "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-site-footer` element selector to\n * `footer[eclSiteFooter]`.\n *\n * In v22 the `ecl-site-footer` element selector was removed; the component only\n * matches `footer[eclSiteFooter]`. This schematic rewrites `<ecl-site-footer>`\n * to `<footer eclSiteFooter>` (and the closing tag to `</footer>`) in external\n * `.html` templates and inline `@Component` templates, preserving existing\n * attributes 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-site-footer';\nconst NEW_TAG = 'footer';\nconst ATTRIBUTE = 'eclSiteFooter';\n\nexport function migrateEclSiteFooter(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",
3764
3764
  "displayName": "Schema",
3765
3765
  "properties": [
3766
3766
  {
@@ -3772,7 +3772,7 @@
3772
3772
  "indexKey": "",
3773
3773
  "optional": true,
3774
3774
  "description": "",
3775
- "line": 34,
3775
+ "line": 19,
3776
3776
  "rawdescription": "\n"
3777
3777
  },
3778
3778
  {
@@ -3784,14 +3784,14 @@
3784
3784
  "indexKey": "",
3785
3785
  "optional": true,
3786
3786
  "description": "",
3787
- "line": 33,
3787
+ "line": 18,
3788
3788
  "rawdescription": "\n"
3789
3789
  }
3790
3790
  ],
3791
3791
  "indexSignatures": [],
3792
3792
  "kind": 172,
3793
- "description": "<p>Flags usages of ECL members removed in v22 that have no automatic drop-in\nreplacement.</p>\n<p>For each usage it:</p>\n<ol>\n<li>Logs a precise manual-action warning.</li>\n<li>Inserts a <code>TODO: [eUI v22 migration] ...</code> comment on the line above the\nusage so it is easy to locate in the editor.</li>\n</ol>\n<p>It makes <strong>no other edits</strong> — it never comments out, deletes, or rewrites the\nuser&#39;s code. These removed members require a developer decision (they are\ncomponents/directives with different APIs, or have no replacement), so the\nschematic only points at what needs attention and leaves the change to the\ndeveloper. Searching a project for <code>TODO: [eUI v22 migration]</code> after the run\nsurfaces every spot to migrate.</p>\n<p>Removed members handled:</p>\n<ul>\n<li><code>EclDatePickerDirective</code> (<code>input[eclDatePicker]</code>) → <code>EclDatePickerDuetDirective</code>\non <code>&lt;duet-date-picker eclDatePicker&gt;</code>.</li>\n<li><code>EUI_ECL_DATE_PICKER</code> — still exported (now provides the Duet directive);\nonly the markup needs updating.</li>\n<li><code>EclSiteHeaderBannerTopComponent</code> (<code>ecl-site-header-banner-top</code>) → removed, no replacement.</li>\n<li><code>EclPageHeaderNextComponent</code> → removed, no longer exported.</li>\n<li><code>EclRadioHelpComponent</code> (<code>[eclRadioHelp]</code>) → <code>[eclHelpBlock]</code> (<code>EclHelpBlockDirective</code>).</li>\n</ul>\n",
3794
- "rawdescription": "\n\nFlags usages of ECL members removed in v22 that have no automatic drop-in\nreplacement.\n\nFor each usage it:\n 1. Logs a precise manual-action warning.\n 2. Inserts a `TODO: [eUI v22 migration] ...` comment on the line above the\n usage so it is easy to locate in the editor.\n\nIt makes **no other edits** — it never comments out, deletes, or rewrites the\nuser's code. These removed members require a developer decision (they are\ncomponents/directives with different APIs, or have no replacement), so the\nschematic only points at what needs attention and leaves the change to the\ndeveloper. Searching a project for `TODO: [eUI v22 migration]` after the run\nsurfaces every spot to migrate.\n\nRemoved members handled:\n - `EclDatePickerDirective` (`input[eclDatePicker]`) → `EclDatePickerDuetDirective`\n on `<duet-date-picker eclDatePicker>`.\n - `EUI_ECL_DATE_PICKER` — still exported (now provides the Duet directive);\n only the markup needs updating.\n - `EclSiteHeaderBannerTopComponent` (`ecl-site-header-banner-top`) → removed, no replacement.\n - `EclPageHeaderNextComponent` → removed, no longer exported.\n - `EclRadioHelpComponent` (`[eclRadioHelp]`) → `[eclHelpBlock]` (`EclHelpBlockDirective`).\n",
3793
+ "description": "<p>Migrates the removed <code>ecl-site-footer</code> element selector to\n<code>footer[eclSiteFooter]</code>.</p>\n<p>In v22 the <code>ecl-site-footer</code> element selector was removed; the component only\nmatches <code>footer[eclSiteFooter]</code>. This schematic rewrites <code>&lt;ecl-site-footer&gt;</code>\nto <code>&lt;footer eclSiteFooter&gt;</code> (and the closing tag to <code>&lt;/footer&gt;</code>) in external\n<code>.html</code> templates and inline <code>@Component</code> templates, preserving existing\nattributes and content.</p>\n",
3794
+ "rawdescription": "\n\nMigrates the removed `ecl-site-footer` element selector to\n`footer[eclSiteFooter]`.\n\nIn v22 the `ecl-site-footer` element selector was removed; the component only\nmatches `footer[eclSiteFooter]`. This schematic rewrites `<ecl-site-footer>`\nto `<footer eclSiteFooter>` (and the closing tag to `</footer>`) in external\n`.html` templates and inline `@Component` templates, preserving existing\nattributes and content.\n",
3795
3795
  "methods": [],
3796
3796
  "extends": [],
3797
3797
  "isDuplicate": true,
@@ -3804,12 +3804,12 @@
3804
3804
  },
3805
3805
  {
3806
3806
  "name": "Schema",
3807
- "id": "interface-Schema-980d307276c8b7dbd48ad94213df663d231afab569cba05a1947cf59716ec7dcf4bd8878195c0cc50bb9e36acbd400e34de218d6fae8086e413d6940631f1c42-14",
3808
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
3807
+ "id": "interface-Schema-c843ea269fc3d8500d533d44ebe7f67bffa8e4aed85455b57074dc76d3ff5194978ffa833f2b9d24a19121c6b30a501194aca63413c9498c63f7892da328ad45-14",
3808
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
3809
3809
  "deprecated": false,
3810
3810
  "deprecationMessage": "",
3811
3811
  "type": "interface",
3812
- "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-site-footer` element selector to\n * `footer[eclSiteFooter]`.\n *\n * In v22 the `ecl-site-footer` element selector was removed; the component only\n * matches `footer[eclSiteFooter]`. This schematic rewrites `<ecl-site-footer>`\n * to `<footer eclSiteFooter>` (and the closing tag to `</footer>`) in external\n * `.html` templates and inline `@Component` templates, preserving existing\n * attributes 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-site-footer';\nconst NEW_TAG = 'footer';\nconst ATTRIBUTE = 'eclSiteFooter';\n\nexport function migrateEclSiteFooter(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",
3812
+ "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-tab` element selector to `div[eclTab]`.\n *\n * In v22 the legacy `ecl-tab` element selector was removed; the component only\n * matches `div[eclTab]`. This schematic rewrites `<ecl-tab>` to `<div eclTab>`\n * (and the closing tag to `</div>`) in external `.html` templates and inline\n * `@Component` templates, preserving existing attributes 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-tab';\nconst NEW_TAG = 'div';\nconst ATTRIBUTE = 'eclTab';\n\nexport function migrateEclTabs(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 // Exact tag match only — must not touch e.g. `ecl-tabs` or `ecl-tab-header`.\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",
3813
3813
  "displayName": "Schema",
3814
3814
  "properties": [
3815
3815
  {
@@ -3821,7 +3821,7 @@
3821
3821
  "indexKey": "",
3822
3822
  "optional": true,
3823
3823
  "description": "",
3824
- "line": 19,
3824
+ "line": 17,
3825
3825
  "rawdescription": "\n"
3826
3826
  },
3827
3827
  {
@@ -3833,14 +3833,14 @@
3833
3833
  "indexKey": "",
3834
3834
  "optional": true,
3835
3835
  "description": "",
3836
- "line": 18,
3836
+ "line": 16,
3837
3837
  "rawdescription": "\n"
3838
3838
  }
3839
3839
  ],
3840
3840
  "indexSignatures": [],
3841
3841
  "kind": 172,
3842
- "description": "<p>Migrates the removed <code>ecl-site-footer</code> element selector to\n<code>footer[eclSiteFooter]</code>.</p>\n<p>In v22 the <code>ecl-site-footer</code> element selector was removed; the component only\nmatches <code>footer[eclSiteFooter]</code>. This schematic rewrites <code>&lt;ecl-site-footer&gt;</code>\nto <code>&lt;footer eclSiteFooter&gt;</code> (and the closing tag to <code>&lt;/footer&gt;</code>) in external\n<code>.html</code> templates and inline <code>@Component</code> templates, preserving existing\nattributes and content.</p>\n",
3843
- "rawdescription": "\n\nMigrates the removed `ecl-site-footer` element selector to\n`footer[eclSiteFooter]`.\n\nIn v22 the `ecl-site-footer` element selector was removed; the component only\nmatches `footer[eclSiteFooter]`. This schematic rewrites `<ecl-site-footer>`\nto `<footer eclSiteFooter>` (and the closing tag to `</footer>`) in external\n`.html` templates and inline `@Component` templates, preserving existing\nattributes and content.\n",
3842
+ "description": "<p>Migrates the removed <code>ecl-tab</code> element selector to <code>div[eclTab]</code>.</p>\n<p>In v22 the legacy <code>ecl-tab</code> element selector was removed; the component only\nmatches <code>div[eclTab]</code>. This schematic rewrites <code>&lt;ecl-tab&gt;</code> to <code>&lt;div eclTab&gt;</code>\n(and the closing tag to <code>&lt;/div&gt;</code>) in external <code>.html</code> templates and inline\n<code>@Component</code> templates, preserving existing attributes and content.</p>\n",
3843
+ "rawdescription": "\n\nMigrates the removed `ecl-tab` element selector to `div[eclTab]`.\n\nIn v22 the legacy `ecl-tab` element selector was removed; the component only\nmatches `div[eclTab]`. This schematic rewrites `<ecl-tab>` to `<div eclTab>`\n(and the closing tag to `</div>`) in external `.html` templates and inline\n`@Component` templates, preserving existing attributes and content.\n",
3844
3844
  "methods": [],
3845
3845
  "extends": [],
3846
3846
  "isDuplicate": true,
@@ -3853,12 +3853,12 @@
3853
3853
  },
3854
3854
  {
3855
3855
  "name": "Schema",
3856
- "id": "interface-Schema-c843ea269fc3d8500d533d44ebe7f67bffa8e4aed85455b57074dc76d3ff5194978ffa833f2b9d24a19121c6b30a501194aca63413c9498c63f7892da328ad45-15",
3857
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
3856
+ "id": "interface-Schema-85538b9b03a4d6cc8f540d7ac55af0681f69c6a8b2cc3f4bbb6973ffb4199fc7dffa6f4925f37cc888a8faf3804ebb11d9805fa6aef8e3253f9beda7ef8254c4-15",
3857
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
3858
3858
  "deprecated": false,
3859
3859
  "deprecationMessage": "",
3860
3860
  "type": "interface",
3861
- "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-tab` element selector to `div[eclTab]`.\n *\n * In v22 the legacy `ecl-tab` element selector was removed; the component only\n * matches `div[eclTab]`. This schematic rewrites `<ecl-tab>` to `<div eclTab>`\n * (and the closing tag to `</div>`) in external `.html` templates and inline\n * `@Component` templates, preserving existing attributes 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-tab';\nconst NEW_TAG = 'div';\nconst ATTRIBUTE = 'eclTab';\n\nexport function migrateEclTabs(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 // Exact tag match only — must not touch e.g. `ecl-tabs` or `ecl-tab-header`.\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",
3861
+ "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';\n\n/**\n * Removes the deprecated `category` input from `eclQuizCard` (EclQuizCardComponent)\n * for v21 → v22.\n *\n * Upstream ECL removed the category label from the quiz card markup and styling;\n * the input no longer renders anything and has no replacement. This schematic\n * drops the `category` attribute/binding from every element that carries the\n * `eclQuizCard` directive, in external `.html` templates and inline\n * `@Component` templates.\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 QUIZ_CARD_ATTR = 'eclQuizCard';\nconst REMOVED_INPUT = 'category';\n\nexport function migrateEclQuiz(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(QUIZ_CARD_ATTR) || !original.includes(REMOVED_INPUT)) 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 remove deprecated eclQuizCard \"category\" in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n fileCount++;\n }\n });\n\n context.logger.info(`Removed deprecated eclQuizCard \"category\" 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, source, 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(QUIZ_CARD_ATTR) && rawTemplate.includes(REMOVED_INPUT)) {\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[], source: string, edits: Edit[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (hasQuizCard(node)) {\n collectCategoryRemovals(node, source, edits);\n }\n visitNodes(node.children, source, edits);\n }\n }\n}\n\nfunction hasQuizCard(element: TmplAstElement): boolean {\n return (\n element.attributes.some((a) => a.name === QUIZ_CARD_ATTR) ||\n element.inputs.some((i) => i.name === QUIZ_CARD_ATTR)\n );\n}\n\nfunction collectCategoryRemovals(element: TmplAstElement, source: string, edits: Edit[]): void {\n for (const attr of element.attributes) {\n if (attr.name === REMOVED_INPUT) {\n edits.push(removeAttribute(attr, source));\n }\n }\n for (const input of element.inputs) {\n if (input.name === REMOVED_INPUT) {\n edits.push(removeAttribute(input, source));\n }\n }\n}\n\n/** Removes a text or bound attribute including preceding whitespace. */\nfunction removeAttribute(attr: TmplAstTextAttribute | TmplAstBoundAttribute, source: string): Edit {\n let start = attr.sourceSpan.start.offset;\n const end = attr.sourceSpan.end.offset;\n while (start > 0 && /\\s/.test(source[start - 1])) {\n start--;\n }\n return { start, end, replacement: '' };\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",
3862
3862
  "displayName": "Schema",
3863
3863
  "properties": [
3864
3864
  {
@@ -3870,7 +3870,7 @@
3870
3870
  "indexKey": "",
3871
3871
  "optional": true,
3872
3872
  "description": "",
3873
- "line": 17,
3873
+ "line": 19,
3874
3874
  "rawdescription": "\n"
3875
3875
  },
3876
3876
  {
@@ -3882,14 +3882,14 @@
3882
3882
  "indexKey": "",
3883
3883
  "optional": true,
3884
3884
  "description": "",
3885
- "line": 16,
3885
+ "line": 18,
3886
3886
  "rawdescription": "\n"
3887
3887
  }
3888
3888
  ],
3889
3889
  "indexSignatures": [],
3890
3890
  "kind": 172,
3891
- "description": "<p>Migrates the removed <code>ecl-tab</code> element selector to <code>div[eclTab]</code>.</p>\n<p>In v22 the legacy <code>ecl-tab</code> element selector was removed; the component only\nmatches <code>div[eclTab]</code>. This schematic rewrites <code>&lt;ecl-tab&gt;</code> to <code>&lt;div eclTab&gt;</code>\n(and the closing tag to <code>&lt;/div&gt;</code>) in external <code>.html</code> templates and inline\n<code>@Component</code> templates, preserving existing attributes and content.</p>\n",
3892
- "rawdescription": "\n\nMigrates the removed `ecl-tab` element selector to `div[eclTab]`.\n\nIn v22 the legacy `ecl-tab` element selector was removed; the component only\nmatches `div[eclTab]`. This schematic rewrites `<ecl-tab>` to `<div eclTab>`\n(and the closing tag to `</div>`) in external `.html` templates and inline\n`@Component` templates, preserving existing attributes and content.\n",
3891
+ "description": "<p>Removes the deprecated <code>category</code> input from <code>eclQuizCard</code> (EclQuizCardComponent)\nfor v21 → v22.</p>\n<p>Upstream ECL removed the category label from the quiz card markup and styling;\nthe input no longer renders anything and has no replacement. This schematic\ndrops the <code>category</code> attribute/binding from every element that carries the\n<code>eclQuizCard</code> directive, in external <code>.html</code> templates and inline\n<code>@Component</code> templates.</p>\n",
3892
+ "rawdescription": "\n\nRemoves the deprecated `category` input from `eclQuizCard` (EclQuizCardComponent)\nfor v21 → v22.\n\nUpstream ECL removed the category label from the quiz card markup and styling;\nthe input no longer renders anything and has no replacement. This schematic\ndrops the `category` attribute/binding from every element that carries the\n`eclQuizCard` directive, in external `.html` templates and inline\n`@Component` templates.\n",
3893
3893
  "methods": [],
3894
3894
  "extends": [],
3895
3895
  "isDuplicate": true,
@@ -17494,9 +17494,9 @@
17494
17494
  }
17495
17495
  },
17496
17496
  {
17497
- "name": "UxRequestErrorModelInterceptor",
17498
- "id": "injectable-UxRequestErrorModelInterceptor-c3b8e1b08806c278d09270cfddf2a0b325ec49a6d8d2a1d0dbe6eb599acc527635395d1f8fe6d5ad0b4c40bc0f9b17ae9eb62549fb6ef8a7825b82ac0ecdba87",
17499
- "file": "packages/core/src/lib/interceptors/ux-request-error-model.interceptor.ts",
17497
+ "name": "RequestErrorInterceptor",
17498
+ "id": "injectable-RequestErrorInterceptor-6593546411830e2f079e3950d5b067f4c63599acc7c8aed02f9ba79893054fb50b1044d4874a96a66bda6471ae1601a03434cfa608031fe4144e4f21ac5f88af",
17499
+ "file": "packages/core/src/lib/interceptors/request-error.interceptor.ts",
17500
17500
  "coverageIgnore": false,
17501
17501
  "properties": [],
17502
17502
  "methods": [
@@ -17559,7 +17559,7 @@
17559
17559
  "deprecationMessage": "",
17560
17560
  "description": "",
17561
17561
  "rawdescription": "\n",
17562
- "sourceCode": "import { Injectable, InjectionToken, inject } from '@angular/core';\nimport {\n HttpErrorResponse,\n HttpEvent,\n HttpHandler,\n HttpInterceptor,\n HttpRequest,\n} from '@angular/common/http';\nimport { Observable, of } from 'rxjs';\nimport { catchError } from 'rxjs/operators';\nimport { ErrorMappingHandler, transformToUxHttpResponse, UxHttpErrorResponse } from '@eui/base';\n\nexport const UX_ERROR_MAPPING_HANDLER_TOKEN = new InjectionToken<ErrorMappingHandler>('UX_ERROR_MAPPING_HANDLER');\n\n@Injectable()\nexport class UxRequestErrorModelInterceptor implements HttpInterceptor {\n private errorMappingHandler = inject<ErrorMappingHandler>(UX_ERROR_MAPPING_HANDLER_TOKEN);\n\n // TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {\n return next.handle(req).pipe(\n // TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n catchError((err: any) => {\n if (this.errorMappingHandler) {\n if (err instanceof HttpErrorResponse) {\n err = transformToUxHttpResponse(err, this.errorMappingHandler) as UxHttpErrorResponse;\n }\n }\n return of(err);\n }),\n );\n }\n}\n",
17562
+ "sourceCode": "import { Injectable, InjectionToken, inject } from '@angular/core';\nimport {\n HttpErrorResponse,\n HttpEvent,\n HttpHandler,\n HttpInterceptor,\n HttpRequest,\n} from '@angular/common/http';\nimport { Observable, of } from 'rxjs';\nimport { catchError } from 'rxjs/operators';\nimport { ErrorMappingHandler, transformToEuiHttpResponse, EuiHttpErrorResponse } from '@eui/base';\n\nexport const EUI_ERROR_MAPPING_HANDLER_TOKEN = new InjectionToken<ErrorMappingHandler>('EUI_ERROR_MAPPING_HANDLER');\n\n@Injectable()\nexport class RequestErrorInterceptor implements HttpInterceptor {\n private errorMappingHandler = inject<ErrorMappingHandler>(EUI_ERROR_MAPPING_HANDLER_TOKEN);\n\n // TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> {\n return next.handle(req).pipe(\n // TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n catchError((err: any) => {\n if (this.errorMappingHandler) {\n if (err instanceof HttpErrorResponse) {\n err = transformToEuiHttpResponse(err, this.errorMappingHandler) as EuiHttpErrorResponse;\n }\n }\n return of(err);\n }),\n );\n }\n}\n",
17563
17563
  "extends": [],
17564
17564
  "type": "interceptor",
17565
17565
  "relationships": {
@@ -23932,34 +23932,34 @@
23932
23932
  "name": "ATTRIBUTE",
23933
23933
  "ctype": "miscellaneous",
23934
23934
  "subtype": "variable",
23935
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
23935
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
23936
23936
  "coverageIgnore": false,
23937
23937
  "deprecated": false,
23938
23938
  "deprecationMessage": "",
23939
23939
  "type": "string",
23940
- "defaultValue": "'eclPageHeader'"
23940
+ "defaultValue": "'eclPageSummary'"
23941
23941
  },
23942
23942
  {
23943
23943
  "name": "ATTRIBUTE",
23944
23944
  "ctype": "miscellaneous",
23945
23945
  "subtype": "variable",
23946
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
23946
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
23947
23947
  "coverageIgnore": false,
23948
23948
  "deprecated": false,
23949
23949
  "deprecationMessage": "",
23950
23950
  "type": "string",
23951
- "defaultValue": "'eclPageSummary'"
23951
+ "defaultValue": "'eclPaginationItem'"
23952
23952
  },
23953
23953
  {
23954
23954
  "name": "ATTRIBUTE",
23955
23955
  "ctype": "miscellaneous",
23956
23956
  "subtype": "variable",
23957
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
23957
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
23958
23958
  "coverageIgnore": false,
23959
23959
  "deprecated": false,
23960
23960
  "deprecationMessage": "",
23961
23961
  "type": "string",
23962
- "defaultValue": "'eclPaginationItem'"
23962
+ "defaultValue": "'eclPageHeader'"
23963
23963
  },
23964
23964
  {
23965
23965
  "name": "ATTRIBUTE",
@@ -24508,6 +24508,17 @@
24508
24508
  "type": "[]",
24509
24509
  "defaultValue": "['euiButton', 'euiList', 'euiListItem']"
24510
24510
  },
24511
+ {
24512
+ "name": "EUI_ERROR_MAPPING_HANDLER_TOKEN",
24513
+ "ctype": "miscellaneous",
24514
+ "subtype": "variable",
24515
+ "file": "packages/core/src/lib/interceptors/request-error.interceptor.ts",
24516
+ "coverageIgnore": false,
24517
+ "deprecated": false,
24518
+ "deprecationMessage": "",
24519
+ "type": "unknown",
24520
+ "defaultValue": "new InjectionToken<ErrorMappingHandler>('EUI_ERROR_MAPPING_HANDLER')"
24521
+ },
24511
24522
  {
24512
24523
  "name": "EUI_SELECTOR_TO_CLASS",
24513
24524
  "ctype": "miscellaneous",
@@ -25332,34 +25343,34 @@
25332
25343
  "name": "NEW_TAG",
25333
25344
  "ctype": "miscellaneous",
25334
25345
  "subtype": "variable",
25335
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
25346
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
25336
25347
  "coverageIgnore": false,
25337
25348
  "deprecated": false,
25338
25349
  "deprecationMessage": "",
25339
25350
  "type": "string",
25340
- "defaultValue": "'div'"
25351
+ "defaultValue": "'section'"
25341
25352
  },
25342
25353
  {
25343
25354
  "name": "NEW_TAG",
25344
25355
  "ctype": "miscellaneous",
25345
25356
  "subtype": "variable",
25346
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
25357
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
25347
25358
  "coverageIgnore": false,
25348
25359
  "deprecated": false,
25349
25360
  "deprecationMessage": "",
25350
25361
  "type": "string",
25351
- "defaultValue": "'section'"
25362
+ "defaultValue": "'li'"
25352
25363
  },
25353
25364
  {
25354
25365
  "name": "NEW_TAG",
25355
25366
  "ctype": "miscellaneous",
25356
25367
  "subtype": "variable",
25357
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
25368
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
25358
25369
  "coverageIgnore": false,
25359
25370
  "deprecated": false,
25360
25371
  "deprecationMessage": "",
25361
25372
  "type": "string",
25362
- "defaultValue": "'li'"
25373
+ "defaultValue": "'div'"
25363
25374
  },
25364
25375
  {
25365
25376
  "name": "NEW_TAG",
@@ -25565,34 +25576,34 @@
25565
25576
  "name": "OLD_TAG",
25566
25577
  "ctype": "miscellaneous",
25567
25578
  "subtype": "variable",
25568
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
25579
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
25569
25580
  "coverageIgnore": false,
25570
25581
  "deprecated": false,
25571
25582
  "deprecationMessage": "",
25572
25583
  "type": "string",
25573
- "defaultValue": "'ecl-page-header'"
25584
+ "defaultValue": "'ecl-page-summary'"
25574
25585
  },
25575
25586
  {
25576
25587
  "name": "OLD_TAG",
25577
25588
  "ctype": "miscellaneous",
25578
25589
  "subtype": "variable",
25579
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
25590
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
25580
25591
  "coverageIgnore": false,
25581
25592
  "deprecated": false,
25582
25593
  "deprecationMessage": "",
25583
25594
  "type": "string",
25584
- "defaultValue": "'ecl-page-summary'"
25595
+ "defaultValue": "'ecl-pagination-item'"
25585
25596
  },
25586
25597
  {
25587
25598
  "name": "OLD_TAG",
25588
25599
  "ctype": "miscellaneous",
25589
25600
  "subtype": "variable",
25590
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
25601
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
25591
25602
  "coverageIgnore": false,
25592
25603
  "deprecated": false,
25593
25604
  "deprecationMessage": "",
25594
25605
  "type": "string",
25595
- "defaultValue": "'ecl-pagination-item'"
25606
+ "defaultValue": "'ecl-page-header'"
25596
25607
  },
25597
25608
  {
25598
25609
  "name": "OLD_TAG",
@@ -26266,17 +26277,6 @@
26266
26277
  "type": "unknown",
26267
26278
  "defaultValue": "(state: UserState, action: UpdateUserRightsAction): UserState =>\n Object.assign({}, state, { rights: [...action.payload] })"
26268
26279
  },
26269
- {
26270
- "name": "UX_ERROR_MAPPING_HANDLER_TOKEN",
26271
- "ctype": "miscellaneous",
26272
- "subtype": "variable",
26273
- "file": "packages/core/src/lib/interceptors/ux-request-error-model.interceptor.ts",
26274
- "coverageIgnore": false,
26275
- "deprecated": false,
26276
- "deprecationMessage": "",
26277
- "type": "unknown",
26278
- "defaultValue": "new InjectionToken<ErrorMappingHandler>('UX_ERROR_MAPPING_HANDLER')"
26279
- },
26280
26280
  {
26281
26281
  "name": "validateEmail",
26282
26282
  "ctype": "miscellaneous",
@@ -26963,7 +26963,7 @@
26963
26963
  },
26964
26964
  {
26965
26965
  "name": "applyEdits",
26966
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
26966
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
26967
26967
  "ctype": "miscellaneous",
26968
26968
  "subtype": "function",
26969
26969
  "coverageIgnore": false,
@@ -27008,7 +27008,7 @@
27008
27008
  },
27009
27009
  {
27010
27010
  "name": "applyEdits",
27011
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
27011
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
27012
27012
  "ctype": "miscellaneous",
27013
27013
  "subtype": "function",
27014
27014
  "coverageIgnore": false,
@@ -27053,7 +27053,7 @@
27053
27053
  },
27054
27054
  {
27055
27055
  "name": "applyEdits",
27056
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
27056
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
27057
27057
  "ctype": "miscellaneous",
27058
27058
  "subtype": "function",
27059
27059
  "coverageIgnore": false,
@@ -27098,7 +27098,7 @@
27098
27098
  },
27099
27099
  {
27100
27100
  "name": "applyEdits",
27101
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
27101
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
27102
27102
  "ctype": "miscellaneous",
27103
27103
  "subtype": "function",
27104
27104
  "coverageIgnore": false,
@@ -27143,7 +27143,7 @@
27143
27143
  },
27144
27144
  {
27145
27145
  "name": "applyEdits",
27146
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
27146
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
27147
27147
  "ctype": "miscellaneous",
27148
27148
  "subtype": "function",
27149
27149
  "coverageIgnore": false,
@@ -27188,7 +27188,7 @@
27188
27188
  },
27189
27189
  {
27190
27190
  "name": "applyEdits",
27191
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
27191
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
27192
27192
  "ctype": "miscellaneous",
27193
27193
  "subtype": "function",
27194
27194
  "coverageIgnore": false,
@@ -28665,7 +28665,7 @@
28665
28665
  },
28666
28666
  {
28667
28667
  "name": "collectElementRename",
28668
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
28668
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
28669
28669
  "ctype": "miscellaneous",
28670
28670
  "subtype": "function",
28671
28671
  "coverageIgnore": false,
@@ -28710,7 +28710,7 @@
28710
28710
  },
28711
28711
  {
28712
28712
  "name": "collectElementRename",
28713
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
28713
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
28714
28714
  "ctype": "miscellaneous",
28715
28715
  "subtype": "function",
28716
28716
  "coverageIgnore": false,
@@ -28755,7 +28755,7 @@
28755
28755
  },
28756
28756
  {
28757
28757
  "name": "collectElementRename",
28758
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
28758
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
28759
28759
  "ctype": "miscellaneous",
28760
28760
  "subtype": "function",
28761
28761
  "coverageIgnore": false,
@@ -31045,7 +31045,7 @@
31045
31045
  },
31046
31046
  {
31047
31047
  "name": "deduplicateEdits",
31048
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
31048
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
31049
31049
  "ctype": "miscellaneous",
31050
31050
  "subtype": "function",
31051
31051
  "coverageIgnore": false,
@@ -31075,7 +31075,7 @@
31075
31075
  },
31076
31076
  {
31077
31077
  "name": "deduplicateEdits",
31078
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
31078
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
31079
31079
  "ctype": "miscellaneous",
31080
31080
  "subtype": "function",
31081
31081
  "coverageIgnore": false,
@@ -31105,7 +31105,7 @@
31105
31105
  },
31106
31106
  {
31107
31107
  "name": "deduplicateEdits",
31108
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
31108
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
31109
31109
  "ctype": "miscellaneous",
31110
31110
  "subtype": "function",
31111
31111
  "coverageIgnore": false,
@@ -31135,7 +31135,7 @@
31135
31135
  },
31136
31136
  {
31137
31137
  "name": "deduplicateEdits",
31138
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
31138
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
31139
31139
  "ctype": "miscellaneous",
31140
31140
  "subtype": "function",
31141
31141
  "coverageIgnore": false,
@@ -31165,7 +31165,7 @@
31165
31165
  },
31166
31166
  {
31167
31167
  "name": "deduplicateEdits",
31168
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
31168
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
31169
31169
  "ctype": "miscellaneous",
31170
31170
  "subtype": "function",
31171
31171
  "coverageIgnore": false,
@@ -31195,7 +31195,7 @@
31195
31195
  },
31196
31196
  {
31197
31197
  "name": "deduplicateEdits",
31198
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
31198
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
31199
31199
  "ctype": "miscellaneous",
31200
31200
  "subtype": "function",
31201
31201
  "coverageIgnore": false,
@@ -34540,7 +34540,7 @@
34540
34540
  },
34541
34541
  {
34542
34542
  "name": "isComponentMetadataProperty",
34543
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
34543
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
34544
34544
  "ctype": "miscellaneous",
34545
34545
  "subtype": "function",
34546
34546
  "coverageIgnore": false,
@@ -34570,7 +34570,7 @@
34570
34570
  },
34571
34571
  {
34572
34572
  "name": "isComponentMetadataProperty",
34573
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
34573
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
34574
34574
  "ctype": "miscellaneous",
34575
34575
  "subtype": "function",
34576
34576
  "coverageIgnore": false,
@@ -34600,7 +34600,7 @@
34600
34600
  },
34601
34601
  {
34602
34602
  "name": "isComponentMetadataProperty",
34603
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
34603
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
34604
34604
  "ctype": "miscellaneous",
34605
34605
  "subtype": "function",
34606
34606
  "coverageIgnore": false,
@@ -34630,7 +34630,7 @@
34630
34630
  },
34631
34631
  {
34632
34632
  "name": "isComponentMetadataProperty",
34633
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
34633
+ "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
34634
34634
  "ctype": "miscellaneous",
34635
34635
  "subtype": "function",
34636
34636
  "coverageIgnore": false,
@@ -34660,7 +34660,7 @@
34660
34660
  },
34661
34661
  {
34662
34662
  "name": "isComponentMetadataProperty",
34663
- "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
34663
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
34664
34664
  "ctype": "miscellaneous",
34665
34665
  "subtype": "function",
34666
34666
  "coverageIgnore": false,
@@ -34690,7 +34690,7 @@
34690
34690
  },
34691
34691
  {
34692
34692
  "name": "isComponentMetadataProperty",
34693
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
34693
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
34694
34694
  "ctype": "miscellaneous",
34695
34695
  "subtype": "function",
34696
34696
  "coverageIgnore": false,
@@ -34720,7 +34720,7 @@
34720
34720
  },
34721
34721
  {
34722
34722
  "name": "isComponentMetadataProperty",
34723
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
34723
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
34724
34724
  "ctype": "miscellaneous",
34725
34725
  "subtype": "function",
34726
34726
  "coverageIgnore": false,
@@ -35520,7 +35520,7 @@
35520
35520
  },
35521
35521
  {
35522
35522
  "name": "isTemplateProperty",
35523
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
35523
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
35524
35524
  "ctype": "miscellaneous",
35525
35525
  "subtype": "function",
35526
35526
  "coverageIgnore": false,
@@ -35550,7 +35550,7 @@
35550
35550
  },
35551
35551
  {
35552
35552
  "name": "isTemplateProperty",
35553
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
35553
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
35554
35554
  "ctype": "miscellaneous",
35555
35555
  "subtype": "function",
35556
35556
  "coverageIgnore": false,
@@ -35580,7 +35580,7 @@
35580
35580
  },
35581
35581
  {
35582
35582
  "name": "isTemplateProperty",
35583
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
35583
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
35584
35584
  "ctype": "miscellaneous",
35585
35585
  "subtype": "function",
35586
35586
  "coverageIgnore": false,
@@ -35610,7 +35610,7 @@
35610
35610
  },
35611
35611
  {
35612
35612
  "name": "isTemplateProperty",
35613
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
35613
+ "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
35614
35614
  "ctype": "miscellaneous",
35615
35615
  "subtype": "function",
35616
35616
  "coverageIgnore": false,
@@ -35640,7 +35640,7 @@
35640
35640
  },
35641
35641
  {
35642
35642
  "name": "isTemplateProperty",
35643
- "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
35643
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
35644
35644
  "ctype": "miscellaneous",
35645
35645
  "subtype": "function",
35646
35646
  "coverageIgnore": false,
@@ -35670,7 +35670,7 @@
35670
35670
  },
35671
35671
  {
35672
35672
  "name": "isTemplateProperty",
35673
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
35673
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
35674
35674
  "ctype": "miscellaneous",
35675
35675
  "subtype": "function",
35676
35676
  "coverageIgnore": false,
@@ -35700,7 +35700,7 @@
35700
35700
  },
35701
35701
  {
35702
35702
  "name": "isTemplateProperty",
35703
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
35703
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
35704
35704
  "ctype": "miscellaneous",
35705
35705
  "subtype": "function",
35706
35706
  "coverageIgnore": false,
@@ -38937,7 +38937,7 @@
38937
38937
  },
38938
38938
  {
38939
38939
  "name": "migrateTemplate",
38940
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
38940
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
38941
38941
  "ctype": "miscellaneous",
38942
38942
  "subtype": "function",
38943
38943
  "coverageIgnore": false,
@@ -38969,7 +38969,7 @@
38969
38969
  },
38970
38970
  {
38971
38971
  "name": "migrateTemplate",
38972
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
38972
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
38973
38973
  "ctype": "miscellaneous",
38974
38974
  "subtype": "function",
38975
38975
  "coverageIgnore": false,
@@ -39001,7 +39001,7 @@
39001
39001
  },
39002
39002
  {
39003
39003
  "name": "migrateTemplate",
39004
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
39004
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
39005
39005
  "ctype": "miscellaneous",
39006
39006
  "subtype": "function",
39007
39007
  "coverageIgnore": false,
@@ -39033,7 +39033,7 @@
39033
39033
  },
39034
39034
  {
39035
39035
  "name": "migrateTemplate",
39036
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
39036
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
39037
39037
  "ctype": "miscellaneous",
39038
39038
  "subtype": "function",
39039
39039
  "coverageIgnore": false,
@@ -39065,7 +39065,7 @@
39065
39065
  },
39066
39066
  {
39067
39067
  "name": "migrateTemplate",
39068
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
39068
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
39069
39069
  "ctype": "miscellaneous",
39070
39070
  "subtype": "function",
39071
39071
  "coverageIgnore": false,
@@ -39097,7 +39097,7 @@
39097
39097
  },
39098
39098
  {
39099
39099
  "name": "migrateTemplate",
39100
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
39100
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
39101
39101
  "ctype": "miscellaneous",
39102
39102
  "subtype": "function",
39103
39103
  "coverageIgnore": false,
@@ -40173,7 +40173,7 @@
40173
40173
  },
40174
40174
  {
40175
40175
  "name": "migrateTypeScript",
40176
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
40176
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
40177
40177
  "ctype": "miscellaneous",
40178
40178
  "subtype": "function",
40179
40179
  "coverageIgnore": false,
@@ -40220,7 +40220,7 @@
40220
40220
  },
40221
40221
  {
40222
40222
  "name": "migrateTypeScript",
40223
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
40223
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
40224
40224
  "ctype": "miscellaneous",
40225
40225
  "subtype": "function",
40226
40226
  "coverageIgnore": false,
@@ -40267,7 +40267,7 @@
40267
40267
  },
40268
40268
  {
40269
40269
  "name": "migrateTypeScript",
40270
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
40270
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
40271
40271
  "ctype": "miscellaneous",
40272
40272
  "subtype": "function",
40273
40273
  "coverageIgnore": false,
@@ -40314,7 +40314,7 @@
40314
40314
  },
40315
40315
  {
40316
40316
  "name": "migrateTypeScript",
40317
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
40317
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
40318
40318
  "ctype": "miscellaneous",
40319
40319
  "subtype": "function",
40320
40320
  "coverageIgnore": false,
@@ -40361,7 +40361,7 @@
40361
40361
  },
40362
40362
  {
40363
40363
  "name": "migrateTypeScript",
40364
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
40364
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
40365
40365
  "ctype": "miscellaneous",
40366
40366
  "subtype": "function",
40367
40367
  "coverageIgnore": false,
@@ -40408,7 +40408,7 @@
40408
40408
  },
40409
40409
  {
40410
40410
  "name": "migrateTypeScript",
40411
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
40411
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
40412
40412
  "ctype": "miscellaneous",
40413
40413
  "subtype": "function",
40414
40414
  "coverageIgnore": false,
@@ -43021,7 +43021,7 @@
43021
43021
  },
43022
43022
  {
43023
43023
  "name": "unwrapExpression",
43024
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
43024
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
43025
43025
  "ctype": "miscellaneous",
43026
43026
  "subtype": "function",
43027
43027
  "coverageIgnore": false,
@@ -43051,7 +43051,7 @@
43051
43051
  },
43052
43052
  {
43053
43053
  "name": "unwrapExpression",
43054
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
43054
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
43055
43055
  "ctype": "miscellaneous",
43056
43056
  "subtype": "function",
43057
43057
  "coverageIgnore": false,
@@ -43081,7 +43081,7 @@
43081
43081
  },
43082
43082
  {
43083
43083
  "name": "unwrapExpression",
43084
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
43084
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
43085
43085
  "ctype": "miscellaneous",
43086
43086
  "subtype": "function",
43087
43087
  "coverageIgnore": false,
@@ -43111,7 +43111,7 @@
43111
43111
  },
43112
43112
  {
43113
43113
  "name": "unwrapExpression",
43114
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
43114
+ "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
43115
43115
  "ctype": "miscellaneous",
43116
43116
  "subtype": "function",
43117
43117
  "coverageIgnore": false,
@@ -43141,7 +43141,7 @@
43141
43141
  },
43142
43142
  {
43143
43143
  "name": "unwrapExpression",
43144
- "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
43144
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
43145
43145
  "ctype": "miscellaneous",
43146
43146
  "subtype": "function",
43147
43147
  "coverageIgnore": false,
@@ -43171,7 +43171,7 @@
43171
43171
  },
43172
43172
  {
43173
43173
  "name": "unwrapExpression",
43174
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
43174
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
43175
43175
  "ctype": "miscellaneous",
43176
43176
  "subtype": "function",
43177
43177
  "coverageIgnore": false,
@@ -43201,7 +43201,7 @@
43201
43201
  },
43202
43202
  {
43203
43203
  "name": "unwrapExpression",
43204
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
43204
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
43205
43205
  "ctype": "miscellaneous",
43206
43206
  "subtype": "function",
43207
43207
  "coverageIgnore": false,
@@ -44129,7 +44129,7 @@
44129
44129
  },
44130
44130
  {
44131
44131
  "name": "visitDir",
44132
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
44132
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
44133
44133
  "ctype": "miscellaneous",
44134
44134
  "subtype": "function",
44135
44135
  "coverageIgnore": false,
@@ -44174,7 +44174,7 @@
44174
44174
  },
44175
44175
  {
44176
44176
  "name": "visitDir",
44177
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
44177
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
44178
44178
  "ctype": "miscellaneous",
44179
44179
  "subtype": "function",
44180
44180
  "coverageIgnore": false,
@@ -44219,7 +44219,7 @@
44219
44219
  },
44220
44220
  {
44221
44221
  "name": "visitDir",
44222
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
44222
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
44223
44223
  "ctype": "miscellaneous",
44224
44224
  "subtype": "function",
44225
44225
  "coverageIgnore": false,
@@ -44264,7 +44264,7 @@
44264
44264
  },
44265
44265
  {
44266
44266
  "name": "visitDir",
44267
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
44267
+ "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
44268
44268
  "ctype": "miscellaneous",
44269
44269
  "subtype": "function",
44270
44270
  "coverageIgnore": false,
@@ -44309,7 +44309,7 @@
44309
44309
  },
44310
44310
  {
44311
44311
  "name": "visitDir",
44312
- "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
44312
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
44313
44313
  "ctype": "miscellaneous",
44314
44314
  "subtype": "function",
44315
44315
  "coverageIgnore": false,
@@ -44354,7 +44354,7 @@
44354
44354
  },
44355
44355
  {
44356
44356
  "name": "visitDir",
44357
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
44357
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
44358
44358
  "ctype": "miscellaneous",
44359
44359
  "subtype": "function",
44360
44360
  "coverageIgnore": false,
@@ -44399,7 +44399,7 @@
44399
44399
  },
44400
44400
  {
44401
44401
  "name": "visitDir",
44402
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
44402
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
44403
44403
  "ctype": "miscellaneous",
44404
44404
  "subtype": "function",
44405
44405
  "coverageIgnore": false,
@@ -45784,7 +45784,7 @@
45784
45784
  },
45785
45785
  {
45786
45786
  "name": "visitNodes",
45787
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
45787
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
45788
45788
  "ctype": "miscellaneous",
45789
45789
  "subtype": "function",
45790
45790
  "coverageIgnore": false,
@@ -45827,7 +45827,7 @@
45827
45827
  },
45828
45828
  {
45829
45829
  "name": "visitNodes",
45830
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
45830
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
45831
45831
  "ctype": "miscellaneous",
45832
45832
  "subtype": "function",
45833
45833
  "coverageIgnore": false,
@@ -45870,7 +45870,7 @@
45870
45870
  },
45871
45871
  {
45872
45872
  "name": "visitNodes",
45873
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
45873
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
45874
45874
  "ctype": "miscellaneous",
45875
45875
  "subtype": "function",
45876
45876
  "coverageIgnore": false,
@@ -45913,7 +45913,7 @@
45913
45913
  },
45914
45914
  {
45915
45915
  "name": "visitNodes",
45916
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
45916
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
45917
45917
  "ctype": "miscellaneous",
45918
45918
  "subtype": "function",
45919
45919
  "coverageIgnore": false,
@@ -45928,12 +45928,6 @@
45928
45928
  "deprecated": false,
45929
45929
  "deprecationMessage": ""
45930
45930
  },
45931
- {
45932
- "name": "source",
45933
- "type": "string",
45934
- "deprecated": false,
45935
- "deprecationMessage": ""
45936
- },
45937
45931
  {
45938
45932
  "name": "edits",
45939
45933
  "deprecated": false,
@@ -45950,15 +45944,6 @@
45950
45944
  "text": "param"
45951
45945
  }
45952
45946
  },
45953
- {
45954
- "name": "source",
45955
- "type": "string",
45956
- "deprecated": false,
45957
- "deprecationMessage": "",
45958
- "tagName": {
45959
- "text": "param"
45960
- }
45961
- },
45962
45947
  {
45963
45948
  "name": "edits",
45964
45949
  "deprecated": false,
@@ -45971,7 +45956,7 @@
45971
45956
  },
45972
45957
  {
45973
45958
  "name": "visitNodes",
45974
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
45959
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
45975
45960
  "ctype": "miscellaneous",
45976
45961
  "subtype": "function",
45977
45962
  "coverageIgnore": false,
@@ -46014,7 +45999,7 @@
46014
45999
  },
46015
46000
  {
46016
46001
  "name": "visitNodes",
46017
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
46002
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
46018
46003
  "ctype": "miscellaneous",
46019
46004
  "subtype": "function",
46020
46005
  "coverageIgnore": false,
@@ -46029,6 +46014,12 @@
46029
46014
  "deprecated": false,
46030
46015
  "deprecationMessage": ""
46031
46016
  },
46017
+ {
46018
+ "name": "source",
46019
+ "type": "string",
46020
+ "deprecated": false,
46021
+ "deprecationMessage": ""
46022
+ },
46032
46023
  {
46033
46024
  "name": "edits",
46034
46025
  "deprecated": false,
@@ -46045,6 +46036,15 @@
46045
46036
  "text": "param"
46046
46037
  }
46047
46038
  },
46039
+ {
46040
+ "name": "source",
46041
+ "type": "string",
46042
+ "deprecated": false,
46043
+ "deprecationMessage": "",
46044
+ "tagName": {
46045
+ "text": "param"
46046
+ }
46047
+ },
46048
46048
  {
46049
46049
  "name": "edits",
46050
46050
  "deprecated": false,
@@ -48261,109 +48261,109 @@
48261
48261
  "defaultValue": "'ecl-inpage-navigation-item'"
48262
48262
  }
48263
48263
  ],
48264
- "packages/core/schematics/migrate-ecl-page-header/index.ts": [
48264
+ "packages/core/schematics/migrate-ecl-page-summary/index.ts": [
48265
48265
  {
48266
48266
  "name": "ATTRIBUTE",
48267
48267
  "ctype": "miscellaneous",
48268
48268
  "subtype": "variable",
48269
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
48269
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
48270
48270
  "coverageIgnore": false,
48271
48271
  "deprecated": false,
48272
48272
  "deprecationMessage": "",
48273
48273
  "type": "string",
48274
- "defaultValue": "'eclPageHeader'"
48274
+ "defaultValue": "'eclPageSummary'"
48275
48275
  },
48276
48276
  {
48277
48277
  "name": "NEW_TAG",
48278
48278
  "ctype": "miscellaneous",
48279
48279
  "subtype": "variable",
48280
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
48280
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
48281
48281
  "coverageIgnore": false,
48282
48282
  "deprecated": false,
48283
48283
  "deprecationMessage": "",
48284
48284
  "type": "string",
48285
- "defaultValue": "'div'"
48285
+ "defaultValue": "'section'"
48286
48286
  },
48287
48287
  {
48288
48288
  "name": "OLD_TAG",
48289
48289
  "ctype": "miscellaneous",
48290
48290
  "subtype": "variable",
48291
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
48291
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
48292
48292
  "coverageIgnore": false,
48293
48293
  "deprecated": false,
48294
48294
  "deprecationMessage": "",
48295
48295
  "type": "string",
48296
- "defaultValue": "'ecl-page-header'"
48296
+ "defaultValue": "'ecl-page-summary'"
48297
48297
  }
48298
48298
  ],
48299
- "packages/core/schematics/migrate-ecl-page-summary/index.ts": [
48299
+ "packages/core/schematics/migrate-ecl-pagination/index.ts": [
48300
48300
  {
48301
48301
  "name": "ATTRIBUTE",
48302
48302
  "ctype": "miscellaneous",
48303
48303
  "subtype": "variable",
48304
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
48304
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
48305
48305
  "coverageIgnore": false,
48306
48306
  "deprecated": false,
48307
48307
  "deprecationMessage": "",
48308
48308
  "type": "string",
48309
- "defaultValue": "'eclPageSummary'"
48309
+ "defaultValue": "'eclPaginationItem'"
48310
48310
  },
48311
48311
  {
48312
48312
  "name": "NEW_TAG",
48313
48313
  "ctype": "miscellaneous",
48314
48314
  "subtype": "variable",
48315
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
48315
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
48316
48316
  "coverageIgnore": false,
48317
48317
  "deprecated": false,
48318
48318
  "deprecationMessage": "",
48319
48319
  "type": "string",
48320
- "defaultValue": "'section'"
48320
+ "defaultValue": "'li'"
48321
48321
  },
48322
48322
  {
48323
48323
  "name": "OLD_TAG",
48324
48324
  "ctype": "miscellaneous",
48325
48325
  "subtype": "variable",
48326
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
48326
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
48327
48327
  "coverageIgnore": false,
48328
48328
  "deprecated": false,
48329
48329
  "deprecationMessage": "",
48330
48330
  "type": "string",
48331
- "defaultValue": "'ecl-page-summary'"
48331
+ "defaultValue": "'ecl-pagination-item'"
48332
48332
  }
48333
48333
  ],
48334
- "packages/core/schematics/migrate-ecl-pagination/index.ts": [
48334
+ "packages/core/schematics/migrate-ecl-page-header/index.ts": [
48335
48335
  {
48336
48336
  "name": "ATTRIBUTE",
48337
48337
  "ctype": "miscellaneous",
48338
48338
  "subtype": "variable",
48339
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
48339
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
48340
48340
  "coverageIgnore": false,
48341
48341
  "deprecated": false,
48342
48342
  "deprecationMessage": "",
48343
48343
  "type": "string",
48344
- "defaultValue": "'eclPaginationItem'"
48344
+ "defaultValue": "'eclPageHeader'"
48345
48345
  },
48346
48346
  {
48347
48347
  "name": "NEW_TAG",
48348
48348
  "ctype": "miscellaneous",
48349
48349
  "subtype": "variable",
48350
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
48350
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
48351
48351
  "coverageIgnore": false,
48352
48352
  "deprecated": false,
48353
48353
  "deprecationMessage": "",
48354
48354
  "type": "string",
48355
- "defaultValue": "'li'"
48355
+ "defaultValue": "'div'"
48356
48356
  },
48357
48357
  {
48358
48358
  "name": "OLD_TAG",
48359
48359
  "ctype": "miscellaneous",
48360
48360
  "subtype": "variable",
48361
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
48361
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
48362
48362
  "coverageIgnore": false,
48363
48363
  "deprecated": false,
48364
48364
  "deprecationMessage": "",
48365
48365
  "type": "string",
48366
- "defaultValue": "'ecl-pagination-item'"
48366
+ "defaultValue": "'ecl-page-header'"
48367
48367
  }
48368
48368
  ],
48369
48369
  "packages/core/schematics/migrate-ecl-site-footer/index.ts": [
@@ -49369,6 +49369,19 @@
49369
49369
  "defaultValue": "'euiAccent'"
49370
49370
  }
49371
49371
  ],
49372
+ "packages/core/src/lib/interceptors/request-error.interceptor.ts": [
49373
+ {
49374
+ "name": "EUI_ERROR_MAPPING_HANDLER_TOKEN",
49375
+ "ctype": "miscellaneous",
49376
+ "subtype": "variable",
49377
+ "file": "packages/core/src/lib/interceptors/request-error.interceptor.ts",
49378
+ "coverageIgnore": false,
49379
+ "deprecated": false,
49380
+ "deprecationMessage": "",
49381
+ "type": "unknown",
49382
+ "defaultValue": "new InjectionToken<ErrorMappingHandler>('EUI_ERROR_MAPPING_HANDLER')"
49383
+ }
49384
+ ],
49372
49385
  "packages/core/schematics/migrate-to-signals/index.ts": [
49373
49386
  {
49374
49387
  "name": "EUI_SELECTOR_TO_CLASS",
@@ -50507,19 +50520,6 @@
50507
50520
  "type": "object",
50508
50521
  "defaultValue": "{\n loader: provideTranslateLoader(I18nLoader),\n}"
50509
50522
  }
50510
- ],
50511
- "packages/core/src/lib/interceptors/ux-request-error-model.interceptor.ts": [
50512
- {
50513
- "name": "UX_ERROR_MAPPING_HANDLER_TOKEN",
50514
- "ctype": "miscellaneous",
50515
- "subtype": "variable",
50516
- "file": "packages/core/src/lib/interceptors/ux-request-error-model.interceptor.ts",
50517
- "coverageIgnore": false,
50518
- "deprecated": false,
50519
- "deprecationMessage": "",
50520
- "type": "unknown",
50521
- "defaultValue": "new InjectionToken<ErrorMappingHandler>('UX_ERROR_MAPPING_HANDLER')"
50522
- }
50523
50523
  ]
50524
50524
  },
50525
50525
  "groupedFunctions": {
@@ -58672,10 +58672,10 @@
58672
58672
  ]
58673
58673
  }
58674
58674
  ],
58675
- "packages/core/schematics/migrate-ecl-page-header/index.ts": [
58675
+ "packages/core/schematics/migrate-ecl-page-summary/index.ts": [
58676
58676
  {
58677
58677
  "name": "applyEdits",
58678
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
58678
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
58679
58679
  "ctype": "miscellaneous",
58680
58680
  "subtype": "function",
58681
58681
  "coverageIgnore": false,
@@ -58720,7 +58720,7 @@
58720
58720
  },
58721
58721
  {
58722
58722
  "name": "collectElementRename",
58723
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
58723
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
58724
58724
  "ctype": "miscellaneous",
58725
58725
  "subtype": "function",
58726
58726
  "coverageIgnore": false,
@@ -58765,7 +58765,7 @@
58765
58765
  },
58766
58766
  {
58767
58767
  "name": "deduplicateEdits",
58768
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
58768
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
58769
58769
  "ctype": "miscellaneous",
58770
58770
  "subtype": "function",
58771
58771
  "coverageIgnore": false,
@@ -58795,7 +58795,7 @@
58795
58795
  },
58796
58796
  {
58797
58797
  "name": "isComponentMetadataProperty",
58798
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
58798
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
58799
58799
  "ctype": "miscellaneous",
58800
58800
  "subtype": "function",
58801
58801
  "coverageIgnore": false,
@@ -58825,7 +58825,7 @@
58825
58825
  },
58826
58826
  {
58827
58827
  "name": "isTemplateProperty",
58828
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
58828
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
58829
58829
  "ctype": "miscellaneous",
58830
58830
  "subtype": "function",
58831
58831
  "coverageIgnore": false,
@@ -58854,8 +58854,8 @@
58854
58854
  ]
58855
58855
  },
58856
58856
  {
58857
- "name": "migrateEclPageHeader",
58858
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
58857
+ "name": "migrateEclPageSummary",
58858
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
58859
58859
  "ctype": "miscellaneous",
58860
58860
  "subtype": "function",
58861
58861
  "coverageIgnore": false,
@@ -58863,7 +58863,7 @@
58863
58863
  "deprecationMessage": "",
58864
58864
  "rawdescription": "",
58865
58865
  "description": "",
58866
- "displayName": "migrateEclPageHeader",
58866
+ "displayName": "migrateEclPageSummary",
58867
58867
  "args": [
58868
58868
  {
58869
58869
  "name": "options",
@@ -58889,7 +58889,7 @@
58889
58889
  },
58890
58890
  {
58891
58891
  "name": "migrateTemplate",
58892
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
58892
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
58893
58893
  "ctype": "miscellaneous",
58894
58894
  "subtype": "function",
58895
58895
  "coverageIgnore": false,
@@ -58921,7 +58921,7 @@
58921
58921
  },
58922
58922
  {
58923
58923
  "name": "migrateTypeScript",
58924
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
58924
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
58925
58925
  "ctype": "miscellaneous",
58926
58926
  "subtype": "function",
58927
58927
  "coverageIgnore": false,
@@ -58968,7 +58968,7 @@
58968
58968
  },
58969
58969
  {
58970
58970
  "name": "unwrapExpression",
58971
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
58971
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
58972
58972
  "ctype": "miscellaneous",
58973
58973
  "subtype": "function",
58974
58974
  "coverageIgnore": false,
@@ -58998,7 +58998,7 @@
58998
58998
  },
58999
58999
  {
59000
59000
  "name": "visitDir",
59001
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59001
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
59002
59002
  "ctype": "miscellaneous",
59003
59003
  "subtype": "function",
59004
59004
  "coverageIgnore": false,
@@ -59043,7 +59043,7 @@
59043
59043
  },
59044
59044
  {
59045
59045
  "name": "visitNodes",
59046
- "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59046
+ "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
59047
59047
  "ctype": "miscellaneous",
59048
59048
  "subtype": "function",
59049
59049
  "coverageIgnore": false,
@@ -59085,10 +59085,10 @@
59085
59085
  ]
59086
59086
  }
59087
59087
  ],
59088
- "packages/core/schematics/migrate-ecl-page-summary/index.ts": [
59088
+ "packages/core/schematics/migrate-ecl-pagination/index.ts": [
59089
59089
  {
59090
59090
  "name": "applyEdits",
59091
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
59091
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59092
59092
  "ctype": "miscellaneous",
59093
59093
  "subtype": "function",
59094
59094
  "coverageIgnore": false,
@@ -59133,7 +59133,7 @@
59133
59133
  },
59134
59134
  {
59135
59135
  "name": "collectElementRename",
59136
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
59136
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59137
59137
  "ctype": "miscellaneous",
59138
59138
  "subtype": "function",
59139
59139
  "coverageIgnore": false,
@@ -59178,7 +59178,7 @@
59178
59178
  },
59179
59179
  {
59180
59180
  "name": "deduplicateEdits",
59181
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
59181
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59182
59182
  "ctype": "miscellaneous",
59183
59183
  "subtype": "function",
59184
59184
  "coverageIgnore": false,
@@ -59208,7 +59208,7 @@
59208
59208
  },
59209
59209
  {
59210
59210
  "name": "isComponentMetadataProperty",
59211
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
59211
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59212
59212
  "ctype": "miscellaneous",
59213
59213
  "subtype": "function",
59214
59214
  "coverageIgnore": false,
@@ -59238,7 +59238,7 @@
59238
59238
  },
59239
59239
  {
59240
59240
  "name": "isTemplateProperty",
59241
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
59241
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59242
59242
  "ctype": "miscellaneous",
59243
59243
  "subtype": "function",
59244
59244
  "coverageIgnore": false,
@@ -59267,8 +59267,8 @@
59267
59267
  ]
59268
59268
  },
59269
59269
  {
59270
- "name": "migrateEclPageSummary",
59271
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
59270
+ "name": "migrateEclPagination",
59271
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59272
59272
  "ctype": "miscellaneous",
59273
59273
  "subtype": "function",
59274
59274
  "coverageIgnore": false,
@@ -59276,7 +59276,7 @@
59276
59276
  "deprecationMessage": "",
59277
59277
  "rawdescription": "",
59278
59278
  "description": "",
59279
- "displayName": "migrateEclPageSummary",
59279
+ "displayName": "migrateEclPagination",
59280
59280
  "args": [
59281
59281
  {
59282
59282
  "name": "options",
@@ -59302,7 +59302,7 @@
59302
59302
  },
59303
59303
  {
59304
59304
  "name": "migrateTemplate",
59305
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
59305
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59306
59306
  "ctype": "miscellaneous",
59307
59307
  "subtype": "function",
59308
59308
  "coverageIgnore": false,
@@ -59334,7 +59334,7 @@
59334
59334
  },
59335
59335
  {
59336
59336
  "name": "migrateTypeScript",
59337
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
59337
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59338
59338
  "ctype": "miscellaneous",
59339
59339
  "subtype": "function",
59340
59340
  "coverageIgnore": false,
@@ -59381,7 +59381,7 @@
59381
59381
  },
59382
59382
  {
59383
59383
  "name": "unwrapExpression",
59384
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
59384
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59385
59385
  "ctype": "miscellaneous",
59386
59386
  "subtype": "function",
59387
59387
  "coverageIgnore": false,
@@ -59411,7 +59411,7 @@
59411
59411
  },
59412
59412
  {
59413
59413
  "name": "visitDir",
59414
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
59414
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59415
59415
  "ctype": "miscellaneous",
59416
59416
  "subtype": "function",
59417
59417
  "coverageIgnore": false,
@@ -59456,7 +59456,7 @@
59456
59456
  },
59457
59457
  {
59458
59458
  "name": "visitNodes",
59459
- "file": "packages/core/schematics/migrate-ecl-page-summary/index.ts",
59459
+ "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59460
59460
  "ctype": "miscellaneous",
59461
59461
  "subtype": "function",
59462
59462
  "coverageIgnore": false,
@@ -59498,10 +59498,10 @@
59498
59498
  ]
59499
59499
  }
59500
59500
  ],
59501
- "packages/core/schematics/migrate-ecl-pagination/index.ts": [
59501
+ "packages/core/schematics/migrate-ecl-page-header/index.ts": [
59502
59502
  {
59503
59503
  "name": "applyEdits",
59504
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59504
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59505
59505
  "ctype": "miscellaneous",
59506
59506
  "subtype": "function",
59507
59507
  "coverageIgnore": false,
@@ -59546,7 +59546,7 @@
59546
59546
  },
59547
59547
  {
59548
59548
  "name": "collectElementRename",
59549
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59549
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59550
59550
  "ctype": "miscellaneous",
59551
59551
  "subtype": "function",
59552
59552
  "coverageIgnore": false,
@@ -59591,7 +59591,7 @@
59591
59591
  },
59592
59592
  {
59593
59593
  "name": "deduplicateEdits",
59594
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59594
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59595
59595
  "ctype": "miscellaneous",
59596
59596
  "subtype": "function",
59597
59597
  "coverageIgnore": false,
@@ -59621,7 +59621,7 @@
59621
59621
  },
59622
59622
  {
59623
59623
  "name": "isComponentMetadataProperty",
59624
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59624
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59625
59625
  "ctype": "miscellaneous",
59626
59626
  "subtype": "function",
59627
59627
  "coverageIgnore": false,
@@ -59651,7 +59651,7 @@
59651
59651
  },
59652
59652
  {
59653
59653
  "name": "isTemplateProperty",
59654
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59654
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59655
59655
  "ctype": "miscellaneous",
59656
59656
  "subtype": "function",
59657
59657
  "coverageIgnore": false,
@@ -59680,8 +59680,8 @@
59680
59680
  ]
59681
59681
  },
59682
59682
  {
59683
- "name": "migrateEclPagination",
59684
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59683
+ "name": "migrateEclPageHeader",
59684
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59685
59685
  "ctype": "miscellaneous",
59686
59686
  "subtype": "function",
59687
59687
  "coverageIgnore": false,
@@ -59689,7 +59689,7 @@
59689
59689
  "deprecationMessage": "",
59690
59690
  "rawdescription": "",
59691
59691
  "description": "",
59692
- "displayName": "migrateEclPagination",
59692
+ "displayName": "migrateEclPageHeader",
59693
59693
  "args": [
59694
59694
  {
59695
59695
  "name": "options",
@@ -59715,7 +59715,7 @@
59715
59715
  },
59716
59716
  {
59717
59717
  "name": "migrateTemplate",
59718
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59718
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59719
59719
  "ctype": "miscellaneous",
59720
59720
  "subtype": "function",
59721
59721
  "coverageIgnore": false,
@@ -59747,7 +59747,7 @@
59747
59747
  },
59748
59748
  {
59749
59749
  "name": "migrateTypeScript",
59750
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59750
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59751
59751
  "ctype": "miscellaneous",
59752
59752
  "subtype": "function",
59753
59753
  "coverageIgnore": false,
@@ -59794,7 +59794,7 @@
59794
59794
  },
59795
59795
  {
59796
59796
  "name": "unwrapExpression",
59797
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59797
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59798
59798
  "ctype": "miscellaneous",
59799
59799
  "subtype": "function",
59800
59800
  "coverageIgnore": false,
@@ -59824,7 +59824,7 @@
59824
59824
  },
59825
59825
  {
59826
59826
  "name": "visitDir",
59827
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59827
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59828
59828
  "ctype": "miscellaneous",
59829
59829
  "subtype": "function",
59830
59830
  "coverageIgnore": false,
@@ -59869,7 +59869,7 @@
59869
59869
  },
59870
59870
  {
59871
59871
  "name": "visitNodes",
59872
- "file": "packages/core/schematics/migrate-ecl-pagination/index.ts",
59872
+ "file": "packages/core/schematics/migrate-ecl-page-header/index.ts",
59873
59873
  "ctype": "miscellaneous",
59874
59874
  "subtype": "function",
59875
59875
  "coverageIgnore": false,
@@ -59911,10 +59911,10 @@
59911
59911
  ]
59912
59912
  }
59913
59913
  ],
59914
- "packages/core/schematics/migrate-ecl-quiz/index.ts": [
59914
+ "packages/core/schematics/migrate-ecl-site-footer/index.ts": [
59915
59915
  {
59916
59916
  "name": "applyEdits",
59917
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
59917
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
59918
59918
  "ctype": "miscellaneous",
59919
59919
  "subtype": "function",
59920
59920
  "coverageIgnore": false,
@@ -59958,8 +59958,8 @@
59958
59958
  ]
59959
59959
  },
59960
59960
  {
59961
- "name": "collectCategoryRemovals",
59962
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
59961
+ "name": "collectElementRename",
59962
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
59963
59963
  "ctype": "miscellaneous",
59964
59964
  "subtype": "function",
59965
59965
  "coverageIgnore": false,
@@ -59967,7 +59967,7 @@
59967
59967
  "deprecationMessage": "",
59968
59968
  "rawdescription": "",
59969
59969
  "description": "",
59970
- "displayName": "collectCategoryRemovals",
59970
+ "displayName": "collectElementRename",
59971
59971
  "args": [
59972
59972
  {
59973
59973
  "name": "element",
@@ -59975,12 +59975,6 @@
59975
59975
  "deprecated": false,
59976
59976
  "deprecationMessage": ""
59977
59977
  },
59978
- {
59979
- "name": "source",
59980
- "type": "string",
59981
- "deprecated": false,
59982
- "deprecationMessage": ""
59983
- },
59984
59978
  {
59985
59979
  "name": "edits",
59986
59980
  "deprecated": false,
@@ -59998,15 +59992,6 @@
59998
59992
  "text": "param"
59999
59993
  }
60000
59994
  },
60001
- {
60002
- "name": "source",
60003
- "type": "string",
60004
- "deprecated": false,
60005
- "deprecationMessage": "",
60006
- "tagName": {
60007
- "text": "param"
60008
- }
60009
- },
60010
59995
  {
60011
59996
  "name": "edits",
60012
59997
  "deprecated": false,
@@ -60019,7 +60004,7 @@
60019
60004
  },
60020
60005
  {
60021
60006
  "name": "deduplicateEdits",
60022
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60007
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60023
60008
  "ctype": "miscellaneous",
60024
60009
  "subtype": "function",
60025
60010
  "coverageIgnore": false,
@@ -60047,41 +60032,9 @@
60047
60032
  }
60048
60033
  ]
60049
60034
  },
60050
- {
60051
- "name": "hasQuizCard",
60052
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60053
- "ctype": "miscellaneous",
60054
- "subtype": "function",
60055
- "coverageIgnore": false,
60056
- "deprecated": false,
60057
- "deprecationMessage": "",
60058
- "rawdescription": "",
60059
- "description": "",
60060
- "displayName": "hasQuizCard",
60061
- "args": [
60062
- {
60063
- "name": "element",
60064
- "type": "TmplAstElement",
60065
- "deprecated": false,
60066
- "deprecationMessage": ""
60067
- }
60068
- ],
60069
- "returnType": "boolean",
60070
- "jsdoctags": [
60071
- {
60072
- "name": "element",
60073
- "type": "TmplAstElement",
60074
- "deprecated": false,
60075
- "deprecationMessage": "",
60076
- "tagName": {
60077
- "text": "param"
60078
- }
60079
- }
60080
- ]
60081
- },
60082
60035
  {
60083
60036
  "name": "isComponentMetadataProperty",
60084
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60037
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60085
60038
  "ctype": "miscellaneous",
60086
60039
  "subtype": "function",
60087
60040
  "coverageIgnore": false,
@@ -60111,7 +60064,7 @@
60111
60064
  },
60112
60065
  {
60113
60066
  "name": "isTemplateProperty",
60114
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60067
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60115
60068
  "ctype": "miscellaneous",
60116
60069
  "subtype": "function",
60117
60070
  "coverageIgnore": false,
@@ -60140,8 +60093,8 @@
60140
60093
  ]
60141
60094
  },
60142
60095
  {
60143
- "name": "migrateEclQuiz",
60144
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60096
+ "name": "migrateEclSiteFooter",
60097
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60145
60098
  "ctype": "miscellaneous",
60146
60099
  "subtype": "function",
60147
60100
  "coverageIgnore": false,
@@ -60149,7 +60102,7 @@
60149
60102
  "deprecationMessage": "",
60150
60103
  "rawdescription": "",
60151
60104
  "description": "",
60152
- "displayName": "migrateEclQuiz",
60105
+ "displayName": "migrateEclSiteFooter",
60153
60106
  "args": [
60154
60107
  {
60155
60108
  "name": "options",
@@ -60175,7 +60128,7 @@
60175
60128
  },
60176
60129
  {
60177
60130
  "name": "migrateTemplate",
60178
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60131
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60179
60132
  "ctype": "miscellaneous",
60180
60133
  "subtype": "function",
60181
60134
  "coverageIgnore": false,
@@ -60207,7 +60160,7 @@
60207
60160
  },
60208
60161
  {
60209
60162
  "name": "migrateTypeScript",
60210
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60163
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60211
60164
  "ctype": "miscellaneous",
60212
60165
  "subtype": "function",
60213
60166
  "coverageIgnore": false,
@@ -60252,54 +60205,9 @@
60252
60205
  }
60253
60206
  ]
60254
60207
  },
60255
- {
60256
- "name": "removeAttribute",
60257
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60258
- "ctype": "miscellaneous",
60259
- "subtype": "function",
60260
- "coverageIgnore": false,
60261
- "deprecated": false,
60262
- "deprecationMessage": "",
60263
- "rawdescription": "Removes a text or bound attribute including preceding whitespace.",
60264
- "description": "<p>Removes a text or bound attribute including preceding whitespace.</p>\n",
60265
- "displayName": "removeAttribute",
60266
- "args": [
60267
- {
60268
- "name": "attr",
60269
- "deprecated": false,
60270
- "deprecationMessage": ""
60271
- },
60272
- {
60273
- "name": "source",
60274
- "type": "string",
60275
- "deprecated": false,
60276
- "deprecationMessage": ""
60277
- }
60278
- ],
60279
- "returnType": "Edit",
60280
- "jsdoctags": [
60281
- {
60282
- "name": "attr",
60283
- "deprecated": false,
60284
- "deprecationMessage": "",
60285
- "tagName": {
60286
- "text": "param"
60287
- }
60288
- },
60289
- {
60290
- "name": "source",
60291
- "type": "string",
60292
- "deprecated": false,
60293
- "deprecationMessage": "",
60294
- "tagName": {
60295
- "text": "param"
60296
- }
60297
- }
60298
- ]
60299
- },
60300
60208
  {
60301
60209
  "name": "unwrapExpression",
60302
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60210
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60303
60211
  "ctype": "miscellaneous",
60304
60212
  "subtype": "function",
60305
60213
  "coverageIgnore": false,
@@ -60329,7 +60237,7 @@
60329
60237
  },
60330
60238
  {
60331
60239
  "name": "visitDir",
60332
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60240
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60333
60241
  "ctype": "miscellaneous",
60334
60242
  "subtype": "function",
60335
60243
  "coverageIgnore": false,
@@ -60374,7 +60282,7 @@
60374
60282
  },
60375
60283
  {
60376
60284
  "name": "visitNodes",
60377
- "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60285
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60378
60286
  "ctype": "miscellaneous",
60379
60287
  "subtype": "function",
60380
60288
  "coverageIgnore": false,
@@ -60389,12 +60297,6 @@
60389
60297
  "deprecated": false,
60390
60298
  "deprecationMessage": ""
60391
60299
  },
60392
- {
60393
- "name": "source",
60394
- "type": "string",
60395
- "deprecated": false,
60396
- "deprecationMessage": ""
60397
- },
60398
60300
  {
60399
60301
  "name": "edits",
60400
60302
  "deprecated": false,
@@ -60411,15 +60313,6 @@
60411
60313
  "text": "param"
60412
60314
  }
60413
60315
  },
60414
- {
60415
- "name": "source",
60416
- "type": "string",
60417
- "deprecated": false,
60418
- "deprecationMessage": "",
60419
- "tagName": {
60420
- "text": "param"
60421
- }
60422
- },
60423
60316
  {
60424
60317
  "name": "edits",
60425
60318
  "deprecated": false,
@@ -60431,10 +60324,10 @@
60431
60324
  ]
60432
60325
  }
60433
60326
  ],
60434
- "packages/core/schematics/migrate-ecl-site-footer/index.ts": [
60327
+ "packages/core/schematics/migrate-ecl-tabs/index.ts": [
60435
60328
  {
60436
60329
  "name": "applyEdits",
60437
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60330
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60438
60331
  "ctype": "miscellaneous",
60439
60332
  "subtype": "function",
60440
60333
  "coverageIgnore": false,
@@ -60479,7 +60372,7 @@
60479
60372
  },
60480
60373
  {
60481
60374
  "name": "collectElementRename",
60482
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60375
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60483
60376
  "ctype": "miscellaneous",
60484
60377
  "subtype": "function",
60485
60378
  "coverageIgnore": false,
@@ -60524,7 +60417,7 @@
60524
60417
  },
60525
60418
  {
60526
60419
  "name": "deduplicateEdits",
60527
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60420
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60528
60421
  "ctype": "miscellaneous",
60529
60422
  "subtype": "function",
60530
60423
  "coverageIgnore": false,
@@ -60554,7 +60447,7 @@
60554
60447
  },
60555
60448
  {
60556
60449
  "name": "isComponentMetadataProperty",
60557
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60450
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60558
60451
  "ctype": "miscellaneous",
60559
60452
  "subtype": "function",
60560
60453
  "coverageIgnore": false,
@@ -60584,7 +60477,7 @@
60584
60477
  },
60585
60478
  {
60586
60479
  "name": "isTemplateProperty",
60587
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60480
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60588
60481
  "ctype": "miscellaneous",
60589
60482
  "subtype": "function",
60590
60483
  "coverageIgnore": false,
@@ -60613,8 +60506,8 @@
60613
60506
  ]
60614
60507
  },
60615
60508
  {
60616
- "name": "migrateEclSiteFooter",
60617
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60509
+ "name": "migrateEclTabs",
60510
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60618
60511
  "ctype": "miscellaneous",
60619
60512
  "subtype": "function",
60620
60513
  "coverageIgnore": false,
@@ -60622,7 +60515,7 @@
60622
60515
  "deprecationMessage": "",
60623
60516
  "rawdescription": "",
60624
60517
  "description": "",
60625
- "displayName": "migrateEclSiteFooter",
60518
+ "displayName": "migrateEclTabs",
60626
60519
  "args": [
60627
60520
  {
60628
60521
  "name": "options",
@@ -60648,7 +60541,7 @@
60648
60541
  },
60649
60542
  {
60650
60543
  "name": "migrateTemplate",
60651
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60544
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60652
60545
  "ctype": "miscellaneous",
60653
60546
  "subtype": "function",
60654
60547
  "coverageIgnore": false,
@@ -60680,7 +60573,7 @@
60680
60573
  },
60681
60574
  {
60682
60575
  "name": "migrateTypeScript",
60683
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60576
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60684
60577
  "ctype": "miscellaneous",
60685
60578
  "subtype": "function",
60686
60579
  "coverageIgnore": false,
@@ -60727,7 +60620,7 @@
60727
60620
  },
60728
60621
  {
60729
60622
  "name": "unwrapExpression",
60730
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60623
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60731
60624
  "ctype": "miscellaneous",
60732
60625
  "subtype": "function",
60733
60626
  "coverageIgnore": false,
@@ -60757,7 +60650,7 @@
60757
60650
  },
60758
60651
  {
60759
60652
  "name": "visitDir",
60760
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60653
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60761
60654
  "ctype": "miscellaneous",
60762
60655
  "subtype": "function",
60763
60656
  "coverageIgnore": false,
@@ -60802,7 +60695,7 @@
60802
60695
  },
60803
60696
  {
60804
60697
  "name": "visitNodes",
60805
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
60698
+ "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60806
60699
  "ctype": "miscellaneous",
60807
60700
  "subtype": "function",
60808
60701
  "coverageIgnore": false,
@@ -60844,10 +60737,10 @@
60844
60737
  ]
60845
60738
  }
60846
60739
  ],
60847
- "packages/core/schematics/migrate-ecl-tabs/index.ts": [
60740
+ "packages/core/schematics/migrate-ecl-quiz/index.ts": [
60848
60741
  {
60849
60742
  "name": "applyEdits",
60850
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60743
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60851
60744
  "ctype": "miscellaneous",
60852
60745
  "subtype": "function",
60853
60746
  "coverageIgnore": false,
@@ -60891,8 +60784,8 @@
60891
60784
  ]
60892
60785
  },
60893
60786
  {
60894
- "name": "collectElementRename",
60895
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60787
+ "name": "collectCategoryRemovals",
60788
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60896
60789
  "ctype": "miscellaneous",
60897
60790
  "subtype": "function",
60898
60791
  "coverageIgnore": false,
@@ -60900,7 +60793,7 @@
60900
60793
  "deprecationMessage": "",
60901
60794
  "rawdescription": "",
60902
60795
  "description": "",
60903
- "displayName": "collectElementRename",
60796
+ "displayName": "collectCategoryRemovals",
60904
60797
  "args": [
60905
60798
  {
60906
60799
  "name": "element",
@@ -60908,6 +60801,12 @@
60908
60801
  "deprecated": false,
60909
60802
  "deprecationMessage": ""
60910
60803
  },
60804
+ {
60805
+ "name": "source",
60806
+ "type": "string",
60807
+ "deprecated": false,
60808
+ "deprecationMessage": ""
60809
+ },
60911
60810
  {
60912
60811
  "name": "edits",
60913
60812
  "deprecated": false,
@@ -60925,6 +60824,15 @@
60925
60824
  "text": "param"
60926
60825
  }
60927
60826
  },
60827
+ {
60828
+ "name": "source",
60829
+ "type": "string",
60830
+ "deprecated": false,
60831
+ "deprecationMessage": "",
60832
+ "tagName": {
60833
+ "text": "param"
60834
+ }
60835
+ },
60928
60836
  {
60929
60837
  "name": "edits",
60930
60838
  "deprecated": false,
@@ -60937,7 +60845,7 @@
60937
60845
  },
60938
60846
  {
60939
60847
  "name": "deduplicateEdits",
60940
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60848
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60941
60849
  "ctype": "miscellaneous",
60942
60850
  "subtype": "function",
60943
60851
  "coverageIgnore": false,
@@ -60965,9 +60873,41 @@
60965
60873
  }
60966
60874
  ]
60967
60875
  },
60876
+ {
60877
+ "name": "hasQuizCard",
60878
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60879
+ "ctype": "miscellaneous",
60880
+ "subtype": "function",
60881
+ "coverageIgnore": false,
60882
+ "deprecated": false,
60883
+ "deprecationMessage": "",
60884
+ "rawdescription": "",
60885
+ "description": "",
60886
+ "displayName": "hasQuizCard",
60887
+ "args": [
60888
+ {
60889
+ "name": "element",
60890
+ "type": "TmplAstElement",
60891
+ "deprecated": false,
60892
+ "deprecationMessage": ""
60893
+ }
60894
+ ],
60895
+ "returnType": "boolean",
60896
+ "jsdoctags": [
60897
+ {
60898
+ "name": "element",
60899
+ "type": "TmplAstElement",
60900
+ "deprecated": false,
60901
+ "deprecationMessage": "",
60902
+ "tagName": {
60903
+ "text": "param"
60904
+ }
60905
+ }
60906
+ ]
60907
+ },
60968
60908
  {
60969
60909
  "name": "isComponentMetadataProperty",
60970
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60910
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
60971
60911
  "ctype": "miscellaneous",
60972
60912
  "subtype": "function",
60973
60913
  "coverageIgnore": false,
@@ -60997,7 +60937,7 @@
60997
60937
  },
60998
60938
  {
60999
60939
  "name": "isTemplateProperty",
61000
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60940
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
61001
60941
  "ctype": "miscellaneous",
61002
60942
  "subtype": "function",
61003
60943
  "coverageIgnore": false,
@@ -61026,8 +60966,8 @@
61026
60966
  ]
61027
60967
  },
61028
60968
  {
61029
- "name": "migrateEclTabs",
61030
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
60969
+ "name": "migrateEclQuiz",
60970
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
61031
60971
  "ctype": "miscellaneous",
61032
60972
  "subtype": "function",
61033
60973
  "coverageIgnore": false,
@@ -61035,7 +60975,7 @@
61035
60975
  "deprecationMessage": "",
61036
60976
  "rawdescription": "",
61037
60977
  "description": "",
61038
- "displayName": "migrateEclTabs",
60978
+ "displayName": "migrateEclQuiz",
61039
60979
  "args": [
61040
60980
  {
61041
60981
  "name": "options",
@@ -61061,7 +61001,7 @@
61061
61001
  },
61062
61002
  {
61063
61003
  "name": "migrateTemplate",
61064
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
61004
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
61065
61005
  "ctype": "miscellaneous",
61066
61006
  "subtype": "function",
61067
61007
  "coverageIgnore": false,
@@ -61093,7 +61033,7 @@
61093
61033
  },
61094
61034
  {
61095
61035
  "name": "migrateTypeScript",
61096
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
61036
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
61097
61037
  "ctype": "miscellaneous",
61098
61038
  "subtype": "function",
61099
61039
  "coverageIgnore": false,
@@ -61138,9 +61078,54 @@
61138
61078
  }
61139
61079
  ]
61140
61080
  },
61081
+ {
61082
+ "name": "removeAttribute",
61083
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
61084
+ "ctype": "miscellaneous",
61085
+ "subtype": "function",
61086
+ "coverageIgnore": false,
61087
+ "deprecated": false,
61088
+ "deprecationMessage": "",
61089
+ "rawdescription": "Removes a text or bound attribute including preceding whitespace.",
61090
+ "description": "<p>Removes a text or bound attribute including preceding whitespace.</p>\n",
61091
+ "displayName": "removeAttribute",
61092
+ "args": [
61093
+ {
61094
+ "name": "attr",
61095
+ "deprecated": false,
61096
+ "deprecationMessage": ""
61097
+ },
61098
+ {
61099
+ "name": "source",
61100
+ "type": "string",
61101
+ "deprecated": false,
61102
+ "deprecationMessage": ""
61103
+ }
61104
+ ],
61105
+ "returnType": "Edit",
61106
+ "jsdoctags": [
61107
+ {
61108
+ "name": "attr",
61109
+ "deprecated": false,
61110
+ "deprecationMessage": "",
61111
+ "tagName": {
61112
+ "text": "param"
61113
+ }
61114
+ },
61115
+ {
61116
+ "name": "source",
61117
+ "type": "string",
61118
+ "deprecated": false,
61119
+ "deprecationMessage": "",
61120
+ "tagName": {
61121
+ "text": "param"
61122
+ }
61123
+ }
61124
+ ]
61125
+ },
61141
61126
  {
61142
61127
  "name": "unwrapExpression",
61143
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
61128
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
61144
61129
  "ctype": "miscellaneous",
61145
61130
  "subtype": "function",
61146
61131
  "coverageIgnore": false,
@@ -61170,7 +61155,7 @@
61170
61155
  },
61171
61156
  {
61172
61157
  "name": "visitDir",
61173
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
61158
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
61174
61159
  "ctype": "miscellaneous",
61175
61160
  "subtype": "function",
61176
61161
  "coverageIgnore": false,
@@ -61215,7 +61200,7 @@
61215
61200
  },
61216
61201
  {
61217
61202
  "name": "visitNodes",
61218
- "file": "packages/core/schematics/migrate-ecl-tabs/index.ts",
61203
+ "file": "packages/core/schematics/migrate-ecl-quiz/index.ts",
61219
61204
  "ctype": "miscellaneous",
61220
61205
  "subtype": "function",
61221
61206
  "coverageIgnore": false,
@@ -61230,6 +61215,12 @@
61230
61215
  "deprecated": false,
61231
61216
  "deprecationMessage": ""
61232
61217
  },
61218
+ {
61219
+ "name": "source",
61220
+ "type": "string",
61221
+ "deprecated": false,
61222
+ "deprecationMessage": ""
61223
+ },
61233
61224
  {
61234
61225
  "name": "edits",
61235
61226
  "deprecated": false,
@@ -61246,6 +61237,15 @@
61246
61237
  "text": "param"
61247
61238
  }
61248
61239
  },
61240
+ {
61241
+ "name": "source",
61242
+ "type": "string",
61243
+ "deprecated": false,
61244
+ "deprecationMessage": "",
61245
+ "tagName": {
61246
+ "text": "param"
61247
+ }
61248
+ },
61249
61249
  {
61250
61250
  "name": "edits",
61251
61251
  "deprecated": false,