Nav menu overhaul New folder for material overrides Custom font classes Fix global font, add back resets, and update link colors Fix project list layout Expose material typography tokens as css classes Add button story and scss file for storybook Implementation of top app bar New project multiselect New timerange picker e2e fixes responsive layout fixes
56 lines
1.5 KiB
TypeScript
56 lines
1.5 KiB
TypeScript
import {
|
|
applicationConfig,
|
|
componentWrapperDecorator,
|
|
moduleMetadata,
|
|
type Preview,
|
|
} from "@storybook/angular";
|
|
import "@angular/localize/init";
|
|
import { MatIconRegistry } from "@angular/material/icon";
|
|
import { Component } from "@angular/core";
|
|
import { provideRouter } from "@angular/router";
|
|
import { provideHttpClientTesting } from "@angular/common/http/testing";
|
|
import { provideHttpClient } from "@angular/common/http";
|
|
import { provideMicroSentry } from "@micro-sentry/angular";
|
|
import { provideAnimations } from "@angular/platform-browser/animations";
|
|
import { withColorScheme } from "./decorators/with-color-scheme.decorator";
|
|
|
|
@Component({
|
|
selector: "parent",
|
|
template: `<ng-content></ng-content>`,
|
|
})
|
|
class ParentComponent {
|
|
constructor(private matIconRegistry: MatIconRegistry) {
|
|
this.matIconRegistry.setDefaultFontSetClass("material-symbols-filled");
|
|
document.documentElement.classList.add("light");
|
|
}
|
|
}
|
|
|
|
const preview: Preview = {
|
|
parameters: {
|
|
controls: {
|
|
matchers: {
|
|
color: /(background|color)$/i,
|
|
date: /Date$/i,
|
|
},
|
|
},
|
|
},
|
|
decorators: [
|
|
applicationConfig({
|
|
providers: [
|
|
provideHttpClient(),
|
|
provideMicroSentry({}),
|
|
provideHttpClientTesting(),
|
|
provideAnimations(),
|
|
provideRouter([]),
|
|
],
|
|
}),
|
|
moduleMetadata({
|
|
imports: [ParentComponent],
|
|
}),
|
|
componentWrapperDecorator(ParentComponent),
|
|
withColorScheme,
|
|
],
|
|
};
|
|
|
|
export default preview;
|