@sunbird-cb/consumption 0.0.12 → 0.0.14

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.
Files changed (82) hide show
  1. package/bundles/sunbird-cb-consumption.umd.js +1699 -71
  2. package/bundles/sunbird-cb-consumption.umd.js.map +1 -1
  3. package/bundles/sunbird-cb-consumption.umd.min.js +1 -1
  4. package/bundles/sunbird-cb-consumption.umd.min.js.map +1 -1
  5. package/esm2015/lib/_common/avatar-photo-lib/avatar-photo-lib.component.js +158 -0
  6. package/esm2015/lib/_common/avatar-photo-lib/avatar-photo-lib.module.js +29 -0
  7. package/esm2015/lib/_common/calender/calender-day/calender-day.component.js +90 -0
  8. package/esm2015/lib/_common/calender/calender.component.js +275 -9
  9. package/esm2015/lib/_common/calender/calender.module.js +15 -5
  10. package/esm2015/lib/_common/cards/card-portrait/card-portrait.component.js +5 -1
  11. package/esm2015/lib/_common/cards/card-wide/card-wide.component.js +166 -0
  12. package/esm2015/lib/_common/cards/cards.component.js +2 -2
  13. package/esm2015/lib/_common/cards/cards.module.js +5 -3
  14. package/esm2015/lib/_common/common-strip/common-strip.component.js +14 -11
  15. package/esm2015/lib/_common/competency-passbook/competency-passbook.component.js +22 -2
  16. package/esm2015/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +31 -3
  17. package/esm2015/lib/_common/data-points/data-points.component.js +2 -2
  18. package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.component.js +206 -0
  19. package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.model.js +61 -0
  20. package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.module.js +50 -0
  21. package/esm2015/lib/_common/user-content-rating/user-content-rating-lib.component.js +139 -0
  22. package/esm2015/lib/_common/user-content-rating/user-content-rating-lib.module.js +38 -0
  23. package/esm2015/lib/_common/user-content-rating/user-content-rating-lib.service.js +45 -0
  24. package/esm2015/lib/_directives/scrollable-item/scrollable-item.directive.js +42 -0
  25. package/esm2015/lib/_directives/scrollable-item/scrollable-item.module.js +19 -0
  26. package/esm2015/lib/_models/rating.model.js +44 -0
  27. package/esm2015/lib/_services/insite-data.service.js +10 -2
  28. package/esm2015/lib/_services/rating.service.js +171 -0
  29. package/esm2015/public-api.js +2 -1
  30. package/esm2015/sunbird-cb-consumption.js +31 -20
  31. package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.component.js +175 -0
  32. package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.module.js +33 -0
  33. package/esm5/lib/_common/calender/calender-day/calender-day.component.js +101 -0
  34. package/esm5/lib/_common/calender/calender.component.js +305 -9
  35. package/esm5/lib/_common/calender/calender.module.js +15 -5
  36. package/esm5/lib/_common/cards/card-portrait/card-portrait.component.js +5 -1
  37. package/esm5/lib/_common/cards/card-wide/card-wide.component.js +172 -0
  38. package/esm5/lib/_common/cards/cards.component.js +2 -2
  39. package/esm5/lib/_common/cards/cards.module.js +5 -3
  40. package/esm5/lib/_common/common-strip/common-strip.component.js +22 -19
  41. package/esm5/lib/_common/competency-passbook/competency-passbook.component.js +26 -3
  42. package/esm5/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.js +36 -3
  43. package/esm5/lib/_common/data-points/data-points.component.js +2 -2
  44. package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.component.js +233 -0
  45. package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.model.js +61 -0
  46. package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.module.js +67 -0
  47. package/esm5/lib/_common/user-content-rating/user-content-rating-lib.component.js +162 -0
  48. package/esm5/lib/_common/user-content-rating/user-content-rating-lib.module.js +42 -0
  49. package/esm5/lib/_common/user-content-rating/user-content-rating-lib.service.js +48 -0
  50. package/esm5/lib/_directives/scrollable-item/scrollable-item.directive.js +45 -0
  51. package/esm5/lib/_directives/scrollable-item/scrollable-item.module.js +23 -0
  52. package/esm5/lib/_models/rating.model.js +44 -0
  53. package/esm5/lib/_services/insite-data.service.js +14 -2
  54. package/esm5/lib/_services/rating.service.js +214 -0
  55. package/esm5/public-api.js +2 -1
  56. package/esm5/sunbird-cb-consumption.js +31 -20
  57. package/fesm2015/sunbird-cb-consumption.js +1515 -88
  58. package/fesm2015/sunbird-cb-consumption.js.map +1 -1
  59. package/fesm5/sunbird-cb-consumption.js +1673 -58
  60. package/fesm5/sunbird-cb-consumption.js.map +1 -1
  61. package/lib/_common/avatar-photo-lib/avatar-photo-lib.component.d.ts +20 -0
  62. package/lib/_common/avatar-photo-lib/avatar-photo-lib.module.d.ts +2 -0
  63. package/lib/_common/calender/calender-day/calender-day.component.d.ts +18 -0
  64. package/lib/_common/calender/calender.component.d.ts +29 -1
  65. package/lib/_common/cards/card-wide/card-wide.component.d.ts +30 -0
  66. package/lib/_common/competency-passbook/competency-passbook.component.d.ts +1 -0
  67. package/lib/_common/content-strip-with-tabs-lib/content-strip-with-tabs-lib.component.d.ts +6 -1
  68. package/lib/_common/sliders-ng-content/sliders-ng-content.component.d.ts +29 -0
  69. package/lib/_common/sliders-ng-content/sliders-ng-content.model.d.ts +34 -0
  70. package/lib/_common/sliders-ng-content/sliders-ng-content.module.d.ts +6 -0
  71. package/lib/_common/user-content-rating/user-content-rating-lib.component.d.ts +22 -0
  72. package/lib/_common/user-content-rating/user-content-rating-lib.module.d.ts +2 -0
  73. package/lib/_common/user-content-rating/user-content-rating-lib.service.d.ts +7 -0
  74. package/lib/_directives/scrollable-item/scrollable-item.directive.d.ts +7 -0
  75. package/lib/_directives/scrollable-item/scrollable-item.module.d.ts +2 -0
  76. package/lib/_models/rating.model.d.ts +17 -0
  77. package/lib/_services/insite-data.service.d.ts +1 -0
  78. package/lib/_services/rating.service.d.ts +15 -0
  79. package/package.json +1 -1
  80. package/public-api.d.ts +1 -0
  81. package/sunbird-cb-consumption.d.ts +29 -18
  82. package/sunbird-cb-consumption.metadata.json +1 -1
@@ -0,0 +1,175 @@
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
+ var AvatarPhotoLibComponent = /** @class */ (function () {
7
+ function AvatarPhotoLibComponent() {
8
+ this.size = '';
9
+ this.defaulfColor = '';
10
+ this.randomColor = false;
11
+ this.showBadge = false;
12
+ this.showInitials = false;
13
+ this.random = Math.random().toString(36).slice(2);
14
+ // public initials!: string
15
+ this.colors = [
16
+ '#EB7181',
17
+ '#306933',
18
+ '#000000',
19
+ '#3670B2',
20
+ '#4E9E87',
21
+ '#7E4C8D',
22
+ ];
23
+ this.randomcolors = [
24
+ '#EB7181',
25
+ '#006400',
26
+ '#000000',
27
+ '#3670B2',
28
+ '#4E9E87',
29
+ '#7E4C8D',
30
+ ];
31
+ }
32
+ /**
33
+ * @return {?}
34
+ */
35
+ AvatarPhotoLibComponent.prototype.ngOnInit = /**
36
+ * @return {?}
37
+ */
38
+ function () {
39
+ if (!this.photoUrl) {
40
+ this.showInitials = true;
41
+ if (!this.initials) {
42
+ this.createInititals();
43
+ }
44
+ if (this.datalen === 1) {
45
+ if (this.defaulfColor) {
46
+ this.randomcolors = [
47
+ this.defaulfColor
48
+ ];
49
+ }
50
+ else {
51
+ this.randomcolors = [
52
+ '#006400',
53
+ ];
54
+ }
55
+ }
56
+ /** @type {?} */
57
+ var randomIndex = Math.floor(Math.random() * Math.floor(this.colors.length));
58
+ this.circleColor = this.colors[randomIndex];
59
+ if (this.randomColor) {
60
+ /** @type {?} */
61
+ var randomIndex1 = Math.floor(Math.random() * Math.floor(this.randomcolors.length));
62
+ this.circleColor = this.randomcolors[randomIndex1];
63
+ }
64
+ }
65
+ };
66
+ /**
67
+ * @param {?} change
68
+ * @return {?}
69
+ */
70
+ AvatarPhotoLibComponent.prototype.ngOnChanges = /**
71
+ * @param {?} change
72
+ * @return {?}
73
+ */
74
+ function (change) {
75
+ if (change.name.currentValue !== change.name.previousValue && !change.name.firstChange) {
76
+ this.createInititals();
77
+ }
78
+ };
79
+ Object.defineProperty(AvatarPhotoLibComponent.prototype, "userInitials", {
80
+ get: /**
81
+ * @return {?}
82
+ */
83
+ function () {
84
+ return this.initials;
85
+ },
86
+ enumerable: true,
87
+ configurable: true
88
+ });
89
+ /**
90
+ * @private
91
+ * @return {?}
92
+ */
93
+ AvatarPhotoLibComponent.prototype.createInititals = /**
94
+ * @private
95
+ * @return {?}
96
+ */
97
+ function () {
98
+ /** @type {?} */
99
+ var initials = '';
100
+ /** @type {?} */
101
+ var array = (this.name + " ").toString().split(' ');
102
+ if (array[0] !== 'undefined' && typeof array[1] !== 'undefined') {
103
+ initials += array[0].charAt(0);
104
+ initials += array[1].charAt(0);
105
+ }
106
+ else {
107
+ for (var i = 0; i < this.name.length; i += 1) {
108
+ if (this.name.charAt(i) === ' ') {
109
+ continue;
110
+ }
111
+ if (this.name.charAt(i) === this.name.charAt(i)) {
112
+ initials += this.name.charAt(i);
113
+ if (initials.length === 2) {
114
+ break;
115
+ }
116
+ }
117
+ }
118
+ }
119
+ this.initials = initials.toUpperCase();
120
+ };
121
+ AvatarPhotoLibComponent.decorators = [
122
+ { type: Component, args: [{
123
+ selector: 'sb-uic-avatar-photo',
124
+ 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>",
125
+ 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}"]
126
+ }] }
127
+ ];
128
+ AvatarPhotoLibComponent.propDecorators = {
129
+ datalen: [{ type: Input }],
130
+ photoUrl: [{ type: Input }],
131
+ name: [{ type: Input }],
132
+ size: [{ type: Input }],
133
+ defaulfColor: [{ type: Input }],
134
+ randomColor: [{ type: Input }],
135
+ initials: [{ type: Input }],
136
+ showBadge: [{ type: Input }]
137
+ };
138
+ return AvatarPhotoLibComponent;
139
+ }());
140
+ export { AvatarPhotoLibComponent };
141
+ if (false) {
142
+ /** @type {?} */
143
+ AvatarPhotoLibComponent.prototype.datalen;
144
+ /** @type {?} */
145
+ AvatarPhotoLibComponent.prototype.photoUrl;
146
+ /** @type {?} */
147
+ AvatarPhotoLibComponent.prototype.name;
148
+ /** @type {?} */
149
+ AvatarPhotoLibComponent.prototype.size;
150
+ /** @type {?} */
151
+ AvatarPhotoLibComponent.prototype.defaulfColor;
152
+ /** @type {?} */
153
+ AvatarPhotoLibComponent.prototype.randomColor;
154
+ /** @type {?} */
155
+ AvatarPhotoLibComponent.prototype.initials;
156
+ /** @type {?} */
157
+ AvatarPhotoLibComponent.prototype.showBadge;
158
+ /** @type {?} */
159
+ AvatarPhotoLibComponent.prototype.showInitials;
160
+ /** @type {?} */
161
+ AvatarPhotoLibComponent.prototype.circleColor;
162
+ /** @type {?} */
163
+ AvatarPhotoLibComponent.prototype.random;
164
+ /**
165
+ * @type {?}
166
+ * @private
167
+ */
168
+ AvatarPhotoLibComponent.prototype.colors;
169
+ /**
170
+ * @type {?}
171
+ * @private
172
+ */
173
+ AvatarPhotoLibComponent.protot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AgICAnIzM2NzBCMicsIC8vIGJsdWVcbiAgICAnIzRFOUU4NycsXG4gICAgJyM3RTRDOEQnLFxuICBdXG5cbiAgbmdPbkluaXQoKSB7XG4gICAgaWYgKCF0aGlzLnBob3RvVXJsKSB7XG4gICAgICB0aGlzLnNob3dJbml0aWFscyA9IHRydWVcbiAgICAgIGlmICghdGhpcy5pbml0aWFscykge1xuICAgICAgICB0aGlzLmNyZWF0ZUluaXRpdGFscygpXG4gICAgICB9XG4gICAgICBpZiAodGhpcy5kYXRhbGVuID09PSAxKSB7XG4gICAgICAgIGlmKHRoaXMuZGVmYXVsZkNvbG9yKSB7XG4gICAgICAgICAgdGhpcy5yYW5kb21jb2xvcnMgPSBbXG4gICAgICAgICAgIHRoaXMuZGVmYXVsZkNvbG9yXG4gICAgICAgICAgXVxuICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgIHRoaXMucmFuZG9tY29sb3JzID0gW1xuICAgICAgICAgICAgJyMwMDY0MDAnLCAvLyBncmVlblxuICAgICAgICAgIF1cbiAgICAgICAgfVxuICAgICAgfVxuICAgICAgY29uc3QgcmFuZG9tSW5kZXggPSBNYXRoLmZsb29yKE1hdGgucmFuZG9tKCkgKiBNYXRoLmZsb29yKHRoaXMuY29sb3JzLmxlbmd0aCkpXG4gICAgICB0aGlzLmNpcmNsZUNvbG9yID0gdGhpcy5jb2xvcnNbcmFuZG9tSW5kZXhdXG4gICAgICBpZiAodGhpcy5yYW5kb21Db2xvcikge1xuICAgICAgICBjb25zdCByYW5kb21JbmRleDEgPSBNYXRoLmZsb29yKE1hdGgucmFuZG9tKCkgKiBNYXRoLmZsb29yKHRoaXMucmFuZG9tY29sb3JzLmxlbmd0aCkpXG4gICAgICAgIHRoaXMuY2lyY2xlQ29sb3IgPSB0aGlzLnJhbmRvbWNvbG9yc1tyYW5kb21JbmRleDFdXG4gICAgICB9XG4gICAgfVxuXG4gIH1cbiAgbmdPbkNoYW5nZXMoY2hhbmdlOiBTaW1wbGVDaGFuZ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luaXRpYWxzLnRvVXBwZXJDYXNlKClcbiAgfVxufVxuIl19
@@ -0,0 +1,33 @@
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
+ var AvatarPhotoLibModule = /** @class */ (function () {
12
+ function AvatarPhotoLibModule() {
13
+ }
14
+ AvatarPhotoLibModule.decorators = [
15
+ { type: NgModule, args: [{
16
+ declarations: [AvatarPhotoLibComponent],
17
+ imports: [
18
+ CommonModule,
19
+ RouterModule,
20
+ MatButtonModule,
21
+ MatIconModule,
22
+ MatMenuModule,
23
+ MatRippleModule,
24
+ SbUiResolverModule,
25
+ ],
26
+ exports: [AvatarPhotoLibComponent],
27
+ entryComponents: [AvatarPhotoLibComponent],
28
+ },] }
29
+ ];
30
+ return AvatarPhotoLibModule;
31
+ }());
32
+ export { AvatarPhotoLibModule };
33
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXZhdGFyLXBob3RvLWxpYi5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1jYi9jb25zdW1wdGlvbi8iLCJzb3VyY2VzIjpbImxpYi9fY29tbW9uL2F2YXRhci1waG90by1saWIvYXZhdGFyLXBob3RvLWxpYi5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUE7QUFDeEMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLG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2x2ZXJNb2R1bGUgfSBmcm9tICdAc3VuYmlyZC1jYi9yZXNvbHZlci12MidcbmltcG9ydCB7IEF2YXRhclBob3RvTGliQ29tcG9uZW50IH0gZnJvbSAnLi9hdmF0YXItcGhvdG8tbGliLmNvbXBvbmVudCdcblxuQE5nTW9kdWxlKHtcbiAgZGVjbGFyYXRpb25zOiBbQXZhdGFyUGhvdG9MaWJDb21wb25lbnRdLFxuICBpbXBvcnRzOiBbXG4gICAgQ29tbW9uTW9kdWxlLFxuICAgIFJvdXRlck1vZHVsZSxcbiAgICBNYXRCdXR0b25Nb2R1bGUsXG4gICAgTWF0SWNvbk1vZHVsZSxcbiAgICBNYXRNZW51TW9kdWxlLFxuICAgIE1hdFJpcHBsZU1vZHVsZSxcbiAgICBTYlVpUmVzb2x2ZXJNb2R1bGUsXG4gIF0sXG4gIGV4cG9ydHM6IFtBdmF0YXJQaG90b0xpYkNvbXBvbmVudF0sXG4gIGVudHJ5Q29tcG9uZW50czogW0F2YXRhclBob3RvTGliQ29tcG9uZW50XSxcbn0pXG5leHBvcnQgY2xhc3MgQXZhdGFyUGhvdG9MaWJNb2R1bGUgeyB9XG4iXX0=
@@ -0,0 +1,101 @@
1
+ /**
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
+ var CalenderDayComponent = /** @class */ (function () {
8
+ function CalenderDayComponent(datePipe) {
9
+ this.datePipe = datePipe;
10
+ this.webDisplayDate = "";
11
+ this.mobileDisplayDate = "";
12
+ this.currentDate = new Date();
13
+ }
14
+ /**
15
+ * @return {?}
16
+ */
17
+ CalenderDayComponent.prototype.ngOnInit = /**
18
+ * @return {?}
19
+ */
20
+ function () {
21
+ this.currentDate = this.datePipe.transform(this.currentDate, 'y-MM-dd');
22
+ };
23
+ /**
24
+ * @param {?} link
25
+ * @return {?}
26
+ */
27
+ CalenderDayComponent.prototype.openLink = /**
28
+ * @param {?} link
29
+ * @return {?}
30
+ */
31
+ function (link) {
32
+ window.open(link, "_blank");
33
+ };
34
+ /**
35
+ * @param {?} date
36
+ * @param {?} type
37
+ * @return {?}
38
+ */
39
+ CalenderDayComponent.prototype.formatDate = /**
40
+ * @param {?} date
41
+ * @param {?} type
42
+ * @return {?}
43
+ */
44
+ function (date, type) {
45
+ /** @type {?} */
46
+ var fDate = new Date(date);
47
+ if (type === 'web') {
48
+ return this.datePipe.transform(fDate, 'E, dd LLL');
49
+ }
50
+ if (type === 'mob') {
51
+ return this.datePipe.transform(fDate, 'E dd LLL');
52
+ }
53
+ };
54
+ CalenderDayComponent.decorators = [
55
+ { type: Component, args: [{
56
+ selector: 'sb-uic-calender-day',
57
+ 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>",
58
+ 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}"]
59
+ }] }
60
+ ];
61
+ /** @nocollapse */
62
+ CalenderDayComponent.ctorParameters = function () { return [
63
+ { type: DatePipe }
64
+ ]; };
65
+ CalenderDayComponent.propDecorators = {
66
+ objectData: [{ type: Input }],
67
+ layoutType: [{ type: Input }],
68
+ day: [{ type: Input }],
69
+ dataLoading: [{ type: Input }],
70
+ rowId: [{ type: Input }],
71
+ eventDate: [{ type: Input }]
72
+ };
73
+ return CalenderDayComponent;
74
+ }());
75
+ export { CalenderDayComponent };
76
+ if (false) {
77
+ /** @type {?} */
78
+ CalenderDayComponent.prototype.objectData;
79
+ /** @type {?} */
80
+ CalenderDayComponent.prototype.layoutType;
81
+ /** @type {?} */
82
+ CalenderDayComponent.prototype.day;
83
+ /** @type {?} */
84
+ CalenderDayComponent.prototype.dataLoading;
85
+ /** @type {?} */
86
+ CalenderDayComponent.prototype.rowId;
87
+ /** @type {?} */
88
+ CalenderDayComponent.prototype.eventDate;
89
+ /** @type {?} */
90
+ CalenderDayComponent.prototype.webDisplayDate;
91
+ /** @type {?} */
92
+ CalenderDayComponent.prototype.mobileDisplayDate;
93
+ /** @type {?} */
94
+ CalenderDayComponent.prototype.currentDate;
95
+ /**
96
+ * @type {?}
97
+ * @private
98
+ */
99
+ CalenderDayComponent.prototype.datePipe;
100
+ }
101
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FsZW5kZXItZGF5LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BzdW5iaXJkLWNiL2NvbnN1bXB0aW9uLyIsInNvdXJjZXMiOlsibGliL19jb21tb24vY2FsZW5kZXIvY2FsZW5kZXItZGF5L2NhbGVuZGVyLWRheS5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxpQkFBaUIsQ0FBQztBQUMzQyxPQUFPLEVBQUUsU0FBUyxFQUFFLEtBQUssRUFBVSxNQUFNLGVBQWUsQ0FBQztBQUV6RDtJQWlCRSw4QkFBb0IsUUFBa0I7UUFBbEIsYUFBUSxHQUFSLFFBQVEsQ0FBVTtRQUp0QyxtQkFBYyxHQUFXLEVBQUUsQ0FBQTtRQUMzQixzQkFBaUIsR0FBVyxFQUFFLENBQUE7UUFDOUIsZ0JBQVcsR0FBUSxJQUFJLElBQ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