Skip to content

Instantly share code, notes, and snippets.

View BenevidesLecontes's full-sized avatar

Benevides BenevidesLecontes

View GitHub Profile
import {ChangeDetectionStrategy, Component, Input, TemplateRef} from '@angular/core';
import {isBs3, PopoverConfig} from 'ngx-bootstrap';
@Component({
selector: 'popover-custom-container',
changeDetection: ChangeDetectionStrategy.OnPush,
// tslint:disable-next-line
host: {
'[class]': '"popover in popover-" + placement + " " + "bs-popover-" + placement + " " + placement + " " + containerClass',
'[class.show]': '!isBs3',
import {
AfterViewInit, Component, ElementRef, EventEmitter, Input, OnInit, Renderer, TemplateRef, ViewChild,
ViewContainerRef
} from '@angular/core';
import * as jqueryProxy from 'jquery';
import 'fullcalendar';
import {Options} from 'fullcalendar';
import {ComponentLoader, ComponentLoaderFactory, PopoverConfig, PopoverContainerComponent} from 'ngx-bootstrap';
declare const moment: any;
<!--The content below is only a placeholder and can be replaced.-->
<div style="text-align:center">
<h1>
Welcome to {{title}}!!
</h1>
<img width="300" src="data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxOS4xLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjxzdmcgdmVyc2lvbj0iMS4xIiBpZD0iTGF5ZXJfMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHZpZXdCb3g9IjAgMCAyNTAgMjUwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyNTAgMjUwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+DQo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPg0KCS5zdDB7ZmlsbDojREQwMDMxO30NCgkuc3Qxe2ZpbGw6I0MzMDAyRjt9DQoJLnN0MntmaWxsOiNGRkZGRkY7fQ0KPC9zdHlsZT4NCjxnPg0KCTxwb2x5Z29uIGNsYXNzPSJzdDAiIHBvaW50cz0iMTI1LDMwIDEyNSwzMCAxMjUsMzAgMzEuOSw2My4yIDQ2LjEsMTg2LjMgMTI1LDIzMCAxMjUsMjMwIDEyNSwyMzAgMjAzLjksMTg2LjMgMjE4LjEsNjMuMiAJIi8+DQoJPHBvbHlnb24gY2xhc3M9InN0MSIgcG9pbnRzPSIxMjUsMzAgMTI1
@BenevidesLecontes
BenevidesLecontes / Template
Last active July 19, 2017 13:57
Password component
<div class="form-group password" *ngIf="form" [formGroup]="form">
<input
[id]="id"
[ngClass]="styles"
name="password"
class="form-control"
[attr.type]="inputType"
[placeholder]="placeholder"
autocomplete="false"
[formControlName]="itemName">
<div class="form-group">
<label [attr.for]="id" [innerHtml]="label"></label>
<div class="input-group" daterangepicker (selected)="selected($event, mainInput)">
<input [id]="id" [name]="id"
[placeholder]="placeholder"
[formControl]="control.get(itemName)"
class="form-control uneditable-input input-layout"/>
<a class="input-group-btn btn btn-icon btn-sm">
<i class="glyphicon glyphicon-calendar"></i>
</a>
import {AfterViewInit, Component, EventEmitter, Input, Output, ViewChild} from '@angular/core';
import {DaterangePickerComponent, DaterangepickerConfig} from 'ng2-daterangepicker';
import {FormGroup} from '@angular/forms';
declare const moment: any;
@Component({
selector: 'app-date-rangepicker',
templateUrl: 'ui-kit.components/ui-date-rangepicker/ui-date-rangepicker.component.html'
})
import {CUSTOM_ELEMENTS_SCHEMA, Inject, Injector, NgModule, NgModuleFactoryLoader, SystemJsNgModuleLoader} from '@angular/core';
import {APP_BASE_HREF, CommonModule} from '@angular/common';
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
import {BrowserModule} from '@angular/platform-browser';
import 'wiseit'; // "bare import" for side-effects
import {PessoaModule} from './pessoa/pessoa.module';
import {UtilsModule} from './utils/utils.module';
import {VisaoModule} from './visao/visao.module';
import {TranslateLoader, TranslateModule, TranslateService} from '@ngx-translate/core';
import {WiseITTranslateModule} from './translate/translate.module';
/**
* Created by benevideschissanga on 13/04/17.
*/
import {
AfterViewInit,
Component,
ElementRef,
HostListener,
Inject,
OnDestroy,
<form class="form user-form clearfix" (ngSubmit)="addCE(formAddCE.value)" [formGroup]="formAddCE" novalidate
autocomplete="off">
<div
class="col-sm-14 col-lg-10 col-xs-14 col-sm-offset-1 col-md-12 col-lg-offset-3 col-md-offset-2 col-xs-offset-1 content-padding-global form-client-col">
<!-- Geral -->
<div class="row cad-geral">
<div class="col-lg-16 col-md-16 col-sm-16 col-xs-16">
<h3>Geral</h3>
</div>
<div class="col-lg-3 col-md-3 col-sm-3 col-xs-16">
/**
* Created by benevideschissanga on 13/04/17.
*/
import {Component, ElementRef, HostListener, Inject, OnInit, Renderer, ViewChild} from '@angular/core';
import {FormArray, FormBuilder, FormGroup, Validators} from '@angular/forms';
import {FirstNamePipe} from '../../../pipes/pipes';
import {Http} from '@angular/http';
import {UIRouter} from 'ui-router-ng2';
import {ValidationService} from '../../../ui-kit.components/ui-kit.message/validation.service';
@Component({