Skip to content

Commit 9f406fe

Browse files
committed
chore: remove redundant standalone directive
1 parent 1eae85a commit 9f406fe

12 files changed

+7
-20
lines changed

projects/hyperdash-angular/src/editor/model-json/model-json-editor.component.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,6 @@ class TestDashboardModule {}
5353
@Component({
5454
selector: 'hda-host',
5555
template: ' <hda-model-json-editor [(modelJson)]="modelJson"> </hda-model-json-editor> ',
56-
standalone: true,
5756
imports: [DashboardEditorModule],
5857
schemas: [NO_ERRORS_SCHEMA]
5958
})

projects/hyperdash-angular/src/editor/model-json/model-json-editor.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import { ModelEditorService, RenderableEditor } from '../model-editor.service';
1313
selector: 'hda-model-json-editor',
1414
changeDetection: ChangeDetectionStrategy.OnPush,
1515
template: ' <hda-model-editor [model]="modelObject" /> ',
16-
standalone: true,
1716
imports: [ModelEditorComponent]
1817
})
1918
export class ModelJsonEditorComponent implements OnChanges, OnDestroy {

projects/hyperdash-angular/src/editor/model/model-editor.component.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ describe('Model editor component', () => {
1717
@Component({
1818
selector: 'hda-host',
1919
template: ' <hda-model-editor [model]="model" (modelChange)="modelChanged($event)"> </hda-model-editor> ',
20-
standalone: true,
2120
imports: [DashboardEditorModule],
2221
schemas: [NO_ERRORS_SCHEMA]
2322
})

projects/hyperdash-angular/src/editor/model/model-editor.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import { ModelEditorService, RenderableEditor } from '../model-editor.service';
1515
<ng-container *ngComponentOutlet="subeditor.component; injector: subeditor.injector" />
1616
}
1717
`,
18-
standalone: true,
1918
imports: [NgComponentOutlet]
2019
})
2120
export class ModelEditorComponent implements OnChanges, OnDestroy {

projects/hyperdash-angular/src/editor/nested-model/nested-model-editor.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ import { ModelJsonEditorComponent } from '../model-json/model-json-editor.compon
1111
selector: 'hda-nested-model-editor',
1212
changeDetection: ChangeDetectionStrategy.OnPush,
1313
template: '<hda-model-json-editor [modelJson]="api.value" (modelJsonChange)="api.valueChange($event)" /> ',
14-
standalone: true,
1514
imports: [ModelJsonEditorComponent]
1615
})
1716
export class NestedModelEditorComponent {

projects/hyperdash-angular/src/rendering/dashboard-model.directive.test.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ describe('DashboardModelDirective', () => {
7676
@Component({
7777
selector: 'hda-dash-model-directive-host',
7878
template: '<ng-container [hdaDashboardModel]=model><ng-container>',
79-
standalone: true,
8079
imports: [DashboardModelDirective],
8180
schemas: [NO_ERRORS_SCHEMA]
8281
})

projects/hyperdash-angular/src/rendering/dashboard-model.directive.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import { DashboardRendererService } from './dashboard-renderer.service';
77
* for injection
88
*/
99
@Directive({
10-
selector: '[hdaDashboardModel]',
11-
standalone: true
10+
selector: '[hdaDashboardModel]'
1211
})
1312
export class DashboardModelDirective implements OnChanges {
1413
public constructor(

projects/hyperdash-angular/src/rendering/dashboard.component.test.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ describe('Dashboard Component', () => {
1616
let host: ComponentFixture<HostComponent>;
1717
const mockDashDirective = mockDirective<DashboardModelDirective>({
1818
selector: '[hdaDashboardModel]',
19-
inputs: ['hdaDashboardModel'],
20-
standalone: true
19+
inputs: ['hdaDashboardModel']
2120
});
2221
let mockDashboardRendererService: Partial<DashboardRendererService>;
2322
let mockRendererDomEventObservable: Observable<RendererDomEvent<Event, object, unknown>>;
@@ -29,7 +28,6 @@ describe('Dashboard Component', () => {
2928
<hda-dashboard [json]="json" (dashboardReady)="dashboard = $event" (widgetSelectionChange)="widgetSelected($event)">
3029
</hda-dashboard>
3130
`,
32-
standalone: true,
3331
imports: [DashboardComponent],
3432
schemas: [NO_ERRORS_SCHEMA]
3533
})

projects/hyperdash-angular/src/rendering/dashboard.component.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import { DashboardRendererService } from './dashboard-renderer.service';
2121
selector: 'hda-dashboard',
2222
changeDetection: ChangeDetectionStrategy.OnPush,
2323
template: ' <ng-container [hdaDashboardModel]="dashboardObject?.root" /> ',
24-
standalone: true,
2524
imports: [DashboardModelDirective]
2625
})
2726
export class DashboardComponent<TRoot extends object = object> implements OnChanges, OnDestroy {

projects/hyperdash-angular/src/rendering/theme-property.pipe.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ import { RendererApi, RENDERER_API } from './api/renderer-api';
1313
name: 'themeProp',
1414
// Must be impure - result depends on state of model tree
1515
// eslint-disable-next-line @angular-eslint/no-pipe-impure
16-
pure: false,
17-
standalone: true
16+
pure: false
1817
})
1918
export class ThemePropertyPipe implements PipeTransform, OnDestroy {
2019
private modelChanged: boolean = true;

0 commit comments

Comments
 (0)