keevo-components 1.5.174 → 1.5.175
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/esm2020/lib/api/components/error/error.component.mjs +3 -3
- package/esm2020/lib/login/login.component.mjs +26 -23
- package/fesm2015/keevo-components.mjs +19 -20
- package/fesm2015/keevo-components.mjs.map +1 -1
- package/fesm2020/keevo-components.mjs +19 -20
- package/fesm2020/keevo-components.mjs.map +1 -1
- package/lib/login/login.component.d.ts +11 -14
- package/package.json +1 -1
|
@@ -977,10 +977,10 @@ class ErrorComponent {
|
|
|
977
977
|
}
|
|
978
978
|
}
|
|
979
979
|
ErrorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
980
|
-
ErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: ErrorComponent, selector: "kv-error", inputs: { formControl: "formControl", setHasError: ["hasError", "setHasError"] }, ngImport: i0, template: "<small id=\"error-message\" class=\"p-error block\" style=\"height:
|
|
980
|
+
ErrorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: ErrorComponent, selector: "kv-error", inputs: { formControl: "formControl", setHasError: ["hasError", "setHasError"] }, ngImport: i0, template: "<small id=\"error-message\" class=\"p-error block\" style=\"height: 0px !important;\" >\r\n <ng-content *ngIf=\"hasError\"></ng-content>\r\n</small>\r\n", styles: ["#error-message{left:1px;font-size:.8rem!important;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol!important}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
981
981
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ErrorComponent, decorators: [{
|
|
982
982
|
type: Component,
|
|
983
|
-
args: [{ selector: 'kv-error', template: "<small id=\"error-message\" class=\"p-error block\" style=\"height:
|
|
983
|
+
args: [{ selector: 'kv-error', template: "<small id=\"error-message\" class=\"p-error block\" style=\"height: 0px !important;\" >\r\n <ng-content *ngIf=\"hasError\"></ng-content>\r\n</small>\r\n", styles: ["#error-message{left:1px;font-size:.8rem!important;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica,Arial,sans-serif,\"Apple Color Emoji\",\"Segoe UI Emoji\",Segoe UI Symbol!important}\n"] }]
|
|
984
984
|
}], ctorParameters: function () { return []; }, propDecorators: { formControl: [{
|
|
985
985
|
type: Input
|
|
986
986
|
}], setHasError: [{
|
|
@@ -3881,34 +3881,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
|
|
|
3881
3881
|
* Componente de login personalizado.
|
|
3882
3882
|
* Este componente permite que os usuários façam login no sistema utilizando o estilo padrão dos sistemas Keevo.
|
|
3883
3883
|
*/
|
|
3884
|
-
class LoginComponent {
|
|
3885
|
-
|
|
3886
|
-
|
|
3887
|
-
* @param formBuilder O construtor de formulários do Angular.
|
|
3888
|
-
*/
|
|
3889
|
-
constructor(formBuilder) {
|
|
3884
|
+
class LoginComponent extends BaseComponentCrudForm {
|
|
3885
|
+
constructor(dialogService, notificationService, activatedRoute, dynamicDialogRef, dynamicDialogConfig, router, formBuilder) {
|
|
3886
|
+
super(dialogService, notificationService, activatedRoute, dynamicDialogRef, dynamicDialogConfig, router);
|
|
3890
3887
|
this.formBuilder = formBuilder;
|
|
3891
3888
|
/** Evento emitido quando o usuário faz login. */
|
|
3892
3889
|
this.onLogin = new EventEmitter();
|
|
3893
3890
|
}
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
|
|
3898
|
-
senha: ['', Validators.required]
|
|
3891
|
+
configureForm() {
|
|
3892
|
+
this.formGroup = this.formBuilder.group({
|
|
3893
|
+
usuario: ['', KeevoValidators.required('Campo obrigatório')],
|
|
3894
|
+
senha: ['', KeevoValidators.required('Campo obrigatório')]
|
|
3899
3895
|
});
|
|
3900
3896
|
}
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3897
|
+
loadForm(id) {
|
|
3898
|
+
}
|
|
3899
|
+
save() {
|
|
3900
|
+
if (this.validateForm()) {
|
|
3901
|
+
this.onLogin.emit(this.formGroup.value);
|
|
3902
|
+
}
|
|
3904
3903
|
}
|
|
3905
3904
|
}
|
|
3906
|
-
LoginComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: LoginComponent, deps: [{ token: i2$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
3907
|
-
LoginComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: LoginComponent, selector: "kv-login", inputs: { Background: "Background", SystemLogo: "SystemLogo", SystemColorPrimary: "SystemColorPrimary", SystemColorSecondary: "SystemColorSecondary" }, outputs: { onLogin: "onLogin" }, ngImport: i0, template: "<div id=\"kvLogin-container\"\r\n class=\"flex justify-content-center align-items-center flex-column h-screen \" \r\n [style.background-image]=\"'url(' + Background + ')'\">\r\n\r\n <!-- CARD PRINCIPAL -->\r\n <div [formGroup]=\"
|
|
3905
|
+
LoginComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: LoginComponent, deps: [{ token: i1$3.DialogService }, { token: NotificationService }, { token: i3$1.ActivatedRoute }, { token: i1$3.DynamicDialogRef }, { token: i1$3.DynamicDialogConfig }, { token: i3$1.Router }, { token: i2$1.FormBuilder }], target: i0.ɵɵFactoryTarget.Component });
|
|
3906
|
+
LoginComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: LoginComponent, selector: "kv-login", inputs: { Background: "Background", SystemLogo: "SystemLogo", SystemColorPrimary: "SystemColorPrimary", SystemColorSecondary: "SystemColorSecondary" }, outputs: { onLogin: "onLogin" }, usesInheritance: true, ngImport: i0, template: "<div id=\"kvLogin-container\"\r\n class=\"flex justify-content-center align-items-center flex-column h-screen \" \r\n [style.background-image]=\"'url(' + Background + ')'\">\r\n\r\n <!-- CARD PRINCIPAL -->\r\n <div [formGroup]=\" formGroup\"\r\n class=\"flex flex-column align-items-center justify-content-between bg-white border-round-xl \"\r\n [style.width.rem]=\"19\" [style.height.px]=\"435\"\r\n (keydown.enter)=\"save()\">\r\n\r\n <!-- LOGO DO SISTEMA -->\r\n <div class=\"flex flex-row align-items-center justify-content-center p-3 mt-2\">\r\n <img alt=\"Logo do Sistema\" [style.height.rem]=\"4\" [src]=\"SystemLogo\" />\r\n </div>\r\n\r\n <!-- INFORMA\u00C7\u00D5ES CENTRAIS -->\r\n <div class=\" grid formgrid p-fluid gap-2 p-3\">\r\n\r\n <div class=\" w-full \" class=\"mb-2\">\r\n <img [style.height.rem]=\"2.5\" class=\"ml-2\" alt=\"keepass\" src=\"https://work-assets.keevo.com.br/img/keepass-logo.png\" />\r\n </div>\r\n\r\n <kv-input-text componentId=\"usuario\" label=\"CPF ou Email\" formControlName=\"usuario\" class=\"field col-12\">\r\n </kv-input-text>\r\n\r\n <kv-input-password componentId=\"senha\" label=\"Senha\" [toggleMask]=\"true\" formControlName=\"senha\"\r\n [required]=\"true\" class=\"field col-12\">\r\n </kv-input-password>\r\n\r\n <div class=\"flex w-full justify-content-end mb-2\" id=\"kvLogin-esqueceu-senha\">\r\n <a href=\"https://keepass.seg.br/redefinirsenha\" target=\"_blank\" style=\"font-size: smaller;\" [style.color]=\"SystemColorPrimary\">\r\n Esqueceu a senha?\r\n </a>\r\n </div>\r\n\r\n </div>\r\n\r\n <button \r\n id=\"kvLogin-login-button\" \r\n [style.background-color]=\"SystemColorPrimary\" \r\n [style.color]=\"'white'\" \r\n class=\"w-full \" \r\n (click)=\"save()\"\r\n [style.height.px]=\"50\"\r\n ><strong>Login</strong></button>\r\n </div>\r\n\r\n <div id=\"kvLogin-cadastro\">\r\n <p [style.color]=\"SystemColorSecondary\">\r\n N\u00E3o possui um Evopass? \r\n <a href=\"https://keepass.seg.br/cadastrar\" target=\"_blank\" [style.color]=\"SystemColorSecondary\" >\r\n Cadastre-se\r\n </a>\r\n </p>\r\n </div>\r\n\r\n <div class=\"flex justify-content-center align-items-center mt-5\">\r\n <img src=\"https://work-assets.keevo.com.br/img/keevo-logo.png\" [style.height.rem]=\"4\" />\r\n </div>\r\n\r\n</div>", styles: ["#kvLogin-container{font-family:Roboto,Helvetica Neue,sans-serif!important;background:no-repeat center;background-size:cover}#kvLogin-esqueceu-senha{position:relative;bottom:.5rem;padding-right:10px}#kvLogin-esqueceu-senha a,#kvLogin-cadastro a{text-decoration:none;font-weight:500;cursor:pointer;gap:3px;transition:text-shadow .2s ease-in-out}#kvLogin-esqueceu-senha a:hover,#kvLogin-cadastro a:hover{text-shadow:0 0 2px rgba(158,158,158,.692)}#kvLogin-login-button{width:100%;height:3rem!important;border-radius:0 0 10px 10px;border:none;cursor:pointer;font-size:14px;transition:all ease-in .2s;-webkit-transition:all ease-in .2s;-moz-transition:all ease-in .2s;-ms-transition:all ease-in .2s;-o-transition:all ease-in .2s}#kvLogin-login-button:hover{opacity:.9}\n"], dependencies: [{ kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i2$1.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i2$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i2$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: InputPasswordComponent, selector: "kv-input-password", inputs: ["feedback", "mediumRegex", "strongRegex", "toggleMask"] }, { kind: "component", type: InputTextComponent, selector: "kv-input-text" }] });
|
|
3908
3907
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: LoginComponent, decorators: [{
|
|
3909
3908
|
type: Component,
|
|
3910
|
-
args: [{ selector: 'kv-login', template: "<div id=\"kvLogin-container\"\r\n class=\"flex justify-content-center align-items-center flex-column h-screen \" \r\n [style.background-image]=\"'url(' + Background + ')'\">\r\n\r\n <!-- CARD PRINCIPAL -->\r\n <div [formGroup]=\"
|
|
3911
|
-
}], ctorParameters: function () { return [{ type: i2$1.FormBuilder }]; }, propDecorators: { Background: [{
|
|
3909
|
+
args: [{ selector: 'kv-login', template: "<div id=\"kvLogin-container\"\r\n class=\"flex justify-content-center align-items-center flex-column h-screen \" \r\n [style.background-image]=\"'url(' + Background + ')'\">\r\n\r\n <!-- CARD PRINCIPAL -->\r\n <div [formGroup]=\" formGroup\"\r\n class=\"flex flex-column align-items-center justify-content-between bg-white border-round-xl \"\r\n [style.width.rem]=\"19\" [style.height.px]=\"435\"\r\n (keydown.enter)=\"save()\">\r\n\r\n <!-- LOGO DO SISTEMA -->\r\n <div class=\"flex flex-row align-items-center justify-content-center p-3 mt-2\">\r\n <img alt=\"Logo do Sistema\" [style.height.rem]=\"4\" [src]=\"SystemLogo\" />\r\n </div>\r\n\r\n <!-- INFORMA\u00C7\u00D5ES CENTRAIS -->\r\n <div class=\" grid formgrid p-fluid gap-2 p-3\">\r\n\r\n <div class=\" w-full \" class=\"mb-2\">\r\n <img [style.height.rem]=\"2.5\" class=\"ml-2\" alt=\"keepass\" src=\"https://work-assets.keevo.com.br/img/keepass-logo.png\" />\r\n </div>\r\n\r\n <kv-input-text componentId=\"usuario\" label=\"CPF ou Email\" formControlName=\"usuario\" class=\"field col-12\">\r\n </kv-input-text>\r\n\r\n <kv-input-password componentId=\"senha\" label=\"Senha\" [toggleMask]=\"true\" formControlName=\"senha\"\r\n [required]=\"true\" class=\"field col-12\">\r\n </kv-input-password>\r\n\r\n <div class=\"flex w-full justify-content-end mb-2\" id=\"kvLogin-esqueceu-senha\">\r\n <a href=\"https://keepass.seg.br/redefinirsenha\" target=\"_blank\" style=\"font-size: smaller;\" [style.color]=\"SystemColorPrimary\">\r\n Esqueceu a senha?\r\n </a>\r\n </div>\r\n\r\n </div>\r\n\r\n <button \r\n id=\"kvLogin-login-button\" \r\n [style.background-color]=\"SystemColorPrimary\" \r\n [style.color]=\"'white'\" \r\n class=\"w-full \" \r\n (click)=\"save()\"\r\n [style.height.px]=\"50\"\r\n ><strong>Login</strong></button>\r\n </div>\r\n\r\n <div id=\"kvLogin-cadastro\">\r\n <p [style.color]=\"SystemColorSecondary\">\r\n N\u00E3o possui um Evopass? \r\n <a href=\"https://keepass.seg.br/cadastrar\" target=\"_blank\" [style.color]=\"SystemColorSecondary\" >\r\n Cadastre-se\r\n </a>\r\n </p>\r\n </div>\r\n\r\n <div class=\"flex justify-content-center align-items-center mt-5\">\r\n <img src=\"https://work-assets.keevo.com.br/img/keevo-logo.png\" [style.height.rem]=\"4\" />\r\n </div>\r\n\r\n</div>", styles: ["#kvLogin-container{font-family:Roboto,Helvetica Neue,sans-serif!important;background:no-repeat center;background-size:cover}#kvLogin-esqueceu-senha{position:relative;bottom:.5rem;padding-right:10px}#kvLogin-esqueceu-senha a,#kvLogin-cadastro a{text-decoration:none;font-weight:500;cursor:pointer;gap:3px;transition:text-shadow .2s ease-in-out}#kvLogin-esqueceu-senha a:hover,#kvLogin-cadastro a:hover{text-shadow:0 0 2px rgba(158,158,158,.692)}#kvLogin-login-button{width:100%;height:3rem!important;border-radius:0 0 10px 10px;border:none;cursor:pointer;font-size:14px;transition:all ease-in .2s;-webkit-transition:all ease-in .2s;-moz-transition:all ease-in .2s;-ms-transition:all ease-in .2s;-o-transition:all ease-in .2s}#kvLogin-login-button:hover{opacity:.9}\n"] }]
|
|
3910
|
+
}], ctorParameters: function () { return [{ type: i1$3.DialogService }, { type: NotificationService }, { type: i3$1.ActivatedRoute }, { type: i1$3.DynamicDialogRef }, { type: i1$3.DynamicDialogConfig }, { type: i3$1.Router }, { type: i2$1.FormBuilder }]; }, propDecorators: { Background: [{
|
|
3912
3911
|
type: Input
|
|
3913
3912
|
}], SystemLogo: [{
|
|
3914
3913
|
type: Input
|