simpo-component-library 1.5.26 → 1.5.30
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 +56 -21
- package/esm2022/lib/ecommerce/sections/category-product/category-product.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.component.mjs +21 -10
- package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +3 -3
- package/esm2022/lib/sections/banner-section/banner-section.component.mjs +7 -5
- package/esm2022/lib/services/rest.service.mjs +8 -2
- package/esm2022/lib/services/sanitizeHtml.mjs +21 -0
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/simpo-component-library.mjs +132 -62
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/category-product/category-product.component.d.ts +10 -3
- package/lib/ecommerce/sections/category-product/category-product.model.d.ts +0 -1
- package/lib/ecommerce/sections/product-category-list/product-category-list.component.d.ts +8 -4
- package/lib/services/rest.service.d.ts +1 -0
- package/lib/services/sanitizeHtml.d.ts +10 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/simpo-component-library-1.5.30.tgz +0 -0
- package/simpo-component-library-1.5.25.tgz +0 -0
- package/simpo-component-library-1.5.26.tgz +0 -0
@@ -1,4 +1,4 @@
|
|
1
|
-
import { OnInit } from '@angular/core';
|
1
|
+
import { ElementRef, OnInit } from '@angular/core';
|
2
2
|
import { CategoryProductContentModal, CategoryProductModal, CategoryProductStylesModel } from './category-product.model';
|
3
3
|
import { RestService } from '../../../services/rest.service';
|
4
4
|
import { EventsService } from '../../../services/events.service';
|
@@ -18,9 +18,9 @@ export declare class CategoryProductComponent extends BaseSection implements OnI
|
|
18
18
|
index?: number;
|
19
19
|
edit?: boolean;
|
20
20
|
delete?: boolean;
|
21
|
+
containerRef: ElementRef<HTMLDivElement> | undefined;
|
21
22
|
styles?: CategoryProductStylesModel;
|
22
23
|
content?: CategoryProductContentModal;
|
23
|
-
categories: any[];
|
24
24
|
selectCategoryId: string | null;
|
25
25
|
categoryList: Category[];
|
26
26
|
private USER_CART;
|
@@ -28,9 +28,16 @@ export declare class CategoryProductComponent extends BaseSection implements OnI
|
|
28
28
|
private collectionId;
|
29
29
|
featureProductData: FeaturedProductModal | null;
|
30
30
|
ngOnInit(): void;
|
31
|
-
|
31
|
+
ngAfterViewInit(): void;
|
32
|
+
getAllCategoriesById(): void;
|
32
33
|
dataList: Product[];
|
33
34
|
selectCategory(categoryId: string): void;
|
35
|
+
scrollRight(): void;
|
36
|
+
scrollLeft(): void;
|
37
|
+
showRightArrow: boolean;
|
38
|
+
showLeftArrow: boolean;
|
39
|
+
isFirstTime: boolean;
|
40
|
+
updateArrows(): void;
|
34
41
|
editSection(): void;
|
35
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<CategoryProductComponent, never>;
|
36
43
|
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>;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { OnInit } from '@angular/core';
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
2
2
|
import BaseSection from '../../../sections/BaseSection';
|
3
3
|
import { RestService } from '../../../services/rest.service';
|
4
4
|
import { Category } from '../../styles/category.modal';
|
@@ -6,10 +6,12 @@ import { ItemVariant, Product } from '../../styles/product.modal';
|
|
6
6
|
import { OrderedItems } from '../../styles/OrderedItems.modal';
|
7
7
|
import { CartService } from '../../../services/cart.service';
|
8
8
|
import { CategoryProductModal } from '../category-product/category-product.model';
|
9
|
+
import { ActivatedRoute } from '@angular/router';
|
9
10
|
import * as i0 from "@angular/core";
|
10
|
-
export declare class ProductCategoryListComponent extends BaseSection implements OnInit {
|
11
|
+
export declare class ProductCategoryListComponent extends BaseSection implements OnInit, OnDestroy {
|
11
12
|
private readonly restService;
|
12
13
|
private readonly cartService;
|
14
|
+
private readonly activatedRoute;
|
13
15
|
responseData?: any[];
|
14
16
|
data?: CategoryProductModal;
|
15
17
|
index?: number;
|
@@ -19,9 +21,11 @@ export declare class ProductCategoryListComponent extends BaseSection implements
|
|
19
21
|
productList: Product[];
|
20
22
|
USER_CART: OrderedItems[];
|
21
23
|
selectedCategory: Category | null;
|
22
|
-
constructor(restService: RestService, cartService: CartService);
|
24
|
+
constructor(restService: RestService, cartService: CartService, activatedRoute: ActivatedRoute);
|
25
|
+
collectionId: string | null;
|
23
26
|
ngOnInit(): void;
|
24
|
-
|
27
|
+
ngOnDestroy(): void;
|
28
|
+
getAllCategoriesById(): void;
|
25
29
|
selectCategory(category: Category): void;
|
26
30
|
addItemToCart(product: Product, type: 'ADD' | 'SUBSTRACT'): void;
|
27
31
|
getItemVarient(product: Product, varientId: string): ItemVariant | null;
|
@@ -12,6 +12,7 @@ export declare class RestService implements OnDestroy {
|
|
12
12
|
constructor(http: HttpClient, eventService: EventsService);
|
13
13
|
ngOnDestroy(): void;
|
14
14
|
getFeaturedProduct(collectionId: string | undefined | null): Observable<any>;
|
15
|
+
getCategoriesByCollectionId(collectionId: string): Observable<any>;
|
15
16
|
getProductDetails(productId?: string | null): Observable<any>;
|
16
17
|
getAllCategories(): Observable<any>;
|
17
18
|
getAllCollections(): Observable<any>;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import { PipeTransform } from "@angular/core";
|
2
|
+
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
3
|
+
import * as i0 from "@angular/core";
|
4
|
+
export declare class SanitizeHtmlPipe implements PipeTransform {
|
5
|
+
private _sanitizer;
|
6
|
+
constructor(_sanitizer: DomSanitizer);
|
7
|
+
transform(v: string): SafeHtml;
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SanitizeHtmlPipe, never>;
|
9
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SanitizeHtmlPipe, "sanitizeHtml", true>;
|
10
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -45,6 +45,7 @@ export * from './lib/ecommerce/sections/category-product/category-product.compon
|
|
45
45
|
export * from './lib/ecommerce/sections/featured-category/featured-collection.component';
|
46
46
|
export * from './lib/services/events.service';
|
47
47
|
export * from './lib/services/endUser.service';
|
48
|
+
export * from './lib/services/sanitizeHtml';
|
48
49
|
export * from './lib/directive/animation-directive';
|
49
50
|
export * from './lib/directive/background-directive';
|
50
51
|
export * from './lib/directive/banner-content-fit-directive';
|
Binary file
|
Binary file
|
Binary file
|