simpo-component-library 1.5.31 → 1.5.34
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/ecommerce/sections/category-product/category-product.component.mjs +59 -6
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +11 -5
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/featured-category/featured-collection.component.mjs +23 -12
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +7 -5
- package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.component.mjs +18 -4
- package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +6 -4
- package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +6 -4
- package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +6 -4
- package/esm2022/lib/sections/contact-us/contact-us.component.mjs +7 -5
- package/esm2022/lib/sections/features-section/features-section.component.mjs +6 -4
- package/esm2022/lib/sections/header-text/header-text.component.mjs +6 -4
- package/esm2022/lib/sections/location-section/location-section.component.mjs +7 -5
- package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +4 -3
- package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +5 -3
- package/esm2022/lib/sections/process-modern/process-modern.component.mjs +6 -4
- package/esm2022/lib/sections/process-section/process-section.component.mjs +5 -3
- package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.component.mjs +6 -4
- package/esm2022/lib/sections/service-section/service-section.component.mjs +7 -5
- package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +7 -5
- package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +7 -5
- package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +7 -5
- package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +7 -5
- package/esm2022/lib/services/events.service.mjs +3 -1
- package/esm2022/lib/services/rest.service.mjs +7 -1
- package/fesm2022/simpo-component-library.mjs +179 -82
- 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/ecommerce/sections/category-product/category-product.component.d.ts +4 -1
- package/lib/ecommerce/sections/featured-category/featured-category.modal.d.ts +1 -0
- package/lib/ecommerce/sections/featured-category/featured-collection.component.d.ts +1 -1
- package/lib/ecommerce/sections/product-category-list/product-category-list.component.d.ts +3 -1
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/lib/services/events.service.d.ts +2 -0
- package/lib/services/rest.service.d.ts +1 -0
- package/package.json +1 -1
- package/simpo-component-library-1.5.32.tgz +0 -0
- package/simpo-component-library-1.5.34.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
|
}
|
@@ -3,7 +3,7 @@ import { CategoryProductContentModal, CategoryProductModal, CategoryProductStyle
|
|
3
3
|
import { RestService } from '../../../services/rest.service';
|
4
4
|
import { EventsService } from '../../../services/events.service';
|
5
5
|
import { Category } from '../../styles/category.modal';
|
6
|
-
import { Product } from '../../styles/product.modal';
|
6
|
+
import { ItemVariant, Product } from '../../styles/product.modal';
|
7
7
|
import { FeaturedProductModal } from '../featured-products/featured-products.modal';
|
8
8
|
import { CartService } from '../../../services/cart.service';
|
9
9
|
import BaseSection from '../../../sections/BaseSection';
|
@@ -33,6 +33,9 @@ export declare class CategoryProductComponent extends BaseSection implements OnI
|
|
33
33
|
dataList: Product[];
|
34
34
|
selectCategory(categoryId: string): void;
|
35
35
|
scrollRight(): void;
|
36
|
+
addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
|
37
|
+
getItemVarient(product: Product, varientId: string): ItemVariant | null;
|
38
|
+
getPercentage(product: Product): string;
|
36
39
|
scrollLeft(): void;
|
37
40
|
showRightArrow: boolean;
|
38
41
|
showLeftArrow: boolean;
|
@@ -21,8 +21,8 @@ export declare class FeaturedCollectionComponent extends BaseSection {
|
|
21
21
|
constructor(platformId: Object, router: Router, restService: RestService, _eventService: EventsService);
|
22
22
|
ngOnInit(): void;
|
23
23
|
getSliceParameters(): number[];
|
24
|
+
getCollectionsIds(): void;
|
24
25
|
redirectToListPage(collection: string): void;
|
25
|
-
getAllCollections(): void;
|
26
26
|
editSection(): void;
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCollectionComponent, never>;
|
28
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCollectionComponent, "simpo-featured-collection", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
|
@@ -5,7 +5,7 @@ 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 { CategoryProductModal } from '../category-product/category-product.model';
|
8
|
+
import { CategoryProductContentModal, CategoryProductModal, CategoryProductStylesModel } from '../category-product/category-product.model';
|
9
9
|
import { ActivatedRoute } from '@angular/router';
|
10
10
|
import * as i0 from "@angular/core";
|
11
11
|
export declare class ProductCategoryListComponent extends BaseSection implements OnInit, OnDestroy {
|
@@ -17,6 +17,8 @@ export declare class ProductCategoryListComponent extends BaseSection implements
|
|
17
17
|
index?: number;
|
18
18
|
edit?: boolean;
|
19
19
|
delete?: boolean;
|
20
|
+
styles?: CategoryProductStylesModel;
|
21
|
+
content?: CategoryProductContentModal;
|
20
22
|
categories: Category[];
|
21
23
|
productList: Product[];
|
22
24
|
USER_CART: OrderedItems[];
|
@@ -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
|
+
wrapDirection: EventEmitter<string>;
|
37
38
|
stopCarouselEvent: EventEmitter<any>;
|
38
39
|
redirectToPage: EventEmitter<unknown>;
|
39
40
|
addToCart: EventEmitter<unknown>;
|
@@ -41,6 +42,7 @@ export declare class EventsService implements OnInit {
|
|
41
42
|
featureCollectionList: EventEmitter<unknown>;
|
42
43
|
environmentType: EventEmitter<string>;
|
43
44
|
categoryProductList: EventEmitter<string>;
|
45
|
+
collectionsListEvent: EventEmitter<string[]>;
|
44
46
|
showLoadingScreen: EventEmitter<boolean>;
|
45
47
|
cashFreeEvent: EventEmitter<unknown>;
|
46
48
|
addressAddedIdx: EventEmitter<number>;
|
@@ -14,6 +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
18
|
getAllCategories(): Observable<any>;
|
18
19
|
getAllCollections(): Observable<any>;
|
19
20
|
getFilteredProduct(collectionIds: string[], categoryIds: string[], searchText: string, minPrice: number, maxPrice: number, sortBy: string, pageNo: number, size: number): Observable<{
|
package/package.json
CHANGED
Binary file
|
Binary file
|