simpo-component-library 3.5.42 → 3.5.45
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/components/payment-details/payment-details.component.mjs +37 -11
- package/esm2022/lib/directive/hover-animation.directive.mjs +133 -0
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +3 -3
- package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +3 -3
- package/esm2022/lib/elements/top-of-image-card/top-of-image-card.component.mjs +7 -3
- package/esm2022/lib/sections/moving-text/moving-text.component.mjs +5 -5
- package/esm2022/lib/sections/moving-text/moving-text.modal.mjs +1 -1
- package/esm2022/lib/sections/registration-form/registration-form.component.mjs +3 -1
- package/esm2022/lib/sections/service-section/service-section.component.mjs +3 -3
- package/esm2022/lib/sections/service-section/service-section.model.mjs +1 -1
- package/esm2022/lib/services/events.service.mjs +2 -1
- package/esm2022/lib/styles/index.mjs +2 -1
- 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 +188 -25
- 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/hover-animation.directive.d.ts +19 -0
- package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -1
- package/lib/elements/top-of-image-card/top-of-image-card.component.d.ts +3 -0
- 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/image-section/image-section.component.d.ts +2 -2
- package/lib/sections/logo-showcase/logo-showcase.component.d.ts +1 -1
- package/lib/sections/moving-text/moving-text.component.d.ts +1 -2
- package/lib/sections/moving-text/moving-text.modal.d.ts +1 -1
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/lib/sections/service-section/service-section.model.d.ts +3 -1
- package/lib/services/events.service.d.ts +1 -0
- package/lib/styles/index.d.ts +2 -1
- package/lib/styles/style.model.d.ts +4 -1
- package/lib/styles/types.d.ts +1 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/simpo-component-library-3.5.45.tgz +0 -0
- package/simpo-component-library-3.5.42.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;
|
@@ -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): "#000000" | "#ffffff" | "#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): "#000000" | "#ffffff" | "#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(): "#000000" | "#ffffff" | "#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
|
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
2
|
+
import { contentAnimationModel } from '../styles/style.model';
|
3
|
+
import { EventsService } from '../services/events.service';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class HoverAnimationDirective {
|
6
|
+
private el;
|
7
|
+
private renderer;
|
8
|
+
private eventService;
|
9
|
+
animationData?: contentAnimationModel;
|
10
|
+
eventServiceSubscription: any;
|
11
|
+
constructor(el: ElementRef, renderer: Renderer2, eventService: EventsService);
|
12
|
+
ngOnInit(): void;
|
13
|
+
mouseEnterListener?: () => void;
|
14
|
+
mouseLeaveListener?: () => void;
|
15
|
+
setupAnimation(): void;
|
16
|
+
ngOnDestroy(): void;
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HoverAnimationDirective, never>;
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HoverAnimationDirective, "[simpoHoverAnimation]", never, { "animationData": { "alias": "simpoHoverAnimation"; "required": false; }; }, {}, never, never, true, never>;
|
19
|
+
}
|
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): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
|
62
62
|
get isEmailValid(): boolean;
|
63
63
|
get isPasswordValid(): boolean;
|
64
64
|
get isMobile(): boolean;
|
@@ -11,6 +11,9 @@ export declare class TopOfImageCardComponent {
|
|
11
11
|
edit?: boolean;
|
12
12
|
constructor(_eventService: EventsService);
|
13
13
|
ngOnInit(): void;
|
14
|
+
getContentAnimation(): {
|
15
|
+
contentAnimation: any;
|
16
|
+
};
|
14
17
|
redirectTo(): void;
|
15
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<TopOfImageCardComponent, never>;
|
16
19
|
static ɵcmp: i0.ɵɵComponentDeclaration<TopOfImageCardComponent, "simpo-top-of-image-card", never, { "data": { "alias": "data"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "content": { "alias": "content"; "required": false; }; "componentId": { "alias": "componentId"; "required": false; }; "button": { "alias": "button"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
|
@@ -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" | "0.
|
29
|
-
opacityValue(value: OverlayValue): "0" | "0.
|
28
|
+
get getBackgroundOpacity(): "0" | "0.2" | "0.3" | "0.5" | "0.7";
|
29
|
+
opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
|
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" | "0.
|
28
|
+
opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
|
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>;
|
@@ -20,8 +20,8 @@ export declare class ImageSectionComponent extends BaseSection {
|
|
20
20
|
constructor(_eventService: EventsService);
|
21
21
|
ngOnInit(): void;
|
22
22
|
get canMergeNavbar(): boolean | undefined;
|
23
|
-
get getBackgroundOpacity(): "
|
24
|
-
opacityValue(value: OverlayValue): "
|
23
|
+
get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "1";
|
24
|
+
opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "1";
|
25
25
|
editSection(): void;
|
26
26
|
redirectTo(): void;
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageSectionComponent, never>;
|
@@ -24,7 +24,7 @@ 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():
|
27
|
+
get animationDirection(): "reverse" | "normal" | logoDirection.Left;
|
28
28
|
screenWidth: number;
|
29
29
|
getScreenSize(event?: number): void;
|
30
30
|
editSection(): void;
|
@@ -1,10 +1,9 @@
|
|
1
1
|
import BaseSection from '../BaseSection';
|
2
|
-
import { MovingTextModal } from './moving-text.modal';
|
3
2
|
import { EventsService } from '../../services/events.service';
|
4
3
|
import * as i0 from "@angular/core";
|
5
4
|
export declare class MovingTextComponent extends BaseSection {
|
6
5
|
private _eventService;
|
7
|
-
data?:
|
6
|
+
data?: any;
|
8
7
|
edit?: boolean;
|
9
8
|
delete?: boolean;
|
10
9
|
customClass?: string;
|
@@ -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(): "#000000" | "#ffffff";
|
22
22
|
get headingSpace(): SPACING;
|
23
23
|
editSection(): void;
|
24
24
|
redirectTo(): void;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ActionModel, Button, CardStyles, DisplaySection, Icon, Image, InputTextModel, ListItemModal, StylesModel } from './../../styles/style.model';
|
1
|
+
import { ActionModel, Button, CardStyles, contentAnimationModel, DisplaySection, Icon, Image, InputTextModel, ListItemModal, StylesModel } from './../../styles/style.model';
|
2
2
|
export interface ServiceSectionModal {
|
3
3
|
id: string;
|
4
4
|
sectionType: string;
|
@@ -14,9 +14,11 @@ export interface ServiceContentModal {
|
|
14
14
|
}
|
15
15
|
export interface Display extends DisplaySection {
|
16
16
|
showIcon: boolean;
|
17
|
+
showButtonOnHover: boolean;
|
17
18
|
}
|
18
19
|
export interface ServiceStylesModel extends StylesModel, CardStyles {
|
19
20
|
direction: "ROW" | "COLUMN";
|
21
|
+
contentAnimation: contentAnimationModel;
|
20
22
|
}
|
21
23
|
export interface ServiceItemModal {
|
22
24
|
image: Image;
|
@@ -17,6 +17,7 @@ export declare class EventsService implements OnInit {
|
|
17
17
|
colorOverlayChangeChecks: EventEmitter<unknown>;
|
18
18
|
alignmentChangeChecks: EventEmitter<unknown>;
|
19
19
|
animationChangeChecks: EventEmitter<unknown>;
|
20
|
+
contentAnimationChangeChecks: EventEmitter<unknown>;
|
20
21
|
spacingChangeChecks: EventEmitter<unknown>;
|
21
22
|
borderChangeChecks: EventEmitter<unknown>;
|
22
23
|
cardSizeChangeChecks: EventEmitter<unknown>;
|
package/lib/styles/index.d.ts
CHANGED
@@ -235,7 +235,8 @@ export declare enum FooterType {
|
|
235
235
|
}
|
236
236
|
export declare enum animationType {
|
237
237
|
INFINITE_SCROLL = "InfiniteScroll",
|
238
|
-
SOFT_TRANSITION = "SoftTransition"
|
238
|
+
SOFT_TRANSITION = "SoftTransition",
|
239
|
+
NO_EFFECT = "NoEffect"
|
239
240
|
}
|
240
241
|
export declare enum GradientDirection {
|
241
242
|
DOWN = "",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { AlignContent, Corners, DeviderType, ImageFit, ImageRatio, OverlayValue, RedirectionLinkType, SPACING, TEXT_SIZE, TextPosition } from '.';
|
2
|
-
import { ALIGN, ANIMATION_DIRECTION, ANIMATION_SPEED, BUTTON_SHAPE, BUTTON_TYPE, CARD_SIZE, FIT, LAYOUTPOSITION, LINK_TYPE, SPACING_TYPE, CONTENTPOSITION, BORDER_DIRECTION, BACKGROUND_TYPE, FILE_TYPE, GRADIENT_DIRECTION } from './types';
|
2
|
+
import { ALIGN, ANIMATION_DIRECTION, ANIMATION_SPEED, BUTTON_SHAPE, BUTTON_TYPE, CARD_SIZE, FIT, LAYOUTPOSITION, LINK_TYPE, SPACING_TYPE, CONTENTPOSITION, BORDER_DIRECTION, BACKGROUND_TYPE, FILE_TYPE, GRADIENT_DIRECTION, CONTENT_ANIMATION } from './types';
|
3
3
|
export interface SpacingModel {
|
4
4
|
top: SPACING_TYPE;
|
5
5
|
bottom: SPACING_TYPE;
|
@@ -28,6 +28,9 @@ export interface LayOutModel {
|
|
28
28
|
spacingHorizontal?: SPACING_TYPE;
|
29
29
|
spacingAround?: SPACING_TYPE;
|
30
30
|
}
|
31
|
+
export interface contentAnimationModel {
|
32
|
+
contentAnimation: CONTENT_ANIMATION;
|
33
|
+
}
|
31
34
|
export interface BannerLayOutModel {
|
32
35
|
layoutAlignment: PositionLayoutModal;
|
33
36
|
contentAlignment: contentAlignmentModal;
|
package/lib/styles/types.d.ts
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
export type SPACING_TYPE = 'none' | 'small' | 'medium' | 'large' | 'remove';
|
2
|
+
export type CONTENT_ANIMATION = 'hover' | 'grow-shadow' | 'pop-bounce' | 'hover-pop' | 'slide-in-left';
|
2
3
|
export type ALIGN = 'left' | 'center' | 'right';
|
3
4
|
export type LAYOUTPOSITION = 'left' | 'right' | 'top' | 'bottom';
|
4
5
|
export type CONTENTPOSITION = 'image center' | 'image top' | 'image bottom';
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -83,6 +83,7 @@ export * from './lib/directive/container-alignment.directive';
|
|
83
83
|
export * from './lib/directive/sticky-directive';
|
84
84
|
export * from './lib/directive/removeCarousel-directive';
|
85
85
|
export * from './lib/directive/spacing-around.directive';
|
86
|
+
export * from './lib/directive/hover-animation.directive';
|
86
87
|
export * from './lib/styles/index';
|
87
88
|
export * from './lib/styles/style.model';
|
88
89
|
export * from './lib/styles/types';
|
Binary file
|
Binary file
|