| addEsImports |
addEsImports(source: string, filePath: string, imports)
|
|
Returns :
string
|
| addEuiImports | ||||||||
addEuiImports(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| addImportsToFile | ||||||||||||||||||
addImportsToFile(source: string, filePath: string, decoratorStartHint: number, imports, useClassArray: boolean)
|
||||||||||||||||||
|
Parameters :
Returns :
string
|
| buildNgModuleIndex | |||||||||
buildNgModuleIndex(tree: Tree, dir: DirEntry)
|
|||||||||
|
Parameters :
Returns :
NgModuleInfo[]
|
| detectIndent |
detectIndent(source: string, pos: number)
|
|
Returns :
string
|
| extractArrayProperty |
extractArrayProperty(decorator, propName: string, source: string)
|
|
Returns :
string[]
|
| findComponentDecorators | ||||
findComponentDecorators(sourceFile)
|
||||
|
Parameters :
Returns :
ComponentInfo[]
|
| findDeclaringModule | |||||||||
findDeclaringModule(modules, componentClassName: string)
|
|||||||||
|
Parameters :
Returns :
NgModuleInfo | undefined
|
| findDecoratorImportsArray |
findDecoratorImportsArray(sf, source: string, decoratorStartHint: number)
|
|
Returns :
ImportsArrayInfo | null
|
| findImportsArrayInSource | ||||
findImportsArrayInSource(sf)
|
||||
|
Parameters :
Returns :
ts.ArrayLiteralExpression | null
|
| getTemplateContent |
getTemplateContent(tree: Tree, tsPath: string, decorator, source: string)
|
|
Returns :
string | null
|
| hasStandaloneFalse | ||||
hasStandaloneFalse(decorator)
|
||||
|
Parameters :
Returns :
boolean
|
| matchElement | |||||||||
matchElement(element: TmplAstElement, matched)
|
|||||||||
|
Parameters :
Returns :
void
|
| matchSelectorsInTemplate | ||||||
matchSelectorsInTemplate(html: string)
|
||||||
|
Parameters :
Returns :
SelectorEntry[]
|
| removeFromEsImports |
removeFromEsImports(source: string, filePath: string, symbolsToRemove)
|
|
Returns :
string
|
| resolveImports | |||||||||
resolveImports(matched, useClassArray: boolean)
|
|||||||||
|
Parameters :
Returns :
ImportToAdd[]
|
| updateDecoratorImportsArray | ||||||||||||||||||
updateDecoratorImportsArray(source: string, filePath: string, arrayNode, toAdd, toRemove)
|
||||||||||||||||||
|
Parameters :
Returns :
string
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitTemplateNodes | ||||||
visitTemplateNodes(nodes, matched)
|
||||||
|
Parameters :
Returns :
void
|
| addPaginatorImport |
addPaginatorImport(source: string, filePath: string)
|
|
Returns :
string
|
| applyEdits | |||||||||
applyEdits(source: string, edits)
|
|||||||||
|
Parameters :
Returns :
string
|
| collectChildElementRenames | |||||||||
collectChildElementRenames(element: TmplAstElement, edits)
|
|||||||||
|
Parameters :
Returns :
void
|
| collectChildInputRemovals | ||||||||||||||||||
collectChildInputRemovals(element: TmplAstElement, source: string, edits, filePath: string, context: SchematicContext)
|
||||||||||||||||||
|
Parameters :
Returns :
void
|
| collectEmptyMessageRename | |||||||||
collectEmptyMessageRename(element: TmplAstElement, edits)
|
|||||||||
|
Parameters :
Returns :
void
|
| collectInputRemovals | ||||||||||||||||||
collectInputRemovals(element: TmplAstElement, source: string, edits, filePath: string, context: SchematicContext)
|
||||||||||||||||||
|
Parameters :
Returns :
void
|
| collectOutputChanges | ||||||||||||||||||
collectOutputChanges(element: TmplAstElement, source: string, edits, filePath: string, context: SchematicContext)
|
||||||||||||||||||
|
Parameters :
Returns :
void
|
| collectPaginatorMigration | ||||||||||||
collectPaginatorMigration(element: TmplAstElement, source: string, edits)
|
||||||||||||
|
Parameters :
Returns :
boolean
|
| collectPipeRenames | ||||||||||||
collectPipeRenames(nodes, source: string, edits)
|
||||||||||||
|
Parameters :
Returns :
void
|
| collectTableInputRenames | |||||||||
collectTableInputRenames(element: TmplAstElement, edits)
|
|||||||||
|
Parameters :
Returns :
void
|
| collectTemplateEmptyMessageRename | |||||||||
collectTemplateEmptyMessageRename(template: TmplAstTemplate, edits)
|
|||||||||
|
Parameters :
Returns :
void
|
| hasEuiTableAttribute | ||||||
hasEuiTableAttribute(element: TmplAstElement)
|
||||||
|
Parameters :
Returns :
boolean
|
| isComponentMetadataProperty | ||||
isComponentMetadataProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| isTemplateProperty | ||||
isTemplateProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| logRemovalWarning | |||||||||||||||
logRemovalWarning(name: string, filePath: string, element: TmplAstElement, context: SchematicContext)
|
|||||||||||||||
|
Parameters :
Returns :
void
|
| migrateEuiTable | ||||||||
migrateEuiTable(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateTemplate |
migrateTemplate(source: string, filePath: string, context: SchematicContext)
|
|
Returns :
string
|
| migrateTemplateWithPaginator |
migrateTemplateWithPaginator(source: string, filePath: string, context: SchematicContext)
|
|
Returns :
literal type
|
| migrateTypeScript |
migrateTypeScript(source: string, filePath: string, context: SchematicContext)
|
|
Returns :
literal type
|
| removeAttribute |
removeAttribute(start: number, end: number, source: string, edits)
|
|
Returns :
void
|
| renameTsProperties | ||||||
renameTsProperties(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| unwrapExpression | ||||
unwrapExpression(expression)
|
||||
|
Parameters :
Returns :
ts.Expression
|
| visitAstForPipes | |||||||||
visitAstForPipes(ast: AST, edits)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitExpressionForPipes | |||||||||
visitExpressionForPipes(expr: AST, edits)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitNodesForTable | |||||||||||||||||||||
visitNodesForTable(nodes, source: string, edits, insideEuiTable: boolean, filePath: string, context: SchematicContext)
|
|||||||||||||||||||||
|
Parameters :
Returns :
boolean
|
| warnSetSort |
warnSetSort(source: string, filePath: string, context: SchematicContext)
|
|
Returns :
void
|
| addTruncatePipeImport |
addTruncatePipeImport(source: string, filePath: string)
|
|
Returns :
string
|
| applyEdits | |||||||||
applyEdits(source: string, edits)
|
|||||||||
|
Parameters :
Returns :
string
|
| buildTruncatePipeEdit |
buildTruncatePipeEdit(chip: TmplAstElement, source: string, truncateValue: string)
|
|
Returns :
Edit | null
|
| deduplicateEdits | ||||
deduplicateEdits(edits)
|
||||
|
Parameters :
Returns :
Edit[]
|
| extractAttrName | ||||||
extractAttrName(insertion: string)
|
||||||
|
Parameters :
Returns :
string
|
| extractBindingValue | |||||||||
extractBindingValue(input: TmplAstBoundAttribute, source: string)
|
|||||||||
|
Parameters :
Returns :
string
|
| extractHandlerExpression | |||||||||
extractHandlerExpression(output: TmplAstBoundEvent, source: string)
|
|||||||||
|
Parameters :
Returns :
string
|
| findChildChips | ||||
findChildChips(nodes)
|
||||
|
Parameters :
Returns :
TmplAstElement[]
|
| findLabelElement | ||||
findLabelElement(nodes)
|
||||
|
Parameters :
Returns :
TmplAstElement | null
|
| getExistingAttrNames | ||||||
getExistingAttrNames(element: TmplAstElement)
|
||||||
|
Parameters :
Returns :
Set<string>
|
| isChipElement | ||||||
isChipElement(element: TmplAstElement)
|
||||||
|
Parameters :
Returns :
boolean
|
| isChipListElement | ||||||
isChipListElement(element: TmplAstElement)
|
||||||
|
Parameters :
Returns :
boolean
|
| isComponentMetadataProperty | ||||
isComponentMetadataProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| isTemplateProperty | ||||
isTemplateProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| migrateChipListElement | ||||||||||||
migrateChipListElement(element: TmplAstElement, source: string, edits)
|
||||||||||||
|
Parameters :
Returns :
void
|
| migrateEuiChipList | ||||||||
migrateEuiChipList(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateInlineTemplates | ||||||
migrateInlineTemplates(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| migrateTemplate | ||||||
migrateTemplate(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| removalEdit | |||||||||
removalEdit(node, source: string)
|
|||||||||
|
Parameters :
Returns :
Edit
|
| unwrapExpression | ||||
unwrapExpression(expression)
|
||||
|
Parameters :
Returns :
ts.Expression
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitNodes | ||||||||||||
visitNodes(nodes, source: string, edits)
|
||||||||||||
|
Parameters :
Returns :
void
|
| AlertHttpErrorCallbackFn | ||||||
AlertHttpErrorCallbackFn(error: HttpErrorResponse)
|
||||||
|
Parameters :
Returns :
void
|
| ConsoleHttpErrorCallbackFn | ||||||
ConsoleHttpErrorCallbackFn(error: HttpErrorResponse)
|
||||||
|
Parameters :
Returns :
void
|
| GrowlHttpErrorCallbackFn | |||||||||
GrowlHttpErrorCallbackFn(error: HttpErrorResponse, injector: Injector)
|
|||||||||
|
Parameters :
Returns :
void
|
| LogHttpErrorCallbackFn | |||||||||
LogHttpErrorCallbackFn(error: HttpErrorResponse, injector: Injector)
|
|||||||||
|
Parameters :
Returns :
void
|
| applyChanges | |||||||||
applyChanges(source: string, changes)
|
|||||||||
|
Parameters :
Returns :
string
|
| buildBodyReplacement | |||||||||
buildBodyReplacement(source: string, content: TmplAstElement)
|
|||||||||
|
Parameters :
Returns :
string
|
| buildHeaderReplacement | |||||||||
buildHeaderReplacement(source: string, label: TmplAstElement)
|
|||||||||
|
Parameters :
Returns :
string
|
| findDirectChild | |||||||||
findDirectChild(element: TmplAstElement, name: string)
|
|||||||||
|
Parameters :
Returns :
TmplAstElement | undefined
|
| findElements | |||||||||
findElements(nodes, name: string)
|
|||||||||
|
Parameters :
Returns :
TmplAstElement[]
|
| formatInnerLines |
formatInnerLines(source: string, indent: string)
|
|
Returns :
string[]
|
| getAttributeText |
getAttributeText(source: string, element: TmplAstElement, tagName: string)
|
|
Returns :
string
|
| getIndent |
getIndent(source: string, offset: number)
|
|
Returns :
string
|
| getInnerText | |||||||||
getInnerText(source: string, element: TmplAstElement)
|
|||||||||
|
Parameters :
Returns :
string
|
| isComponentMetadataProperty | ||||
isComponentMetadataProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| isElement | ||||||
isElement(node: TmplAstNode)
|
||||||
|
Parameters :
Returns :
TmplAstElement
|
| isTemplateProperty | ||||
isTemplateProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| migrateEuiTabs | ||||||||
migrateEuiTabs(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateInlineTemplates |
migrateInlineTemplates(source: string, filePath: string, context: SchematicContext)
|
|
Returns :
MigrationResult
|
| migrateTemplate |
migrateTemplate(source: string, filePath: string, context: SchematicContext)
|
|
Returns :
MigrationResult
|
| removeElementRanges | ||||||||||||
removeElementRanges(source: string, parent: TmplAstElement, elements)
|
||||||||||||
|
Parameters :
Returns :
string
|
| unwrapExpression | ||||
unwrapExpression(expression)
|
||||
|
Parameters :
Returns :
ts.Expression
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| withoutOverlaps | ||||
withoutOverlaps(changes)
|
||||
|
Parameters :
Returns :
TextChange[]
|
| applyEdits | |||||||||
applyEdits(source: string, edits)
|
|||||||||
|
Parameters :
Returns :
string
|
| collectRenames | |||||||||
collectRenames(element: TmplAstElement, edits)
|
|||||||||
|
Parameters :
Returns :
void
|
| isComponentMetadataProperty | ||||
isComponentMetadataProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| isEuiElement | ||||||
isEuiElement(element: TmplAstElement)
|
||||||
|
Parameters :
Returns :
boolean
|
| isTemplateProperty | ||||
isTemplateProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| migrateEuiAccent | ||||||||
migrateEuiAccent(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateInlineTemplates | ||||||
migrateInlineTemplates(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| migrateTemplate | ||||||
migrateTemplate(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| renameTsPropertyAccesses | ||||||
renameTsPropertyAccesses(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| unwrapExpression | ||||
unwrapExpression(expression)
|
||||
|
Parameters :
Returns :
ts.Expression
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitNodes | ||||||
visitNodes(nodes, edits)
|
||||||
|
Parameters :
Returns :
void
|
| applyEdits | |||||||||
applyEdits(source: string, edits)
|
|||||||||
|
Parameters :
Returns :
string
|
| collectRenames | |||||||||
collectRenames(element: TmplAstElement, edits)
|
|||||||||
|
Parameters :
Returns :
void
|
| hasEuiButtonAttribute | ||||||
hasEuiButtonAttribute(element: TmplAstElement)
|
||||||
|
Parameters :
Returns :
boolean
|
| isComponentMetadataProperty | ||||
isComponentMetadataProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| isTemplateProperty | ||||
isTemplateProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| migrateEuiButton | ||||||||
migrateEuiButton(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateInlineTemplates | ||||||
migrateInlineTemplates(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| migrateTemplate | ||||||
migrateTemplate(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| unwrapExpression | ||||
unwrapExpression(expression)
|
||||
|
Parameters :
Returns :
ts.Expression
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitNodes | ||||||
visitNodes(nodes, edits)
|
||||||
|
Parameters :
Returns :
void
|
| applyEdits | |||||||||
applyEdits(source: string, edits)
|
|||||||||
|
Parameters :
Returns :
string
|
| collectRenames | |||||||||
collectRenames(element: TmplAstElement, edits)
|
|||||||||
|
Parameters :
Returns :
void
|
| isComponentMetadataProperty | ||||
isComponentMetadataProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| isTemplateProperty | ||||
isTemplateProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| migrateEuiEditor | ||||||||
migrateEuiEditor(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateInlineTemplates | ||||||
migrateInlineTemplates(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| migrateTemplate | ||||||
migrateTemplate(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| unwrapExpression | ||||
unwrapExpression(expression)
|
||||
|
Parameters :
Returns :
ts.Expression
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitNodes | ||||||
visitNodes(nodes, edits)
|
||||||
|
Parameters :
Returns :
void
|
| warnPropertyAccesses |
warnPropertyAccesses(path: string, source: string, context: SchematicContext)
|
|
Returns :
void
|
| applyEdits | |||||||||
applyEdits(source: string, edits)
|
|||||||||
|
Parameters :
Returns :
string
|
| collectRenames | |||||||||
collectRenames(element: TmplAstElement, edits)
|
|||||||||
|
Parameters :
Returns :
void
|
| isComponentMetadataProperty | ||||
isComponentMetadataProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| isTemplateProperty | ||||
isTemplateProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| migrateEuiFieldset | ||||||||
migrateEuiFieldset(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateInlineTemplates | ||||||
migrateInlineTemplates(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| migrateTemplate | ||||||
migrateTemplate(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| unwrapExpression | ||||
unwrapExpression(expression)
|
||||
|
Parameters :
Returns :
ts.Expression
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitNodes | ||||||
visitNodes(nodes, edits)
|
||||||
|
Parameters :
Returns :
void
|
| applyEdits | |||||||||
applyEdits(source: string, edits)
|
|||||||||
|
Parameters :
Returns :
string
|
| collectRenames | |||||||||
collectRenames(element: TmplAstElement, edits)
|
|||||||||
|
Parameters :
Returns :
void
|
| isComponentMetadataProperty | ||||
isComponentMetadataProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| isTemplateProperty | ||||
isTemplateProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| migrateEuiIconSvg | ||||||||
migrateEuiIconSvg(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateInlineTemplates | ||||||
migrateInlineTemplates(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| migrateTemplate | ||||||
migrateTemplate(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| renameTsPropertyAccesses | ||||||
renameTsPropertyAccesses(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| unwrapExpression | ||||
unwrapExpression(expression)
|
||||
|
Parameters :
Returns :
ts.Expression
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitNodes | ||||||
visitNodes(nodes, edits)
|
||||||
|
Parameters :
Returns :
void
|
| applyEdits | |||||||||
applyEdits(source: string, edits)
|
|||||||||
|
Parameters :
Returns :
string
|
| collectRenames | |||||||||
collectRenames(element: TmplAstElement, edits)
|
|||||||||
|
Parameters :
Returns :
void
|
| isComponentMetadataProperty | ||||
isComponentMetadataProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| isTemplateProperty | ||||
isTemplateProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| migrateEuiIconToggle | ||||||||
migrateEuiIconToggle(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateInlineTemplates | ||||||
migrateInlineTemplates(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| migrateTemplate | ||||||
migrateTemplate(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| renameTsPropertyAccesses | ||||||
renameTsPropertyAccesses(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| unwrapExpression | ||||
unwrapExpression(expression)
|
||||
|
Parameters :
Returns :
ts.Expression
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitNodes | ||||||
visitNodes(nodes, edits)
|
||||||
|
Parameters :
Returns :
void
|
| applyEdits | |||||||||
applyEdits(source: string, edits)
|
|||||||||
|
Parameters :
Returns :
string
|
| collectRenames | |||||||||
collectRenames(element: TmplAstElement, edits)
|
|||||||||
|
Parameters :
Returns :
void
|
| isComponentMetadataProperty | ||||
isComponentMetadataProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| isTemplateProperty | ||||
isTemplateProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| migrateEuiProgressCircle | ||||||||
migrateEuiProgressCircle(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateInlineTemplates | ||||||
migrateInlineTemplates(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| migrateTemplate | ||||||
migrateTemplate(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| unwrapExpression | ||||
unwrapExpression(expression)
|
||||
|
Parameters :
Returns :
ts.Expression
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitNodes | ||||||
visitNodes(nodes, edits)
|
||||||
|
Parameters :
Returns :
void
|
| applyEdits | |||||||||
applyEdits(source: string, edits)
|
|||||||||
|
Parameters :
Returns :
string
|
| collectOutputRemovals | ||||||||||||||||||
collectOutputRemovals(element: TmplAstElement, source: string, edits, filePath: string, context: SchematicContext)
|
||||||||||||||||||
|
Parameters :
Returns :
void
|
| collectTagRenames | ||||||||||||
collectTagRenames(element: TmplAstElement, source: string, edits)
|
||||||||||||
|
Parameters :
Returns :
void
|
| deduplicateEdits | ||||
deduplicateEdits(edits)
|
||||
|
Parameters :
Returns :
Edit[]
|
| isComponentMetadataProperty | ||||
isComponentMetadataProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| isTemplateProperty | ||||
isTemplateProperty(node)
|
||||
|
Parameters :
Returns :
boolean
|
| migrateEuiToolbarMenu | ||||||||
migrateEuiToolbarMenu(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateImportsAndTypes |
migrateImportsAndTypes(source: string, filePath: string, context: SchematicContext)
|
|
Returns :
string
|
| migrateInlineTemplates |
migrateInlineTemplates(source: string, filePath: string, context: SchematicContext)
|
|
Returns :
string
|
| migrateTemplate |
migrateTemplate(source: string, filePath: string, context: SchematicContext)
|
|
Returns :
string
|
| migrateTypeScript |
migrateTypeScript(source: string, filePath: string, context: SchematicContext)
|
|
Returns :
string
|
| removeImportSpecifier | ||||||||||
removeImportSpecifier(namedImports, specifier, sourceFile, edits)
|
||||||||||
|
Parameters :
Returns :
void
|
| unwrapExpression | ||||
unwrapExpression(expression)
|
||||
|
Parameters :
Returns :
ts.Expression
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitNodes | ||||||||||||||||||
visitNodes(nodes, source: string, edits, filePath: string, context: SchematicContext)
|
||||||||||||||||||
|
Parameters :
Returns :
void
|
| warnRemovedProperties | ||||||||||||
warnRemovedProperties(sourceFile, filePath: string, context: SchematicContext)
|
||||||||||||
|
Parameters :
Returns :
void
|
| applyReplacements |
applyReplacements(source: string, filePath: string, replacements: Map)
|
|
Returns :
string
|
| buildReplacements | |||||||||
buildReplacements(moduleNames, templateSelectors: Set)
|
|||||||||
|
Parameters :
Returns :
Map<string, literal type>
|
| findComponentDecorators | ||||
findComponentDecorators(sourceFile)
|
||||
|
Parameters :
Returns :
ts.Decorator[]
|
| findImportsArrayNode | ||||
findImportsArrayNode(decorator)
|
||||
|
Parameters :
Returns :
ts.ArrayLiteralExpression | undefined
|
| findSelectorsInTemplate | |||||||||
findSelectorsInTemplate(html: string, knownSelectors)
|
|||||||||
|
Parameters :
Returns :
Set<string>
|
| getTemplateSelectors |
getTemplateSelectors(tree: Tree, tsPath: string, decorator, source: string)
|
|
Returns :
Set<string>
|
| hasModuleInArray |
hasModuleInArray(array, moduleName: string, source: string)
|
|
Returns :
boolean
|
| migrateToStandalone | ||||||||
migrateToStandalone(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| replaceInImportsArray | ||||||||||||
replaceInImportsArray(source: string, sourceFile, replacements: Map)
|
||||||||||||
|
Parameters :
Returns :
string
|
| updateEsImports |
updateEsImports(source: string, filePath: string, replacements: Map)
|
|
Returns :
string
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| buildSelectorMap |
buildSelectorMap()
|
|
Returns :
SelectorEntry[]
|
| getClassNamesForArray | ||||||
getClassNamesForArray(arrayName: string)
|
||||||
|
Given a classArray name, returns all class names that belong to that array. Used to detect when individual class names can be consolidated into a spread.
Parameters :
Returns :
string[]
|
| parseSelector | ||||||
parseSelector(raw: string)
|
||||||
|
Parses a raw CSS-like selector string into element + attributes. Examples: "button[euiButton]" → { element: "button", attributes: ["euiButton"] } "[euiTooltip]" → { element: null, attributes: ["euiTooltip"] } "eui-tabs" → { element: "eui-tabs", attributes: [] } "input[euiInputNumber][formControlName]" → { element: "input", attributes: ["euiInputNumber", "formControlName"] }
Parameters :
Returns :
literal type
|
| collectRemovals | |||||||||
collectRemovals(element: TmplAstElement, removals)
|
|||||||||
|
Parameters :
Returns :
void
|
| getAttributeSpan | ||||
getAttributeSpan(attr)
|
||||
|
Parameters :
Returns :
literal type
|
| hasAttribute | |||||||||
hasAttribute(element: TmplAstElement, name: string)
|
|||||||||
|
Parameters :
Returns :
boolean
|
| migrateEuiAlert | ||||||||
migrateEuiAlert(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateInlineTemplates | ||||||
migrateInlineTemplates(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| migrateTemplate | ||||||
migrateTemplate(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitNodes | ||||||
visitNodes(nodes, removals)
|
||||||
|
Parameters :
Returns :
void
|
| collectRemovals | |||||||||
collectRemovals(element: TmplAstElement, removals)
|
|||||||||
|
Parameters :
Returns :
void
|
| getAttributeSpan | ||||
getAttributeSpan(attr)
|
||||
|
Parameters :
Returns :
literal type
|
| isAvatarElement | ||||||
isAvatarElement(element: TmplAstElement)
|
||||||
|
Parameters :
Returns :
boolean
|
| migrateEuiAvatar | ||||||||
migrateEuiAvatar(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateInlineTemplates | ||||||
migrateInlineTemplates(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| migrateTemplate | ||||||
migrateTemplate(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitNodes | ||||||
visitNodes(nodes, removals)
|
||||||
|
Parameters :
Returns :
void
|
| collectRemovals | |||||||||
collectRemovals(element: TmplAstElement, removals)
|
|||||||||
|
Parameters :
Returns :
void
|
| getAttributeSpan | ||||
getAttributeSpan(attr)
|
||||
|
Parameters :
Returns :
literal type
|
| isChipElement | ||||||
isChipElement(element: TmplAstElement)
|
||||||
|
Parameters :
Returns :
boolean
|
| migrateEuiChip | ||||||||
migrateEuiChip(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateInlineTemplates | ||||||
migrateInlineTemplates(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| migrateTemplate | ||||||
migrateTemplate(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitNodes | ||||||
visitNodes(nodes, removals)
|
||||||
|
Parameters :
Returns :
void
|
| collectRemovals | ||||||||||||
collectRemovals(element: TmplAstElement, source: string, removals)
|
||||||||||||
|
Parameters :
Returns :
void
|
| migrateEuiDiscussionThread | ||||||||
migrateEuiDiscussionThread(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateInlineTemplates | ||||||
migrateInlineTemplates(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| migrateTemplate | ||||||
migrateTemplate(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitNodes | ||||||||||||
visitNodes(nodes, source: string, removals)
|
||||||||||||
|
Parameters :
Returns :
void
|
| collectRemovals | |||||||||
collectRemovals(element: TmplAstElement, removals)
|
|||||||||
|
Parameters :
Returns :
void
|
| getAttributeSpan | ||||
getAttributeSpan(attr)
|
||||
|
Parameters :
Returns :
literal type
|
| migrateEuiPopover | ||||||||
migrateEuiPopover(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| migrateInlineTemplates | ||||||
migrateInlineTemplates(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| migrateTemplate | ||||||
migrateTemplate(source: string)
|
||||||
|
Parameters :
Returns :
string
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| visitNodes | ||||||
visitNodes(nodes, removals)
|
||||||
|
Parameters :
Returns :
void
|
| convertLegacyInterpolations | ||||||
convertLegacyInterpolations(value: string)
|
||||||
|
Converts legacy ngx-translate interpolations ({{var}}) to ICU-compatible format ({var}). Double braces are never valid ICU syntax, so any {{word}} is guaranteed to be legacy.
Parameters :
Returns :
string
|
| createSelector | |||||||||
createSelector(s1: Selector, projector)
|
|||||||||
|
Parameters :
Returns :
MemoizedSelector<State, Result, unknown>
|
| createSelector | ||||||
createSelector(selectors, projector)
|
||||||
|
Parameters :
Returns :
MemoizedSelector<State, Result, Result>
|
| createSelector | ||||
createSelector(...input: undefined)
|
||||
|
Parameters :
Returns :
MemoizedSelector | MemoizedSelectorWithProps
|
| createSelectorFactory | ||||||
createSelectorFactory(memoize: MemoizeFn)
|
||||||
|
Parameters :
Returns :
MemoizedSelector<T | V>
|
| createSelectorFactory | |||||||||||||||
createSelectorFactory(memoize: MemoizeFn, options: SelectorFactoryConfig)
|
|||||||||||||||
|
Parameters :
|
| defaultMemoize | ||||||||||||||||
defaultMemoize(projectionFn: AnyFn, isArgumentsEqual: unknown, isResultEqual: unknown)
|
||||||||||||||||
|
Parameters :
Returns :
MemoizedProjection
|
| defaultStateFn | |||||||||||||||
defaultStateFn(state: any, selectors, props: any, memoizedProjector: MemoizedProjection)
|
|||||||||||||||
|
Parameters :
Returns :
any
|
| extractArgsFromSelectorsDictionary | ||||||
extractArgsFromSelectorsDictionary(selectorsDictionary: Record)
|
||||||
|
Parameters :
Returns :
unknown
|
| isArgumentsChanged | ||||||||||||
isArgumentsChanged(args: IArguments, lastArguments: IArguments, comparator: ComparatorFn)
|
||||||||||||
|
Parameters :
|
| isEqualCheck |
isEqualCheck(a: any, b: any)
|
|
Returns :
boolean
|
| isSelectorsDictionary | ||||
isSelectorsDictionary(selectors)
|
||||
|
Parameters :
|
| detectEuiVersion | ||||||
detectEuiVersion(tree: Tree)
|
||||||
|
Auto-detects the eUI version from the installed
Parameters :
Returns :
string | null
|
| getEndImportBlockPos | ||||
getEndImportBlockPos(lines)
|
||||
|
Finds the position where the import block ends. Looks for
Parameters :
Returns :
number
|
| getFilesFromTree | ||||||||||||
getFilesFromTree(tree: Tree, dirPath: string, extensions)
|
||||||||||||
|
Collects all file paths matching given extensions under a directory in the Tree.
Parameters :
Returns :
string[]
|
| getSiblingHtmlFiles | |||||||||
getSiblingHtmlFiles(tree: Tree, tsFilePath: string)
|
|||||||||
|
Gets sibling HTML files for a given TS file path from the Tree.
Parameters :
Returns :
string[]
|
| euiLogServiceFactory | ||||||||||||||||||||||||
euiLogServiceFactory(injector: Injector, rootBaseLoggerName: string, rootConfig: LogConfig, childBaseLoggerName: string, childConfig: LogConfig)
|
||||||||||||||||||||||||
|
Parameters :
Returns :
LogService
|
| getLogAppendersConfig | ||||||||||||
getLogAppendersConfig(config: LogConfig, injector: Injector)
|
||||||||||||
|
Helper function to provide a list of log appenders from a log configuration
Parameters :
Returns :
LogAppender[]
an array of log appenders |
| isLogConfigDefined | ||||||
isLogConfigDefined(config: LogConfig)
|
||||||
|
Helper function to check if the log config is defined. Does not check only for empty object, because the config can have other (non-log) parameters
Parameters :
Returns :
boolean
true/false |
| logServiceFactory | ||||||||||||
logServiceFactory(config: LogConfig, injector: Injector)
|
||||||||||||
|
Helper function to provide an instance of LogService from a configuration
Parameters :
Returns :
LogService
an instance of log service |
| fixNoMultipleEmptyLines | ||||||||
fixNoMultipleEmptyLines(options: Schema)
|
||||||||
|
Parameters :
Returns :
Rule
|
| visitDir | |||||||||
visitDir(dir: DirEntry, callback)
|
|||||||||
|
Parameters :
Returns :
void
|
| getCoreChildProviders | ||||||
getCoreChildProviders(moduleName: string)
|
||||||
|
Parameters :
Returns :
Provider[]
|
| getCoreProviders |
getCoreProviders()
|
|
Returns :
Provider[]
|
| getDependencyProviders |
getDependencyProviders()
|
|
Returns :
Provider[]
|
| getGlobalConfig | ||||||
getGlobalConfig(appConfig: EuiAppConfig)
|
||||||
|
Parameters :
Returns :
GlobalConfig
|
| getHttpErrorHandlingConfig | ||||||
getHttpErrorHandlingConfig(appConfig: EuiAppConfig)
|
||||||
|
Parameters :
Returns :
HttpErrorHandlerConfig
|
| getModuleConfig | |||||||||
getModuleConfig(appConfig: EuiAppConfig, moduleName: string)
|
|||||||||
|
Parameters :
Returns :
ModuleConfig
|
| getRootLogConfig | ||||||
getRootLogConfig(appConfig: EuiAppConfig)
|
||||||
|
Parameters :
Returns :
LogConfig
|
| getShowConnectionStatus | ||||||
getShowConnectionStatus(globalConfig: GlobalConfig)
|
||||||
|
Parameters :
Returns :
ConnectionStatus
|
| mergeAppHandlerConfigToAppConfig | |||||||||
mergeAppHandlerConfigToAppConfig(euiAppConfig: EuiAppConfig, envAppHandler: EuiAppHandlersConfig)
|
|||||||||
|
Parameters :
Returns :
EuiAppConfig
|
| mergeAppJsonConfigToAppConfig | |||||||||||||||
mergeAppJsonConfigToAppConfig(euiAppConfig: EuiAppConfig, envAppJsonConfig: EuiAppJsonConfig, merge: Array, isDeepMerge: boolean)
|
|||||||||||||||
|
Parameters :
Returns :
EuiAppConfig
|
| prepareEuiAppConfigToken | ||||||
prepareEuiAppConfigToken(euiConfig: EuiConfig)
|
||||||
|
Parameters :
Returns :
EuiAppConfig
|
| iconMigrate | ||||||
iconMigrate(options: Schema)
|
||||||
|
Parameters :
Returns :
Rule
|
| replaceIconsInTemplate | ||||||
replaceIconsInTemplate(content: string)
|
||||||
|
Replaces icon values in HTML template content by matching component selectors and their icon inputs. Handles both static bindings (icon="value") and bound bindings ([icon]="'value'").
Parameters :
Returns :
literal type
|
| replaceIconsInTypeScript | ||||||
replaceIconsInTypeScript(content: string)
|
||||||
|
Replaces icon string literals in TypeScript files where icons are assigned to component inputs. Targets patterns like: icon = 'eui-delete', icon: 'eui-delete', expandedSvgIconClass: 'eui-chevron-right'
Parameters :
Returns :
literal type
|
| injectOptional | |||||||||||||||
injectOptional(token, injector: unknown)
|
|||||||||||||||
|
Safely resolves a service from the injector only when needed.
Avoids instantiation errors that can occur with
Parameters :
Returns :
T | null
The service instance or null if unavailable |
| loadEuiDynamicEnvironmentConfig | ||||||||||||
loadEuiDynamicEnvironmentConfig(url: string, timeout?: number)
|
||||||||||||
|
Function to load asynchronously a dynamic configuration (from a local path or a web service)
Parameters :
Returns :
Promise<EuiAppJsonConfig>
EuiAppJsonConfig promise |
| preInitApp | ||||||||
preInitApp(envConfig: EuiEnvConfig)
|
||||||||
|
Function to be used before the AppModule is bootstrapped. It is currently used to load dynamic configurations. It needs to be added in your application main.ts file.
Parameters :
Returns :
Promise<EuiEnvConfig>
the updated environment configuration, as a promise |
| localStorageSync | ||||||
| it will be removed in the next major version | ||||||
localStorageSync(platformId)
|
||||||
|
Utility meta-reducer to load the state from the local storage
Parameters :
Returns :
function
|
| localStorageSync | ||||||||
localStorageSync(reducer: ActionReducer)
|
||||||||
|
Utility meta-reducer to load the state from the local storage
Parameters :
Returns :
S
|
| localStorageSync | |||||||||
localStorageSync(reducer: ActionReducer, platformId?)
|
|||||||||
|
Parameters :
Returns :
Function
|
| sessionStorageSync | ||||||
| it will be removed in the next major version | ||||||
sessionStorageSync(platformId)
|
||||||
|
Utility meta-reducer to load the state from the session storage
Parameters :
Returns :
function
|
| sessionStorageSync | ||||||||
| it will be removed in the next major version | ||||||||
sessionStorageSync(reducer: ActionReducer)
|
||||||||
|
Utility meta-reducer to load the state from the session storage
Parameters :
Returns :
S
|
| sessionStorageSync | |||||||||
sessionStorageSync(reducer: ActionReducer, platformId?)
|
|||||||||
|
Parameters :
Returns :
Function
|
| logDryRun | |||||||||
logDryRun(context: SchematicContext, message: string)
|
|||||||||
|
Parameters :
Returns :
void
|
| logDryRunNote | ||||||
logDryRunNote(context: SchematicContext)
|
||||||
|
Parameters :
Returns :
void
|
| migrate | ||||||
migrate(options: Schema)
|
||||||
|
Parameters :
Returns :
Rule
|
| migrateAll | ||||||
migrateAll(options: MigrateAllSchema)
|
||||||
|
Parameters :
Returns :
Rule
|
| provideEuiInitializer |
provideEuiInitializer()
|
|
Initializes the app with the necessary configurations. Use this in combination with
Returns :
EnvironmentProviders
|
| replaceEclAllModule |
replaceEclAllModule(tree: Tree, filePath: string, content: string)
|
|
Replaces EclAllModule with specific ECL component imports detected from sibling HTML files.
Returns :
string
|
| replaceEuiAllModule |
replaceEuiAllModule(tree: Tree, filePath: string, content: string)
|
|
Replaces EuiAllModule with specific component imports detected from sibling HTML files.
Returns :
string
|
| replaceEuiModules | |||||||||
replaceEuiModules(fileContent: string, lines)
|
|||||||||
|
Replaces individual EUI module references with their new standalone imports. Handles import statements (removes module, adds new import) and usage in arrays (replaces with spread).
Parameters :
Returns :
literal type
|
| replaceEuiBreakingChanges | |||||||||
replaceEuiBreakingChanges(lines, index: number)
|
|||||||||
|
Applies EUI and ECL breaking change replacements to a single line. Ported from csdr-engine/migrate/index.js replaceEuiBreakingChanges. Returns true if the line was modified.
Parameters :
Returns :
boolean
|
| replaceIcons | |||||||||
replaceIcons(lines, index: number)
|
|||||||||
|
Replaces old icon names with new ones in a single line. Only replaces in quoted strings, skipping import lines and element tags. Returns true if the line was modified.
Parameters :
Returns :
boolean
|
| replaceMwp |
replaceMwp(filePath: string, lines, index: number)
|
|
Applies MyWorkplace-specific replacements to a single line. Ported from csdr-engine/migrate/index.js replaceMwp. Returns true if the line was modified.
Returns :
boolean
|