simpo-component-library 1.6.1 → 1.6.3
Sign up to get free protection for your applications and to get access to all the features.
- package/esm2022/lib/directive/spacing-horizontal.directive.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/category-product/category-product.component.mjs +2 -2
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.component.mjs +6 -3
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +15 -7
- package/fesm2022/simpo-component-library.mjs +22 -12
- 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/product-category-list/product-category-list.component.d.ts +1 -0
- package/lib/ecommerce/sections/small-product-listing/small-product-listing.component.d.ts +6 -2
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/package.json +1 -1
- package/simpo-component-library-1.6.3.tgz +0 -0
- package/simpo-component-library-1.6.1.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
|
}
|
@@ -36,6 +36,7 @@ export declare class ProductCategoryListComponent extends BaseSection implements
|
|
36
36
|
getSupportingColor(color: string): string;
|
37
37
|
get getSpacingLayout(): LayOutModel;
|
38
38
|
get headingSpace(): SPACING;
|
39
|
+
get isMobile(): boolean;
|
39
40
|
get currency(): string;
|
40
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductCategoryListComponent, never>;
|
41
42
|
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>;
|
@@ -1,20 +1,24 @@
|
|
1
1
|
import { OnInit } from '@angular/core';
|
2
2
|
import { ItemVariant, Product } from '../../styles/product.modal';
|
3
3
|
import { CartService } from '../../../services/cart.service';
|
4
|
+
import { Router } from '@angular/router';
|
4
5
|
import * as i0 from "@angular/core";
|
5
6
|
export declare class SmallProductListingComponent implements OnInit {
|
6
7
|
private readonly cartService;
|
7
|
-
|
8
|
+
private readonly router;
|
9
|
+
constructor(cartService: CartService, router: Router);
|
8
10
|
private USER_CART;
|
9
11
|
product: Product;
|
10
12
|
data?: any;
|
11
13
|
isScrollable?: boolean;
|
14
|
+
isCategoryProductList: boolean;
|
12
15
|
ngOnInit(): void;
|
13
16
|
addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
|
14
17
|
getItemVarient(product: Product, varientId: string): ItemVariant | null;
|
15
18
|
getPercentage(product: Product): string;
|
19
|
+
goToProductDetail(product: Product): void;
|
16
20
|
getSupportingColor(color: string): string;
|
17
21
|
get currency(): string;
|
18
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmallProductListingComponent, never>;
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmallProductListingComponent, "simpo-small-product-listing", never, { "product": { "alias": "product"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isScrollable": { "alias": "isScrollable"; "required": false; }; }, {}, never, never, true, never>;
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmallProductListingComponent, "simpo-small-product-listing", never, { "product": { "alias": "product"; "required": false; }; "data": { "alias": "data"; "required": false; }; "isScrollable": { "alias": "isScrollable"; "required": false; }; "isCategoryProductList": { "alias": "isCategoryProductList"; "required": false; }; }, {}, never, never, true, never>;
|
20
24
|
}
|
@@ -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>;
|
package/package.json
CHANGED
Binary file
|
Binary file
|