@eui/core 22.0.0-alpha.60 → 22.0.0-alpha.61
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.
- package/CHANGELOG.md +9 -0
- package/docs/changelog.html +33 -0
- package/docs/interfaces/Schema-19.html +1 -1
- package/docs/interfaces/Schema-2.html +52 -1
- package/docs/interfaces/Schema-20.html +1 -1
- package/docs/interfaces/Schema-3.html +1 -64
- package/docs/interfaces/Schema-4.html +13 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/json/documentation.json +346 -346
- package/docs/llms.txt +23 -23
- package/docs/miscellaneous/functions.html +12 -12
- package/docs/properties.html +1 -1
- package/package.json +2 -2
|
@@ -2348,12 +2348,12 @@
|
|
|
2348
2348
|
},
|
|
2349
2349
|
{
|
|
2350
2350
|
"name": "Schema",
|
|
2351
|
-
"id": "interface-Schema-
|
|
2352
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
2351
|
+
"id": "interface-Schema-e96d29c1785a16147de773cebe7ab5d4ed82aa23c6b1f7737113252a14d156e236f46f7a16340432dec900b664c8005be0aef5d0a628c2f5b8dd2ec7e41edf56-4",
|
|
2352
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
2353
2353
|
"deprecated": false,
|
|
2354
2354
|
"deprecationMessage": "",
|
|
2355
2355
|
"type": "interface",
|
|
2356
|
-
"sourceCode": "import { parseTemplate,
|
|
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",
|
|
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-
|
|
2399
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
2398
|
+
"id": "interface-Schema-585b211d989563bbec5bd67bcdb58d5f264396adbe0ed2e51d0b4a0ecaf8b3ec36d821647c170d616bb409fc603c5a4c0e699eb7511e02c6add8d8670fc9cb9f-5",
|
|
2399
|
+
"file": "packages/core/schematics/migrate-eui-alert/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(['
|
|
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",
|
|
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-
|
|
2446
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
2445
|
+
"id": "interface-Schema-c7e2cc0add09c97d83ec2675d59c86951681f8e2d49f133fb2f216ca98d0da1fdf892d45af31f19ecbbfd0d32f4ad70dd99e862f75725d3812f66a73ec34362c-6",
|
|
2446
|
+
"file": "packages/core/schematics/migrate-eui-avatar/index.ts",
|
|
2447
2447
|
"deprecated": false,
|
|
2448
2448
|
"deprecationMessage": "",
|
|
2449
2449
|
"type": "interface",
|
|
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
|
|
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",
|
|
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-
|
|
2493
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
2492
|
+
"id": "interface-Schema-c0c08f5e83da9afa13ce8375f982fb280b9bde854e00c914f41b04d44deecd531496c2cee264b50314e92a6260c26cebe35741a2cf5ec068d8b6da5c5267539e-7",
|
|
2493
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
2494
2494
|
"deprecated": false,
|
|
2495
2495
|
"deprecationMessage": "",
|
|
2496
2496
|
"type": "interface",
|
|
2497
|
-
"sourceCode": "import { parseTemplate,
|
|
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",
|
|
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-
|
|
2540
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
2539
|
+
"id": "interface-Schema-39d3d52e788050bebc4e0b99ed0756f7e9727556cb090ae8796bd4261a56463fe1f479c322b23028cd4134d71e4d1dc44cd248ac62a9a148b5fc46a665466f7c-8",
|
|
2540
|
+
"file": "packages/core/schematics/migrate-eui-chip/index.ts",
|
|
2541
2541
|
"deprecated": false,
|
|
2542
2542
|
"deprecationMessage": "",
|
|
2543
2543
|
"type": "interface",
|
|
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
|
|
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",
|
|
2545
2545
|
"displayName": "Schema",
|
|
2546
2546
|
"properties": [
|
|
2547
2547
|
{
|
|
@@ -2630,12 +2630,12 @@
|
|
|
2630
2630
|
},
|
|
2631
2631
|
{
|
|
2632
2632
|
"name": "Schema",
|
|
2633
|
-
"id": "interface-Schema-
|
|
2634
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
2633
|
+
"id": "interface-Schema-034783c11a28141757a2de014303eca4a8256ffd2b18334db3a1d414f90247bcb476298452a8da2444dd3023cd12ac4e1ad90de3d59103874dca0b32b1b04800-10",
|
|
2634
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
2635
2635
|
"deprecated": false,
|
|
2636
2636
|
"deprecationMessage": "",
|
|
2637
2637
|
"type": "interface",
|
|
2638
|
-
"sourceCode": "import { parseTemplate,
|
|
2638
|
+
"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",
|
|
2639
2639
|
"displayName": "Schema",
|
|
2640
2640
|
"properties": [
|
|
2641
2641
|
{
|
|
@@ -2647,7 +2647,7 @@
|
|
|
2647
2647
|
"indexKey": "",
|
|
2648
2648
|
"optional": true,
|
|
2649
2649
|
"description": "",
|
|
2650
|
-
"line":
|
|
2650
|
+
"line": 7,
|
|
2651
2651
|
"rawdescription": "\n"
|
|
2652
2652
|
},
|
|
2653
2653
|
{
|
|
@@ -2659,7 +2659,7 @@
|
|
|
2659
2659
|
"indexKey": "",
|
|
2660
2660
|
"optional": true,
|
|
2661
2661
|
"description": "",
|
|
2662
|
-
"line":
|
|
2662
|
+
"line": 6,
|
|
2663
2663
|
"rawdescription": "\n"
|
|
2664
2664
|
}
|
|
2665
2665
|
],
|
|
@@ -2677,12 +2677,12 @@
|
|
|
2677
2677
|
},
|
|
2678
2678
|
{
|
|
2679
2679
|
"name": "Schema",
|
|
2680
|
-
"id": "interface-Schema-
|
|
2681
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
2680
|
+
"id": "interface-Schema-869dfc324e9111966817cbebb3553eabfe200acfe33bb77efa71a6c46e1cba0ff5852de7b9ade3060f87264035b99591361331a9e0622daaac22b8d59146c761-11",
|
|
2681
|
+
"file": "packages/core/schematics/migrate-eui-discussion-thread/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 { logDryRunNote } from '../utils/dry-run';\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\
|
|
2685
|
+
"sourceCode": "import { parseTemplate, TmplAstBoundAttribute, 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-discussion-thread';\n\nexport function migrateEuiDiscussionThread(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 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 [trackBy] binding 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('trackByFn')) {\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 === 'trackByFn') {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(`${path}:${line + 1} - \"trackByFn\" has been removed from ${COMPONENT_TAG}. Remove this reference manually.`);\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n }\n });\n\n context.logger.info(`Removed trackByFn-based [trackBy] bindings from ${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 removals: { start: number; end: number }[] = [];\n\n visitNodes(parsed.nodes, source, 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(COMPONENT_TAG)) 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[], source: string, removals: { start: number; end: number }[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n if (node.name === COMPONENT_TAG) collectRemovals(node, source, removals);\n visitNodes(node.children, source, removals);\n }\n }\n}\n\nfunction collectRemovals(element: TmplAstElement, source: string, removals: { start: number; end: number }[]): void {\n for (const input of element.inputs) {\n if (input.name === 'trackBy') {\n const valueSource = source.slice(input.sourceSpan.start.offset, input.sourceSpan.end.offset);\n if (valueSource.includes('trackByFn')) {\n removals.push({ start: input.sourceSpan.start.offset, end: input.sourceSpan.end.offset });\n }\n }\n }\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":
|
|
2697
|
+
"line": 8,
|
|
2698
2698
|
"rawdescription": "\n"
|
|
2699
2699
|
},
|
|
2700
2700
|
{
|
|
@@ -2706,7 +2706,7 @@
|
|
|
2706
2706
|
"indexKey": "",
|
|
2707
2707
|
"optional": true,
|
|
2708
2708
|
"description": "",
|
|
2709
|
-
"line":
|
|
2709
|
+
"line": 7,
|
|
2710
2710
|
"rawdescription": "\n"
|
|
2711
2711
|
}
|
|
2712
2712
|
],
|
|
@@ -2818,12 +2818,12 @@
|
|
|
2818
2818
|
},
|
|
2819
2819
|
{
|
|
2820
2820
|
"name": "Schema",
|
|
2821
|
-
"id": "interface-Schema-
|
|
2822
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
2821
|
+
"id": "interface-Schema-b3ff4600c4a5ca1888c45e5baf3600fa6dc6477f1e473e5241ff6682e2929dc8950a5dfa8b1048a348dba7ad1f0ce8cc3681471933911b689e04713334ef4811-14",
|
|
2822
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
2823
2823
|
"deprecated": false,
|
|
2824
2824
|
"deprecationMessage": "",
|
|
2825
2825
|
"type": "interface",
|
|
2826
|
-
"sourceCode": "import { parseTemplate,
|
|
2826
|
+
"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",
|
|
2827
2827
|
"displayName": "Schema",
|
|
2828
2828
|
"properties": [
|
|
2829
2829
|
{
|
|
@@ -2865,12 +2865,12 @@
|
|
|
2865
2865
|
},
|
|
2866
2866
|
{
|
|
2867
2867
|
"name": "Schema",
|
|
2868
|
-
"id": "interface-Schema-
|
|
2869
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
2868
|
+
"id": "interface-Schema-21147930d3fbc38fbb3052a2ed9e7aa2b7505e6ed8c88c28796ce7101bd2ad914726eb230dda5826647036190edec6dae7e7e1d172387cd3803aa00bcdf790be-15",
|
|
2869
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/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
|
|
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 OLD_NAME = 'iconSet';\nconst NEW_NAME = 'iconSvgName';\nconst COMPONENT_TAG = 'eui-icon-toggle';\n\nexport function migrateEuiIconToggle(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let templateCount = 0;\n let tsCount = 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 '${OLD_NAME}' → '${NEW_NAME}' in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n if (path.endsWith('.html')) templateCount++;\n else tsCount++;\n }\n });\n\n context.logger.info(`Renamed '${OLD_NAME}' → '${NEW_NAME}' on ${COMPONENT_TAG} in ${templateCount + tsCount} 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) && 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)) {\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 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",
|
|
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-
|
|
2916
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
2915
|
+
"id": "interface-Schema-a806c1769fb526271565003a6a3ef9ab4c67e421d93ee0cb54e1f6de223807afc1f16ad294656ef614a77a91a38cc914ce41ac97ed3a8a4195a1e74a729c0c08-16",
|
|
2916
|
+
"file": "packages/core/schematics/migrate-eui-popover/index.ts",
|
|
2917
2917
|
"deprecated": false,
|
|
2918
2918
|
"deprecationMessage": "",
|
|
2919
2919
|
"type": "interface",
|
|
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
|
|
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 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",
|
|
2921
2921
|
"displayName": "Schema",
|
|
2922
2922
|
"properties": [
|
|
2923
2923
|
{
|
|
@@ -2959,12 +2959,12 @@
|
|
|
2959
2959
|
},
|
|
2960
2960
|
{
|
|
2961
2961
|
"name": "Schema",
|
|
2962
|
-
"id": "interface-Schema-
|
|
2963
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
2962
|
+
"id": "interface-Schema-90e62c16ce9ada881e8d434336bb633dae9745236106ddf60964afbd11de6aa579255a13d6036b384281860eb6ed2ee329194b519c51fdaf20f79bc511d0f64f-17",
|
|
2963
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
2964
2964
|
"deprecated": false,
|
|
2965
2965
|
"deprecationMessage": "",
|
|
2966
2966
|
"type": "interface",
|
|
2967
|
-
"sourceCode": "import { BindingPipe, parseTemplate, TmplAstBoundAttribute, TmplAstBoundEvent, TmplAstBoundText, TmplAstElement, TmplAstNode, TmplAstTemplate, TmplAstTextAttribute, AST, ASTWithSource, Interpolation } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport * as ts from 'typescript';\nimport { logDryRun, logDryRunNote } from '../utils/dry-run';\n\ninterface Edit { start: number; end: number; replacement: string; }\n\n// --- Table-level input renames (on elements with euiTable attribute) ---\nconst TABLE_INPUT_RENAMES = new Map([\n ['rows', 'data'],\n ['loading', 'isLoading'],\n ['asyncTable', 'isAsync'],\n ['euiTableResponsive', 'isTableResponsive'],\n ['euiTableFixedLayout', 'isTableFixedLayout'],\n ['euiTableCompact', 'isTableCompact'],\n ['hasStickyColumns', 'hasStickyCols'],\n]);\n\n// --- Child element input renames (scoped to euiTable context) ---\nconst TH_TD_INPUT_RENAMES = new Map([\n ['isStickyColumn', 'isStickyCol'],\n ['sortable', 'isSortable'],\n]);\n\nconst TR_INPUT_RENAMES = new Map([\n ['isSelectableHeader', 'isHeaderSelectable'],\n ['isSelectable', 'isDataSelectable'],\n]);\n\n// --- Removed inputs ---\nconst REMOVED_INPUTS = new Set(['euiTableBordered', 'isHoverable', 'defaultMultiOrder', 'paginable']);\n\n// --- Output renames/removals ---\nconst OUTPUT_RENAMES = new Map([['selectedRows', 'rowsSelect']]);\nconst REMOVED_OUTPUTS = new Set(['multiSortChange']);\n\n// --- Pipe rename ---\nconst OLD_PIPE = 'euiTableHighlightFilter';\nconst NEW_PIPE = 'euiTableHighlight';\n\n// --- TS property renames ---\nconst TS_PROPERTY_RENAMES = new Map([['filteredRows', 'getFilteredData']]);\n\nconst PAGINATOR_IMPORT_PATH = '@eui/components/eui-paginator';\nconst PAGINATOR_COMPONENT = 'EuiPaginatorComponent';\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nexport function migrateEuiTable(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n const paginatorHtmlFiles = new Set<string>();\n\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes('euiTable') && !original.includes(OLD_PIPE) && !original.includes('filteredRows') && !original.includes('setSort')) return;\n\n let result: string;\n\n if (path.endsWith('.html')) {\n const { output, hasPaginator } = migrateTemplateWithPaginator(original, path, context);\n result = output;\n if (hasPaginator) paginatorHtmlFiles.add(path);\n } else {\n const { output, hasPaginator } = migrateTypeScript(original, path, context);\n result = output;\n if (hasPaginator) {\n result = addPaginatorImport(result, path);\n }\n }\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would migrate eui-table breaking changes in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n });\n\n // Handle paginator imports for external templates\n if (paginatorHtmlFiles.size > 0) {\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n if (!path.endsWith('.ts')) return;\n\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const source = buffer.toString('utf-8');\n if (!source.includes('templateUrl')) return;\n\n for (const htmlFile of paginatorHtmlFiles) {\n const htmlFileName = htmlFile.split('/').pop()!;\n if (source.includes(htmlFileName)) {\n const updated = addPaginatorImport(source, path);\n if (updated !== source) {\n if (options.dryRun) {\n logDryRun(context, `Would add paginator import in ${path}`);\n } else {\n tree.overwrite(path, updated);\n }\n count++;\n }\n break;\n }\n }\n });\n }\n\n context.logger.info(`Migrated eui-table in ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction migrateTemplateWithPaginator(source: string, filePath: string, context: SchematicContext): { output: string; hasPaginator: boolean } {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const edits: Edit[] = [];\n let hasPaginator = false;\n\n const paginatorResult = visitNodesForTable(parsed.nodes, source, edits, false, filePath, context);\n if (paginatorResult) hasPaginator = true;\n\n collectPipeRenames(parsed.nodes, source, edits);\n\n return { output: applyEdits(source, edits), hasPaginator };\n}\n\nfunction migrateTemplate(source: string, filePath: string, context: SchematicContext): string {\n return migrateTemplateWithPaginator(source, filePath, context).output;\n}\n\nfunction migrateTypeScript(source: string, filePath: string, context: SchematicContext): { output: string; hasPaginator: boolean } {\n let result = source;\n let hasPaginator = false;\n\n // Migrate inline templates\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const changes: Edit[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAssignment(node) && isTemplateProperty(node) && isComponentMetadataProperty(node)) {\n const init = unwrapExpression(node.initializer);\n if (ts.isStringLiteral(init) || ts.isNoSubstitutionTemplateLiteral(init)) {\n const start = init.getStart(sourceFile) + 1;\n const end = init.getEnd() - 1;\n const rawTemplate = result.slice(start, end);\n if (!rawTemplate.includes('euiTable') && !rawTemplate.includes(OLD_PIPE)) {\n ts.forEachChild(node, visit); return;\n}\n const { output: migrated, hasPaginator: pag } = migrateTemplateWithPaginator(rawTemplate, filePath, context);\n if (pag) hasPaginator = true;\n if (migrated !== rawTemplate) changes.push({ start, end, replacement: migrated });\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n result = applyEdits(result, changes);\n\n // Rename TS property accesses\n result = renameTsProperties(result);\n\n // Warn about setSort\n warnSetSort(result, filePath, context);\n\n return { output: result, hasPaginator };\n}\n\nfunction renameTsProperties(source: string): string {\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && TS_PROPERTY_RENAMES.has(node.name.text)) {\n edits.push({ start: node.name.getStart(sourceFile), end: node.name.getEnd(), replacement: TS_PROPERTY_RENAMES.get(node.name.text)! });\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n return applyEdits(source, edits);\n}\n\nfunction warnSetSort(source: string, filePath: string, context: SchematicContext): void {\n if (!source.includes('setSort')) return;\n\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true);\n\n const visit = (node: ts.Node): void => {\n if (ts.isCallExpression(node) && ts.isPropertyAccessExpression(node.expression) &&\n ts.isIdentifier(node.expression.name) && node.expression.name.text === 'setSort') {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(\n `${filePath}:${line + 1} - \"setSort\" signature changed from setSort(sort: string, order: \"asc\" | \"desc\") to setSort(Sort[]). Update manually.`,\n );\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n}\n\n// --- Template AST visitors ---\n\nfunction visitNodesForTable(\n nodes: TmplAstNode[], source: string, edits: Edit[], insideEuiTable: boolean, filePath: string, context: SchematicContext,\n): boolean {\n let hasPaginator = false;\n\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n const isEuiTable = hasEuiTableAttribute(node);\n\n if (isEuiTable) {\n collectTableInputRenames(node, edits);\n collectInputRemovals(node, source, edits, filePath, context);\n collectOutputChanges(node, source, edits, filePath, context);\n if (collectPaginatorMigration(node, source, edits)) hasPaginator = true;\n }\n\n if (isEuiTable || insideEuiTable) {\n collectChildElementRenames(node, edits);\n collectChildInputRemovals(node, source, edits, filePath, context);\n collectEmptyMessageRename(node, edits);\n }\n\n const childResult = visitNodesForTable(node.children, source, edits, isEuiTable || insideEuiTable, filePath, context);\n if (childResult) hasPaginator = true;\n }\n\n if (node instanceof TmplAstTemplate) {\n if (insideEuiTable) {\n collectTemplateEmptyMessageRename(node, edits);\n }\n const childResult = visitNodesForTable(node.children, source, edits, insideEuiTable, filePath, context);\n if (childResult) hasPaginator = true;\n }\n }\n\n return hasPaginator;\n}\n\nfunction hasEuiTableAttribute(element: TmplAstElement): boolean {\n return element.attributes.some((a) => a.name === 'euiTable') ||\n element.inputs.some((i) => i.name === 'euiTable');\n}\n\nfunction collectTableInputRenames(element: TmplAstElement, edits: Edit[]): void {\n for (const attr of element.attributes) {\n const newName = TABLE_INPUT_RENAMES.get(attr.name);\n if (newName) edits.push({ start: attr.keySpan!.start.offset, end: attr.keySpan!.end.offset, replacement: newName });\n }\n for (const input of element.inputs) {\n const newName = TABLE_INPUT_RENAMES.get(input.name);\n if (newName) edits.push({ start: input.keySpan!.start.offset, end: input.keySpan!.end.offset, replacement: newName });\n }\n}\n\nfunction collectChildElementRenames(element: TmplAstElement, edits: Edit[]): void {\n const renames = (element.name === 'th' || element.name === 'td') ? TH_TD_INPUT_RENAMES\n : element.name === 'tr' ? TR_INPUT_RENAMES : null;\n if (!renames) return;\n\n for (const attr of element.attributes) {\n const newName = renames.get(attr.name);\n if (newName) edits.push({ start: attr.keySpan!.start.offset, end: attr.keySpan!.end.offset, replacement: newName });\n }\n for (const input of element.inputs) {\n const newName = renames.get(input.name);\n if (newName) edits.push({ start: input.keySpan!.start.offset, end: input.keySpan!.end.offset, replacement: newName });\n }\n}\n\nfunction collectChildInputRemovals(element: TmplAstElement, source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n const childRemovedInputs = new Set(['defaultMultiOrder']);\n\n for (const attr of element.attributes) {\n if (childRemovedInputs.has(attr.name)) {\n removeAttribute(attr.sourceSpan.start.offset, attr.sourceSpan.end.offset, source, edits);\n logRemovalWarning(attr.name, filePath, element, context);\n }\n }\n for (const input of element.inputs) {\n if (childRemovedInputs.has(input.name)) {\n removeAttribute(input.sourceSpan.start.offset, input.sourceSpan.end.offset, source, edits);\n logRemovalWarning(input.name, filePath, element, context);\n }\n }\n}\n\nfunction collectInputRemovals(element: TmplAstElement, source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n for (const attr of element.attributes) {\n if (REMOVED_INPUTS.has(attr.name) && attr.name !== 'paginable') {\n removeAttribute(attr.sourceSpan.start.offset, attr.sourceSpan.end.offset, source, edits);\n logRemovalWarning(attr.name, filePath, element, context);\n }\n }\n for (const input of element.inputs) {\n if (REMOVED_INPUTS.has(input.name) && input.name !== 'paginable') {\n removeAttribute(input.sourceSpan.start.offset, input.sourceSpan.end.offset, source, edits);\n logRemovalWarning(input.name, filePath, element, context);\n }\n }\n}\n\nfunction collectOutputChanges(element: TmplAstElement, source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n for (const output of element.outputs) {\n const newName = OUTPUT_RENAMES.get(output.name);\n if (newName) {\n edits.push({ start: output.keySpan!.start.offset, end: output.keySpan!.end.offset, replacement: newName });\n }\n if (REMOVED_OUTPUTS.has(output.name)) {\n removeAttribute(output.sourceSpan.start.offset, output.sourceSpan.end.offset, source, edits);\n const { line } = element.startSourceSpan.start;\n context.logger.warn(\n `${filePath}:${line + 1} - \"(${output.name})\" removed. Multi-sort is now supported by (sortChange) output.`,\n );\n }\n }\n}\n\nfunction collectPaginatorMigration(element: TmplAstElement, source: string, edits: Edit[]): boolean {\n let found = false;\n\n for (const attr of element.attributes) {\n if (attr.name === 'paginable') {\n removeAttribute(attr.sourceSpan.start.offset, attr.sourceSpan.end.offset, source, edits);\n found = true;\n }\n }\n for (const input of element.inputs) {\n if (input.name === 'paginable') {\n removeAttribute(input.sourceSpan.start.offset, input.sourceSpan.end.offset, source, edits);\n found = true;\n }\n }\n\n if (found) {\n // Add [paginator]=\"paginator\" before closing > of opening tag\n const insertPos = element.startSourceSpan.end.offset - 1;\n edits.push({ start: insertPos, end: insertPos, replacement: ' [paginator]=\"paginator\"' });\n\n // Add eui-paginator after </table>\n if (element.endSourceSpan) {\n const afterTable = element.endSourceSpan.end.offset;\n edits.push({\n start: afterTable,\n end: afterTable,\n replacement: '\\n<!-- TODO: Configure paginator and implement onPageChange handler -->\\n<eui-paginator #paginator [pageSize]=\"10\" [pageSizeOptions]=\"[5, 10, 25, 50]\" />',\n });\n }\n }\n\n return found;\n}\n\nfunction collectEmptyMessageRename(element: TmplAstElement, edits: Edit[]): void {\n // Handle direct attribute on elements (unlikely but handle)\n for (const attr of element.attributes) {\n if (attr.name === 'euiTemplate' && attr.value === 'emptyMessage' && attr.valueSpan) {\n edits.push({ start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: 'footer' });\n }\n }\n}\n\nfunction collectTemplateEmptyMessageRename(template: TmplAstTemplate, edits: Edit[]): void {\n for (const attr of template.templateAttrs) {\n if (attr instanceof TmplAstTextAttribute && attr.name === 'euiTemplate' && attr.value === 'emptyMessage' && attr.valueSpan) {\n edits.push({ start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: 'footer' });\n }\n }\n for (const attr of template.attributes) {\n if (attr.name === 'euiTemplate' && attr.value === 'emptyMessage' && attr.valueSpan) {\n edits.push({ start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: 'footer' });\n }\n }\n}\n\n// --- Pipe rename via AST ---\n\nfunction collectPipeRenames(nodes: TmplAstNode[], source: string, edits: Edit[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n for (const input of node.inputs) {\n visitExpressionForPipes(input.value, edits);\n }\n for (const output of node.outputs) {\n if (output.handler) visitExpressionForPipes(output.handler, edits);\n }\n collectPipeRenames(node.children, source, edits);\n }\n if (node instanceof TmplAstTemplate) {\n for (const input of node.inputs) {\n visitExpressionForPipes(input.value, edits);\n }\n collectPipeRenames(node.children, source, edits);\n }\n if (node instanceof TmplAstBoundText) {\n visitExpressionForPipes(node.value, edits);\n }\n }\n}\n\nfunction visitExpressionForPipes(expr: AST, edits: Edit[]): void {\n if (expr instanceof ASTWithSource && expr.ast) {\n visitAstForPipes(expr.ast, edits);\n } else {\n visitAstForPipes(expr, edits);\n }\n}\n\nfunction visitAstForPipes(ast: AST, edits: Edit[]): void {\n if (ast instanceof BindingPipe) {\n if (ast.name === OLD_PIPE && ast.nameSpan) {\n edits.push({ start: ast.nameSpan.start, end: ast.nameSpan.end, replacement: NEW_PIPE });\n }\n visitAstForPipes(ast.exp, edits);\n for (const arg of ast.args) {\n visitAstForPipes(arg, edits);\n }\n return;\n }\n\n if (ast instanceof Interpolation) {\n for (const expr of ast.expressions) {\n visitAstForPipes(expr, edits);\n }\n return;\n }\n\n // Recursively visit all properties that could contain AST nodes\n for (const key of Object.keys(ast)) {\n // eslint-disable-next-line\n const val = (ast as any)[key];\n if (val instanceof AST) {\n visitAstForPipes(val, edits);\n } else if (Array.isArray(val)) {\n for (const item of val) {\n if (item instanceof AST) visitAstForPipes(item, edits);\n }\n }\n }\n}\n\n// --- Import handling for paginator ---\n\nfunction addPaginatorImport(source: string, filePath: string): string {\n if (source.includes(PAGINATOR_COMPONENT)) return source;\n\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n // Add import statement after last import\n let lastImportEnd = 0;\n for (const stmt of sourceFile.statements) {\n if (ts.isImportDeclaration(stmt)) {\n lastImportEnd = stmt.getEnd();\n }\n }\n\n if (lastImportEnd > 0) {\n edits.push({\n start: lastImportEnd,\n end: lastImportEnd,\n replacement: `\\nimport { ${PAGINATOR_COMPONENT} } from '${PAGINATOR_IMPORT_PATH}';`,\n });\n }\n\n // Add to component imports array\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAssignment(node) && ts.isIdentifier(node.name) && node.name.text === 'imports' && isComponentMetadataProperty(node)) {\n if (ts.isArrayLiteralExpression(node.initializer)) {\n const arr = node.initializer;\n const elements = arr.elements;\n if (elements.length > 0) {\n const lastElement = elements[elements.length - 1];\n edits.push({\n start: lastElement.getEnd(),\n end: lastElement.getEnd(),\n replacement: `, ${PAGINATOR_COMPONENT}`,\n });\n } else {\n const insertPos = arr.getStart(sourceFile) + 1;\n edits.push({ start: insertPos, end: insertPos, replacement: PAGINATOR_COMPONENT });\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n\n return applyEdits(source, edits);\n}\n\n// --- Helpers ---\n\nfunction removeAttribute(start: number, end: number, source: string, edits: Edit[]): void {\n let adjustedStart = start;\n while (adjustedStart > 0 && (source[adjustedStart - 1] === ' ' || source[adjustedStart - 1] === '\\t')) {\n adjustedStart--;\n }\n edits.push({ start: adjustedStart, end, replacement: '' });\n}\n\nfunction logRemovalWarning(name: string, filePath: string, element: TmplAstElement, context: SchematicContext): void {\n const { line } = element.startSourceSpan.start;\n if (name === 'defaultMultiOrder') {\n context.logger.warn(`${filePath}:${line + 1} - \"[${name}]\" removed. Use setSort(Sort[]) to initialize sorting.`);\n } else {\n context.logger.warn(`${filePath}:${line + 1} - \"[${name}]\" removed to align to Design System.`);\n }\n}\n\nfunction isTemplateProperty(node: ts.PropertyAssignment): boolean {\n const name = node.name;\n return (ts.isIdentifier(name) && name.text === 'template') || (ts.isStringLiteral(name) && name.text === 'template');\n}\n\nfunction isComponentMetadataProperty(node: ts.PropertyAssignment): boolean {\n const objectLiteral = node.parent;\n if (!ts.isObjectLiteralExpression(objectLiteral)) return false;\n const callExpression = objectLiteral.parent;\n if (!ts.isCallExpression(callExpression) || callExpression.arguments[0] !== objectLiteral) return false;\n return ts.isDecorator(callExpression.parent) && ts.isIdentifier(callExpression.expression) && callExpression.expression.text === 'Component';\n}\n\nfunction unwrapExpression(expression: ts.Expression): ts.Expression {\n let current = expression;\n while (ts.isParenthesizedExpression(current)) current = current.expression;\n return current;\n}\n\nfunction applyEdits(source: string, edits: Edit[]): string {\n const unique = new Map<string, Edit>();\n for (const edit of edits) {\n const key = `${edit.start}:${edit.end}`;\n unique.set(key, edit);\n }\n let result = source;\n for (const edit of [...unique.values()].sort((a, b) => b.start - a.start)) {\n result = result.slice(0, edit.start) + edit.replacement + result.slice(edit.end);\n }\n return result;\n}\n\nfunction visitDir(dir: DirEntry, callback: (path: string) => void): void {\n for (const file of dir.subfiles) {\n if (file.endsWith('.d.ts')) continue;\n if (!file.endsWith('.html') && !file.endsWith('.ts')) continue;\n callback(`${dir.path}/${file}`);\n }\n for (const sub of dir.subdirs) {\n if (sub === 'node_modules' || sub === 'dist') continue;\n visitDir(dir.dir(sub), callback);\n }\n}\n",
|
|
2967
|
+
"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",
|
|
2968
2968
|
"displayName": "Schema",
|
|
2969
2969
|
"properties": [
|
|
2970
2970
|
{
|
|
@@ -2976,7 +2976,7 @@
|
|
|
2976
2976
|
"indexKey": "",
|
|
2977
2977
|
"optional": true,
|
|
2978
2978
|
"description": "",
|
|
2979
|
-
"line":
|
|
2979
|
+
"line": 8,
|
|
2980
2980
|
"rawdescription": "\n"
|
|
2981
2981
|
},
|
|
2982
2982
|
{
|
|
@@ -2988,7 +2988,7 @@
|
|
|
2988
2988
|
"indexKey": "",
|
|
2989
2989
|
"optional": true,
|
|
2990
2990
|
"description": "",
|
|
2991
|
-
"line":
|
|
2991
|
+
"line": 7,
|
|
2992
2992
|
"rawdescription": "\n"
|
|
2993
2993
|
}
|
|
2994
2994
|
],
|
|
@@ -3006,12 +3006,12 @@
|
|
|
3006
3006
|
},
|
|
3007
3007
|
{
|
|
3008
3008
|
"name": "Schema",
|
|
3009
|
-
"id": "interface-Schema-
|
|
3010
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
3009
|
+
"id": "interface-Schema-91c9f900bf3ebb82488fb65644938ef486ceaa447cff8bfd9d710df9595d82acb267b26f3c252173bc684353f362473120226426ed7ee5d98b33e30011dd9383-18",
|
|
3010
|
+
"file": "packages/core/schematics/migrate-eui-table/index.ts",
|
|
3011
3011
|
"deprecated": false,
|
|
3012
3012
|
"deprecationMessage": "",
|
|
3013
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",
|
|
3014
|
+
"sourceCode": "import { BindingPipe, parseTemplate, TmplAstBoundAttribute, TmplAstBoundEvent, TmplAstBoundText, TmplAstElement, TmplAstNode, TmplAstTemplate, TmplAstTextAttribute, AST, ASTWithSource, Interpolation } from '@angular/compiler';\nimport { DirEntry, Rule, SchematicContext, Tree } from '@angular-devkit/schematics';\nimport * as ts from 'typescript';\nimport { logDryRun, logDryRunNote } from '../utils/dry-run';\n\ninterface Edit { start: number; end: number; replacement: string; }\n\n// --- Table-level input renames (on elements with euiTable attribute) ---\nconst TABLE_INPUT_RENAMES = new Map([\n ['rows', 'data'],\n ['loading', 'isLoading'],\n ['asyncTable', 'isAsync'],\n ['euiTableResponsive', 'isTableResponsive'],\n ['euiTableFixedLayout', 'isTableFixedLayout'],\n ['euiTableCompact', 'isTableCompact'],\n ['hasStickyColumns', 'hasStickyCols'],\n]);\n\n// --- Child element input renames (scoped to euiTable context) ---\nconst TH_TD_INPUT_RENAMES = new Map([\n ['isStickyColumn', 'isStickyCol'],\n ['sortable', 'isSortable'],\n]);\n\nconst TR_INPUT_RENAMES = new Map([\n ['isSelectableHeader', 'isHeaderSelectable'],\n ['isSelectable', 'isDataSelectable'],\n]);\n\n// --- Removed inputs ---\nconst REMOVED_INPUTS = new Set(['euiTableBordered', 'isHoverable', 'defaultMultiOrder', 'paginable']);\n\n// --- Output renames/removals ---\nconst OUTPUT_RENAMES = new Map([['selectedRows', 'rowsSelect']]);\nconst REMOVED_OUTPUTS = new Set(['multiSortChange']);\n\n// --- Pipe rename ---\nconst OLD_PIPE = 'euiTableHighlightFilter';\nconst NEW_PIPE = 'euiTableHighlight';\n\n// --- TS property renames ---\nconst TS_PROPERTY_RENAMES = new Map([['filteredRows', 'getFilteredData']]);\n\nconst PAGINATOR_IMPORT_PATH = '@eui/components/eui-paginator';\nconst PAGINATOR_COMPONENT = 'EuiPaginatorComponent';\n\ninterface Schema {\n path?: string;\n dryRun?: boolean;\n}\n\nexport function migrateEuiTable(options: Schema = {}): Rule {\n return (tree: Tree, context: SchematicContext) => {\n const scanPath = options.path ? '/' + options.path.replace(/^\\.?\\//, '').replace(/\\/$/, '') : '';\n let count = 0;\n const paginatorHtmlFiles = new Set<string>();\n\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const original = buffer.toString('utf-8');\n if (!original.includes('euiTable') && !original.includes(OLD_PIPE) && !original.includes('filteredRows') && !original.includes('setSort')) return;\n\n let result: string;\n\n if (path.endsWith('.html')) {\n const { output, hasPaginator } = migrateTemplateWithPaginator(original, path, context);\n result = output;\n if (hasPaginator) paginatorHtmlFiles.add(path);\n } else {\n const { output, hasPaginator } = migrateTypeScript(original, path, context);\n result = output;\n if (hasPaginator) {\n result = addPaginatorImport(result, path);\n }\n }\n\n if (result !== original) {\n if (options.dryRun) {\n logDryRun(context, `Would migrate eui-table breaking changes in ${path}`);\n } else {\n tree.overwrite(path, result);\n }\n count++;\n }\n });\n\n // Handle paginator imports for external templates\n if (paginatorHtmlFiles.size > 0) {\n visitDir(tree.getDir(scanPath || '/'), (path) => {\n if (!path.endsWith('.ts')) return;\n\n const buffer = tree.read(path);\n if (!buffer) return;\n\n const source = buffer.toString('utf-8');\n if (!source.includes('templateUrl')) return;\n\n for (const htmlFile of paginatorHtmlFiles) {\n const htmlFileName = htmlFile.split('/').pop()!;\n if (source.includes(htmlFileName)) {\n const updated = addPaginatorImport(source, path);\n if (updated !== source) {\n if (options.dryRun) {\n logDryRun(context, `Would add paginator import in ${path}`);\n } else {\n tree.overwrite(path, updated);\n }\n count++;\n }\n break;\n }\n }\n });\n }\n\n context.logger.info(`Migrated eui-table in ${count} file(s).`);\n if (options.dryRun) {\n logDryRunNote(context);\n }\n return tree;\n };\n}\n\nfunction migrateTemplateWithPaginator(source: string, filePath: string, context: SchematicContext): { output: string; hasPaginator: boolean } {\n const parsed = parseTemplate(source, '', { preserveWhitespaces: true });\n const edits: Edit[] = [];\n let hasPaginator = false;\n\n const paginatorResult = visitNodesForTable(parsed.nodes, source, edits, false, filePath, context);\n if (paginatorResult) hasPaginator = true;\n\n collectPipeRenames(parsed.nodes, source, edits);\n\n return { output: applyEdits(source, edits), hasPaginator };\n}\n\nfunction migrateTemplate(source: string, filePath: string, context: SchematicContext): string {\n return migrateTemplateWithPaginator(source, filePath, context).output;\n}\n\nfunction migrateTypeScript(source: string, filePath: string, context: SchematicContext): { output: string; hasPaginator: boolean } {\n let result = source;\n let hasPaginator = false;\n\n // Migrate inline templates\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const changes: Edit[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAssignment(node) && isTemplateProperty(node) && isComponentMetadataProperty(node)) {\n const init = unwrapExpression(node.initializer);\n if (ts.isStringLiteral(init) || ts.isNoSubstitutionTemplateLiteral(init)) {\n const start = init.getStart(sourceFile) + 1;\n const end = init.getEnd() - 1;\n const rawTemplate = result.slice(start, end);\n if (!rawTemplate.includes('euiTable') && !rawTemplate.includes(OLD_PIPE)) {\n ts.forEachChild(node, visit); return;\n}\n const { output: migrated, hasPaginator: pag } = migrateTemplateWithPaginator(rawTemplate, filePath, context);\n if (pag) hasPaginator = true;\n if (migrated !== rawTemplate) changes.push({ start, end, replacement: migrated });\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n result = applyEdits(result, changes);\n\n // Rename TS property accesses\n result = renameTsProperties(result);\n\n // Warn about setSort\n warnSetSort(result, filePath, context);\n\n return { output: result, hasPaginator };\n}\n\nfunction renameTsProperties(source: string): string {\n const sourceFile = ts.createSourceFile('', source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAccessExpression(node) && ts.isIdentifier(node.name) && TS_PROPERTY_RENAMES.has(node.name.text)) {\n edits.push({ start: node.name.getStart(sourceFile), end: node.name.getEnd(), replacement: TS_PROPERTY_RENAMES.get(node.name.text)! });\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n return applyEdits(source, edits);\n}\n\nfunction warnSetSort(source: string, filePath: string, context: SchematicContext): void {\n if (!source.includes('setSort')) return;\n\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true);\n\n const visit = (node: ts.Node): void => {\n if (ts.isCallExpression(node) && ts.isPropertyAccessExpression(node.expression) &&\n ts.isIdentifier(node.expression.name) && node.expression.name.text === 'setSort') {\n const { line } = sourceFile.getLineAndCharacterOfPosition(node.getStart());\n context.logger.warn(\n `${filePath}:${line + 1} - \"setSort\" signature changed from setSort(sort: string, order: \"asc\" | \"desc\") to setSort(Sort[]). Update manually.`,\n );\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n}\n\n// --- Template AST visitors ---\n\nfunction visitNodesForTable(\n nodes: TmplAstNode[], source: string, edits: Edit[], insideEuiTable: boolean, filePath: string, context: SchematicContext,\n): boolean {\n let hasPaginator = false;\n\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n const isEuiTable = hasEuiTableAttribute(node);\n\n if (isEuiTable) {\n collectTableInputRenames(node, edits);\n collectInputRemovals(node, source, edits, filePath, context);\n collectOutputChanges(node, source, edits, filePath, context);\n if (collectPaginatorMigration(node, source, edits)) hasPaginator = true;\n }\n\n if (isEuiTable || insideEuiTable) {\n collectChildElementRenames(node, edits);\n collectChildInputRemovals(node, source, edits, filePath, context);\n collectEmptyMessageRename(node, edits);\n }\n\n const childResult = visitNodesForTable(node.children, source, edits, isEuiTable || insideEuiTable, filePath, context);\n if (childResult) hasPaginator = true;\n }\n\n if (node instanceof TmplAstTemplate) {\n if (insideEuiTable) {\n collectTemplateEmptyMessageRename(node, edits);\n }\n const childResult = visitNodesForTable(node.children, source, edits, insideEuiTable, filePath, context);\n if (childResult) hasPaginator = true;\n }\n }\n\n return hasPaginator;\n}\n\nfunction hasEuiTableAttribute(element: TmplAstElement): boolean {\n return element.attributes.some((a) => a.name === 'euiTable') ||\n element.inputs.some((i) => i.name === 'euiTable');\n}\n\nfunction collectTableInputRenames(element: TmplAstElement, edits: Edit[]): void {\n for (const attr of element.attributes) {\n const newName = TABLE_INPUT_RENAMES.get(attr.name);\n if (newName) edits.push({ start: attr.keySpan!.start.offset, end: attr.keySpan!.end.offset, replacement: newName });\n }\n for (const input of element.inputs) {\n const newName = TABLE_INPUT_RENAMES.get(input.name);\n if (newName) edits.push({ start: input.keySpan!.start.offset, end: input.keySpan!.end.offset, replacement: newName });\n }\n}\n\nfunction collectChildElementRenames(element: TmplAstElement, edits: Edit[]): void {\n const renames = (element.name === 'th' || element.name === 'td') ? TH_TD_INPUT_RENAMES\n : element.name === 'tr' ? TR_INPUT_RENAMES : null;\n if (!renames) return;\n\n for (const attr of element.attributes) {\n const newName = renames.get(attr.name);\n if (newName) edits.push({ start: attr.keySpan!.start.offset, end: attr.keySpan!.end.offset, replacement: newName });\n }\n for (const input of element.inputs) {\n const newName = renames.get(input.name);\n if (newName) edits.push({ start: input.keySpan!.start.offset, end: input.keySpan!.end.offset, replacement: newName });\n }\n}\n\nfunction collectChildInputRemovals(element: TmplAstElement, source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n const childRemovedInputs = new Set(['defaultMultiOrder']);\n\n for (const attr of element.attributes) {\n if (childRemovedInputs.has(attr.name)) {\n removeAttribute(attr.sourceSpan.start.offset, attr.sourceSpan.end.offset, source, edits);\n logRemovalWarning(attr.name, filePath, element, context);\n }\n }\n for (const input of element.inputs) {\n if (childRemovedInputs.has(input.name)) {\n removeAttribute(input.sourceSpan.start.offset, input.sourceSpan.end.offset, source, edits);\n logRemovalWarning(input.name, filePath, element, context);\n }\n }\n}\n\nfunction collectInputRemovals(element: TmplAstElement, source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n for (const attr of element.attributes) {\n if (REMOVED_INPUTS.has(attr.name) && attr.name !== 'paginable') {\n removeAttribute(attr.sourceSpan.start.offset, attr.sourceSpan.end.offset, source, edits);\n logRemovalWarning(attr.name, filePath, element, context);\n }\n }\n for (const input of element.inputs) {\n if (REMOVED_INPUTS.has(input.name) && input.name !== 'paginable') {\n removeAttribute(input.sourceSpan.start.offset, input.sourceSpan.end.offset, source, edits);\n logRemovalWarning(input.name, filePath, element, context);\n }\n }\n}\n\nfunction collectOutputChanges(element: TmplAstElement, source: string, edits: Edit[], filePath: string, context: SchematicContext): void {\n for (const output of element.outputs) {\n const newName = OUTPUT_RENAMES.get(output.name);\n if (newName) {\n edits.push({ start: output.keySpan!.start.offset, end: output.keySpan!.end.offset, replacement: newName });\n }\n if (REMOVED_OUTPUTS.has(output.name)) {\n removeAttribute(output.sourceSpan.start.offset, output.sourceSpan.end.offset, source, edits);\n const { line } = element.startSourceSpan.start;\n context.logger.warn(\n `${filePath}:${line + 1} - \"(${output.name})\" removed. Multi-sort is now supported by (sortChange) output.`,\n );\n }\n }\n}\n\nfunction collectPaginatorMigration(element: TmplAstElement, source: string, edits: Edit[]): boolean {\n let found = false;\n\n for (const attr of element.attributes) {\n if (attr.name === 'paginable') {\n removeAttribute(attr.sourceSpan.start.offset, attr.sourceSpan.end.offset, source, edits);\n found = true;\n }\n }\n for (const input of element.inputs) {\n if (input.name === 'paginable') {\n removeAttribute(input.sourceSpan.start.offset, input.sourceSpan.end.offset, source, edits);\n found = true;\n }\n }\n\n if (found) {\n // Add [paginator]=\"paginator\" before closing > of opening tag\n const insertPos = element.startSourceSpan.end.offset - 1;\n edits.push({ start: insertPos, end: insertPos, replacement: ' [paginator]=\"paginator\"' });\n\n // Add eui-paginator after </table>\n if (element.endSourceSpan) {\n const afterTable = element.endSourceSpan.end.offset;\n edits.push({\n start: afterTable,\n end: afterTable,\n replacement: '\\n<!-- TODO: Configure paginator and implement onPageChange handler -->\\n<eui-paginator #paginator [pageSize]=\"10\" [pageSizeOptions]=\"[5, 10, 25, 50]\" />',\n });\n }\n }\n\n return found;\n}\n\nfunction collectEmptyMessageRename(element: TmplAstElement, edits: Edit[]): void {\n // Handle direct attribute on elements (unlikely but handle)\n for (const attr of element.attributes) {\n if (attr.name === 'euiTemplate' && attr.value === 'emptyMessage' && attr.valueSpan) {\n edits.push({ start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: 'footer' });\n }\n }\n}\n\nfunction collectTemplateEmptyMessageRename(template: TmplAstTemplate, edits: Edit[]): void {\n for (const attr of template.templateAttrs) {\n if (attr instanceof TmplAstTextAttribute && attr.name === 'euiTemplate' && attr.value === 'emptyMessage' && attr.valueSpan) {\n edits.push({ start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: 'footer' });\n }\n }\n for (const attr of template.attributes) {\n if (attr.name === 'euiTemplate' && attr.value === 'emptyMessage' && attr.valueSpan) {\n edits.push({ start: attr.valueSpan.start.offset, end: attr.valueSpan.end.offset, replacement: 'footer' });\n }\n }\n}\n\n// --- Pipe rename via AST ---\n\nfunction collectPipeRenames(nodes: TmplAstNode[], source: string, edits: Edit[]): void {\n for (const node of nodes) {\n if (node instanceof TmplAstElement) {\n for (const input of node.inputs) {\n visitExpressionForPipes(input.value, edits);\n }\n for (const output of node.outputs) {\n if (output.handler) visitExpressionForPipes(output.handler, edits);\n }\n collectPipeRenames(node.children, source, edits);\n }\n if (node instanceof TmplAstTemplate) {\n for (const input of node.inputs) {\n visitExpressionForPipes(input.value, edits);\n }\n collectPipeRenames(node.children, source, edits);\n }\n if (node instanceof TmplAstBoundText) {\n visitExpressionForPipes(node.value, edits);\n }\n }\n}\n\nfunction visitExpressionForPipes(expr: AST, edits: Edit[]): void {\n if (expr instanceof ASTWithSource && expr.ast) {\n visitAstForPipes(expr.ast, edits);\n } else {\n visitAstForPipes(expr, edits);\n }\n}\n\nfunction visitAstForPipes(ast: AST, edits: Edit[]): void {\n if (ast instanceof BindingPipe) {\n if (ast.name === OLD_PIPE && ast.nameSpan) {\n edits.push({ start: ast.nameSpan.start, end: ast.nameSpan.end, replacement: NEW_PIPE });\n }\n visitAstForPipes(ast.exp, edits);\n for (const arg of ast.args) {\n visitAstForPipes(arg, edits);\n }\n return;\n }\n\n if (ast instanceof Interpolation) {\n for (const expr of ast.expressions) {\n visitAstForPipes(expr, edits);\n }\n return;\n }\n\n // Recursively visit all properties that could contain AST nodes\n for (const key of Object.keys(ast)) {\n // eslint-disable-next-line\n const val = (ast as any)[key];\n if (val instanceof AST) {\n visitAstForPipes(val, edits);\n } else if (Array.isArray(val)) {\n for (const item of val) {\n if (item instanceof AST) visitAstForPipes(item, edits);\n }\n }\n }\n}\n\n// --- Import handling for paginator ---\n\nfunction addPaginatorImport(source: string, filePath: string): string {\n if (source.includes(PAGINATOR_COMPONENT)) return source;\n\n const sourceFile = ts.createSourceFile(filePath, source, ts.ScriptTarget.Latest, true, ts.ScriptKind.TS);\n const edits: Edit[] = [];\n\n // Add import statement after last import\n let lastImportEnd = 0;\n for (const stmt of sourceFile.statements) {\n if (ts.isImportDeclaration(stmt)) {\n lastImportEnd = stmt.getEnd();\n }\n }\n\n if (lastImportEnd > 0) {\n edits.push({\n start: lastImportEnd,\n end: lastImportEnd,\n replacement: `\\nimport { ${PAGINATOR_COMPONENT} } from '${PAGINATOR_IMPORT_PATH}';`,\n });\n }\n\n // Add to component imports array\n const visit = (node: ts.Node): void => {\n if (ts.isPropertyAssignment(node) && ts.isIdentifier(node.name) && node.name.text === 'imports' && isComponentMetadataProperty(node)) {\n if (ts.isArrayLiteralExpression(node.initializer)) {\n const arr = node.initializer;\n const elements = arr.elements;\n if (elements.length > 0) {\n const lastElement = elements[elements.length - 1];\n edits.push({\n start: lastElement.getEnd(),\n end: lastElement.getEnd(),\n replacement: `, ${PAGINATOR_COMPONENT}`,\n });\n } else {\n const insertPos = arr.getStart(sourceFile) + 1;\n edits.push({ start: insertPos, end: insertPos, replacement: PAGINATOR_COMPONENT });\n }\n }\n }\n ts.forEachChild(node, visit);\n };\n\n visit(sourceFile);\n\n return applyEdits(source, edits);\n}\n\n// --- Helpers ---\n\nfunction removeAttribute(start: number, end: number, source: string, edits: Edit[]): void {\n let adjustedStart = start;\n while (adjustedStart > 0 && (source[adjustedStart - 1] === ' ' || source[adjustedStart - 1] === '\\t')) {\n adjustedStart--;\n }\n edits.push({ start: adjustedStart, end, replacement: '' });\n}\n\nfunction logRemovalWarning(name: string, filePath: string, element: TmplAstElement, context: SchematicContext): void {\n const { line } = element.startSourceSpan.start;\n if (name === 'defaultMultiOrder') {\n context.logger.warn(`${filePath}:${line + 1} - \"[${name}]\" removed. Use setSort(Sort[]) to initialize sorting.`);\n } else {\n context.logger.warn(`${filePath}:${line + 1} - \"[${name}]\" removed to align to Design System.`);\n }\n}\n\nfunction isTemplateProperty(node: ts.PropertyAssignment): boolean {\n const name = node.name;\n return (ts.isIdentifier(name) && name.text === 'template') || (ts.isStringLiteral(name) && name.text === 'template');\n}\n\nfunction isComponentMetadataProperty(node: ts.PropertyAssignment): boolean {\n const objectLiteral = node.parent;\n if (!ts.isObjectLiteralExpression(objectLiteral)) return false;\n const callExpression = objectLiteral.parent;\n if (!ts.isCallExpression(callExpression) || callExpression.arguments[0] !== objectLiteral) return false;\n return ts.isDecorator(callExpression.parent) && ts.isIdentifier(callExpression.expression) && callExpression.expression.text === 'Component';\n}\n\nfunction unwrapExpression(expression: ts.Expression): ts.Expression {\n let current = expression;\n while (ts.isParenthesizedExpression(current)) current = current.expression;\n return current;\n}\n\nfunction applyEdits(source: string, edits: Edit[]): string {\n const unique = new Map<string, Edit>();\n for (const edit of edits) {\n const key = `${edit.start}:${edit.end}`;\n unique.set(key, edit);\n }\n let result = source;\n for (const edit of [...unique.values()].sort((a, b) => b.start - a.start)) {\n result = result.slice(0, edit.start) + edit.replacement + result.slice(edit.end);\n }\n return result;\n}\n\nfunction visitDir(dir: DirEntry, callback: (path: string) => void): void {\n for (const file of dir.subfiles) {\n if (file.endsWith('.d.ts')) continue;\n if (!file.endsWith('.html') && !file.endsWith('.ts')) continue;\n callback(`${dir.path}/${file}`);\n }\n for (const sub of dir.subdirs) {\n if (sub === 'node_modules' || sub === 'dist') continue;\n visitDir(dir.dir(sub), callback);\n }\n}\n",
|
|
3015
3015
|
"displayName": "Schema",
|
|
3016
3016
|
"properties": [
|
|
3017
3017
|
{
|
|
@@ -3023,7 +3023,7 @@
|
|
|
3023
3023
|
"indexKey": "",
|
|
3024
3024
|
"optional": true,
|
|
3025
3025
|
"description": "",
|
|
3026
|
-
"line":
|
|
3026
|
+
"line": 49,
|
|
3027
3027
|
"rawdescription": "\n"
|
|
3028
3028
|
},
|
|
3029
3029
|
{
|
|
@@ -3035,7 +3035,7 @@
|
|
|
3035
3035
|
"indexKey": "",
|
|
3036
3036
|
"optional": true,
|
|
3037
3037
|
"description": "",
|
|
3038
|
-
"line":
|
|
3038
|
+
"line": 48,
|
|
3039
3039
|
"rawdescription": "\n"
|
|
3040
3040
|
}
|
|
3041
3041
|
],
|
|
@@ -22372,23 +22372,23 @@
|
|
|
22372
22372
|
"name": "COMPONENT_TAG",
|
|
22373
22373
|
"ctype": "miscellaneous",
|
|
22374
22374
|
"subtype": "variable",
|
|
22375
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
22375
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
22376
22376
|
"coverageIgnore": false,
|
|
22377
22377
|
"deprecated": false,
|
|
22378
22378
|
"deprecationMessage": "",
|
|
22379
22379
|
"type": "string",
|
|
22380
|
-
"defaultValue": "'eui-icon-
|
|
22380
|
+
"defaultValue": "'eui-icon-svg'"
|
|
22381
22381
|
},
|
|
22382
22382
|
{
|
|
22383
22383
|
"name": "COMPONENT_TAG",
|
|
22384
22384
|
"ctype": "miscellaneous",
|
|
22385
22385
|
"subtype": "variable",
|
|
22386
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
22386
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
22387
22387
|
"coverageIgnore": false,
|
|
22388
22388
|
"deprecated": false,
|
|
22389
22389
|
"deprecationMessage": "",
|
|
22390
22390
|
"type": "string",
|
|
22391
|
-
"defaultValue": "'eui-icon-
|
|
22391
|
+
"defaultValue": "'eui-icon-toggle'"
|
|
22392
22392
|
},
|
|
22393
22393
|
{
|
|
22394
22394
|
"name": "CONFIG_TOKEN",
|
|
@@ -22961,23 +22961,23 @@
|
|
|
22961
22961
|
"name": "INPUT_RENAMES",
|
|
22962
22962
|
"ctype": "miscellaneous",
|
|
22963
22963
|
"subtype": "variable",
|
|
22964
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
22964
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
22965
22965
|
"coverageIgnore": false,
|
|
22966
22966
|
"deprecated": false,
|
|
22967
22967
|
"deprecationMessage": "",
|
|
22968
22968
|
"type": "unknown",
|
|
22969
|
-
"defaultValue": "new Map([\n ['
|
|
22969
|
+
"defaultValue": "new Map([\n ['variant', 'fillColor'],\n ['aria-label', 'ariaLabel'],\n])"
|
|
22970
22970
|
},
|
|
22971
22971
|
{
|
|
22972
22972
|
"name": "INPUT_RENAMES",
|
|
22973
22973
|
"ctype": "miscellaneous",
|
|
22974
22974
|
"subtype": "variable",
|
|
22975
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
22975
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
22976
22976
|
"coverageIgnore": false,
|
|
22977
22977
|
"deprecated": false,
|
|
22978
22978
|
"deprecationMessage": "",
|
|
22979
22979
|
"type": "unknown",
|
|
22980
|
-
"defaultValue": "new Map([\n ['
|
|
22980
|
+
"defaultValue": "new Map([\n ['iconLabelClass', 'icon'],\n ['iconLabelStyleClass', 'fillColor'],\n])"
|
|
22981
22981
|
},
|
|
22982
22982
|
{
|
|
22983
22983
|
"name": "isDefined",
|
|
@@ -23293,23 +23293,23 @@
|
|
|
23293
23293
|
"name": "NEW_NAME",
|
|
23294
23294
|
"ctype": "miscellaneous",
|
|
23295
23295
|
"subtype": "variable",
|
|
23296
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
23296
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
23297
23297
|
"coverageIgnore": false,
|
|
23298
23298
|
"deprecated": false,
|
|
23299
23299
|
"deprecationMessage": "",
|
|
23300
23300
|
"type": "string",
|
|
23301
|
-
"defaultValue": "'
|
|
23301
|
+
"defaultValue": "'euiPrimary'"
|
|
23302
23302
|
},
|
|
23303
23303
|
{
|
|
23304
23304
|
"name": "NEW_NAME",
|
|
23305
23305
|
"ctype": "miscellaneous",
|
|
23306
23306
|
"subtype": "variable",
|
|
23307
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
23307
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
23308
23308
|
"coverageIgnore": false,
|
|
23309
23309
|
"deprecated": false,
|
|
23310
23310
|
"deprecationMessage": "",
|
|
23311
23311
|
"type": "string",
|
|
23312
|
-
"defaultValue": "'
|
|
23312
|
+
"defaultValue": "'euiCTAButton'"
|
|
23313
23313
|
},
|
|
23314
23314
|
{
|
|
23315
23315
|
"name": "NEW_NAME",
|
|
@@ -23438,23 +23438,23 @@
|
|
|
23438
23438
|
"name": "OLD_NAME",
|
|
23439
23439
|
"ctype": "miscellaneous",
|
|
23440
23440
|
"subtype": "variable",
|
|
23441
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
23441
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
23442
23442
|
"coverageIgnore": false,
|
|
23443
23443
|
"deprecated": false,
|
|
23444
23444
|
"deprecationMessage": "",
|
|
23445
23445
|
"type": "string",
|
|
23446
|
-
"defaultValue": "'
|
|
23446
|
+
"defaultValue": "'euiAccent'"
|
|
23447
23447
|
},
|
|
23448
23448
|
{
|
|
23449
23449
|
"name": "OLD_NAME",
|
|
23450
23450
|
"ctype": "miscellaneous",
|
|
23451
23451
|
"subtype": "variable",
|
|
23452
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
23452
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
23453
23453
|
"coverageIgnore": false,
|
|
23454
23454
|
"deprecated": false,
|
|
23455
23455
|
"deprecationMessage": "",
|
|
23456
23456
|
"type": "string",
|
|
23457
|
-
"defaultValue": "'
|
|
23457
|
+
"defaultValue": "'euiButtonCall'"
|
|
23458
23458
|
},
|
|
23459
23459
|
{
|
|
23460
23460
|
"name": "OLD_NAME",
|
|
@@ -23662,23 +23662,23 @@
|
|
|
23662
23662
|
"name": "REMOVED_INPUTS",
|
|
23663
23663
|
"ctype": "miscellaneous",
|
|
23664
23664
|
"subtype": "variable",
|
|
23665
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
23665
|
+
"file": "packages/core/schematics/migrate-eui-popover/index.ts",
|
|
23666
23666
|
"coverageIgnore": false,
|
|
23667
23667
|
"deprecated": false,
|
|
23668
23668
|
"deprecationMessage": "",
|
|
23669
23669
|
"type": "unknown",
|
|
23670
|
-
"defaultValue": "new Set(['
|
|
23670
|
+
"defaultValue": "new Set(['type'])"
|
|
23671
23671
|
},
|
|
23672
23672
|
{
|
|
23673
23673
|
"name": "REMOVED_INPUTS",
|
|
23674
23674
|
"ctype": "miscellaneous",
|
|
23675
23675
|
"subtype": "variable",
|
|
23676
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
23676
|
+
"file": "packages/core/schematics/migrate-eui-table/index.ts",
|
|
23677
23677
|
"coverageIgnore": false,
|
|
23678
23678
|
"deprecated": false,
|
|
23679
23679
|
"deprecationMessage": "",
|
|
23680
23680
|
"type": "unknown",
|
|
23681
|
-
"defaultValue": "new Set(['
|
|
23681
|
+
"defaultValue": "new Set(['euiTableBordered', 'isHoverable', 'defaultMultiOrder', 'paginable'])"
|
|
23682
23682
|
},
|
|
23683
23683
|
{
|
|
23684
23684
|
"name": "REMOVED_OUTPUT",
|
|
@@ -24430,7 +24430,7 @@
|
|
|
24430
24430
|
},
|
|
24431
24431
|
{
|
|
24432
24432
|
"name": "applyEdits",
|
|
24433
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
24433
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
24434
24434
|
"ctype": "miscellaneous",
|
|
24435
24435
|
"subtype": "function",
|
|
24436
24436
|
"coverageIgnore": false,
|
|
@@ -24475,7 +24475,7 @@
|
|
|
24475
24475
|
},
|
|
24476
24476
|
{
|
|
24477
24477
|
"name": "applyEdits",
|
|
24478
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
24478
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
24479
24479
|
"ctype": "miscellaneous",
|
|
24480
24480
|
"subtype": "function",
|
|
24481
24481
|
"coverageIgnore": false,
|
|
@@ -24655,7 +24655,7 @@
|
|
|
24655
24655
|
},
|
|
24656
24656
|
{
|
|
24657
24657
|
"name": "applyEdits",
|
|
24658
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
24658
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
24659
24659
|
"ctype": "miscellaneous",
|
|
24660
24660
|
"subtype": "function",
|
|
24661
24661
|
"coverageIgnore": false,
|
|
@@ -24700,7 +24700,7 @@
|
|
|
24700
24700
|
},
|
|
24701
24701
|
{
|
|
24702
24702
|
"name": "applyEdits",
|
|
24703
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
24703
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
24704
24704
|
"ctype": "miscellaneous",
|
|
24705
24705
|
"subtype": "function",
|
|
24706
24706
|
"coverageIgnore": false,
|
|
@@ -24745,7 +24745,7 @@
|
|
|
24745
24745
|
},
|
|
24746
24746
|
{
|
|
24747
24747
|
"name": "applyEdits",
|
|
24748
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
24748
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
24749
24749
|
"ctype": "miscellaneous",
|
|
24750
24750
|
"subtype": "function",
|
|
24751
24751
|
"coverageIgnore": false,
|
|
@@ -26237,7 +26237,7 @@
|
|
|
26237
26237
|
},
|
|
26238
26238
|
{
|
|
26239
26239
|
"name": "collectRenames",
|
|
26240
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
26240
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
26241
26241
|
"ctype": "miscellaneous",
|
|
26242
26242
|
"subtype": "function",
|
|
26243
26243
|
"coverageIgnore": false,
|
|
@@ -26282,7 +26282,7 @@
|
|
|
26282
26282
|
},
|
|
26283
26283
|
{
|
|
26284
26284
|
"name": "collectRenames",
|
|
26285
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
26285
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
26286
26286
|
"ctype": "miscellaneous",
|
|
26287
26287
|
"subtype": "function",
|
|
26288
26288
|
"coverageIgnore": false,
|
|
@@ -26417,7 +26417,7 @@
|
|
|
26417
26417
|
},
|
|
26418
26418
|
{
|
|
26419
26419
|
"name": "collectRenames",
|
|
26420
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
26420
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
26421
26421
|
"ctype": "miscellaneous",
|
|
26422
26422
|
"subtype": "function",
|
|
26423
26423
|
"coverageIgnore": false,
|
|
@@ -26462,7 +26462,7 @@
|
|
|
26462
26462
|
},
|
|
26463
26463
|
{
|
|
26464
26464
|
"name": "collectRenames",
|
|
26465
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
26465
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
26466
26466
|
"ctype": "miscellaneous",
|
|
26467
26467
|
"subtype": "function",
|
|
26468
26468
|
"coverageIgnore": false,
|
|
@@ -26507,7 +26507,7 @@
|
|
|
26507
26507
|
},
|
|
26508
26508
|
{
|
|
26509
26509
|
"name": "collectRenames",
|
|
26510
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
26510
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
26511
26511
|
"ctype": "miscellaneous",
|
|
26512
26512
|
"subtype": "function",
|
|
26513
26513
|
"coverageIgnore": false,
|
|
@@ -29929,7 +29929,7 @@
|
|
|
29929
29929
|
},
|
|
29930
29930
|
{
|
|
29931
29931
|
"name": "isComponentMetadataProperty",
|
|
29932
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
29932
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
29933
29933
|
"ctype": "miscellaneous",
|
|
29934
29934
|
"subtype": "function",
|
|
29935
29935
|
"coverageIgnore": false,
|
|
@@ -29959,7 +29959,7 @@
|
|
|
29959
29959
|
},
|
|
29960
29960
|
{
|
|
29961
29961
|
"name": "isComponentMetadataProperty",
|
|
29962
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
29962
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
29963
29963
|
"ctype": "miscellaneous",
|
|
29964
29964
|
"subtype": "function",
|
|
29965
29965
|
"coverageIgnore": false,
|
|
@@ -30079,7 +30079,7 @@
|
|
|
30079
30079
|
},
|
|
30080
30080
|
{
|
|
30081
30081
|
"name": "isComponentMetadataProperty",
|
|
30082
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
30082
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
30083
30083
|
"ctype": "miscellaneous",
|
|
30084
30084
|
"subtype": "function",
|
|
30085
30085
|
"coverageIgnore": false,
|
|
@@ -30109,7 +30109,7 @@
|
|
|
30109
30109
|
},
|
|
30110
30110
|
{
|
|
30111
30111
|
"name": "isComponentMetadataProperty",
|
|
30112
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
30112
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
30113
30113
|
"ctype": "miscellaneous",
|
|
30114
30114
|
"subtype": "function",
|
|
30115
30115
|
"coverageIgnore": false,
|
|
@@ -30139,7 +30139,7 @@
|
|
|
30139
30139
|
},
|
|
30140
30140
|
{
|
|
30141
30141
|
"name": "isComponentMetadataProperty",
|
|
30142
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
30142
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
30143
30143
|
"ctype": "miscellaneous",
|
|
30144
30144
|
"subtype": "function",
|
|
30145
30145
|
"coverageIgnore": false,
|
|
@@ -30474,7 +30474,7 @@
|
|
|
30474
30474
|
},
|
|
30475
30475
|
{
|
|
30476
30476
|
"name": "isTemplateProperty",
|
|
30477
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
30477
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
30478
30478
|
"ctype": "miscellaneous",
|
|
30479
30479
|
"subtype": "function",
|
|
30480
30480
|
"coverageIgnore": false,
|
|
@@ -30504,7 +30504,7 @@
|
|
|
30504
30504
|
},
|
|
30505
30505
|
{
|
|
30506
30506
|
"name": "isTemplateProperty",
|
|
30507
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
30507
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
30508
30508
|
"ctype": "miscellaneous",
|
|
30509
30509
|
"subtype": "function",
|
|
30510
30510
|
"coverageIgnore": false,
|
|
@@ -30624,7 +30624,7 @@
|
|
|
30624
30624
|
},
|
|
30625
30625
|
{
|
|
30626
30626
|
"name": "isTemplateProperty",
|
|
30627
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
30627
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
30628
30628
|
"ctype": "miscellaneous",
|
|
30629
30629
|
"subtype": "function",
|
|
30630
30630
|
"coverageIgnore": false,
|
|
@@ -30654,7 +30654,7 @@
|
|
|
30654
30654
|
},
|
|
30655
30655
|
{
|
|
30656
30656
|
"name": "isTemplateProperty",
|
|
30657
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
30657
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
30658
30658
|
"ctype": "miscellaneous",
|
|
30659
30659
|
"subtype": "function",
|
|
30660
30660
|
"coverageIgnore": false,
|
|
@@ -30684,7 +30684,7 @@
|
|
|
30684
30684
|
},
|
|
30685
30685
|
{
|
|
30686
30686
|
"name": "isTemplateProperty",
|
|
30687
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
30687
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
30688
30688
|
"ctype": "miscellaneous",
|
|
30689
30689
|
"subtype": "function",
|
|
30690
30690
|
"coverageIgnore": false,
|
|
@@ -32340,7 +32340,7 @@
|
|
|
32340
32340
|
},
|
|
32341
32341
|
{
|
|
32342
32342
|
"name": "migrateInlineTemplates",
|
|
32343
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
32343
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
32344
32344
|
"ctype": "miscellaneous",
|
|
32345
32345
|
"subtype": "function",
|
|
32346
32346
|
"coverageIgnore": false,
|
|
@@ -32372,7 +32372,7 @@
|
|
|
32372
32372
|
},
|
|
32373
32373
|
{
|
|
32374
32374
|
"name": "migrateInlineTemplates",
|
|
32375
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
32375
|
+
"file": "packages/core/schematics/migrate-eui-alert/index.ts",
|
|
32376
32376
|
"ctype": "miscellaneous",
|
|
32377
32377
|
"subtype": "function",
|
|
32378
32378
|
"coverageIgnore": false,
|
|
@@ -32404,7 +32404,7 @@
|
|
|
32404
32404
|
},
|
|
32405
32405
|
{
|
|
32406
32406
|
"name": "migrateInlineTemplates",
|
|
32407
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
32407
|
+
"file": "packages/core/schematics/migrate-eui-avatar/index.ts",
|
|
32408
32408
|
"ctype": "miscellaneous",
|
|
32409
32409
|
"subtype": "function",
|
|
32410
32410
|
"coverageIgnore": false,
|
|
@@ -32436,7 +32436,7 @@
|
|
|
32436
32436
|
},
|
|
32437
32437
|
{
|
|
32438
32438
|
"name": "migrateInlineTemplates",
|
|
32439
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
32439
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
32440
32440
|
"ctype": "miscellaneous",
|
|
32441
32441
|
"subtype": "function",
|
|
32442
32442
|
"coverageIgnore": false,
|
|
@@ -32468,7 +32468,7 @@
|
|
|
32468
32468
|
},
|
|
32469
32469
|
{
|
|
32470
32470
|
"name": "migrateInlineTemplates",
|
|
32471
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
32471
|
+
"file": "packages/core/schematics/migrate-eui-chip/index.ts",
|
|
32472
32472
|
"ctype": "miscellaneous",
|
|
32473
32473
|
"subtype": "function",
|
|
32474
32474
|
"coverageIgnore": false,
|
|
@@ -32628,7 +32628,7 @@
|
|
|
32628
32628
|
},
|
|
32629
32629
|
{
|
|
32630
32630
|
"name": "migrateInlineTemplates",
|
|
32631
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
32631
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
32632
32632
|
"ctype": "miscellaneous",
|
|
32633
32633
|
"subtype": "function",
|
|
32634
32634
|
"coverageIgnore": false,
|
|
@@ -32660,7 +32660,7 @@
|
|
|
32660
32660
|
},
|
|
32661
32661
|
{
|
|
32662
32662
|
"name": "migrateInlineTemplates",
|
|
32663
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
32663
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
32664
32664
|
"ctype": "miscellaneous",
|
|
32665
32665
|
"subtype": "function",
|
|
32666
32666
|
"coverageIgnore": false,
|
|
@@ -32692,7 +32692,7 @@
|
|
|
32692
32692
|
},
|
|
32693
32693
|
{
|
|
32694
32694
|
"name": "migrateInlineTemplates",
|
|
32695
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
32695
|
+
"file": "packages/core/schematics/migrate-eui-popover/index.ts",
|
|
32696
32696
|
"ctype": "miscellaneous",
|
|
32697
32697
|
"subtype": "function",
|
|
32698
32698
|
"coverageIgnore": false,
|
|
@@ -32724,7 +32724,7 @@
|
|
|
32724
32724
|
},
|
|
32725
32725
|
{
|
|
32726
32726
|
"name": "migrateInlineTemplates",
|
|
32727
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
32727
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
32728
32728
|
"ctype": "miscellaneous",
|
|
32729
32729
|
"subtype": "function",
|
|
32730
32730
|
"coverageIgnore": false,
|
|
@@ -32880,7 +32880,7 @@
|
|
|
32880
32880
|
},
|
|
32881
32881
|
{
|
|
32882
32882
|
"name": "migrateTemplate",
|
|
32883
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
32883
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
32884
32884
|
"ctype": "miscellaneous",
|
|
32885
32885
|
"subtype": "function",
|
|
32886
32886
|
"coverageIgnore": false,
|
|
@@ -32912,7 +32912,7 @@
|
|
|
32912
32912
|
},
|
|
32913
32913
|
{
|
|
32914
32914
|
"name": "migrateTemplate",
|
|
32915
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
32915
|
+
"file": "packages/core/schematics/migrate-eui-alert/index.ts",
|
|
32916
32916
|
"ctype": "miscellaneous",
|
|
32917
32917
|
"subtype": "function",
|
|
32918
32918
|
"coverageIgnore": false,
|
|
@@ -32944,7 +32944,7 @@
|
|
|
32944
32944
|
},
|
|
32945
32945
|
{
|
|
32946
32946
|
"name": "migrateTemplate",
|
|
32947
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
32947
|
+
"file": "packages/core/schematics/migrate-eui-avatar/index.ts",
|
|
32948
32948
|
"ctype": "miscellaneous",
|
|
32949
32949
|
"subtype": "function",
|
|
32950
32950
|
"coverageIgnore": false,
|
|
@@ -32976,7 +32976,7 @@
|
|
|
32976
32976
|
},
|
|
32977
32977
|
{
|
|
32978
32978
|
"name": "migrateTemplate",
|
|
32979
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
32979
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
32980
32980
|
"ctype": "miscellaneous",
|
|
32981
32981
|
"subtype": "function",
|
|
32982
32982
|
"coverageIgnore": false,
|
|
@@ -33008,7 +33008,7 @@
|
|
|
33008
33008
|
},
|
|
33009
33009
|
{
|
|
33010
33010
|
"name": "migrateTemplate",
|
|
33011
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
33011
|
+
"file": "packages/core/schematics/migrate-eui-chip/index.ts",
|
|
33012
33012
|
"ctype": "miscellaneous",
|
|
33013
33013
|
"subtype": "function",
|
|
33014
33014
|
"coverageIgnore": false,
|
|
@@ -33166,6 +33166,38 @@
|
|
|
33166
33166
|
}
|
|
33167
33167
|
]
|
|
33168
33168
|
},
|
|
33169
|
+
{
|
|
33170
|
+
"name": "migrateTemplate",
|
|
33171
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
33172
|
+
"ctype": "miscellaneous",
|
|
33173
|
+
"subtype": "function",
|
|
33174
|
+
"coverageIgnore": false,
|
|
33175
|
+
"deprecated": false,
|
|
33176
|
+
"deprecationMessage": "",
|
|
33177
|
+
"rawdescription": "",
|
|
33178
|
+
"description": "",
|
|
33179
|
+
"displayName": "migrateTemplate",
|
|
33180
|
+
"args": [
|
|
33181
|
+
{
|
|
33182
|
+
"name": "source",
|
|
33183
|
+
"type": "string",
|
|
33184
|
+
"deprecated": false,
|
|
33185
|
+
"deprecationMessage": ""
|
|
33186
|
+
}
|
|
33187
|
+
],
|
|
33188
|
+
"returnType": "string",
|
|
33189
|
+
"jsdoctags": [
|
|
33190
|
+
{
|
|
33191
|
+
"name": "source",
|
|
33192
|
+
"type": "string",
|
|
33193
|
+
"deprecated": false,
|
|
33194
|
+
"deprecationMessage": "",
|
|
33195
|
+
"tagName": {
|
|
33196
|
+
"text": "param"
|
|
33197
|
+
}
|
|
33198
|
+
}
|
|
33199
|
+
]
|
|
33200
|
+
},
|
|
33169
33201
|
{
|
|
33170
33202
|
"name": "migrateTemplate",
|
|
33171
33203
|
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
@@ -33200,7 +33232,7 @@
|
|
|
33200
33232
|
},
|
|
33201
33233
|
{
|
|
33202
33234
|
"name": "migrateTemplate",
|
|
33203
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
33235
|
+
"file": "packages/core/schematics/migrate-eui-popover/index.ts",
|
|
33204
33236
|
"ctype": "miscellaneous",
|
|
33205
33237
|
"subtype": "function",
|
|
33206
33238
|
"coverageIgnore": false,
|
|
@@ -33232,7 +33264,7 @@
|
|
|
33232
33264
|
},
|
|
33233
33265
|
{
|
|
33234
33266
|
"name": "migrateTemplate",
|
|
33235
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
33267
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
33236
33268
|
"ctype": "miscellaneous",
|
|
33237
33269
|
"subtype": "function",
|
|
33238
33270
|
"coverageIgnore": false,
|
|
@@ -33324,38 +33356,6 @@
|
|
|
33324
33356
|
}
|
|
33325
33357
|
]
|
|
33326
33358
|
},
|
|
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
|
-
},
|
|
33359
33359
|
{
|
|
33360
33360
|
"name": "migrateTemplate",
|
|
33361
33361
|
"file": "packages/core/schematics/migrate-eui-tabs/index.ts",
|
|
@@ -34484,7 +34484,7 @@
|
|
|
34484
34484
|
},
|
|
34485
34485
|
{
|
|
34486
34486
|
"name": "renameTsPropertyAccesses",
|
|
34487
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
34487
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
34488
34488
|
"ctype": "miscellaneous",
|
|
34489
34489
|
"subtype": "function",
|
|
34490
34490
|
"coverageIgnore": false,
|
|
@@ -34516,7 +34516,7 @@
|
|
|
34516
34516
|
},
|
|
34517
34517
|
{
|
|
34518
34518
|
"name": "renameTsPropertyAccesses",
|
|
34519
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
34519
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
34520
34520
|
"ctype": "miscellaneous",
|
|
34521
34521
|
"subtype": "function",
|
|
34522
34522
|
"coverageIgnore": false,
|
|
@@ -35476,7 +35476,7 @@
|
|
|
35476
35476
|
},
|
|
35477
35477
|
{
|
|
35478
35478
|
"name": "unwrapExpression",
|
|
35479
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
35479
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
35480
35480
|
"ctype": "miscellaneous",
|
|
35481
35481
|
"subtype": "function",
|
|
35482
35482
|
"coverageIgnore": false,
|
|
@@ -35506,7 +35506,7 @@
|
|
|
35506
35506
|
},
|
|
35507
35507
|
{
|
|
35508
35508
|
"name": "unwrapExpression",
|
|
35509
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
35509
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
35510
35510
|
"ctype": "miscellaneous",
|
|
35511
35511
|
"subtype": "function",
|
|
35512
35512
|
"coverageIgnore": false,
|
|
@@ -35626,7 +35626,7 @@
|
|
|
35626
35626
|
},
|
|
35627
35627
|
{
|
|
35628
35628
|
"name": "unwrapExpression",
|
|
35629
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
35629
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
35630
35630
|
"ctype": "miscellaneous",
|
|
35631
35631
|
"subtype": "function",
|
|
35632
35632
|
"coverageIgnore": false,
|
|
@@ -35656,7 +35656,7 @@
|
|
|
35656
35656
|
},
|
|
35657
35657
|
{
|
|
35658
35658
|
"name": "unwrapExpression",
|
|
35659
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
35659
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
35660
35660
|
"ctype": "miscellaneous",
|
|
35661
35661
|
"subtype": "function",
|
|
35662
35662
|
"coverageIgnore": false,
|
|
@@ -35686,7 +35686,7 @@
|
|
|
35686
35686
|
},
|
|
35687
35687
|
{
|
|
35688
35688
|
"name": "unwrapExpression",
|
|
35689
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
35689
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
35690
35690
|
"ctype": "miscellaneous",
|
|
35691
35691
|
"subtype": "function",
|
|
35692
35692
|
"coverageIgnore": false,
|
|
@@ -36119,7 +36119,7 @@
|
|
|
36119
36119
|
},
|
|
36120
36120
|
{
|
|
36121
36121
|
"name": "visitDir",
|
|
36122
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
36122
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
36123
36123
|
"ctype": "miscellaneous",
|
|
36124
36124
|
"subtype": "function",
|
|
36125
36125
|
"coverageIgnore": false,
|
|
@@ -36164,7 +36164,7 @@
|
|
|
36164
36164
|
},
|
|
36165
36165
|
{
|
|
36166
36166
|
"name": "visitDir",
|
|
36167
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
36167
|
+
"file": "packages/core/schematics/migrate-eui-alert/index.ts",
|
|
36168
36168
|
"ctype": "miscellaneous",
|
|
36169
36169
|
"subtype": "function",
|
|
36170
36170
|
"coverageIgnore": false,
|
|
@@ -36209,7 +36209,7 @@
|
|
|
36209
36209
|
},
|
|
36210
36210
|
{
|
|
36211
36211
|
"name": "visitDir",
|
|
36212
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
36212
|
+
"file": "packages/core/schematics/migrate-eui-avatar/index.ts",
|
|
36213
36213
|
"ctype": "miscellaneous",
|
|
36214
36214
|
"subtype": "function",
|
|
36215
36215
|
"coverageIgnore": false,
|
|
@@ -36254,7 +36254,7 @@
|
|
|
36254
36254
|
},
|
|
36255
36255
|
{
|
|
36256
36256
|
"name": "visitDir",
|
|
36257
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
36257
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
36258
36258
|
"ctype": "miscellaneous",
|
|
36259
36259
|
"subtype": "function",
|
|
36260
36260
|
"coverageIgnore": false,
|
|
@@ -36299,7 +36299,7 @@
|
|
|
36299
36299
|
},
|
|
36300
36300
|
{
|
|
36301
36301
|
"name": "visitDir",
|
|
36302
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
36302
|
+
"file": "packages/core/schematics/migrate-eui-chip/index.ts",
|
|
36303
36303
|
"ctype": "miscellaneous",
|
|
36304
36304
|
"subtype": "function",
|
|
36305
36305
|
"coverageIgnore": false,
|
|
@@ -36389,7 +36389,7 @@
|
|
|
36389
36389
|
},
|
|
36390
36390
|
{
|
|
36391
36391
|
"name": "visitDir",
|
|
36392
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
36392
|
+
"file": "packages/core/schematics/migrate-eui-datepicker/index.ts",
|
|
36393
36393
|
"ctype": "miscellaneous",
|
|
36394
36394
|
"subtype": "function",
|
|
36395
36395
|
"coverageIgnore": false,
|
|
@@ -36434,7 +36434,7 @@
|
|
|
36434
36434
|
},
|
|
36435
36435
|
{
|
|
36436
36436
|
"name": "visitDir",
|
|
36437
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
36437
|
+
"file": "packages/core/schematics/migrate-eui-discussion-thread/index.ts",
|
|
36438
36438
|
"ctype": "miscellaneous",
|
|
36439
36439
|
"subtype": "function",
|
|
36440
36440
|
"coverageIgnore": false,
|
|
@@ -36569,7 +36569,7 @@
|
|
|
36569
36569
|
},
|
|
36570
36570
|
{
|
|
36571
36571
|
"name": "visitDir",
|
|
36572
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
36572
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
36573
36573
|
"ctype": "miscellaneous",
|
|
36574
36574
|
"subtype": "function",
|
|
36575
36575
|
"coverageIgnore": false,
|
|
@@ -36614,7 +36614,7 @@
|
|
|
36614
36614
|
},
|
|
36615
36615
|
{
|
|
36616
36616
|
"name": "visitDir",
|
|
36617
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
36617
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
36618
36618
|
"ctype": "miscellaneous",
|
|
36619
36619
|
"subtype": "function",
|
|
36620
36620
|
"coverageIgnore": false,
|
|
@@ -36659,7 +36659,7 @@
|
|
|
36659
36659
|
},
|
|
36660
36660
|
{
|
|
36661
36661
|
"name": "visitDir",
|
|
36662
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
36662
|
+
"file": "packages/core/schematics/migrate-eui-popover/index.ts",
|
|
36663
36663
|
"ctype": "miscellaneous",
|
|
36664
36664
|
"subtype": "function",
|
|
36665
36665
|
"coverageIgnore": false,
|
|
@@ -36704,7 +36704,7 @@
|
|
|
36704
36704
|
},
|
|
36705
36705
|
{
|
|
36706
36706
|
"name": "visitDir",
|
|
36707
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
36707
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
36708
36708
|
"ctype": "miscellaneous",
|
|
36709
36709
|
"subtype": "function",
|
|
36710
36710
|
"coverageIgnore": false,
|
|
@@ -36749,7 +36749,7 @@
|
|
|
36749
36749
|
},
|
|
36750
36750
|
{
|
|
36751
36751
|
"name": "visitDir",
|
|
36752
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
36752
|
+
"file": "packages/core/schematics/migrate-eui-table/index.ts",
|
|
36753
36753
|
"ctype": "miscellaneous",
|
|
36754
36754
|
"subtype": "function",
|
|
36755
36755
|
"coverageIgnore": false,
|
|
@@ -37064,7 +37064,7 @@
|
|
|
37064
37064
|
},
|
|
37065
37065
|
{
|
|
37066
37066
|
"name": "visitNodes",
|
|
37067
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
37067
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
37068
37068
|
"ctype": "miscellaneous",
|
|
37069
37069
|
"subtype": "function",
|
|
37070
37070
|
"coverageIgnore": false,
|
|
@@ -37080,7 +37080,7 @@
|
|
|
37080
37080
|
"deprecationMessage": ""
|
|
37081
37081
|
},
|
|
37082
37082
|
{
|
|
37083
|
-
"name": "
|
|
37083
|
+
"name": "edits",
|
|
37084
37084
|
"deprecated": false,
|
|
37085
37085
|
"deprecationMessage": ""
|
|
37086
37086
|
}
|
|
@@ -37096,7 +37096,7 @@
|
|
|
37096
37096
|
}
|
|
37097
37097
|
},
|
|
37098
37098
|
{
|
|
37099
|
-
"name": "
|
|
37099
|
+
"name": "edits",
|
|
37100
37100
|
"deprecated": false,
|
|
37101
37101
|
"deprecationMessage": "",
|
|
37102
37102
|
"tagName": {
|
|
@@ -37107,7 +37107,7 @@
|
|
|
37107
37107
|
},
|
|
37108
37108
|
{
|
|
37109
37109
|
"name": "visitNodes",
|
|
37110
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
37110
|
+
"file": "packages/core/schematics/migrate-eui-alert/index.ts",
|
|
37111
37111
|
"ctype": "miscellaneous",
|
|
37112
37112
|
"subtype": "function",
|
|
37113
37113
|
"coverageIgnore": false,
|
|
@@ -37150,7 +37150,7 @@
|
|
|
37150
37150
|
},
|
|
37151
37151
|
{
|
|
37152
37152
|
"name": "visitNodes",
|
|
37153
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
37153
|
+
"file": "packages/core/schematics/migrate-eui-avatar/index.ts",
|
|
37154
37154
|
"ctype": "miscellaneous",
|
|
37155
37155
|
"subtype": "function",
|
|
37156
37156
|
"coverageIgnore": false,
|
|
@@ -37166,7 +37166,7 @@
|
|
|
37166
37166
|
"deprecationMessage": ""
|
|
37167
37167
|
},
|
|
37168
37168
|
{
|
|
37169
|
-
"name": "
|
|
37169
|
+
"name": "removals",
|
|
37170
37170
|
"deprecated": false,
|
|
37171
37171
|
"deprecationMessage": ""
|
|
37172
37172
|
}
|
|
@@ -37182,7 +37182,7 @@
|
|
|
37182
37182
|
}
|
|
37183
37183
|
},
|
|
37184
37184
|
{
|
|
37185
|
-
"name": "
|
|
37185
|
+
"name": "removals",
|
|
37186
37186
|
"deprecated": false,
|
|
37187
37187
|
"deprecationMessage": "",
|
|
37188
37188
|
"tagName": {
|
|
@@ -37193,7 +37193,7 @@
|
|
|
37193
37193
|
},
|
|
37194
37194
|
{
|
|
37195
37195
|
"name": "visitNodes",
|
|
37196
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
37196
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
37197
37197
|
"ctype": "miscellaneous",
|
|
37198
37198
|
"subtype": "function",
|
|
37199
37199
|
"coverageIgnore": false,
|
|
@@ -37209,7 +37209,7 @@
|
|
|
37209
37209
|
"deprecationMessage": ""
|
|
37210
37210
|
},
|
|
37211
37211
|
{
|
|
37212
|
-
"name": "
|
|
37212
|
+
"name": "edits",
|
|
37213
37213
|
"deprecated": false,
|
|
37214
37214
|
"deprecationMessage": ""
|
|
37215
37215
|
}
|
|
@@ -37225,7 +37225,7 @@
|
|
|
37225
37225
|
}
|
|
37226
37226
|
},
|
|
37227
37227
|
{
|
|
37228
|
-
"name": "
|
|
37228
|
+
"name": "edits",
|
|
37229
37229
|
"deprecated": false,
|
|
37230
37230
|
"deprecationMessage": "",
|
|
37231
37231
|
"tagName": {
|
|
@@ -37236,7 +37236,7 @@
|
|
|
37236
37236
|
},
|
|
37237
37237
|
{
|
|
37238
37238
|
"name": "visitNodes",
|
|
37239
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
37239
|
+
"file": "packages/core/schematics/migrate-eui-chip/index.ts",
|
|
37240
37240
|
"ctype": "miscellaneous",
|
|
37241
37241
|
"subtype": "function",
|
|
37242
37242
|
"coverageIgnore": false,
|
|
@@ -37252,7 +37252,7 @@
|
|
|
37252
37252
|
"deprecationMessage": ""
|
|
37253
37253
|
},
|
|
37254
37254
|
{
|
|
37255
|
-
"name": "
|
|
37255
|
+
"name": "removals",
|
|
37256
37256
|
"deprecated": false,
|
|
37257
37257
|
"deprecationMessage": ""
|
|
37258
37258
|
}
|
|
@@ -37268,7 +37268,7 @@
|
|
|
37268
37268
|
}
|
|
37269
37269
|
},
|
|
37270
37270
|
{
|
|
37271
|
-
"name": "
|
|
37271
|
+
"name": "removals",
|
|
37272
37272
|
"deprecated": false,
|
|
37273
37273
|
"deprecationMessage": "",
|
|
37274
37274
|
"tagName": {
|
|
@@ -37481,7 +37481,7 @@
|
|
|
37481
37481
|
},
|
|
37482
37482
|
{
|
|
37483
37483
|
"name": "visitNodes",
|
|
37484
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
37484
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
37485
37485
|
"ctype": "miscellaneous",
|
|
37486
37486
|
"subtype": "function",
|
|
37487
37487
|
"coverageIgnore": false,
|
|
@@ -37524,7 +37524,7 @@
|
|
|
37524
37524
|
},
|
|
37525
37525
|
{
|
|
37526
37526
|
"name": "visitNodes",
|
|
37527
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
37527
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
37528
37528
|
"ctype": "miscellaneous",
|
|
37529
37529
|
"subtype": "function",
|
|
37530
37530
|
"coverageIgnore": false,
|
|
@@ -37567,7 +37567,7 @@
|
|
|
37567
37567
|
},
|
|
37568
37568
|
{
|
|
37569
37569
|
"name": "visitNodes",
|
|
37570
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
37570
|
+
"file": "packages/core/schematics/migrate-eui-popover/index.ts",
|
|
37571
37571
|
"ctype": "miscellaneous",
|
|
37572
37572
|
"subtype": "function",
|
|
37573
37573
|
"coverageIgnore": false,
|
|
@@ -37583,7 +37583,7 @@
|
|
|
37583
37583
|
"deprecationMessage": ""
|
|
37584
37584
|
},
|
|
37585
37585
|
{
|
|
37586
|
-
"name": "
|
|
37586
|
+
"name": "removals",
|
|
37587
37587
|
"deprecated": false,
|
|
37588
37588
|
"deprecationMessage": ""
|
|
37589
37589
|
}
|
|
@@ -37599,7 +37599,7 @@
|
|
|
37599
37599
|
}
|
|
37600
37600
|
},
|
|
37601
37601
|
{
|
|
37602
|
-
"name": "
|
|
37602
|
+
"name": "removals",
|
|
37603
37603
|
"deprecated": false,
|
|
37604
37604
|
"deprecationMessage": "",
|
|
37605
37605
|
"tagName": {
|
|
@@ -37610,7 +37610,7 @@
|
|
|
37610
37610
|
},
|
|
37611
37611
|
{
|
|
37612
37612
|
"name": "visitNodes",
|
|
37613
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
37613
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
37614
37614
|
"ctype": "miscellaneous",
|
|
37615
37615
|
"subtype": "function",
|
|
37616
37616
|
"coverageIgnore": false,
|
|
@@ -37626,7 +37626,7 @@
|
|
|
37626
37626
|
"deprecationMessage": ""
|
|
37627
37627
|
},
|
|
37628
37628
|
{
|
|
37629
|
-
"name": "
|
|
37629
|
+
"name": "edits",
|
|
37630
37630
|
"deprecated": false,
|
|
37631
37631
|
"deprecationMessage": ""
|
|
37632
37632
|
}
|
|
@@ -37642,7 +37642,7 @@
|
|
|
37642
37642
|
}
|
|
37643
37643
|
},
|
|
37644
37644
|
{
|
|
37645
|
-
"name": "
|
|
37645
|
+
"name": "edits",
|
|
37646
37646
|
"deprecated": false,
|
|
37647
37647
|
"deprecationMessage": "",
|
|
37648
37648
|
"tagName": {
|
|
@@ -39379,74 +39379,74 @@
|
|
|
39379
39379
|
"defaultValue": "'iconSvgType'"
|
|
39380
39380
|
}
|
|
39381
39381
|
],
|
|
39382
|
-
"packages/core/schematics/migrate-eui-icon-
|
|
39382
|
+
"packages/core/schematics/migrate-eui-icon-svg/index.ts": [
|
|
39383
39383
|
{
|
|
39384
39384
|
"name": "COMPONENT_TAG",
|
|
39385
39385
|
"ctype": "miscellaneous",
|
|
39386
39386
|
"subtype": "variable",
|
|
39387
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
39387
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
39388
39388
|
"coverageIgnore": false,
|
|
39389
39389
|
"deprecated": false,
|
|
39390
39390
|
"deprecationMessage": "",
|
|
39391
39391
|
"type": "string",
|
|
39392
|
-
"defaultValue": "'eui-icon-
|
|
39392
|
+
"defaultValue": "'eui-icon-svg'"
|
|
39393
39393
|
},
|
|
39394
39394
|
{
|
|
39395
|
-
"name": "
|
|
39395
|
+
"name": "INPUT_RENAMES",
|
|
39396
39396
|
"ctype": "miscellaneous",
|
|
39397
39397
|
"subtype": "variable",
|
|
39398
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
39398
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
39399
39399
|
"coverageIgnore": false,
|
|
39400
39400
|
"deprecated": false,
|
|
39401
39401
|
"deprecationMessage": "",
|
|
39402
|
-
"type": "
|
|
39403
|
-
"defaultValue": "'
|
|
39402
|
+
"type": "unknown",
|
|
39403
|
+
"defaultValue": "new Map([\n ['variant', 'fillColor'],\n ['aria-label', 'ariaLabel'],\n])"
|
|
39404
39404
|
},
|
|
39405
39405
|
{
|
|
39406
|
-
"name": "
|
|
39406
|
+
"name": "TS_PROPERTY_RENAMES",
|
|
39407
39407
|
"ctype": "miscellaneous",
|
|
39408
39408
|
"subtype": "variable",
|
|
39409
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
39409
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
39410
39410
|
"coverageIgnore": false,
|
|
39411
39411
|
"deprecated": false,
|
|
39412
39412
|
"deprecationMessage": "",
|
|
39413
|
-
"type": "
|
|
39414
|
-
"defaultValue": "'
|
|
39413
|
+
"type": "unknown",
|
|
39414
|
+
"defaultValue": "new Map([\n ['variant', 'fillColor'],\n])"
|
|
39415
39415
|
}
|
|
39416
39416
|
],
|
|
39417
|
-
"packages/core/schematics/migrate-eui-icon-
|
|
39417
|
+
"packages/core/schematics/migrate-eui-icon-toggle/index.ts": [
|
|
39418
39418
|
{
|
|
39419
39419
|
"name": "COMPONENT_TAG",
|
|
39420
39420
|
"ctype": "miscellaneous",
|
|
39421
39421
|
"subtype": "variable",
|
|
39422
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
39422
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
39423
39423
|
"coverageIgnore": false,
|
|
39424
39424
|
"deprecated": false,
|
|
39425
39425
|
"deprecationMessage": "",
|
|
39426
39426
|
"type": "string",
|
|
39427
|
-
"defaultValue": "'eui-icon-
|
|
39427
|
+
"defaultValue": "'eui-icon-toggle'"
|
|
39428
39428
|
},
|
|
39429
39429
|
{
|
|
39430
|
-
"name": "
|
|
39430
|
+
"name": "NEW_NAME",
|
|
39431
39431
|
"ctype": "miscellaneous",
|
|
39432
39432
|
"subtype": "variable",
|
|
39433
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
39433
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
39434
39434
|
"coverageIgnore": false,
|
|
39435
39435
|
"deprecated": false,
|
|
39436
39436
|
"deprecationMessage": "",
|
|
39437
|
-
"type": "
|
|
39438
|
-
"defaultValue": "
|
|
39437
|
+
"type": "string",
|
|
39438
|
+
"defaultValue": "'iconSvgName'"
|
|
39439
39439
|
},
|
|
39440
39440
|
{
|
|
39441
|
-
"name": "
|
|
39441
|
+
"name": "OLD_NAME",
|
|
39442
39442
|
"ctype": "miscellaneous",
|
|
39443
39443
|
"subtype": "variable",
|
|
39444
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
39444
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
39445
39445
|
"coverageIgnore": false,
|
|
39446
39446
|
"deprecated": false,
|
|
39447
39447
|
"deprecationMessage": "",
|
|
39448
|
-
"type": "
|
|
39449
|
-
"defaultValue": "
|
|
39448
|
+
"type": "string",
|
|
39449
|
+
"defaultValue": "'iconSet'"
|
|
39450
39450
|
}
|
|
39451
39451
|
],
|
|
39452
39452
|
"packages/core/src/lib/helpers/event-helpers.ts": [
|
|
@@ -44951,10 +44951,10 @@
|
|
|
44951
44951
|
]
|
|
44952
44952
|
}
|
|
44953
44953
|
],
|
|
44954
|
-
"packages/core/schematics/migrate-eui-
|
|
44954
|
+
"packages/core/schematics/migrate-eui-accent/index.ts": [
|
|
44955
44955
|
{
|
|
44956
44956
|
"name": "applyEdits",
|
|
44957
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
44957
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
44958
44958
|
"ctype": "miscellaneous",
|
|
44959
44959
|
"subtype": "function",
|
|
44960
44960
|
"coverageIgnore": false,
|
|
@@ -44999,7 +44999,7 @@
|
|
|
44999
44999
|
},
|
|
45000
45000
|
{
|
|
45001
45001
|
"name": "collectRenames",
|
|
45002
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45002
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
45003
45003
|
"ctype": "miscellaneous",
|
|
45004
45004
|
"subtype": "function",
|
|
45005
45005
|
"coverageIgnore": false,
|
|
@@ -45043,8 +45043,8 @@
|
|
|
45043
45043
|
]
|
|
45044
45044
|
},
|
|
45045
45045
|
{
|
|
45046
|
-
"name": "
|
|
45047
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45046
|
+
"name": "isComponentMetadataProperty",
|
|
45047
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
45048
45048
|
"ctype": "miscellaneous",
|
|
45049
45049
|
"subtype": "function",
|
|
45050
45050
|
"coverageIgnore": false,
|
|
@@ -45052,11 +45052,10 @@
|
|
|
45052
45052
|
"deprecationMessage": "",
|
|
45053
45053
|
"rawdescription": "",
|
|
45054
45054
|
"description": "",
|
|
45055
|
-
"displayName": "
|
|
45055
|
+
"displayName": "isComponentMetadataProperty",
|
|
45056
45056
|
"args": [
|
|
45057
45057
|
{
|
|
45058
|
-
"name": "
|
|
45059
|
-
"type": "TmplAstElement",
|
|
45058
|
+
"name": "node",
|
|
45060
45059
|
"deprecated": false,
|
|
45061
45060
|
"deprecationMessage": ""
|
|
45062
45061
|
}
|
|
@@ -45064,8 +45063,7 @@
|
|
|
45064
45063
|
"returnType": "boolean",
|
|
45065
45064
|
"jsdoctags": [
|
|
45066
45065
|
{
|
|
45067
|
-
"name": "
|
|
45068
|
-
"type": "TmplAstElement",
|
|
45066
|
+
"name": "node",
|
|
45069
45067
|
"deprecated": false,
|
|
45070
45068
|
"deprecationMessage": "",
|
|
45071
45069
|
"tagName": {
|
|
@@ -45075,8 +45073,8 @@
|
|
|
45075
45073
|
]
|
|
45076
45074
|
},
|
|
45077
45075
|
{
|
|
45078
|
-
"name": "
|
|
45079
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45076
|
+
"name": "isEuiElement",
|
|
45077
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
45080
45078
|
"ctype": "miscellaneous",
|
|
45081
45079
|
"subtype": "function",
|
|
45082
45080
|
"coverageIgnore": false,
|
|
@@ -45084,10 +45082,11 @@
|
|
|
45084
45082
|
"deprecationMessage": "",
|
|
45085
45083
|
"rawdescription": "",
|
|
45086
45084
|
"description": "",
|
|
45087
|
-
"displayName": "
|
|
45085
|
+
"displayName": "isEuiElement",
|
|
45088
45086
|
"args": [
|
|
45089
45087
|
{
|
|
45090
|
-
"name": "
|
|
45088
|
+
"name": "element",
|
|
45089
|
+
"type": "TmplAstElement",
|
|
45091
45090
|
"deprecated": false,
|
|
45092
45091
|
"deprecationMessage": ""
|
|
45093
45092
|
}
|
|
@@ -45095,7 +45094,8 @@
|
|
|
45095
45094
|
"returnType": "boolean",
|
|
45096
45095
|
"jsdoctags": [
|
|
45097
45096
|
{
|
|
45098
|
-
"name": "
|
|
45097
|
+
"name": "element",
|
|
45098
|
+
"type": "TmplAstElement",
|
|
45099
45099
|
"deprecated": false,
|
|
45100
45100
|
"deprecationMessage": "",
|
|
45101
45101
|
"tagName": {
|
|
@@ -45106,7 +45106,7 @@
|
|
|
45106
45106
|
},
|
|
45107
45107
|
{
|
|
45108
45108
|
"name": "isTemplateProperty",
|
|
45109
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45109
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
45110
45110
|
"ctype": "miscellaneous",
|
|
45111
45111
|
"subtype": "function",
|
|
45112
45112
|
"coverageIgnore": false,
|
|
@@ -45135,8 +45135,8 @@
|
|
|
45135
45135
|
]
|
|
45136
45136
|
},
|
|
45137
45137
|
{
|
|
45138
|
-
"name": "
|
|
45139
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45138
|
+
"name": "migrateEuiAccent",
|
|
45139
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
45140
45140
|
"ctype": "miscellaneous",
|
|
45141
45141
|
"subtype": "function",
|
|
45142
45142
|
"coverageIgnore": false,
|
|
@@ -45144,7 +45144,7 @@
|
|
|
45144
45144
|
"deprecationMessage": "",
|
|
45145
45145
|
"rawdescription": "",
|
|
45146
45146
|
"description": "",
|
|
45147
|
-
"displayName": "
|
|
45147
|
+
"displayName": "migrateEuiAccent",
|
|
45148
45148
|
"args": [
|
|
45149
45149
|
{
|
|
45150
45150
|
"name": "options",
|
|
@@ -45170,7 +45170,7 @@
|
|
|
45170
45170
|
},
|
|
45171
45171
|
{
|
|
45172
45172
|
"name": "migrateInlineTemplates",
|
|
45173
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45173
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
45174
45174
|
"ctype": "miscellaneous",
|
|
45175
45175
|
"subtype": "function",
|
|
45176
45176
|
"coverageIgnore": false,
|
|
@@ -45202,7 +45202,7 @@
|
|
|
45202
45202
|
},
|
|
45203
45203
|
{
|
|
45204
45204
|
"name": "migrateTemplate",
|
|
45205
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45205
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
45206
45206
|
"ctype": "miscellaneous",
|
|
45207
45207
|
"subtype": "function",
|
|
45208
45208
|
"coverageIgnore": false,
|
|
@@ -45232,9 +45232,41 @@
|
|
|
45232
45232
|
}
|
|
45233
45233
|
]
|
|
45234
45234
|
},
|
|
45235
|
+
{
|
|
45236
|
+
"name": "renameTsPropertyAccesses",
|
|
45237
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
45238
|
+
"ctype": "miscellaneous",
|
|
45239
|
+
"subtype": "function",
|
|
45240
|
+
"coverageIgnore": false,
|
|
45241
|
+
"deprecated": false,
|
|
45242
|
+
"deprecationMessage": "",
|
|
45243
|
+
"rawdescription": "",
|
|
45244
|
+
"description": "",
|
|
45245
|
+
"displayName": "renameTsPropertyAccesses",
|
|
45246
|
+
"args": [
|
|
45247
|
+
{
|
|
45248
|
+
"name": "source",
|
|
45249
|
+
"type": "string",
|
|
45250
|
+
"deprecated": false,
|
|
45251
|
+
"deprecationMessage": ""
|
|
45252
|
+
}
|
|
45253
|
+
],
|
|
45254
|
+
"returnType": "string",
|
|
45255
|
+
"jsdoctags": [
|
|
45256
|
+
{
|
|
45257
|
+
"name": "source",
|
|
45258
|
+
"type": "string",
|
|
45259
|
+
"deprecated": false,
|
|
45260
|
+
"deprecationMessage": "",
|
|
45261
|
+
"tagName": {
|
|
45262
|
+
"text": "param"
|
|
45263
|
+
}
|
|
45264
|
+
}
|
|
45265
|
+
]
|
|
45266
|
+
},
|
|
45235
45267
|
{
|
|
45236
45268
|
"name": "unwrapExpression",
|
|
45237
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45269
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
45238
45270
|
"ctype": "miscellaneous",
|
|
45239
45271
|
"subtype": "function",
|
|
45240
45272
|
"coverageIgnore": false,
|
|
@@ -45264,7 +45296,7 @@
|
|
|
45264
45296
|
},
|
|
45265
45297
|
{
|
|
45266
45298
|
"name": "visitDir",
|
|
45267
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45299
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
45268
45300
|
"ctype": "miscellaneous",
|
|
45269
45301
|
"subtype": "function",
|
|
45270
45302
|
"coverageIgnore": false,
|
|
@@ -45309,7 +45341,7 @@
|
|
|
45309
45341
|
},
|
|
45310
45342
|
{
|
|
45311
45343
|
"name": "visitNodes",
|
|
45312
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45344
|
+
"file": "packages/core/schematics/migrate-eui-accent/index.ts",
|
|
45313
45345
|
"ctype": "miscellaneous",
|
|
45314
45346
|
"subtype": "function",
|
|
45315
45347
|
"coverageIgnore": false,
|
|
@@ -45351,10 +45383,10 @@
|
|
|
45351
45383
|
]
|
|
45352
45384
|
}
|
|
45353
45385
|
],
|
|
45354
|
-
"packages/core/schematics/migrate-eui-
|
|
45386
|
+
"packages/core/schematics/migrate-eui-button/index.ts": [
|
|
45355
45387
|
{
|
|
45356
45388
|
"name": "applyEdits",
|
|
45357
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45389
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
45358
45390
|
"ctype": "miscellaneous",
|
|
45359
45391
|
"subtype": "function",
|
|
45360
45392
|
"coverageIgnore": false,
|
|
@@ -45399,7 +45431,7 @@
|
|
|
45399
45431
|
},
|
|
45400
45432
|
{
|
|
45401
45433
|
"name": "collectRenames",
|
|
45402
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45434
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
45403
45435
|
"ctype": "miscellaneous",
|
|
45404
45436
|
"subtype": "function",
|
|
45405
45437
|
"coverageIgnore": false,
|
|
@@ -45443,8 +45475,8 @@
|
|
|
45443
45475
|
]
|
|
45444
45476
|
},
|
|
45445
45477
|
{
|
|
45446
|
-
"name": "
|
|
45447
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45478
|
+
"name": "hasEuiButtonAttribute",
|
|
45479
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
45448
45480
|
"ctype": "miscellaneous",
|
|
45449
45481
|
"subtype": "function",
|
|
45450
45482
|
"coverageIgnore": false,
|
|
@@ -45452,10 +45484,11 @@
|
|
|
45452
45484
|
"deprecationMessage": "",
|
|
45453
45485
|
"rawdescription": "",
|
|
45454
45486
|
"description": "",
|
|
45455
|
-
"displayName": "
|
|
45487
|
+
"displayName": "hasEuiButtonAttribute",
|
|
45456
45488
|
"args": [
|
|
45457
45489
|
{
|
|
45458
|
-
"name": "
|
|
45490
|
+
"name": "element",
|
|
45491
|
+
"type": "TmplAstElement",
|
|
45459
45492
|
"deprecated": false,
|
|
45460
45493
|
"deprecationMessage": ""
|
|
45461
45494
|
}
|
|
@@ -45463,7 +45496,8 @@
|
|
|
45463
45496
|
"returnType": "boolean",
|
|
45464
45497
|
"jsdoctags": [
|
|
45465
45498
|
{
|
|
45466
|
-
"name": "
|
|
45499
|
+
"name": "element",
|
|
45500
|
+
"type": "TmplAstElement",
|
|
45467
45501
|
"deprecated": false,
|
|
45468
45502
|
"deprecationMessage": "",
|
|
45469
45503
|
"tagName": {
|
|
@@ -45473,8 +45507,8 @@
|
|
|
45473
45507
|
]
|
|
45474
45508
|
},
|
|
45475
45509
|
{
|
|
45476
|
-
"name": "
|
|
45477
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45510
|
+
"name": "isComponentMetadataProperty",
|
|
45511
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
45478
45512
|
"ctype": "miscellaneous",
|
|
45479
45513
|
"subtype": "function",
|
|
45480
45514
|
"coverageIgnore": false,
|
|
@@ -45482,11 +45516,10 @@
|
|
|
45482
45516
|
"deprecationMessage": "",
|
|
45483
45517
|
"rawdescription": "",
|
|
45484
45518
|
"description": "",
|
|
45485
|
-
"displayName": "
|
|
45519
|
+
"displayName": "isComponentMetadataProperty",
|
|
45486
45520
|
"args": [
|
|
45487
45521
|
{
|
|
45488
|
-
"name": "
|
|
45489
|
-
"type": "TmplAstElement",
|
|
45522
|
+
"name": "node",
|
|
45490
45523
|
"deprecated": false,
|
|
45491
45524
|
"deprecationMessage": ""
|
|
45492
45525
|
}
|
|
@@ -45494,8 +45527,7 @@
|
|
|
45494
45527
|
"returnType": "boolean",
|
|
45495
45528
|
"jsdoctags": [
|
|
45496
45529
|
{
|
|
45497
|
-
"name": "
|
|
45498
|
-
"type": "TmplAstElement",
|
|
45530
|
+
"name": "node",
|
|
45499
45531
|
"deprecated": false,
|
|
45500
45532
|
"deprecationMessage": "",
|
|
45501
45533
|
"tagName": {
|
|
@@ -45506,7 +45538,7 @@
|
|
|
45506
45538
|
},
|
|
45507
45539
|
{
|
|
45508
45540
|
"name": "isTemplateProperty",
|
|
45509
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45541
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
45510
45542
|
"ctype": "miscellaneous",
|
|
45511
45543
|
"subtype": "function",
|
|
45512
45544
|
"coverageIgnore": false,
|
|
@@ -45535,8 +45567,8 @@
|
|
|
45535
45567
|
]
|
|
45536
45568
|
},
|
|
45537
45569
|
{
|
|
45538
|
-
"name": "
|
|
45539
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45570
|
+
"name": "migrateEuiButton",
|
|
45571
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
45540
45572
|
"ctype": "miscellaneous",
|
|
45541
45573
|
"subtype": "function",
|
|
45542
45574
|
"coverageIgnore": false,
|
|
@@ -45544,7 +45576,7 @@
|
|
|
45544
45576
|
"deprecationMessage": "",
|
|
45545
45577
|
"rawdescription": "",
|
|
45546
45578
|
"description": "",
|
|
45547
|
-
"displayName": "
|
|
45579
|
+
"displayName": "migrateEuiButton",
|
|
45548
45580
|
"args": [
|
|
45549
45581
|
{
|
|
45550
45582
|
"name": "options",
|
|
@@ -45570,7 +45602,7 @@
|
|
|
45570
45602
|
},
|
|
45571
45603
|
{
|
|
45572
45604
|
"name": "migrateInlineTemplates",
|
|
45573
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45605
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
45574
45606
|
"ctype": "miscellaneous",
|
|
45575
45607
|
"subtype": "function",
|
|
45576
45608
|
"coverageIgnore": false,
|
|
@@ -45602,7 +45634,7 @@
|
|
|
45602
45634
|
},
|
|
45603
45635
|
{
|
|
45604
45636
|
"name": "migrateTemplate",
|
|
45605
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45637
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
45606
45638
|
"ctype": "miscellaneous",
|
|
45607
45639
|
"subtype": "function",
|
|
45608
45640
|
"coverageIgnore": false,
|
|
@@ -45632,41 +45664,9 @@
|
|
|
45632
45664
|
}
|
|
45633
45665
|
]
|
|
45634
45666
|
},
|
|
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
|
-
},
|
|
45667
45667
|
{
|
|
45668
45668
|
"name": "unwrapExpression",
|
|
45669
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45669
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
45670
45670
|
"ctype": "miscellaneous",
|
|
45671
45671
|
"subtype": "function",
|
|
45672
45672
|
"coverageIgnore": false,
|
|
@@ -45696,7 +45696,7 @@
|
|
|
45696
45696
|
},
|
|
45697
45697
|
{
|
|
45698
45698
|
"name": "visitDir",
|
|
45699
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45699
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
45700
45700
|
"ctype": "miscellaneous",
|
|
45701
45701
|
"subtype": "function",
|
|
45702
45702
|
"coverageIgnore": false,
|
|
@@ -45741,7 +45741,7 @@
|
|
|
45741
45741
|
},
|
|
45742
45742
|
{
|
|
45743
45743
|
"name": "visitNodes",
|
|
45744
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
45744
|
+
"file": "packages/core/schematics/migrate-eui-button/index.ts",
|
|
45745
45745
|
"ctype": "miscellaneous",
|
|
45746
45746
|
"subtype": "function",
|
|
45747
45747
|
"coverageIgnore": false,
|
|
@@ -46581,10 +46581,10 @@
|
|
|
46581
46581
|
]
|
|
46582
46582
|
}
|
|
46583
46583
|
],
|
|
46584
|
-
"packages/core/schematics/migrate-eui-icon-
|
|
46584
|
+
"packages/core/schematics/migrate-eui-icon-svg/index.ts": [
|
|
46585
46585
|
{
|
|
46586
46586
|
"name": "applyEdits",
|
|
46587
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
46587
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
46588
46588
|
"ctype": "miscellaneous",
|
|
46589
46589
|
"subtype": "function",
|
|
46590
46590
|
"coverageIgnore": false,
|
|
@@ -46629,7 +46629,7 @@
|
|
|
46629
46629
|
},
|
|
46630
46630
|
{
|
|
46631
46631
|
"name": "collectRenames",
|
|
46632
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
46632
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
46633
46633
|
"ctype": "miscellaneous",
|
|
46634
46634
|
"subtype": "function",
|
|
46635
46635
|
"coverageIgnore": false,
|
|
@@ -46674,7 +46674,7 @@
|
|
|
46674
46674
|
},
|
|
46675
46675
|
{
|
|
46676
46676
|
"name": "isComponentMetadataProperty",
|
|
46677
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
46677
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
46678
46678
|
"ctype": "miscellaneous",
|
|
46679
46679
|
"subtype": "function",
|
|
46680
46680
|
"coverageIgnore": false,
|
|
@@ -46704,7 +46704,7 @@
|
|
|
46704
46704
|
},
|
|
46705
46705
|
{
|
|
46706
46706
|
"name": "isTemplateProperty",
|
|
46707
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
46707
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
46708
46708
|
"ctype": "miscellaneous",
|
|
46709
46709
|
"subtype": "function",
|
|
46710
46710
|
"coverageIgnore": false,
|
|
@@ -46733,8 +46733,8 @@
|
|
|
46733
46733
|
]
|
|
46734
46734
|
},
|
|
46735
46735
|
{
|
|
46736
|
-
"name": "
|
|
46737
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
46736
|
+
"name": "migrateEuiIconSvg",
|
|
46737
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
46738
46738
|
"ctype": "miscellaneous",
|
|
46739
46739
|
"subtype": "function",
|
|
46740
46740
|
"coverageIgnore": false,
|
|
@@ -46742,7 +46742,7 @@
|
|
|
46742
46742
|
"deprecationMessage": "",
|
|
46743
46743
|
"rawdescription": "",
|
|
46744
46744
|
"description": "",
|
|
46745
|
-
"displayName": "
|
|
46745
|
+
"displayName": "migrateEuiIconSvg",
|
|
46746
46746
|
"args": [
|
|
46747
46747
|
{
|
|
46748
46748
|
"name": "options",
|
|
@@ -46768,7 +46768,7 @@
|
|
|
46768
46768
|
},
|
|
46769
46769
|
{
|
|
46770
46770
|
"name": "migrateInlineTemplates",
|
|
46771
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
46771
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
46772
46772
|
"ctype": "miscellaneous",
|
|
46773
46773
|
"subtype": "function",
|
|
46774
46774
|
"coverageIgnore": false,
|
|
@@ -46800,7 +46800,7 @@
|
|
|
46800
46800
|
},
|
|
46801
46801
|
{
|
|
46802
46802
|
"name": "migrateTemplate",
|
|
46803
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
46803
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
46804
46804
|
"ctype": "miscellaneous",
|
|
46805
46805
|
"subtype": "function",
|
|
46806
46806
|
"coverageIgnore": false,
|
|
@@ -46832,7 +46832,7 @@
|
|
|
46832
46832
|
},
|
|
46833
46833
|
{
|
|
46834
46834
|
"name": "renameTsPropertyAccesses",
|
|
46835
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
46835
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
46836
46836
|
"ctype": "miscellaneous",
|
|
46837
46837
|
"subtype": "function",
|
|
46838
46838
|
"coverageIgnore": false,
|
|
@@ -46864,7 +46864,7 @@
|
|
|
46864
46864
|
},
|
|
46865
46865
|
{
|
|
46866
46866
|
"name": "unwrapExpression",
|
|
46867
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
46867
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
46868
46868
|
"ctype": "miscellaneous",
|
|
46869
46869
|
"subtype": "function",
|
|
46870
46870
|
"coverageIgnore": false,
|
|
@@ -46894,7 +46894,7 @@
|
|
|
46894
46894
|
},
|
|
46895
46895
|
{
|
|
46896
46896
|
"name": "visitDir",
|
|
46897
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
46897
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
46898
46898
|
"ctype": "miscellaneous",
|
|
46899
46899
|
"subtype": "function",
|
|
46900
46900
|
"coverageIgnore": false,
|
|
@@ -46939,7 +46939,7 @@
|
|
|
46939
46939
|
},
|
|
46940
46940
|
{
|
|
46941
46941
|
"name": "visitNodes",
|
|
46942
|
-
"file": "packages/core/schematics/migrate-eui-icon-
|
|
46942
|
+
"file": "packages/core/schematics/migrate-eui-icon-svg/index.ts",
|
|
46943
46943
|
"ctype": "miscellaneous",
|
|
46944
46944
|
"subtype": "function",
|
|
46945
46945
|
"coverageIgnore": false,
|
|
@@ -46981,10 +46981,10 @@
|
|
|
46981
46981
|
]
|
|
46982
46982
|
}
|
|
46983
46983
|
],
|
|
46984
|
-
"packages/core/schematics/migrate-eui-
|
|
46984
|
+
"packages/core/schematics/migrate-eui-icon-toggle/index.ts": [
|
|
46985
46985
|
{
|
|
46986
46986
|
"name": "applyEdits",
|
|
46987
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
46987
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
46988
46988
|
"ctype": "miscellaneous",
|
|
46989
46989
|
"subtype": "function",
|
|
46990
46990
|
"coverageIgnore": false,
|
|
@@ -47029,7 +47029,7 @@
|
|
|
47029
47029
|
},
|
|
47030
47030
|
{
|
|
47031
47031
|
"name": "collectRenames",
|
|
47032
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47032
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
47033
47033
|
"ctype": "miscellaneous",
|
|
47034
47034
|
"subtype": "function",
|
|
47035
47035
|
"coverageIgnore": false,
|
|
@@ -47074,7 +47074,7 @@
|
|
|
47074
47074
|
},
|
|
47075
47075
|
{
|
|
47076
47076
|
"name": "isComponentMetadataProperty",
|
|
47077
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47077
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
47078
47078
|
"ctype": "miscellaneous",
|
|
47079
47079
|
"subtype": "function",
|
|
47080
47080
|
"coverageIgnore": false,
|
|
@@ -47104,7 +47104,7 @@
|
|
|
47104
47104
|
},
|
|
47105
47105
|
{
|
|
47106
47106
|
"name": "isTemplateProperty",
|
|
47107
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47107
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
47108
47108
|
"ctype": "miscellaneous",
|
|
47109
47109
|
"subtype": "function",
|
|
47110
47110
|
"coverageIgnore": false,
|
|
@@ -47133,8 +47133,8 @@
|
|
|
47133
47133
|
]
|
|
47134
47134
|
},
|
|
47135
47135
|
{
|
|
47136
|
-
"name": "
|
|
47137
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47136
|
+
"name": "migrateEuiIconToggle",
|
|
47137
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
47138
47138
|
"ctype": "miscellaneous",
|
|
47139
47139
|
"subtype": "function",
|
|
47140
47140
|
"coverageIgnore": false,
|
|
@@ -47142,7 +47142,7 @@
|
|
|
47142
47142
|
"deprecationMessage": "",
|
|
47143
47143
|
"rawdescription": "",
|
|
47144
47144
|
"description": "",
|
|
47145
|
-
"displayName": "
|
|
47145
|
+
"displayName": "migrateEuiIconToggle",
|
|
47146
47146
|
"args": [
|
|
47147
47147
|
{
|
|
47148
47148
|
"name": "options",
|
|
@@ -47168,7 +47168,7 @@
|
|
|
47168
47168
|
},
|
|
47169
47169
|
{
|
|
47170
47170
|
"name": "migrateInlineTemplates",
|
|
47171
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47171
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
47172
47172
|
"ctype": "miscellaneous",
|
|
47173
47173
|
"subtype": "function",
|
|
47174
47174
|
"coverageIgnore": false,
|
|
@@ -47200,7 +47200,7 @@
|
|
|
47200
47200
|
},
|
|
47201
47201
|
{
|
|
47202
47202
|
"name": "migrateTemplate",
|
|
47203
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47203
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
47204
47204
|
"ctype": "miscellaneous",
|
|
47205
47205
|
"subtype": "function",
|
|
47206
47206
|
"coverageIgnore": false,
|
|
@@ -47230,9 +47230,41 @@
|
|
|
47230
47230
|
}
|
|
47231
47231
|
]
|
|
47232
47232
|
},
|
|
47233
|
+
{
|
|
47234
|
+
"name": "renameTsPropertyAccesses",
|
|
47235
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
47236
|
+
"ctype": "miscellaneous",
|
|
47237
|
+
"subtype": "function",
|
|
47238
|
+
"coverageIgnore": false,
|
|
47239
|
+
"deprecated": false,
|
|
47240
|
+
"deprecationMessage": "",
|
|
47241
|
+
"rawdescription": "",
|
|
47242
|
+
"description": "",
|
|
47243
|
+
"displayName": "renameTsPropertyAccesses",
|
|
47244
|
+
"args": [
|
|
47245
|
+
{
|
|
47246
|
+
"name": "source",
|
|
47247
|
+
"type": "string",
|
|
47248
|
+
"deprecated": false,
|
|
47249
|
+
"deprecationMessage": ""
|
|
47250
|
+
}
|
|
47251
|
+
],
|
|
47252
|
+
"returnType": "string",
|
|
47253
|
+
"jsdoctags": [
|
|
47254
|
+
{
|
|
47255
|
+
"name": "source",
|
|
47256
|
+
"type": "string",
|
|
47257
|
+
"deprecated": false,
|
|
47258
|
+
"deprecationMessage": "",
|
|
47259
|
+
"tagName": {
|
|
47260
|
+
"text": "param"
|
|
47261
|
+
}
|
|
47262
|
+
}
|
|
47263
|
+
]
|
|
47264
|
+
},
|
|
47233
47265
|
{
|
|
47234
47266
|
"name": "unwrapExpression",
|
|
47235
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47267
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
47236
47268
|
"ctype": "miscellaneous",
|
|
47237
47269
|
"subtype": "function",
|
|
47238
47270
|
"coverageIgnore": false,
|
|
@@ -47262,7 +47294,7 @@
|
|
|
47262
47294
|
},
|
|
47263
47295
|
{
|
|
47264
47296
|
"name": "visitDir",
|
|
47265
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47297
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
47266
47298
|
"ctype": "miscellaneous",
|
|
47267
47299
|
"subtype": "function",
|
|
47268
47300
|
"coverageIgnore": false,
|
|
@@ -47307,7 +47339,7 @@
|
|
|
47307
47339
|
},
|
|
47308
47340
|
{
|
|
47309
47341
|
"name": "visitNodes",
|
|
47310
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47342
|
+
"file": "packages/core/schematics/migrate-eui-icon-toggle/index.ts",
|
|
47311
47343
|
"ctype": "miscellaneous",
|
|
47312
47344
|
"subtype": "function",
|
|
47313
47345
|
"coverageIgnore": false,
|
|
@@ -47349,10 +47381,10 @@
|
|
|
47349
47381
|
]
|
|
47350
47382
|
}
|
|
47351
47383
|
],
|
|
47352
|
-
"packages/core/schematics/migrate-eui-
|
|
47384
|
+
"packages/core/schematics/migrate-eui-progress-circle/index.ts": [
|
|
47353
47385
|
{
|
|
47354
47386
|
"name": "applyEdits",
|
|
47355
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47387
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
47356
47388
|
"ctype": "miscellaneous",
|
|
47357
47389
|
"subtype": "function",
|
|
47358
47390
|
"coverageIgnore": false,
|
|
@@ -47397,7 +47429,7 @@
|
|
|
47397
47429
|
},
|
|
47398
47430
|
{
|
|
47399
47431
|
"name": "collectRenames",
|
|
47400
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47432
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
47401
47433
|
"ctype": "miscellaneous",
|
|
47402
47434
|
"subtype": "function",
|
|
47403
47435
|
"coverageIgnore": false,
|
|
@@ -47442,7 +47474,7 @@
|
|
|
47442
47474
|
},
|
|
47443
47475
|
{
|
|
47444
47476
|
"name": "isComponentMetadataProperty",
|
|
47445
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47477
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
47446
47478
|
"ctype": "miscellaneous",
|
|
47447
47479
|
"subtype": "function",
|
|
47448
47480
|
"coverageIgnore": false,
|
|
@@ -47472,7 +47504,7 @@
|
|
|
47472
47504
|
},
|
|
47473
47505
|
{
|
|
47474
47506
|
"name": "isTemplateProperty",
|
|
47475
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47507
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
47476
47508
|
"ctype": "miscellaneous",
|
|
47477
47509
|
"subtype": "function",
|
|
47478
47510
|
"coverageIgnore": false,
|
|
@@ -47501,8 +47533,8 @@
|
|
|
47501
47533
|
]
|
|
47502
47534
|
},
|
|
47503
47535
|
{
|
|
47504
|
-
"name": "
|
|
47505
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47536
|
+
"name": "migrateEuiProgressCircle",
|
|
47537
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
47506
47538
|
"ctype": "miscellaneous",
|
|
47507
47539
|
"subtype": "function",
|
|
47508
47540
|
"coverageIgnore": false,
|
|
@@ -47510,7 +47542,7 @@
|
|
|
47510
47542
|
"deprecationMessage": "",
|
|
47511
47543
|
"rawdescription": "",
|
|
47512
47544
|
"description": "",
|
|
47513
|
-
"displayName": "
|
|
47545
|
+
"displayName": "migrateEuiProgressCircle",
|
|
47514
47546
|
"args": [
|
|
47515
47547
|
{
|
|
47516
47548
|
"name": "options",
|
|
@@ -47536,7 +47568,7 @@
|
|
|
47536
47568
|
},
|
|
47537
47569
|
{
|
|
47538
47570
|
"name": "migrateInlineTemplates",
|
|
47539
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47571
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
47540
47572
|
"ctype": "miscellaneous",
|
|
47541
47573
|
"subtype": "function",
|
|
47542
47574
|
"coverageIgnore": false,
|
|
@@ -47568,7 +47600,7 @@
|
|
|
47568
47600
|
},
|
|
47569
47601
|
{
|
|
47570
47602
|
"name": "migrateTemplate",
|
|
47571
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47603
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
47572
47604
|
"ctype": "miscellaneous",
|
|
47573
47605
|
"subtype": "function",
|
|
47574
47606
|
"coverageIgnore": false,
|
|
@@ -47598,41 +47630,9 @@
|
|
|
47598
47630
|
}
|
|
47599
47631
|
]
|
|
47600
47632
|
},
|
|
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
|
-
},
|
|
47633
47633
|
{
|
|
47634
47634
|
"name": "unwrapExpression",
|
|
47635
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47635
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
47636
47636
|
"ctype": "miscellaneous",
|
|
47637
47637
|
"subtype": "function",
|
|
47638
47638
|
"coverageIgnore": false,
|
|
@@ -47662,7 +47662,7 @@
|
|
|
47662
47662
|
},
|
|
47663
47663
|
{
|
|
47664
47664
|
"name": "visitDir",
|
|
47665
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47665
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
47666
47666
|
"ctype": "miscellaneous",
|
|
47667
47667
|
"subtype": "function",
|
|
47668
47668
|
"coverageIgnore": false,
|
|
@@ -47707,7 +47707,7 @@
|
|
|
47707
47707
|
},
|
|
47708
47708
|
{
|
|
47709
47709
|
"name": "visitNodes",
|
|
47710
|
-
"file": "packages/core/schematics/migrate-eui-
|
|
47710
|
+
"file": "packages/core/schematics/migrate-eui-progress-circle/index.ts",
|
|
47711
47711
|
"ctype": "miscellaneous",
|
|
47712
47712
|
"subtype": "function",
|
|
47713
47713
|
"coverageIgnore": false,
|