simpo-component-library 3.6.871 → 3.6.873
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/button-editor.directive.mjs +11 -23
- package/esm2022/lib/directive/image-editor.directive.mjs +8 -21
- package/esm2022/lib/elements/add-section/add-section.component.mjs +3 -3
- package/esm2022/lib/services/events.service.mjs +4 -1
- package/fesm2022/simpo-component-library.mjs +1289 -1525
- 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/button-editor.directive.d.ts +3 -3
- package/lib/directive/color.directive.d.ts +1 -1
- package/lib/directive/image-editor.directive.d.ts +2 -7
- package/lib/ecommerce/sections/new-collection/new-collection.component.d.ts +1 -1
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +2 -2
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +1 -1
- package/lib/ecommerce/sections/schemes/schemes.component.d.ts +1 -1
- package/lib/ecommerce/sections/store-list/store-list.component.d.ts +1 -1
- package/lib/ecommerce/sections/store-page/store-page.component.d.ts +1 -1
- package/lib/elements/link-editor/link-editor.component.d.ts +1 -1
- package/lib/sections/banner-grid-section/banner-grid-section.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 -1
- package/lib/sections/moving-text/moving-text.component.d.ts +1 -1
- package/lib/sections/pricing-section/pricing-section.component.d.ts +2 -2
- package/lib/services/events.service.d.ts +3 -0
- package/package.json +1 -1
- package/simpo-component-library-3.6.873.tgz +0 -0
- package/esm2022/lib/elements/image-editor/image-editor.component.mjs +0 -234
- package/lib/elements/image-editor/image-editor.component.d.ts +0 -54
- package/simpo-component-library-3.6.871.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;
|
|
@@ -19,7 +19,7 @@ export declare class BackgroundDirective implements OnChanges, OnDestroy {
|
|
|
19
19
|
private applyVideo;
|
|
20
20
|
/** Sets a GIF animation as the background image */
|
|
21
21
|
private applyAnimationBackground;
|
|
22
|
-
getTextColor(bgColor: string): "#
|
|
22
|
+
getTextColor(bgColor: string): "#000000" | "#ffffff";
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<BackgroundDirective, never>;
|
|
24
24
|
static ɵdir: i0.ɵɵDirectiveDeclaration<BackgroundDirective, "[simpoBackground]", never, { "simpoBackground": { "alias": "simpoBackground"; "required": false; }; "scrollValue": { "alias": "scrollValue"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
25
|
}
|
|
@@ -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;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import { BackgroundModel, Button, ButtonStyleModel } from '../styles/style.model';
|
|
3
|
-
import {
|
|
3
|
+
import { EventsService } from '../services/events.service';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ButtonEditorDirective {
|
|
6
6
|
private el;
|
|
7
|
-
private
|
|
7
|
+
private _eventService;
|
|
8
8
|
appButtonEditor: boolean;
|
|
9
9
|
buttonData?: Button;
|
|
10
10
|
buttonStyle?: ButtonStyleModel;
|
|
@@ -15,7 +15,7 @@ export declare class ButtonEditorDirective {
|
|
|
15
15
|
private mouseLeaveSub?;
|
|
16
16
|
private clickSub?;
|
|
17
17
|
private readonly HIGHLIGHT_BORDER;
|
|
18
|
-
constructor(el: ElementRef,
|
|
18
|
+
constructor(el: ElementRef, _eventService: EventsService);
|
|
19
19
|
ngOnInit(): void;
|
|
20
20
|
ngOnChanges(): void;
|
|
21
21
|
private setupEventListeners;
|
|
@@ -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
|
}
|
|
@@ -1,15 +1,10 @@
|
|
|
1
1
|
import { ElementRef, OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { Image } from '../styles/style.model';
|
|
3
|
-
import { MatDialog } from '@angular/material/dialog';
|
|
2
|
+
import { Image, Icon } from '../styles/style.model';
|
|
4
3
|
import { EventsService } from '../services/events.service';
|
|
5
|
-
import { Router } from '@angular/router';
|
|
6
|
-
import { Icon } from '../styles/style.model';
|
|
7
4
|
import * as i0 from "@angular/core";
|
|
8
5
|
export declare class ImageEditorDirective implements OnInit, OnDestroy {
|
|
9
6
|
private el;
|
|
10
|
-
private matDialog;
|
|
11
7
|
private _eventService;
|
|
12
|
-
private router;
|
|
13
8
|
appImageEditor: boolean;
|
|
14
9
|
imageData?: Image;
|
|
15
10
|
sectionId?: string;
|
|
@@ -19,7 +14,7 @@ export declare class ImageEditorDirective implements OnInit, OnDestroy {
|
|
|
19
14
|
private mouseLeaveSub?;
|
|
20
15
|
private clickSub?;
|
|
21
16
|
private readonly HIGHLIGHT_BORDER;
|
|
22
|
-
constructor(el: ElementRef,
|
|
17
|
+
constructor(el: ElementRef, _eventService: EventsService);
|
|
23
18
|
ngOnInit(): void;
|
|
24
19
|
ngOnChanges(): void;
|
|
25
20
|
private setupEventListeners;
|
|
@@ -32,7 +32,7 @@ export declare class NewCollectionComponent extends BaseSection {
|
|
|
32
32
|
get getDirection(): "ROW" | "COLUMN" | undefined;
|
|
33
33
|
get isMobile(): boolean;
|
|
34
34
|
editSection(): void;
|
|
35
|
-
getColor(color: any): "#
|
|
35
|
+
getColor(color: any): "#000000" | "#ffffff";
|
|
36
36
|
getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<NewCollectionComponent, never>;
|
|
38
38
|
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>;
|
|
@@ -122,10 +122,10 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
122
122
|
getDifference(sellingPrice: any, mrp: any): number;
|
|
123
123
|
getBackgroundColor(type: string): string;
|
|
124
124
|
getHeaderColor(type: string): string;
|
|
125
|
-
getTextColor(color: any): "#
|
|
125
|
+
getTextColor(color: any): "#000000" | "#ffffff";
|
|
126
126
|
languages: string[];
|
|
127
127
|
selectedLang: string;
|
|
128
|
-
getClass(map: any): "col-
|
|
128
|
+
getClass(map: any): "col-4" | "col-6" | "col-3" | "width-max";
|
|
129
129
|
onFindInStore(id: string): void;
|
|
130
130
|
onBookAppointment(): void;
|
|
131
131
|
isDetails: boolean;
|
|
@@ -220,7 +220,7 @@ export declare class ProductListComponent extends BaseSection {
|
|
|
220
220
|
closeModal(): void;
|
|
221
221
|
languages: string[];
|
|
222
222
|
selectedLang: string;
|
|
223
|
-
getTextColor(color: any): "#
|
|
223
|
+
getTextColor(color: any): "#000000" | "#ffffff";
|
|
224
224
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductListComponent, never>;
|
|
225
225
|
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>;
|
|
226
226
|
}
|
|
@@ -21,7 +21,7 @@ export declare class SchemesComponent extends BaseSection {
|
|
|
21
21
|
get stylesLayout(): LayOutModel;
|
|
22
22
|
get spacingLayout(): SpacingModel;
|
|
23
23
|
getParentClass(): "" | "overflow-scroll flex-nowrap";
|
|
24
|
-
getClass(index: number): "col-
|
|
24
|
+
getClass(index: number): "col-12" | "col-6" | "col-6 mb-2" | "col-12 mb-2";
|
|
25
25
|
showSchemeDetails(scheme: any): void;
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<SchemesComponent, never>;
|
|
27
27
|
static ɵcmp: i0.ɵɵComponentDeclaration<SchemesComponent, "simpo-schemes", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -34,7 +34,7 @@ export declare class StoreListComponent extends BaseSection {
|
|
|
34
34
|
showState: boolean;
|
|
35
35
|
selectedState: string;
|
|
36
36
|
setStateData(stateData: any): void;
|
|
37
|
-
getTextColor(bgColor: any): "#
|
|
37
|
+
getTextColor(bgColor: any): "#000000" | "#ffffff" | "#ffffff;";
|
|
38
38
|
openWhatsapp(phone: string): void;
|
|
39
39
|
viewStore(storeId: string): void;
|
|
40
40
|
getTime(storeHours: any, type: string): any;
|
|
@@ -18,7 +18,7 @@ export declare class StorePageComponent extends BaseSection {
|
|
|
18
18
|
storeData: any;
|
|
19
19
|
loading: boolean;
|
|
20
20
|
getStoreDetails(storeId: string): void;
|
|
21
|
-
getTextColor(bgColor: any): "#
|
|
21
|
+
getTextColor(bgColor: any): "#000000" | "#ffffff" | "#ffffff;";
|
|
22
22
|
getTime(storeHours: any): string | undefined;
|
|
23
23
|
removeUnderScore(text: string): string;
|
|
24
24
|
openWhatsapp(phone: string): void;
|
|
@@ -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" | "99px" | "7px";
|
|
35
35
|
setBorder(): string;
|
|
36
36
|
setColor(): any;
|
|
37
37
|
setBackground(): any;
|
|
@@ -27,7 +27,7 @@ export declare class BannerGridSectionComponent extends BaseSection implements O
|
|
|
27
27
|
get spacingLayout(): SpacingModel;
|
|
28
28
|
get alignmentLayout(): import("simpo-component-library").ALIGN | undefined;
|
|
29
29
|
get fitLayout(): import("simpo-component-library").FIT | undefined;
|
|
30
|
-
getTextColor(bgColor: string): "#
|
|
30
|
+
getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
|
|
31
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<BannerGridSectionComponent, never>;
|
|
32
32
|
static ɵcmp: i0.ɵɵComponentDeclaration<BannerGridSectionComponent, "simpo-banner-grid-section", 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; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
33
33
|
}
|
|
@@ -29,7 +29,7 @@ export declare class ContactUsComponent extends BaseSection implements OnInit {
|
|
|
29
29
|
canShowContactField(field: any): any;
|
|
30
30
|
shouldShowDropdown(field: any): boolean;
|
|
31
31
|
getCardStyle(): {};
|
|
32
|
-
getTextColor(bgColor: string): "#
|
|
32
|
+
getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
|
|
33
33
|
getAlignment(): "justify-content-start" | "justify-content-center" | "justify-content-end";
|
|
34
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContactUsComponent, never>;
|
|
35
35
|
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>;
|
|
@@ -107,7 +107,7 @@ export declare class HeaderSectionComponent implements OnInit, AfterViewInit, On
|
|
|
107
107
|
get userGender(): import("../../ecommerce/styles/user.modal").GENDER | null;
|
|
108
108
|
get getNavbarButton(): any[];
|
|
109
109
|
isScrolled: boolean;
|
|
110
|
-
setColor(): "#
|
|
110
|
+
setColor(): "#000000" | "#ffffff";
|
|
111
111
|
showList: boolean;
|
|
112
112
|
dropdownLeft: number;
|
|
113
113
|
dropdownTop: number;
|
|
@@ -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): "#000000" | "#ffffff";
|
|
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
|
}
|
|
@@ -18,12 +18,12 @@ 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
|
getButtonId(): string;
|
|
24
24
|
editSection(): void;
|
|
25
25
|
redirectTo(data: any): void;
|
|
26
|
-
getClass(): "col-
|
|
26
|
+
getClass(): "col-4" | "col-12" | "col-6" | "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>;
|
|
@@ -53,6 +53,9 @@ export declare class EventsService implements OnInit {
|
|
|
53
53
|
emitCountDownDate: EventEmitter<any>;
|
|
54
54
|
showDummyCartItems: EventEmitter<boolean>;
|
|
55
55
|
menuList: EventEmitter<unknown>;
|
|
56
|
+
openButtonEditor: EventEmitter<unknown>;
|
|
57
|
+
openImageEditor: EventEmitter<unknown>;
|
|
58
|
+
openTextEditor: EventEmitter<unknown>;
|
|
56
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
|
|
57
60
|
static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
|
|
58
61
|
}
|
package/package.json
CHANGED
|
Binary file
|