@sunbird-cb/consumption 0.0.97 → 0.0.98
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/sunbird-cb-consumption.umd.js +21 -1
- package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
- package/esm2015/lib/_common/events/events.component.js +22 -2
- package/esm5/lib/_common/events/events.component.js +22 -2
- package/fesm2015/sunbird-cb-consumption.js +21 -1
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +21 -1
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/package.json +1 -1
|
@@ -20438,6 +20438,14 @@
|
|
|
20438
20438
|
function (res) {
|
|
20439
20439
|
_this.events = [];
|
|
20440
20440
|
if (res && res.result && res.result.count > 0) {
|
|
20441
|
+
res.result.Event.forEach((/**
|
|
20442
|
+
* @param {?} eveEle
|
|
20443
|
+
* @return {?}
|
|
20444
|
+
*/
|
|
20445
|
+
function (eveEle) {
|
|
20446
|
+
eveEle['eventDate'] = _this.customDateFormat(eveEle.startDate, eveEle.startTime);
|
|
20447
|
+
eveEle['eventendDate'] = _this.customDateFormat(eveEle.endDate, eveEle.endTime);
|
|
20448
|
+
}));
|
|
20441
20449
|
_this.events = _this.sortItemByTime(res.result.Event);
|
|
20442
20450
|
_this.loader = false;
|
|
20443
20451
|
}
|
|
@@ -20474,6 +20482,14 @@
|
|
|
20474
20482
|
function (res) {
|
|
20475
20483
|
_this.events = [];
|
|
20476
20484
|
if (res && res.result && res.result.count > 0) {
|
|
20485
|
+
res.result.Event.forEach((/**
|
|
20486
|
+
* @param {?} eveEle
|
|
20487
|
+
* @return {?}
|
|
20488
|
+
*/
|
|
20489
|
+
function (eveEle) {
|
|
20490
|
+
eveEle['eventDate'] = _this.customDateFormat(eveEle.startDate, eveEle.startTime);
|
|
20491
|
+
eveEle['eventendDate'] = _this.customDateFormat(eveEle.endDate, eveEle.endTime);
|
|
20492
|
+
}));
|
|
20477
20493
|
_this.events = _this.sortItemByTime(res.result.Event);
|
|
20478
20494
|
_this.loader = false;
|
|
20479
20495
|
}
|
|
@@ -20503,7 +20519,11 @@
|
|
|
20503
20519
|
* @return {?}
|
|
20504
20520
|
*/
|
|
20505
20521
|
function (a, b) {
|
|
20506
|
-
|
|
20522
|
+
/** @type {?} */
|
|
20523
|
+
var firstDate = new Date(a.eventDate);
|
|
20524
|
+
/** @type {?} */
|
|
20525
|
+
var secondDate = new Date(b.eventDate);
|
|
20526
|
+
return secondDate < firstDate ? 1 : -1;
|
|
20507
20527
|
}));
|
|
20508
20528
|
};
|
|
20509
20529
|
/**
|