@eui/core 22.0.0-alpha.41 → 22.0.0-alpha.42

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.
@@ -2724,12 +2724,12 @@
2724
2724
  },
2725
2725
  {
2726
2726
  "name": "Schema",
2727
- "id": "interface-Schema-b3ff4600c4a5ca1888c45e5baf3600fa6dc6477f1e473e5241ff6682e2929dc8950a5dfa8b1048a348dba7ad1f0ce8cc3681471933911b689e04713334ef4811-12",
2728
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
2727
+ "id": "interface-Schema-0ee574e11dd651dd971057cb66220845e5b87b2949c69c623c8ddf7355af92a396c58c237a52a05f18c22a5332a2695b717bcfeb8ea840c4e7df8d0084c2b49c-12",
2728
+ "file": "packages/core/schematics/migrate-eui-fieldset/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-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",
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",
2733
2733
  "displayName": "Schema",
2734
2734
  "properties": [
2735
2735
  {
@@ -2771,12 +2771,12 @@
2771
2771
  },
2772
2772
  {
2773
2773
  "name": "Schema",
2774
- "id": "interface-Schema-0ee574e11dd651dd971057cb66220845e5b87b2949c69c623c8ddf7355af92a396c58c237a52a05f18c22a5332a2695b717bcfeb8ea840c4e7df8d0084c2b49c-13",
2775
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
2774
+ "id": "interface-Schema-b3ff4600c4a5ca1888c45e5baf3600fa6dc6477f1e473e5241ff6682e2929dc8950a5dfa8b1048a348dba7ad1f0ce8cc3681471933911b689e04713334ef4811-13",
2775
+ "file": "packages/core/schematics/migrate-eui-icon-svg/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-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",
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",
2780
2780
  "displayName": "Schema",
2781
2781
  "properties": [
2782
2782
  {
@@ -22314,23 +22314,23 @@
22314
22314
  "name": "COMPONENT_TAG",
22315
22315
  "ctype": "miscellaneous",
22316
22316
  "subtype": "variable",
22317
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
22317
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
22318
22318
  "coverageIgnore": false,
22319
22319
  "deprecated": false,
22320
22320
  "deprecationMessage": "",
22321
22321
  "type": "string",
22322
- "defaultValue": "'eui-icon-svg'"
22322
+ "defaultValue": "'eui-fieldset'"
22323
22323
  },
22324
22324
  {
22325
22325
  "name": "COMPONENT_TAG",
22326
22326
  "ctype": "miscellaneous",
22327
22327
  "subtype": "variable",
22328
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
22328
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
22329
22329
  "coverageIgnore": false,
22330
22330
  "deprecated": false,
22331
22331
  "deprecationMessage": "",
22332
22332
  "type": "string",
22333
- "defaultValue": "'eui-fieldset'"
22333
+ "defaultValue": "'eui-icon-svg'"
22334
22334
  },
22335
22335
  {
22336
22336
  "name": "COMPONENT_TAG",
@@ -24563,7 +24563,7 @@
24563
24563
  },
24564
24564
  {
24565
24565
  "name": "applyEdits",
24566
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
24566
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
24567
24567
  "ctype": "miscellaneous",
24568
24568
  "subtype": "function",
24569
24569
  "coverageIgnore": false,
@@ -24608,7 +24608,7 @@
24608
24608
  },
24609
24609
  {
24610
24610
  "name": "applyEdits",
24611
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
24611
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
24612
24612
  "ctype": "miscellaneous",
24613
24613
  "subtype": "function",
24614
24614
  "coverageIgnore": false,
@@ -26325,7 +26325,7 @@
26325
26325
  },
26326
26326
  {
26327
26327
  "name": "collectRenames",
26328
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
26328
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
26329
26329
  "ctype": "miscellaneous",
26330
26330
  "subtype": "function",
26331
26331
  "coverageIgnore": false,
@@ -26370,7 +26370,7 @@
26370
26370
  },
26371
26371
  {
26372
26372
  "name": "collectRenames",
26373
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
26373
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
26374
26374
  "ctype": "miscellaneous",
26375
26375
  "subtype": "function",
26376
26376
  "coverageIgnore": false,
@@ -29970,7 +29970,7 @@
29970
29970
  },
29971
29971
  {
29972
29972
  "name": "isComponentMetadataProperty",
29973
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
29973
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
29974
29974
  "ctype": "miscellaneous",
29975
29975
  "subtype": "function",
29976
29976
  "coverageIgnore": false,
@@ -30000,7 +30000,7 @@
30000
30000
  },
30001
30001
  {
30002
30002
  "name": "isComponentMetadataProperty",
30003
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
30003
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
30004
30004
  "ctype": "miscellaneous",
30005
30005
  "subtype": "function",
30006
30006
  "coverageIgnore": false,
@@ -30515,7 +30515,7 @@
30515
30515
  },
30516
30516
  {
30517
30517
  "name": "isTemplateProperty",
30518
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
30518
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
30519
30519
  "ctype": "miscellaneous",
30520
30520
  "subtype": "function",
30521
30521
  "coverageIgnore": false,
@@ -30545,7 +30545,7 @@
30545
30545
  },
30546
30546
  {
30547
30547
  "name": "isTemplateProperty",
30548
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
30548
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
30549
30549
  "ctype": "miscellaneous",
30550
30550
  "subtype": "function",
30551
30551
  "coverageIgnore": false,
@@ -32483,7 +32483,7 @@
32483
32483
  },
32484
32484
  {
32485
32485
  "name": "migrateInlineTemplates",
32486
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
32486
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
32487
32487
  "ctype": "miscellaneous",
32488
32488
  "subtype": "function",
32489
32489
  "coverageIgnore": false,
@@ -32515,7 +32515,7 @@
32515
32515
  },
32516
32516
  {
32517
32517
  "name": "migrateInlineTemplates",
32518
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
32518
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
32519
32519
  "ctype": "miscellaneous",
32520
32520
  "subtype": "function",
32521
32521
  "coverageIgnore": false,
@@ -33023,7 +33023,7 @@
33023
33023
  },
33024
33024
  {
33025
33025
  "name": "migrateTemplate",
33026
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
33026
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
33027
33027
  "ctype": "miscellaneous",
33028
33028
  "subtype": "function",
33029
33029
  "coverageIgnore": false,
@@ -33055,7 +33055,7 @@
33055
33055
  },
33056
33056
  {
33057
33057
  "name": "migrateTemplate",
33058
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
33058
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
33059
33059
  "ctype": "miscellaneous",
33060
33060
  "subtype": "function",
33061
33061
  "coverageIgnore": false,
@@ -35421,7 +35421,7 @@
35421
35421
  },
35422
35422
  {
35423
35423
  "name": "unwrapExpression",
35424
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
35424
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
35425
35425
  "ctype": "miscellaneous",
35426
35426
  "subtype": "function",
35427
35427
  "coverageIgnore": false,
@@ -35451,7 +35451,7 @@
35451
35451
  },
35452
35452
  {
35453
35453
  "name": "unwrapExpression",
35454
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
35454
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
35455
35455
  "ctype": "miscellaneous",
35456
35456
  "subtype": "function",
35457
35457
  "coverageIgnore": false,
@@ -36304,7 +36304,7 @@
36304
36304
  },
36305
36305
  {
36306
36306
  "name": "visitDir",
36307
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
36307
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
36308
36308
  "ctype": "miscellaneous",
36309
36309
  "subtype": "function",
36310
36310
  "coverageIgnore": false,
@@ -36349,7 +36349,7 @@
36349
36349
  },
36350
36350
  {
36351
36351
  "name": "visitDir",
36352
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
36352
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
36353
36353
  "ctype": "miscellaneous",
36354
36354
  "subtype": "function",
36355
36355
  "coverageIgnore": false,
@@ -37218,7 +37218,7 @@
37218
37218
  },
37219
37219
  {
37220
37220
  "name": "visitNodes",
37221
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
37221
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
37222
37222
  "ctype": "miscellaneous",
37223
37223
  "subtype": "function",
37224
37224
  "coverageIgnore": false,
@@ -37261,7 +37261,7 @@
37261
37261
  },
37262
37262
  {
37263
37263
  "name": "visitNodes",
37264
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
37264
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
37265
37265
  "ctype": "miscellaneous",
37266
37266
  "subtype": "function",
37267
37267
  "coverageIgnore": false,
@@ -39124,74 +39124,74 @@
39124
39124
  "defaultValue": "'onEditorChanged'"
39125
39125
  }
39126
39126
  ],
39127
- "packages/core/schematics/migrate-eui-icon-svg/index.ts": [
39127
+ "packages/core/schematics/migrate-eui-fieldset/index.ts": [
39128
39128
  {
39129
39129
  "name": "COMPONENT_TAG",
39130
39130
  "ctype": "miscellaneous",
39131
39131
  "subtype": "variable",
39132
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
39132
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
39133
39133
  "coverageIgnore": false,
39134
39134
  "deprecated": false,
39135
39135
  "deprecationMessage": "",
39136
39136
  "type": "string",
39137
- "defaultValue": "'eui-icon-svg'"
39137
+ "defaultValue": "'eui-fieldset'"
39138
39138
  },
39139
39139
  {
39140
- "name": "INPUT_RENAMES",
39140
+ "name": "NEW_NAME",
39141
39141
  "ctype": "miscellaneous",
39142
39142
  "subtype": "variable",
39143
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
39143
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
39144
39144
  "coverageIgnore": false,
39145
39145
  "deprecated": false,
39146
39146
  "deprecationMessage": "",
39147
- "type": "unknown",
39148
- "defaultValue": "new Map([\n ['variant', 'fillColor'],\n ['aria-label', 'ariaLabel'],\n])"
39147
+ "type": "string",
39148
+ "defaultValue": "'iconSvgName'"
39149
39149
  },
39150
39150
  {
39151
- "name": "TS_PROPERTY_RENAMES",
39151
+ "name": "OLD_NAME",
39152
39152
  "ctype": "miscellaneous",
39153
39153
  "subtype": "variable",
39154
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
39154
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
39155
39155
  "coverageIgnore": false,
39156
39156
  "deprecated": false,
39157
39157
  "deprecationMessage": "",
39158
- "type": "unknown",
39159
- "defaultValue": "new Map([\n ['variant', 'fillColor'],\n])"
39158
+ "type": "string",
39159
+ "defaultValue": "'iconSvgType'"
39160
39160
  }
39161
39161
  ],
39162
- "packages/core/schematics/migrate-eui-fieldset/index.ts": [
39162
+ "packages/core/schematics/migrate-eui-icon-svg/index.ts": [
39163
39163
  {
39164
39164
  "name": "COMPONENT_TAG",
39165
39165
  "ctype": "miscellaneous",
39166
39166
  "subtype": "variable",
39167
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
39167
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
39168
39168
  "coverageIgnore": false,
39169
39169
  "deprecated": false,
39170
39170
  "deprecationMessage": "",
39171
39171
  "type": "string",
39172
- "defaultValue": "'eui-fieldset'"
39172
+ "defaultValue": "'eui-icon-svg'"
39173
39173
  },
39174
39174
  {
39175
- "name": "NEW_NAME",
39175
+ "name": "INPUT_RENAMES",
39176
39176
  "ctype": "miscellaneous",
39177
39177
  "subtype": "variable",
39178
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
39178
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
39179
39179
  "coverageIgnore": false,
39180
39180
  "deprecated": false,
39181
39181
  "deprecationMessage": "",
39182
- "type": "string",
39183
- "defaultValue": "'iconSvgName'"
39182
+ "type": "unknown",
39183
+ "defaultValue": "new Map([\n ['variant', 'fillColor'],\n ['aria-label', 'ariaLabel'],\n])"
39184
39184
  },
39185
39185
  {
39186
- "name": "OLD_NAME",
39186
+ "name": "TS_PROPERTY_RENAMES",
39187
39187
  "ctype": "miscellaneous",
39188
39188
  "subtype": "variable",
39189
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
39189
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
39190
39190
  "coverageIgnore": false,
39191
39191
  "deprecated": false,
39192
39192
  "deprecationMessage": "",
39193
- "type": "string",
39194
- "defaultValue": "'iconSvgType'"
39193
+ "type": "unknown",
39194
+ "defaultValue": "new Map([\n ['variant', 'fillColor'],\n])"
39195
39195
  }
39196
39196
  ],
39197
39197
  "packages/core/schematics/migrate-eui-icon-toggle/index.ts": [
@@ -45993,10 +45993,10 @@
45993
45993
  ]
45994
45994
  }
45995
45995
  ],
45996
- "packages/core/schematics/migrate-eui-icon-svg/index.ts": [
45996
+ "packages/core/schematics/migrate-eui-fieldset/index.ts": [
45997
45997
  {
45998
45998
  "name": "applyEdits",
45999
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
45999
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46000
46000
  "ctype": "miscellaneous",
46001
46001
  "subtype": "function",
46002
46002
  "coverageIgnore": false,
@@ -46041,7 +46041,7 @@
46041
46041
  },
46042
46042
  {
46043
46043
  "name": "collectRenames",
46044
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46044
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46045
46045
  "ctype": "miscellaneous",
46046
46046
  "subtype": "function",
46047
46047
  "coverageIgnore": false,
@@ -46086,7 +46086,7 @@
46086
46086
  },
46087
46087
  {
46088
46088
  "name": "isComponentMetadataProperty",
46089
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46089
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46090
46090
  "ctype": "miscellaneous",
46091
46091
  "subtype": "function",
46092
46092
  "coverageIgnore": false,
@@ -46116,7 +46116,7 @@
46116
46116
  },
46117
46117
  {
46118
46118
  "name": "isTemplateProperty",
46119
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46119
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46120
46120
  "ctype": "miscellaneous",
46121
46121
  "subtype": "function",
46122
46122
  "coverageIgnore": false,
@@ -46145,8 +46145,8 @@
46145
46145
  ]
46146
46146
  },
46147
46147
  {
46148
- "name": "migrateEuiIconSvg",
46149
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46148
+ "name": "migrateEuiFieldset",
46149
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46150
46150
  "ctype": "miscellaneous",
46151
46151
  "subtype": "function",
46152
46152
  "coverageIgnore": false,
@@ -46154,7 +46154,7 @@
46154
46154
  "deprecationMessage": "",
46155
46155
  "rawdescription": "",
46156
46156
  "description": "",
46157
- "displayName": "migrateEuiIconSvg",
46157
+ "displayName": "migrateEuiFieldset",
46158
46158
  "args": [
46159
46159
  {
46160
46160
  "name": "options",
@@ -46180,7 +46180,7 @@
46180
46180
  },
46181
46181
  {
46182
46182
  "name": "migrateInlineTemplates",
46183
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46183
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46184
46184
  "ctype": "miscellaneous",
46185
46185
  "subtype": "function",
46186
46186
  "coverageIgnore": false,
@@ -46212,7 +46212,7 @@
46212
46212
  },
46213
46213
  {
46214
46214
  "name": "migrateTemplate",
46215
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46215
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46216
46216
  "ctype": "miscellaneous",
46217
46217
  "subtype": "function",
46218
46218
  "coverageIgnore": false,
@@ -46242,41 +46242,9 @@
46242
46242
  }
46243
46243
  ]
46244
46244
  },
46245
- {
46246
- "name": "renameTsPropertyAccesses",
46247
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46248
- "ctype": "miscellaneous",
46249
- "subtype": "function",
46250
- "coverageIgnore": false,
46251
- "deprecated": false,
46252
- "deprecationMessage": "",
46253
- "rawdescription": "",
46254
- "description": "",
46255
- "displayName": "renameTsPropertyAccesses",
46256
- "args": [
46257
- {
46258
- "name": "source",
46259
- "type": "string",
46260
- "deprecated": false,
46261
- "deprecationMessage": ""
46262
- }
46263
- ],
46264
- "returnType": "string",
46265
- "jsdoctags": [
46266
- {
46267
- "name": "source",
46268
- "type": "string",
46269
- "deprecated": false,
46270
- "deprecationMessage": "",
46271
- "tagName": {
46272
- "text": "param"
46273
- }
46274
- }
46275
- ]
46276
- },
46277
46245
  {
46278
46246
  "name": "unwrapExpression",
46279
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46247
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46280
46248
  "ctype": "miscellaneous",
46281
46249
  "subtype": "function",
46282
46250
  "coverageIgnore": false,
@@ -46306,7 +46274,7 @@
46306
46274
  },
46307
46275
  {
46308
46276
  "name": "visitDir",
46309
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46277
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46310
46278
  "ctype": "miscellaneous",
46311
46279
  "subtype": "function",
46312
46280
  "coverageIgnore": false,
@@ -46351,7 +46319,7 @@
46351
46319
  },
46352
46320
  {
46353
46321
  "name": "visitNodes",
46354
- "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46322
+ "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46355
46323
  "ctype": "miscellaneous",
46356
46324
  "subtype": "function",
46357
46325
  "coverageIgnore": false,
@@ -46393,10 +46361,10 @@
46393
46361
  ]
46394
46362
  }
46395
46363
  ],
46396
- "packages/core/schematics/migrate-eui-fieldset/index.ts": [
46364
+ "packages/core/schematics/migrate-eui-icon-svg/index.ts": [
46397
46365
  {
46398
46366
  "name": "applyEdits",
46399
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46367
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46400
46368
  "ctype": "miscellaneous",
46401
46369
  "subtype": "function",
46402
46370
  "coverageIgnore": false,
@@ -46441,7 +46409,7 @@
46441
46409
  },
46442
46410
  {
46443
46411
  "name": "collectRenames",
46444
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46412
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46445
46413
  "ctype": "miscellaneous",
46446
46414
  "subtype": "function",
46447
46415
  "coverageIgnore": false,
@@ -46486,7 +46454,7 @@
46486
46454
  },
46487
46455
  {
46488
46456
  "name": "isComponentMetadataProperty",
46489
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46457
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46490
46458
  "ctype": "miscellaneous",
46491
46459
  "subtype": "function",
46492
46460
  "coverageIgnore": false,
@@ -46516,7 +46484,7 @@
46516
46484
  },
46517
46485
  {
46518
46486
  "name": "isTemplateProperty",
46519
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46487
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46520
46488
  "ctype": "miscellaneous",
46521
46489
  "subtype": "function",
46522
46490
  "coverageIgnore": false,
@@ -46545,8 +46513,8 @@
46545
46513
  ]
46546
46514
  },
46547
46515
  {
46548
- "name": "migrateEuiFieldset",
46549
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46516
+ "name": "migrateEuiIconSvg",
46517
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46550
46518
  "ctype": "miscellaneous",
46551
46519
  "subtype": "function",
46552
46520
  "coverageIgnore": false,
@@ -46554,7 +46522,7 @@
46554
46522
  "deprecationMessage": "",
46555
46523
  "rawdescription": "",
46556
46524
  "description": "",
46557
- "displayName": "migrateEuiFieldset",
46525
+ "displayName": "migrateEuiIconSvg",
46558
46526
  "args": [
46559
46527
  {
46560
46528
  "name": "options",
@@ -46580,7 +46548,7 @@
46580
46548
  },
46581
46549
  {
46582
46550
  "name": "migrateInlineTemplates",
46583
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46551
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46584
46552
  "ctype": "miscellaneous",
46585
46553
  "subtype": "function",
46586
46554
  "coverageIgnore": false,
@@ -46612,7 +46580,7 @@
46612
46580
  },
46613
46581
  {
46614
46582
  "name": "migrateTemplate",
46615
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46583
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46616
46584
  "ctype": "miscellaneous",
46617
46585
  "subtype": "function",
46618
46586
  "coverageIgnore": false,
@@ -46642,9 +46610,41 @@
46642
46610
  }
46643
46611
  ]
46644
46612
  },
46613
+ {
46614
+ "name": "renameTsPropertyAccesses",
46615
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46616
+ "ctype": "miscellaneous",
46617
+ "subtype": "function",
46618
+ "coverageIgnore": false,
46619
+ "deprecated": false,
46620
+ "deprecationMessage": "",
46621
+ "rawdescription": "",
46622
+ "description": "",
46623
+ "displayName": "renameTsPropertyAccesses",
46624
+ "args": [
46625
+ {
46626
+ "name": "source",
46627
+ "type": "string",
46628
+ "deprecated": false,
46629
+ "deprecationMessage": ""
46630
+ }
46631
+ ],
46632
+ "returnType": "string",
46633
+ "jsdoctags": [
46634
+ {
46635
+ "name": "source",
46636
+ "type": "string",
46637
+ "deprecated": false,
46638
+ "deprecationMessage": "",
46639
+ "tagName": {
46640
+ "text": "param"
46641
+ }
46642
+ }
46643
+ ]
46644
+ },
46645
46645
  {
46646
46646
  "name": "unwrapExpression",
46647
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46647
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46648
46648
  "ctype": "miscellaneous",
46649
46649
  "subtype": "function",
46650
46650
  "coverageIgnore": false,
@@ -46674,7 +46674,7 @@
46674
46674
  },
46675
46675
  {
46676
46676
  "name": "visitDir",
46677
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46677
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46678
46678
  "ctype": "miscellaneous",
46679
46679
  "subtype": "function",
46680
46680
  "coverageIgnore": false,
@@ -46719,7 +46719,7 @@
46719
46719
  },
46720
46720
  {
46721
46721
  "name": "visitNodes",
46722
- "file": "packages/core/schematics/migrate-eui-fieldset/index.ts",
46722
+ "file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
46723
46723
  "ctype": "miscellaneous",
46724
46724
  "subtype": "function",
46725
46725
  "coverageIgnore": false,