simpo-component-library 3.6.802 → 3.6.804
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/spacing-around.directive.mjs +7 -7
- package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +238 -45
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +3 -3
- package/esm2022/lib/sections/features-section/features-section.component.mjs +17 -3
- package/esm2022/lib/sections/header-section/header-section.component.mjs +4 -4
- package/esm2022/lib/sections/header-section/header-section.model.mjs +1 -1
- package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +5 -3
- package/esm2022/lib/sections/video-carousel-section/video-carousel-section.component.mjs +123 -0
- package/esm2022/lib/sections/video-carousel-section/video-carousel.model.mjs +2 -0
- package/esm2022/lib/services/rest.service.mjs +18 -2
- package/esm2022/lib/styles/index.mjs +3 -1
- package/esm2022/lib/styles/types.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/simpo-component-library.mjs +385 -59
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/components/input-fields/input-fields.component.d.ts +1 -1
- package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +18 -6
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +1 -1
- package/lib/elements/link-editor/link-editor.component.d.ts +1 -1
- package/lib/elements/pricing-s1/pricing-s1.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/features-section/features-section.component.d.ts +1 -0
- package/lib/sections/header-section/header-section.model.d.ts +1 -0
- package/lib/sections/image-section/image-section.component.d.ts +2 -2
- package/lib/sections/logo-showcase/logo-showcase.component.d.ts +2 -2
- 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/sections/video-carousel-section/video-carousel-section.component.d.ts +34 -0
- package/lib/sections/video-carousel-section/video-carousel.model.d.ts +24 -0
- package/lib/services/rest.service.d.ts +8 -0
- package/lib/styles/index.d.ts +2 -0
- package/lib/styles/types.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/simpo-component-library-3.6.804.tgz +0 -0
- package/simpo-component-library-3.6.802.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(): "#000" | "#FFF";
|
|
17
17
|
interpolateColor(color1: string, color2: string, factor: number): string;
|
|
18
18
|
padZero(str: string, length: number): string;
|
|
19
19
|
generateColorBasedOnNumber(number: number): string;
|
package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts
CHANGED
|
@@ -27,12 +27,16 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
|
27
27
|
styles?: AuthenticationStylesModel;
|
|
28
28
|
button?: ButtonModel;
|
|
29
29
|
buttonId: string;
|
|
30
|
-
|
|
30
|
+
authScreen: 'PHONE' | 'OTP' | 'REGISTER' | 'PASSWORD';
|
|
31
31
|
private mobileTimer;
|
|
32
32
|
email: string;
|
|
33
33
|
mobile: string;
|
|
34
|
+
phoneNumber: string;
|
|
34
35
|
otp: string;
|
|
35
36
|
otpControls: FormArray<FormControl<string | null>>;
|
|
37
|
+
resendCountdown: number;
|
|
38
|
+
private resendInterval;
|
|
39
|
+
isExistingUser: boolean;
|
|
36
40
|
password: string;
|
|
37
41
|
confPassword: string;
|
|
38
42
|
userName: string;
|
|
@@ -51,9 +55,22 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
|
51
55
|
proceedToEnrollment: boolean;
|
|
52
56
|
tryAtHome: boolean;
|
|
53
57
|
navigateToSchemeDetails: boolean;
|
|
58
|
+
currentPage: string;
|
|
54
59
|
inputs: QueryList<ElementRef>;
|
|
55
60
|
ngOnInit(): void;
|
|
56
61
|
ngAfterViewInit(): void;
|
|
62
|
+
/** Sets --accent-rgb CSS variable so animated circles match the user's brand color */
|
|
63
|
+
private setAccentRgbVar;
|
|
64
|
+
get canGoBack(): boolean;
|
|
65
|
+
goBack(): void;
|
|
66
|
+
closeAuth(): void;
|
|
67
|
+
formatCountdown(secs: number): string;
|
|
68
|
+
startResendTimer(seconds?: number): void;
|
|
69
|
+
sendOTP(): void;
|
|
70
|
+
resendOTPNew(): void;
|
|
71
|
+
verifyOTPNew(): void;
|
|
72
|
+
registerUser(): void;
|
|
73
|
+
loginWithPassword(): void;
|
|
57
74
|
onInput(index: number): void;
|
|
58
75
|
onKeyDown(event: KeyboardEvent, index: number): void;
|
|
59
76
|
getGradientDirection(direction: string | undefined): string;
|
|
@@ -62,13 +79,8 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
|
62
79
|
getFormOtp(): string;
|
|
63
80
|
loginType: "PASSWORD" | "OTP";
|
|
64
81
|
generateOtp: boolean;
|
|
65
|
-
loginAuthentication(loginType: "PASSWORD" | "OTP"): void;
|
|
66
82
|
generatedOtp: any;
|
|
67
83
|
oneTimePassword: string;
|
|
68
|
-
otpPayload: any;
|
|
69
|
-
getOTP(): void;
|
|
70
|
-
regenerateOtp(payload: any): void;
|
|
71
|
-
resendOtp(): void;
|
|
72
84
|
close(): void;
|
|
73
85
|
login(): void;
|
|
74
86
|
endUserRefferalDetails(userId: any, referralUniqueId: any): void;
|
|
@@ -119,7 +119,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
119
119
|
getTextColor(color: any): "#000000" | "#ffffff";
|
|
120
120
|
languages: string[];
|
|
121
121
|
selectedLang: string;
|
|
122
|
-
getClass(map: any): "col-
|
|
122
|
+
getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
|
|
123
123
|
onFindInStore(id: string): void;
|
|
124
124
|
onBookAppointment(): void;
|
|
125
125
|
isDetails: boolean;
|
|
@@ -31,7 +31,7 @@ export declare class LinkEditorComponent {
|
|
|
31
31
|
changeButtonStyle(): void;
|
|
32
32
|
getContrastTextColor(backgroundHex: any): void;
|
|
33
33
|
backgroundType: string[];
|
|
34
|
-
setBorderRadius(): "0px" | "
|
|
34
|
+
setBorderRadius(): "0px" | "7px" | "99px";
|
|
35
35
|
setBorder(): string;
|
|
36
36
|
setColor(): any;
|
|
37
37
|
setBackground(): any;
|
|
@@ -15,7 +15,7 @@ export declare class PricingS1Component extends BaseSection {
|
|
|
15
15
|
editSection(): void;
|
|
16
16
|
getButtonId(): string;
|
|
17
17
|
redirectTo(data: any): void;
|
|
18
|
-
getClass(): "col-
|
|
18
|
+
getClass(): "col-12" | "col-4" | "col-5";
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<PricingS1Component, never>;
|
|
20
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<PricingS1Component, "simpo-pricing-s1", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
21
|
}
|
|
@@ -33,8 +33,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
|
|
|
33
33
|
get stylesLayout(): LayOutModel;
|
|
34
34
|
get getBlurValue(): "NONE" | "LIGHT" | "MODERATE" | "STRONG" | "VERY_STRONG" | undefined;
|
|
35
35
|
get getBackgroundColor(): BackgroundModel;
|
|
36
|
-
get getBackgroundOpacity(): "
|
|
37
|
-
opacityValue(value: OverlayValue): "
|
|
36
|
+
get getBackgroundOpacity(): "0.5" | "0.7" | "0" | "0.6" | "0.8" | "1";
|
|
37
|
+
opacityValue(value: OverlayValue): "0.5" | "0.7" | "0.6" | "0.8" | "1";
|
|
38
38
|
editSection(): void;
|
|
39
39
|
getScreenSize(): number;
|
|
40
40
|
getSectionMinHeight(): string;
|
|
@@ -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" | "0.
|
|
28
|
+
opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
|
|
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>;
|
|
@@ -24,6 +24,7 @@ export declare class FeaturesSectionComponent extends BaseSection implements OnI
|
|
|
24
24
|
currentData?: FeatureItemModel;
|
|
25
25
|
changetab(index: number): void;
|
|
26
26
|
editSection(): void;
|
|
27
|
+
getJustify(): "center" | "flex-start" | "flex-end";
|
|
27
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<FeaturesSectionComponent, never>;
|
|
28
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<FeaturesSectionComponent, "simpo-features-section", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "index": { "alias": "index"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
29
30
|
}
|
|
@@ -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(): "0.2" | "0.3" | "0.5" | "0.7" | "1";
|
|
24
24
|
get stylesLayout(): LayOutModel;
|
|
25
|
-
opacityValue(value: OverlayValue): "
|
|
25
|
+
opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "1";
|
|
26
26
|
editSection(): void;
|
|
27
27
|
redirectTo(): void;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageSectionComponent, never>;
|
|
@@ -23,8 +23,8 @@ export declare class LogoShowcaseComponent extends BaseSection implements OnInit
|
|
|
23
23
|
constructor(_eventService: EventsService);
|
|
24
24
|
ngOnInit(): void;
|
|
25
25
|
get stylesLayout(): LayOutModel;
|
|
26
|
-
get animationDuration(): "3s" | "
|
|
27
|
-
get animationDirection():
|
|
26
|
+
get animationDuration(): "3s" | "18s" | "6s" | "5s" | "4s" | logoSpeed.Normal;
|
|
27
|
+
get animationDirection(): "reverse" | "normal" | logoDirection.Left;
|
|
28
28
|
get isMobile(): boolean;
|
|
29
29
|
get getPositionLayout(): PositionLayoutModal;
|
|
30
30
|
screenWidth: number;
|
|
@@ -24,7 +24,7 @@ export declare class NewTestimonialsComponent extends BaseSection {
|
|
|
24
24
|
idx: number;
|
|
25
25
|
getImageData(): import("../../styles/style.model").Image | undefined;
|
|
26
26
|
getImageUrl(): string | undefined;
|
|
27
|
-
getImageType(): "
|
|
27
|
+
getImageType(): "Image" | "Video";
|
|
28
28
|
getLength(): number;
|
|
29
29
|
editSection(): void;
|
|
30
30
|
stopPropagation(event: any): void;
|
|
@@ -23,7 +23,7 @@ export declare class PricingSectionComponent extends BaseSection {
|
|
|
23
23
|
getButtonId(): string;
|
|
24
24
|
editSection(): void;
|
|
25
25
|
redirectTo(data: any): void;
|
|
26
|
-
getClass(): "col-
|
|
26
|
+
getClass(): "col-12" | "col-6" | "col-4" | "col-3";
|
|
27
27
|
getAlignment(): "justify-content-start" | "justify-content-center" | "justify-content-end";
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
|
|
29
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<PricingSectionComponent, "simpo-pricing-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>;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { VideoCarouselSection, VideoCarouselSectionContentModel, VideoCarouselSectionStylesModel } from './video-carousel.model';
|
|
3
|
+
import { EventsService } from './../../services/events.service';
|
|
4
|
+
import BaseSection from '../BaseSection';
|
|
5
|
+
import { SPACING } from '../../styles/index';
|
|
6
|
+
import { BackgroundModel, LayOutModel, SpacingModel } from '../../styles/style.model';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class VideoCarouselSectionComponent extends BaseSection implements OnInit {
|
|
9
|
+
private _eventService;
|
|
10
|
+
data?: VideoCarouselSection;
|
|
11
|
+
index?: number;
|
|
12
|
+
customClass?: string;
|
|
13
|
+
nextComponentColor?: BackgroundModel;
|
|
14
|
+
content?: VideoCarouselSectionContentModel;
|
|
15
|
+
style?: VideoCarouselSectionStylesModel;
|
|
16
|
+
edit?: boolean;
|
|
17
|
+
delete?: boolean;
|
|
18
|
+
constructor(_eventService: EventsService);
|
|
19
|
+
activeIndex: number;
|
|
20
|
+
primaryVideoUrl: string;
|
|
21
|
+
secondaryVideoUrl: string;
|
|
22
|
+
isPrimaryActive: boolean;
|
|
23
|
+
ngOnInit(): void;
|
|
24
|
+
screenWidth: number;
|
|
25
|
+
getScreenSize(event?: number): void;
|
|
26
|
+
get stylesLayout(): LayOutModel;
|
|
27
|
+
get spacingLayout(): SpacingModel;
|
|
28
|
+
setVideo(index: number): void;
|
|
29
|
+
get activeVideo(): import("../../styles/style.model").Video | undefined;
|
|
30
|
+
get headingSpace(): SPACING;
|
|
31
|
+
editSection(): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<VideoCarouselSectionComponent, never>;
|
|
33
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<VideoCarouselSectionComponent, "simpo-video-carousel-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Corners } from './../../styles/index';
|
|
2
|
+
import { InputTextModel, ListItemModal, StylesModel, Video, VideoStyle } from './../../styles/style.model';
|
|
3
|
+
import { CARD_SIZE } from './../../styles/types';
|
|
4
|
+
export interface VideoCarouselSection {
|
|
5
|
+
id: string;
|
|
6
|
+
sectionType: string;
|
|
7
|
+
sectionName: string;
|
|
8
|
+
content: VideoCarouselSectionContentModel;
|
|
9
|
+
styles: VideoCarouselSectionStylesModel;
|
|
10
|
+
}
|
|
11
|
+
export interface VideoCarouselSectionContentModel {
|
|
12
|
+
inputText: [InputTextModel];
|
|
13
|
+
listItem: ListItemModal<VideoCarouselItemModel>;
|
|
14
|
+
}
|
|
15
|
+
export interface VideoCarouselItemModel {
|
|
16
|
+
video: Video;
|
|
17
|
+
}
|
|
18
|
+
export interface VideoCarouselSectionStylesModel extends StylesModel {
|
|
19
|
+
corners: Corners;
|
|
20
|
+
video: VideoStyle;
|
|
21
|
+
removeGaps: boolean;
|
|
22
|
+
fullWidth: boolean;
|
|
23
|
+
size: CARD_SIZE;
|
|
24
|
+
}
|
|
@@ -141,6 +141,14 @@ export declare class RestService implements OnDestroy {
|
|
|
141
141
|
createLead(payload: any): Observable<Object>;
|
|
142
142
|
getAppointmentPaymentStatus(orderId: any): Observable<Object>;
|
|
143
143
|
getOtpForLogin(payload: any): Observable<Object>;
|
|
144
|
+
/** New OTP API: PUT /ecommerce/user/auth/send-otp
|
|
145
|
+
* Body: { identifier, businessId }
|
|
146
|
+
* Response: { data: { isExistingUser: boolean, message: string } }
|
|
147
|
+
*/
|
|
148
|
+
sendOtpV2(identifier: string, businessId: string): Observable<Object>;
|
|
149
|
+
verifyOtpV2(payload: any): Observable<Object>;
|
|
150
|
+
completeSignupV2(payload: any): Observable<Object>;
|
|
151
|
+
loginWithPasswordNew(payload: any): Observable<Object>;
|
|
144
152
|
flush(eventsToSend: any): void;
|
|
145
153
|
getPopularSearches(): Observable<Object>;
|
|
146
154
|
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
package/lib/styles/index.d.ts
CHANGED
|
@@ -29,6 +29,7 @@ export declare enum BANNERALIGNMENT {
|
|
|
29
29
|
bottom = "flex-column-reverse"
|
|
30
30
|
}
|
|
31
31
|
export declare enum SPACINGALIGN {
|
|
32
|
+
extraLarge = "10rem",
|
|
32
33
|
large = "8rem",
|
|
33
34
|
medium = "6rem",
|
|
34
35
|
small = "2rem",
|
|
@@ -146,6 +147,7 @@ export declare enum showCaseType {
|
|
|
146
147
|
Grid = "Grid"
|
|
147
148
|
}
|
|
148
149
|
export declare enum logoSpeed {
|
|
150
|
+
VerySlow = "8s",
|
|
149
151
|
Slow = "4s",
|
|
150
152
|
Normal = "3s",
|
|
151
153
|
Fast = "2s",
|
package/lib/styles/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export type SPACING_TYPE = 'none' | 'small' | 'medium' | 'large' | 'remove';
|
|
1
|
+
export type SPACING_TYPE = 'none' | 'small' | 'medium' | 'large' | 'remove' | 'extra-large';
|
|
2
2
|
export type CONTENT_ANIMATION = 'hover' | 'grow-shadow' | 'pop-bounce' | 'hover-pop' | 'slide-in-left' | 'none';
|
|
3
3
|
export type ALIGN = 'left' | 'center' | 'right';
|
|
4
4
|
export type LAYOUTPOSITION = 'left' | 'right' | 'top' | 'bottom';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ export * from './lib/sections/testimonial-section/testimonial-section.component'
|
|
|
11
11
|
export * from './lib/sections/text-image-section/text-image-section.component';
|
|
12
12
|
export * from './lib/sections/video-section/video-section.component';
|
|
13
13
|
export * from './lib/sections/navbar-section/navbar-section.component';
|
|
14
|
+
export * from './lib/sections/video-carousel-section/video-carousel-section.component';
|
|
14
15
|
export * from './lib/sections/add-new-section/add-new-section.component';
|
|
15
16
|
export * from './lib/sections/contact-us/contact-us.component';
|
|
16
17
|
export * from './lib/sections/skeleton-loader-section/skeleton-loader-section.component';
|
|
Binary file
|
|
Binary file
|