simpo-component-library 1.5.35 → 1.5.38

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. package/esm2022/lib/ecommerce/sections/category-product/category-product.component.mjs +20 -9
  2. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +3 -3
  3. package/esm2022/lib/ecommerce/sections/featured-category/featured-collection.component.mjs +7 -11
  4. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +9 -5
  5. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.modal.mjs +1 -1
  6. package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.component.mjs +23 -6
  7. package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.model.mjs +2 -0
  8. package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +14 -3
  9. package/esm2022/lib/services/rest.service.mjs +3 -3
  10. package/esm2022/lib/styles/index.mjs +6 -1
  11. package/fesm2022/simpo-component-library.mjs +143 -103
  12. package/fesm2022/simpo-component-library.mjs.map +1 -1
  13. package/lib/directive/background-directive.d.ts +1 -1
  14. package/lib/directive/button-directive.directive.d.ts +1 -1
  15. package/lib/directive/color.directive.d.ts +1 -1
  16. package/lib/ecommerce/sections/category-product/category-product.component.d.ts +1 -2
  17. package/lib/ecommerce/sections/featured-category/featured-collection.component.d.ts +1 -2
  18. package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +2 -0
  19. package/lib/ecommerce/sections/featured-products/featured-products.modal.d.ts +2 -1
  20. package/lib/ecommerce/sections/product-category-list/product-category-list.component.d.ts +6 -4
  21. package/lib/ecommerce/sections/product-category-list/product-category-list.model.d.ts +21 -0
  22. package/lib/ecommerce/sections/small-product-listing/small-product-listing.component.d.ts +1 -0
  23. package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
  24. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +1 -1
  25. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  26. package/lib/services/rest.service.d.ts +1 -1
  27. package/lib/styles/index.d.ts +4 -0
  28. package/package.json +1 -1
  29. package/simpo-component-library-1.5.38.tgz +0 -0
  30. package/simpo-component-library-1.5.31.tgz +0 -0
  31. package/simpo-component-library-1.5.32.tgz +0 -0
  32. package/simpo-component-library-1.5.34.tgz +0 -0
  33. package/simpo-component-library-1.5.35.tgz +0 -0
@@ -11,7 +11,7 @@ export declare class BackgroundDirective implements OnChanges {
11
11
  constructor(el: ElementRef, eventService: EventsService);
12
12
  ngOnDestroy(): void;
13
13
  ngOnChanges(change: SimpleChanges): void;
14
- getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
14
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
15
15
  static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundDirective, never>;
16
16
  static ɵdir: i0.ɵɵDirectiveDeclaration<BackgroundDirective, "[simpoBackground]", never, { "simpoBackground": { "alias": "simpoBackground"; "required": false; }; "scrollValue": { "alias": "scrollValue"; "required": false; }; }, {}, never, never, true, never>;
17
17
  }
@@ -15,7 +15,7 @@ export declare class ButtonDirectiveDirective implements OnChanges {
15
15
  applyButtonStyleChanges(): void;
16
16
  applyButtonType(style: ButtonStyleModel, color: string): void;
17
17
  applyButtonShape(style: ButtonStyleModel): void;
18
- getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
18
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
19
19
  buttonStyleSubscription?: Subscription;
20
20
  buttonStyleChangeCheck(): void;
21
21
  changeButtonStyle(id: any, style: ButtonStyleModel, bgColor: string): void;
@@ -12,7 +12,7 @@ export declare class ColorDirective implements OnChanges {
12
12
  ngOnDestroy(): void;
13
13
  applyColor(): void;
14
14
  bgColorChangeCheck(): void;
15
- getTextColor(): "#ffffff" | "#000000" | "#ffffff;";
15
+ getTextColor(): "#000000" | "#ffffff" | "#ffffff;";
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorDirective, never>;
17
17
  static ɵdir: i0.ɵɵDirectiveDeclaration<ColorDirective, "[simpoColor]", never, { "bgColor": { "alias": "simpoColor"; "required": false; }; }, {}, never, never, true, never>;
18
18
  }
@@ -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;
@@ -36,10 +35,10 @@ export declare class CategoryProductComponent extends BaseSection implements OnI
36
35
  addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
37
36
  getItemVarient(product: Product, varientId: string): ItemVariant | null;
38
37
  getPercentage(product: Product): string;
38
+ getSupportingColor(color: string): string;
39
39
  scrollLeft(): void;
40
40
  showRightArrow: boolean;
41
41
  showLeftArrow: boolean;
42
- isFirstTime: boolean;
43
42
  updateArrows(): void;
44
43
  editSection(): void;
45
44
  static ɵfac: i0.ɵɵFactoryDeclaration<CategoryProductComponent, never>;
@@ -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;
@@ -10,6 +10,7 @@ import { CartService } from '../../../services/cart.service';
10
10
  import { StorageServiceService } from '../../../services/storage.service';
11
11
  import { MessageService } from 'primeng/api';
12
12
  import { MatBottomSheet } from '@angular/material/bottom-sheet';
13
+ import { ProductCardTheme } from '@simpo-ui/styles';
13
14
  import * as i0 from "@angular/core";
14
15
  export declare class FeaturedProductsComponent extends BaseSection implements OnInit, OnDestroy, OnChanges {
15
16
  private platformId;
@@ -37,6 +38,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
37
38
  screenWidth: number;
38
39
  private USER_CART;
39
40
  private USER_WISHLIST;
41
+ theme: typeof ProductCardTheme;
40
42
  getScreenSize(): void;
41
43
  ngOnInit(): void;
42
44
  ngOnChanges(changes: SimpleChanges): void;
@@ -1,5 +1,5 @@
1
1
  import { InputTextModel, StylesModel, ImageStyle, ActionModel } from "../../../styles/style.model";
2
- import { Corners } from "../../.././styles/index";
2
+ import { Corners, ProductCardTheme } from "../../.././styles/index";
3
3
  export declare class FeaturedProductModal {
4
4
  id: string;
5
5
  sectionType: string;
@@ -28,5 +28,6 @@ export interface FeaturedProductStylesModel extends StylesModel {
28
28
  maximumProduct: number;
29
29
  elementInRow: number;
30
30
  mobileColumn: number;
31
+ theme: ProductCardTheme;
31
32
  direction: "ROW" | "COLUMN";
32
33
  }
@@ -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
+ }
@@ -10,6 +10,7 @@ export declare class SmallProductListingComponent {
10
10
  addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
11
11
  getItemVarient(product: Product, varientId: string): ItemVariant | null;
12
12
  getPercentage(product: Product): string;
13
+ getSupportingColor(color: string): string;
13
14
  get currency(): string;
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<SmallProductListingComponent, never>;
15
16
  static ɵcmp: i0.ɵɵComponentDeclaration<SmallProductListingComponent, "simpo-small-product-listing", never, { "product": { "alias": "product"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
@@ -23,8 +23,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
23
23
  get stylesLayout(): LayOutModel;
24
24
  get getBlurValue(): OverlayValue | undefined;
25
25
  get getBackgroundColor(): BackgroundModel;
26
- get getBackgroundOpacity(): "0" | "0.2" | "0.3" | "0.5" | "0.7";
27
- opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
26
+ get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "0";
27
+ opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
28
28
  editSection(): void;
29
29
  static ɵfac: i0.ɵɵFactoryDeclaration<BannerCarouselComponent, never>;
30
30
  static ɵcmp: i0.ɵɵComponentDeclaration<BannerCarouselComponent, "simpo-banner-carousel", 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>;
@@ -23,7 +23,7 @@ export declare class CarouselBannerComponent extends BaseSection implements OnIn
23
23
  get canMergeNavbar(): boolean | undefined;
24
24
  get isBorderlessImage(): boolean | undefined;
25
25
  get getPositionLayout(): PositionLayoutModal;
26
- opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
26
+ opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
27
27
  editSection(): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<CarouselBannerComponent, never>;
29
29
  static ɵcmp: i0.ɵɵComponentDeclaration<CarouselBannerComponent, "simpo-carousel-banner", 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>;
@@ -15,7 +15,7 @@ export declare class PricingSectionComponent extends BaseSection {
15
15
  style?: PricingSectionStylesModel;
16
16
  constructor(_eventService: EventsService);
17
17
  ngOnInit(): void;
18
- getTextColor(): "#ffffff" | "#000000";
18
+ getTextColor(): "#000000" | "#ffffff";
19
19
  get headingSpace(): SPACING;
20
20
  editSection(): void;
21
21
  static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
@@ -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<{
@@ -120,6 +120,10 @@ export declare enum Corners {
120
120
  Large = "Large",
121
121
  None = "None"
122
122
  }
123
+ export declare enum ProductCardTheme {
124
+ Theme1 = "Theme1",
125
+ Theme2 = "Theme2"
126
+ }
123
127
  export declare enum logoType {
124
128
  Basic = "Basic",
125
129
  Boxed = "Boxed"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.5.35",
3
+ "version": "1.5.38",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file
Binary file
Binary file
Binary file