simpo-component-library 1.6.46 → 1.6.48

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.
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.6.46",
3
+ "version": "1.6.48",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
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