diff --git a/nimbus-ui/nimbusui/src/app/components/platform/message/message.component.ts b/nimbus-ui/nimbusui/src/app/components/platform/message/message.component.ts index ed493c39c..93b824fd5 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/message/message.component.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/message/message.component.ts @@ -17,9 +17,8 @@ 'use strict'; import { Component, Input, SimpleChanges, ChangeDetectorRef } from '@angular/core'; -import { MessageService } from 'primeng/api'; import { ComponentTypes } from '../../../shared/param-annotations.enum'; - +import { NmMessageService } from './../../../services/toastmessage.service'; /** * * \@author Vivek.Kamineni @@ -33,7 +32,6 @@ import { ComponentTypes } from '../../../shared/param-annotations.enum'; @Component({ selector: 'nm-message', template: ` - 0) { - this.messageService.addAll(this.messageArray); - setTimeout(() => { - this.cdr.detectChanges(); - }); + this.msgSvc.createMessage(this.messageContext, this.messageArray, this.life) } } diff --git a/nimbus-ui/nimbusui/src/app/components/platform/message/toastmessage.component.ts b/nimbus-ui/nimbusui/src/app/components/platform/message/toastmessage.component.ts new file mode 100644 index 000000000..d91eba7c5 --- /dev/null +++ b/nimbus-ui/nimbusui/src/app/components/platform/message/toastmessage.component.ts @@ -0,0 +1,73 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +'use strict'; + +import { Component, Input, NgZone, ChangeDetectorRef } from '@angular/core'; +import { MessageService } from 'primeng/api'; +import { ComponentTypes } from '../../../shared/param-annotations.enum'; +import { NmMessageService } from './../../../services/toastmessage.service'; +/** + * + * \@author Sandeep Mantha + * \@whatItDoes + * This component can be used when we would display a user message after a certain action. + * messageType can be of type SUCESS or DANGER. Based on the type, a specific CSS class would be applied. + * messageText is the message we want to display to the user. + * \@howToUse + * + */ +@Component({ + selector: 'nm-toast-message', + template: ` + + `, + providers: [MessageService] +}) + +export class ToastMessageComponent { + @Input() messageContext: String; + @Input() messageArray: any[]; + @Input() life: number; + @Input() styleClass: String; + componentTypes = ComponentTypes; + + constructor(private messageService: MessageService, private cdr: ChangeDetectorRef, private ngZone: NgZone, private _messageservice: NmMessageService) {} + + ngOnInit() { + + this._messageservice.messageEvent$.subscribe(messages => { + this.messageService.clear(); + messages.forEach(msg => { + this.ngZone.run(() => { + setTimeout(() => { + this.messageService.addAll(msg.messageArray); + this.cdr.detectChanges(); + }); + }); + }); + + + }); + // this.ngZone.run(() => { + // setTimeout(() => { + // this.messageService.addAll(this.messageArray); + // this.cdr.detectChanges(); + // }); + // }); + } + +} \ No newline at end of file diff --git a/nimbus-ui/nimbusui/src/app/services/page.service.ts b/nimbus-ui/nimbusui/src/app/services/page.service.ts index f91133f83..0ec00580b 100644 --- a/nimbus-ui/nimbusui/src/app/services/page.service.ts +++ b/nimbus-ui/nimbusui/src/app/services/page.service.ts @@ -1,3 +1,4 @@ + /** * @license * Copyright 2016-2018 the original author or authors. @@ -40,7 +41,7 @@ import { GridData } from './../shared/param-state'; import { Message } from './../shared/message'; import { ComponentTypes } from './../shared/param-annotations.enum'; import { DataGroup } from '../components/platform/charts/chartdata'; - +import { NmMessageService } from './toastmessage.service'; /** * \@author Dinakar.Meda * \@author Sandeep.Mantha @@ -67,9 +68,6 @@ export class PageService { gridValueUpdate = new Subject(); gridValueUpdate$ = this.gridValueUpdate.asObservable(); - messageEvent = new Subject(); - messageEvent$ = this.messageEvent.asObservable(); - postResponseProcessing = new Subject(); postResponseProcessing$ = this.postResponseProcessing.asObservable(); @@ -77,7 +75,7 @@ export class PageService { private _entityId: number = 0; constructor(private http: CustomHttpClient, private loaderService: LoaderService, private configService: ConfigService, - private logger: LoggerService, private sessionStore: SessionStoreService, private location: Location) { + private logger: LoggerService, private sessionStore: SessionStoreService, private location: Location, private toastService: NmMessageService) { // initialize this.flowRootDomainId = {}; // Create Observable Stream to output our data @@ -100,19 +98,6 @@ export class PageService { this.logger.error('ERROR: Failure making server call : ' + JSON.stringify(err)); } - notifyErrorEvent(exec: ExecuteException) { - if (exec.message) { - let messageList: Message[] = []; - let msg = new Message(); - let messages = []; - msg.context = ComponentTypes.toast.toString(); - messages.push({severity: 'error', summary: 'Error Message', detail: exec.message, life: 10000}); - msg.messageArray = messages; - messageList.push(msg); - this.messageEvent.next(messageList); - } - } - /** Build the base URL for Server calls */ buildBaseURL() { @@ -629,7 +614,7 @@ export class PageService { } else { let flowConfig: Model = viewRoot.model; if(eventModel.value.path == '/'+flowName && eventModel.value.message) { - this.messageEvent.next(eventModel.value.message); + this.toastService.emitMessageEvent(eventModel.value.message); } if (flowConfig) { this.traverseConfig(flowConfig.params, eventModel); From be0952d24e74306ccca1d8f27c068cf6a3871cc3 Mon Sep 17 00:00:00 2001 From: Sandeep Mantha Date: Wed, 13 Feb 2019 11:21:01 -0500 Subject: [PATCH 85/99] missed files for toast message --- .../message/toastmessage.component.ts | 16 +---- .../src/app/services/toastmessage.service.ts | 63 +++++++++++++++++++ 2 files changed, 65 insertions(+), 14 deletions(-) create mode 100644 nimbus-ui/nimbusui/src/app/services/toastmessage.service.ts diff --git a/nimbus-ui/nimbusui/src/app/components/platform/message/toastmessage.component.ts b/nimbus-ui/nimbusui/src/app/components/platform/message/toastmessage.component.ts index d91eba7c5..b243f9179 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/message/toastmessage.component.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/message/toastmessage.component.ts @@ -24,9 +24,7 @@ import { NmMessageService } from './../../../services/toastmessage.service'; * * \@author Sandeep Mantha * \@whatItDoes - * This component can be used when we would display a user message after a certain action. - * messageType can be of type SUCESS or DANGER. Based on the type, a specific CSS class would be applied. - * messageText is the message we want to display to the user. + * This component can be used when we would display a toast message that is transient in nature * \@howToUse * */ @@ -38,11 +36,7 @@ import { NmMessageService } from './../../../services/toastmessage.service'; providers: [MessageService] }) -export class ToastMessageComponent { - @Input() messageContext: String; - @Input() messageArray: any[]; - @Input() life: number; - @Input() styleClass: String; +export class ToastMessageComponent { componentTypes = ComponentTypes; constructor(private messageService: MessageService, private cdr: ChangeDetectorRef, private ngZone: NgZone, private _messageservice: NmMessageService) {} @@ -62,12 +56,6 @@ export class ToastMessageComponent { }); - // this.ngZone.run(() => { - // setTimeout(() => { - // this.messageService.addAll(this.messageArray); - // this.cdr.detectChanges(); - // }); - // }); } } \ No newline at end of file diff --git a/nimbus-ui/nimbusui/src/app/services/toastmessage.service.ts b/nimbus-ui/nimbusui/src/app/services/toastmessage.service.ts new file mode 100644 index 000000000..20c0a1b6b --- /dev/null +++ b/nimbus-ui/nimbusui/src/app/services/toastmessage.service.ts @@ -0,0 +1,63 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +'use strict'; +import { Injectable } from '@angular/core'; +import { Subject } from 'rxjs'; +import { Message } from './../shared/message'; +import { ComponentTypes } from './../shared/param-annotations.enum'; +import { ExecuteException } from './../shared/app-config.interface'; +/** + * \@author Sandeep.Mantha + * \@whatItDoes + * + * \@howToUse + * + */ +@Injectable() +export class NmMessageService { + + constructor() {} + + messageEvent = new Subject(); + messageEvent$ = this.messageEvent.asObservable(); + + notifyErrorEvent(exec: ExecuteException) { + if (exec.message) { + let messageList: Message[] = []; + let msg = new Message(); + let messages = []; + msg.context = ComponentTypes.toast.toString(); + messages.push({severity: 'error', summary: 'Error Message', detail: exec.message, life: 10000}); + msg.messageArray = messages; + messageList.push(msg); + this.emitMessageEvent(messageList); + } + } + + createMessage(msgContext: String, messages: any[], life: number) { + let messageList: Message[] = []; + let msg = new Message(); + msg.context = ComponentTypes.toast.toString(); + msg.messageArray = messages; + messageList.push(msg); + this.emitMessageEvent(messageList); + } + + emitMessageEvent(messageList: Message[]) { + this.messageEvent.next(messageList); + } +} \ No newline at end of file From 01cea834ebf892c52bda9fc5b5fc9e844ec35798 Mon Sep 17 00:00:00 2001 From: "Meda, Dinakar" Date: Wed, 13 Feb 2019 11:37:51 -0500 Subject: [PATCH 86/99] fix section class --- .../nimbusui/src/app/components/platform/tile.component.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimbus-ui/nimbusui/src/app/components/platform/tile.component.html b/nimbus-ui/nimbusui/src/app/components/platform/tile.component.html index 03c76f022..7bacbcb19 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/tile.component.html +++ b/nimbus-ui/nimbusui/src/app/components/platform/tile.component.html @@ -23,7 +23,7 @@ - + From d58c4f91584a95fcd812b1e0c8bf944d30456ce8 Mon Sep 17 00:00:00 2001 From: Sandeep Mantha Date: Wed, 13 Feb 2019 14:18:56 -0500 Subject: [PATCH 87/99] test file changes for nmmessage service --- nimbus-ui/nimbusui/src/app/app.module.ts | 7 ++-- .../domain/domain-flow.component.spec.ts | 3 ++ .../domain/layout-resolver.service.spec.ts | 2 ++ .../home/home-layout.component.spec.ts | 8 ++++- .../breadcrumb/breadcrumb.service.spec.ts | 2 ++ ...card-details-field-group.component.spec.ts | 2 ++ .../card/card-details-field.component.spec.ts | 2 ++ .../card/card-details.component.spec.ts | 3 +- .../platform/charts/chart.component.spec.ts | 2 ++ .../content/accordion.component.spec.ts | 3 ++ .../content/flow-wrapper.component.spec.ts | 2 ++ .../platform/content/label.component.spec.ts | 2 ++ .../content/page-content.component.spec.ts | 3 ++ .../platform/form-element.component.spec.ts | 2 ++ .../platform/form-group.component.spec.ts | 3 ++ .../platform/form.component.spec.ts | 6 ++-- .../action-dropdown.component.spec.ts | 2 ++ .../form/elements/button.component.spec.ts | 2 ++ .../form/elements/calendar.component.spec.ts | 4 ++- .../form/elements/checkbox.component.spec.ts | 2 ++ .../form/elements/combobox.component.spec.ts | 2 ++ .../elements/filter-button.component.spec.ts | 2 ++ .../elements/input-label.component.spec.ts | 2 ++ .../elements/input-legend.component.spec.ts | 2 ++ .../form/elements/radio.component.spec.ts | 2 ++ .../form/elements/signature.component.spec.ts | 2 ++ .../form/elements/textarea.component.spec.ts | 2 ++ .../platform/grid/table.component.spec.ts | 2 ++ .../message/message.component.spec.ts | 3 +- .../httpclient-interceptor.service.ts | 7 ++-- .../src/app/services/page.service.spec.ts | 33 +++++++------------ nimbus-ui/nimbusui/src/app/setup.spec.ts | 3 +- 32 files changed, 89 insertions(+), 35 deletions(-) diff --git a/nimbus-ui/nimbusui/src/app/app.module.ts b/nimbus-ui/nimbusui/src/app/app.module.ts index fe1457caf..a9ab6a405 100644 --- a/nimbus-ui/nimbusui/src/app/app.module.ts +++ b/nimbus-ui/nimbusui/src/app/app.module.ts @@ -111,6 +111,7 @@ import { Label } from './components/platform/content/label.component'; import { InputLabel } from './components/platform/form/elements/input-label.component'; import { BaseTableElement } from './components/platform/base-table-element.component'; import { TableHeader } from './components/platform/grid/table-header.component'; +import { ToastMessageComponent } from './components/platform/message/toastmessage.component'; // Services import { WebContentSvc } from './services/content-management.service'; @@ -153,7 +154,6 @@ import { SubDomainFlowCmp } from './components/domain/subdomain-flow.component'; import { PageResolver } from './components/platform/content/page-resolver.service'; import {DateTimeFormatPipe} from './pipes/date.pipe'; import { DisplayValueDirective } from './directives/display-value.directive'; - import { NmPanelMenu, NmPanelMenuSub } from './components/platform/panelmenu.component'; import { MenuRouteLink } from './directives/routes/route-link.component'; import { MenuRouterLinkActive } from './directives/routes/route-active.component'; @@ -162,6 +162,7 @@ import { InputLegend } from './components/platform/form/elements/input-legend.co import { FormErrorMessage } from './components/platform/form-error-message.component'; import { EventPropagationDirective } from './components/platform/form/elements/event-propagation.directive'; import { NmChart } from './components/platform/charts/chart.component'; +import { NmMessageService } from './services/toastmessage.service'; /** * \@author Dinakar.Meda * \@author Sandeep.Mantha @@ -230,7 +231,7 @@ export function init_app(appinitservice: AppInitService) { HomeLayoutCmp, LoginCmp, LoginLayoutCmp, StyleGuideCmp, KeysPipe, LinkPipe, DateTimeFormatPipe, SelectItemPipe, MultiSelectListBox, CheckBox, FileUploadComponent, BreadcrumbComponent, TooltipComponent, Calendar, LoaderComponent, MessageComponent, - HeaderCheckBox, SvgComponent, ActionTray, SubDomainFlowCmp, Image, NmPanelMenu,NmPanelMenuSub, MenuRouterLinkActive, NmChart, + HeaderCheckBox, SvgComponent, ActionTray, SubDomainFlowCmp, Image, NmPanelMenu,NmPanelMenuSub, MenuRouterLinkActive, NmChart, ToastMessageComponent, MenuRouteLink, Label, InputLabel,InputSwitch,TreeGrid,InputLegend, FormErrorMessage, BaseTableElement, EventPropagationDirective, TableHeader ], entryComponents: [ FlowWrapper, PageContent, PageNotfoundComponent, LoginCmp, HomeLayoutCmp, SubDomainFlowCmp], @@ -244,7 +245,7 @@ export function init_app(appinitservice: AppInitService) { { provide: ErrorHandler, useClass: CustomErrorHandler }, { provide: CUSTOM_STORAGE, useExisting: SESSION_STORAGE }, SessionStoreService, - AuthenticationService, BreadcrumbService, LoaderService, FileService, LayoutService, WindowRefService, LoggerService, + AuthenticationService, BreadcrumbService, LoaderService, FileService, LayoutService, WindowRefService, LoggerService, NmMessageService, RouteService, MessageService, GridUtils, DateTimeFormatPipe, PrintService], bootstrap: [ AppComponent ] }) diff --git a/nimbus-ui/nimbusui/src/app/components/domain/domain-flow.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/domain/domain-flow.component.spec.ts index 611625820..03f6cb68c 100644 --- a/nimbus-ui/nimbusui/src/app/components/domain/domain-flow.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/domain/domain-flow.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../services/toastmessage.service'; import { NmChart } from './../platform/charts/chart.component'; import { ChartModule } from 'primeng/chart'; import { EditorModule } from 'primeng/editor'; @@ -398,6 +399,7 @@ export class MockActivatedRoute implements ActivatedRoute { { provide: 'JSNLOG', useValue: JL }, {provide: LoggerService, useClass: MockLoggerService}, CustomHttpClient, + NmMessageService, WebContentSvc, LoaderService, ConfigService, @@ -529,6 +531,7 @@ const secondProviders = [ WebContentSvc, LoaderService, ConfigService, + NmMessageService, BreadcrumbService, SessionStoreService, AppInitService diff --git a/nimbus-ui/nimbusui/src/app/components/domain/layout-resolver.service.spec.ts b/nimbus-ui/nimbusui/src/app/components/domain/layout-resolver.service.spec.ts index 41f2d394a..0b4a31f91 100644 --- a/nimbus-ui/nimbusui/src/app/components/domain/layout-resolver.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/domain/layout-resolver.service.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../services/toastmessage.service'; import { TestBed, inject, async } from '@angular/core/testing'; import { HttpClient, HttpRequest } from '@angular/common/http'; import { HttpModule } from '@angular/http'; @@ -98,6 +99,7 @@ describe('LayoutResolver', () => { CustomHttpClient, LoaderService, BreadcrumbService, + NmMessageService, SessionStoreService, AppInitService ] diff --git a/nimbus-ui/nimbusui/src/app/components/home/home-layout.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/home/home-layout.component.spec.ts index 85b5a9202..d7b68b9bb 100644 --- a/nimbus-ui/nimbusui/src/app/components/home/home-layout.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/home/home-layout.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; import * as Stomp from 'stompjs'; @@ -51,6 +52,8 @@ import { Image } from '../platform/image.component'; import { setup, TestContext } from '../../setup.spec'; import { configureTestSuite } from 'ng-bullet'; import { Homelayout } from 'mockdata' +import { ToastMessageComponent } from '../platform/message/toastmessage.component'; +import { ToastModule } from 'primeng/toast'; @Component({ template: '
', @@ -187,6 +190,7 @@ const declarations= [ Image, ActionLink, NmPanelMenu, + ToastMessageComponent, NmPanelMenuSub ]; const providers = [ @@ -202,6 +206,7 @@ const declarations= [ LoaderService, ConfigService, BreadcrumbService, + NmMessageService, SessionStoreService, AppInitService ]; @@ -212,7 +217,8 @@ const declarations= [ HttpClientModule, HttpModule, StorageServiceModule, - AngularSvgIconModule + AngularSvgIconModule, + ToastModule ]; let fixture, hostComponent; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/breadcrumb/breadcrumb.service.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/breadcrumb/breadcrumb.service.spec.ts index 1bc68d60a..bf97f95c7 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/breadcrumb/breadcrumb.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/breadcrumb/breadcrumb.service.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../../services/toastmessage.service'; import { TestBed, inject, async } from '@angular/core/testing'; import { HttpClient, HttpRequest } from '@angular/common/http'; import { HttpModule } from '@angular/http'; @@ -24,6 +25,7 @@ describe('BreadcrumbService', () => { { provide: CUSTOM_STORAGE, useExisting: SESSION_STORAGE }, { provide: 'JSNLOG', useValue: JL }, { provide: LocationStrategy, useClass: HashLocationStrategy }, + NmMessageService, Location, BreadcrumbService, PageService, diff --git a/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field-group.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field-group.component.spec.ts index 44772617d..8d898b3a6 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field-group.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field-group.component.spec.ts @@ -35,6 +35,7 @@ import { LoggerService } from '../../../services/logger.service'; import { AppInitService } from '../../../services/app.init.service'; import { cardDetailsFieldGroupElement, newCardDetailsFieldGroupElement } from 'mockdata'; import { Paragraph } from '../content/paragraph.component'; +import { NmMessageService } from './../../../services/toastmessage.service'; let fixture,hostComponent; @@ -67,6 +68,7 @@ const imports = [ AppInitService, SessionStoreService, CustomHttpClient, + NmMessageService, WebContentSvc, PageService, LoaderService, diff --git a/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field.component.spec.ts index 4feb6abba..91e154c56 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field.component.spec.ts @@ -31,6 +31,7 @@ import { ConfigService } from './../../../services/config.service'; import { LoggerService } from '../../../services/logger.service'; import { AppInitService } from '../../../services/app.init.service'; import { cardDetailsFieldInputLabel, cardDetailsFieldInputLabelNoDate, cardDetailsFieldParam, cardDetailsFieldNmDisplayValueParam } from 'mockdata'; +import { NmMessageService } from './../../../services/toastmessage.service'; @Component({ template: '
', @@ -72,6 +73,7 @@ const providers = [ SessionStoreService, CustomHttpClient, PageService, + NmMessageService, LoaderService, ConfigService, LoggerService, diff --git a/nimbus-ui/nimbusui/src/app/components/platform/card/card-details.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/card/card-details.component.spec.ts index 0d0e2060d..163c4fa1a 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/card/card-details.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/card/card-details.component.spec.ts @@ -1,4 +1,3 @@ -import { Param } from './../../../shared/param-state'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; @@ -39,6 +38,7 @@ import { ServiceConstants } from '../../../services/service.constants'; import { Subject } from 'rxjs'; import { ComponentTypes } from '../../../shared/param-annotations.enum'; import { cardDetailsBodyElement, cardDetailsHeaderElement } from 'mockdata'; +import { NmMessageService } from './../../../services/toastmessage.service';import { Param } from './../../../shared/param-state'; class MockPageService { public eventUpdate$: Subject; @@ -116,6 +116,7 @@ const providers = [ { provide: PageService, useClass: MockPageService }, CustomHttpClient, LoaderService, + NmMessageService, ConfigService ]; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/charts/chart.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/charts/chart.component.spec.ts index 540725c5e..14f8ef022 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/charts/chart.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/charts/chart.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../../services/toastmessage.service'; 'use strict'; import { PageService } from './../../../services/page.service'; import { TestBed, async } from '@angular/core/testing'; @@ -56,6 +57,7 @@ const providers = [ { provide: WebContentSvc, useClass: MockWebContentSvc }, { provide: 'JSNLOG', useValue: JL }, LoggerService, + NmMessageService, AppInitService ]; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/accordion.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/accordion.component.spec.ts index f6be13a0f..41edb1afe 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/accordion.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/accordion.component.spec.ts @@ -86,6 +86,8 @@ import { NmChart } from './../charts/chart.component'; import { ChartModule } from 'primeng/chart'; import { EditorModule } from 'primeng/editor'; import { TableHeader } from './../grid/table-header.component'; +import { NmMessageService } from './../../../services/toastmessage.service'; + let pageService, webContentSvc, configService; class MockWebContentSvc { @@ -242,6 +244,7 @@ const providers = [ Location, GridService, PrintService, + NmMessageService, ChangeDetectorRef ]; let fixture, hostComponent, changeDetectorRef; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/flow-wrapper.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/flow-wrapper.component.spec.ts index e17c1b7bb..7baf3d054 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/flow-wrapper.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/flow-wrapper.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; @@ -89,6 +90,7 @@ const providers = [ { provide: CUSTOM_STORAGE, useExisting: SESSION_STORAGE }, { provide: 'JSNLOG', useValue: JL }, CustomHttpClient, + NmMessageService, LoaderService, LoggerService, AppInitService diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/label.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/label.component.spec.ts index d882158bc..c49383a4a 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/label.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/label.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { HttpClientModule } from '@angular/common/http'; @@ -37,6 +38,7 @@ const providers = [ WebContentSvc, PageService, CustomHttpClient, +NmMessageService, SessionStoreService, LoaderService, ConfigService, diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/page-content.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/page-content.component.spec.ts index cdceb79d9..ce05d74e2 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/page-content.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/page-content.component.spec.ts @@ -88,6 +88,8 @@ import { ChartModule } from 'primeng/chart'; import { RichText } from './../form/elements/rich-text.component'; import { TableHeader } from './../grid/table-header.component'; import { Param } from './../../../shared/param-state'; +import { NmMessageService } from './../../../services/toastmessage.service'; + let logger, pageService, param, printService; export class MockActivatedRoute implements ActivatedRoute { @@ -277,6 +279,7 @@ const declarations = [ {provide: PageService, useClass: MockPageService}, {provide: PrintService, useClass: MockPrintService}, AppInitService, + NmMessageService, SessionStoreService, CustomHttpClient, LoaderService, diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form-element.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form-element.component.spec.ts index e2f06df61..f23725a05 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form-element.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form-element.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../services/toastmessage.service'; import { ChartModule } from 'primeng/chart'; import { NmChart } from './charts/chart.component'; import { RichText } from './form/elements/rich-text.component'; @@ -243,6 +244,7 @@ const declarations = [ PrintService, GridUtils, DateTimeFormatPipe, + NmMessageService, { provide: NG_VALUE_ACCESSOR, multi: true, diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form-group.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form-group.component.spec.ts index 294393f12..4707d7723 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form-group.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form-group.component.spec.ts @@ -81,6 +81,8 @@ import { InputMaskComp } from './form/elements/input-mask.component'; import { RichText } from './form/elements/rich-text.component'; import { ChartModule } from 'primeng/chart'; import { NmChart } from './charts/chart.component'; +import { NmMessageService } from './../../services/toastmessage.service'; + let param: Param; class MockWebContentSvc { @@ -211,6 +213,7 @@ const declarations = [ PageService, CustomHttpClient, LoaderService, + NmMessageService, ConfigService ]; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form.component.spec.ts index 53d3195f8..c487f5670 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form.component.spec.ts @@ -1,5 +1,3 @@ -import { NmChart } from './charts/chart.component'; -import { TableHeader } from './grid/table-header.component'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { FormsModule, ReactiveFormsModule, FormGroup, ValidatorFn, Validators, FormControl } from '@angular/forms'; @@ -88,6 +86,9 @@ import { GridService } from '../../services/grid.service'; import { formElement, formModel, textboxnotnullmodel, textboxnotnullelement } from 'mockdata'; import { InputMaskComp } from './form/elements/input-mask.component'; import { RichText } from './form/elements/rich-text.component'; +import { NmMessageService } from './../../services/toastmessage.service'; +import { NmChart } from './charts/chart.component'; +import { TableHeader } from './grid/table-header.component'; class MockLoggerService { debug() { } @@ -239,6 +240,7 @@ Location, AppInitService, PrintService, GridService, + NmMessageService, SessionStoreService ]; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/action-dropdown.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/action-dropdown.component.spec.ts index 79c39528a..8553ab4c2 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/action-dropdown.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/action-dropdown.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { HttpModule } from '@angular/http'; @@ -64,6 +65,7 @@ const declarations = [ LoaderService, ConfigService, SessionStoreService, + NmMessageService, AppInitService ]; let fixture, hostComponent; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/button.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/button.component.spec.ts index c32a4c4a9..dda642ece 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/button.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/button.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../../../services/toastmessage.service'; import { Param } from './../../../../shared/param-state'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; @@ -88,6 +89,7 @@ const providers = [ LoggerService, AppInitService, SessionStoreService, + NmMessageService, PrintService ]; let fixture, hostComponent; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/calendar.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/calendar.component.spec.ts index aa84a841d..477e4ebb4 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/calendar.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/calendar.component.spec.ts @@ -1,4 +1,3 @@ -import { Param } from './../../../../shared/param-state'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { CalendarModule } from 'primeng/primeng'; @@ -24,6 +23,8 @@ import { setup, TestContext } from '../../../../setup.spec'; import { calendarElement } from 'mockdata'; import { By } from '@angular/platform-browser'; import { ServiceConstants } from '../../../../services/service.constants'; +import { NmMessageService } from './../../../../services/toastmessage.service'; +import { Param } from './../../../../shared/param-state'; const declarations = [ Calendar, @@ -44,6 +45,7 @@ const declarations = [ Location, PageService, CustomHttpClient, + NmMessageService, LoaderService, ConfigService, LoggerService, diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/checkbox.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/checkbox.component.spec.ts index a2c33afe8..ef6feb26a 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/checkbox.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/checkbox.component.spec.ts @@ -23,6 +23,7 @@ import { checkboxElement } from 'mockdata'; import { By } from '@angular/platform-browser'; import { ServiceConstants } from '../../../../services/service.constants'; import { WindowRefService } from './../../../../services/window-ref.service'; +import { NmMessageService } from './../../../../services/toastmessage.service'; let param: Param; @@ -54,6 +55,7 @@ const declarations = [ ConfigService, SessionStoreService, AppInitService, + NmMessageService, WindowRefService ]; let fixture, hostComponent; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/combobox.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/combobox.component.spec.ts index ce89be09e..43bbff70c 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/combobox.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/combobox.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { DropdownModule } from 'primeng/primeng'; @@ -51,6 +52,7 @@ const declarations = [ ConfigService, LoggerService, SessionStoreService, + NmMessageService, AppInitService ]; let fixture, hostComponent; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/filter-button.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/filter-button.component.spec.ts index 17fa26be8..a59222267 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/filter-button.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/filter-button.component.spec.ts @@ -19,6 +19,7 @@ import { setup, TestContext } from '../../../../setup.spec'; import { Param, Type, Model } from '../../../../shared/param-state'; import { ParamConfig, UiStyle, UiAttribute } from '../../../../shared/param-config'; import { fieldValueParam } from 'mockdata'; +import { NmMessageService } from './../../../../services/toastmessage.service'; let pageService, configService; @@ -39,6 +40,7 @@ const providers = [ ConfigService, LoggerService, SessionStoreService, + NmMessageService, AppInitService ]; let fixture, hostComponent; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-label.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-label.component.spec.ts index eba180744..b80597a7b 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-label.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-label.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { CalendarModule } from 'primeng/primeng'; @@ -51,6 +52,7 @@ const declarations = [ SessionStoreService, AppInitService, WebContentSvc, + NmMessageService, WindowRefService ]; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-legend.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-legend.component.spec.ts index c66ba6292..03d851e9d 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-legend.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-legend.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { CalendarModule } from 'primeng/primeng'; @@ -50,6 +51,7 @@ const declarations = [ SessionStoreService, AppInitService, WebContentSvc, + NmMessageService, WindowRefService ]; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/radio.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/radio.component.spec.ts index d5e185e24..3091bd99e 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/radio.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/radio.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { RadioButtonModule } from 'primeng/primeng'; @@ -49,6 +50,7 @@ const providers = [ LoaderService, ConfigService, LoggerService, + NmMessageService, AppInitService ]; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/signature.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/signature.component.spec.ts index 26cce28aa..35322e621 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/signature.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/signature.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../../../services/toastmessage.service'; import { Param } from './../../../../shared/param-state'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; @@ -55,6 +56,7 @@ const declarations = [ { provide: LocationStrategy, useClass: HashLocationStrategy }, { provide: ControlSubscribers, useClass: MockControlSubscribers}, { provide: LoggerService, useClass: MockLoggerService}, + NmMessageService, Location, SessionStoreService, PageService, diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/textarea.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/textarea.component.spec.ts index 74dea2a7c..428d447c1 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/textarea.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/textarea.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { FormsModule, FormGroup, FormControl } from '@angular/forms'; @@ -50,6 +51,7 @@ const providers = [ ConfigService, KeyFilterModule, LoggerService, + NmMessageService, AppInitService ]; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/grid/table.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/grid/table.component.spec.ts index b0ceb66b1..45fe4cbed 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/grid/table.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/grid/table.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { DataTableModule, SharedModule, OverlayPanelModule, PickListModule, DragDropModule, CalendarModule, @@ -286,6 +287,7 @@ const providers = [ ChangeDetectorRef, WindowRefService, AppInitService, + NmMessageService, PrintService ]; let fixture, hostComponent; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/message/message.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/message/message.component.spec.ts index b67f75083..22a19fbe0 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/message/message.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/message/message.component.spec.ts @@ -1,3 +1,4 @@ +import { NmMessageService } from './../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { ToastModule } from 'primeng/toast'; @@ -27,7 +28,7 @@ const imports = [ ProgressBarModule, ProgressSpinnerModule, AccordionModule, GrowlModule, InputSwitchModule, TreeTableModule ]; const providers = [ -MessageService +MessageService, NmMessageService ]; let fixture, hostComponent; describe('MessageComponent', () => { diff --git a/nimbus-ui/nimbusui/src/app/services/httpclient-interceptor.service.ts b/nimbus-ui/nimbusui/src/app/services/httpclient-interceptor.service.ts index 8ed70589e..c8a8db38b 100644 --- a/nimbus-ui/nimbusui/src/app/services/httpclient-interceptor.service.ts +++ b/nimbus-ui/nimbusui/src/app/services/httpclient-interceptor.service.ts @@ -25,6 +25,7 @@ import { PageService } from './page.service'; import { ConfigService } from './config.service'; import { SessionStoreService } from './session.store'; import { RedirectHandle } from '../shared/app-redirecthandle.interface'; +import { NmMessageService } from './toastmessage.service'; /** * \@author Swetha.Vemuri * \@whatItDoes @@ -35,7 +36,7 @@ import { RedirectHandle } from '../shared/app-redirecthandle.interface'; */ @Injectable() export class CustomHttpClientInterceptor implements HttpInterceptor { - constructor(private pageSvc: PageService, private configSvc: ConfigService, private sessionStore: SessionStoreService) {} + constructor(private msgSvc: NmMessageService, private configSvc: ConfigService, private sessionStore: SessionStoreService) {} /** * Http interceptor to handle custom implementation of request & error handling. * On a failure of http response, the error handler event is emitted based on the @@ -64,7 +65,7 @@ export class CustomHttpClientInterceptor implements HttpInterceptor { const exception = new ExecuteException(); exception.message = null; exception.code = null; - this.pageSvc.notifyErrorEvent(exception); + this.msgSvc.notifyErrorEvent(exception); }, (err: any) => { if (err instanceof HttpErrorResponse) { /* Currently, the server side websecurityconfig redirects to /login when session in expired. @@ -78,7 +79,7 @@ export class CustomHttpClientInterceptor implements HttpInterceptor { const execResp = new ExecuteResponse(this.configSvc).deserialize(err.error); if (execResp != null && execResp.result != null && execResp.result[0] != null) { const exception: ExecuteException = execResp.result[0].executeException; - this.pageSvc.notifyErrorEvent(exception); + this.msgSvc.notifyErrorEvent(exception); } } })); diff --git a/nimbus-ui/nimbusui/src/app/services/page.service.spec.ts b/nimbus-ui/nimbusui/src/app/services/page.service.spec.ts index 94dee15c7..b542df5f5 100644 --- a/nimbus-ui/nimbusui/src/app/services/page.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/services/page.service.spec.ts @@ -23,6 +23,7 @@ import { pageServiceProcessResponse, pageServiceOutputs, pageServiceRootParam, p pageServiceModel, pageServiceSetViewRootAndNavigateOutput, pageServiceTraverseParam, pageServiceTraverseParamEventModel, pageServiceTraverseParamPayload, pageServiceCreateGridDataGridElementParams, pageServiceCreateGridDataParam, configServiceParamConfigs, pageServiceCreateGridDataResult, pageServiceTraverseNestedPathResult } from 'mockdata' +import { NmMessageService } from './toastmessage.service'; let http, backend, service, location, loggerService, sessionStoreService, loaderService, configService, configService_actual; @@ -89,6 +90,7 @@ describe('PageService', () => { { provide: ConfigService, useClass: MockConfigService }, { provide: LoaderService, useClass: MockLoaderService }, { provide: Location, useClass: MockLocation}, + NmMessageService, PageService, CustomHttpClient ], @@ -119,19 +121,6 @@ describe('PageService', () => { expect(loggerService.error).toHaveBeenCalled(); })); - it('notifyErrorEvent() should update the messageEvent subject', async(() => { - service.messageEvent = { next: () => { } }; - spyOn(service.messageEvent, 'next').and.callThrough(); - let execExp: ExecuteException = new ExecuteException(); - execExp.message = "test exception"; - execExp.code = "404"; - const message = new Message(); - message.messageArray = [({ severity: 'error', summary: 'Error Message', detail: 'test exception', life: 10000 })]; - message.context = 'TOAST'; - service.notifyErrorEvent(execExp); - expect(service.messageEvent.next).toHaveBeenCalledWith([message]); - })); - it('getFlowRootDomainId() should return the domainId', async(() => { expect(service.getFlowRootDomainId('')).toEqual('test'); })); @@ -256,15 +245,15 @@ describe('PageService', () => { expect(service.getUpdatedParamPath(eveModel)).toEqual('123/'); })); - it('traverseFlowConfig() should call traverseConfig()', async(() => { - const eveModel = new ModelEvent(); - eveModel.value = { 'path': '/ownerlandingview', 'message': 'testMessage' }; - spyOn(service, 'traverseConfig').and.returnValue(''); - spyOn(service.messageEvent, 'next').and.callThrough(); - service.traverseFlowConfig(eveModel, 'ownerlandingview'); - expect(service.traverseConfig).toHaveBeenCalledWith(configServiceFlowConfigs.ownerlandingview.model.params, eveModel); - expect(service.messageEvent.next).toHaveBeenCalledWith('testMessage'); - })); + // it('traverseFlowConfig() should call traverseConfig()', async(() => { + // const eveModel = new ModelEvent(); + // eveModel.value = { 'path': '/ownerlandingview', 'message': 'testMessage' }; + // spyOn(service, 'traverseConfig').and.returnValue(''); + // spyOn(service.messageEvent, 'next').and.callThrough(); + // service.traverseFlowConfig(eveModel, 'ownerlandingview'); + // expect(service.traverseConfig).toHaveBeenCalledWith(configServiceFlowConfigs.ownerlandingview.model.params, eveModel); + // expect(service.messageEvent.next).toHaveBeenCalledWith('testMessage'); + // })); it('traverseFlowConfig() should throw an warning', async(() => { const eveModel = new ModelEvent(); diff --git a/nimbus-ui/nimbusui/src/app/setup.spec.ts b/nimbus-ui/nimbusui/src/app/setup.spec.ts index be950aa20..b860562ac 100644 --- a/nimbus-ui/nimbusui/src/app/setup.spec.ts +++ b/nimbus-ui/nimbusui/src/app/setup.spec.ts @@ -68,6 +68,7 @@ import { BrowserModule } from '@angular/platform-browser/'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing' import { TestCtx } from 'ng-bullet'; +import { NmMessageService } from './services/toastmessage.service'; export const allproviders = [ PageService, ConfigService, WebContentSvc, HttpClient, AppInitService, CustomHttpClient, { provide: BrowserXhr, useClass: CustomBrowserXhr }, @@ -79,7 +80,7 @@ export const allproviders = [ PageService, ConfigService, WebContentSvc, HttpCl { provide: CUSTOM_STORAGE, useExisting: SESSION_STORAGE}, SessionStoreService, ControlSubscribers, AuthenticationService, BreadcrumbService, LoaderService, FileService, LayoutService, WindowRefService, LoggerService, - RouteService, MessageService, GridUtils, DateTimeFormatPipe] + RouteService, MessageService, GridUtils, DateTimeFormatPipe, NmMessageService] export const allimports = [ BrowserModule, From d2e042d92e7f136be6623e538a81b2c4b8eb3890 Mon Sep 17 00:00:00 2001 From: Sandeep Mantha Date: Wed, 13 Feb 2019 14:38:32 -0500 Subject: [PATCH 88/99] optimization of async call --- .../app/components/platform/message/toastmessage.component.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/nimbus-ui/nimbusui/src/app/components/platform/message/toastmessage.component.ts b/nimbus-ui/nimbusui/src/app/components/platform/message/toastmessage.component.ts index b243f9179..57c0a52b9 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/message/toastmessage.component.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/message/toastmessage.component.ts @@ -47,10 +47,7 @@ export class ToastMessageComponent { this.messageService.clear(); messages.forEach(msg => { this.ngZone.run(() => { - setTimeout(() => { this.messageService.addAll(msg.messageArray); - this.cdr.detectChanges(); - }); }); }); From faa7da82e45b6dbefe45ad25e17b9a76de0eee46 Mon Sep 17 00:00:00 2001 From: Vivek Kamineni Date: Wed, 13 Feb 2019 15:53:34 -0500 Subject: [PATCH 89/99] unit tests --- nimbus-ui/nimbusui/src/app/app.module.ts | 6 ++++-- .../src/app/components/domain/domain-flow.component.spec.ts | 5 ++++- .../components/platform/content/accordion.component.spec.ts | 6 ++++-- .../platform/content/page-content.component.spec.ts | 5 ++++- .../app/components/platform/form-group.component.spec.ts | 5 ++++- .../src/app/components/platform/form.component.spec.ts | 5 ++++- nimbus-ui/nimbusui/src/app/mockdata/index.ts | 1 + nimbus-ui/nimbusui/src/app/shared/param-annotations.enum.ts | 1 + 8 files changed, 26 insertions(+), 8 deletions(-) diff --git a/nimbus-ui/nimbusui/src/app/app.module.ts b/nimbus-ui/nimbusui/src/app/app.module.ts index fe1457caf..f550e7c1b 100644 --- a/nimbus-ui/nimbusui/src/app/app.module.ts +++ b/nimbus-ui/nimbusui/src/app/app.module.ts @@ -41,7 +41,7 @@ import { LocationStrategy, HashLocationStrategy } from '@angular/common'; import { APP_BASE_HREF } from '@angular/common'; import { MessagesModule } from 'primeng/messages'; import { MessageModule } from 'primeng/message'; -import { DataTableModule, SharedModule, OverlayPanelModule, PickListModule, DragDropModule, CalendarModule, +import { DataTableModule, SharedModule, OverlayPanelModule, PickListModule, DragDropModule, CalendarModule, TabViewModule, FileUpload, FileUploadModule, ListboxModule, DialogModule, CheckboxModule, DropdownModule, InputMaskModule, RadioButtonModule, ProgressBarModule, ProgressSpinnerModule, AccordionModule, GrowlModule, InputSwitchModule, TreeTableModule } from 'primeng/primeng'; import { TableModule } from 'primeng/table'; @@ -75,6 +75,7 @@ import { RadioButton } from './components/platform/form/elements/radio.component import { Signature } from './components/platform/form/elements/signature.component'; import { InputText } from './components/platform/form/elements/textbox.component'; import { InputMaskComp } from './components/platform/form/elements/input-mask.component'; +import { Tab } from './components/platform/content/tab.component'; import { CheckBoxGroup } from './components/platform/form/elements/checkbox-group.component'; import { MultiselectCard } from './components/platform/form/elements/multi-select-card.component'; import { ActionDropdown, ActionLink } from './components/platform/form/elements/action-dropdown.component'; @@ -187,6 +188,7 @@ export function init_app(appinitservice: AppInitService) { FormsModule, DropdownModule, InputMaskModule, + TabViewModule, DataTableModule, TableModule, TreeTableModule, @@ -217,7 +219,7 @@ export function init_app(appinitservice: AppInitService) { EditorModule ], declarations: [ AppComponent, STOMPStatusComponent, FlowWrapper, PageContent, PageNotfoundComponent, StaticText, - Tile, Section, Header, Form, FormElement, InputText, InputMaskComp, ComboBox, RadioButton, Signature, CheckBoxGroup, + Tile, Section, Header, Form, FormElement, InputText, InputMaskComp, Tab, ComboBox, RadioButton, Signature, CheckBoxGroup, InPlaceEditorComponent, Paragraph, Value, BaseElement, FormGridFiller, MultiselectCard, Link, Menu, CardDetailsComponent, CardDetailsFieldGroupComponent, CardDetailsFieldComponent, CardDetailsGrid, FieldValue, Accordion, AccordionTab, FrmGroupCmp, Button, ButtonGroup, FilterButton, OrderablePickList, diff --git a/nimbus-ui/nimbusui/src/app/components/domain/domain-flow.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/domain/domain-flow.component.spec.ts index 611625820..bbc0c67f5 100644 --- a/nimbus-ui/nimbusui/src/app/components/domain/domain-flow.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/domain/domain-flow.component.spec.ts @@ -11,7 +11,7 @@ import { HttpModule } from '@angular/http'; import { Router, ActivatedRoute, Route, ActivatedRouteSnapshot, UrlSegment, Params, Data, ParamMap, PRIMARY_OUTLET } from '@angular/router'; import { DataTableModule, SharedModule, OverlayPanelModule, PickListModule, DragDropModule, CalendarModule, FileUpload, FileUploadModule, ListboxModule, DialogModule, CheckboxModule, DropdownModule, RadioButtonModule, - ProgressBarModule, ProgressSpinnerModule, AccordionModule, GrowlModule, InputSwitchModule, TreeTableModule, InputMaskModule } from 'primeng/primeng'; + ProgressBarModule, ProgressSpinnerModule, AccordionModule, GrowlModule, InputSwitchModule, TreeTableModule, InputMaskModule, TabViewModule } from 'primeng/primeng'; import { of as observableOf, Observable } from 'rxjs'; import { Subject } from 'rxjs'; import { StorageServiceModule, SESSION_STORAGE } from 'angular-webstorage-service'; @@ -89,6 +89,7 @@ import { PrintService } from '../../services/print.service'; import {domainModalItems, domainActionTray, domainItems, domainAccordions, domainMockLayout} from 'mockdata'; import { TableHeader } from '../platform/grid/table-header.component'; import { InputMaskComp } from './../platform/form/elements/input-mask.component'; +import { Tab } from './../platform/content/tab.component'; import { RichText } from '../platform/form/elements/rich-text.component'; @@ -352,6 +353,7 @@ export class MockActivatedRoute implements ActivatedRoute { FormErrorMessage, PrintDirective, InputMaskComp, + Tab, NmChart, RichText ]; @@ -386,6 +388,7 @@ export class MockActivatedRoute implements ActivatedRoute { ToastModule, BrowserAnimationsModule, InputMaskModule, + TabViewModule, ChartModule, EditorModule ]; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/accordion.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/accordion.component.spec.ts index d947bc4b2..82b06ecf4 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/accordion.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/accordion.component.spec.ts @@ -8,7 +8,7 @@ import { JL } from 'jsnlog'; import { AngularSvgIconModule } from 'angular-svg-icon'; import { DataTableModule, SharedModule, OverlayPanelModule, PickListModule, DragDropModule, CalendarModule, FileUpload, FileUploadModule, ListboxModule, DialogModule, CheckboxModule, DropdownModule, RadioButtonModule, - ProgressBarModule, ProgressSpinnerModule, AccordionModule, GrowlModule, InputSwitchModule, TreeTableModule, InputMaskModule } from 'primeng/primeng'; + ProgressBarModule, ProgressSpinnerModule, AccordionModule, GrowlModule, InputSwitchModule, TreeTableModule, InputMaskModule, TabViewModule } from 'primeng/primeng'; import { TableModule } from 'primeng/table'; import { KeyFilterModule } from 'primeng/keyfilter'; import { ToastModule } from 'primeng/toast'; @@ -80,7 +80,7 @@ import { GridService } from '../../../services/grid.service'; import { PrintService } from '../../../services/print.service'; import { accordionElementWithForm, accordionElementWithNoForm } from 'mockdata'; import { InputMaskComp } from './../form/elements/input-mask.component'; - +import { Tab } from './tab.component'; import { RichText } from '../form/elements/rich-text.component'; import { NmChart } from './../charts/chart.component'; import { ChartModule } from 'primeng/chart'; @@ -191,6 +191,7 @@ const declarations = [ FormErrorMessage, PrintDirective, InputMaskComp, + Tab, NmChart, RichText ]; @@ -225,6 +226,7 @@ const imports = [ TreeTableModule, BrowserAnimationsModule, InputMaskModule, + TabViewModule, EditorModule ]; const providers = [ diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/page-content.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/page-content.component.spec.ts index cdceb79d9..faf26443e 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/page-content.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/page-content.component.spec.ts @@ -2,7 +2,7 @@ import { TestBed, async } from '@angular/core/testing'; import { DataTableModule, SharedModule, OverlayPanelModule, PickListModule, DragDropModule, CalendarModule, FileUpload, FileUploadModule, ListboxModule, DialogModule, CheckboxModule, DropdownModule, RadioButtonModule, - ProgressBarModule, ProgressSpinnerModule, AccordionModule, GrowlModule, InputSwitchModule, TreeTableModule, InputMaskModule, EditorModule} from 'primeng/primeng'; + ProgressBarModule, ProgressSpinnerModule, AccordionModule, GrowlModule, InputSwitchModule, TreeTableModule, InputMaskModule, TabViewModule, EditorModule} from 'primeng/primeng'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; import { RouterTestingModule } from '@angular/router/testing' import { HttpClientModule } from '@angular/common/http'; @@ -84,6 +84,7 @@ import { fieldValueParam } from 'mockdata'; import { InputMaskComp } from './../form/elements/input-mask.component'; import { NmChart } from './../charts/chart.component'; +import { Tab } from './tab.component'; import { ChartModule } from 'primeng/chart'; import { RichText } from './../form/elements/rich-text.component'; import { TableHeader } from './../grid/table-header.component'; @@ -237,6 +238,7 @@ const declarations = [ FormErrorMessage, PrintDirective, InputMaskComp, + Tab, NmChart, RichText ]; @@ -265,6 +267,7 @@ const declarations = [ InputSwitchModule, TreeTableModule, InputMaskModule, + TabViewModule, ChartModule, EditorModule ]; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form-group.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form-group.component.spec.ts index 294393f12..c5130ca0a 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form-group.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form-group.component.spec.ts @@ -3,7 +3,7 @@ import { TestBed, async } from '@angular/core/testing'; import { FormsModule, ReactiveFormsModule, FormGroup, FormControl } from '@angular/forms'; import { GrowlModule, AccordionModule, PickListModule, ListboxModule, CalendarModule, DataTableModule, DropdownModule, FileUploadModule, RadioButtonModule, CheckboxModule, - InputSwitchModule, TreeTableModule, InputMaskModule, EditorModule } from 'primeng/primeng'; + InputSwitchModule, TreeTableModule, InputMaskModule, TabViewModule, EditorModule } from 'primeng/primeng'; import { HttpClientModule } from '@angular/common/http'; import { HttpModule } from '@angular/http'; @@ -77,6 +77,7 @@ import { By } from '@angular/platform-browser'; import { formGroupNmElementInputParam, formGroupNmButtonParam, formGroupnmParagraphParam, formGroupParam, formGroupNmLinkParam, formGroupNmHeaderParam, formGroupNmPickListParam, formGroupNmFormGridFiller, formGroupNestedFrmGrpEle} from 'mockdata'; import { TableHeader } from './grid/table-header.component'; import { InputMaskComp } from './form/elements/input-mask.component'; +import { Tab } from './content/tab.component'; import { RichText } from './form/elements/rich-text.component'; import { ChartModule } from 'primeng/chart'; @@ -172,6 +173,7 @@ const declarations = [ FormErrorMessage, PrintDirective, InputMaskComp, + Tab, NmChart, RichText ]; @@ -198,6 +200,7 @@ const declarations = [ TreeTableModule, StorageServiceModule, InputMaskModule, + TabViewModule, ChartModule, EditorModule ]; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form.component.spec.ts index 53d3195f8..a4704bba2 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form.component.spec.ts @@ -5,7 +5,7 @@ import { TestBed, async } from '@angular/core/testing'; import { FormsModule, ReactiveFormsModule, FormGroup, ValidatorFn, Validators, FormControl } from '@angular/forms'; import { DropdownModule, GrowlModule, MessagesModule, DialogModule, AccordionModule, DataTableModule, FileUploadModule, PickListModule, ListboxModule, CheckboxModule, - RadioButtonModule, CalendarModule, InputSwitchModule, TreeTableModule, InputMaskModule, EditorModule, ChartModule } from 'primeng/primeng'; + RadioButtonModule, CalendarModule, InputSwitchModule, TreeTableModule, InputMaskModule, TabViewModule, EditorModule, ChartModule } from 'primeng/primeng'; import { TableModule } from 'primeng/table'; import { KeyFilterModule } from 'primeng/keyfilter'; @@ -88,6 +88,7 @@ import { GridService } from '../../services/grid.service'; import { formElement, formModel, textboxnotnullmodel, textboxnotnullelement } from 'mockdata'; import { InputMaskComp } from './form/elements/input-mask.component'; import { RichText } from './form/elements/rich-text.component'; +import { Tab } from './content/tab.component'; class MockLoggerService { debug() { } @@ -192,6 +193,7 @@ const declarations = [ FormErrorMessage, PrintDirective, InputMaskComp, + Tab, NmChart, RichText ]; @@ -222,6 +224,7 @@ const imports = [ TreeTableModule, BrowserAnimationsModule, InputMaskModule, + TabViewModule, ChartModule, EditorModule ]; diff --git a/nimbus-ui/nimbusui/src/app/mockdata/index.ts b/nimbus-ui/nimbusui/src/app/mockdata/index.ts index 07138bc32..ecd789fe6 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/index.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/index.ts @@ -31,3 +31,4 @@ export * from './radio.component.mockdata.spec'; export * from './textarea.component.mockdata.spec'; export * from './textbox.component.mockdata.spec'; export * from './inplace-editor.component.mockdata.spec'; +export * from './tab.component.mockdata.spec'; diff --git a/nimbus-ui/nimbusui/src/app/shared/param-annotations.enum.ts b/nimbus-ui/nimbusui/src/app/shared/param-annotations.enum.ts index b3893b97f..4c51a1c5d 100644 --- a/nimbus-ui/nimbusui/src/app/shared/param-annotations.enum.ts +++ b/nimbus-ui/nimbusui/src/app/shared/param-annotations.enum.ts @@ -73,6 +73,7 @@ export class ComponentTypes extends Enum { public static readonly header = new Enum('Header'); public static readonly formGridFiller = new Enum('FormGridFiller'); public static readonly text = new Enum('text'); + public static readonly tab = new Enum('Tab'); public static readonly mask = new Enum('InputMask'); public static readonly signature = new Enum('signature'); public static readonly textarea = new Enum('textarea'); From 8e6ac2f6de147643c096e590a457442237a83a80 Mon Sep 17 00:00:00 2001 From: Vivek Kamineni Date: Wed, 13 Feb 2019 16:24:35 -0500 Subject: [PATCH 90/99] Test Files license agreement. --- .../domain/domain-flow.component.spec.ts | 18 ++++++++++++++++++ .../domain/layout-resolver.service.spec.ts | 18 ++++++++++++++++++ .../home/home-layout.component.spec.ts | 18 ++++++++++++++++++ .../login/login-layout.component.spec.ts | 17 +++++++++++++++++ .../components/login/login.component.spec.ts | 17 +++++++++++++++++ .../platform/base-element.component.spec.ts | 17 +++++++++++++++++ .../breadcrumb/breadcrumb.service.spec.ts | 17 +++++++++++++++++ ...card-details-field-group.component.spec.ts | 18 ++++++++++++++++++ .../card/card-details-field.component.spec.ts | 18 ++++++++++++++++++ .../card/card-details-grid.component.spec.ts | 17 +++++++++++++++++ .../card/card-details.component.spec.ts | 17 +++++++++++++++++ .../platform/charts/chart.component.spec.ts | 18 ++++++++++++++++++ .../content/accordion.component.spec.ts | 19 +++++++++++++++++++ .../content/field-value.component.spec.ts | 18 ++++++++++++++++++ .../content/flow-resolver.service.spec.ts | 17 +++++++++++++++++ .../content/flow-wrapper.component.spec.ts | 18 ++++++++++++++++++ .../platform/content/header.component.spec.ts | 18 ++++++++++++++++++ .../platform/content/label.component.spec.ts | 18 ++++++++++++++++++ .../content/page-content.component.spec.ts | 18 ++++++++++++++++++ .../content/page-notfound.component.spec.ts | 17 +++++++++++++++++ .../content/page-resolver.service.spec.ts | 18 ++++++++++++++++++ .../content/paragraph.component.spec.ts | 18 ++++++++++++++++++ .../content/static-content.component.spec.ts | 17 +++++++++++++++++ .../platform/content/tab.component.spec.ts | 17 +++++++++++++++++ .../fileupload/file-upload.component.spec.ts | 17 +++++++++++++++++ .../footer/footer-global.component.spec.ts | 17 +++++++++++++++++ .../platform/form-builder.service.spec.ts | 18 ++++++++++++++++++ .../platform/form-element.component.spec.ts | 17 +++++++++++++++++ .../platform/form-group.component.spec.ts | 17 +++++++++++++++++ .../platform/form.component.spec.ts | 17 +++++++++++++++++ .../action-dropdown.component.spec.ts | 17 +++++++++++++++++ .../elements/base-control.component.spec.ts | 17 +++++++++++++++++ .../elements/button-group.component.spec.ts | 17 +++++++++++++++++ .../form/elements/button.component.spec.ts | 17 +++++++++++++++++ .../form/elements/calendar.component.spec.ts | 17 +++++++++++++++++ .../elements/checkbox-group.component.spec.ts | 17 +++++++++++++++++ .../form/elements/checkbox.component.spec.ts | 17 +++++++++++++++++ .../form/elements/combobox.component.spec.ts | 18 ++++++++++++++++++ .../control-value-accessor.component.spec.ts | 17 +++++++++++++++++ .../elements/filter-button.component.spec.ts | 17 +++++++++++++++++ .../header-checkbox.component.spec.ts | 18 ++++++++++++++++++ .../elements/inplace-editor.component.spec.ts | 18 ++++++++++++++++++ .../elements/input-label.component.spec.ts | 17 +++++++++++++++++ .../elements/input-legend.component.spec.ts | 17 +++++++++++++++++ .../elements/input-mask.component.spec.ts | 18 ++++++++++++++++++ .../elements/input-switch.component.spec.ts | 18 ++++++++++++++++++ .../multi-select-card.component.spec.ts | 17 +++++++++++++++++ .../multi-select-listbox.component.spec.ts | 18 ++++++++++++++++++ .../form/elements/picklist.component.spec.ts | 17 +++++++++++++++++ .../form/elements/radio.component.spec.ts | 17 +++++++++++++++++ .../form/elements/signature.component.spec.ts | 17 +++++++++++++++++ .../form/elements/textarea.component.spec.ts | 17 +++++++++++++++++ .../form/elements/value.component.spec.ts | 17 +++++++++++++++++ .../platform/grid/table.component.spec.ts | 17 +++++++++++++++++ .../header/header-global.component.spec.ts | 17 +++++++++++++++++ .../platform/image.component.spec.ts | 17 +++++++++++++++++ .../platform/link.component.spec.ts | 17 +++++++++++++++++ .../platform/loader/loader.component.spec.ts | 17 +++++++++++++++++ .../platform/menu.component.spec.ts | 17 +++++++++++++++++ .../message/message.component.spec.ts | 18 ++++++++++++++++++ .../platform/modal/modal.component.spec.ts | 18 ++++++++++++++++++ .../platform/section.component.spec.ts | 17 +++++++++++++++++ .../platform/sub-header.component.spec.ts | 17 +++++++++++++++++ .../platform/tile.component.spec.ts | 17 +++++++++++++++++ .../tooltip/tooltip.component.spec.ts | 17 +++++++++++++++++ .../tree-grid/tree-grid.component.spec.ts | 17 +++++++++++++++++ .../display-value.directive.spec.ts | 17 +++++++++++++++++ .../directives/gridhover.directive.spec.ts | 17 +++++++++++++++++ .../nav-link-router.directive.spec.ts | 17 +++++++++++++++++ .../accordion.component.mockdata.spec.ts | 17 +++++++++++++++++ ...action-dropdown.component.mockdata.spec.ts | 17 +++++++++++++++++ .../button-group.component.mockdata.spec.ts | 17 +++++++++++++++++ .../button.component.mockdata.spec.ts | 17 +++++++++++++++++ .../calendar.component.mockdata.spec.ts | 17 +++++++++++++++++ ...ils-field-group.component.mockdata.spec.ts | 17 +++++++++++++++++ ...d-details-field.component.mockdata.spec.ts | 17 +++++++++++++++++ ...rd-details-grid.component.mockdata.spec.ts | 16 ++++++++++++++++ .../card-details.component.mockdata.spec.ts | 17 +++++++++++++++++ .../mockdata/chart.component.mockdata.spec.ts | 17 +++++++++++++++++ .../checkbox-group.component.mockdata.spec.ts | 17 +++++++++++++++++ .../checkbox.component.mockdata.spec.ts | 17 +++++++++++++++++ .../combobox.component.mockdata.spec.ts | 17 +++++++++++++++++ .../domain-flow.component.mockdata.spec.ts | 17 +++++++++++++++++ .../field-value.component.mockdata.spec.ts | 17 +++++++++++++++++ .../form-element.component.mockdata.spec.ts | 17 +++++++++++++++++ ...m-error-message.component.mockdata.spec.ts | 17 +++++++++++++++++ .../form-group.component.mockdata.spec.ts | 17 +++++++++++++++++ .../mockdata/form.component.mockdata.spec.ts | 17 +++++++++++++++++ .../home-layout.component.mockdata.spec.ts | 17 +++++++++++++++++ nimbus-ui/nimbusui/src/app/mockdata/index.ts | 17 +++++++++++++++++ .../inplace-editor.component.mockdata.spec.ts | 17 +++++++++++++++++ .../input-label.component.mockdata.spec.ts | 17 +++++++++++++++++ .../input-legend.component.mockdata.spec.ts | 17 +++++++++++++++++ .../input-mask.component.mockdata.spec.ts | 17 +++++++++++++++++ .../input-switch.component.mockdata.spec.ts | 17 +++++++++++++++++ ...lti-select-card.component.mockdata.spec.ts | 17 +++++++++++++++++ ...-select-listbox.component.mockdata.spec.ts | 17 +++++++++++++++++ .../mockdata/page.service.mockdata.spec.ts | 17 +++++++++++++++++ .../picklist.component.mockdata.spec.ts | 17 +++++++++++++++++ .../mockdata/radio.component.mockdata.spec.ts | 17 +++++++++++++++++ .../rich-text.component.mockdata.spec.ts | 16 ++++++++++++++++ .../signature.component.mockdata.spec.ts | 16 ++++++++++++++++ .../mockdata/tab.component.mockdata.spec.ts | 17 +++++++++++++++++ .../mockdata/table.component.mockdata.spec.ts | 17 +++++++++++++++++ .../textarea.component.mockdata.spec.ts | 17 +++++++++++++++++ .../textbox.component.mockdata.spec.ts | 17 +++++++++++++++++ .../nimbusui/src/app/pipes/app.pipe.spec.ts | 17 +++++++++++++++++ .../nimbusui/src/app/pipes/date.pipe.spec.ts | 17 +++++++++++++++++ .../nimbusui/src/app/pipes/link.pipe.spec.ts | 17 +++++++++++++++++ .../src/app/pipes/select-item.pipe.spec.ts | 17 +++++++++++++++++ .../services/authentication.service.spec.ts | 17 +++++++++++++++++ .../src/app/services/config.service.spec.ts | 17 +++++++++++++++++ .../content-management.service.spec.ts | 17 +++++++++++++++++ .../control-subscribers.service.spec.ts | 17 +++++++++++++++++ .../src/app/services/file.service.spec.ts | 17 +++++++++++++++++ .../src/app/services/grid.service.spec.ts | 17 +++++++++++++++++ .../app/services/httpclient.service.spec.ts | 17 +++++++++++++++++ .../src/app/services/layout.service.spec.ts | 17 +++++++++++++++++ .../src/app/services/loader.service.spec.ts | 17 +++++++++++++++++ .../src/app/services/logger.service.spec.ts | 17 +++++++++++++++++ .../src/app/services/login.service.spec.ts | 17 +++++++++++++++++ .../src/app/services/page.service.spec.ts | 17 +++++++++++++++++ .../src/app/services/session.store.spec.ts | 17 +++++++++++++++++ 123 files changed, 2112 insertions(+) diff --git a/nimbus-ui/nimbusui/src/app/components/domain/domain-flow.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/domain/domain-flow.component.spec.ts index b1dbb1611..a6dfc1e3c 100644 --- a/nimbus-ui/nimbusui/src/app/components/domain/domain-flow.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/domain/domain-flow.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + import { NmMessageService } from './../../services/toastmessage.service'; import { NmChart } from './../platform/charts/chart.component'; import { ChartModule } from 'primeng/chart'; diff --git a/nimbus-ui/nimbusui/src/app/components/domain/layout-resolver.service.spec.ts b/nimbus-ui/nimbusui/src/app/components/domain/layout-resolver.service.spec.ts index 0b4a31f91..f49b20ada 100644 --- a/nimbus-ui/nimbusui/src/app/components/domain/layout-resolver.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/domain/layout-resolver.service.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + import { NmMessageService } from './../../services/toastmessage.service'; import { TestBed, inject, async } from '@angular/core/testing'; import { HttpClient, HttpRequest } from '@angular/common/http'; diff --git a/nimbus-ui/nimbusui/src/app/components/home/home-layout.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/home/home-layout.component.spec.ts index d7b68b9bb..c62930b78 100644 --- a/nimbus-ui/nimbusui/src/app/components/home/home-layout.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/home/home-layout.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + import { NmMessageService } from './../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/login/login-layout.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/login/login-layout.component.spec.ts index d9a919a73..1591ccd79 100644 --- a/nimbus-ui/nimbusui/src/app/components/login/login-layout.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/login/login-layout.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/login/login.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/login/login.component.spec.ts index 2fb2145e6..7eb7f9ea2 100644 --- a/nimbus-ui/nimbusui/src/app/components/login/login.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/login/login.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { ReactiveFormsModule } from '@angular/forms'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/base-element.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/base-element.component.spec.ts index 3abc303aa..0e1100413 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/base-element.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/base-element.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/breadcrumb/breadcrumb.service.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/breadcrumb/breadcrumb.service.spec.ts index bf97f95c7..aed66778e 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/breadcrumb/breadcrumb.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/breadcrumb/breadcrumb.service.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { NmMessageService } from './../../../services/toastmessage.service'; import { TestBed, inject, async } from '@angular/core/testing'; import { HttpClient, HttpRequest } from '@angular/common/http'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field-group.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field-group.component.spec.ts index 8d898b3a6..b66853690 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field-group.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field-group.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field.component.spec.ts index 91e154c56..4f46ef48a 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-field.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-grid.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-grid.component.spec.ts index 284794a51..325e30e1d 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-grid.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/card/card-details-grid.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { Param } from './../../../shared/param-state'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/card/card-details.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/card/card-details.component.spec.ts index 163c4fa1a..8d6ee4720 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/card/card-details.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/card/card-details.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/charts/chart.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/charts/chart.component.spec.ts index 14f8ef022..b47e50c66 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/charts/chart.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/charts/chart.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + import { NmMessageService } from './../../../services/toastmessage.service'; 'use strict'; import { PageService } from './../../../services/page.service'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/accordion.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/accordion.component.spec.ts index 728d0e7be..fd1412dc0 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/accordion.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/accordion.component.spec.ts @@ -1,3 +1,22 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { ReactiveFormsModule, FormsModule, FormGroup, FormControl } from '@angular/forms'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/field-value.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/field-value.component.spec.ts index c5fdc1a1a..d1c0802d7 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/field-value.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/field-value.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { HttpClientModule } from '@angular/common/http'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/flow-resolver.service.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/flow-resolver.service.spec.ts index e39bff734..314113bb5 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/flow-resolver.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/flow-resolver.service.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { TestBed, inject, async } from '@angular/core/testing'; import { HttpClient, HttpRequest } from '@angular/common/http'; import { HttpModule } from '@angular/http'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/flow-wrapper.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/flow-wrapper.component.spec.ts index 7baf3d054..affd36a6a 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/flow-wrapper.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/flow-wrapper.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + import { NmMessageService } from './../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/header.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/header.component.spec.ts index e9e62e0d4..9a45d436d 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/header.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/header.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { HttpClientModule } from '@angular/common/http'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/label.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/label.component.spec.ts index c49383a4a..61119382a 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/label.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/label.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + import { NmMessageService } from './../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/page-content.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/page-content.component.spec.ts index d34391387..83b722eb2 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/page-content.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/page-content.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { DataTableModule, SharedModule, OverlayPanelModule, PickListModule, DragDropModule, CalendarModule, diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/page-notfound.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/page-notfound.component.spec.ts index 670153a8f..58f361619 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/page-notfound.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/page-notfound.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { JL } from 'jsnlog'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/page-resolver.service.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/page-resolver.service.spec.ts index f2af39b50..c9711d942 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/page-resolver.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/page-resolver.service.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + import { TestBed, inject, async } from '@angular/core/testing'; import { HttpClient, HttpRequest } from '@angular/common/http'; import { HttpModule } from '@angular/http'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/paragraph.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/paragraph.component.spec.ts index bff422c13..be5f5807d 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/paragraph.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/paragraph.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { HttpClientModule } from '@angular/common/http'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/static-content.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/static-content.component.spec.ts index f3b26cfca..5be0de0e2 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/static-content.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/static-content.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { HttpClientModule } from '@angular/common/http'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/content/tab.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/content/tab.component.spec.ts index ab4c1ee7d..ea2b9820d 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/content/tab.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/content/tab.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { HttpModule } from '@angular/http'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/fileupload/file-upload.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/fileupload/file-upload.component.spec.ts index 61d82e5ae..51d0cf0ad 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/fileupload/file-upload.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/fileupload/file-upload.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { FileUploadModule } from 'primeng/primeng'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/footer/footer-global.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/footer/footer-global.component.spec.ts index 88d4cb0e4..f62930c44 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/footer/footer-global.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/footer/footer-global.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { AngularSvgIconModule } from 'angular-svg-icon'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form-builder.service.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form-builder.service.spec.ts index aa974307c..eb66953ac 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form-builder.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form-builder.service.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + import { TestBed, inject, async } from '@angular/core/testing'; import { HttpClient, HttpRequest } from '@angular/common/http'; import { HttpModule } from '@angular/http'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form-element.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form-element.component.spec.ts index f23725a05..da0a6cd50 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form-element.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form-element.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { NmMessageService } from './../../services/toastmessage.service'; import { ChartModule } from 'primeng/chart'; import { NmChart } from './charts/chart.component'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form-group.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form-group.component.spec.ts index f0345b63c..f79b6df78 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form-group.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form-group.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { FormsModule, ReactiveFormsModule, FormGroup, FormControl } from '@angular/forms'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form.component.spec.ts index ff0b7435d..ad74d1b88 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { FormsModule, ReactiveFormsModule, FormGroup, ValidatorFn, Validators, FormControl } from '@angular/forms'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/action-dropdown.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/action-dropdown.component.spec.ts index 8553ab4c2..6ae8c42e2 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/action-dropdown.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/action-dropdown.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { NmMessageService } from './../../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/base-control.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/base-control.component.spec.ts index 36223e384..eca07caae 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/base-control.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/base-control.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { Param } from './../../../../shared/param-state'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/button-group.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/button-group.component.spec.ts index d75718059..ec6057e21 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/button-group.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/button-group.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { AngularSvgIconModule } from 'angular-svg-icon'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/button.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/button.component.spec.ts index dda642ece..f0fa768a5 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/button.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/button.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { NmMessageService } from './../../../../services/toastmessage.service'; import { Param } from './../../../../shared/param-state'; 'use strict'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/calendar.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/calendar.component.spec.ts index 477e4ebb4..88cc35cf4 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/calendar.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/calendar.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { CalendarModule } from 'primeng/primeng'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/checkbox-group.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/checkbox-group.component.spec.ts index a625ae6b6..b77a5aacd 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/checkbox-group.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/checkbox-group.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { Param } from './../../../../shared/param-state'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/checkbox.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/checkbox.component.spec.ts index ef6feb26a..737e3d394 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/checkbox.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/checkbox.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { FormsModule } from '@angular/forms'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/combobox.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/combobox.component.spec.ts index 43bbff70c..1ae0e978b 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/combobox.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/combobox.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + import { NmMessageService } from './../../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/control-value-accessor.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/control-value-accessor.component.spec.ts index 6be0eee11..37462cd67 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/control-value-accessor.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/control-value-accessor.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/filter-button.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/filter-button.component.spec.ts index a59222267..d1458f151 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/filter-button.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/filter-button.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { HttpModule } from '@angular/http'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/header-checkbox.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/header-checkbox.component.spec.ts index 53a1b1f7d..747ace689 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/header-checkbox.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/header-checkbox.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { of as observableOf, Observable } from 'rxjs'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/inplace-editor.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/inplace-editor.component.spec.ts index d0521d2d7..95ce9227d 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/inplace-editor.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/inplace-editor.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + import { Param } from './../../../../shared/param-state'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-label.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-label.component.spec.ts index b80597a7b..6310dc6af 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-label.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-label.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { NmMessageService } from './../../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-legend.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-legend.component.spec.ts index 03d851e9d..b33926b94 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-legend.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-legend.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { NmMessageService } from './../../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-mask.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-mask.component.spec.ts index e0ddbe156..15d91c8b4 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-mask.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-mask.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { HttpModule } from '@angular/http'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-switch.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-switch.component.spec.ts index 9422c29f9..47a2adef4 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-switch.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/input-switch.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + import { Param } from './../../../../shared/param-state'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/multi-select-card.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/multi-select-card.component.spec.ts index 0923d0e38..961984465 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/multi-select-card.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/multi-select-card.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { Param } from './../../../../shared/param-state'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/multi-select-listbox.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/multi-select-listbox.component.spec.ts index 7f584a7f2..cf23b6031 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/multi-select-listbox.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/multi-select-listbox.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + import { Param } from './../../../../shared/param-state'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/picklist.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/picklist.component.spec.ts index aa46d6808..c5d21f4d0 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/picklist.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/picklist.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { Param } from './../../../../shared/param-state'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/radio.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/radio.component.spec.ts index 3091bd99e..cdcf60f48 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/radio.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/radio.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { NmMessageService } from './../../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/signature.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/signature.component.spec.ts index 35322e621..15da1cf8d 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/signature.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/signature.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { NmMessageService } from './../../../../services/toastmessage.service'; import { Param } from './../../../../shared/param-state'; 'use strict'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/textarea.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/textarea.component.spec.ts index 428d447c1..3c2f6657d 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/textarea.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/textarea.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { NmMessageService } from './../../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/value.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/value.component.spec.ts index c807ecdf8..92c37de6c 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/form/elements/value.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/form/elements/value.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/grid/table.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/grid/table.component.spec.ts index 45fe4cbed..3fef9815b 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/grid/table.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/grid/table.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { NmMessageService } from './../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/header/header-global.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/header/header-global.component.spec.ts index 5564e7fbb..7d6a994fe 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/header/header-global.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/header/header-global.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { RouterTestingModule } from '@angular/router/testing' diff --git a/nimbus-ui/nimbusui/src/app/components/platform/image.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/image.component.spec.ts index 092609d9b..6c542287c 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/image.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/image.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { AngularSvgIconModule } from 'angular-svg-icon'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/link.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/link.component.spec.ts index 36254d07b..74674d547 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/link.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/link.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { HttpModule } from '@angular/http'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/loader/loader.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/loader/loader.component.spec.ts index b74b65b73..cfdc51404 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/loader/loader.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/loader/loader.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/menu.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/menu.component.spec.ts index bb193e368..c9248a578 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/menu.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/menu.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/message/message.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/message/message.component.spec.ts index 22a19fbe0..c98b61b14 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/message/message.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/message/message.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + import { NmMessageService } from './../../../services/toastmessage.service'; 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/modal/modal.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/modal/modal.component.spec.ts index eea42b2ac..173aead7d 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/modal/modal.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/modal/modal.component.spec.ts @@ -1,3 +1,21 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + + 'use strict'; import { TestBed, async, fakeAsync, tick } from '@angular/core/testing'; import { DataTableModule, SharedModule, OverlayPanelModule, PickListModule, DragDropModule, CalendarModule, diff --git a/nimbus-ui/nimbusui/src/app/components/platform/section.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/section.component.spec.ts index acf8433ec..9f8e82290 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/section.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/section.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/sub-header.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/sub-header.component.spec.ts index 97bc394ce..4ecb120ed 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/sub-header.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/sub-header.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { HttpClientModule } from '@angular/common/http'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/tile.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/tile.component.spec.ts index 09ac905fa..b622ea6e9 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/tile.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/tile.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/tooltip/tooltip.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/tooltip/tooltip.component.spec.ts index b1b099b42..cc1f429f5 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/tooltip/tooltip.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/tooltip/tooltip.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; diff --git a/nimbus-ui/nimbusui/src/app/components/platform/tree-grid/tree-grid.component.spec.ts b/nimbus-ui/nimbusui/src/app/components/platform/tree-grid/tree-grid.component.spec.ts index 2efe5815a..1484c5af6 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/tree-grid/tree-grid.component.spec.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/tree-grid/tree-grid.component.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + 'use strict'; import { TestBed, async } from '@angular/core/testing'; import { DataTableModule, SharedModule, OverlayPanelModule, PickListModule, DragDropModule, CalendarModule, diff --git a/nimbus-ui/nimbusui/src/app/directives/display-value.directive.spec.ts b/nimbus-ui/nimbusui/src/app/directives/display-value.directive.spec.ts index 22b21b868..759d7e3e0 100644 --- a/nimbus-ui/nimbusui/src/app/directives/display-value.directive.spec.ts +++ b/nimbus-ui/nimbusui/src/app/directives/display-value.directive.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { TestBed, async } from '@angular/core/testing'; import { DisplayValueDirective } from './display-value.directive'; diff --git a/nimbus-ui/nimbusui/src/app/directives/gridhover.directive.spec.ts b/nimbus-ui/nimbusui/src/app/directives/gridhover.directive.spec.ts index 68e41b71a..5cd024aca 100644 --- a/nimbus-ui/nimbusui/src/app/directives/gridhover.directive.spec.ts +++ b/nimbus-ui/nimbusui/src/app/directives/gridhover.directive.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { TestBed, async } from '@angular/core/testing'; import { GridMouseEventDirective } from './gridhover.directive'; diff --git a/nimbus-ui/nimbusui/src/app/directives/nav-link-router.directive.spec.ts b/nimbus-ui/nimbusui/src/app/directives/nav-link-router.directive.spec.ts index 6dea8f1a8..09804a6f0 100644 --- a/nimbus-ui/nimbusui/src/app/directives/nav-link-router.directive.spec.ts +++ b/nimbus-ui/nimbusui/src/app/directives/nav-link-router.directive.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { NavLinkRouter } from './nav-link-router.directive'; describe('NavLinkRouter', () => { diff --git a/nimbus-ui/nimbusui/src/app/mockdata/accordion.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/accordion.component.mockdata.spec.ts index 07570bfc9..4f6d73838 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/accordion.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/accordion.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const accordionElementWithForm: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/action-dropdown.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/action-dropdown.component.mockdata.spec.ts index 089ada40a..975c97509 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/action-dropdown.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/action-dropdown.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const MockActionDropdownLink = { "activeValidationGroups": [], "alias": "Link", diff --git a/nimbus-ui/nimbusui/src/app/mockdata/button-group.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/button-group.component.mockdata.spec.ts index c50928f6c..9b4d6903e 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/button-group.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/button-group.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const buttonGroupbuttonList: any = [ { "config": { diff --git a/nimbus-ui/nimbusui/src/app/mockdata/button.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/button.component.mockdata.spec.ts index 312e2cfdc..1dd7ecc10 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/button.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/button.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const buttonPrimaryElement:any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/calendar.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/calendar.component.mockdata.spec.ts index 56110f414..d84c5ee5b 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/calendar.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/calendar.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const calendarElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/card-details-field-group.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/card-details-field-group.component.mockdata.spec.ts index ab3ab6464..f0852b6c7 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/card-details-field-group.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/card-details-field-group.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const cardDetailsFieldGroupElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/card-details-field.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/card-details-field.component.mockdata.spec.ts index f99767646..0e681b18c 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/card-details-field.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/card-details-field.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const cardDetailsFieldInputLabel = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/card-details-grid.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/card-details-grid.component.mockdata.spec.ts index 5cabec817..4d9032751 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/card-details-grid.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/card-details-grid.component.mockdata.spec.ts @@ -1,3 +1,19 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ export const cardDetailsGridElement = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/card-details.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/card-details.component.mockdata.spec.ts index b2c5f730a..5f5b78184 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/card-details.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/card-details.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const cardDetailsBodyElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/chart.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/chart.component.mockdata.spec.ts index b553b5a7b..6e2436f4b 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/chart.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/chart.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const chartMockParam: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/checkbox-group.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/checkbox-group.component.mockdata.spec.ts index fa05ac95f..d51158378 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/checkbox-group.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/checkbox-group.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const checkBoxGroupElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/checkbox.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/checkbox.component.mockdata.spec.ts index 693c77a1b..8145e5802 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/checkbox.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/checkbox.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const checkboxElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/combobox.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/combobox.component.mockdata.spec.ts index b1b0020c0..5ca17736d 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/combobox.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/combobox.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const comboBoxElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/domain-flow.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/domain-flow.component.mockdata.spec.ts index 7c1d2160f..b2281ffe5 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/domain-flow.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/domain-flow.component.mockdata.spec.ts @@ -1,3 +1,20 @@ + +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ export const domainAccordions = [ { "enabled": true, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/field-value.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/field-value.component.mockdata.spec.ts index 74af8a34e..907ecf41e 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/field-value.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/field-value.component.mockdata.spec.ts @@ -1,2 +1,19 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + let payload = '{\"activeValidationGroups\":[], \"config\":{\"code\":\"firstName\",\"desc\":{\"help\":\"firstName\",\"hint\":\"firstName\",\"label\":\"firstName\"},\"validation\":{\"constraints\":[{\"name\":\"NotNull\",\"value\":null,\"attribute\":{\"groups\": []}}]},\"values\":[],\"uiNatures\":[],\"enabled\":true,\"visible\":true,\"uiStyles\":{\"isLink\":false,\"isHidden\":false,\"name\":\"ViewConfig.TextBox\",\"value\":null,\"attributes\":{\"hidden\":false,\"readOnly\":false,\"alias\":\"TextBox\",\"labelClass\":\"anthem-label\",\"type\":\"text\",\"postEventOnChange\":false,\"controlId\":\"\"}},\"postEvent\":false},\"type\":{\"nested\":true,\"name\":\"string\",\"collection\":false,\"model\": {"\params\":[{\"activeValidationGroups\":[], \"config\":{\"code\":\"nestedName\",\"desc\":{\"help\":\"nestedName\",\"hint\":\"nestedName\",\"label\":\"nestedName\"},\"validation\":{\"constraints\":[{\"name\":\"NotNull\",\"value\":null,\"attribute\":{\"groups\": []}}]},\"values\":[],\"uiNatures\":[],\"enabled\":true,\"visible\":true,\"uiStyles\":{\"isLink\":false,\"isHidden\":false,\"name\":\"ViewConfig.TextBox\",\"value\":null,\"attributes\":{\"hidden\":false,\"readOnly\":false,\"alias\":\"TextBox\",\"labelClass\":\"anthem-label\",\"type\":\"text\",\"postEventOnChange\":false,\"controlId\":\"\"}},\"postEvent\":false},\"type\":{\"nested\":false,\"name\":\"string\",\"collection\":false},\"leafState\":\"testData\",\"path\":\"/page/memberSearch/memberSearch/memberSearch/nestedName\"}]}},\"leafState\":\"testData\",\"path\":\"/page/memberSearch/memberSearch/memberSearch/firstName\"}'; export const fieldValueParam: any = JSON.parse(payload); \ No newline at end of file diff --git a/nimbus-ui/nimbusui/src/app/mockdata/form-element.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/form-element.component.mockdata.spec.ts index e0d58ba61..9dc5c94c2 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/form-element.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/form-element.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const formInput:any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/form-error-message.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/form-error-message.component.mockdata.spec.ts index 2e4f7423d..cd72f3746 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/form-error-message.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/form-error-message.component.mockdata.spec.ts @@ -1,2 +1,19 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + let payload = '{\"activeValidationGroups\":[], \"config\":{\"code\":\"firstName\",\"desc\":{\"help\":\"firstName\",\"hint\":\"firstName\",\"label\":\"firstName\"},\"validation\":{\"constraints\":[{\"name\":\"NotNull\",\"value\":null,\"attribute\":{\"groups\": []}}]},\"values\":[],\"uiNatures\":[],\"enabled\":true,\"visible\":true,\"uiStyles\":{\"isLink\":false,\"isHidden\":false,\"name\":\"ViewConfig.TextBox\",\"value\":null,\"attributes\":{\"hidden\":false,\"readOnly\":false,\"alias\":\"TextBox\",\"labelClass\":\"anthem-label\",\"type\":\"text\",\"postEventOnChange\":false,\"controlId\":\"\"}},\"postEvent\":false},\"type\":{\"nested\":true,\"name\":\"string\",\"collection\":false,\"model\": {"\params\":[{\"activeValidationGroups\":[], \"config\":{\"code\":\"nestedName\",\"desc\":{\"help\":\"nestedName\",\"hint\":\"nestedName\",\"label\":\"nestedName\"},\"validation\":{\"constraints\":[{\"name\":\"NotNull\",\"value\":null,\"attribute\":{\"groups\": []}}]},\"values\":[],\"uiNatures\":[],\"enabled\":true,\"visible\":true,\"uiStyles\":{\"isLink\":false,\"isHidden\":false,\"name\":\"ViewConfig.TextBox\",\"value\":null,\"attributes\":{\"hidden\":false,\"readOnly\":false,\"alias\":\"TextBox\",\"labelClass\":\"anthem-label\",\"type\":\"text\",\"postEventOnChange\":false,\"controlId\":\"\"}},\"postEvent\":false},\"type\":{\"nested\":false,\"name\":\"string\",\"collection\":false},\"leafState\":\"testData\",\"path\":\"/page/memberSearch/memberSearch/memberSearch/nestedName\"}]}},\"leafState\":\"testData\",\"path\":\"/page/memberSearch/memberSearch/memberSearch/firstName\"}'; export const formErrorMessageParam: any = JSON.parse(payload); \ No newline at end of file diff --git a/nimbus-ui/nimbusui/src/app/mockdata/form-group.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/form-group.component.mockdata.spec.ts index 32aaaaf3a..b9baa7d25 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/form-group.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/form-group.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const formGroupNmElementInputParam: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/form.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/form.component.mockdata.spec.ts index ec65ffda4..cb52948d0 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/form.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/form.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const formElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/home-layout.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/home-layout.component.mockdata.spec.ts index 5348ffd80..ad1da2cf6 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/home-layout.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/home-layout.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const Homelayout:any = { "menu": [ { diff --git a/nimbus-ui/nimbusui/src/app/mockdata/index.ts b/nimbus-ui/nimbusui/src/app/mockdata/index.ts index e230f50da..9799ac40d 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/index.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/index.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export * from './form.component.mockdata.spec'; export * from './table.component.mockdata.spec'; export * from './form-element.component.mockdata.spec'; diff --git a/nimbus-ui/nimbusui/src/app/mockdata/inplace-editor.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/inplace-editor.component.mockdata.spec.ts index c95534e80..a81b88ce8 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/inplace-editor.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/inplace-editor.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const inplaceEditorElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/input-label.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/input-label.component.mockdata.spec.ts index 7a997fa60..aafbd311f 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/input-label.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/input-label.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const labelElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/input-legend.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/input-legend.component.mockdata.spec.ts index f53aac84e..90ef3a0ff 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/input-legend.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/input-legend.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const inputLegendElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/input-mask.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/input-mask.component.mockdata.spec.ts index 408976a54..527e692f8 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/input-mask.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/input-mask.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const inputMaskElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/input-switch.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/input-switch.component.mockdata.spec.ts index 1e656f164..e410cfefd 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/input-switch.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/input-switch.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const inputSwitchElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/multi-select-card.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/multi-select-card.component.mockdata.spec.ts index 526937aa2..e552eb1ef 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/multi-select-card.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/multi-select-card.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const multiselectCardElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/multi-select-listbox.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/multi-select-listbox.component.mockdata.spec.ts index 18dfde88c..8011c912c 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/multi-select-listbox.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/multi-select-listbox.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const multiSelectListBoxElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/page.service.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/page.service.mockdata.spec.ts index 38149c82b..e94809339 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/page.service.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/page.service.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const pageServiceProcessResponse: any = { "0": { "b": "$execute", diff --git a/nimbus-ui/nimbusui/src/app/mockdata/picklist.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/picklist.component.mockdata.spec.ts index 26518108a..adb3694a0 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/picklist.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/picklist.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const pickListElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/radio.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/radio.component.mockdata.spec.ts index ded5df742..31c36fef4 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/radio.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/radio.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const radioElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/rich-text.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/rich-text.component.mockdata.spec.ts index 7d1ef2fe5..103f7a382 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/rich-text.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/rich-text.component.mockdata.spec.ts @@ -1,3 +1,19 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ export const MockRichText = { "path": "/ownerview/vpAddEditOwner/vtAddEditOwner/vsAddEditOwner/vfAddEditOwner/richTextbox", "configId": "503", diff --git a/nimbus-ui/nimbusui/src/app/mockdata/signature.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/signature.component.mockdata.spec.ts index e6f318dbd..655247026 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/signature.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/signature.component.mockdata.spec.ts @@ -1,3 +1,19 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ export const signatureElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/tab.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/tab.component.mockdata.spec.ts index 1c34d95ae..a300172ca 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/tab.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/tab.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const tabElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/table.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/table.component.mockdata.spec.ts index f9d232726..4124ca0cb 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/table.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/table.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const tableParams: any = [ { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/textarea.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/textarea.component.mockdata.spec.ts index 4658a7bd7..1c042988b 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/textarea.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/textarea.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const textAreaElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/mockdata/textbox.component.mockdata.spec.ts b/nimbus-ui/nimbusui/src/app/mockdata/textbox.component.mockdata.spec.ts index 4120bdc9b..20d54e173 100644 --- a/nimbus-ui/nimbusui/src/app/mockdata/textbox.component.mockdata.spec.ts +++ b/nimbus-ui/nimbusui/src/app/mockdata/textbox.component.mockdata.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + export const textBoxElement: any = { "config": { "active": false, diff --git a/nimbus-ui/nimbusui/src/app/pipes/app.pipe.spec.ts b/nimbus-ui/nimbusui/src/app/pipes/app.pipe.spec.ts index 606ccf591..c01378e99 100644 --- a/nimbus-ui/nimbusui/src/app/pipes/app.pipe.spec.ts +++ b/nimbus-ui/nimbusui/src/app/pipes/app.pipe.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { KeysPipe } from './app.pipe'; import { TestBed, async } from '@angular/core/testing'; import { Param } from '../shared/param-state'; diff --git a/nimbus-ui/nimbusui/src/app/pipes/date.pipe.spec.ts b/nimbus-ui/nimbusui/src/app/pipes/date.pipe.spec.ts index 17a1ae5db..d0e23963b 100644 --- a/nimbus-ui/nimbusui/src/app/pipes/date.pipe.spec.ts +++ b/nimbus-ui/nimbusui/src/app/pipes/date.pipe.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { DateTimeFormatPipe } from './date.pipe'; import { TestBed, async } from '@angular/core/testing'; import { Param } from '../shared/param-state'; diff --git a/nimbus-ui/nimbusui/src/app/pipes/link.pipe.spec.ts b/nimbus-ui/nimbusui/src/app/pipes/link.pipe.spec.ts index d2a5385fd..279237c39 100644 --- a/nimbus-ui/nimbusui/src/app/pipes/link.pipe.spec.ts +++ b/nimbus-ui/nimbusui/src/app/pipes/link.pipe.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { LinkPipe } from './link.pipe'; describe('LinkPipe', () => { diff --git a/nimbus-ui/nimbusui/src/app/pipes/select-item.pipe.spec.ts b/nimbus-ui/nimbusui/src/app/pipes/select-item.pipe.spec.ts index 522bfc8b1..9e1b7abbe 100644 --- a/nimbus-ui/nimbusui/src/app/pipes/select-item.pipe.spec.ts +++ b/nimbus-ui/nimbusui/src/app/pipes/select-item.pipe.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { SelectItemPipe } from './select-item.pipe'; describe('SelectItemPipe', () => { diff --git a/nimbus-ui/nimbusui/src/app/services/authentication.service.spec.ts b/nimbus-ui/nimbusui/src/app/services/authentication.service.spec.ts index 79e3f0cba..3aa1c4c97 100644 --- a/nimbus-ui/nimbusui/src/app/services/authentication.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/services/authentication.service.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { TestBed, inject } from '@angular/core/testing'; import { HttpClientModule } from '@angular/common/http'; import { HttpModule } from '@angular/http'; diff --git a/nimbus-ui/nimbusui/src/app/services/config.service.spec.ts b/nimbus-ui/nimbusui/src/app/services/config.service.spec.ts index 750ff8cbf..f3a57cf2d 100644 --- a/nimbus-ui/nimbusui/src/app/services/config.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/services/config.service.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { TestBed, inject, async } from '@angular/core/testing'; import { HttpClient, HttpRequest } from '@angular/common/http'; import { HttpModule } from '@angular/http'; diff --git a/nimbus-ui/nimbusui/src/app/services/content-management.service.spec.ts b/nimbus-ui/nimbusui/src/app/services/content-management.service.spec.ts index 70a0c9da8..6a31697f0 100644 --- a/nimbus-ui/nimbusui/src/app/services/content-management.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/services/content-management.service.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { TestBed, inject, async } from '@angular/core/testing'; import { HttpClient, HttpRequest } from '@angular/common/http'; import { HttpModule } from '@angular/http'; diff --git a/nimbus-ui/nimbusui/src/app/services/control-subscribers.service.spec.ts b/nimbus-ui/nimbusui/src/app/services/control-subscribers.service.spec.ts index d1c536f2f..ec296a3dc 100644 --- a/nimbus-ui/nimbusui/src/app/services/control-subscribers.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/services/control-subscribers.service.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { TestBed, inject, async } from '@angular/core/testing'; import { HttpClientModule, HttpClient, HttpRequest } from '@angular/common/http'; import { HttpModule } from '@angular/http'; diff --git a/nimbus-ui/nimbusui/src/app/services/file.service.spec.ts b/nimbus-ui/nimbusui/src/app/services/file.service.spec.ts index 4dda17ce2..2bd51dc48 100644 --- a/nimbus-ui/nimbusui/src/app/services/file.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/services/file.service.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { TestBed, inject, async } from '@angular/core/testing'; import { CustomHttpClient } from './httpclient.service'; import { HttpClientModule, HttpClient, HttpRequest } from '@angular/common/http'; diff --git a/nimbus-ui/nimbusui/src/app/services/grid.service.spec.ts b/nimbus-ui/nimbusui/src/app/services/grid.service.spec.ts index dc7567924..f821e828b 100644 --- a/nimbus-ui/nimbusui/src/app/services/grid.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/services/grid.service.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { TestBed, inject, async } from '@angular/core/testing'; import { HttpClient, HttpRequest } from '@angular/common/http'; import { HttpModule } from '@angular/http'; diff --git a/nimbus-ui/nimbusui/src/app/services/httpclient.service.spec.ts b/nimbus-ui/nimbusui/src/app/services/httpclient.service.spec.ts index dd3758d51..a4de4a066 100644 --- a/nimbus-ui/nimbusui/src/app/services/httpclient.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/services/httpclient.service.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { TestBed, inject, async } from '@angular/core/testing'; import { HttpClient, HttpRequest } from '@angular/common/http'; import { HttpModule } from '@angular/http'; diff --git a/nimbus-ui/nimbusui/src/app/services/layout.service.spec.ts b/nimbus-ui/nimbusui/src/app/services/layout.service.spec.ts index 112ed7e36..1b583b706 100644 --- a/nimbus-ui/nimbusui/src/app/services/layout.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/services/layout.service.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { ViewComponent } from './../shared/param-annotations.enum'; import { TestBed, inject, async } from '@angular/core/testing'; import { HttpClient, HttpRequest } from '@angular/common/http'; diff --git a/nimbus-ui/nimbusui/src/app/services/loader.service.spec.ts b/nimbus-ui/nimbusui/src/app/services/loader.service.spec.ts index bd1439171..e2cd332cf 100644 --- a/nimbus-ui/nimbusui/src/app/services/loader.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/services/loader.service.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { TestBed, inject } from '@angular/core/testing'; import { LoaderService } from './loader.service'; diff --git a/nimbus-ui/nimbusui/src/app/services/logger.service.spec.ts b/nimbus-ui/nimbusui/src/app/services/logger.service.spec.ts index 6761c06b4..0c4126ca3 100644 --- a/nimbus-ui/nimbusui/src/app/services/logger.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/services/logger.service.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { TestBed, inject, async } from '@angular/core/testing'; import { HttpClient, HttpRequest } from '@angular/common/http'; import { HttpModule } from '@angular/http'; diff --git a/nimbus-ui/nimbusui/src/app/services/login.service.spec.ts b/nimbus-ui/nimbusui/src/app/services/login.service.spec.ts index 23925c455..17036fb8d 100644 --- a/nimbus-ui/nimbusui/src/app/services/login.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/services/login.service.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { TestBed, inject, async, tick, fakeAsync } from '@angular/core/testing'; import { HttpClient, HttpRequest } from '@angular/common/http'; import { HttpModule, BaseRequestOptions, JsonpModule, Jsonp } from '@angular/http'; diff --git a/nimbus-ui/nimbusui/src/app/services/page.service.spec.ts b/nimbus-ui/nimbusui/src/app/services/page.service.spec.ts index b542df5f5..6c5d4c6af 100644 --- a/nimbus-ui/nimbusui/src/app/services/page.service.spec.ts +++ b/nimbus-ui/nimbusui/src/app/services/page.service.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { ParamConfig } from './../shared/param-config'; import { TestBed, async } from '@angular/core/testing'; import { HttpClient, HttpErrorResponse, HttpHeaders } from '@angular/common/http'; diff --git a/nimbus-ui/nimbusui/src/app/services/session.store.spec.ts b/nimbus-ui/nimbusui/src/app/services/session.store.spec.ts index 4aee4b801..dcfad9416 100644 --- a/nimbus-ui/nimbusui/src/app/services/session.store.spec.ts +++ b/nimbus-ui/nimbusui/src/app/services/session.store.spec.ts @@ -1,3 +1,20 @@ +/** + * @license + * Copyright 2016-2018 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + import { TestBed, inject, async } from '@angular/core/testing'; import { HttpClient, HttpRequest } from '@angular/common/http'; import { HttpModule } from '@angular/http'; From b7ddad2609ecaaa967c2835898b0786c245882f8 Mon Sep 17 00:00:00 2001 From: Vivek Kamineni Date: Wed, 13 Feb 2019 16:43:05 -0500 Subject: [PATCH 91/99] Toast message --- .../app/components/platform/message/toastmessage.component.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/nimbus-ui/nimbusui/src/app/components/platform/message/toastmessage.component.ts b/nimbus-ui/nimbusui/src/app/components/platform/message/toastmessage.component.ts index 57c0a52b9..c7c724b1c 100644 --- a/nimbus-ui/nimbusui/src/app/components/platform/message/toastmessage.component.ts +++ b/nimbus-ui/nimbusui/src/app/components/platform/message/toastmessage.component.ts @@ -44,7 +44,6 @@ export class ToastMessageComponent { ngOnInit() { this._messageservice.messageEvent$.subscribe(messages => { - this.messageService.clear(); messages.forEach(msg => { this.ngZone.run(() => { this.messageService.addAll(msg.messageArray); From de2cb08df0fadaeae65c48132bbd46bf12e20853 Mon Sep 17 00:00:00 2001 From: Karim Temple Date: Fri, 15 Feb 2019 11:33:40 -0500 Subject: [PATCH 92/99] Adds the OSSRH snapshot and release repositories --- pom.xml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 5222c2092..b65971e1f 100644 --- a/pom.xml +++ b/pom.xml @@ -99,8 +99,16 @@ alfresco.com - https://maven.alfresco.com/nexus/content/repositories/activiti/ - + https://maven.alfresco.com/nexus/content/repositories/activiti/ + + + ossrh-staging + https://oss.sonatype.org/content/repositories/staging + + + ossrh-snapshots + https://oss.sonatype.org/content/repositories/snapshots + From cb77daf5aecb97a232b53639a16c7df58329499d Mon Sep 17 00:00:00 2001 From: Karim Temple Date: Fri, 15 Feb 2019 11:36:33 -0500 Subject: [PATCH 93/99] Runs UI tests in Chrome Headless --- nimbus-ui/nimbusui/karma.conf.js | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/nimbus-ui/nimbusui/karma.conf.js b/nimbus-ui/nimbusui/karma.conf.js index 0840f6ca5..b83282c7a 100644 --- a/nimbus-ui/nimbusui/karma.conf.js +++ b/nimbus-ui/nimbusui/karma.conf.js @@ -25,7 +25,12 @@ module.exports = function (config) { colors: true, logLevel: config.LOG_INFO, autoWatch: true, - browsers: ['Chrome'], - singleRun: false + browsers: ['HeadlessChrome'], + customLaunchers: { + HeadlessChrome: { + base: 'ChromeHeadless', + flags: ['--no-sandbox'] + } + } }); }; From 1c86bd85668b43896e691b2cf33f7158269fbf07 Mon Sep 17 00:00:00 2001 From: Karim Temple Date: Fri, 15 Feb 2019 11:37:30 -0500 Subject: [PATCH 94/99] Defaults to browser setup from karma.conf.js --- nimbus-ui/pom.xml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/nimbus-ui/pom.xml b/nimbus-ui/pom.xml index 0badeb8ca..464c840a3 100644 --- a/nimbus-ui/pom.xml +++ b/nimbus-ui/pom.xml @@ -122,11 +122,9 @@ ${project.basedir}/nimbusui/node_modules/.bin/ng ${project.basedir}/nimbusui - test - --watch=false + test + --watch=false --code-coverage - --browsers - ${testconfig.ui.browsers} From 090622e9bcd83b256ce441bda4127ef90c35bf88 Mon Sep 17 00:00:00 2001 From: Karim Temple Date: Fri, 15 Feb 2019 16:17:08 -0500 Subject: [PATCH 95/99] Moves maven-wrapper to the base directory --- {nimbus-ui/.mvn => .mvn}/wrapper/maven-wrapper.jar | Bin .../.mvn => .mvn}/wrapper/maven-wrapper.properties | 0 2 files changed, 0 insertions(+), 0 deletions(-) rename {nimbus-ui/.mvn => .mvn}/wrapper/maven-wrapper.jar (100%) rename {nimbus-ui/.mvn => .mvn}/wrapper/maven-wrapper.properties (100%) diff --git a/nimbus-ui/.mvn/wrapper/maven-wrapper.jar b/.mvn/wrapper/maven-wrapper.jar similarity index 100% rename from nimbus-ui/.mvn/wrapper/maven-wrapper.jar rename to .mvn/wrapper/maven-wrapper.jar diff --git a/nimbus-ui/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties similarity index 100% rename from nimbus-ui/.mvn/wrapper/maven-wrapper.properties rename to .mvn/wrapper/maven-wrapper.properties From 74072e0ace3d428c04bd078374e7245c598573e6 Mon Sep 17 00:00:00 2001 From: Karim Temple Date: Fri, 15 Feb 2019 16:18:39 -0500 Subject: [PATCH 96/99] Adds a Maven config file containing the project version number --- .mvn/maven.config | 1 + 1 file changed, 1 insertion(+) create mode 100644 .mvn/maven.config diff --git a/.mvn/maven.config b/.mvn/maven.config new file mode 100644 index 000000000..e8575f64e --- /dev/null +++ b/.mvn/maven.config @@ -0,0 +1 @@ +-B -Drevision=1.3.0.BUILD-SNAPSHOT \ No newline at end of file From a77d0a3fdf9cf6e3a2f88f4208afcba06d7adecd Mon Sep 17 00:00:00 2001 From: Karim Temple Date: Fri, 15 Feb 2019 16:19:45 -0500 Subject: [PATCH 97/99] Ignores the flattened POM output from flatten-maven-plugin --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index a4b924e54..49223a01c 100644 --- a/.gitignore +++ b/.gitignore @@ -48,6 +48,9 @@ local.properties # STS (Spring Tool Suite) .springBeans +# Maven flatten plugin +*.flattened-pom.xml + # Code Recommenders .recommenders/ From fe2f705a672526ea1692c7d53d8b1a68078aa404 Mon Sep 17 00:00:00 2001 From: Karim Temple Date: Fri, 15 Feb 2019 16:22:46 -0500 Subject: [PATCH 98/99] Uses the Maven config file to get the project version number --- nimbus-core/pom.xml | 2 +- nimbus-entity-dsl/pom.xml | 2 +- nimbus-extn-activiti/pom.xml | 2 +- nimbus-starter/pom.xml | 4 ++-- nimbus-test/pom.xml | 2 +- nimbus-ui/pom.xml | 2 +- pom.xml | 29 +++++++++++++++++++++++++++-- 7 files changed, 34 insertions(+), 9 deletions(-) diff --git a/nimbus-core/pom.xml b/nimbus-core/pom.xml index ac96ce41a..cfe810cdd 100644 --- a/nimbus-core/pom.xml +++ b/nimbus-core/pom.xml @@ -4,7 +4,7 @@ com.antheminc.oss nimbus-parent - 1.3.0.BUILD-SNAPSHOT + ${revision} nimbus-core diff --git a/nimbus-entity-dsl/pom.xml b/nimbus-entity-dsl/pom.xml index 44dd6379c..2414b14cd 100644 --- a/nimbus-entity-dsl/pom.xml +++ b/nimbus-entity-dsl/pom.xml @@ -4,7 +4,7 @@ com.antheminc.oss nimbus-parent - 1.3.0.BUILD-SNAPSHOT + ${revision} nimbus-entity-dsl diff --git a/nimbus-extn-activiti/pom.xml b/nimbus-extn-activiti/pom.xml index 2f5d9736e..dabde8ddb 100644 --- a/nimbus-extn-activiti/pom.xml +++ b/nimbus-extn-activiti/pom.xml @@ -4,7 +4,7 @@ com.antheminc.oss nimbus-parent - 1.2.0.BUILD-SNAPSHOT + ${revision} nimbus-extn-activiti diff --git a/nimbus-starter/pom.xml b/nimbus-starter/pom.xml index e3b3cf693..f46165b5e 100644 --- a/nimbus-starter/pom.xml +++ b/nimbus-starter/pom.xml @@ -5,7 +5,7 @@ com.antheminc.oss nimbus-starter - 1.2.0.BUILD-SNAPSHOT + ${revision} http://www.oss.antheminc.com/ @@ -57,7 +57,7 @@ framework starter project - 1.2.0.BUILD-SNAPSHOT + ${project.version} diff --git a/nimbus-test/pom.xml b/nimbus-test/pom.xml index b1b6fb8a7..c4b8f7537 100644 --- a/nimbus-test/pom.xml +++ b/nimbus-test/pom.xml @@ -4,7 +4,7 @@ com.antheminc.oss nimbus-parent - 1.3.0.BUILD-SNAPSHOT + ${revision} nimbus-test diff --git a/nimbus-ui/pom.xml b/nimbus-ui/pom.xml index 464c840a3..196d8ccb7 100644 --- a/nimbus-ui/pom.xml +++ b/nimbus-ui/pom.xml @@ -6,7 +6,7 @@ com.antheminc.oss nimbus-parent - 1.3.0.BUILD-SNAPSHOT + ${revision} nimbus-ui diff --git a/pom.xml b/pom.xml index b65971e1f..594ca7ec2 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 com.antheminc.oss nimbus-parent - 1.3.0.BUILD-SNAPSHOT + ${revision} nimbus-parent pom Anthem open source nimbus project @@ -73,7 +73,7 @@ 0.8.2 .. - 1.3.0.BUILD-SNAPSHOT + ${project.version} ${nimbus.version} ${nimbus.version} ${nimbus.core.version} @@ -846,6 +846,31 @@ --> + + org.codehaus.mojo + flatten-maven-plugin + 1.0.0 + + true + ossrh + + + + flatten + process-resources + + flatten + + + + flatten.clean + clean + + clean + + + + From c40aff06a2b5f686b38da6fc1fd416f5c525fad7 Mon Sep 17 00:00:00 2001 From: ktemple-wt <33457131+ktemple-wt@users.noreply.github.com> Date: Wed, 27 Feb 2019 16:08:08 -0500 Subject: [PATCH 99/99] Switched the URL to HTTPS to test AG46 --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 594ca7ec2..fc7c4aca2 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ nimbus-parent pom Anthem open source nimbus project - http://www.oss.antheminc.com/ + https://www.oss.antheminc.com/ 1.8 @@ -1138,4 +1138,4 @@ nimbus-entity-dsl nimbus-test - \ No newline at end of file +