simpo-component-library 1.4.68 → 1.4.69
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/address/address.component.mjs +10 -6
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +10 -9
- package/esm2022/lib/ecommerce/styles/cart.modal.mjs +2 -1
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +1 -4
- package/esm2022/lib/services/events.service.mjs +13 -5
- package/fesm2022/simpo-component-library.mjs +427 -416
- package/fesm2022/simpo-component-library.mjs.map +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/ecommerce/sections/address/address.component.d.ts +3 -2
- package/lib/ecommerce/sections/cart/cart.component.d.ts +2 -2
- package/lib/ecommerce/styles/cart.modal.d.ts +1 -0
- package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
- package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
- package/lib/services/events.service.d.ts +7 -4
- package/package.json +1 -1
- package/simpo-component-library-1.4.69.tgz +0 -0
|
@@ -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
|
}
|
|
@@ -15,7 +15,7 @@ export declare class ButtonDirectiveDirective implements OnChanges {
|
|
|
15
15
|
applyButtonStyleChanges(): void;
|
|
16
16
|
applyButtonType(style: ButtonStyleModel, color: string): void;
|
|
17
17
|
applyButtonShape(style: ButtonStyleModel): void;
|
|
18
|
-
getTextColor(bgColor: string): "#
|
|
18
|
+
getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
|
|
19
19
|
buttonStyleSubscription?: Subscription;
|
|
20
20
|
buttonStyleChangeCheck(): void;
|
|
21
21
|
changeButtonStyle(id: any, style: ButtonStyleModel, bgColor: string): 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
|
}
|
|
@@ -12,6 +12,7 @@ export declare class AddressComponent implements OnInit, OnChanges {
|
|
|
12
12
|
private readonly storageService;
|
|
13
13
|
responseData: any;
|
|
14
14
|
data: any;
|
|
15
|
+
selectedAddress: any;
|
|
15
16
|
constructor(ngZone: NgZone, restService: RestService, matDialog: MatDialog, router: Router, storageService: StorageServiceService);
|
|
16
17
|
addressList: any[];
|
|
17
18
|
address: any;
|
|
@@ -23,7 +24,6 @@ export declare class AddressComponent implements OnInit, OnChanges {
|
|
|
23
24
|
markerPosition: google.maps.LatLngLiteral;
|
|
24
25
|
markerOptions: google.maps.MarkerOptions;
|
|
25
26
|
private geocoder;
|
|
26
|
-
selectedAddressIdx: number;
|
|
27
27
|
addessType: {
|
|
28
28
|
key: string;
|
|
29
29
|
status: boolean;
|
|
@@ -40,6 +40,7 @@ export declare class AddressComponent implements OnInit, OnChanges {
|
|
|
40
40
|
onLocationSelected(location: any): void;
|
|
41
41
|
onAutocompleteSelected(result: any): void;
|
|
42
42
|
updateAddress(): void;
|
|
43
|
+
selectAddress(idx: number): void;
|
|
43
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<AddressComponent, never>;
|
|
44
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "
|
|
45
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AddressComponent, "simpo-address", never, { "responseData": { "alias": "responseData"; "required": false; }; "data": { "alias": "data"; "required": false; }; "selectedAddress": { "alias": "selectedAddress"; "required": false; }; "isCart": { "alias": "isCart"; "required": false; }; }, {}, never, never, true, never>;
|
|
45
46
|
}
|
|
@@ -22,7 +22,7 @@ export declare class CartComponent extends BaseSection {
|
|
|
22
22
|
edit?: boolean;
|
|
23
23
|
delete?: boolean;
|
|
24
24
|
isLoading: boolean;
|
|
25
|
-
|
|
25
|
+
selectedAddress: any;
|
|
26
26
|
styles?: CartSectionStylesModel;
|
|
27
27
|
currentTab: 'BAG' | 'ADDRESS' | 'PAYMENT';
|
|
28
28
|
constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, cookieService: CookieService);
|
|
@@ -38,7 +38,7 @@ export declare class CartComponent extends BaseSection {
|
|
|
38
38
|
addToCart(item: any, type: 'ADD' | 'SUBSTRACT'): void;
|
|
39
39
|
proceedToPayment(): void;
|
|
40
40
|
isItemLoading(itemId: string): boolean;
|
|
41
|
-
get getAddressList():
|
|
41
|
+
get getAddressList(): import("../../styles/user.modal").AddressDetails[];
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<CartComponent, never>;
|
|
43
43
|
static ɵcmp: i0.ɵɵComponentDeclaration<CartComponent, "simpo-cart", 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; }; }, {}, never, never, true, never>;
|
|
44
44
|
}
|
|
@@ -23,8 +23,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
|
|
|
23
23
|
get stylesLayout(): LayOutModel;
|
|
24
24
|
get getBlurValue(): OverlayValue | undefined;
|
|
25
25
|
get getBackgroundColor(): BackgroundModel;
|
|
26
|
-
get getBackgroundOpacity(): "0" | "0.
|
|
27
|
-
opacityValue(value: OverlayValue): "0" | "0.
|
|
26
|
+
get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "0";
|
|
27
|
+
opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "0";
|
|
28
28
|
editSection(): void;
|
|
29
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<BannerCarouselComponent, never>;
|
|
30
30
|
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; }; }, {}, never, never, true, never>;
|
|
@@ -15,7 +15,7 @@ export declare class PricingSectionComponent extends BaseSection {
|
|
|
15
15
|
style?: PricingSectionStylesModel;
|
|
16
16
|
constructor(_eventService: EventsService);
|
|
17
17
|
ngOnInit(): void;
|
|
18
|
-
getTextColor(): "#
|
|
18
|
+
getTextColor(): "#000000" | "#ffffff";
|
|
19
19
|
get headingSpace(): SPACING;
|
|
20
20
|
editSection(): void;
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { StorageServiceService } from './storage.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class EventsService {
|
|
4
|
-
|
|
4
|
+
export declare class EventsService implements OnInit {
|
|
5
|
+
private readonly storageService;
|
|
6
|
+
constructor(storageService: StorageServiceService);
|
|
7
|
+
ngOnInit(): void;
|
|
5
8
|
editSection: EventEmitter<unknown>;
|
|
6
9
|
duplicate: EventEmitter<unknown>;
|
|
7
10
|
delete: EventEmitter<unknown>;
|
|
@@ -40,7 +43,7 @@ export declare class EventsService {
|
|
|
40
43
|
environmentType: EventEmitter<string>;
|
|
41
44
|
showLoadingScreen: EventEmitter<boolean>;
|
|
42
45
|
cashFreeEvent: EventEmitter<unknown>;
|
|
43
|
-
|
|
46
|
+
paymentStatusEvent: EventEmitter<boolean>;
|
|
44
47
|
static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
|
|
45
48
|
static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
|
|
46
49
|
}
|
package/package.json
CHANGED
|
Binary file
|