1.4.1 • Published 4 years ago

rbo-lib v1.4.1

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

RBO LIB

Este pacote foi gerado com Angular CLI versão 7.2.0.

Sumário

  1. Dependências
  2. Instalações
  3. Configurações
  4. Exemplos
  5. Melhorias
  6. Correções
  7. Licença

Dependências

"peerDependencies": {
  "angular-imask": "6.0.4",
  "ngx-toastr": "10.1.0",
  "@auth0/angular-jwt": "2.1.2",
  "rxjs": "6.3.3",
  "primeng": "7.1.3",
  "primeicons": "1.0.0",
  "underscore": "^1.10.2"
}

Instalações

imask:

npm install angular-imask@6.0.4 -E --save

INFO: https://www.npmjs.com/package/angular-imask

import { IMaskModule } from 'angular-imask';
 
@NgModule({
  imports: [
    ...,
    IMaskModule
  ],
  ...
}) {...}

toastr:

npm i ngx-toastr@10.1.0 -E --save

@angular/animations package is a required dependency for the default toast

npm install @angular/animations@7.2.16 -E --save

INFO: https://www.npmjs.com/package/ngx-toastr

import { BrowserModule } from '@angular/platform-browser';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { ToastrModule } from 'ngx-toastr';
 
@NgModule({
  imports: [
    ...,
    BrowserModule,
    BrowserAnimationsModule,
    ToastrModule.forRoot(),
  ],
  ...
}) {...}
"styles": [
  ...,
  "node_modules/ngx-toastr/toastr.css",
]

auth0:

npm i @auth0/angular-jwt@2.1.2 -E --save

INFO: https://www.npmjs.com/package/@auth0/angular-jwt

primeng:

npm install primeng@7.1.3 -E --save
npm install primeicons@1.0.0 -E --save
npm install @angular/cdk@7.3.2 --save
"styles": [
  ...,
  "node_modules/primeicons/primeicons.css",
  "node_modules/primeng/resources/themes/nova-light/theme.css",
  "node_modules/primeng/resources/primeng.min.css",
]

Configurações

Configuração 1: Referenciar base_url no app.component.ts

ngOnInit() {
  this.environmentService.baseUrl = environment.base_url
}

Exemplos

Exemplo 1: Toastr de concluído.

import { RboToastrService } from 'rbo-lib';
 
@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {
  
  constructor(
    private rboToastr: RboToastrService
  ){ }

  ngOnInit(): void {
      this.rboToastr.actionForSuccess()
  }
}

Melhorias

Correções

Licença

ISC

1.4.1

4 years ago

1.4.0

4 years ago

1.3.4

4 years ago

1.3.3

4 years ago

1.3.2

4 years ago

1.3.1

4 years ago

1.3.0

4 years ago

1.2.5

4 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.4

4 years ago

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago