principal-dashboard-lib-v2 0.0.19 → 0.0.21
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/principal-dashboard-lib-v2.umd.js +11 -5
- package/bundles/principal-dashboard-lib-v2.umd.js.map +1 -1
- package/bundles/principal-dashboard-lib-v2.umd.min.js +1 -1
- package/bundles/principal-dashboard-lib-v2.umd.min.js.map +1 -1
- package/esm2015/lib/chartheader/chartheader.component.js +2 -2
- package/esm2015/lib/principal-dashboard-lib-v2.component.js +3 -3
- package/esm2015/lib/principal-dashboard-lib-v2.service.js +8 -2
- package/esm2015/lib/tableview/tableview.component.js +1 -1
- package/fesm2015/principal-dashboard-lib-v2.js +11 -5
- package/fesm2015/principal-dashboard-lib-v2.js.map +1 -1
- package/package.json +1 -1
- package/principal-dashboard-lib-v2.metadata.json +1 -1
|
@@ -365,12 +365,15 @@
|
|
|
365
365
|
var dataTableforChart = new Array();
|
|
366
366
|
dataTableforChart = [];
|
|
367
367
|
if (this.userConsoleData) {
|
|
368
|
+
console.log("chartDataUserWiseNew-->>", this.userConsoleData);
|
|
368
369
|
if (this.userConsoleData.length > 0) {
|
|
369
370
|
for (var i = 0; i < this.userConsoleData.length; i++) {
|
|
370
|
-
console.log("chartDataUserWiseNew-->>", this.userConsoleData[i].userName);
|
|
371
371
|
if (this.userConsoleData[i].userName === undefined) {
|
|
372
372
|
this.userConsoleData[i].userName = "-";
|
|
373
373
|
}
|
|
374
|
+
if (this.userConsoleData[i].userName === "-" || this.userConsoleData[i].userName === "--") {
|
|
375
|
+
this.userConsoleData.splice(i, 1); // 2nd parameter means remove one item only
|
|
376
|
+
}
|
|
374
377
|
var userData = [this.userConsoleData[i].userName, this.userConsoleData[i].startTime, this.userConsoleData[i].endTime];
|
|
375
378
|
dataTableforChart.push(userData);
|
|
376
379
|
//console.log("chartDataUserWiseNewNew-->>",userData)
|
|
@@ -473,6 +476,9 @@
|
|
|
473
476
|
if (AlluserDetails_1[i].userName === undefined) {
|
|
474
477
|
AlluserDetails_1[i].userName = "--";
|
|
475
478
|
}
|
|
479
|
+
if (AlluserDetails_1[i].userName === "--") {
|
|
480
|
+
//AlluserDetails.splice(i, 1); // 2nd parameter means remove one item only
|
|
481
|
+
}
|
|
476
482
|
var userData = [AlluserDetails_1[i].userName, AlluserDetails_1[i].startTime, AlluserDetails_1[i].endTime];
|
|
477
483
|
dataTableforChart.push(userData);
|
|
478
484
|
}
|
|
@@ -816,8 +822,8 @@
|
|
|
816
822
|
PrincipalDashboardLibV2Component.decorators = [
|
|
817
823
|
{ type: i0.Component, args: [{
|
|
818
824
|
selector: 'lib-principal-dashboard-lib-v2',
|
|
819
|
-
template: "<div id=\"reprtModule\">\n <div id=\"pd-mainDiv\" class=\"pd-mainContainer\">\n <lib-header [data]=\"data\" (userSelectedDate)=\"onUserSelectDate($event)\">\n </lib-header>\n <lib-chartheader></lib-chartheader>\n \n <div id=\"pd-preloader\" class=\"pd-preloaderDiv\" *ngIf=\"responseStatus !== 'true' && !data\">\n {{messageForUser}}\n </div>\n <lib-chartview *ngIf=\"data\" [data]=\"data\"></lib-chartview>\n <lib-tableview *ngIf=\"data\" [data]=\"data\"></lib-tableview>\n <lib-detailedview *ngIf=\"data\" [data]=\"data\"></lib-detailedview>\n \n </div>\n</div>\n ",
|
|
820
|
-
styles: [".pd-mainContainer{width:100%;height:100%}.pd-mainContainer .pd-preloaderDiv{text-align:center;line-height:27;position:absolute;width:100%;height:87%;
|
|
825
|
+
template: "<div id=\"reprtModule\">\n <div id=\"pd-mainDiv\" class=\"pd-mainContainer\">\n <lib-header [data]=\"data\" (userSelectedDate)=\"onUserSelectDate($event)\">\n </lib-header>\n <lib-chartheader></lib-chartheader>\n \n <div id=\"pd-preloader\" class=\"pd-preloaderDiv\" *ngIf=\"responseStatus !== 'true' && !data\">\n {{messageForUser}} \n </div>\n <lib-chartview *ngIf=\"data\" [data]=\"data\"></lib-chartview>\n <lib-tableview *ngIf=\"data\" [data]=\"data\"></lib-tableview>\n <lib-detailedview *ngIf=\"data\" [data]=\"data\"></lib-detailedview>\n \n </div>\n</div>\n ",
|
|
826
|
+
styles: [".pd-mainContainer{width:100%;height:100%}.pd-mainContainer .pd-preloaderDiv{text-align:center;line-height:27;position:absolute;width:100%;height:87%;z-index:2}.bs-datepicker-head{background-color:#000!important}"]
|
|
821
827
|
},] }
|
|
822
828
|
];
|
|
823
829
|
PrincipalDashboardLibV2Component.ctorParameters = function () { return []; };
|
|
@@ -837,7 +843,7 @@
|
|
|
837
843
|
this.isChartView = true;
|
|
838
844
|
}
|
|
839
845
|
ChartheaderComponent.prototype.ngOnInit = function () {
|
|
840
|
-
this.libVersion = "0.0.
|
|
846
|
+
this.libVersion = "0.0.21";
|
|
841
847
|
// this.myIcon = document.getElementById('myIconImg');
|
|
842
848
|
// this.changeChatType()
|
|
843
849
|
};
|
|
@@ -2668,7 +2674,7 @@
|
|
|
2668
2674
|
{ type: i0.Component, args: [{
|
|
2669
2675
|
selector: 'lib-tableview',
|
|
2670
2676
|
template: "\n <div id=\"tableViewDiv\" class=\"pd-tableViewDiv\">\n \n <table class=\"table table-bordered\" id=\"tableRow\">\n <thead class=\"table-head\">\n <tr class=\"table-headerRow\">\n <th scope=\"col\">Teacher Name</th>\n <th scope=\"col\">Subjects</th>\n <th scope=\"col\">Date</th>\n <th scope=\"col\">Start Time</th>\n <th scope=\"col\">End Time</th>\n <th scope=\"col\">Duration (mins)</th>\n <th scope=\"col\">Room</th>\n <th scope=\"col\">Subject</th>\n <th scope=\"col\">Topic of Class</th>\n <th scope=\"col\">Chapter Name</th>\n <th scope=\"col\">Topic Name</th>\n <th scope=\"col\">Assets Details</th>\n </tr>\n </thead>\n <tbody id=\"tblBody\">\n \n </tbody>\n </table>\n </div>\n \n",
|
|
2671
|
-
styles: [".pd-tableViewDiv{width:100%;height:
|
|
2677
|
+
styles: [".pd-tableViewDiv{width:100%;height:744px;overflow:scroll}.pd-tableViewDiv #tableRow{font-size:small;width:100%;margin-left:24px;margin-top:10px}.pd-tableViewDiv .table-headerRow{font-weight:700}.pd-tableViewDiv .table-head{position:sticky;top:0;background:#fff}"]
|
|
2672
2678
|
},] }
|
|
2673
2679
|
];
|
|
2674
2680
|
TableviewComponent.ctorParameters = function () { return [
|