@taiga-ui/cdk
Version:
Base library for creating Angular components and applications using Taiga UI principles regarding of actual visual appearance
12 lines (11 loc) • 692 B
TypeScript
/**
* Returns the migrated value for a given attribute name and its current value,
* using the same ATTR_WITH_VALUES_TO_REPLACE table as the replaceAttrValues step.
*
* Structural migrations (e.g. migrateTextarea, migrateSelect) copy attribute text
* verbatim from the original template. Since all migrations share one UpdateRecorder
* and changes are applied in a single commitEdits(), the replaceAttrValues pass
* cannot patch values that were moved to new positions by a structural migration.
* Call this function when copying wrapper attributes to apply value replacements inline.
*/
export declare function migrateAttrValue(attrNameLower: string, currentValue: string): string;