simpo-component-library 1.4.212 → 1.4.214
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/directive/removeCarousel-directive.mjs +73 -0
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +64 -23
- package/esm2022/lib/ecommerce/sections/item-varient/item-varient.component.mjs +11 -0
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +74 -18
- package/esm2022/lib/ecommerce/styles/OrderedItems.modal.mjs +2 -1
- package/esm2022/lib/ecommerce/styles/product.modal.mjs +2 -1
- package/esm2022/lib/sections/banner-section/banner-section.component.mjs +2 -1
- package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +166 -0
- package/esm2022/lib/sections/carousel-banner/carousel-banner.model.mjs +2 -0
- package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +3 -3
- package/esm2022/lib/services/events.service.mjs +2 -1
- package/esm2022/lib/services/rest.service.mjs +6 -2
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/simpo-component-library.mjs +357 -57
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/directive/background-directive.d.ts +1 -1
- package/lib/directive/button-directive.directive.d.ts +1 -1
- package/lib/directive/color.directive.d.ts +1 -1
- package/lib/directive/removeCarousel-directive.d.ts +35 -0
- package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +5 -2
- package/lib/ecommerce/sections/item-varient/item-varient.component.d.ts +5 -0
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +11 -2
- package/lib/ecommerce/styles/OrderedItems.modal.d.ts +1 -0
- package/lib/ecommerce/styles/product.modal.d.ts +3 -0
- package/lib/sections/carousel-banner/carousel-banner.component.d.ts +28 -0
- package/lib/sections/carousel-banner/carousel-banner.model.d.ts +42 -0
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/lib/services/events.service.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/simpo-component-library-1.4.214.tgz +0 -0
- package/simpo-component-library-1.4.210.tgz +0 -0
- package/simpo-component-library-1.4.211.tgz +0 -0
- package/simpo-component-library-1.4.212.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): "#
|
14
|
+
getTextColor(bgColor: string): "#ffffff" | "#000000" | "#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): "#
|
18
|
+
getTextColor(bgColor: string): "#ffffff" | "#000000" | "#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(): "#
|
15
|
+
getTextColor(): "#ffffff" | "#000000" | "#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
|
}
|
@@ -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';
|
@@ -10,6 +10,7 @@ import { FeaturedProductModal } from '../featured-products/featured-products.mod
|
|
10
10
|
import { StorageServiceService } from '../../../services/storage.service';
|
11
11
|
import { MessageService } from 'primeng/api';
|
12
12
|
import { Meta, Title } from '@angular/platform-browser';
|
13
|
+
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
13
14
|
import * as i0 from "@angular/core";
|
14
15
|
export declare class ProductDescComponent extends BaseSection {
|
15
16
|
private platformId;
|
@@ -22,6 +23,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
22
23
|
private readonly messageService;
|
23
24
|
private readonly metaTagService;
|
24
25
|
private readonly titleService;
|
26
|
+
private readonly bottomSheet;
|
25
27
|
data?: ProductDescModal;
|
26
28
|
responseData: Product;
|
27
29
|
index?: number;
|
@@ -29,20 +31,26 @@ export declare class ProductDescComponent extends BaseSection {
|
|
29
31
|
delete?: boolean;
|
30
32
|
isLoading: boolean;
|
31
33
|
featureProductData: FeaturedProductModal | null;
|
34
|
+
varients: Map<string, string[]>;
|
35
|
+
selectedVarient: Map<string, string>;
|
32
36
|
relatedProductData: Product[];
|
33
|
-
constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService, storageService: StorageServiceService, messageService: MessageService, metaTagService: Meta, titleService: Title);
|
37
|
+
constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService, storageService: StorageServiceService, messageService: MessageService, metaTagService: Meta, titleService: Title, bottomSheet: MatBottomSheet);
|
34
38
|
buttonId?: string;
|
35
39
|
button?: ButtonModel;
|
36
40
|
styles?: ProductDescStylesModal;
|
37
41
|
isItemAsFavorite: boolean;
|
38
42
|
private USER_CART;
|
39
43
|
private USER_WISHLIST;
|
44
|
+
itemImages: ItemImage[];
|
40
45
|
ngOnInit(): void;
|
46
|
+
selectVarient(key: string, value: string): void;
|
47
|
+
getItemVarient(): ItemVariant | null;
|
41
48
|
routeToHome(): void;
|
42
49
|
screenWidth: any;
|
43
50
|
getScreenSize(): void;
|
44
51
|
currentImg: any;
|
45
52
|
changeImg(url: any): void;
|
53
|
+
getKeys(varient: Object): string[];
|
46
54
|
goToCart(): void;
|
47
55
|
addToCart(type?: 'ADD' | 'SUBSTRACT'): void;
|
48
56
|
goToFilter(category: string): void;
|
@@ -51,6 +59,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
51
59
|
getProductByCategory(): void;
|
52
60
|
getProductByCollection(): void;
|
53
61
|
changeProduct(product: Product): void;
|
62
|
+
getKeyByIdx(property: any, index: number): string;
|
54
63
|
get isItemOutOfStock(): boolean;
|
55
64
|
get currency(): string;
|
56
65
|
get isItemLowStock(): boolean;
|
@@ -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
|
+
}
|
@@ -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(): "#
|
18
|
+
getTextColor(): "#ffffff" | "#000000";
|
19
19
|
get headingSpace(): SPACING;
|
20
20
|
editSection(): void;
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
|
@@ -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
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
|
Binary file
|