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