@sunbird-cb/consumption 0.0.13 → 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.
- package/bundles/sunbird-cb-consumption.umd.js +247 -684
- 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/avatar-photo-lib/avatar-photo-lib.component.js +15 -4
- package/esm2015/lib/_common/cards/card-wide/card-wide.component.js +1 -1
- package/esm2015/lib/_common/cards/cards.component.js +2 -2
- package/esm2015/lib/_common/sliders-ng-content/sliders-ng-content.component.js +15 -6
- package/esm2015/lib/_common/user-content-rating/user-content-rating-lib.component.js +139 -0
- package/esm2015/lib/_common/user-content-rating/user-content-rating-lib.module.js +38 -0
- package/esm2015/lib/_common/user-content-rating/user-content-rating-lib.service.js +45 -0
- package/esm2015/lib/_directives/scrollable-item/scrollable-item.directive.js +42 -0
- package/esm2015/lib/_directives/scrollable-item/scrollable-item.module.js +19 -0
- package/esm2015/public-api.js +2 -2
- package/esm2015/sunbird-cb-consumption.js +11 -8
- package/esm5/lib/_common/avatar-photo-lib/avatar-photo-lib.component.js +15 -4
- package/esm5/lib/_common/cards/card-wide/card-wide.component.js +1 -1
- package/esm5/lib/_common/cards/cards.component.js +2 -2
- package/esm5/lib/_common/sliders-ng-content/sliders-ng-content.component.js +15 -6
- package/esm5/lib/_common/user-content-rating/user-content-rating-lib.component.js +162 -0
- package/esm5/lib/_common/user-content-rating/user-content-rating-lib.module.js +42 -0
- package/esm5/lib/_common/user-content-rating/user-content-rating-lib.service.js +48 -0
- package/esm5/lib/_directives/scrollable-item/scrollable-item.directive.js +45 -0
- package/esm5/lib/_directives/scrollable-item/scrollable-item.module.js +23 -0
- package/esm5/public-api.js +2 -2
- package/esm5/sunbird-cb-consumption.js +11 -8
- package/fesm2015/sunbird-cb-consumption.js +217 -671
- package/fesm2015/sunbird-cb-consumption.js.map +1 -1
- package/fesm5/sunbird-cb-consumption.js +238 -678
- package/fesm5/sunbird-cb-consumption.js.map +1 -1
- package/lib/_common/avatar-photo-lib/avatar-photo-lib.component.d.ts +1 -0
- package/lib/_common/sliders-ng-content/sliders-ng-content.component.d.ts +1 -0
- package/lib/_common/user-content-rating/user-content-rating-lib.component.d.ts +22 -0
- package/lib/_common/user-content-rating/user-content-rating-lib.module.d.ts +2 -0
- package/lib/_common/user-content-rating/user-content-rating-lib.service.d.ts +7 -0
- package/lib/_directives/scrollable-item/scrollable-item.directive.d.ts +7 -0
- package/lib/_directives/scrollable-item/scrollable-item.module.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/sunbird-cb-consumption.d.ts +9 -6
- package/sunbird-cb-consumption.metadata.json +1 -1
- package/esm2015/lib/_common/user-content-rating/user-content-rating.component.js +0 -710
- package/esm2015/lib/_common/user-content-rating/user-content-rating.module.js +0 -35
- package/esm5/lib/_common/user-content-rating/user-content-rating.component.js +0 -726
- package/esm5/lib/_common/user-content-rating/user-content-rating.module.js +0 -39
- package/lib/_common/user-content-rating/user-content-rating.component.d.ts +0 -167
- package/lib/_common/user-content-rating/user-content-rating.module.d.ts +0 -2
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
|
6
|
-
import { CommonModule } from '@angular/common';
|
|
7
|
-
import { MatChipsModule, MatIconModule } from '@angular/material';
|
|
8
|
-
import { UserContentRatingComponent } from './user-content-rating.component';
|
|
9
|
-
import { SkeletonLoaderLibModule } from '../skeleton-loader-lib/skeleton-loader-lib.module';
|
|
10
|
-
import { SlidersLibModule } from '../sliders/sliders.module';
|
|
11
|
-
import { RatingService } from '../../_services/rating.service';
|
|
12
|
-
import { CardsModule } from '../cards/cards.module';
|
|
13
|
-
import { AvatarPhotoLibModule } from '../avatar-photo-lib/avatar-photo-lib.module';
|
|
14
|
-
import { SlidersNgContentLibModule } from '../sliders-ng-content/sliders-ng-content.module';
|
|
15
|
-
var UserContentRatingModule = /** @class */ (function () {
|
|
16
|
-
function UserContentRatingModule() {
|
|
17
|
-
}
|
|
18
|
-
UserContentRatingModule.decorators = [
|
|
19
|
-
{ type: NgModule, args: [{
|
|
20
|
-
declarations: [UserContentRatingComponent],
|
|
21
|
-
imports: [
|
|
22
|
-
CommonModule,
|
|
23
|
-
MatIconModule,
|
|
24
|
-
MatChipsModule,
|
|
25
|
-
SkeletonLoaderLibModule,
|
|
26
|
-
SlidersLibModule,
|
|
27
|
-
CardsModule,
|
|
28
|
-
AvatarPhotoLibModule,
|
|
29
|
-
SlidersNgContentLibModule
|
|
30
|
-
],
|
|
31
|
-
exports: [UserContentRatingComponent],
|
|
32
|
-
providers: [RatingService],
|
|
33
|
-
schemas: [CUSTOM_ELEMENTS_SCHEMA]
|
|
34
|
-
},] }
|
|
35
|
-
];
|
|
36
|
-
return UserContentRatingModule;
|
|
37
|
-
}());
|
|
38
|
-
export { UserContentRatingModule };
|
|
39
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXNlci1jb250ZW50LXJhdGluZy5tb2R1bGUuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Ac3VuYmlyZC1jYi9jb25zdW1wdGlvbi8iLCJzb3VyY2VzIjpbImxpYi9fY29tbW9uL3VzZXItY29udGVudC1yYXRpbmcvdXNlci1jb250ZW50LXJhdGluZy5tb2R1bGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7OztBQUFBLE9BQU8sRUFBRSxzQkFBc0IsRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDakUsT0FBTyxFQUFF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1bGUsXG4gICAgTWF0Q2hpcHNNb2R1bGUsXG4gICAgU2tlbGV0b25Mb2FkZXJMaWJNb2R1bGUsXG4gICAgU2xpZGVyc0xpYk1vZHVsZSxcbiAgICBDYXJkc01vZHVsZSxcbiAgICBBdmF0YXJQaG90b0xpYk1vZHVsZSxcbiAgICBTbGlkZXJzTmdDb250ZW50TGliTW9kdWxlXG4gIF0sXG4gIGV4cG9ydHM6IFtVc2VyQ29udGVudFJhdGluZ0NvbXBvbmVudF0sXG4gIHByb3ZpZGVyczogW1JhdGluZ1NlcnZpY2VdLFxuICBzY2hlbWFzOltDVVNUT01fRUxFTUVOVFNfU0NIRU1BXVxufSlcbmV4cG9ydCBjbGFzcyBVc2VyQ29udGVudFJhdGluZ01vZHVsZSB7IH1cbiJdfQ==
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { RatingService } from '../../_services/rating.service';
|
|
3
|
-
export declare class UserContentRatingComponent implements OnInit {
|
|
4
|
-
ratingService: RatingService;
|
|
5
|
-
currentIndex: any;
|
|
6
|
-
styleData: {
|
|
7
|
-
"bannerMetaClass": string;
|
|
8
|
-
"bannerMeta": string;
|
|
9
|
-
"bannerMetaAlign": string;
|
|
10
|
-
"navigationArrows": string;
|
|
11
|
-
"borderRadius": string;
|
|
12
|
-
"customHeight": string;
|
|
13
|
-
"arrowsPlacement": string;
|
|
14
|
-
"responsive": {
|
|
15
|
-
"bannerMetaClass": string;
|
|
16
|
-
"customHeight": string;
|
|
17
|
-
"bannerMetaAlign": string;
|
|
18
|
-
"navigationArrows": string;
|
|
19
|
-
"dots": string;
|
|
20
|
-
"arrowsPlacement": string;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
sliders: {
|
|
24
|
-
"active": boolean;
|
|
25
|
-
"banners": {
|
|
26
|
-
"l": string;
|
|
27
|
-
"m": string;
|
|
28
|
-
"s": string;
|
|
29
|
-
"xl": string;
|
|
30
|
-
"xs": string;
|
|
31
|
-
"xxl": string;
|
|
32
|
-
};
|
|
33
|
-
"redirectUrl": string;
|
|
34
|
-
"queryParams": {};
|
|
35
|
-
"title": string;
|
|
36
|
-
}[];
|
|
37
|
-
contentCard: {
|
|
38
|
-
"content": {
|
|
39
|
-
"identifier": string;
|
|
40
|
-
"competencies_v5": {
|
|
41
|
-
"competencyArea": string;
|
|
42
|
-
"competencyAreaId": number;
|
|
43
|
-
"competencyAreaDescription": string;
|
|
44
|
-
"competencyTheme": string;
|
|
45
|
-
"competencyThemeId": number;
|
|
46
|
-
"competecnyThemeDescription": string;
|
|
47
|
-
"competencyThemeType": string;
|
|
48
|
-
"competencySubTheme": string;
|
|
49
|
-
"competencySubThemeId": number;
|
|
50
|
-
"competecnySubThemeDescription": string;
|
|
51
|
-
}[];
|
|
52
|
-
"description": string;
|
|
53
|
-
"organisation": string[];
|
|
54
|
-
"creatorLogo": any;
|
|
55
|
-
"posterImage": string;
|
|
56
|
-
"duration": string;
|
|
57
|
-
"additionalTags": any;
|
|
58
|
-
"appIcon": string;
|
|
59
|
-
"primaryCategory": string;
|
|
60
|
-
"name": string;
|
|
61
|
-
"avgRating": any;
|
|
62
|
-
"contentType": string;
|
|
63
|
-
};
|
|
64
|
-
"cardSubType": string;
|
|
65
|
-
"cardCustomeClass": string;
|
|
66
|
-
"context": {
|
|
67
|
-
"pageSection": string;
|
|
68
|
-
"position": number;
|
|
69
|
-
};
|
|
70
|
-
"review": string;
|
|
71
|
-
"rating": number;
|
|
72
|
-
"userDetails": {
|
|
73
|
-
"firstName": string;
|
|
74
|
-
"userId": string;
|
|
75
|
-
"profileImageUrl": any;
|
|
76
|
-
};
|
|
77
|
-
};
|
|
78
|
-
widgetData: {
|
|
79
|
-
cardSubType: string;
|
|
80
|
-
};
|
|
81
|
-
responseData: ({
|
|
82
|
-
"review": string;
|
|
83
|
-
"rating": number;
|
|
84
|
-
"userDetails": {
|
|
85
|
-
"firstName": string;
|
|
86
|
-
"userId": string;
|
|
87
|
-
"profileImageUrl": any;
|
|
88
|
-
};
|
|
89
|
-
"cardSubType": string;
|
|
90
|
-
"cardCustomeClass": string;
|
|
91
|
-
"context": {
|
|
92
|
-
"pageSection": string;
|
|
93
|
-
"position": number;
|
|
94
|
-
};
|
|
95
|
-
"content": {
|
|
96
|
-
"identifier": string;
|
|
97
|
-
"competencies_v5": {
|
|
98
|
-
"competencyArea": string;
|
|
99
|
-
"competencyAreaDescription": string;
|
|
100
|
-
"competencyAreaId": number;
|
|
101
|
-
"competencyTheme": string;
|
|
102
|
-
"competencyThemeDescription": string;
|
|
103
|
-
"competencyThemeId": number;
|
|
104
|
-
"competencyThemeType": string;
|
|
105
|
-
"competencySubTheme": string;
|
|
106
|
-
"competencySubThemeId": number;
|
|
107
|
-
"competencySubThemeDescription": string;
|
|
108
|
-
}[];
|
|
109
|
-
"description": string;
|
|
110
|
-
"organisation": string[];
|
|
111
|
-
"creatorLogo": any;
|
|
112
|
-
"posterImage": string;
|
|
113
|
-
"duration": string;
|
|
114
|
-
"additionalTags": any;
|
|
115
|
-
"appIcon": string;
|
|
116
|
-
"primaryCategory": string;
|
|
117
|
-
"name": string;
|
|
118
|
-
"avgRating": number;
|
|
119
|
-
"contentType": string;
|
|
120
|
-
};
|
|
121
|
-
} | {
|
|
122
|
-
"review": string;
|
|
123
|
-
"rating": number;
|
|
124
|
-
"userDetails": {
|
|
125
|
-
"firstName": string;
|
|
126
|
-
"userId": string;
|
|
127
|
-
"profileImageUrl": any;
|
|
128
|
-
};
|
|
129
|
-
"cardSubType": string;
|
|
130
|
-
"cardCustomeClass": string;
|
|
131
|
-
"context": {
|
|
132
|
-
"pageSection": string;
|
|
133
|
-
"position": number;
|
|
134
|
-
};
|
|
135
|
-
"content": {
|
|
136
|
-
"identifier": string;
|
|
137
|
-
"competencies_v5": {
|
|
138
|
-
"competencyArea": string;
|
|
139
|
-
"competencyAreaId": number;
|
|
140
|
-
"competencyAreaDescription": string;
|
|
141
|
-
"competencyTheme": string;
|
|
142
|
-
"competencyThemeId": number;
|
|
143
|
-
"competecnyThemeDescription": string;
|
|
144
|
-
"competencyThemeType": string;
|
|
145
|
-
"competencySubTheme": string;
|
|
146
|
-
"competencySubThemeId": number;
|
|
147
|
-
"competecnySubThemeDescription": string;
|
|
148
|
-
}[];
|
|
149
|
-
"description": string;
|
|
150
|
-
"organisation": string[];
|
|
151
|
-
"creatorLogo": any;
|
|
152
|
-
"posterImage": string;
|
|
153
|
-
"duration": string;
|
|
154
|
-
"additionalTags": string[];
|
|
155
|
-
"appIcon": string;
|
|
156
|
-
"primaryCategory": string;
|
|
157
|
-
"name": string;
|
|
158
|
-
"avgRating": number;
|
|
159
|
-
"contentType": string;
|
|
160
|
-
};
|
|
161
|
-
})[];
|
|
162
|
-
constructor(ratingService: RatingService);
|
|
163
|
-
ngOnInit(): void;
|
|
164
|
-
getRatingIcon(ratingIndex: number, avg: number): 'star' | 'star_border' | 'star_half';
|
|
165
|
-
getRatingIconClass(ratingIndex: number, avg: number): boolean;
|
|
166
|
-
getCurrentIndex(indexValue: any): void;
|
|
167
|
-
}
|