@esfaenza/admin-module 11.2.1 → 11.2.4-beta2
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/bundles/esfaenza-admin-module.umd.js +113 -53
- package/bundles/esfaenza-admin-module.umd.js.map +1 -1
- package/bundles/esfaenza-admin-module.umd.min.js +2 -2
- package/bundles/esfaenza-admin-module.umd.min.js.map +1 -1
- package/esfaenza-admin-module.d.ts +1 -0
- package/esfaenza-admin-module.metadata.json +1 -1
- package/esm2015/esfaenza-admin-module.js +2 -1
- package/esm2015/lib/admin-module-messages.js +8 -0
- package/esm2015/lib/admin-module.comms.service.js +26 -0
- package/esm2015/lib/admin-module.module.js +28 -4
- package/esm2015/lib/components/audits/adm_audits.component.js +11 -9
- package/esm2015/lib/components/enqueues/adm_enq.component.js +11 -10
- package/esm2015/lib/components/logs/adm_logs.component.js +6 -6
- package/esm2015/lib/components/metrics/metrics_search.component.js +11 -10
- package/esm2015/lib/components/profiler/adm_profiler.component.js +11 -10
- package/esm2015/lib/components/topact/topact_search.component.js +11 -11
- package/esm2015/lib/components/workers/adm_wrk.component.js +11 -11
- package/esm2015/lib/models/shared/Locale.js +1 -1
- package/esm2015/lib/tokens.js +2 -1
- package/esm2015/public-api.js +2 -2
- package/fesm2015/esfaenza-admin-module.js +108 -49
- package/fesm2015/esfaenza-admin-module.js.map +1 -1
- package/lib/admin-module-messages.d.ts +6 -0
- package/lib/admin-module.comms.service.d.ts +6 -0
- package/lib/admin-module.module.d.ts +7 -0
- package/lib/components/audits/adm_audits.component.d.ts +4 -3
- package/lib/components/enqueues/adm_enq.component.d.ts +4 -4
- package/lib/components/logs/adm_logs.component.d.ts +3 -3
- package/lib/components/metrics/metrics_search.component.d.ts +4 -4
- package/lib/components/profiler/adm_profiler.component.d.ts +4 -4
- package/lib/components/topact/topact_search.component.d.ts +4 -4
- package/lib/components/workers/adm_wrk.component.d.ts +4 -4
- package/lib/tokens.d.ts +1 -0
- package/package.json +2 -1
- package/public-api.d.ts +1 -1
- package/esm2015/lib/communications/base/BaseModuleCommunicationsConsumer.js +0 -3
- package/lib/communications/base/BaseModuleCommunicationsConsumer.d.ts +0 -3
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/forms'), require('@angular/core'), require('@angular/router'), require('@angular/material/icon'), require('@angular/material/datepicker'), require('@esfaenza/material-dayjs-adapter'), require('@angular/material/input'), require('@angular-material-components/datetime-picker'), require('ngx-bootstrap/modal'), require('@ctrl/ngx-csv'), require('ngx-bootstrap/dropdown'), require('ngx-bootstrap/tooltip'), require('@esfaenza/es-table'), require('@esfaenza/forms-and-validations'), require('@esfaenza/es-charts'), require('@esfaenza/gertrude'), require('@esfaenza/localizations'), require('@esfaenza/ngx-contextmenu'), require('@esfaenza/preferences'), require('@esfaenza/httpservice'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@esfaenza/admin-module', ['exports', '@angular/common', '@angular/forms', '@angular/core', '@angular/router', '@angular/material/icon', '@angular/material/datepicker', '@esfaenza/material-dayjs-adapter', '@angular/material/input', '@angular-material-components/datetime-picker', 'ngx-bootstrap/modal', '@ctrl/ngx-csv', 'ngx-bootstrap/dropdown', 'ngx-bootstrap/tooltip', '@esfaenza/es-table', '@esfaenza/forms-and-validations', '@esfaenza/es-charts', '@esfaenza/gertrude', '@esfaenza/localizations', '@esfaenza/ngx-contextmenu', '@esfaenza/preferences', '@esfaenza/httpservice', '@
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.esfaenza = global.esfaenza || {}, global.esfaenza['admin-module'] = {}), global.ng.common, global.ng.forms, global.ng.core, global.ng.router, global.ng.material.icon, global.ng.material.datepicker, global.materialDayjsAdapter, global.ng.material.input, global.datetimePicker, global.modal, global.ngxCsv, global.dropdown, global.tooltip, global.esTable, global.formsAndValidations, global.esCharts, global.gertrude, global.localizations, global.ngxContextmenu, global.preferences, global.httpservice, global.ng.common.http, global.
|
|
5
|
-
}(this, (function (exports, common, forms, core, router, icon, datepicker, materialDayjsAdapter, input, datetimePicker, modal, ngxCsv, dropdown, tooltip, esTable, formsAndValidations, esCharts, gertrude, localizations, ngxContextmenu, preferences, httpservice,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/forms'), require('@angular/core'), require('@angular/router'), require('@angular/material/icon'), require('@angular/material/datepicker'), require('@esfaenza/material-dayjs-adapter'), require('@angular/material/input'), require('@angular-material-components/datetime-picker'), require('ngx-bootstrap/modal'), require('@ctrl/ngx-csv'), require('ngx-bootstrap/dropdown'), require('ngx-bootstrap/tooltip'), require('rxjs'), require('rxjs/operators'), require('@esfaenza/es-table'), require('@esfaenza/forms-and-validations'), require('@esfaenza/es-charts'), require('@esfaenza/gertrude'), require('@esfaenza/localizations'), require('@esfaenza/ngx-contextmenu'), require('@esfaenza/preferences'), require('@esfaenza/httpservice'), require('@esfaenza/extensions'), require('@angular/common/http'), require('cerialize')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@esfaenza/admin-module', ['exports', '@angular/common', '@angular/forms', '@angular/core', '@angular/router', '@angular/material/icon', '@angular/material/datepicker', '@esfaenza/material-dayjs-adapter', '@angular/material/input', '@angular-material-components/datetime-picker', 'ngx-bootstrap/modal', '@ctrl/ngx-csv', 'ngx-bootstrap/dropdown', 'ngx-bootstrap/tooltip', 'rxjs', 'rxjs/operators', '@esfaenza/es-table', '@esfaenza/forms-and-validations', '@esfaenza/es-charts', '@esfaenza/gertrude', '@esfaenza/localizations', '@esfaenza/ngx-contextmenu', '@esfaenza/preferences', '@esfaenza/httpservice', '@esfaenza/extensions', '@angular/common/http', 'cerialize'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.esfaenza = global.esfaenza || {}, global.esfaenza['admin-module'] = {}), global.ng.common, global.ng.forms, global.ng.core, global.ng.router, global.ng.material.icon, global.ng.material.datepicker, global.materialDayjsAdapter, global.ng.material.input, global.datetimePicker, global.modal, global.ngxCsv, global.dropdown, global.tooltip, global.rxjs, global.rxjs.operators, global.esTable, global.formsAndValidations, global.esCharts, global.gertrude, global.localizations, global.ngxContextmenu, global.preferences, global.httpservice, global.extensions, global.ng.common.http, global.cerialize));
|
|
5
|
+
}(this, (function (exports, common, forms, core, router, icon, datepicker, materialDayjsAdapter, input, datetimePicker, modal, ngxCsv, dropdown, tooltip, rxjs, operators, esTable, formsAndValidations, esCharts, gertrude, localizations, ngxContextmenu, preferences, httpservice, extensions, http, cerialize) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/*! *****************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -322,12 +322,6 @@
|
|
|
322
322
|
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
323
323
|
}
|
|
324
324
|
|
|
325
|
-
var BaseModuleCommunicationsConsumer = /** @class */ (function () {
|
|
326
|
-
function BaseModuleCommunicationsConsumer() {
|
|
327
|
-
}
|
|
328
|
-
return BaseModuleCommunicationsConsumer;
|
|
329
|
-
}());
|
|
330
|
-
|
|
331
325
|
var AuditsView = /** @class */ (function (_super) {
|
|
332
326
|
__extends(AuditsView, _super);
|
|
333
327
|
function AuditsView() {
|
|
@@ -361,7 +355,8 @@
|
|
|
361
355
|
};
|
|
362
356
|
|
|
363
357
|
var ADM_LOCALE = new core.InjectionToken('ADM_LOCALE');
|
|
364
|
-
var ADM_BACKEND_URL = new core.InjectionToken('ADM_BACKEND_URL');
|
|
358
|
+
var ADM_BACKEND_URL = new core.InjectionToken('ADM_BACKEND_URL');
|
|
359
|
+
var ADM_MODULE_PATH = new core.InjectionToken('ADM_MODULE_PATH');
|
|
365
360
|
|
|
366
361
|
var AdmAuditLoc = /** @class */ (function (_super) {
|
|
367
362
|
__extends(AdmAuditLoc, _super);
|
|
@@ -394,19 +389,20 @@
|
|
|
394
389
|
]; };
|
|
395
390
|
|
|
396
391
|
var AdmAuditsComponent = /** @class */ (function () {
|
|
397
|
-
function AdmAuditsComponent(lc,
|
|
392
|
+
function AdmAuditsComponent(lc, intercom, localStorage, http, route, location, backend, mod) {
|
|
398
393
|
this.lc = lc;
|
|
394
|
+
this.intercom = intercom;
|
|
399
395
|
this.localStorage = localStorage;
|
|
400
|
-
this._state = _state;
|
|
401
396
|
this.http = http;
|
|
402
397
|
this.route = route;
|
|
403
398
|
this.location = location;
|
|
404
399
|
this.backend = backend;
|
|
400
|
+
this.mod = mod;
|
|
405
401
|
this.searchView = new AuditsView();
|
|
406
402
|
this.Actions = [];
|
|
407
403
|
this.HttpMethods = [];
|
|
408
404
|
this.searchInProgress = false;
|
|
409
|
-
this.
|
|
405
|
+
this.intercom.send(extensions.InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
|
|
410
406
|
this.HttpMethods = [
|
|
411
407
|
{ id: "GET", description: "GET" },
|
|
412
408
|
{ id: "POST", description: "POST" },
|
|
@@ -441,7 +437,7 @@
|
|
|
441
437
|
return [3 /*break*/, 4];
|
|
442
438
|
case 2:
|
|
443
439
|
this.init(null);
|
|
444
|
-
this.location.replaceState("/pages/
|
|
440
|
+
this.location.replaceState("/pages/" + this.mod + "/serveraudits");
|
|
445
441
|
this.route.snapshot.queryParams = [];
|
|
446
442
|
return [4 /*yield*/, this.localStorage.removeItem("HotAudittato").toPromise()];
|
|
447
443
|
case 3:
|
|
@@ -492,12 +488,13 @@
|
|
|
492
488
|
];
|
|
493
489
|
AdmAuditsComponent.ctorParameters = function () { return [
|
|
494
490
|
{ type: localizations.LocalizationService },
|
|
491
|
+
{ type: extensions.InterComService },
|
|
495
492
|
{ type: preferences.PreferencesService },
|
|
496
|
-
{ type: BaseModuleCommunicationsConsumer },
|
|
497
493
|
{ type: httpservice.HTTPService },
|
|
498
494
|
{ type: router.ActivatedRoute },
|
|
499
495
|
{ type: common.Location },
|
|
500
|
-
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] }
|
|
496
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] },
|
|
497
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_MODULE_PATH,] }] }
|
|
501
498
|
]; };
|
|
502
499
|
|
|
503
500
|
var ProcessesView = /** @class */ (function (_super) {
|
|
@@ -542,16 +539,17 @@
|
|
|
542
539
|
]; };
|
|
543
540
|
|
|
544
541
|
var AdmWrkComponent = /** @class */ (function () {
|
|
545
|
-
function AdmWrkComponent(utiExts, msgExts, lc, localStorage,
|
|
542
|
+
function AdmWrkComponent(utiExts, msgExts, lc, localStorage, intercom, http, route, location, backend, mod) {
|
|
546
543
|
this.utiExts = utiExts;
|
|
547
544
|
this.msgExts = msgExts;
|
|
548
545
|
this.lc = lc;
|
|
549
546
|
this.localStorage = localStorage;
|
|
550
|
-
this.
|
|
547
|
+
this.intercom = intercom;
|
|
551
548
|
this.http = http;
|
|
552
549
|
this.route = route;
|
|
553
550
|
this.location = location;
|
|
554
551
|
this.backend = backend;
|
|
552
|
+
this.mod = mod;
|
|
555
553
|
this.searchView = new ProcessesView();
|
|
556
554
|
this.DynamicOps = [];
|
|
557
555
|
this.valueToShow = "";
|
|
@@ -559,7 +557,7 @@
|
|
|
559
557
|
this.newCg = "";
|
|
560
558
|
this.CGs = [];
|
|
561
559
|
this.CgDictionariesLoaded = false;
|
|
562
|
-
this.
|
|
560
|
+
this.intercom.send(extensions.InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
|
|
563
561
|
this.DynamicOps = [
|
|
564
562
|
new esTable.EsTableOperationDefinition("trace_on", this.lc.loc("Activate Process Tracing"), "fa fa-circle text-danger", "", "trace_enabled", "N"),
|
|
565
563
|
new esTable.EsTableOperationDefinition("trace_off", this.lc.loc("Deactivate Process Tracing"), "fa fa-circle text-success", "", "trace_enabled", "Y"),
|
|
@@ -590,7 +588,7 @@
|
|
|
590
588
|
return [3 /*break*/, 4];
|
|
591
589
|
case 2:
|
|
592
590
|
this.init(null);
|
|
593
|
-
this.location.replaceState("/pages/
|
|
591
|
+
this.location.replaceState("/pages/" + this.mod + "/serverworkers");
|
|
594
592
|
this.route.snapshot.queryParams = [];
|
|
595
593
|
return [4 /*yield*/, this.localStorage.removeItem("HotProcessato").toPromise()];
|
|
596
594
|
case 3:
|
|
@@ -712,11 +710,12 @@
|
|
|
712
710
|
{ type: extensions.MessageService },
|
|
713
711
|
{ type: localizations.LocalizationService },
|
|
714
712
|
{ type: preferences.PreferencesService },
|
|
715
|
-
{ type:
|
|
713
|
+
{ type: extensions.InterComService },
|
|
716
714
|
{ type: httpservice.HTTPService },
|
|
717
715
|
{ type: router.ActivatedRoute },
|
|
718
716
|
{ type: common.Location },
|
|
719
|
-
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] }
|
|
717
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] },
|
|
718
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_MODULE_PATH,] }] }
|
|
720
719
|
]; };
|
|
721
720
|
AdmWrkComponent.propDecorators = {
|
|
722
721
|
cgFrom: [{ type: core.ViewChild, args: ["cgFrom",] }],
|
|
@@ -861,17 +860,18 @@
|
|
|
861
860
|
]; };
|
|
862
861
|
|
|
863
862
|
var AdmProfilerComponent = /** @class */ (function () {
|
|
864
|
-
function AdmProfilerComponent(expExts, lc, localStorage, location,
|
|
863
|
+
function AdmProfilerComponent(expExts, lc, localStorage, location, intercom, http, route, backend, mod) {
|
|
865
864
|
this.expExts = expExts;
|
|
866
865
|
this.lc = lc;
|
|
867
866
|
this.localStorage = localStorage;
|
|
868
867
|
this.location = location;
|
|
869
|
-
this.
|
|
868
|
+
this.intercom = intercom;
|
|
870
869
|
this.http = http;
|
|
871
870
|
this.route = route;
|
|
872
871
|
this.backend = backend;
|
|
872
|
+
this.mod = mod;
|
|
873
873
|
this.searchView = new ProfilerDataNodesView();
|
|
874
|
-
this.
|
|
874
|
+
this.intercom.send(extensions.InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
|
|
875
875
|
}
|
|
876
876
|
AdmProfilerComponent.prototype.ngOnInit = function () {
|
|
877
877
|
var _this = this;
|
|
@@ -895,7 +895,7 @@
|
|
|
895
895
|
return [3 /*break*/, 4];
|
|
896
896
|
case 2:
|
|
897
897
|
this.init(null);
|
|
898
|
-
this.location.replaceState("/pages/
|
|
898
|
+
this.location.replaceState("/pages/" + this.mod + "/profiler");
|
|
899
899
|
this.route.snapshot.queryParams = [];
|
|
900
900
|
return [4 /*yield*/, this.localStorage.removeItem("HotSearchProfilato").toPromise()];
|
|
901
901
|
case 3:
|
|
@@ -959,10 +959,11 @@
|
|
|
959
959
|
{ type: localizations.LocalizationService },
|
|
960
960
|
{ type: preferences.PreferencesService },
|
|
961
961
|
{ type: common.Location },
|
|
962
|
-
{ type:
|
|
962
|
+
{ type: extensions.InterComService },
|
|
963
963
|
{ type: httpservice.HTTPService },
|
|
964
964
|
{ type: router.ActivatedRoute },
|
|
965
|
-
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] }
|
|
965
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] },
|
|
966
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_MODULE_PATH,] }] }
|
|
966
967
|
]; };
|
|
967
968
|
|
|
968
969
|
var TopActivitiesDataView = /** @class */ (function (_super) {
|
|
@@ -1006,16 +1007,17 @@
|
|
|
1006
1007
|
]; };
|
|
1007
1008
|
|
|
1008
1009
|
var AdmTopActivitiesComponent = /** @class */ (function () {
|
|
1009
|
-
function AdmTopActivitiesComponent(dateExts, lc, localStorage, location,
|
|
1010
|
+
function AdmTopActivitiesComponent(dateExts, lc, localStorage, location, intercom, http, route, backend, mod) {
|
|
1010
1011
|
var _a;
|
|
1011
1012
|
this.dateExts = dateExts;
|
|
1012
1013
|
this.lc = lc;
|
|
1013
1014
|
this.localStorage = localStorage;
|
|
1014
1015
|
this.location = location;
|
|
1015
|
-
this.
|
|
1016
|
+
this.intercom = intercom;
|
|
1016
1017
|
this.http = http;
|
|
1017
1018
|
this.route = route;
|
|
1018
1019
|
this.backend = backend;
|
|
1020
|
+
this.mod = mod;
|
|
1019
1021
|
this.searchView = new TopActivitiesDataView();
|
|
1020
1022
|
this.autoUpdate = false;
|
|
1021
1023
|
this.seconds = "5";
|
|
@@ -1030,7 +1032,7 @@
|
|
|
1030
1032
|
_a["sleeptime"] = "Sleep",
|
|
1031
1033
|
_a["iotime"] = "IO",
|
|
1032
1034
|
_a);
|
|
1033
|
-
this.
|
|
1035
|
+
this.intercom.send(extensions.InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
|
|
1034
1036
|
}
|
|
1035
1037
|
AdmTopActivitiesComponent.prototype.ngOnInit = function () {
|
|
1036
1038
|
var _this = this;
|
|
@@ -1054,7 +1056,7 @@
|
|
|
1054
1056
|
return [3 /*break*/, 4];
|
|
1055
1057
|
case 2:
|
|
1056
1058
|
this.init(null);
|
|
1057
|
-
this.location.replaceState("/pages/
|
|
1059
|
+
this.location.replaceState("/pages/" + this.mod + "/topact");
|
|
1058
1060
|
this.route.snapshot.queryParams = [];
|
|
1059
1061
|
return [4 /*yield*/, this.localStorage.removeItem("HotSearchTopAct").toPromise()];
|
|
1060
1062
|
case 3:
|
|
@@ -1199,10 +1201,11 @@
|
|
|
1199
1201
|
{ type: localizations.LocalizationService },
|
|
1200
1202
|
{ type: preferences.PreferencesService },
|
|
1201
1203
|
{ type: common.Location },
|
|
1202
|
-
{ type:
|
|
1204
|
+
{ type: extensions.InterComService },
|
|
1203
1205
|
{ type: httpservice.HTTPService },
|
|
1204
1206
|
{ type: router.ActivatedRoute },
|
|
1205
|
-
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] }
|
|
1207
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] },
|
|
1208
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_MODULE_PATH,] }] }
|
|
1206
1209
|
]; };
|
|
1207
1210
|
|
|
1208
1211
|
var LocksView = /** @class */ (function (_super) {
|
|
@@ -1233,17 +1236,18 @@
|
|
|
1233
1236
|
]; };
|
|
1234
1237
|
|
|
1235
1238
|
var AdmEnqComponent = /** @class */ (function () {
|
|
1236
|
-
function AdmEnqComponent(lc, localStorage, expExts,
|
|
1239
|
+
function AdmEnqComponent(lc, localStorage, expExts, intercom, http, route, location, backend, mod) {
|
|
1237
1240
|
this.lc = lc;
|
|
1238
1241
|
this.localStorage = localStorage;
|
|
1239
1242
|
this.expExts = expExts;
|
|
1240
|
-
this.
|
|
1243
|
+
this.intercom = intercom;
|
|
1241
1244
|
this.http = http;
|
|
1242
1245
|
this.route = route;
|
|
1243
1246
|
this.location = location;
|
|
1244
1247
|
this.backend = backend;
|
|
1248
|
+
this.mod = mod;
|
|
1245
1249
|
this.locksView = new LocksView();
|
|
1246
|
-
this.
|
|
1250
|
+
this.intercom.send(extensions.InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
|
|
1247
1251
|
}
|
|
1248
1252
|
AdmEnqComponent.prototype.ngOnInit = function () {
|
|
1249
1253
|
var _this = this;
|
|
@@ -1266,7 +1270,7 @@
|
|
|
1266
1270
|
return [3 /*break*/, 4];
|
|
1267
1271
|
case 2:
|
|
1268
1272
|
this.init(null);
|
|
1269
|
-
this.location.replaceState("/pages/
|
|
1273
|
+
this.location.replaceState("/pages/" + this.mod + "/serverenqueues");
|
|
1270
1274
|
this.route.snapshot.queryParams = [];
|
|
1271
1275
|
return [4 /*yield*/, this.localStorage.removeItem("HotEnqueue").toPromise()];
|
|
1272
1276
|
case 3:
|
|
@@ -1313,11 +1317,12 @@
|
|
|
1313
1317
|
{ type: localizations.LocalizationService },
|
|
1314
1318
|
{ type: preferences.PreferencesService },
|
|
1315
1319
|
{ type: extensions.ExportService },
|
|
1316
|
-
{ type:
|
|
1320
|
+
{ type: extensions.InterComService },
|
|
1317
1321
|
{ type: httpservice.HTTPService },
|
|
1318
1322
|
{ type: router.ActivatedRoute },
|
|
1319
1323
|
{ type: common.Location },
|
|
1320
|
-
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] }
|
|
1324
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] },
|
|
1325
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_MODULE_PATH,] }] }
|
|
1321
1326
|
]; };
|
|
1322
1327
|
|
|
1323
1328
|
var KeyValue = /** @class */ (function () {
|
|
@@ -1360,15 +1365,16 @@
|
|
|
1360
1365
|
]; };
|
|
1361
1366
|
|
|
1362
1367
|
var AdmMetricsComponent = /** @class */ (function () {
|
|
1363
|
-
function AdmMetricsComponent(dateExts, lc, localStorage, location,
|
|
1368
|
+
function AdmMetricsComponent(dateExts, lc, localStorage, location, intercom, http, route, backend, mod) {
|
|
1364
1369
|
this.dateExts = dateExts;
|
|
1365
1370
|
this.lc = lc;
|
|
1366
1371
|
this.localStorage = localStorage;
|
|
1367
1372
|
this.location = location;
|
|
1368
|
-
this.
|
|
1373
|
+
this.intercom = intercom;
|
|
1369
1374
|
this.http = http;
|
|
1370
1375
|
this.route = route;
|
|
1371
1376
|
this.backend = backend;
|
|
1377
|
+
this.mod = mod;
|
|
1372
1378
|
this.MetricsChartCache = {};
|
|
1373
1379
|
this.searchView = new MetricsView();
|
|
1374
1380
|
this.autoUpdate = false;
|
|
@@ -1377,7 +1383,7 @@
|
|
|
1377
1383
|
this.selectedInstance = "";
|
|
1378
1384
|
this.instanceRequired = false;
|
|
1379
1385
|
this.metricsToShow = [];
|
|
1380
|
-
this.
|
|
1386
|
+
this.intercom.send(extensions.InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
|
|
1381
1387
|
}
|
|
1382
1388
|
AdmMetricsComponent.prototype.ngOnInit = function () {
|
|
1383
1389
|
var _this = this;
|
|
@@ -1413,7 +1419,7 @@
|
|
|
1413
1419
|
return [3 /*break*/, 4];
|
|
1414
1420
|
case 2:
|
|
1415
1421
|
this.init(null);
|
|
1416
|
-
this.location.replaceState("/pages/
|
|
1422
|
+
this.location.replaceState("/pages/" + this.mod + "/metrics");
|
|
1417
1423
|
this.route.snapshot.queryParams = [];
|
|
1418
1424
|
return [4 /*yield*/, this.localStorage.removeItem("HotSearchMetrics").toPromise()];
|
|
1419
1425
|
case 3:
|
|
@@ -1535,21 +1541,22 @@
|
|
|
1535
1541
|
{ type: localizations.LocalizationService },
|
|
1536
1542
|
{ type: preferences.PreferencesService },
|
|
1537
1543
|
{ type: common.Location },
|
|
1538
|
-
{ type:
|
|
1544
|
+
{ type: extensions.InterComService },
|
|
1539
1545
|
{ type: httpservice.HTTPService },
|
|
1540
1546
|
{ type: router.ActivatedRoute },
|
|
1541
|
-
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] }
|
|
1547
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] },
|
|
1548
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_MODULE_PATH,] }] }
|
|
1542
1549
|
]; };
|
|
1543
1550
|
|
|
1544
1551
|
// Angular
|
|
1545
1552
|
var AdmLogsComponent = /** @class */ (function () {
|
|
1546
|
-
function AdmLogsComponent(
|
|
1547
|
-
this.
|
|
1553
|
+
function AdmLogsComponent(intercom, http, lc, route, backend) {
|
|
1554
|
+
this.intercom = intercom;
|
|
1548
1555
|
this.http = http;
|
|
1549
1556
|
this.lc = lc;
|
|
1550
1557
|
this.route = route;
|
|
1551
1558
|
this.backend = backend;
|
|
1552
|
-
this.
|
|
1559
|
+
this.intercom.send(extensions.InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
|
|
1553
1560
|
}
|
|
1554
1561
|
AdmLogsComponent.prototype.ngOnInit = function () {
|
|
1555
1562
|
var _this = this;
|
|
@@ -1564,13 +1571,44 @@
|
|
|
1564
1571
|
},] }
|
|
1565
1572
|
];
|
|
1566
1573
|
AdmLogsComponent.ctorParameters = function () { return [
|
|
1567
|
-
{ type:
|
|
1574
|
+
{ type: extensions.InterComService },
|
|
1568
1575
|
{ type: httpservice.HTTPService },
|
|
1569
1576
|
{ type: localizations.LocalizationService },
|
|
1570
1577
|
{ type: router.ActivatedRoute },
|
|
1571
1578
|
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] }
|
|
1572
1579
|
]; };
|
|
1573
1580
|
|
|
1581
|
+
/** Chiave di questo modulo, da utilizzare per i messaggi */
|
|
1582
|
+
var MK_ADM = "EsAdminModule";
|
|
1583
|
+
(function (AdmMessageTypes) {
|
|
1584
|
+
AdmMessageTypes[AdmMessageTypes["Message"] = 0] = "Message";
|
|
1585
|
+
})(exports.AdmMessageTypes || (exports.AdmMessageTypes = {}));
|
|
1586
|
+
|
|
1587
|
+
var AdminModuleCommService = /** @class */ (function () {
|
|
1588
|
+
function AdminModuleCommService(intercom) {
|
|
1589
|
+
var _this = this;
|
|
1590
|
+
this.intercom = intercom;
|
|
1591
|
+
this.intercom.register(MK_ADM);
|
|
1592
|
+
this.intercom.outbounds[MK_ADM].subscribe(function (t) { _this.handleOutbound(t.type, t.message); });
|
|
1593
|
+
}
|
|
1594
|
+
AdminModuleCommService.prototype.handleOutbound = function (type, message) {
|
|
1595
|
+
switch (type) {
|
|
1596
|
+
case exports.AdmMessageTypes.Message:
|
|
1597
|
+
{
|
|
1598
|
+
if (myconfig.DEBUG_MODE)
|
|
1599
|
+
console.log("@admin-module:" + message);
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
};
|
|
1603
|
+
return AdminModuleCommService;
|
|
1604
|
+
}());
|
|
1605
|
+
AdminModuleCommService.decorators = [
|
|
1606
|
+
{ type: core.Injectable }
|
|
1607
|
+
];
|
|
1608
|
+
AdminModuleCommService.ctorParameters = function () { return [
|
|
1609
|
+
{ type: extensions.InterComService }
|
|
1610
|
+
]; };
|
|
1611
|
+
|
|
1574
1612
|
var ɵ0 = { title: "Search Application Processes", internalNavigation: false }, ɵ1 = { title: "Server Profiler", internalNavigation: false }, ɵ2 = { title: "Top Activities", internalNavigation: false }, ɵ3 = { title: "System Metrics", internalNavigation: false }, ɵ4 = { title: "Server Logs", internalNavigation: false }, ɵ5 = { title: "Search Application Audits", internalNavigation: false }, ɵ6 = { title: "Search Application Locks", internalNavigation: false };
|
|
1575
1613
|
var routeConfig = [
|
|
1576
1614
|
{
|
|
@@ -1619,6 +1657,17 @@
|
|
|
1619
1657
|
AdmEnqComponent,
|
|
1620
1658
|
AdmMetricsComponent
|
|
1621
1659
|
];
|
|
1660
|
+
/**
|
|
1661
|
+
* Funzione di inizializzazione che prende il servizio **AdminModuleCommService** e costringe Angular ad inizializzarlo. Dato che nel costruttore del servizio
|
|
1662
|
+
* c'è il collegamento al sistema di intercomunicazione questa funzione fisicamente causa la registrazione del modulo
|
|
1663
|
+
*/
|
|
1664
|
+
function initializeIntercomService(_) {
|
|
1665
|
+
// Mantenere almeno una riga di codice qui prima del return, altrimenti typescript prova a risolvere l'intera funzione ad una lamba che non è supportato dal compiler
|
|
1666
|
+
// Per info aggiuntive vedere: https://stackoverflow.com/questions/51976671/app-initializer-in-library-causes-lambda-not-supported-error
|
|
1667
|
+
var bootstrapMessage = "@esfaenza/admin-module: BOOTSTRAP";
|
|
1668
|
+
return function () { return rxjs.of().pipe(operators.tap(function () { console.log(bootstrapMessage); })); };
|
|
1669
|
+
}
|
|
1670
|
+
var ɵ7 = myconfig.LOCALE, ɵ8 = myconfig.BACKEND_URL;
|
|
1622
1671
|
var AdmModule = /** @class */ (function () {
|
|
1623
1672
|
function AdmModule() {
|
|
1624
1673
|
}
|
|
@@ -1627,7 +1676,13 @@
|
|
|
1627
1676
|
AdmModule.decorators = [
|
|
1628
1677
|
{ type: core.NgModule, args: [{
|
|
1629
1678
|
imports: __spread(MODULES),
|
|
1630
|
-
declarations: __spread(COMPONENTS)
|
|
1679
|
+
declarations: __spread(COMPONENTS),
|
|
1680
|
+
providers: [
|
|
1681
|
+
AdminModuleCommService,
|
|
1682
|
+
{ provide: ADM_LOCALE, useValue: ɵ7 },
|
|
1683
|
+
{ provide: ADM_BACKEND_URL, useValue: ɵ8 },
|
|
1684
|
+
{ provide: core.APP_INITIALIZER, useFactory: initializeIntercomService, deps: [AdminModuleCommService], multi: true }
|
|
1685
|
+
]
|
|
1631
1686
|
},] }
|
|
1632
1687
|
];
|
|
1633
1688
|
|
|
@@ -1637,8 +1692,10 @@
|
|
|
1637
1692
|
|
|
1638
1693
|
exports.ADM_BACKEND_URL = ADM_BACKEND_URL;
|
|
1639
1694
|
exports.ADM_LOCALE = ADM_LOCALE;
|
|
1695
|
+
exports.ADM_MODULE_PATH = ADM_MODULE_PATH;
|
|
1640
1696
|
exports.AdmModule = AdmModule;
|
|
1641
|
-
exports.
|
|
1697
|
+
exports.MK_ADM = MK_ADM;
|
|
1698
|
+
exports.initializeIntercomService = initializeIntercomService;
|
|
1642
1699
|
exports.routeConfig = routeConfig;
|
|
1643
1700
|
exports.ɵ0 = ɵ0;
|
|
1644
1701
|
exports.ɵ1 = ɵ1;
|
|
@@ -1647,6 +1704,8 @@
|
|
|
1647
1704
|
exports.ɵ4 = ɵ4;
|
|
1648
1705
|
exports.ɵ5 = ɵ5;
|
|
1649
1706
|
exports.ɵ6 = ɵ6;
|
|
1707
|
+
exports.ɵ7 = ɵ7;
|
|
1708
|
+
exports.ɵ8 = ɵ8;
|
|
1650
1709
|
exports.ɵa = AdmWrkComponent;
|
|
1651
1710
|
exports.ɵb = AdmWrkLoc;
|
|
1652
1711
|
exports.ɵc = AdmProfilerComponent;
|
|
@@ -1660,6 +1719,7 @@
|
|
|
1660
1719
|
exports.ɵk = AdmAuditLoc;
|
|
1661
1720
|
exports.ɵl = AdmEnqComponent;
|
|
1662
1721
|
exports.ɵm = AdmEnqLoc;
|
|
1722
|
+
exports.ɵn = AdminModuleCommService;
|
|
1663
1723
|
|
|
1664
1724
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1665
1725
|
|