auth-monitorias-uniandes 0.1.2-beta.6 → 0.1.2-beta.61
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/lib/{build/app.component.d.ts → app.component.d.ts} +4 -1
- package/lib/{build/app.component.js → app.component.js} +10 -2
- package/lib/app.component.js.map +1 -0
- package/lib/{build/app.component.metadata.json → app.component.metadata.json} +1 -1
- package/lib/{build/app.module.js → app.module.js} +14 -10
- package/lib/app.module.js.map +1 -0
- package/lib/app.module.metadata.json +1 -0
- package/lib/auth-monitorias/auth-monitorias.module.d.ts +5 -0
- package/lib/{build/auth-monitorias → auth-monitorias}/auth-monitorias.module.js +17 -3
- package/lib/auth-monitorias/auth-monitorias.module.js.map +1 -0
- package/lib/auth-monitorias/auth-monitorias.module.metadata.json +1 -0
- package/lib/auth-monitorias/common/SearchPersonParams.model.d.ts +11 -0
- package/lib/auth-monitorias/common/SearchPersonParams.model.js +9 -0
- package/lib/auth-monitorias/common/SearchPersonParams.model.js.map +1 -0
- package/lib/auth-monitorias/common/SearchPersonParams.model.metadata.json +1 -0
- package/lib/auth-monitorias/common/constants.js.map +1 -0
- package/lib/auth-monitorias/common/currentUser.model.js.map +1 -0
- package/lib/auth-monitorias/common/enviromentOptions.d.ts +7 -0
- package/lib/auth-monitorias/common/enviromentOptions.js +9 -0
- package/lib/auth-monitorias/common/enviromentOptions.js.map +1 -0
- package/lib/auth-monitorias/common/enviromentOptions.metadata.json +1 -0
- package/lib/auth-monitorias/common/login.model.js.map +1 -0
- package/lib/auth-monitorias/common/mock.js.map +1 -0
- package/lib/auth-monitorias/common/person.model.d.ts +13 -0
- package/lib/auth-monitorias/common/person.model.js +9 -0
- package/lib/auth-monitorias/common/person.model.js.map +1 -0
- package/lib/auth-monitorias/common/person.model.metadata.json +1 -0
- package/lib/auth-monitorias/common/roles-type.enum.js.map +1 -0
- package/lib/auth-monitorias/common/safe.pipe.js.map +1 -0
- package/lib/auth-monitorias/directives/hide-for-roles.directive.js.map +1 -0
- package/lib/auth-monitorias/directives/read-only-for-roles.directive.js.map +1 -0
- package/lib/auth-monitorias/directives/show-for-roles.directive.js.map +1 -0
- package/lib/{build/auth-monitorias → auth-monitorias}/index.d.ts +1 -1
- package/lib/{build/auth-monitorias → auth-monitorias}/index.js +1 -1
- package/lib/auth-monitorias/index.js.map +1 -0
- package/lib/{build/auth-monitorias → auth-monitorias}/index.metadata.json +1 -1
- package/lib/auth-monitorias/interceptors/auth.interceptor.d.ts +8 -0
- package/lib/auth-monitorias/interceptors/auth.interceptor.js +26 -0
- package/lib/auth-monitorias/interceptors/auth.interceptor.js.map +1 -0
- package/lib/auth-monitorias/interceptors/auth.interceptor.metadata.json +1 -0
- package/lib/{build/auth-monitorias → auth-monitorias}/services/auth-guard.service.js +3 -1
- package/lib/auth-monitorias/services/auth-guard.service.js.map +1 -0
- package/lib/auth-monitorias/services/auth-guard.service.metadata.json +1 -0
- package/lib/auth-monitorias/services/auth-locator.service.d.ts +13 -0
- package/lib/auth-monitorias/services/auth-locator.service.js +60 -0
- package/lib/auth-monitorias/services/auth-locator.service.js.map +1 -0
- package/lib/auth-monitorias/services/auth-locator.service.metadata.json +1 -0
- package/lib/auth-monitorias/services/auth-resolver.service.js.map +1 -0
- package/lib/{build/auth-monitorias → auth-monitorias}/services/auth.service.d.ts +30 -2
- package/lib/{build/auth-monitorias → auth-monitorias}/services/auth.service.js +103 -8
- package/lib/auth-monitorias/services/auth.service.js.map +1 -0
- package/lib/auth-monitorias/services/auth.service.metadata.json +1 -0
- package/lib/constants.d.ts +2 -0
- package/lib/{build/constants.js → constants.js} +1 -0
- package/lib/constants.js.map +1 -0
- package/lib/{build/constants.metadata.json → constants.metadata.json} +1 -1
- package/lib/encryption/encryption.module.d.ts +2 -0
- package/lib/encryption/encryption.module.js +18 -0
- package/lib/encryption/encryption.module.js.map +1 -0
- package/lib/encryption/encryption.module.metadata.json +1 -0
- package/lib/encryption/index.d.ts +3 -0
- package/lib/encryption/index.js +9 -0
- package/lib/encryption/index.js.map +1 -0
- package/lib/encryption/index.metadata.json +1 -0
- package/lib/encryption/interceptors/encryption.interceptor.d.ts +12 -0
- package/lib/encryption/interceptors/encryption.interceptor.js +109 -0
- package/lib/encryption/interceptors/encryption.interceptor.js.map +1 -0
- package/lib/encryption/interceptors/encryption.interceptor.metadata.json +1 -0
- package/lib/encryption/rsa-public-key.d.ts +2 -0
- package/lib/encryption/rsa-public-key.js +5 -0
- package/lib/encryption/rsa-public-key.js.map +1 -0
- package/lib/encryption/rsa-public-key.metadata.json +1 -0
- package/lib/encryption/services/encryption.service.d.ts +13 -0
- package/lib/encryption/services/encryption.service.js +211 -0
- package/lib/encryption/services/encryption.service.js.map +1 -0
- package/lib/encryption/services/encryption.service.metadata.json +1 -0
- package/lib/index.d.ts +3 -0
- package/lib/{build/index.js → index.js} +2 -0
- package/lib/index.js.map +1 -0
- package/lib/index.metadata.json +1 -0
- package/lib/session-models-monitorias/index.d.ts +4 -0
- package/lib/session-models-monitorias/index.js +10 -0
- package/lib/session-models-monitorias/index.js.map +1 -0
- package/lib/session-models-monitorias/index.metadata.json +1 -0
- package/lib/session-models-monitorias/models/dependency.model.d.ts +10 -0
- package/lib/session-models-monitorias/models/dependency.model.js +9 -0
- package/lib/session-models-monitorias/models/dependency.model.js.map +1 -0
- package/lib/session-models-monitorias/models/dependency.model.metadata.json +1 -0
- package/lib/session-models-monitorias/models/program.model.d.ts +10 -0
- package/lib/session-models-monitorias/models/program.model.js +10 -0
- package/lib/session-models-monitorias/models/program.model.js.map +1 -0
- package/lib/session-models-monitorias/models/program.model.metadata.json +1 -0
- package/lib/session-models-monitorias/services/session-program-monitoria.service.d.ts +46 -0
- package/lib/session-models-monitorias/services/session-program-monitoria.service.js +161 -0
- package/lib/session-models-monitorias/services/session-program-monitoria.service.js.map +1 -0
- package/lib/session-models-monitorias/services/session-program-monitoria.service.metadata.json +1 -0
- package/lib/session-models-monitorias/session-models-monitorias.module.d.ts +2 -0
- package/lib/session-models-monitorias/session-models-monitorias.module.js +22 -0
- package/lib/session-models-monitorias/session-models-monitorias.module.js.map +1 -0
- package/lib/session-models-monitorias/session-models-monitorias.module.metadata.json +1 -0
- package/package.json +67 -67
- package/lib/build/app.component.js.map +0 -1
- package/lib/build/app.module.js.map +0 -1
- package/lib/build/app.module.metadata.json +0 -1
- package/lib/build/auth-monitorias/auth-monitorias.module.d.ts +0 -2
- package/lib/build/auth-monitorias/auth-monitorias.module.js.map +0 -1
- package/lib/build/auth-monitorias/auth-monitorias.module.metadata.json +0 -1
- package/lib/build/auth-monitorias/common/constants.js.map +0 -1
- package/lib/build/auth-monitorias/common/currentUser.model.js.map +0 -1
- package/lib/build/auth-monitorias/common/login.model.js.map +0 -1
- package/lib/build/auth-monitorias/common/mock.js.map +0 -1
- package/lib/build/auth-monitorias/common/roles-type.enum.js.map +0 -1
- package/lib/build/auth-monitorias/common/safe.pipe.js.map +0 -1
- package/lib/build/auth-monitorias/components/idlelogout/idle-logout/idle-logout.component.d.ts +0 -22
- package/lib/build/auth-monitorias/components/idlelogout/idle-logout/idle-logout.component.js +0 -66
- package/lib/build/auth-monitorias/components/idlelogout/idle-logout/idle-logout.component.js.map +0 -1
- package/lib/build/auth-monitorias/components/idlelogout/idle-logout/idle-logout.component.metadata.json +0 -1
- package/lib/build/auth-monitorias/components/idlelogout/idlelogout.module.d.ts +0 -2
- package/lib/build/auth-monitorias/components/idlelogout/idlelogout.module.js +0 -23
- package/lib/build/auth-monitorias/components/idlelogout/idlelogout.module.js.map +0 -1
- package/lib/build/auth-monitorias/components/idlelogout/idlelogout.module.metadata.json +0 -1
- package/lib/build/auth-monitorias/components/idlelogout/index.d.ts +0 -2
- package/lib/build/auth-monitorias/components/idlelogout/index.js +0 -8
- package/lib/build/auth-monitorias/components/idlelogout/index.js.map +0 -1
- package/lib/build/auth-monitorias/components/idlelogout/index.metadata.json +0 -1
- package/lib/build/auth-monitorias/directives/hide-for-roles.directive.js.map +0 -1
- package/lib/build/auth-monitorias/directives/read-only-for-roles.directive.js.map +0 -1
- package/lib/build/auth-monitorias/directives/show-for-roles.directive.js.map +0 -1
- package/lib/build/auth-monitorias/index.js.map +0 -1
- package/lib/build/auth-monitorias/services/auth-guard.service.js.map +0 -1
- package/lib/build/auth-monitorias/services/auth-guard.service.metadata.json +0 -1
- package/lib/build/auth-monitorias/services/auth-locator.service.d.ts +0 -7
- package/lib/build/auth-monitorias/services/auth-locator.service.js +0 -41
- package/lib/build/auth-monitorias/services/auth-locator.service.js.map +0 -1
- package/lib/build/auth-monitorias/services/auth-locator.service.metadata.json +0 -1
- package/lib/build/auth-monitorias/services/auth-resolver.service.js.map +0 -1
- package/lib/build/auth-monitorias/services/auth.service.js.map +0 -1
- package/lib/build/auth-monitorias/services/auth.service.metadata.json +0 -1
- package/lib/build/constants.d.ts +0 -1
- package/lib/build/constants.js.map +0 -1
- package/lib/build/index.d.ts +0 -1
- package/lib/build/index.js.map +0 -1
- package/lib/build/index.metadata.json +0 -1
- package/lib/node_modules/angular-user-idle/user-idle.config.d.ts +0 -14
- package/lib/node_modules/angular-user-idle/user-idle.config.js +0 -9
- package/lib/node_modules/angular-user-idle/user-idle.config.js.map +0 -1
- package/lib/node_modules/angular-user-idle/user-idle.config.metadata.json +0 -1
- package/lib/node_modules/angular-user-idle/user-idle.module.d.ts +0 -8
- package/lib/node_modules/angular-user-idle/user-idle.module.js +0 -28
- package/lib/node_modules/angular-user-idle/user-idle.module.js.map +0 -1
- package/lib/node_modules/angular-user-idle/user-idle.module.metadata.json +0 -1
- package/lib/node_modules/angular-user-idle/user-idle.service.d.ts +0 -72
- package/lib/node_modules/angular-user-idle/user-idle.service.js +0 -185
- package/lib/node_modules/angular-user-idle/user-idle.service.js.map +0 -1
- package/lib/node_modules/angular-user-idle/user-idle.service.metadata.json +0 -1
- /package/lib/{build/app.module.d.ts → app.module.d.ts} +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/constants.d.ts +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/constants.js +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/constants.metadata.json +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/currentUser.model.d.ts +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/currentUser.model.js +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/currentUser.model.metadata.json +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/login.model.d.ts +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/login.model.js +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/login.model.metadata.json +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/mock.d.ts +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/mock.js +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/mock.metadata.json +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/roles-type.enum.d.ts +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/roles-type.enum.js +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/roles-type.enum.metadata.json +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/safe.pipe.d.ts +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/safe.pipe.js +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/common/safe.pipe.metadata.json +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/directives/hide-for-roles.directive.d.ts +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/directives/hide-for-roles.directive.js +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/directives/hide-for-roles.directive.metadata.json +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/directives/read-only-for-roles.directive.d.ts +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/directives/read-only-for-roles.directive.js +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/directives/read-only-for-roles.directive.metadata.json +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/directives/show-for-roles.directive.d.ts +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/directives/show-for-roles.directive.js +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/directives/show-for-roles.directive.metadata.json +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/services/auth-guard.service.d.ts +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/services/auth-resolver.service.d.ts +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/services/auth-resolver.service.js +0 -0
- /package/lib/{build/auth-monitorias → auth-monitorias}/services/auth-resolver.service.metadata.json +0 -0
package/lib/build/auth-monitorias/components/idlelogout/idle-logout/idle-logout.component.js
DELETED
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var core_1 = require("@angular/core");
|
|
4
|
-
var modal_1 = require("ngx-bootstrap/modal");
|
|
5
|
-
var angular_user_idle_1 = require("angular-user-idle");
|
|
6
|
-
var auth_service_1 = require("../../../services/auth.service");
|
|
7
|
-
var IdleLogoutComponent = /** @class */ (function () {
|
|
8
|
-
function IdleLogoutComponent(auth, modalService, userIdle) {
|
|
9
|
-
this.auth = auth;
|
|
10
|
-
this.modalService = modalService;
|
|
11
|
-
this.userIdle = userIdle;
|
|
12
|
-
this.title = 'Idle-Logout';
|
|
13
|
-
}
|
|
14
|
-
IdleLogoutComponent.prototype.openModal = function (template) {
|
|
15
|
-
this.modalRef = this.modalService.show(template);
|
|
16
|
-
};
|
|
17
|
-
IdleLogoutComponent.prototype.ngOnInit = function () {
|
|
18
|
-
var _this = this;
|
|
19
|
-
this.userIdle.startWatching();
|
|
20
|
-
this.userIdle.onTimerStart().subscribe(function (count) {
|
|
21
|
-
console.log(count);
|
|
22
|
-
var eventList = ["click", "mouseover", "keydown", "DOMMouseScroll", "mousewheel", "mousedown", "touchstart", "touchmove", "scroll", "keyup"];
|
|
23
|
-
eventList.forEach(function (obj) {
|
|
24
|
-
document.body.addEventListener(obj, function () { return _this.userIdle.resetTimer(); });
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
this.userIdle.onTimeout().subscribe(function () {
|
|
28
|
-
_this.openModal(_this.template);
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
IdleLogoutComponent.prototype.stop = function () {
|
|
32
|
-
this.userIdle.stopTimer();
|
|
33
|
-
};
|
|
34
|
-
IdleLogoutComponent.prototype.stopWatching = function () {
|
|
35
|
-
this.userIdle.stopWatching();
|
|
36
|
-
};
|
|
37
|
-
IdleLogoutComponent.prototype.startWatching = function () {
|
|
38
|
-
this.userIdle.startWatching();
|
|
39
|
-
};
|
|
40
|
-
IdleLogoutComponent.prototype.restart = function () {
|
|
41
|
-
this.userIdle.resetTimer();
|
|
42
|
-
};
|
|
43
|
-
IdleLogoutComponent.prototype.closeSession = function () {
|
|
44
|
-
this.auth.doLogout();
|
|
45
|
-
this.stopWatching();
|
|
46
|
-
};
|
|
47
|
-
IdleLogoutComponent.decorators = [
|
|
48
|
-
{ type: core_1.Component, args: [{
|
|
49
|
-
selector: 'idle-logout',
|
|
50
|
-
template: "\n <!--The content below is only a placeholder and can be replaced.-->\n <ng-template #template>\n <div class=\"modal-header\">\n <h4 class=\"modal-title pull-left\">IDLE Logout</h4>\n <button type=\"button\" class=\"close pull-right\" aria-label=\"Close\" (click)=\"modalRef.hide(); closeSession()\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div class=\"modal-body\">\n Session 'bout to be closed.\n </div>\n </ng-template>\n ",
|
|
51
|
-
styles: ["\n\n "]
|
|
52
|
-
},] },
|
|
53
|
-
];
|
|
54
|
-
/** @nocollapse */
|
|
55
|
-
IdleLogoutComponent.ctorParameters = function () { return [
|
|
56
|
-
{ type: auth_service_1.AuthService, },
|
|
57
|
-
{ type: modal_1.BsModalService, },
|
|
58
|
-
{ type: angular_user_idle_1.UserIdleService, },
|
|
59
|
-
]; };
|
|
60
|
-
IdleLogoutComponent.propDecorators = {
|
|
61
|
-
"template": [{ type: core_1.ViewChild, args: ["template",] },],
|
|
62
|
-
};
|
|
63
|
-
return IdleLogoutComponent;
|
|
64
|
-
}());
|
|
65
|
-
exports.IdleLogoutComponent = IdleLogoutComponent;
|
|
66
|
-
//# sourceMappingURL=idle-logout.component.js.map
|
package/lib/build/auth-monitorias/components/idlelogout/idle-logout/idle-logout.component.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"idle-logout.component.js","sourceRoot":"","sources":["../../../../../../build/auth-monitorias/components/idlelogout/idle-logout/idle-logout.component.ts"],"names":[],"mappings":";;AAAA,sCAAmF;AACnF,6CAAiE;AACjE,uDAAoD;AAIpD,+DAA6D;;IAc3D,6BAAmB,IAAiB,EAAU,YAA4B,EAAU,QAAyB;QAA1F,SAAI,GAAJ,IAAI,CAAa;QAAU,iBAAY,GAAZ,YAAY,CAAgB;QAAU,aAAQ,GAAR,QAAQ,CAAiB;qBANrG,aAAa;KAQpB;IAED,uCAAS,GAAT,UAAU,QAA0B;QAClC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KAClD;IAED,sCAAQ,GAAR;QAAA,iBAYC;QAXC,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;QAC9B,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC,SAAS,CAAC,UAAA,KAAK;YAC1C,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACnB,IAAI,SAAS,GAAE,CAAC,OAAO,EAAE,WAAW,EAAC,SAAS,EAAE,gBAAgB,EAAE,YAAY,EAAC,WAAW,EAAE,YAAY,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC;YAC1I,SAAS,CAAC,OAAO,CAAC,UAAA,GAAG;gBACnB,QAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,GAAG,EAAE,cAAM,OAAA,KAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,EAA1B,CAA0B,CAAC,CAAC;aACvE,CAAC,CAAA;SACH,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC,SAAS,CAAE;YACnC,KAAI,CAAC,SAAS,CAAC,KAAI,CAAC,QAAQ,CAAC,CAAC;SAC/B,CAAC,CAAC;KACJ;IAED,kCAAI,GAAJ;QACE,IAAI,CAAC,QAAQ,CAAC,SAAS,EAAE,CAAC;KAC3B;IAED,0CAAY,GAAZ;QACE,IAAI,CAAC,QAAQ,CAAC,YAAY,EAAE,CAAC;KAC9B;IAED,2CAAa,GAAb;QACE,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC;KAC/B;IAED,qCAAO,GAAP;QACE,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC;KAC5B;IAED,0CAAY,GAAZ;QACE,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;QACrB,IAAI,CAAC,YAAY,EAAE,CAAC;KACrB;;gBArDF,gBAAS,SAAC;oBACT,QAAQ,EAAE,aAAa;oBACvB,QAAQ,EAAE,2gBAA2gB;oBACrhB,MAAM,EAAE,CAAC,QAAQ,CAAC;iBACnB;;;;gBANQ,0BAAW;gBALX,sBAAc;gBACd,mCAAe;;;6BAcrB,gBAAS,SAAC,UAAU;;8BAhBvB;;AAaa,kDAAmB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"IdleLogoutComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":8,"character":1},"arguments":[{"selector":"idle-logout","template":"\n <!--The content below is only a placeholder and can be replaced.-->\n <ng-template #template>\n <div class=\"modal-header\">\n <h4 class=\"modal-title pull-left\">IDLE Logout</h4>\n <button type=\"button\" class=\"close pull-right\" aria-label=\"Close\" (click)=\"modalRef.hide(); closeSession()\">\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div class=\"modal-body\">\n Session 'bout to be closed.\n </div>\n </ng-template>\n ","styles":["\n\n "]}]}],"members":{"template":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"ViewChild","line":16,"character":3},"arguments":["template"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../../../services/auth.service","name":"AuthService","line":20,"character":27},{"__symbolic":"reference","module":"ngx-bootstrap/modal","name":"BsModalService","line":20,"character":62},{"__symbolic":"reference","module":"angular-user-idle","name":"UserIdleService","line":20,"character":96}]}],"openModal":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"stop":[{"__symbolic":"method"}],"stopWatching":[{"__symbolic":"method"}],"startWatching":[{"__symbolic":"method"}],"restart":[{"__symbolic":"method"}],"closeSession":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var core_1 = require("@angular/core");
|
|
4
|
-
var common_1 = require("@angular/common");
|
|
5
|
-
var idle_logout_component_1 = require("./idle-logout/idle-logout.component");
|
|
6
|
-
var IdlelogoutModule = /** @class */ (function () {
|
|
7
|
-
function IdlelogoutModule() {
|
|
8
|
-
}
|
|
9
|
-
IdlelogoutModule.decorators = [
|
|
10
|
-
{ type: core_1.NgModule, args: [{
|
|
11
|
-
imports: [
|
|
12
|
-
common_1.CommonModule
|
|
13
|
-
],
|
|
14
|
-
declarations: [
|
|
15
|
-
idle_logout_component_1.IdleLogoutComponent
|
|
16
|
-
],
|
|
17
|
-
exports: [idle_logout_component_1.IdleLogoutComponent]
|
|
18
|
-
},] },
|
|
19
|
-
];
|
|
20
|
-
return IdlelogoutModule;
|
|
21
|
-
}());
|
|
22
|
-
exports.IdlelogoutModule = IdlelogoutModule;
|
|
23
|
-
//# sourceMappingURL=idlelogout.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"idlelogout.module.js","sourceRoot":"","sources":["../../../../../build/auth-monitorias/components/idlelogout/idlelogout.module.ts"],"names":[],"mappings":";;AAAA,sCAAyC;AACzC,0CAA+C;AAC/C,6EAA0E;;;;;gBAEzE,eAAQ,SAAC;oBACR,OAAO,EAAE;wBACP,qBAAY;qBACb;oBACD,YAAY,EAAE;wBACZ,2CAAmB;qBACpB;oBACD,OAAO,EAAE,CAAC,2CAAmB,CAAC;iBAC/B;;2BAZD;;AAaa,4CAAgB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"IdlelogoutModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":6,"character":4}],"declarations":[{"__symbolic":"reference","module":"./idle-logout/idle-logout.component","name":"IdleLogoutComponent","line":9,"character":4}],"exports":[{"__symbolic":"reference","module":"./idle-logout/idle-logout.component","name":"IdleLogoutComponent","line":11,"character":12}]}]}]}}}]
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
function __export(m) {
|
|
3
|
-
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
4
|
-
}
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
__export(require("./idle-logout/idle-logout.component"));
|
|
7
|
-
__export(require("./idlelogout.module"));
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../build/auth-monitorias/components/idlelogout/index.ts"],"names":[],"mappings":";;;;;AAAA,yDAAmD;AACnD,yCAAmC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./idle-logout/idle-logout.component"},{"from":"./idlelogout.module"}]}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hide-for-roles.directive.js","sourceRoot":"","sources":["../../../../build/auth-monitorias/directives/hide-for-roles.directive.ts"],"names":[],"mappings":";;AAAA,sCAA0G;AAC1G,yDAAuD;;IAerD,+BAAoB,WAA6B,EAAS,aAA+B,EACrE,EAAc,EAAU,WAAwB;QADpE,iBAUG;QAViB,gBAAW,GAAX,WAAW,CAAkB;QAAS,kBAAa,GAAb,aAAa,CAAkB;QACrE,OAAE,GAAF,EAAE,CAAY;QAAU,gBAAW,GAAX,WAAW,CAAa;0BANrC,EAAE;uBAEf,KAAK;QAMX,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,SAAS,CAAE,UAAA,WAAW;YACtD,EAAE,CAAA,CAAC,WAAW,CAAC,CAAA,CAAC;gBACd,KAAI,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;gBAC/B,KAAI,CAAC,UAAU,EAAE,CAAC;aACnB;SACJ,CAAC,CAAA;KAEX;0BAIU,4CAAS;uBAAC,UAAoB;YACzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;YAC7B,IAAI,CAAC,UAAU,EAAE,CAAC;;;;;IAGZ,0CAAU,GAAlB;QACE,EAAE,CAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAC;YACf,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,WAAW,EAAE,EAAjB,CAAiB,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;SAC1H;KACF;IAEO,2CAAW,GAAnB,UAAoB,KAAc;QAChC,EAAE,CAAA,CAAC,CAAC,KAAK,CAAC,CAAA,CAAC;YACT,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;YAC3B,IAAI,CAAC,aAAa,CAAC,kBAAkB,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACxD,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC;SACrB;QAAA,IAAI,CAAA,CAAC;YACJ,IAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC;YAC3B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;SACtB;KACF;;gBA7CF,gBAAS,SAAC;oBACT,QAAQ,EAAE,aAAa;iBACxB;;;;gBAPoD,kBAAW;gBAAE,uBAAgB;gBAA9D,iBAAU;gBACrB,0BAAW;;;8BA6BjB,YAAK;;gCA9BR;;AAQa,sDAAqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"read-only-for-roles.directive.js","sourceRoot":"","sources":["../../../../build/auth-monitorias/directives/read-only-for-roles.directive.ts"],"names":[],"mappings":";;AAAA,sCAA8F;AAC9F,wCAA2C;AAC3C,yDAAuD;;IAgBnD,mCAAoB,EAAc,EAAU,OAAmB,EAAU,WAAwB;QAA7E,OAAE,GAAF,EAAE,CAAY;QAAU,YAAO,GAAP,OAAO,CAAY;QAAU,gBAAW,GAAX,WAAW,CAAa;uBAPrE,EAAE;QAQ1B,IAAI,CAAC,eAAe,EAAE,CAAC;KAC1B;0BAPY,iDAAU;uBAAC,OAAiB;YACrC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;YACvB,IAAI,CAAC,UAAU,EAAE,CAAC;;;;;IAOtB,4CAAQ,GAAR;QAAA,iBAOC;QANG,IAAI,CAAC,WAAW,CAAC,kBAAkB,CAAC,SAAS,CAAE,UAAA,WAAW;YACtD,EAAE,CAAA,CAAC,WAAW,CAAC,CAAA,CAAC;gBACZ,KAAI,CAAC,KAAK,GAAG,WAAW,CAAC,KAAK,CAAC;gBAC/B,KAAI,CAAC,UAAU,EAAE,CAAC;aACrB;SACJ,CAAC,CAAA;KACL;IAGO,8CAAU,GAAlB;QACI,EAAE,CAAA,CAAC,IAAI,CAAC,KAAK,CAAC,CAAA,CAAC;YACX,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,CAAC,WAAW,EAAE,EAAjB,CAAiB,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,IAAI,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;SAC/I;KACJ;IAEO,kDAAc,GAAtB,UAAuB,KAAc;QACjC,EAAE,CAAA,CAAC,KAAK,CAAC,CAAA,CAAC;YACN,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;SAClC;QAAA,IAAI,CAAA,CAAC;YACF,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC;SACjC;KACJ;IAEO,mDAAe,GAAvB;QACI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,eAAe,EAAE,CAAC;KACjD;;gBA5CN,gBAAS,SAAC;oBACT,QAAQ,EAAE,cAAc;iBACzB;;;;;;;gBANmB,iBAAU;gBACrB,iBAAS;gBACT,0BAAW;;;+BAWf,YAAK;;oCAbV;;AAOa,8DAAyB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"show-for-roles.directive.js","sourceRoot":"","sources":["../../../../build/auth-monitorias/directives/show-for-roles.directive.ts"],"names":[],"mappings":";;AAAA,sCAA0G;AAC1G,yDAAuD;;IAOrD,+BAAoB,WAA6B,EAAS,aAA+B,EACrE,EAAc,EAAU,WAAwB;QADpE,iBASC;QATmB,gBAAW,GAAX,WAAW,CAAkB;QAAS,kBAAa,GAAb,aAAa,CAAkB;QACrE,OAAE,GAAF,EAAE,CAAY;QAAU,gBAAW,GAAX,WAAW,CAA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gBA5CF,gBAAS,SAAC;oBACT,QAAQ,EAAE,aAAa;iBACxB;;;;gBALoD,kBAAW;gBAAE,uBAAgB;gBAA9D,iBAAU;gBACrB,0BAAW;;;8BAsBjB,YAAK;;gCAvBR;;AAMa,sDAAqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../build/auth-monitorias/index.ts"],"names":[],"mappings":";;;;;AAAA,8CAAwC;AACxC,2DAAqD;AACrD,2DAAqD;AACrD,gEAA0D;AAC1D,0CAAoC;AAEpC,wCAAkC;AAClC,wCAAkC;AAClC,8CAAwC;AACxC,6CAAuC;AACvC,mDAA6C;AAC7C,sDAAgD;AAChD,6CAAuC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-guard.service.js","sourceRoot":"","sources":["../../../../build/auth-monitorias/services/auth-guard.service.ts"],"names":[],"mappings":";;AACA,sCAA2C;AAC3C,0CAAmG;AACnG,+CAA6C;AAC7C,yCAAwC;;IAStC,0BAAmB,IAAiB,EAAS,MAAc;QAAxC,SAAI,GAAJ,IAAI,CAAa;QAAS,WAAM,GAAN,MAAM,CAAQ;KAAI;IAG/D,sCAAW,GAAX,UAAY,KAA6B,EAAE,KAA0B;QAArE,iBAaC;QAXC,IAAI,aAAa,GAAY,KAAK,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,UAAC,IAAW,IAAI,OAAA,IAAI,CAAC,WAAW,EAAE,EAAlB,CAAkB,CAAC,CAAC;QAC9F,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,UAAA,IAAI;YACtC,EAAE,CAAA,CAAC,KAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,aAAa,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA,CAAC;gBAClE,MAAM,CAAC,IAAI,CAAC;aACf;YAAA,IAAI,CAAA,CAAC;gBACF,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,0BAA0B,CAAC;gBAClD,MAAM,CAAC,KAAK,CAAC;aAChB;SACJ,CAAC,CAAC,KAAK,CAAC;YACL,MAAM,CAAC,QAAQ,CAAC,IAAI,GAAG,sBAAsB,CAAC;YAC9C,MAAM,CAAC,OAAE,CAAC,KAAK,CAAC,CAAA;SAAC,CAAC,CAAC;KACxB;;gBAlBF,iBAAU;;;;gBARF,0BAAW;gBADX,eAAM;;2BAFf;;AAYa,4CAAgB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"AuthGuardService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":11,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./auth.service","name":"AuthService","line":13,"character":27},{"__symbolic":"reference","module":"@angular/router","name":"Router","line":13,"character":55}]}],"canActivate":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var core_1 = require("@angular/core");
|
|
4
|
-
var BASE_URL = 'security';
|
|
5
|
-
var API_URL = 'services/auth';
|
|
6
|
-
var LOGIN_URL = 'login';
|
|
7
|
-
var LOGOUT_URL = 'logout';
|
|
8
|
-
var ME_URL = 'me';
|
|
9
|
-
var AuthLocatorService = /** @class */ (function () {
|
|
10
|
-
function AuthLocatorService() {
|
|
11
|
-
}
|
|
12
|
-
AuthLocatorService.prototype.getHost = function () {
|
|
13
|
-
var host = window.location.origin;
|
|
14
|
-
//let host = 'http://localhost';
|
|
15
|
-
return host;
|
|
16
|
-
};
|
|
17
|
-
AuthLocatorService.prototype.getDefaultUrlLogin = function () {
|
|
18
|
-
return this.buildURL(this.getHost(), BASE_URL, API_URL, LOGIN_URL);
|
|
19
|
-
};
|
|
20
|
-
AuthLocatorService.prototype.getDefaultUrlLogout = function () {
|
|
21
|
-
return this.buildURL(this.getHost(), BASE_URL, API_URL, LOGOUT_URL);
|
|
22
|
-
};
|
|
23
|
-
AuthLocatorService.prototype.getUrlMe = function () {
|
|
24
|
-
return this.buildURL(this.getHost(), BASE_URL, API_URL, ME_URL);
|
|
25
|
-
};
|
|
26
|
-
AuthLocatorService.prototype.buildURL = function () {
|
|
27
|
-
var urlElements = [];
|
|
28
|
-
for (var _i = 0; _i < arguments.length; _i++) {
|
|
29
|
-
urlElements[_i] = arguments[_i];
|
|
30
|
-
}
|
|
31
|
-
return urlElements.reduce(function (accumulator, currentValue) {
|
|
32
|
-
return accumulator + '/' + currentValue;
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
AuthLocatorService.decorators = [
|
|
36
|
-
{ type: core_1.Injectable },
|
|
37
|
-
];
|
|
38
|
-
return AuthLocatorService;
|
|
39
|
-
}());
|
|
40
|
-
exports.AuthLocatorService = AuthLocatorService;
|
|
41
|
-
//# sourceMappingURL=auth-locator.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-locator.service.js","sourceRoot":"","sources":["../../../../build/auth-monitorias/services/auth-locator.service.ts"],"names":[],"mappings":";;AAAA,sCAA8C;AAG9C,IAAM,QAAQ,GAAG,UAAU,CAAC;AAC5B,IAAM,OAAO,GAAG,eAAe,CAAC;AAChC,IAAM,SAAS,GAAG,OAAO,CAAC;AAC1B,IAAM,UAAU,GAAG,QAAQ,CAAC;AAC5B,IAAM,MAAM,GAAG,IAAI,CAAC;;;;IAMT,oCAAO,GAAd;QACI,IAAI,IAAI,GAAG,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC;;QAGlC,MAAM,CAAC,IAAI,CAAC;KACf;IAEM,+CAAkB,GAAzB;QACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,EAAC,QAAQ,EAAC,OAAO,EAAC,SAAS,CAAC,CAAC;KACnE;IAGM,gDAAmB,GAA1B;QACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,EAAC,QAAQ,EAAC,OAAO,EAAC,UAAU,CAAC,CAAC;KACpE;IAGM,qCAAQ,GAAf;QACI,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,EAAC,QAAQ,EAAC,OAAO,EAAC,MAAM,CAAC,CAAC;KAChE;IAIO,qCAAQ,GAAhB;QAAiB,qBAAc;aAAd,UAAc,EAAd,qBAAc,EAAd,IAAc;YAAd,gCAAc;;QAC3B,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,UAAU,WAAW,EAAE,YAAY;YACzD,MAAM,CAAC,WAAW,GAAG,GAAG,GAAG,YAAY,CAAE;SAC5C,CAAC,CAAC;KACN;;gBA/BJ,iBAAU;;6BATX;;AAUa,gDAAkB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"AuthLocatorService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":9,"character":1}}],"members":{"getHost":[{"__symbolic":"method"}],"getDefaultUrlLogin":[{"__symbolic":"method"}],"getDefaultUrlLogout":[{"__symbolic":"method"}],"getUrlMe":[{"__symbolic":"method"}],"buildURL":[{"__symbolic":"method"}]}}}}]
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"auth-resolver.service.js","sourceRoot":"","sources":["../../../../build/auth-monitorias/services/auth-resolver.service.ts"],"names":[],"mappings":";;AACA,sCAA0C;AAC1C,+CAA6C;AAE7C,yCAAwC;;IAMpC,6BAAoB,IAAiB;QAAjB,SAAI,GAAJ,IAAI,CAAa;KAAG;IAExC,qCAAO,GAAP;QACI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE,CAAC,KAAK,CAAE;YACrC,MAAM,CAA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Service":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":15,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/common/http","name":"HttpClient","line":23,"character":28},{"__symbolic":"reference","module":"./auth-locator.service","name":"AuthLocatorService","line":23,"character":60}]}],"ngOnDestroy":[{"__symbolic":"method"}],"doLogin":[{"__symbolic":"method"}],"doLogout":[{"__symbolic":"method"}],"getCurrentUser":[{"__symbolic":"method"}],"getCurrentRoles":[{"__symbolic":"method"}],"saveCurrentUserInLS":[{"__symbolic":"method"}],"deleteCurrentUserInLS":[{"__symbolic":"method"}],"getCurrentUserFromLS":[{"__symbolic":"method"}],"getRolesPermitted":[{"__symbolic":"method"}],"start":[{"__symbolic":"method"}],"storageEventListener":[{"__symbolic":"method"}],"stop":[{"__symbolic":"method"}],"normalizeLocalStorageItem":[{"__symbolic":"method"}],"handleError":[{"__symbolic":"method"}]}}}}]
|
package/lib/build/constants.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const LOCALSTORAGENAME = "currentUser";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../build/constants.ts"],"names":[],"mappings":";;AAAa,QAAA,gBAAgB,GAAG,aAAa"}
|
package/lib/build/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./auth-monitorias";
|
package/lib/build/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../build/index.ts"],"names":[],"mappings":";;;;;AAAA,uCAAiC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{},"exports":[{"from":"./auth-monitorias"}]}]
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var UserIdleServiceConfig = /** @class */ (function () {
|
|
4
|
-
function UserIdleServiceConfig() {
|
|
5
|
-
}
|
|
6
|
-
return UserIdleServiceConfig;
|
|
7
|
-
}());
|
|
8
|
-
exports.UserIdleServiceConfig = UserIdleServiceConfig;
|
|
9
|
-
//# sourceMappingURL=user-idle.config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-idle.config.js","sourceRoot":"","sources":["../../../node_modules/angular-user-idle/user-idle.config.ts"],"names":[],"mappings":";;AAAA,IAAA;;;gCAAA;IAaC,CAAA;AAbY,sDAAqB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"UserIdleServiceConfig":{"__symbolic":"class"}}}]
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var core_1 = require("@angular/core");
|
|
4
|
-
var user_idle_service_1 = require("./user-idle.service");
|
|
5
|
-
var user_idle_config_1 = require("./user-idle.config");
|
|
6
|
-
/**
|
|
7
|
-
* User's idle module.
|
|
8
|
-
*/
|
|
9
|
-
var UserIdleModule = /** @class */ (function () {
|
|
10
|
-
function UserIdleModule() {
|
|
11
|
-
}
|
|
12
|
-
UserIdleModule.forRoot = function (config) {
|
|
13
|
-
return {
|
|
14
|
-
ngModule: UserIdleModule,
|
|
15
|
-
providers: [
|
|
16
|
-
{ provide: user_idle_config_1.UserIdleServiceConfig, useValue: config }
|
|
17
|
-
]
|
|
18
|
-
};
|
|
19
|
-
};
|
|
20
|
-
UserIdleModule.decorators = [
|
|
21
|
-
{ type: core_1.NgModule, args: [{
|
|
22
|
-
providers: [user_idle_service_1.UserIdleService]
|
|
23
|
-
},] },
|
|
24
|
-
];
|
|
25
|
-
return UserIdleModule;
|
|
26
|
-
}());
|
|
27
|
-
exports.UserIdleModule = UserIdleModule;
|
|
28
|
-
//# sourceMappingURL=user-idle.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-idle.module.js","sourceRoot":"","sources":["../../../node_modules/angular-user-idle/user-idle.module.ts"],"names":[],"mappings":";;AAAA,sCAA8D;AAE9D,yDAAsD;AACtD,uDAA2D;;;;;;;IASlD,sBAAO,GAAd,UAAe,MAA6B;QAC1C,MAAM,CAAC;YACL,QAAQ,EAAE,cAAc;YACxB,SAAS,EAAE;gBACT,EAAC,OAAO,EAAE,wCAAqB,EAAE,QAAQ,EAAE,MAAM,EAAC;aACnD;SACF,CAAC;KACH;;gBAXF,eAAQ,SAAC;oBACR,SAAS,EAAE,CAAC,mCAAe,CAAC;iBAC7B;;yBAVD;;AAWa,wCAAc"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
[{"__symbolic":"module","version":4,"metadata":{"UserIdleModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":8,"character":1},"arguments":[{"providers":[{"__symbolic":"reference","module":"./user-idle.service","name":"UserIdleService","line":9,"character":14}]}]}],"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"UserIdleModule"},"providers":[{"provide":{"__symbolic":"reference","module":"./user-idle.config","name":"UserIdleServiceConfig","line":16,"character":18},"useValue":{"__symbolic":"reference","name":"config"}}]}}}}}}]
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { UserIdleServiceConfig } from './user-idle.config';
|
|
3
|
-
/**
|
|
4
|
-
* User's idle service.
|
|
5
|
-
*/
|
|
6
|
-
export declare class UserIdleService {
|
|
7
|
-
ping$: Observable<any>;
|
|
8
|
-
/**
|
|
9
|
-
* Events that can interrupts user's inactivity timer.
|
|
10
|
-
*/
|
|
11
|
-
private readonly activityEvents$;
|
|
12
|
-
private timerStart$;
|
|
13
|
-
private timeout$;
|
|
14
|
-
private idle$;
|
|
15
|
-
private timer$;
|
|
16
|
-
/**
|
|
17
|
-
* Idle value in seconds.
|
|
18
|
-
* Default equals to 10 minutes.
|
|
19
|
-
*/
|
|
20
|
-
private idle;
|
|
21
|
-
/**
|
|
22
|
-
* Timeout value in seconds.
|
|
23
|
-
* Default equals to 5 minutes.
|
|
24
|
-
*/
|
|
25
|
-
private timeout;
|
|
26
|
-
/**
|
|
27
|
-
* Ping value in seconds.
|
|
28
|
-
*/
|
|
29
|
-
private ping;
|
|
30
|
-
/**
|
|
31
|
-
* Timeout status.
|
|
32
|
-
*/
|
|
33
|
-
private isTimeout;
|
|
34
|
-
/**
|
|
35
|
-
* Timer of user's inactivity is in progress.
|
|
36
|
-
*/
|
|
37
|
-
private isInactivityTimer;
|
|
38
|
-
private idleSubscription;
|
|
39
|
-
constructor(config: UserIdleServiceConfig);
|
|
40
|
-
/**
|
|
41
|
-
* Start watching for user idle and setup timer and ping.
|
|
42
|
-
*/
|
|
43
|
-
startWatching(): void;
|
|
44
|
-
stopWatching(): void;
|
|
45
|
-
stopTimer(): void;
|
|
46
|
-
resetTimer(): void;
|
|
47
|
-
/**
|
|
48
|
-
* Return observable for timer's countdown number that emits after idle.
|
|
49
|
-
* @return {Observable<number>}
|
|
50
|
-
*/
|
|
51
|
-
onTimerStart(): Observable<number>;
|
|
52
|
-
/**
|
|
53
|
-
* Return observable for timeout is fired.
|
|
54
|
-
* @return {Observable<boolean>}
|
|
55
|
-
*/
|
|
56
|
-
onTimeout(): Observable<boolean>;
|
|
57
|
-
getConfigValue(): UserIdleServiceConfig;
|
|
58
|
-
/**
|
|
59
|
-
* Setup timer.
|
|
60
|
-
*
|
|
61
|
-
* Counts every seconds and return n+1 and fire timeout for last count.
|
|
62
|
-
* @param timeout Timeout in seconds.
|
|
63
|
-
*/
|
|
64
|
-
private setupTimer(timeout);
|
|
65
|
-
/**
|
|
66
|
-
* Setup ping.
|
|
67
|
-
*
|
|
68
|
-
* Pings every ping-seconds only if is not timeout.
|
|
69
|
-
* @param {number} ping
|
|
70
|
-
*/
|
|
71
|
-
private setupPing(ping);
|
|
72
|
-
}
|
|
@@ -1,185 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var core_1 = require("@angular/core");
|
|
4
|
-
var rxjs_1 = require("rxjs");
|
|
5
|
-
var user_idle_config_1 = require("./user-idle.config");
|
|
6
|
-
/**
|
|
7
|
-
* User's idle service.
|
|
8
|
-
*/
|
|
9
|
-
var UserIdleService = /** @class */ (function () {
|
|
10
|
-
function UserIdleService(config) {
|
|
11
|
-
this.timerStart$ = new rxjs_1.Subject();
|
|
12
|
-
this.timeout$ = new rxjs_1.Subject();
|
|
13
|
-
/**
|
|
14
|
-
* Idle value in seconds.
|
|
15
|
-
* Default equals to 10 minutes.
|
|
16
|
-
*/
|
|
17
|
-
this.idle = 600;
|
|
18
|
-
/**
|
|
19
|
-
* Timeout value in seconds.
|
|
20
|
-
* Default equals to 5 minutes.
|
|
21
|
-
*/
|
|
22
|
-
this.timeout = 300;
|
|
23
|
-
/**
|
|
24
|
-
* Ping value in seconds.
|
|
25
|
-
*/
|
|
26
|
-
this.ping = 120;
|
|
27
|
-
if (config) {
|
|
28
|
-
this.idle = config.idle;
|
|
29
|
-
this.timeout = config.timeout;
|
|
30
|
-
this.ping = config.ping;
|
|
31
|
-
}
|
|
32
|
-
this.activityEvents$ = rxjs_1.Observable.merge(rxjs_1.Observable.fromEvent(window, 'mousemove'), rxjs_1.Observable.fromEvent(window, 'resize'), rxjs_1.Observable.fromEvent(document, 'keydown'));
|
|
33
|
-
this.idle$ = rxjs_1.Observable.from(this.activityEvents$);
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Start watching for user idle and setup timer and ping.
|
|
37
|
-
*/
|
|
38
|
-
/**
|
|
39
|
-
* Start watching for user idle and setup timer and ping.
|
|
40
|
-
*/
|
|
41
|
-
UserIdleService.prototype.startWatching = /**
|
|
42
|
-
* Start watching for user idle and setup timer and ping.
|
|
43
|
-
*/
|
|
44
|
-
function () {
|
|
45
|
-
var _this = this;
|
|
46
|
-
/**
|
|
47
|
-
* If any of user events is not active for idle-seconds when start timer.
|
|
48
|
-
*/
|
|
49
|
-
this.idleSubscription = this.idle$
|
|
50
|
-
.bufferTime(5000) // Starting point of detecting of user's inactivity
|
|
51
|
-
.filter(function (arr) { return !arr.length && !_this.isInactivityTimer; })
|
|
52
|
-
.switchMap(function () {
|
|
53
|
-
_this.isInactivityTimer = true;
|
|
54
|
-
return rxjs_1.Observable.interval(1000)
|
|
55
|
-
.takeUntil(rxjs_1.Observable.merge(_this.activityEvents$, rxjs_1.Observable.timer(_this.idle * 1000)
|
|
56
|
-
.do(function () { return _this.timerStart$.next(true); })))
|
|
57
|
-
.finally(function () { return _this.isInactivityTimer = false; });
|
|
58
|
-
})
|
|
59
|
-
.subscribe();
|
|
60
|
-
this.setupTimer(this.timeout);
|
|
61
|
-
this.setupPing(this.ping);
|
|
62
|
-
};
|
|
63
|
-
UserIdleService.prototype.stopWatching = function () {
|
|
64
|
-
this.stopTimer();
|
|
65
|
-
if (this.idleSubscription) {
|
|
66
|
-
this.idleSubscription.unsubscribe();
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
UserIdleService.prototype.stopTimer = function () {
|
|
70
|
-
this.timerStart$.next(false);
|
|
71
|
-
};
|
|
72
|
-
UserIdleService.prototype.resetTimer = function () {
|
|
73
|
-
this.stopTimer();
|
|
74
|
-
this.isTimeout = false;
|
|
75
|
-
};
|
|
76
|
-
/**
|
|
77
|
-
* Return observable for timer's countdown number that emits after idle.
|
|
78
|
-
* @return {Observable<number>}
|
|
79
|
-
*/
|
|
80
|
-
/**
|
|
81
|
-
* Return observable for timer's countdown number that emits after idle.
|
|
82
|
-
* @return {Observable<number>}
|
|
83
|
-
*/
|
|
84
|
-
UserIdleService.prototype.onTimerStart = /**
|
|
85
|
-
* Return observable for timer's countdown number that emits after idle.
|
|
86
|
-
* @return {Observable<number>}
|
|
87
|
-
*/
|
|
88
|
-
function () {
|
|
89
|
-
var _this = this;
|
|
90
|
-
return this.timerStart$
|
|
91
|
-
.distinctUntilChanged()
|
|
92
|
-
.switchMap(function (start) { return start ? _this.timer$ : rxjs_1.Observable.of(null); });
|
|
93
|
-
};
|
|
94
|
-
/**
|
|
95
|
-
* Return observable for timeout is fired.
|
|
96
|
-
* @return {Observable<boolean>}
|
|
97
|
-
*/
|
|
98
|
-
/**
|
|
99
|
-
* Return observable for timeout is fired.
|
|
100
|
-
* @return {Observable<boolean>}
|
|
101
|
-
*/
|
|
102
|
-
UserIdleService.prototype.onTimeout = /**
|
|
103
|
-
* Return observable for timeout is fired.
|
|
104
|
-
* @return {Observable<boolean>}
|
|
105
|
-
*/
|
|
106
|
-
function () {
|
|
107
|
-
var _this = this;
|
|
108
|
-
return this.timeout$
|
|
109
|
-
.filter(function (timeout) { return !!timeout; })
|
|
110
|
-
.map(function () {
|
|
111
|
-
_this.isTimeout = true;
|
|
112
|
-
return true;
|
|
113
|
-
});
|
|
114
|
-
};
|
|
115
|
-
UserIdleService.prototype.getConfigValue = function () {
|
|
116
|
-
return {
|
|
117
|
-
idle: this.idle,
|
|
118
|
-
timeout: this.timeout,
|
|
119
|
-
ping: this.ping
|
|
120
|
-
};
|
|
121
|
-
};
|
|
122
|
-
/**
|
|
123
|
-
* Setup timer.
|
|
124
|
-
*
|
|
125
|
-
* Counts every seconds and return n+1 and fire timeout for last count.
|
|
126
|
-
* @param timeout Timeout in seconds.
|
|
127
|
-
*/
|
|
128
|
-
/**
|
|
129
|
-
* Setup timer.
|
|
130
|
-
*
|
|
131
|
-
* Counts every seconds and return n+1 and fire timeout for last count.
|
|
132
|
-
* @param timeout Timeout in seconds.
|
|
133
|
-
*/
|
|
134
|
-
UserIdleService.prototype.setupTimer = /**
|
|
135
|
-
* Setup timer.
|
|
136
|
-
*
|
|
137
|
-
* Counts every seconds and return n+1 and fire timeout for last count.
|
|
138
|
-
* @param timeout Timeout in seconds.
|
|
139
|
-
*/
|
|
140
|
-
function (timeout) {
|
|
141
|
-
var _this = this;
|
|
142
|
-
this.timer$ = rxjs_1.Observable.interval(1000)
|
|
143
|
-
.take(timeout)
|
|
144
|
-
.map(function () { return 1; })
|
|
145
|
-
.scan(function (acc, n) { return acc + n; })
|
|
146
|
-
.map(function (count) {
|
|
147
|
-
if (count === timeout) {
|
|
148
|
-
_this.timeout$.next(true);
|
|
149
|
-
}
|
|
150
|
-
return count;
|
|
151
|
-
});
|
|
152
|
-
};
|
|
153
|
-
/**
|
|
154
|
-
* Setup ping.
|
|
155
|
-
*
|
|
156
|
-
* Pings every ping-seconds only if is not timeout.
|
|
157
|
-
* @param {number} ping
|
|
158
|
-
*/
|
|
159
|
-
/**
|
|
160
|
-
* Setup ping.
|
|
161
|
-
*
|
|
162
|
-
* Pings every ping-seconds only if is not timeout.
|
|
163
|
-
* @param {number} ping
|
|
164
|
-
*/
|
|
165
|
-
UserIdleService.prototype.setupPing = /**
|
|
166
|
-
* Setup ping.
|
|
167
|
-
*
|
|
168
|
-
* Pings every ping-seconds only if is not timeout.
|
|
169
|
-
* @param {number} ping
|
|
170
|
-
*/
|
|
171
|
-
function (ping) {
|
|
172
|
-
var _this = this;
|
|
173
|
-
this.ping$ = rxjs_1.Observable.interval(ping * 1000).filter(function () { return !_this.isTimeout; });
|
|
174
|
-
};
|
|
175
|
-
UserIdleService.decorators = [
|
|
176
|
-
{ type: core_1.Injectable },
|
|
177
|
-
];
|
|
178
|
-
/** @nocollapse */
|
|
179
|
-
UserIdleService.ctorParameters = function () { return [
|
|
180
|
-
{ type: user_idle_config_1.UserIdleServiceConfig, decorators: [{ type: core_1.Optional },] },
|
|
181
|
-
]; };
|
|
182
|
-
return UserIdleService;
|
|
183
|
-
}());
|
|
184
|
-
exports.UserIdleService = UserIdleService;
|
|
185
|
-
//# sourceMappingURL=user-idle.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"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":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":8,"character":1}}],"members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Optional","line":46,"character":15}}]],"parameters":[{"__symbolic":"reference","module":"./user-idle.config","name":"UserIdleServiceConfig","line":46,"character":34}]}],"startWatching":[{"__symbolic":"method"}],"stopWatching":[{"__symbolic":"method"}],"stopTimer":[{"__symbolic":"method"}],"resetTimer":[{"__symbolic":"method"}],"onTimerStart":[{"__symbolic":"method"}],"onTimeout":[{"__symbolic":"method"}],"getConfigValue":[{"__symbolic":"method"}],"setupTimer":[{"__symbolic":"method"}],"setupPing":[{"__symbolic":"method"}]}}}}]
|
|
File without changes
|
|
File without changes
|
|
File without changes
|