@eui/core 22.0.0-alpha.75 → 22.0.0-alpha.76

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.
@@ -3770,12 +3770,12 @@
3770
3770
  },
3771
3771
  {
3772
3772
  "name": "Schema",
3773
- "id": "interface-Schema-0802af7de093a6df989cd8f4bc7da55cd9729f34d4642b7f5d9eae9f9a14cae4d644922a9d7ece99ba5b1c23696d54d83436ff79a54a50c37ade3ebbf0cbf92a-13",
3774
- "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
3773
+ "id": "interface-Schema-980d307276c8b7dbd48ad94213df663d231afab569cba05a1947cf59716ec7dcf4bd8878195c0cc50bb9e36acbd400e34de218d6fae8086e413d6940631f1c42-13",
3774
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
3775
3775
  "deprecated": false,
3776
3776
  "deprecationMessage": "",
3777
3777
  "type": "interface",
3778
- "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",
3778
+ "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",
3779
3779
  "displayName": "Schema",
3780
3780
  "properties": [
3781
3781
  {
@@ -3787,7 +3787,7 @@
3787
3787
  "indexKey": "",
3788
3788
  "optional": true,
3789
3789
  "description": "",
3790
- "line": 34,
3790
+ "line": 19,
3791
3791
  "rawdescription": "\n"
3792
3792
  },
3793
3793
  {
@@ -3799,14 +3799,14 @@
3799
3799
  "indexKey": "",
3800
3800
  "optional": true,
3801
3801
  "description": "",
3802
- "line": 33,
3802
+ "line": 18,
3803
3803
  "rawdescription": "\n"
3804
3804
  }
3805
3805
  ],
3806
3806
  "indexSignatures": [],
3807
3807
  "kind": 172,
3808
- "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",
3809
- "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",
3808
+ "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",
3809
+ "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",
3810
3810
  "methods": [],
3811
3811
  "extends": [],
3812
3812
  "isDuplicate": true,
@@ -3819,12 +3819,12 @@
3819
3819
  },
3820
3820
  {
3821
3821
  "name": "Schema",
3822
- "id": "interface-Schema-980d307276c8b7dbd48ad94213df663d231afab569cba05a1947cf59716ec7dcf4bd8878195c0cc50bb9e36acbd400e34de218d6fae8086e413d6940631f1c42-14",
3823
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
3822
+ "id": "interface-Schema-0802af7de093a6df989cd8f4bc7da55cd9729f34d4642b7f5d9eae9f9a14cae4d644922a9d7ece99ba5b1c23696d54d83436ff79a54a50c37ade3ebbf0cbf92a-14",
3823
+ "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
3824
3824
  "deprecated": false,
3825
3825
  "deprecationMessage": "",
3826
3826
  "type": "interface",
3827
- "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",
3827
+ "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",
3828
3828
  "displayName": "Schema",
3829
3829
  "properties": [
3830
3830
  {
@@ -3836,7 +3836,7 @@
3836
3836
  "indexKey": "",
3837
3837
  "optional": true,
3838
3838
  "description": "",
3839
- "line": 19,
3839
+ "line": 34,
3840
3840
  "rawdescription": "\n"
3841
3841
  },
3842
3842
  {
@@ -3848,14 +3848,14 @@
3848
3848
  "indexKey": "",
3849
3849
  "optional": true,
3850
3850
  "description": "",
3851
- "line": 18,
3851
+ "line": 33,
3852
3852
  "rawdescription": "\n"
3853
3853
  }
3854
3854
  ],
3855
3855
  "indexSignatures": [],
3856
3856
  "kind": 172,
3857
- "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",
3858
- "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",
3857
+ "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",
3858
+ "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",
3859
3859
  "methods": [],
3860
3860
  "extends": [],
3861
3861
  "isDuplicate": true,
@@ -4013,12 +4013,12 @@
4013
4013
  },
4014
4014
  {
4015
4015
  "name": "Schema",
4016
- "id": "interface-Schema-585b211d989563bbec5bd67bcdb58d5f264396adbe0ed2e51d0b4a0ecaf8b3ec36d821647c170d616bb409fc603c5a4c0e699eb7511e02c6add8d8670fc9cb9f-18",
4017
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
4016
+ "id": "interface-Schema-c7e2cc0add09c97d83ec2675d59c86951681f8e2d49f133fb2f216ca98d0da1fdf892d45af31f19ecbbfd0d32f4ad70dd99e862f75725d3812f66a73ec34362c-18",
4017
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
4018
4018
  "deprecated": false,
4019
4019
  "deprecationMessage": "",
4020
4020
  "type": "interface",
4021
- "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\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nconst REMOVED_INPUTS = new Set(['alertIconType', 'alertIconFillColor', 'isMuted', 'isBordered']);\n\nexport function migrateEuiAlert(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n\n const dir = tree.getDir(scanPath || '/');\n visitDir(dir, (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes('eui-alert') && !original.includes('euiAlert')) return;\n\n const result = path.endsWith('.html')\n ? migrateTemplate(original)\n : migrateInlineTemplates(original);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would remove deprecated inputs in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n\n // Warn about TS property access usages\n if (path.endsWith('.ts') && !path.endsWith('.spec.ts')) {\n if (![...REMOVED_INPUTS].some((input) => original.includes(input))) return;\n\n const sourceFile = ts.createSourceFile(path, original, ts.ScriptTarget.Latest, true);\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && REMOVED_INPUTS.has(node.name.text)) {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(\n `${path}:${line + 1} - Manual action needed: \"${node.name.text}\" is no longer a valid input on eui-alert. Remove this assignment.`,\n );\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n }\n });\n\n context.logger.info(`Removed deprecated eui-alert inputs from ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\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\nfunction migrateTemplate(source: string): string {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const removals: { start: number; end: number }[] = [];\n\n visitNodes(parsed.nodes, removals);\n\n // Apply removals in reverse order\n let result = source;\n for (const { start, end } of removals.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, start) + result.slice(end);\n }\n\n return result;\n}\n\nfunction migrateInlineTemplates(source: string): string {\n // Simple approach: find template strings containing eui-alert and process them\n const templateRegex = /template\\s*:\\s*`([^`]*)`/gs;\n return source.replace(templateRegex, (match, templateContent: string) => {\n if (!templateContent.includes('eui-alert') && !templateContent.includes('euiAlert')) return match;\n const migrated = migrateTemplate(templateContent);\n if (migrated === templateContent) return match;\n return match.replace(templateContent, migrated);\n });\n}\n\nfunction visitNodes(nodes: TmplAstNode[], removals: { start: number; end: number }[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === 'eui-alert' || hasAttribute(node, 'euiAlert')) {\n collectRemovals(node, removals);\n }\n visitNodes(node.children, removals);\n }\n }\n}\n\nfunction hasAttribute(element: TmplAstElement, name: string): boolean {\n return element.attributes.some((a) => a.name === name);\n}\n\nfunction collectRemovals(element: TmplAstElement, removals: { start: number; end: number }[]): void {\n for (const attr of element.attributes) {\n if (REMOVED_INPUTS.has(attr.name)) {\n removals.push(getAttributeSpan(attr));\n }\n }\n for (const input of element.inputs) {\n if (REMOVED_INPUTS.has(input.name)) {\n removals.push(getAttributeSpan(input));\n }\n }\n}\n\nfunction getAttributeSpan(attr: TmplAstTextAttribute | TmplAstBoundAttribute): { start: number; end: number } {\n return { start: attr.sourceSpan.start.offset, end: attr.sourceSpan.end.offset };\n}\n",
4021
+ "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\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nconst REMOVED_INPUTS = new Set(['isFlat']);\n\nexport function migrateEuiAvatar(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n\n const dir = tree.getDir(scanPath || '/');\n visitDir(dir, (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes('eui-avatar') && !original.includes('euiAvatar')) return;\n\n const result = path.endsWith('.html')\n ? migrateTemplate(original)\n : migrateInlineTemplates(original);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would remove 'isFlat' input in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n\n // Warn about TS property access usages\n if (path.endsWith('.ts') && !path.endsWith('.spec.ts')) {\n if (!original.includes('isFlat')) return;\n\n const sourceFile = ts.createSourceFile(path, original, ts.ScriptTarget.Latest, true);\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && node.name.text === 'isFlat') {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(`${path}:${line + 1} - \"isFlat\" is no longer a valid input on eui-avatar. Remove this assignment.`);\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n }\n });\n\n context.logger.info(`Removed deprecated eui-avatar 'isFlat' input from ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\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\nfunction migrateTemplate(source: string): string {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const removals: { start: number; end: number }[] = [];\n\n visitNodes(parsed.nodes, removals);\n\n let result = source;\n for (const { start, end } of removals.sort((a, b) => b.start - a.start)) {\n let adjustedStart = start;\n while (adjustedStart > 0 && (result[adjustedStart - 1] === ' ' || result[adjustedStart - 1] === '\\t')) {\n adjustedStart--;\n }\n result = result.slice(0, adjustedStart) + result.slice(end);\n }\n\n return result;\n}\n\nfunction migrateInlineTemplates(source: string): string {\n const templateRegex = /template\\s*:\\s*`([^`]*)`/gs;\n return source.replace(templateRegex, (match, templateContent: string) => {\n if (!templateContent.includes('eui-avatar') && !templateContent.includes('euiAvatar')) return match;\n const migrated = migrateTemplate(templateContent);\n if (migrated === templateContent) return match;\n return match.replace(templateContent, migrated);\n });\n}\n\nfunction isAvatarElement(element: TmplAstElement): boolean {\n if (element.name === 'eui-avatar') return true;\n return element.attributes.some((a) => a.name === 'euiAvatar');\n}\n\nfunction visitNodes(nodes: TmplAstNode[], removals: { start: number; end: number }[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (isAvatarElement(node)) collectRemovals(node, removals);\n visitNodes(node.children, removals);\n }\n }\n}\n\nfunction collectRemovals(element: TmplAstElement, removals: { start: number; end: number }[]): void {\n for (const attr of element.attributes) {\n if (REMOVED_INPUTS.has(attr.name)) {\n removals.push(getAttributeSpan(attr));\n }\n }\n for (const input of element.inputs) {\n if (REMOVED_INPUTS.has(input.name)) {\n removals.push(getAttributeSpan(input));\n }\n }\n}\n\nfunction getAttributeSpan(attr: TmplAstTextAttribute | TmplAstBoundAttribute): { start: number; end: number } {\n return { start: attr.sourceSpan.start.offset, end: attr.sourceSpan.end.offset };\n}\n",
4022
4022
  "displayName": "Schema",
4023
4023
  "properties": [
4024
4024
  {
@@ -4060,12 +4060,12 @@
4060
4060
  },
4061
4061
  {
4062
4062
  "name": "Schema",
4063
- "id": "interface-Schema-c7e2cc0add09c97d83ec2675d59c86951681f8e2d49f133fb2f216ca98d0da1fdf892d45af31f19ecbbfd0d32f4ad70dd99e862f75725d3812f66a73ec34362c-19",
4064
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
4063
+ "id": "interface-Schema-585b211d989563bbec5bd67bcdb58d5f264396adbe0ed2e51d0b4a0ecaf8b3ec36d821647c170d616bb409fc603c5a4c0e699eb7511e02c6add8d8670fc9cb9f-19",
4064
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
4065
4065
  "deprecated": false,
4066
4066
  "deprecationMessage": "",
4067
4067
  "type": "interface",
4068
- "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\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nconst REMOVED_INPUTS = new Set(['isFlat']);\n\nexport function migrateEuiAvatar(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n\n const dir = tree.getDir(scanPath || '/');\n visitDir(dir, (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes('eui-avatar') && !original.includes('euiAvatar')) return;\n\n const result = path.endsWith('.html')\n ? migrateTemplate(original)\n : migrateInlineTemplates(original);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would remove 'isFlat' input in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n\n // Warn about TS property access usages\n if (path.endsWith('.ts') && !path.endsWith('.spec.ts')) {\n if (!original.includes('isFlat')) return;\n\n const sourceFile = ts.createSourceFile(path, original, ts.ScriptTarget.Latest, true);\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && node.name.text === 'isFlat') {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(`${path}:${line + 1} - \"isFlat\" is no longer a valid input on eui-avatar. Remove this assignment.`);\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n }\n });\n\n context.logger.info(`Removed deprecated eui-avatar 'isFlat' input from ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\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\nfunction migrateTemplate(source: string): string {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const removals: { start: number; end: number }[] = [];\n\n visitNodes(parsed.nodes, removals);\n\n let result = source;\n for (const { start, end } of removals.sort((a, b) => b.start - a.start)) {\n let adjustedStart = start;\n while (adjustedStart > 0 && (result[adjustedStart - 1] === ' ' || result[adjustedStart - 1] === '\\t')) {\n adjustedStart--;\n }\n result = result.slice(0, adjustedStart) + result.slice(end);\n }\n\n return result;\n}\n\nfunction migrateInlineTemplates(source: string): string {\n const templateRegex = /template\\s*:\\s*`([^`]*)`/gs;\n return source.replace(templateRegex, (match, templateContent: string) => {\n if (!templateContent.includes('eui-avatar') && !templateContent.includes('euiAvatar')) return match;\n const migrated = migrateTemplate(templateContent);\n if (migrated === templateContent) return match;\n return match.replace(templateContent, migrated);\n });\n}\n\nfunction isAvatarElement(element: TmplAstElement): boolean {\n if (element.name === 'eui-avatar') return true;\n return element.attributes.some((a) => a.name === 'euiAvatar');\n}\n\nfunction visitNodes(nodes: TmplAstNode[], removals: { start: number; end: number }[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (isAvatarElement(node)) collectRemovals(node, removals);\n visitNodes(node.children, removals);\n }\n }\n}\n\nfunction collectRemovals(element: TmplAstElement, removals: { start: number; end: number }[]): void {\n for (const attr of element.attributes) {\n if (REMOVED_INPUTS.has(attr.name)) {\n removals.push(getAttributeSpan(attr));\n }\n }\n for (const input of element.inputs) {\n if (REMOVED_INPUTS.has(input.name)) {\n removals.push(getAttributeSpan(input));\n }\n }\n}\n\nfunction getAttributeSpan(attr: TmplAstTextAttribute | TmplAstBoundAttribute): { start: number; end: number } {\n return { start: attr.sourceSpan.start.offset, end: attr.sourceSpan.end.offset };\n}\n",
4068
+ "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\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nconst REMOVED_INPUTS = new Set(['alertIconType', 'alertIconFillColor', 'isMuted', 'isBordered']);\n\nexport function migrateEuiAlert(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n\n const dir = tree.getDir(scanPath || '/');\n visitDir(dir, (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes('eui-alert') && !original.includes('euiAlert')) return;\n\n const result = path.endsWith('.html')\n ? migrateTemplate(original)\n : migrateInlineTemplates(original);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would remove deprecated inputs in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n\n // Warn about TS property access usages\n if (path.endsWith('.ts') && !path.endsWith('.spec.ts')) {\n if (![...REMOVED_INPUTS].some((input) => original.includes(input))) return;\n\n const sourceFile = ts.createSourceFile(path, original, ts.ScriptTarget.Latest, true);\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && REMOVED_INPUTS.has(node.name.text)) {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(\n `${path}:${line + 1} - Manual action needed: \"${node.name.text}\" is no longer a valid input on eui-alert. Remove this assignment.`,\n );\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n }\n });\n\n context.logger.info(`Removed deprecated eui-alert inputs from ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\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\nfunction migrateTemplate(source: string): string {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const removals: { start: number; end: number }[] = [];\n\n visitNodes(parsed.nodes, removals);\n\n // Apply removals in reverse order\n let result = source;\n for (const { start, end } of removals.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, start) + result.slice(end);\n }\n\n return result;\n}\n\nfunction migrateInlineTemplates(source: string): string {\n // Simple approach: find template strings containing eui-alert and process them\n const templateRegex = /template\\s*:\\s*`([^`]*)`/gs;\n return source.replace(templateRegex, (match, templateContent: string) => {\n if (!templateContent.includes('eui-alert') && !templateContent.includes('euiAlert')) return match;\n const migrated = migrateTemplate(templateContent);\n if (migrated === templateContent) return match;\n return match.replace(templateContent, migrated);\n });\n}\n\nfunction visitNodes(nodes: TmplAstNode[], removals: { start: number; end: number }[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === 'eui-alert' || hasAttribute(node, 'euiAlert')) {\n collectRemovals(node, removals);\n }\n visitNodes(node.children, removals);\n }\n }\n}\n\nfunction hasAttribute(element: TmplAstElement, name: string): boolean {\n return element.attributes.some((a) => a.name === name);\n}\n\nfunction collectRemovals(element: TmplAstElement, removals: { start: number; end: number }[]): void {\n for (const attr of element.attributes) {\n if (REMOVED_INPUTS.has(attr.name)) {\n removals.push(getAttributeSpan(attr));\n }\n }\n for (const input of element.inputs) {\n if (REMOVED_INPUTS.has(input.name)) {\n removals.push(getAttributeSpan(input));\n }\n }\n}\n\nfunction getAttributeSpan(attr: TmplAstTextAttribute | TmplAstBoundAttribute): { start: number; end: number } {\n return { start: attr.sourceSpan.start.offset, end: attr.sourceSpan.end.offset };\n}\n",
4069
4069
  "displayName": "Schema",
4070
4070
  "properties": [
4071
4071
  {
@@ -4389,12 +4389,12 @@
4389
4389
  },
4390
4390
  {
4391
4391
  "name": "Schema",
4392
- "id": "interface-Schema-0ee574e11dd651dd971057cb66220845e5b87b2949c69c623c8ddf7355af92a396c58c237a52a05f18c22a5332a2695b717bcfeb8ea840c4e7df8d0084c2b49c-26",
4393
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
4392
+ "id": "interface-Schema-b3ff4600c4a5ca1888c45e5baf3600fa6dc6477f1e473e5241ff6682e2929dc8950a5dfa8b1048a348dba7ad1f0ce8cc3681471933911b689e04713334ef4811-26",
4393
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
4394
4394
  "deprecated": false,
4395
4395
  "deprecationMessage": "",
4396
4396
  "type": "interface",
4397
- "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\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nconst COMPONENT_TAG = 'eui-fieldset';\nconst OLD_NAME = 'iconSvgType';\nconst NEW_NAME = 'iconSvgName';\n\nexport function migrateEuiFieldset(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n\n const dir = tree.getDir(scanPath || '/');\n visitDir(dir, (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes(COMPONENT_TAG)) return;\n\n let result: string;\n\n if (path.endsWith('.html')) {\n result = migrateTemplate(original);\n } else {\n result = migrateInlineTemplates(original);\n }\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would rename '${OLD_NAME}' → '${NEW_NAME}' in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n\n // Warn about TS property access usages (merged from warnTsUsages)\n if (path.endsWith('.ts') && !path.endsWith('.spec.ts') && original.includes(OLD_NAME)) {\n const sourceFile = ts.createSourceFile(path, original, ts.ScriptTarget.Latest, true);\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && node.name.text === OLD_NAME) {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(`${path}:${line + 1} - \"${OLD_NAME}\" has been renamed to \"${NEW_NAME}\" on ${COMPONENT_TAG}. Update this reference manually.`);\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n }\n });\n\n context.logger.info(`Renamed '${OLD_NAME}' → '${NEW_NAME}' on ${COMPONENT_TAG} in ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\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\nfunction migrateTemplate(source: string): string {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const edits: { start: number; end: number; replacement: string }[] = [];\n\n visitNodes(parsed.nodes, edits);\n\n return applyEdits(source, edits);\n}\n\nfunction migrateInlineTemplates(source: string): string {\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const changes: { start: number; end: number; text: string }[] = [];\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(COMPONENT_TAG)) {\n ts.forEachChild(node, visit); return; \n}\n const migrated = migrateTemplate(rawTemplate);\n if (migrated !== rawTemplate) changes.push({ start, end, text: migrated });\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n\n let result = source;\n for (const change of changes.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, change.start) + change.text + result.slice(change.end);\n }\n return result;\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 ts.isDecorator(callExpression.parent) && ts.isIdentifier(callExpression.expression) && callExpression.expression.text === 'Component';\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 visitNodes(nodes: TmplAstNode[], edits: { start: number; end: number; replacement: string }[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === COMPONENT_TAG) collectRenames(node, edits);\n visitNodes(node.children, edits);\n }\n }\n}\n\nfunction collectRenames(element: TmplAstElement, edits: { start: number; end: number; replacement: string }[]): void {\n for (const attr of element.attributes) {\n if (attr.name === OLD_NAME) {\n edits.push({ start: attr.keySpan!.start.offset, end: attr.keySpan!.end.offset, replacement: NEW_NAME });\n }\n }\n for (const input of element.inputs) {\n if (input.name === OLD_NAME) {\n edits.push({ start: input.keySpan!.start.offset, end: input.keySpan!.end.offset, replacement: NEW_NAME });\n }\n }\n}\n\nfunction applyEdits(source: string, edits: { start: number; end: number; replacement: string }[]): string {\n let result = source;\n for (const edit of edits.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",
4397
+ "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\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nconst COMPONENT_TAG = 'eui-icon-svg';\n\nconst INPUT_RENAMES = new Map([\n ['variant', 'fillColor'],\n ['aria-label', 'ariaLabel'],\n]);\n\nconst TS_PROPERTY_RENAMES = new Map([\n ['variant', 'fillColor'],\n]);\n\nexport function migrateEuiIconSvg(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n\n const dir = tree.getDir(scanPath || '/');\n visitDir(dir, (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes(COMPONENT_TAG)) return;\n\n let result: string;\n\n if (path.endsWith('.html')) {\n result = migrateTemplate(original);\n } else {\n result = migrateInlineTemplates(original);\n result = renameTsPropertyAccesses(result);\n }\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would rename deprecated inputs in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n });\n\n context.logger.info(`Migrated eui-icon-svg inputs in ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\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\nfunction migrateTemplate(source: string): string {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const edits: { start: number; end: number; replacement: string }[] = [];\n\n visitNodes(parsed.nodes, edits);\n\n return applyEdits(source, edits);\n}\n\nfunction migrateInlineTemplates(source: string): string {\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const changes: { start: number; end: number; text: string }[] = [];\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(COMPONENT_TAG)) {\n ts.forEachChild(node, visit);\n return;\n }\n const migrated = migrateTemplate(rawTemplate);\n if (migrated !== rawTemplate) {\n changes.push({ start, end, text: migrated });\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n\n let result = source;\n for (const change of changes.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, change.start) + change.text + result.slice(change.end);\n }\n return result;\n}\n\nfunction renameTsPropertyAccesses(source: string): string {\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: { start: number; end: number; replacement: string }[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && TS_PROPERTY_RENAMES.has(node.name.text)) {\n edits.push({ start: node.name.getStart(sourceFile), end: node.name.getEnd(), replacement: TS_PROPERTY_RENAMES.get(node.name.text)! });\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n\n return applyEdits(source, edits);\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 ts.isDecorator(callExpression.parent) && ts.isIdentifier(callExpression.expression) && callExpression.expression.text === 'Component';\n}\n\nfunction unwrapExpression(expression: ts.Expression): ts.Expression {\n let current = expression;\n while (ts.isParenthesizedExpression(current)) {\n current = current.expression;\n }\n return current;\n}\n\nfunction visitNodes(nodes: TmplAstNode[], edits: { start: number; end: number; replacement: string }[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === COMPONENT_TAG) {\n collectRenames(node, edits);\n }\n visitNodes(node.children, edits);\n }\n }\n}\n\nfunction collectRenames(element: TmplAstElement, edits: { start: number; end: number; replacement: string }[]): void {\n for (const attr of element.attributes) {\n const newName = INPUT_RENAMES.get(attr.name);\n if (newName) {\n edits.push({ start: attr.keySpan!.start.offset, end: attr.keySpan!.end.offset, replacement: newName });\n }\n }\n for (const input of element.inputs) {\n const newName = INPUT_RENAMES.get(input.name);\n if (newName) {\n edits.push({ start: input.keySpan!.start.offset, end: input.keySpan!.end.offset, replacement: newName });\n }\n }\n}\n\nfunction applyEdits(source: string, edits: { start: number; end: number; replacement: string }[]): string {\n let result = source;\n for (const edit of edits.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",
4398
4398
  "displayName": "Schema",
4399
4399
  "properties": [
4400
4400
  {
@@ -4436,12 +4436,12 @@
4436
4436
  },
4437
4437
  {
4438
4438
  "name": "Schema",
4439
- "id": "interface-Schema-b3ff4600c4a5ca1888c45e5baf3600fa6dc6477f1e473e5241ff6682e2929dc8950a5dfa8b1048a348dba7ad1f0ce8cc3681471933911b689e04713334ef4811-27",
4440
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
4439
+ "id": "interface-Schema-0ee574e11dd651dd971057cb66220845e5b87b2949c69c623c8ddf7355af92a396c58c237a52a05f18c22a5332a2695b717bcfeb8ea840c4e7df8d0084c2b49c-27",
4440
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
4441
4441
  "deprecated": false,
4442
4442
  "deprecationMessage": "",
4443
4443
  "type": "interface",
4444
- "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\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nconst COMPONENT_TAG = 'eui-icon-svg';\n\nconst INPUT_RENAMES = new Map([\n ['variant', 'fillColor'],\n ['aria-label', 'ariaLabel'],\n]);\n\nconst TS_PROPERTY_RENAMES = new Map([\n ['variant', 'fillColor'],\n]);\n\nexport function migrateEuiIconSvg(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n\n const dir = tree.getDir(scanPath || '/');\n visitDir(dir, (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes(COMPONENT_TAG)) return;\n\n let result: string;\n\n if (path.endsWith('.html')) {\n result = migrateTemplate(original);\n } else {\n result = migrateInlineTemplates(original);\n result = renameTsPropertyAccesses(result);\n }\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would rename deprecated inputs in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n });\n\n context.logger.info(`Migrated eui-icon-svg inputs in ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\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\nfunction migrateTemplate(source: string): string {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const edits: { start: number; end: number; replacement: string }[] = [];\n\n visitNodes(parsed.nodes, edits);\n\n return applyEdits(source, edits);\n}\n\nfunction migrateInlineTemplates(source: string): string {\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const changes: { start: number; end: number; text: string }[] = [];\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(COMPONENT_TAG)) {\n ts.forEachChild(node, visit);\n return;\n }\n const migrated = migrateTemplate(rawTemplate);\n if (migrated !== rawTemplate) {\n changes.push({ start, end, text: migrated });\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n\n let result = source;\n for (const change of changes.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, change.start) + change.text + result.slice(change.end);\n }\n return result;\n}\n\nfunction renameTsPropertyAccesses(source: string): string {\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: { start: number; end: number; replacement: string }[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && TS_PROPERTY_RENAMES.has(node.name.text)) {\n edits.push({ start: node.name.getStart(sourceFile), end: node.name.getEnd(), replacement: TS_PROPERTY_RENAMES.get(node.name.text)! });\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n\n return applyEdits(source, edits);\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 ts.isDecorator(callExpression.parent) && ts.isIdentifier(callExpression.expression) && callExpression.expression.text === 'Component';\n}\n\nfunction unwrapExpression(expression: ts.Expression): ts.Expression {\n let current = expression;\n while (ts.isParenthesizedExpression(current)) {\n current = current.expression;\n }\n return current;\n}\n\nfunction visitNodes(nodes: TmplAstNode[], edits: { start: number; end: number; replacement: string }[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === COMPONENT_TAG) {\n collectRenames(node, edits);\n }\n visitNodes(node.children, edits);\n }\n }\n}\n\nfunction collectRenames(element: TmplAstElement, edits: { start: number; end: number; replacement: string }[]): void {\n for (const attr of element.attributes) {\n const newName = INPUT_RENAMES.get(attr.name);\n if (newName) {\n edits.push({ start: attr.keySpan!.start.offset, end: attr.keySpan!.end.offset, replacement: newName });\n }\n }\n for (const input of element.inputs) {\n const newName = INPUT_RENAMES.get(input.name);\n if (newName) {\n edits.push({ start: input.keySpan!.start.offset, end: input.keySpan!.end.offset, replacement: newName });\n }\n }\n}\n\nfunction applyEdits(source: string, edits: { start: number; end: number; replacement: string }[]): string {\n let result = source;\n for (const edit of edits.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",
4444
+ "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\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nconst COMPONENT_TAG = 'eui-fieldset';\nconst OLD_NAME = 'iconSvgType';\nconst NEW_NAME = 'iconSvgName';\n\nexport function migrateEuiFieldset(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n\n const dir = tree.getDir(scanPath || '/');\n visitDir(dir, (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes(COMPONENT_TAG)) return;\n\n let result: string;\n\n if (path.endsWith('.html')) {\n result = migrateTemplate(original);\n } else {\n result = migrateInlineTemplates(original);\n }\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would rename '${OLD_NAME}' → '${NEW_NAME}' in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n\n // Warn about TS property access usages (merged from warnTsUsages)\n if (path.endsWith('.ts') && !path.endsWith('.spec.ts') && original.includes(OLD_NAME)) {\n const sourceFile = ts.createSourceFile(path, original, ts.ScriptTarget.Latest, true);\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && node.name.text === OLD_NAME) {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(`${path}:${line + 1} - \"${OLD_NAME}\" has been renamed to \"${NEW_NAME}\" on ${COMPONENT_TAG}. Update this reference manually.`);\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n }\n });\n\n context.logger.info(`Renamed '${OLD_NAME}' → '${NEW_NAME}' on ${COMPONENT_TAG} in ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\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\nfunction migrateTemplate(source: string): string {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const edits: { start: number; end: number; replacement: string }[] = [];\n\n visitNodes(parsed.nodes, edits);\n\n return applyEdits(source, edits);\n}\n\nfunction migrateInlineTemplates(source: string): string {\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const changes: { start: number; end: number; text: string }[] = [];\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(COMPONENT_TAG)) {\n ts.forEachChild(node, visit); return; \n}\n const migrated = migrateTemplate(rawTemplate);\n if (migrated !== rawTemplate) changes.push({ start, end, text: migrated });\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n\n let result = source;\n for (const change of changes.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, change.start) + change.text + result.slice(change.end);\n }\n return result;\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 ts.isDecorator(callExpression.parent) && ts.isIdentifier(callExpression.expression) && callExpression.expression.text === 'Component';\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 visitNodes(nodes: TmplAstNode[], edits: { start: number; end: number; replacement: string }[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === COMPONENT_TAG) collectRenames(node, edits);\n visitNodes(node.children, edits);\n }\n }\n}\n\nfunction collectRenames(element: TmplAstElement, edits: { start: number; end: number; replacement: string }[]): void {\n for (const attr of element.attributes) {\n if (attr.name === OLD_NAME) {\n edits.push({ start: attr.keySpan!.start.offset, end: attr.keySpan!.end.offset, replacement: NEW_NAME });\n }\n }\n for (const input of element.inputs) {\n if (input.name === OLD_NAME) {\n edits.push({ start: input.keySpan!.start.offset, end: input.keySpan!.end.offset, replacement: NEW_NAME });\n }\n }\n}\n\nfunction applyEdits(source: string, edits: { start: number; end: number; replacement: string }[]): string {\n let result = source;\n for (const edit of edits.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",
4445
4445
  "displayName": "Schema",
4446
4446
  "properties": [
4447
4447
  {
@@ -4530,12 +4530,12 @@
4530
4530
  },
4531
4531
  {
4532
4532
  "name": "Schema",
4533
- "id": "interface-Schema-a806c1769fb526271565003a6a3ef9ab4c67e421d93ee0cb54e1f6de223807afc1f16ad294656ef614a77a91a38cc914ce41ac97ed3a8a4195a1e74a729c0c08-29",
4534
- "file": "packages/core/schematics/migrate-eui-popover/index.ts",
4533
+ "id": "interface-Schema-90e62c16ce9ada881e8d434336bb633dae9745236106ddf60964afbd11de6aa579255a13d6036b384281860eb6ed2ee329194b519c51fdaf20f79bc511d0f64f-29",
4534
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
4535
4535
  "deprecated": false,
4536
4536
  "deprecationMessage": "",
4537
4537
  "type": "interface",
4538
- "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\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nconst REMOVED_INPUTS = new Set(['type']);\n\nexport function migrateEuiPopover(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n\n const dir = tree.getDir(scanPath || '/');\n visitDir(dir, (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes('eui-popover')) return;\n\n const result = path.endsWith('.html')\n ? migrateTemplate(original)\n : migrateInlineTemplates(original);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would remove 'type' input in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n\n // Warn about TS usages inline\n if (path.endsWith('.ts') && !path.endsWith('.spec.ts') && (original.includes('eui-popover') || original.includes('euiPopover') || original.includes('EuiPopover'))) {\n if (original.includes('type')) {\n const sourceFile = ts.createSourceFile(path, original, ts.ScriptTarget.Latest, true);\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && node.name.text === 'type') {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(\n `${path}:${line + 1} - Manual action needed: \"type\" is no longer a valid input on eui-popover. Remove this assignment.`,\n );\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n }\n }\n });\n\n context.logger.info(`Removed deprecated eui-popover 'type' input from ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\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\nfunction migrateTemplate(source: string): string {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const removals: { start: number; end: number }[] = [];\n\n visitNodes(parsed.nodes, removals);\n\n let result = source;\n for (const { start, end } of removals.sort((a, b) => b.start - a.start)) {\n // Extend start backwards to consume leading whitespace\n let adjustedStart = start;\n while (adjustedStart > 0 && (result[adjustedStart - 1] === ' ' || result[adjustedStart - 1] === '\\t')) {\n adjustedStart--;\n }\n result = result.slice(0, adjustedStart) + result.slice(end);\n }\n\n return result;\n}\n\nfunction migrateInlineTemplates(source: string): string {\n const templateRegex = /template\\s*:\\s*`([^`]*)`/gs;\n return source.replace(templateRegex, (match, templateContent: string) => {\n if (!templateContent.includes('eui-popover')) return match;\n const migrated = migrateTemplate(templateContent);\n if (migrated === templateContent) return match;\n return match.replace(templateContent, migrated);\n });\n}\n\nfunction visitNodes(nodes: TmplAstNode[], removals: { start: number; end: number }[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === 'eui-popover') {\n collectRemovals(node, removals);\n }\n visitNodes(node.children, removals);\n }\n }\n}\n\nfunction collectRemovals(element: TmplAstElement, removals: { start: number; end: number }[]): void {\n for (const attr of element.attributes) {\n if (REMOVED_INPUTS.has(attr.name)) {\n removals.push(getAttributeSpan(attr));\n }\n }\n for (const input of element.inputs) {\n if (REMOVED_INPUTS.has(input.name)) {\n removals.push(getAttributeSpan(input));\n }\n }\n}\n\nfunction getAttributeSpan(attr: TmplAstTextAttribute | TmplAstBoundAttribute): { start: number; end: number } {\n return { start: attr.sourceSpan.start.offset, end: attr.sourceSpan.end.offset };\n}\n",
4538
+ "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\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nconst INPUT_RENAMES = new Map([\n ['iconLabelClass', 'icon'],\n ['iconLabelStyleClass', 'fillColor'],\n]);\n\nexport function migrateEuiProgressCircle(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n const oldNames = [...INPUT_RENAMES.keys()];\n\n const dir = tree.getDir(scanPath || '/');\n visitDir(dir, (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n\n if (original.includes('eui-progress-circle')) {\n const result = path.endsWith('.html')\n ? migrateTemplate(original)\n : migrateInlineTemplates(original);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would rename deprecated inputs in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n }\n\n // Warn about TS property access usages (merged from warnTsUsages)\n if (path.endsWith('.ts') && !path.endsWith('.spec.ts')) {\n if (oldNames.some((name) => original.includes(name))) {\n const sourceFile = ts.createSourceFile(path, original, ts.ScriptTarget.Latest, true);\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && INPUT_RENAMES.has(node.name.text)) {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n const newName = INPUT_RENAMES.get(node.name.text);\n context.logger.warn(\n `${path}:${line + 1} - \"${node.name.text}\" has been renamed to \"${newName}\" on eui-progress-circle. Update this reference manually.`,\n );\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n }\n }\n });\n\n context.logger.info(`Renamed deprecated eui-progress-circle inputs in ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\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\nfunction migrateTemplate(source: string): string {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const edits: { start: number; end: number; replacement: string }[] = [];\n\n visitNodes(parsed.nodes, edits);\n\n return applyEdits(source, edits);\n}\n\nfunction migrateInlineTemplates(source: string): string {\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const changes: { start: number; end: number; text: string }[] = [];\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('eui-progress-circle')) {\n ts.forEachChild(node, visit);\n return;\n }\n const migrated = migrateTemplate(rawTemplate);\n if (migrated !== rawTemplate) {\n changes.push({ start, end, text: migrated });\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n\n let result = source;\n for (const change of changes.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, change.start) + change.text + result.slice(change.end);\n }\n return result;\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 ts.isDecorator(callExpression.parent) && ts.isIdentifier(callExpression.expression) && callExpression.expression.text === 'Component';\n}\n\nfunction unwrapExpression(expression: ts.Expression): ts.Expression {\n let current = expression;\n while (ts.isParenthesizedExpression(current)) {\n current = current.expression;\n }\n return current;\n}\n\nfunction visitNodes(nodes: TmplAstNode[], edits: { start: number; end: number; replacement: string }[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === 'eui-progress-circle') {\n collectRenames(node, edits);\n }\n visitNodes(node.children, edits);\n }\n }\n}\n\nfunction collectRenames(element: TmplAstElement, edits: { start: number; end: number; replacement: string }[]): void {\n for (const attr of element.attributes) {\n const newName = INPUT_RENAMES.get(attr.name);\n if (newName) {\n edits.push({ start: attr.keySpan!.start.offset, end: attr.keySpan!.end.offset, replacement: newName });\n }\n }\n for (const input of element.inputs) {\n const newName = INPUT_RENAMES.get(input.name);\n if (newName) {\n edits.push({ start: input.keySpan!.start.offset, end: input.keySpan!.end.offset, replacement: newName });\n }\n }\n}\n\nfunction applyEdits(source: string, edits: { start: number; end: number; replacement: string }[]): string {\n let result = source;\n for (const edit of edits.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",
4539
4539
  "displayName": "Schema",
4540
4540
  "properties": [
4541
4541
  {
@@ -4577,12 +4577,12 @@
4577
4577
  },
4578
4578
  {
4579
4579
  "name": "Schema",
4580
- "id": "interface-Schema-90e62c16ce9ada881e8d434336bb633dae9745236106ddf60964afbd11de6aa579255a13d6036b384281860eb6ed2ee329194b519c51fdaf20f79bc511d0f64f-30",
4581
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
4580
+ "id": "interface-Schema-91c9f900bf3ebb82488fb65644938ef486ceaa447cff8bfd9d710df9595d82acb267b26f3c252173bc684353f362473120226426ed7ee5d98b33e30011dd9383-30",
4581
+ "file": "packages/core/schematics/migrate-eui-table/index.ts",
4582
4582
  "deprecated": false,
4583
4583
  "deprecationMessage": "",
4584
4584
  "type": "interface",
4585
- "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\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nconst INPUT_RENAMES = new Map([\n ['iconLabelClass', 'icon'],\n ['iconLabelStyleClass', 'fillColor'],\n]);\n\nexport function migrateEuiProgressCircle(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n const oldNames = [...INPUT_RENAMES.keys()];\n\n const dir = tree.getDir(scanPath || '/');\n visitDir(dir, (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n\n if (original.includes('eui-progress-circle')) {\n const result = path.endsWith('.html')\n ? migrateTemplate(original)\n : migrateInlineTemplates(original);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would rename deprecated inputs in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n }\n\n // Warn about TS property access usages (merged from warnTsUsages)\n if (path.endsWith('.ts') && !path.endsWith('.spec.ts')) {\n if (oldNames.some((name) => original.includes(name))) {\n const sourceFile = ts.createSourceFile(path, original, ts.ScriptTarget.Latest, true);\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && INPUT_RENAMES.has(node.name.text)) {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n const newName = INPUT_RENAMES.get(node.name.text);\n context.logger.warn(\n `${path}:${line + 1} - \"${node.name.text}\" has been renamed to \"${newName}\" on eui-progress-circle. Update this reference manually.`,\n );\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n }\n }\n });\n\n context.logger.info(`Renamed deprecated eui-progress-circle inputs in ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\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\nfunction migrateTemplate(source: string): string {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const edits: { start: number; end: number; replacement: string }[] = [];\n\n visitNodes(parsed.nodes, edits);\n\n return applyEdits(source, edits);\n}\n\nfunction migrateInlineTemplates(source: string): string {\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const changes: { start: number; end: number; text: string }[] = [];\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('eui-progress-circle')) {\n ts.forEachChild(node, visit);\n return;\n }\n const migrated = migrateTemplate(rawTemplate);\n if (migrated !== rawTemplate) {\n changes.push({ start, end, text: migrated });\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n\n let result = source;\n for (const change of changes.sort((a, b) => b.start - a.start)) {\n result = result.slice(0, change.start) + change.text + result.slice(change.end);\n }\n return result;\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 ts.isDecorator(callExpression.parent) && ts.isIdentifier(callExpression.expression) && callExpression.expression.text === 'Component';\n}\n\nfunction unwrapExpression(expression: ts.Expression): ts.Expression {\n let current = expression;\n while (ts.isParenthesizedExpression(current)) {\n current = current.expression;\n }\n return current;\n}\n\nfunction visitNodes(nodes: TmplAstNode[], edits: { start: number; end: number; replacement: string }[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === 'eui-progress-circle') {\n collectRenames(node, edits);\n }\n visitNodes(node.children, edits);\n }\n }\n}\n\nfunction collectRenames(element: TmplAstElement, edits: { start: number; end: number; replacement: string }[]): void {\n for (const attr of element.attributes) {\n const newName = INPUT_RENAMES.get(attr.name);\n if (newName) {\n edits.push({ start: attr.keySpan!.start.offset, end: attr.keySpan!.end.offset, replacement: newName });\n }\n }\n for (const input of element.inputs) {\n const newName = INPUT_RENAMES.get(input.name);\n if (newName) {\n edits.push({ start: input.keySpan!.start.offset, end: input.keySpan!.end.offset, replacement: newName });\n }\n }\n}\n\nfunction applyEdits(source: string, edits: { start: number; end: number; replacement: string }[]): string {\n let result = source;\n for (const edit of edits.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",
4585
+ "sourceCode": "import { BindingPipe, parseTemplate, TmplAstBoundAttribute, TmplAstBoundEvent, TmplAstBoundText, TmplAstElement, TmplAstNode, TmplAstTemplate, TmplAstTextAttribute, AST, ASTWithSource, Interpolation } 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\ninterface Edit { start: number; end: number; replacement: string; }\n\n// --- Table-level input renames (on elements with euiTable attribute) ---\nconst TABLE_INPUT_RENAMES = new Map([\n ['rows', 'data'],\n ['loading', 'isLoading'],\n ['asyncTable', 'isAsync'],\n ['euiTableResponsive', 'isTableResponsive'],\n ['euiTableFixedLayout', 'isTableFixedLayout'],\n ['euiTableCompact', 'isTableCompact'],\n ['hasStickyColumns', 'hasStickyCols'],\n]);\n\n// --- Child element input renames (scoped to euiTable context) ---\nconst TH_TD_INPUT_RENAMES = new Map([\n ['isStickyColumn', 'isStickyCol'],\n ['sortable', 'isSortable'],\n]);\n\nconst TR_INPUT_RENAMES = new Map([\n ['isSelectableHeader', 'isHeaderSelectable'],\n ['isSelectable', 'isDataSelectable'],\n]);\n\n// --- Removed inputs ---\nconst REMOVED_INPUTS = new Set(['euiTableBordered', 'isHoverable', 'defaultMultiOrder', 'paginable']);\n\n// --- Output renames/removals ---\nconst OUTPUT_RENAMES = new Map([['selectedRows', 'rowsSelect']]);\nconst REMOVED_OUTPUTS = new Set(['multiSortChange']);\n\n// --- Pipe rename ---\nconst OLD_PIPE = 'euiTableHighlightFilter';\nconst NEW_PIPE = 'euiTableHighlight';\n\n// --- TS property renames ---\nconst TS_PROPERTY_RENAMES = new Map([['filteredRows', 'getFilteredData']]);\n\nconst PAGINATOR_IMPORT_PATH = '@eui/components/eui-paginator';\nconst PAGINATOR_COMPONENT = 'EuiPaginatorComponent';\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nexport function migrateEuiTable(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n const paginatorHtmlFiles = new Set<string>();\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('euiTable') && !original.includes(OLD_PIPE) && !original.includes('filteredRows') && !original.includes('setSort')) return;\n\n let result: string;\n\n if (path.endsWith('.html')) {\n const { output, hasPaginator } = migrateTemplateWithPaginator(original, path, context);\n result = output;\n if (hasPaginator) paginatorHtmlFiles.add(path);\n } else {\n const { output, hasPaginator } = migrateTypeScript(original, path, context);\n result = output;\n if (hasPaginator) {\n result = addPaginatorImport(result, path);\n }\n }\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would migrate eui-table breaking changes in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n });\n\n // Handle paginator imports for external templates\n if (paginatorHtmlFiles.size > 0) {\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n if (!path.endsWith('.ts')) return;\n\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const source = buffer.toString('utf-8');\n if (!source.includes('templateUrl')) return;\n\n for (const htmlFile of paginatorHtmlFiles) {\n const htmlFileName = htmlFile.split('/').pop()!;\n if (source.includes(htmlFileName)) {\n const updated = addPaginatorImport(source, path);\n if (updated !== source) {\n if (options.dryRun) {\n logDryRun(context, `Would add paginator import in ${path}`);\n } else {\n tree.overwrite(path, updated);\n }\n count++;\n }\n break;\n }\n }\n });\n }\n\n context.logger.info(`Migrated eui-table in ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction migrateTemplateWithPaginator(source: string, filePath: string, context: SchematicContext): { output: string; hasPaginator: boolean } {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const edits: Edit[] = [];\n let hasPaginator = false;\n\n const paginatorResult = visitNodesForTable(parsed.nodes, source, edits, false, filePath, context);\n if (paginatorResult) hasPaginator = true;\n\n collectPipeRenames(parsed.nodes, source, edits);\n\n return { output: applyEdits(source, edits), hasPaginator };\n}\n\nfunction migrateTemplate(source: string, filePath: string, context: SchematicContext): string {\n return migrateTemplateWithPaginator(source, filePath, context).output;\n}\n\nfunction migrateTypeScript(source: string, filePath: string, context: SchematicContext): { output: string; hasPaginator: boolean } {\n let result = source;\n let hasPaginator = false;\n\n // Migrate inline templates\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const changes: 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 = result.slice(start, end);\n if (!rawTemplate.includes('euiTable') && !rawTemplate.includes(OLD_PIPE)) {\n ts.forEachChild(node, visit); return;\n}\n const { output: migrated, hasPaginator: pag } = migrateTemplateWithPaginator(rawTemplate, filePath, context);\n if (pag) hasPaginator = true;\n if (migrated !== rawTemplate) changes.push({ start, end, replacement: migrated });\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n result = applyEdits(result, changes);\n\n // Rename TS property accesses\n result = renameTsProperties(result);\n\n // Warn about setSort\n warnSetSort(result, filePath, context);\n\n return { output: result, hasPaginator };\n}\n\nfunction renameTsProperties(source: string): string {\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && TS_PROPERTY_RENAMES.has(node.name.text)) {\n edits.push({ start: node.name.getStart(sourceFile), end: node.name.getEnd(), replacement: TS_PROPERTY_RENAMES.get(node.name.text)! });\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n return applyEdits(source, edits);\n}\n\nfunction warnSetSort(source: string, filePath: string, context: SchematicContext): void {\n if (!source.includes('setSort')) return;\n\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true);\n\n const visit = (node: ts.Node): void => {\n if (ts.isCallExpression(node) && ts.isPropertyAccessExpression(node.expression) &&\n ts.isIdentifier(node.expression.name) && node.expression.name.text === 'setSort') {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(\n `${filePath}:${line + 1} - \"setSort\" signature changed from setSort(sort: string, order: \"asc\" | \"desc\") to setSort(Sort[]). Update manually.`,\n );\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n}\n\n// --- Template AST visitors ---\n\nfunction visitNodesForTable(\n nodes: TmplAstNode[], source: string, edits: Edit[], insideEuiTable: boolean, filePath: string, context: SchematicContext,\n): boolean {\n let hasPaginator = false;\n\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n const isEuiTable = hasEuiTableAttribute(node);\n\n if (isEuiTable) {\n collectTableInputRenames(node, edits);\n collectInputRemovals(node, source, edits, filePath, context);\n collectOutputChanges(node, source, edits, filePath, context);\n if (collectPaginatorMigration(node, source, edits)) hasPaginator = true;\n }\n\n if (isEuiTable || insideEuiTable) {\n collectChildElementRenames(node, edits);\n collectChildInputRemovals(node, source, edits, filePath, context);\n collectEmptyMessageRename(node, edits);\n }\n\n const childResult = visitNodesForTable(node.children, source, edits, isEuiTable || insideEuiTable, filePath, context);\n if (childResult) hasPaginator = true;\n }\n\n if (node instanceof TmplAstTemplate) {\n if (insideEuiTable) {\n collectTemplateEmptyMessageRename(node, edits);\n }\n const childResult = visitNodesForTable(node.children, source, edits, insideEuiTable, filePath, context);\n if (childResult) hasPaginator = true;\n }\n }\n\n return hasPaginator;\n}\n\nfunction hasEuiTableAttribute(element: TmplAstElement): boolean {\n return element.attributes.some((a) => a.name === 'euiTable') ||\n element.inputs.some((i) => i.name === 'euiTable');\n}\n\nfunction collectTableInputRenames(element: TmplAstElement, edits: Edit[]): void {\n for (const attr of element.attributes) {\n const newName = TABLE_INPUT_RENAMES.get(attr.name);\n if (newName) edits.push({ start: attr.keySpan!.start.offset, end: attr.keySpan!.end.offset, replacement: newName });\n }\n for (const input of element.inputs) {\n const newName = TABLE_INPUT_RENAMES.get(input.name);\n if (newName) edits.push({ start: input.keySpan!.start.offset, end: input.keySpan!.end.offset, replacement: newName });\n }\n}\n\nfunction collectChildElementRenames(element: TmplAstElement, edits: Edit[]): void {\n const renames = (element.name === 'th' || element.name === 'td') ? TH_TD_INPUT_RENAMES\n : element.name === 'tr' ? TR_INPUT_RENAMES : null;\n if (!renames) return;\n\n for (const attr of element.attributes) {\n const newName = renames.get(attr.name);\n if (newName) edits.push({ start: attr.keySpan!.start.offset, end: attr.keySpan!.end.offset, replacement: newName });\n }\n for (const input of element.inputs) {\n const newName = renames.get(input.name);\n if (newName) edits.push({ start: input.keySpan!.start.offset, end: input.keySpan!.end.offset, replacement: newName });\n }\n}\n\nfunction collectChildInputRemovals(element: TmplAstElement, source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n const childRemovedInputs = new Set(['defaultMultiOrder']);\n\n for (const attr of element.attributes) {\n if (childRemovedInputs.has(attr.name)) {\n removeAttribute(attr.sourceSpan.start.offset, attr.sourceSpan.end.offset, source, edits);\n logRemovalWarning(attr.name, filePath, element, context);\n }\n }\n for (const input of element.inputs) {\n if (childRemovedInputs.has(input.name)) {\n removeAttribute(input.sourceSpan.start.offset, input.sourceSpan.end.offset, source, edits);\n logRemovalWarning(input.name, filePath, element, context);\n }\n }\n}\n\nfunction collectInputRemovals(element: TmplAstElement, source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n for (const attr of element.attributes) {\n if (REMOVED_INPUTS.has(attr.name) && attr.name !== 'paginable') {\n removeAttribute(attr.sourceSpan.start.offset, attr.sourceSpan.end.offset, source, edits);\n logRemovalWarning(attr.name, filePath, element, context);\n }\n }\n for (const input of element.inputs) {\n if (REMOVED_INPUTS.has(input.name) && input.name !== 'paginable') {\n removeAttribute(input.sourceSpan.start.offset, input.sourceSpan.end.offset, source, edits);\n logRemovalWarning(input.name, filePath, element, context);\n }\n }\n}\n\nfunction collectOutputChanges(element: TmplAstElement, source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n for (const output of element.outputs) {\n const newName = OUTPUT_RENAMES.get(output.name);\n if (newName) {\n edits.push({ start: output.keySpan!.start.offset, end: output.keySpan!.end.offset, replacement: newName });\n }\n if (REMOVED_OUTPUTS.has(output.name)) {\n removeAttribute(output.sourceSpan.start.offset, output.sourceSpan.end.offset, source, edits);\n const { line } = element.startSourceSpan.start;\n context.logger.warn(\n `${filePath}:${line + 1} - \"(${output.name})\" removed. Multi-sort is now supported by (sortChange) output.`,\n );\n }\n }\n}\n\nfunction collectPaginatorMigration(element: TmplAstElement, source: string, edits: Edit[]): boolean {\n let found = false;\n\n for (const attr of element.attributes) {\n if (attr.name === 'paginable') {\n removeAttribute(attr.sourceSpan.start.offset, attr.sourceSpan.end.offset, source, edits);\n found = true;\n }\n }\n for (const input of element.inputs) {\n if (input.name === 'paginable') {\n removeAttribute(input.sourceSpan.start.offset, input.sourceSpan.end.offset, source, edits);\n found = true;\n }\n }\n\n if (found) {\n // Add [paginator]=\"paginator\" before closing > of opening tag\n const insertPos = element.startSourceSpan.end.offset - 1;\n edits.push({ start: insertPos, end: insertPos, replacement: ' [paginator]=\"paginator\"' });\n\n // Add eui-paginator after </table>\n if (element.endSourceSpan) {\n const afterTable = element.endSourceSpan.end.offset;\n edits.push({\n start: afterTable,\n end: afterTable,\n replacement: '\\n<!-- TODO: Configure paginator and implement onPageChange handler -->\\n<eui-paginator #paginator [pageSize]=\"10\" [pageSizeOptions]=\"[5, 10, 25, 50]\" />',\n });\n }\n }\n\n return found;\n}\n\nfunction collectEmptyMessageRename(element: TmplAstElement, edits: Edit[]): void {\n // Handle direct attribute on elements (unlikely but handle)\n for (const attr of element.attributes) {\n if (attr.name === 'euiTemplate' && attr.value === 'emptyMessage' && attr.valueSpan) {\n edits.push({ start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: 'footer' });\n }\n }\n}\n\nfunction collectTemplateEmptyMessageRename(template: TmplAstTemplate, edits: Edit[]): void {\n for (const attr of template.templateAttrs) {\n if (attr instanceof TmplAstTextAttribute && attr.name === 'euiTemplate' && attr.value === 'emptyMessage' && attr.valueSpan) {\n edits.push({ start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: 'footer' });\n }\n }\n for (const attr of template.attributes) {\n if (attr.name === 'euiTemplate' && attr.value === 'emptyMessage' && attr.valueSpan) {\n edits.push({ start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: 'footer' });\n }\n }\n}\n\n// --- Pipe rename via AST ---\n\nfunction collectPipeRenames(nodes: TmplAstNode[], source: string, edits: Edit[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n for (const input of node.inputs) {\n visitExpressionForPipes(input.value, edits);\n }\n for (const output of node.outputs) {\n if (output.handler) visitExpressionForPipes(output.handler, edits);\n }\n collectPipeRenames(node.children, source, edits);\n }\n if (node instanceof TmplAstTemplate) {\n for (const input of node.inputs) {\n visitExpressionForPipes(input.value, edits);\n }\n collectPipeRenames(node.children, source, edits);\n }\n if (node instanceof TmplAstBoundText) {\n visitExpressionForPipes(node.value, edits);\n }\n }\n}\n\nfunction visitExpressionForPipes(expr: AST, edits: Edit[]): void {\n if (expr instanceof ASTWithSource && expr.ast) {\n visitAstForPipes(expr.ast, edits);\n } else {\n visitAstForPipes(expr, edits);\n }\n}\n\nfunction visitAstForPipes(ast: AST, edits: Edit[]): void {\n if (ast instanceof BindingPipe) {\n if (ast.name === OLD_PIPE && ast.nameSpan) {\n edits.push({ start: ast.nameSpan.start, end: ast.nameSpan.end, replacement: NEW_PIPE });\n }\n visitAstForPipes(ast.exp, edits);\n for (const arg of ast.args) {\n visitAstForPipes(arg, edits);\n }\n return;\n }\n\n if (ast instanceof Interpolation) {\n for (const expr of ast.expressions) {\n visitAstForPipes(expr, edits);\n }\n return;\n }\n\n // Recursively visit all properties that could contain AST nodes\n for (const key of Object.keys(ast)) {\n // eslint-disable-next-line\n const val = (ast as any)[key];\n if (val instanceof AST) {\n visitAstForPipes(val, edits);\n } else if (Array.isArray(val)) {\n for (const item of val) {\n if (item instanceof AST) visitAstForPipes(item, edits);\n }\n }\n }\n}\n\n// --- Import handling for paginator ---\n\nfunction addPaginatorImport(source: string, filePath: string): string {\n if (source.includes(PAGINATOR_COMPONENT)) return source;\n\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n // Add import statement after last import\n let lastImportEnd = 0;\n for (const stmt of sourceFile.statements) {\n if (ts.isImportDeclaration(stmt)) {\n lastImportEnd = stmt.getEnd();\n }\n }\n\n if (lastImportEnd > 0) {\n edits.push({\n start: lastImportEnd,\n end: lastImportEnd,\n replacement: `\\nimport { ${PAGINATOR_COMPONENT} } from '${PAGINATOR_IMPORT_PATH}';`,\n });\n }\n\n // Add to component imports array\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAssignment(node) && ts.isIdentifier(node.name) && node.name.text === 'imports' && isComponentMetadataProperty(node)) {\n if (ts.isArrayLiteralExpression(node.initializer)) {\n const arr = node.initializer;\n const elements = arr.elements;\n if (elements.length > 0) {\n const lastElement = elements[elements.length - 1];\n edits.push({\n start: lastElement.getEnd(),\n end: lastElement.getEnd(),\n replacement: `, ${PAGINATOR_COMPONENT}`,\n });\n } else {\n const insertPos = arr.getStart(sourceFile) + 1;\n edits.push({ start: insertPos, end: insertPos, replacement: PAGINATOR_COMPONENT });\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n\n return applyEdits(source, edits);\n}\n\n// --- Helpers ---\n\nfunction removeAttribute(start: number, end: number, source: string, edits: Edit[]): void {\n let adjustedStart = start;\n while (adjustedStart > 0 && (source[adjustedStart - 1] === ' ' || source[adjustedStart - 1] === '\\t')) {\n adjustedStart--;\n }\n edits.push({ start: adjustedStart, end, replacement: '' });\n}\n\nfunction logRemovalWarning(name: string, filePath: string, element: TmplAstElement, context: SchematicContext): void {\n const { line } = element.startSourceSpan.start;\n if (name === 'defaultMultiOrder') {\n context.logger.warn(`${filePath}:${line + 1} - \"[${name}]\" removed. Use setSort(Sort[]) to initialize sorting.`);\n } else {\n context.logger.warn(`${filePath}:${line + 1} - \"[${name}]\" removed to align to Design System.`);\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 ts.isDecorator(callExpression.parent) && ts.isIdentifier(callExpression.expression) && callExpression.expression.text === 'Component';\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 = new Map<string, Edit>();\n for (const edit of edits) {\n const key = `${edit.start}:${edit.end}`;\n unique.set(key, edit);\n }\n let result = source;\n for (const edit of [...unique.values()].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 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",
4586
4586
  "displayName": "Schema",
4587
4587
  "properties": [
4588
4588
  {
@@ -4594,7 +4594,7 @@
4594
4594
  "indexKey": "",
4595
4595
  "optional": true,
4596
4596
  "description": "",
4597
- "line": 8,
4597
+ "line": 49,
4598
4598
  "rawdescription": "\n"
4599
4599
  },
4600
4600
  {
@@ -4606,7 +4606,7 @@
4606
4606
  "indexKey": "",
4607
4607
  "optional": true,
4608
4608
  "description": "",
4609
- "line": 7,
4609
+ "line": 48,
4610
4610
  "rawdescription": "\n"
4611
4611
  }
4612
4612
  ],
@@ -4624,12 +4624,12 @@
4624
4624
  },
4625
4625
  {
4626
4626
  "name": "Schema",
4627
- "id": "interface-Schema-91c9f900bf3ebb82488fb65644938ef486ceaa447cff8bfd9d710df9595d82acb267b26f3c252173bc684353f362473120226426ed7ee5d98b33e30011dd9383-31",
4628
- "file": "packages/core/schematics/migrate-eui-table/index.ts",
4627
+ "id": "interface-Schema-a806c1769fb526271565003a6a3ef9ab4c67e421d93ee0cb54e1f6de223807afc1f16ad294656ef614a77a91a38cc914ce41ac97ed3a8a4195a1e74a729c0c08-31",
4628
+ "file": "packages/core/schematics/migrate-eui-popover/index.ts",
4629
4629
  "deprecated": false,
4630
4630
  "deprecationMessage": "",
4631
4631
  "type": "interface",
4632
- "sourceCode": "import { BindingPipe, parseTemplate, TmplAstBoundAttribute, TmplAstBoundEvent, TmplAstBoundText, TmplAstElement, TmplAstNode, TmplAstTemplate, TmplAstTextAttribute, AST, ASTWithSource, Interpolation } 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\ninterface Edit { start: number; end: number; replacement: string; }\n\n// --- Table-level input renames (on elements with euiTable attribute) ---\nconst TABLE_INPUT_RENAMES = new Map([\n ['rows', 'data'],\n ['loading', 'isLoading'],\n ['asyncTable', 'isAsync'],\n ['euiTableResponsive', 'isTableResponsive'],\n ['euiTableFixedLayout', 'isTableFixedLayout'],\n ['euiTableCompact', 'isTableCompact'],\n ['hasStickyColumns', 'hasStickyCols'],\n]);\n\n// --- Child element input renames (scoped to euiTable context) ---\nconst TH_TD_INPUT_RENAMES = new Map([\n ['isStickyColumn', 'isStickyCol'],\n ['sortable', 'isSortable'],\n]);\n\nconst TR_INPUT_RENAMES = new Map([\n ['isSelectableHeader', 'isHeaderSelectable'],\n ['isSelectable', 'isDataSelectable'],\n]);\n\n// --- Removed inputs ---\nconst REMOVED_INPUTS = new Set(['euiTableBordered', 'isHoverable', 'defaultMultiOrder', 'paginable']);\n\n// --- Output renames/removals ---\nconst OUTPUT_RENAMES = new Map([['selectedRows', 'rowsSelect']]);\nconst REMOVED_OUTPUTS = new Set(['multiSortChange']);\n\n// --- Pipe rename ---\nconst OLD_PIPE = 'euiTableHighlightFilter';\nconst NEW_PIPE = 'euiTableHighlight';\n\n// --- TS property renames ---\nconst TS_PROPERTY_RENAMES = new Map([['filteredRows', 'getFilteredData']]);\n\nconst PAGINATOR_IMPORT_PATH = '@eui/components/eui-paginator';\nconst PAGINATOR_COMPONENT = 'EuiPaginatorComponent';\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nexport function migrateEuiTable(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n const paginatorHtmlFiles = new Set<string>();\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('euiTable') && !original.includes(OLD_PIPE) && !original.includes('filteredRows') && !original.includes('setSort')) return;\n\n let result: string;\n\n if (path.endsWith('.html')) {\n const { output, hasPaginator } = migrateTemplateWithPaginator(original, path, context);\n result = output;\n if (hasPaginator) paginatorHtmlFiles.add(path);\n } else {\n const { output, hasPaginator } = migrateTypeScript(original, path, context);\n result = output;\n if (hasPaginator) {\n result = addPaginatorImport(result, path);\n }\n }\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would migrate eui-table breaking changes in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n });\n\n // Handle paginator imports for external templates\n if (paginatorHtmlFiles.size > 0) {\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n if (!path.endsWith('.ts')) return;\n\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const source = buffer.toString('utf-8');\n if (!source.includes('templateUrl')) return;\n\n for (const htmlFile of paginatorHtmlFiles) {\n const htmlFileName = htmlFile.split('/').pop()!;\n if (source.includes(htmlFileName)) {\n const updated = addPaginatorImport(source, path);\n if (updated !== source) {\n if (options.dryRun) {\n logDryRun(context, `Would add paginator import in ${path}`);\n } else {\n tree.overwrite(path, updated);\n }\n count++;\n }\n break;\n }\n }\n });\n }\n\n context.logger.info(`Migrated eui-table in ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction migrateTemplateWithPaginator(source: string, filePath: string, context: SchematicContext): { output: string; hasPaginator: boolean } {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const edits: Edit[] = [];\n let hasPaginator = false;\n\n const paginatorResult = visitNodesForTable(parsed.nodes, source, edits, false, filePath, context);\n if (paginatorResult) hasPaginator = true;\n\n collectPipeRenames(parsed.nodes, source, edits);\n\n return { output: applyEdits(source, edits), hasPaginator };\n}\n\nfunction migrateTemplate(source: string, filePath: string, context: SchematicContext): string {\n return migrateTemplateWithPaginator(source, filePath, context).output;\n}\n\nfunction migrateTypeScript(source: string, filePath: string, context: SchematicContext): { output: string; hasPaginator: boolean } {\n let result = source;\n let hasPaginator = false;\n\n // Migrate inline templates\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const changes: 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 = result.slice(start, end);\n if (!rawTemplate.includes('euiTable') && !rawTemplate.includes(OLD_PIPE)) {\n ts.forEachChild(node, visit); return;\n}\n const { output: migrated, hasPaginator: pag } = migrateTemplateWithPaginator(rawTemplate, filePath, context);\n if (pag) hasPaginator = true;\n if (migrated !== rawTemplate) changes.push({ start, end, replacement: migrated });\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n result = applyEdits(result, changes);\n\n // Rename TS property accesses\n result = renameTsProperties(result);\n\n // Warn about setSort\n warnSetSort(result, filePath, context);\n\n return { output: result, hasPaginator };\n}\n\nfunction renameTsProperties(source: string): string {\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && TS_PROPERTY_RENAMES.has(node.name.text)) {\n edits.push({ start: node.name.getStart(sourceFile), end: node.name.getEnd(), replacement: TS_PROPERTY_RENAMES.get(node.name.text)! });\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n return applyEdits(source, edits);\n}\n\nfunction warnSetSort(source: string, filePath: string, context: SchematicContext): void {\n if (!source.includes('setSort')) return;\n\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true);\n\n const visit = (node: ts.Node): void => {\n if (ts.isCallExpression(node) && ts.isPropertyAccessExpression(node.expression) &&\n ts.isIdentifier(node.expression.name) && node.expression.name.text === 'setSort') {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(\n `${filePath}:${line + 1} - \"setSort\" signature changed from setSort(sort: string, order: \"asc\" | \"desc\") to setSort(Sort[]). Update manually.`,\n );\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n}\n\n// --- Template AST visitors ---\n\nfunction visitNodesForTable(\n nodes: TmplAstNode[], source: string, edits: Edit[], insideEuiTable: boolean, filePath: string, context: SchematicContext,\n): boolean {\n let hasPaginator = false;\n\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n const isEuiTable = hasEuiTableAttribute(node);\n\n if (isEuiTable) {\n collectTableInputRenames(node, edits);\n collectInputRemovals(node, source, edits, filePath, context);\n collectOutputChanges(node, source, edits, filePath, context);\n if (collectPaginatorMigration(node, source, edits)) hasPaginator = true;\n }\n\n if (isEuiTable || insideEuiTable) {\n collectChildElementRenames(node, edits);\n collectChildInputRemovals(node, source, edits, filePath, context);\n collectEmptyMessageRename(node, edits);\n }\n\n const childResult = visitNodesForTable(node.children, source, edits, isEuiTable || insideEuiTable, filePath, context);\n if (childResult) hasPaginator = true;\n }\n\n if (node instanceof TmplAstTemplate) {\n if (insideEuiTable) {\n collectTemplateEmptyMessageRename(node, edits);\n }\n const childResult = visitNodesForTable(node.children, source, edits, insideEuiTable, filePath, context);\n if (childResult) hasPaginator = true;\n }\n }\n\n return hasPaginator;\n}\n\nfunction hasEuiTableAttribute(element: TmplAstElement): boolean {\n return element.attributes.some((a) => a.name === 'euiTable') ||\n element.inputs.some((i) => i.name === 'euiTable');\n}\n\nfunction collectTableInputRenames(element: TmplAstElement, edits: Edit[]): void {\n for (const attr of element.attributes) {\n const newName = TABLE_INPUT_RENAMES.get(attr.name);\n if (newName) edits.push({ start: attr.keySpan!.start.offset, end: attr.keySpan!.end.offset, replacement: newName });\n }\n for (const input of element.inputs) {\n const newName = TABLE_INPUT_RENAMES.get(input.name);\n if (newName) edits.push({ start: input.keySpan!.start.offset, end: input.keySpan!.end.offset, replacement: newName });\n }\n}\n\nfunction collectChildElementRenames(element: TmplAstElement, edits: Edit[]): void {\n const renames = (element.name === 'th' || element.name === 'td') ? TH_TD_INPUT_RENAMES\n : element.name === 'tr' ? TR_INPUT_RENAMES : null;\n if (!renames) return;\n\n for (const attr of element.attributes) {\n const newName = renames.get(attr.name);\n if (newName) edits.push({ start: attr.keySpan!.start.offset, end: attr.keySpan!.end.offset, replacement: newName });\n }\n for (const input of element.inputs) {\n const newName = renames.get(input.name);\n if (newName) edits.push({ start: input.keySpan!.start.offset, end: input.keySpan!.end.offset, replacement: newName });\n }\n}\n\nfunction collectChildInputRemovals(element: TmplAstElement, source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n const childRemovedInputs = new Set(['defaultMultiOrder']);\n\n for (const attr of element.attributes) {\n if (childRemovedInputs.has(attr.name)) {\n removeAttribute(attr.sourceSpan.start.offset, attr.sourceSpan.end.offset, source, edits);\n logRemovalWarning(attr.name, filePath, element, context);\n }\n }\n for (const input of element.inputs) {\n if (childRemovedInputs.has(input.name)) {\n removeAttribute(input.sourceSpan.start.offset, input.sourceSpan.end.offset, source, edits);\n logRemovalWarning(input.name, filePath, element, context);\n }\n }\n}\n\nfunction collectInputRemovals(element: TmplAstElement, source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n for (const attr of element.attributes) {\n if (REMOVED_INPUTS.has(attr.name) && attr.name !== 'paginable') {\n removeAttribute(attr.sourceSpan.start.offset, attr.sourceSpan.end.offset, source, edits);\n logRemovalWarning(attr.name, filePath, element, context);\n }\n }\n for (const input of element.inputs) {\n if (REMOVED_INPUTS.has(input.name) && input.name !== 'paginable') {\n removeAttribute(input.sourceSpan.start.offset, input.sourceSpan.end.offset, source, edits);\n logRemovalWarning(input.name, filePath, element, context);\n }\n }\n}\n\nfunction collectOutputChanges(element: TmplAstElement, source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n for (const output of element.outputs) {\n const newName = OUTPUT_RENAMES.get(output.name);\n if (newName) {\n edits.push({ start: output.keySpan!.start.offset, end: output.keySpan!.end.offset, replacement: newName });\n }\n if (REMOVED_OUTPUTS.has(output.name)) {\n removeAttribute(output.sourceSpan.start.offset, output.sourceSpan.end.offset, source, edits);\n const { line } = element.startSourceSpan.start;\n context.logger.warn(\n `${filePath}:${line + 1} - \"(${output.name})\" removed. Multi-sort is now supported by (sortChange) output.`,\n );\n }\n }\n}\n\nfunction collectPaginatorMigration(element: TmplAstElement, source: string, edits: Edit[]): boolean {\n let found = false;\n\n for (const attr of element.attributes) {\n if (attr.name === 'paginable') {\n removeAttribute(attr.sourceSpan.start.offset, attr.sourceSpan.end.offset, source, edits);\n found = true;\n }\n }\n for (const input of element.inputs) {\n if (input.name === 'paginable') {\n removeAttribute(input.sourceSpan.start.offset, input.sourceSpan.end.offset, source, edits);\n found = true;\n }\n }\n\n if (found) {\n // Add [paginator]=\"paginator\" before closing > of opening tag\n const insertPos = element.startSourceSpan.end.offset - 1;\n edits.push({ start: insertPos, end: insertPos, replacement: ' [paginator]=\"paginator\"' });\n\n // Add eui-paginator after </table>\n if (element.endSourceSpan) {\n const afterTable = element.endSourceSpan.end.offset;\n edits.push({\n start: afterTable,\n end: afterTable,\n replacement: '\\n<!-- TODO: Configure paginator and implement onPageChange handler -->\\n<eui-paginator #paginator [pageSize]=\"10\" [pageSizeOptions]=\"[5, 10, 25, 50]\" />',\n });\n }\n }\n\n return found;\n}\n\nfunction collectEmptyMessageRename(element: TmplAstElement, edits: Edit[]): void {\n // Handle direct attribute on elements (unlikely but handle)\n for (const attr of element.attributes) {\n if (attr.name === 'euiTemplate' && attr.value === 'emptyMessage' && attr.valueSpan) {\n edits.push({ start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: 'footer' });\n }\n }\n}\n\nfunction collectTemplateEmptyMessageRename(template: TmplAstTemplate, edits: Edit[]): void {\n for (const attr of template.templateAttrs) {\n if (attr instanceof TmplAstTextAttribute && attr.name === 'euiTemplate' && attr.value === 'emptyMessage' && attr.valueSpan) {\n edits.push({ start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: 'footer' });\n }\n }\n for (const attr of template.attributes) {\n if (attr.name === 'euiTemplate' && attr.value === 'emptyMessage' && attr.valueSpan) {\n edits.push({ start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: 'footer' });\n }\n }\n}\n\n// --- Pipe rename via AST ---\n\nfunction collectPipeRenames(nodes: TmplAstNode[], source: string, edits: Edit[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n for (const input of node.inputs) {\n visitExpressionForPipes(input.value, edits);\n }\n for (const output of node.outputs) {\n if (output.handler) visitExpressionForPipes(output.handler, edits);\n }\n collectPipeRenames(node.children, source, edits);\n }\n if (node instanceof TmplAstTemplate) {\n for (const input of node.inputs) {\n visitExpressionForPipes(input.value, edits);\n }\n collectPipeRenames(node.children, source, edits);\n }\n if (node instanceof TmplAstBoundText) {\n visitExpressionForPipes(node.value, edits);\n }\n }\n}\n\nfunction visitExpressionForPipes(expr: AST, edits: Edit[]): void {\n if (expr instanceof ASTWithSource && expr.ast) {\n visitAstForPipes(expr.ast, edits);\n } else {\n visitAstForPipes(expr, edits);\n }\n}\n\nfunction visitAstForPipes(ast: AST, edits: Edit[]): void {\n if (ast instanceof BindingPipe) {\n if (ast.name === OLD_PIPE && ast.nameSpan) {\n edits.push({ start: ast.nameSpan.start, end: ast.nameSpan.end, replacement: NEW_PIPE });\n }\n visitAstForPipes(ast.exp, edits);\n for (const arg of ast.args) {\n visitAstForPipes(arg, edits);\n }\n return;\n }\n\n if (ast instanceof Interpolation) {\n for (const expr of ast.expressions) {\n visitAstForPipes(expr, edits);\n }\n return;\n }\n\n // Recursively visit all properties that could contain AST nodes\n for (const key of Object.keys(ast)) {\n // eslint-disable-next-line\n const val = (ast as any)[key];\n if (val instanceof AST) {\n visitAstForPipes(val, edits);\n } else if (Array.isArray(val)) {\n for (const item of val) {\n if (item instanceof AST) visitAstForPipes(item, edits);\n }\n }\n }\n}\n\n// --- Import handling for paginator ---\n\nfunction addPaginatorImport(source: string, filePath: string): string {\n if (source.includes(PAGINATOR_COMPONENT)) return source;\n\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n // Add import statement after last import\n let lastImportEnd = 0;\n for (const stmt of sourceFile.statements) {\n if (ts.isImportDeclaration(stmt)) {\n lastImportEnd = stmt.getEnd();\n }\n }\n\n if (lastImportEnd > 0) {\n edits.push({\n start: lastImportEnd,\n end: lastImportEnd,\n replacement: `\\nimport { ${PAGINATOR_COMPONENT} } from '${PAGINATOR_IMPORT_PATH}';`,\n });\n }\n\n // Add to component imports array\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAssignment(node) && ts.isIdentifier(node.name) && node.name.text === 'imports' && isComponentMetadataProperty(node)) {\n if (ts.isArrayLiteralExpression(node.initializer)) {\n const arr = node.initializer;\n const elements = arr.elements;\n if (elements.length > 0) {\n const lastElement = elements[elements.length - 1];\n edits.push({\n start: lastElement.getEnd(),\n end: lastElement.getEnd(),\n replacement: `, ${PAGINATOR_COMPONENT}`,\n });\n } else {\n const insertPos = arr.getStart(sourceFile) + 1;\n edits.push({ start: insertPos, end: insertPos, replacement: PAGINATOR_COMPONENT });\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n\n return applyEdits(source, edits);\n}\n\n// --- Helpers ---\n\nfunction removeAttribute(start: number, end: number, source: string, edits: Edit[]): void {\n let adjustedStart = start;\n while (adjustedStart > 0 && (source[adjustedStart - 1] === ' ' || source[adjustedStart - 1] === '\\t')) {\n adjustedStart--;\n }\n edits.push({ start: adjustedStart, end, replacement: '' });\n}\n\nfunction logRemovalWarning(name: string, filePath: string, element: TmplAstElement, context: SchematicContext): void {\n const { line } = element.startSourceSpan.start;\n if (name === 'defaultMultiOrder') {\n context.logger.warn(`${filePath}:${line + 1} - \"[${name}]\" removed. Use setSort(Sort[]) to initialize sorting.`);\n } else {\n context.logger.warn(`${filePath}:${line + 1} - \"[${name}]\" removed to align to Design System.`);\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 ts.isDecorator(callExpression.parent) && ts.isIdentifier(callExpression.expression) && callExpression.expression.text === 'Component';\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 = new Map<string, Edit>();\n for (const edit of edits) {\n const key = `${edit.start}:${edit.end}`;\n unique.set(key, edit);\n }\n let result = source;\n for (const edit of [...unique.values()].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 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",
4632
+ "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\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nconst REMOVED_INPUTS = new Set(['type']);\n\nexport function migrateEuiPopover(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n\n const dir = tree.getDir(scanPath || '/');\n visitDir(dir, (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes('eui-popover')) return;\n\n const result = path.endsWith('.html')\n ? migrateTemplate(original)\n : migrateInlineTemplates(original);\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would remove 'type' input in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n\n // Warn about TS usages inline\n if (path.endsWith('.ts') && !path.endsWith('.spec.ts') && (original.includes('eui-popover') || original.includes('euiPopover') || original.includes('EuiPopover'))) {\n if (original.includes('type')) {\n const sourceFile = ts.createSourceFile(path, original, ts.ScriptTarget.Latest, true);\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && node.name.text === 'type') {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(\n `${path}:${line + 1} - Manual action needed: \"type\" is no longer a valid input on eui-popover. Remove this assignment.`,\n );\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n }\n }\n });\n\n context.logger.info(`Removed deprecated eui-popover 'type' input from ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\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\nfunction migrateTemplate(source: string): string {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const removals: { start: number; end: number }[] = [];\n\n visitNodes(parsed.nodes, removals);\n\n let result = source;\n for (const { start, end } of removals.sort((a, b) => b.start - a.start)) {\n // Extend start backwards to consume leading whitespace\n let adjustedStart = start;\n while (adjustedStart > 0 && (result[adjustedStart - 1] === ' ' || result[adjustedStart - 1] === '\\t')) {\n adjustedStart--;\n }\n result = result.slice(0, adjustedStart) + result.slice(end);\n }\n\n return result;\n}\n\nfunction migrateInlineTemplates(source: string): string {\n const templateRegex = /template\\s*:\\s*`([^`]*)`/gs;\n return source.replace(templateRegex, (match, templateContent: string) => {\n if (!templateContent.includes('eui-popover')) return match;\n const migrated = migrateTemplate(templateContent);\n if (migrated === templateContent) return match;\n return match.replace(templateContent, migrated);\n });\n}\n\nfunction visitNodes(nodes: TmplAstNode[], removals: { start: number; end: number }[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === 'eui-popover') {\n collectRemovals(node, removals);\n }\n visitNodes(node.children, removals);\n }\n }\n}\n\nfunction collectRemovals(element: TmplAstElement, removals: { start: number; end: number }[]): void {\n for (const attr of element.attributes) {\n if (REMOVED_INPUTS.has(attr.name)) {\n removals.push(getAttributeSpan(attr));\n }\n }\n for (const input of element.inputs) {\n if (REMOVED_INPUTS.has(input.name)) {\n removals.push(getAttributeSpan(input));\n }\n }\n}\n\nfunction getAttributeSpan(attr: TmplAstTextAttribute | TmplAstBoundAttribute): { start: number; end: number } {\n return { start: attr.sourceSpan.start.offset, end: attr.sourceSpan.end.offset };\n}\n",
4633
4633
  "displayName": "Schema",
4634
4634
  "properties": [
4635
4635
  {
@@ -4641,7 +4641,7 @@
4641
4641
  "indexKey": "",
4642
4642
  "optional": true,
4643
4643
  "description": "",
4644
- "line": 49,
4644
+ "line": 8,
4645
4645
  "rawdescription": "\n"
4646
4646
  },
4647
4647
  {
@@ -4653,7 +4653,7 @@
4653
4653
  "indexKey": "",
4654
4654
  "optional": true,
4655
4655
  "description": "",
4656
- "line": 48,
4656
+ "line": 7,
4657
4657
  "rawdescription": "\n"
4658
4658
  }
4659
4659
  ],
@@ -24276,23 +24276,23 @@
24276
24276
  "name": "COMPONENT_TAG",
24277
24277
  "ctype": "miscellaneous",
24278
24278
  "subtype": "variable",
24279
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
24279
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
24280
24280
  "coverageIgnore": false,
24281
24281
  "deprecated": false,
24282
24282
  "deprecationMessage": "",
24283
24283
  "type": "string",
24284
- "defaultValue": "'eui-fieldset'"
24284
+ "defaultValue": "'eui-icon-svg'"
24285
24285
  },
24286
24286
  {
24287
24287
  "name": "COMPONENT_TAG",
24288
24288
  "ctype": "miscellaneous",
24289
24289
  "subtype": "variable",
24290
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
24290
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
24291
24291
  "coverageIgnore": false,
24292
24292
  "deprecated": false,
24293
24293
  "deprecationMessage": "",
24294
24294
  "type": "string",
24295
- "defaultValue": "'eui-icon-svg'"
24295
+ "defaultValue": "'eui-fieldset'"
24296
24296
  },
24297
24297
  {
24298
24298
  "name": "COMPONENT_TAG",
@@ -26001,23 +26001,23 @@
26001
26001
  "name": "REMOVED_INPUTS",
26002
26002
  "ctype": "miscellaneous",
26003
26003
  "subtype": "variable",
26004
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
26004
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
26005
26005
  "coverageIgnore": false,
26006
26006
  "deprecated": false,
26007
26007
  "deprecationMessage": "",
26008
26008
  "type": "unknown",
26009
- "defaultValue": "new Set(['alertIconType', 'alertIconFillColor', 'isMuted', 'isBordered'])"
26009
+ "defaultValue": "new Set(['isFlat'])"
26010
26010
  },
26011
26011
  {
26012
26012
  "name": "REMOVED_INPUTS",
26013
26013
  "ctype": "miscellaneous",
26014
26014
  "subtype": "variable",
26015
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
26015
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
26016
26016
  "coverageIgnore": false,
26017
26017
  "deprecated": false,
26018
26018
  "deprecationMessage": "",
26019
26019
  "type": "unknown",
26020
- "defaultValue": "new Set(['isFlat'])"
26020
+ "defaultValue": "new Set(['alertIconType', 'alertIconFillColor', 'isMuted', 'isBordered'])"
26021
26021
  },
26022
26022
  {
26023
26023
  "name": "REMOVED_INPUTS",
@@ -26045,23 +26045,23 @@
26045
26045
  "name": "REMOVED_INPUTS",
26046
26046
  "ctype": "miscellaneous",
26047
26047
  "subtype": "variable",
26048
- "file": "packages/core/schematics/migrate-eui-popover/index.ts",
26048
+ "file": "packages/core/schematics/migrate-eui-table/index.ts",
26049
26049
  "coverageIgnore": false,
26050
26050
  "deprecated": false,
26051
26051
  "deprecationMessage": "",
26052
26052
  "type": "unknown",
26053
- "defaultValue": "new Set(['type'])"
26053
+ "defaultValue": "new Set(['euiTableBordered', 'isHoverable', 'defaultMultiOrder', 'paginable'])"
26054
26054
  },
26055
26055
  {
26056
26056
  "name": "REMOVED_INPUTS",
26057
26057
  "ctype": "miscellaneous",
26058
26058
  "subtype": "variable",
26059
- "file": "packages/core/schematics/migrate-eui-table/index.ts",
26059
+ "file": "packages/core/schematics/migrate-eui-popover/index.ts",
26060
26060
  "coverageIgnore": false,
26061
26061
  "deprecated": false,
26062
26062
  "deprecationMessage": "",
26063
26063
  "type": "unknown",
26064
- "defaultValue": "new Set(['euiTableBordered', 'isHoverable', 'defaultMultiOrder', 'paginable'])"
26064
+ "defaultValue": "new Set(['type'])"
26065
26065
  },
26066
26066
  {
26067
26067
  "name": "REMOVED_OUTPUT",
@@ -27760,7 +27760,7 @@
27760
27760
  },
27761
27761
  {
27762
27762
  "name": "applyEdits",
27763
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
27763
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
27764
27764
  "ctype": "miscellaneous",
27765
27765
  "subtype": "function",
27766
27766
  "coverageIgnore": false,
@@ -27805,7 +27805,7 @@
27805
27805
  },
27806
27806
  {
27807
27807
  "name": "applyEdits",
27808
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
27808
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
27809
27809
  "ctype": "miscellaneous",
27810
27810
  "subtype": "function",
27811
27811
  "coverageIgnore": false,
@@ -30015,7 +30015,7 @@
30015
30015
  },
30016
30016
  {
30017
30017
  "name": "collectRemovals",
30018
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
30018
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
30019
30019
  "ctype": "miscellaneous",
30020
30020
  "subtype": "function",
30021
30021
  "coverageIgnore": false,
@@ -30060,7 +30060,7 @@
30060
30060
  },
30061
30061
  {
30062
30062
  "name": "collectRemovals",
30063
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
30063
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
30064
30064
  "ctype": "miscellaneous",
30065
30065
  "subtype": "function",
30066
30066
  "coverageIgnore": false,
@@ -30390,7 +30390,7 @@
30390
30390
  },
30391
30391
  {
30392
30392
  "name": "collectRenames",
30393
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
30393
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
30394
30394
  "ctype": "miscellaneous",
30395
30395
  "subtype": "function",
30396
30396
  "coverageIgnore": false,
@@ -30435,7 +30435,7 @@
30435
30435
  },
30436
30436
  {
30437
30437
  "name": "collectRenames",
30438
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
30438
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
30439
30439
  "ctype": "miscellaneous",
30440
30440
  "subtype": "function",
30441
30441
  "coverageIgnore": false,
@@ -33031,7 +33031,7 @@
33031
33031
  },
33032
33032
  {
33033
33033
  "name": "getAttributeSpan",
33034
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
33034
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
33035
33035
  "ctype": "miscellaneous",
33036
33036
  "subtype": "function",
33037
33037
  "coverageIgnore": false,
@@ -33061,7 +33061,7 @@
33061
33061
  },
33062
33062
  {
33063
33063
  "name": "getAttributeSpan",
33064
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
33064
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
33065
33065
  "ctype": "miscellaneous",
33066
33066
  "subtype": "function",
33067
33067
  "coverageIgnore": false,
@@ -35247,7 +35247,7 @@
35247
35247
  },
35248
35248
  {
35249
35249
  "name": "isComponentMetadataProperty",
35250
- "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
35250
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
35251
35251
  "ctype": "miscellaneous",
35252
35252
  "subtype": "function",
35253
35253
  "coverageIgnore": false,
@@ -35277,7 +35277,7 @@
35277
35277
  },
35278
35278
  {
35279
35279
  "name": "isComponentMetadataProperty",
35280
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
35280
+ "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
35281
35281
  "ctype": "miscellaneous",
35282
35282
  "subtype": "function",
35283
35283
  "coverageIgnore": false,
@@ -35487,7 +35487,7 @@
35487
35487
  },
35488
35488
  {
35489
35489
  "name": "isComponentMetadataProperty",
35490
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
35490
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
35491
35491
  "ctype": "miscellaneous",
35492
35492
  "subtype": "function",
35493
35493
  "coverageIgnore": false,
@@ -35517,7 +35517,7 @@
35517
35517
  },
35518
35518
  {
35519
35519
  "name": "isComponentMetadataProperty",
35520
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
35520
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
35521
35521
  "ctype": "miscellaneous",
35522
35522
  "subtype": "function",
35523
35523
  "coverageIgnore": false,
@@ -36259,7 +36259,7 @@
36259
36259
  },
36260
36260
  {
36261
36261
  "name": "isTemplateProperty",
36262
- "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
36262
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
36263
36263
  "ctype": "miscellaneous",
36264
36264
  "subtype": "function",
36265
36265
  "coverageIgnore": false,
@@ -36289,7 +36289,7 @@
36289
36289
  },
36290
36290
  {
36291
36291
  "name": "isTemplateProperty",
36292
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
36292
+ "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
36293
36293
  "ctype": "miscellaneous",
36294
36294
  "subtype": "function",
36295
36295
  "coverageIgnore": false,
@@ -36499,7 +36499,7 @@
36499
36499
  },
36500
36500
  {
36501
36501
  "name": "isTemplateProperty",
36502
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
36502
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
36503
36503
  "ctype": "miscellaneous",
36504
36504
  "subtype": "function",
36505
36505
  "coverageIgnore": false,
@@ -36529,7 +36529,7 @@
36529
36529
  },
36530
36530
  {
36531
36531
  "name": "isTemplateProperty",
36532
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
36532
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
36533
36533
  "ctype": "miscellaneous",
36534
36534
  "subtype": "function",
36535
36535
  "coverageIgnore": false,
@@ -38820,7 +38820,7 @@
38820
38820
  },
38821
38821
  {
38822
38822
  "name": "migrateInlineTemplates",
38823
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
38823
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
38824
38824
  "ctype": "miscellaneous",
38825
38825
  "subtype": "function",
38826
38826
  "coverageIgnore": false,
@@ -38852,7 +38852,7 @@
38852
38852
  },
38853
38853
  {
38854
38854
  "name": "migrateInlineTemplates",
38855
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
38855
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
38856
38856
  "ctype": "miscellaneous",
38857
38857
  "subtype": "function",
38858
38858
  "coverageIgnore": false,
@@ -39044,7 +39044,7 @@
39044
39044
  },
39045
39045
  {
39046
39046
  "name": "migrateInlineTemplates",
39047
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
39047
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
39048
39048
  "ctype": "miscellaneous",
39049
39049
  "subtype": "function",
39050
39050
  "coverageIgnore": false,
@@ -39076,7 +39076,7 @@
39076
39076
  },
39077
39077
  {
39078
39078
  "name": "migrateInlineTemplates",
39079
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
39079
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
39080
39080
  "ctype": "miscellaneous",
39081
39081
  "subtype": "function",
39082
39082
  "coverageIgnore": false,
@@ -39140,7 +39140,7 @@
39140
39140
  },
39141
39141
  {
39142
39142
  "name": "migrateInlineTemplates",
39143
- "file": "packages/core/schematics/migrate-eui-popover/index.ts",
39143
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
39144
39144
  "ctype": "miscellaneous",
39145
39145
  "subtype": "function",
39146
39146
  "coverageIgnore": false,
@@ -39172,7 +39172,7 @@
39172
39172
  },
39173
39173
  {
39174
39174
  "name": "migrateInlineTemplates",
39175
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
39175
+ "file": "packages/core/schematics/migrate-eui-popover/index.ts",
39176
39176
  "ctype": "miscellaneous",
39177
39177
  "subtype": "function",
39178
39178
  "coverageIgnore": false,
@@ -39834,7 +39834,7 @@
39834
39834
  },
39835
39835
  {
39836
39836
  "name": "migrateTemplate",
39837
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
39837
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
39838
39838
  "ctype": "miscellaneous",
39839
39839
  "subtype": "function",
39840
39840
  "coverageIgnore": false,
@@ -39866,7 +39866,7 @@
39866
39866
  },
39867
39867
  {
39868
39868
  "name": "migrateTemplate",
39869
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
39869
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
39870
39870
  "ctype": "miscellaneous",
39871
39871
  "subtype": "function",
39872
39872
  "coverageIgnore": false,
@@ -40056,38 +40056,6 @@
40056
40056
  }
40057
40057
  ]
40058
40058
  },
40059
- {
40060
- "name": "migrateTemplate",
40061
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
40062
- "ctype": "miscellaneous",
40063
- "subtype": "function",
40064
- "coverageIgnore": false,
40065
- "deprecated": false,
40066
- "deprecationMessage": "",
40067
- "rawdescription": "",
40068
- "description": "",
40069
- "displayName": "migrateTemplate",
40070
- "args": [
40071
- {
40072
- "name": "source",
40073
- "type": "string",
40074
- "deprecated": false,
40075
- "deprecationMessage": ""
40076
- }
40077
- ],
40078
- "returnType": "string",
40079
- "jsdoctags": [
40080
- {
40081
- "name": "source",
40082
- "type": "string",
40083
- "deprecated": false,
40084
- "deprecationMessage": "",
40085
- "tagName": {
40086
- "text": "param"
40087
- }
40088
- }
40089
- ]
40090
- },
40091
40059
  {
40092
40060
  "name": "migrateTemplate",
40093
40061
  "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
@@ -40122,7 +40090,7 @@
40122
40090
  },
40123
40091
  {
40124
40092
  "name": "migrateTemplate",
40125
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
40093
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
40126
40094
  "ctype": "miscellaneous",
40127
40095
  "subtype": "function",
40128
40096
  "coverageIgnore": false,
@@ -40154,7 +40122,7 @@
40154
40122
  },
40155
40123
  {
40156
40124
  "name": "migrateTemplate",
40157
- "file": "packages/core/schematics/migrate-eui-popover/index.ts",
40125
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
40158
40126
  "ctype": "miscellaneous",
40159
40127
  "subtype": "function",
40160
40128
  "coverageIgnore": false,
@@ -40278,6 +40246,38 @@
40278
40246
  }
40279
40247
  ]
40280
40248
  },
40249
+ {
40250
+ "name": "migrateTemplate",
40251
+ "file": "packages/core/schematics/migrate-eui-popover/index.ts",
40252
+ "ctype": "miscellaneous",
40253
+ "subtype": "function",
40254
+ "coverageIgnore": false,
40255
+ "deprecated": false,
40256
+ "deprecationMessage": "",
40257
+ "rawdescription": "",
40258
+ "description": "",
40259
+ "displayName": "migrateTemplate",
40260
+ "args": [
40261
+ {
40262
+ "name": "source",
40263
+ "type": "string",
40264
+ "deprecated": false,
40265
+ "deprecationMessage": ""
40266
+ }
40267
+ ],
40268
+ "returnType": "string",
40269
+ "jsdoctags": [
40270
+ {
40271
+ "name": "source",
40272
+ "type": "string",
40273
+ "deprecated": false,
40274
+ "deprecationMessage": "",
40275
+ "tagName": {
40276
+ "text": "param"
40277
+ }
40278
+ }
40279
+ ]
40280
+ },
40281
40281
  {
40282
40282
  "name": "migrateTemplate",
40283
40283
  "file": "packages/core/schematics/migrate-eui-tabs/index.ts",
@@ -44026,7 +44026,7 @@
44026
44026
  },
44027
44027
  {
44028
44028
  "name": "unwrapExpression",
44029
- "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
44029
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
44030
44030
  "ctype": "miscellaneous",
44031
44031
  "subtype": "function",
44032
44032
  "coverageIgnore": false,
@@ -44056,7 +44056,7 @@
44056
44056
  },
44057
44057
  {
44058
44058
  "name": "unwrapExpression",
44059
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
44059
+ "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
44060
44060
  "ctype": "miscellaneous",
44061
44061
  "subtype": "function",
44062
44062
  "coverageIgnore": false,
@@ -44266,7 +44266,7 @@
44266
44266
  },
44267
44267
  {
44268
44268
  "name": "unwrapExpression",
44269
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
44269
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
44270
44270
  "ctype": "miscellaneous",
44271
44271
  "subtype": "function",
44272
44272
  "coverageIgnore": false,
@@ -44296,7 +44296,7 @@
44296
44296
  },
44297
44297
  {
44298
44298
  "name": "unwrapExpression",
44299
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
44299
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
44300
44300
  "ctype": "miscellaneous",
44301
44301
  "subtype": "function",
44302
44302
  "coverageIgnore": false,
@@ -45194,7 +45194,7 @@
45194
45194
  },
45195
45195
  {
45196
45196
  "name": "visitDir",
45197
- "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
45197
+ "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
45198
45198
  "ctype": "miscellaneous",
45199
45199
  "subtype": "function",
45200
45200
  "coverageIgnore": false,
@@ -45239,7 +45239,7 @@
45239
45239
  },
45240
45240
  {
45241
45241
  "name": "visitDir",
45242
- "file": "packages/core/schematics/migrate-ecl-site-footer/index.ts",
45242
+ "file": "packages/core/schematics/migrate-ecl-removed-components/index.ts",
45243
45243
  "ctype": "miscellaneous",
45244
45244
  "subtype": "function",
45245
45245
  "coverageIgnore": false,
@@ -45419,7 +45419,7 @@
45419
45419
  },
45420
45420
  {
45421
45421
  "name": "visitDir",
45422
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
45422
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
45423
45423
  "ctype": "miscellaneous",
45424
45424
  "subtype": "function",
45425
45425
  "coverageIgnore": false,
@@ -45464,7 +45464,7 @@
45464
45464
  },
45465
45465
  {
45466
45466
  "name": "visitDir",
45467
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
45467
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
45468
45468
  "ctype": "miscellaneous",
45469
45469
  "subtype": "function",
45470
45470
  "coverageIgnore": false,
@@ -45779,7 +45779,7 @@
45779
45779
  },
45780
45780
  {
45781
45781
  "name": "visitDir",
45782
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
45782
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
45783
45783
  "ctype": "miscellaneous",
45784
45784
  "subtype": "function",
45785
45785
  "coverageIgnore": false,
@@ -45824,7 +45824,7 @@
45824
45824
  },
45825
45825
  {
45826
45826
  "name": "visitDir",
45827
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
45827
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
45828
45828
  "ctype": "miscellaneous",
45829
45829
  "subtype": "function",
45830
45830
  "coverageIgnore": false,
@@ -45914,7 +45914,7 @@
45914
45914
  },
45915
45915
  {
45916
45916
  "name": "visitDir",
45917
- "file": "packages/core/schematics/migrate-eui-popover/index.ts",
45917
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
45918
45918
  "ctype": "miscellaneous",
45919
45919
  "subtype": "function",
45920
45920
  "coverageIgnore": false,
@@ -45959,7 +45959,7 @@
45959
45959
  },
45960
45960
  {
45961
45961
  "name": "visitDir",
45962
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
45962
+ "file": "packages/core/schematics/migrate-eui-table/index.ts",
45963
45963
  "ctype": "miscellaneous",
45964
45964
  "subtype": "function",
45965
45965
  "coverageIgnore": false,
@@ -46004,7 +46004,7 @@
46004
46004
  },
46005
46005
  {
46006
46006
  "name": "visitDir",
46007
- "file": "packages/core/schematics/migrate-eui-table/index.ts",
46007
+ "file": "packages/core/schematics/migrate-eui-popover/index.ts",
46008
46008
  "ctype": "miscellaneous",
46009
46009
  "subtype": "function",
46010
46010
  "coverageIgnore": false,
@@ -47028,7 +47028,7 @@
47028
47028
  },
47029
47029
  {
47030
47030
  "name": "visitNodes",
47031
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
47031
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
47032
47032
  "ctype": "miscellaneous",
47033
47033
  "subtype": "function",
47034
47034
  "coverageIgnore": false,
@@ -47071,7 +47071,7 @@
47071
47071
  },
47072
47072
  {
47073
47073
  "name": "visitNodes",
47074
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
47074
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
47075
47075
  "ctype": "miscellaneous",
47076
47076
  "subtype": "function",
47077
47077
  "coverageIgnore": false,
@@ -47359,7 +47359,7 @@
47359
47359
  },
47360
47360
  {
47361
47361
  "name": "visitNodes",
47362
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
47362
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
47363
47363
  "ctype": "miscellaneous",
47364
47364
  "subtype": "function",
47365
47365
  "coverageIgnore": false,
@@ -47402,7 +47402,7 @@
47402
47402
  },
47403
47403
  {
47404
47404
  "name": "visitNodes",
47405
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
47405
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
47406
47406
  "ctype": "miscellaneous",
47407
47407
  "subtype": "function",
47408
47408
  "coverageIgnore": false,
@@ -47488,7 +47488,7 @@
47488
47488
  },
47489
47489
  {
47490
47490
  "name": "visitNodes",
47491
- "file": "packages/core/schematics/migrate-eui-popover/index.ts",
47491
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
47492
47492
  "ctype": "miscellaneous",
47493
47493
  "subtype": "function",
47494
47494
  "coverageIgnore": false,
@@ -47504,7 +47504,7 @@
47504
47504
  "deprecationMessage": ""
47505
47505
  },
47506
47506
  {
47507
- "name": "removals",
47507
+ "name": "edits",
47508
47508
  "deprecated": false,
47509
47509
  "deprecationMessage": ""
47510
47510
  }
@@ -47520,7 +47520,7 @@
47520
47520
  }
47521
47521
  },
47522
47522
  {
47523
- "name": "removals",
47523
+ "name": "edits",
47524
47524
  "deprecated": false,
47525
47525
  "deprecationMessage": "",
47526
47526
  "tagName": {
@@ -47531,7 +47531,7 @@
47531
47531
  },
47532
47532
  {
47533
47533
  "name": "visitNodes",
47534
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
47534
+ "file": "packages/core/schematics/migrate-eui-popover/index.ts",
47535
47535
  "ctype": "miscellaneous",
47536
47536
  "subtype": "function",
47537
47537
  "coverageIgnore": false,
@@ -47547,7 +47547,7 @@
47547
47547
  "deprecationMessage": ""
47548
47548
  },
47549
47549
  {
47550
- "name": "edits",
47550
+ "name": "removals",
47551
47551
  "deprecated": false,
47552
47552
  "deprecationMessage": ""
47553
47553
  }
@@ -47563,7 +47563,7 @@
47563
47563
  }
47564
47564
  },
47565
47565
  {
47566
- "name": "edits",
47566
+ "name": "removals",
47567
47567
  "deprecated": false,
47568
47568
  "deprecationMessage": "",
47569
47569
  "tagName": {
@@ -49760,74 +49760,74 @@
49760
49760
  "defaultValue": "'onEditorChanged'"
49761
49761
  }
49762
49762
  ],
49763
- "packages/core/schematics/migrate-eui-fieldset/index.ts": [
49763
+ "packages/core/schematics/migrate-eui-icon-svg/index.ts": [
49764
49764
  {
49765
49765
  "name": "COMPONENT_TAG",
49766
49766
  "ctype": "miscellaneous",
49767
49767
  "subtype": "variable",
49768
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
49768
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
49769
49769
  "coverageIgnore": false,
49770
49770
  "deprecated": false,
49771
49771
  "deprecationMessage": "",
49772
49772
  "type": "string",
49773
- "defaultValue": "'eui-fieldset'"
49773
+ "defaultValue": "'eui-icon-svg'"
49774
49774
  },
49775
49775
  {
49776
- "name": "NEW_NAME",
49776
+ "name": "INPUT_RENAMES",
49777
49777
  "ctype": "miscellaneous",
49778
49778
  "subtype": "variable",
49779
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
49779
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
49780
49780
  "coverageIgnore": false,
49781
49781
  "deprecated": false,
49782
49782
  "deprecationMessage": "",
49783
- "type": "string",
49784
- "defaultValue": "'iconSvgName'"
49783
+ "type": "unknown",
49784
+ "defaultValue": "new Map([\n ['variant', 'fillColor'],\n ['aria-label', 'ariaLabel'],\n])"
49785
49785
  },
49786
49786
  {
49787
- "name": "OLD_NAME",
49787
+ "name": "TS_PROPERTY_RENAMES",
49788
49788
  "ctype": "miscellaneous",
49789
49789
  "subtype": "variable",
49790
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
49790
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
49791
49791
  "coverageIgnore": false,
49792
49792
  "deprecated": false,
49793
49793
  "deprecationMessage": "",
49794
- "type": "string",
49795
- "defaultValue": "'iconSvgType'"
49794
+ "type": "unknown",
49795
+ "defaultValue": "new Map([\n ['variant', 'fillColor'],\n])"
49796
49796
  }
49797
49797
  ],
49798
- "packages/core/schematics/migrate-eui-icon-svg/index.ts": [
49798
+ "packages/core/schematics/migrate-eui-fieldset/index.ts": [
49799
49799
  {
49800
49800
  "name": "COMPONENT_TAG",
49801
49801
  "ctype": "miscellaneous",
49802
49802
  "subtype": "variable",
49803
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
49803
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
49804
49804
  "coverageIgnore": false,
49805
49805
  "deprecated": false,
49806
49806
  "deprecationMessage": "",
49807
49807
  "type": "string",
49808
- "defaultValue": "'eui-icon-svg'"
49808
+ "defaultValue": "'eui-fieldset'"
49809
49809
  },
49810
49810
  {
49811
- "name": "INPUT_RENAMES",
49811
+ "name": "NEW_NAME",
49812
49812
  "ctype": "miscellaneous",
49813
49813
  "subtype": "variable",
49814
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
49814
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
49815
49815
  "coverageIgnore": false,
49816
49816
  "deprecated": false,
49817
49817
  "deprecationMessage": "",
49818
- "type": "unknown",
49819
- "defaultValue": "new Map([\n ['variant', 'fillColor'],\n ['aria-label', 'ariaLabel'],\n])"
49818
+ "type": "string",
49819
+ "defaultValue": "'iconSvgName'"
49820
49820
  },
49821
49821
  {
49822
- "name": "TS_PROPERTY_RENAMES",
49822
+ "name": "OLD_NAME",
49823
49823
  "ctype": "miscellaneous",
49824
49824
  "subtype": "variable",
49825
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
49825
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
49826
49826
  "coverageIgnore": false,
49827
49827
  "deprecated": false,
49828
49828
  "deprecationMessage": "",
49829
- "type": "unknown",
49830
- "defaultValue": "new Map([\n ['variant', 'fillColor'],\n])"
49829
+ "type": "string",
49830
+ "defaultValue": "'iconSvgType'"
49831
49831
  }
49832
49832
  ],
49833
49833
  "packages/core/schematics/migrate-eui-icon-toggle/index.ts": [
@@ -51332,30 +51332,30 @@
51332
51332
  "defaultValue": "[\n ...REMOVED_TAGS.map((t) => t.tag),\n ...REMOVED_ATTRS.map((a) => a.attr),\n ...REMOVED_IDENTIFIERS.map((i) => i.name),\n]"
51333
51333
  }
51334
51334
  ],
51335
- "packages/core/schematics/migrate-eui-alert/index.ts": [
51335
+ "packages/core/schematics/migrate-eui-avatar/index.ts": [
51336
51336
  {
51337
51337
  "name": "REMOVED_INPUTS",
51338
51338
  "ctype": "miscellaneous",
51339
51339
  "subtype": "variable",
51340
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
51340
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
51341
51341
  "coverageIgnore": false,
51342
51342
  "deprecated": false,
51343
51343
  "deprecationMessage": "",
51344
51344
  "type": "unknown",
51345
- "defaultValue": "new Set(['alertIconType', 'alertIconFillColor', 'isMuted', 'isBordered'])"
51345
+ "defaultValue": "new Set(['isFlat'])"
51346
51346
  }
51347
51347
  ],
51348
- "packages/core/schematics/migrate-eui-avatar/index.ts": [
51348
+ "packages/core/schematics/migrate-eui-alert/index.ts": [
51349
51349
  {
51350
51350
  "name": "REMOVED_INPUTS",
51351
51351
  "ctype": "miscellaneous",
51352
51352
  "subtype": "variable",
51353
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
51353
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
51354
51354
  "coverageIgnore": false,
51355
51355
  "deprecated": false,
51356
51356
  "deprecationMessage": "",
51357
51357
  "type": "unknown",
51358
- "defaultValue": "new Set(['isFlat'])"
51358
+ "defaultValue": "new Set(['alertIconType', 'alertIconFillColor', 'isMuted', 'isBordered'])"
51359
51359
  }
51360
51360
  ],
51361
51361
  "packages/core/schematics/migrate-eui-chip/index.ts": [
@@ -64546,10 +64546,10 @@
64546
64546
  ]
64547
64547
  }
64548
64548
  ],
64549
- "packages/core/schematics/migrate-eui-fieldset/index.ts": [
64549
+ "packages/core/schematics/migrate-eui-icon-svg/index.ts": [
64550
64550
  {
64551
64551
  "name": "applyEdits",
64552
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
64552
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
64553
64553
  "ctype": "miscellaneous",
64554
64554
  "subtype": "function",
64555
64555
  "coverageIgnore": false,
@@ -64594,7 +64594,7 @@
64594
64594
  },
64595
64595
  {
64596
64596
  "name": "collectRenames",
64597
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
64597
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
64598
64598
  "ctype": "miscellaneous",
64599
64599
  "subtype": "function",
64600
64600
  "coverageIgnore": false,
@@ -64639,7 +64639,7 @@
64639
64639
  },
64640
64640
  {
64641
64641
  "name": "isComponentMetadataProperty",
64642
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
64642
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
64643
64643
  "ctype": "miscellaneous",
64644
64644
  "subtype": "function",
64645
64645
  "coverageIgnore": false,
@@ -64669,7 +64669,7 @@
64669
64669
  },
64670
64670
  {
64671
64671
  "name": "isTemplateProperty",
64672
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
64672
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
64673
64673
  "ctype": "miscellaneous",
64674
64674
  "subtype": "function",
64675
64675
  "coverageIgnore": false,
@@ -64698,8 +64698,8 @@
64698
64698
  ]
64699
64699
  },
64700
64700
  {
64701
- "name": "migrateEuiFieldset",
64702
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
64701
+ "name": "migrateEuiIconSvg",
64702
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
64703
64703
  "ctype": "miscellaneous",
64704
64704
  "subtype": "function",
64705
64705
  "coverageIgnore": false,
@@ -64707,7 +64707,7 @@
64707
64707
  "deprecationMessage": "",
64708
64708
  "rawdescription": "",
64709
64709
  "description": "",
64710
- "displayName": "migrateEuiFieldset",
64710
+ "displayName": "migrateEuiIconSvg",
64711
64711
  "args": [
64712
64712
  {
64713
64713
  "name": "options",
@@ -64733,7 +64733,7 @@
64733
64733
  },
64734
64734
  {
64735
64735
  "name": "migrateInlineTemplates",
64736
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
64736
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
64737
64737
  "ctype": "miscellaneous",
64738
64738
  "subtype": "function",
64739
64739
  "coverageIgnore": false,
@@ -64765,7 +64765,7 @@
64765
64765
  },
64766
64766
  {
64767
64767
  "name": "migrateTemplate",
64768
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
64768
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
64769
64769
  "ctype": "miscellaneous",
64770
64770
  "subtype": "function",
64771
64771
  "coverageIgnore": false,
@@ -64795,9 +64795,41 @@
64795
64795
  }
64796
64796
  ]
64797
64797
  },
64798
+ {
64799
+ "name": "renameTsPropertyAccesses",
64800
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
64801
+ "ctype": "miscellaneous",
64802
+ "subtype": "function",
64803
+ "coverageIgnore": false,
64804
+ "deprecated": false,
64805
+ "deprecationMessage": "",
64806
+ "rawdescription": "",
64807
+ "description": "",
64808
+ "displayName": "renameTsPropertyAccesses",
64809
+ "args": [
64810
+ {
64811
+ "name": "source",
64812
+ "type": "string",
64813
+ "deprecated": false,
64814
+ "deprecationMessage": ""
64815
+ }
64816
+ ],
64817
+ "returnType": "string",
64818
+ "jsdoctags": [
64819
+ {
64820
+ "name": "source",
64821
+ "type": "string",
64822
+ "deprecated": false,
64823
+ "deprecationMessage": "",
64824
+ "tagName": {
64825
+ "text": "param"
64826
+ }
64827
+ }
64828
+ ]
64829
+ },
64798
64830
  {
64799
64831
  "name": "unwrapExpression",
64800
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
64832
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
64801
64833
  "ctype": "miscellaneous",
64802
64834
  "subtype": "function",
64803
64835
  "coverageIgnore": false,
@@ -64827,7 +64859,7 @@
64827
64859
  },
64828
64860
  {
64829
64861
  "name": "visitDir",
64830
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
64862
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
64831
64863
  "ctype": "miscellaneous",
64832
64864
  "subtype": "function",
64833
64865
  "coverageIgnore": false,
@@ -64872,7 +64904,7 @@
64872
64904
  },
64873
64905
  {
64874
64906
  "name": "visitNodes",
64875
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
64907
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
64876
64908
  "ctype": "miscellaneous",
64877
64909
  "subtype": "function",
64878
64910
  "coverageIgnore": false,
@@ -64914,10 +64946,10 @@
64914
64946
  ]
64915
64947
  }
64916
64948
  ],
64917
- "packages/core/schematics/migrate-eui-icon-svg/index.ts": [
64949
+ "packages/core/schematics/migrate-eui-fieldset/index.ts": [
64918
64950
  {
64919
64951
  "name": "applyEdits",
64920
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
64952
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
64921
64953
  "ctype": "miscellaneous",
64922
64954
  "subtype": "function",
64923
64955
  "coverageIgnore": false,
@@ -64962,7 +64994,7 @@
64962
64994
  },
64963
64995
  {
64964
64996
  "name": "collectRenames",
64965
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
64997
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
64966
64998
  "ctype": "miscellaneous",
64967
64999
  "subtype": "function",
64968
65000
  "coverageIgnore": false,
@@ -65007,7 +65039,7 @@
65007
65039
  },
65008
65040
  {
65009
65041
  "name": "isComponentMetadataProperty",
65010
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
65042
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
65011
65043
  "ctype": "miscellaneous",
65012
65044
  "subtype": "function",
65013
65045
  "coverageIgnore": false,
@@ -65037,7 +65069,7 @@
65037
65069
  },
65038
65070
  {
65039
65071
  "name": "isTemplateProperty",
65040
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
65072
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
65041
65073
  "ctype": "miscellaneous",
65042
65074
  "subtype": "function",
65043
65075
  "coverageIgnore": false,
@@ -65066,8 +65098,8 @@
65066
65098
  ]
65067
65099
  },
65068
65100
  {
65069
- "name": "migrateEuiIconSvg",
65070
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
65101
+ "name": "migrateEuiFieldset",
65102
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
65071
65103
  "ctype": "miscellaneous",
65072
65104
  "subtype": "function",
65073
65105
  "coverageIgnore": false,
@@ -65075,7 +65107,7 @@
65075
65107
  "deprecationMessage": "",
65076
65108
  "rawdescription": "",
65077
65109
  "description": "",
65078
- "displayName": "migrateEuiIconSvg",
65110
+ "displayName": "migrateEuiFieldset",
65079
65111
  "args": [
65080
65112
  {
65081
65113
  "name": "options",
@@ -65101,7 +65133,7 @@
65101
65133
  },
65102
65134
  {
65103
65135
  "name": "migrateInlineTemplates",
65104
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
65136
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
65105
65137
  "ctype": "miscellaneous",
65106
65138
  "subtype": "function",
65107
65139
  "coverageIgnore": false,
@@ -65133,7 +65165,7 @@
65133
65165
  },
65134
65166
  {
65135
65167
  "name": "migrateTemplate",
65136
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
65168
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
65137
65169
  "ctype": "miscellaneous",
65138
65170
  "subtype": "function",
65139
65171
  "coverageIgnore": false,
@@ -65163,41 +65195,9 @@
65163
65195
  }
65164
65196
  ]
65165
65197
  },
65166
- {
65167
- "name": "renameTsPropertyAccesses",
65168
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
65169
- "ctype": "miscellaneous",
65170
- "subtype": "function",
65171
- "coverageIgnore": false,
65172
- "deprecated": false,
65173
- "deprecationMessage": "",
65174
- "rawdescription": "",
65175
- "description": "",
65176
- "displayName": "renameTsPropertyAccesses",
65177
- "args": [
65178
- {
65179
- "name": "source",
65180
- "type": "string",
65181
- "deprecated": false,
65182
- "deprecationMessage": ""
65183
- }
65184
- ],
65185
- "returnType": "string",
65186
- "jsdoctags": [
65187
- {
65188
- "name": "source",
65189
- "type": "string",
65190
- "deprecated": false,
65191
- "deprecationMessage": "",
65192
- "tagName": {
65193
- "text": "param"
65194
- }
65195
- }
65196
- ]
65197
- },
65198
65198
  {
65199
65199
  "name": "unwrapExpression",
65200
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
65200
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
65201
65201
  "ctype": "miscellaneous",
65202
65202
  "subtype": "function",
65203
65203
  "coverageIgnore": false,
@@ -65227,7 +65227,7 @@
65227
65227
  },
65228
65228
  {
65229
65229
  "name": "visitDir",
65230
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
65230
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
65231
65231
  "ctype": "miscellaneous",
65232
65232
  "subtype": "function",
65233
65233
  "coverageIgnore": false,
@@ -65272,7 +65272,7 @@
65272
65272
  },
65273
65273
  {
65274
65274
  "name": "visitNodes",
65275
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
65275
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
65276
65276
  "ctype": "miscellaneous",
65277
65277
  "subtype": "function",
65278
65278
  "coverageIgnore": false,
@@ -68890,10 +68890,10 @@
68890
68890
  ]
68891
68891
  }
68892
68892
  ],
68893
- "packages/core/schematics/migrate-eui-alert/index.ts": [
68893
+ "packages/core/schematics/migrate-eui-avatar/index.ts": [
68894
68894
  {
68895
68895
  "name": "collectRemovals",
68896
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
68896
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
68897
68897
  "ctype": "miscellaneous",
68898
68898
  "subtype": "function",
68899
68899
  "coverageIgnore": false,
@@ -68938,7 +68938,7 @@
68938
68938
  },
68939
68939
  {
68940
68940
  "name": "getAttributeSpan",
68941
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
68941
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
68942
68942
  "ctype": "miscellaneous",
68943
68943
  "subtype": "function",
68944
68944
  "coverageIgnore": false,
@@ -68967,8 +68967,8 @@
68967
68967
  ]
68968
68968
  },
68969
68969
  {
68970
- "name": "hasAttribute",
68971
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
68970
+ "name": "isAvatarElement",
68971
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
68972
68972
  "ctype": "miscellaneous",
68973
68973
  "subtype": "function",
68974
68974
  "coverageIgnore": false,
@@ -68976,19 +68976,13 @@
68976
68976
  "deprecationMessage": "",
68977
68977
  "rawdescription": "",
68978
68978
  "description": "",
68979
- "displayName": "hasAttribute",
68979
+ "displayName": "isAvatarElement",
68980
68980
  "args": [
68981
68981
  {
68982
68982
  "name": "element",
68983
68983
  "type": "TmplAstElement",
68984
68984
  "deprecated": false,
68985
68985
  "deprecationMessage": ""
68986
- },
68987
- {
68988
- "name": "name",
68989
- "type": "string",
68990
- "deprecated": false,
68991
- "deprecationMessage": ""
68992
68986
  }
68993
68987
  ],
68994
68988
  "returnType": "boolean",
@@ -69001,21 +68995,12 @@
69001
68995
  "tagName": {
69002
68996
  "text": "param"
69003
68997
  }
69004
- },
69005
- {
69006
- "name": "name",
69007
- "type": "string",
69008
- "deprecated": false,
69009
- "deprecationMessage": "",
69010
- "tagName": {
69011
- "text": "param"
69012
- }
69013
68998
  }
69014
68999
  ]
69015
69000
  },
69016
69001
  {
69017
- "name": "migrateEuiAlert",
69018
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
69002
+ "name": "migrateEuiAvatar",
69003
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
69019
69004
  "ctype": "miscellaneous",
69020
69005
  "subtype": "function",
69021
69006
  "coverageIgnore": false,
@@ -69023,7 +69008,7 @@
69023
69008
  "deprecationMessage": "",
69024
69009
  "rawdescription": "",
69025
69010
  "description": "",
69026
- "displayName": "migrateEuiAlert",
69011
+ "displayName": "migrateEuiAvatar",
69027
69012
  "args": [
69028
69013
  {
69029
69014
  "name": "options",
@@ -69049,7 +69034,7 @@
69049
69034
  },
69050
69035
  {
69051
69036
  "name": "migrateInlineTemplates",
69052
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
69037
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
69053
69038
  "ctype": "miscellaneous",
69054
69039
  "subtype": "function",
69055
69040
  "coverageIgnore": false,
@@ -69081,7 +69066,7 @@
69081
69066
  },
69082
69067
  {
69083
69068
  "name": "migrateTemplate",
69084
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
69069
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
69085
69070
  "ctype": "miscellaneous",
69086
69071
  "subtype": "function",
69087
69072
  "coverageIgnore": false,
@@ -69113,7 +69098,7 @@
69113
69098
  },
69114
69099
  {
69115
69100
  "name": "visitDir",
69116
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
69101
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
69117
69102
  "ctype": "miscellaneous",
69118
69103
  "subtype": "function",
69119
69104
  "coverageIgnore": false,
@@ -69158,7 +69143,7 @@
69158
69143
  },
69159
69144
  {
69160
69145
  "name": "visitNodes",
69161
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
69146
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
69162
69147
  "ctype": "miscellaneous",
69163
69148
  "subtype": "function",
69164
69149
  "coverageIgnore": false,
@@ -69200,10 +69185,10 @@
69200
69185
  ]
69201
69186
  }
69202
69187
  ],
69203
- "packages/core/schematics/migrate-eui-avatar/index.ts": [
69188
+ "packages/core/schematics/migrate-eui-alert/index.ts": [
69204
69189
  {
69205
69190
  "name": "collectRemovals",
69206
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
69191
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
69207
69192
  "ctype": "miscellaneous",
69208
69193
  "subtype": "function",
69209
69194
  "coverageIgnore": false,
@@ -69248,7 +69233,7 @@
69248
69233
  },
69249
69234
  {
69250
69235
  "name": "getAttributeSpan",
69251
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
69236
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
69252
69237
  "ctype": "miscellaneous",
69253
69238
  "subtype": "function",
69254
69239
  "coverageIgnore": false,
@@ -69277,8 +69262,8 @@
69277
69262
  ]
69278
69263
  },
69279
69264
  {
69280
- "name": "isAvatarElement",
69281
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
69265
+ "name": "hasAttribute",
69266
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
69282
69267
  "ctype": "miscellaneous",
69283
69268
  "subtype": "function",
69284
69269
  "coverageIgnore": false,
@@ -69286,13 +69271,19 @@
69286
69271
  "deprecationMessage": "",
69287
69272
  "rawdescription": "",
69288
69273
  "description": "",
69289
- "displayName": "isAvatarElement",
69274
+ "displayName": "hasAttribute",
69290
69275
  "args": [
69291
69276
  {
69292
69277
  "name": "element",
69293
69278
  "type": "TmplAstElement",
69294
69279
  "deprecated": false,
69295
69280
  "deprecationMessage": ""
69281
+ },
69282
+ {
69283
+ "name": "name",
69284
+ "type": "string",
69285
+ "deprecated": false,
69286
+ "deprecationMessage": ""
69296
69287
  }
69297
69288
  ],
69298
69289
  "returnType": "boolean",
@@ -69305,12 +69296,21 @@
69305
69296
  "tagName": {
69306
69297
  "text": "param"
69307
69298
  }
69299
+ },
69300
+ {
69301
+ "name": "name",
69302
+ "type": "string",
69303
+ "deprecated": false,
69304
+ "deprecationMessage": "",
69305
+ "tagName": {
69306
+ "text": "param"
69307
+ }
69308
69308
  }
69309
69309
  ]
69310
69310
  },
69311
69311
  {
69312
- "name": "migrateEuiAvatar",
69313
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
69312
+ "name": "migrateEuiAlert",
69313
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
69314
69314
  "ctype": "miscellaneous",
69315
69315
  "subtype": "function",
69316
69316
  "coverageIgnore": false,
@@ -69318,7 +69318,7 @@
69318
69318
  "deprecationMessage": "",
69319
69319
  "rawdescription": "",
69320
69320
  "description": "",
69321
- "displayName": "migrateEuiAvatar",
69321
+ "displayName": "migrateEuiAlert",
69322
69322
  "args": [
69323
69323
  {
69324
69324
  "name": "options",
@@ -69344,7 +69344,7 @@
69344
69344
  },
69345
69345
  {
69346
69346
  "name": "migrateInlineTemplates",
69347
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
69347
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
69348
69348
  "ctype": "miscellaneous",
69349
69349
  "subtype": "function",
69350
69350
  "coverageIgnore": false,
@@ -69376,7 +69376,7 @@
69376
69376
  },
69377
69377
  {
69378
69378
  "name": "migrateTemplate",
69379
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
69379
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
69380
69380
  "ctype": "miscellaneous",
69381
69381
  "subtype": "function",
69382
69382
  "coverageIgnore": false,
@@ -69408,7 +69408,7 @@
69408
69408
  },
69409
69409
  {
69410
69410
  "name": "visitDir",
69411
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
69411
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
69412
69412
  "ctype": "miscellaneous",
69413
69413
  "subtype": "function",
69414
69414
  "coverageIgnore": false,
@@ -69453,7 +69453,7 @@
69453
69453
  },
69454
69454
  {
69455
69455
  "name": "visitNodes",
69456
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
69456
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
69457
69457
  "ctype": "miscellaneous",
69458
69458
  "subtype": "function",
69459
69459
  "coverageIgnore": false,