Skip to content

Commit

Permalink
chore: fix some cyclic dependencies that prevented a lib build
Browse files Browse the repository at this point in the history
  • Loading branch information
jahow committed Nov 12, 2023
1 parent 186d70b commit bd6dfbb
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion libs/feature/map/src/lib/utils/map-utils.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
import WMTSCapabilities from 'ol/format/WMTSCapabilities'
import { from, Observable, of } from 'rxjs'
import { map } from 'rxjs/operators'
import { MapContextLayerModel } from '../..'
import { MapContextLayerModel } from '../map-context/map-context.model'
import { MapUtilsWMSService } from './map-utils-wms.service'
import Collection from 'ol/Collection'
import MapBrowserEvent from 'ol/MapBrowserEvent'
Expand Down
1 change: 1 addition & 0 deletions libs/feature/record/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export * from './lib/feature-record.module'
export * from './lib/gn-ui-version.token'
export * from './lib/state'
export * from './lib/data-view-permalink/data-view-permalink.component'
export * from './lib/data-view/data-view.component'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { BehaviorSubject, firstValueFrom } from 'rxjs'
import { MdViewFacade } from '../state'
import { Component, Input } from '@angular/core'
import { TranslateModule } from '@ngx-translate/core'
import { GN_UI_VERSION } from '../feature-record.module'
import { GN_UI_VERSION } from '../gn-ui-version.token'

const chartConfig1 = {
aggregation: 'sum',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
import { Configuration } from '@geonetwork-ui/data-access/gn4'
import { combineLatest, map } from 'rxjs'
import { MdViewFacade } from '../state'
import { GN_UI_VERSION } from '../feature-record.module'
import { GN_UI_VERSION } from '../gn-ui-version.token'

export const WEB_COMPONENT_EMBEDDER_URL = new InjectionToken<string>(
'webComponentEmbedderUrl'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { Configuration } from '@geonetwork-ui/data-access/gn4'
import { MdViewFacade } from '../state'
import { TranslateModule } from '@ngx-translate/core'
import { Component, Input } from '@angular/core'
import { GN_UI_VERSION } from '../feature-record.module'
import { GN_UI_VERSION } from '../gn-ui-version.token'

const chartConfig1 = {
aggregation: 'sum',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { ChangeDetectionStrategy, Component, Inject } from '@angular/core'
import { Configuration } from '@geonetwork-ui/data-access/gn4'
import { MdViewFacade } from '../state'
import { combineLatest, map } from 'rxjs'
import { GN_UI_VERSION } from '../feature-record.module'
import { GN_UI_VERSION } from '../gn-ui-version.token'

@Component({
selector: 'gn-ui-data-view-web-component',
Expand Down
1 change: 0 additions & 1 deletion libs/feature/record/src/lib/feature-record.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import { DataViewPermalinkComponent } from './data-view-permalink/data-view-perm
import { DataViewWebComponentComponent } from './data-view-web-component/data-view-web-component.component'
import { DataViewShareComponent } from './data-view-share/data-view-share.component'

export const GN_UI_VERSION = new InjectionToken<string>('gnUiVersion')
@NgModule({
declarations: [
MapViewComponent,
Expand Down
3 changes: 3 additions & 0 deletions libs/feature/record/src/lib/gn-ui-version.token.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { InjectionToken } from '@angular/core'

export const GN_UI_VERSION = new InjectionToken<string>('gnUiVersion')

0 comments on commit bd6dfbb

Please sign in to comment.