Skip to content

Commit

Permalink
feat: message service moved
Browse files Browse the repository at this point in the history
  • Loading branch information
markuczy committed Mar 13, 2024
1 parent 7de295c commit 7a647f7
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 10 deletions.
1 change: 1 addition & 0 deletions libs/angular-integration-interface/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
export * from './lib/services/app-state.service'
export * from './lib/services/configuration.service'
export * from './lib/services/user.service'
export * from './lib/services/portal-message.service'
export * from './lib/services/theme.service'
export * from './lib/services/translation-cache.service'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { TestBed, fakeAsync } from '@angular/core/testing'
import { PortalMessageService } from './portal-message.service'
import { TranslateTestingModule } from 'ngx-translate-testing'
import { Message } from '@onecx/integration-interface'
import { PortalMessageService } from './portal-message.service'

describe('PortalMessageService', () => {
const origAddEventListener = window.addEventListener
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Injectable } from '@angular/core'
import { TranslateService } from '@ngx-translate/core'
import { MessageTopic } from '@onecx/integration-interface'
import { combineLatest, of } from 'rxjs'
import { MessageTopic } from '@onecx/integration-interface'

export type Message = {
summaryKey?: string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ import { Injectable, Optional } from '@angular/core'
import { TranslateService } from '@ngx-translate/core'
import { combineLatest, of } from 'rxjs'
// eslint-disable-next-line
import { Message, PortalMessageService } from '@onecx/portal-integration-angular'
import { FakeTopic } from './fake-topic'
import { Message, PortalMessageService } from '@onecx/angular-integration-interface'
import { Message as TopicMessage } from '@onecx/integration-interface'
import { FakeTopic } from './fake-topic'

export function providePortalMessageServiceMock() {
return [
Expand Down
1 change: 0 additions & 1 deletion libs/portal-integration-angular/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ export * from './lib/core/components/lifecycle/lifecycle.component'
export * from './lib/services/app.menu.service'
export * from './lib/services/menu-api.service'
export * from './lib/services/portal-api.service'
export * from './lib/services/portal-message.service'
export * from './lib/services/initialize-module-guard.service'
export * from './lib/services/userprofile-api.service'
export * from './lib/services/portal-dialog.service'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ import { NoopAnimationsModule } from '@angular/platform-browser/animations'
import { TranslateTestingModule } from 'ngx-translate-testing'
import { DialogModule } from 'primeng/dialog'

import { ConfigurationService } from '@onecx/angular-integration-interface'
import { ConfigurationService, PortalMessageService } from '@onecx/angular-integration-interface'
import { HelpItemEditorComponent } from './help-item-editor.component'
import { PortalMessageService } from '../../../services/portal-message.service'

describe('HelpItemEditorComponent', () => {
let component: HelpItemEditorComponent
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Component, EventEmitter, Input, OnChanges, Output, SimpleChanges } from '@angular/core'
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms'
import { PortalMessageService } from '@onecx/angular-integration-interface'
import { HelpData } from '../../../model/help-data'
import { PortalMessageService } from '../../../services/portal-message.service'

@Component({
selector: 'ocx-help-item-editor',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,13 @@ import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy'
import { catchError, combineLatest, filter, first, map, mergeMap, Observable, of, withLatestFrom } from 'rxjs'
import { MenuItem, MessageService, PrimeNGConfig } from 'primeng/api'
import { DialogService } from 'primeng/dynamicdialog'
import { AppStateService, UserService, ThemeService } from '@onecx/angular-integration-interface'
import { AppStateService, UserService, ThemeService, PortalMessageService } from '@onecx/angular-integration-interface'
import { SupportTicketApiService } from './../../../services/support-ticket-api.service'
import { PortalUIService } from '../../../services/portal-ui.service'
import { SupportTicket } from '../../../model/support-ticket'
import { HelpData } from '../../../model/help-data'
import { NoHelpItemComponent } from '../no-help-item/no-help-item.component'
import { HelpPageAPIService } from '../../../services/help-api-service'
import { PortalMessageService } from '../../../services/portal-message.service'

@Component({
selector: 'ocx-portal-viewport',
Expand Down

0 comments on commit 7a647f7

Please sign in to comment.