ACS-8255: Migrate InfoDrawer component to Standalone (#9846)

This commit is contained in:
Denys Vuika
2024-06-21 10:05:15 -04:00
committed by GitHub
parent 3fee18c251
commit 215b9c2e4b
11 changed files with 136 additions and 101 deletions

View File

@@ -16,9 +16,12 @@
*/
import { Component, Directive, Input, ViewEncapsulation } from '@angular/core';
import { CommonModule } from '@angular/common';
@Component({
selector: 'adf-info-drawer-layout',
standalone: true,
imports: [CommonModule],
templateUrl: './info-drawer-layout.component.html',
styleUrls: ['./info-drawer-layout.component.scss'],
encapsulation: ViewEncapsulation.None,
@@ -33,6 +36,20 @@ export class InfoDrawerLayoutComponent {
/**
* Directive selectors without adf- prefix will be deprecated on 3.0.0
*/
@Directive({ selector: '[adf-info-drawer-title], [info-drawer-title]' }) export class InfoDrawerTitleDirective {}
@Directive({ selector: '[adf-info-drawer-buttons], [info-drawer-buttons]' }) export class InfoDrawerButtonsDirective {}
@Directive({ selector: '[adf-info-drawer-content], [info-drawer-content]' }) export class InfoDrawerContentDirective {}
@Directive({
standalone: true,
selector: '[adf-info-drawer-title], [info-drawer-title]'
})
export class InfoDrawerTitleDirective {}
@Directive({
standalone: true,
selector: '[adf-info-drawer-buttons], [info-drawer-buttons]'
})
export class InfoDrawerButtonsDirective {}
@Directive({
standalone: true,
selector: '[adf-info-drawer-content], [info-drawer-content]'
})
export class InfoDrawerContentDirective {}