simpo-component-library 3.6.814 → 3.6.816
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/merge-header.directive.mjs +21 -7
- package/esm2022/lib/directive/sticky-directive.mjs +19 -8
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +9 -8
- package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +3 -3
- package/esm2022/lib/sections/banner-section/banner-section.component.mjs +3 -3
- package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +3 -3
- package/esm2022/lib/sections/feature-experience-section/feature-experience-section.component.mjs +3 -3
- package/esm2022/lib/sections/features-section/features-section.component.mjs +3 -3
- package/esm2022/lib/sections/header-section/header-section.component.mjs +80 -58
- package/esm2022/lib/sections/header-section/header-section.model.mjs +1 -1
- package/esm2022/lib/sections/testimonial-slider/testimonial-slider.component.mjs +3 -3
- package/esm2022/lib/sections/video-grid-section/video-grid-section.component.mjs +3 -3
- package/esm2022/lib/services/events.service.mjs +1 -2
- package/esm2022/lib/services/rest.service.mjs +1 -4
- package/esm2022/lib/styles/index.mjs +1 -6
- package/fesm2022/simpo-component-library.mjs +133 -98
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/directive/merge-header.directive.d.ts +7 -3
- package/lib/directive/sticky-directive.d.ts +4 -2
- package/lib/sections/header-section/header-section.component.d.ts +14 -10
- package/lib/sections/header-section/header-section.model.d.ts +1 -2
- package/lib/services/events.service.d.ts +0 -1
- package/lib/services/rest.service.d.ts +0 -1
- package/lib/styles/index.d.ts +0 -4
- package/package.json +1 -1
- package/simpo-component-library-3.6.816.tgz +0 -0
- package/simpo-component-library-3.6.814.tgz +0 -0
|
@@ -1,15 +1,19 @@
|
|
|
1
|
-
import { ElementRef,
|
|
1
|
+
import { ElementRef, OnChanges, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { EventsService } from '../services/events.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class MergeHeaderDirective implements OnInit, OnChanges {
|
|
4
|
+
export declare class MergeHeaderDirective implements OnInit, OnChanges, OnDestroy {
|
|
5
5
|
private eventsService;
|
|
6
6
|
private el;
|
|
7
|
+
private platformId;
|
|
7
8
|
merge?: boolean;
|
|
8
9
|
backgroundInfo: any;
|
|
9
10
|
private top;
|
|
10
|
-
|
|
11
|
+
private isBrowser;
|
|
12
|
+
private elementHeightSubscription?;
|
|
13
|
+
constructor(eventsService: EventsService, el: ElementRef, platformId: object);
|
|
11
14
|
ngOnInit(): void;
|
|
12
15
|
ngOnChanges(): void;
|
|
16
|
+
ngOnDestroy(): void;
|
|
13
17
|
private applyBackgroundPosition;
|
|
14
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<MergeHeaderDirective, never>;
|
|
15
19
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MergeHeaderDirective, "[simpoMergeHeader]", never, { "merge": { "alias": "simpoMergeHeader"; "required": false; }; "backgroundInfo": { "alias": "backgroundInfo"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -4,11 +4,13 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
export declare class SimpoStickyDirective {
|
|
5
5
|
private el;
|
|
6
6
|
private router;
|
|
7
|
+
private platformId;
|
|
7
8
|
simpoSticky?: boolean;
|
|
8
9
|
categoryHeader?: boolean;
|
|
9
|
-
|
|
10
|
+
private isBrowser;
|
|
11
|
+
private resizeObserver?;
|
|
12
|
+
constructor(el: ElementRef, router: Router, platformId: object);
|
|
10
13
|
ngOnChanges(): void;
|
|
11
|
-
private resizeObserver;
|
|
12
14
|
ngAfterViewInit(): void;
|
|
13
15
|
private addParentMargin;
|
|
14
16
|
private removeParentMargin;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { HeaderContentModel, HeaderSectionModel, HeaderStyleModel } from './header-section.model';
|
|
3
3
|
import { EventsService } from './../../services/events.service';
|
|
4
4
|
import { ActionModel, LayOutModel } from '../../styles/style.model';
|
|
@@ -10,7 +10,7 @@ import { MovingTextModal } from '../moving-text/moving-text.modal';
|
|
|
10
10
|
import { RestService } from '../../services/rest.service';
|
|
11
11
|
import { StorageLike } from '../../services/storage-like';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
|
-
export declare class HeaderSectionComponent implements OnInit {
|
|
13
|
+
export declare class HeaderSectionComponent implements OnInit, AfterViewInit, OnDestroy {
|
|
14
14
|
private readonly _eventService;
|
|
15
15
|
private readonly router;
|
|
16
16
|
private readonly activatedRoute;
|
|
@@ -19,13 +19,18 @@ export declare class HeaderSectionComponent implements OnInit {
|
|
|
19
19
|
private restService;
|
|
20
20
|
private eventService;
|
|
21
21
|
private storage;
|
|
22
|
+
private platformId;
|
|
23
|
+
private document;
|
|
22
24
|
data?: HeaderSectionModel;
|
|
23
25
|
nextComponent: any;
|
|
24
26
|
index?: number;
|
|
25
27
|
customClass?: string;
|
|
26
28
|
edit?: boolean;
|
|
27
29
|
childContainer: any;
|
|
28
|
-
private resizeObserver
|
|
30
|
+
private resizeObserver?;
|
|
31
|
+
private queryParamSubscription?;
|
|
32
|
+
private routerSubscription?;
|
|
33
|
+
private isBrowser;
|
|
29
34
|
scrollValue: number;
|
|
30
35
|
content?: HeaderContentModel | any;
|
|
31
36
|
style?: HeaderStyleModel;
|
|
@@ -38,8 +43,7 @@ export declare class HeaderSectionComponent implements OnInit {
|
|
|
38
43
|
currentPlaceholder: string;
|
|
39
44
|
placeholderIndex: number;
|
|
40
45
|
animatePlaceholder: boolean;
|
|
41
|
-
|
|
42
|
-
constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, storageService: StorageServiceService, restService: RestService, eventService: EventsService, storage: StorageLike);
|
|
46
|
+
constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, storageService: StorageServiceService, restService: RestService, eventService: EventsService, storage: StorageLike, platformId: object, document: Document);
|
|
43
47
|
searchChangeTimeout: any;
|
|
44
48
|
waitBeforeSearch(): void;
|
|
45
49
|
searchProducts(): void;
|
|
@@ -57,14 +61,16 @@ export declare class HeaderSectionComponent implements OnInit {
|
|
|
57
61
|
differ: any;
|
|
58
62
|
ngOnInit(): void;
|
|
59
63
|
ngAfterViewInit(): void;
|
|
64
|
+
ngOnDestroy(): void;
|
|
60
65
|
passbookAppStatus: boolean;
|
|
61
66
|
checkPassbookApp(): void;
|
|
62
67
|
showSearchBarMobile: boolean;
|
|
63
|
-
showDropdownDesktopSearch: boolean;
|
|
64
68
|
isNavbarOpen: boolean;
|
|
65
69
|
screenWidth: number;
|
|
66
70
|
getScreenSize(event?: number): void;
|
|
67
71
|
height: any;
|
|
72
|
+
private scheduleParentHeightCalculation;
|
|
73
|
+
private syncScrollState;
|
|
68
74
|
getParentHeight(): void;
|
|
69
75
|
get getDropdownLinks(): string[];
|
|
70
76
|
get isEcommerceWebsite(): boolean;
|
|
@@ -82,6 +88,8 @@ export declare class HeaderSectionComponent implements OnInit {
|
|
|
82
88
|
get isComponentMerged(): any;
|
|
83
89
|
editSection(): void;
|
|
84
90
|
get canShowMobileFooter(): boolean;
|
|
91
|
+
get shouldReserveMobileHeaderSpace(): boolean | undefined;
|
|
92
|
+
get shouldShowMobileCategoryHeader(): boolean;
|
|
85
93
|
get showMobileHomeIcon(): boolean;
|
|
86
94
|
get getCartItemsCount(): number;
|
|
87
95
|
get getCartTotalAmount(): number;
|
|
@@ -118,10 +126,6 @@ export declare class HeaderSectionComponent implements OnInit {
|
|
|
118
126
|
showCategoryMobileHeader(): boolean;
|
|
119
127
|
byMetalAndStone: any;
|
|
120
128
|
navigateLogin(): void;
|
|
121
|
-
megaMenu: any;
|
|
122
|
-
getMenuItems(): void;
|
|
123
|
-
redirectionsOfMenu(ele: any): void;
|
|
124
|
-
setChildMenu(ele: any): void;
|
|
125
129
|
static ɵfac: i0.ɵɵFactoryDeclaration<HeaderSectionComponent, never>;
|
|
126
130
|
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>;
|
|
127
131
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Header_Type, HeaderButtonStyle, headlineAnimationType,
|
|
1
|
+
import { Header_Type, HeaderButtonStyle, headlineAnimationType, ProductCardTheme } from "./../../styles/index";
|
|
2
2
|
import { BackgroundModel, DisplaySection, HeaderButtonStyleModel, InputTextModel, ListItemModal, NavbarButton } from "../../styles/style.model";
|
|
3
3
|
import { FooterLayoutModel, FooterLogoModel, FooterSocialLinkModel } from "../footer-section/footer-section.modal";
|
|
4
4
|
import { ActionModel } from "../../styles/style.model";
|
|
@@ -35,7 +35,6 @@ export interface HeaderStyleModel {
|
|
|
35
35
|
shrinkOnScroll?: boolean;
|
|
36
36
|
navbarButtonStyle: HeaderButtonStyleModel;
|
|
37
37
|
styling: Header_Type;
|
|
38
|
-
menuType: Menu_Type;
|
|
39
38
|
theme: ProductCardTheme;
|
|
40
39
|
showSearchBar: boolean;
|
|
41
40
|
headline: {
|
|
@@ -52,7 +52,6 @@ export declare class EventsService implements OnInit {
|
|
|
52
52
|
iconChanged: EventEmitter<unknown>;
|
|
53
53
|
emitCountDownDate: EventEmitter<any>;
|
|
54
54
|
showDummyCartItems: EventEmitter<boolean>;
|
|
55
|
-
menuList: EventEmitter<unknown>;
|
|
56
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
|
|
57
56
|
static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
|
|
58
57
|
}
|
|
@@ -151,7 +151,6 @@ export declare class RestService implements OnDestroy {
|
|
|
151
151
|
loginWithPasswordNew(payload: any): Observable<Object>;
|
|
152
152
|
flush(eventsToSend: any): void;
|
|
153
153
|
getPopularSearches(): Observable<Object>;
|
|
154
|
-
getMenuItems(menuId: any): Observable<Object>;
|
|
155
154
|
static ɵfac: i0.ɵɵFactoryDeclaration<RestService, never>;
|
|
156
155
|
static ɵprov: i0.ɵɵInjectableDeclaration<RestService>;
|
|
157
156
|
}
|
package/lib/styles/index.d.ts
CHANGED
|
@@ -82,10 +82,6 @@ export declare enum Header_Type {
|
|
|
82
82
|
HEADER3 = "Header3",
|
|
83
83
|
HEADER4 = "Header4"
|
|
84
84
|
}
|
|
85
|
-
export declare enum Menu_Type {
|
|
86
|
-
MEGA_MENU = "MEGA_MENU",
|
|
87
|
-
DROP_DOWN = "DROPDOWN_MENU"
|
|
88
|
-
}
|
|
89
85
|
export declare enum TEXT_SIZE {
|
|
90
86
|
Small = "Small",
|
|
91
87
|
Medium = "Medium",
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|