@sunbird-cb/consumption 0.0.11 → 0.0.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/sunbird-cb-consumption.umd.js +4435 -1462
- package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
- package/bundles/sunbird-cb-consumption.umd.min.js +2 -2
- package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
- package/esm2015/lib/_common/avatar-photo-lib/avatar-photo-lib.component.js +147 -0
- package/esm2015/lib/_common/avatar-photo-lib/avatar-photo-lib.module.js +29 -0
- package/esm2015/lib/_common/calender/calender-day/calender-day.component.js +90 -0
- package/esm2015/lib/_common/calender/calender.component.js +300 -0
- package/esm2015/lib/_common/calender/calender.module.js +31 -0
- package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +5 -1
- package/esm2015/lib/_common/cards/card-user/card-user.component.js +5 -5
- package/esm2015/lib/_common/cards/card-wide/card-wide.component.js +166 -0
- package/esm2015/lib/_common/cards/cards.component.js +2 -2
- package/esm2015/lib/_common/cards/cards.module.js +5 -3
- package/esm2015/lib/_common/common-strip/common-strip.component.js +646 -0
- package/esm2015/lib/_common/common-strip/common-strip.model.js +216 -0
- package/esm2015/lib/_common/common-strip/common-strip.module.js +62 -0
- package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +24 -4
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +36 -6
- package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm2015/lib/_common/data-points/data-points.component.js +2 -2
- package/esm2015/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +63 -12
- package/esm2015/lib/_common/pills/pills.component.js +2 -2
- package/esm2015/lib/_common/sliders/sliders.component.js +3 -3
- package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.component.js +197 -0
- package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.model.js +61 -0
- package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.module.js +50 -0
- package/esm2015/lib/_common/user-content-rating/user-content-rating.component.js +710 -0
- package/esm2015/lib/_common/user-content-rating/user-content-rating.module.js +35 -0
- package/esm2015/lib/_models/card-users.model.js +7 -5
- package/esm2015/lib/_models/rating.model.js +44 -0
- package/esm2015/lib/_services/common-methods.service.js +1 -1
- package/esm2015/lib/_services/insite-data.service.js +10 -2
- package/esm2015/lib/_services/rating.service.js +171 -0
- package/esm2015/lib/consumption.module.js +6 -2
- package/esm2015/public-api.js +4 -1
- package/esm2015/sunbird-cb-consumption.js +29 -19
- package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.component.js +164 -0
- package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.module.js +33 -0
- package/esm5/lib/_common/calender/calender-day/calender-day.component.js +101 -0
- package/esm5/lib/_common/calender/calender.component.js +335 -0
- package/esm5/lib/_common/calender/calender.module.js +35 -0
- package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +5 -1
- package/esm5/lib/_common/cards/card-user/card-user.component.js +5 -5
- package/esm5/lib/_common/cards/card-wide/card-wide.component.js +172 -0
- package/esm5/lib/_common/cards/cards.component.js +2 -2
- package/esm5/lib/_common/cards/cards.module.js +5 -3
- package/esm5/lib/_common/common-strip/common-strip.component.js +760 -0
- package/esm5/lib/_common/common-strip/common-strip.model.js +216 -0
- package/esm5/lib/_common/common-strip/common-strip.module.js +66 -0
- package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +28 -5
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +41 -6
- package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.js +1 -1
- package/esm5/lib/_common/data-points/data-points.component.js +2 -2
- package/esm5/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.js +60 -12
- package/esm5/lib/_common/pills/pills.component.js +2 -2
- package/esm5/lib/_common/sliders/sliders.component.js +3 -3
- package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.component.js +224 -0
- package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.model.js +61 -0
- package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.module.js +67 -0
- package/esm5/lib/_common/user-content-rating/user-content-rating.component.js +726 -0
- package/esm5/lib/_common/user-content-rating/user-content-rating.module.js +39 -0
- package/esm5/lib/_models/card-users.model.js +7 -5
- package/esm5/lib/_models/rating.model.js +44 -0
- package/esm5/lib/_services/common-methods.service.js +1 -1
- package/esm5/lib/_services/insite-data.service.js +14 -2
- package/esm5/lib/_services/rating.service.js +214 -0
- package/esm5/lib/consumption.module.js +6 -2
- package/esm5/public-api.js +4 -1
- package/esm5/sunbird-cb-consumption.js +29 -19
- package/fesm2015/sunbird-cb-consumption.js +3945 -1280
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +4406 -1447
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/avatar-photo-lib/avatar-photo-lib.component.d.ts +19 -0
- package/lib/_common/avatar-photo-lib/avatar-photo-lib.module.d.ts +2 -0
- package/lib/_common/calender/calender-day/calender-day.component.d.ts +18 -0
- package/lib/_common/calender/calender.component.d.ts +34 -0
- package/lib/_common/calender/calender.module.d.ts +2 -0
- package/lib/_common/cards/card-wide/card-wide.component.d.ts +30 -0
- package/lib/_common/common-strip/common-strip.component.d.ts +104 -0
- package/lib/_common/common-strip/common-strip.model.d.ts +141 -0
- package/lib/_common/common-strip/common-strip.module.d.ts +2 -0
- package/lib/_common/competency-passbook/competency-passbook.component.d.ts +1 -0
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +6 -1
- package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.model.d.ts +8 -0
- package/lib/_common/horizontal-scroller-v2/horizontal-scroller-v2.component.d.ts +8 -6
- package/lib/_common/sliders-ng-content/sliders-ng-content.component.d.ts +28 -0
- package/lib/_common/sliders-ng-content/sliders-ng-content.model.d.ts +34 -0
- package/lib/_common/sliders-ng-content/sliders-ng-content.module.d.ts +6 -0
- package/lib/_common/user-content-rating/user-content-rating.component.d.ts +167 -0
- package/lib/_common/user-content-rating/user-content-rating.module.d.ts +2 -0
- package/lib/_models/card-users.model.d.ts +5 -4
- package/lib/_models/rating.model.d.ts +17 -0
- package/lib/_services/common-methods.service.d.ts +3 -2
- package/lib/_services/insite-data.service.d.ts +1 -0
- package/lib/_services/rating.service.d.ts +15 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/sunbird-cb-consumption.d.ts +27 -17
- package/sunbird-cb-consumption.metadata.json +1 -1
|
@@ -0,0 +1,147 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import { Component, Input } from '@angular/core';
|
|
6
|
+
export class AvatarPhotoLibComponent {
|
|
7
|
+
constructor() {
|
|
8
|
+
this.size = '';
|
|
9
|
+
this.randomColor = false;
|
|
10
|
+
this.showBadge = false;
|
|
11
|
+
this.showInitials = false;
|
|
12
|
+
this.random = Math.random().toString(36).slice(2);
|
|
13
|
+
// public initials!: string
|
|
14
|
+
this.colors = [
|
|
15
|
+
'#EB7181',
|
|
16
|
+
'#306933',
|
|
17
|
+
'#000000',
|
|
18
|
+
'#3670B2',
|
|
19
|
+
'#4E9E87',
|
|
20
|
+
'#7E4C8D',
|
|
21
|
+
];
|
|
22
|
+
this.randomcolors = [
|
|
23
|
+
'#EB7181',
|
|
24
|
+
'#006400',
|
|
25
|
+
'#000000',
|
|
26
|
+
'#3670B2',
|
|
27
|
+
'#4E9E87',
|
|
28
|
+
'#7E4C8D',
|
|
29
|
+
];
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* @return {?}
|
|
33
|
+
*/
|
|
34
|
+
ngOnInit() {
|
|
35
|
+
if (!this.photoUrl) {
|
|
36
|
+
this.showInitials = true;
|
|
37
|
+
if (!this.initials) {
|
|
38
|
+
this.createInititals();
|
|
39
|
+
}
|
|
40
|
+
if (this.datalen === 1) {
|
|
41
|
+
this.randomcolors = [
|
|
42
|
+
'#006400',
|
|
43
|
+
];
|
|
44
|
+
}
|
|
45
|
+
/** @type {?} */
|
|
46
|
+
const randomIndex = Math.floor(Math.random() * Math.floor(this.colors.length));
|
|
47
|
+
this.circleColor = this.colors[randomIndex];
|
|
48
|
+
if (this.randomColor) {
|
|
49
|
+
/** @type {?} */
|
|
50
|
+
const randomIndex1 = Math.floor(Math.random() * Math.floor(this.randomcolors.length));
|
|
51
|
+
this.circleColor = this.randomcolors[randomIndex1];
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* @param {?} change
|
|
57
|
+
* @return {?}
|
|
58
|
+
*/
|
|
59
|
+
ngOnChanges(change) {
|
|
60
|
+
if (change.name.currentValue !== change.name.previousValue && !change.name.firstChange) {
|
|
61
|
+
this.createInititals();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* @return {?}
|
|
66
|
+
*/
|
|
67
|
+
get userInitials() {
|
|
68
|
+
return this.initials;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* @private
|
|
72
|
+
* @return {?}
|
|
73
|
+
*/
|
|
74
|
+
createInititals() {
|
|
75
|
+
/** @type {?} */
|
|
76
|
+
let initials = '';
|
|
77
|
+
/** @type {?} */
|
|
78
|
+
const array = `${this.name} `.toString().split(' ');
|
|
79
|
+
if (array[0] !== 'undefined' && typeof array[1] !== 'undefined') {
|
|
80
|
+
initials += array[0].charAt(0);
|
|
81
|
+
initials += array[1].charAt(0);
|
|
82
|
+
}
|
|
83
|
+
else {
|
|
84
|
+
for (let i = 0; i < this.name.length; i += 1) {
|
|
85
|
+
if (this.name.charAt(i) === ' ') {
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
if (this.name.charAt(i) === this.name.charAt(i)) {
|
|
89
|
+
initials += this.name.charAt(i);
|
|
90
|
+
if (initials.length === 2) {
|
|
91
|
+
break;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
this.initials = initials.toUpperCase();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
AvatarPhotoLibComponent.decorators = [
|
|
100
|
+
{ type: Component, args: [{
|
|
101
|
+
selector: 'sb-uic-avatar-photo',
|
|
102
|
+
template: "<div id=\"user_icon\" [ngClass]=\"{'circle-s' : size=== 's',\n'circle-m' : size=== 'm',\n'circle-l' : size=== 'l',\n'circle-xl' : size=== 'xl',\n'circle-xxl' : size=== 'xxl',\n'circle-l-xs' : size=== 'l-xs',\n'circle-l-s' : size=== 'l-s',\n'circle-xl-s' : size=== 'xl-s',\n'circle-r-m': size=== 'round-m',\n'circle-r-p-m': size=== 'profile-round-m',\n'circle-m-side': size=== 'm-side',\n'circle-r-m-48': size=== 'm-side-rating',\n'circle-m-recommended': size==='m-recommended',\n'circle-xxl-s': size=== 'xxl-s'}\" [ngStyle]=\"{'background-color': circleColor }\">\n <img *ngIf=\"!showInitials\" loading=\"lazy\" src=\"{{photoUrl}}\" [alt]=\"photoUrl? '' :(name || userInitials || size || random)\">\n\n <div *ngIf=\"showInitials\" class=\"initials\" i18n-aria-label>\n {{ userInitials }} \n </div>\n <div *ngIf=\"showBadge\"><span class=\"profile-badge\"> \n <img src=\"fusion-assets/images/profile-badge.png\">\n </span></div>\n\n <!-- <div *ngIf=\"imageType === 'user-photo'\">\n <img *ngIf=\"imageUrl\" [src]=\"imageUrl\" alt=\"user-image\" class=\"user-image\" [ngClass]=\"{'user-image-small': imageSize === 'small'}\">\n <div class=\"user-image\" [ngClass]=\"{'user-image-small': imageSize === 'small'}\">\n <span class=\"name-initials-image font-normal ws-mat-primary-default-text ws-mat-accent-background\"\n *ngIf=\"!imageUrl\">{{ shortName }}</span>\n </div>\n </div> -->\n</div>",
|
|
103
|
+
styles: ["@charset \"UTF-8\";.success-checkmark::after{content:\"\u2714\";position:absolute;left:25px;top:20px;width:11px;height:11px;border:1px solid #1d8923;background:#1d8923;border-radius:50%;color:#fff;line-height:11px;text-align:center;font-size:9px}.profile-badge{position:absolute;top:10px;right:0}.profile-badge img{height:15px!important;width:15px!important}.circle-s{border-radius:50%;width:24px;height:24px;display:flex;justify-content:center;align-items:center}.circle-s img{border-radius:50%;width:100%;height:100%}.circle-s .initials{color:#fff;font-size:10px;line-height:12px;letter-spacing:.2625px}.circle-m{border-radius:50%;width:72px!important;height:72px!important;display:flex;justify-content:center;align-items:center;margin-top:-36px}.circle-m img{border-radius:10%;width:40px;height:40px}.circle-m .initials{color:#fff;font-size:14px;line-height:19px;letter-spacing:.2625px}.circle-l{border-radius:50%;width:80px;height:80px;display:flex;justify-content:center;align-items:center}.circle-l img{border-radius:10%;width:80px;height:80px}.circle-l .initials{color:#fff;font-size:20px;line-height:19px;letter-spacing:.2625px}.circle-xl{border-radius:50%;width:105px;height:105px;display:flex;justify-content:center;align-items:center}.circle-xl img{border-radius:10%;width:105px;height:105px}.circle-xl .initials{color:#fff;font-size:20px;line-height:19px;letter-spacing:.2625px}.circle-xxl{border-radius:50%;width:145px;height:145px;display:flex;justify-content:center;align-items:center}.circle-xxl img{border-radius:10%;width:145px;height:145px}.circle-xxl .initials{color:#fff;font-size:20px;line-height:19px;letter-spacing:.2625px}.circle-l-xs{border-radius:50%;width:29px;height:29px;display:flex;justify-content:center;align-items:center}.circle-l-xs img{border-radius:50%;width:100%;height:100%}.circle-l-xs .initials{color:#fff;font-size:12px;line-height:12px;letter-spacing:.2625px}.circle-l-s{border-radius:50%;width:80px;height:80px;display:flex;justify-content:center;align-items:center}.circle-l-s img{border-radius:4px;width:80px;height:80px}.circle-l-s .initials{color:#fff;font-size:24px;line-height:24px;letter-spacing:.2625px}.circle-xl-s{border-radius:50%;width:125px;height:125px;display:flex;justify-content:center;align-items:center}.circle-xl-s img{border-radius:4px;width:152px;height:125px}.circle-xl-s .initials{color:#fff;font-size:32px;line-height:32px;letter-spacing:.2625px}.circle-xxl-s{border-radius:50%;width:208px;height:208px;display:flex;justify-content:center;align-items:center}.circle-xxl-s img{border-radius:50%;width:100%;height:100%}.circle-xxl-s .initials{color:#fff;font-size:40px;line-height:40px;letter-spacing:.2625px}.circle-r-m{border-radius:50%;width:50px;height:50px;display:flex;justify-content:center;align-items:center}.circle-r-m img{border-radius:50%;width:100%;height:100%}.circle-r-m .initials{color:#fff;font-size:16px;line-height:40px;letter-spacing:.2625px}.circle-r-m-48{border-radius:50%;width:48px;height:48px;display:flex;justify-content:center;align-items:center}.circle-r-m-48 img{border-radius:50%;width:100%;height:100%}.circle-r-m-48 .initials{color:#fff;font-size:16px;line-height:40px;letter-spacing:.2625px}.circle-r-p-m{border-radius:50%;width:40px;height:40px;display:flex;justify-content:center;align-items:center}.circle-r-p-m img{border-radius:50%;width:100%;height:100%}.circle-r-p-m .initials{color:#fff;font-size:16px;line-height:40px;letter-spacing:.2625px}.circle-m-side{border-radius:50%;width:72px!important;height:72px!important;display:flex;justify-content:center;align-items:center}.circle-m-side img{border-radius:10%;width:40px;height:40px}.circle-m-side .initials{color:#fff;font-size:14px;line-height:19px;letter-spacing:.2625px}@media only screen and (max-width:960px){.circle-xxl-s{width:100px;height:100px}.circle-xxl-s .initials{font-size:24px;line-height:24px}}.circle-m-recommended{border-radius:50%;width:72px!important;height:72px!important;display:flex;justify-content:center;align-items:center;margin-top:-49px}.circle-m-recommended img{border-radius:10%;width:40px;height:40px}.circle-m-recommended .initials{color:#fff;font-size:14px;line-height:19px;letter-spacing:.2625px}.circle-l-s::before{content:\"\";border:1px solid red}"]
|
|
104
|
+
}] }
|
|
105
|
+
];
|
|
106
|
+
AvatarPhotoLibComponent.propDecorators = {
|
|
107
|
+
datalen: [{ type: Input }],
|
|
108
|
+
photoUrl: [{ type: Input }],
|
|
109
|
+
name: [{ type: Input }],
|
|
110
|
+
size: [{ type: Input }],
|
|
111
|
+
randomColor: [{ type: Input }],
|
|
112
|
+
initials: [{ type: Input }],
|
|
113
|
+
showBadge: [{ type: Input }]
|
|
114
|
+
};
|
|
115
|
+
if (false) {
|
|
116
|
+
/** @type {?} */
|
|
117
|
+
AvatarPhotoLibComponent.prototype.datalen;
|
|
118
|
+
/** @type {?} */
|
|
119
|
+
AvatarPhotoLibComponent.prototype.photoUrl;
|
|
120
|
+
/** @type {?} */
|
|
121
|
+
AvatarPhotoLibComponent.prototype.name;
|
|
122
|
+
/** @type {?} */
|
|
123
|
+
AvatarPhotoLibComponent.prototype.size;
|
|
124
|
+
/** @type {?} */
|
|
125
|
+
AvatarPhotoLibComponent.prototype.randomColor;
|
|
126
|
+
/** @type {?} */
|
|
127
|
+
AvatarPhotoLibComponent.prototype.initials;
|
|
128
|
+
/** @type {?} */
|
|
129
|
+
AvatarPhotoLibComponent.prototype.showBadge;
|
|
130
|
+
/** @type {?} */
|
|
131
|
+
AvatarPhotoLibComponent.prototype.showInitials;
|
|
132
|
+
/** @type {?} */
|
|
133
|
+
AvatarPhotoLibComponent.prototype.circleColor;
|
|
134
|
+
/** @type {?} */
|
|
135
|
+
AvatarPhotoLibComponent.prototype.random;
|
|
136
|
+
/**
|
|
137
|
+
* @type {?}
|
|
138
|
+
* @private
|
|
139
|
+
*/
|
|
140
|
+
AvatarPhotoLibComponent.prototype.colors;
|
|
141
|
+
/**
|
|
142
|
+
* @type {?}
|
|
143
|
+
* @private
|
|
144
|
+
*/
|
|
145
|
+
AvatarPhotoLibComponent.prototype.randomcolors;
|
|
146
|
+
}
|
|
147
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXZhdGFyLXBob3RvLWxpYi5jb21wb25lbnQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1jYi9jb25zdW1wdGlvbi8iLCJ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5uYW1lLmNoYXJBdChpKSA9PT0gJyAnKSB7XG4gICAgICAgICAgY29udGludWVcbiAgICAgICAgfVxuXG4gICAgICAgIGlmICh0aGlzLm5hbWUuY2hhckF0KGkpID09PSB0aGlzLm5hbWUuY2hhckF0KGkpKSB7XG4gICAgICAgICAgaW5pdGlhbHMgKz0gdGhpcy5uYW1lLmNoYXJBdChpKVxuXG4gICAgICAgICAgaWYgKGluaXRpYWxzLmxlbmd0aCA9PT0gMikge1xuICAgICAgICAgICAgYnJlYWtcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9XG4gICAgdGhpcy5pbml0aWFscyA9IGluaXRpYWxzLnRvVXBwZXJDYXNlKClcbiAgfVxufVxuIl19
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import { NgModule } from '@angular/core';
|
|
6
|
+
import { CommonModule } from '@angular/common';
|
|
7
|
+
import { RouterModule } from '@angular/router';
|
|
8
|
+
import { MatButtonModule, MatIconModule, MatMenuModule, MatRippleModule } from '@angular/material';
|
|
9
|
+
import { SbUiResolverModule } from '@sunbird-cb/resolver-v2';
|
|
10
|
+
import { AvatarPhotoLibComponent } from './avatar-photo-lib.component';
|
|
11
|
+
export class AvatarPhotoLibModule {
|
|
12
|
+
}
|
|
13
|
+
AvatarPhotoLibModule.decorators = [
|
|
14
|
+
{ type: NgModule, args: [{
|
|
15
|
+
declarations: [AvatarPhotoLibComponent],
|
|
16
|
+
imports: [
|
|
17
|
+
CommonModule,
|
|
18
|
+
RouterModule,
|
|
19
|
+
MatButtonModule,
|
|
20
|
+
MatIconModule,
|
|
21
|
+
MatMenuModule,
|
|
22
|
+
MatRippleModule,
|
|
23
|
+
SbUiResolverModule,
|
|
24
|
+
],
|
|
25
|
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|
+
/**
|
|
2
|
+
* @fileoverview added by tsickle
|
|
3
|
+
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
+
*/
|
|
5
|
+
import { DatePipe } from '@angular/common';
|
|
6
|
+
import { Component, Input } from '@angular/core';
|
|
7
|
+
export class CalenderDayComponent {
|
|
8
|
+
/**
|
|
9
|
+
* @param {?} datePipe
|
|
10
|
+
*/
|
|
11
|
+
constructor(datePipe) {
|
|
12
|
+
this.datePipe = datePipe;
|
|
13
|
+
this.webDisplayDate = "";
|
|
14
|
+
this.mobileDisplayDate = "";
|
|
15
|
+
this.currentDate = new Date();
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @return {?}
|
|
19
|
+
*/
|
|
20
|
+
ngOnInit() {
|
|
21
|
+
this.currentDate = this.datePipe.transform(this.currentDate, 'y-MM-dd');
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* @param {?} link
|
|
25
|
+
* @return {?}
|
|
26
|
+
*/
|
|
27
|
+
openLink(link) {
|
|
28
|
+
window.open(link, "_blank");
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @param {?} date
|
|
32
|
+
* @param {?} type
|
|
33
|
+
* @return {?}
|
|
34
|
+
*/
|
|
35
|
+
formatDate(date, type) {
|
|
36
|
+
/** @type {?} */
|
|
37
|
+
let fDate = new Date(date);
|
|
38
|
+
if (type === 'web') {
|
|
39
|
+
return this.datePipe.transform(fDate, 'E, dd LLL');
|
|
40
|
+
}
|
|
41
|
+
if (type === 'mob') {
|
|
42
|
+
return this.datePipe.transform(fDate, 'E dd LLL');
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
CalenderDayComponent.decorators = [
|
|
47
|
+
{ type: Component, args: [{
|
|
48
|
+
selector: 'sb-uic-calender-day',
|
|
49
|
+
template: "<div *ngIf=\"layoutType==='grid' && !dataLoading\">\n <div class=\"p-3 event-day my-3\"\n [style.backgroundColor]=\"objectData?.webBackgroundColor\"\n [style.borderColor]=\"currentDate === eventDate ? objectData?.activeBackgroudColor: ''\">\n \n <div class=\"flex item-top gap-8 {{ day.length ? '' : 'aliginCenter'}}\">\n <div class=\"event-date\">\n <div class=\"currentDay\"\n [style.backgroundColor]=\"currentDate === eventDate ? objectData?.activeBackgroudColor: ''\"\n [style.color]=\"currentDate === eventDate ? objectData?.activeColor: ''\">\n {{formatDate(eventDate, 'web')}}\n </div>\n </div>\n <div class=\"details w-full\" *ngIf=\"day.length\">\n <div class=\"flex p-4 item-center events-list mb-{{day.length === (i+1) ? '0' : '2'}} gap-20\" [style.backgroundColor]=\"objectData?.eventBackgroundColor\"\n *ngFor=\"let event of day; let i = index\" >\n <div>\n <div class=\"flex flex-row item-center gap-10 pb-2\">\n <div class=\"flex item-center gap-1 row1 col1\">\n <div><mat-icon class=\"icon-web\">schedule</mat-icon> </div>\n <div>{{event.startTime}} to {{event.endTime}}</div>\n </div>\n <div class=\"flex item-center col1\">{{event.title}}</div>\n </div>\n <div class=\"flex flex-row item-center gap-10\">\n <div class=\"flex item-center gap-1 row1 col1\" *ngIf=\"event.startDate && event.endDate && event.startDate !== event.endDate\">\n <div><mat-icon class=\"icon-web\">date_range</mat-icon> </div>\n <div class=\"upcase\">{{event.startDate}} - {{event.endDate}}</div>\n </div>\n <div class=\"flex item-center col1\">\n <div><mat-icon class=\"icon-web\">location_on</mat-icon> </div>\n <div class=\"flex item-center\">{{event.location}}</div>\n </div>\n </div>\n </div>\n <div class=\"visit-link flex gap-2\"\n *ngIf=\"event?.registrationLink\">\n <div (click)=\"openLink(event?.registrationLink)\">Visit</div>\n <div (click)=\"openLink(event?.registrationLink)\"><mat-icon class=\"visit-icon\">open_in_new</mat-icon> </div>\n </div>\n </div>\n </div>\n <div class=\"details w-full\" *ngIf=\"!day.length\">\n No trainings.\n </div>\n </div>\n </div>\n</div>\n\n<div *ngIf=\"layoutType==='row' && !dataLoading\">\n <div class=\"p-5 mb-{{day?.length === (rowId+1) ? '0' : '3'}}\"\n [style.backgroundColor]=\"objectData?.mobileBackground\">\n <div class=\"flex item-center gap-4\">\n <div class=\"event-date\">\n <div class=\"flex flex-col\">\n <div> {{formatDate(eventDate, 'mob').split(' ')[0]}}</div>\n <div class=\"mob-currentDay\"\n [style.backgroundColor]=\"currentDate === eventDate ? objectData?.activeBackgroudColor: ''\"\n [style.color]=\"currentDate === eventDate ? objectData?.activeColor: ''\">\n {{formatDate(eventDate, 'mob').split(' ')[1]}}\n </div>\n <div> {{formatDate(eventDate, 'mob').split(' ')[2]}}</div>\n </div>\n </div>\n <div class=\"details w-full\" *ngIf=\"day.length\">\n <div class=\"flex flex-col mob-events-list p-3 mb-{{day.length === (i+1) ? '0' : '2'}}\"\n *ngFor=\"let event of day; let i = index\" [style.backgroundColor]=\"objectData?.eventBackgroundColor\">\n <div>\n <div class=\"flex pb-2\">{{event.title}}</div>\n <div class=\"flex pb-1\">\n <div><mat-icon class=\"mob-icon\">schedule</mat-icon> </div>\n <div>{{event.startTime}} to {{event.endTime}}</div>\n </div>\n <div class=\"flex pb-1\" *ngIf=\"event.startDate && event.endDate && event.startDate !== event.endDate\">\n <div><mat-icon class=\"mob-icon\">date_range</mat-icon> </div>\n <div class=\"upcase\">{{event.startDate}} - {{event.endDate}}</div>\n </div>\n <div class=\"flex\">\n <div><mat-icon class=\"mob-icon\">location_on</mat-icon> </div>\n <div class=\"flex item-center\">{{event.location}}</div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"details w-full flex no-data\" *ngIf=\"!day.length\">\n No trainings.\n </div>\n </div> \n </div> \n</div>\n\n<!-- skeleton loaders -->\n<div *ngIf=\"dataLoading\">\n <div *ngIf=\"layoutType==='grid'\">\n <div class=\"hidden md:block\">\n <div class=\"p-3 event-day my-3\"\n [style.backgroundColor]=\"'#FFF'\">\n <div class=\"flex item-top gap-8\">\n <div class=\"event-date\">\n <div class=\"currentDay\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'90px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader> \n </div>\n </div>\n <div class=\"details w-full\">\n <div class=\"flex p-4 item-center events-list mb-2 gap-20\">\n <div>\n <div class=\"flex flex-row item-center gap-20 pb-2\">\n <div class=\"flex item-center gap-2 row1 col1\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'50px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'250px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"flex item-center col1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'250px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader> </div>\n </div>\n <div class=\"flex flex-row item-center gap-20 pb-2\">\n <div class=\"flex item-center gap-2 row1 col1\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'50px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'250px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"flex item-center col1\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'250px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader> </div>\n </div>\n </div>\n <div class=\"visit-link flex gap-2\">\n <div><sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'200px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader> </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div *ngIf=\"layoutType==='row'\">\n <div class=\"block md:hidden\">\n <div class=\"p-5\" \n [style.backgroundColor]=\"'#FFFFFF'\">\n <div class=\"flex item-center gap-4\">\n <div class=\"event-date\">\n <div class=\"flex flex-col\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'30px'\"\n [height]=\"'90px'\"></sb-uic-skeleton-loader> \n </div>\n </div>\n <div class=\"details w-full\">\n <div class=\"flex flex-col mob-events-list p-3 mb-2\">\n <div>\n <div class=\"flex pb-2\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'265px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader> \n </div>\n <div class=\"flex pb-1 gap-2\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'30px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div><sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'230px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"flex pb-1 gap-2\">\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'30px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div>\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'230px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n </div>\n <div class=\"flex gap-2\">\n <div><sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'30px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader>\n </div>\n <div class=\"flex item-center\">\n <sb-uic-skeleton-loader [bindingClass]=\"'flex rounded objIcon'\" [width]=\"'230px'\"\n [height]=\"'32px'\"></sb-uic-skeleton-loader> \n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div> \n</div>",
|
|
50
|
+
styles: [".event-day{border:1px solid #c3c3c3;border-radius:15px}.event-date{font-family:Lato;font-size:14px;font-weight:700;line-height:16.8px;text-align:center;width:10%;text-transform:uppercase}.events-list{border:1px solid #c3c3c3;border-radius:15px;justify-content:space-between;align-items:center;font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px}.row1{width:235px}.icon-web{font-size:17px;height:17px}.upcase{text-transform:uppercase}.aliginCenter,.col1{align-items:center}.visit-link{cursor:pointer;align-items:center;justify-content:center}.visit-icon{font-size:17px;height:17px;color:#1b4ca1}.currentDay{padding:5px;border-radius:20px}.mob-currentDay{padding:8px;border-radius:20px}.mob-events-list{border:1px solid #e8e6e5;border-radius:10px;justify-content:space-between;font-family:Lato;font-size:14px;font-weight:400;line-height:16.8px}.mob-icon{font-size:17px;height:17px}.no-data{display:flex;align-items:center}"]
|
|
51
|
+
}] }
|
|
52
|
+
];
|
|
53
|
+
/** @nocollapse */
|
|
54
|
+
CalenderDayComponent.ctorParameters = () => [
|
|
55
|
+
{ type: DatePipe }
|
|
56
|
+
];
|
|
57
|
+
CalenderDayComponent.propDecorators = {
|
|
58
|
+
objectData: [{ type: Input }],
|
|
59
|
+
layoutType: [{ type: Input }],
|
|
60
|
+
day: [{ type: Input }],
|
|
61
|
+
dataLoading: [{ type: Input }],
|
|
62
|
+
rowId: [{ type: Input }],
|
|
63
|
+
eventDate: [{ type: Input }]
|
|
64
|
+
};
|
|
65
|
+
if (false) {
|
|
66
|
+
/** @type {?} */
|
|
67
|
+
CalenderDayComponent.prototype.objectData;
|
|
68
|
+
/** @type {?} */
|
|
69
|
+
CalenderDayComponent.prototype.layoutType;
|
|
70
|
+
/** @type {?} */
|
|
71
|
+
CalenderDayComponent.prototype.day;
|
|
72
|
+
/** @type {?} */
|
|
73
|
+
CalenderDayComponent.prototype.dataLoading;
|
|
74
|
+
/** @type {?} */
|
|
75
|
+
CalenderDayComponent.prototype.rowId;
|
|
76
|
+
/** @type {?} */
|
|
77
|
+
CalenderDayComponent.prototype.eventDate;
|
|
78
|
+
/** @type {?} */
|
|
79
|
+
CalenderDayComponent.prototype.webDisplayDate;
|
|
80
|
+
/** @type {?} */
|
|
81
|
+
CalenderDayComponent.prototype.mobileDisplayDate;
|
|
82
|
+
/** @type {?} */
|
|
83
|
+
CalenderDayComponent.prototype.currentDate;
|
|
84
|
+
/**
|
|
85
|
+
* @type {?}
|
|
86
|
+
* @private
|
|
87
|
+
*/
|
|
88
|
+
CalenderDayComponent.prototype.datePipe;
|
|
89
|
+
}
|
|
90
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsZW5kZXItZGF5LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWNiL2NvbnN1bXB0aW9uLyIsInNvdXJjZXMiOlsibGliL19jb21tb24vY2FsZW5kZXIvY2FsZW5kZXItZGF5L2NhbGVuZGVyLWRheS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMzQyxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQU96RCxNQUFNLE9BQU8sb0JBQW9COzs7O0lBWS9CLFlBQW9CLFFBQWtCO1FBQWxCLGFBQVEsR0FBUixRQUFRLENBQVU7UUFKdEMsbUJBQWMsR0FBVyxFQUFFLENBQUE7UUFDM0Isc0JBQWlCLEdBQVcsRUFBRSxDQUFBO1FBQzlCLGdCQUFXLEdBQVEsSUFBSSxJQUFJLEVBQUUsQ0FBQTtJQUVhLENBQUM7Ozs7SUFFM0MsUUFBUTtRQUNOLElBQUksQ0FBQyxXQUFXLEdBQUcsSUFBSSxDQUFDLFFBQVEsQ0FBQyxTQUFTLENBQUMsSUFBSSxDQUFDLFdBQVcsRUFBRSxTQUFTLENBQUMsQ0FBQTtJQUN6RSxDQUFDOzs7OztJQUVELFFBQVEsQ0FBQyxJQUFZO1FBQ25CLE1BQU0sQ0FBQyxJQU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