diff --git a/CHANGELOG.md b/CHANGELOG.md index 3d40ab6c50..c8a091b505 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,71 @@ + +# [2.0.0-rc.6](https://github.com/akveo/nebular/compare/2.0.0-rc.5...2.0.0-rc.6) (2018-02-22) + + +### Bug Fixes + +* **DEV_DOCS:** add missed line in development on the latest Nebular sources ([#182](https://github.com/akveo/nebular/issues/182)) ([3b84981](https://github.com/akveo/nebular/commit/3b84981)) +* **docs:** update font spacing ([#193](https://github.com/akveo/nebular/issues/193)) ([7e2a41a](https://github.com/akveo/nebular/commit/7e2a41a)) +* **docs:** update menu component to react to expand (add a relevant class) ([#206](https://github.com/akveo/nebular/issues/206)) ([18ccdf6](https://github.com/akveo/nebular/commit/18ccdf6)), closes [#180](https://github.com/akveo/nebular/issues/180) +* **docs:** use correct tag in usage example ([#186](https://github.com/akveo/nebular/issues/186)) ([b2333a9](https://github.com/akveo/nebular/commit/b2333a9)) +* **menu:** don't collapse menu which has a selected item ([#225](https://github.com/akveo/nebular/issues/225)) ([5c489f3](https://github.com/akveo/nebular/commit/5c489f3)) +* **menu:** fix items not being prepared when passed through input ([#181](https://github.com/akveo/nebular/issues/181)) ([2e9d14a](https://github.com/akveo/nebular/commit/2e9d14a)) +* **search:** fix search not un-subscribing from events ([#185](https://github.com/akveo/nebular/issues/185)) ([691e100](https://github.com/akveo/nebular/commit/691e100)) + + +### Code Refactoring + +* **auth:** move token storage out of token service ([c8273da](https://github.com/akveo/nebular/commit/c8273da)) +* **theme:** remove user context menu ([#231](https://github.com/akveo/nebular/issues/231)) ([959bd4a](https://github.com/akveo/nebular/commit/959bd4a)) + + +### Features + +* **security:** add new security module with acl implementation ([#187](https://github.com/akveo/nebular/issues/187)) ([86b2784](https://github.com/akveo/nebular/commit/a4da28938)), closes [#164](https://github.com/akveo/nebular/issues/164) +* **auth:** ability to configure social link ([#205](https://github.com/akveo/nebular/issues/205)) ([86b2784](https://github.com/akveo/nebular/commit/86b2784)), closes [#171](https://github.com/akveo/nebular/issues/171) +* **bootstrap:** update bootstrap to 4.0.0 release (including ng-bootstrap, angular) ([#226](https://github.com/akveo/nebular/issues/226)) ([f047f14](https://github.com/akveo/nebular/commit/f047f14)), closes [#160](https://github.com/akveo/nebular/issues/160) [#223](https://github.com/akveo/nebular/issues/223) [#224](https://github.com/akveo/nebular/issues/224) +* **checkbox:** expand checkbox variables for easier customization ([6b93924](https://github.com/akveo/nebular/commit/6b93924)), closes [#143](https://github.com/akveo/nebular/issues/143) +* **context-menu:** add context menu component ([13799a5](https://github.com/akveo/nebular/commit/13799a5)) +* **popover:** add new awesome `popover` component ([7dbefd6](https://github.com/akveo/nebular/commit/7dbefd6)) +* **popover:** add popover-border-radius theme var ([#254](https://github.com/akveo/nebular/issues/254)) ([baf1a61](https://github.com/akveo/nebular/commit/baf1a61)) +* **ssr:** add server-side rendering support ([c826187](https://github.com/akveo/nebular/commit/c826187)) +* **tabset:** add `lazyLoad` property to `nb-tab` so that it loads content before it is actually shown ([#227](https://github.com/akveo/nebular/issues/227)) ([270995d](https://github.com/akveo/nebular/commit/270995d)), closes [#144](https://github.com/akveo/nebular/issues/144) +* **theme:** add capability append component to the layout top by its factory ([#253](https://github.com/akveo/nebular/issues/253)) ([515636c](https://github.com/akveo/nebular/commit/515636c)) +* **user:** allow use base64 images for user picture ([#238](https://github.com/akveo/nebular/issues/238)) ([28338a7](https://github.com/akveo/nebular/commit/28338a7)) + + +### BREAKING CHANGES + +* **theme:** NbUserComponent no longer has context menu. We've +completely moved context menu in the separate component. So, to +migrate from the previous version you have to remove user menu items +``` + +``` +and use NbContextMenuDirective: +``` + +``` +* **auth:** +1) `NB_AUTH_TOKEN_WRAPPER_CLASS` renamed to `NB_AUTH_TOKEN_CLASS` and you should use `useValue` instead of `useClass` when providing a token: +`{ provide: NB_AUTH_TOKEN_WRAPPER_TOKEN, useClass: NbAuthJWTToken },` to `{ provide: NB_AUTH_TOKEN_CLASS, useValue: NbAuthJWTToken },` + +2) `setValue` method removed from `NbAuthSimpleToken`, `NbAuthJWTToken`, tokens only accept read-only value when created through constructor now. + +3) Token Storage moved out from `NbTokenService` into a separate `NbTokenStorage`. +If you need to change the storage behavior or provide your own - just extend your class from basic `NbTokenStorage` +or `NbTokenLocalStorage` and provide in your `app.module`: +``` + { provide: NbTokenStorage, useClass: NbTokenCustomStorage }, +``` +* **checkbox:** Checkbox check mark color variable (radio-fg) is expanded. +There are three variables instead to set a color depending a the checkbox state: +- checkbox-checkmark - base color +- checkbox-checked-checkmark - color when checkbox checked +- checkbox-disabled-checkmark - color when checkbox is disabled + + + # [2.0.0-rc.5](https://github.com/akveo/nebular/compare/v2.0.0-rc.4...v2.0.0-rc.5) (2018-01-31) diff --git a/docs/output.json b/docs/output.json index 4734c0ce78..7e485fbc2e 100644 --- a/docs/output.json +++ b/docs/output.json @@ -1949,6 +1949,219 @@ } ] }, + { + "kind": "component", + "platform": null, + "examples": [], + "props": [], + "methods": [], + "name": "NbContextMenuComponent", + "shortDescription": "Context menu component used as content within NbContextMenuDirective.", + "styles": [ + { + "shortDescription": "", + "styles": [ + { + "name": "context-menu-fg", + "description": "" + }, + { + "name": "context-menu-active-fg", + "description": "" + }, + { + "name": "context-menu-active-bg", + "description": "" + } + ] + } + ] + }, + { + "kind": "directive", + "platform": null, + "examples": [ + { + "shortDescription": "Juts pass basic menu items:", + "description": "", + "code": "\n\n...\nitems = [{ title: 'Profile' }, { title: 'Log out' }];\n" + }, + { + "shortDescription": "Context menu has different placements, such as: top, bottom, left and right\nwhich can be used as following:", + "description": "", + "code": "\n\n...\nitems = [{ title: 'Profile' }, { title: 'Log out' }];\n" + }, + { + "shortDescription": "By default context menu will try to adjust itself to maximally fit viewport\nand provide the best user experience. It will try to change placement of the context menu.\nIf you wanna disable this behaviour just set it falsy value.", + "description": "", + "code": "\n\n...\nitems = [{ title: 'Profile' }, { title: 'Log out' }];\n" + } + ], + "props": [ + { + "kind": "input", + "platform": null, + "isStatic": false, + "type": "NbPopoverAdjustment", + "required": null, + "name": "nbContextMenuAdjustment", + "shortDescription": "Container placement will be changes automatically based on this strategy if container can't fit view port.\nSet this property to any falsy value if you want to disable automatically adjustment.\nAvailable values: clockwise, counterclockwise." + }, + { + "kind": "input", + "platform": null, + "isStatic": false, + "required": null, + "name": "nbContextMenu", + "shortDescription": "Basic menu items, will be passed to the internal NbMenuComponent." + }, + { + "kind": "input", + "platform": null, + "isStatic": false, + "type": "NbPopoverPlacement", + "required": null, + "name": "nbContextMenuPlacement", + "shortDescription": "Position will be calculated relatively host element based on the placement.\nCan be top, right, bottom and left." + } + ], + "methods": [ + { + "examples": [], + "params": [ + { + "name": "hostRef", + "type": "ElementRef", + "required": null, + "shortDescription": "", + "description": "" + }, + { + "name": "themeService", + "type": "NbThemeService", + "required": null, + "shortDescription": "", + "description": "" + }, + { + "name": "componentFactoryResolver", + "type": "ComponentFactoryResolver", + "required": null, + "shortDescription": "", + "description": "" + }, + { + "name": "platformId", + "type": "any", + "required": null, + "shortDescription": "", + "description": "" + } + ], + "platform": null, + "name": "constructor", + "type": [ + "NbContextMenuDirective" + ], + "isStatic": false, + "shortDescription": "", + "description": "" + }, + { + "examples": [], + "params": [], + "platform": null, + "name": "hide", + "type": [ + "void" + ], + "isStatic": false, + "shortDescription": "Hide context menu." + }, + { + "examples": [], + "params": [], + "platform": null, + "name": "ngOnDestroy", + "type": [ + "void" + ], + "isStatic": false, + "shortDescription": "", + "description": "" + }, + { + "examples": [], + "params": [], + "platform": null, + "name": "ngOnInit", + "type": [ + "void" + ], + "isStatic": false, + "shortDescription": "", + "description": "" + }, + { + "examples": [], + "params": [], + "platform": null, + "name": "onResize", + "type": [ + "void" + ], + "isStatic": false, + "shortDescription": "", + "description": "" + }, + { + "examples": [], + "params": [], + "platform": null, + "name": "show", + "type": [ + "void" + ], + "isStatic": false, + "shortDescription": "Show context menu." + }, + { + "examples": [], + "params": [], + "platform": null, + "name": "toggle", + "type": [ + "void" + ], + "isStatic": false, + "shortDescription": "Toggle context menu state." + }, + { + "examples": [], + "params": [ + { + "name": "items", + "type": "NbMenuItem[]", + "required": null, + "shortDescription": "", + "description": "" + } + ], + "platform": null, + "name": "validateItems", + "type": [ + "void" + ], + "isStatic": false, + "shortDescription": "", + "description": "" + } + ], + "name": "NbContextMenuDirective", + "description": "![image](assets/images/components/context-menu.gif)\n", + "shortDescription": "Full featured context menu directive.", + "styles": [] + }, { "kind": "component", "platform": null, @@ -3017,6 +3230,15 @@ "name": "content", "shortDescription": "Content which will be rendered." }, + { + "kind": "input", + "platform": null, + "isStatic": false, + "type": "Object", + "required": null, + "name": "context", + "shortDescription": "Context which will be passed to rendered component instance." + }, { "kind": "input", "platform": null, @@ -3026,6 +3248,15 @@ "name": "placement", "shortDescription": "Popover placement relatively host element." }, + { + "kind": "property", + "platform": null, + "isStatic": false, + "type": "any", + "required": null, + "name": "componentOutlet", + "shortDescription": "If content type is TemplateRef we're passing context as template outlet param.\nBut if we have custom component content we're just assigning passed context to the component instance." + }, { "kind": "property", "platform": null, @@ -3054,7 +3285,28 @@ "shortDescription": "Check that content is a TemplateRef." } ], - "methods": [], + "methods": [ + { + "examples": [], + "params": [ + { + "name": "changeDetectorRef", + "type": "ChangeDetectorRef", + "required": null, + "shortDescription": "", + "description": "" + } + ], + "platform": null, + "name": "constructor", + "type": [ + "NbPopoverComponent" + ], + "isStatic": false, + "shortDescription": "", + "description": "" + } + ], "name": "NbPopoverComponent", "shortDescription": "Popover container.\nRenders provided content inside.", "styles": [ @@ -3130,6 +3382,15 @@ "name": "nbPopover", "shortDescription": "Popover content which will be rendered in NbPopoverComponent.\nAvailable content: template ref, component and any primitive." }, + { + "kind": "input", + "platform": null, + "isStatic": false, + "type": "Object", + "required": null, + "name": "nbPopoverContext", + "shortDescription": "Container content context. Will be applied to the rendered component." + }, { "kind": "input", "platform": null, @@ -3185,6 +3446,13 @@ "shortDescription": "", "description": "" }, + { + "name": "componentFactoryResolver", + "type": "ComponentFactoryResolver", + "required": null, + "shortDescription": "", + "description": "" + }, { "name": "platformId", "type": "any", @@ -3351,10 +3619,17 @@ "required": null, "shortDescription": "", "description": "" + }, + { + "name": "context", + "type": "Object", + "required": null, + "shortDescription": "", + "description": "" } ], "platform": null, - "name": "patchPopoverContent", + "name": "patchPopover", "type": [ "void" ], @@ -5259,6 +5534,13 @@ "required": null, "shortDescription": "", "description": "" + }, + { + "name": "componentFactoryResolver", + "type": "ComponentFactoryResolver", + "required": null, + "shortDescription": "", + "description": "" } ], "platform": null, @@ -5294,8 +5576,8 @@ "examples": [], "params": [ { - "name": "component", - "type": "Type", + "name": "entity", + "type": "", "required": null, "shortDescription": "", "description": "" @@ -6157,6 +6439,10 @@ "theme": "default", "prop": "popover-fg" }, + { + "theme": "default", + "prop": "context-menu-fg" + }, { "theme": "default", "prop": "search-text" @@ -6311,6 +6597,10 @@ "value": "#ffffff", "parents": [], "childs": [ + { + "theme": "default", + "prop": "context-menu-active-fg" + }, { "theme": "default", "prop": "toaster-fg" @@ -6392,6 +6682,10 @@ "theme": "default", "prop": "popover-border" }, + { + "theme": "default", + "prop": "context-menu-active-bg" + }, { "theme": "default", "prop": "smart-table-paging-bg-active" @@ -8352,6 +8646,39 @@ "parents": [], "childs": [] }, + "context-menu-fg": { + "name": "context-menu-fg", + "value": "#2a2a2a", + "parents": [ + { + "theme": "default", + "prop": "color-fg-heading" + } + ], + "childs": [] + }, + "context-menu-active-fg": { + "name": "context-menu-active-fg", + "value": "#ffffff", + "parents": [ + { + "theme": "default", + "prop": "color-white" + } + ], + "childs": [] + }, + "context-menu-active-bg": { + "name": "context-menu-active-bg", + "value": "#40dc7e", + "parents": [ + { + "theme": "default", + "prop": "color-success" + } + ], + "childs": [] + }, "actions-font-size": { "name": "actions-font-size", "value": "1rem", @@ -10697,6 +11024,10 @@ "theme": "cosmic", "prop": "popover-fg" }, + { + "theme": "cosmic", + "prop": "context-menu-fg" + }, { "theme": "cosmic", "prop": "search-text" @@ -10873,6 +11204,10 @@ "theme": "cosmic", "prop": "menu-group-fg" }, + { + "theme": "cosmic", + "prop": "context-menu-active-fg" + }, { "theme": "cosmic", "prop": "toaster-fg" @@ -10916,6 +11251,10 @@ "theme": "cosmic", "prop": "popover-border" }, + { + "theme": "cosmic", + "prop": "context-menu-active-bg" + }, { "theme": "cosmic", "prop": "smart-table-paging-border-color" @@ -13105,6 +13444,43 @@ ], "childs": [] }, + "context-menu-fg": { + "name": "context-menu-fg", + "value": "#ffffff", + "parents": [ + { + "theme": "cosmic", + "prop": "color-fg-heading" + } + ], + "childs": [] + }, + "context-menu-active-fg": { + "name": "context-menu-active-fg", + "value": "#ffffff", + "parents": [ + { + "theme": "cosmic", + "prop": "color-white" + }, + { + "theme": "default", + "prop": "color-white" + } + ], + "childs": [] + }, + "context-menu-active-bg": { + "name": "context-menu-active-bg", + "value": "#7659ff", + "parents": [ + { + "theme": "cosmic", + "prop": "color-primary" + } + ], + "childs": [] + }, "actions-font-size": { "name": "actions-font-size", "value": "1rem", diff --git a/package-lock.json b/package-lock.json index 44e1d13f39..acc1c1cfc9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "nebular", - "version": "2.0.0-rc.5", + "version": "2.0.0-rc.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 3a379bf27b..fcce6a5737 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "nebular", - "version": "2.0.0-rc.5", + "version": "2.0.0-rc.6", "license": "MIT", "author": "akveo ", "bugs": { diff --git a/src/framework/auth/package.json b/src/framework/auth/package.json index e3b8eeafdc..c487cfa51a 100644 --- a/src/framework/auth/package.json +++ b/src/framework/auth/package.json @@ -1,6 +1,6 @@ { "name": "@nebular/auth", - "version": "2.0.0-rc.5", + "version": "2.0.0-rc.6", "description": "@nebular/auth", "main": "./bundles/auth.umd.js", "module": "./index.js", @@ -32,7 +32,7 @@ "@angular/router": "^5.1.0", "@angular/forms": "^5.1.0", "@angular/http": "^5.1.0", - "@nebular/theme": "2.0.0-rc.5", + "@nebular/theme": "2.0.0-rc.6", "rxjs": "~5.5.5" } } diff --git a/src/framework/security/package.json b/src/framework/security/package.json index ff34e7e84f..0a04cd731d 100644 --- a/src/framework/security/package.json +++ b/src/framework/security/package.json @@ -1,6 +1,6 @@ { "name": "@nebular/security", - "version": "2.0.0-rc.4", + "version": "2.0.0-rc.6", "description": "@nebular/security", "main": "./bundles/security.umd.js", "module": "./index.js", diff --git a/src/framework/theme/package.json b/src/framework/theme/package.json index c7972444a2..331c61eacb 100644 --- a/src/framework/theme/package.json +++ b/src/framework/theme/package.json @@ -1,6 +1,6 @@ { "name": "@nebular/theme", - "version": "2.0.0-rc.5", + "version": "2.0.0-rc.6", "description": "@nebular/theme", "main": "./bundles/theme.umd.js", "module": "./index.js", @@ -28,6 +28,6 @@ "@angular/core": "^5.1.0", "@angular/router": "^5.1.0", "rxjs": "~5.5.5", - "bootstrap": "^4.0.0-beta.2" + "bootstrap": "^4.0.0" } }