@eui/core 22.0.0-alpha.59 → 22.0.0-alpha.60

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.
@@ -1701,12 +1701,12 @@
1701
1701
  },
1702
1702
  {
1703
1703
  "name": "MigrateAllSchema",
1704
- "id": "interface-MigrateAllSchema-9f5c8421d830e497010dd27404a71efd86022343f3a2f75cfe42a96145e90bbd446cb032e3768b3f4698f469ea0b07a13a087f6eefc0fce74196e29ec8785099",
1704
+ "id": "interface-MigrateAllSchema-ff00527ff10e4024860df7a58f0718a519bbe44a55f6951c767c763c2e9519909a5ab8d7d3c2a9d7b753290eb09171c3d3caa3ca2709c44cb457da119f42d4e0",
1705
1705
  "file": "packages/core/schematics/migrate-all/index.ts",
1706
1706
  "deprecated": false,
1707
1707
  "deprecationMessage": "",
1708
1708
  "type": "interface",
1709
- "sourceCode": "import { Rule, chain, schematic } from '@angular-devkit/schematics';\n\nexport interface MigrateAllSchema {\n path?: string;\n dryRun?: boolean;\n mwp?: boolean;\n useClassArray?: boolean;\n}\n\nexport function migrateAll(options: MigrateAllSchema): Rule {\n const base = { path: options.path || './src', dryRun: options.dryRun || false };\n\n return chain([\n schematic('migrate', { ...base, mwp: options.mwp || false }),\n schematic('migrate-eui-tabs', base),\n schematic('migrate-to-standalone', base),\n schematic('migrate-eui-alert', base),\n schematic('migrate-eui-progress-circle', base),\n schematic('migrate-eui-popover', base),\n schematic('migrate-eui-icon-toggle', base),\n schematic('migrate-eui-icon-svg', base),\n schematic('migrate-eui-fieldset', base),\n schematic('migrate-eui-avatar', base),\n schematic('migrate-eui-editor', base),\n schematic('migrate-eui-discussion-thread', base),\n schematic('migrate-eui-button', base),\n schematic('migrate-eui-accent', base),\n schematic('migrate-eui-toolbar-menu', base),\n schematic('migrate-eui-table', base),\n schematic('migrate-eui-chip-list', base),\n schematic('migrate-eui-chip', base),\n schematic('migrate-eui-tooltip', base),\n schematic('migrate-to-signals', base),\n schematic('add-eui-imports', { ...base, useClassArray: options.useClassArray || false }),\n schematic('fix-no-multiple-empty-lines', base),\n ]);\n}\n",
1709
+ "sourceCode": "import { Rule, chain, schematic } from '@angular-devkit/schematics';\n\nexport interface MigrateAllSchema {\n path?: string;\n dryRun?: boolean;\n mwp?: boolean;\n useClassArray?: boolean;\n}\n\nexport function migrateAll(options: MigrateAllSchema): Rule {\n const base = { path: options.path || './src', dryRun: options.dryRun || false };\n\n return chain([\n schematic('migrate', { ...base, mwp: options.mwp || false }),\n schematic('migrate-eui-tabs', base),\n schematic('migrate-to-standalone', base),\n schematic('migrate-eui-alert', base),\n schematic('migrate-eui-progress-circle', base),\n schematic('migrate-eui-popover', base),\n schematic('migrate-eui-icon-toggle', base),\n schematic('migrate-eui-icon-svg', base),\n schematic('migrate-eui-fieldset', base),\n schematic('migrate-eui-avatar', base),\n schematic('migrate-eui-editor', base),\n schematic('migrate-eui-discussion-thread', base),\n schematic('migrate-eui-button', base),\n schematic('migrate-eui-accent', base),\n schematic('migrate-eui-toolbar-menu', base),\n schematic('migrate-eui-table', base),\n schematic('migrate-eui-chip-list', base),\n schematic('migrate-eui-chip', base),\n schematic('migrate-eui-tooltip', base),\n schematic('migrate-eui-datepicker', base),\n schematic('migrate-to-signals', base),\n schematic('add-eui-imports', { ...base, useClassArray: options.useClassArray || false }),\n schematic('fix-no-multiple-empty-lines', base),\n ]);\n}\n",
1710
1710
  "displayName": "MigrateAllSchema",
1711
1711
  "properties": [
1712
1712
  {
@@ -2348,12 +2348,12 @@
2348
2348
  },
2349
2349
  {
2350
2350
  "name": "Schema",
2351
- "id": "interface-Schema-e96d29c1785a16147de773cebe7ab5d4ed82aa23c6b1f7737113252a14d156e236f46f7a16340432dec900b664c8005be0aef5d0a628c2f5b8dd2ec7e41edf56-4",
2352
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
2351
+ "id": "interface-Schema-585b211d989563bbec5bd67bcdb58d5f264396adbe0ed2e51d0b4a0ecaf8b3ec36d821647c170d616bb409fc603c5a4c0e699eb7511e02c6add8d8670fc9cb9f-4",
2352
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
2353
2353
  "deprecated": false,
2354
2354
  "deprecationMessage": "",
2355
2355
  "type": "interface",
2356
- "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 OLD_NAME = 'euiAccent';\nconst NEW_NAME = 'euiPrimary';\nconst EUI_DIRECTIVES = ['euiButton', 'euiList', 'euiListItem'];\n\nexport function migrateEuiAccent(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(OLD_NAME)) 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 replace '${OLD_NAME}' → '${NEW_NAME}' in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n });\n\n context.logger.info(`Renamed '${OLD_NAME}' → '${NEW_NAME}' on EUI components 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 isEuiElement(element: TmplAstElement): boolean {\n if (element.name.startsWith('eui-')) return true;\n return element.attributes.some((a) => EUI_DIRECTIVES.includes(a.name)) ||\n element.inputs.some((i) => EUI_DIRECTIVES.includes(i.name));\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(OLD_NAME)) {\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 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) && node.name.text === OLD_NAME) {\n edits.push({ start: node.name.getStart(sourceFile), end: node.name.getEnd(), replacement: NEW_NAME });\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)) 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 (isEuiElement(node)) 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",
2356
+ "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",
2357
2357
  "displayName": "Schema",
2358
2358
  "properties": [
2359
2359
  {
@@ -2395,12 +2395,12 @@
2395
2395
  },
2396
2396
  {
2397
2397
  "name": "Schema",
2398
- "id": "interface-Schema-585b211d989563bbec5bd67bcdb58d5f264396adbe0ed2e51d0b4a0ecaf8b3ec36d821647c170d616bb409fc603c5a4c0e699eb7511e02c6add8d8670fc9cb9f-5",
2399
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
2398
+ "id": "interface-Schema-c7e2cc0add09c97d83ec2675d59c86951681f8e2d49f133fb2f216ca98d0da1fdf892d45af31f19ecbbfd0d32f4ad70dd99e862f75725d3812f66a73ec34362c-5",
2399
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
2400
2400
  "deprecated": false,
2401
2401
  "deprecationMessage": "",
2402
2402
  "type": "interface",
2403
- "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",
2403
+ "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",
2404
2404
  "displayName": "Schema",
2405
2405
  "properties": [
2406
2406
  {
@@ -2442,12 +2442,12 @@
2442
2442
  },
2443
2443
  {
2444
2444
  "name": "Schema",
2445
- "id": "interface-Schema-c7e2cc0add09c97d83ec2675d59c86951681f8e2d49f133fb2f216ca98d0da1fdf892d45af31f19ecbbfd0d32f4ad70dd99e862f75725d3812f66a73ec34362c-6",
2446
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
2445
+ "id": "interface-Schema-c0c08f5e83da9afa13ce8375f982fb280b9bde854e00c914f41b04d44deecd531496c2cee264b50314e92a6260c26cebe35741a2cf5ec068d8b6da5c5267539e-6",
2446
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
2447
2447
  "deprecated": false,
2448
2448
  "deprecationMessage": "",
2449
2449
  "type": "interface",
2450
- "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",
2450
+ "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 OLD_NAME = 'euiButtonCall';\nconst NEW_NAME = 'euiCTAButton';\n\nexport function migrateEuiButton(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(OLD_NAME)) 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\n if (path.endsWith('.ts') && !path.endsWith('.spec.ts')) {\n if (!original.includes(OLD_NAME)) 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 === OLD_NAME) {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(`${path}:${line + 1} - \"${OLD_NAME}\" has been renamed to \"${NEW_NAME}\". 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 elements with euiButton 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(OLD_NAME)) {\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 hasEuiButtonAttribute(element: TmplAstElement): boolean {\n return element.attributes.some((a) => a.name === 'euiButton') ||\n element.inputs.some((i) => i.name === 'euiButton');\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 (hasEuiButtonAttribute(node)) 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",
2451
2451
  "displayName": "Schema",
2452
2452
  "properties": [
2453
2453
  {
@@ -2489,12 +2489,12 @@
2489
2489
  },
2490
2490
  {
2491
2491
  "name": "Schema",
2492
- "id": "interface-Schema-c0c08f5e83da9afa13ce8375f982fb280b9bde854e00c914f41b04d44deecd531496c2cee264b50314e92a6260c26cebe35741a2cf5ec068d8b6da5c5267539e-7",
2493
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
2492
+ "id": "interface-Schema-39d3d52e788050bebc4e0b99ed0756f7e9727556cb090ae8796bd4261a56463fe1f479c322b23028cd4134d71e4d1dc44cd248ac62a9a148b5fc46a665466f7c-7",
2493
+ "file": "packages/core/schematics/migrate-eui-chip/index.ts",
2494
2494
  "deprecated": false,
2495
2495
  "deprecationMessage": "",
2496
2496
  "type": "interface",
2497
- "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 OLD_NAME = 'euiButtonCall';\nconst NEW_NAME = 'euiCTAButton';\n\nexport function migrateEuiButton(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(OLD_NAME)) 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\n if (path.endsWith('.ts') && !path.endsWith('.spec.ts')) {\n if (!original.includes(OLD_NAME)) 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 === OLD_NAME) {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(`${path}:${line + 1} - \"${OLD_NAME}\" has been renamed to \"${NEW_NAME}\". 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 elements with euiButton 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(OLD_NAME)) {\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 hasEuiButtonAttribute(element: TmplAstElement): boolean {\n return element.attributes.some((a) => a.name === 'euiButton') ||\n element.inputs.some((i) => i.name === 'euiButton');\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 (hasEuiButtonAttribute(node)) 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",
2497
+ "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(['isSquared']);\n\nexport function migrateEuiChip(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-chip') && !original.includes('euiChip')) 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 'isSquared' 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('isSquared')) {\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 === 'isSquared') {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(`${path}:${line + 1} - \"isSquared\" is no longer a valid input on eui-chip. Remove this assignment.`);\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n }\n });\n\n context.logger.info(`Removed deprecated eui-chip 'isSquared' 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-chip') && !templateContent.includes('euiChip')) return match;\n const migrated = migrateTemplate(templateContent);\n if (migrated === templateContent) return match;\n return match.replace(templateContent, migrated);\n });\n}\n\nfunction isChipElement(element: TmplAstElement): boolean {\n if (element.name === 'eui-chip') return true;\n return element.attributes.some((a) => a.name === 'euiChip');\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 (isChipElement(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",
2498
2498
  "displayName": "Schema",
2499
2499
  "properties": [
2500
2500
  {
@@ -2536,12 +2536,12 @@
2536
2536
  },
2537
2537
  {
2538
2538
  "name": "Schema",
2539
- "id": "interface-Schema-39d3d52e788050bebc4e0b99ed0756f7e9727556cb090ae8796bd4261a56463fe1f479c322b23028cd4134d71e4d1dc44cd248ac62a9a148b5fc46a665466f7c-8",
2540
- "file": "packages/core/schematics/migrate-eui-chip/index.ts",
2539
+ "id": "interface-Schema-e96d29c1785a16147de773cebe7ab5d4ed82aa23c6b1f7737113252a14d156e236f46f7a16340432dec900b664c8005be0aef5d0a628c2f5b8dd2ec7e41edf56-8",
2540
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
2541
2541
  "deprecated": false,
2542
2542
  "deprecationMessage": "",
2543
2543
  "type": "interface",
2544
- "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(['isSquared']);\n\nexport function migrateEuiChip(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-chip') && !original.includes('euiChip')) 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 'isSquared' 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('isSquared')) {\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 === 'isSquared') {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(`${path}:${line + 1} - \"isSquared\" is no longer a valid input on eui-chip. Remove this assignment.`);\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n }\n });\n\n context.logger.info(`Removed deprecated eui-chip 'isSquared' 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-chip') && !templateContent.includes('euiChip')) return match;\n const migrated = migrateTemplate(templateContent);\n if (migrated === templateContent) return match;\n return match.replace(templateContent, migrated);\n });\n}\n\nfunction isChipElement(element: TmplAstElement): boolean {\n if (element.name === 'eui-chip') return true;\n return element.attributes.some((a) => a.name === 'euiChip');\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 (isChipElement(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",
2544
+ "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 OLD_NAME = 'euiAccent';\nconst NEW_NAME = 'euiPrimary';\nconst EUI_DIRECTIVES = ['euiButton', 'euiList', 'euiListItem'];\n\nexport function migrateEuiAccent(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(OLD_NAME)) 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 replace '${OLD_NAME}' → '${NEW_NAME}' in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n });\n\n context.logger.info(`Renamed '${OLD_NAME}' → '${NEW_NAME}' on EUI components 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 isEuiElement(element: TmplAstElement): boolean {\n if (element.name.startsWith('eui-')) return true;\n return element.attributes.some((a) => EUI_DIRECTIVES.includes(a.name)) ||\n element.inputs.some((i) => EUI_DIRECTIVES.includes(i.name));\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(OLD_NAME)) {\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 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) && node.name.text === OLD_NAME) {\n edits.push({ start: node.name.getStart(sourceFile), end: node.name.getEnd(), replacement: NEW_NAME });\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)) 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 (isEuiElement(node)) 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",
2545
2545
  "displayName": "Schema",
2546
2546
  "properties": [
2547
2547
  {
@@ -2677,12 +2677,12 @@
2677
2677
  },
2678
2678
  {
2679
2679
  "name": "Schema",
2680
- "id": "interface-Schema-375dc0924084a2acbafe4a6a32577d59f631c9a386d151180d8fb1c89e7e7cd23da9fd459e597592ed823692adb6ad2633c50baf16621f003246e8c9bb1c6ce0-11",
2681
- "file": "packages/core/schematics/migrate-eui-editor/index.ts",
2680
+ "id": "interface-Schema-034783c11a28141757a2de014303eca4a8256ffd2b18334db3a1d414f90247bcb476298452a8da2444dd3023cd12ac4e1ad90de3d59103874dca0b32b1b04800-11",
2681
+ "file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
2682
2682
  "deprecated": false,
2683
2683
  "deprecationMessage": "",
2684
2684
  "type": "interface",
2685
- "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\nconst COMPONENT_TAG = 'eui-editor';\nconst OLD_NAME = 'onEditorChanged';\nconst NEW_NAME = 'contentChange';\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nexport function migrateEuiEditor(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\n if (path.endsWith('.html')) {\n if (!original.includes(COMPONENT_TAG)) return;\n const result = migrateTemplate(original);\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 return;\n }\n\n // .ts file — handle both migration and warnings in one pass\n const hasTag = original.includes(COMPONENT_TAG);\n const hasOldName = original.includes(OLD_NAME);\n if (!hasTag && !hasOldName) return;\n\n if (hasTag) {\n const result = migrateInlineTemplates(original);\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\n // Warn about TS property access usages (skip spec files)\n if (hasOldName && !path.endsWith('.spec.ts')) {\n warnPropertyAccesses(path, original, context);\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 warnPropertyAccesses(path: string, source: string, context: SchematicContext): void {\n const sourceFile = ts.createSourceFile(path, source, 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\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 output of element.outputs) {\n if (output.name === OLD_NAME) {\n edits.push({ start: output.keySpan!.start.offset, end: output.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",
2685
+ "sourceCode": "import { parseTemplate, TmplAstElement, TmplAstNode } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport { logDryRunNote } from '../utils/dry-run';\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\n/**\n * Advisory migration for the eui-datepicker moment-locale breaking change.\n *\n * `eui-datepicker` no longer bundles the moment locale data (the internal\n * `import 'moment/min/locales'` was removed). Apps that relied on the datepicker\n * implicitly registering every moment locale must now import the locales they use\n * themselves, e.g. `import 'moment/locale/fr';`. This schematic cannot know which\n * locales an app needs (and auto-importing all of them would reintroduce the bundle\n * cost the change removed), so it only reports the files that use `eui-datepicker`\n * and the manual action required.\n */\nexport function migrateEuiDatepicker(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n const matches: string[] = [];\n\n const dir = tree.getDir(scanPath || '/');\n visitDir(dir, (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const content = buffer.toString('utf-8');\n if (!content.includes('eui-datepicker')) return;\n\n const usesDatepicker = path.endsWith('.html')\n ? templateUsesDatepicker(content)\n : inlineTemplateUsesDatepicker(content);\n\n if (usesDatepicker) {\n matches.push(path);\n }\n });\n\n if (matches.length === 0) {\n context.logger.info('No eui-datepicker usage found; no moment-locale action required.');\n return tree;\n }\n\n context.logger.warn(\n 'Breaking change: eui-datepicker no longer bundles moment locale data. '\n + 'Import the moment locales your app uses (e.g. `import \\'moment/locale/fr\\';`) '\n + 'in the module/bootstrap where the datepicker is used; otherwise dates fall back '\n + 'to the active moment locale and may format incorrectly.',\n );\n for (const path of matches) {\n context.logger.warn(` Manual action needed: ${path} uses eui-datepicker — ensure the required moment locale(s) are imported.`);\n }\n context.logger.info(`eui-datepicker moment-locale check: ${matches.length} file(s) use eui-datepicker.`);\n\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 templateUsesDatepicker(source: string): boolean {\n try {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n return nodesContainDatepicker(parsed.nodes);\n } catch {\n // Fall back to a substring check if the template cannot be parsed.\n return source.includes('eui-datepicker');\n }\n}\n\nfunction inlineTemplateUsesDatepicker(source: string): boolean {\n const templateRegex = /template\\s*:\\s*`([^`]*)`/gs;\n let match: RegExpExecArray | null;\n while ((match = templateRegex.exec(source)) !== null) {\n if (match[1].includes('eui-datepicker') && templateUsesDatepicker(match[1])) {\n return true;\n }\n }\n return false;\n}\n\nfunction nodesContainDatepicker(nodes: TmplAstNode[]): boolean {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === 'eui-datepicker') {\n return true;\n }\n if (nodesContainDatepicker(node.children)) {\n return true;\n }\n }\n }\n return false;\n}\n",
2686
2686
  "displayName": "Schema",
2687
2687
  "properties": [
2688
2688
  {
@@ -2694,7 +2694,7 @@
2694
2694
  "indexKey": "",
2695
2695
  "optional": true,
2696
2696
  "description": "",
2697
- "line": 12,
2697
+ "line": 7,
2698
2698
  "rawdescription": "\n"
2699
2699
  },
2700
2700
  {
@@ -2706,7 +2706,7 @@
2706
2706
  "indexKey": "",
2707
2707
  "optional": true,
2708
2708
  "description": "",
2709
- "line": 11,
2709
+ "line": 6,
2710
2710
  "rawdescription": "\n"
2711
2711
  }
2712
2712
  ],
@@ -2724,12 +2724,12 @@
2724
2724
  },
2725
2725
  {
2726
2726
  "name": "Schema",
2727
- "id": "interface-Schema-0ee574e11dd651dd971057cb66220845e5b87b2949c69c623c8ddf7355af92a396c58c237a52a05f18c22a5332a2695b717bcfeb8ea840c4e7df8d0084c2b49c-12",
2728
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
2727
+ "id": "interface-Schema-375dc0924084a2acbafe4a6a32577d59f631c9a386d151180d8fb1c89e7e7cd23da9fd459e597592ed823692adb6ad2633c50baf16621f003246e8c9bb1c6ce0-12",
2728
+ "file": "packages/core/schematics/migrate-eui-editor/index.ts",
2729
2729
  "deprecated": false,
2730
2730
  "deprecationMessage": "",
2731
2731
  "type": "interface",
2732
- "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",
2732
+ "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\nconst COMPONENT_TAG = 'eui-editor';\nconst OLD_NAME = 'onEditorChanged';\nconst NEW_NAME = 'contentChange';\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nexport function migrateEuiEditor(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\n if (path.endsWith('.html')) {\n if (!original.includes(COMPONENT_TAG)) return;\n const result = migrateTemplate(original);\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 return;\n }\n\n // .ts file — handle both migration and warnings in one pass\n const hasTag = original.includes(COMPONENT_TAG);\n const hasOldName = original.includes(OLD_NAME);\n if (!hasTag && !hasOldName) return;\n\n if (hasTag) {\n const result = migrateInlineTemplates(original);\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\n // Warn about TS property access usages (skip spec files)\n if (hasOldName && !path.endsWith('.spec.ts')) {\n warnPropertyAccesses(path, original, context);\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 warnPropertyAccesses(path: string, source: string, context: SchematicContext): void {\n const sourceFile = ts.createSourceFile(path, source, 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\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 output of element.outputs) {\n if (output.name === OLD_NAME) {\n edits.push({ start: output.keySpan!.start.offset, end: output.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",
2733
2733
  "displayName": "Schema",
2734
2734
  "properties": [
2735
2735
  {
@@ -2741,7 +2741,7 @@
2741
2741
  "indexKey": "",
2742
2742
  "optional": true,
2743
2743
  "description": "",
2744
- "line": 8,
2744
+ "line": 12,
2745
2745
  "rawdescription": "\n"
2746
2746
  },
2747
2747
  {
@@ -2753,7 +2753,7 @@
2753
2753
  "indexKey": "",
2754
2754
  "optional": true,
2755
2755
  "description": "",
2756
- "line": 7,
2756
+ "line": 11,
2757
2757
  "rawdescription": "\n"
2758
2758
  }
2759
2759
  ],
@@ -2771,12 +2771,12 @@
2771
2771
  },
2772
2772
  {
2773
2773
  "name": "Schema",
2774
- "id": "interface-Schema-b3ff4600c4a5ca1888c45e5baf3600fa6dc6477f1e473e5241ff6682e2929dc8950a5dfa8b1048a348dba7ad1f0ce8cc3681471933911b689e04713334ef4811-13",
2775
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
2774
+ "id": "interface-Schema-0ee574e11dd651dd971057cb66220845e5b87b2949c69c623c8ddf7355af92a396c58c237a52a05f18c22a5332a2695b717bcfeb8ea840c4e7df8d0084c2b49c-13",
2775
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
2776
2776
  "deprecated": false,
2777
2777
  "deprecationMessage": "",
2778
2778
  "type": "interface",
2779
- "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",
2779
+ "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",
2780
2780
  "displayName": "Schema",
2781
2781
  "properties": [
2782
2782
  {
@@ -2865,12 +2865,12 @@
2865
2865
  },
2866
2866
  {
2867
2867
  "name": "Schema",
2868
- "id": "interface-Schema-a806c1769fb526271565003a6a3ef9ab4c67e421d93ee0cb54e1f6de223807afc1f16ad294656ef614a77a91a38cc914ce41ac97ed3a8a4195a1e74a729c0c08-15",
2869
- "file": "packages/core/schematics/migrate-eui-popover/index.ts",
2868
+ "id": "interface-Schema-90e62c16ce9ada881e8d434336bb633dae9745236106ddf60964afbd11de6aa579255a13d6036b384281860eb6ed2ee329194b519c51fdaf20f79bc511d0f64f-15",
2869
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
2870
2870
  "deprecated": false,
2871
2871
  "deprecationMessage": "",
2872
2872
  "type": "interface",
2873
- "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",
2873
+ "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",
2874
2874
  "displayName": "Schema",
2875
2875
  "properties": [
2876
2876
  {
@@ -2912,12 +2912,12 @@
2912
2912
  },
2913
2913
  {
2914
2914
  "name": "Schema",
2915
- "id": "interface-Schema-90e62c16ce9ada881e8d434336bb633dae9745236106ddf60964afbd11de6aa579255a13d6036b384281860eb6ed2ee329194b519c51fdaf20f79bc511d0f64f-16",
2916
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
2915
+ "id": "interface-Schema-b3ff4600c4a5ca1888c45e5baf3600fa6dc6477f1e473e5241ff6682e2929dc8950a5dfa8b1048a348dba7ad1f0ce8cc3681471933911b689e04713334ef4811-16",
2916
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
2917
2917
  "deprecated": false,
2918
2918
  "deprecationMessage": "",
2919
2919
  "type": "interface",
2920
- "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",
2920
+ "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",
2921
2921
  "displayName": "Schema",
2922
2922
  "properties": [
2923
2923
  {
@@ -3006,7 +3006,54 @@
3006
3006
  },
3007
3007
  {
3008
3008
  "name": "Schema",
3009
- "id": "interface-Schema-760dec88d3f709d5b38226e55f7cbfb1e5fabcea6c004fd46e611be1dd563b8b247e9e6c77667e5582fe7b443374ba2c4facd2b2db2985edb46c9a4a37a8a876-18",
3009
+ "id": "interface-Schema-a806c1769fb526271565003a6a3ef9ab4c67e421d93ee0cb54e1f6de223807afc1f16ad294656ef614a77a91a38cc914ce41ac97ed3a8a4195a1e74a729c0c08-18",
3010
+ "file": "packages/core/schematics/migrate-eui-popover/index.ts",
3011
+ "deprecated": false,
3012
+ "deprecationMessage": "",
3013
+ "type": "interface",
3014
+ "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",
3015
+ "displayName": "Schema",
3016
+ "properties": [
3017
+ {
3018
+ "name": "dryRun",
3019
+ "coverageIgnore": false,
3020
+ "deprecated": false,
3021
+ "deprecationMessage": "",
3022
+ "type": "boolean",
3023
+ "indexKey": "",
3024
+ "optional": true,
3025
+ "description": "",
3026
+ "line": 8,
3027
+ "rawdescription": "\n"
3028
+ },
3029
+ {
3030
+ "name": "path",
3031
+ "coverageIgnore": false,
3032
+ "deprecated": false,
3033
+ "deprecationMessage": "",
3034
+ "type": "string",
3035
+ "indexKey": "",
3036
+ "optional": true,
3037
+ "description": "",
3038
+ "line": 7,
3039
+ "rawdescription": "\n"
3040
+ }
3041
+ ],
3042
+ "indexSignatures": [],
3043
+ "kind": 172,
3044
+ "methods": [],
3045
+ "extends": [],
3046
+ "isDuplicate": true,
3047
+ "duplicateId": 18,
3048
+ "duplicateName": "Schema-18",
3049
+ "relationships": {
3050
+ "incoming": [],
3051
+ "outgoing": []
3052
+ }
3053
+ },
3054
+ {
3055
+ "name": "Schema",
3056
+ "id": "interface-Schema-760dec88d3f709d5b38226e55f7cbfb1e5fabcea6c004fd46e611be1dd563b8b247e9e6c77667e5582fe7b443374ba2c4facd2b2db2985edb46c9a4a37a8a876-19",
3010
3057
  "file": "packages/core/schematics/migrate-eui-tabs/index.ts",
3011
3058
  "deprecated": false,
3012
3059
  "deprecationMessage": "",
@@ -3044,8 +3091,8 @@
3044
3091
  "methods": [],
3045
3092
  "extends": [],
3046
3093
  "isDuplicate": true,
3047
- "duplicateId": 18,
3048
- "duplicateName": "Schema-18",
3094
+ "duplicateId": 19,
3095
+ "duplicateName": "Schema-19",
3049
3096
  "relationships": {
3050
3097
  "incoming": [],
3051
3098
  "outgoing": []
@@ -3053,7 +3100,7 @@
3053
3100
  },
3054
3101
  {
3055
3102
  "name": "Schema",
3056
- "id": "interface-Schema-e1cd02924eb82a618c71a0b26c081bdd020519d2699aa0e2dc98640c4e0f347c3649b967c5fc87543e41bbbfabd1304835850ccc38f40684d6521c242b2030ed-19",
3103
+ "id": "interface-Schema-e1cd02924eb82a618c71a0b26c081bdd020519d2699aa0e2dc98640c4e0f347c3649b967c5fc87543e41bbbfabd1304835850ccc38f40684d6521c242b2030ed-20",
3057
3104
  "file": "packages/core/schematics/migrate-eui-toolbar-menu/index.ts",
3058
3105
  "deprecated": false,
3059
3106
  "deprecationMessage": "",
@@ -3091,8 +3138,8 @@
3091
3138
  "methods": [],
3092
3139
  "extends": [],
3093
3140
  "isDuplicate": true,
3094
- "duplicateId": 19,
3095
- "duplicateName": "Schema-19",
3141
+ "duplicateId": 20,
3142
+ "duplicateName": "Schema-20",
3096
3143
  "relationships": {
3097
3144
  "incoming": [],
3098
3145
  "outgoing": []
@@ -3100,7 +3147,7 @@
3100
3147
  },
3101
3148
  {
3102
3149
  "name": "Schema",
3103
- "id": "interface-Schema-d36032102ed30a7ada1e3d36bb9ca41b7234b855760cac9783a25818f7ffe2097e1ebd8e808b574ddec0760f827272f6cd561f45f3eb1578f87f39ee2633730a-20",
3150
+ "id": "interface-Schema-d36032102ed30a7ada1e3d36bb9ca41b7234b855760cac9783a25818f7ffe2097e1ebd8e808b574ddec0760f827272f6cd561f45f3eb1578f87f39ee2633730a-21",
3104
3151
  "file": "packages/core/schematics/migrate-eui-tooltip/index.ts",
3105
3152
  "deprecated": false,
3106
3153
  "deprecationMessage": "",
@@ -3138,8 +3185,8 @@
3138
3185
  "methods": [],
3139
3186
  "extends": [],
3140
3187
  "isDuplicate": true,
3141
- "duplicateId": 20,
3142
- "duplicateName": "Schema-20",
3188
+ "duplicateId": 21,
3189
+ "duplicateName": "Schema-21",
3143
3190
  "relationships": {
3144
3191
  "incoming": [],
3145
3192
  "outgoing": []
@@ -3147,7 +3194,7 @@
3147
3194
  },
3148
3195
  {
3149
3196
  "name": "Schema",
3150
- "id": "interface-Schema-cac2ac952d8245647e8a48b450e8f127a36bcffb394cf2cd81fe9c0810ed02c19e5e1629dbf29a68a5c6f675aed99570e9ac04ae470e13315e20c92cc0c6c453-21",
3197
+ "id": "interface-Schema-cac2ac952d8245647e8a48b450e8f127a36bcffb394cf2cd81fe9c0810ed02c19e5e1629dbf29a68a5c6f675aed99570e9ac04ae470e13315e20c92cc0c6c453-22",
3151
3198
  "file": "packages/core/schematics/migrate-to-signals/index.ts",
3152
3199
  "deprecated": false,
3153
3200
  "deprecationMessage": "",
@@ -3185,8 +3232,8 @@
3185
3232
  "methods": [],
3186
3233
  "extends": [],
3187
3234
  "isDuplicate": true,
3188
- "duplicateId": 21,
3189
- "duplicateName": "Schema-21",
3235
+ "duplicateId": 22,
3236
+ "duplicateName": "Schema-22",
3190
3237
  "relationships": {
3191
3238
  "incoming": [],
3192
3239
  "outgoing": []
@@ -3194,7 +3241,7 @@
3194
3241
  },
3195
3242
  {
3196
3243
  "name": "Schema",
3197
- "id": "interface-Schema-817c4b549cc3eab9fcf4936acab2e71182d90a4480369f5c003cbbda10792efa587ad99d65acf049f64e7030e32589e4fabc4a6d7a5621e4fe54725ef91dc9e8-22",
3244
+ "id": "interface-Schema-817c4b549cc3eab9fcf4936acab2e71182d90a4480369f5c003cbbda10792efa587ad99d65acf049f64e7030e32589e4fabc4a6d7a5621e4fe54725ef91dc9e8-23",
3198
3245
  "file": "packages/core/schematics/migrate-to-standalone/index.ts",
3199
3246
  "deprecated": false,
3200
3247
  "deprecationMessage": "",
@@ -3232,8 +3279,8 @@
3232
3279
  "methods": [],
3233
3280
  "extends": [],
3234
3281
  "isDuplicate": true,
3235
- "duplicateId": 22,
3236
- "duplicateName": "Schema-22",
3282
+ "duplicateId": 23,
3283
+ "duplicateName": "Schema-23",
3237
3284
  "relationships": {
3238
3285
  "incoming": [],
3239
3286
  "outgoing": []
@@ -22325,23 +22372,23 @@
22325
22372
  "name": "COMPONENT_TAG",
22326
22373
  "ctype": "miscellaneous",
22327
22374
  "subtype": "variable",
22328
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
22375
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
22329
22376
  "coverageIgnore": false,
22330
22377
  "deprecated": false,
22331
22378
  "deprecationMessage": "",
22332
22379
  "type": "string",
22333
- "defaultValue": "'eui-icon-svg'"
22380
+ "defaultValue": "'eui-icon-toggle'"
22334
22381
  },
22335
22382
  {
22336
22383
  "name": "COMPONENT_TAG",
22337
22384
  "ctype": "miscellaneous",
22338
22385
  "subtype": "variable",
22339
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
22386
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
22340
22387
  "coverageIgnore": false,
22341
22388
  "deprecated": false,
22342
22389
  "deprecationMessage": "",
22343
22390
  "type": "string",
22344
- "defaultValue": "'eui-icon-toggle'"
22391
+ "defaultValue": "'eui-icon-svg'"
22345
22392
  },
22346
22393
  {
22347
22394
  "name": "CONFIG_TOKEN",
@@ -22914,23 +22961,23 @@
22914
22961
  "name": "INPUT_RENAMES",
22915
22962
  "ctype": "miscellaneous",
22916
22963
  "subtype": "variable",
22917
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
22964
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
22918
22965
  "coverageIgnore": false,
22919
22966
  "deprecated": false,
22920
22967
  "deprecationMessage": "",
22921
22968
  "type": "unknown",
22922
- "defaultValue": "new Map([\n ['variant', 'fillColor'],\n ['aria-label', 'ariaLabel'],\n])"
22969
+ "defaultValue": "new Map([\n ['iconLabelClass', 'icon'],\n ['iconLabelStyleClass', 'fillColor'],\n])"
22923
22970
  },
22924
22971
  {
22925
22972
  "name": "INPUT_RENAMES",
22926
22973
  "ctype": "miscellaneous",
22927
22974
  "subtype": "variable",
22928
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
22975
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
22929
22976
  "coverageIgnore": false,
22930
22977
  "deprecated": false,
22931
22978
  "deprecationMessage": "",
22932
22979
  "type": "unknown",
22933
- "defaultValue": "new Map([\n ['iconLabelClass', 'icon'],\n ['iconLabelStyleClass', 'fillColor'],\n])"
22980
+ "defaultValue": "new Map([\n ['variant', 'fillColor'],\n ['aria-label', 'ariaLabel'],\n])"
22934
22981
  },
22935
22982
  {
22936
22983
  "name": "isDefined",
@@ -23246,23 +23293,23 @@
23246
23293
  "name": "NEW_NAME",
23247
23294
  "ctype": "miscellaneous",
23248
23295
  "subtype": "variable",
23249
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
23296
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
23250
23297
  "coverageIgnore": false,
23251
23298
  "deprecated": false,
23252
23299
  "deprecationMessage": "",
23253
23300
  "type": "string",
23254
- "defaultValue": "'euiPrimary'"
23301
+ "defaultValue": "'euiCTAButton'"
23255
23302
  },
23256
23303
  {
23257
23304
  "name": "NEW_NAME",
23258
23305
  "ctype": "miscellaneous",
23259
23306
  "subtype": "variable",
23260
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
23307
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
23261
23308
  "coverageIgnore": false,
23262
23309
  "deprecated": false,
23263
23310
  "deprecationMessage": "",
23264
23311
  "type": "string",
23265
- "defaultValue": "'euiCTAButton'"
23312
+ "defaultValue": "'euiPrimary'"
23266
23313
  },
23267
23314
  {
23268
23315
  "name": "NEW_NAME",
@@ -23391,23 +23438,23 @@
23391
23438
  "name": "OLD_NAME",
23392
23439
  "ctype": "miscellaneous",
23393
23440
  "subtype": "variable",
23394
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
23441
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
23395
23442
  "coverageIgnore": false,
23396
23443
  "deprecated": false,
23397
23444
  "deprecationMessage": "",
23398
23445
  "type": "string",
23399
- "defaultValue": "'euiAccent'"
23446
+ "defaultValue": "'euiButtonCall'"
23400
23447
  },
23401
23448
  {
23402
23449
  "name": "OLD_NAME",
23403
23450
  "ctype": "miscellaneous",
23404
23451
  "subtype": "variable",
23405
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
23452
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
23406
23453
  "coverageIgnore": false,
23407
23454
  "deprecated": false,
23408
23455
  "deprecationMessage": "",
23409
23456
  "type": "string",
23410
- "defaultValue": "'euiButtonCall'"
23457
+ "defaultValue": "'euiAccent'"
23411
23458
  },
23412
23459
  {
23413
23460
  "name": "OLD_NAME",
@@ -23615,23 +23662,23 @@
23615
23662
  "name": "REMOVED_INPUTS",
23616
23663
  "ctype": "miscellaneous",
23617
23664
  "subtype": "variable",
23618
- "file": "packages/core/schematics/migrate-eui-popover/index.ts",
23665
+ "file": "packages/core/schematics/migrate-eui-table/index.ts",
23619
23666
  "coverageIgnore": false,
23620
23667
  "deprecated": false,
23621
23668
  "deprecationMessage": "",
23622
23669
  "type": "unknown",
23623
- "defaultValue": "new Set(['type'])"
23670
+ "defaultValue": "new Set(['euiTableBordered', 'isHoverable', 'defaultMultiOrder', 'paginable'])"
23624
23671
  },
23625
23672
  {
23626
23673
  "name": "REMOVED_INPUTS",
23627
23674
  "ctype": "miscellaneous",
23628
23675
  "subtype": "variable",
23629
- "file": "packages/core/schematics/migrate-eui-table/index.ts",
23676
+ "file": "packages/core/schematics/migrate-eui-popover/index.ts",
23630
23677
  "coverageIgnore": false,
23631
23678
  "deprecated": false,
23632
23679
  "deprecationMessage": "",
23633
23680
  "type": "unknown",
23634
- "defaultValue": "new Set(['euiTableBordered', 'isHoverable', 'defaultMultiOrder', 'paginable'])"
23681
+ "defaultValue": "new Set(['type'])"
23635
23682
  },
23636
23683
  {
23637
23684
  "name": "REMOVED_OUTPUT",
@@ -24383,7 +24430,7 @@
24383
24430
  },
24384
24431
  {
24385
24432
  "name": "applyEdits",
24386
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
24433
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
24387
24434
  "ctype": "miscellaneous",
24388
24435
  "subtype": "function",
24389
24436
  "coverageIgnore": false,
@@ -24428,7 +24475,7 @@
24428
24475
  },
24429
24476
  {
24430
24477
  "name": "applyEdits",
24431
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
24478
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
24432
24479
  "ctype": "miscellaneous",
24433
24480
  "subtype": "function",
24434
24481
  "coverageIgnore": false,
@@ -24608,7 +24655,7 @@
24608
24655
  },
24609
24656
  {
24610
24657
  "name": "applyEdits",
24611
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
24658
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
24612
24659
  "ctype": "miscellaneous",
24613
24660
  "subtype": "function",
24614
24661
  "coverageIgnore": false,
@@ -24653,7 +24700,7 @@
24653
24700
  },
24654
24701
  {
24655
24702
  "name": "applyEdits",
24656
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
24703
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
24657
24704
  "ctype": "miscellaneous",
24658
24705
  "subtype": "function",
24659
24706
  "coverageIgnore": false,
@@ -24698,7 +24745,7 @@
24698
24745
  },
24699
24746
  {
24700
24747
  "name": "applyEdits",
24701
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
24748
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
24702
24749
  "ctype": "miscellaneous",
24703
24750
  "subtype": "function",
24704
24751
  "coverageIgnore": false,
@@ -26190,7 +26237,7 @@
26190
26237
  },
26191
26238
  {
26192
26239
  "name": "collectRenames",
26193
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
26240
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
26194
26241
  "ctype": "miscellaneous",
26195
26242
  "subtype": "function",
26196
26243
  "coverageIgnore": false,
@@ -26235,7 +26282,7 @@
26235
26282
  },
26236
26283
  {
26237
26284
  "name": "collectRenames",
26238
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
26285
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
26239
26286
  "ctype": "miscellaneous",
26240
26287
  "subtype": "function",
26241
26288
  "coverageIgnore": false,
@@ -26370,7 +26417,7 @@
26370
26417
  },
26371
26418
  {
26372
26419
  "name": "collectRenames",
26373
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
26420
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
26374
26421
  "ctype": "miscellaneous",
26375
26422
  "subtype": "function",
26376
26423
  "coverageIgnore": false,
@@ -26415,7 +26462,7 @@
26415
26462
  },
26416
26463
  {
26417
26464
  "name": "collectRenames",
26418
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
26465
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
26419
26466
  "ctype": "miscellaneous",
26420
26467
  "subtype": "function",
26421
26468
  "coverageIgnore": false,
@@ -26460,7 +26507,7 @@
26460
26507
  },
26461
26508
  {
26462
26509
  "name": "collectRenames",
26463
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
26510
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
26464
26511
  "ctype": "miscellaneous",
26465
26512
  "subtype": "function",
26466
26513
  "coverageIgnore": false,
@@ -29629,6 +29676,38 @@
29629
29676
  }
29630
29677
  ]
29631
29678
  },
29679
+ {
29680
+ "name": "inlineTemplateUsesDatepicker",
29681
+ "file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
29682
+ "ctype": "miscellaneous",
29683
+ "subtype": "function",
29684
+ "coverageIgnore": false,
29685
+ "deprecated": false,
29686
+ "deprecationMessage": "",
29687
+ "rawdescription": "",
29688
+ "description": "",
29689
+ "displayName": "inlineTemplateUsesDatepicker",
29690
+ "args": [
29691
+ {
29692
+ "name": "source",
29693
+ "type": "string",
29694
+ "deprecated": false,
29695
+ "deprecationMessage": ""
29696
+ }
29697
+ ],
29698
+ "returnType": "boolean",
29699
+ "jsdoctags": [
29700
+ {
29701
+ "name": "source",
29702
+ "type": "string",
29703
+ "deprecated": false,
29704
+ "deprecationMessage": "",
29705
+ "tagName": {
29706
+ "text": "param"
29707
+ }
29708
+ }
29709
+ ]
29710
+ },
29632
29711
  {
29633
29712
  "name": "isArgumentsChanged",
29634
29713
  "file": "packages/core/src/lib/services/store/ngrx_kit.ts",
@@ -29850,7 +29929,7 @@
29850
29929
  },
29851
29930
  {
29852
29931
  "name": "isComponentMetadataProperty",
29853
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
29932
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
29854
29933
  "ctype": "miscellaneous",
29855
29934
  "subtype": "function",
29856
29935
  "coverageIgnore": false,
@@ -29880,7 +29959,7 @@
29880
29959
  },
29881
29960
  {
29882
29961
  "name": "isComponentMetadataProperty",
29883
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
29962
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
29884
29963
  "ctype": "miscellaneous",
29885
29964
  "subtype": "function",
29886
29965
  "coverageIgnore": false,
@@ -30000,7 +30079,7 @@
30000
30079
  },
30001
30080
  {
30002
30081
  "name": "isComponentMetadataProperty",
30003
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
30082
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
30004
30083
  "ctype": "miscellaneous",
30005
30084
  "subtype": "function",
30006
30085
  "coverageIgnore": false,
@@ -30030,7 +30109,7 @@
30030
30109
  },
30031
30110
  {
30032
30111
  "name": "isComponentMetadataProperty",
30033
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
30112
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
30034
30113
  "ctype": "miscellaneous",
30035
30114
  "subtype": "function",
30036
30115
  "coverageIgnore": false,
@@ -30060,7 +30139,7 @@
30060
30139
  },
30061
30140
  {
30062
30141
  "name": "isComponentMetadataProperty",
30063
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
30142
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
30064
30143
  "ctype": "miscellaneous",
30065
30144
  "subtype": "function",
30066
30145
  "coverageIgnore": false,
@@ -30395,7 +30474,7 @@
30395
30474
  },
30396
30475
  {
30397
30476
  "name": "isTemplateProperty",
30398
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
30477
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
30399
30478
  "ctype": "miscellaneous",
30400
30479
  "subtype": "function",
30401
30480
  "coverageIgnore": false,
@@ -30425,7 +30504,7 @@
30425
30504
  },
30426
30505
  {
30427
30506
  "name": "isTemplateProperty",
30428
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
30507
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
30429
30508
  "ctype": "miscellaneous",
30430
30509
  "subtype": "function",
30431
30510
  "coverageIgnore": false,
@@ -30545,7 +30624,7 @@
30545
30624
  },
30546
30625
  {
30547
30626
  "name": "isTemplateProperty",
30548
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
30627
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
30549
30628
  "ctype": "miscellaneous",
30550
30629
  "subtype": "function",
30551
30630
  "coverageIgnore": false,
@@ -30575,7 +30654,7 @@
30575
30654
  },
30576
30655
  {
30577
30656
  "name": "isTemplateProperty",
30578
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
30657
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
30579
30658
  "ctype": "miscellaneous",
30580
30659
  "subtype": "function",
30581
30660
  "coverageIgnore": false,
@@ -30605,7 +30684,7 @@
30605
30684
  },
30606
30685
  {
30607
30686
  "name": "isTemplateProperty",
30608
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
30687
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
30609
30688
  "ctype": "miscellaneous",
30610
30689
  "subtype": "function",
30611
30690
  "coverageIgnore": false,
@@ -31789,6 +31868,40 @@
31789
31868
  }
31790
31869
  ]
31791
31870
  },
31871
+ {
31872
+ "name": "migrateEuiDatepicker",
31873
+ "file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
31874
+ "ctype": "miscellaneous",
31875
+ "subtype": "function",
31876
+ "coverageIgnore": false,
31877
+ "deprecated": false,
31878
+ "deprecationMessage": "",
31879
+ "rawdescription": "Advisory migration for the eui-datepicker moment-locale breaking change.\n\n`eui-datepicker` no longer bundles the moment locale data (the internal\n`import 'moment/min/locales'` was removed). Apps that relied on the datepicker\nimplicitly registering every moment locale must now import the locales they use\nthemselves, e.g. `import 'moment/locale/fr';`. This schematic cannot know which\nlocales an app needs (and auto-importing all of them would reintroduce the bundle\ncost the change removed), so it only reports the files that use `eui-datepicker`\nand the manual action required.",
31880
+ "description": "<p>Advisory migration for the eui-datepicker moment-locale breaking change.</p>\n<p><code>eui-datepicker</code> no longer bundles the moment locale data (the internal\n<code>import &#39;moment/min/locales&#39;</code> was removed). Apps that relied on the datepicker\nimplicitly registering every moment locale must now import the locales they use\nthemselves, e.g. <code>import &#39;moment/locale/fr&#39;;</code>. This schematic cannot know which\nlocales an app needs (and auto-importing all of them would reintroduce the bundle\ncost the change removed), so it only reports the files that use <code>eui-datepicker</code>\nand the manual action required.</p>\n",
31881
+ "displayName": "migrateEuiDatepicker",
31882
+ "args": [
31883
+ {
31884
+ "name": "options",
31885
+ "type": "Schema",
31886
+ "deprecated": false,
31887
+ "deprecationMessage": "",
31888
+ "defaultValue": "{}"
31889
+ }
31890
+ ],
31891
+ "returnType": "Rule",
31892
+ "jsdoctags": [
31893
+ {
31894
+ "name": "options",
31895
+ "type": "Schema",
31896
+ "deprecated": false,
31897
+ "deprecationMessage": "",
31898
+ "defaultValue": "{}",
31899
+ "tagName": {
31900
+ "text": "param"
31901
+ }
31902
+ }
31903
+ ]
31904
+ },
31792
31905
  {
31793
31906
  "name": "migrateEuiDiscussionThread",
31794
31907
  "file": "packages/core/schematics/migrate-eui-discussion-thread/index.ts",
@@ -32227,7 +32340,7 @@
32227
32340
  },
32228
32341
  {
32229
32342
  "name": "migrateInlineTemplates",
32230
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
32343
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
32231
32344
  "ctype": "miscellaneous",
32232
32345
  "subtype": "function",
32233
32346
  "coverageIgnore": false,
@@ -32259,7 +32372,7 @@
32259
32372
  },
32260
32373
  {
32261
32374
  "name": "migrateInlineTemplates",
32262
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
32375
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
32263
32376
  "ctype": "miscellaneous",
32264
32377
  "subtype": "function",
32265
32378
  "coverageIgnore": false,
@@ -32291,7 +32404,7 @@
32291
32404
  },
32292
32405
  {
32293
32406
  "name": "migrateInlineTemplates",
32294
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
32407
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
32295
32408
  "ctype": "miscellaneous",
32296
32409
  "subtype": "function",
32297
32410
  "coverageIgnore": false,
@@ -32323,7 +32436,7 @@
32323
32436
  },
32324
32437
  {
32325
32438
  "name": "migrateInlineTemplates",
32326
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
32439
+ "file": "packages/core/schematics/migrate-eui-chip/index.ts",
32327
32440
  "ctype": "miscellaneous",
32328
32441
  "subtype": "function",
32329
32442
  "coverageIgnore": false,
@@ -32355,7 +32468,7 @@
32355
32468
  },
32356
32469
  {
32357
32470
  "name": "migrateInlineTemplates",
32358
- "file": "packages/core/schematics/migrate-eui-chip/index.ts",
32471
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
32359
32472
  "ctype": "miscellaneous",
32360
32473
  "subtype": "function",
32361
32474
  "coverageIgnore": false,
@@ -32515,7 +32628,7 @@
32515
32628
  },
32516
32629
  {
32517
32630
  "name": "migrateInlineTemplates",
32518
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
32631
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
32519
32632
  "ctype": "miscellaneous",
32520
32633
  "subtype": "function",
32521
32634
  "coverageIgnore": false,
@@ -32547,7 +32660,7 @@
32547
32660
  },
32548
32661
  {
32549
32662
  "name": "migrateInlineTemplates",
32550
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
32663
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
32551
32664
  "ctype": "miscellaneous",
32552
32665
  "subtype": "function",
32553
32666
  "coverageIgnore": false,
@@ -32579,7 +32692,7 @@
32579
32692
  },
32580
32693
  {
32581
32694
  "name": "migrateInlineTemplates",
32582
- "file": "packages/core/schematics/migrate-eui-popover/index.ts",
32695
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
32583
32696
  "ctype": "miscellaneous",
32584
32697
  "subtype": "function",
32585
32698
  "coverageIgnore": false,
@@ -32611,7 +32724,7 @@
32611
32724
  },
32612
32725
  {
32613
32726
  "name": "migrateInlineTemplates",
32614
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
32727
+ "file": "packages/core/schematics/migrate-eui-popover/index.ts",
32615
32728
  "ctype": "miscellaneous",
32616
32729
  "subtype": "function",
32617
32730
  "coverageIgnore": false,
@@ -32765,38 +32878,6 @@
32765
32878
  }
32766
32879
  ]
32767
32880
  },
32768
- {
32769
- "name": "migrateTemplate",
32770
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
32771
- "ctype": "miscellaneous",
32772
- "subtype": "function",
32773
- "coverageIgnore": false,
32774
- "deprecated": false,
32775
- "deprecationMessage": "",
32776
- "rawdescription": "",
32777
- "description": "",
32778
- "displayName": "migrateTemplate",
32779
- "args": [
32780
- {
32781
- "name": "source",
32782
- "type": "string",
32783
- "deprecated": false,
32784
- "deprecationMessage": ""
32785
- }
32786
- ],
32787
- "returnType": "string",
32788
- "jsdoctags": [
32789
- {
32790
- "name": "source",
32791
- "type": "string",
32792
- "deprecated": false,
32793
- "deprecationMessage": "",
32794
- "tagName": {
32795
- "text": "param"
32796
- }
32797
- }
32798
- ]
32799
- },
32800
32881
  {
32801
32882
  "name": "migrateTemplate",
32802
32883
  "file": "packages/core/schematics/migrate-eui-alert/index.ts",
@@ -32927,7 +33008,7 @@
32927
33008
  },
32928
33009
  {
32929
33010
  "name": "migrateTemplate",
32930
- "file": "packages/core/schematics/migrate-eui-chip-list/index.ts",
33011
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
32931
33012
  "ctype": "miscellaneous",
32932
33013
  "subtype": "function",
32933
33014
  "coverageIgnore": false,
@@ -32959,7 +33040,7 @@
32959
33040
  },
32960
33041
  {
32961
33042
  "name": "migrateTemplate",
32962
- "file": "packages/core/schematics/migrate-eui-discussion-thread/index.ts",
33043
+ "file": "packages/core/schematics/migrate-eui-chip-list/index.ts",
32963
33044
  "ctype": "miscellaneous",
32964
33045
  "subtype": "function",
32965
33046
  "coverageIgnore": false,
@@ -32991,7 +33072,7 @@
32991
33072
  },
32992
33073
  {
32993
33074
  "name": "migrateTemplate",
32994
- "file": "packages/core/schematics/migrate-eui-editor/index.ts",
33075
+ "file": "packages/core/schematics/migrate-eui-discussion-thread/index.ts",
32995
33076
  "ctype": "miscellaneous",
32996
33077
  "subtype": "function",
32997
33078
  "coverageIgnore": false,
@@ -33023,7 +33104,7 @@
33023
33104
  },
33024
33105
  {
33025
33106
  "name": "migrateTemplate",
33026
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
33107
+ "file": "packages/core/schematics/migrate-eui-editor/index.ts",
33027
33108
  "ctype": "miscellaneous",
33028
33109
  "subtype": "function",
33029
33110
  "coverageIgnore": false,
@@ -33055,7 +33136,7 @@
33055
33136
  },
33056
33137
  {
33057
33138
  "name": "migrateTemplate",
33058
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
33139
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
33059
33140
  "ctype": "miscellaneous",
33060
33141
  "subtype": "function",
33061
33142
  "coverageIgnore": false,
@@ -33119,7 +33200,7 @@
33119
33200
  },
33120
33201
  {
33121
33202
  "name": "migrateTemplate",
33122
- "file": "packages/core/schematics/migrate-eui-popover/index.ts",
33203
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
33123
33204
  "ctype": "miscellaneous",
33124
33205
  "subtype": "function",
33125
33206
  "coverageIgnore": false,
@@ -33151,7 +33232,7 @@
33151
33232
  },
33152
33233
  {
33153
33234
  "name": "migrateTemplate",
33154
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
33235
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
33155
33236
  "ctype": "miscellaneous",
33156
33237
  "subtype": "function",
33157
33238
  "coverageIgnore": false,
@@ -33243,6 +33324,38 @@
33243
33324
  }
33244
33325
  ]
33245
33326
  },
33327
+ {
33328
+ "name": "migrateTemplate",
33329
+ "file": "packages/core/schematics/migrate-eui-popover/index.ts",
33330
+ "ctype": "miscellaneous",
33331
+ "subtype": "function",
33332
+ "coverageIgnore": false,
33333
+ "deprecated": false,
33334
+ "deprecationMessage": "",
33335
+ "rawdescription": "",
33336
+ "description": "",
33337
+ "displayName": "migrateTemplate",
33338
+ "args": [
33339
+ {
33340
+ "name": "source",
33341
+ "type": "string",
33342
+ "deprecated": false,
33343
+ "deprecationMessage": ""
33344
+ }
33345
+ ],
33346
+ "returnType": "string",
33347
+ "jsdoctags": [
33348
+ {
33349
+ "name": "source",
33350
+ "type": "string",
33351
+ "deprecated": false,
33352
+ "deprecationMessage": "",
33353
+ "tagName": {
33354
+ "text": "param"
33355
+ }
33356
+ }
33357
+ ]
33358
+ },
33246
33359
  {
33247
33360
  "name": "migrateTemplate",
33248
33361
  "file": "packages/core/schematics/migrate-eui-tabs/index.ts",
@@ -33760,6 +33873,36 @@
33760
33873
  }
33761
33874
  ]
33762
33875
  },
33876
+ {
33877
+ "name": "nodesContainDatepicker",
33878
+ "file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
33879
+ "ctype": "miscellaneous",
33880
+ "subtype": "function",
33881
+ "coverageIgnore": false,
33882
+ "deprecated": false,
33883
+ "deprecationMessage": "",
33884
+ "rawdescription": "",
33885
+ "description": "",
33886
+ "displayName": "nodesContainDatepicker",
33887
+ "args": [
33888
+ {
33889
+ "name": "nodes",
33890
+ "deprecated": false,
33891
+ "deprecationMessage": ""
33892
+ }
33893
+ ],
33894
+ "returnType": "boolean",
33895
+ "jsdoctags": [
33896
+ {
33897
+ "name": "nodes",
33898
+ "deprecated": false,
33899
+ "deprecationMessage": "",
33900
+ "tagName": {
33901
+ "text": "param"
33902
+ }
33903
+ }
33904
+ ]
33905
+ },
33763
33906
  {
33764
33907
  "name": "parseSelector",
33765
33908
  "file": "packages/core/schematics/add-eui-imports/selector-map.ts",
@@ -34341,7 +34484,7 @@
34341
34484
  },
34342
34485
  {
34343
34486
  "name": "renameTsPropertyAccesses",
34344
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
34487
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
34345
34488
  "ctype": "miscellaneous",
34346
34489
  "subtype": "function",
34347
34490
  "coverageIgnore": false,
@@ -34373,7 +34516,7 @@
34373
34516
  },
34374
34517
  {
34375
34518
  "name": "renameTsPropertyAccesses",
34376
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
34519
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
34377
34520
  "ctype": "miscellaneous",
34378
34521
  "subtype": "function",
34379
34522
  "coverageIgnore": false,
@@ -35191,6 +35334,38 @@
35191
35334
  }
35192
35335
  ]
35193
35336
  },
35337
+ {
35338
+ "name": "templateUsesDatepicker",
35339
+ "file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
35340
+ "ctype": "miscellaneous",
35341
+ "subtype": "function",
35342
+ "coverageIgnore": false,
35343
+ "deprecated": false,
35344
+ "deprecationMessage": "",
35345
+ "rawdescription": "",
35346
+ "description": "",
35347
+ "displayName": "templateUsesDatepicker",
35348
+ "args": [
35349
+ {
35350
+ "name": "source",
35351
+ "type": "string",
35352
+ "deprecated": false,
35353
+ "deprecationMessage": ""
35354
+ }
35355
+ ],
35356
+ "returnType": "boolean",
35357
+ "jsdoctags": [
35358
+ {
35359
+ "name": "source",
35360
+ "type": "string",
35361
+ "deprecated": false,
35362
+ "deprecationMessage": "",
35363
+ "tagName": {
35364
+ "text": "param"
35365
+ }
35366
+ }
35367
+ ]
35368
+ },
35194
35369
  {
35195
35370
  "name": "transformTranslations",
35196
35371
  "file": "packages/core/src/lib/services/i18n/i18n-utils.ts",
@@ -35301,7 +35476,7 @@
35301
35476
  },
35302
35477
  {
35303
35478
  "name": "unwrapExpression",
35304
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
35479
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
35305
35480
  "ctype": "miscellaneous",
35306
35481
  "subtype": "function",
35307
35482
  "coverageIgnore": false,
@@ -35331,7 +35506,7 @@
35331
35506
  },
35332
35507
  {
35333
35508
  "name": "unwrapExpression",
35334
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
35509
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
35335
35510
  "ctype": "miscellaneous",
35336
35511
  "subtype": "function",
35337
35512
  "coverageIgnore": false,
@@ -35451,7 +35626,7 @@
35451
35626
  },
35452
35627
  {
35453
35628
  "name": "unwrapExpression",
35454
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
35629
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
35455
35630
  "ctype": "miscellaneous",
35456
35631
  "subtype": "function",
35457
35632
  "coverageIgnore": false,
@@ -35481,7 +35656,7 @@
35481
35656
  },
35482
35657
  {
35483
35658
  "name": "unwrapExpression",
35484
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
35659
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
35485
35660
  "ctype": "miscellaneous",
35486
35661
  "subtype": "function",
35487
35662
  "coverageIgnore": false,
@@ -35511,7 +35686,7 @@
35511
35686
  },
35512
35687
  {
35513
35688
  "name": "unwrapExpression",
35514
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
35689
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
35515
35690
  "ctype": "miscellaneous",
35516
35691
  "subtype": "function",
35517
35692
  "coverageIgnore": false,
@@ -35944,7 +36119,7 @@
35944
36119
  },
35945
36120
  {
35946
36121
  "name": "visitDir",
35947
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
36122
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
35948
36123
  "ctype": "miscellaneous",
35949
36124
  "subtype": "function",
35950
36125
  "coverageIgnore": false,
@@ -35989,7 +36164,7 @@
35989
36164
  },
35990
36165
  {
35991
36166
  "name": "visitDir",
35992
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
36167
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
35993
36168
  "ctype": "miscellaneous",
35994
36169
  "subtype": "function",
35995
36170
  "coverageIgnore": false,
@@ -36034,7 +36209,7 @@
36034
36209
  },
36035
36210
  {
36036
36211
  "name": "visitDir",
36037
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
36212
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
36038
36213
  "ctype": "miscellaneous",
36039
36214
  "subtype": "function",
36040
36215
  "coverageIgnore": false,
@@ -36079,7 +36254,7 @@
36079
36254
  },
36080
36255
  {
36081
36256
  "name": "visitDir",
36082
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
36257
+ "file": "packages/core/schematics/migrate-eui-chip/index.ts",
36083
36258
  "ctype": "miscellaneous",
36084
36259
  "subtype": "function",
36085
36260
  "coverageIgnore": false,
@@ -36124,7 +36299,7 @@
36124
36299
  },
36125
36300
  {
36126
36301
  "name": "visitDir",
36127
- "file": "packages/core/schematics/migrate-eui-chip/index.ts",
36302
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
36128
36303
  "ctype": "miscellaneous",
36129
36304
  "subtype": "function",
36130
36305
  "coverageIgnore": false,
@@ -36259,7 +36434,7 @@
36259
36434
  },
36260
36435
  {
36261
36436
  "name": "visitDir",
36262
- "file": "packages/core/schematics/migrate-eui-editor/index.ts",
36437
+ "file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
36263
36438
  "ctype": "miscellaneous",
36264
36439
  "subtype": "function",
36265
36440
  "coverageIgnore": false,
@@ -36304,7 +36479,7 @@
36304
36479
  },
36305
36480
  {
36306
36481
  "name": "visitDir",
36307
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
36482
+ "file": "packages/core/schematics/migrate-eui-editor/index.ts",
36308
36483
  "ctype": "miscellaneous",
36309
36484
  "subtype": "function",
36310
36485
  "coverageIgnore": false,
@@ -36349,7 +36524,7 @@
36349
36524
  },
36350
36525
  {
36351
36526
  "name": "visitDir",
36352
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
36527
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
36353
36528
  "ctype": "miscellaneous",
36354
36529
  "subtype": "function",
36355
36530
  "coverageIgnore": false,
@@ -36439,7 +36614,7 @@
36439
36614
  },
36440
36615
  {
36441
36616
  "name": "visitDir",
36442
- "file": "packages/core/schematics/migrate-eui-popover/index.ts",
36617
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
36443
36618
  "ctype": "miscellaneous",
36444
36619
  "subtype": "function",
36445
36620
  "coverageIgnore": false,
@@ -36484,7 +36659,7 @@
36484
36659
  },
36485
36660
  {
36486
36661
  "name": "visitDir",
36487
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
36662
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
36488
36663
  "ctype": "miscellaneous",
36489
36664
  "subtype": "function",
36490
36665
  "coverageIgnore": false,
@@ -36572,6 +36747,51 @@
36572
36747
  }
36573
36748
  ]
36574
36749
  },
36750
+ {
36751
+ "name": "visitDir",
36752
+ "file": "packages/core/schematics/migrate-eui-popover/index.ts",
36753
+ "ctype": "miscellaneous",
36754
+ "subtype": "function",
36755
+ "coverageIgnore": false,
36756
+ "deprecated": false,
36757
+ "deprecationMessage": "",
36758
+ "rawdescription": "",
36759
+ "description": "",
36760
+ "displayName": "visitDir",
36761
+ "args": [
36762
+ {
36763
+ "name": "dir",
36764
+ "type": "DirEntry",
36765
+ "deprecated": false,
36766
+ "deprecationMessage": ""
36767
+ },
36768
+ {
36769
+ "name": "callback",
36770
+ "deprecated": false,
36771
+ "deprecationMessage": ""
36772
+ }
36773
+ ],
36774
+ "returnType": "void",
36775
+ "jsdoctags": [
36776
+ {
36777
+ "name": "dir",
36778
+ "type": "DirEntry",
36779
+ "deprecated": false,
36780
+ "deprecationMessage": "",
36781
+ "tagName": {
36782
+ "text": "param"
36783
+ }
36784
+ },
36785
+ {
36786
+ "name": "callback",
36787
+ "deprecated": false,
36788
+ "deprecationMessage": "",
36789
+ "tagName": {
36790
+ "text": "param"
36791
+ }
36792
+ }
36793
+ ]
36794
+ },
36575
36795
  {
36576
36796
  "name": "visitDir",
36577
36797
  "file": "packages/core/schematics/migrate-eui-tabs/index.ts",
@@ -36844,7 +37064,7 @@
36844
37064
  },
36845
37065
  {
36846
37066
  "name": "visitNodes",
36847
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
37067
+ "file": "packages/core/schematics/migrate-eui-alert/index.ts",
36848
37068
  "ctype": "miscellaneous",
36849
37069
  "subtype": "function",
36850
37070
  "coverageIgnore": false,
@@ -36860,7 +37080,7 @@
36860
37080
  "deprecationMessage": ""
36861
37081
  },
36862
37082
  {
36863
- "name": "edits",
37083
+ "name": "removals",
36864
37084
  "deprecated": false,
36865
37085
  "deprecationMessage": ""
36866
37086
  }
@@ -36876,7 +37096,7 @@
36876
37096
  }
36877
37097
  },
36878
37098
  {
36879
- "name": "edits",
37099
+ "name": "removals",
36880
37100
  "deprecated": false,
36881
37101
  "deprecationMessage": "",
36882
37102
  "tagName": {
@@ -36887,7 +37107,7 @@
36887
37107
  },
36888
37108
  {
36889
37109
  "name": "visitNodes",
36890
- "file": "packages/core/schematics/migrate-eui-alert/index.ts",
37110
+ "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
36891
37111
  "ctype": "miscellaneous",
36892
37112
  "subtype": "function",
36893
37113
  "coverageIgnore": false,
@@ -36930,7 +37150,7 @@
36930
37150
  },
36931
37151
  {
36932
37152
  "name": "visitNodes",
36933
- "file": "packages/core/schematics/migrate-eui-avatar/index.ts",
37153
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
36934
37154
  "ctype": "miscellaneous",
36935
37155
  "subtype": "function",
36936
37156
  "coverageIgnore": false,
@@ -36946,7 +37166,7 @@
36946
37166
  "deprecationMessage": ""
36947
37167
  },
36948
37168
  {
36949
- "name": "removals",
37169
+ "name": "edits",
36950
37170
  "deprecated": false,
36951
37171
  "deprecationMessage": ""
36952
37172
  }
@@ -36962,7 +37182,7 @@
36962
37182
  }
36963
37183
  },
36964
37184
  {
36965
- "name": "removals",
37185
+ "name": "edits",
36966
37186
  "deprecated": false,
36967
37187
  "deprecationMessage": "",
36968
37188
  "tagName": {
@@ -36973,7 +37193,7 @@
36973
37193
  },
36974
37194
  {
36975
37195
  "name": "visitNodes",
36976
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
37196
+ "file": "packages/core/schematics/migrate-eui-chip/index.ts",
36977
37197
  "ctype": "miscellaneous",
36978
37198
  "subtype": "function",
36979
37199
  "coverageIgnore": false,
@@ -36989,7 +37209,7 @@
36989
37209
  "deprecationMessage": ""
36990
37210
  },
36991
37211
  {
36992
- "name": "edits",
37212
+ "name": "removals",
36993
37213
  "deprecated": false,
36994
37214
  "deprecationMessage": ""
36995
37215
  }
@@ -37005,7 +37225,7 @@
37005
37225
  }
37006
37226
  },
37007
37227
  {
37008
- "name": "edits",
37228
+ "name": "removals",
37009
37229
  "deprecated": false,
37010
37230
  "deprecationMessage": "",
37011
37231
  "tagName": {
@@ -37016,7 +37236,7 @@
37016
37236
  },
37017
37237
  {
37018
37238
  "name": "visitNodes",
37019
- "file": "packages/core/schematics/migrate-eui-chip/index.ts",
37239
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
37020
37240
  "ctype": "miscellaneous",
37021
37241
  "subtype": "function",
37022
37242
  "coverageIgnore": false,
@@ -37032,7 +37252,7 @@
37032
37252
  "deprecationMessage": ""
37033
37253
  },
37034
37254
  {
37035
- "name": "removals",
37255
+ "name": "edits",
37036
37256
  "deprecated": false,
37037
37257
  "deprecationMessage": ""
37038
37258
  }
@@ -37048,7 +37268,7 @@
37048
37268
  }
37049
37269
  },
37050
37270
  {
37051
- "name": "removals",
37271
+ "name": "edits",
37052
37272
  "deprecated": false,
37053
37273
  "deprecationMessage": "",
37054
37274
  "tagName": {
@@ -37261,7 +37481,7 @@
37261
37481
  },
37262
37482
  {
37263
37483
  "name": "visitNodes",
37264
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
37484
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
37265
37485
  "ctype": "miscellaneous",
37266
37486
  "subtype": "function",
37267
37487
  "coverageIgnore": false,
@@ -37304,7 +37524,7 @@
37304
37524
  },
37305
37525
  {
37306
37526
  "name": "visitNodes",
37307
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
37527
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
37308
37528
  "ctype": "miscellaneous",
37309
37529
  "subtype": "function",
37310
37530
  "coverageIgnore": false,
@@ -37347,7 +37567,7 @@
37347
37567
  },
37348
37568
  {
37349
37569
  "name": "visitNodes",
37350
- "file": "packages/core/schematics/migrate-eui-popover/index.ts",
37570
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
37351
37571
  "ctype": "miscellaneous",
37352
37572
  "subtype": "function",
37353
37573
  "coverageIgnore": false,
@@ -37363,7 +37583,7 @@
37363
37583
  "deprecationMessage": ""
37364
37584
  },
37365
37585
  {
37366
- "name": "removals",
37586
+ "name": "edits",
37367
37587
  "deprecated": false,
37368
37588
  "deprecationMessage": ""
37369
37589
  }
@@ -37379,7 +37599,7 @@
37379
37599
  }
37380
37600
  },
37381
37601
  {
37382
- "name": "removals",
37602
+ "name": "edits",
37383
37603
  "deprecated": false,
37384
37604
  "deprecationMessage": "",
37385
37605
  "tagName": {
@@ -37390,7 +37610,7 @@
37390
37610
  },
37391
37611
  {
37392
37612
  "name": "visitNodes",
37393
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
37613
+ "file": "packages/core/schematics/migrate-eui-popover/index.ts",
37394
37614
  "ctype": "miscellaneous",
37395
37615
  "subtype": "function",
37396
37616
  "coverageIgnore": false,
@@ -37406,7 +37626,7 @@
37406
37626
  "deprecationMessage": ""
37407
37627
  },
37408
37628
  {
37409
- "name": "edits",
37629
+ "name": "removals",
37410
37630
  "deprecated": false,
37411
37631
  "deprecationMessage": ""
37412
37632
  }
@@ -37422,7 +37642,7 @@
37422
37642
  }
37423
37643
  },
37424
37644
  {
37425
- "name": "edits",
37645
+ "name": "removals",
37426
37646
  "deprecated": false,
37427
37647
  "deprecationMessage": "",
37428
37648
  "tagName": {
@@ -39159,74 +39379,74 @@
39159
39379
  "defaultValue": "'iconSvgType'"
39160
39380
  }
39161
39381
  ],
39162
- "packages/core/schematics/migrate-eui-icon-svg/index.ts": [
39382
+ "packages/core/schematics/migrate-eui-icon-toggle/index.ts": [
39163
39383
  {
39164
39384
  "name": "COMPONENT_TAG",
39165
39385
  "ctype": "miscellaneous",
39166
39386
  "subtype": "variable",
39167
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
39387
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
39168
39388
  "coverageIgnore": false,
39169
39389
  "deprecated": false,
39170
39390
  "deprecationMessage": "",
39171
39391
  "type": "string",
39172
- "defaultValue": "'eui-icon-svg'"
39392
+ "defaultValue": "'eui-icon-toggle'"
39173
39393
  },
39174
39394
  {
39175
- "name": "INPUT_RENAMES",
39395
+ "name": "NEW_NAME",
39176
39396
  "ctype": "miscellaneous",
39177
39397
  "subtype": "variable",
39178
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
39398
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
39179
39399
  "coverageIgnore": false,
39180
39400
  "deprecated": false,
39181
39401
  "deprecationMessage": "",
39182
- "type": "unknown",
39183
- "defaultValue": "new Map([\n ['variant', 'fillColor'],\n ['aria-label', 'ariaLabel'],\n])"
39402
+ "type": "string",
39403
+ "defaultValue": "'iconSvgName'"
39184
39404
  },
39185
39405
  {
39186
- "name": "TS_PROPERTY_RENAMES",
39406
+ "name": "OLD_NAME",
39187
39407
  "ctype": "miscellaneous",
39188
39408
  "subtype": "variable",
39189
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
39409
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
39190
39410
  "coverageIgnore": false,
39191
39411
  "deprecated": false,
39192
39412
  "deprecationMessage": "",
39193
- "type": "unknown",
39194
- "defaultValue": "new Map([\n ['variant', 'fillColor'],\n])"
39413
+ "type": "string",
39414
+ "defaultValue": "'iconSet'"
39195
39415
  }
39196
39416
  ],
39197
- "packages/core/schematics/migrate-eui-icon-toggle/index.ts": [
39417
+ "packages/core/schematics/migrate-eui-icon-svg/index.ts": [
39198
39418
  {
39199
39419
  "name": "COMPONENT_TAG",
39200
39420
  "ctype": "miscellaneous",
39201
39421
  "subtype": "variable",
39202
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
39422
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
39203
39423
  "coverageIgnore": false,
39204
39424
  "deprecated": false,
39205
39425
  "deprecationMessage": "",
39206
39426
  "type": "string",
39207
- "defaultValue": "'eui-icon-toggle'"
39427
+ "defaultValue": "'eui-icon-svg'"
39208
39428
  },
39209
39429
  {
39210
- "name": "NEW_NAME",
39430
+ "name": "INPUT_RENAMES",
39211
39431
  "ctype": "miscellaneous",
39212
39432
  "subtype": "variable",
39213
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
39433
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
39214
39434
  "coverageIgnore": false,
39215
39435
  "deprecated": false,
39216
39436
  "deprecationMessage": "",
39217
- "type": "string",
39218
- "defaultValue": "'iconSvgName'"
39437
+ "type": "unknown",
39438
+ "defaultValue": "new Map([\n ['variant', 'fillColor'],\n ['aria-label', 'ariaLabel'],\n])"
39219
39439
  },
39220
39440
  {
39221
- "name": "OLD_NAME",
39441
+ "name": "TS_PROPERTY_RENAMES",
39222
39442
  "ctype": "miscellaneous",
39223
39443
  "subtype": "variable",
39224
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
39444
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
39225
39445
  "coverageIgnore": false,
39226
39446
  "deprecated": false,
39227
39447
  "deprecationMessage": "",
39228
- "type": "string",
39229
- "defaultValue": "'iconSet'"
39448
+ "type": "unknown",
39449
+ "defaultValue": "new Map([\n ['variant', 'fillColor'],\n])"
39230
39450
  }
39231
39451
  ],
39232
39452
  "packages/core/src/lib/helpers/event-helpers.ts": [
@@ -44731,10 +44951,10 @@
44731
44951
  ]
44732
44952
  }
44733
44953
  ],
44734
- "packages/core/schematics/migrate-eui-accent/index.ts": [
44954
+ "packages/core/schematics/migrate-eui-button/index.ts": [
44735
44955
  {
44736
44956
  "name": "applyEdits",
44737
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
44957
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
44738
44958
  "ctype": "miscellaneous",
44739
44959
  "subtype": "function",
44740
44960
  "coverageIgnore": false,
@@ -44779,7 +44999,7 @@
44779
44999
  },
44780
45000
  {
44781
45001
  "name": "collectRenames",
44782
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45002
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
44783
45003
  "ctype": "miscellaneous",
44784
45004
  "subtype": "function",
44785
45005
  "coverageIgnore": false,
@@ -44823,8 +45043,8 @@
44823
45043
  ]
44824
45044
  },
44825
45045
  {
44826
- "name": "isComponentMetadataProperty",
44827
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45046
+ "name": "hasEuiButtonAttribute",
45047
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
44828
45048
  "ctype": "miscellaneous",
44829
45049
  "subtype": "function",
44830
45050
  "coverageIgnore": false,
@@ -44832,10 +45052,11 @@
44832
45052
  "deprecationMessage": "",
44833
45053
  "rawdescription": "",
44834
45054
  "description": "",
44835
- "displayName": "isComponentMetadataProperty",
45055
+ "displayName": "hasEuiButtonAttribute",
44836
45056
  "args": [
44837
45057
  {
44838
- "name": "node",
45058
+ "name": "element",
45059
+ "type": "TmplAstElement",
44839
45060
  "deprecated": false,
44840
45061
  "deprecationMessage": ""
44841
45062
  }
@@ -44843,7 +45064,8 @@
44843
45064
  "returnType": "boolean",
44844
45065
  "jsdoctags": [
44845
45066
  {
44846
- "name": "node",
45067
+ "name": "element",
45068
+ "type": "TmplAstElement",
44847
45069
  "deprecated": false,
44848
45070
  "deprecationMessage": "",
44849
45071
  "tagName": {
@@ -44853,8 +45075,8 @@
44853
45075
  ]
44854
45076
  },
44855
45077
  {
44856
- "name": "isEuiElement",
44857
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45078
+ "name": "isComponentMetadataProperty",
45079
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
44858
45080
  "ctype": "miscellaneous",
44859
45081
  "subtype": "function",
44860
45082
  "coverageIgnore": false,
@@ -44862,11 +45084,10 @@
44862
45084
  "deprecationMessage": "",
44863
45085
  "rawdescription": "",
44864
45086
  "description": "",
44865
- "displayName": "isEuiElement",
45087
+ "displayName": "isComponentMetadataProperty",
44866
45088
  "args": [
44867
45089
  {
44868
- "name": "element",
44869
- "type": "TmplAstElement",
45090
+ "name": "node",
44870
45091
  "deprecated": false,
44871
45092
  "deprecationMessage": ""
44872
45093
  }
@@ -44874,8 +45095,7 @@
44874
45095
  "returnType": "boolean",
44875
45096
  "jsdoctags": [
44876
45097
  {
44877
- "name": "element",
44878
- "type": "TmplAstElement",
45098
+ "name": "node",
44879
45099
  "deprecated": false,
44880
45100
  "deprecationMessage": "",
44881
45101
  "tagName": {
@@ -44886,7 +45106,7 @@
44886
45106
  },
44887
45107
  {
44888
45108
  "name": "isTemplateProperty",
44889
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45109
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
44890
45110
  "ctype": "miscellaneous",
44891
45111
  "subtype": "function",
44892
45112
  "coverageIgnore": false,
@@ -44915,8 +45135,8 @@
44915
45135
  ]
44916
45136
  },
44917
45137
  {
44918
- "name": "migrateEuiAccent",
44919
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45138
+ "name": "migrateEuiButton",
45139
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
44920
45140
  "ctype": "miscellaneous",
44921
45141
  "subtype": "function",
44922
45142
  "coverageIgnore": false,
@@ -44924,7 +45144,7 @@
44924
45144
  "deprecationMessage": "",
44925
45145
  "rawdescription": "",
44926
45146
  "description": "",
44927
- "displayName": "migrateEuiAccent",
45147
+ "displayName": "migrateEuiButton",
44928
45148
  "args": [
44929
45149
  {
44930
45150
  "name": "options",
@@ -44950,7 +45170,7 @@
44950
45170
  },
44951
45171
  {
44952
45172
  "name": "migrateInlineTemplates",
44953
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45173
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
44954
45174
  "ctype": "miscellaneous",
44955
45175
  "subtype": "function",
44956
45176
  "coverageIgnore": false,
@@ -44982,7 +45202,7 @@
44982
45202
  },
44983
45203
  {
44984
45204
  "name": "migrateTemplate",
44985
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45205
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
44986
45206
  "ctype": "miscellaneous",
44987
45207
  "subtype": "function",
44988
45208
  "coverageIgnore": false,
@@ -45012,41 +45232,9 @@
45012
45232
  }
45013
45233
  ]
45014
45234
  },
45015
- {
45016
- "name": "renameTsPropertyAccesses",
45017
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45018
- "ctype": "miscellaneous",
45019
- "subtype": "function",
45020
- "coverageIgnore": false,
45021
- "deprecated": false,
45022
- "deprecationMessage": "",
45023
- "rawdescription": "",
45024
- "description": "",
45025
- "displayName": "renameTsPropertyAccesses",
45026
- "args": [
45027
- {
45028
- "name": "source",
45029
- "type": "string",
45030
- "deprecated": false,
45031
- "deprecationMessage": ""
45032
- }
45033
- ],
45034
- "returnType": "string",
45035
- "jsdoctags": [
45036
- {
45037
- "name": "source",
45038
- "type": "string",
45039
- "deprecated": false,
45040
- "deprecationMessage": "",
45041
- "tagName": {
45042
- "text": "param"
45043
- }
45044
- }
45045
- ]
45046
- },
45047
45235
  {
45048
45236
  "name": "unwrapExpression",
45049
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45237
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
45050
45238
  "ctype": "miscellaneous",
45051
45239
  "subtype": "function",
45052
45240
  "coverageIgnore": false,
@@ -45076,7 +45264,7 @@
45076
45264
  },
45077
45265
  {
45078
45266
  "name": "visitDir",
45079
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45267
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
45080
45268
  "ctype": "miscellaneous",
45081
45269
  "subtype": "function",
45082
45270
  "coverageIgnore": false,
@@ -45121,7 +45309,7 @@
45121
45309
  },
45122
45310
  {
45123
45311
  "name": "visitNodes",
45124
- "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45312
+ "file": "packages/core/schematics/migrate-eui-button/index.ts",
45125
45313
  "ctype": "miscellaneous",
45126
45314
  "subtype": "function",
45127
45315
  "coverageIgnore": false,
@@ -45163,10 +45351,10 @@
45163
45351
  ]
45164
45352
  }
45165
45353
  ],
45166
- "packages/core/schematics/migrate-eui-button/index.ts": [
45354
+ "packages/core/schematics/migrate-eui-accent/index.ts": [
45167
45355
  {
45168
45356
  "name": "applyEdits",
45169
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
45357
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45170
45358
  "ctype": "miscellaneous",
45171
45359
  "subtype": "function",
45172
45360
  "coverageIgnore": false,
@@ -45211,7 +45399,7 @@
45211
45399
  },
45212
45400
  {
45213
45401
  "name": "collectRenames",
45214
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
45402
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45215
45403
  "ctype": "miscellaneous",
45216
45404
  "subtype": "function",
45217
45405
  "coverageIgnore": false,
@@ -45255,8 +45443,8 @@
45255
45443
  ]
45256
45444
  },
45257
45445
  {
45258
- "name": "hasEuiButtonAttribute",
45259
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
45446
+ "name": "isComponentMetadataProperty",
45447
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45260
45448
  "ctype": "miscellaneous",
45261
45449
  "subtype": "function",
45262
45450
  "coverageIgnore": false,
@@ -45264,11 +45452,10 @@
45264
45452
  "deprecationMessage": "",
45265
45453
  "rawdescription": "",
45266
45454
  "description": "",
45267
- "displayName": "hasEuiButtonAttribute",
45455
+ "displayName": "isComponentMetadataProperty",
45268
45456
  "args": [
45269
45457
  {
45270
- "name": "element",
45271
- "type": "TmplAstElement",
45458
+ "name": "node",
45272
45459
  "deprecated": false,
45273
45460
  "deprecationMessage": ""
45274
45461
  }
@@ -45276,8 +45463,7 @@
45276
45463
  "returnType": "boolean",
45277
45464
  "jsdoctags": [
45278
45465
  {
45279
- "name": "element",
45280
- "type": "TmplAstElement",
45466
+ "name": "node",
45281
45467
  "deprecated": false,
45282
45468
  "deprecationMessage": "",
45283
45469
  "tagName": {
@@ -45287,8 +45473,8 @@
45287
45473
  ]
45288
45474
  },
45289
45475
  {
45290
- "name": "isComponentMetadataProperty",
45291
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
45476
+ "name": "isEuiElement",
45477
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45292
45478
  "ctype": "miscellaneous",
45293
45479
  "subtype": "function",
45294
45480
  "coverageIgnore": false,
@@ -45296,10 +45482,11 @@
45296
45482
  "deprecationMessage": "",
45297
45483
  "rawdescription": "",
45298
45484
  "description": "",
45299
- "displayName": "isComponentMetadataProperty",
45485
+ "displayName": "isEuiElement",
45300
45486
  "args": [
45301
45487
  {
45302
- "name": "node",
45488
+ "name": "element",
45489
+ "type": "TmplAstElement",
45303
45490
  "deprecated": false,
45304
45491
  "deprecationMessage": ""
45305
45492
  }
@@ -45307,7 +45494,8 @@
45307
45494
  "returnType": "boolean",
45308
45495
  "jsdoctags": [
45309
45496
  {
45310
- "name": "node",
45497
+ "name": "element",
45498
+ "type": "TmplAstElement",
45311
45499
  "deprecated": false,
45312
45500
  "deprecationMessage": "",
45313
45501
  "tagName": {
@@ -45318,7 +45506,7 @@
45318
45506
  },
45319
45507
  {
45320
45508
  "name": "isTemplateProperty",
45321
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
45509
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45322
45510
  "ctype": "miscellaneous",
45323
45511
  "subtype": "function",
45324
45512
  "coverageIgnore": false,
@@ -45347,8 +45535,8 @@
45347
45535
  ]
45348
45536
  },
45349
45537
  {
45350
- "name": "migrateEuiButton",
45351
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
45538
+ "name": "migrateEuiAccent",
45539
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45352
45540
  "ctype": "miscellaneous",
45353
45541
  "subtype": "function",
45354
45542
  "coverageIgnore": false,
@@ -45356,7 +45544,7 @@
45356
45544
  "deprecationMessage": "",
45357
45545
  "rawdescription": "",
45358
45546
  "description": "",
45359
- "displayName": "migrateEuiButton",
45547
+ "displayName": "migrateEuiAccent",
45360
45548
  "args": [
45361
45549
  {
45362
45550
  "name": "options",
@@ -45382,7 +45570,7 @@
45382
45570
  },
45383
45571
  {
45384
45572
  "name": "migrateInlineTemplates",
45385
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
45573
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45386
45574
  "ctype": "miscellaneous",
45387
45575
  "subtype": "function",
45388
45576
  "coverageIgnore": false,
@@ -45414,7 +45602,7 @@
45414
45602
  },
45415
45603
  {
45416
45604
  "name": "migrateTemplate",
45417
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
45605
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45418
45606
  "ctype": "miscellaneous",
45419
45607
  "subtype": "function",
45420
45608
  "coverageIgnore": false,
@@ -45444,9 +45632,41 @@
45444
45632
  }
45445
45633
  ]
45446
45634
  },
45635
+ {
45636
+ "name": "renameTsPropertyAccesses",
45637
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45638
+ "ctype": "miscellaneous",
45639
+ "subtype": "function",
45640
+ "coverageIgnore": false,
45641
+ "deprecated": false,
45642
+ "deprecationMessage": "",
45643
+ "rawdescription": "",
45644
+ "description": "",
45645
+ "displayName": "renameTsPropertyAccesses",
45646
+ "args": [
45647
+ {
45648
+ "name": "source",
45649
+ "type": "string",
45650
+ "deprecated": false,
45651
+ "deprecationMessage": ""
45652
+ }
45653
+ ],
45654
+ "returnType": "string",
45655
+ "jsdoctags": [
45656
+ {
45657
+ "name": "source",
45658
+ "type": "string",
45659
+ "deprecated": false,
45660
+ "deprecationMessage": "",
45661
+ "tagName": {
45662
+ "text": "param"
45663
+ }
45664
+ }
45665
+ ]
45666
+ },
45447
45667
  {
45448
45668
  "name": "unwrapExpression",
45449
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
45669
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45450
45670
  "ctype": "miscellaneous",
45451
45671
  "subtype": "function",
45452
45672
  "coverageIgnore": false,
@@ -45476,7 +45696,7 @@
45476
45696
  },
45477
45697
  {
45478
45698
  "name": "visitDir",
45479
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
45699
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45480
45700
  "ctype": "miscellaneous",
45481
45701
  "subtype": "function",
45482
45702
  "coverageIgnore": false,
@@ -45521,7 +45741,7 @@
45521
45741
  },
45522
45742
  {
45523
45743
  "name": "visitNodes",
45524
- "file": "packages/core/schematics/migrate-eui-button/index.ts",
45744
+ "file": "packages/core/schematics/migrate-eui-accent/index.ts",
45525
45745
  "ctype": "miscellaneous",
45526
45746
  "subtype": "function",
45527
45747
  "coverageIgnore": false,
@@ -46361,10 +46581,10 @@
46361
46581
  ]
46362
46582
  }
46363
46583
  ],
46364
- "packages/core/schematics/migrate-eui-icon-svg/index.ts": [
46584
+ "packages/core/schematics/migrate-eui-icon-toggle/index.ts": [
46365
46585
  {
46366
46586
  "name": "applyEdits",
46367
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46587
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
46368
46588
  "ctype": "miscellaneous",
46369
46589
  "subtype": "function",
46370
46590
  "coverageIgnore": false,
@@ -46409,7 +46629,7 @@
46409
46629
  },
46410
46630
  {
46411
46631
  "name": "collectRenames",
46412
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46632
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
46413
46633
  "ctype": "miscellaneous",
46414
46634
  "subtype": "function",
46415
46635
  "coverageIgnore": false,
@@ -46454,7 +46674,7 @@
46454
46674
  },
46455
46675
  {
46456
46676
  "name": "isComponentMetadataProperty",
46457
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46677
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
46458
46678
  "ctype": "miscellaneous",
46459
46679
  "subtype": "function",
46460
46680
  "coverageIgnore": false,
@@ -46484,7 +46704,7 @@
46484
46704
  },
46485
46705
  {
46486
46706
  "name": "isTemplateProperty",
46487
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46707
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
46488
46708
  "ctype": "miscellaneous",
46489
46709
  "subtype": "function",
46490
46710
  "coverageIgnore": false,
@@ -46513,8 +46733,8 @@
46513
46733
  ]
46514
46734
  },
46515
46735
  {
46516
- "name": "migrateEuiIconSvg",
46517
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46736
+ "name": "migrateEuiIconToggle",
46737
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
46518
46738
  "ctype": "miscellaneous",
46519
46739
  "subtype": "function",
46520
46740
  "coverageIgnore": false,
@@ -46522,7 +46742,7 @@
46522
46742
  "deprecationMessage": "",
46523
46743
  "rawdescription": "",
46524
46744
  "description": "",
46525
- "displayName": "migrateEuiIconSvg",
46745
+ "displayName": "migrateEuiIconToggle",
46526
46746
  "args": [
46527
46747
  {
46528
46748
  "name": "options",
@@ -46548,7 +46768,7 @@
46548
46768
  },
46549
46769
  {
46550
46770
  "name": "migrateInlineTemplates",
46551
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46771
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
46552
46772
  "ctype": "miscellaneous",
46553
46773
  "subtype": "function",
46554
46774
  "coverageIgnore": false,
@@ -46580,7 +46800,7 @@
46580
46800
  },
46581
46801
  {
46582
46802
  "name": "migrateTemplate",
46583
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46803
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
46584
46804
  "ctype": "miscellaneous",
46585
46805
  "subtype": "function",
46586
46806
  "coverageIgnore": false,
@@ -46612,7 +46832,7 @@
46612
46832
  },
46613
46833
  {
46614
46834
  "name": "renameTsPropertyAccesses",
46615
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46835
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
46616
46836
  "ctype": "miscellaneous",
46617
46837
  "subtype": "function",
46618
46838
  "coverageIgnore": false,
@@ -46644,7 +46864,7 @@
46644
46864
  },
46645
46865
  {
46646
46866
  "name": "unwrapExpression",
46647
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46867
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
46648
46868
  "ctype": "miscellaneous",
46649
46869
  "subtype": "function",
46650
46870
  "coverageIgnore": false,
@@ -46674,7 +46894,7 @@
46674
46894
  },
46675
46895
  {
46676
46896
  "name": "visitDir",
46677
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46897
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
46678
46898
  "ctype": "miscellaneous",
46679
46899
  "subtype": "function",
46680
46900
  "coverageIgnore": false,
@@ -46719,7 +46939,7 @@
46719
46939
  },
46720
46940
  {
46721
46941
  "name": "visitNodes",
46722
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46942
+ "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
46723
46943
  "ctype": "miscellaneous",
46724
46944
  "subtype": "function",
46725
46945
  "coverageIgnore": false,
@@ -46761,10 +46981,10 @@
46761
46981
  ]
46762
46982
  }
46763
46983
  ],
46764
- "packages/core/schematics/migrate-eui-icon-toggle/index.ts": [
46984
+ "packages/core/schematics/migrate-eui-progress-circle/index.ts": [
46765
46985
  {
46766
46986
  "name": "applyEdits",
46767
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
46987
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
46768
46988
  "ctype": "miscellaneous",
46769
46989
  "subtype": "function",
46770
46990
  "coverageIgnore": false,
@@ -46809,7 +47029,7 @@
46809
47029
  },
46810
47030
  {
46811
47031
  "name": "collectRenames",
46812
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
47032
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
46813
47033
  "ctype": "miscellaneous",
46814
47034
  "subtype": "function",
46815
47035
  "coverageIgnore": false,
@@ -46854,7 +47074,7 @@
46854
47074
  },
46855
47075
  {
46856
47076
  "name": "isComponentMetadataProperty",
46857
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
47077
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
46858
47078
  "ctype": "miscellaneous",
46859
47079
  "subtype": "function",
46860
47080
  "coverageIgnore": false,
@@ -46884,7 +47104,7 @@
46884
47104
  },
46885
47105
  {
46886
47106
  "name": "isTemplateProperty",
46887
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
47107
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
46888
47108
  "ctype": "miscellaneous",
46889
47109
  "subtype": "function",
46890
47110
  "coverageIgnore": false,
@@ -46913,8 +47133,8 @@
46913
47133
  ]
46914
47134
  },
46915
47135
  {
46916
- "name": "migrateEuiIconToggle",
46917
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
47136
+ "name": "migrateEuiProgressCircle",
47137
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
46918
47138
  "ctype": "miscellaneous",
46919
47139
  "subtype": "function",
46920
47140
  "coverageIgnore": false,
@@ -46922,7 +47142,7 @@
46922
47142
  "deprecationMessage": "",
46923
47143
  "rawdescription": "",
46924
47144
  "description": "",
46925
- "displayName": "migrateEuiIconToggle",
47145
+ "displayName": "migrateEuiProgressCircle",
46926
47146
  "args": [
46927
47147
  {
46928
47148
  "name": "options",
@@ -46948,7 +47168,7 @@
46948
47168
  },
46949
47169
  {
46950
47170
  "name": "migrateInlineTemplates",
46951
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
47171
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
46952
47172
  "ctype": "miscellaneous",
46953
47173
  "subtype": "function",
46954
47174
  "coverageIgnore": false,
@@ -46980,7 +47200,7 @@
46980
47200
  },
46981
47201
  {
46982
47202
  "name": "migrateTemplate",
46983
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
47203
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
46984
47204
  "ctype": "miscellaneous",
46985
47205
  "subtype": "function",
46986
47206
  "coverageIgnore": false,
@@ -47010,41 +47230,9 @@
47010
47230
  }
47011
47231
  ]
47012
47232
  },
47013
- {
47014
- "name": "renameTsPropertyAccesses",
47015
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
47016
- "ctype": "miscellaneous",
47017
- "subtype": "function",
47018
- "coverageIgnore": false,
47019
- "deprecated": false,
47020
- "deprecationMessage": "",
47021
- "rawdescription": "",
47022
- "description": "",
47023
- "displayName": "renameTsPropertyAccesses",
47024
- "args": [
47025
- {
47026
- "name": "source",
47027
- "type": "string",
47028
- "deprecated": false,
47029
- "deprecationMessage": ""
47030
- }
47031
- ],
47032
- "returnType": "string",
47033
- "jsdoctags": [
47034
- {
47035
- "name": "source",
47036
- "type": "string",
47037
- "deprecated": false,
47038
- "deprecationMessage": "",
47039
- "tagName": {
47040
- "text": "param"
47041
- }
47042
- }
47043
- ]
47044
- },
47045
47233
  {
47046
47234
  "name": "unwrapExpression",
47047
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
47235
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
47048
47236
  "ctype": "miscellaneous",
47049
47237
  "subtype": "function",
47050
47238
  "coverageIgnore": false,
@@ -47074,7 +47262,7 @@
47074
47262
  },
47075
47263
  {
47076
47264
  "name": "visitDir",
47077
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
47265
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
47078
47266
  "ctype": "miscellaneous",
47079
47267
  "subtype": "function",
47080
47268
  "coverageIgnore": false,
@@ -47119,7 +47307,7 @@
47119
47307
  },
47120
47308
  {
47121
47309
  "name": "visitNodes",
47122
- "file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
47310
+ "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
47123
47311
  "ctype": "miscellaneous",
47124
47312
  "subtype": "function",
47125
47313
  "coverageIgnore": false,
@@ -47161,10 +47349,10 @@
47161
47349
  ]
47162
47350
  }
47163
47351
  ],
47164
- "packages/core/schematics/migrate-eui-progress-circle/index.ts": [
47352
+ "packages/core/schematics/migrate-eui-icon-svg/index.ts": [
47165
47353
  {
47166
47354
  "name": "applyEdits",
47167
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
47355
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
47168
47356
  "ctype": "miscellaneous",
47169
47357
  "subtype": "function",
47170
47358
  "coverageIgnore": false,
@@ -47209,7 +47397,7 @@
47209
47397
  },
47210
47398
  {
47211
47399
  "name": "collectRenames",
47212
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
47400
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
47213
47401
  "ctype": "miscellaneous",
47214
47402
  "subtype": "function",
47215
47403
  "coverageIgnore": false,
@@ -47254,7 +47442,7 @@
47254
47442
  },
47255
47443
  {
47256
47444
  "name": "isComponentMetadataProperty",
47257
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
47445
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
47258
47446
  "ctype": "miscellaneous",
47259
47447
  "subtype": "function",
47260
47448
  "coverageIgnore": false,
@@ -47284,7 +47472,7 @@
47284
47472
  },
47285
47473
  {
47286
47474
  "name": "isTemplateProperty",
47287
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
47475
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
47288
47476
  "ctype": "miscellaneous",
47289
47477
  "subtype": "function",
47290
47478
  "coverageIgnore": false,
@@ -47313,8 +47501,8 @@
47313
47501
  ]
47314
47502
  },
47315
47503
  {
47316
- "name": "migrateEuiProgressCircle",
47317
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
47504
+ "name": "migrateEuiIconSvg",
47505
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
47318
47506
  "ctype": "miscellaneous",
47319
47507
  "subtype": "function",
47320
47508
  "coverageIgnore": false,
@@ -47322,7 +47510,7 @@
47322
47510
  "deprecationMessage": "",
47323
47511
  "rawdescription": "",
47324
47512
  "description": "",
47325
- "displayName": "migrateEuiProgressCircle",
47513
+ "displayName": "migrateEuiIconSvg",
47326
47514
  "args": [
47327
47515
  {
47328
47516
  "name": "options",
@@ -47348,7 +47536,7 @@
47348
47536
  },
47349
47537
  {
47350
47538
  "name": "migrateInlineTemplates",
47351
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
47539
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
47352
47540
  "ctype": "miscellaneous",
47353
47541
  "subtype": "function",
47354
47542
  "coverageIgnore": false,
@@ -47380,7 +47568,7 @@
47380
47568
  },
47381
47569
  {
47382
47570
  "name": "migrateTemplate",
47383
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
47571
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
47384
47572
  "ctype": "miscellaneous",
47385
47573
  "subtype": "function",
47386
47574
  "coverageIgnore": false,
@@ -47410,9 +47598,41 @@
47410
47598
  }
47411
47599
  ]
47412
47600
  },
47601
+ {
47602
+ "name": "renameTsPropertyAccesses",
47603
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
47604
+ "ctype": "miscellaneous",
47605
+ "subtype": "function",
47606
+ "coverageIgnore": false,
47607
+ "deprecated": false,
47608
+ "deprecationMessage": "",
47609
+ "rawdescription": "",
47610
+ "description": "",
47611
+ "displayName": "renameTsPropertyAccesses",
47612
+ "args": [
47613
+ {
47614
+ "name": "source",
47615
+ "type": "string",
47616
+ "deprecated": false,
47617
+ "deprecationMessage": ""
47618
+ }
47619
+ ],
47620
+ "returnType": "string",
47621
+ "jsdoctags": [
47622
+ {
47623
+ "name": "source",
47624
+ "type": "string",
47625
+ "deprecated": false,
47626
+ "deprecationMessage": "",
47627
+ "tagName": {
47628
+ "text": "param"
47629
+ }
47630
+ }
47631
+ ]
47632
+ },
47413
47633
  {
47414
47634
  "name": "unwrapExpression",
47415
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
47635
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
47416
47636
  "ctype": "miscellaneous",
47417
47637
  "subtype": "function",
47418
47638
  "coverageIgnore": false,
@@ -47442,7 +47662,7 @@
47442
47662
  },
47443
47663
  {
47444
47664
  "name": "visitDir",
47445
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
47665
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
47446
47666
  "ctype": "miscellaneous",
47447
47667
  "subtype": "function",
47448
47668
  "coverageIgnore": false,
@@ -47487,7 +47707,7 @@
47487
47707
  },
47488
47708
  {
47489
47709
  "name": "visitNodes",
47490
- "file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
47710
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
47491
47711
  "ctype": "miscellaneous",
47492
47712
  "subtype": "function",
47493
47713
  "coverageIgnore": false,
@@ -53395,6 +53615,181 @@
53395
53615
  ]
53396
53616
  }
53397
53617
  ],
53618
+ "packages/core/schematics/migrate-eui-datepicker/index.ts": [
53619
+ {
53620
+ "name": "inlineTemplateUsesDatepicker",
53621
+ "file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
53622
+ "ctype": "miscellaneous",
53623
+ "subtype": "function",
53624
+ "coverageIgnore": false,
53625
+ "deprecated": false,
53626
+ "deprecationMessage": "",
53627
+ "rawdescription": "",
53628
+ "description": "",
53629
+ "displayName": "inlineTemplateUsesDatepicker",
53630
+ "args": [
53631
+ {
53632
+ "name": "source",
53633
+ "type": "string",
53634
+ "deprecated": false,
53635
+ "deprecationMessage": ""
53636
+ }
53637
+ ],
53638
+ "returnType": "boolean",
53639
+ "jsdoctags": [
53640
+ {
53641
+ "name": "source",
53642
+ "type": "string",
53643
+ "deprecated": false,
53644
+ "deprecationMessage": "",
53645
+ "tagName": {
53646
+ "text": "param"
53647
+ }
53648
+ }
53649
+ ]
53650
+ },
53651
+ {
53652
+ "name": "migrateEuiDatepicker",
53653
+ "file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
53654
+ "ctype": "miscellaneous",
53655
+ "subtype": "function",
53656
+ "coverageIgnore": false,
53657
+ "deprecated": false,
53658
+ "deprecationMessage": "",
53659
+ "rawdescription": "Advisory migration for the eui-datepicker moment-locale breaking change.\n\n`eui-datepicker` no longer bundles the moment locale data (the internal\n`import 'moment/min/locales'` was removed). Apps that relied on the datepicker\nimplicitly registering every moment locale must now import the locales they use\nthemselves, e.g. `import 'moment/locale/fr';`. This schematic cannot know which\nlocales an app needs (and auto-importing all of them would reintroduce the bundle\ncost the change removed), so it only reports the files that use `eui-datepicker`\nand the manual action required.",
53660
+ "description": "<p>Advisory migration for the eui-datepicker moment-locale breaking change.</p>\n<p><code>eui-datepicker</code> no longer bundles the moment locale data (the internal\n<code>import &#39;moment/min/locales&#39;</code> was removed). Apps that relied on the datepicker\nimplicitly registering every moment locale must now import the locales they use\nthemselves, e.g. <code>import &#39;moment/locale/fr&#39;;</code>. This schematic cannot know which\nlocales an app needs (and auto-importing all of them would reintroduce the bundle\ncost the change removed), so it only reports the files that use <code>eui-datepicker</code>\nand the manual action required.</p>\n",
53661
+ "displayName": "migrateEuiDatepicker",
53662
+ "args": [
53663
+ {
53664
+ "name": "options",
53665
+ "type": "Schema",
53666
+ "deprecated": false,
53667
+ "deprecationMessage": "",
53668
+ "defaultValue": "{}"
53669
+ }
53670
+ ],
53671
+ "returnType": "Rule",
53672
+ "jsdoctags": [
53673
+ {
53674
+ "name": "options",
53675
+ "type": "Schema",
53676
+ "deprecated": false,
53677
+ "deprecationMessage": "",
53678
+ "defaultValue": "{}",
53679
+ "tagName": {
53680
+ "text": "param"
53681
+ }
53682
+ }
53683
+ ]
53684
+ },
53685
+ {
53686
+ "name": "nodesContainDatepicker",
53687
+ "file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
53688
+ "ctype": "miscellaneous",
53689
+ "subtype": "function",
53690
+ "coverageIgnore": false,
53691
+ "deprecated": false,
53692
+ "deprecationMessage": "",
53693
+ "rawdescription": "",
53694
+ "description": "",
53695
+ "displayName": "nodesContainDatepicker",
53696
+ "args": [
53697
+ {
53698
+ "name": "nodes",
53699
+ "deprecated": false,
53700
+ "deprecationMessage": ""
53701
+ }
53702
+ ],
53703
+ "returnType": "boolean",
53704
+ "jsdoctags": [
53705
+ {
53706
+ "name": "nodes",
53707
+ "deprecated": false,
53708
+ "deprecationMessage": "",
53709
+ "tagName": {
53710
+ "text": "param"
53711
+ }
53712
+ }
53713
+ ]
53714
+ },
53715
+ {
53716
+ "name": "templateUsesDatepicker",
53717
+ "file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
53718
+ "ctype": "miscellaneous",
53719
+ "subtype": "function",
53720
+ "coverageIgnore": false,
53721
+ "deprecated": false,
53722
+ "deprecationMessage": "",
53723
+ "rawdescription": "",
53724
+ "description": "",
53725
+ "displayName": "templateUsesDatepicker",
53726
+ "args": [
53727
+ {
53728
+ "name": "source",
53729
+ "type": "string",
53730
+ "deprecated": false,
53731
+ "deprecationMessage": ""
53732
+ }
53733
+ ],
53734
+ "returnType": "boolean",
53735
+ "jsdoctags": [
53736
+ {
53737
+ "name": "source",
53738
+ "type": "string",
53739
+ "deprecated": false,
53740
+ "deprecationMessage": "",
53741
+ "tagName": {
53742
+ "text": "param"
53743
+ }
53744
+ }
53745
+ ]
53746
+ },
53747
+ {
53748
+ "name": "visitDir",
53749
+ "file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
53750
+ "ctype": "miscellaneous",
53751
+ "subtype": "function",
53752
+ "coverageIgnore": false,
53753
+ "deprecated": false,
53754
+ "deprecationMessage": "",
53755
+ "rawdescription": "",
53756
+ "description": "",
53757
+ "displayName": "visitDir",
53758
+ "args": [
53759
+ {
53760
+ "name": "dir",
53761
+ "type": "DirEntry",
53762
+ "deprecated": false,
53763
+ "deprecationMessage": ""
53764
+ },
53765
+ {
53766
+ "name": "callback",
53767
+ "deprecated": false,
53768
+ "deprecationMessage": ""
53769
+ }
53770
+ ],
53771
+ "returnType": "void",
53772
+ "jsdoctags": [
53773
+ {
53774
+ "name": "dir",
53775
+ "type": "DirEntry",
53776
+ "deprecated": false,
53777
+ "deprecationMessage": "",
53778
+ "tagName": {
53779
+ "text": "param"
53780
+ }
53781
+ },
53782
+ {
53783
+ "name": "callback",
53784
+ "deprecated": false,
53785
+ "deprecationMessage": "",
53786
+ "tagName": {
53787
+ "text": "param"
53788
+ }
53789
+ }
53790
+ ]
53791
+ }
53792
+ ],
53398
53793
  "packages/core/src/lib/services/app/eui-pre-init-app.ts": [
53399
53794
  {
53400
53795
  "name": "loadEuiDynamicEnvironmentConfig",