visorus-erp-core 17.0.1 → 17.1.0
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/esm2022/lib/components/login-modal/login-modal.component.mjs +55 -54
- package/esm2022/lib/components/login-modal/login-modal.service.mjs +1 -1
- package/esm2022/lib/services/auth.service.mjs +22 -1
- package/fesm2022/visorus-erp-core.mjs +85 -63
- package/fesm2022/visorus-erp-core.mjs.map +1 -1
- package/lib/globalPrimeNg.d.ts +2 -2
- package/lib/services/auth.service.d.ts +1 -0
- package/package.json +1 -1
|
@@ -194,7 +194,7 @@ class CuentaContableService extends CrudService {
|
|
|
194
194
|
}]
|
|
195
195
|
}], () => [{ type: i1.HttpClient }], null); })();
|
|
196
196
|
|
|
197
|
-
const _c0$
|
|
197
|
+
const _c0$8 = () => ({ width: "100%" });
|
|
198
198
|
function CclistaComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
199
199
|
i0.ɵɵelementStart(0, "tr")(1, "th", 5);
|
|
200
200
|
i0.ɵɵtext(2, "Cuenta contable");
|
|
@@ -430,7 +430,7 @@ class CclistaComponent {
|
|
|
430
430
|
} if (rf & 2) {
|
|
431
431
|
i0.ɵɵtwoWayProperty("ngModel", ctx.query);
|
|
432
432
|
i0.ɵɵadvance(2);
|
|
433
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(7, _c0$
|
|
433
|
+
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(7, _c0$8));
|
|
434
434
|
i0.ɵɵproperty("value", ctx.cuentasContables ? ctx.cuentasContables : ctx.tempAccounts)("scrollable", true)("scrollHeight", ctx.maxH + "px")("resizableColumns", true);
|
|
435
435
|
} }, dependencies: [i4.NgIf, i3.PrimeTemplate, i19.TreeTable, i19.TreeTableToggler, i21.ButtonDirective, i22.InputText, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgModel] }); }
|
|
436
436
|
}
|
|
@@ -446,8 +446,8 @@ class CclistaComponent {
|
|
|
446
446
|
}] }); })();
|
|
447
447
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(CclistaComponent, { className: "CclistaComponent" }); })();
|
|
448
448
|
|
|
449
|
-
const _c0$
|
|
450
|
-
const _c1$
|
|
449
|
+
const _c0$7 = ["dialog"];
|
|
450
|
+
const _c1$4 = a0 => ({ "width": a0, "min-width": "200px" });
|
|
451
451
|
const _c2 = a0 => ({ "height": a0 });
|
|
452
452
|
class CcseleccionDialogComponent {
|
|
453
453
|
constructor() {
|
|
@@ -471,7 +471,7 @@ class CcseleccionDialogComponent {
|
|
|
471
471
|
}
|
|
472
472
|
/** @nocollapse */ static { this.ɵfac = function CcseleccionDialogComponent_Factory(t) { return new (t || CcseleccionDialogComponent)(); }; }
|
|
473
473
|
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: CcseleccionDialogComponent, selectors: [["lib-ccseleccion-dialog"]], viewQuery: function CcseleccionDialogComponent_Query(rf, ctx) { if (rf & 1) {
|
|
474
|
-
i0.ɵɵviewQuery(_c0$
|
|
474
|
+
i0.ɵɵviewQuery(_c0$7, 7);
|
|
475
475
|
} if (rf & 2) {
|
|
476
476
|
let _t;
|
|
477
477
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dialog = _t.first);
|
|
@@ -483,7 +483,7 @@ class CcseleccionDialogComponent {
|
|
|
483
483
|
i0.ɵɵlistener("evSelectedAccount", function CcseleccionDialogComponent_Template_lib_cclista_evSelectedAccount_2_listener($event) { return ctx.getAccount($event); });
|
|
484
484
|
i0.ɵɵelementEnd()()();
|
|
485
485
|
} if (rf & 2) {
|
|
486
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(13, _c1$
|
|
486
|
+
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(13, _c1$4, ctx.size + "px"));
|
|
487
487
|
i0.ɵɵtwoWayProperty("visible", ctx.displayShowCuentas);
|
|
488
488
|
i0.ɵɵproperty("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("draggable", false)("blockScroll", true)("maximizable", true);
|
|
489
489
|
i0.ɵɵadvance();
|
|
@@ -858,8 +858,8 @@ class FileService {
|
|
|
858
858
|
}]
|
|
859
859
|
}], () => [{ type: i1$1.ToastrService }, { type: i3$1.TranslateService }], null); })();
|
|
860
860
|
|
|
861
|
-
const _c0$
|
|
862
|
-
const _c1$
|
|
861
|
+
const _c0$6 = a0 => ({ "width": a0, "min-width": "200px" });
|
|
862
|
+
const _c1$3 = () => ({ "overflow": "visible" });
|
|
863
863
|
function PdfModalComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
864
864
|
i0.ɵɵelementStart(0, "div", 2);
|
|
865
865
|
i0.ɵɵelement(1, "iframe", 3);
|
|
@@ -939,9 +939,9 @@ class PdfModalComponent {
|
|
|
939
939
|
i0.ɵɵtemplate(1, PdfModalComponent_div_1_Template, 2, 1, "div", 1);
|
|
940
940
|
i0.ɵɵelementEnd();
|
|
941
941
|
} if (rf & 2) {
|
|
942
|
-
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(12, _c0$
|
|
942
|
+
i0.ɵɵstyleMap(i0.ɵɵpureFunction1(12, _c0$6, ctx.size + "px"));
|
|
943
943
|
i0.ɵɵtwoWayProperty("visible", ctx.display);
|
|
944
|
-
i0.ɵɵproperty("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("blockScroll", true)("maximizable", true)("breakpoint", 840)("contentStyle", i0.ɵɵpureFunction0(14, _c1$
|
|
944
|
+
i0.ɵɵproperty("modal", true)("minY", 70)("baseZIndex", 10000)("blockScroll", true)("blockScroll", true)("maximizable", true)("breakpoint", 840)("contentStyle", i0.ɵɵpureFunction0(14, _c1$3));
|
|
945
945
|
i0.ɵɵadvance();
|
|
946
946
|
i0.ɵɵproperty("ngIf", ctx.pdfBase64);
|
|
947
947
|
} }, dependencies: [i4.NgIf, i33.Dialog], styles: [".down[_ngcontent-%COMP%]{display:block}"] }); }
|
|
@@ -1141,6 +1141,27 @@ class AuthService {
|
|
|
1141
1141
|
this.url_host = config.url;
|
|
1142
1142
|
return this.httpClient.get(this.url_host + '/usuario/obtieneUsuarioActual', httpOptions);
|
|
1143
1143
|
}
|
|
1144
|
+
obtieneUsuarioConfiguracion() {
|
|
1145
|
+
let usuario;
|
|
1146
|
+
let token_type = '';
|
|
1147
|
+
let access_token = '';
|
|
1148
|
+
usuario = JSON.parse(localStorage.getItem("usuario"));
|
|
1149
|
+
if (usuario) {
|
|
1150
|
+
token_type = usuario.token_type,
|
|
1151
|
+
access_token = usuario.access_token;
|
|
1152
|
+
}
|
|
1153
|
+
let httpOptions = {
|
|
1154
|
+
headers: new HttpHeaders({
|
|
1155
|
+
'Accept-type': 'application/json',
|
|
1156
|
+
'Authorization': token_type + ' ' + access_token
|
|
1157
|
+
})
|
|
1158
|
+
};
|
|
1159
|
+
let config = JSON.parse(localStorage.getItem("config"));
|
|
1160
|
+
if (config)
|
|
1161
|
+
if (config.url)
|
|
1162
|
+
this.url_host = config.url;
|
|
1163
|
+
return this.httpClient.get(this.url_host + '/usuario/obtieneUsuarioConfiguracion', httpOptions);
|
|
1164
|
+
}
|
|
1144
1165
|
/** @nocollapse */ static { this.ɵfac = function AuthService_Factory(t) { return new (t || AuthService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
1145
1166
|
/** @nocollapse */ static { this.ɵprov = /** @pureOrBreakMyCode */ i0.ɵɵdefineInjectable({ token: AuthService, factory: AuthService.ɵfac, providedIn: 'root' }); }
|
|
1146
1167
|
}
|
|
@@ -1155,70 +1176,61 @@ class AuthService {
|
|
|
1155
1176
|
type: Output
|
|
1156
1177
|
}] }); })();
|
|
1157
1178
|
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
i0.ɵɵ
|
|
1179
|
+
const _c0$5 = () => ({ width: "50vw" });
|
|
1180
|
+
const _c1$2 = () => ({ "960px": "75vw", "640px": "90vw" });
|
|
1181
|
+
function LoginModalComponent_div_3_label_4_Template(rf, ctx) { if (rf & 1) {
|
|
1182
|
+
i0.ɵɵelementStart(0, "label", 16);
|
|
1183
|
+
i0.ɵɵtext(1, "Usuario o contrase\u00F1a incorrectos");
|
|
1162
1184
|
i0.ɵɵelementEnd();
|
|
1163
|
-
} if (rf & 2) {
|
|
1164
|
-
i0.ɵɵadvance();
|
|
1165
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 1, "Usuario.errorLogin"));
|
|
1166
1185
|
} }
|
|
1167
|
-
function
|
|
1186
|
+
function LoginModalComponent_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
1168
1187
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
1169
|
-
i0.ɵɵelementStart(0, "div",
|
|
1170
|
-
i0.ɵɵlistener("ngSubmit", function
|
|
1171
|
-
i0.ɵɵtemplate(4,
|
|
1172
|
-
i0.ɵɵelementStart(5, "div",
|
|
1173
|
-
i0.ɵɵtext(7);
|
|
1174
|
-
i0.ɵɵ
|
|
1175
|
-
i0.ɵɵ
|
|
1176
|
-
i0.ɵɵ
|
|
1177
|
-
i0.ɵɵpipe(11, "translate");
|
|
1178
|
-
i0.ɵɵtwoWayListener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_9_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.user.username, $event) || (ctx_r2.user.username = $event); return i0.ɵɵresetView($event); });
|
|
1188
|
+
i0.ɵɵelementStart(0, "div", 6)(1, "div", 7)(2, "form", 8, 0);
|
|
1189
|
+
i0.ɵɵlistener("ngSubmit", function LoginModalComponent_div_3_Template_form_ngSubmit_2_listener() { i0.ɵɵrestoreView(_r1); const datoForm_r2 = i0.ɵɵreference(3); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.entrar(datoForm_r2)); });
|
|
1190
|
+
i0.ɵɵtemplate(4, LoginModalComponent_div_3_label_4_Template, 2, 0, "label", 9);
|
|
1191
|
+
i0.ɵɵelementStart(5, "div", 10)(6, "label", 11);
|
|
1192
|
+
i0.ɵɵtext(7, "Usuario");
|
|
1193
|
+
i0.ɵɵelementEnd();
|
|
1194
|
+
i0.ɵɵelementStart(8, "input", 12, 1);
|
|
1195
|
+
i0.ɵɵtwoWayListener("ngModelChange", function LoginModalComponent_div_3_Template_input_ngModelChange_8_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.user.username, $event) || (ctx_r2.user.username = $event); return i0.ɵɵresetView($event); });
|
|
1179
1196
|
i0.ɵɵelementEnd()();
|
|
1180
|
-
i0.ɵɵelementStart(
|
|
1181
|
-
i0.ɵɵtext(
|
|
1182
|
-
i0.ɵɵpipe(15, "translate");
|
|
1197
|
+
i0.ɵɵelementStart(10, "div", 10)(11, "label", 13);
|
|
1198
|
+
i0.ɵɵtext(12, "Contrase\u00F1a");
|
|
1183
1199
|
i0.ɵɵelementEnd();
|
|
1184
|
-
i0.ɵɵelementStart(
|
|
1185
|
-
i0.ɵɵ
|
|
1186
|
-
i0.ɵɵtwoWayListener("ngModelChange", function LoginModalComponent_div_6_Template_input_ngModelChange_16_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.user.password, $event) || (ctx_r2.user.password = $event); return i0.ɵɵresetView($event); });
|
|
1200
|
+
i0.ɵɵelementStart(13, "input", 14);
|
|
1201
|
+
i0.ɵɵtwoWayListener("ngModelChange", function LoginModalComponent_div_3_Template_input_ngModelChange_13_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r2 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r2.user.password, $event) || (ctx_r2.user.password = $event); return i0.ɵɵresetView($event); });
|
|
1187
1202
|
i0.ɵɵelementEnd()();
|
|
1188
|
-
i0.ɵɵelementStart(
|
|
1189
|
-
i0.ɵɵtext(
|
|
1203
|
+
i0.ɵɵelementStart(14, "button", 15);
|
|
1204
|
+
i0.ɵɵtext(15, "Entrar");
|
|
1190
1205
|
i0.ɵɵelementEnd()()()();
|
|
1191
1206
|
} if (rf & 2) {
|
|
1192
1207
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
1193
1208
|
i0.ɵɵadvance(4);
|
|
1194
1209
|
i0.ɵɵproperty("ngIf", ctx_r2.error);
|
|
1195
|
-
i0.ɵɵadvance(
|
|
1196
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(8, 7, "Usuario.username"));
|
|
1197
|
-
i0.ɵɵadvance(2);
|
|
1198
|
-
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(11, 9, "Usuario.username"));
|
|
1210
|
+
i0.ɵɵadvance(4);
|
|
1199
1211
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.user.username);
|
|
1200
1212
|
i0.ɵɵadvance(5);
|
|
1201
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(15, 11, "Usuario.password"));
|
|
1202
|
-
i0.ɵɵadvance(2);
|
|
1203
|
-
i0.ɵɵpropertyInterpolate("placeholder", i0.ɵɵpipeBind1(17, 13, "Usuario.password"));
|
|
1204
1213
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r2.user.password);
|
|
1205
1214
|
} }
|
|
1206
|
-
function
|
|
1207
|
-
|
|
1215
|
+
function LoginModalComponent_div_4_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
1216
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
1217
|
+
i0.ɵɵelementStart(0, "div", 19);
|
|
1218
|
+
i0.ɵɵlistener("click", function LoginModalComponent_div_4_div_5_Template_div_click_0_listener() { const empresa_r5 = i0.ɵɵrestoreView(_r4).$implicit; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.entrarEmpresa(empresa_r5)); });
|
|
1219
|
+
i0.ɵɵelementStart(1, "div", 20)(2, "div", 21)(3, "h5");
|
|
1208
1220
|
i0.ɵɵtext(4);
|
|
1209
1221
|
i0.ɵɵelementEnd()()()();
|
|
1210
1222
|
} if (rf & 2) {
|
|
1211
|
-
const
|
|
1223
|
+
const empresa_r5 = ctx.$implicit;
|
|
1212
1224
|
i0.ɵɵadvance(4);
|
|
1213
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
1225
|
+
i0.ɵɵtextInterpolate1(" ", empresa_r5.nombre, " ");
|
|
1214
1226
|
} }
|
|
1215
|
-
function
|
|
1216
|
-
i0.ɵɵelementStart(0, "div",
|
|
1227
|
+
function LoginModalComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
1228
|
+
i0.ɵɵelementStart(0, "div", 6)(1, "div", 17)(2, "h4");
|
|
1217
1229
|
i0.ɵɵtext(3, "Selecciona la empresa");
|
|
1218
1230
|
i0.ɵɵelementEnd();
|
|
1219
1231
|
i0.ɵɵelement(4, "hr");
|
|
1220
1232
|
i0.ɵɵelementEnd();
|
|
1221
|
-
i0.ɵɵtemplate(5,
|
|
1233
|
+
i0.ɵɵtemplate(5, LoginModalComponent_div_4_div_5_Template, 5, 1, "div", 18);
|
|
1222
1234
|
i0.ɵɵelementEnd();
|
|
1223
1235
|
} if (rf & 2) {
|
|
1224
1236
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -1234,9 +1246,14 @@ class LoginModalComponent {
|
|
|
1234
1246
|
this.error = false;
|
|
1235
1247
|
this.empresas = [];
|
|
1236
1248
|
this.loginModalService.modal.subscribe(resp => {
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1249
|
+
if (resp) {
|
|
1250
|
+
this.modal = true;
|
|
1251
|
+
this.user = { username: undefined, password: undefined };
|
|
1252
|
+
this.empresas = [];
|
|
1253
|
+
}
|
|
1254
|
+
else {
|
|
1255
|
+
this.modal = false;
|
|
1256
|
+
}
|
|
1240
1257
|
});
|
|
1241
1258
|
}
|
|
1242
1259
|
entrar(form) {
|
|
@@ -1266,7 +1283,7 @@ class LoginModalComponent {
|
|
|
1266
1283
|
auth.usuarioDetalles = resp;
|
|
1267
1284
|
this.authService.startAuth(auth);
|
|
1268
1285
|
this.error = false;
|
|
1269
|
-
|
|
1286
|
+
this.modal = false;
|
|
1270
1287
|
});
|
|
1271
1288
|
}, (_error) => {
|
|
1272
1289
|
this.error = true;
|
|
@@ -1275,26 +1292,31 @@ class LoginModalComponent {
|
|
|
1275
1292
|
}
|
|
1276
1293
|
entrarEmpresa(_empresa) {
|
|
1277
1294
|
this.authService.setEmpresa(_empresa).subscribe((resp) => {
|
|
1278
|
-
|
|
1295
|
+
this.modal = false;
|
|
1279
1296
|
});
|
|
1280
1297
|
}
|
|
1281
1298
|
/** @nocollapse */ static { this.ɵfac = function LoginModalComponent_Factory(t) { return new (t || LoginModalComponent)(i0.ɵɵdirectiveInject(LoginModalService), i0.ɵɵdirectiveInject(AuthService)); }; }
|
|
1282
|
-
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: LoginModalComponent, selectors: [["app-login-modal"]], decls:
|
|
1283
|
-
i0.ɵɵelementStart(0, "
|
|
1284
|
-
i0.ɵɵ
|
|
1299
|
+
/** @nocollapse */ static { this.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: LoginModalComponent, selectors: [["app-login-modal"]], decls: 5, vars: 10, consts: [["datoForm", "ngForm"], ["username", "ngModel"], [3, "visibleChange", "visible", "modal", "closable", "breakpoints"], [1, "row", "justify-content-center"], ["src", "assets/img/logo_visorus_loading.png", "alt", ""], ["class", "row", 4, "ngIf"], [1, "row"], [1, "col-lg-12", "col-md-12", "col-sm-12"], [3, "ngSubmit"], ["class", "error", 4, "ngIf"], [1, "form-group", "mb-3"], ["for", "exampleInputEmail1"], ["type", "text", "id", "exampleInputEmail1", "aria-describedby", "emailHelp", "placeholder", "Usuario", "name", "username", "required", "", 1, "form-control", 3, "ngModelChange", "ngModel"], ["for", "exampleInputPassword1"], ["type", "password", "id", "exampleInputPassword1", "placeholder", "Contrase\u00F1a", "name", "password", "required", "", 1, "form-control", 3, "ngModelChange", "ngModel"], ["type", "submit", 1, "btn", "btn-primary_low", "btn-lg", "btn-block", "my-5", "text-light"], [1, "error"], [1, "col-xl-12", "col-lg-12", "col-sm-12"], ["class", "col-xl-6 col-lg-6 col-sm-12 mb-2", "style", "cursor: pointer", 3, "click", 4, "ngFor", "ngForOf"], [1, "col-xl-6", "col-lg-6", "col-sm-12", "mb-2", 2, "cursor", "pointer", 3, "click"], [1, "card"], [1, "card-body"]], template: function LoginModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1300
|
+
i0.ɵɵelementStart(0, "p-dialog", 2);
|
|
1301
|
+
i0.ɵɵtwoWayListener("visibleChange", function LoginModalComponent_Template_p_dialog_visibleChange_0_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.modal, $event) || (ctx.modal = $event); return $event; });
|
|
1302
|
+
i0.ɵɵelementStart(1, "div", 3);
|
|
1303
|
+
i0.ɵɵelement(2, "img", 4);
|
|
1304
|
+
i0.ɵɵelementEnd();
|
|
1305
|
+
i0.ɵɵtemplate(3, LoginModalComponent_div_3_Template, 16, 3, "div", 5)(4, LoginModalComponent_div_4_Template, 6, 1, "div", 5);
|
|
1285
1306
|
i0.ɵɵelementEnd();
|
|
1286
|
-
i0.ɵɵtemplate(6, LoginModalComponent_div_6_Template, 20, 15, "div", 8)(7, LoginModalComponent_div_7_Template, 6, 1, "div", 8);
|
|
1287
|
-
i0.ɵɵelementEnd()()()();
|
|
1288
1307
|
} if (rf & 2) {
|
|
1289
|
-
i0.ɵɵ
|
|
1308
|
+
i0.ɵɵstyleMap(i0.ɵɵpureFunction0(8, _c0$5));
|
|
1309
|
+
i0.ɵɵtwoWayProperty("visible", ctx.modal);
|
|
1310
|
+
i0.ɵɵproperty("modal", true)("closable", false)("breakpoints", i0.ɵɵpureFunction0(9, _c1$2));
|
|
1311
|
+
i0.ɵɵadvance(3);
|
|
1290
1312
|
i0.ɵɵproperty("ngIf", ctx.empresas.length == 0);
|
|
1291
1313
|
i0.ɵɵadvance();
|
|
1292
1314
|
i0.ɵɵproperty("ngIf", ctx.empresas.length);
|
|
1293
|
-
} }, dependencies: [i4.NgForOf, i4.NgIf, i10.ɵNgNoValidate, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgControlStatusGroup, i10.RequiredValidator, i10.NgModel, i10.NgForm,
|
|
1315
|
+
} }, dependencies: [i4.NgForOf, i4.NgIf, i10.ɵNgNoValidate, i10.DefaultValueAccessor, i10.NgControlStatus, i10.NgControlStatusGroup, i10.RequiredValidator, i10.NgModel, i10.NgForm, i33.Dialog], styles: ["[_nghost-%COMP%] .p-dialog{z-index:2050!important}.btn-primary_low[_ngcontent-%COMP%]{background:#133659!important}.ng-valid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.ng-invalid[_ngcontent-%COMP%]:not(form){border-left:1px solid #ced4da!important}.card[_ngcontent-%COMP%]{background:#26baed;color:#fff}.card-body[_ngcontent-%COMP%]{padding:10px}"] }); }
|
|
1294
1316
|
}
|
|
1295
1317
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoginModalComponent, [{
|
|
1296
1318
|
type: Component,
|
|
1297
|
-
args: [{ selector: 'app-login-modal', template: "<
|
|
1319
|
+
args: [{ selector: 'app-login-modal', template: "<p-dialog [(visible)]=\"modal\" [modal]=\"true\" [closable]=\"false\" [style]=\"{width: '50vw'}\"\n [breakpoints]=\"{'960px': '75vw', '640px': '90vw'}\">\n <div class=\"row justify-content-center\">\n <img src=\"assets/img/logo_visorus_loading.png\" alt=\"\">\n </div>\n <div class=\"row\" *ngIf=\"empresas.length == 0\">\n <div class=\"col-lg-12 col-md-12 col-sm-12\">\n <form #datoForm=\"ngForm\" (ngSubmit)=\"entrar(datoForm)\">\n <label class=\"error\" *ngIf=\"error\">Usuario o contrase\u00F1a incorrectos</label>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputEmail1\">Usuario</label>\n <input type=\"text\" class=\"form-control\" id=\"exampleInputEmail1\" aria-describedby=\"emailHelp\"\n #username=\"ngModel\" placeholder=\"Usuario\" name=\"username\" [(ngModel)]=\"user.username\" required>\n </div>\n <div class=\"form-group mb-3\">\n <label for=\"exampleInputPassword1\">Contrase\u00F1a</label>\n <input type=\"password\" class=\"form-control\" id=\"exampleInputPassword1\" placeholder=\"Contrase\u00F1a\"\n name=\"password\" [(ngModel)]=\"user.password\" required>\n </div>\n\n <button type=\"submit\" class=\"btn btn-primary_low btn-lg btn-block my-5 text-light\">Entrar</button>\n </form>\n </div>\n </div>\n <div class=\"row\" *ngIf=\"empresas.length\">\n <div class=\"col-xl-12 col-lg-12 col-sm-12\">\n <h4>Selecciona la empresa</h4>\n <hr>\n </div>\n <div class=\"col-xl-6 col-lg-6 col-sm-12 mb-2\" *ngFor=\"let empresa of empresas\" style=\"cursor: pointer\"\n (click)=\"entrarEmpresa(empresa)\">\n <div class=\"card\">\n <div class=\"card-body\">\n <h5>\n {{empresa.nombre}}\n </h5>\n </div>\n </div>\n </div>\n </div>\n</p-dialog>", styles: [":host ::ng-deep .p-dialog{z-index:2050!important}.btn-primary_low{background:#133659!important}.ng-valid:not(form){border-left:1px solid #ced4da!important}.ng-invalid:not(form){border-left:1px solid #ced4da!important}.card{background:#26baed;color:#fff}.card-body{padding:10px}\n"] }]
|
|
1298
1320
|
}], () => [{ type: LoginModalService }, { type: AuthService }], null); })();
|
|
1299
1321
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(LoginModalComponent, { className: "LoginModalComponent" }); })();
|
|
1300
1322
|
|