ngx-sp-infra 5.2.9 → 5.2.10
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.
|
@@ -11,16 +11,16 @@ import * as i1 from 'ngx-bootstrap/modal';
|
|
|
11
11
|
import { ModalModule } from 'ngx-bootstrap/modal';
|
|
12
12
|
import * as i1$3 from 'ngx-bootstrap/tooltip';
|
|
13
13
|
import { TooltipModule } from 'ngx-bootstrap/tooltip';
|
|
14
|
-
import { Subject, Subscription, debounceTime, distinctUntilChanged, take, tap,
|
|
14
|
+
import { Subject, Subscription, debounceTime, distinctUntilChanged, BehaviorSubject, take as take$1, tap, filter } from 'rxjs';
|
|
15
15
|
import * as i1$2 from '@angular/platform-browser';
|
|
16
16
|
import * as i12 from 'ngx-pagination';
|
|
17
17
|
import { NgxPaginationModule } from 'ngx-pagination';
|
|
18
18
|
import { cloneDeep } from 'lodash';
|
|
19
19
|
import { NgxCurrencyDirective } from 'ngx-currency';
|
|
20
20
|
import { NgxMaskDirective, NgxMaskPipe } from 'ngx-mask';
|
|
21
|
+
import { take } from 'rxjs/operators';
|
|
21
22
|
import * as i1$4 from '@angular/common/http';
|
|
22
23
|
import { HttpHeaders, HttpParams } from '@angular/common/http';
|
|
23
|
-
import { take as take$1 } from 'rxjs/operators';
|
|
24
24
|
import * as i2$1 from 'ngx-drag-drop';
|
|
25
25
|
import { DndModule } from 'ngx-drag-drop';
|
|
26
26
|
import { ImageCropperComponent as ImageCropperComponent$1 } from 'ngx-image-cropper';
|
|
@@ -8054,59 +8054,6 @@ class InfraSegConfig {
|
|
|
8054
8054
|
}
|
|
8055
8055
|
}
|
|
8056
8056
|
|
|
8057
|
-
class ConfiguracaoSenhaService {
|
|
8058
|
-
// #endregion PRIVATE
|
|
8059
|
-
// #endregion ==========> PROPERTIES <==========
|
|
8060
|
-
// #region ==========> INITIALIZATION <==========
|
|
8061
|
-
constructor(_httpClient) {
|
|
8062
|
-
this._httpClient = _httpClient;
|
|
8063
|
-
// #region ==========> PROPERTIES <==========
|
|
8064
|
-
// #region PRIVATE
|
|
8065
|
-
this._BASE_URL = `https://${window.location.hostname}/SisproErpCloud/Service_Private/Infra/SpInfra2ConfigErpWS/api/InfraSegConfig`; // SpInfra2ConfigErpWS
|
|
8066
|
-
this._HTTP_HEADERS = new HttpHeaders()
|
|
8067
|
-
.set('Content-Type', 'application/json');
|
|
8068
|
-
this._authToken = JSON.parse(localStorage["user_auth_v6"] ?? "{}");
|
|
8069
|
-
this.validateLocalToken();
|
|
8070
|
-
}
|
|
8071
|
-
// #endregion ==========> INITIALIZATION <==========
|
|
8072
|
-
// #region ==========> SERVICE METHODS <==========
|
|
8073
|
-
// #region GET
|
|
8074
|
-
getInfraSegConfig() {
|
|
8075
|
-
const params = new HttpParams().set('TENANT_ID', this._authToken.__tenantId);
|
|
8076
|
-
const headers = this._HTTP_HEADERS
|
|
8077
|
-
.set('Authorization', `Bearer ${this._authToken?.__authToken}`);
|
|
8078
|
-
const url = `${this._BASE_URL}/Get`;
|
|
8079
|
-
return this._httpClient.get(url, { 'params': params, 'headers': headers })
|
|
8080
|
-
.pipe(take(1), tap(response => this.showErrorMessage(response)));
|
|
8081
|
-
}
|
|
8082
|
-
// #endregion GET
|
|
8083
|
-
// #region POST
|
|
8084
|
-
createOrUpdateInfraSegConfig(record) {
|
|
8085
|
-
const headers = this._HTTP_HEADERS
|
|
8086
|
-
.set('Authorization', `Bearer ${this._authToken?.__authToken}`);
|
|
8087
|
-
const url = `${this._BASE_URL}/Create`;
|
|
8088
|
-
return this._httpClient.post(url, record, { 'headers': headers })
|
|
8089
|
-
.pipe(take(1), tap(response => this.showErrorMessage(response)));
|
|
8090
|
-
}
|
|
8091
|
-
// #endregion POST
|
|
8092
|
-
// #endregion ==========> SERVICE METHODS <==========
|
|
8093
|
-
// #region ==========> UTILS <==========
|
|
8094
|
-
showErrorMessage(response) { if (response.Error)
|
|
8095
|
-
throw Error(response.ErrorMessage); }
|
|
8096
|
-
validateLocalToken() {
|
|
8097
|
-
if (!this._authToken)
|
|
8098
|
-
throw new Error("Não há um token correto informado.");
|
|
8099
|
-
}
|
|
8100
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ConfiguracaoSenhaService, deps: [{ token: i1$4.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8101
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ConfiguracaoSenhaService, providedIn: 'root' }); }
|
|
8102
|
-
}
|
|
8103
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ConfiguracaoSenhaService, decorators: [{
|
|
8104
|
-
type: Injectable,
|
|
8105
|
-
args: [{
|
|
8106
|
-
providedIn: 'root'
|
|
8107
|
-
}]
|
|
8108
|
-
}], ctorParameters: () => [{ type: i1$4.HttpClient }] });
|
|
8109
|
-
|
|
8110
8057
|
var alertTypes;
|
|
8111
8058
|
(function (alertTypes) {
|
|
8112
8059
|
alertTypes["DANGER"] = "danger";
|
|
@@ -8203,7 +8150,7 @@ class MessageService {
|
|
|
8203
8150
|
});
|
|
8204
8151
|
return bsModalRef.content.confirmResult
|
|
8205
8152
|
.asObservable()
|
|
8206
|
-
.pipe(take
|
|
8153
|
+
.pipe(take(1));
|
|
8207
8154
|
}
|
|
8208
8155
|
/** Exibe uma mesagem do tipo confirmação */
|
|
8209
8156
|
showConfirm(title, message, okText, cancelText, okButton, paramatroOkButton) {
|
|
@@ -8228,7 +8175,7 @@ class MessageService {
|
|
|
8228
8175
|
});
|
|
8229
8176
|
return bsModalRef.content.confirmResult
|
|
8230
8177
|
.asObservable()
|
|
8231
|
-
.pipe(take
|
|
8178
|
+
.pipe(take(1));
|
|
8232
8179
|
}
|
|
8233
8180
|
/**
|
|
8234
8181
|
* Utilize este método para mostrar na tela um modal que não tem fundo branco, bordas e
|
|
@@ -8303,6 +8250,59 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImpo
|
|
|
8303
8250
|
type: Injectable
|
|
8304
8251
|
}], ctorParameters: () => [{ type: MessageService }, { type: i4.Router }] });
|
|
8305
8252
|
|
|
8253
|
+
class ConfiguracaoSenhaService {
|
|
8254
|
+
// #endregion PRIVATE
|
|
8255
|
+
// #endregion ==========> PROPERTIES <==========
|
|
8256
|
+
// #region ==========> INITIALIZATION <==========
|
|
8257
|
+
constructor(_httpClient) {
|
|
8258
|
+
this._httpClient = _httpClient;
|
|
8259
|
+
// #region ==========> PROPERTIES <==========
|
|
8260
|
+
// #region PRIVATE
|
|
8261
|
+
this._BASE_URL = `https://${window.location.hostname}/SisproErpCloud/Service_Private/Infra/SpInfra2ConfigErpWS/api/InfraSegConfig`; // SpInfra2ConfigErpWS
|
|
8262
|
+
this._HTTP_HEADERS = new HttpHeaders()
|
|
8263
|
+
.set('Content-Type', 'application/json');
|
|
8264
|
+
this._authToken = JSON.parse(localStorage["user_auth_v6"] ?? "{}");
|
|
8265
|
+
this.validateLocalToken();
|
|
8266
|
+
}
|
|
8267
|
+
// #endregion ==========> INITIALIZATION <==========
|
|
8268
|
+
// #region ==========> SERVICE METHODS <==========
|
|
8269
|
+
// #region GET
|
|
8270
|
+
getInfraSegConfig() {
|
|
8271
|
+
const params = new HttpParams().set('TENANT_ID', this._authToken.__tenantId);
|
|
8272
|
+
const headers = this._HTTP_HEADERS
|
|
8273
|
+
.set('Authorization', `Bearer ${this._authToken?.__authToken}`);
|
|
8274
|
+
const url = `${this._BASE_URL}/Get`;
|
|
8275
|
+
return this._httpClient.get(url, { 'params': params, 'headers': headers })
|
|
8276
|
+
.pipe(take$1(1), tap(response => this.showErrorMessage(response)));
|
|
8277
|
+
}
|
|
8278
|
+
// #endregion GET
|
|
8279
|
+
// #region POST
|
|
8280
|
+
createOrUpdateInfraSegConfig(record) {
|
|
8281
|
+
const headers = this._HTTP_HEADERS
|
|
8282
|
+
.set('Authorization', `Bearer ${this._authToken?.__authToken}`);
|
|
8283
|
+
const url = `${this._BASE_URL}/Create`;
|
|
8284
|
+
return this._httpClient.post(url, record, { 'headers': headers })
|
|
8285
|
+
.pipe(take$1(1), tap(response => this.showErrorMessage(response)));
|
|
8286
|
+
}
|
|
8287
|
+
// #endregion POST
|
|
8288
|
+
// #endregion ==========> SERVICE METHODS <==========
|
|
8289
|
+
// #region ==========> UTILS <==========
|
|
8290
|
+
showErrorMessage(response) { if (response.Error)
|
|
8291
|
+
throw Error(response.ErrorMessage); }
|
|
8292
|
+
validateLocalToken() {
|
|
8293
|
+
if (!this._authToken)
|
|
8294
|
+
throw new Error("Não há um token correto informado.");
|
|
8295
|
+
}
|
|
8296
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ConfiguracaoSenhaService, deps: [{ token: i1$4.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
8297
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ConfiguracaoSenhaService, providedIn: 'root' }); }
|
|
8298
|
+
}
|
|
8299
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ConfiguracaoSenhaService, decorators: [{
|
|
8300
|
+
type: Injectable,
|
|
8301
|
+
args: [{
|
|
8302
|
+
providedIn: 'root'
|
|
8303
|
+
}]
|
|
8304
|
+
}], ctorParameters: () => [{ type: i1$4.HttpClient }] });
|
|
8305
|
+
|
|
8306
8306
|
class LibConfigSenhaComponent {
|
|
8307
8307
|
// #endregion PUBLIC
|
|
8308
8308
|
// #endregion ==========> PROPERTIES <==========
|
|
@@ -8470,11 +8470,11 @@ class LibConfigSenhaComponent {
|
|
|
8470
8470
|
}
|
|
8471
8471
|
}
|
|
8472
8472
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LibConfigSenhaComponent, deps: [{ token: ConfiguracaoSenhaService }, { token: MessageService }, { token: TenantService }, { token: i1$2.Title }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
8473
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: LibConfigSenhaComponent, isStandalone: true, selector: "lib-config-senha", ngImport: i0, template: "<lib-header [breadcrumbList]=\"[ 'Infra', 'Configura\u00E7\u00E3o de Senha' ]\" pageTitle=\"Configura\u00E7\u00E3o de Senha\"\n mode=\"edit\" [hideButtons]=\"[ 'Cancelar' ]\" (create)=\"onSubmit()\" (update)=\"onSubmit()\" />\n\n\n<!-- #region BODY -->\n<lib-container>\n\n <div innerContent1>\n <form *ngIf=\"$infraSegConfigRecord; else loading\" [formGroup]=\"form\">\n\n <div class=\"d-flex justify-content-start align-items-center\">\n <div class=\"mb-3\">\n <h2 class=\"fs-5\">Atualmente seu n\u00EDvel de seguran\u00E7a \u00E9 \n <span class=\"rounded text-white p-1 px-2 fw-bold\"\n [ngClass]=\"{\n 'bg-danger': initialLevel === 1,\n 'bg-warning': initialLevel === 2,\n 'bg-success': initialLevel === 3,\n 'bg-primary': initialLevel === 4,\n }\" >\n\n @switch (initialLevel) {\n @case (1) { Baixo }\n @case (2) { M\u00E9dio }\n @case (3) { Alto }\n @case (4) { Personalizado }\n }\n\n <!-- <strong *ngIf=\"initialLevel === 1\"> Baixo </strong>\n <strong class=\"text-dark\" *ngIf=\"initialLevel === 2\"> M\u00E9dio </strong>\n <strong *ngIf=\"initialLevel === 3\"> Alto </strong>\n <strong *ngIf=\"initialLevel === 4\"> Personalizado </strong> -->\n </span>\n </h2>\n </div>\n </div>\n <div class=\"border rounded mb-4\">\n <div class=\"card-body\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">Selecione um n\u00EDvel de seguran\u00E7a abaixo:</h3>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option1\" autocomplete=\"off\" [value]=\"1\" (change)=\"onSelectLevel(Level)\" >\n <label [class.btn-outline-danger]=\"Level === 1\" [class.bg-danger]=\"Level === 1\" class=\"btn btn-secondary m-2\" for=\"option1\"><lib-icon iconName=\"cadeado-aberto-outline\"/> Baixo </label>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option2\" autocomplete=\"off\" [value]=\"2\" (change)=\"onSelectLevel(Level)\" >\n <label [class.bg-warning]=\"Level === 2\" [class.btn-outline-warning]=\"Level === 2\" class=\" btn btn-secondary text-light m-2\" for=\"option2\"><lib-icon iconName=\"cadeado-semiaberto-outline\"/> M\u00E9dio</label>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option3\" autocomplete=\"off\" [value]=\"3\" (change)=\"onSelectLevel(Level)\" >\n <label [class.btn-outline-success]=\"Level === 3\" [class.bg-success]=\"Level === 3\" class=\"btn btn-secondary m-2\" for=\"option3\"><lib-icon iconName=\"cadeado-outline\"/> Alto</label>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option4\" autocomplete=\"off\" [value]=\"4\" (change)=\"onSelectLevel(Level)\" >\n <label [class.btn-outline-primary]=\"Level === 4\" [class.bg-primary]=\"Level === 4\" class=\"btn btn-secondary m-2\" for=\"option4\"><lib-icon iconName=\"chave\"/> Personalizado</label>\n </div>\n </div>\n\n <div class=\"border rounded p-3 mb-4\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">A senha deve conter:</h3>\n\n <div class=\"row\">\n <div class=\"col-3\">\n <div class=\"form-check form-switch\">\n <label class=\"form-check-label\" for=\"numeros\"> N\u00FAmero </label>\n <input formControlName=\"Is_Numeros\" class=\"form-check-input\" type=\"checkbox\" role=\"switch\" id=\"numeros\">\n </div>\n <div class=\"form-check form-switch\">\n <label class=\"form-check-label\" for=\"letraMaiuscula\"> Letra Mai\u00FAscula </label>\n <input formControlName=\"Is_LetrasMaiusculas\" class=\"form-check-input\" type=\"checkbox\" role=\"switch\" id=\"letraMaiuscula\">\n </div>\n <div class=\"form-check form-switch\">\n <label class=\"form-check-label\" for=\"caracteresEspeciais\">Caractere especial</label>\n <input formControlName=\"Is_CaracteresEspeciais\" class=\"form-check-input\" type=\"checkbox\" role=\"switch\" id=\"caracteresEspeciais\">\n <lib-icon class=\"ms-1\" iconName=\"info\" iconColor=\"blue\" iconSize=\"small\" tooltip=\"Caracteres sugeridos: ! @ # $ % & * ( ) _ + = [ ] { } | ?\" />\n </div>\n </div>\n\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"qtnTrocaSenhaInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe a quantidade em dias que a senha ser\u00E1 v\u00E1lida, ap\u00F3s este per\u00EDodo a senha dever\u00E1 ser trocada pelo usu\u00E1rio.\" />\n Validade em dias\n </label>\n <input formControlName=\"QtnTrocaSenha\" type=\"number\" class=\"form-control form-input\" id=\"qtnTrocaSenhaInput\" tooltip=\"Informe a quantidade em dias que a senha ser\u00E1 v\u00E1lida, ap\u00F3s este per\u00EDodo a senha dever\u00E1 ser trocada pelo usu\u00E1rio.\" >\n <app-field-error-message [control]=\"form.get('QtnTrocaSenha')\"></app-field-error-message>\n </div>\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"qtnMinimaInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe a quantidade m\u00EDnima de caracteres que a senha deve ter.\" />\n Tamanho m\u00EDnimo\n </label>\n <input formControlName=\"QtnMinima\" type=\"number\" class=\"form-control form-input\" id=\"qtnMinimaInput\" tooltip=\"Informe a quantidade m\u00EDnima de caracteres que a senha deve ter.\">\n <app-field-error-message [control]=\"form.get('QtnMinima')\"></app-field-error-message>\n </div>\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"qtnRepeticaoInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe quantas senhas diferentes o usu\u00E1rio dever\u00E1 usar antes que possa repetir alguma j\u00E1 utilizada.\" />\n Repeti\u00E7\u00E3o\n </label>\n <input formControlName=\"QtnRepeticao\" type=\"number\" class=\"form-control form-input\" id=\"qtnRepeticaoInput\" tooltip=\"Informe quantas senhas diferentes o usu\u00E1rio dever\u00E1 usar antes que possa repetir alguma j\u00E1 utilizada.\">\n <app-field-error-message [control]=\"form.get('QtnRepeticao')\"></app-field-error-message>\n </div>\n \n <!-- <div class=\"container col row\">\n \n </div> -->\n </div>\n </div>\n\n <div class=\"border rounded p-3\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">Bloqueios:</h3>\n\n <div class=\"row\">\n <!-- <div class=\"col-2 form-check form-switch\">\n <label class=\"form-check-label\" for=\"isDropSessionCheck\"> Derrubar multiplas sess\u00F5es</label>\n <input class=\"form-check-input\" id=\"isDropSessionCheck\" formControlName=\"Is_DropSession\" type=\"checkbox\" role=\"switch\">\n </div> -->\n \n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"diasInatividadeInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe quantos dias um usu\u00E1rio poder\u00E1 ficar sem entrar no sistema, ao exceder este n\u00FAmero o usu\u00E1rio ser\u00E1 desativado perdendo o acesso ao sistema, e somente os Administradores poder\u00E3o ativ\u00E1-lo novamente.\" />\n Dias de Inatividade\n </label>\n <input id=\"diasInatividadeInput\" formControlName=\"QtnInatividade\" type=\"number\" class=\"form-control form-input\" tooltip=\"Informe quantos dias um usu\u00E1rio poder\u00E1 ficar sem entrar no sistema, ao exceder este n\u00FAmero o usu\u00E1rio ser\u00E1 desativado perdendo o acesso ao sistema, e somente os Administradores poder\u00E3o ativ\u00E1-lo novamente.\">\n <app-field-error-message [control]=\"form.get('QtnInatividade')\"></app-field-error-message>\n </div>\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"tentativasDeAcessoInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe a quantidade de tentativas consecutivas de acesso ao sistema sem sucesso antes de bloquear o usu\u00E1rio, exigindo que ele fa\u00E7a uma recupera\u00E7\u00E3o de senha.\" />\n Tentativas de acesso\n </label>\n <input id=\"tentativasDeAcessoInput\" formControlName=\"QtnTentativa\" type=\"number\" class=\"form-control form-input\" tooltip=\"Informe a quantidade de tentativas consecutivas de acesso ao sistema sem sucesso antes de bloquear o usu\u00E1rio, exigindo que ele fa\u00E7a uma recupera\u00E7\u00E3o de senha.\">\n <app-field-error-message [control]=\"form.get('QtnTentativa')\"></app-field-error-message>\n </div>\n\n <!-- <div class=\"container col-6 row\">\n\n </div> -->\n </div>\n </div>\n\n <!-- Palavras do Guilherme: \"oculteia eles\", \"um dia implementamos\" -->\n <!-- #region MARK: LINKS OCULTADOS -->\n <!-- <div class=\"card p-3 mt-3\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">Redefini\u00E7\u00E3o de senha:</h3>\n <a href=\"#\" class=\"link-primary\">Obrigar todos os usu\u00E1rios a trocarem sua senha no pr\u00F3ximo login</a>\n <a href=\"#\" class=\"link-primary\">Selecionar usu\u00E1rios para trocarem sua senha no pr\u00F3ximo login</a>\n </div> -->\n <!-- #endregion LINKS OCULTADOS -->\n\n\n <!-- <div class=\"border rounded\">\n <div class=\"card-body\">\n \n\n </div>\n </div> -->\n\n </form>\n </div>\n\n</lib-container>\n<!-- #endregion BODY -->\n\n<!-- #region SPINNER -->\n<ng-template #loading>\n <div class=\"w-100 text-center\">\n <!-- <div class=\"spinner-border\" style=\"width: 3rem; height: 3rem;\" role=\"status\"> <span class=\"visually-hidden\">Carregando...</span> </div> -->\n <lib-spinner />\n </div>\n</ng-template>\n\n<ng-template #loadingIsAtivo>\n <div class=\"spinner-border spinner-border-sm me-2\" role=\"status\"> <span class=\"visually-hidden\">Carregando...</span> </div>\n</ng-template>\n<!-- #endregion SPINNER -->\n", styles: [""], dependencies: [{ kind: "component", type: LibHeaderComponent, selector: "lib-header", inputs: ["breadcrumbList", "pageTitle", "mode", "hideButtons", "formGroup", "showSpinner", "auditoria"], outputs: ["onReturn", "return", "onCreate", "create", "onUpdate", "update"] }, { kind: "component", type: ContentContainerComponent, selector: "lib-container", inputs: ["documentation", "tabs", "advancedTabs", "containerTitle", "currentTab"], outputs: ["onChangeTab"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1$1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: LibIconsComponent, selector: "lib-icon", inputs: ["iconName", "iconColor", "iconSize", "iconFill"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1$3.TooltipDirective, selector: "[tooltip], [tooltipHtml]", inputs: ["adaptivePosition", "tooltip", "placement", "triggers", "container", "containerClass", "boundariesElement", "isOpen", "isDisabled", "delay", "tooltipHtml", "tooltipPlacement", "tooltipIsOpen", "tooltipEnable", "tooltipAppendToBody", "tooltipAnimation", "tooltipClass", "tooltipContext", "tooltipPopupDelay", "tooltipFadeDuration", "tooltipTrigger"], outputs: ["tooltipChange", "onShown", "onHidden", "tooltipStateChanged"], exportAs: ["bs-tooltip"] }, { kind: "directive", type: RequiredDirective, selector: "label[libRequired], span[libRequired], p[libRequired]", inputs: ["libRequired", "requiredID"] }, { kind: "component", type: FieldErrorMessageComponent, selector: "app-field-error-message, lib-error-message", inputs: ["customMessage", "control", "label"] }, { kind: "component", type: LibSpinnerComponent, selector: "lib-spinner", inputs: ["type", "theme", "size", "helperText"] }] }); }
|
|
8473
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.14", type: LibConfigSenhaComponent, isStandalone: true, selector: "lib-config-senha", providers: [TenantService], ngImport: i0, template: "<lib-header [breadcrumbList]=\"[ 'Infra', 'Configura\u00E7\u00E3o de Senha' ]\" pageTitle=\"Configura\u00E7\u00E3o de Senha\"\n mode=\"edit\" [hideButtons]=\"[ 'Cancelar' ]\" (create)=\"onSubmit()\" (update)=\"onSubmit()\" />\n\n\n<!-- #region BODY -->\n<lib-container>\n\n <div innerContent1>\n <form *ngIf=\"$infraSegConfigRecord; else loading\" [formGroup]=\"form\">\n\n <div class=\"d-flex justify-content-start align-items-center\">\n <div class=\"mb-3\">\n <h2 class=\"fs-5\">Atualmente seu n\u00EDvel de seguran\u00E7a \u00E9 \n <span class=\"rounded text-white p-1 px-2 fw-bold\"\n [ngClass]=\"{\n 'bg-danger': initialLevel === 1,\n 'bg-warning': initialLevel === 2,\n 'bg-success': initialLevel === 3,\n 'bg-primary': initialLevel === 4,\n }\" >\n\n @switch (initialLevel) {\n @case (1) { Baixo }\n @case (2) { M\u00E9dio }\n @case (3) { Alto }\n @case (4) { Personalizado }\n }\n\n <!-- <strong *ngIf=\"initialLevel === 1\"> Baixo </strong>\n <strong class=\"text-dark\" *ngIf=\"initialLevel === 2\"> M\u00E9dio </strong>\n <strong *ngIf=\"initialLevel === 3\"> Alto </strong>\n <strong *ngIf=\"initialLevel === 4\"> Personalizado </strong> -->\n </span>\n </h2>\n </div>\n </div>\n <div class=\"border rounded mb-4\">\n <div class=\"card-body\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">Selecione um n\u00EDvel de seguran\u00E7a abaixo:</h3>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option1\" autocomplete=\"off\" [value]=\"1\" (change)=\"onSelectLevel(Level)\" >\n <label [class.btn-outline-danger]=\"Level === 1\" [class.bg-danger]=\"Level === 1\" class=\"btn btn-secondary m-2\" for=\"option1\"><lib-icon iconName=\"cadeado-aberto-outline\"/> Baixo </label>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option2\" autocomplete=\"off\" [value]=\"2\" (change)=\"onSelectLevel(Level)\" >\n <label [class.bg-warning]=\"Level === 2\" [class.btn-outline-warning]=\"Level === 2\" class=\" btn btn-secondary text-light m-2\" for=\"option2\"><lib-icon iconName=\"cadeado-semiaberto-outline\"/> M\u00E9dio</label>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option3\" autocomplete=\"off\" [value]=\"3\" (change)=\"onSelectLevel(Level)\" >\n <label [class.btn-outline-success]=\"Level === 3\" [class.bg-success]=\"Level === 3\" class=\"btn btn-secondary m-2\" for=\"option3\"><lib-icon iconName=\"cadeado-outline\"/> Alto</label>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option4\" autocomplete=\"off\" [value]=\"4\" (change)=\"onSelectLevel(Level)\" >\n <label [class.btn-outline-primary]=\"Level === 4\" [class.bg-primary]=\"Level === 4\" class=\"btn btn-secondary m-2\" for=\"option4\"><lib-icon iconName=\"chave\"/> Personalizado</label>\n </div>\n </div>\n\n <div class=\"border rounded p-3 mb-4\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">A senha deve conter:</h3>\n\n <div class=\"row\">\n <div class=\"col-3\">\n <div class=\"form-check form-switch\">\n <label class=\"form-check-label\" for=\"numeros\"> N\u00FAmero </label>\n <input formControlName=\"Is_Numeros\" class=\"form-check-input\" type=\"checkbox\" role=\"switch\" id=\"numeros\">\n </div>\n <div class=\"form-check form-switch\">\n <label class=\"form-check-label\" for=\"letraMaiuscula\"> Letra Mai\u00FAscula </label>\n <input formControlName=\"Is_LetrasMaiusculas\" class=\"form-check-input\" type=\"checkbox\" role=\"switch\" id=\"letraMaiuscula\">\n </div>\n <div class=\"form-check form-switch\">\n <label class=\"form-check-label\" for=\"caracteresEspeciais\">Caractere especial</label>\n <input formControlName=\"Is_CaracteresEspeciais\" class=\"form-check-input\" type=\"checkbox\" role=\"switch\" id=\"caracteresEspeciais\">\n <lib-icon class=\"ms-1\" iconName=\"info\" iconColor=\"blue\" iconSize=\"small\" tooltip=\"Caracteres sugeridos: ! @ # $ % & * ( ) _ + = [ ] { } | ?\" />\n </div>\n </div>\n\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"qtnTrocaSenhaInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe a quantidade em dias que a senha ser\u00E1 v\u00E1lida, ap\u00F3s este per\u00EDodo a senha dever\u00E1 ser trocada pelo usu\u00E1rio.\" />\n Validade em dias\n </label>\n <input formControlName=\"QtnTrocaSenha\" type=\"number\" class=\"form-control form-input\" id=\"qtnTrocaSenhaInput\" tooltip=\"Informe a quantidade em dias que a senha ser\u00E1 v\u00E1lida, ap\u00F3s este per\u00EDodo a senha dever\u00E1 ser trocada pelo usu\u00E1rio.\" >\n <app-field-error-message [control]=\"form.get('QtnTrocaSenha')\"></app-field-error-message>\n </div>\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"qtnMinimaInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe a quantidade m\u00EDnima de caracteres que a senha deve ter.\" />\n Tamanho m\u00EDnimo\n </label>\n <input formControlName=\"QtnMinima\" type=\"number\" class=\"form-control form-input\" id=\"qtnMinimaInput\" tooltip=\"Informe a quantidade m\u00EDnima de caracteres que a senha deve ter.\">\n <app-field-error-message [control]=\"form.get('QtnMinima')\"></app-field-error-message>\n </div>\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"qtnRepeticaoInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe quantas senhas diferentes o usu\u00E1rio dever\u00E1 usar antes que possa repetir alguma j\u00E1 utilizada.\" />\n Repeti\u00E7\u00E3o\n </label>\n <input formControlName=\"QtnRepeticao\" type=\"number\" class=\"form-control form-input\" id=\"qtnRepeticaoInput\" tooltip=\"Informe quantas senhas diferentes o usu\u00E1rio dever\u00E1 usar antes que possa repetir alguma j\u00E1 utilizada.\">\n <app-field-error-message [control]=\"form.get('QtnRepeticao')\"></app-field-error-message>\n </div>\n \n <!-- <div class=\"container col row\">\n \n </div> -->\n </div>\n </div>\n\n <div class=\"border rounded p-3\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">Bloqueios:</h3>\n\n <div class=\"row\">\n <!-- <div class=\"col-2 form-check form-switch\">\n <label class=\"form-check-label\" for=\"isDropSessionCheck\"> Derrubar multiplas sess\u00F5es</label>\n <input class=\"form-check-input\" id=\"isDropSessionCheck\" formControlName=\"Is_DropSession\" type=\"checkbox\" role=\"switch\">\n </div> -->\n \n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"diasInatividadeInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe quantos dias um usu\u00E1rio poder\u00E1 ficar sem entrar no sistema, ao exceder este n\u00FAmero o usu\u00E1rio ser\u00E1 desativado perdendo o acesso ao sistema, e somente os Administradores poder\u00E3o ativ\u00E1-lo novamente.\" />\n Dias de Inatividade\n </label>\n <input id=\"diasInatividadeInput\" formControlName=\"QtnInatividade\" type=\"number\" class=\"form-control form-input\" tooltip=\"Informe quantos dias um usu\u00E1rio poder\u00E1 ficar sem entrar no sistema, ao exceder este n\u00FAmero o usu\u00E1rio ser\u00E1 desativado perdendo o acesso ao sistema, e somente os Administradores poder\u00E3o ativ\u00E1-lo novamente.\">\n <app-field-error-message [control]=\"form.get('QtnInatividade')\"></app-field-error-message>\n </div>\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"tentativasDeAcessoInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe a quantidade de tentativas consecutivas de acesso ao sistema sem sucesso antes de bloquear o usu\u00E1rio, exigindo que ele fa\u00E7a uma recupera\u00E7\u00E3o de senha.\" />\n Tentativas de acesso\n </label>\n <input id=\"tentativasDeAcessoInput\" formControlName=\"QtnTentativa\" type=\"number\" class=\"form-control form-input\" tooltip=\"Informe a quantidade de tentativas consecutivas de acesso ao sistema sem sucesso antes de bloquear o usu\u00E1rio, exigindo que ele fa\u00E7a uma recupera\u00E7\u00E3o de senha.\">\n <app-field-error-message [control]=\"form.get('QtnTentativa')\"></app-field-error-message>\n </div>\n\n <!-- <div class=\"container col-6 row\">\n\n </div> -->\n </div>\n </div>\n\n <!-- Palavras do Guilherme: \"oculteia eles\", \"um dia implementamos\" -->\n <!-- #region MARK: LINKS OCULTADOS -->\n <!-- <div class=\"card p-3 mt-3\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">Redefini\u00E7\u00E3o de senha:</h3>\n <a href=\"#\" class=\"link-primary\">Obrigar todos os usu\u00E1rios a trocarem sua senha no pr\u00F3ximo login</a>\n <a href=\"#\" class=\"link-primary\">Selecionar usu\u00E1rios para trocarem sua senha no pr\u00F3ximo login</a>\n </div> -->\n <!-- #endregion LINKS OCULTADOS -->\n\n\n <!-- <div class=\"border rounded\">\n <div class=\"card-body\">\n \n\n </div>\n </div> -->\n\n </form>\n </div>\n\n</lib-container>\n<!-- #endregion BODY -->\n\n<!-- #region SPINNER -->\n<ng-template #loading>\n <div class=\"w-100 text-center\">\n <!-- <div class=\"spinner-border\" style=\"width: 3rem; height: 3rem;\" role=\"status\"> <span class=\"visually-hidden\">Carregando...</span> </div> -->\n <lib-spinner />\n </div>\n</ng-template>\n\n<ng-template #loadingIsAtivo>\n <div class=\"spinner-border spinner-border-sm me-2\" role=\"status\"> <span class=\"visually-hidden\">Carregando...</span> </div>\n</ng-template>\n<!-- #endregion SPINNER -->\n", styles: [""], dependencies: [{ kind: "component", type: LibHeaderComponent, selector: "lib-header", inputs: ["breadcrumbList", "pageTitle", "mode", "hideButtons", "formGroup", "showSpinner", "auditoria"], outputs: ["onReturn", "return", "onCreate", "create", "onUpdate", "update"] }, { kind: "component", type: ContentContainerComponent, selector: "lib-container", inputs: ["documentation", "tabs", "advancedTabs", "containerTitle", "currentTab"], outputs: ["onChangeTab"] }, { kind: "directive", type: NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i1$1.CheckboxControlValueAccessor, selector: "input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]" }, { kind: "directive", type: i1$1.RadioControlValueAccessor, selector: "input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]", inputs: ["name", "formControlName", "value"] }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: LibIconsComponent, selector: "lib-icon", inputs: ["iconName", "iconColor", "iconSize", "iconFill"] }, { kind: "ngmodule", type: TooltipModule }, { kind: "directive", type: i1$3.TooltipDirective, selector: "[tooltip], [tooltipHtml]", inputs: ["adaptivePosition", "tooltip", "placement", "triggers", "container", "containerClass", "boundariesElement", "isOpen", "isDisabled", "delay", "tooltipHtml", "tooltipPlacement", "tooltipIsOpen", "tooltipEnable", "tooltipAppendToBody", "tooltipAnimation", "tooltipClass", "tooltipContext", "tooltipPopupDelay", "tooltipFadeDuration", "tooltipTrigger"], outputs: ["tooltipChange", "onShown", "onHidden", "tooltipStateChanged"], exportAs: ["bs-tooltip"] }, { kind: "directive", type: RequiredDirective, selector: "label[libRequired], span[libRequired], p[libRequired]", inputs: ["libRequired", "requiredID"] }, { kind: "component", type: FieldErrorMessageComponent, selector: "app-field-error-message, lib-error-message", inputs: ["customMessage", "control", "label"] }, { kind: "component", type: LibSpinnerComponent, selector: "lib-spinner", inputs: ["type", "theme", "size", "helperText"] }] }); }
|
|
8474
8474
|
}
|
|
8475
8475
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LibConfigSenhaComponent, decorators: [{
|
|
8476
8476
|
type: Component,
|
|
8477
|
-
args: [{ selector: 'lib-config-senha', imports: [LibHeaderComponent, ContentContainerComponent, NgIf, FormsModule, ReactiveFormsModule, NgClass, LibIconsComponent, TooltipModule, RequiredDirective, FieldErrorMessageComponent, LibSpinnerComponent], template: "<lib-header [breadcrumbList]=\"[ 'Infra', 'Configura\u00E7\u00E3o de Senha' ]\" pageTitle=\"Configura\u00E7\u00E3o de Senha\"\n mode=\"edit\" [hideButtons]=\"[ 'Cancelar' ]\" (create)=\"onSubmit()\" (update)=\"onSubmit()\" />\n\n\n<!-- #region BODY -->\n<lib-container>\n\n <div innerContent1>\n <form *ngIf=\"$infraSegConfigRecord; else loading\" [formGroup]=\"form\">\n\n <div class=\"d-flex justify-content-start align-items-center\">\n <div class=\"mb-3\">\n <h2 class=\"fs-5\">Atualmente seu n\u00EDvel de seguran\u00E7a \u00E9 \n <span class=\"rounded text-white p-1 px-2 fw-bold\"\n [ngClass]=\"{\n 'bg-danger': initialLevel === 1,\n 'bg-warning': initialLevel === 2,\n 'bg-success': initialLevel === 3,\n 'bg-primary': initialLevel === 4,\n }\" >\n\n @switch (initialLevel) {\n @case (1) { Baixo }\n @case (2) { M\u00E9dio }\n @case (3) { Alto }\n @case (4) { Personalizado }\n }\n\n <!-- <strong *ngIf=\"initialLevel === 1\"> Baixo </strong>\n <strong class=\"text-dark\" *ngIf=\"initialLevel === 2\"> M\u00E9dio </strong>\n <strong *ngIf=\"initialLevel === 3\"> Alto </strong>\n <strong *ngIf=\"initialLevel === 4\"> Personalizado </strong> -->\n </span>\n </h2>\n </div>\n </div>\n <div class=\"border rounded mb-4\">\n <div class=\"card-body\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">Selecione um n\u00EDvel de seguran\u00E7a abaixo:</h3>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option1\" autocomplete=\"off\" [value]=\"1\" (change)=\"onSelectLevel(Level)\" >\n <label [class.btn-outline-danger]=\"Level === 1\" [class.bg-danger]=\"Level === 1\" class=\"btn btn-secondary m-2\" for=\"option1\"><lib-icon iconName=\"cadeado-aberto-outline\"/> Baixo </label>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option2\" autocomplete=\"off\" [value]=\"2\" (change)=\"onSelectLevel(Level)\" >\n <label [class.bg-warning]=\"Level === 2\" [class.btn-outline-warning]=\"Level === 2\" class=\" btn btn-secondary text-light m-2\" for=\"option2\"><lib-icon iconName=\"cadeado-semiaberto-outline\"/> M\u00E9dio</label>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option3\" autocomplete=\"off\" [value]=\"3\" (change)=\"onSelectLevel(Level)\" >\n <label [class.btn-outline-success]=\"Level === 3\" [class.bg-success]=\"Level === 3\" class=\"btn btn-secondary m-2\" for=\"option3\"><lib-icon iconName=\"cadeado-outline\"/> Alto</label>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option4\" autocomplete=\"off\" [value]=\"4\" (change)=\"onSelectLevel(Level)\" >\n <label [class.btn-outline-primary]=\"Level === 4\" [class.bg-primary]=\"Level === 4\" class=\"btn btn-secondary m-2\" for=\"option4\"><lib-icon iconName=\"chave\"/> Personalizado</label>\n </div>\n </div>\n\n <div class=\"border rounded p-3 mb-4\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">A senha deve conter:</h3>\n\n <div class=\"row\">\n <div class=\"col-3\">\n <div class=\"form-check form-switch\">\n <label class=\"form-check-label\" for=\"numeros\"> N\u00FAmero </label>\n <input formControlName=\"Is_Numeros\" class=\"form-check-input\" type=\"checkbox\" role=\"switch\" id=\"numeros\">\n </div>\n <div class=\"form-check form-switch\">\n <label class=\"form-check-label\" for=\"letraMaiuscula\"> Letra Mai\u00FAscula </label>\n <input formControlName=\"Is_LetrasMaiusculas\" class=\"form-check-input\" type=\"checkbox\" role=\"switch\" id=\"letraMaiuscula\">\n </div>\n <div class=\"form-check form-switch\">\n <label class=\"form-check-label\" for=\"caracteresEspeciais\">Caractere especial</label>\n <input formControlName=\"Is_CaracteresEspeciais\" class=\"form-check-input\" type=\"checkbox\" role=\"switch\" id=\"caracteresEspeciais\">\n <lib-icon class=\"ms-1\" iconName=\"info\" iconColor=\"blue\" iconSize=\"small\" tooltip=\"Caracteres sugeridos: ! @ # $ % & * ( ) _ + = [ ] { } | ?\" />\n </div>\n </div>\n\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"qtnTrocaSenhaInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe a quantidade em dias que a senha ser\u00E1 v\u00E1lida, ap\u00F3s este per\u00EDodo a senha dever\u00E1 ser trocada pelo usu\u00E1rio.\" />\n Validade em dias\n </label>\n <input formControlName=\"QtnTrocaSenha\" type=\"number\" class=\"form-control form-input\" id=\"qtnTrocaSenhaInput\" tooltip=\"Informe a quantidade em dias que a senha ser\u00E1 v\u00E1lida, ap\u00F3s este per\u00EDodo a senha dever\u00E1 ser trocada pelo usu\u00E1rio.\" >\n <app-field-error-message [control]=\"form.get('QtnTrocaSenha')\"></app-field-error-message>\n </div>\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"qtnMinimaInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe a quantidade m\u00EDnima de caracteres que a senha deve ter.\" />\n Tamanho m\u00EDnimo\n </label>\n <input formControlName=\"QtnMinima\" type=\"number\" class=\"form-control form-input\" id=\"qtnMinimaInput\" tooltip=\"Informe a quantidade m\u00EDnima de caracteres que a senha deve ter.\">\n <app-field-error-message [control]=\"form.get('QtnMinima')\"></app-field-error-message>\n </div>\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"qtnRepeticaoInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe quantas senhas diferentes o usu\u00E1rio dever\u00E1 usar antes que possa repetir alguma j\u00E1 utilizada.\" />\n Repeti\u00E7\u00E3o\n </label>\n <input formControlName=\"QtnRepeticao\" type=\"number\" class=\"form-control form-input\" id=\"qtnRepeticaoInput\" tooltip=\"Informe quantas senhas diferentes o usu\u00E1rio dever\u00E1 usar antes que possa repetir alguma j\u00E1 utilizada.\">\n <app-field-error-message [control]=\"form.get('QtnRepeticao')\"></app-field-error-message>\n </div>\n \n <!-- <div class=\"container col row\">\n \n </div> -->\n </div>\n </div>\n\n <div class=\"border rounded p-3\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">Bloqueios:</h3>\n\n <div class=\"row\">\n <!-- <div class=\"col-2 form-check form-switch\">\n <label class=\"form-check-label\" for=\"isDropSessionCheck\"> Derrubar multiplas sess\u00F5es</label>\n <input class=\"form-check-input\" id=\"isDropSessionCheck\" formControlName=\"Is_DropSession\" type=\"checkbox\" role=\"switch\">\n </div> -->\n \n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"diasInatividadeInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe quantos dias um usu\u00E1rio poder\u00E1 ficar sem entrar no sistema, ao exceder este n\u00FAmero o usu\u00E1rio ser\u00E1 desativado perdendo o acesso ao sistema, e somente os Administradores poder\u00E3o ativ\u00E1-lo novamente.\" />\n Dias de Inatividade\n </label>\n <input id=\"diasInatividadeInput\" formControlName=\"QtnInatividade\" type=\"number\" class=\"form-control form-input\" tooltip=\"Informe quantos dias um usu\u00E1rio poder\u00E1 ficar sem entrar no sistema, ao exceder este n\u00FAmero o usu\u00E1rio ser\u00E1 desativado perdendo o acesso ao sistema, e somente os Administradores poder\u00E3o ativ\u00E1-lo novamente.\">\n <app-field-error-message [control]=\"form.get('QtnInatividade')\"></app-field-error-message>\n </div>\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"tentativasDeAcessoInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe a quantidade de tentativas consecutivas de acesso ao sistema sem sucesso antes de bloquear o usu\u00E1rio, exigindo que ele fa\u00E7a uma recupera\u00E7\u00E3o de senha.\" />\n Tentativas de acesso\n </label>\n <input id=\"tentativasDeAcessoInput\" formControlName=\"QtnTentativa\" type=\"number\" class=\"form-control form-input\" tooltip=\"Informe a quantidade de tentativas consecutivas de acesso ao sistema sem sucesso antes de bloquear o usu\u00E1rio, exigindo que ele fa\u00E7a uma recupera\u00E7\u00E3o de senha.\">\n <app-field-error-message [control]=\"form.get('QtnTentativa')\"></app-field-error-message>\n </div>\n\n <!-- <div class=\"container col-6 row\">\n\n </div> -->\n </div>\n </div>\n\n <!-- Palavras do Guilherme: \"oculteia eles\", \"um dia implementamos\" -->\n <!-- #region MARK: LINKS OCULTADOS -->\n <!-- <div class=\"card p-3 mt-3\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">Redefini\u00E7\u00E3o de senha:</h3>\n <a href=\"#\" class=\"link-primary\">Obrigar todos os usu\u00E1rios a trocarem sua senha no pr\u00F3ximo login</a>\n <a href=\"#\" class=\"link-primary\">Selecionar usu\u00E1rios para trocarem sua senha no pr\u00F3ximo login</a>\n </div> -->\n <!-- #endregion LINKS OCULTADOS -->\n\n\n <!-- <div class=\"border rounded\">\n <div class=\"card-body\">\n \n\n </div>\n </div> -->\n\n </form>\n </div>\n\n</lib-container>\n<!-- #endregion BODY -->\n\n<!-- #region SPINNER -->\n<ng-template #loading>\n <div class=\"w-100 text-center\">\n <!-- <div class=\"spinner-border\" style=\"width: 3rem; height: 3rem;\" role=\"status\"> <span class=\"visually-hidden\">Carregando...</span> </div> -->\n <lib-spinner />\n </div>\n</ng-template>\n\n<ng-template #loadingIsAtivo>\n <div class=\"spinner-border spinner-border-sm me-2\" role=\"status\"> <span class=\"visually-hidden\">Carregando...</span> </div>\n</ng-template>\n<!-- #endregion SPINNER -->\n" }]
|
|
8477
|
+
args: [{ selector: 'lib-config-senha', imports: [LibHeaderComponent, ContentContainerComponent, NgIf, FormsModule, ReactiveFormsModule, NgClass, LibIconsComponent, TooltipModule, RequiredDirective, FieldErrorMessageComponent, LibSpinnerComponent], providers: [TenantService], template: "<lib-header [breadcrumbList]=\"[ 'Infra', 'Configura\u00E7\u00E3o de Senha' ]\" pageTitle=\"Configura\u00E7\u00E3o de Senha\"\n mode=\"edit\" [hideButtons]=\"[ 'Cancelar' ]\" (create)=\"onSubmit()\" (update)=\"onSubmit()\" />\n\n\n<!-- #region BODY -->\n<lib-container>\n\n <div innerContent1>\n <form *ngIf=\"$infraSegConfigRecord; else loading\" [formGroup]=\"form\">\n\n <div class=\"d-flex justify-content-start align-items-center\">\n <div class=\"mb-3\">\n <h2 class=\"fs-5\">Atualmente seu n\u00EDvel de seguran\u00E7a \u00E9 \n <span class=\"rounded text-white p-1 px-2 fw-bold\"\n [ngClass]=\"{\n 'bg-danger': initialLevel === 1,\n 'bg-warning': initialLevel === 2,\n 'bg-success': initialLevel === 3,\n 'bg-primary': initialLevel === 4,\n }\" >\n\n @switch (initialLevel) {\n @case (1) { Baixo }\n @case (2) { M\u00E9dio }\n @case (3) { Alto }\n @case (4) { Personalizado }\n }\n\n <!-- <strong *ngIf=\"initialLevel === 1\"> Baixo </strong>\n <strong class=\"text-dark\" *ngIf=\"initialLevel === 2\"> M\u00E9dio </strong>\n <strong *ngIf=\"initialLevel === 3\"> Alto </strong>\n <strong *ngIf=\"initialLevel === 4\"> Personalizado </strong> -->\n </span>\n </h2>\n </div>\n </div>\n <div class=\"border rounded mb-4\">\n <div class=\"card-body\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">Selecione um n\u00EDvel de seguran\u00E7a abaixo:</h3>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option1\" autocomplete=\"off\" [value]=\"1\" (change)=\"onSelectLevel(Level)\" >\n <label [class.btn-outline-danger]=\"Level === 1\" [class.bg-danger]=\"Level === 1\" class=\"btn btn-secondary m-2\" for=\"option1\"><lib-icon iconName=\"cadeado-aberto-outline\"/> Baixo </label>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option2\" autocomplete=\"off\" [value]=\"2\" (change)=\"onSelectLevel(Level)\" >\n <label [class.bg-warning]=\"Level === 2\" [class.btn-outline-warning]=\"Level === 2\" class=\" btn btn-secondary text-light m-2\" for=\"option2\"><lib-icon iconName=\"cadeado-semiaberto-outline\"/> M\u00E9dio</label>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option3\" autocomplete=\"off\" [value]=\"3\" (change)=\"onSelectLevel(Level)\" >\n <label [class.btn-outline-success]=\"Level === 3\" [class.bg-success]=\"Level === 3\" class=\"btn btn-secondary m-2\" for=\"option3\"><lib-icon iconName=\"cadeado-outline\"/> Alto</label>\n\n <input formControlName=\"Level\" type=\"radio\" class=\"btn-check\" name=\"Level\" id=\"option4\" autocomplete=\"off\" [value]=\"4\" (change)=\"onSelectLevel(Level)\" >\n <label [class.btn-outline-primary]=\"Level === 4\" [class.bg-primary]=\"Level === 4\" class=\"btn btn-secondary m-2\" for=\"option4\"><lib-icon iconName=\"chave\"/> Personalizado</label>\n </div>\n </div>\n\n <div class=\"border rounded p-3 mb-4\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">A senha deve conter:</h3>\n\n <div class=\"row\">\n <div class=\"col-3\">\n <div class=\"form-check form-switch\">\n <label class=\"form-check-label\" for=\"numeros\"> N\u00FAmero </label>\n <input formControlName=\"Is_Numeros\" class=\"form-check-input\" type=\"checkbox\" role=\"switch\" id=\"numeros\">\n </div>\n <div class=\"form-check form-switch\">\n <label class=\"form-check-label\" for=\"letraMaiuscula\"> Letra Mai\u00FAscula </label>\n <input formControlName=\"Is_LetrasMaiusculas\" class=\"form-check-input\" type=\"checkbox\" role=\"switch\" id=\"letraMaiuscula\">\n </div>\n <div class=\"form-check form-switch\">\n <label class=\"form-check-label\" for=\"caracteresEspeciais\">Caractere especial</label>\n <input formControlName=\"Is_CaracteresEspeciais\" class=\"form-check-input\" type=\"checkbox\" role=\"switch\" id=\"caracteresEspeciais\">\n <lib-icon class=\"ms-1\" iconName=\"info\" iconColor=\"blue\" iconSize=\"small\" tooltip=\"Caracteres sugeridos: ! @ # $ % & * ( ) _ + = [ ] { } | ?\" />\n </div>\n </div>\n\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"qtnTrocaSenhaInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe a quantidade em dias que a senha ser\u00E1 v\u00E1lida, ap\u00F3s este per\u00EDodo a senha dever\u00E1 ser trocada pelo usu\u00E1rio.\" />\n Validade em dias\n </label>\n <input formControlName=\"QtnTrocaSenha\" type=\"number\" class=\"form-control form-input\" id=\"qtnTrocaSenhaInput\" tooltip=\"Informe a quantidade em dias que a senha ser\u00E1 v\u00E1lida, ap\u00F3s este per\u00EDodo a senha dever\u00E1 ser trocada pelo usu\u00E1rio.\" >\n <app-field-error-message [control]=\"form.get('QtnTrocaSenha')\"></app-field-error-message>\n </div>\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"qtnMinimaInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe a quantidade m\u00EDnima de caracteres que a senha deve ter.\" />\n Tamanho m\u00EDnimo\n </label>\n <input formControlName=\"QtnMinima\" type=\"number\" class=\"form-control form-input\" id=\"qtnMinimaInput\" tooltip=\"Informe a quantidade m\u00EDnima de caracteres que a senha deve ter.\">\n <app-field-error-message [control]=\"form.get('QtnMinima')\"></app-field-error-message>\n </div>\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"qtnRepeticaoInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe quantas senhas diferentes o usu\u00E1rio dever\u00E1 usar antes que possa repetir alguma j\u00E1 utilizada.\" />\n Repeti\u00E7\u00E3o\n </label>\n <input formControlName=\"QtnRepeticao\" type=\"number\" class=\"form-control form-input\" id=\"qtnRepeticaoInput\" tooltip=\"Informe quantas senhas diferentes o usu\u00E1rio dever\u00E1 usar antes que possa repetir alguma j\u00E1 utilizada.\">\n <app-field-error-message [control]=\"form.get('QtnRepeticao')\"></app-field-error-message>\n </div>\n \n <!-- <div class=\"container col row\">\n \n </div> -->\n </div>\n </div>\n\n <div class=\"border rounded p-3\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">Bloqueios:</h3>\n\n <div class=\"row\">\n <!-- <div class=\"col-2 form-check form-switch\">\n <label class=\"form-check-label\" for=\"isDropSessionCheck\"> Derrubar multiplas sess\u00F5es</label>\n <input class=\"form-check-input\" id=\"isDropSessionCheck\" formControlName=\"Is_DropSession\" type=\"checkbox\" role=\"switch\">\n </div> -->\n \n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"diasInatividadeInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe quantos dias um usu\u00E1rio poder\u00E1 ficar sem entrar no sistema, ao exceder este n\u00FAmero o usu\u00E1rio ser\u00E1 desativado perdendo o acesso ao sistema, e somente os Administradores poder\u00E3o ativ\u00E1-lo novamente.\" />\n Dias de Inatividade\n </label>\n <input id=\"diasInatividadeInput\" formControlName=\"QtnInatividade\" type=\"number\" class=\"form-control form-input\" tooltip=\"Informe quantos dias um usu\u00E1rio poder\u00E1 ficar sem entrar no sistema, ao exceder este n\u00FAmero o usu\u00E1rio ser\u00E1 desativado perdendo o acesso ao sistema, e somente os Administradores poder\u00E3o ativ\u00E1-lo novamente.\">\n <app-field-error-message [control]=\"form.get('QtnInatividade')\"></app-field-error-message>\n </div>\n <div class=\"col-3\">\n <label libRequired class=\"form-label form-control-sm\" for=\"tentativasDeAcessoInput\">\n <lib-icon iconName=\"info\" iconSize=\"small\" iconColor=\"blue\" tooltip=\"Informe a quantidade de tentativas consecutivas de acesso ao sistema sem sucesso antes de bloquear o usu\u00E1rio, exigindo que ele fa\u00E7a uma recupera\u00E7\u00E3o de senha.\" />\n Tentativas de acesso\n </label>\n <input id=\"tentativasDeAcessoInput\" formControlName=\"QtnTentativa\" type=\"number\" class=\"form-control form-input\" tooltip=\"Informe a quantidade de tentativas consecutivas de acesso ao sistema sem sucesso antes de bloquear o usu\u00E1rio, exigindo que ele fa\u00E7a uma recupera\u00E7\u00E3o de senha.\">\n <app-field-error-message [control]=\"form.get('QtnTentativa')\"></app-field-error-message>\n </div>\n\n <!-- <div class=\"container col-6 row\">\n\n </div> -->\n </div>\n </div>\n\n <!-- Palavras do Guilherme: \"oculteia eles\", \"um dia implementamos\" -->\n <!-- #region MARK: LINKS OCULTADOS -->\n <!-- <div class=\"card p-3 mt-3\">\n <h3 class=\"card-subtitle mb-2 text-muted fs-6\">Redefini\u00E7\u00E3o de senha:</h3>\n <a href=\"#\" class=\"link-primary\">Obrigar todos os usu\u00E1rios a trocarem sua senha no pr\u00F3ximo login</a>\n <a href=\"#\" class=\"link-primary\">Selecionar usu\u00E1rios para trocarem sua senha no pr\u00F3ximo login</a>\n </div> -->\n <!-- #endregion LINKS OCULTADOS -->\n\n\n <!-- <div class=\"border rounded\">\n <div class=\"card-body\">\n \n\n </div>\n </div> -->\n\n </form>\n </div>\n\n</lib-container>\n<!-- #endregion BODY -->\n\n<!-- #region SPINNER -->\n<ng-template #loading>\n <div class=\"w-100 text-center\">\n <!-- <div class=\"spinner-border\" style=\"width: 3rem; height: 3rem;\" role=\"status\"> <span class=\"visually-hidden\">Carregando...</span> </div> -->\n <lib-spinner />\n </div>\n</ng-template>\n\n<ng-template #loadingIsAtivo>\n <div class=\"spinner-border spinner-border-sm me-2\" role=\"status\"> <span class=\"visually-hidden\">Carregando...</span> </div>\n</ng-template>\n<!-- #endregion SPINNER -->\n" }]
|
|
8478
8478
|
}], ctorParameters: () => [{ type: ConfiguracaoSenhaService }, { type: MessageService }, { type: TenantService }, { type: i1$2.Title }] });
|
|
8479
8479
|
|
|
8480
8480
|
class CurrencyPipe {
|
|
@@ -11249,11 +11249,11 @@ class IpServiceService {
|
|
|
11249
11249
|
}
|
|
11250
11250
|
getIPAddress() {
|
|
11251
11251
|
return this._httpClient.get("https://api.ipify.org/?format=json")
|
|
11252
|
-
.pipe(take
|
|
11252
|
+
.pipe(take(1));
|
|
11253
11253
|
}
|
|
11254
11254
|
getDataUser() {
|
|
11255
11255
|
return this._httpClient.get("https://ipapi.co/json")
|
|
11256
|
-
.pipe(take
|
|
11256
|
+
.pipe(take(1));
|
|
11257
11257
|
}
|
|
11258
11258
|
getDataBrowserUser() {
|
|
11259
11259
|
const navigatorInfo = navigator;
|
|
@@ -11293,7 +11293,7 @@ class QueueService {
|
|
|
11293
11293
|
const headers = new HttpHeaders()
|
|
11294
11294
|
.set('Content-Type', 'application/json');
|
|
11295
11295
|
return this.httpClient.post(url, jobRequest, { headers: headers })
|
|
11296
|
-
.pipe(take(1), tap(response => {
|
|
11296
|
+
.pipe(take$1(1), tap(response => {
|
|
11297
11297
|
if (response.Error) {
|
|
11298
11298
|
throw Error(response.ErrorMessage);
|
|
11299
11299
|
}
|
|
@@ -11540,7 +11540,7 @@ class LogsApiService {
|
|
|
11540
11540
|
const url = `${this._BASE_URL}/Get`;
|
|
11541
11541
|
return this._httpClient
|
|
11542
11542
|
.get(url, { 'params': params, 'headers': headers })
|
|
11543
|
-
.pipe(take(1), tap(response => {
|
|
11543
|
+
.pipe(take$1(1), tap(response => {
|
|
11544
11544
|
if (response.Error) {
|
|
11545
11545
|
throw Error(response.ErrorMessage);
|
|
11546
11546
|
}
|
|
@@ -11554,7 +11554,7 @@ class LogsApiService {
|
|
|
11554
11554
|
const url = `${this._BASE_URL}/GetLogsList`;
|
|
11555
11555
|
return this._httpClient
|
|
11556
11556
|
.post(url, JSON.stringify(search), { 'headers': headers })
|
|
11557
|
-
.pipe(take(1), tap(response => {
|
|
11557
|
+
.pipe(take$1(1), tap(response => {
|
|
11558
11558
|
if (response.Error) {
|
|
11559
11559
|
throw Error(response.ErrorMessage);
|
|
11560
11560
|
}
|
|
@@ -11863,7 +11863,7 @@ class LogsDataAccessService {
|
|
|
11863
11863
|
const url = `${this._BASE_URL}/Get`;
|
|
11864
11864
|
return this._httpClient
|
|
11865
11865
|
.get(url, { 'params': params, 'headers': headers })
|
|
11866
|
-
.pipe(take(1), tap(response => {
|
|
11866
|
+
.pipe(take$1(1), tap(response => {
|
|
11867
11867
|
if (response.Error) {
|
|
11868
11868
|
throw Error(response.ErrorMessage);
|
|
11869
11869
|
}
|
|
@@ -11877,7 +11877,7 @@ class LogsDataAccessService {
|
|
|
11877
11877
|
const url = `${this._BASE_URL}/GetLogsList`;
|
|
11878
11878
|
return this._httpClient
|
|
11879
11879
|
.post(url, JSON.stringify(search), { 'headers': headers })
|
|
11880
|
-
.pipe(take(1), tap(response => {
|
|
11880
|
+
.pipe(take$1(1), tap(response => {
|
|
11881
11881
|
if (response.Error) {
|
|
11882
11882
|
throw Error(response.ErrorMessage);
|
|
11883
11883
|
}
|
|
@@ -12177,7 +12177,7 @@ class LogsEmailService {
|
|
|
12177
12177
|
const url = `${this._BASE_URL}/Get`;
|
|
12178
12178
|
return this._httpClient
|
|
12179
12179
|
.get(url, { 'params': params, 'headers': headers })
|
|
12180
|
-
.pipe(take(1), tap(response => {
|
|
12180
|
+
.pipe(take$1(1), tap(response => {
|
|
12181
12181
|
if (response.Error) {
|
|
12182
12182
|
throw Error(response.ErrorMessage);
|
|
12183
12183
|
}
|
|
@@ -12191,7 +12191,7 @@ class LogsEmailService {
|
|
|
12191
12191
|
const url = `${this._BASE_URL}/GetLogsList`;
|
|
12192
12192
|
return this._httpClient
|
|
12193
12193
|
.post(url, JSON.stringify(search), { 'headers': headers })
|
|
12194
|
-
.pipe(take(1), tap(response => {
|
|
12194
|
+
.pipe(take$1(1), tap(response => {
|
|
12195
12195
|
if (response.Error) {
|
|
12196
12196
|
throw Error(response.ErrorMessage);
|
|
12197
12197
|
}
|
|
@@ -12490,7 +12490,7 @@ class LogsGeralService {
|
|
|
12490
12490
|
const url = `${this._BASE_URL}/Get`;
|
|
12491
12491
|
return this._httpClient
|
|
12492
12492
|
.get(url, { 'params': params, 'headers': headers })
|
|
12493
|
-
.pipe(take(1), tap(response => {
|
|
12493
|
+
.pipe(take$1(1), tap(response => {
|
|
12494
12494
|
if (response.Error) {
|
|
12495
12495
|
throw Error(response.ErrorMessage);
|
|
12496
12496
|
}
|
|
@@ -12504,7 +12504,7 @@ class LogsGeralService {
|
|
|
12504
12504
|
const url = `${this._BASE_URL}/GetLogsList`;
|
|
12505
12505
|
return this._httpClient
|
|
12506
12506
|
.post(url, JSON.stringify(search), { 'headers': headers })
|
|
12507
|
-
.pipe(take(1), tap(response => {
|
|
12507
|
+
.pipe(take$1(1), tap(response => {
|
|
12508
12508
|
if (response.Error) {
|
|
12509
12509
|
throw Error(response.ErrorMessage);
|
|
12510
12510
|
}
|
|
@@ -12794,7 +12794,7 @@ class LogsReportService {
|
|
|
12794
12794
|
const url = `${this._BASE_URL}/Get`;
|
|
12795
12795
|
return this._httpClient
|
|
12796
12796
|
.get(url, { 'params': params, 'headers': headers })
|
|
12797
|
-
.pipe(take(1), tap(response => {
|
|
12797
|
+
.pipe(take$1(1), tap(response => {
|
|
12798
12798
|
if (response.Error) {
|
|
12799
12799
|
throw Error(response.ErrorMessage);
|
|
12800
12800
|
}
|
|
@@ -12808,7 +12808,7 @@ class LogsReportService {
|
|
|
12808
12808
|
const url = `${this._BASE_URL}/GetLogsList`;
|
|
12809
12809
|
return this._httpClient
|
|
12810
12810
|
.post(url, JSON.stringify(search), { 'headers': headers })
|
|
12811
|
-
.pipe(take(1), tap(response => {
|
|
12811
|
+
.pipe(take$1(1), tap(response => {
|
|
12812
12812
|
if (response.Error) {
|
|
12813
12813
|
throw Error(response.ErrorMessage);
|
|
12814
12814
|
}
|
|
@@ -13101,7 +13101,7 @@ class LogsTimerService {
|
|
|
13101
13101
|
const url = `${this._BASE_URL}/Get`;
|
|
13102
13102
|
return this._httpClient
|
|
13103
13103
|
.get(url, { 'params': params, 'headers': headers })
|
|
13104
|
-
.pipe(take(1), tap(response => {
|
|
13104
|
+
.pipe(take$1(1), tap(response => {
|
|
13105
13105
|
if (response.Error) {
|
|
13106
13106
|
throw Error(response.ErrorMessage);
|
|
13107
13107
|
}
|
|
@@ -13115,7 +13115,7 @@ class LogsTimerService {
|
|
|
13115
13115
|
const url = `${this._BASE_URL}/GetLogsList`;
|
|
13116
13116
|
return this._httpClient
|
|
13117
13117
|
.post(url, JSON.stringify(search), { 'headers': headers })
|
|
13118
|
-
.pipe(take(1), tap(response => {
|
|
13118
|
+
.pipe(take$1(1), tap(response => {
|
|
13119
13119
|
if (response.Error) {
|
|
13120
13120
|
throw Error(response.ErrorMessage);
|
|
13121
13121
|
}
|
|
@@ -13422,7 +13422,7 @@ class LogsWSService {
|
|
|
13422
13422
|
const url = `${this._BASE_URL}/Get`;
|
|
13423
13423
|
return this._httpClient
|
|
13424
13424
|
.get(url, { 'params': params, 'headers': headers })
|
|
13425
|
-
.pipe(take(1), tap(response => {
|
|
13425
|
+
.pipe(take$1(1), tap(response => {
|
|
13426
13426
|
if (response.Error) {
|
|
13427
13427
|
throw Error(response.ErrorMessage);
|
|
13428
13428
|
}
|
|
@@ -13436,7 +13436,7 @@ class LogsWSService {
|
|
|
13436
13436
|
const url = `${this._BASE_URL}/GetLogsList`;
|
|
13437
13437
|
return this._httpClient
|
|
13438
13438
|
.post(url, JSON.stringify(search), { 'headers': headers })
|
|
13439
|
-
.pipe(take(1), tap(response => {
|
|
13439
|
+
.pipe(take$1(1), tap(response => {
|
|
13440
13440
|
if (response.Error) {
|
|
13441
13441
|
throw Error(response.ErrorMessage);
|
|
13442
13442
|
}
|