simpo-component-library 1.5.23 → 1.5.25
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/ecommerce/sections/category-product/category-product.component.mjs +97 -0
 - package/esm2022/lib/ecommerce/sections/category-product/category-product.model.mjs +2 -0
 - package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.component.mjs +112 -0
 - package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +80 -0
 - package/esm2022/lib/services/rest.service.mjs +2 -2
 - package/esm2022/public-api.mjs +3 -1
 - package/fesm2022/simpo-component-library.mjs +251 -2
 - package/fesm2022/simpo-component-library.mjs.map +1 -1
 - package/lib/ecommerce/sections/category-product/category-product.component.d.ts +37 -0
 - package/lib/ecommerce/sections/category-product/category-product.model.d.ts +32 -0
 - package/lib/ecommerce/sections/product-category-list/product-category-list.component.d.ts +32 -0
 - package/lib/ecommerce/sections/small-product-listing/small-product-listing.component.d.ts +16 -0
 - package/package.json +1 -1
 - package/public-api.d.ts +2 -0
 - package/simpo-component-library-1.5.25.tgz +0 -0
 - package/simpo-component-library-1.5.23.tgz +0 -0
 
| 
         @@ -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,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
    
    
    
        package/public-api.d.ts
    CHANGED
    
    | 
         @@ -40,6 +40,8 @@ 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';
         
     | 
| 
       43 
45 
     | 
    
         
             
            export * from './lib/services/events.service';
         
     | 
| 
       44 
46 
     | 
    
         
             
            export * from './lib/services/endUser.service';
         
     | 
| 
       45 
47 
     | 
    
         
             
            export * from './lib/directive/animation-directive';
         
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     |