Skip to content
This repository has been archived by the owner on Sep 4, 2020. It is now read-only.

Commit

Permalink
angular5 and latest buildchain
Browse files Browse the repository at this point in the history
  • Loading branch information
clouless committed Mar 29, 2018
1 parent d37654b commit 868d75e
Show file tree
Hide file tree
Showing 7 changed files with 8,114 additions and 23 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,5 @@ documentation
src/*.js
src/components/*.js
tsconfig-*.json
yarn.lock
_dist_demo_node_modules
dist-demo
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.yarnpkg.com/
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"COMMENT": "THIS FILE WILL BE PARSED DURING BUILD. IT IS NOT THE ACTUAL PACKAGE FILE PUSHED TO NPMJS!",
"name": "@cloukit/notification",
"moduleId": "notification",
"version": "1.1.1",
"version": "1.2.0",
"description": "Show success, error, info and warn notifications on the page",
"license": "MIT",
"author": "codelcou.io",
Expand All @@ -18,17 +18,17 @@
"test": "echo \"ok\""
},
"dependencies": {
"@cloukit/icon": ">=1.4.0",
"@cloukit/dropout": ">=1.4.0",
"@cloukit/theme": ">=1.6.1"
"@cloukit/icon": ">=1.5.0",
"@cloukit/dropout": ">=1.6.0",
"@cloukit/theme": ">=1.7.0"
},
"devDependencies": {
"@cloukit/library-build-chain": "1.15.0",
"@cloukit/story": "1.2.0"
"@cloukit/library-build-chain": "1.17.1",
"@cloukit/story": "1.3.1"
},
"peerDependencies": {
"@angular/common": ">=4.0.0",
"@angular/core": ">=4.0.0",
"@angular/common": ">=5.0.0",
"@angular/core": ">=5.0.0",
"rxjs": ">=5.0.0",
"zone.js": ">=0.8.0"
}
Expand Down
3 changes: 1 addition & 2 deletions src/components/notification.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,14 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CloukitThemeService } from '@cloukit/theme';
import { CloukitDropoutModule } from '@cloukit/dropout';
import { CloukitNotificationService } from './services/notification.service';
import { CloukitNotificationOutletLoaderComponent } from './children/notification-outlet-loader.component';
import { CloukitNotificationOutletComponent } from './children/notification-outlet.component';
import { CloukitNotificationComponent } from './children/notification.component';
import { CloukitNotificationComponentThemeDefault } from './notification.theme';

@NgModule({
imports: [ CommonModule, CloukitDropoutModule ],
imports: [ CommonModule ],
exports: [
CloukitNotificationOutletLoaderComponent,
CloukitNotificationOutletComponent,
Expand Down
14 changes: 6 additions & 8 deletions src/demo/demo.module.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { NgModule } from '@angular/core';
import { CommonModule } from '@angular/common';
import { CloukitDropoutModule } from '@cloukit/dropout';
import { CloukitThemeModule } from '@cloukit/theme';
import { CloukitDropoutModule } from '@cloukit/dropout';
import { CloukitNotificationModule } from '../index';
import { DemoComponent } from './demo.component';
import demoStoriesSource from '../assets/demoStoriesSource.json';
import { CloukitStoryModule, CloukitStoryService } from '@cloukit/story';
import { Story00Component } from './stories/story-00-simple-notifications';
import { Story01Component } from './stories/story-01-timed-notifications';
Expand All @@ -20,8 +19,8 @@ import { Story01Component } from './stories/story-01-timed-notifications';
imports: [
CommonModule,
CloukitThemeModule,
CloukitNotificationModule,
CloukitDropoutModule,
CloukitNotificationModule,
CloukitStoryModule,
],
providers: [ ],
Expand All @@ -30,11 +29,10 @@ import { Story01Component } from './stories/story-01-timed-notifications';
export class DemoModule {
constructor(private cloukitStoryService: CloukitStoryService) {
//
// REGISTER STORY SOURCES
// INITIALIZE STORY SOURCES
//
const keys = Object.keys(demoStoriesSource);
for (let i=0; i<keys.length; i++) {
this.cloukitStoryService.addSource(keys[i], demoStoriesSource[keys[i]]);
}
const baseUrl = document.getElementsByTagName('base')[0].href;
const storySourceJsonUrl = `${baseUrl}assets/demoStoriesSource.json`; // File is auto generated by build chain!
this.cloukitStoryService.loadStoryJson(storySourceJsonUrl);
}
}
8 changes: 4 additions & 4 deletions src/demo/stories/story-00-simple-notifications.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
class="superButtonSecondary"
(click)="closeSuccess()"
[disabled]="!success || success?.actions.closed"
>close success</button>
>close</button>
<div class="eventLog">
<div
class="eventLogEntry eventLogEntry-{{entry}}"
Expand All @@ -31,7 +31,7 @@
class="superButtonSecondary"
(click)="closeInfo()"
[disabled]="!info || info?.actions.closed"
>close info</button>
>close</button>
<div class="eventLog">
<div
class="eventLogEntry eventLogEntry-{{entry}}"
Expand All @@ -51,7 +51,7 @@
class="superButtonSecondary"
(click)="closeWarn()"
[disabled]="!warn || warn?.actions.closed"
>close warn</button>
>close</button>
<div class="eventLog">
<div
class="eventLogEntry eventLogEntry-{{entry}}"
Expand All @@ -71,7 +71,7 @@
class="superButtonSecondary"
(click)="closeError()"
[disabled]="!error || error?.actions.closed"
>close error</button>
>close</button>
<div class="eventLog">
<div
class="eventLogEntry eventLogEntry-{{entry}}"
Expand Down
Loading

0 comments on commit 868d75e

Please sign in to comment.