simpo-component-library 1.5.24 → 1.5.26

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,37 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { CategoryProductContentModal, CategoryProductModal, CategoryProductStylesModel } from './category-product.model';
3
+ import { RestService } from '../../../services/rest.service';
4
+ import { EventsService } from '../../../services/events.service';
5
+ import { Category } from '../../styles/category.modal';
6
+ import { Product } from '../../styles/product.modal';
7
+ import { FeaturedProductModal } from '../featured-products/featured-products.modal';
8
+ import { CartService } from '../../../services/cart.service';
9
+ import BaseSection from '../../../sections/BaseSection';
10
+ import { ActivatedRoute } from '@angular/router';
11
+ import * as i0 from "@angular/core";
12
+ export declare class CategoryProductComponent extends BaseSection implements OnInit {
13
+ private readonly restService;
14
+ private readonly cartService;
15
+ private readonly _eventService;
16
+ private readonly activatedRoute;
17
+ data?: CategoryProductModal;
18
+ index?: number;
19
+ edit?: boolean;
20
+ delete?: boolean;
21
+ styles?: CategoryProductStylesModel;
22
+ content?: CategoryProductContentModal;
23
+ categories: any[];
24
+ selectCategoryId: string | null;
25
+ categoryList: Category[];
26
+ private USER_CART;
27
+ constructor(restService: RestService, cartService: CartService, _eventService: EventsService, activatedRoute: ActivatedRoute);
28
+ private collectionId;
29
+ featureProductData: FeaturedProductModal | null;
30
+ ngOnInit(): void;
31
+ getAllCategories(): void;
32
+ dataList: Product[];
33
+ selectCategory(categoryId: string): void;
34
+ editSection(): void;
35
+ static ɵfac: i0.ɵɵFactoryDeclaration<CategoryProductComponent, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<CategoryProductComponent, "simpo-category-product", 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>;
37
+ }
@@ -0,0 +1,32 @@
1
+ import { InputTextModel, StylesModel, ImageStyle, ActionModel } from "../../../styles/style.model";
2
+ import { Corners } from "../../.././styles/index";
3
+ export interface CategoryProductModal {
4
+ id: string;
5
+ sectionType: string;
6
+ sectionName: string;
7
+ content: CategoryProductContentModal;
8
+ styles: CategoryProductStylesModel;
9
+ action: ActionModel;
10
+ data: CategoryProductData;
11
+ }
12
+ export interface CategoryProductContentModal {
13
+ inputText: InputTextModel[];
14
+ display: Display;
15
+ button: string;
16
+ collectionId: string;
17
+ }
18
+ export interface Display {
19
+ showHeading: boolean;
20
+ showContent: boolean;
21
+ showButton: boolean;
22
+ }
23
+ export interface CategoryProductStylesModel extends StylesModel {
24
+ image: ImageStyle;
25
+ corners: Corners;
26
+ maximumProduct: number;
27
+ elementInRow: number;
28
+ mobileColumn: number;
29
+ }
30
+ export interface CategoryProductData {
31
+ collectionId: string;
32
+ }
@@ -0,0 +1,29 @@
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 { RestService } from '../../../services/rest.service';
6
+ import { Router } from '@angular/router';
7
+ import * as i0 from "@angular/core";
8
+ export declare class FeaturedCollectionComponent extends BaseSection {
9
+ private platformId;
10
+ private readonly router;
11
+ private readonly restService;
12
+ private readonly _eventService;
13
+ data?: FeaturedCategoryModal;
14
+ responseData?: Category[];
15
+ index?: number;
16
+ edit?: boolean;
17
+ delete?: boolean;
18
+ isLoading: boolean;
19
+ content?: FeaturedCategoryContentModal;
20
+ styles?: FeaturedCategoryStylesModel;
21
+ constructor(platformId: Object, router: Router, restService: RestService, _eventService: EventsService);
22
+ ngOnInit(): void;
23
+ getSliceParameters(): number[];
24
+ redirectToListPage(collection: string): void;
25
+ getAllCollections(): void;
26
+ editSection(): void;
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCollectionComponent, never>;
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>;
29
+ }
@@ -0,0 +1,32 @@
1
+ import { OnInit } from '@angular/core';
2
+ import BaseSection from '../../../sections/BaseSection';
3
+ import { RestService } from '../../../services/rest.service';
4
+ import { Category } from '../../styles/category.modal';
5
+ import { ItemVariant, Product } from '../../styles/product.modal';
6
+ import { OrderedItems } from '../../styles/OrderedItems.modal';
7
+ import { CartService } from '../../../services/cart.service';
8
+ import { CategoryProductModal } from '../category-product/category-product.model';
9
+ import * as i0 from "@angular/core";
10
+ export declare class ProductCategoryListComponent extends BaseSection implements OnInit {
11
+ private readonly restService;
12
+ private readonly cartService;
13
+ responseData?: any[];
14
+ data?: CategoryProductModal;
15
+ index?: number;
16
+ edit?: boolean;
17
+ delete?: boolean;
18
+ categories: Category[];
19
+ productList: Product[];
20
+ USER_CART: OrderedItems[];
21
+ selectedCategory: Category | null;
22
+ constructor(restService: RestService, cartService: CartService);
23
+ ngOnInit(): void;
24
+ getAllCategories(): void;
25
+ selectCategory(category: Category): void;
26
+ addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
27
+ getItemVarient(product: Product, varientId: string): ItemVariant | null;
28
+ getPercentage(product: Product): string;
29
+ get currency(): string;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<ProductCategoryListComponent, never>;
31
+ 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>;
32
+ }
@@ -0,0 +1,16 @@
1
+ import { ItemVariant, Product } from '../../styles/product.modal';
2
+ import { CartService } from '../../../services/cart.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class SmallProductListingComponent {
5
+ private readonly cartService;
6
+ constructor(cartService: CartService);
7
+ private USER_CART;
8
+ product: Product;
9
+ data?: any;
10
+ addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
11
+ getItemVarient(product: Product, varientId: string): ItemVariant | null;
12
+ getPercentage(product: Product): string;
13
+ get currency(): string;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<SmallProductListingComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<SmallProductListingComponent, "simpo-small-product-listing", never, { "product": { "alias": "product"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, never>;
16
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.5.24",
3
+ "version": "1.5.26",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -40,6 +40,9 @@ export * from './lib/ecommerce/sections/user-profile/user-profile.component';
40
40
  export * from './lib/ecommerce/sections/authenticate-user/authenticate-user.component';
41
41
  export * from './lib/ecommerce/sections/verify-payment/verify-payment.component';
42
42
  export * from './lib/ecommerce/sections/verify-payment/verify-payment.component';
43
+ export * from './lib/ecommerce/sections/product-category-list/product-category-list.component';
44
+ export * from './lib/ecommerce/sections/category-product/category-product.component';
45
+ export * from './lib/ecommerce/sections/featured-category/featured-collection.component';
43
46
  export * from './lib/services/events.service';
44
47
  export * from './lib/services/endUser.service';
45
48
  export * from './lib/directive/animation-directive';
Binary file