Skip to content

Commit 50056b6

Browse files
authored
Merge branch 'master' into tooltip-ie
2 parents e282351 + 4076ef2 commit 50056b6

File tree

110 files changed

+2595
-3479
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+2595
-3479
lines changed

package-lock.json

Lines changed: 431 additions & 605 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "carbon-components-angular",
3-
"version": "0.1.0",
3+
"version": "0.0.0",
44
"description": "Next generation components",
55
"main": "index.js",
66
"scripts": {
@@ -95,7 +95,7 @@
9595
"@types/node": "8.5.2",
9696
"angular2-template-loader": "0.6.2",
9797
"babel-core": "6.26.3",
98-
"carbon-components": "9.20.0",
98+
"carbon-components": "9.42.3",
9999
"codelyzer": "4.0.2",
100100
"commitizen": "2.10.1",
101101
"core-js": "2.5.5",
@@ -128,7 +128,7 @@
128128
"run-sequence": "2.2.0",
129129
"rxjs": "6.2.2",
130130
"sass-loader": "7.0.1",
131-
"semantic-release": "15.9.6",
131+
"semantic-release": "15.10.6",
132132
"style-loader": "0.21.0",
133133
"stylelint": "8.4.0",
134134
"stylelint-webpack-plugin": "0.10.4",

scripts/deploy.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ if [[ $TRAVIS_BRANCH == "master" ]]; then
1717
mkdir pages
1818
cp -R dist/docs/documentation/ pages/documentation
1919
cp -R dist/docs/storybook/* pages
20-
version=$(node -e 'const package = require("./package.json"); console.log(package.version);')
20+
version=$(node -e 'const package = require("./dist/package.json"); console.log(package.version);')
21+
mkdir pages/$version
2122
cp -R dist/docs/documentation/ pages/$version/documentation
2223
cp -R dist/docs/storybook/* pages/$version
2324
echo "angular.carbondesignsystem.com" > pages/CNAME

src/banner/banner-content.interface.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Deprecated in favour of `NotificationContent` (to be removed in v3.0).
3+
*
4+
* @deprecated
5+
*/
16
export interface BannerContent {
27
type: string;
38
title: string;

src/banner/banner.component.spec.ts

Lines changed: 0 additions & 122 deletions
This file was deleted.

src/banner/banner.component.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ import { NotificationContent } from "./banner-content.interface";
1313
import { I18n } from "./../i18n/i18n.module";
1414

1515
/**
16+
* Deprecated in favour of `InlineNotification` (to be removed in v3.0).
1617
* Banner messages are displayed toward the top of the UI and do not interrupt user’s work.
1718
*
1819
* @export
1920
* @class Banner
21+
* @deprecated
2022
*/
2123
@Component({
2224
selector: "ibm-banner",
@@ -75,7 +77,9 @@ export class Banner implements OnInit {
7577

7678
@ViewChild("banner") banner;
7779

78-
constructor(protected bannerService: BannerService, protected i18n: I18n) {}
80+
constructor(protected bannerService: BannerService, protected i18n: I18n) {
81+
console.warn("`ibm-banner` has been deprecated in favour of `ibm-inline-notification`");
82+
}
7983

8084
ngOnInit() {
8185
if (!this.bannerObj.closeLabel) {

src/banner/banner.module.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@ import { I18nModule } from "./../i18n/i18n.module";
1010

1111
export { BannerService } from "./banner.service";
1212
export { Banner } from "./banner.component";
13-
export { Toast } from "./toast.component";
1413

14+
/**
15+
* Deprecated in favour of `NotificationModule` (to be removed in v3.0).
16+
*
17+
* @deprecated
18+
*/
1519
@NgModule({
1620
declarations: [
1721
Toast,

src/banner/banner.service.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,18 @@ import {
1010
} from "@angular/core";
1111

1212
import { BannerContent, NotificationContent, ToastContent } from "./banner-content.interface";
13-
import { Banner, Toast } from "./banner.module";
13+
import { Banner } from "./banner.module";
14+
import { Toast } from "./toast.component";
1415

1516
/**
17+
* Deprecated in favour of `NotificationService` (to be removed in v3.0).
1618
* Provides a way to use the banner component.
1719
*
1820
* Banners are displayed toward the top of the UI and do not interrupt the user’s work.
1921
*
2022
* @export
2123
* @class BannerService
24+
* @deprecated
2225
*/
2326
@Injectable()
2427
export class BannerService implements OnDestroy {
@@ -43,6 +46,7 @@ export class BannerService implements OnDestroy {
4346
private injector: Injector,
4447
private componentFactoryResolver: ComponentFactoryResolver,
4548
private applicationRef: ApplicationRef) {
49+
console.warn("`BannerService` has been deprecated in favour of `NotificationService`");
4650
}
4751

4852
/**

src/banner/banner.stories.ts

Lines changed: 0 additions & 93 deletions
This file was deleted.

src/banner/toast.component.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ import { ToastContent } from "./banner-content.interface";
55
import { Banner } from "./banner.component";
66

77
/**
8+
* Deprecated in favour of `ToastNotification` (to be removed in v3.0).
89
* Banner messages are displayed toward the top of the UI and do not interrupt user’s work.
910
*
1011
* @export
1112
* @class Banner
13+
* @deprecated
1214
*/
1315
@Component({
1416
selector: "ibm-toast",
@@ -52,6 +54,8 @@ export class Toast extends Banner implements OnInit {
5254
@Input() bannerObj: ToastContent;
5355

5456
ngOnInit() {
57+
console.warn("`ibm-toast` has been deprecated in favour of `ibm-toast-notification`");
58+
5559
if (!this.bannerObj.closeLabel) {
5660
this.bannerObj.closeLabel = this.i18n.get().BANNER.CLOSE_BUTTON;
5761
}

0 commit comments

Comments
 (0)