principal-dashboard-lib-v2 0.0.13 → 0.0.15
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 +82 -29
- 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/chartview/chartview.component.js +3 -2
- package/esm2015/lib/exceldata.service.js +16 -5
- package/esm2015/lib/principal-dashboard-lib-v2.service.js +43 -13
- package/esm2015/lib/tableview/tableview.component.js +6 -3
- package/fesm2015/principal-dashboard-lib-v2.js +65 -20
- package/fesm2015/principal-dashboard-lib-v2.js.map +1 -1
- package/package.json +1 -1
- package/principal-dashboard-lib-v2.metadata.json +1 -1
|
@@ -228,7 +228,7 @@
|
|
|
228
228
|
}
|
|
229
229
|
}
|
|
230
230
|
if (userConsole != null && userConsole.length > 0) {
|
|
231
|
-
|
|
231
|
+
var _loop_1 = function (index) {
|
|
232
232
|
var userId = void 0;
|
|
233
233
|
var startTime = void 0;
|
|
234
234
|
var endTime = void 0;
|
|
@@ -237,7 +237,8 @@
|
|
|
237
237
|
var terminalIP = void 0;
|
|
238
238
|
var userConsoleResources = void 0;
|
|
239
239
|
var resourceMetadataIDS = void 0;
|
|
240
|
-
var resourceMetauserConsoleData =
|
|
240
|
+
var resourceMetauserConsoleData = [];
|
|
241
|
+
var resourceDurationFromConsole = [];
|
|
241
242
|
var userName = void 0;
|
|
242
243
|
var userSubjects = void 0;
|
|
243
244
|
var terminalLocation = void 0;
|
|
@@ -258,7 +259,7 @@
|
|
|
258
259
|
//----------// endTime
|
|
259
260
|
if (userConsole[index].endTime !== undefined) {
|
|
260
261
|
endTime = userConsole[index].endTime; // get name of user w.r.t. ID
|
|
261
|
-
|
|
262
|
+
this_1.myEndTime = endTime;
|
|
262
263
|
}
|
|
263
264
|
else {
|
|
264
265
|
endTime = '';
|
|
@@ -293,10 +294,16 @@
|
|
|
293
294
|
}
|
|
294
295
|
if (userConsoleResources != null) {
|
|
295
296
|
if (userConsoleResources.userConsoleResource !== undefined) {
|
|
296
|
-
|
|
297
|
+
// satyajit resource wise duration added
|
|
298
|
+
userConsoleResources.userConsoleResource.forEach(function (item) {
|
|
299
|
+
resourceMetauserConsoleData.push(item.resourceId); // get name of user w.r.t. ID
|
|
300
|
+
resourceDurationFromConsole.push(item.duration);
|
|
301
|
+
});
|
|
302
|
+
// resourceMetauserConsoleData = userConsoleResources.userConsoleResource[index]resourceId; // get name of user w.r.t. ID
|
|
297
303
|
}
|
|
298
304
|
else {
|
|
299
305
|
resourceMetauserConsoleData = [];
|
|
306
|
+
resourceDurationFromConsole = [];
|
|
300
307
|
}
|
|
301
308
|
}
|
|
302
309
|
//----------// userName and userSubjects
|
|
@@ -315,9 +322,12 @@
|
|
|
315
322
|
break;
|
|
316
323
|
}
|
|
317
324
|
else {
|
|
318
|
-
terminalLocation =
|
|
325
|
+
terminalLocation = '';
|
|
319
326
|
}
|
|
320
327
|
}
|
|
328
|
+
if (terminalLocation === undefined || terminalLocation === 'undefined') {
|
|
329
|
+
terminalLocation = '';
|
|
330
|
+
}
|
|
321
331
|
var userData = {
|
|
322
332
|
userId: userId,
|
|
323
333
|
userName: userName,
|
|
@@ -325,13 +335,18 @@
|
|
|
325
335
|
endTime: new Date(endTime),
|
|
326
336
|
terminalIP: terminalIP,
|
|
327
337
|
resourceMetauserConsoleData: resourceMetauserConsoleData,
|
|
338
|
+
resourceDurationFromConsole: resourceDurationFromConsole,
|
|
328
339
|
duration: duration,
|
|
329
340
|
terminalLocation: terminalLocation,
|
|
330
341
|
userSubjects: userSubjects
|
|
331
342
|
};
|
|
332
343
|
userConsoleMatrix.push(userData);
|
|
333
|
-
|
|
334
|
-
|
|
344
|
+
this_1.userConsoleData = userConsoleMatrix;
|
|
345
|
+
this_1.isUserReqiuredDataReady.next(true);
|
|
346
|
+
};
|
|
347
|
+
var this_1 = this;
|
|
348
|
+
for (var index = 0; index < userConsole.length; index++) {
|
|
349
|
+
_loop_1(index);
|
|
335
350
|
}
|
|
336
351
|
}
|
|
337
352
|
}
|
|
@@ -359,12 +374,12 @@
|
|
|
359
374
|
var dataTableforChart = new Array();
|
|
360
375
|
dataTableforChart = [];
|
|
361
376
|
if (this.userConsoleData) {
|
|
362
|
-
console.log("this.userConsoleData", this.userConsoleData);
|
|
363
377
|
for (var i = 0; i < this.userConsoleData.length; i++) {
|
|
364
378
|
var userData = [this.userConsoleData[i].terminalIP, this.userConsoleData[i].startTime, this.userConsoleData[i].endTime];
|
|
365
379
|
dataTableforChart.push(userData);
|
|
366
380
|
}
|
|
367
381
|
}
|
|
382
|
+
console.log("this.classRoomWiseChartData", dataTableforChart);
|
|
368
383
|
return dataTableforChart;
|
|
369
384
|
};
|
|
370
385
|
PrincipalDashboardLibV2Service.prototype.allUserChartData = function () {
|
|
@@ -427,20 +442,21 @@
|
|
|
427
442
|
var inActiveClassRoom = void 0;
|
|
428
443
|
for (var i = 0; i < this.userConsoleData.length; i++) {
|
|
429
444
|
allRoomsDetails.push(this.userConsoleData[i]);
|
|
430
|
-
var userData = [this.userConsoleData[i].
|
|
445
|
+
var userData = [this.userConsoleData[i].terminalIP, this.userConsoleData[i].startTime, this.userConsoleData[i].endTime];
|
|
431
446
|
dataTableforChart.push(userData);
|
|
432
447
|
}
|
|
433
448
|
for (var i = 0; i < this.schoolTerminalData.length; i++) {
|
|
434
|
-
|
|
449
|
+
console.log("schoolTerminalData", this.schoolTerminalData);
|
|
450
|
+
inActiveClassRoom = this.schoolTerminalData[i].terminalKey;
|
|
435
451
|
myChartRowData = {
|
|
436
452
|
userId: "",
|
|
437
453
|
userName: "",
|
|
438
454
|
startTime: new Date(this.myEndTime),
|
|
439
455
|
endTime: new Date(this.myEndTime),
|
|
440
|
-
terminalIP:
|
|
456
|
+
terminalIP: inActiveClassRoom,
|
|
441
457
|
resourceMetauserConsoleData: [],
|
|
442
458
|
duration: 0,
|
|
443
|
-
terminalLocation:
|
|
459
|
+
terminalLocation: "",
|
|
444
460
|
userSubjects: ""
|
|
445
461
|
};
|
|
446
462
|
allRoomsDetails.push(myChartRowData);
|
|
@@ -451,6 +467,7 @@
|
|
|
451
467
|
return { forChartData: dataTableforChart, fordurationTable: allRoomsDetails };
|
|
452
468
|
};
|
|
453
469
|
PrincipalDashboardLibV2Service.prototype.dataForTableView = function (userConsoleMatrix, resourceMetadataMatrix) {
|
|
470
|
+
console.log("AAA userConsoleMatrix", userConsoleMatrix);
|
|
454
471
|
var currentDate;
|
|
455
472
|
var resourceMatrixForTableChart = new Array();
|
|
456
473
|
var resourceMatrixForExcel = new Array();
|
|
@@ -472,6 +489,7 @@
|
|
|
472
489
|
var teacherName = void 0;
|
|
473
490
|
var teacherSubject = void 0;
|
|
474
491
|
var resourceMetadataIDs = void 0;
|
|
492
|
+
var resourceMetadataIDsDuration = void 0;
|
|
475
493
|
var resourceArrayForExcel = new Array();
|
|
476
494
|
var resourceArrayForTableChart = new Array();
|
|
477
495
|
var userConsoleDataMatrix = new Array();
|
|
@@ -493,7 +511,8 @@
|
|
|
493
511
|
terminalIP = userConsoleMatrix[i].terminalIP;
|
|
494
512
|
var roomDetail = location + ' ' + terminalIP;
|
|
495
513
|
resourceMetadataIDs = userConsoleMatrix[i].resourceMetauserConsoleData;
|
|
496
|
-
|
|
514
|
+
resourceMetadataIDsDuration = userConsoleMatrix[i].resourceDurationFromConsole;
|
|
515
|
+
if (resourceMetadataIDs.length === 0) {
|
|
497
516
|
subject = undefined;
|
|
498
517
|
grade = undefined;
|
|
499
518
|
chapter = undefined;
|
|
@@ -509,11 +528,18 @@
|
|
|
509
528
|
for (var k = 0; k < resourceMetadataIDs.length; k++) {
|
|
510
529
|
for (var i_4 = 0; i_4 < resourceMetadataMatrix.length; i_4++) {
|
|
511
530
|
if (resourceMetadataIDs[k] === resourceMetadataMatrix[i_4].resouseID) {
|
|
531
|
+
// satyajit
|
|
512
532
|
subject = resourceMetadataMatrix[i_4].subject;
|
|
513
533
|
grade = resourceMetadataMatrix[i_4].grade;
|
|
514
534
|
chapter = resourceMetadataMatrix[i_4].chapter;
|
|
515
535
|
teachingpoint = resourceMetadataMatrix[i_4].teachingpoint;
|
|
516
|
-
|
|
536
|
+
if (resourceMetadataMatrix[i_4].title.toLowerCase() === 'whiteboard' || resourceMetadataMatrix[i_4].title.toLowerCase() === 'question') {
|
|
537
|
+
AssestDetail = this.getDisplaytypeValue(resourceMetadataMatrix[i_4].type) + ' : ' + resourceMetadataIDsDuration[k] + ' sec';
|
|
538
|
+
}
|
|
539
|
+
else {
|
|
540
|
+
AssestDetail = this.getDisplaytypeValue(resourceMetadataMatrix[i_4].type) + " : " + resourceMetadataMatrix[i_4].title + ' : ' + resourceMetadataIDsDuration[k] + ' sec';
|
|
541
|
+
}
|
|
542
|
+
//AssestDetail = this.getDisplaytypeValue(resourceMetadataMatrix[i].type) + " : " + resourceMetadataMatrix[i].title + ' : ' + resourceMetadataIDsDuration[k];
|
|
517
543
|
resourceArrayForTableChart = [teacherName, teacherSubject, currentDate, startTime, endTime, duration, roomDetail, subject, grade, chapter, teachingpoint, AssestDetail];
|
|
518
544
|
resourceMatrixForTableChart.push(resourceArrayForTableChart);
|
|
519
545
|
teacherName = undefined;
|
|
@@ -549,6 +575,7 @@
|
|
|
549
575
|
var teacherSubject;
|
|
550
576
|
var currentDate;
|
|
551
577
|
var resourceMetadataIDs;
|
|
578
|
+
var resourceMetadataIDsduration;
|
|
552
579
|
var resourceArrayForTableChart = new Array();
|
|
553
580
|
resourceArrayForTableChart = [];
|
|
554
581
|
//----------------- for subject and Name
|
|
@@ -567,6 +594,7 @@
|
|
|
567
594
|
terminalIP = userConsoleMatrix[rowLabel].terminalIP;
|
|
568
595
|
var roomDetail = location + ' ' + terminalIP;
|
|
569
596
|
resourceMetadataIDs = userConsoleMatrix[rowLabel].resourceMetauserConsoleData;
|
|
597
|
+
resourceMetadataIDsduration = userConsoleMatrix[rowLabel].resourceDurationFromConsole;
|
|
570
598
|
detailedView_UserDataMatrix = [teacherName, startTime, teacherSubject, endTime, roomDetail];
|
|
571
599
|
if (resourceMetadataIDs.length == 0) {
|
|
572
600
|
subject = undefined;
|
|
@@ -578,6 +606,7 @@
|
|
|
578
606
|
// detailedView_ResourceDataMatrix.push(resourceArrayForTableChart);
|
|
579
607
|
}
|
|
580
608
|
else {
|
|
609
|
+
//satyajit
|
|
581
610
|
//resourceMetadataMatrix = [resouseID,subject,grade,chapter,teachingpoint,type,title]
|
|
582
611
|
for (var k = 0; k < resourceMetadataIDs.length; k++) {
|
|
583
612
|
for (var i = 0; i < resourceMetadataMatrix.length; i++) {
|
|
@@ -586,7 +615,12 @@
|
|
|
586
615
|
grade = resourceMetadataMatrix[i].grade;
|
|
587
616
|
chapter = resourceMetadataMatrix[i].chapter;
|
|
588
617
|
teachingpoint = resourceMetadataMatrix[i].teachingpoint;
|
|
589
|
-
|
|
618
|
+
if (resourceMetadataMatrix[i].title.toLowerCase() === 'whiteboard' || resourceMetadataMatrix[i].title.toLowerCase() === 'question') {
|
|
619
|
+
AssestDetail = resourceMetadataMatrix[i].type + ": " + resourceMetadataIDsduration[k] + ' sec';
|
|
620
|
+
}
|
|
621
|
+
else {
|
|
622
|
+
AssestDetail = resourceMetadataMatrix[i].type + ": " + resourceMetadataMatrix[i].title + ": " + resourceMetadataIDsduration[k] + ' sec';
|
|
623
|
+
}
|
|
590
624
|
resourceArrayForTableChart = [subject, grade, chapter, teachingpoint, AssestDetail];
|
|
591
625
|
detailedView_ResourceDataMatrix.push(resourceArrayForTableChart);
|
|
592
626
|
}
|
|
@@ -723,7 +757,7 @@
|
|
|
723
757
|
this.isChartView = true;
|
|
724
758
|
}
|
|
725
759
|
ChartheaderComponent.prototype.ngOnInit = function () {
|
|
726
|
-
this.libVersion = "0.0.
|
|
760
|
+
this.libVersion = "0.0.15";
|
|
727
761
|
// this.myIcon = document.getElementById('myIconImg');
|
|
728
762
|
// this.changeChatType()
|
|
729
763
|
};
|
|
@@ -1228,8 +1262,9 @@
|
|
|
1228
1262
|
}
|
|
1229
1263
|
else {
|
|
1230
1264
|
for (var i = 0; i < detailViewMatrix.length; i++) {
|
|
1265
|
+
// console.log("detailViewMatrix[i]",detailViewMatrix[i]);
|
|
1231
1266
|
id_durationArray = {
|
|
1232
|
-
name: detailViewMatrix[i].
|
|
1267
|
+
name: detailViewMatrix[i].terminalIP,
|
|
1233
1268
|
value: parseInt(detailViewMatrix[i].duration),
|
|
1234
1269
|
};
|
|
1235
1270
|
id_durationMatrix.push(id_durationArray);
|
|
@@ -1793,7 +1828,7 @@
|
|
|
1793
1828
|
}
|
|
1794
1829
|
}
|
|
1795
1830
|
if (userConsole != null && userConsole.length > 0) {
|
|
1796
|
-
|
|
1831
|
+
var _loop_1 = function (index) {
|
|
1797
1832
|
var userId = void 0;
|
|
1798
1833
|
var startTime = void 0;
|
|
1799
1834
|
var endTime = void 0;
|
|
@@ -1802,7 +1837,8 @@
|
|
|
1802
1837
|
var terminalIP = void 0;
|
|
1803
1838
|
var userConsoleResources = void 0;
|
|
1804
1839
|
var resourceMetadataIDS = void 0;
|
|
1805
|
-
var resourceMetauserConsoleData =
|
|
1840
|
+
var resourceMetauserConsoleData = [];
|
|
1841
|
+
var resourceDurationFromConsole = [];
|
|
1806
1842
|
var userName = void 0;
|
|
1807
1843
|
var userSubjects = void 0;
|
|
1808
1844
|
var terminalLocation = void 0;
|
|
@@ -1823,7 +1859,7 @@
|
|
|
1823
1859
|
//----------// endTime
|
|
1824
1860
|
if (userConsole[index].endTime !== undefined) {
|
|
1825
1861
|
endTime = userConsole[index].endTime; // get name of user w.r.t. ID
|
|
1826
|
-
|
|
1862
|
+
this_1.myEndTime = endTime;
|
|
1827
1863
|
}
|
|
1828
1864
|
else {
|
|
1829
1865
|
endTime = '';
|
|
@@ -1858,10 +1894,16 @@
|
|
|
1858
1894
|
}
|
|
1859
1895
|
if (userConsoleResources != null) {
|
|
1860
1896
|
if (userConsoleResources.userConsoleResource !== undefined) {
|
|
1861
|
-
|
|
1897
|
+
// satyajit resource wise duration added
|
|
1898
|
+
userConsoleResources.userConsoleResource.forEach(function (item) {
|
|
1899
|
+
resourceMetauserConsoleData.push(item.resourceId); // get name of user w.r.t. ID
|
|
1900
|
+
resourceDurationFromConsole.push(item.duration);
|
|
1901
|
+
});
|
|
1902
|
+
// resourceMetauserConsoleData = userConsoleResources.userConsoleResource; // get name of user w.r.t. ID
|
|
1862
1903
|
}
|
|
1863
1904
|
else {
|
|
1864
1905
|
resourceMetauserConsoleData = [];
|
|
1906
|
+
resourceDurationFromConsole = [];
|
|
1865
1907
|
}
|
|
1866
1908
|
}
|
|
1867
1909
|
//----------// userName and userSubjects
|
|
@@ -1886,9 +1928,14 @@
|
|
|
1886
1928
|
resourceMetauserConsoleData: resourceMetauserConsoleData,
|
|
1887
1929
|
duration: duration,
|
|
1888
1930
|
terminalLocation: terminalLocation,
|
|
1889
|
-
userSubjects: userSubjects
|
|
1931
|
+
userSubjects: userSubjects,
|
|
1932
|
+
resourceDurationFromConsole: resourceDurationFromConsole
|
|
1890
1933
|
};
|
|
1891
1934
|
userConsoleMatrix.push(userData);
|
|
1935
|
+
};
|
|
1936
|
+
var this_1 = this;
|
|
1937
|
+
for (var index = 0; index < userConsole.length; index++) {
|
|
1938
|
+
_loop_1(index);
|
|
1892
1939
|
}
|
|
1893
1940
|
}
|
|
1894
1941
|
return { usersMetadata: usersMetadataMatrix, schoolTerminalData: schoolTerminalMatrix, userConsoleData: userConsoleMatrix };
|
|
@@ -1914,6 +1961,7 @@
|
|
|
1914
1961
|
var teacherName = void 0;
|
|
1915
1962
|
var teacherSubject = void 0;
|
|
1916
1963
|
var resourceMetadataIDs = void 0;
|
|
1964
|
+
var resourceMetadataIDsDuration = void 0;
|
|
1917
1965
|
var resourceArrayForExcel = new Array();
|
|
1918
1966
|
userID = userConsoleMatrix[i].userId;
|
|
1919
1967
|
//----------------- for subject and Name
|
|
@@ -1934,6 +1982,7 @@
|
|
|
1934
1982
|
var locationName = location;
|
|
1935
1983
|
var terminalIPAddress = terminalIP;
|
|
1936
1984
|
resourceMetadataIDs = userConsoleMatrix[i].resourceMetauserConsoleData;
|
|
1985
|
+
resourceMetadataIDsDuration = userConsoleMatrix[i].resourceDurationFromConsole;
|
|
1937
1986
|
if (resourceMetadataIDs.length == 0) {
|
|
1938
1987
|
subject = '';
|
|
1939
1988
|
grade = '';
|
|
@@ -1962,7 +2011,7 @@
|
|
|
1962
2011
|
resourceTitle = resourceMetadataMatrix[i_4].title;
|
|
1963
2012
|
resourceType = this.getDisplaytypeValue(resourceMetadataMatrix[i_4].type);
|
|
1964
2013
|
// FOR EXCEL
|
|
1965
|
-
resourceArrayForExcel = [teacherName, teacherSubject, currentDate, startTime, endTime, duration, locationName, terminalIPAddress, subject, grade, chapter, teachingpoint, resourceTitle, resourceType, userID];
|
|
2014
|
+
resourceArrayForExcel = [teacherName, teacherSubject, currentDate, startTime, endTime, duration, locationName, terminalIPAddress, subject, grade, chapter, teachingpoint, resourceTitle, resourceType, userID, resourceMetadataIDsDuration[k]];
|
|
1966
2015
|
resourceMatrixForExcel.push(resourceArrayForExcel);
|
|
1967
2016
|
teacherName = '';
|
|
1968
2017
|
teacherSubject = '';
|
|
@@ -2000,6 +2049,7 @@
|
|
|
2000
2049
|
tpTitle: resourceMatrixForExcel[i][11],
|
|
2001
2050
|
resourceTitle: resourceMatrixForExcel[i][12],
|
|
2002
2051
|
resourceType: resourceMatrixForExcel[i][13],
|
|
2052
|
+
'resourceDuration(sec)': resourceMatrixForExcel[i][15],
|
|
2003
2053
|
};
|
|
2004
2054
|
userList.push(data);
|
|
2005
2055
|
}
|
|
@@ -2101,7 +2151,7 @@
|
|
|
2101
2151
|
}
|
|
2102
2152
|
// console.log("userObjectList",userObjectList)
|
|
2103
2153
|
var userSummaryList = new Array();
|
|
2104
|
-
var
|
|
2154
|
+
var _loop_2 = function (i) {
|
|
2105
2155
|
var Assetcounts = [];
|
|
2106
2156
|
//find count of present asset type
|
|
2107
2157
|
var presentAsset = userObjectList[i].AssetType;
|
|
@@ -2111,7 +2161,7 @@
|
|
|
2111
2161
|
var sampleArray = userObjectList[i].AssetType;
|
|
2112
2162
|
sampleArray.forEach(function (x) { Assetcounts[x] = (Assetcounts[x] || 0) + 1; });
|
|
2113
2163
|
// find missing assets
|
|
2114
|
-
var missingAssets =
|
|
2164
|
+
var missingAssets = this_2.resourceTypes.filter(function (n) { return !presentAsset.includes(n); });
|
|
2115
2165
|
// adding missing asset with count 0 in list
|
|
2116
2166
|
missingAssets.forEach(function (element) {
|
|
2117
2167
|
Assetcounts[element] = 0;
|
|
@@ -2131,9 +2181,9 @@
|
|
|
2131
2181
|
var returnedTarget = Object.assign(asset_media, Assetcounts);
|
|
2132
2182
|
userSummaryList.push(returnedTarget);
|
|
2133
2183
|
};
|
|
2134
|
-
var
|
|
2184
|
+
var this_2 = this;
|
|
2135
2185
|
for (var i = 0; i < userObjectList.length; i++) {
|
|
2136
|
-
|
|
2186
|
+
_loop_2(i);
|
|
2137
2187
|
}
|
|
2138
2188
|
// console.log("userSummaryList",userSummaryList);
|
|
2139
2189
|
return userSummaryList;
|
|
@@ -2423,6 +2473,8 @@
|
|
|
2423
2473
|
this.alluserList = fetchAlluserList.fordurationTable;
|
|
2424
2474
|
// resoureMetadata list
|
|
2425
2475
|
this.currentResoursedataList = this.pdService.genarateResourseReqiuredData(this.myXmlData);
|
|
2476
|
+
console.log("AAA genarateUserReqiuredData-->>", genarateUserReqiuredData);
|
|
2477
|
+
console.log("AAA this.currentResoursedataList-->>", this.currentResoursedataList);
|
|
2426
2478
|
}
|
|
2427
2479
|
}
|
|
2428
2480
|
this.tableViewDiv = document.getElementById('tableViewDiv');
|
|
@@ -2471,6 +2523,7 @@
|
|
|
2471
2523
|
}
|
|
2472
2524
|
};
|
|
2473
2525
|
TableviewComponent.prototype.ueserWiseTableView = function (resoureMetadata) {
|
|
2526
|
+
console.log('AAA resoureMetadata', resoureMetadata);
|
|
2474
2527
|
// this.deleterow("tableRow");
|
|
2475
2528
|
document.getElementById("tblBody").innerHTML = "";
|
|
2476
2529
|
var labelArray = new Array();
|
|
@@ -2506,8 +2559,8 @@
|
|
|
2506
2559
|
TableviewComponent.decorators = [
|
|
2507
2560
|
{ type: i0.Component, args: [{
|
|
2508
2561
|
selector: 'lib-tableview',
|
|
2509
|
-
template: "\r\n <div id=\"tableViewDiv\" class=\"pd-tableViewDiv\">\r\n \r\n <table class=\"table table-bordered\" id=\"tableRow\">\r\n <thead>\r\n <tr class=\"table-headerRow\">\r\n <th scope=\"col\">Teacher Name</th>\r\n <th scope=\"col\">Subjects</th>\r\n <th scope=\"col\">Date</th>\r\n <th scope=\"col\">Start Time</th>\r\n <th scope=\"col\">End Time</th>\r\n <th scope=\"col\">Duration (mins)</th>\r\n <th scope=\"col\">Room</th>\r\n <th scope=\"col\">Subject</th>\r\n <th scope=\"col\">Topic of Class</th>\r\n <th scope=\"col\">Chapter Name</th>\r\n <th scope=\"col\">Topic Name</th>\r\n <th scope=\"col\">Assets Details</th>\r\n </tr>\r\n </thead>\r\n <tbody id=\"tblBody\">\r\n \r\n </tbody>\r\n </table>\r\n </div>\r\n \r\n",
|
|
2510
|
-
styles: [".pd-tableViewDiv{width:100%;height:484px;overflow:scroll}.pd-tableViewDiv #tableRow{font-size:small;width:100%;margin-left:24px;margin-top:10px}.pd-tableViewDiv .table-headerRow{font-weight:700}"]
|
|
2562
|
+
template: "\r\n <div id=\"tableViewDiv\" class=\"pd-tableViewDiv\">\r\n \r\n <table class=\"table table-bordered\" id=\"tableRow\">\r\n <thead class=\"table-head\">\r\n <tr class=\"table-headerRow\">\r\n <th scope=\"col\">Teacher Name</th>\r\n <th scope=\"col\">Subjects</th>\r\n <th scope=\"col\">Date</th>\r\n <th scope=\"col\">Start Time</th>\r\n <th scope=\"col\">End Time</th>\r\n <th scope=\"col\">Duration (mins)</th>\r\n <th scope=\"col\">Room</th>\r\n <th scope=\"col\">Subject</th>\r\n <th scope=\"col\">Topic of Class</th>\r\n <th scope=\"col\">Chapter Name</th>\r\n <th scope=\"col\">Topic Name</th>\r\n <th scope=\"col\">Assets Details</th>\r\n </tr>\r\n </thead>\r\n <tbody id=\"tblBody\">\r\n \r\n </tbody>\r\n </table>\r\n </div>\r\n \r\n",
|
|
2563
|
+
styles: [".pd-tableViewDiv{width:100%;height:484px;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}"]
|
|
2511
2564
|
},] }
|
|
2512
2565
|
];
|
|
2513
2566
|
TableviewComponent.ctorParameters = function () { return [
|