(style: string, componentIdentifier?: string)
| 640 | * @returns The encapsulated content for the style. |
| 641 | */ |
| 642 | export function encapsulateStyle(style: string, componentIdentifier?: string): string { |
| 643 | const shadowCss = new ShadowCss(); |
| 644 | const selector = componentIdentifier |
| 645 | ? CONTENT_ATTR.replace(COMPONENT_VARIABLE, componentIdentifier) |
| 646 | : CONTENT_ATTR; |
| 647 | const hostSelector = componentIdentifier |
| 648 | ? HOST_ATTR.replace(COMPONENT_VARIABLE, componentIdentifier) |
| 649 | : HOST_ATTR; |
| 650 | return shadowCss.shimCssText(style, selector, hostSelector); |
| 651 | } |
| 652 | |
| 653 | function createHostDirectivesType(meta: R3DirectiveMetadata): o.Type { |
| 654 | if (!meta.hostDirectives?.length) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…