Skip to content

Commit

Permalink
116131: Fixed circular dependency issue
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrevryghem committed Jun 26, 2024
1 parent 281a82a commit af51c33
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import { hasNoValue, hasValue, isNotEmpty } from '../empty.util';
import { DEFAULT_THEME } from '../object-collection/shared/listable-object/listable-object.decorator';
import { ThemeConfig } from '../../../config/theme.model';
import { environment } from '../../../environments/environment';

export const DEFAULT_THEME = '*';

/**
* A class used to compare two matches and their relevancy to determine which of the two gains priority over the other
*
Expand Down
3 changes: 1 addition & 2 deletions src/app/shared/log-in/methods/log-in.methods-decorator.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { AuthMethodType } from '../../../core/auth/models/auth.method-type';
import { DEFAULT_THEME } from '../../object-collection/shared/listable-object/listable-object.decorator';
import { getMatch, DEFAULT_THEME } from '../../abstract-component-loader/dynamic-component-loader.utils';
import { hasNoValue } from '../../empty.util';
import { getMatch } from '../../abstract-component-loader/dynamic-component-loader.utils';

export const DEFAULT_AUTH_METHOD_TYPE = AuthMethodType.Password;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import { hasNoValue, hasValue } from '../empty.util';
import { Context } from '../../core/shared/context.model';
import { InjectionToken } from '@angular/core';
import { GenericConstructor } from '../../core/shared/generic-constructor';
import { DEFAULT_THEME, DEFAULT_CONTEXT } from '../object-collection/shared/listable-object/listable-object.decorator';
import { getMatch } from '../abstract-component-loader/dynamic-component-loader.utils';
import { DEFAULT_CONTEXT } from '../object-collection/shared/listable-object/listable-object.decorator';
import { getMatch, DEFAULT_THEME } from '../abstract-component-loader/dynamic-component-loader.utils';

export const METADATA_REPRESENTATION_COMPONENT_FACTORY = new InjectionToken<(entityType: string, mdRepresentationType: MetadataRepresentationType, context: Context, theme: string) => GenericConstructor<any>>('getMetadataRepresentationComponent', {
providedIn: 'root',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import { ListableObject } from '../listable-object.model';
import { environment } from '../../../../../environments/environment';
import { ThemeConfig } from '../../../../../config/theme.model';
import { InjectionToken } from '@angular/core';
import { DEFAULT_THEME } from '../../../abstract-component-loader/dynamic-component-loader.utils';

export const DEFAULT_VIEW_MODE = ViewMode.ListElement;
export const DEFAULT_CONTEXT = Context.Any;
export const DEFAULT_THEME = '*';

/**
* Factory to allow us to inject getThemeConfigFor so we can mock it in tests
Expand Down

0 comments on commit af51c33

Please sign in to comment.