simpo-component-library 1.6.46 → 1.6.47
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/ecommerce/sections/customer-review/customer-review.component.mjs +68 -0
- package/esm2022/lib/ecommerce/sections/customer-review/customer-review.model.mjs +2 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/simpo-component-library.mjs +59 -1
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/customer-review/customer-review.component.d.ts +26 -0
- package/lib/ecommerce/sections/customer-review/customer-review.model.d.ts +21 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/simpo-component-library-1.6.47.tgz +0 -0
- package/simpo-component-library-1.6.46.tgz +0 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
import { OnInit } from '@angular/core';
|
2
|
+
import { CustomerReviewModel } from './customer-review.model';
|
3
|
+
import { ActivatedRoute } from '@angular/router';
|
4
|
+
import { RestService } from '../../../services/rest.service';
|
5
|
+
import { Review } from '../../styles/review.modal';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare class CustomerReviewComponent implements OnInit {
|
8
|
+
private readonly activatedRoute;
|
9
|
+
private readonly restService;
|
10
|
+
data?: CustomerReviewModel;
|
11
|
+
index?: number;
|
12
|
+
edit?: boolean;
|
13
|
+
delete?: boolean;
|
14
|
+
productId: string | null;
|
15
|
+
customerReviews: Review[];
|
16
|
+
totalRating: number;
|
17
|
+
totalRatinsCount: number;
|
18
|
+
constructor(activatedRoute: ActivatedRoute, restService: RestService);
|
19
|
+
ngOnInit(): void;
|
20
|
+
overallRatingCount: Map<string, string> | null;
|
21
|
+
getAllReviews(): void;
|
22
|
+
getKeys(object: Map<string, string> | null): string[];
|
23
|
+
getPercentage(value: string | number | undefined): number;
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomerReviewComponent, never>;
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CustomerReviewComponent, "simpo-customer-review", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
|
26
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { ActionModel, AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
|
2
|
+
export interface CustomerReviewModel {
|
3
|
+
id: string;
|
4
|
+
sectionType: string;
|
5
|
+
sectionName: string;
|
6
|
+
content: CustomerReviewContentModal;
|
7
|
+
styles: CustomerReviewStylesModal;
|
8
|
+
action: ActionModel;
|
9
|
+
}
|
10
|
+
export interface CustomerReviewStylesModal {
|
11
|
+
layout: LayOutModel;
|
12
|
+
background: BackgroundModel;
|
13
|
+
animation: AnimationModel;
|
14
|
+
}
|
15
|
+
export interface CustomerReviewContentModal {
|
16
|
+
display: Display;
|
17
|
+
button: string;
|
18
|
+
}
|
19
|
+
export interface Display {
|
20
|
+
showButton: boolean;
|
21
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -43,6 +43,7 @@ export * from './lib/ecommerce/sections/verify-payment/verify-payment.component'
|
|
43
43
|
export * from './lib/ecommerce/sections/product-category-list/product-category-list.component';
|
44
44
|
export * from './lib/ecommerce/sections/category-product/category-product.component';
|
45
45
|
export * from './lib/ecommerce/sections/featured-category/featured-collection.component';
|
46
|
+
export * from './lib/ecommerce/sections/customer-review/customer-review.component';
|
46
47
|
export * from './lib/services/events.service';
|
47
48
|
export * from './lib/services/endUser.service';
|
48
49
|
export * from './lib/services/sanitizeHtml';
|
Binary file
|
Binary file
|