simpo-component-library 1.4.212 → 1.4.213

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. package/esm2022/lib/directive/removeCarousel-directive.mjs +73 -0
  2. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +62 -23
  3. package/esm2022/lib/ecommerce/sections/item-varient/item-varient.component.mjs +11 -0
  4. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +92 -16
  5. package/esm2022/lib/ecommerce/styles/OrderedItems.modal.mjs +2 -1
  6. package/esm2022/lib/ecommerce/styles/product.modal.mjs +2 -1
  7. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +2 -1
  8. package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +166 -0
  9. package/esm2022/lib/sections/carousel-banner/carousel-banner.model.mjs +2 -0
  10. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +3 -3
  11. package/esm2022/lib/services/events.service.mjs +2 -1
  12. package/esm2022/lib/services/rest.service.mjs +6 -2
  13. package/esm2022/public-api.mjs +3 -1
  14. package/fesm2022/simpo-component-library.mjs +385 -64
  15. package/fesm2022/simpo-component-library.mjs.map +1 -1
  16. package/lib/directive/removeCarousel-directive.d.ts +35 -0
  17. package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +5 -2
  18. package/lib/ecommerce/sections/item-varient/item-varient.component.d.ts +5 -0
  19. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +8 -1
  20. package/lib/ecommerce/styles/OrderedItems.modal.d.ts +1 -0
  21. package/lib/ecommerce/styles/product.modal.d.ts +3 -0
  22. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +28 -0
  23. package/lib/sections/carousel-banner/carousel-banner.model.d.ts +42 -0
  24. package/lib/services/events.service.d.ts +1 -0
  25. package/package.json +1 -1
  26. package/public-api.d.ts +2 -0
  27. package/simpo-component-library-1.4.213.tgz +0 -0
  28. package/simpo-component-library-1.4.210.tgz +0 -0
  29. package/simpo-component-library-1.4.211.tgz +0 -0
  30. package/simpo-component-library-1.4.212.tgz +0 -0
@@ -0,0 +1,35 @@
1
+ import { ElementRef, OnChanges, OnDestroy, OnInit, Renderer2 } from '@angular/core';
2
+ import { EventsService } from '../services/events.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RemoveCarouselDirective implements OnChanges, OnInit, OnDestroy {
5
+ private el;
6
+ private renderer;
7
+ private eventService;
8
+ carouselRemove?: any;
9
+ currentIndex?: number;
10
+ eventServiceSubscription: any;
11
+ private observer;
12
+ animationSpeed: {
13
+ type: {
14
+ top: string;
15
+ bottom: string;
16
+ left: string;
17
+ right: string;
18
+ fadeIn: string;
19
+ zoom: string;
20
+ none: string;
21
+ };
22
+ speed: {
23
+ slow: string;
24
+ medium: string;
25
+ fast: string;
26
+ };
27
+ };
28
+ constructor(el: ElementRef, renderer: Renderer2, eventService: EventsService);
29
+ ngOnDestroy(): void;
30
+ ngOnInit(): void;
31
+ ngOnChanges(): void;
32
+ private stopCarousel;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<RemoveCarouselDirective, never>;
34
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RemoveCarouselDirective, "[simpoCarouselRemove]", never, { "carouselRemove": { "alias": "simpoCarouselRemove"; "required": false; }; "currentIndex": { "alias": "currentIndex"; "required": false; }; }, {}, never, never, true, never>;
35
+ }
@@ -1,6 +1,6 @@
1
1
  import { EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
2
  import { FeaturedProductContentModal, FeaturedProductModal, FeaturedProductStylesModel } from './featured-products.modal';
3
- import { Product } from '../../styles/product.modal';
3
+ import { Product, ItemVariant } from '../../styles/product.modal';
4
4
  import { EventsService } from '.././../../services/events.service';
5
5
  import BaseSection from '../../../sections/BaseSection';
6
6
  import { ButtonModel } from '../../../styles/style.model';
@@ -9,6 +9,7 @@ import { Router } from '@angular/router';
9
9
  import { CartService } from '../../../services/cart.service';
10
10
  import { StorageServiceService } from '../../../services/storage.service';
11
11
  import { MessageService } from 'primeng/api';
12
+ import { MatBottomSheet } from '@angular/material/bottom-sheet';
12
13
  import * as i0 from "@angular/core";
13
14
  export declare class FeaturedProductsComponent extends BaseSection implements OnInit, OnDestroy, OnChanges {
14
15
  private platformId;
@@ -16,6 +17,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
16
17
  private readonly restService;
17
18
  private readonly router;
18
19
  private readonly cartService;
20
+ private readonly bottomSheet;
19
21
  private readonly storageService;
20
22
  private readonly messageService;
21
23
  data: FeaturedProductModal | null;
@@ -31,7 +33,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
31
33
  styles?: FeaturedProductStylesModel;
32
34
  button?: ButtonModel;
33
35
  private _eventSubscriber;
34
- constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, cartService: CartService, storageService: StorageServiceService, messageService: MessageService);
36
+ constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, cartService: CartService, bottomSheet: MatBottomSheet, storageService: StorageServiceService, messageService: MessageService);
35
37
  screenWidth: number;
36
38
  private USER_CART;
37
39
  private USER_WISHLIST;
@@ -47,6 +49,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
47
49
  proceedToProductDesc(product: Product): void;
48
50
  togglePreviewImage(product: Product, idx: number): void;
49
51
  isItemOutOfStock(product: Product): boolean;
52
+ getItemVarient(product: Product, varientId: string): ItemVariant | null;
50
53
  get currency(): string;
51
54
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedProductsComponent, never>;
52
55
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedProductsComponent, "simpo-featured-products", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "isRelatedProduct": { "alias": "isRelatedProduct"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, { "changeDetailProduct": "changeDetailProduct"; }, never, never, true, never>;
@@ -0,0 +1,5 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class ItemVarientComponent {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<ItemVarientComponent, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<ItemVarientComponent, "simpo-item-varient", never, {}, {}, never, never, true, never>;
5
+ }
@@ -1,5 +1,5 @@
1
1
  import { ProductDescModal, ProductDescStylesModal } from './product-desc.modal';
2
- import { Product } from '../../styles/product.modal';
2
+ import { ItemImage, ItemVariant, Product } from '../../styles/product.modal';
3
3
  import { ButtonModel } from '../../../styles/style.model';
4
4
  import BaseSection from '../../../sections/BaseSection';
5
5
  import { EventsService } from '.././../../services/events.service';
@@ -29,6 +29,8 @@ export declare class ProductDescComponent extends BaseSection {
29
29
  delete?: boolean;
30
30
  isLoading: boolean;
31
31
  featureProductData: FeaturedProductModal | null;
32
+ varients: Map<string, string[]>;
33
+ selectedVarient: Map<string, string>;
32
34
  relatedProductData: Product[];
33
35
  constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService, storageService: StorageServiceService, messageService: MessageService, metaTagService: Meta, titleService: Title);
34
36
  buttonId?: string;
@@ -37,12 +39,16 @@ export declare class ProductDescComponent extends BaseSection {
37
39
  isItemAsFavorite: boolean;
38
40
  private USER_CART;
39
41
  private USER_WISHLIST;
42
+ itemImages: ItemImage[];
40
43
  ngOnInit(): void;
44
+ selectVarient(key: string, value: string): void;
45
+ getItemVarient(): ItemVariant | null;
41
46
  routeToHome(): void;
42
47
  screenWidth: any;
43
48
  getScreenSize(): void;
44
49
  currentImg: any;
45
50
  changeImg(url: any): void;
51
+ getKeys(varient: Object): string[];
46
52
  goToCart(): void;
47
53
  addToCart(type?: 'ADD' | 'SUBSTRACT'): void;
48
54
  goToFilter(category: string): void;
@@ -51,6 +57,7 @@ export declare class ProductDescComponent extends BaseSection {
51
57
  getProductByCategory(): void;
52
58
  getProductByCollection(): void;
53
59
  changeProduct(product: Product): void;
60
+ getKeyByIdx(property: any, index: number): string;
54
61
  get isItemOutOfStock(): boolean;
55
62
  get currency(): string;
56
63
  get isItemLowStock(): boolean;
@@ -1,5 +1,6 @@
1
1
  export declare class OrderedItems {
2
2
  itemId: string;
3
+ variantId: string;
3
4
  businessId: string;
4
5
  itemName: string;
5
6
  businessName: string;
@@ -1,5 +1,6 @@
1
1
  export declare class Product {
2
2
  itemId: string;
3
+ varientId: string | null;
3
4
  storeId: string[];
4
5
  name: string;
5
6
  itemCategorisation: ItemCategorisation;
@@ -76,6 +77,8 @@ export interface ItemInventory {
76
77
  export interface ItemVariant {
77
78
  variantId: string;
78
79
  itemId: string;
80
+ quantity: number;
81
+ wishlist: boolean;
79
82
  variantName: string;
80
83
  variantImages: VariantImage[];
81
84
  itemPacks: ItemPack[];
@@ -0,0 +1,28 @@
1
+ import { OnInit, ElementRef } from '@angular/core';
2
+ import { LayOutModel, PositionLayoutModal } from '../../styles/style.model';
3
+ import BaseSection from '../BaseSection';
4
+ import { EventsService } from './../../services/events.service';
5
+ import { BannerSectionModel } from './carousel-banner.model';
6
+ import { OverlayValue } from "../../styles/index";
7
+ import * as i0 from "@angular/core";
8
+ export declare class CarouselBannerComponent extends BaseSection implements OnInit {
9
+ private _eventService;
10
+ carouselElement1: ElementRef;
11
+ data?: BannerSectionModel;
12
+ index?: number;
13
+ edit?: boolean;
14
+ delete?: boolean;
15
+ currentIndex: number;
16
+ selectSlide(index: number): void;
17
+ constructor(_eventService: EventsService);
18
+ ngOnInit(): void;
19
+ stylesLayout(item: any): LayOutModel;
20
+ get getJustifyContent(): string;
21
+ canMergeNavbar(item: any): any;
22
+ isBorderlessImage(item: any): any;
23
+ getPositionLayout(item: any): PositionLayoutModal;
24
+ opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
25
+ editSection(): void;
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<CarouselBannerComponent, never>;
27
+ 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>;
28
+ }
@@ -0,0 +1,42 @@
1
+ import { ActionModel, BannerStylesModel, Image, InputTextModel, ListItemModal } from './../../styles/style.model';
2
+ export interface BannerSectionModel {
3
+ id: string;
4
+ sectionType: string;
5
+ sectionName: string;
6
+ listBanners: [singleBannerModel];
7
+ styles: stylesModel;
8
+ }
9
+ export interface ImageModel extends Image {
10
+ showImage: boolean;
11
+ }
12
+ export interface stylesModel {
13
+ bannerAnimation: {
14
+ label: string;
15
+ value: string;
16
+ types: [];
17
+ };
18
+ }
19
+ export interface textModel {
20
+ value: string;
21
+ }
22
+ export interface BannerContentModel {
23
+ inputText: InputTextModel[];
24
+ image: ImageModel;
25
+ listItem: ListItemModal<BannerListItem>;
26
+ }
27
+ export interface BannerListItem {
28
+ inputText: InputTextModel[];
29
+ }
30
+ export interface singleBannerModel {
31
+ sectionName: string;
32
+ sectionType: string;
33
+ id: string;
34
+ content: BannerContentModel;
35
+ styles: BannerStylesModel;
36
+ action: ActionModel;
37
+ }
38
+ export interface actionsModel {
39
+ label: string;
40
+ value: string;
41
+ types: ["Horizontal", "Animated"];
42
+ }
@@ -34,6 +34,7 @@ export declare class EventsService implements OnInit {
34
34
  openBlogListEvent: EventEmitter<unknown>;
35
35
  toggleEditorEvent: EventEmitter<boolean>;
36
36
  closeEditorEvent: EventEmitter<false>;
37
+ stopCarouselEvent: EventEmitter<any>;
37
38
  redirectToPage: EventEmitter<unknown>;
38
39
  addToCart: EventEmitter<unknown>;
39
40
  placeOrder: EventEmitter<unknown>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.4.212",
3
+ "version": "1.4.213",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -28,6 +28,7 @@ export * from './lib/sections/features-section/features-section.component';
28
28
  export * from './lib/sections/testimonial-fullwidth/testimonial-fullwidth.component';
29
29
  export * from './lib/sections/logo-showcase/logo-showcase.component';
30
30
  export * from './lib/sections/banner-carousel/banner-carousel.component';
31
+ export * from './lib/sections/carousel-banner/carousel-banner.component';
31
32
  export * from './lib/ecommerce/sections/featured-products/featured-products.component';
32
33
  export * from './lib/ecommerce/sections/featured-category/featured-category.component';
33
34
  export * from './lib/ecommerce/sections/product-desc/product-desc.component';
@@ -61,6 +62,7 @@ export * from './lib/directive/color.directive';
61
62
  export * from './lib/directive/image-position.directive';
62
63
  export * from './lib/directive/container-alignment.directive';
63
64
  export * from './lib/directive/sticky-directive';
65
+ export * from './lib/directive/removeCarousel-directive';
64
66
  export * from './lib/styles/index';
65
67
  export * from './lib/styles/style.model';
66
68
  export * from './lib/styles/types';
Binary file
Binary file
Binary file