simpo-component-library 3.6.895 → 3.6.896
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/README.md +24 -24
- package/esm2022/lib/components/delete-hover-element/delete-hover-element.component.mjs +3 -3
- package/esm2022/lib/components/document/document.component.mjs +3 -3
- package/esm2022/lib/components/image-loading/image-loading.component.mjs +3 -3
- package/esm2022/lib/components/payment-details/payment-details.component.mjs +3 -3
- package/esm2022/lib/constants/business.constant.mjs +1 -1
- package/esm2022/lib/directive/alignment.directive.mjs +1 -1
- package/esm2022/lib/directive/blur-content.directive.mjs +1 -1
- package/esm2022/lib/directive/borderlessImage.directive.mjs +1 -1
- package/esm2022/lib/directive/color.directive.mjs +1 -1
- package/esm2022/lib/directive/column-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/container-alignment.directive.mjs +1 -1
- package/esm2022/lib/directive/container-fir.directive.mjs +1 -1
- package/esm2022/lib/directive/content-title-spacing.directive.mjs +1 -1
- package/esm2022/lib/directive/contenteditable.directive.mjs +1 -1
- package/esm2022/lib/directive/corner-directive.mjs +1 -1
- package/esm2022/lib/directive/height.directive.mjs +1 -1
- package/esm2022/lib/directive/hover-animation.directive.mjs +1 -1
- package/esm2022/lib/directive/hoverborder.directive.mjs +1 -1
- package/esm2022/lib/directive/icon-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/image-container.directive.mjs +1 -1
- package/esm2022/lib/directive/letters-only.directive.mjs +1 -1
- package/esm2022/lib/directive/numbers-only.directive.mjs +1 -1
- package/esm2022/lib/directive/position-layout-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/set-dynamic-background.directive.mjs +1 -1
- package/esm2022/lib/directive/spacing-horizontal.directive.mjs +1 -1
- package/esm2022/lib/directive/spacing.directive.mjs +1 -1
- package/esm2022/lib/directive/sticky-directive.mjs +129 -52
- package/esm2022/lib/directive/text-background-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/text-size.directive.mjs +1 -1
- package/esm2022/lib/directive/translate-onhover.directive.mjs +1 -1
- package/esm2022/lib/directive/wrap-containers.directive.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/address/address.component.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/checkout/checkout.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/customer-review/customer-review.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/customer-review/customer-review.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/enrollment-form/enrollment-form.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/enrollment-form/enrollment-form.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/item-varient/item-varient.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/new-collection/new-collection.component.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/new-collection/new-collection.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/passbook-transactions/passbook-transactions.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/product-list/product-list.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/returns-calculator/returns-calculator.component.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/returns-calculator/returns-calculator.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/scheme-details/scheme-details.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/scheme-selection/scheme-selection.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/schemes/schemes.component.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/store-list/store-list.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/store-list/store-list.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/store-page/store-page.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/store-page/store-page.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.model.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/BaseCollection.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/Collection.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/PincodeLocation.model.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/PincodeLocationInter.model.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/cart.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/category.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/order.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/review.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/user.modal.mjs +1 -1
- package/esm2022/lib/elements/address-list/address-list.component.mjs +3 -3
- package/esm2022/lib/elements/button/button.component.mjs +3 -3
- package/esm2022/lib/elements/button/button.model.mjs +1 -1
- package/esm2022/lib/elements/card-skeleton-loader/card-skeleton-loader.component.mjs +3 -3
- package/esm2022/lib/elements/heading-element/heading-element.component.mjs +3 -3
- package/esm2022/lib/elements/index.mjs +1 -1
- package/esm2022/lib/elements/list-home-appointment/list-home-appointment.component.mjs +3 -3
- package/esm2022/lib/elements/media-selector/media-selector.component.mjs +1 -1
- package/esm2022/lib/elements/portfolio/portfolio.component.mjs +3 -3
- package/esm2022/lib/elements/property/property.component.mjs +3 -3
- package/esm2022/lib/elements/svg-divider/svg-divider.component.mjs +3 -3
- package/esm2022/lib/elements/text/text.component.mjs +3 -3
- package/esm2022/lib/elements/text-editor/text-editor.component.mjs +3 -3
- package/esm2022/lib/pipes/amount.pipe.mjs +1 -1
- package/esm2022/lib/sections/add-new-section/add-new-section.component.mjs +3 -3
- package/esm2022/lib/sections/appointment-form/appointment-booking/appointment-booking/appointment-booking.component.mjs +3 -3
- package/esm2022/lib/sections/appointment-form/appointment-form.model.mjs +1 -1
- package/esm2022/lib/sections/banner-carousel/banner-carousel.model.mjs +1 -1
- package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +1 -1
- package/esm2022/lib/sections/blog-list/blog-list.model.mjs +1 -1
- package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +1 -1
- package/esm2022/lib/sections/choose-us-section/choose-us-section.model.mjs +1 -1
- package/esm2022/lib/sections/countdown-banner/countdown-banner.component.mjs +22 -11
- package/esm2022/lib/sections/faq-section/faq-section.modal.mjs +1 -1
- package/esm2022/lib/sections/features-section/features-section.model.mjs +1 -1
- package/esm2022/lib/sections/header-section/header-section.component.mjs +88 -40
- package/esm2022/lib/sections/header-section/header-section.model.mjs +1 -1
- package/esm2022/lib/sections/header-text/header-text.model.mjs +1 -1
- package/esm2022/lib/sections/image-carousel-section/image-carousel.model.mjs +1 -1
- package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +1 -1
- package/esm2022/lib/sections/image-section/image-section.component.mjs +1 -1
- package/esm2022/lib/sections/image-section/image-section.model.mjs +1 -1
- package/esm2022/lib/sections/location-section/location-section.component.mjs +1 -1
- package/esm2022/lib/sections/location-section/location-section.modal.mjs +1 -1
- package/esm2022/lib/sections/logo-showcase/logo-showcase.modal.mjs +1 -1
- package/esm2022/lib/sections/moving-text/moving-text.component.mjs +3 -3
- package/esm2022/lib/sections/moving-text/moving-text.modal.mjs +1 -1
- package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +40 -20
- package/esm2022/lib/sections/navbar-section/navbar-section.model.mjs +1 -1
- package/esm2022/lib/sections/new-services/new-services.component.mjs +1 -1
- package/esm2022/lib/sections/new-services/new-services.model.mjs +1 -1
- package/esm2022/lib/sections/new-testimonials/new-testimonials.model.mjs +1 -1
- package/esm2022/lib/sections/news-letter-component/news-letter-component.component.mjs +1 -1
- package/esm2022/lib/sections/news-letter-component/news-letter.modal.mjs +1 -1
- package/esm2022/lib/sections/pricing-section/pricing-section.modal.mjs +1 -1
- package/esm2022/lib/sections/process-modern/process-modern.component.mjs +1 -1
- package/esm2022/lib/sections/process-modern/process-modern.model.mjs +1 -1
- package/esm2022/lib/sections/process-section/process-section.modal.mjs +1 -1
- package/esm2022/lib/sections/property-component/property-component.component.mjs +3 -3
- package/esm2022/lib/sections/property-component/property-component.modal.mjs +1 -1
- package/esm2022/lib/sections/property-list/property-list.component.mjs +3 -3
- package/esm2022/lib/sections/property-list/property-list.modal.mjs +1 -1
- package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.component.mjs +1 -1
- package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.model.mjs +1 -1
- package/esm2022/lib/sections/registration-form/registration-form.component.mjs +3 -3
- package/esm2022/lib/sections/registration-form/registrationForm.model.mjs +1 -1
- package/esm2022/lib/sections/scheme-detail/scheme-detail.component.mjs +1 -1
- package/esm2022/lib/sections/scheme-detail/scheme-detail.modal.mjs +1 -1
- package/esm2022/lib/sections/skeleton-loader-section/skeleton-loader-section.component.mjs +3 -3
- package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +1 -1
- package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.model.mjs +1 -1
- package/esm2022/lib/sections/testimonial-section/testimonial-section.model.mjs +1 -1
- package/esm2022/lib/sections/testimonial-video/testimonial-video.component.mjs +1 -1
- package/esm2022/lib/sections/testimonial-video/testimonial-video.model.mjs +1 -1
- package/esm2022/lib/sections/text-section/text-section.model.mjs +1 -1
- package/esm2022/lib/sections/usp-video-section/usp-video-section.component.mjs +3 -3
- package/esm2022/lib/sections/usp-video-section/usp-video-section.model.mjs +1 -1
- package/esm2022/lib/sections/video-grid-section/video-grid-section.component.mjs +4 -4
- package/esm2022/lib/sections/video-section/video-section.component.mjs +3 -3
- package/esm2022/lib/sections/video-section/video-section.model.mjs +1 -1
- package/esm2022/lib/sections/video-showcase/video-showcase.component.mjs +3 -3
- package/esm2022/lib/sections/view-blog/view-blog.component.mjs +1 -1
- package/esm2022/lib/services/endUser.service.mjs +1 -1
- package/esm2022/lib/services/image-upload-service.service.mjs +1 -1
- package/esm2022/lib/styles/index.mjs +15 -1
- package/fesm2022/simpo-component-library.mjs +504 -336
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/directive/sticky-directive.d.ts +14 -5
- package/lib/sections/countdown-banner/countdown-banner.component.d.ts +5 -3
- package/lib/sections/header-section/header-section.component.d.ts +16 -7
- package/lib/sections/header-section/header-section.model.d.ts +9 -1
- package/lib/sections/navbar-section/navbar-section.component.d.ts +8 -4
- package/lib/sections/navbar-section/navbar-section.model.d.ts +5 -1
- package/lib/styles/index.d.ts +12 -0
- package/package.json +1 -1
- package/simpo-component-library-3.6.896.tgz +0 -0
- package/simpo-component-library-3.6.895.tgz +0 -0
|
@@ -1,18 +1,27 @@
|
|
|
1
|
-
import { ElementRef, OnChanges } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnChanges, OnDestroy } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
|
+
import { Sticky_Type } from '../styles/index';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class SimpoStickyDirective implements OnChanges {
|
|
5
|
+
export declare class SimpoStickyDirective implements OnChanges, AfterViewInit, OnDestroy {
|
|
5
6
|
private el;
|
|
6
7
|
private router;
|
|
7
8
|
private platformId;
|
|
8
|
-
|
|
9
|
+
stickyType?: Sticky_Type | boolean;
|
|
9
10
|
categoryHeader?: boolean;
|
|
11
|
+
stickyScrolled: EventEmitter<boolean>;
|
|
10
12
|
private isBrowser;
|
|
11
|
-
private
|
|
13
|
+
private scrollListener?;
|
|
14
|
+
private resizeListener?;
|
|
12
15
|
constructor(el: ElementRef, router: Router, platformId: object);
|
|
16
|
+
private get resolvedType();
|
|
17
|
+
private get isMobile();
|
|
13
18
|
ngOnChanges(): void;
|
|
14
19
|
ngAfterViewInit(): void;
|
|
20
|
+
private onScroll;
|
|
21
|
+
private applyType;
|
|
22
|
+
private applyFixed;
|
|
23
|
+
private applyZIndex;
|
|
15
24
|
ngOnDestroy(): void;
|
|
16
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<SimpoStickyDirective, never>;
|
|
17
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<SimpoStickyDirective, "[simpoSticky]", never, { "
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SimpoStickyDirective, "[simpoSticky]", never, { "stickyType": { "alias": "simpoSticky"; "required": false; }; "categoryHeader": { "alias": "categoryHeader"; "required": false; }; }, { "stickyScrolled": "stickyScrolled"; }, never, never, true, never>;
|
|
18
27
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { StylesModel } from '../../styles/style.model';
|
|
3
3
|
import { EventsService } from '../../services/events.service';
|
|
4
4
|
import { BackgroundModel, LayOutModel } from '../../styles/style.model';
|
|
5
5
|
import { CountDownBannerContentModal, CountDownBannerSection } from './countdown-banner.component.model';
|
|
6
6
|
import BaseSection from '../BaseSection';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class CountdownBannerComponent extends BaseSection implements OnInit {
|
|
8
|
+
export declare class CountdownBannerComponent extends BaseSection implements OnInit, OnDestroy {
|
|
9
9
|
private eventService;
|
|
10
|
+
private platformId;
|
|
10
11
|
edit?: boolean;
|
|
11
12
|
data?: CountDownBannerSection | any;
|
|
12
13
|
customClass?: string;
|
|
@@ -23,8 +24,9 @@ export declare class CountdownBannerComponent extends BaseSection implements OnI
|
|
|
23
24
|
bannerText: string;
|
|
24
25
|
targetDate: string;
|
|
25
26
|
currentTime: number;
|
|
26
|
-
constructor(eventService: EventsService);
|
|
27
|
+
constructor(eventService: EventsService, platformId: object);
|
|
27
28
|
ngOnInit(): void;
|
|
29
|
+
ngOnDestroy(): void;
|
|
28
30
|
getDays(dateString: string): number;
|
|
29
31
|
getHours(dateString: string): number;
|
|
30
32
|
getMinutes(dateString: string): number;
|
|
@@ -5,7 +5,7 @@ import { ActionModel, LayOutModel } from '../../styles/style.model';
|
|
|
5
5
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
6
6
|
import { MatDialog } from '@angular/material/dialog';
|
|
7
7
|
import { StorageServiceService } from '../../services/storage.service';
|
|
8
|
-
import { Header_Type, ProductCardTheme } from '../../styles/index';
|
|
8
|
+
import { Header_Type, Mobile_Menu_Type, ProductCardTheme, Sticky_Type } from '../../styles/index';
|
|
9
9
|
import { MovingTextModal } from '../moving-text/moving-text.modal';
|
|
10
10
|
import { RestService } from '../../services/rest.service';
|
|
11
11
|
import { StorageLike } from '../../services/storage-like';
|
|
@@ -30,10 +30,9 @@ export declare class HeaderSectionComponent implements OnInit, AfterViewInit, On
|
|
|
30
30
|
mobileOffcanvas?: ElementRef<HTMLElement>;
|
|
31
31
|
private resizeObserver?;
|
|
32
32
|
private queryParamSubscription?;
|
|
33
|
-
private routerSubscription?;
|
|
34
33
|
private isBrowser;
|
|
35
|
-
scrollValue: number;
|
|
36
34
|
isOffcanvasOpen: boolean;
|
|
35
|
+
isFullScreenMenuOpen: boolean;
|
|
37
36
|
private offcanvasShownHandler?;
|
|
38
37
|
private offcanvasHiddenHandler?;
|
|
39
38
|
content?: HeaderContentModel | any;
|
|
@@ -43,10 +42,13 @@ export declare class HeaderSectionComponent implements OnInit, AfterViewInit, On
|
|
|
43
42
|
searchText: string;
|
|
44
43
|
theme: typeof ProductCardTheme;
|
|
45
44
|
HeaderStyling: typeof Header_Type;
|
|
45
|
+
StickyType: typeof Sticky_Type;
|
|
46
|
+
MobileMenuType: typeof Mobile_Menu_Type;
|
|
46
47
|
parentHeight: number;
|
|
47
48
|
currentPlaceholder: string;
|
|
48
49
|
placeholderIndex: number;
|
|
49
50
|
animatePlaceholder: boolean;
|
|
51
|
+
isScrolled: boolean;
|
|
50
52
|
private _eventSubscriber;
|
|
51
53
|
constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, storageService: StorageServiceService, restService: RestService, eventService: EventsService, storage: StorageLike, platformId: object, document: Document);
|
|
52
54
|
searchChangeTimeout: any;
|
|
@@ -60,7 +62,6 @@ export declare class HeaderSectionComponent implements OnInit, AfterViewInit, On
|
|
|
60
62
|
goToWishlist(): void;
|
|
61
63
|
goToCart(): void;
|
|
62
64
|
applyFilter(value: any, type: string): void;
|
|
63
|
-
onScroll(event: any): void;
|
|
64
65
|
movingText?: MovingTextModal;
|
|
65
66
|
toShowInJewellery: boolean;
|
|
66
67
|
differ: any;
|
|
@@ -76,7 +77,7 @@ export declare class HeaderSectionComponent implements OnInit, AfterViewInit, On
|
|
|
76
77
|
getScreenSize(event?: number): void;
|
|
77
78
|
height: any;
|
|
78
79
|
private scheduleParentHeightCalculation;
|
|
79
|
-
|
|
80
|
+
onStickyScrolled(scrolled: boolean): void;
|
|
80
81
|
getParentHeight(): void;
|
|
81
82
|
get getDropdownLinks(): string[];
|
|
82
83
|
get isEcommerceWebsite(): boolean;
|
|
@@ -84,7 +85,16 @@ export declare class HeaderSectionComponent implements OnInit, AfterViewInit, On
|
|
|
84
85
|
showEditors: boolean;
|
|
85
86
|
showEditTabs(isShow: boolean): void;
|
|
86
87
|
goToHome(): void;
|
|
87
|
-
get
|
|
88
|
+
get resolvedMobileMenuType(): Mobile_Menu_Type;
|
|
89
|
+
get bottomStickyNavItems(): any[];
|
|
90
|
+
isNavItemActive(item: any): boolean;
|
|
91
|
+
get activeBottomNavIndex(): number;
|
|
92
|
+
openFullScreenMenu(): void;
|
|
93
|
+
closeFullScreenMenu(): void;
|
|
94
|
+
/** Full-screen menu item tap: drill into submenu if it has children, else navigate + close. */
|
|
95
|
+
onFullScreenItemClick(item: any): void;
|
|
96
|
+
get resolvedStickyType(): Sticky_Type;
|
|
97
|
+
get isHeaderSticky(): boolean;
|
|
88
98
|
get backgroundInfo(): any;
|
|
89
99
|
get simpoColor(): any;
|
|
90
100
|
get accentColor(): any;
|
|
@@ -106,7 +116,6 @@ export declare class HeaderSectionComponent implements OnInit, AfterViewInit, On
|
|
|
106
116
|
getValues(object: any): unknown[];
|
|
107
117
|
get userGender(): import("../../ecommerce/styles/user.modal").GENDER | null;
|
|
108
118
|
get getNavbarButton(): any[];
|
|
109
|
-
isScrolled: boolean;
|
|
110
119
|
setColor(): "#000000" | "#ffffff";
|
|
111
120
|
showList: boolean;
|
|
112
121
|
dropdownLeft: number;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Header_Type, HeaderButtonStyle, headlineAnimationType, Menu_Type, ProductCardTheme } from "./../../styles/index";
|
|
1
|
+
import { Header_Type, HeaderButtonStyle, headlineAnimationType, Menu_Type, Mobile_Menu_Type, ProductCardTheme, Sticky_Type } 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";
|
|
@@ -21,6 +21,7 @@ export interface HeaderContentModel {
|
|
|
21
21
|
};
|
|
22
22
|
listItem: ListItemModal<HeaderSectionListItemModel>;
|
|
23
23
|
display: Display;
|
|
24
|
+
countdownBanner?: any;
|
|
24
25
|
}
|
|
25
26
|
export interface Display extends DisplaySection {
|
|
26
27
|
}
|
|
@@ -30,12 +31,16 @@ export interface HeaderSectionListItemModel {
|
|
|
30
31
|
export interface HeaderStyleModel {
|
|
31
32
|
layout: FooterLayoutModel;
|
|
32
33
|
background: BackgroundModel;
|
|
34
|
+
/** @deprecated use stickyType */
|
|
33
35
|
sticky?: boolean;
|
|
34
36
|
navigationStyle: HeaderButtonStyle;
|
|
37
|
+
/** @deprecated use stickyType */
|
|
35
38
|
shrinkOnScroll?: boolean;
|
|
39
|
+
stickyType?: Sticky_Type;
|
|
36
40
|
navbarButtonStyle: HeaderButtonStyleModel;
|
|
37
41
|
styling: Header_Type;
|
|
38
42
|
menuType: Menu_Type;
|
|
43
|
+
mobileMenuType?: Mobile_Menu_Type;
|
|
39
44
|
enableHeaderCarousel?: boolean;
|
|
40
45
|
theme: ProductCardTheme;
|
|
41
46
|
showSearchBar: boolean;
|
|
@@ -44,4 +49,7 @@ export interface HeaderStyleModel {
|
|
|
44
49
|
color: string;
|
|
45
50
|
headlineAnimationType: headlineAnimationType;
|
|
46
51
|
};
|
|
52
|
+
countdown?: {
|
|
53
|
+
display: boolean;
|
|
54
|
+
};
|
|
47
55
|
}
|
|
@@ -7,7 +7,7 @@ import { MatDialog } from '@angular/material/dialog';
|
|
|
7
7
|
import { CookieService } from 'ngx-cookie-service';
|
|
8
8
|
import { StorageServiceService } from '../../services/storage.service';
|
|
9
9
|
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
|
10
|
-
import { HEADER_STYLING, ProductCardTheme } from '../../styles/index';
|
|
10
|
+
import { HEADER_STYLING, ProductCardTheme, Sticky_Type } from '../../styles/index';
|
|
11
11
|
import { RestService } from '../../services/rest.service';
|
|
12
12
|
import * as i0 from "@angular/core";
|
|
13
13
|
export declare class NavbarSectionComponent implements OnInit {
|
|
@@ -19,13 +19,14 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
|
19
19
|
private readonly cookieService;
|
|
20
20
|
private readonly storageService;
|
|
21
21
|
private readonly restService;
|
|
22
|
+
private platformId;
|
|
22
23
|
data?: HeaderSectionModel;
|
|
23
24
|
nextComponent: any;
|
|
24
25
|
index?: number;
|
|
25
26
|
customClass?: string;
|
|
26
27
|
edit?: boolean;
|
|
27
28
|
childContainer: any;
|
|
28
|
-
|
|
29
|
+
isScrolled: boolean;
|
|
29
30
|
content?: HeaderContentModel;
|
|
30
31
|
style?: HeaderStyleModel;
|
|
31
32
|
action?: ActionModel;
|
|
@@ -33,7 +34,9 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
|
33
34
|
searchText: string;
|
|
34
35
|
theme: typeof ProductCardTheme;
|
|
35
36
|
HeaderStyling: typeof HEADER_STYLING;
|
|
36
|
-
|
|
37
|
+
StickyType: typeof Sticky_Type;
|
|
38
|
+
private isBrowser;
|
|
39
|
+
constructor(_eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, matDialog: MatDialog, bottomSheet: MatBottomSheet, cookieService: CookieService, storageService: StorageServiceService, restService: RestService, platformId: object);
|
|
37
40
|
searchProducts(): void;
|
|
38
41
|
goToFav(): void;
|
|
39
42
|
get stylesLayout(): LayOutModel;
|
|
@@ -41,7 +44,7 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
|
41
44
|
goToWishlist(): void;
|
|
42
45
|
goToCart(): void;
|
|
43
46
|
applyFilter(value: any, type: string): void;
|
|
44
|
-
|
|
47
|
+
onStickyScrolled(scrolled: boolean): void;
|
|
45
48
|
ngOnInit(): void;
|
|
46
49
|
isNavbarOpen: boolean;
|
|
47
50
|
screenWidth: number;
|
|
@@ -53,6 +56,7 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
|
53
56
|
showEditors: boolean;
|
|
54
57
|
showEditTabs(isShow: boolean): void;
|
|
55
58
|
goToHome(): void;
|
|
59
|
+
get resolvedStickyType(): Sticky_Type;
|
|
56
60
|
get isHeaderSticky(): boolean;
|
|
57
61
|
get backgroundInfo(): any;
|
|
58
62
|
get simpoColor(): any;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HEADER_STYLING, HeaderButtonStyle, ProductCardTheme } from "./../../styles/index";
|
|
1
|
+
import { HEADER_STYLING, HeaderButtonStyle, ProductCardTheme, Sticky_Type } from "./../../styles/index";
|
|
2
2
|
import { BackgroundModel, HeaderButtonStyleModel, InputTextModel, 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";
|
|
@@ -23,7 +23,11 @@ export interface HeaderContentModel {
|
|
|
23
23
|
export interface HeaderStyleModel {
|
|
24
24
|
layout: FooterLayoutModel;
|
|
25
25
|
background: BackgroundModel;
|
|
26
|
+
/** @deprecated use stickyType */
|
|
26
27
|
sticky?: boolean;
|
|
28
|
+
/** @deprecated use stickyType */
|
|
29
|
+
shrinkOnScroll?: boolean;
|
|
30
|
+
stickyType?: Sticky_Type;
|
|
27
31
|
navigationStyle: HeaderButtonStyle;
|
|
28
32
|
navbarButtonStyle: HeaderButtonStyleModel;
|
|
29
33
|
styling: HEADER_STYLING;
|
package/lib/styles/index.d.ts
CHANGED
|
@@ -82,10 +82,22 @@ export declare enum Header_Type {
|
|
|
82
82
|
HEADER3 = "Header3",
|
|
83
83
|
HEADER4 = "Header4"
|
|
84
84
|
}
|
|
85
|
+
export declare enum Sticky_Type {
|
|
86
|
+
NONE = "None",
|
|
87
|
+
STICKY = "Sticky",
|
|
88
|
+
SHRINK_ON_SCROLL = "ShrinkOnScroll",
|
|
89
|
+
TRANSPARENT_ON_SCROLL = "TransparentOnScroll",
|
|
90
|
+
STICKY_AFTER_SCROLL = "StickyAfterScroll"
|
|
91
|
+
}
|
|
85
92
|
export declare enum Menu_Type {
|
|
86
93
|
MEGA_MENU = "MEGA_MENU",
|
|
87
94
|
DROP_DOWN = "DROPDOWN_MENU"
|
|
88
95
|
}
|
|
96
|
+
export declare enum Mobile_Menu_Type {
|
|
97
|
+
HAMBURGER = "HAMBURGER",
|
|
98
|
+
FULL_SCREEN = "FULL_SCREEN",
|
|
99
|
+
BOTTOM_STICKY = "BOTTOM_STICKY"
|
|
100
|
+
}
|
|
89
101
|
export declare enum TEXT_SIZE {
|
|
90
102
|
Small = "Small",
|
|
91
103
|
Medium = "Medium",
|
package/package.json
CHANGED
|
Binary file
|
|
Binary file
|