@esfaenza/admin-module 11.2.12 → 11.2.13
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 +181 -12
- 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 +6 -3
- package/esfaenza-admin-module.metadata.json +1 -1
- package/esm2015/esfaenza-admin-module.js +7 -4
- package/esm2015/lib/admin-module.module.js +17 -9
- package/esm2015/lib/components/_shared/node_detail.component.js +2 -2
- package/esm2015/lib/components/_shared/node_detail.component.loc.js +3 -1
- package/esm2015/lib/components/dynamic_views/adm_dynamic_views.component.js +107 -0
- package/esm2015/lib/components/dynamic_views/adm_dynamic_views.component.loc.js +19 -0
- package/esm2015/lib/components/profiler/adm_profiler.component.js +2 -2
- package/esm2015/lib/models/components/DynamicViewsView.js +5 -0
- package/esm2015/lib/models/components/NodeStats.js +1 -1
- package/esm2015/lib/models/components/NodeWaitStack.js +3 -0
- package/esm2015/lib/models/externals/Repository.js +3 -1
- package/esm2015/lib/pipes/format_time.pipe.js +23 -0
- package/fesm2015/esfaenza-admin-module.js +153 -11
- package/fesm2015/esfaenza-admin-module.js.map +1 -1
- package/lib/admin-module.module.d.ts +8 -0
- package/lib/components/dynamic_views/adm_dynamic_views.component.d.ts +30 -0
- package/lib/components/dynamic_views/adm_dynamic_views.component.loc.d.ts +4 -0
- package/lib/models/components/DynamicViewsView.d.ts +5 -0
- package/lib/models/components/NodeStats.d.ts +2 -0
- package/lib/models/components/NodeWaitStack.d.ts +6 -0
- package/lib/models/externals/Repository.d.ts +2 -0
- package/lib/pipes/format_time.pipe.d.ts +6 -0
- package/package.json +1 -1
|
@@ -342,8 +342,10 @@
|
|
|
342
342
|
POST_Adm_GetMetrics: "/api/Adm/GetMetrics",
|
|
343
343
|
POST_Adm_GetProfilerDataNodes: "/api/Adm/GetProfilerDataNodes",
|
|
344
344
|
POST_Adm_GetServerAudits: "/api/Adm/GetServerAudits",
|
|
345
|
+
POST_Adm_GetDynamicViewData: "/api/Adm/GetDynamicViewData",
|
|
345
346
|
POST_Adm_GetServerLocks: "/api/Adm/GetServerLocks",
|
|
346
347
|
GET_Adm_GetServerLogs: "/api/Adm/GetServerLogs",
|
|
348
|
+
GET_Adm_GetDynamicViews: "/api/Adm/GetDynamicViews",
|
|
347
349
|
POST_Adm_GetServerWorkers: "/api/Adm/GetServerWorkers",
|
|
348
350
|
POST_Adm_GetTopActivities: "/api/Adm/GetTopActivities",
|
|
349
351
|
GET_Adm_GetWorkerStatus: "/api/Adm/GetWorkerStatus",
|
|
@@ -977,7 +979,7 @@
|
|
|
977
979
|
{ type: core.Component, args: [{
|
|
978
980
|
selector: "adm_profiler",
|
|
979
981
|
providers: [{ provide: localizations.LocalizationService, useClass: AdmProfilerComponentLoc }],
|
|
980
|
-
template: "<div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card app-overflow-visible\" widget>\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">{{'Server Profiler' | localize : lc}}</span> \r\n </div>\r\n <div class=\"card-body widget-body\">\r\n <div class=\"col-md-12 bottom-15\">\r\n <form role=\"form\">\r\n <div class=\"row app-first-filter-line\">\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterfrom\" name=\"filterfrom\" [Placeholder]=\"'From' | localize : lc\"></form-date>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterto\" name=\"filterto\" [Placeholder]=\"'To' | localize : lc\"></form-date>\r\n </div>\r\n <button [disabled]=\"searchView.searchinprogress\" class=\"input-group-addon btn app-btn-search app-margin-top-20\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </form>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <p *ngIf=\"!searchView\"><em>{{'Loading Data' | localize : lc}}</em></p>\r\n <div *ngIf=\"searchView\">\r\n <es-table [(ngModel)]=\"searchView\" [Hierarchy]=\"true\" [OrderByColumn]=\"false\" [ParentKey]=\"'parentid'\"\r\n [OwnKey]=\"'id'\" [StartsExpanded]=\"false\" [ExportFunction]=\"prepareExport.bind(this)\" [Export]=\"true\"\r\n [ExportFileName]=\"'Profiler Export.csv'\" [HidePaging]=\"true\" (onSearchRequest)=\"sendSearch($event);\">\r\n \r\n <span *th=\"'1'\">{{'ID' | localize : lc}}</span>\r\n <span *th=\"'2'\">{{'Description' | localize : lc}}</span>\r\n <span *th=\"'3'\">{{'Calls' | localize : lc}}</span>\r\n <span *th=\"'4'\">{{'Time' | localize : lc}}</span>\r\n <span *th=\"'5'\">{{'Peak Time' | localize : lc}}</span>\r\n <span *th=\"'6'\">{{'Min. Time' | localize : lc}}</span>\r\n <span *th=\"'7'\">{{'Avg. Time' | localize : lc}}</span>\r\n <span *th=\"'8'\">{{'Specific Time' | localize : lc}}</span>\r\n <span *th=\"'9'\">{{'Percentage' | localize : lc}}</span>\r\n <span *th=\"'10'\">{{'Calls for Period' | localize : lc}}</span>\r\n <span *th=\"'11'\">{{'Time for Period' | localize : lc}}</span>\r\n <span *th=\"'12'\">{{'Peak Time for Period' | localize : lc}}</span>\r\n <span *th=\"'13'\">{{'Min. Time for Period' | localize : lc}}</span>\r\n <span *th=\"'14'\">{{'Avg. Time for Period' | localize : lc}}</span>\r\n <span *th=\"'15'\">{{'Specific Time for Period' | localize : lc}}</span>\r\n <span *th=\"'16'\">{{'Percentage for Period' | localize : lc}}</span>\r\n <span *th=\"'17'\">{{'Event Type Name' | localize : lc}}</span>\r\n <span *th=\"'18'\">{{'Wait Class Name' | localize : lc}}</span>\r\n\r\n <span *td=\"'1'; let item\"><span class=\"app-link app-inline\" (click)=\"loadNodeDetails(item.id); dlgNodeDetails.show();\">{{item.id}}</span></span>\r\n <span *td=\"'2'; let item\" title=\"{{item.description}}\">{{item.description.length <= 50 ? item.description : item.description.substr(0,50) + \"[...]\" }}</span>\r\n <span *td=\"'3'; let item\">{{item.calls}}</span>\r\n <span *td=\"'4'; let item\">{{item.time}}</span>\r\n <span *td=\"'5'; let item\">{{item.peaktime}}</span>\r\n <span *td=\"'6'; let item\">{{item.mintime}}</span>\r\n <span *td=\"'7'; let item\">{{item.avgtime}}</span>\r\n <span *td=\"'8'; let item\">{{item.timewithoutchildren}}</span>\r\n <span *td=\"'9'; let item\">{{item.percentage}}</span>\r\n <span *td=\"'10' let item\">{{item.snapdeltacalls}}</span>\r\n <span *td=\"'11' let item\">{{item.snapdeltatime}}</span>\r\n <span *td=\"'12' let item\">{{item.snappeaktime}}</span>\r\n <span *td=\"'13' let item\">{{item.snapmintime}}</span>\r\n <span *td=\"'14' let item\">{{item.snapavgtime}}</span>\r\n <span *td=\"'15' let item\">{{item.snaptimewithoutchildren}}</span>\r\n <span *td=\"'16' let item\">{{item.snappercentage}}</span>\r\n <span *td=\"'17' let item\">{{item.eventtypename}}</span>\r\n <span *td=\"'18' let item\">{{item.waitclassname}}</span>\r\n </es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div bsModal #dlgNodeDetails=\"bs-modal\" class=\"modal fade\" role=\"dialog\" aria-hidden=\"true\">\r\n <node-detail *ngIf=\"NodeDetails\" [NodeDetails]=\"NodeDetails\" (onClose)=\"dlgNodeDetails.hide()\"></node-detail>\r\n</div>"
|
|
982
|
+
template: "<div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card app-overflow-visible\" widget>\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">{{'Server Profiler' | localize : lc}}</span> \r\n </div>\r\n <div class=\"card-body widget-body\">\r\n <div class=\"col-md-12 bottom-15\">\r\n <form role=\"form\">\r\n <div class=\"row app-first-filter-line\">\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterfrom\" name=\"filterfrom\" [Placeholder]=\"'From' | localize : lc\"></form-date>\r\n </div>\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-date [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filterto\" name=\"filterto\" [Placeholder]=\"'To' | localize : lc\"></form-date>\r\n </div>\r\n <button [disabled]=\"searchView.searchinprogress\" class=\"input-group-addon btn app-btn-search app-margin-top-20\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </form>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <p *ngIf=\"!searchView\"><em>{{'Loading Data' | localize : lc}}</em></p>\r\n <div *ngIf=\"searchView\">\r\n <es-table [(ngModel)]=\"searchView\" [Hierarchy]=\"true\" [OrderByColumn]=\"false\" [ParentKey]=\"'parentid'\"\r\n [OwnKey]=\"'id'\" [StartsExpanded]=\"false\" [ExportFunction]=\"prepareExport.bind(this)\" [Export]=\"true\"\r\n [ExportFileName]=\"'Profiler Export.csv'\" [HidePaging]=\"true\" (onSearchRequest)=\"sendSearch($event);\">\r\n \r\n <span *th=\"'1'\">{{'ID' | localize : lc}}</span>\r\n <span *th=\"'2'\">{{'Description' | localize : lc}}</span>\r\n <span *th=\"'3'\">{{'Calls' | localize : lc}}</span>\r\n <span *th=\"'4'\">{{'Time' | localize : lc}}</span>\r\n <span *th=\"'5'\">{{'Peak Time' | localize : lc}}</span>\r\n <span *th=\"'6'\">{{'Min. Time' | localize : lc}}</span>\r\n <span *th=\"'7'\">{{'Avg. Time' | localize : lc}}</span>\r\n <span *th=\"'8'\">{{'Specific Time' | localize : lc}}</span>\r\n <span *th=\"'9'\">{{'Percentage' | localize : lc}}</span>\r\n <span *th=\"'10'\">{{'Calls for Period' | localize : lc}}</span>\r\n <span *th=\"'11'\">{{'Time for Period' | localize : lc}}</span>\r\n <span *th=\"'12'\">{{'Peak Time for Period' | localize : lc}}</span>\r\n <span *th=\"'13'\">{{'Min. Time for Period' | localize : lc}}</span>\r\n <span *th=\"'14'\">{{'Avg. Time for Period' | localize : lc}}</span>\r\n <span *th=\"'15'\">{{'Specific Time for Period' | localize : lc}}</span>\r\n <span *th=\"'16'\">{{'Percentage for Period' | localize : lc}}</span>\r\n <span *th=\"'17'\">{{'Event Type Name' | localize : lc}}</span>\r\n <span *th=\"'18'\">{{'Wait Class Name' | localize : lc}}</span>\r\n\r\n <span *td=\"'1'; let item\"><span class=\"app-link app-inline\" (click)=\"loadNodeDetails(item.id); dlgNodeDetails.show();\">{{item.id}}</span></span>\r\n <span *td=\"'2'; let item\" title=\"{{item.description}}\">{{item.description.length <= 50 ? item.description : item.description.substr(0,50) + \"[...]\" }}</span>\r\n <span *td=\"'3'; let item\">{{item.calls}}</span>\r\n <span *td=\"'4'; let item\">{{item.time | format_time}}</span>\r\n <span *td=\"'5'; let item\">{{item.peaktime | format_time}}</span>\r\n <span *td=\"'6'; let item\">{{item.mintime | format_time}}</span>\r\n <span *td=\"'7'; let item\">{{item.avgtime | format_time}}</span>\r\n <span *td=\"'8'; let item\">{{item.timewithoutchildren | format_time}}</span>\r\n <span *td=\"'9'; let item\">{{item.percentage}}</span>\r\n <span *td=\"'10' let item\">{{item.snapdeltacalls}}</span>\r\n <span *td=\"'11' let item\">{{item.snapdeltatime}}</span>\r\n <span *td=\"'12' let item\">{{item.snappeaktime | format_time}}</span>\r\n <span *td=\"'13' let item\">{{item.snapmintime | format_time}}</span>\r\n <span *td=\"'14' let item\">{{item.snapavgtime | format_time}}</span>\r\n <span *td=\"'15' let item\">{{item.snaptimewithoutchildren | format_time}}</span>\r\n <span *td=\"'16' let item\">{{item.snappercentage}}</span>\r\n <span *td=\"'17' let item\">{{item.eventtypename}}</span>\r\n <span *td=\"'18' let item\">{{item.waitclassname}}</span>\r\n </es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<div bsModal #dlgNodeDetails=\"bs-modal\" class=\"modal fade\" role=\"dialog\" aria-hidden=\"true\">\r\n <node-detail *ngIf=\"NodeDetails\" [NodeDetails]=\"NodeDetails\" (onClose)=\"dlgNodeDetails.hide()\"></node-detail>\r\n</div>"
|
|
981
983
|
},] }
|
|
982
984
|
];
|
|
983
985
|
AdmProfilerComponent.ctorParameters = function () { return [
|
|
@@ -1640,6 +1642,8 @@
|
|
|
1640
1642
|
_super.prototype.set.call(_this, "en->it", "Elapsed (With Children)", ["Tempo Trascorso (Con Figli)"]);
|
|
1641
1643
|
_super.prototype.set.call(_this, "en->it", "Wait Class", ["Classe Attesa"]);
|
|
1642
1644
|
_super.prototype.set.call(_this, "en->it", "Elapsed (No Children)", ["Tempo Trascorso (Non Figli)"]);
|
|
1645
|
+
_super.prototype.set.call(_this, "en->it", "Wait Stack", ["Stack di Attesa"]);
|
|
1646
|
+
_super.prototype.set.call(_this, "en->it", "Resources Usage", ["Utilizzo Risorse"]);
|
|
1643
1647
|
return _this;
|
|
1644
1648
|
}
|
|
1645
1649
|
return NodeDetailLoc;
|
|
@@ -1680,7 +1684,7 @@
|
|
|
1680
1684
|
{ type: core.Component, args: [{
|
|
1681
1685
|
selector: "node-detail",
|
|
1682
1686
|
viewProviders: [{ provide: localizations.LocalizationService, useClass: NodeDetailLoc }],
|
|
1683
|
-
template: "<div class=\"modal-dialog modal-
|
|
1687
|
+
template: "<div class=\"modal-dialog modal-xl\" cdkDrag>\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\" cdkDragHandle>\r\n <h4 class=\"modal-title pull-left\">\r\n {{'Activity Node Details' | localize : lc}}\r\n <span *ngIf=\"NodeDetails\"> {{NodeDetails.nodeid}} - {{NodeDetails.nodedescription}}</span>\r\n </h4>\r\n <button type=\"button\" class=\"close pull-right\" (click)=\"closeDialog()\" aria-label=\"Close\">\r\n <span aria-hidden=\"true\">×</span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body\" *ngIf=\"NodeDetails\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6\">\r\n <strong>{{'Event Type' | localize: lc}}</strong>: {{NodeDetails.eventtypedesc}}\r\n </div>\r\n <div class=\"col-md-6\">\r\n <strong>{{'Elapsed (With Children)' | localize: lc}}</strong>: {{NodeDetails.elapsed}}\r\n </div>\r\n <div class=\"col-md-6\">\r\n <strong>{{'Wait Class' | localize: lc}}</strong>: {{NodeDetails.waitclassname}}\r\n </div>\r\n <div class=\"col-md-6\">\r\n <strong>{{'Elapsed (No Children)' | localize: lc}}</strong>: {{NodeDetails.elapsedlesschildren}}\r\n </div>\r\n </div>\r\n <div class=\"row\" style=\"max-height: 200px; overflow: auto\" *ngIf=\"(NodeDetails?.waitstack?.length || 0) > 0\">\r\n <h6>{{'Wait Stack' | localize: lc}}</h6>\r\n <div *ngFor=\"let wait of NodeDetails.waitstack\">\r\n > {{wait.nodeid}} - {{wait.nodedescription}}: \r\n <strong>{{'Event Type' | localize: lc}}</strong>: {{wait.eventtypedesc}} \r\n <strong>{{'Wait Class' | localize: lc}}</strong>: {{wait.waitclassname}}\r\n </div>\r\n </div>\r\n <div style=\"height: 200px;\">\r\n <h6>{{'Resources Usage' | localize: lc}}</h6>\r\n <es-line-chart *ngIf=\"NodeDetails.sessionchart\"\r\n [MinGridDistance]=\"65\"\r\n [Timeline]=\"false\"\r\n [FinalInstants]=\"false\"\r\n [LegendPadding]=\"{top: 0, bottom: 7, right: 0, left: 10}\"\r\n [Fill]=\"true\"\r\n [MergeDatasets]=\"true\"\r\n [Data]=\"NodeDetails.sessionchart\"\r\n [Legend]=\"true\" \r\n name=\"nodeDetailSessionChart\"\r\n [DataGroupingThreshold]=\"99999999\"></es-line-chart>\r\n </div>\r\n <div style=\"height: 200px;\">\r\n <es-pie-chart *ngIf=\"NodeDetails.loadchart\" [Legend]=\"true\" [Data]=\"NodeDetails.loadchart\" name=\"nodeDetailLoadChart\"></es-pie-chart>\r\n </div>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <button type=\"button\" class=\"btn btn-primary\" (click)=\"closeDialog()\">{{'Close' | localize : lc}}</button>\r\n </div>\r\n </div>\r\n</div>"
|
|
1684
1688
|
},] }
|
|
1685
1689
|
];
|
|
1686
1690
|
NodeDetailComponent.ctorParameters = function () { return [
|
|
@@ -1691,6 +1695,162 @@
|
|
|
1691
1695
|
onClose: [{ type: core.Output }]
|
|
1692
1696
|
};
|
|
1693
1697
|
|
|
1698
|
+
var DynamicViewsView = /** @class */ (function (_super) {
|
|
1699
|
+
__extends(DynamicViewsView, _super);
|
|
1700
|
+
function DynamicViewsView() {
|
|
1701
|
+
return _super.call(this) || this;
|
|
1702
|
+
}
|
|
1703
|
+
return DynamicViewsView;
|
|
1704
|
+
}(esTable.AppSearch));
|
|
1705
|
+
|
|
1706
|
+
var AdmDynamicViewsLoc = /** @class */ (function (_super) {
|
|
1707
|
+
__extends(AdmDynamicViewsLoc, _super);
|
|
1708
|
+
function AdmDynamicViewsLoc(LOC_LOCALE) {
|
|
1709
|
+
var _this = _super.call(this, LOC_LOCALE) || this;
|
|
1710
|
+
_super.prototype.set.call(_this, "en->it", "Search Application Dynamic Views", ["Ricerca Viste Dinamiche Applicative"]);
|
|
1711
|
+
_super.prototype.set.call(_this, "en->it", "Name", ["Nome"]);
|
|
1712
|
+
_super.prototype.set.call(_this, "en->it", "Loading Application Dynamic Views", ["Carico le Viste Dinamiche Applicative"]);
|
|
1713
|
+
_super.prototype.set.call(_this, "en->it", "View Name is mandatory for search operations", ["Il nome della vista è obbligatorio per le operazioni di ricerca"]);
|
|
1714
|
+
return _this;
|
|
1715
|
+
}
|
|
1716
|
+
return AdmDynamicViewsLoc;
|
|
1717
|
+
}(localizations.LocalizationService));
|
|
1718
|
+
AdmDynamicViewsLoc.decorators = [
|
|
1719
|
+
{ type: core.Injectable }
|
|
1720
|
+
];
|
|
1721
|
+
AdmDynamicViewsLoc.ctorParameters = function () { return [
|
|
1722
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_LOCALE,] }] }
|
|
1723
|
+
]; };
|
|
1724
|
+
|
|
1725
|
+
var AdmDynamicViewsComponent = /** @class */ (function () {
|
|
1726
|
+
function AdmDynamicViewsComponent(lc, intercom, localStorage, http, route, location, backend, mod) {
|
|
1727
|
+
this.lc = lc;
|
|
1728
|
+
this.intercom = intercom;
|
|
1729
|
+
this.localStorage = localStorage;
|
|
1730
|
+
this.http = http;
|
|
1731
|
+
this.route = route;
|
|
1732
|
+
this.location = location;
|
|
1733
|
+
this.backend = backend;
|
|
1734
|
+
this.mod = mod;
|
|
1735
|
+
this.searchView = new DynamicViewsView();
|
|
1736
|
+
this.Names = [];
|
|
1737
|
+
this.searchInProgress = false;
|
|
1738
|
+
this.badSearch = false;
|
|
1739
|
+
this.intercom.send(extensions.InboundMessageTypes.Navigation, { sub: false, routeTitle: this.lc.loc(this.route.snapshot.data["title"]) });
|
|
1740
|
+
}
|
|
1741
|
+
AdmDynamicViewsComponent.prototype.ngOnInit = function () {
|
|
1742
|
+
var _this = this;
|
|
1743
|
+
this.http.get(Repository.GET_Adm_GetDynamicViews).subscribe(function (t) { _this.Names = t; });
|
|
1744
|
+
this.storageSub = this.route.queryParams.subscribe(function (params) { _this.Init(params["ignoreStorage"]); });
|
|
1745
|
+
};
|
|
1746
|
+
AdmDynamicViewsComponent.prototype.ngOnDestroy = function () {
|
|
1747
|
+
if (this.storageSub)
|
|
1748
|
+
this.storageSub.unsubscribe();
|
|
1749
|
+
};
|
|
1750
|
+
AdmDynamicViewsComponent.prototype.Init = function (ignoreStorage) {
|
|
1751
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1752
|
+
var item;
|
|
1753
|
+
return __generator(this, function (_a) {
|
|
1754
|
+
switch (_a.label) {
|
|
1755
|
+
case 0: return [4 /*yield*/, this.localStorage.getItem("HotDinamitato").toPromise()];
|
|
1756
|
+
case 1:
|
|
1757
|
+
item = _a.sent();
|
|
1758
|
+
if (!(!ignoreStorage && item)) return [3 /*break*/, 2];
|
|
1759
|
+
this.init(item);
|
|
1760
|
+
return [3 /*break*/, 4];
|
|
1761
|
+
case 2:
|
|
1762
|
+
this.init(null);
|
|
1763
|
+
this.location.replaceState("/pages/" + this.mod + "/serverviews");
|
|
1764
|
+
this.route.snapshot.queryParams = [];
|
|
1765
|
+
return [4 /*yield*/, this.localStorage.removeItem("HotDinamitato").toPromise()];
|
|
1766
|
+
case 3:
|
|
1767
|
+
_a.sent();
|
|
1768
|
+
_a.label = 4;
|
|
1769
|
+
case 4: return [2 /*return*/];
|
|
1770
|
+
}
|
|
1771
|
+
});
|
|
1772
|
+
});
|
|
1773
|
+
};
|
|
1774
|
+
AdmDynamicViewsComponent.prototype.init = function (HotPotato) {
|
|
1775
|
+
//Se ho la HotPotato vuol dire che sono appena tornato dall'edit/nuovo. Rifaccio la ricerca in base ai filtri precedenti
|
|
1776
|
+
//Altirmenti genero il modello nuovo normalmente
|
|
1777
|
+
if (HotPotato) {
|
|
1778
|
+
this.searchView = HotPotato;
|
|
1779
|
+
this.POSTGetItems(this.backend + Repository.POST_Adm_GetDynamicViewData, this.searchView);
|
|
1780
|
+
}
|
|
1781
|
+
else {
|
|
1782
|
+
this.searchView = new DynamicViewsView();
|
|
1783
|
+
this.sendSearch();
|
|
1784
|
+
}
|
|
1785
|
+
};
|
|
1786
|
+
AdmDynamicViewsComponent.prototype.sendSearch = function (resetPage) {
|
|
1787
|
+
if (resetPage === void 0) { resetPage = true; }
|
|
1788
|
+
this.searchInProgress = true;
|
|
1789
|
+
if (resetPage)
|
|
1790
|
+
this.searchView.page = 1;
|
|
1791
|
+
this.POSTGetItems(this.backend + Repository.POST_Adm_GetDynamicViewData, this.searchView);
|
|
1792
|
+
};
|
|
1793
|
+
AdmDynamicViewsComponent.prototype.POSTGetItems = function (url, data) {
|
|
1794
|
+
var _this = this;
|
|
1795
|
+
if (!this.searchView.filtername) {
|
|
1796
|
+
this.badSearch = true;
|
|
1797
|
+
this.searchView.reset();
|
|
1798
|
+
//Aggiorno il riferimento per refreshare la es-table
|
|
1799
|
+
this.searchView = JSON.parse(JSON.stringify(this.searchView));
|
|
1800
|
+
return;
|
|
1801
|
+
}
|
|
1802
|
+
else
|
|
1803
|
+
this.badSearch = false;
|
|
1804
|
+
this.http.post(url, data).subscribe(function (t) {
|
|
1805
|
+
_this.searchView = t;
|
|
1806
|
+
_this.searchInProgress = false;
|
|
1807
|
+
_this.localStorage.setItem("HotDinamitato", _this.searchView).subscribe();
|
|
1808
|
+
});
|
|
1809
|
+
};
|
|
1810
|
+
return AdmDynamicViewsComponent;
|
|
1811
|
+
}());
|
|
1812
|
+
AdmDynamicViewsComponent.decorators = [
|
|
1813
|
+
{ type: core.Component, args: [{
|
|
1814
|
+
selector: "adm_dynamic_views",
|
|
1815
|
+
viewProviders: [{ provide: localizations.LocalizationService, useClass: AdmDynamicViewsLoc }],
|
|
1816
|
+
template: "<div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"card app-overflow-visible\" widget>\r\n <div class=\"card-header\">\r\n <span class=\"text-uppercase\">{{'Search Application Dynamic Views' | localize : lc}}</span>\r\n </div>\r\n <div class=\"card-body widget-body\">\r\n <div class=\"col-md-12 bottom-15\">\r\n <form role=\"form\">\r\n <div class=\"col-md-12 row app-first-filter-line\">\r\n <div class=\"col-xl-2 col-lg-2 col-md-12 app-filter-wrapper\">\r\n <form-select [FormLayout]=\"false\" [Validation]=\"false\" [(ngModel)]=\"searchView.filtername\" name=\"filtername\" [Source]=\"Names\" [Placeholder]=\"'Name' | localize : lc\"></form-select>\r\n </div>\r\n <button class=\"input-group-addon btn app-btn-search app-margin-top-20\" (click)=\"sendSearch()\" type=\"submit\"><i class=\"fa fa-search\"></i></button>\r\n </div>\r\n </form>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <div *ngIf=\"badSearch\" class=\"card card-info app-white-text app-padding-10\">{{'View Name is mandatory for search operations' | localize : lc}}</div>\r\n <p *ngIf=\"!searchView\"><em>{{'Loading Application Dynamic Views' | localize : lc}}...</em></p>\r\n <div *ngIf=\"searchView\">\r\n <es-table [(ngModel)]=\"searchView\" [AutoUpdate]=\"true\" [OrderByColumn]=\"true\" (onSearchRequest)=\"sendSearch($event);\"></es-table>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>"
|
|
1817
|
+
},] }
|
|
1818
|
+
];
|
|
1819
|
+
AdmDynamicViewsComponent.ctorParameters = function () { return [
|
|
1820
|
+
{ type: localizations.LocalizationService },
|
|
1821
|
+
{ type: extensions.InterComService },
|
|
1822
|
+
{ type: preferences.PreferencesService },
|
|
1823
|
+
{ type: httpservice.HTTPService },
|
|
1824
|
+
{ type: router.ActivatedRoute },
|
|
1825
|
+
{ type: common.Location },
|
|
1826
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_BACKEND_URL,] }] },
|
|
1827
|
+
{ type: String, decorators: [{ type: core.Inject, args: [ADM_MODULE_PATH,] }] }
|
|
1828
|
+
]; };
|
|
1829
|
+
|
|
1830
|
+
// Angular
|
|
1831
|
+
var FormatTimePipe = /** @class */ (function () {
|
|
1832
|
+
function FormatTimePipe() {
|
|
1833
|
+
}
|
|
1834
|
+
FormatTimePipe.prototype.transform = function (value) {
|
|
1835
|
+
return this.secondsToHms(value);
|
|
1836
|
+
};
|
|
1837
|
+
FormatTimePipe.prototype.secondsToHms = function (d) {
|
|
1838
|
+
d = Number(d);
|
|
1839
|
+
var h = Math.floor(d / 3600);
|
|
1840
|
+
var m = Math.floor(d % 3600 / 60);
|
|
1841
|
+
var s = Math.floor(d % 3600 % 60);
|
|
1842
|
+
var hDisplay = h > 0 ? h + " h, " : "";
|
|
1843
|
+
var mDisplay = m > 0 ? m + " min, " : "";
|
|
1844
|
+
var sDisplay = s > 0 ? s + " sec" : "";
|
|
1845
|
+
return hDisplay + mDisplay + sDisplay;
|
|
1846
|
+
};
|
|
1847
|
+
return FormatTimePipe;
|
|
1848
|
+
}());
|
|
1849
|
+
FormatTimePipe.decorators = [
|
|
1850
|
+
{ type: core.Pipe, args: [{ name: 'format_time' },] }
|
|
1851
|
+
];
|
|
1852
|
+
FormatTimePipe.ctorParameters = function () { return []; };
|
|
1853
|
+
|
|
1694
1854
|
/** Chiave di questo modulo, da utilizzare per i messaggi */
|
|
1695
1855
|
var MK_ADM = "EsAdminModule";
|
|
1696
1856
|
(function (AdmMessageTypes) {
|
|
@@ -1724,7 +1884,7 @@
|
|
|
1724
1884
|
{ type: extensions.InterComService }
|
|
1725
1885
|
]; };
|
|
1726
1886
|
|
|
1727
|
-
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 };
|
|
1887
|
+
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 }, ɵ7 = { title: "Search Application Dynamic Views", internalNavigation: false };
|
|
1728
1888
|
var routeConfig = [
|
|
1729
1889
|
{
|
|
1730
1890
|
path: "",
|
|
@@ -1735,7 +1895,8 @@
|
|
|
1735
1895
|
{ path: "metrics", component: AdmMetricsComponent, data: ɵ3 },
|
|
1736
1896
|
{ path: "serverlogs", component: AdmLogsComponent, data: ɵ4 },
|
|
1737
1897
|
{ path: "serveraudits", component: AdmAuditsComponent, data: ɵ5 },
|
|
1738
|
-
{ path: "serverenqueues", component: AdmEnqComponent, data: ɵ6 }
|
|
1898
|
+
{ path: "serverenqueues", component: AdmEnqComponent, data: ɵ6 },
|
|
1899
|
+
{ path: "serverviews", component: AdmDynamicViewsComponent, data: ɵ7 }
|
|
1739
1900
|
]
|
|
1740
1901
|
}
|
|
1741
1902
|
];
|
|
@@ -1767,13 +1928,17 @@
|
|
|
1767
1928
|
AdmWrkComponent,
|
|
1768
1929
|
AdmProfilerComponent,
|
|
1769
1930
|
AdmTopActivitiesComponent,
|
|
1931
|
+
AdmDynamicViewsComponent,
|
|
1770
1932
|
AdmLogsComponent,
|
|
1771
1933
|
AdmAuditsComponent,
|
|
1772
1934
|
AdmEnqComponent,
|
|
1773
1935
|
AdmMetricsComponent,
|
|
1774
1936
|
NodeDetailComponent
|
|
1775
1937
|
];
|
|
1776
|
-
var
|
|
1938
|
+
var PIPES = [
|
|
1939
|
+
FormatTimePipe
|
|
1940
|
+
];
|
|
1941
|
+
var ɵ8 = myconfig.LOCALE, ɵ9 = myconfig.BACKEND_URL, ɵ10 = !!myconfig.TRANSACTIONS_TIMEOUT_S;
|
|
1777
1942
|
var AdmModule = /** @class */ (function () {
|
|
1778
1943
|
function AdmModule(commService) {
|
|
1779
1944
|
this.commService = commService;
|
|
@@ -1785,12 +1950,12 @@
|
|
|
1785
1950
|
AdmModule.decorators = [
|
|
1786
1951
|
{ type: core.NgModule, args: [{
|
|
1787
1952
|
imports: __spread(MODULES),
|
|
1788
|
-
declarations: __spread(COMPONENTS),
|
|
1953
|
+
declarations: __spread(COMPONENTS, PIPES),
|
|
1789
1954
|
providers: [
|
|
1790
1955
|
AdminModuleCommService,
|
|
1791
|
-
{ provide: ADM_LOCALE, useValue: ɵ
|
|
1792
|
-
{ provide: ADM_BACKEND_URL, useValue: ɵ
|
|
1793
|
-
{ provide: ADM_CONVERSATIONS, useValue: ɵ
|
|
1956
|
+
{ provide: ADM_LOCALE, useValue: ɵ8 },
|
|
1957
|
+
{ provide: ADM_BACKEND_URL, useValue: ɵ9 },
|
|
1958
|
+
{ provide: ADM_CONVERSATIONS, useValue: ɵ10 }
|
|
1794
1959
|
]
|
|
1795
1960
|
},] }
|
|
1796
1961
|
];
|
|
@@ -1811,6 +1976,7 @@
|
|
|
1811
1976
|
exports.routeConfig = routeConfig;
|
|
1812
1977
|
exports.ɵ0 = ɵ0;
|
|
1813
1978
|
exports.ɵ1 = ɵ1;
|
|
1979
|
+
exports.ɵ10 = ɵ10;
|
|
1814
1980
|
exports.ɵ2 = ɵ2;
|
|
1815
1981
|
exports.ɵ3 = ɵ3;
|
|
1816
1982
|
exports.ɵ4 = ɵ4;
|
|
@@ -1833,9 +1999,12 @@
|
|
|
1833
1999
|
exports.ɵl = AdmAuditLoc;
|
|
1834
2000
|
exports.ɵm = AdmEnqComponent;
|
|
1835
2001
|
exports.ɵn = AdmEnqLoc;
|
|
1836
|
-
exports.ɵo =
|
|
1837
|
-
exports.ɵp =
|
|
1838
|
-
exports.ɵq =
|
|
2002
|
+
exports.ɵo = AdmDynamicViewsComponent;
|
|
2003
|
+
exports.ɵp = AdmDynamicViewsLoc;
|
|
2004
|
+
exports.ɵq = NodeDetailComponent;
|
|
2005
|
+
exports.ɵr = NodeDetailLoc;
|
|
2006
|
+
exports.ɵs = FormatTimePipe;
|
|
2007
|
+
exports.ɵt = AdminModuleCommService;
|
|
1839
2008
|
|
|
1840
2009
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
1841
2010
|
|