Angular 5/6/7 library based on the CBP Theme
CC0-1.0 License
Bot releases are hidden (Show)
Catch-up with Angular, Material, rxjs, CLI and minor barrel fixes.
Published by yogeshgadge almost 6 years ago
Release upgrades to angular 7 and upgrade to Material 7.
rimraf node_modules
npm install --save ngx-cbp-theme@~7
#or
yarn add ngx-cbp-theme@~7
Published by yogeshgadge about 6 years ago
CBPNotification
constructor - pass message type , message etc.Simplification of some components to templates or use of lightweight ng-content
selectors using classes instead of components/directives will cause following changes:-
<cbp-app-title>
in the past replace it with <div class="cbp-app-title">
<cbp-app-main-nav>
in the past replace it with <div class="cbp-app-main-nav">
<cbp-app-right-nav>
in the past replace it with <div class="cbp-app-right-nav">
Published by yogeshgadge about 6 years ago
Upgrade to cbp-theme
Published by yogeshgadge over 6 years ago
These are breaking changes. Please follow the following high level steps to upgrade your project to Angular 6.
npm uninstall @angular/cli
// note: don't use --save-dev flag
npm install @angular/cli@^6
ng update @angular/cli
ng update @angular/core
ng update rxjs
Update package.json only with @angular/material, @angular/cdk version 5.2.5 and then perform:-
ng update @angular/material
This will apply material schematics
ngx-cbp-theme
npm install @angular/material@latest
rxjs-compat
Published by yogeshgadge over 6 years ago
Published by yogeshgadge over 6 years ago
CBPNotificationsService.notify(notification: CBPNotification)
passing in textual message and type type?: 'success' | 'danger' | 'warning' | 'info';
TemplateRef
as shown below and in e.g. DemoNotificationsComponent.notifyWarning
@ViewChild('warnNotification') warnNotificationRef: TemplateRef<any>;
notifyWarning() {
this.snoozingNotification = new CBPNotification();
this.snoozingNotification.type = 'warning';
this.snoozingNotification.content = this.warnNotificationRef;
this.notificationService.notify(this.snoozingNotification);
}
CBPNotificationsService.snooze(notification: CBPNotification, wakeUpAfter = 5000)
can snooze a notification and it will reappear after the wake up time is elapsed.close()
on the notification object.CBPNotification.isOpen(): Observable<boolean>
to observe if open.cbp-toggle-switch
now accepts projection of ngModel instead of isOn
property.Published by yogeshgadge over 6 years ago
Published by yogeshgadge over 6 years ago
Published by yogeshgadge over 6 years ago
CBPToolbarState
up
| initial
<cbp-header [cbpAppsMenuExclude]="true" [cbpFeedbackLinkExclude]="true">
<cbp-feedback-link (click)="myFeedbackAction()"></cbp-feedback-link>
<cbp-user-menu>
<div class="mat-menu-item" (click)="myPreferences()" cbp-user-menu-item>Preferences</div>
</cbp-user-menu>
</cbp-header>
npm upgrade to 2.1.4 version
Published by yogeshgadge over 6 years ago
We needed user to click Login to perform login.
In some cases user may be already logged in and the user details are readily available Sometimes the user is already logged in and we have the user details are available upfront. In this case we need to display the user details. This feature prepares for future SSO module while currently provides downstream applications to utilize the same mechanism.
You can pass in 0
if your getUser()
resolves to an immediate subject.
npm i [email protected]
Published by yogeshgadge almost 7 years ago
Published by yogeshgadge almost 7 years ago
Fixes broken FESM5 build
Published by yogeshgadge almost 7 years ago
@angular/[email protected]
and follow the upgrade guide. "ngx-cbp-theme": "2.0.0",
"@angular/animations": "5.0.3",
"@angular/cli": "1.5.4",
"@angular/common": "5.0.3",
"@angular/compiler": "5.0.3",
"@angular/compiler-cli": "5.0.3",
"@angular/core": "5.0.3",
"@angular/forms": "5.0.3",
"@angular/http": "5.0.3",
"@angular/language-service": "5.0.3",
"@angular/platform-browser": "5.0.3",
"@angular/platform-browser-dynamic": "5.0.3",
"@angular/router": "5.0.3",
"@compodoc/compodoc": "1.0.4",
"@types/jasmine": "2.8.2",
"rxjs": "5.5.2",
"@types/node": "8.0.53",
"codelyzer": "4.0.1",
Following scripts below in your project root
npm cache clear --force
npm install @angular/[email protected] -g
npm install
Published by yogeshgadge about 7 years ago
Major upgrade to @angular/[email protected]
md-
prefixes changed to mat-
. Breaking changes in carapace-parapet - version beta11
cbp-root
now starts enforcing mat-
prefix.angular-cli
upgraded to 1.4.5
1.0.0
all versions are locked going forward.@angular/[email protected]
.[email protected]
npm cache verify
npm-install
You can automatically update your projects with the angular-material-prefix-updater tool.
However their tool does not work in beta.12
it only works in beta.11
. So here is the trick you can use:
npm install
@angular/[email protected]` i.e. go back to version 11 however don;t save this to package.json.@angular/[email protected]
or best is nuke node_modules and reinstallmat-select/md-select
you now need to encapsulate it inside mat-form-field
. This is a major enhancement which allows adding mat-hint
and other desirable benefits of mat-form-fields
md-icon
change from fontawesome
to fa
- this registry is provided for you under CBPRootModule
<md-icon fontSet="fontawesome" fontIcon="fa-print"></md-icon>
to
<md-icon fontSet="fa" fontIcon="fa-print"></md-icon>
Published by yogeshgadge about 7 years ago
Adds Applications search and other minor fixes to cbp-header
Published by yogeshgadge about 7 years ago
AOT Build fixes
Published by yogeshgadge about 7 years ago