carbon-components-angular 3.17.2 → 3.17.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs/documentation/components/Dropdown.html +10 -5
- package/docs/documentation/components/File.html +49 -6
- package/docs/documentation/components/FileUploader.html +39 -27
- package/docs/documentation/components/Header.html +428 -11
- package/docs/documentation/components/HeaderAction.html +6 -8
- package/docs/documentation/components/Notification.html +37 -5
- package/docs/documentation/components/Toast.html +77 -7
- package/docs/documentation/coverage.html +12 -12
- package/docs/documentation/interfaces/FileItem.html +66 -0
- package/docs/documentation/interfaces/NotificationContent.html +39 -0
- package/docs/documentation/interfaces/ToastContent.html +1 -0
- package/docs/documentation/js/menu-wc.js +1 -1
- package/docs/documentation/js/search/search_index.js +2 -2
- package/docs/documentation/modules/FileUploaderModule.html +3 -1
- package/docs/storybook/iframe.html +3 -3
- package/docs/storybook/{main.8bb53895aa13a93f113f.bundle.js → main.edce6b8dbd74b486e13b.bundle.js} +151 -58
- package/docs/storybook/main.edce6b8dbd74b486e13b.bundle.js.map +1 -0
- package/docs/storybook/{runtime~main.8bb53895aa13a93f113f.bundle.js → runtime~main.edce6b8dbd74b486e13b.bundle.js} +1 -1
- package/docs/storybook/{runtime~main.8bb53895aa13a93f113f.bundle.js.map → runtime~main.edce6b8dbd74b486e13b.bundle.js.map} +1 -1
- package/docs/storybook/{vendors~main.8bb53895aa13a93f113f.bundle.js → vendors~main.edce6b8dbd74b486e13b.bundle.js} +1 -1
- package/docs/storybook/{vendors~main.8bb53895aa13a93f113f.bundle.js.map → vendors~main.edce6b8dbd74b486e13b.bundle.js.map} +1 -1
- package/dropdown/dropdown.component.js +4 -0
- package/dropdown/dropdown.component.js.map +1 -1
- package/file-uploader/file-item.interface.d.ts +2 -0
- package/file-uploader/file-item.interface.js.map +1 -1
- package/file-uploader/file-uploader.component.js +3 -1
- package/file-uploader/file-uploader.component.js.map +1 -1
- package/file-uploader/file-uploader.component.metadata.json +1 -1
- package/file-uploader/file-uploader.component.ngfactory.js +9 -8
- package/file-uploader/file-uploader.component.ngfactory.js.map +1 -1
- package/file-uploader/file-uploader.module.js +3 -1
- package/file-uploader/file-uploader.module.js.map +1 -1
- package/file-uploader/file-uploader.module.metadata.json +1 -1
- package/file-uploader/file-uploader.module.ngfactory.js +2 -1
- package/file-uploader/file-uploader.module.ngfactory.js.map +1 -1
- package/file-uploader/file-uploader.module.ngsummary.json +1 -1
- package/file-uploader/file.component.d.ts +1 -0
- package/file-uploader/file.component.js +10 -2
- package/file-uploader/file.component.js.map +1 -1
- package/file-uploader/file.component.metadata.json +1 -1
- package/file-uploader/file.component.ngfactory.js +19 -16
- package/file-uploader/file.component.ngfactory.js.map +1 -1
- package/file-uploader/file.component.ngsummary.json +1 -1
- package/notification/notification-content.interface.d.ts +1 -0
- package/notification/notification-content.interface.js.map +1 -1
- package/notification/notification.component.d.ts +1 -0
- package/notification/notification.component.js +7 -1
- package/notification/notification.component.js.map +1 -1
- package/notification/notification.component.metadata.json +1 -1
- package/notification/notification.component.ngfactory.js +1 -1
- package/notification/notification.component.ngsummary.json +1 -1
- package/notification/toast.component.d.ts +1 -0
- package/notification/toast.component.js +7 -1
- package/notification/toast.component.js.map +1 -1
- package/notification/toast.component.metadata.json +1 -1
- package/notification/toast.component.ngfactory.js +1 -1
- package/notification/toast.component.ngsummary.json +1 -1
- package/package.json +1 -1
- package/ui-shell/header/header-action.component.js +1 -1
- package/ui-shell/header/header-action.component.js.map +1 -1
- package/ui-shell/header/header-action.component.metadata.json +1 -1
- package/ui-shell/header/header-action.component.ngfactory.js +5 -6
- package/ui-shell/header/header-action.component.ngfactory.js.map +1 -1
- package/ui-shell/header/header.component.d.ts +26 -1
- package/ui-shell/header/header.component.js +40 -5
- package/ui-shell/header/header.component.js.map +1 -1
- package/ui-shell/header/header.component.metadata.json +1 -1
- package/ui-shell/header/header.component.ngfactory.js +9 -3
- package/ui-shell/header/header.component.ngfactory.js.map +1 -1
- package/ui-shell/header/header.component.ngsummary.json +1 -1
- package/ui-shell/header/header.module.ngfactory.js.map +1 -1
- package/docs/storybook/main.8bb53895aa13a93f113f.bundle.js.map +0 -1
package/docs/storybook/{main.8bb53895aa13a93f113f.bundle.js → main.edce6b8dbd74b486e13b.bundle.js}
RENAMED
|
@@ -6826,6 +6826,10 @@ var Dropdown = /** @class */ (function () {
|
|
|
6826
6826
|
*/
|
|
6827
6827
|
Dropdown.prototype.openMenu = function () {
|
|
6828
6828
|
var _this = this;
|
|
6829
|
+
// prevents the dropdown from opening when list of items is empty
|
|
6830
|
+
if (this.view.getListItems().length === 0) {
|
|
6831
|
+
return;
|
|
6832
|
+
}
|
|
6829
6833
|
this.menuIsClosed = false;
|
|
6830
6834
|
// move the dropdown list to the body if we're not appending inline
|
|
6831
6835
|
// and position it relative to the dropdown wrapper
|
|
@@ -8526,6 +8530,8 @@ var FileUploader = /** @class */ (function () {
|
|
|
8526
8530
|
var fileItem = {
|
|
8527
8531
|
uploaded: false,
|
|
8528
8532
|
state: "edit",
|
|
8533
|
+
invalid: false,
|
|
8534
|
+
invalidText: "",
|
|
8529
8535
|
file: file
|
|
8530
8536
|
};
|
|
8531
8537
|
this.files.add(fileItem);
|
|
@@ -8602,7 +8608,7 @@ var FileUploader = /** @class */ (function () {
|
|
|
8602
8608
|
FileUploader = FileUploader_1 = __decorate([
|
|
8603
8609
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
8604
8610
|
selector: "ibm-file-uploader",
|
|
8605
|
-
template: "\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<strong class=\"bx--file--label\">{{title}}</strong>\n\t\t\t<p class=\"bx--label-description\">{{description}}</p>\n\t\t\t<div class=\"bx--file\">\n\t\t\t\t<button\n\t\t\t\t\tibmButton=\"primary\"\n\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t[size]=\"size\">\n\t\t\t\t\t{{buttonText}}\n\t\t\t\t</button>\n\t\t\t\t<input\n\t\t\t\t\t#fileInput\n\t\t\t\t\ttype=\"file\"\n\t\t\t\t\tclass=\"bx--file-input\"\n\t\t\t\t\t[accept]=\"accept\"\n\t\t\t\t\t[id]=\"fileUploaderId\"\n\t\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t(change)=\"onFilesAdded()\"/>\n\t\t\t\t<div class=\"bx--file-container\">\n\t\t\t\t\t<
|
|
8611
|
+
template: "\n\t\t<ng-container *ngIf=\"!skeleton; else skeletonTemplate\">\n\t\t\t<strong class=\"bx--file--label\">{{title}}</strong>\n\t\t\t<p class=\"bx--label-description\">{{description}}</p>\n\t\t\t<div class=\"bx--file\">\n\t\t\t\t<button\n\t\t\t\t\tibmButton=\"primary\"\n\t\t\t\t\t(click)=\"fileInput.click()\"\n\t\t\t\t\t[attr.for]=\"fileUploaderId\"\n\t\t\t\t\t[size]=\"size\">\n\t\t\t\t\t{{buttonText}}\n\t\t\t\t</button>\n\t\t\t\t<input\n\t\t\t\t\t#fileInput\n\t\t\t\t\ttype=\"file\"\n\t\t\t\t\tclass=\"bx--file-input\"\n\t\t\t\t\t[accept]=\"accept\"\n\t\t\t\t\t[id]=\"fileUploaderId\"\n\t\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t\ttabindex=\"-1\"\n\t\t\t\t\t(change)=\"onFilesAdded()\"/>\n\t\t\t\t<div class=\"bx--file-container\">\n\t\t\t\t\t<div *ngFor=\"let fileItem of files\">\n\t\t\t\t\t\t<ibm-file [fileItem]=\"fileItem\" (remove)=\"removeFile(fileItem)\"></ibm-file>\n\t\t\t\t\t\t<div *ngIf=\"fileItem.invalid\" class=\"bx--form-requirement\">\n\t\t\t\t\t\t\t{{fileItem.invalidText}}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t</ng-container>\n\n\t\t<ng-template #skeletonTemplate>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 100px\"></div>\n\t\t\t<div class=\"bx--skeleton__text\" style=\"width: 225px\"></div>\n\t\t\t<button ibmButton skeleton=\"true\"></button>\n\t\t</ng-template>\n\t",
|
|
8606
8612
|
providers: [
|
|
8607
8613
|
{
|
|
8608
8614
|
provide: _angular_forms__WEBPACK_IMPORTED_MODULE_1__["NG_VALUE_ACCESSOR"],
|
|
@@ -8634,11 +8640,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
8634
8640
|
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/fesm5/common.js");
|
|
8635
8641
|
/* harmony import */ var _carbon_icons_angular_lib_close_16__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @carbon/icons-angular/lib/close/16 */ "./node_modules/@carbon/icons-angular/lib/close/16.js");
|
|
8636
8642
|
/* harmony import */ var _carbon_icons_angular_lib_checkmark_filled_16__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @carbon/icons-angular/lib/checkmark--filled/16 */ "./node_modules/@carbon/icons-angular/lib/checkmark--filled/16.js");
|
|
8637
|
-
/* harmony import */ var
|
|
8638
|
-
/* harmony import */ var
|
|
8639
|
-
/* harmony import */ var
|
|
8640
|
-
/* harmony import */ var
|
|
8641
|
-
/* harmony
|
|
8643
|
+
/* harmony import */ var _carbon_icons_angular_lib_warning_filled_16__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @carbon/icons-angular/lib/warning--filled/16 */ "./node_modules/@carbon/icons-angular/lib/warning--filled/16.js");
|
|
8644
|
+
/* harmony import */ var _file_uploader_component__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./file-uploader.component */ "./src/file-uploader/file-uploader.component.ts");
|
|
8645
|
+
/* harmony import */ var _file_component__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./file.component */ "./src/file-uploader/file.component.ts");
|
|
8646
|
+
/* harmony import */ var _button_button_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ../button/button.module */ "./src/button/button.module.ts");
|
|
8647
|
+
/* harmony import */ var _loading_loading_module__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ../loading/loading.module */ "./src/loading/loading.module.ts");
|
|
8648
|
+
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "FileUploader", function() { return _file_uploader_component__WEBPACK_IMPORTED_MODULE_5__["FileUploader"]; });
|
|
8642
8649
|
|
|
8643
8650
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
8644
8651
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -8655,19 +8662,21 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
|
8655
8662
|
|
|
8656
8663
|
|
|
8657
8664
|
|
|
8665
|
+
|
|
8658
8666
|
var FileUploaderModule = /** @class */ (function () {
|
|
8659
8667
|
function FileUploaderModule() {
|
|
8660
8668
|
}
|
|
8661
8669
|
FileUploaderModule = __decorate([
|
|
8662
8670
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["NgModule"])({
|
|
8663
|
-
declarations: [
|
|
8664
|
-
exports: [
|
|
8671
|
+
declarations: [_file_uploader_component__WEBPACK_IMPORTED_MODULE_5__["FileUploader"], _file_component__WEBPACK_IMPORTED_MODULE_6__["File"]],
|
|
8672
|
+
exports: [_file_uploader_component__WEBPACK_IMPORTED_MODULE_5__["FileUploader"]],
|
|
8665
8673
|
imports: [
|
|
8666
8674
|
_angular_common__WEBPACK_IMPORTED_MODULE_1__["CommonModule"],
|
|
8667
|
-
|
|
8668
|
-
|
|
8675
|
+
_button_button_module__WEBPACK_IMPORTED_MODULE_7__["ButtonModule"],
|
|
8676
|
+
_loading_loading_module__WEBPACK_IMPORTED_MODULE_8__["LoadingModule"],
|
|
8669
8677
|
_carbon_icons_angular_lib_close_16__WEBPACK_IMPORTED_MODULE_2__["Close16Module"],
|
|
8670
|
-
_carbon_icons_angular_lib_checkmark_filled_16__WEBPACK_IMPORTED_MODULE_3__["CheckmarkFilled16Module"]
|
|
8678
|
+
_carbon_icons_angular_lib_checkmark_filled_16__WEBPACK_IMPORTED_MODULE_3__["CheckmarkFilled16Module"],
|
|
8679
|
+
_carbon_icons_angular_lib_warning_filled_16__WEBPACK_IMPORTED_MODULE_4__["WarningFilled16Module"]
|
|
8671
8680
|
]
|
|
8672
8681
|
})
|
|
8673
8682
|
], FileUploaderModule);
|
|
@@ -8707,8 +8716,8 @@ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
|
8707
8716
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
8708
8717
|
};
|
|
8709
8718
|
var withStorySource = __webpack_require__(/*! @storybook/addon-storysource */ "./node_modules/@storybook/addon-storysource/dist/index.js").withStorySource;
|
|
8710
|
-
var __STORY__ = "import { Component, Input } from '@angular/core';\nimport { storiesOf, moduleMetadata } from '@storybook/angular';\n\nimport { action } from '@storybook/addon-actions';\nimport { withKnobs, boolean, text, select, array } from '@storybook/addon-knobs';\n\nimport { FileUploaderModule, NotificationModule, ButtonModule, DocumentationModule } from '../';\nimport { NotificationService } from '../notification/notification.service';\n\n@Component({\n selector: 'app-file-uploader',\n template: `\n <ibm-file-uploader\n [title]=\"title\"\n [description]=\"description\"\n [buttonText]=\"buttonText\"\n [accept]=\"accept\"\n [multiple]=\"multiple\"\n [skeleton]=\"skeleton\"\n [(files)]=\"files\"\n [size]=\"size\"\n >\n </ibm-file-uploader>\n\n <div [id]=\"notificationId\" style=\"width: 300px; margin-top: 20px\"></div>\n <button ibmButton *ngIf=\"files && files.size > 0\" (click)=\"onUpload()\">\n Upload\n </button>\n `,\n})\nclass FileUploaderStory {\n static notificationCount = 0;\n\n @Input() notificationId = `notification-${FileUploaderStory.notificationCount}`;\n @Input() files = new Set();\n @Input() title;\n @Input() description;\n @Input() buttonText;\n @Input() accept;\n @Input() multiple;\n @Input() skeleton = false;\n @Input() size = 'normal';\n\n protected maxSize = 500000;\n\n constructor(protected notificationService: NotificationService) {\n FileUploaderStory.notificationCount++;\n }\n\n onUpload() {\n this.files.forEach(fileItem => {\n if (fileItem.file.size
|
|
8711
|
-
var __ADDS_MAP__ = { "file-uploader--documentation": { "startLoc": { "col": 7, "line":
|
|
8719
|
+
var __STORY__ = "import { Component, Input } from '@angular/core';\nimport { storiesOf, moduleMetadata } from '@storybook/angular';\n\nimport { action } from '@storybook/addon-actions';\nimport { withKnobs, boolean, text, select, array } from '@storybook/addon-knobs';\n\nimport { FileUploaderModule, NotificationModule, ButtonModule, DocumentationModule } from '../';\nimport { NotificationService } from '../notification/notification.service';\n\n@Component({\n selector: 'app-file-uploader',\n template: `\n <ibm-file-uploader\n [title]=\"title\"\n [description]=\"description\"\n [buttonText]=\"buttonText\"\n [accept]=\"accept\"\n [multiple]=\"multiple\"\n [skeleton]=\"skeleton\"\n [(files)]=\"files\"\n [size]=\"size\"\n >\n </ibm-file-uploader>\n\n <div [id]=\"notificationId\" style=\"width: 300px; margin-top: 20px\"></div>\n <button ibmButton *ngIf=\"files && files.size > 0\" (click)=\"onUpload()\">\n Upload\n </button>\n `,\n})\nclass FileUploaderStory {\n static notificationCount = 0;\n\n @Input() notificationId = `notification-${FileUploaderStory.notificationCount}`;\n @Input() files = new Set();\n @Input() title;\n @Input() description;\n @Input() buttonText;\n @Input() accept;\n @Input() multiple;\n @Input() skeleton = false;\n @Input() size = 'normal';\n\n protected maxSize = 500000;\n\n constructor(protected notificationService: NotificationService) {\n FileUploaderStory.notificationCount++;\n }\n\n onUpload() {\n this.files.forEach(fileItem => {\n if (!fileItem.uploaded) {\n if (fileItem.file.size < this.maxSize) {\n fileItem.state = 'upload';\n setTimeout(() => {\n fileItem.state = 'complete';\n fileItem.uploaded = true;\n console.log(fileItem);\n }, 1500);\n }\n\n if (fileItem.file.size > this.maxSize) {\n fileItem.state = 'upload';\n setTimeout(() => {\n fileItem.state = 'edit';\n fileItem.invalid = true;\n fileItem.invalidText = 'File size exceeds limit';\n }, 1500);\n }\n }\n });\n }\n}\n\n@Component({\n selector: 'app-ngmodel-file-uploader',\n template: `\n <ibm-file-uploader\n [title]=\"title\"\n [description]=\"description\"\n [buttonText]=\"buttonText\"\n [accept]=\"accept\"\n [multiple]=\"multiple\"\n [size]=\"size\"\n [(ngModel)]=\"model\"\n >\n </ibm-file-uploader>\n\n <br />\n <div [id]=\"notificationId\" style=\"width: 300px\"></div>\n <button ibmButton *ngIf=\"model && model.size > 0\" (click)=\"onUpload()\">\n Upload\n </button>\n `,\n})\nclass NgModelFileUploaderStory {\n static notificationCount = 0;\n\n @Input() notificationId = `notification-${FileUploaderStory.notificationCount}`;\n @Input() title;\n @Input() description;\n @Input() buttonText;\n @Input() accept;\n @Input() multiple;\n @Input() size = 'normal';\n\n protected model = new Set();\n protected maxSize = 500000;\n\n constructor(protected notificationService: NotificationService) {\n FileUploaderStory.notificationCount++;\n }\n\n onUpload() {\n this.model.forEach(fileItem => {\n if (!fileItem.uploaded) {\n if (fileItem.file.size < this.maxSize) {\n fileItem.state = 'upload';\n setTimeout(() => {\n fileItem.state = 'complete';\n fileItem.uploaded = true;\n console.log(fileItem);\n }, 1500);\n }\n\n if (fileItem.file.size > this.maxSize) {\n fileItem.state = 'upload';\n setTimeout(() => {\n fileItem.state = 'edit';\n fileItem.invalid = true;\n fileItem.invalidText = 'File size exceeds limit';\n }, 1500);\n }\n }\n });\n }\n}\n\nstoriesOf('File Uploader', module)\n .addDecorator(\n moduleMetadata({\n imports: [FileUploaderModule, NotificationModule, ButtonModule, DocumentationModule],\n declarations: [FileUploaderStory, NgModelFileUploaderStory],\n })\n )\n .addDecorator(withKnobs)\n .add('Basic', () => ({\n template: `\n\t\t\t<app-file-uploader\n\t\t\t\t[title]=\"title\"\n\t\t\t\t[description]=\"description\"\n\t\t\t\t[buttonText]=\"buttonText\"\n\t\t\t\t[accept]=\"accept\"\n\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t[size]=\"size\">\n\t\t\t</app-file-uploader>\n\t\t`,\n props: {\n title: text('The title', 'Account Photo'),\n description: text('The description', 'only .jpg and .png files. 500kb max file size.'),\n buttonText: text('Button text', 'Add files'),\n size: select('size', { Small: 'sm', Normal: 'normal' }, 'normal'),\n accept: array('Accepted file extensions', ['.png', '.jpg'], ','),\n multiple: boolean('Supports multiple files', true),\n },\n }))\n .add('Using ngModel', () => ({\n template: `\n\t\t\t<app-ngmodel-file-uploader\n\t\t\t\t[title]=\"title\"\n\t\t\t\t[description]=\"description\"\n\t\t\t\t[buttonText]=\"buttonText\"\n\t\t\t\t[accept]=\"accept\"\n\t\t\t\t[multiple]=\"multiple\"\n\t\t\t\t[size]=\"size\">\n\t\t\t</app-ngmodel-file-uploader>\n\t\t`,\n props: {\n title: text('The title', 'Account Photo'),\n description: text('The description', 'only .jpg and .png files. 500kb max file size.'),\n buttonText: text('Button text', 'Add files'),\n size: select('size', { Small: 'sm', Normal: 'normal' }, 'normal'),\n accept: array('Accepted file extensions', ['.png', '.jpg'], ','),\n multiple: boolean('Supports multiple files', true),\n },\n }))\n .add('Skeleton', () => ({\n template: `\n\t\t\t<app-file-uploader skeleton=\"true\"></app-file-uploader>\n\t\t`,\n }))\n .add('Documentation', () => ({\n template: `\n\t\t\t<ibm-documentation src=\"documentation/components/FileUploader.html\"></ibm-documentation>\n\t\t`,\n }));\n";
|
|
8720
|
+
var __ADDS_MAP__ = { "file-uploader--documentation": { "startLoc": { "col": 7, "line": 192 }, "endLoc": { "col": 4, "line": 196 } }, "file-uploader--skeleton": { "startLoc": { "col": 7, "line": 187 }, "endLoc": { "col": 4, "line": 191 } }, "file-uploader--using-ngmodel": { "startLoc": { "col": 7, "line": 167 }, "endLoc": { "col": 4, "line": 186 } }, "file-uploader--basic": { "startLoc": { "col": 7, "line": 147 }, "endLoc": { "col": 4, "line": 166 } } };
|
|
8712
8721
|
|
|
8713
8722
|
|
|
8714
8723
|
|
|
@@ -8728,19 +8737,8 @@ var FileUploaderStory = /** @class */ (function () {
|
|
|
8728
8737
|
FileUploaderStory.prototype.onUpload = function () {
|
|
8729
8738
|
var _this = this;
|
|
8730
8739
|
this.files.forEach(function (fileItem) {
|
|
8731
|
-
if (fileItem.
|
|
8732
|
-
_this.
|
|
8733
|
-
type: "error",
|
|
8734
|
-
title: "'" + fileItem.file.name + "' exceeds size limit",
|
|
8735
|
-
message: "500kb max size. Please select a new file and try again",
|
|
8736
|
-
target: "#" + _this.notificationId
|
|
8737
|
-
});
|
|
8738
|
-
}
|
|
8739
|
-
});
|
|
8740
|
-
var filesArray = Array.from(this.files);
|
|
8741
|
-
if (filesArray.every(function (fileItem) { return fileItem.file.size <= _this.maxSize; })) {
|
|
8742
|
-
this.files.forEach(function (fileItem) {
|
|
8743
|
-
if (!fileItem.uploaded) {
|
|
8740
|
+
if (!fileItem.uploaded) {
|
|
8741
|
+
if (fileItem.file.size < _this.maxSize) {
|
|
8744
8742
|
fileItem.state = "upload";
|
|
8745
8743
|
setTimeout(function () {
|
|
8746
8744
|
fileItem.state = "complete";
|
|
@@ -8748,8 +8746,16 @@ var FileUploaderStory = /** @class */ (function () {
|
|
|
8748
8746
|
console.log(fileItem);
|
|
8749
8747
|
}, 1500);
|
|
8750
8748
|
}
|
|
8751
|
-
|
|
8752
|
-
|
|
8749
|
+
if (fileItem.file.size > _this.maxSize) {
|
|
8750
|
+
fileItem.state = "upload";
|
|
8751
|
+
setTimeout(function () {
|
|
8752
|
+
fileItem.state = "edit";
|
|
8753
|
+
fileItem.invalid = true;
|
|
8754
|
+
fileItem.invalidText = "File size exceeds limit";
|
|
8755
|
+
}, 1500);
|
|
8756
|
+
}
|
|
8757
|
+
}
|
|
8758
|
+
});
|
|
8753
8759
|
};
|
|
8754
8760
|
var FileUploaderStory_1, _a;
|
|
8755
8761
|
FileUploaderStory.notificationCount = 0;
|
|
@@ -8810,19 +8816,8 @@ var NgModelFileUploaderStory = /** @class */ (function () {
|
|
|
8810
8816
|
NgModelFileUploaderStory.prototype.onUpload = function () {
|
|
8811
8817
|
var _this = this;
|
|
8812
8818
|
this.model.forEach(function (fileItem) {
|
|
8813
|
-
if (fileItem.
|
|
8814
|
-
_this.
|
|
8815
|
-
type: "error",
|
|
8816
|
-
title: "'" + fileItem.file.name + "' exceeds size limit",
|
|
8817
|
-
message: "500kb max size. Please select a new file and try again",
|
|
8818
|
-
target: "#" + _this.notificationId
|
|
8819
|
-
});
|
|
8820
|
-
}
|
|
8821
|
-
});
|
|
8822
|
-
var filesArray = Array.from(this.model);
|
|
8823
|
-
if (filesArray.every(function (fileItem) { return fileItem.file.size <= _this.maxSize; })) {
|
|
8824
|
-
this.model.forEach(function (fileItem) {
|
|
8825
|
-
if (!fileItem.uploaded) {
|
|
8819
|
+
if (!fileItem.uploaded) {
|
|
8820
|
+
if (fileItem.file.size < _this.maxSize) {
|
|
8826
8821
|
fileItem.state = "upload";
|
|
8827
8822
|
setTimeout(function () {
|
|
8828
8823
|
fileItem.state = "complete";
|
|
@@ -8830,8 +8825,16 @@ var NgModelFileUploaderStory = /** @class */ (function () {
|
|
|
8830
8825
|
console.log(fileItem);
|
|
8831
8826
|
}, 1500);
|
|
8832
8827
|
}
|
|
8833
|
-
|
|
8834
|
-
|
|
8828
|
+
if (fileItem.file.size > _this.maxSize) {
|
|
8829
|
+
fileItem.state = "upload";
|
|
8830
|
+
setTimeout(function () {
|
|
8831
|
+
fileItem.state = "edit";
|
|
8832
|
+
fileItem.invalid = true;
|
|
8833
|
+
fileItem.invalidText = "File size exceeds limit";
|
|
8834
|
+
}, 1500);
|
|
8835
|
+
}
|
|
8836
|
+
}
|
|
8837
|
+
});
|
|
8835
8838
|
};
|
|
8836
8839
|
var _b;
|
|
8837
8840
|
NgModelFileUploaderStory.notificationCount = 0;
|
|
@@ -8947,6 +8950,13 @@ var File = /** @class */ (function () {
|
|
|
8947
8950
|
this.remove = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
|
|
8948
8951
|
this.selectedFile = true;
|
|
8949
8952
|
}
|
|
8953
|
+
Object.defineProperty(File.prototype, "isInvalidText", {
|
|
8954
|
+
get: function () {
|
|
8955
|
+
return this.fileItem.invalidText;
|
|
8956
|
+
},
|
|
8957
|
+
enumerable: true,
|
|
8958
|
+
configurable: true
|
|
8959
|
+
});
|
|
8950
8960
|
var _a, _b;
|
|
8951
8961
|
__decorate([
|
|
8952
8962
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
|
|
@@ -8964,10 +8974,15 @@ var File = /** @class */ (function () {
|
|
|
8964
8974
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"])("class.bx--file__selected-file"),
|
|
8965
8975
|
__metadata("design:type", Object)
|
|
8966
8976
|
], File.prototype, "selectedFile", void 0);
|
|
8977
|
+
__decorate([
|
|
8978
|
+
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"])("class.bx--file__selected-file--invalid"),
|
|
8979
|
+
__metadata("design:type", Object),
|
|
8980
|
+
__metadata("design:paramtypes", [])
|
|
8981
|
+
], File.prototype, "isInvalidText", null);
|
|
8967
8982
|
File = __decorate([
|
|
8968
8983
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
8969
8984
|
selector: "ibm-file",
|
|
8970
|
-
template: "\n\t\t<p class=\"bx--file-filename\">{{fileItem.file.name}}</p>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'edit'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\t(click)=\"remove.emit()\"\n\t\t\t(keyup.enter)=\"remove.emit()\"\n\t\t\t(keyup.space)=\"remove.emit()\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-close16\n\t\t\t\tclass=\"bx--file-close\"\n\t\t\t\t[ariaLabel]=\"translations.REMOVE_BUTTON\">\n\t\t\t</ibm-icon-close16>\n\t\t</span>\n\t\t<span *ngIf=\"fileItem.state === 'upload'\">\n\t\t\t<ibm-loading size=\"sm\"></ibm-loading>\n\t\t</span>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'complete'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-checkmark-filled16\n\t\t\t\tclass=\"bx--file-complete\"\n\t\t\t\t[ariaLabel]=\"translations.CHECKMARK\">\n\t\t\t</ibm-icon-checkmark-filled16>\n\t\t</span>\n\t"
|
|
8985
|
+
template: "\n\t\t<p class=\"bx--file-filename\">{{fileItem.file.name}}</p>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'edit'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\t(click)=\"remove.emit()\"\n\t\t\t(keyup.enter)=\"remove.emit()\"\n\t\t\t(keyup.space)=\"remove.emit()\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-warning-filled16\n\t\t\t\t*ngIf=\"isInvalidText\"\n\t\t\t\tclass=\"bx--file--invalid\">\n\t\t\t</ibm-icon-warning-filled16>\n\t\t\t<ibm-icon-close16\n\t\t\t\tclass=\"bx--file-close\"\n\t\t\t\t[ariaLabel]=\"translations.REMOVE_BUTTON\">\n\t\t\t</ibm-icon-close16>\n\t\t</span>\n\t\t<span *ngIf=\"fileItem.state === 'upload'\">\n\t\t\t<ibm-loading size=\"sm\"></ibm-loading>\n\t\t</span>\n\t\t<span\n\t\t\t*ngIf=\"fileItem.state === 'complete'\"\n\t\t\tclass=\"bx--file__state-container\"\n\t\t\ttabindex=\"0\">\n\t\t\t<ibm-icon-checkmark-filled16\n\t\t\t\tclass=\"bx--file-complete\"\n\t\t\t\t[ariaLabel]=\"translations.CHECKMARK\">\n\t\t\t</ibm-icon-checkmark-filled16>\n\t\t</span>\n\t"
|
|
8971
8986
|
}),
|
|
8972
8987
|
__metadata("design:paramtypes", [typeof (_b = typeof _i18n_i18n_module__WEBPACK_IMPORTED_MODULE_1__["I18n"] !== "undefined" && _i18n_i18n_module__WEBPACK_IMPORTED_MODULE_1__["I18n"]) === "function" && _b || Object])
|
|
8973
8988
|
], File);
|
|
@@ -12746,6 +12761,11 @@ var Notification = /** @class */ (function () {
|
|
|
12746
12761
|
enumerable: true,
|
|
12747
12762
|
configurable: true
|
|
12748
12763
|
});
|
|
12764
|
+
Object.defineProperty(Notification.prototype, "isLowContrast", {
|
|
12765
|
+
get: function () { return this.notificationObj.lowContrast; },
|
|
12766
|
+
enumerable: true,
|
|
12767
|
+
configurable: true
|
|
12768
|
+
});
|
|
12749
12769
|
/**
|
|
12750
12770
|
* Emits close event.
|
|
12751
12771
|
*/
|
|
@@ -12801,6 +12821,11 @@ var Notification = /** @class */ (function () {
|
|
|
12801
12821
|
__metadata("design:type", Object),
|
|
12802
12822
|
__metadata("design:paramtypes", [])
|
|
12803
12823
|
], Notification.prototype, "isWarning", null);
|
|
12824
|
+
__decorate([
|
|
12825
|
+
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"])("class.bx--inline-notification--low-contrast"),
|
|
12826
|
+
__metadata("design:type", Object),
|
|
12827
|
+
__metadata("design:paramtypes", [])
|
|
12828
|
+
], Notification.prototype, "isLowContrast", null);
|
|
12804
12829
|
Notification = __decorate([
|
|
12805
12830
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
12806
12831
|
selector: "ibm-notification",
|
|
@@ -13148,8 +13173,8 @@ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
|
13148
13173
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
13149
13174
|
};
|
|
13150
13175
|
var withStorySource = __webpack_require__(/*! @storybook/addon-storysource */ "./node_modules/@storybook/addon-storysource/dist/index.js").withStorySource;
|
|
13151
|
-
var __STORY__ = "import { storiesOf, moduleMetadata } from '@storybook/angular';\nimport { action } from '@storybook/addon-actions';\nimport { withKnobs, boolean, object } from '@storybook/addon-knobs/angular';\n\nimport { Component } from '@angular/core';\n\nimport { NotificationModule, NotificationService } from './notification.module';\nimport { I18n } from '../i18n/i18n.module';\nimport { DocumentationModule } from './../documentation-component/documentation.module';\n\n@Component({\n selector: 'app-notification-story',\n template: `\n <button class=\"bx--btn bx--btn--primary\" (click)=\"showNotification()\">\n Show info notification\n </button>\n <div class=\"notification-container\"></div>\n `,\n providers: [NotificationService],\n})\nclass NotificationStory {\n constructor(protected notificationService: NotificationService) {}\n\n showNotification() {\n this.notificationService.showNotification({\n type: 'info',\n title: 'Sample notification',\n message: 'Sample info message',\n target: '.notification-container',\n });\n }\n}\n\n@Component({\n selector: 'app-toast-story',\n template: `\n <button class=\"bx--btn bx--btn--primary\" (click)=\"showToast()\">Show info toast</button>\n <div class=\"notification-container\"></div>\n `,\n providers: [NotificationService],\n})\nclass ToastStory {\n constructor(protected notificationService: NotificationService) {}\n\n showToast() {\n this.notificationService.showToast({\n type: 'info',\n title: 'Sample toast',\n subtitle: 'Sample subtitle message',\n caption: 'Sample caption',\n target: '.notification-container',\n message: 'message',\n });\n }\n}\n\nstoriesOf('Notification', module)\n .addDecorator(\n moduleMetadata({\n declarations: [NotificationStory, ToastStory],\n imports: [NotificationModule, DocumentationModule],\n })\n )\n .addDecorator(withKnobs)\n .add('Basic', () => ({\n template: `\n\t\t\t<ibm-notification [notificationObj]=\"{
|
|
13152
|
-
var __ADDS_MAP__ = { "notification--toast-documentation": { "startLoc": { "col": 7, "line":
|
|
13176
|
+
var __STORY__ = "import { storiesOf, moduleMetadata } from '@storybook/angular';\nimport { action } from '@storybook/addon-actions';\nimport { withKnobs, boolean, object } from '@storybook/addon-knobs/angular';\n\nimport { Component } from '@angular/core';\n\nimport { NotificationModule, NotificationService } from './notification.module';\nimport { I18n } from '../i18n/i18n.module';\nimport { DocumentationModule } from './../documentation-component/documentation.module';\n\n@Component({\n selector: 'app-notification-story',\n template: `\n <button class=\"bx--btn bx--btn--primary\" (click)=\"showNotification()\">\n Show info notification\n </button>\n <div class=\"notification-container\"></div>\n `,\n providers: [NotificationService],\n})\nclass NotificationStory {\n constructor(protected notificationService: NotificationService) {}\n\n showNotification() {\n this.notificationService.showNotification({\n type: 'info',\n title: 'Sample notification',\n message: 'Sample info message',\n target: '.notification-container',\n });\n }\n}\n\n@Component({\n selector: 'app-toast-story',\n template: `\n <button class=\"bx--btn bx--btn--primary\" (click)=\"showToast()\">Show info toast</button>\n <div class=\"notification-container\"></div>\n `,\n providers: [NotificationService],\n})\nclass ToastStory {\n constructor(protected notificationService: NotificationService) {}\n\n showToast() {\n this.notificationService.showToast({\n type: 'info',\n title: 'Sample toast',\n subtitle: 'Sample subtitle message',\n caption: 'Sample caption',\n target: '.notification-container',\n message: 'message',\n });\n }\n}\n\nstoriesOf('Notification', module)\n .addDecorator(\n moduleMetadata({\n declarations: [NotificationStory, ToastStory],\n imports: [NotificationModule, DocumentationModule],\n })\n )\n .addDecorator(withKnobs)\n .add('Basic', () => ({\n template: `\n\t\t\t<ibm-notification [notificationObj]=\"{\n\t\t\t\ttype: 'error',\n\t\t\t\ttitle: 'Sample notification',\n\t\t\t\tmessage: 'Sample error message',\n\t\t\t\tlowContrast: lowContrast}\">\n\t\t\t</ibm-notification>\n\t\t\t<ibm-notification [notificationObj]=\"{\n\t\t\t\ttype: 'info',\n\t\t\t\ttitle: 'Sample notification',\n\t\t\t\tmessage: 'Sample info message',\n\t\t\t\tlowContrast: lowContrast}\">\n\t\t\t</ibm-notification>\n\t\t\t<ibm-notification [notificationObj]=\"{\n\t\t\t\ttype: 'success',\n\t\t\t\ttitle: 'Sample notification',\n\t\t\t\tmessage: 'Sample success message',\n\t\t\t\tlowContrast: lowContrast}\">\n\t\t\t</ibm-notification>\n\t\t\t<ibm-notification [notificationObj]=\"{\n\t\t\t\ttype: 'warning',\n\t\t\t\ttitle: 'Sample notification',\n\t\t\t\tmessage: 'Sample warning message',\n\t\t\t\tlowContrast: lowContrast}\">\n\t\t\t</ibm-notification>\n\t\t`,\n props: {\n lowContrast: boolean('Low Contrast', false),\n },\n }))\n .add('Dynamic', () => ({\n template: `\n\t\t\t<app-notification-story></app-notification-story>\n\t\t`,\n }))\n .add('Toast', () => ({\n template: `\n\t\t\t<ibm-toast [notificationObj]=\"{\n\t\t\t\ttype: 'error',\n\t\t\t\ttitle: 'Sample toast',\n\t\t\t\tsubtitle: 'Sample subtitle message',\n\t\t\t\tcaption: 'Sample caption',\n\t\t\t\tlowContrast: lowContrast\n\t\t\t}\"></ibm-toast>\n\t\t\t<ibm-toast [notificationObj]=\"{\n\t\t\t\ttype: 'info',\n\t\t\t\ttitle: 'Sample toast',\n\t\t\t\tsubtitle: 'Sample subtitle message',\n\t\t\t\tcaption: 'Sample caption',\n\t\t\t\tlowContrast: lowContrast\n\t\t\t}\"></ibm-toast>\n\t\t\t<ibm-toast [notificationObj]=\"{\n\t\t\t\ttype: 'success',\n\t\t\t\ttitle: 'Sample toast',\n\t\t\t\tsubtitle: 'Sample subtitle message',\n\t\t\t\tcaption: 'Sample caption',\n\t\t\t\tlowContrast: lowContrast\n\t\t\t}\"></ibm-toast>\n\t\t\t<ibm-toast [notificationObj]=\"{\n\t\t\t\ttype: 'warning',\n\t\t\t\ttitle: 'Sample toast',\n\t\t\t\tsubtitle: 'Sample subtitle message',\n\t\t\t\tcaption: 'Sample caption',\n\t\t\t\tlowContrast: lowContrast\n\t\t\t}\"></ibm-toast>\n\t\t`,\n props: {\n lowContrast: boolean('Low Contrast', false),\n },\n }))\n .add('Dynamic toast', () => ({\n template: `\n\t\t\t<app-toast-story></app-toast-story>\n\t\t`,\n }))\n .add('Documentation', () => ({\n template: `\n\t\t\t<ibm-documentation src=\"documentation/components/Notification.html\"></ibm-documentation>\n\t\t`,\n }))\n .add('Toast Documentation', () => ({\n template: `\n\t\t\t<ibm-documentation src=\"documentation/components/Toast.html\"></ibm-documentation>\n\t\t`,\n }));\n";
|
|
13177
|
+
var __ADDS_MAP__ = { "notification--toast-documentation": { "startLoc": { "col": 7, "line": 146 }, "endLoc": { "col": 4, "line": 150 } }, "notification--documentation": { "startLoc": { "col": 7, "line": 141 }, "endLoc": { "col": 4, "line": 145 } }, "notification--dynamic-toast": { "startLoc": { "col": 7, "line": 136 }, "endLoc": { "col": 4, "line": 140 } }, "notification--toast": { "startLoc": { "col": 7, "line": 101 }, "endLoc": { "col": 4, "line": 135 } }, "notification--dynamic": { "startLoc": { "col": 7, "line": 96 }, "endLoc": { "col": 4, "line": 100 } }, "notification--basic": { "startLoc": { "col": 7, "line": 65 }, "endLoc": { "col": 4, "line": 95 } } };
|
|
13153
13178
|
|
|
13154
13179
|
|
|
13155
13180
|
|
|
@@ -13216,13 +13241,19 @@ Object(_storybook_angular__WEBPACK_IMPORTED_MODULE_0__["storiesOf"])("Notificati
|
|
|
13216
13241
|
}))
|
|
13217
13242
|
.addDecorator(_storybook_addon_knobs_angular__WEBPACK_IMPORTED_MODULE_1__["withKnobs"])
|
|
13218
13243
|
.add("Basic", function () { return ({
|
|
13219
|
-
template: "\n\t\t\t<ibm-notification [notificationObj]=\"{
|
|
13244
|
+
template: "\n\t\t\t<ibm-notification [notificationObj]=\"{\n\t\t\t\ttype: 'error',\n\t\t\t\ttitle: 'Sample notification',\n\t\t\t\tmessage: 'Sample error message',\n\t\t\t\tlowContrast: lowContrast}\">\n\t\t\t</ibm-notification>\n\t\t\t<ibm-notification [notificationObj]=\"{\n\t\t\t\ttype: 'info',\n\t\t\t\ttitle: 'Sample notification',\n\t\t\t\tmessage: 'Sample info message',\n\t\t\t\tlowContrast: lowContrast}\">\n\t\t\t</ibm-notification>\n\t\t\t<ibm-notification [notificationObj]=\"{\n\t\t\t\ttype: 'success',\n\t\t\t\ttitle: 'Sample notification',\n\t\t\t\tmessage: 'Sample success message',\n\t\t\t\tlowContrast: lowContrast}\">\n\t\t\t</ibm-notification>\n\t\t\t<ibm-notification [notificationObj]=\"{\n\t\t\t\ttype: 'warning',\n\t\t\t\ttitle: 'Sample notification',\n\t\t\t\tmessage: 'Sample warning message',\n\t\t\t\tlowContrast: lowContrast}\">\n\t\t\t</ibm-notification>\n\t\t",
|
|
13245
|
+
props: {
|
|
13246
|
+
lowContrast: Object(_storybook_addon_knobs_angular__WEBPACK_IMPORTED_MODULE_1__["boolean"])("Low Contrast", false)
|
|
13247
|
+
}
|
|
13220
13248
|
}); })
|
|
13221
13249
|
.add("Dynamic", function () { return ({
|
|
13222
13250
|
template: "\n\t\t\t<app-notification-story></app-notification-story>\n\t\t"
|
|
13223
13251
|
}); })
|
|
13224
13252
|
.add("Toast", function () { return ({
|
|
13225
|
-
template: "\n\t\t\t<ibm-toast [notificationObj]=\"{\n\t\t\t\ttype: 'error',\n\t\t\t\ttitle: 'Sample toast',\n\t\t\t\tsubtitle: 'Sample subtitle message',\n\t\t\t\tcaption: 'Sample caption'\n\t\t\t}\"></ibm-toast>\n\t\t"
|
|
13253
|
+
template: "\n\t\t\t<ibm-toast [notificationObj]=\"{\n\t\t\t\ttype: 'error',\n\t\t\t\ttitle: 'Sample toast',\n\t\t\t\tsubtitle: 'Sample subtitle message',\n\t\t\t\tcaption: 'Sample caption',\n\t\t\t\tlowContrast: lowContrast\n\t\t\t}\"></ibm-toast>\n\t\t\t<ibm-toast [notificationObj]=\"{\n\t\t\t\ttype: 'info',\n\t\t\t\ttitle: 'Sample toast',\n\t\t\t\tsubtitle: 'Sample subtitle message',\n\t\t\t\tcaption: 'Sample caption',\n\t\t\t\tlowContrast: lowContrast\n\t\t\t}\"></ibm-toast>\n\t\t\t<ibm-toast [notificationObj]=\"{\n\t\t\t\ttype: 'success',\n\t\t\t\ttitle: 'Sample toast',\n\t\t\t\tsubtitle: 'Sample subtitle message',\n\t\t\t\tcaption: 'Sample caption',\n\t\t\t\tlowContrast: lowContrast\n\t\t\t}\"></ibm-toast>\n\t\t\t<ibm-toast [notificationObj]=\"{\n\t\t\t\ttype: 'warning',\n\t\t\t\ttitle: 'Sample toast',\n\t\t\t\tsubtitle: 'Sample subtitle message',\n\t\t\t\tcaption: 'Sample caption',\n\t\t\t\tlowContrast: lowContrast\n\t\t\t}\"></ibm-toast>\n\t\t",
|
|
13254
|
+
props: {
|
|
13255
|
+
lowContrast: Object(_storybook_addon_knobs_angular__WEBPACK_IMPORTED_MODULE_1__["boolean"])("Low Contrast", false)
|
|
13256
|
+
}
|
|
13226
13257
|
}); })
|
|
13227
13258
|
.add("Dynamic toast", function () { return ({
|
|
13228
13259
|
template: "\n\t\t\t<app-toast-story></app-toast-story>\n\t\t"
|
|
@@ -13319,6 +13350,11 @@ var Toast = /** @class */ (function (_super) {
|
|
|
13319
13350
|
enumerable: true,
|
|
13320
13351
|
configurable: true
|
|
13321
13352
|
});
|
|
13353
|
+
Object.defineProperty(Toast.prototype, "isLowContrast", {
|
|
13354
|
+
get: function () { return this.notificationObj.lowContrast; },
|
|
13355
|
+
enumerable: true,
|
|
13356
|
+
configurable: true
|
|
13357
|
+
});
|
|
13322
13358
|
Object.defineProperty(Toast.prototype, "isExperimental", {
|
|
13323
13359
|
get: function () {
|
|
13324
13360
|
return this.experimental.isExperimental;
|
|
@@ -13368,6 +13404,11 @@ var Toast = /** @class */ (function (_super) {
|
|
|
13368
13404
|
__metadata("design:type", Object),
|
|
13369
13405
|
__metadata("design:paramtypes", [])
|
|
13370
13406
|
], Toast.prototype, "isWarning", null);
|
|
13407
|
+
__decorate([
|
|
13408
|
+
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["HostBinding"])("class.bx--toast-notification--low-contrast"),
|
|
13409
|
+
__metadata("design:type", Object),
|
|
13410
|
+
__metadata("design:paramtypes", [])
|
|
13411
|
+
], Toast.prototype, "isLowContrast", null);
|
|
13371
13412
|
Toast = __decorate([
|
|
13372
13413
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
13373
13414
|
selector: "ibm-toast",
|
|
@@ -25289,7 +25330,7 @@ var HeaderAction = /** @class */ (function () {
|
|
|
25289
25330
|
HeaderAction = __decorate([
|
|
25290
25331
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
25291
25332
|
selector: "ibm-header-action",
|
|
25292
|
-
template: "\n\t\t<button\n\t\t\tclass=\"bx--header__action\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'bx--header__action--active': active\n\t\t\t}\"\n\t\t\t[attr.aria-label]=\"title\"\n\t\t\t[title]=\"title\"\n\t\t\t(click)=\"onClick()\">\n\t\t\t<ng-content></ng-content>\n\t\t
|
|
25333
|
+
template: "\n\t\t<button\n\t\t\tclass=\"bx--header__action\"\n\t\t\t[ngClass]=\"{\n\t\t\t\t'bx--header__action--active': active\n\t\t\t}\"\n\t\t\t[attr.aria-label]=\"title\"\n\t\t\t[title]=\"title\"\n\t\t\t(click)=\"onClick()\">\n\t\t\t<ng-content></ng-content>\n\t\t</button>\n\t"
|
|
25293
25334
|
})
|
|
25294
25335
|
], HeaderAction);
|
|
25295
25336
|
return HeaderAction;
|
|
@@ -25611,7 +25652,9 @@ var HeaderNavigation = /** @class */ (function () {
|
|
|
25611
25652
|
__webpack_require__.r(__webpack_exports__);
|
|
25612
25653
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Header", function() { return Header; });
|
|
25613
25654
|
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/fesm5/core.js");
|
|
25614
|
-
/* harmony import */ var
|
|
25655
|
+
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/fesm5/platform-browser.js");
|
|
25656
|
+
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/fesm5/router.js");
|
|
25657
|
+
/* harmony import */ var _i18n_i18n_module__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../i18n/i18n.module */ "./src/i18n/i18n.module.ts");
|
|
25615
25658
|
var __decorate = (undefined && undefined.__decorate) || function (decorators, target, key, desc) {
|
|
25616
25659
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
25617
25660
|
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
@@ -25621,6 +25664,11 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
|
25621
25664
|
var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
25622
25665
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25623
25666
|
};
|
|
25667
|
+
var __param = (undefined && undefined.__param) || function (paramIndex, decorator) {
|
|
25668
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
25669
|
+
};
|
|
25670
|
+
|
|
25671
|
+
|
|
25624
25672
|
|
|
25625
25673
|
|
|
25626
25674
|
/**
|
|
@@ -25633,14 +25681,41 @@ var __metadata = (undefined && undefined.__metadata) || function (k, v) {
|
|
|
25633
25681
|
* <example-url>../../iframe.html?id=ui-shell--header</example-url>
|
|
25634
25682
|
*/
|
|
25635
25683
|
var Header = /** @class */ (function () {
|
|
25636
|
-
function Header(i18n) {
|
|
25684
|
+
function Header(i18n, domSanitizer, router) {
|
|
25637
25685
|
this.i18n = i18n;
|
|
25686
|
+
this.domSanitizer = domSanitizer;
|
|
25687
|
+
this.router = router;
|
|
25638
25688
|
/**
|
|
25639
25689
|
* Top level branding. Defaults to "IBM"
|
|
25640
25690
|
*/
|
|
25641
25691
|
this.brand = "IBM";
|
|
25692
|
+
/**
|
|
25693
|
+
* Emits the navigation status promise when the link is activated
|
|
25694
|
+
*/
|
|
25695
|
+
this.navigation = new _angular_core__WEBPACK_IMPORTED_MODULE_0__["EventEmitter"]();
|
|
25696
|
+
this._href = "javascript:void(0)";
|
|
25642
25697
|
}
|
|
25643
|
-
|
|
25698
|
+
Object.defineProperty(Header.prototype, "href", {
|
|
25699
|
+
get: function () {
|
|
25700
|
+
return this.domSanitizer.bypassSecurityTrustUrl(this._href);
|
|
25701
|
+
},
|
|
25702
|
+
/**
|
|
25703
|
+
* Optional link for the header
|
|
25704
|
+
*/
|
|
25705
|
+
set: function (v) {
|
|
25706
|
+
this._href = v;
|
|
25707
|
+
},
|
|
25708
|
+
enumerable: true,
|
|
25709
|
+
configurable: true
|
|
25710
|
+
});
|
|
25711
|
+
Header.prototype.navigate = function (event) {
|
|
25712
|
+
if (this.router && this.route) {
|
|
25713
|
+
event.preventDefault();
|
|
25714
|
+
var status = this.router.navigate(this.route, this.routeExtras);
|
|
25715
|
+
this.navigation.emit(status);
|
|
25716
|
+
}
|
|
25717
|
+
};
|
|
25718
|
+
var _a, _b, _c;
|
|
25644
25719
|
__decorate([
|
|
25645
25720
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
|
|
25646
25721
|
__metadata("design:type", String)
|
|
@@ -25653,12 +25728,30 @@ var Header = /** @class */ (function () {
|
|
|
25653
25728
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
|
|
25654
25729
|
__metadata("design:type", Object)
|
|
25655
25730
|
], Header.prototype, "brand", void 0);
|
|
25731
|
+
__decorate([
|
|
25732
|
+
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
|
|
25733
|
+
__metadata("design:type", String),
|
|
25734
|
+
__metadata("design:paramtypes", [String])
|
|
25735
|
+
], Header.prototype, "href", null);
|
|
25736
|
+
__decorate([
|
|
25737
|
+
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
|
|
25738
|
+
__metadata("design:type", Array)
|
|
25739
|
+
], Header.prototype, "route", void 0);
|
|
25740
|
+
__decorate([
|
|
25741
|
+
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Input"])(),
|
|
25742
|
+
__metadata("design:type", Object)
|
|
25743
|
+
], Header.prototype, "routeExtras", void 0);
|
|
25744
|
+
__decorate([
|
|
25745
|
+
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Output"])(),
|
|
25746
|
+
__metadata("design:type", Object)
|
|
25747
|
+
], Header.prototype, "navigation", void 0);
|
|
25656
25748
|
Header = __decorate([
|
|
25657
25749
|
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Component"])({
|
|
25658
25750
|
selector: "ibm-header",
|
|
25659
|
-
template: "\n\t\t<header\n\t\t\tclass=\"bx--header\"\n\t\t\trole=\"banner\"\n\t\t\t[attr.aria-label]=\"brand + ' ' + name\">\n\t\t\t<a\n\t\t\t\tclass=\"bx--skip-to-content\"\n\t\t\t\t[href]=\"skipTo\"\n\t\t\t\ttabindex=\"0\">\n\t\t\t\t{{ i18n.get(\"UI_SHELL.SKIP_TO\") | async }}\n\t\t\t</a>\n\t\t\t<ng-content select=\"ibm-hamburger\"></ng-content>\n\t\t\t<a
|
|
25751
|
+
template: "\n\t\t<header\n\t\t\tclass=\"bx--header\"\n\t\t\trole=\"banner\"\n\t\t\t[attr.aria-label]=\"brand + ' ' + name\">\n\t\t\t<a\n\t\t\t\t*ngIf=\"!skipTo\"\n\t\t\t\tclass=\"bx--skip-to-content\"\n\t\t\t\t[href]=\"skipTo\"\n\t\t\t\ttabindex=\"0\">\n\t\t\t\t{{ i18n.get(\"UI_SHELL.SKIP_TO\") | async }}\n\t\t\t</a>\n\t\t\t<ng-content select=\"ibm-hamburger\"></ng-content>\n\t\t\t<a\n\t\t\t\tclass=\"bx--header__name\"\n\t\t\t\thref=\"#\"\n\t\t\t\t(click)=\"navigate($event)\">\n\t\t\t\t<span class=\"bx--header__name--prefix\">{{brand}} </span>\n\t\t\t\t{{name}}\n\t\t\t</a>\n\t\t\t<ng-content></ng-content>\n\t\t</header>\n\t"
|
|
25660
25752
|
}),
|
|
25661
|
-
|
|
25753
|
+
__param(2, Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["Optional"])()),
|
|
25754
|
+
__metadata("design:paramtypes", [typeof (_a = typeof _i18n_i18n_module__WEBPACK_IMPORTED_MODULE_3__["I18n"] !== "undefined" && _i18n_i18n_module__WEBPACK_IMPORTED_MODULE_3__["I18n"]) === "function" && _a || Object, typeof (_b = typeof _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"] !== "undefined" && _angular_platform_browser__WEBPACK_IMPORTED_MODULE_1__["DomSanitizer"]) === "function" && _b || Object, typeof (_c = typeof _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] !== "undefined" && _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]) === "function" && _c || Object])
|
|
25662
25755
|
], Header);
|
|
25663
25756
|
return Header;
|
|
25664
25757
|
}());
|
|
@@ -26546,8 +26639,8 @@ var __decorate = (undefined && undefined.__decorate) || function (decorators, ta
|
|
|
26546
26639
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
26547
26640
|
};
|
|
26548
26641
|
var withStorySource = __webpack_require__(/*! @storybook/addon-storysource */ "./node_modules/@storybook/addon-storysource/dist/index.js").withStorySource;
|
|
26549
|
-
var __STORY__ = "import { action } from '@storybook/addon-actions';\nimport { storiesOf, moduleMetadata } from '@storybook/angular';\nimport { withKnobs, boolean } from '@storybook/addon-knobs/angular';\n\nimport { UIShellModule } from './ui-shell.module';\nimport { SearchModule } from './../search/search.module';\nimport { DialogModule } from './../dialog/dialog.module';\nimport { DocumentationModule } from './../documentation-component/documentation.module';\nimport { Component } from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\n@Component({\n selector: 'app-bar',\n template: '<h1>bar</h1>',\n})\nclass BarComponent {}\n\n@Component({\n selector: 'app-foo',\n template: '<h1>foo</h1>',\n})\nclass FooComponent {}\n\nstoriesOf('UI Shell', module)\n .addDecorator(\n moduleMetadata({\n declarations: [BarComponent, FooComponent],\n imports: [\n UIShellModule,\n SearchModule,\n DialogModule,\n DocumentationModule,\n RouterModule.forRoot(\n [\n {\n path: 'bar',\n component: BarComponent,\n },\n {\n path: 'foo',\n component: FooComponent,\n },\n ],\n {\n initialNavigation: false,\n useHash: true,\n }\n ),\n ],\n })\n )\n .addDecorator(withKnobs)\n .add('Header', () => ({\n template: `\n\t\t\t<ibm-header name=\"[Platform]\">\n\t\t\t\t<ibm-hamburger *ngIf=\"hasHamburger\" (click)=\"expanded($event)\"></ibm-hamburger>\n\t\t\t\t<ibm-header-navigation>\n\t\t\t\t\t<ibm-header-item>Catalog</ibm-header-item>\n\t\t\t\t\t<ibm-header-item>Docs</ibm-header-item>\n\t\t\t\t\t<ibm-header-item>Support</ibm-header-item>\n\t\t\t\t\t<ibm-header-menu title=\"Manage\">\n\t\t\t\t\t\t<ibm-header-item>Link 1</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item>Link 2</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item>Link 3</ibm-header-item>\n\t\t\t\t\t</ibm-header-menu>\n\t\t\t\t</ibm-header-navigation>\n\t\t\t\t<ibm-header-global>\n\t\t\t\t\t<ibm-header-action title=\"action\">\n\t\t\t\t\t\t<svg width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</ibm-header-action>\n\t\t\t\t\t<ibm-header-action title=\"action\">\n\t\t\t\t\t\t<svg width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</ibm-header-action>\n\t\t\t\t</ibm-header-global>\n\t\t\t</ibm-header>\n\t\t`,\n props: {\n hasHamburger: boolean('Show Hamburger', true),\n expanded: action('Menu clicked'),\n },\n }))\n .add('Header with router', () => ({\n template: `\n\t\t\t<ibm-header name=\"[Platform]\">\n\t\t\t\t<ibm-header-navigation>\n\t\t\t\t\t<ibm-header-item [route]=\"['foo']\">Catalog</ibm-header-item>\n\t\t\t\t\t<ibm-header-item [route]=\"['bar']\">Docs</ibm-header-item>\n\t\t\t\t\t<ibm-header-item [route]=\"['foo']\">Support</ibm-header-item>\n\t\t\t\t\t<ibm-header-menu title=\"Manage\">\n\t\t\t\t\t\t<ibm-header-item [route]=\"['foo']\">Link 1</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item [route]=\"['bar']\">Link 2</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item [route]=\"['foo']\">Link 3</ibm-header-item>\n\t\t\t\t\t</ibm-header-menu>\n\t\t\t\t</ibm-header-navigation>\n\t\t\t</ibm-header>\n\t\t\t<div style=\"margin-top: 2rem\">\n\t\t\t\t<router-outlet></router-outlet>\n\t\t\t</div>\n\t\t`,\n props: {\n expanded: action('Menu clicked'),\n },\n }))\n .add('Side Navigation', () => ({\n template: `\n\t\t\t<ibm-sidenav>\n\t\t\t\t<ibm-sidenav-item>\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-item>\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-menu title=\"Category title\">\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\t<ibm-sidenav-item>Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item>Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item>Link</ibm-sidenav-item>\n\t\t\t\t</ibm-sidenav-menu>\n\t\t\t</ibm-sidenav>\n\t\t`,\n props: {\n options: [\n {\n content: 'Option 1',\n value: 1,\n },\n {\n content: 'Option 2',\n value: 2,\n },\n {\n content: 'Option 3',\n value: 3,\n },\n ],\n },\n }))\n .add('Side Navigation with router', () => ({\n template: `\n\t\t\t<ibm-sidenav>\n\t\t\t\t<ibm-sidenav-item [route]=\"['foo']\">\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-item [route]=\"['bar']\">\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-menu title=\"Category title\">\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\t<ibm-sidenav-item [route]=\"['foo']\">Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item [route]=\"['bar']\">Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item [route]=\"['foo']\">Link</ibm-sidenav-item>\n\t\t\t\t</ibm-sidenav-menu>\n\t\t\t</ibm-sidenav>\n\t\t\t<div>\n\t\t\t\t<router-outlet></router-outlet>\n\t\t\t</div>\n\t\t`,\n }))\n .add('Together', () => ({\n template: `\n\t\t\t<ibm-header name=\"[Platform]\">\n\t\t\t\t<ibm-hamburger *ngIf=\"hasHamburger\" [active]=\"active\" (selected)=\"selected()\"></ibm-hamburger>\n\t\t\t\t<ibm-header-navigation>\n\t\t\t\t\t<ibm-header-item>Catalog</ibm-header-item>\n\t\t\t\t\t<ibm-header-item>Docs</ibm-header-item>\n\t\t\t\t\t<ibm-header-item>Support</ibm-header-item>\n\t\t\t\t\t<ibm-header-menu title=\"Manage\">\n\t\t\t\t\t\t<ibm-header-item>Link 1</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item>Link 2</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item>Link 3</ibm-header-item>\n\t\t\t\t\t</ibm-header-menu>\n\t\t\t\t</ibm-header-navigation>\n\t\t\t\t<ibm-header-global>\n\t\t\t\t\t<ibm-header-action #firstAction title=\"action\">\n\t\t\t\t\t\t<svg class=\"bx--navigation-menu-panel-expand-icon\"\n\t\t\t\t\t\t\twidth=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</ibm-header-action>\n\t\t\t\t\t<ibm-header-action #secondAction title=\"action\">\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\tclass=\"bx--navigation-menu-panel-expand-icon\"\n\t\t\t\t\t\t\twidth=\"20\"\n\t\t\t\t\t\t\theight=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</ibm-header-action>\n\t\t\t\t</ibm-header-global>\n\t\t\t</ibm-header>\n\t\t\t<ibm-sidenav [expanded]=\"active\">\n\t\t\t\t<ibm-sidenav-item>\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-item>\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-menu title=\"Category title\">\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\t<ibm-sidenav-item>Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item>Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item>Link</ibm-sidenav-item>\n\t\t\t\t</ibm-sidenav-menu>\n\t\t\t</ibm-sidenav>\n\t\t\t<ibm-panel [expanded]=\"firstAction.active\"></ibm-panel>\n\t\t\t<ibm-panel [expanded]=\"secondAction.active\">\n\t\t\t\t<ibm-switcher-list>\n\t\t\t\t\t<ibm-switcher-list-item active=\"true\">Switcher item one</ibm-switcher-list-item>\n\t\t\t\t\t<ibm-switcher-list-item>Switcher item two</ibm-switcher-list-item>\n\t\t\t\t\t<ibm-switcher-list-item>Switcher item three</ibm-switcher-list-item>\n\t\t\t\t\t<ibm-switcher-list-item>Switcher item four</ibm-switcher-list-item>\n\t\t\t\t</ibm-switcher-list>\n\t\t\t</ibm-panel>\n\t\t`,\n props: {\n hasHamburger: boolean('Show Hamburger', true),\n active: boolean('Left panel active', true),\n selected: () => {\n console.log('selected');\n },\n options: [\n {\n content: 'Option 1',\n value: 1,\n },\n {\n content: 'Option 2',\n value: 2,\n },\n {\n content: 'Option 3',\n value: 3,\n },\n ],\n },\n }))\n .add('Header Documentation', () => ({\n template: `\n\t\t\t<ibm-documentation src=\"documentation/components/Header.html\"></ibm-documentation>\n\t\t`,\n }))\n .add('Side Nav Documentation', () => ({\n template: `\n\t\t\t<ibm-documentation src=\"documentation/components/SideNav.html\"></ibm-documentation>\n\t\t`,\n }));\n";
|
|
26550
|
-
var __ADDS_MAP__ = { "ui-shell--side-nav-documentation": { "startLoc": { "col": 7, "line":
|
|
26642
|
+
var __STORY__ = "import { action } from '@storybook/addon-actions';\nimport { storiesOf, moduleMetadata } from '@storybook/angular';\nimport { withKnobs, boolean } from '@storybook/addon-knobs/angular';\n\nimport { UIShellModule } from './ui-shell.module';\nimport { SearchModule } from './../search/search.module';\nimport { DialogModule } from './../dialog/dialog.module';\nimport { DocumentationModule } from './../documentation-component/documentation.module';\nimport { Component } from '@angular/core';\nimport { RouterModule } from '@angular/router';\n\n@Component({\n selector: 'app-bar',\n template: '<h1>bar</h1>',\n})\nclass BarComponent {}\n\n@Component({\n selector: 'app-foo',\n template: '<h1>foo</h1>',\n})\nclass FooComponent {}\n\nstoriesOf('UI Shell', module)\n .addDecorator(\n moduleMetadata({\n declarations: [BarComponent, FooComponent],\n imports: [\n UIShellModule,\n SearchModule,\n DialogModule,\n DocumentationModule,\n RouterModule.forRoot(\n [\n {\n path: 'bar',\n component: BarComponent,\n },\n {\n path: 'foo',\n component: FooComponent,\n },\n ],\n {\n initialNavigation: false,\n useHash: true,\n }\n ),\n ],\n })\n )\n .addDecorator(withKnobs)\n .add('Header', () => ({\n template: `\n\t\t\t<ibm-header name=\"[Platform]\">\n\t\t\t\t<ibm-hamburger *ngIf=\"hasHamburger\" (click)=\"expanded($event)\"></ibm-hamburger>\n\t\t\t\t<ibm-header-navigation>\n\t\t\t\t\t<ibm-header-item>Catalog</ibm-header-item>\n\t\t\t\t\t<ibm-header-item>Docs</ibm-header-item>\n\t\t\t\t\t<ibm-header-item>Support</ibm-header-item>\n\t\t\t\t\t<ibm-header-menu title=\"Manage\">\n\t\t\t\t\t\t<ibm-header-item>Link 1</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item>Link 2</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item>Link 3</ibm-header-item>\n\t\t\t\t\t</ibm-header-menu>\n\t\t\t\t</ibm-header-navigation>\n\t\t\t\t<ibm-header-global>\n\t\t\t\t\t<ibm-header-action title=\"action\">\n\t\t\t\t\t\t<svg width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</ibm-header-action>\n\t\t\t\t\t<ibm-header-action title=\"action\">\n\t\t\t\t\t\t<svg width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</ibm-header-action>\n\t\t\t\t</ibm-header-global>\n\t\t\t</ibm-header>\n\t\t`,\n props: {\n hasHamburger: boolean('Show Hamburger', true),\n expanded: action('Menu clicked'),\n },\n }))\n .add('Header with router', () => ({\n template: `\n\t\t\t<ibm-header name=\"[Platform]\">\n\t\t\t\t<ibm-header-navigation>\n\t\t\t\t\t<ibm-header-item [route]=\"['foo']\">Catalog</ibm-header-item>\n\t\t\t\t\t<ibm-header-item [route]=\"['bar']\">Docs</ibm-header-item>\n\t\t\t\t\t<ibm-header-item [route]=\"['foo']\">Support</ibm-header-item>\n\t\t\t\t\t<ibm-header-menu title=\"Manage\">\n\t\t\t\t\t\t<ibm-header-item [route]=\"['foo']\">Link 1</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item [route]=\"['bar']\">Link 2</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item [route]=\"['foo']\">Link 3</ibm-header-item>\n\t\t\t\t\t</ibm-header-menu>\n\t\t\t\t</ibm-header-navigation>\n\t\t\t</ibm-header>\n\t\t\t<div style=\"margin-top: 2rem\">\n\t\t\t\t<router-outlet></router-outlet>\n\t\t\t</div>\n\t\t`,\n props: {\n expanded: action('Menu clicked'),\n },\n }))\n .add('Side Navigation', () => ({\n template: `\n\t\t\t<ibm-sidenav>\n\t\t\t\t<ibm-sidenav-item>\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-item>\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-menu title=\"Category title\">\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\t<ibm-sidenav-item>Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item>Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item>Link</ibm-sidenav-item>\n\t\t\t\t</ibm-sidenav-menu>\n\t\t\t</ibm-sidenav>\n\t\t`,\n props: {\n options: [\n {\n content: 'Option 1',\n value: 1,\n },\n {\n content: 'Option 2',\n value: 2,\n },\n {\n content: 'Option 3',\n value: 3,\n },\n ],\n },\n }))\n .add('Side Navigation with router', () => ({\n template: `\n\t\t\t<ibm-sidenav>\n\t\t\t\t<ibm-sidenav-item [route]=\"['foo']\">\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-item [route]=\"['bar']\">\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-menu title=\"Category title\">\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\t<ibm-sidenav-item [route]=\"['foo']\">Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item [route]=\"['bar']\">Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item [route]=\"['foo']\">Link</ibm-sidenav-item>\n\t\t\t\t</ibm-sidenav-menu>\n\t\t\t</ibm-sidenav>\n\t\t\t<div>\n\t\t\t\t<router-outlet></router-outlet>\n\t\t\t</div>\n\t\t`,\n }))\n .add('Together', () => ({\n template: `\n\t\t\t<ibm-header name=\"[Platform]\">\n\t\t\t\t<ibm-hamburger *ngIf=\"hasHamburger\" [active]=\"active\" (selected)=\"selected()\"></ibm-hamburger>\n\t\t\t\t<ibm-header-navigation>\n\t\t\t\t\t<ibm-header-item>Catalog</ibm-header-item>\n\t\t\t\t\t<ibm-header-item>Docs</ibm-header-item>\n\t\t\t\t\t<ibm-header-item>Support</ibm-header-item>\n\t\t\t\t\t<ibm-header-menu title=\"Manage\">\n\t\t\t\t\t\t<ibm-header-item>Link 1</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item>Link 2</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item>Link 3</ibm-header-item>\n\t\t\t\t\t</ibm-header-menu>\n\t\t\t\t</ibm-header-navigation>\n\t\t\t\t<ibm-header-global>\n\t\t\t\t\t<ibm-header-action #firstAction title=\"action\">\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\twidth=\"20\"\n\t\t\t\t\t\t\theight=\"20\"\n\t\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\t\tviewBox=\"0 0 32 32\"\n\t\t\t\t\t\t\taria-hidden=\"true\">\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</ibm-header-action>\n\t\t\t\t\t<ibm-header-action #secondAction title=\"action\">\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\twidth=\"20\"\n\t\t\t\t\t\t\theight=\"20\"\n\t\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\t\tviewBox=\"0 0 32 32\"\n\t\t\t\t\t\t\taria-hidden=\"true\">\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</ibm-header-action>\n\t\t\t\t</ibm-header-global>\n\t\t\t</ibm-header>\n\t\t\t<ibm-sidenav [expanded]=\"active\">\n\t\t\t\t<ibm-sidenav-item>\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-item>\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-menu title=\"Category title\">\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\t<ibm-sidenav-item>Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item>Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item>Link</ibm-sidenav-item>\n\t\t\t\t</ibm-sidenav-menu>\n\t\t\t</ibm-sidenav>\n\t\t\t<ibm-panel [expanded]=\"firstAction.active\"></ibm-panel>\n\t\t\t<ibm-panel [expanded]=\"secondAction.active\">\n\t\t\t\t<ibm-switcher-list>\n\t\t\t\t\t<ibm-switcher-list-item active=\"true\">Switcher item one</ibm-switcher-list-item>\n\t\t\t\t\t<ibm-switcher-list-item>Switcher item two</ibm-switcher-list-item>\n\t\t\t\t\t<ibm-switcher-list-item>Switcher item three</ibm-switcher-list-item>\n\t\t\t\t\t<ibm-switcher-list-item>Switcher item four</ibm-switcher-list-item>\n\t\t\t\t</ibm-switcher-list>\n\t\t\t</ibm-panel>\n\t\t`,\n props: {\n hasHamburger: boolean('Show Hamburger', true),\n active: boolean('Left panel active', true),\n selected: () => {\n console.log('selected');\n },\n options: [\n {\n content: 'Option 1',\n value: 1,\n },\n {\n content: 'Option 2',\n value: 2,\n },\n {\n content: 'Option 3',\n value: 3,\n },\n ],\n },\n }))\n .add('Header Documentation', () => ({\n template: `\n\t\t\t<ibm-documentation src=\"documentation/components/Header.html\"></ibm-documentation>\n\t\t`,\n }))\n .add('Side Nav Documentation', () => ({\n template: `\n\t\t\t<ibm-documentation src=\"documentation/components/SideNav.html\"></ibm-documentation>\n\t\t`,\n }));\n";
|
|
26643
|
+
var __ADDS_MAP__ = { "ui-shell--side-nav-documentation": { "startLoc": { "col": 7, "line": 353 }, "endLoc": { "col": 4, "line": 357 } }, "ui-shell--header-documentation": { "startLoc": { "col": 7, "line": 348 }, "endLoc": { "col": 4, "line": 352 } }, "ui-shell--together": { "startLoc": { "col": 7, "line": 227 }, "endLoc": { "col": 4, "line": 347 } }, "ui-shell--side-navigation-with-router": { "startLoc": { "col": 7, "line": 180 }, "endLoc": { "col": 4, "line": 226 } }, "ui-shell--side-navigation": { "startLoc": { "col": 7, "line": 120 }, "endLoc": { "col": 4, "line": 179 } }, "ui-shell--header-with-router": { "startLoc": { "col": 7, "line": 98 }, "endLoc": { "col": 4, "line": 119 } }, "ui-shell--header": { "startLoc": { "col": 7, "line": 53 }, "endLoc": { "col": 4, "line": 97 } } };
|
|
26551
26644
|
|
|
26552
26645
|
|
|
26553
26646
|
|
|
@@ -26639,7 +26732,7 @@ Object(_storybook_angular__WEBPACK_IMPORTED_MODULE_1__["storiesOf"])("UI Shell",
|
|
|
26639
26732
|
template: "\n\t\t\t<ibm-sidenav>\n\t\t\t\t<ibm-sidenav-item [route]=\"['foo']\">\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-item [route]=\"['bar']\">\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-menu title=\"Category title\">\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\t<ibm-sidenav-item [route]=\"['foo']\">Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item [route]=\"['bar']\">Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item [route]=\"['foo']\">Link</ibm-sidenav-item>\n\t\t\t\t</ibm-sidenav-menu>\n\t\t\t</ibm-sidenav>\n\t\t\t<div>\n\t\t\t\t<router-outlet></router-outlet>\n\t\t\t</div>\n\t\t"
|
|
26640
26733
|
}); })
|
|
26641
26734
|
.add("Together", function () { return ({
|
|
26642
|
-
template: "\n\t\t\t<ibm-header name=\"[Platform]\">\n\t\t\t\t<ibm-hamburger *ngIf=\"hasHamburger\" [active]=\"active\" (selected)=\"selected()\"></ibm-hamburger>\n\t\t\t\t<ibm-header-navigation>\n\t\t\t\t\t<ibm-header-item>Catalog</ibm-header-item>\n\t\t\t\t\t<ibm-header-item>Docs</ibm-header-item>\n\t\t\t\t\t<ibm-header-item>Support</ibm-header-item>\n\t\t\t\t\t<ibm-header-menu title=\"Manage\">\n\t\t\t\t\t\t<ibm-header-item>Link 1</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item>Link 2</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item>Link 3</ibm-header-item>\n\t\t\t\t\t</ibm-header-menu>\n\t\t\t\t</ibm-header-navigation>\n\t\t\t\t<ibm-header-global>\n\t\t\t\t\t<ibm-header-action #firstAction title=\"action\">\n\t\t\t\t\t\t<svg
|
|
26735
|
+
template: "\n\t\t\t<ibm-header name=\"[Platform]\">\n\t\t\t\t<ibm-hamburger *ngIf=\"hasHamburger\" [active]=\"active\" (selected)=\"selected()\"></ibm-hamburger>\n\t\t\t\t<ibm-header-navigation>\n\t\t\t\t\t<ibm-header-item>Catalog</ibm-header-item>\n\t\t\t\t\t<ibm-header-item>Docs</ibm-header-item>\n\t\t\t\t\t<ibm-header-item>Support</ibm-header-item>\n\t\t\t\t\t<ibm-header-menu title=\"Manage\">\n\t\t\t\t\t\t<ibm-header-item>Link 1</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item>Link 2</ibm-header-item>\n\t\t\t\t\t\t<ibm-header-item>Link 3</ibm-header-item>\n\t\t\t\t\t</ibm-header-menu>\n\t\t\t\t</ibm-header-navigation>\n\t\t\t\t<ibm-header-global>\n\t\t\t\t\t<ibm-header-action #firstAction title=\"action\">\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\twidth=\"20\"\n\t\t\t\t\t\t\theight=\"20\"\n\t\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\t\tviewBox=\"0 0 32 32\"\n\t\t\t\t\t\t\taria-hidden=\"true\">\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</ibm-header-action>\n\t\t\t\t\t<ibm-header-action #secondAction title=\"action\">\n\t\t\t\t\t\t<svg\n\t\t\t\t\t\t\twidth=\"20\"\n\t\t\t\t\t\t\theight=\"20\"\n\t\t\t\t\t\t\txmlns=\"http://www.w3.org/2000/svg\"\n\t\t\t\t\t\t\tviewBox=\"0 0 32 32\"\n\t\t\t\t\t\t\taria-hidden=\"true\">\n\t\t\t\t\t\t\t<path\n\t\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t\t</svg>\n\t\t\t\t\t</ibm-header-action>\n\t\t\t\t</ibm-header-global>\n\t\t\t</ibm-header>\n\t\t\t<ibm-sidenav [expanded]=\"active\">\n\t\t\t\t<ibm-sidenav-item>\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-item>\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\tLink\n\t\t\t\t</ibm-sidenav-item>\n\t\t\t\t<ibm-sidenav-menu title=\"Category title\">\n\t\t\t\t\t<svg icon width=\"20\" height=\"20\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 32 32\" aria-hidden=\"true\">\n\t\t\t\t\t\t<path\n\t\t\t\t\t\t\td=\"M8.24 25.14L7 26.67a14 14 0 0 0 4.18 2.44l.68-1.88a12\n\t\t\t\t\t\t\t12 0 0 1-3.62-2.09zm-4.05-7.07l-2 .35A13.89 13.89 0 0 0 3.86\n\t\t\t\t\t\t\t23l1.73-1a11.9 11.9 0 0 1-1.4-3.93zm7.63-13.31l-.68-1.88A14\n\t\t\t\t\t\t\t14 0 0 0 7 5.33l1.24 1.53a12 12 0 0 1 3.58-2.1zM5.59\n\t\t\t\t\t\t\t10L3.86 9a13.89 13.89 0 0 0-1.64 4.54l2 .35A11.9 11.9 0 0 1 5.59\n\t\t\t\t\t\t\t10zM16 2v2a12 12 0 0 1 0 24v2a14 14 0 0 0 0-28z\" />\n\t\t\t\t\t</svg>\n\t\t\t\t\t<ibm-sidenav-item>Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item>Link</ibm-sidenav-item>\n\t\t\t\t\t<ibm-sidenav-item>Link</ibm-sidenav-item>\n\t\t\t\t</ibm-sidenav-menu>\n\t\t\t</ibm-sidenav>\n\t\t\t<ibm-panel [expanded]=\"firstAction.active\"></ibm-panel>\n\t\t\t<ibm-panel [expanded]=\"secondAction.active\">\n\t\t\t\t<ibm-switcher-list>\n\t\t\t\t\t<ibm-switcher-list-item active=\"true\">Switcher item one</ibm-switcher-list-item>\n\t\t\t\t\t<ibm-switcher-list-item>Switcher item two</ibm-switcher-list-item>\n\t\t\t\t\t<ibm-switcher-list-item>Switcher item three</ibm-switcher-list-item>\n\t\t\t\t\t<ibm-switcher-list-item>Switcher item four</ibm-switcher-list-item>\n\t\t\t\t</ibm-switcher-list>\n\t\t\t</ibm-panel>\n\t\t",
|
|
26643
26736
|
props: {
|
|
26644
26737
|
hasHamburger: Object(_storybook_addon_knobs_angular__WEBPACK_IMPORTED_MODULE_2__["boolean"])("Show Hamburger", true),
|
|
26645
26738
|
active: Object(_storybook_addon_knobs_angular__WEBPACK_IMPORTED_MODULE_2__["boolean"])("Left panel active", true),
|
|
@@ -26818,4 +26911,4 @@ module.exports = __webpack_require__(/*! /home/travis/build/IBM/carbon-component
|
|
|
26818
26911
|
/***/ })
|
|
26819
26912
|
|
|
26820
26913
|
},[[0,"runtime~main","vendors~main"]]]);
|
|
26821
|
-
//# sourceMappingURL=main.
|
|
26914
|
+
//# sourceMappingURL=main.edce6b8dbd74b486e13b.bundle.js.map
|