@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
|
@@ -20234,6 +20234,14 @@ var EventsComponent = /** @class */ (function () {
|
|
|
20234
20234
|
function (res) {
|
|
20235
20235
|
_this.events = [];
|
|
20236
20236
|
if (res && res.result && res.result.count > 0) {
|
|
20237
|
+
res.result.Event.forEach((/**
|
|
20238
|
+
* @param {?} eveEle
|
|
20239
|
+
* @return {?}
|
|
20240
|
+
*/
|
|
20241
|
+
function (eveEle) {
|
|
20242
|
+
eveEle['eventDate'] = _this.customDateFormat(eveEle.startDate, eveEle.startTime);
|
|
20243
|
+
eveEle['eventendDate'] = _this.customDateFormat(eveEle.endDate, eveEle.endTime);
|
|
20244
|
+
}));
|
|
20237
20245
|
_this.events = _this.sortItemByTime(res.result.Event);
|
|
20238
20246
|
_this.loader = false;
|
|
20239
20247
|
}
|
|
@@ -20270,6 +20278,14 @@ var EventsComponent = /** @class */ (function () {
|
|
|
20270
20278
|
function (res) {
|
|
20271
20279
|
_this.events = [];
|
|
20272
20280
|
if (res && res.result && res.result.count > 0) {
|
|
20281
|
+
res.result.Event.forEach((/**
|
|
20282
|
+
* @param {?} eveEle
|
|
20283
|
+
* @return {?}
|
|
20284
|
+
*/
|
|
20285
|
+
function (eveEle) {
|
|
20286
|
+
eveEle['eventDate'] = _this.customDateFormat(eveEle.startDate, eveEle.startTime);
|
|
20287
|
+
eveEle['eventendDate'] = _this.customDateFormat(eveEle.endDate, eveEle.endTime);
|
|
20288
|
+
}));
|
|
20273
20289
|
_this.events = _this.sortItemByTime(res.result.Event);
|
|
20274
20290
|
_this.loader = false;
|
|
20275
20291
|
}
|
|
@@ -20299,7 +20315,11 @@ var EventsComponent = /** @class */ (function () {
|
|
|
20299
20315
|
* @return {?}
|
|
20300
20316
|
*/
|
|
20301
20317
|
function (a, b) {
|
|
20302
|
-
|
|
20318
|
+
/** @type {?} */
|
|
20319
|
+
var firstDate = new Date(a.eventDate);
|
|
20320
|
+
/** @type {?} */
|
|
20321
|
+
var secondDate = new Date(b.eventDate);
|
|
20322
|
+
return secondDate < firstDate ? 1 : -1;
|
|
20303
20323
|
}));
|
|
20304
20324
|
};
|
|
20305
20325
|
/**
|