simpo-component-library 1.5.34 → 1.5.36

Sign up to get free protection for your applications and to get access to all the features.
@@ -25,7 +25,6 @@ export declare class CategoryProductComponent extends BaseSection implements OnI
25
25
  categoryList: Category[];
26
26
  private USER_CART;
27
27
  constructor(restService: RestService, cartService: CartService, _eventService: EventsService, activatedRoute: ActivatedRoute);
28
- private collectionId;
29
28
  featureProductData: FeaturedProductModal | null;
30
29
  ngOnInit(): void;
31
30
  ngAfterViewInit(): void;
@@ -6,7 +6,6 @@ import { RestService } from '../../../services/rest.service';
6
6
  import { Router } from '@angular/router';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class FeaturedCollectionComponent extends BaseSection {
9
- private platformId;
10
9
  private readonly router;
11
10
  private readonly restService;
12
11
  private readonly _eventService;
@@ -18,7 +17,7 @@ export declare class FeaturedCollectionComponent extends BaseSection {
18
17
  isLoading: boolean;
19
18
  content?: FeaturedCategoryContentModal;
20
19
  styles?: FeaturedCategoryStylesModel;
21
- constructor(platformId: Object, router: Router, restService: RestService, _eventService: EventsService);
20
+ constructor(router: Router, restService: RestService, _eventService: EventsService);
22
21
  ngOnInit(): void;
23
22
  getSliceParameters(): number[];
24
23
  getCollectionsIds(): void;
@@ -5,20 +5,20 @@ import { Category } from '../../styles/category.modal';
5
5
  import { ItemVariant, Product } from '../../styles/product.modal';
6
6
  import { OrderedItems } from '../../styles/OrderedItems.modal';
7
7
  import { CartService } from '../../../services/cart.service';
8
- import { CategoryProductContentModal, CategoryProductModal, CategoryProductStylesModel } from '../category-product/category-product.model';
9
8
  import { ActivatedRoute } from '@angular/router';
9
+ import { ProductCategoryListModal, ProductCategoryListStylesModal } from './product-category-list.model';
10
+ import { SPACING } from '../../../styles/index';
10
11
  import * as i0 from "@angular/core";
11
12
  export declare class ProductCategoryListComponent extends BaseSection implements OnInit, OnDestroy {
12
13
  private readonly restService;
13
14
  private readonly cartService;
14
15
  private readonly activatedRoute;
15
16
  responseData?: any[];
16
- data?: CategoryProductModal;
17
+ data?: ProductCategoryListModal;
17
18
  index?: number;
18
19
  edit?: boolean;
19
20
  delete?: boolean;
20
- styles?: CategoryProductStylesModel;
21
- content?: CategoryProductContentModal;
21
+ styles?: ProductCategoryListStylesModal;
22
22
  categories: Category[];
23
23
  productList: Product[];
24
24
  USER_CART: OrderedItems[];
@@ -32,6 +32,8 @@ export declare class ProductCategoryListComponent extends BaseSection implements
32
32
  addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
33
33
  getItemVarient(product: Product, varientId: string): ItemVariant | null;
34
34
  getPercentage(product: Product): string;
35
+ getSupportingColor(color: string): string;
36
+ get headingSpace(): SPACING;
35
37
  get currency(): string;
36
38
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductCategoryListComponent, never>;
37
39
  static ɵcmp: i0.ɵɵComponentDeclaration<ProductCategoryListComponent, "simpo-product-category-list", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
@@ -0,0 +1,21 @@
1
+ import { ActionModel, AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
2
+ export interface ProductCategoryListModal {
3
+ id: string;
4
+ sectionType: string;
5
+ sectionName: string;
6
+ content: null;
7
+ styles: ProductCategoryListStylesModal;
8
+ action: ActionModel;
9
+ }
10
+ export interface ProductCategoryListStylesModal {
11
+ layout: LayOutModel;
12
+ background: BackgroundModel;
13
+ animation: AnimationModel;
14
+ }
15
+ export interface ProductCategoryListContentModal {
16
+ display: Display;
17
+ button: string;
18
+ }
19
+ export interface Display {
20
+ showButton: boolean;
21
+ }
@@ -14,7 +14,7 @@ export declare class RestService implements OnDestroy {
14
14
  getFeaturedProduct(collectionId: string | undefined | null): Observable<any>;
15
15
  getCategoriesByCollectionId(collectionId: string): Observable<any>;
16
16
  getProductDetails(productId?: string | null): Observable<any>;
17
- getCollectionByIds(collectionIds: string[]): Observable<Object>;
17
+ getCollectionByIds(collectionIds: string[]): Observable<any>;
18
18
  getAllCategories(): Observable<any>;
19
19
  getAllCollections(): Observable<any>;
20
20
  getFilteredProduct(collectionIds: string[], categoryIds: string[], searchText: string, minPrice: number, maxPrice: number, sortBy: string, pageNo: number, size: number): Observable<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.5.34",
3
+ "version": "1.5.36",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",