simpo-component-library 3.6.874 → 3.6.875

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 (206) hide show
  1. package/README.md +24 -24
  2. package/esm2022/lib/components/delete-hover-element/delete-hover-element.component.mjs +3 -3
  3. package/esm2022/lib/components/document/document.component.mjs +3 -3
  4. package/esm2022/lib/components/image-loading/image-loading.component.mjs +3 -3
  5. package/esm2022/lib/components/payment-details/payment-details.component.mjs +3 -3
  6. package/esm2022/lib/constants/business.constant.mjs +1 -1
  7. package/esm2022/lib/directive/alignment.directive.mjs +1 -1
  8. package/esm2022/lib/directive/blur-content.directive.mjs +1 -1
  9. package/esm2022/lib/directive/borderlessImage.directive.mjs +1 -1
  10. package/esm2022/lib/directive/button-editor.directive.mjs +24 -15
  11. package/esm2022/lib/directive/color.directive.mjs +1 -1
  12. package/esm2022/lib/directive/column-directive.directive.mjs +1 -1
  13. package/esm2022/lib/directive/container-alignment.directive.mjs +1 -1
  14. package/esm2022/lib/directive/container-fir.directive.mjs +1 -1
  15. package/esm2022/lib/directive/content-title-spacing.directive.mjs +1 -1
  16. package/esm2022/lib/directive/contenteditable.directive.mjs +1 -1
  17. package/esm2022/lib/directive/corner-directive.mjs +1 -1
  18. package/esm2022/lib/directive/height.directive.mjs +1 -1
  19. package/esm2022/lib/directive/hover-animation.directive.mjs +1 -1
  20. package/esm2022/lib/directive/hoverborder.directive.mjs +1 -1
  21. package/esm2022/lib/directive/icon-directive.directive.mjs +1 -1
  22. package/esm2022/lib/directive/image-container.directive.mjs +1 -1
  23. package/esm2022/lib/directive/image-editor.directive.mjs +22 -12
  24. package/esm2022/lib/directive/letters-only.directive.mjs +1 -1
  25. package/esm2022/lib/directive/numbers-only.directive.mjs +1 -1
  26. package/esm2022/lib/directive/position-layout-directive.directive.mjs +1 -1
  27. package/esm2022/lib/directive/set-dynamic-background.directive.mjs +1 -1
  28. package/esm2022/lib/directive/spacing-horizontal.directive.mjs +1 -1
  29. package/esm2022/lib/directive/spacing.directive.mjs +1 -1
  30. package/esm2022/lib/directive/text-background-directive.directive.mjs +1 -1
  31. package/esm2022/lib/directive/text-size.directive.mjs +1 -1
  32. package/esm2022/lib/directive/translate-onhover.directive.mjs +1 -1
  33. package/esm2022/lib/directive/wrap-containers.directive.mjs +1 -1
  34. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +1 -1
  35. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +3 -3
  36. package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +2 -2
  37. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +2 -2
  38. package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +3 -3
  39. package/esm2022/lib/ecommerce/sections/checkout/checkout.modal.mjs +1 -1
  40. package/esm2022/lib/ecommerce/sections/customer-review/customer-review.component.mjs +3 -3
  41. package/esm2022/lib/ecommerce/sections/customer-review/customer-review.model.mjs +1 -1
  42. package/esm2022/lib/ecommerce/sections/enrollment-form/enrollment-form.component.mjs +3 -3
  43. package/esm2022/lib/ecommerce/sections/enrollment-form/enrollment-form.model.mjs +1 -1
  44. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +2 -2
  45. package/esm2022/lib/ecommerce/sections/item-varient/item-varient.component.mjs +3 -3
  46. package/esm2022/lib/ecommerce/sections/new-collection/new-collection.component.mjs +3 -3
  47. package/esm2022/lib/ecommerce/sections/new-collection/new-collection.modal.mjs +1 -1
  48. package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +3 -3
  49. package/esm2022/lib/ecommerce/sections/passbook-transactions/passbook-transactions.component.mjs +3 -3
  50. package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.component.mjs +3 -3
  51. package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.model.mjs +1 -1
  52. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +2 -2
  53. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +2 -2
  54. package/esm2022/lib/ecommerce/sections/product-list/product-list.modal.mjs +1 -1
  55. package/esm2022/lib/ecommerce/sections/returns-calculator/returns-calculator.component.mjs +3 -3
  56. package/esm2022/lib/ecommerce/sections/returns-calculator/returns-calculator.model.mjs +1 -1
  57. package/esm2022/lib/ecommerce/sections/scheme-details/scheme-details.component.mjs +3 -3
  58. package/esm2022/lib/ecommerce/sections/scheme-selection/scheme-selection.component.mjs +3 -3
  59. package/esm2022/lib/ecommerce/sections/schemes/schemes.component.mjs +3 -3
  60. package/esm2022/lib/ecommerce/sections/schemes/schemes.component.model.mjs +1 -1
  61. package/esm2022/lib/ecommerce/sections/store-list/store-list.component.mjs +3 -3
  62. package/esm2022/lib/ecommerce/sections/store-list/store-list.modal.mjs +1 -1
  63. package/esm2022/lib/ecommerce/sections/store-page/store-page.component.mjs +3 -3
  64. package/esm2022/lib/ecommerce/sections/store-page/store-page.model.mjs +1 -1
  65. package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +3 -3
  66. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.component.mjs +2 -2
  67. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.modal.mjs +1 -1
  68. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +3 -3
  69. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.model.mjs +1 -1
  70. package/esm2022/lib/ecommerce/styles/BaseCollection.modal.mjs +1 -1
  71. package/esm2022/lib/ecommerce/styles/Collection.modal.mjs +1 -1
  72. package/esm2022/lib/ecommerce/styles/PincodeLocation.model.mjs +1 -1
  73. package/esm2022/lib/ecommerce/styles/PincodeLocationInter.model.mjs +1 -1
  74. package/esm2022/lib/ecommerce/styles/cart.modal.mjs +1 -1
  75. package/esm2022/lib/ecommerce/styles/category.modal.mjs +1 -1
  76. package/esm2022/lib/ecommerce/styles/order.modal.mjs +1 -1
  77. package/esm2022/lib/ecommerce/styles/review.modal.mjs +1 -1
  78. package/esm2022/lib/ecommerce/styles/user.modal.mjs +1 -1
  79. package/esm2022/lib/elements/add-section/add-section.component.mjs +163 -16
  80. package/esm2022/lib/elements/address-list/address-list.component.mjs +3 -3
  81. package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +3 -5
  82. package/esm2022/lib/elements/button/button.component.mjs +3 -3
  83. package/esm2022/lib/elements/button/button.model.mjs +1 -1
  84. package/esm2022/lib/elements/card-skeleton-loader/card-skeleton-loader.component.mjs +3 -3
  85. package/esm2022/lib/elements/covering-image-card/covering-image-card.component.mjs +3 -5
  86. package/esm2022/lib/elements/editor-service.service.mjs +7 -1
  87. package/esm2022/lib/elements/heading-element/heading-element.component.mjs +3 -3
  88. package/esm2022/lib/elements/image-editor/image-editor.component.mjs +234 -0
  89. package/esm2022/lib/elements/index.mjs +1 -1
  90. package/esm2022/lib/elements/list-home-appointment/list-home-appointment.component.mjs +3 -3
  91. package/esm2022/lib/elements/media-selector/media-selector.component.mjs +1 -1
  92. package/esm2022/lib/elements/portfolio/portfolio.component.mjs +3 -3
  93. package/esm2022/lib/elements/pricing-s1/pricing-s1.component.mjs +3 -3
  94. package/esm2022/lib/elements/property/property.component.mjs +3 -3
  95. package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +2 -2
  96. package/esm2022/lib/elements/svg-divider/svg-divider.component.mjs +3 -3
  97. package/esm2022/lib/elements/text/text.component.mjs +3 -3
  98. package/esm2022/lib/pipes/amount.pipe.mjs +1 -1
  99. package/esm2022/lib/sections/add-new-section/add-new-section.component.mjs +3 -3
  100. package/esm2022/lib/sections/appointment-form/appointment-form.component.mjs +4 -4
  101. package/esm2022/lib/sections/appointment-form/appointment-form.model.mjs +1 -1
  102. package/esm2022/lib/sections/banner-carousel/banner-carousel.component.mjs +3 -3
  103. package/esm2022/lib/sections/banner-carousel/banner-carousel.model.mjs +1 -1
  104. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +3 -3
  105. package/esm2022/lib/sections/banner-section/banner-section.component.mjs +2 -2
  106. package/esm2022/lib/sections/blog-list/blog-list.component.mjs +1 -1
  107. package/esm2022/lib/sections/blog-list/blog-list.model.mjs +1 -1
  108. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +1 -1
  109. package/esm2022/lib/sections/choose-us-section/choose-us-section.model.mjs +1 -1
  110. package/esm2022/lib/sections/condensed-and-gradient/condensed-and-gradient.component.mjs +2 -2
  111. package/esm2022/lib/sections/contact-us/contact-us.component.mjs +2 -2
  112. package/esm2022/lib/sections/faq-section/faq-section.component.mjs +4 -4
  113. package/esm2022/lib/sections/faq-section/faq-section.modal.mjs +1 -1
  114. package/esm2022/lib/sections/feature-experience-section/feature-experience-section.component.mjs +3 -3
  115. package/esm2022/lib/sections/features-section/features-section.component.mjs +3 -3
  116. package/esm2022/lib/sections/features-section/features-section.model.mjs +1 -1
  117. package/esm2022/lib/sections/four-features-centered-image/four-features-centered-image.component.mjs +2 -2
  118. package/esm2022/lib/sections/header-text/header-text.model.mjs +1 -1
  119. package/esm2022/lib/sections/image-background/image-background/image-background.component.mjs +2 -2
  120. package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +4 -4
  121. package/esm2022/lib/sections/image-carousel-section/image-carousel.model.mjs +1 -1
  122. package/esm2022/lib/sections/image-grid-hotspot/image-grid-hotspot.component.mjs +4 -4
  123. package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +4 -4
  124. package/esm2022/lib/sections/image-section/image-section.component.mjs +2 -2
  125. package/esm2022/lib/sections/image-section/image-section.model.mjs +1 -1
  126. package/esm2022/lib/sections/location-section/location-section.component.mjs +3 -3
  127. package/esm2022/lib/sections/location-section/location-section.modal.mjs +1 -1
  128. package/esm2022/lib/sections/logo-gallery/logo-gallery.component.mjs +4 -4
  129. package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +3 -3
  130. package/esm2022/lib/sections/logo-showcase/logo-showcase.modal.mjs +1 -1
  131. package/esm2022/lib/sections/moving-text/moving-text.component.mjs +3 -3
  132. package/esm2022/lib/sections/moving-text/moving-text.modal.mjs +1 -1
  133. package/esm2022/lib/sections/new-services/new-services.component.mjs +4 -4
  134. package/esm2022/lib/sections/new-services/new-services.model.mjs +1 -1
  135. package/esm2022/lib/sections/new-testimonials/new-testimonials.component.mjs +1 -1
  136. package/esm2022/lib/sections/new-testimonials/new-testimonials.model.mjs +1 -1
  137. package/esm2022/lib/sections/news-letter-component/news-letter-component.component.mjs +3 -3
  138. package/esm2022/lib/sections/news-letter-component/news-letter.modal.mjs +1 -1
  139. package/esm2022/lib/sections/overlapping-image/overlapping-image.component.mjs +2 -2
  140. package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +3 -3
  141. package/esm2022/lib/sections/pricing-section/pricing-section.modal.mjs +1 -1
  142. package/esm2022/lib/sections/process-modern/process-modern.component.mjs +3 -3
  143. package/esm2022/lib/sections/process-modern/process-modern.model.mjs +1 -1
  144. package/esm2022/lib/sections/process-section/process-section.component.mjs +3 -3
  145. package/esm2022/lib/sections/process-section/process-section.modal.mjs +1 -1
  146. package/esm2022/lib/sections/product-info-section/product-info-section.component.mjs +2 -2
  147. package/esm2022/lib/sections/property-component/property-component.component.mjs +3 -3
  148. package/esm2022/lib/sections/property-component/property-component.modal.mjs +1 -1
  149. package/esm2022/lib/sections/property-list/property-list.component.mjs +3 -3
  150. package/esm2022/lib/sections/property-list/property-list.modal.mjs +1 -1
  151. package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.component.mjs +3 -3
  152. package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.model.mjs +1 -1
  153. package/esm2022/lib/sections/registration-form/registration-form.component.mjs +3 -3
  154. package/esm2022/lib/sections/registration-form/registrationForm.model.mjs +1 -1
  155. package/esm2022/lib/sections/scheme-detail/scheme-detail.component.mjs +3 -3
  156. package/esm2022/lib/sections/scheme-detail/scheme-detail.modal.mjs +1 -1
  157. package/esm2022/lib/sections/service-section/service-section.component.mjs +3 -3
  158. package/esm2022/lib/sections/skeleton-loader-section/skeleton-loader-section.component.mjs +3 -3
  159. package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +3 -3
  160. package/esm2022/lib/sections/team-member-section/team-member-section.model.mjs +1 -1
  161. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +4 -4
  162. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.model.mjs +1 -1
  163. package/esm2022/lib/sections/testimonial-masonry/testimonial-masonry.component.mjs +3 -3
  164. package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +4 -4
  165. package/esm2022/lib/sections/testimonial-section/testimonial-section.model.mjs +1 -1
  166. package/esm2022/lib/sections/testimonial-slider/testimonial-slider.component.mjs +4 -4
  167. package/esm2022/lib/sections/testimonial-video/testimonial-video.component.mjs +3 -3
  168. package/esm2022/lib/sections/testimonial-video/testimonial-video.model.mjs +1 -1
  169. package/esm2022/lib/sections/text-image-section/text-image-section.component.mjs +2 -2
  170. package/esm2022/lib/sections/text-section/text-section.model.mjs +1 -1
  171. package/esm2022/lib/sections/usp-video-section/usp-video-section.component.mjs +3 -3
  172. package/esm2022/lib/sections/usp-video-section/usp-video-section.model.mjs +1 -1
  173. package/esm2022/lib/sections/video-grid-section/video-grid-section.component.mjs +4 -4
  174. package/esm2022/lib/sections/video-section/video-section.component.mjs +1 -1
  175. package/esm2022/lib/sections/video-section/video-section.model.mjs +1 -1
  176. package/esm2022/lib/sections/view-blog/view-blog.component.mjs +1 -1
  177. package/esm2022/lib/services/endUser.service.mjs +1 -1
  178. package/esm2022/lib/services/events.service.mjs +1 -4
  179. package/esm2022/lib/services/image-upload-service.service.mjs +1 -1
  180. package/fesm2022/simpo-component-library.mjs +3633 -3254
  181. package/fesm2022/simpo-component-library.mjs.map +1 -1
  182. package/lib/directive/background-directive.d.ts +1 -1
  183. package/lib/directive/button-directive.directive.d.ts +1 -1
  184. package/lib/directive/button-editor.directive.d.ts +4 -5
  185. package/lib/directive/color.directive.d.ts +1 -1
  186. package/lib/directive/image-editor.directive.d.ts +8 -4
  187. package/lib/ecommerce/sections/new-collection/new-collection.component.d.ts +1 -1
  188. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +1 -1
  189. package/lib/ecommerce/sections/product-list/product-list.component.d.ts +1 -1
  190. package/lib/ecommerce/sections/store-list/store-list.component.d.ts +1 -1
  191. package/lib/ecommerce/sections/store-page/store-page.component.d.ts +1 -1
  192. package/lib/elements/add-section/add-section.component.d.ts +22 -1
  193. package/lib/elements/below-image-card/below-image-card.component.d.ts +1 -2
  194. package/lib/elements/covering-image-card/covering-image-card.component.d.ts +1 -2
  195. package/lib/elements/editor-service.service.d.ts +2 -0
  196. package/lib/elements/image-editor/image-editor.component.d.ts +54 -0
  197. package/lib/elements/link-editor/link-editor.component.d.ts +1 -1
  198. package/lib/sections/banner-grid-section/banner-grid-section.component.d.ts +1 -1
  199. package/lib/sections/contact-us/contact-us.component.d.ts +1 -1
  200. package/lib/sections/header-section/header-section.component.d.ts +1 -1
  201. package/lib/sections/moving-text/moving-text.component.d.ts +1 -1
  202. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  203. package/lib/services/events.service.d.ts +0 -3
  204. package/package.json +1 -1
  205. package/simpo-component-library-3.6.875.tgz +0 -0
  206. package/simpo-component-library-3.6.874.tgz +0 -0
@@ -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): "#000000" | "#ffffff";
22
+ getTextColor(bgColor: string): "#ffffff" | "#000000";
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): "#000000" | "#ffffff" | "#ffffff;";
19
+ getTextColor(bgColor: string): "#ffffff" | "#000000" | "#ffffff;";
20
20
  buttonStyleSubscription?: Subscription;
21
21
  buttonStyleChangeCheck(): void;
22
22
  changeButtonStyle(id: any, style: ButtonStyleModel, backgroundInfo: BackgroundModel): void;
@@ -1,27 +1,26 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { BackgroundModel, Button, ButtonStyleModel } from '../styles/style.model';
3
- import { EventsService } from '../services/events.service';
3
+ import { MatDialog } from '@angular/material/dialog';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ButtonEditorDirective {
6
6
  private el;
7
- private _eventService;
7
+ private matDialog;
8
8
  appButtonEditor: boolean;
9
9
  buttonData?: Button;
10
10
  buttonStyle?: ButtonStyleModel;
11
11
  backgroundInfo?: BackgroundModel;
12
12
  sectionId?: string;
13
13
  buttonId: string;
14
- itemIndex?: number;
15
14
  private mouseEnterSub?;
16
15
  private mouseLeaveSub?;
17
16
  private clickSub?;
18
17
  private readonly HIGHLIGHT_BORDER;
19
- constructor(el: ElementRef, _eventService: EventsService);
18
+ constructor(el: ElementRef, matDialog: MatDialog);
20
19
  ngOnInit(): void;
21
20
  ngOnChanges(): void;
22
21
  private setupEventListeners;
23
22
  private cleanup;
24
23
  ngOnDestroy(): void;
25
24
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonEditorDirective, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonEditorDirective, "button[appButtonEditor]", never, { "appButtonEditor": { "alias": "appButtonEditor"; "required": false; }; "buttonData": { "alias": "buttonData"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "backgroundInfo": { "alias": "backgroundInfo"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; "buttonId": { "alias": "buttonId"; "required": false; }; "itemIndex": { "alias": "itemIndex"; "required": false; }; }, {}, never, never, true, never>;
25
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ButtonEditorDirective, "button[appButtonEditor]", never, { "appButtonEditor": { "alias": "appButtonEditor"; "required": false; }; "buttonData": { "alias": "buttonData"; "required": false; }; "buttonStyle": { "alias": "buttonStyle"; "required": false; }; "backgroundInfo": { "alias": "backgroundInfo"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; "buttonId": { "alias": "buttonId"; "required": false; }; }, {}, never, never, true, never>;
27
26
  }
@@ -12,7 +12,7 @@ export declare class ColorDirective implements OnChanges {
12
12
  ngOnDestroy(): void;
13
13
  applyColor(): void;
14
14
  bgColorChangeCheck(): void;
15
- getTextColor(): "#000000" | "#ffffff" | "#ffffff;";
15
+ getTextColor(): "#ffffff" | "#000000" | "#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,21 +1,25 @@
1
1
  import { ElementRef, OnInit, OnDestroy } from '@angular/core';
2
- import { Image, Icon } from '../styles/style.model';
2
+ import { Image } from '../styles/style.model';
3
+ import { MatDialog } from '@angular/material/dialog';
3
4
  import { EventsService } from '../services/events.service';
5
+ import { Router } from '@angular/router';
6
+ import { Icon } from '../styles/style.model';
4
7
  import * as i0 from "@angular/core";
5
8
  export declare class ImageEditorDirective implements OnInit, OnDestroy {
6
9
  private el;
10
+ private matDialog;
7
11
  private _eventService;
12
+ private router;
8
13
  appImageEditor: boolean;
9
14
  imageData?: Image;
10
15
  sectionId?: string;
11
16
  showIcon?: boolean;
12
17
  iconData?: Icon;
13
- itemIndex?: number;
14
18
  private mouseEnterSub?;
15
19
  private mouseLeaveSub?;
16
20
  private clickSub?;
17
21
  private readonly HIGHLIGHT_BORDER;
18
- constructor(el: ElementRef, _eventService: EventsService);
22
+ constructor(el: ElementRef, matDialog: MatDialog, _eventService: EventsService, router: Router);
19
23
  ngOnInit(): void;
20
24
  ngOnChanges(): void;
21
25
  private setupEventListeners;
@@ -23,5 +27,5 @@ export declare class ImageEditorDirective implements OnInit, OnDestroy {
23
27
  ngOnDestroy(): void;
24
28
  redirectTo(): void;
25
29
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorDirective, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<ImageEditorDirective, "[appImageEditor]", never, { "appImageEditor": { "alias": "appImageEditor"; "required": false; }; "imageData": { "alias": "imageData"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "iconData": { "alias": "iconData"; "required": false; }; "itemIndex": { "alias": "itemIndex"; "required": false; }; }, {}, never, never, true, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ImageEditorDirective, "[appImageEditor]", never, { "appImageEditor": { "alias": "appImageEditor"; "required": false; }; "imageData": { "alias": "imageData"; "required": false; }; "sectionId": { "alias": "sectionId"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "iconData": { "alias": "iconData"; "required": false; }; }, {}, never, never, true, never>;
27
31
  }
@@ -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): "#000000" | "#ffffff";
35
+ getColor(color: any): "#ffffff" | "#000000";
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,7 +122,7 @@ 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): "#000000" | "#ffffff";
125
+ getTextColor(color: any): "#ffffff" | "#000000";
126
126
  languages: string[];
127
127
  selectedLang: string;
128
128
  getClass(map: any): "col-4" | "col-6" | "col-3" | "width-max";
@@ -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): "#000000" | "#ffffff";
223
+ getTextColor(color: any): "#ffffff" | "#000000";
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
  }
@@ -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): "#000000" | "#ffffff" | "#ffffff;";
37
+ getTextColor(bgColor: any): "#ffffff" | "#000000" | "#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): "#000000" | "#ffffff" | "#ffffff;";
21
+ getTextColor(bgColor: any): "#ffffff" | "#000000" | "#ffffff;";
22
22
  getTime(storeHours: any): string | undefined;
23
23
  removeUnderScore(text: string): string;
24
24
  openWhatsapp(phone: string): void;
@@ -15,6 +15,15 @@ export declare class AddSectionComponent {
15
15
  Object?: Object;
16
16
  constructor(dialog: MatDialogRef<AddSectionComponent>, data: any, http: HttpClient, _eventService: EventsService, editorService: ElementServiceService, restService: RestService, elementService: ElementServiceService);
17
17
  businessType: 'STATIC' | 'E_COMMERCE';
18
+ expandedApps: {
19
+ [key: string]: boolean;
20
+ };
21
+ selectedApp: string;
22
+ selectedAppSections: any[];
23
+ selectedAppComponent: any;
24
+ appIconMap: {
25
+ [key: string]: string;
26
+ };
18
27
  ngOnInit(): void;
19
28
  selectedTab: string;
20
29
  businessId: string | null;
@@ -33,24 +42,36 @@ export declare class AddSectionComponent {
33
42
  savedCategoryKeys: string[];
34
43
  savedLoader: boolean;
35
44
  selectedSavedCategory: string;
45
+ selectedSavedComponent: any;
36
46
  categoryEmojiMap: {
37
47
  [key: string]: string;
38
48
  };
39
49
  getCategoryEmoji(category: string): string;
40
50
  getFirstSectionName(category: string): string;
41
51
  onTabSelect(value: string): void;
52
+ appsList: any[];
53
+ appsLoader: boolean;
54
+ getAllApps(): void;
55
+ toggleAppCategory(appName: string): void;
56
+ installApp(app: any, event: any): void;
57
+ selectAppComponent(secData: any, appName: string): void;
58
+ selectAppComponentAndHighlight(ele: any): void;
59
+ getSelectedAppObj(): any;
42
60
  toggleCategory(category: string): void;
43
61
  getSavedSections(): void;
44
62
  selectSavedCategory(categoryKey: string): void;
63
+ selectSavedComponent(comp: any): void;
64
+ addSavedSection(component: any, event: any): void;
45
65
  selectComponent(sec: any, category: string): void;
46
66
  selectComponentAndHighlight(ele: any): void;
47
67
  selectSection(ele: any): void;
48
68
  getAllSections(): void;
49
- getAllSavedSections(): void;
50
69
  checkAppInstalled(): void;
51
70
  getObjectKeys(obj: any): any[];
52
71
  getSectionLength(section: any): number;
53
72
  addNewSection(componentId: any, sectionType: any, event: any): void;
73
+ addAppSection(component: any, event: any): void;
74
+ handleAddSection(event: any): void;
54
75
  searchText: string;
55
76
  dummySections: any;
56
77
  dummy2: any;
@@ -10,7 +10,6 @@ export declare class BelowImageCardComponent {
10
10
  button?: ButtonModel;
11
11
  edit?: boolean;
12
12
  positionLayout?: string;
13
- itemIndex?: number;
14
13
  allContents: any[];
15
14
  currentIndex: number;
16
15
  counter: number;
@@ -31,5 +30,5 @@ export declare class BelowImageCardComponent {
31
30
  getBackground(): any;
32
31
  get getIconBackground(): any;
33
32
  static ɵfac: i0.ɵɵFactoryDeclaration<BelowImageCardComponent, never>;
34
- static ɵcmp: i0.ɵɵComponentDeclaration<BelowImageCardComponent, "simpo-below-image-card", never, { "data": { "alias": "data"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "content": { "alias": "content"; "required": false; }; "componentId": { "alias": "componentId"; "required": false; }; "button": { "alias": "button"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "positionLayout": { "alias": "positionLayout"; "required": false; }; "itemIndex": { "alias": "itemIndex"; "required": false; }; }, {}, never, never, true, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<BelowImageCardComponent, "simpo-below-image-card", never, { "data": { "alias": "data"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "content": { "alias": "content"; "required": false; }; "componentId": { "alias": "componentId"; "required": false; }; "button": { "alias": "button"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "positionLayout": { "alias": "positionLayout"; "required": false; }; }, {}, never, never, true, never>;
35
34
  }
@@ -9,7 +9,6 @@ export declare class CoveringImageCardComponent {
9
9
  componentId?: string;
10
10
  button?: ButtonModel;
11
11
  edit?: boolean;
12
- itemIndex?: number;
13
12
  constructor(_eventService: EventsService);
14
13
  ngOnInit(): void;
15
14
  redirectTo(): void;
@@ -17,5 +16,5 @@ export declare class CoveringImageCardComponent {
17
16
  contentAnimation: any;
18
17
  };
19
18
  static ɵfac: i0.ɵɵFactoryDeclaration<CoveringImageCardComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<CoveringImageCardComponent, "simpo-covering-image-card", never, { "data": { "alias": "data"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "content": { "alias": "content"; "required": false; }; "componentId": { "alias": "componentId"; "required": false; }; "button": { "alias": "button"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "itemIndex": { "alias": "itemIndex"; "required": false; }; }, {}, never, never, true, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<CoveringImageCardComponent, "simpo-covering-image-card", never, { "data": { "alias": "data"; "required": false; }; "styles": { "alias": "styles"; "required": false; }; "content": { "alias": "content"; "required": false; }; "componentId": { "alias": "componentId"; "required": false; }; "button": { "alias": "button"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, {}, never, never, true, never>;
21
20
  }
@@ -10,6 +10,8 @@ export declare class ElementServiceService {
10
10
  openSocialBrand(componentName: any, height: any, width: any, data: any): void;
11
11
  getComponentApi(businessType?: 'STATIC' | 'E_COMMERCE'): import("rxjs").Observable<Object>;
12
12
  getAllSavedSectionsApi(businessId: any): import("rxjs").Observable<Object>;
13
+ getAllapps(businessId: any): import("rxjs").Observable<Object>;
14
+ installApp(appId: any, businessId: any): import("rxjs").Observable<Object>;
13
15
  regenerateText(request: any): import("rxjs").Observable<Object>;
14
16
  getImageLibrary(): import("rxjs").Observable<Object>;
15
17
  saveImagesToBusinessLibrary(mediaRequest: any): import("rxjs").Observable<Object>;
@@ -0,0 +1,54 @@
1
+ import { MatDialog, MatDialogRef } from '@angular/material/dialog';
2
+ import { EventsService } from '../../services/events.service';
3
+ import { Button, Icon, Image } from '../../styles/style.model';
4
+ import { ElementServiceService } from '../editor-service.service';
5
+ import { RedirectionLinkType } from '../../styles/index';
6
+ import { BACKGROUND_TYPE } from '@simpo-ui/styles/types';
7
+ import * as i0 from "@angular/core";
8
+ export declare class ImageEditorComponent {
9
+ private eventsService;
10
+ private editorService;
11
+ dialogRef: MatDialogRef<ImageEditorComponent>;
12
+ data: any;
13
+ private matDialog;
14
+ constructor(eventsService: EventsService, editorService: ElementServiceService, dialogRef: MatDialogRef<ImageEditorComponent>, data: any, matDialog: MatDialog);
15
+ imageData: Image;
16
+ iconData: Icon;
17
+ sectionId: string;
18
+ private backDrop;
19
+ link: Button;
20
+ ngOnInit(): Promise<void>;
21
+ RedirectionLink: typeof RedirectionLinkType;
22
+ addLink: boolean;
23
+ max: number;
24
+ min: number;
25
+ tabs: BACKGROUND_TYPE[];
26
+ imgLoader: boolean;
27
+ updateImage(): Promise<void>;
28
+ changeIconColor(): void;
29
+ horizontalPosition(): void;
30
+ deleteImage(): void;
31
+ linkType: any[];
32
+ selectedType: RedirectionLinkType;
33
+ changeType(type: RedirectionLinkType): void;
34
+ templatePage: any[];
35
+ getTemplatePage(): void;
36
+ externalLinkType: Array<type>;
37
+ collectionList: any;
38
+ categoryList: any;
39
+ collectionPath: any;
40
+ getCollectionList(): void;
41
+ getCategoryList(): void;
42
+ pageName: string;
43
+ addCollectionToPath(): void;
44
+ categoryPath: any;
45
+ addCategoryToPath(): void;
46
+ onPageChange(event: any): void;
47
+ imageHelperFunction(): Promise<void>;
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorComponent, never>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<ImageEditorComponent, "simpo-image-editor", never, {}, {}, never, never, true, never>;
50
+ }
51
+ interface type {
52
+ type: string;
53
+ }
54
+ export {};
@@ -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" | "99px" | "7px";
34
+ setBorderRadius(): "0px" | "7px" | "99px";
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): "#000000" | "#ffffff" | "#ffffff;";
30
+ getTextColor(bgColor: string): "#ffffff" | "#000000" | "#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): "#000000" | "#ffffff" | "#ffffff;";
32
+ getTextColor(bgColor: string): "#ffffff" | "#000000" | "#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(): "#000000" | "#ffffff";
110
+ setColor(): "#ffffff" | "#000000";
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): "#000000" | "#ffffff";
25
+ getTextColor(bgColor: string): "#ffffff" | "#000000";
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,7 +18,7 @@ export declare class PricingSectionComponent extends BaseSection {
18
18
  constructor(_eventService: EventsService);
19
19
  ngOnInit(): void;
20
20
  get stylesLayout(): LayOutModel;
21
- getTextColor(): "#000000" | "#ffffff";
21
+ getTextColor(): "#ffffff" | "#000000";
22
22
  get headingSpace(): SPACING;
23
23
  getButtonId(): string;
24
24
  editSection(): void;
@@ -53,9 +53,6 @@ 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>;
59
56
  static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
60
57
  static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
61
58
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.874",
3
+ "version": "3.6.875",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
Binary file