simpo-component-library 1.4.81 → 1.4.90

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.
Files changed (85) hide show
  1. package/esm2022/lib/directive/background-directive.mjs +1 -1
  2. package/esm2022/lib/directive/border-directive.mjs +11 -23
  3. package/esm2022/lib/directive/removeCarousel-directive.mjs +73 -0
  4. package/esm2022/lib/ecommerce/json/user-cart.json +40 -0
  5. package/esm2022/lib/ecommerce/json/user-details.json +15 -0
  6. package/esm2022/lib/ecommerce/json/user-favourite.json +32 -0
  7. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +17 -34
  8. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +10 -4
  9. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +49 -158
  10. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +29 -47
  11. package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +4 -34
  12. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +24 -43
  13. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +18 -69
  14. package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +15 -18
  15. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +21 -105
  16. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.modal.mjs +1 -1
  17. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +11 -49
  18. package/esm2022/lib/ecommerce/styles/OrderedItems.modal.mjs +2 -2
  19. package/esm2022/lib/ecommerce/styles/cart.modal.mjs +1 -2
  20. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +3 -3
  21. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +4 -3
  22. package/esm2022/lib/sections/carousel-banner/carousel-banner.component.mjs +166 -0
  23. package/esm2022/lib/sections/carousel-banner/carousel-banner.model.mjs +2 -0
  24. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +7 -3
  25. package/esm2022/lib/sections/navbar-section/navbar-section.component.mjs +4 -4
  26. package/esm2022/lib/sections/qrcode1/qrcode1.component.mjs +96 -0
  27. package/esm2022/lib/sections/qrcode1/qrcode1.model.mjs +2 -0
  28. package/esm2022/lib/sections/qrscanner-2/sanjana-testing.component.mjs +96 -0
  29. package/esm2022/lib/sections/qrscanner-2/sanjana-testing.modal.mjs +2 -0
  30. package/esm2022/lib/sections/rajesh-testing/Rajesh-model.mjs +2 -0
  31. package/esm2022/lib/sections/rajesh-testing/rajesh-testing.component.mjs +95 -0
  32. package/esm2022/lib/sections/scanner-section/scanner-section.component.mjs +111 -0
  33. package/esm2022/lib/sections/scanner-section/scanner-section.modal.mjs +2 -0
  34. package/esm2022/lib/sections/service-section/service-section.component.mjs +3 -3
  35. package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +3 -3
  36. package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +3 -3
  37. package/esm2022/lib/services/cart.service.mjs +109 -39
  38. package/esm2022/lib/services/events.service.mjs +2 -8
  39. package/esm2022/lib/services/rest.service.mjs +1 -4
  40. package/esm2022/lib/services/storage.service.mjs +30 -68
  41. package/esm2022/lib/styles/index.mjs +1 -8
  42. package/esm2022/lib/styles/style.model.mjs +1 -1
  43. package/esm2022/lib/styles/types.mjs +1 -1
  44. package/esm2022/public-api.mjs +7 -1
  45. package/fesm2022/simpo-component-library.mjs +1049 -874
  46. package/fesm2022/simpo-component-library.mjs.map +1 -1
  47. package/lib/directive/removeCarousel-directive.d.ts +35 -0
  48. package/lib/ecommerce/sections/address/address.component.d.ts +5 -7
  49. package/lib/ecommerce/sections/authenticate-user/authenticate-user.component.d.ts +3 -14
  50. package/lib/ecommerce/sections/cart/cart.component.d.ts +2 -6
  51. package/lib/ecommerce/sections/featured-products/featured-products.component.d.ts +2 -5
  52. package/lib/ecommerce/sections/order-details/order-details.component.d.ts +1 -8
  53. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +2 -6
  54. package/lib/ecommerce/sections/product-list/product-list.component.d.ts +1 -15
  55. package/lib/ecommerce/sections/user-basic-info/user-basic-info.component.d.ts +1 -5
  56. package/lib/ecommerce/sections/user-profile/user-profile.component.d.ts +8 -26
  57. package/lib/ecommerce/sections/user-profile/user-profile.modal.d.ts +8 -5
  58. package/lib/ecommerce/sections/whislist/whislist.component.d.ts +1 -7
  59. package/lib/ecommerce/styles/OrderedItems.modal.d.ts +1 -1
  60. package/lib/ecommerce/styles/cart.modal.d.ts +0 -1
  61. package/lib/sections/carousel-banner/carousel-banner.component.d.ts +28 -0
  62. package/lib/sections/carousel-banner/carousel-banner.model.d.ts +42 -0
  63. package/lib/sections/choose-us-section/choose-us-section.component.d.ts +1 -0
  64. package/lib/sections/qrcode1/qrcode1.component.d.ts +21 -0
  65. package/lib/sections/qrcode1/qrcode1.model.d.ts +30 -0
  66. package/lib/sections/qrscanner-2/sanjana-testing.component.d.ts +21 -0
  67. package/lib/sections/qrscanner-2/sanjana-testing.modal.d.ts +27 -0
  68. package/lib/sections/rajesh-testing/Rajesh-model.d.ts +30 -0
  69. package/lib/sections/rajesh-testing/rajesh-testing.component.d.ts +21 -0
  70. package/lib/sections/scanner-section/scanner-section.component.d.ts +24 -0
  71. package/lib/sections/scanner-section/scanner-section.modal.d.ts +31 -0
  72. package/lib/services/cart.service.d.ts +5 -8
  73. package/lib/services/events.service.d.ts +3 -4
  74. package/lib/services/rest.service.d.ts +0 -1
  75. package/lib/services/storage.service.d.ts +44 -10
  76. package/lib/styles/index.d.ts +0 -6
  77. package/lib/styles/style.model.d.ts +1 -4
  78. package/lib/styles/types.d.ts +0 -1
  79. package/package.json +1 -1
  80. package/public-api.d.ts +6 -0
  81. package/simpo-component-library-1.4.88.tgz +0 -0
  82. package/simpo-component-library-1.4.90.tgz +0 -0
  83. package/esm2022/lib/directive/spacing-horizontal.directive.mjs +0 -48
  84. package/lib/directive/spacing-horizontal.directive.d.ts +0 -18
  85. package/simpo-component-library-1.4.81.tgz +0 -0
@@ -0,0 +1,27 @@
1
+ import { Image, ImageStyle, InputTextModel, PositionLayoutModal, StylesModel } from '../../styles/style.model';
2
+ import { Corners, AlignContent } from '../../styles/index';
3
+ export interface SanjanaTestingModel {
4
+ id: string;
5
+ sectionType: string;
6
+ sectionName: string;
7
+ content: SanjanaTestingContentModel;
8
+ styles: SanjanaTestingStylesModel;
9
+ }
10
+ export interface ImageModel extends Image {
11
+ showImage: boolean;
12
+ }
13
+ export interface textModel {
14
+ value: string;
15
+ }
16
+ export interface SanjanaTestingContentModel {
17
+ inputText: InputTextModel[];
18
+ image: ImageModel;
19
+ }
20
+ export interface SanjanaTestingStylesModel extends StylesModel {
21
+ corners: Corners;
22
+ image: ImageStyle;
23
+ fullWidth: boolean;
24
+ invertImage: boolean;
25
+ positionLayout: PositionLayoutModal;
26
+ contentAlignment: AlignContent;
27
+ }
@@ -0,0 +1,30 @@
1
+ import { Image, InputTextModel, StylesModel, ImageStyle, PositionLayoutModal } from './../../styles/style.model';
2
+ import { Corners, AlignContent } from '../../styles/index';
3
+ export interface QrCodeModal {
4
+ id: string;
5
+ sectionType: string;
6
+ sectionName: string;
7
+ content: QRContentModel;
8
+ styles: QrCodeStylesModel;
9
+ }
10
+ export interface ImageModel extends Image {
11
+ showImage: boolean;
12
+ }
13
+ export interface QrCodeStylesModel extends StylesModel {
14
+ corners: Corners;
15
+ image: ImageStyle;
16
+ fullWidth: boolean;
17
+ invertImage: boolean;
18
+ positionLayout: PositionLayoutModal;
19
+ contentAlignment: AlignContent;
20
+ }
21
+ export interface textModel {
22
+ value: string;
23
+ }
24
+ export interface QRContentModel {
25
+ inputText: InputTextModel[];
26
+ image: ImageModel;
27
+ }
28
+ export interface QRItem {
29
+ inputText: InputTextModel[];
30
+ }
@@ -0,0 +1,21 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { QRContentModel, QrCodeModal, QrCodeStylesModel } from './Rajesh-model';
3
+ import { LayOutModel } from '../../styles/style.model';
4
+ import { EventsService } from './../../services/events.service';
5
+ import BaseSection from '../BaseSection';
6
+ import * as i0 from "@angular/core";
7
+ export declare class RajeshTestingComponent extends BaseSection implements OnInit {
8
+ private _eventService;
9
+ data?: QrCodeModal;
10
+ edit: boolean;
11
+ content?: QRContentModel;
12
+ styles?: QrCodeStylesModel;
13
+ delete?: boolean;
14
+ index?: number;
15
+ constructor(_eventService: EventsService);
16
+ ngOnInit(): void;
17
+ editSection(): void;
18
+ get stylesLayout(): LayOutModel;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<RajeshTestingComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<RajeshTestingComponent, "simpo-rajesh-testing", 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>;
21
+ }
@@ -0,0 +1,24 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { EventsService } from './../../services/events.service';
3
+ import BaseSection from '../BaseSection';
4
+ import { LayOutModel } from '../../styles/style.model';
5
+ import { ScannerSectionModal, scannerSectionContentModel, scannerSectionStyleModel } from './scanner-section.modal';
6
+ import * as i0 from "@angular/core";
7
+ export declare class ScannerSectionComponent extends BaseSection implements OnInit {
8
+ private _eventService;
9
+ data?: ScannerSectionModal;
10
+ index?: number;
11
+ content?: scannerSectionContentModel;
12
+ edit?: boolean;
13
+ delete?: boolean;
14
+ styles?: scannerSectionStyleModel;
15
+ deviceWidth: number;
16
+ constructor(_eventService: EventsService);
17
+ screenWidth: number;
18
+ getScreenSize(event?: any): void;
19
+ ngOnInit(): void;
20
+ editSection(): void;
21
+ get stylesLayout(): LayOutModel;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScannerSectionComponent, never>;
23
+ static ɵcmp: i0.ɵɵComponentDeclaration<ScannerSectionComponent, "simpo-scanner-section", 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>;
24
+ }
@@ -0,0 +1,31 @@
1
+ import { ActionModel, Image, InputTextModel, StylesModel, ImageStyle, PositionLayoutModal } from './../../styles/style.model';
2
+ import { Corners, AlignContent } from '../../styles/index';
3
+ export interface ScannerSectionModal {
4
+ id: string;
5
+ sectionType: string;
6
+ sectionName: string;
7
+ content: scannerSectionContentModel;
8
+ styles: scannerSectionStyleModel;
9
+ action: ActionModel;
10
+ }
11
+ export interface ImageModel extends Image {
12
+ showImage: boolean;
13
+ }
14
+ export interface textModel {
15
+ value: string;
16
+ }
17
+ export interface scannerSectionContentModel {
18
+ inputText: InputTextModel[];
19
+ image: ImageModel;
20
+ }
21
+ export interface scannerSectionStyleModel extends StylesModel {
22
+ corners: Corners;
23
+ image: ImageStyle;
24
+ fullWidth: boolean;
25
+ invertImage: boolean;
26
+ positionLayout: PositionLayoutModal;
27
+ contentAlignment: AlignContent;
28
+ }
29
+ export interface BannerListItem {
30
+ inputText: InputTextModel[];
31
+ }
@@ -2,25 +2,22 @@ import { OrderedItems } from '../ecommerce/styles/OrderedItems.modal';
2
2
  import { Product } from '../ecommerce/styles/product.modal';
3
3
  import { RestService } from './rest.service';
4
4
  import { StorageServiceService } from './storage.service';
5
- import { Cart } from '../ecommerce/styles/cart.modal';
6
5
  import * as i0 from "@angular/core";
7
6
  export declare class CartService {
8
7
  private readonly storageService;
9
8
  private readonly restService;
10
9
  constructor(storageService: StorageServiceService, restService: RestService);
11
- ngOnInit(): void;
12
- addItemFromCartPage(product: OrderedItems, userCart: any): import("rxjs").Observable<Object>;
13
- addItemToCart(product: Product | OrderedItems): void | IDBRequest<IDBValidKey>;
10
+ addItemFromCartPage(product: OrderedItems): import("rxjs").Observable<Object>;
11
+ addItemToCart(product: Product | OrderedItems, isFromCart?: boolean): void;
14
12
  addItemToFavourite(product: Product): void;
15
13
  removeItemFromFavourite(product: Product): void;
16
14
  removeItemFromCart(product: Product | OrderedItems): void;
17
- getItemIdxJSON(id: string, type: 'FAVOURITE' | 'CART'): Promise<IDBRequest<any>>;
18
15
  storeItemToDB(product: Product, type: 'CART' | 'WISHLIST'): void;
16
+ getItemIdxJSON(itemId: string, type: 'FAVOURITE' | 'CART'): number;
19
17
  getItemByIdx(itemId: string, type: 'FAVOURITE' | 'CART'): OrderedItems | null;
20
18
  private objectMapper;
21
- storeCartDataToServer(cart: Cart): void;
22
- clearCartItems(): void;
23
- storeDataToServer(): void;
19
+ storeDataToServer(): import("rxjs").Observable<[Object, Object]>;
20
+ storeDBToJSON(): void;
24
21
  static ɵfac: i0.ɵɵFactoryDeclaration<CartService, never>;
25
22
  static ɵprov: i0.ɵɵInjectableDeclaration<CartService>;
26
23
  }
@@ -1,8 +1,7 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
1
+ import { EventEmitter } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class EventsService implements OnInit {
3
+ export declare class EventsService {
4
4
  constructor();
5
- ngOnInit(): void;
6
5
  editSection: EventEmitter<unknown>;
7
6
  duplicate: EventEmitter<unknown>;
8
7
  delete: EventEmitter<unknown>;
@@ -34,6 +33,7 @@ export declare class EventsService implements OnInit {
34
33
  openBlogListEvent: EventEmitter<unknown>;
35
34
  toggleEditorEvent: EventEmitter<boolean>;
36
35
  closeEditorEvent: EventEmitter<false>;
36
+ stopCarouselEvent: EventEmitter<any>;
37
37
  redirectToPage: EventEmitter<unknown>;
38
38
  addToCart: EventEmitter<unknown>;
39
39
  placeOrder: EventEmitter<unknown>;
@@ -41,7 +41,6 @@ export declare class EventsService implements OnInit {
41
41
  environmentType: EventEmitter<string>;
42
42
  showLoadingScreen: EventEmitter<boolean>;
43
43
  cashFreeEvent: EventEmitter<unknown>;
44
- paymentStatusEvent: EventEmitter<boolean>;
45
44
  static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
46
45
  static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
47
46
  }
@@ -25,7 +25,6 @@ export declare class RestService implements OnDestroy {
25
25
  getUserInfo(userId: string): Observable<Object>;
26
26
  addUserAddress(user: any): Observable<Object>;
27
27
  updateProfile(payload: any): Observable<Object>;
28
- getUserOrders(payload: any): Observable<Object>;
29
28
  toggleItemCartToFav(): void;
30
29
  createPaymentToken(payload: any): Observable<Object>;
31
30
  refundPayment(orderId: string, payload: any): Observable<Object>;
@@ -9,8 +9,6 @@ export declare class StorageServiceService {
9
9
  private readonly cookieService;
10
10
  private readonly restService;
11
11
  constructor(eventService: EventsService, cookieService: CookieService, restService: RestService);
12
- private totalCartItems;
13
- get getTotalCartItems(): number;
14
12
  databaseName: string;
15
13
  databaseVersion: number;
16
14
  cartCollectionName: string;
@@ -22,21 +20,57 @@ export declare class StorageServiceService {
22
20
  userCollectionRef: IDBObjectStore | null;
23
21
  createDataBase(): Promise<void>;
24
22
  storeDataToJSON(): Promise<void>;
25
- calculateBillingDetails(): void;
23
+ calculateBillingDetails(): {
24
+ orderedItems: never[];
25
+ cartType: string;
26
+ billdetails: {
27
+ totalNetValue: number;
28
+ totalGrossValue: number;
29
+ totalTax: number;
30
+ totalOfferedValue: number;
31
+ deliveryCharges: number;
32
+ couponId: string;
33
+ discountAmount: number;
34
+ afterDiscountAmount: number;
35
+ taxBreakup: {
36
+ cgstValue: number;
37
+ sgstValue: number;
38
+ igstValue: number;
39
+ };
40
+ };
41
+ userDetails: {
42
+ userId: string;
43
+ userName: string;
44
+ mobile: string;
45
+ email: string;
46
+ pinCode: string;
47
+ };
48
+ locationDetails: {
49
+ countryId: string;
50
+ cityId: string;
51
+ stateId: string;
52
+ localityId: string;
53
+ countryName: string;
54
+ cityName: string;
55
+ stateName: string;
56
+ localityName: string;
57
+ pinCode: string;
58
+ };
59
+ platform: string;
60
+ totalAmount: number;
61
+ cartId: string;
62
+ };
26
63
  updateAllData(): void;
27
- getUserCart(): Promise<IDBRequest<OrderedItems[]>>;
64
+ getUserCart(): Promise<IDBRequest<any[]>>;
28
65
  addProductToCart(product: OrderedItems): IDBRequest<IDBValidKey>;
29
- addAllProductsToCart(products: OrderedItems[]): IDBTransaction;
30
66
  removeProductFromCart(productId: string): IDBRequest<undefined>;
31
67
  getProductFromCart(productId: string): Promise<IDBRequest<any>>;
32
- getUserWhishlist(): Promise<IDBRequest<OrderedItems[]>>;
68
+ getUserWhishlist(): Promise<IDBRequest<any[]>>;
33
69
  addProductToWishlist(product: OrderedItems): IDBRequest<IDBValidKey>;
34
70
  removeProductFromWishlist(productId: string): IDBRequest<undefined>;
35
71
  getProductFromWishlist(productId: string): Promise<IDBRequest<any>>;
36
- clearUserCart(): IDBRequest<undefined>;
37
- clearUserWishlist(): IDBRequest<undefined>;
38
- setUser(user: User): User;
39
- getUser(): User | null;
72
+ addUser(user: User): User;
73
+ getUser(): any;
40
74
  storePaymentFor(paymentFor: string): void;
41
75
  static ɵfac: i0.ɵɵFactoryDeclaration<StorageServiceService, never>;
42
76
  static ɵprov: i0.ɵɵInjectableDeclaration<StorageServiceService>;
@@ -27,12 +27,6 @@ export declare enum BANNERALIGNMENT {
27
27
  top = "flex-lg-column",
28
28
  bottom = "flex-lg-column-reverse"
29
29
  }
30
- export declare enum SPACINGALIGN {
31
- large = "8rem",
32
- medium = "6rem",
33
- small = "2rem",
34
- none = "0rem"
35
- }
36
30
  export declare enum BANNERHALIGN {
37
31
  left = "justify-content-start text-start",
38
32
  center = "justify-content-center text-center",
@@ -1,5 +1,5 @@
1
1
  import { AlignContent, Corners, 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 } from './types';
2
+ import { ALIGN, ANIMATION_DIRECTION, ANIMATION_SPEED, BUTTON_SHAPE, BUTTON_TYPE, CARD_SIZE, FIT, LAYOUTPOSITION, LINK_TYPE, SPACING_TYPE, CONTENTPOSITION } from './types';
3
3
  export interface SpacingModel {
4
4
  top: SPACING_TYPE;
5
5
  bottom: SPACING_TYPE;
@@ -13,8 +13,6 @@ export interface BorderModel {
13
13
  color: string;
14
14
  type: string;
15
15
  thickness: string;
16
- direction?: BORDER_DIRECTION[];
17
- radius?: number;
18
16
  }
19
17
  export interface DeviderModel {
20
18
  display: boolean;
@@ -24,7 +22,6 @@ export interface LayOutModel {
24
22
  fit: FIT;
25
23
  headingSpacing?: SPACING;
26
24
  spacing: SpacingModel;
27
- spacingHorizontal?: SPACING_TYPE;
28
25
  }
29
26
  export interface BannerLayOutModel {
30
27
  layoutAlignment: PositionLayoutModal;
@@ -5,7 +5,6 @@ export type CONTENTPOSITION = 'image center' | 'image top' | 'image bottom';
5
5
  export type FIT = 'content' | 'screen';
6
6
  export type CARD_SIZE = 'Small' | 'Medium' | 'Large';
7
7
  export type ANIMATION_DIRECTION = 'left' | 'top' | 'bottom' | 'right' | 'fadeIn' | 'zoom' | 'none';
8
- export type BORDER_DIRECTION = "ALL" | "LEFT" | "RIGHT" | "TOP" | "BOTTOM";
9
8
  export type ANIMATION_SPEED = 'slow' | 'medium' | 'fast';
10
9
  export type LINK_TYPE = 'Button' | 'List Item';
11
10
  export type BUTTON_TYPE = 'Solid' | 'Outline';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "1.4.81",
3
+ "version": "1.4.90",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -28,6 +28,11 @@ export * from './lib/sections/features-section/features-section.component';
28
28
  export * from './lib/sections/testimonial-fullwidth/testimonial-fullwidth.component';
29
29
  export * from './lib/sections/logo-showcase/logo-showcase.component';
30
30
  export * from './lib/sections/banner-carousel/banner-carousel.component';
31
+ export * from './lib/sections/carousel-banner/carousel-banner.component';
32
+ export * from './lib/sections/qrcode1/qrcode1.component';
33
+ export * from './lib/sections/rajesh-testing/rajesh-testing.component';
34
+ export * from './lib/sections/qrscanner-2/sanjana-testing.component';
35
+ export * from './lib/sections/scanner-section/scanner-section.component';
31
36
  export * from './lib/ecommerce/sections/featured-products/featured-products.component';
32
37
  export * from './lib/ecommerce/sections/featured-category/featured-category.component';
33
38
  export * from './lib/ecommerce/sections/product-desc/product-desc.component';
@@ -58,6 +63,7 @@ export * from './lib/directive/color.directive';
58
63
  export * from './lib/directive/image-position.directive';
59
64
  export * from './lib/directive/container-alignment.directive';
60
65
  export * from './lib/directive/sticky-directive';
66
+ export * from './lib/directive/removeCarousel-directive';
61
67
  export * from './lib/styles/index';
62
68
  export * from './lib/styles/style.model';
63
69
  export * from './lib/styles/types';
@@ -1,48 +0,0 @@
1
- import { Directive, Input } from '@angular/core';
2
- import { SPACINGALIGN } from '../styles';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "../services/events.service";
5
- export class SpacingHorizontalDirective {
6
- constructor(el, eventService) {
7
- this.el = el;
8
- this.eventService = eventService;
9
- this.positionLayoutChangeCheck();
10
- }
11
- ngOnChanges() {
12
- this.changeHorizontalSpacing();
13
- }
14
- ngOnDestroy() {
15
- if (this.positionLayoutSubscription) {
16
- this.positionLayoutSubscription.unsubscribe();
17
- }
18
- }
19
- changeHorizontalSpacing() {
20
- this.el.nativeElement.style.setProperty("padding-left", window.innerWidth <= 475 ? '1rem' : SPACINGALIGN[this.layout?.spacingHorizontal]);
21
- this.el.nativeElement.style.setProperty("padding-right", window.innerWidth <= 475 ? '1rem' : SPACINGALIGN[this.layout?.spacingHorizontal]);
22
- if (window.innerWidth <= 475) {
23
- this.el.nativeElement.style.setProperty("padding-top", '0rem');
24
- this.el.nativeElement.style.setProperty("padding-bottom", '0rem');
25
- }
26
- }
27
- positionLayoutChangeCheck() {
28
- this.positionLayoutSubscription = this.eventService.postionLayoutChangeChecks.subscribe((res) => {
29
- if (this.el.nativeElement.id === res.id) {
30
- this.layout = res.data;
31
- this.changeHorizontalSpacing();
32
- }
33
- });
34
- }
35
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: SpacingHorizontalDirective, deps: [{ token: i0.ElementRef }, { token: i1.EventsService }], target: i0.ɵɵFactoryTarget.Directive }); }
36
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.4", type: SpacingHorizontalDirective, isStandalone: true, selector: "[spacingHorizontal]", inputs: { layout: ["spacingHorizontal", "layout"] }, usesOnChanges: true, ngImport: i0 }); }
37
- }
38
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.4", ngImport: i0, type: SpacingHorizontalDirective, decorators: [{
39
- type: Directive,
40
- args: [{
41
- selector: '[spacingHorizontal]',
42
- standalone: true
43
- }]
44
- }], ctorParameters: () => [{ type: i0.ElementRef }, { type: i1.EventsService }], propDecorators: { layout: [{
45
- type: Input,
46
- args: ['spacingHorizontal']
47
- }] } });
48
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BhY2luZy1ob3Jpem9udGFsLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3NpbXBvLXVpL3NyYy9saWIvZGlyZWN0aXZlL3NwYWNpbmctaG9yaXpvbnRhbC5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBYyxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFN0QsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLFdBQVcsQ0FBQzs7O0FBUXpDLE1BQU0sT0FBTywwQkFBMEI7SUFHckMsWUFBb0IsRUFBYyxFQUN4QixZQUEyQjtRQURqQixPQUFFLEdBQUYsRUFBRS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ZGRpbmctcmlnaHRcIiwgd2luZG93LmlubmVyV2lkdGggPD0gNDc1ID8gJzFyZW0nIDogU1BBQ0lOR0FMSUdOW3RoaXMubGF5b3V0Py5zcGFjaW5nSG9yaXpvbnRhbCBhcyBrZXlvZiB0eXBlb2YgU1BBQ0lOR0FMSUdOXSk7XHJcbiAgICBpZiAod2luZG93LmlubmVyV2lkdGggPD0gNDc1KSB7XHJcbiAgICAgIHRoaXMuZWwubmF0aXZlRWxlbWVudC5zdHlsZS5zZXRQcm9wZXJ0eShcInBhZGRpbmctdG9wXCIsICcwcmVtJyk7XHJcbiAgICAgIHRoaXMuZWwubmF0aXZlRWxlbWVudC5zdHlsZS5zZXRQcm9wZXJ0eShcInBhZGRpbmctYm90dG9tXCIsICcwcmVtJyk7XHJcbiAgICB9XHJcbiAgfVxyXG5cclxuICBwb3NpdGlvbkxheW91dFN1YnNjcmlwdGlvbj86IFN1YnNjcmlwdGlvbjtcclxuICBwb3NpdGlvbkxheW91dENoYW5nZUNoZWNrKCl7XHJcbiAgICB0aGlzLnBvc2l0aW9uTGF5b3V0U3Vic2NyaXB0aW9uID0gdGhpcy5ldmVudFNlcnZpY2UucG9zdGlvbkxheW91dENoYW5nZUNoZWNrcy5zdWJzY3JpYmUoKHJlczphbnkpID0+IHtcclxuICAgICAgaWYodGhpcy5lbC5uYXRpdmVFbGVtZW50LmlkID09PSByZXMuaWQpe1xyXG4gICAgICAgIHRoaXMubGF5b3V0ID0gcmVzLmRhdGE7XHJcbiAgICAgICAgdGhpcy5jaGFuZ2VIb3Jpem9udGFsU3BhY2luZygpO1xyXG4gICAgICB9XHJcbiAgICB9KVxyXG4gIH1cclxufVxyXG4iXX0=
@@ -1,18 +0,0 @@
1
- import { ElementRef } from '@angular/core';
2
- import { EventsService } from '../services/events.service';
3
- import { Subscription } from 'rxjs';
4
- import { LayOutModel } from '../styles/style.model';
5
- import * as i0 from "@angular/core";
6
- export declare class SpacingHorizontalDirective {
7
- private el;
8
- private eventService;
9
- layout?: LayOutModel;
10
- constructor(el: ElementRef, eventService: EventsService);
11
- ngOnChanges(): void;
12
- ngOnDestroy(): void;
13
- changeHorizontalSpacing(): void;
14
- positionLayoutSubscription?: Subscription;
15
- positionLayoutChangeCheck(): void;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<SpacingHorizontalDirective, never>;
17
- static ɵdir: i0.ɵɵDirectiveDeclaration<SpacingHorizontalDirective, "[spacingHorizontal]", never, { "layout": { "alias": "spacingHorizontal"; "required": false; }; }, {}, never, never, true, never>;
18
- }
Binary file