convert y axis definition to standalone component
This commit is contained in:
@@ -58,7 +58,6 @@ import { LimitByComponent } from "./limit-by/limit-by.component";
|
|||||||
@NgModule({ declarations: [
|
@NgModule({ declarations: [
|
||||||
AppComponent,
|
AppComponent,
|
||||||
VisualizationPageComponent,
|
VisualizationPageComponent,
|
||||||
YAxisDefinitionComponent,
|
|
||||||
QueryAutocompleteComponent,
|
QueryAutocompleteComponent,
|
||||||
PlotDetailsComponent,
|
PlotDetailsComponent,
|
||||||
PlotViewComponent,
|
PlotViewComponent,
|
||||||
@@ -104,7 +103,10 @@ import { LimitByComponent } from "./limit-by/limit-by.component";
|
|||||||
MatTableModule,
|
MatTableModule,
|
||||||
MatTooltipModule,
|
MatTooltipModule,
|
||||||
BrowserAnimationsModule,
|
BrowserAnimationsModule,
|
||||||
OverlayModule], providers: [{
|
OverlayModule,
|
||||||
|
YAxisDefinitionComponent
|
||||||
|
],
|
||||||
|
providers: [{
|
||||||
provide: MAT_DIALOG_DEFAULT_OPTIONS,
|
provide: MAT_DIALOG_DEFAULT_OPTIONS,
|
||||||
useValue: { hasBackdrop: true },
|
useValue: { hasBackdrop: true },
|
||||||
}, provideHttpClient(withInterceptorsFromDi())] })
|
}, provideHttpClient(withInterceptorsFromDi())] })
|
||||||
|
|||||||
@@ -1,10 +1,27 @@
|
|||||||
import { Component, Input } from '@angular/core';
|
import { Component, Input } from '@angular/core';
|
||||||
import { YAxisDefinition } from '../plot.service';
|
import { YAxisDefinition } from '../plot.service';
|
||||||
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
|
import { MatFormField, MatLabel } from '@angular/material/form-field';
|
||||||
|
import { MatOptgroup, MatOption, MatSelect } from '@angular/material/select';
|
||||||
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||||
|
import { MatInput } from '@angular/material/input';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'pdb-y-axis-definition',
|
selector: 'pdb-y-axis-definition',
|
||||||
templateUrl: './y-axis-definition.component.html',
|
templateUrl: './y-axis-definition.component.html',
|
||||||
styleUrls: ['./y-axis-definition.component.scss']
|
styleUrls: ['./y-axis-definition.component.scss'],
|
||||||
|
standalone: true,
|
||||||
|
imports: [
|
||||||
|
BrowserModule,
|
||||||
|
FormsModule,
|
||||||
|
MatFormField,
|
||||||
|
MatInput,
|
||||||
|
MatLabel,
|
||||||
|
MatSelect,
|
||||||
|
MatOption,
|
||||||
|
MatOptgroup,
|
||||||
|
ReactiveFormsModule
|
||||||
|
]
|
||||||
})
|
})
|
||||||
export class YAxisDefinitionComponent {
|
export class YAxisDefinitionComponent {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user