simpo-component-library 3.6.100 → 3.6.103
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/image-editor.directive.mjs +21 -4
- package/esm2022/lib/directive/spacing-around.directive.mjs +36 -2
- package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +10 -5
- package/esm2022/lib/ecommerce/sections/category-product/category-product.component.mjs +2 -2
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +6 -4
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/featured-category/featured-collection.component.mjs +6 -4
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +24 -7
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/new-collection/new-collection.component.mjs +146 -0
- package/esm2022/lib/ecommerce/sections/new-collection/new-collection.modal.mjs +2 -0
- package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.component.mjs +2 -2
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +27 -5
- package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +25 -3
- package/esm2022/lib/ecommerce/styles/Collection.modal.mjs +5 -3
- package/esm2022/lib/elements/editor-service.service.mjs +19 -1
- package/esm2022/lib/elements/image-editor/image-editor.component.mjs +147 -15
- package/esm2022/lib/sections/appointment-form/appointment-form.component.mjs +1 -1
- package/esm2022/lib/sections/banner-section/banner-section.component.mjs +4 -4
- package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +1 -1
- package/esm2022/lib/sections/contact-us/contact-us.component.mjs +2 -2
- package/esm2022/lib/sections/header-section/header-section.component.mjs +15 -3
- package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +12 -5
- package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +18 -3
- package/esm2022/lib/sections/image-grid-section/image-grid-section.model.mjs +1 -1
- package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +6 -3
- package/esm2022/lib/sections/logo-showcase/logo-showcase.modal.mjs +1 -1
- package/esm2022/lib/sections/new-services/new-services.component.mjs +2 -2
- package/esm2022/lib/sections/new-testimonials/new-testimonials.component.mjs +2 -2
- package/esm2022/lib/sections/service-section/service-section.component.mjs +1 -1
- package/esm2022/lib/sections/usp-video-section/usp-video-section.component.mjs +2 -2
- package/esm2022/lib/services/rest.service.mjs +20 -20
- package/esm2022/lib/styles/style.model.mjs +1 -1
- package/esm2022/lib/styles/types.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/simpo-component-library.mjs +574 -162
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/components/input-fields/input-fields.component.d.ts +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/directive/image-editor.directive.d.ts +6 -1
- package/lib/directive/spacing-around.directive.d.ts +7 -2
- package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -1
- package/lib/ecommerce/sections/cart/cart.component.d.ts +2 -0
- package/lib/ecommerce/sections/featured-category/featured-category.modal.d.ts +2 -0
- package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +2 -1
- package/lib/ecommerce/sections/featured-products/featured-products.modal.d.ts +6 -2
- package/lib/ecommerce/sections/new-collection/new-collection.component.d.ts +36 -0
- package/lib/ecommerce/sections/new-collection/new-collection.modal.d.ts +23 -0
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +3 -0
- package/lib/ecommerce/sections/small-product-listing/small-product-listing.component.d.ts +5 -1
- package/lib/ecommerce/styles/Collection.modal.d.ts +1 -0
- package/lib/elements/editor-service.service.d.ts +2 -0
- package/lib/elements/image-editor/image-editor.component.d.ts +29 -3
- package/lib/elements/link-editor/link-editor.component.d.ts +1 -1
- package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
- package/lib/sections/carousel-banner/carousel-banner.component.d.ts +1 -1
- package/lib/sections/contact-us/contact-us.component.d.ts +1 -1
- package/lib/sections/header-section/header-section.component.d.ts +1 -0
- package/lib/sections/image-carousel-section/image-carousel-section.component.d.ts +2 -1
- package/lib/sections/image-grid-section/image-grid-section.component.d.ts +4 -0
- package/lib/sections/image-grid-section/image-grid-section.model.d.ts +2 -1
- package/lib/sections/image-section/image-section.component.d.ts +2 -2
- package/lib/sections/logo-showcase/logo-showcase.component.d.ts +3 -2
- package/lib/sections/logo-showcase/logo-showcase.modal.d.ts +2 -1
- package/lib/sections/moving-text/moving-text.component.d.ts +1 -1
- package/lib/sections/new-testimonials/new-testimonials.component.d.ts +1 -1
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/lib/services/rest.service.d.ts +1 -3
- package/lib/styles/style.model.d.ts +1 -0
- package/lib/styles/types.d.ts +2 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/simpo-component-library-3.6.103.tgz +0 -0
- package/src/lib/styles/global-styles.css +5 -1
- package/simpo-component-library-3.6.100.tgz +0 -0
@@ -13,7 +13,7 @@ export declare class InputFieldsComponent implements OnChanges {
|
|
13
13
|
constructor(elementRef: ElementRef);
|
14
14
|
ngOnChanges(changes: SimpleChanges): void;
|
15
15
|
handleMoneyInput(event: any): void;
|
16
|
-
get getTextColor(): "#
|
16
|
+
get getTextColor(): "#FFF" | "#000";
|
17
17
|
interpolateColor(color1: string, color2: string, factor: number): string;
|
18
18
|
padZero(str: string, length: number): string;
|
19
19
|
generateColorBasedOnNumber(number: number): string;
|
@@ -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
|
}
|
@@ -16,7 +16,7 @@ export declare class ButtonDirectiveDirective implements OnChanges {
|
|
16
16
|
applyButtonStyleChanges(): void;
|
17
17
|
applyButtonType(style: ButtonStyleModel, backgroundInfo?: BackgroundModel): void;
|
18
18
|
applyButtonShape(style: ButtonStyleModel): void;
|
19
|
-
getTextColor(bgColor: string): "#
|
19
|
+
getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
|
20
20
|
buttonStyleSubscription?: Subscription;
|
21
21
|
buttonStyleChangeCheck(): void;
|
22
22
|
changeButtonStyle(id: any, style: ButtonStyleModel, backgroundInfo: BackgroundModel): 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
|
}
|
@@ -1,10 +1,14 @@
|
|
1
1
|
import { ElementRef, OnInit, OnDestroy } from '@angular/core';
|
2
2
|
import { Image } from '../styles/style.model';
|
3
3
|
import { MatDialog } from '@angular/material/dialog';
|
4
|
+
import { EventsService } from '../services/events.service';
|
5
|
+
import { Router } from '@angular/router';
|
4
6
|
import * as i0 from "@angular/core";
|
5
7
|
export declare class ImageEditorDirective implements OnInit, OnDestroy {
|
6
8
|
private el;
|
7
9
|
private matDialog;
|
10
|
+
private _eventService;
|
11
|
+
private router;
|
8
12
|
appImageEditor: boolean;
|
9
13
|
imageData?: Image;
|
10
14
|
sectionId?: string;
|
@@ -12,12 +16,13 @@ export declare class ImageEditorDirective implements OnInit, OnDestroy {
|
|
12
16
|
private mouseLeaveSub?;
|
13
17
|
private clickSub?;
|
14
18
|
private readonly HIGHLIGHT_BORDER;
|
15
|
-
constructor(el: ElementRef, matDialog: MatDialog);
|
19
|
+
constructor(el: ElementRef, matDialog: MatDialog, _eventService: EventsService, router: Router);
|
16
20
|
ngOnInit(): void;
|
17
21
|
ngOnChanges(): void;
|
18
22
|
private setupEventListeners;
|
19
23
|
private cleanup;
|
20
24
|
ngOnDestroy(): void;
|
25
|
+
redirectTo(): void;
|
21
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorDirective, never>;
|
22
27
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ImageEditorDirective, "img[appImageEditor]", never, { "appImageEditor": { "alias": "appImageEditor"; "required": false; }; "imageData": { "alias": "imageData"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; }, {}, never, never, true, never>;
|
23
28
|
}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
2
|
-
import { LayOutModel } from '../styles/style.model';
|
2
|
+
import { BackgroundModel, LayOutModel } from '../styles/style.model';
|
3
3
|
import { Subscription } from 'rxjs';
|
4
4
|
import { EventsService } from '../services/events.service';
|
5
5
|
import * as i0 from "@angular/core";
|
@@ -7,12 +7,17 @@ export declare class SpacingAroundDirective {
|
|
7
7
|
private el;
|
8
8
|
private eventService;
|
9
9
|
layout?: LayOutModel;
|
10
|
+
backgroundInfo?: BackgroundModel;
|
10
11
|
constructor(el: ElementRef, eventService: EventsService);
|
12
|
+
private childDiv?;
|
11
13
|
ngOnChanges(): void;
|
12
14
|
ngOnDestroy(): void;
|
13
15
|
changeAroundSpacing(): void;
|
14
16
|
positionLayoutSubscription?: Subscription;
|
15
17
|
positionLayoutChangeCheck(): void;
|
18
|
+
getBorderColor(bgColor: string): string;
|
19
|
+
lightenColor(r: number, g: number, b: number, factor: number): string;
|
20
|
+
darkenColor(r: number, g: number, b: number, factor: number): string;
|
16
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<SpacingAroundDirective, never>;
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SpacingAroundDirective, "[spacingAround]", never, { "layout": { "alias": "spacingAround"; "required": false; }; }, {}, never, never, true, never>;
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SpacingAroundDirective, "[spacingAround]", never, { "layout": { "alias": "spacingAround"; "required": false; }; "backgroundInfo": { "alias": "backgroundInfo"; "required": false; }; }, {}, never, never, true, never>;
|
18
23
|
}
|
package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts
CHANGED
@@ -58,7 +58,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
58
58
|
validateNumber(event: KeyboardEvent): void;
|
59
59
|
validateOTP(event: KeyboardEvent): void;
|
60
60
|
checkStrength(): void;
|
61
|
-
getStrengthColor(index: number): "
|
61
|
+
getStrengthColor(index: number): "yellow" | "tomato" | "#d3d3d3ba" | "orange" | "lightgreen";
|
62
62
|
get isEmailValid(): boolean;
|
63
63
|
get isPasswordValid(): boolean;
|
64
64
|
get isMobile(): boolean;
|
@@ -11,6 +11,7 @@ import { OrderedItems } from '../../styles/OrderedItems.modal';
|
|
11
11
|
import { MessageService } from 'primeng/api';
|
12
12
|
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
13
13
|
import { Subscription } from 'rxjs';
|
14
|
+
import { LayOutModel } from '../../../styles/style.model';
|
14
15
|
import * as i0 from "@angular/core";
|
15
16
|
interface Coupon {
|
16
17
|
discountType: string;
|
@@ -57,6 +58,7 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
|
|
57
58
|
ngOnInit(): void;
|
58
59
|
ngOnDestroy(): void;
|
59
60
|
updateUserCart(): void;
|
61
|
+
get stylesLayout(): LayOutModel;
|
60
62
|
mergeOrderItems(syncedItems: any[]): void;
|
61
63
|
getCouponList(): void;
|
62
64
|
removeCoupon(event: MouseEvent): void;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { InputTextModel, StylesModel } from "../../../styles/style.model";
|
2
|
+
import { Corners } from "../../.././styles/index";
|
2
3
|
import { Display } from "../featured-products/featured-products.modal";
|
3
4
|
export interface FeaturedCategoryModal {
|
4
5
|
id: string;
|
@@ -18,4 +19,5 @@ export interface FeaturedCategoryStylesModel extends StylesModel {
|
|
18
19
|
direction: "ROW" | "COLUMN";
|
19
20
|
containerHeight: number;
|
20
21
|
containerWidth: number;
|
22
|
+
corners: Corners;
|
21
23
|
}
|
@@ -3,7 +3,7 @@ import { FeaturedProductContentModal, FeaturedProductModal, FeaturedProductStyle
|
|
3
3
|
import { Product, ItemVariant } from '../../styles/product.modal';
|
4
4
|
import { EventsService } from '.././../../services/events.service';
|
5
5
|
import BaseSection from '../../../sections/BaseSection';
|
6
|
-
import { BackgroundModel, ButtonModel, LayOutModel } from '../../../styles/style.model';
|
6
|
+
import { BackgroundModel, ButtonModel, LayOutModel, PositionLayoutModal } from '../../../styles/style.model';
|
7
7
|
import { RestService } from '../../../services/rest.service';
|
8
8
|
import { Router } from '@angular/router';
|
9
9
|
import { CartService } from '../../../services/cart.service';
|
@@ -68,6 +68,7 @@ export declare class FeaturedProductsComponent extends BaseSection implements On
|
|
68
68
|
get stylesLayout(): LayOutModel;
|
69
69
|
proceedToProductList(): void;
|
70
70
|
editSection(): void;
|
71
|
+
get getPositionLayout(): PositionLayoutModal;
|
71
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedProductsComponent, never>;
|
72
73
|
static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedProductsComponent, "simpo-featured-products", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "index": { "alias": "index"; "required": false; }; "isRelatedProduct": { "alias": "isRelatedProduct"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, { "changeDetailProduct": "changeDetailProduct"; }, never, never, true, never>;
|
73
74
|
}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { InputTextModel, StylesModel, ImageStyle, ActionModel } from "../../../styles/style.model";
|
1
|
+
import { InputTextModel, StylesModel, ImageStyle, ActionModel, Image, BannerStylesModel } from "../../../styles/style.model";
|
2
2
|
import { Corners, ProductCardTheme } from "../../.././styles/index";
|
3
3
|
export declare class FeaturedProductModal {
|
4
4
|
id: string;
|
@@ -13,16 +13,20 @@ export declare class FeaturedProductModal {
|
|
13
13
|
}
|
14
14
|
export interface FeaturedProductContentModal {
|
15
15
|
inputText: InputTextModel[];
|
16
|
+
image: ImageModel;
|
16
17
|
display: Display;
|
17
18
|
button: string;
|
18
19
|
collectionId: string;
|
19
20
|
}
|
21
|
+
export interface ImageModel extends Image {
|
22
|
+
showImage: boolean;
|
23
|
+
}
|
20
24
|
export interface Display {
|
21
25
|
showHeading: boolean;
|
22
26
|
showContent: boolean;
|
23
27
|
showButton: boolean;
|
24
28
|
}
|
25
|
-
export interface FeaturedProductStylesModel extends StylesModel {
|
29
|
+
export interface FeaturedProductStylesModel extends StylesModel, BannerStylesModel {
|
26
30
|
image: ImageStyle;
|
27
31
|
corners: Corners;
|
28
32
|
maximumProduct: number;
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { EventsService } from '.././../../services/events.service';
|
2
|
+
import BaseSection from '../../../sections/BaseSection';
|
3
|
+
import { RestService } from '../../../services/rest.service';
|
4
|
+
import { Router } from '@angular/router';
|
5
|
+
import { Collection } from '../../styles/Collection.modal';
|
6
|
+
import { BackgroundModel, LayOutModel } from '../../../styles/style.model';
|
7
|
+
import { NewCollectionContentModal, NewCollectionModal, NewCollectionStyleModal } from './new-collection.modal';
|
8
|
+
import * as i0 from "@angular/core";
|
9
|
+
export declare class NewCollectionComponent extends BaseSection {
|
10
|
+
private readonly router;
|
11
|
+
private readonly restService;
|
12
|
+
private readonly _eventService;
|
13
|
+
data?: NewCollectionModal;
|
14
|
+
responseData?: Collection[];
|
15
|
+
index?: number;
|
16
|
+
edit?: boolean;
|
17
|
+
delete?: boolean;
|
18
|
+
customClass?: string;
|
19
|
+
nextComponentColor?: BackgroundModel;
|
20
|
+
isLoading: boolean;
|
21
|
+
content?: NewCollectionContentModal;
|
22
|
+
styles?: NewCollectionStyleModal;
|
23
|
+
constructor(router: Router, restService: RestService, _eventService: EventsService);
|
24
|
+
ngOnInit(): void;
|
25
|
+
getSliceParameters(): number[];
|
26
|
+
getCollectionsIds(): void;
|
27
|
+
dropCollection(startIdx: number, endIdx: number): void;
|
28
|
+
redirectToListPage(collection: any): void;
|
29
|
+
get stylesLayout(): LayOutModel;
|
30
|
+
get getDirection(): "ROW" | "COLUMN" | undefined;
|
31
|
+
get isMobile(): boolean;
|
32
|
+
editSection(): void;
|
33
|
+
getColor(color: any): "#ffffff" | "#000000";
|
34
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NewCollectionComponent, never>;
|
35
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NewCollectionComponent, "simpo-new-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; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
36
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { InputTextModel, StylesModel } from "../../../styles/style.model";
|
2
|
+
import { Corners } from "../../.././styles/index";
|
3
|
+
import { Display } from "../featured-products/featured-products.modal";
|
4
|
+
export interface NewCollectionModal {
|
5
|
+
id: string;
|
6
|
+
sectionType: string;
|
7
|
+
sectionName: string;
|
8
|
+
content: NewCollectionContentModal;
|
9
|
+
styles: NewCollectionStyleModal;
|
10
|
+
}
|
11
|
+
export interface NewCollectionContentModal {
|
12
|
+
inputText: InputTextModel[];
|
13
|
+
collectionId?: string;
|
14
|
+
collectionIds?: string[];
|
15
|
+
display: Display;
|
16
|
+
}
|
17
|
+
export interface NewCollectionStyleModal extends StylesModel {
|
18
|
+
maximumProduct: number;
|
19
|
+
direction: "ROW" | "COLUMN";
|
20
|
+
containerHeight: number;
|
21
|
+
containerWidth: number;
|
22
|
+
corners: Corners;
|
23
|
+
}
|
@@ -99,6 +99,9 @@ export declare class ProductListComponent extends BaseSection {
|
|
99
99
|
get isMobile(): boolean;
|
100
100
|
get currency(): string;
|
101
101
|
get minSize(): number;
|
102
|
+
getProductImages(product: any): any;
|
103
|
+
imageIndex: number;
|
104
|
+
changeImage(product: any, action: 'PREV' | 'NEXT', index: number): Promise<void>;
|
102
105
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
|
103
106
|
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; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
104
107
|
}
|
@@ -13,6 +13,7 @@ export declare class SmallProductListingComponent implements OnInit {
|
|
13
13
|
isScrollable?: boolean;
|
14
14
|
isCategoryProductList: boolean;
|
15
15
|
customClass?: string;
|
16
|
+
index: number;
|
16
17
|
ngOnInit(): void;
|
17
18
|
addItemToCart(event: PointerEvent | MouseEvent, product: Product, type: 'ADD' | 'SUBSTRACT'): void;
|
18
19
|
removeDefault(event: PointerEvent | MouseEvent): void;
|
@@ -21,6 +22,9 @@ export declare class SmallProductListingComponent implements OnInit {
|
|
21
22
|
goToProductDetail(product: Product): void;
|
22
23
|
getSupportingColor(color: string): string;
|
23
24
|
get currency(): string;
|
25
|
+
getProductImages(product: any): any;
|
26
|
+
imageIndex: number;
|
27
|
+
changeImage(product: any, action: 'PREV' | 'NEXT'): Promise<void>;
|
24
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmallProductListingComponent, never>;
|
25
|
-
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; }; "customClass": { "alias": "customClass"; "required": false; }; }, {}, never, never, true, never>;
|
29
|
+
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; }; "customClass": { "alias": "customClass"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
|
26
30
|
}
|
@@ -15,6 +15,8 @@ export declare class ElementServiceService {
|
|
15
15
|
getAllCombos(data: any): import("rxjs").Observable<Object>;
|
16
16
|
getAllStops(bId: any): import("rxjs").Observable<Object>;
|
17
17
|
getVehicleRoutes(stopId: any, typeId: any): import("rxjs").Observable<Object>;
|
18
|
+
getAllCategories(): import("rxjs").Observable<any>;
|
19
|
+
getAllCollections(): import("rxjs").Observable<any>;
|
18
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ElementServiceService, never>;
|
19
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<ElementServiceService>;
|
20
22
|
}
|
@@ -1,22 +1,48 @@
|
|
1
1
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
2
2
|
import { EventsService } from '../../services/events.service';
|
3
|
-
import { Image } from '../../styles/style.model';
|
3
|
+
import { Button, Image } from '../../styles/style.model';
|
4
|
+
import { ElementServiceService } from '../editor-service.service';
|
5
|
+
import { RedirectionLinkType } from '../../styles/index';
|
4
6
|
import * as i0 from "@angular/core";
|
5
7
|
export declare class ImageEditorComponent {
|
6
8
|
private eventsService;
|
9
|
+
private editorService;
|
7
10
|
dialogRef: MatDialogRef<ImageEditorComponent>;
|
8
11
|
data: any;
|
9
12
|
private matDialog;
|
10
|
-
constructor(eventsService: EventsService, dialogRef: MatDialogRef<ImageEditorComponent>, data: any, matDialog: MatDialog);
|
13
|
+
constructor(eventsService: EventsService, editorService: ElementServiceService, dialogRef: MatDialogRef<ImageEditorComponent>, data: any, matDialog: MatDialog);
|
11
14
|
imageData: Image;
|
12
15
|
sectionId: string;
|
13
16
|
private backDrop;
|
14
|
-
|
17
|
+
link: Button;
|
18
|
+
ngOnInit(): Promise<void>;
|
19
|
+
RedirectionLink: typeof RedirectionLinkType;
|
20
|
+
addLink: boolean;
|
15
21
|
max: number;
|
16
22
|
min: number;
|
17
23
|
updateImage(): Promise<void>;
|
18
24
|
horizontalPosition(): void;
|
19
25
|
deleteImage(): void;
|
26
|
+
linkType: any[];
|
27
|
+
selectedType: RedirectionLinkType;
|
28
|
+
changeType(type: RedirectionLinkType): void;
|
29
|
+
templatePage: any[];
|
30
|
+
getTemplatePage(): void;
|
31
|
+
externalLinkType: Array<type>;
|
32
|
+
collectionList: any;
|
33
|
+
categoryList: any;
|
34
|
+
collectionPath: any;
|
35
|
+
getCollectionList(): void;
|
36
|
+
getCategoryList(): void;
|
37
|
+
pageName: string;
|
38
|
+
addCollectionToPath(): void;
|
39
|
+
categoryPath: any;
|
40
|
+
addCategoryToPath(): void;
|
41
|
+
onPageChange(event: any): void;
|
20
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorComponent, never>;
|
21
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<ImageEditorComponent, "simpo-image-editor", never, {}, {}, never, never, true, never>;
|
22
44
|
}
|
45
|
+
interface type {
|
46
|
+
type: string;
|
47
|
+
}
|
48
|
+
export {};
|
@@ -28,7 +28,7 @@ export declare class LinkEditorComponent {
|
|
28
28
|
buttonStyles: any;
|
29
29
|
changeButtonStyle(): void;
|
30
30
|
backgroundType: string[];
|
31
|
-
setBorderRadius(): "0px" | "
|
31
|
+
setBorderRadius(): "0px" | "99px" | "7px";
|
32
32
|
setBorder(): string;
|
33
33
|
setColor(): any;
|
34
34
|
setBackground(): any;
|
@@ -25,8 +25,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
|
|
25
25
|
get stylesLayout(): LayOutModel;
|
26
26
|
get getBlurValue(): "NONE" | "LIGHT" | "MODERATE" | "STRONG" | "VERY_STRONG" | undefined;
|
27
27
|
get getBackgroundColor(): BackgroundModel;
|
28
|
-
get getBackgroundOpacity(): "0
|
29
|
-
opacityValue(value: OverlayValue): "0
|
28
|
+
get getBackgroundOpacity(): "0" | "0.7" | "0.5" | "0.3" | "0.2";
|
29
|
+
opacityValue(value: OverlayValue): "0" | "0.7" | "0.5" | "0.3" | "0.2";
|
30
30
|
editSection(): void;
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<BannerCarouselComponent, never>;
|
32
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<BannerCarouselComponent, "simpo-banner-carousel", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
@@ -25,7 +25,7 @@ export declare class CarouselBannerComponent extends BaseSection implements OnIn
|
|
25
25
|
get canMergeNavbar(): boolean | undefined;
|
26
26
|
get isBorderlessImage(): boolean | undefined;
|
27
27
|
get getPositionLayout(): PositionLayoutModal;
|
28
|
-
opacityValue(value: OverlayValue): "0
|
28
|
+
opacityValue(value: OverlayValue): "0" | "0.7" | "0.5" | "0.3" | "0.2";
|
29
29
|
editSection(): void;
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselBannerComponent, never>;
|
31
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<CarouselBannerComponent, "simpo-carousel-banner", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
@@ -28,7 +28,7 @@ export declare class ContactUsComponent extends BaseSection implements OnInit {
|
|
28
28
|
editSection(): void;
|
29
29
|
canShowContactField(field: any): any;
|
30
30
|
getCardStyle(): {};
|
31
|
-
getTextColor(bgColor: string): "#
|
31
|
+
getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContactUsComponent, never>;
|
33
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<ContactUsComponent, "simpo-contact-us", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
34
34
|
}
|
@@ -71,6 +71,7 @@ export declare class HeaderSectionComponent implements OnInit {
|
|
71
71
|
get userGender(): import("../../ecommerce/styles/user.modal").GENDER | null;
|
72
72
|
get getNavbarButton(): any[];
|
73
73
|
isScrolled: boolean;
|
74
|
+
setColor(): "#ffffff" | "#000000";
|
74
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderSectionComponent, never>;
|
75
76
|
static ɵcmp: i0.ɵɵComponentDeclaration<HeaderSectionComponent, "simpo-header-section", never, { "data": { "alias": "data"; "required": false; }; "nextComponent": { "alias": "nextComponent"; "required": false; }; "index": { "alias": "index"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
|
76
77
|
}
|
@@ -3,7 +3,7 @@ import { ImageCarouselSection, ImageCarouselSectionContentModel, ImageCarouselSe
|
|
3
3
|
import { EventsService } from './../../services/events.service';
|
4
4
|
import BaseSection from '../BaseSection';
|
5
5
|
import { SPACING } from '../../styles/index';
|
6
|
-
import { BackgroundModel } from '../../styles/style.model';
|
6
|
+
import { BackgroundModel, LayOutModel } from '../../styles/style.model';
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
export declare class ImageCarouselSectionComponent extends BaseSection implements OnInit {
|
9
9
|
private _eventService;
|
@@ -19,6 +19,7 @@ export declare class ImageCarouselSectionComponent extends BaseSection implement
|
|
19
19
|
ngOnInit(): void;
|
20
20
|
screenWidth: number;
|
21
21
|
getScreenSize(event?: number): void;
|
22
|
+
get stylesLayout(): LayOutModel;
|
22
23
|
getPrevImage(index: number): import("../../styles/style.model").Image | undefined;
|
23
24
|
getNextImage(index: number): import("../../styles/style.model").Image | undefined;
|
24
25
|
get headingSpace(): SPACING;
|
@@ -21,6 +21,10 @@ export declare class ImageGridSectionComponent extends BaseSection {
|
|
21
21
|
get stylesLayout(): LayOutModel;
|
22
22
|
get headingSpace(): SPACING;
|
23
23
|
editSection(): void;
|
24
|
+
getLength(): number;
|
25
|
+
getImageData(index: number): any;
|
26
|
+
getImageDataArray(): any[];
|
27
|
+
getImage(): any[];
|
24
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageGridSectionComponent, never>;
|
25
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<ImageGridSectionComponent, "simpo-image-grid-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
26
30
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Corners } from "./../../styles/index";
|
2
2
|
import { Image, ImageStyle, InputTextModel, ListItemModal, StylesModel } from "./../../styles/style.model";
|
3
|
-
import { CARD_SIZE } from "./../../styles/types";
|
3
|
+
import { CARD_SIZE, GRID_STYLE } from "./../../styles/types";
|
4
4
|
export interface ImageGridSectionModel {
|
5
5
|
id: string;
|
6
6
|
sectionType: string;
|
@@ -18,6 +18,7 @@ export interface ImageGridStylesModel extends StylesModel {
|
|
18
18
|
removeGaps: boolean;
|
19
19
|
fullWidth: boolean;
|
20
20
|
size: CARD_SIZE;
|
21
|
+
gridStyle: GRID_STYLE;
|
21
22
|
}
|
22
23
|
export interface ImageGridItemModel {
|
23
24
|
image: Image;
|
@@ -20,9 +20,9 @@ export declare class ImageSectionComponent extends BaseSection {
|
|
20
20
|
constructor(_eventService: EventsService);
|
21
21
|
ngOnInit(): void;
|
22
22
|
get canMergeNavbar(): boolean | undefined;
|
23
|
-
get getBackgroundOpacity(): "
|
23
|
+
get getBackgroundOpacity(): "1" | "0.7" | "0.5" | "0.3" | "0.2";
|
24
24
|
get stylesLayout(): LayOutModel;
|
25
|
-
opacityValue(value: OverlayValue): "
|
25
|
+
opacityValue(value: OverlayValue): "1" | "0.7" | "0.5" | "0.3" | "0.2";
|
26
26
|
editSection(): void;
|
27
27
|
redirectTo(): void;
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageSectionComponent, never>;
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { OnInit } from '@angular/core';
|
2
|
-
import { ActionModel, BackgroundModel, LayOutModel } from '../../styles/style.model';
|
2
|
+
import { ActionModel, BackgroundModel, LayOutModel, PositionLayoutModal } from '../../styles/style.model';
|
3
3
|
import BaseSection from '../BaseSection';
|
4
4
|
import { EventsService } from './../../services/events.service';
|
5
5
|
import { LogoShowcaseContentModel, LogoShowcaseSection, LogoShowcaseStylesModel } from './logo-showcase.modal';
|
@@ -24,8 +24,9 @@ export declare class LogoShowcaseComponent extends BaseSection implements OnInit
|
|
24
24
|
ngOnInit(): void;
|
25
25
|
get stylesLayout(): LayOutModel;
|
26
26
|
get animationDuration(): logoSpeed;
|
27
|
-
get animationDirection(): "reverse" | "normal"
|
27
|
+
get animationDirection(): logoDirection.Left | "reverse" | "normal";
|
28
28
|
get isMobile(): boolean;
|
29
|
+
get getPositionLayout(): PositionLayoutModal;
|
29
30
|
screenWidth: number;
|
30
31
|
getScreenSize(event?: number): void;
|
31
32
|
editSection(): void;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Image, ImageStyle, StylesModel, ActionModel, InputTextModel, ListItemModal, PositionLayoutModal, DisplaySection } from "./../../styles/style.model";
|
2
2
|
import { Corners, logoDirection, logoSpeed, logoType, showCaseType, AlignContent } from './../../styles/index';
|
3
|
-
import { CARD_SIZE } from './../../styles/types';
|
3
|
+
import { CARD_SIZE, LOGO_POSITION } from './../../styles/types';
|
4
4
|
export interface LogoShowcaseSection {
|
5
5
|
id: string;
|
6
6
|
sectionType: string;
|
@@ -36,4 +36,5 @@ export interface LogoShowcaseStylesModel extends StylesModel {
|
|
36
36
|
contentAlignment: AlignContent;
|
37
37
|
containerHeight: number;
|
38
38
|
containerWidth: number;
|
39
|
+
logoPosition: LOGO_POSITION;
|
39
40
|
}
|
@@ -22,7 +22,7 @@ export declare class MovingTextComponent extends BaseSection {
|
|
22
22
|
private transitionToNext;
|
23
23
|
isItemVisible(index: number): boolean;
|
24
24
|
getItemClass(index: number): string;
|
25
|
-
getTextColor(bgColor: string): "#
|
25
|
+
getTextColor(bgColor: string): "#ffffff" | "#000000";
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<MovingTextComponent, never>;
|
27
27
|
static ɵcmp: i0.ɵɵComponentDeclaration<MovingTextComponent, "simpo-moving-text", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
|
28
28
|
}
|
@@ -21,7 +21,7 @@ export declare class NewTestimonialsComponent extends BaseSection {
|
|
21
21
|
idx: number;
|
22
22
|
getImageData(): import("../../styles/style.model").Image | undefined;
|
23
23
|
getImageUrl(): string | undefined;
|
24
|
-
getImageType(): "
|
24
|
+
getImageType(): "Image" | "Video";
|
25
25
|
editSection(): void;
|
26
26
|
stopPropagation(event: any): void;
|
27
27
|
screenWidth: any;
|
@@ -18,7 +18,7 @@ export declare class PricingSectionComponent extends BaseSection {
|
|
18
18
|
constructor(_eventService: EventsService);
|
19
19
|
ngOnInit(): void;
|
20
20
|
get stylesLayout(): LayOutModel;
|
21
|
-
getTextColor(): "#
|
21
|
+
getTextColor(): "#ffffff" | "#000000";
|
22
22
|
get headingSpace(): SPACING;
|
23
23
|
getButtonId(): string;
|
24
24
|
editSection(): void;
|
@@ -1,14 +1,12 @@
|
|
1
1
|
import { HttpClient } from "@angular/common/http";
|
2
2
|
import { OnDestroy } from "@angular/core";
|
3
3
|
import { Observable } from "rxjs";
|
4
|
-
import { EventsService } from "../../public-api";
|
5
4
|
import { Review } from "../ecommerce/styles/review.modal";
|
6
5
|
import { DeviceInfo } from "../ecommerce/styles/user.modal";
|
7
6
|
import { PincodeLocation } from "../ecommerce/styles/PincodeLocation.model";
|
8
7
|
import * as i0 from "@angular/core";
|
9
8
|
export declare class RestService implements OnDestroy {
|
10
9
|
private readonly http;
|
11
|
-
private readonly eventService;
|
12
10
|
private BASE_URL;
|
13
11
|
private ECOMMERCE_URL;
|
14
12
|
private CMIS_URL;
|
@@ -16,7 +14,7 @@ export declare class RestService implements OnDestroy {
|
|
16
14
|
businessDetails: any;
|
17
15
|
subIndustryName: any;
|
18
16
|
isJewellery: boolean;
|
19
|
-
constructor(http: HttpClient,
|
17
|
+
constructor(http: HttpClient, BASE_URL: string, ECOMMERCE_URL: string, CMIS_URL: string);
|
20
18
|
getBusinessDetails(): void;
|
21
19
|
ngOnDestroy(): void;
|
22
20
|
getFeaturedProduct(collectionId: string | undefined | null): Observable<any>;
|
package/lib/styles/types.d.ts
CHANGED
@@ -27,3 +27,5 @@ export type PROCESS_SECTION_DISPLAY_STYLE = 'STYLE1' | 'STYLE2';
|
|
27
27
|
export type TAB_STYLING = 'UNDERLINE' | 'BOXED' | 'NONE';
|
28
28
|
export type PRICING_STYLE = 'STYLE1' | 'STYLE2';
|
29
29
|
export type CONTENT_BACKGROUND = 'black' | 'white';
|
30
|
+
export type LOGO_POSITION = 'left' | 'right' | 'top' | 'bottom';
|
31
|
+
export type GRID_STYLE = 'Style1' | 'Style2';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -57,6 +57,7 @@ export * from './lib/ecommerce/sections/category-product/category-product.compon
|
|
57
57
|
export * from './lib/ecommerce/sections/featured-category/featured-collection.component';
|
58
58
|
export * from './lib/ecommerce/sections/customer-review/customer-review.component';
|
59
59
|
export * from './lib/ecommerce/sections/authentication-required/authentication-required.component';
|
60
|
+
export * from './lib/ecommerce/sections/new-collection/new-collection.component';
|
60
61
|
export * from './lib/services/events.service';
|
61
62
|
export * from './lib/services/endUser.service';
|
62
63
|
export * from './lib/services/sanitizeHtml';
|
Binary file
|
Binary file
|