simpo-component-library 1.2.1 → 1.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/directive/content-fit-directive.mjs +2 -2
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +61 -0
- package/esm2022/lib/ecommerce/sections/cart/cart.modal.mjs +2 -0
- package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +57 -0
- package/esm2022/lib/ecommerce/sections/checkout/checkout.modal.mjs +2 -0
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +70 -0
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.modal.mjs +2 -0
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +85 -0
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.modal.mjs +2 -0
- package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +32 -0
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +94 -0
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.modal.mjs +2 -0
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +123 -0
- package/esm2022/lib/ecommerce/sections/product-list/product-list.modal.mjs +2 -0
- package/esm2022/lib/ecommerce/styles/cart.modal.mjs +2 -0
- package/esm2022/lib/ecommerce/styles/category.modal.mjs +8 -0
- package/esm2022/lib/ecommerce/styles/product.modal.mjs +2 -0
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +22 -7
- package/esm2022/lib/services/events.service.mjs +5 -1
- package/esm2022/public-api.mjs +11 -1
- package/fesm2022/simpo-component-library.mjs +452 -13
- 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/cart/cart.component.d.ts +20 -0
- package/lib/ecommerce/sections/cart/cart.modal.d.ts +14 -0
- package/lib/ecommerce/sections/checkout/checkout.component.d.ts +22 -0
- package/lib/ecommerce/sections/checkout/checkout.modal.d.ts +18 -0
- package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +22 -0
- package/lib/ecommerce/sections/featured-category/featured-category.modal.d.ts +14 -0
- package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +27 -0
- package/lib/ecommerce/sections/featured-products/featured-products.modal.d.ts +27 -0
- package/lib/ecommerce/sections/pagnination/pagnination.component.d.ts +13 -0
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +32 -0
- package/lib/ecommerce/sections/product-desc/product-desc.modal.d.ts +18 -0
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +40 -0
- package/lib/ecommerce/sections/product-list/product-list.modal.d.ts +23 -0
- package/lib/ecommerce/styles/cart.modal.d.ts +72 -0
- package/lib/ecommerce/styles/category.modal.d.ts +14 -0
- package/lib/ecommerce/styles/product.modal.d.ts +204 -0
- package/lib/sections/navbar-section/navbar-section.component.d.ts +7 -1
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/lib/services/events.service.d.ts +3 -0
- package/package.json +1 -1
- package/public-api.d.ts +9 -0
- package/simpo-component-library-1.2.3.tgz +0 -0
- package/simpo-component-library-1.2.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): "#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): "#
|
|
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(): "#
|
|
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
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { CartSectionModal, CartSectionStylesModel } from './cart.modal';
|
|
2
|
+
import BaseSection from '../../../sections/BaseSection';
|
|
3
|
+
import { EventsService } from '.././../../services/events.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class CartComponent extends BaseSection {
|
|
6
|
+
private _eventService;
|
|
7
|
+
data?: CartSectionModal;
|
|
8
|
+
responseData?: any;
|
|
9
|
+
index?: number;
|
|
10
|
+
edit?: boolean;
|
|
11
|
+
delete?: boolean;
|
|
12
|
+
styles?: CartSectionStylesModel;
|
|
13
|
+
constructor(_eventService: EventsService);
|
|
14
|
+
ngOnInit(): void;
|
|
15
|
+
addOrSubtractQuantity(vlaue: 'ADD' | 'SUBSTRACT'): void;
|
|
16
|
+
proceedToCheckout(): void;
|
|
17
|
+
proceedToListPage(): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CartComponent, "simpo-cart", 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>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
|
|
2
|
+
import { ActionModel } from '../../../styles/style.model';
|
|
3
|
+
export interface CartSectionModal {
|
|
4
|
+
id: string;
|
|
5
|
+
sectionType: string;
|
|
6
|
+
sectionName: string;
|
|
7
|
+
styles: CartSectionStylesModel;
|
|
8
|
+
action: ActionModel;
|
|
9
|
+
}
|
|
10
|
+
export interface CartSectionStylesModel {
|
|
11
|
+
layout: LayOutModel;
|
|
12
|
+
background: BackgroundModel;
|
|
13
|
+
animation: AnimationModel;
|
|
14
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CheckoutContentModal, CheckoutModal, CheckoutStylesModal } from './checkout.modal';
|
|
2
|
+
import BaseSection from '../../../sections/BaseSection';
|
|
3
|
+
import { ButtonModel } from '../../../styles/style.model';
|
|
4
|
+
import { EventsService } from '.././../../services/events.service';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class CheckoutComponent extends BaseSection {
|
|
7
|
+
private _eventService;
|
|
8
|
+
data?: CheckoutModal;
|
|
9
|
+
responseData?: any;
|
|
10
|
+
index?: number;
|
|
11
|
+
edit?: boolean;
|
|
12
|
+
delete?: boolean;
|
|
13
|
+
constructor(_eventService: EventsService);
|
|
14
|
+
editDeliveryAddress: boolean;
|
|
15
|
+
content?: CheckoutContentModal;
|
|
16
|
+
styles?: CheckoutStylesModal;
|
|
17
|
+
button?: ButtonModel;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
placeOrder(): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CheckoutComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckoutComponent, "simpo-checkout", 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>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
|
|
2
|
+
import { ActionModel } from '../../../styles/style.model';
|
|
3
|
+
export interface CheckoutModal {
|
|
4
|
+
id: string;
|
|
5
|
+
sectionType: string;
|
|
6
|
+
sectionName: string;
|
|
7
|
+
content: CheckoutContentModal;
|
|
8
|
+
styles: CheckoutStylesModal;
|
|
9
|
+
action: ActionModel;
|
|
10
|
+
}
|
|
11
|
+
export interface CheckoutStylesModal {
|
|
12
|
+
layout: LayOutModel;
|
|
13
|
+
background: BackgroundModel;
|
|
14
|
+
animation: AnimationModel;
|
|
15
|
+
}
|
|
16
|
+
export interface CheckoutContentModal {
|
|
17
|
+
button: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { EventsService } from '.././../../services/events.service';
|
|
2
|
+
import BaseSection from '../../../sections/BaseSection';
|
|
3
|
+
import { FeaturedCategoryContentModal, FeaturedCategoryModal, FeaturedCategoryStylesModel } from './featured-category.modal';
|
|
4
|
+
import { Category } from '../../styles/category.modal';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class FeaturedCategoryComponent extends BaseSection {
|
|
7
|
+
private platformId;
|
|
8
|
+
private _eventService;
|
|
9
|
+
data?: FeaturedCategoryModal;
|
|
10
|
+
responseData?: Category[];
|
|
11
|
+
index?: number;
|
|
12
|
+
edit?: boolean;
|
|
13
|
+
delete?: boolean;
|
|
14
|
+
content?: FeaturedCategoryContentModal;
|
|
15
|
+
styles?: FeaturedCategoryStylesModel;
|
|
16
|
+
constructor(platformId: Object, _eventService: EventsService);
|
|
17
|
+
ngOnInit(): void;
|
|
18
|
+
getSliceParameters(): number[];
|
|
19
|
+
redirectToListPage(categoryId: any): void;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCategoryComponent, never>;
|
|
21
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCategoryComponent, "simpo-featured-category", 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>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { InputTextModel, StylesModel } from "../../../styles/style.model";
|
|
2
|
+
export interface FeaturedCategoryModal {
|
|
3
|
+
id: string;
|
|
4
|
+
sectionType: string;
|
|
5
|
+
sectionName: string;
|
|
6
|
+
content: FeaturedCategoryContentModal;
|
|
7
|
+
styles: FeaturedCategoryStylesModel;
|
|
8
|
+
}
|
|
9
|
+
export interface FeaturedCategoryContentModal {
|
|
10
|
+
inputText: InputTextModel[];
|
|
11
|
+
}
|
|
12
|
+
export interface FeaturedCategoryStylesModel extends StylesModel {
|
|
13
|
+
maximumProduct: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { FeaturedProductContentModal, FeaturedProductModal, FeaturedProductStylesModel } from './featured-products.modal';
|
|
2
|
+
import { Product } from '../../styles/product.modal';
|
|
3
|
+
import { EventsService } from '.././../../services/events.service';
|
|
4
|
+
import BaseSection from '../../../sections/BaseSection';
|
|
5
|
+
import { ButtonModel } from '../../../styles/style.model';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class FeaturedProductsComponent extends BaseSection {
|
|
8
|
+
private platformId;
|
|
9
|
+
private _eventService;
|
|
10
|
+
data?: FeaturedProductModal;
|
|
11
|
+
responseData?: Product[];
|
|
12
|
+
index?: number;
|
|
13
|
+
edit?: boolean;
|
|
14
|
+
delete?: boolean;
|
|
15
|
+
content?: FeaturedProductContentModal;
|
|
16
|
+
styles?: FeaturedProductStylesModel;
|
|
17
|
+
button?: ButtonModel;
|
|
18
|
+
constructor(platformId: Object, _eventService: EventsService);
|
|
19
|
+
screenWidth: number;
|
|
20
|
+
getScreenSize(): void;
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
getProductWidth(): string;
|
|
23
|
+
getSliceParameters(): number[];
|
|
24
|
+
proceedToProductDesc(productId: any): void;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedProductsComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedProductsComponent, "simpo-featured-products", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { InputTextModel, StylesModel, ImageStyle, ActionModel } from "../../../styles/style.model";
|
|
2
|
+
import { Corners } from "../../.././styles/index";
|
|
3
|
+
export interface FeaturedProductModal {
|
|
4
|
+
id: string;
|
|
5
|
+
sectionType: string;
|
|
6
|
+
sectionName: string;
|
|
7
|
+
content: FeaturedProductContentModal;
|
|
8
|
+
styles: FeaturedProductStylesModel;
|
|
9
|
+
action: ActionModel;
|
|
10
|
+
}
|
|
11
|
+
export interface FeaturedProductContentModal {
|
|
12
|
+
inputText: InputTextModel[];
|
|
13
|
+
display: Display;
|
|
14
|
+
button: string;
|
|
15
|
+
}
|
|
16
|
+
export interface Display {
|
|
17
|
+
showHeading: boolean;
|
|
18
|
+
showContent: boolean;
|
|
19
|
+
showButton: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface FeaturedProductStylesModel extends StylesModel {
|
|
22
|
+
image: ImageStyle;
|
|
23
|
+
corners: Corners;
|
|
24
|
+
maximumProduct: number;
|
|
25
|
+
elementInRow: number;
|
|
26
|
+
mobileColumn: number;
|
|
27
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Router } from '@angular/router';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class PagninationComponent {
|
|
4
|
+
private readonly router;
|
|
5
|
+
constructor(router: Router);
|
|
6
|
+
totalPages: number;
|
|
7
|
+
currentPage: number;
|
|
8
|
+
bound: number;
|
|
9
|
+
goToNext(): void;
|
|
10
|
+
goToPrev(): void;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PagninationComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PagninationComponent, "simpo-pagnination", never, { "totalPages": { "alias": "totalPages"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ProductDescModal, ProductDescStylesModal } from './product-desc.modal';
|
|
2
|
+
import { Product } from '../../styles/product.modal';
|
|
3
|
+
import { ButtonModel } from '../../../styles/style.model';
|
|
4
|
+
import BaseSection from '../../../sections/BaseSection';
|
|
5
|
+
import { EventsService } from '.././../../services/events.service';
|
|
6
|
+
import { MatSnackBar } from '@angular/material/snack-bar';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ProductDescComponent extends BaseSection {
|
|
9
|
+
private platformId;
|
|
10
|
+
private _eventService;
|
|
11
|
+
private snackBar;
|
|
12
|
+
data?: ProductDescModal;
|
|
13
|
+
responseData?: Product;
|
|
14
|
+
index?: number;
|
|
15
|
+
edit?: boolean;
|
|
16
|
+
delete?: boolean;
|
|
17
|
+
constructor(platformId: Object, _eventService: EventsService, snackBar: MatSnackBar);
|
|
18
|
+
buttonId?: string;
|
|
19
|
+
button?: ButtonModel;
|
|
20
|
+
styles?: ProductDescStylesModal;
|
|
21
|
+
ngOnInit(): void;
|
|
22
|
+
screenWidth: any;
|
|
23
|
+
getScreenSize(): void;
|
|
24
|
+
currentImg: any;
|
|
25
|
+
changeImg(url: any): void;
|
|
26
|
+
addedQuantity: number;
|
|
27
|
+
changeQuantity(quantity: any): void;
|
|
28
|
+
addOrSubtractQuantity(type: 'ADD' | 'SUBSTRACT'): void;
|
|
29
|
+
addToCart(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductDescComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductDescComponent, "simpo-product-desc", 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>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
|
|
2
|
+
import { ActionModel } from '../../../styles/style.model';
|
|
3
|
+
export interface ProductDescModal {
|
|
4
|
+
id: string;
|
|
5
|
+
sectionType: string;
|
|
6
|
+
sectionName: string;
|
|
7
|
+
content: ProductDescContentModal;
|
|
8
|
+
styles: ProductDescStylesModal;
|
|
9
|
+
action: ActionModel;
|
|
10
|
+
}
|
|
11
|
+
export interface ProductDescStylesModal {
|
|
12
|
+
layout: LayOutModel;
|
|
13
|
+
background: BackgroundModel;
|
|
14
|
+
animation: AnimationModel;
|
|
15
|
+
}
|
|
16
|
+
export interface ProductDescContentModal {
|
|
17
|
+
button: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { Product } from '../../styles/product.modal';
|
|
2
|
+
import BaseSection from '../../../sections/BaseSection';
|
|
3
|
+
import { ProductListContentModal, ProductListModal, ProductListStylesModal } from './product-list.modal';
|
|
4
|
+
import { EventsService } from '.././../../services/events.service';
|
|
5
|
+
import { ButtonModel } from '../../../styles/style.model';
|
|
6
|
+
import { Router } from '@angular/router';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class ProductListComponent extends BaseSection {
|
|
9
|
+
private platformId;
|
|
10
|
+
private _eventService;
|
|
11
|
+
router: Router;
|
|
12
|
+
responseData?: Product[];
|
|
13
|
+
data?: ProductListModal;
|
|
14
|
+
index?: number;
|
|
15
|
+
edit?: boolean;
|
|
16
|
+
delete?: boolean;
|
|
17
|
+
content?: ProductListContentModal;
|
|
18
|
+
button?: ButtonModel;
|
|
19
|
+
constructor(platformId: Object, _eventService: EventsService, router: Router);
|
|
20
|
+
pricingMin: number;
|
|
21
|
+
pricingMax: number;
|
|
22
|
+
filteringArray: {
|
|
23
|
+
name: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
26
|
+
screenWidth: number;
|
|
27
|
+
getScreenSize(): void;
|
|
28
|
+
styles?: ProductListStylesModal;
|
|
29
|
+
ngOnInit(): void;
|
|
30
|
+
getProductWidth(): string;
|
|
31
|
+
proceedToProductDesc(productId: any): void;
|
|
32
|
+
clearFilter(): void;
|
|
33
|
+
categories: {
|
|
34
|
+
option: string;
|
|
35
|
+
status: boolean;
|
|
36
|
+
}[];
|
|
37
|
+
applyFilter(category?: any, type?: 'SORT' | 'FILTER'): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductListComponent, "simpo-product-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>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { ActionModel, AnimationModel, BackgroundModel, LayOutModel } from "../../../styles/style.model";
|
|
2
|
+
export interface ProductListModal {
|
|
3
|
+
id: string;
|
|
4
|
+
sectionType: string;
|
|
5
|
+
sectionName: string;
|
|
6
|
+
content: ProductListContentModal;
|
|
7
|
+
styles: ProductListStylesModal;
|
|
8
|
+
action: ActionModel;
|
|
9
|
+
}
|
|
10
|
+
export interface ProductListStylesModal {
|
|
11
|
+
layout: LayOutModel;
|
|
12
|
+
background: BackgroundModel;
|
|
13
|
+
elementInRow: number;
|
|
14
|
+
mobileColumn: number;
|
|
15
|
+
animation: AnimationModel;
|
|
16
|
+
}
|
|
17
|
+
export interface ProductListContentModal {
|
|
18
|
+
display: Display;
|
|
19
|
+
button: string;
|
|
20
|
+
}
|
|
21
|
+
export interface Display {
|
|
22
|
+
showButton: boolean;
|
|
23
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ItemVariant } from "./product.modal";
|
|
2
|
+
export interface Cart {
|
|
3
|
+
cartId: string;
|
|
4
|
+
pgOrderId: string;
|
|
5
|
+
orderedItems: OrderedItem[];
|
|
6
|
+
billdetails: Billdetails;
|
|
7
|
+
platform: string;
|
|
8
|
+
locationDetails: LocationDetails;
|
|
9
|
+
userDetails: UserDetails;
|
|
10
|
+
createdTimeStamp: string;
|
|
11
|
+
}
|
|
12
|
+
export interface OrderedItem {
|
|
13
|
+
itemId: string;
|
|
14
|
+
businessId: string;
|
|
15
|
+
itemName: string;
|
|
16
|
+
brandName: string;
|
|
17
|
+
imgUrl: string;
|
|
18
|
+
price: number;
|
|
19
|
+
itemTax: number;
|
|
20
|
+
quantity: number;
|
|
21
|
+
cancelledQuantity: number;
|
|
22
|
+
discountedPrice: number;
|
|
23
|
+
taxAfterDiscount: number;
|
|
24
|
+
itemVariant: ItemVariant;
|
|
25
|
+
orderedItemStatus: string;
|
|
26
|
+
itemDistributorType: string;
|
|
27
|
+
}
|
|
28
|
+
export interface Billdetails {
|
|
29
|
+
totalNetValue: number;
|
|
30
|
+
totalGrossValue: number;
|
|
31
|
+
totalTax: number;
|
|
32
|
+
totalOfferedValue: number;
|
|
33
|
+
cgstValue: number;
|
|
34
|
+
sgstValue: number;
|
|
35
|
+
igstValue: number;
|
|
36
|
+
deliveryCharges: number;
|
|
37
|
+
couponId: string;
|
|
38
|
+
}
|
|
39
|
+
export interface LocationDetails {
|
|
40
|
+
countryId: string;
|
|
41
|
+
cityId: string;
|
|
42
|
+
stateId: string;
|
|
43
|
+
localityId: string;
|
|
44
|
+
countryName: string;
|
|
45
|
+
cityName: string;
|
|
46
|
+
localityName: string;
|
|
47
|
+
stateName: string;
|
|
48
|
+
}
|
|
49
|
+
export interface UserDetails {
|
|
50
|
+
userId: string;
|
|
51
|
+
userName: string;
|
|
52
|
+
mobile: string;
|
|
53
|
+
email: string;
|
|
54
|
+
profilePic: string;
|
|
55
|
+
deliveryAddress: DeliveryAddress;
|
|
56
|
+
}
|
|
57
|
+
export interface DeliveryAddress {
|
|
58
|
+
countryName: string;
|
|
59
|
+
stateName: string;
|
|
60
|
+
cityName: string;
|
|
61
|
+
localityName: string;
|
|
62
|
+
addressLine1: string;
|
|
63
|
+
addressLine2: string;
|
|
64
|
+
landmark: string;
|
|
65
|
+
zipCode: string;
|
|
66
|
+
geolocation: Geolocation;
|
|
67
|
+
stateCode: string;
|
|
68
|
+
}
|
|
69
|
+
export interface Geolocation {
|
|
70
|
+
latitude: number;
|
|
71
|
+
longitude: number;
|
|
72
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { CreatedDetails } from "./product.modal";
|
|
2
|
+
export interface Category {
|
|
3
|
+
categoryId: string;
|
|
4
|
+
storeId: string[];
|
|
5
|
+
businessId: string;
|
|
6
|
+
categoryName: string;
|
|
7
|
+
description: string;
|
|
8
|
+
imgUrl: string[];
|
|
9
|
+
showInWebsite: boolean;
|
|
10
|
+
featuredCategory: boolean;
|
|
11
|
+
otherDetails: any;
|
|
12
|
+
createdDetails: CreatedDetails;
|
|
13
|
+
active: boolean;
|
|
14
|
+
}
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
export interface Product {
|
|
2
|
+
itemId: string;
|
|
3
|
+
businessId: string;
|
|
4
|
+
storeId: string[];
|
|
5
|
+
name: string;
|
|
6
|
+
itemCategorisation: ItemCategorisation;
|
|
7
|
+
itemInventory: ItemInventory;
|
|
8
|
+
itemStatus: string;
|
|
9
|
+
itemType: string;
|
|
10
|
+
itemVariant: ItemVariant[];
|
|
11
|
+
itemImages: ItemImage[];
|
|
12
|
+
itemPacks: ItemPack2[];
|
|
13
|
+
addOnToItem: AddOnToItem[];
|
|
14
|
+
properties: any;
|
|
15
|
+
unit: Unit;
|
|
16
|
+
price: Price;
|
|
17
|
+
createdDetails: CreatedDetails2;
|
|
18
|
+
availableOnline: boolean;
|
|
19
|
+
categoryId: string;
|
|
20
|
+
fulfillmentId: string;
|
|
21
|
+
locationId: string;
|
|
22
|
+
descriptor: Descriptor;
|
|
23
|
+
rating: number;
|
|
24
|
+
returnWindow: number;
|
|
25
|
+
timeToShip: number;
|
|
26
|
+
rateable: boolean;
|
|
27
|
+
matched: boolean;
|
|
28
|
+
related: boolean;
|
|
29
|
+
recommended: boolean;
|
|
30
|
+
returnable: boolean;
|
|
31
|
+
active: boolean;
|
|
32
|
+
cancellable: boolean;
|
|
33
|
+
sellerReturnPickUp: boolean;
|
|
34
|
+
availableOnCod: boolean;
|
|
35
|
+
createdTimeStamp: string;
|
|
36
|
+
updatedTimeStamp: string;
|
|
37
|
+
}
|
|
38
|
+
export interface ItemCategorisation {
|
|
39
|
+
itemCategories: ItemCategory[];
|
|
40
|
+
productTags: ProductTag[];
|
|
41
|
+
itemCollection: ItemCollection[];
|
|
42
|
+
}
|
|
43
|
+
export interface ItemCategory {
|
|
44
|
+
refId: string;
|
|
45
|
+
refName: string;
|
|
46
|
+
imgUrl: string;
|
|
47
|
+
maxQuantity: number;
|
|
48
|
+
price: number;
|
|
49
|
+
}
|
|
50
|
+
export interface ProductTag {
|
|
51
|
+
tagId: string;
|
|
52
|
+
businessId: string;
|
|
53
|
+
storeId: string[];
|
|
54
|
+
collectionId: string;
|
|
55
|
+
subCategoryId: string;
|
|
56
|
+
categoryId: string;
|
|
57
|
+
itemId: string;
|
|
58
|
+
tagName: string;
|
|
59
|
+
active: boolean;
|
|
60
|
+
otherDetails: any;
|
|
61
|
+
createdDetails: CreatedDetails;
|
|
62
|
+
}
|
|
63
|
+
export interface CreatedDetails {
|
|
64
|
+
createdById: string;
|
|
65
|
+
createdByName: string;
|
|
66
|
+
createdTimeStamp: string;
|
|
67
|
+
updatedTimeStamp: string;
|
|
68
|
+
}
|
|
69
|
+
export interface ItemCollection {
|
|
70
|
+
refId: string;
|
|
71
|
+
refName: string;
|
|
72
|
+
imgUrl: string;
|
|
73
|
+
maxQuantity: number;
|
|
74
|
+
price: number;
|
|
75
|
+
}
|
|
76
|
+
export interface ItemInventory {
|
|
77
|
+
openingStock: number;
|
|
78
|
+
sku: string;
|
|
79
|
+
barcode: string;
|
|
80
|
+
presentStockDate: string;
|
|
81
|
+
lowStockAlert: boolean;
|
|
82
|
+
lowStockQuantity: number;
|
|
83
|
+
}
|
|
84
|
+
export interface ItemVariant {
|
|
85
|
+
variantId: string;
|
|
86
|
+
itemId: string;
|
|
87
|
+
variantName: string;
|
|
88
|
+
variantImages: VariantImage[];
|
|
89
|
+
itemPacks: ItemPack[];
|
|
90
|
+
properties: any;
|
|
91
|
+
itemVariantPrice: ItemVariantPrice;
|
|
92
|
+
itemInventory: ItemInventory2;
|
|
93
|
+
itemStatus: string;
|
|
94
|
+
}
|
|
95
|
+
export interface VariantImage {
|
|
96
|
+
imgUrl: string;
|
|
97
|
+
imgDesc: string;
|
|
98
|
+
}
|
|
99
|
+
export interface ItemPack {
|
|
100
|
+
itemPackId: string;
|
|
101
|
+
packName: string;
|
|
102
|
+
active: boolean;
|
|
103
|
+
actualPrice: number;
|
|
104
|
+
offeredPrice: number;
|
|
105
|
+
packQuantity: number;
|
|
106
|
+
maxOrderQuantity: number;
|
|
107
|
+
}
|
|
108
|
+
export interface ItemVariantPrice {
|
|
109
|
+
currency: string;
|
|
110
|
+
value: number;
|
|
111
|
+
estimatedValue: number;
|
|
112
|
+
computedValue: number;
|
|
113
|
+
listedValue: number;
|
|
114
|
+
offeredValue: number;
|
|
115
|
+
minimumValue: number;
|
|
116
|
+
maximumValue: number;
|
|
117
|
+
purchasePrice: number;
|
|
118
|
+
wholeSalePrice: number;
|
|
119
|
+
maxWholeSaleLimit: number;
|
|
120
|
+
margin: number;
|
|
121
|
+
profit: number;
|
|
122
|
+
discountedPrice: number;
|
|
123
|
+
taxRef: TaxRef;
|
|
124
|
+
taxAmount: number;
|
|
125
|
+
sellingPrice: number;
|
|
126
|
+
}
|
|
127
|
+
export interface TaxRef {
|
|
128
|
+
taxId: string;
|
|
129
|
+
taxPercent: number;
|
|
130
|
+
}
|
|
131
|
+
export interface ItemInventory2 {
|
|
132
|
+
openingStock: number;
|
|
133
|
+
sku: string;
|
|
134
|
+
barcode: string;
|
|
135
|
+
presentStockDate: string;
|
|
136
|
+
lowStockAlert: boolean;
|
|
137
|
+
lowStockQuantity: number;
|
|
138
|
+
}
|
|
139
|
+
export interface ItemImage {
|
|
140
|
+
imgUrl: string;
|
|
141
|
+
imgDesc: string;
|
|
142
|
+
}
|
|
143
|
+
export interface ItemPack2 {
|
|
144
|
+
itemPackId: string;
|
|
145
|
+
packName: string;
|
|
146
|
+
active: boolean;
|
|
147
|
+
actualPrice: number;
|
|
148
|
+
offeredPrice: number;
|
|
149
|
+
packQuantity: number;
|
|
150
|
+
maxOrderQuantity: number;
|
|
151
|
+
}
|
|
152
|
+
export interface AddOnToItem {
|
|
153
|
+
refId: string;
|
|
154
|
+
refName: string;
|
|
155
|
+
imgUrl: string;
|
|
156
|
+
maxQuantity: number;
|
|
157
|
+
price: number;
|
|
158
|
+
}
|
|
159
|
+
export interface Unit {
|
|
160
|
+
id: string;
|
|
161
|
+
key: string;
|
|
162
|
+
value: string;
|
|
163
|
+
}
|
|
164
|
+
export interface Price {
|
|
165
|
+
currency: string;
|
|
166
|
+
value: number;
|
|
167
|
+
estimatedValue: number;
|
|
168
|
+
computedValue: number;
|
|
169
|
+
listedValue: number;
|
|
170
|
+
offeredValue: number;
|
|
171
|
+
minimumValue: number;
|
|
172
|
+
maximumValue: number;
|
|
173
|
+
purchasePrice: number;
|
|
174
|
+
wholeSalePrice: number;
|
|
175
|
+
maxWholeSaleLimit: number;
|
|
176
|
+
margin: number;
|
|
177
|
+
profit: number;
|
|
178
|
+
discountedPrice: number;
|
|
179
|
+
taxRef: TaxRef2;
|
|
180
|
+
taxAmount: number;
|
|
181
|
+
sellingPrice: number;
|
|
182
|
+
}
|
|
183
|
+
export interface TaxRef2 {
|
|
184
|
+
taxId: string;
|
|
185
|
+
taxPercent: number;
|
|
186
|
+
}
|
|
187
|
+
export interface CreatedDetails2 {
|
|
188
|
+
createdById: string;
|
|
189
|
+
createdByName: string;
|
|
190
|
+
createdTimeStamp: string;
|
|
191
|
+
updatedTimeStamp: string;
|
|
192
|
+
}
|
|
193
|
+
export interface Descriptor {
|
|
194
|
+
name: string;
|
|
195
|
+
code: string;
|
|
196
|
+
symbol: string;
|
|
197
|
+
shortDesc: string;
|
|
198
|
+
longDesc: string;
|
|
199
|
+
itemImages: ItemImage2[];
|
|
200
|
+
}
|
|
201
|
+
export interface ItemImage2 {
|
|
202
|
+
imgUrl: string;
|
|
203
|
+
imgDesc: string;
|
|
204
|
+
}
|
|
@@ -2,9 +2,11 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { HeaderContentModel, HeaderSectionModel, HeaderStyleModel } from './navbar-section.model';
|
|
3
3
|
import { EventsService } from './../../services/events.service';
|
|
4
4
|
import { ActionModel } from '../../styles/style.model';
|
|
5
|
+
import { Router } from '@angular/router';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export declare class NavbarSectionComponent implements OnInit {
|
|
7
8
|
private _eventService;
|
|
9
|
+
private router;
|
|
8
10
|
data?: HeaderSectionModel;
|
|
9
11
|
nextComponent: any;
|
|
10
12
|
index?: number;
|
|
@@ -15,7 +17,11 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
|
15
17
|
style?: HeaderStyleModel;
|
|
16
18
|
action?: ActionModel;
|
|
17
19
|
color: string;
|
|
18
|
-
|
|
20
|
+
searchText: string;
|
|
21
|
+
constructor(_eventService: EventsService, router: Router);
|
|
22
|
+
searchProducts(): void;
|
|
23
|
+
goToAccount(): void;
|
|
24
|
+
goToCart(): void;
|
|
19
25
|
onScroll(event: any): void;
|
|
20
26
|
ngOnInit(): void;
|
|
21
27
|
screenWidth: number;
|
|
@@ -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(): "#000000" | "#ffffff";
|
|
19
19
|
get headingSpace(): SPACING;
|
|
20
20
|
editSection(): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
|