simpo-component-library 3.6.875 → 3.6.877

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 (213) 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 +15 -24
  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 +12 -22
  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 +16 -163
  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 +5 -3
  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 +5 -3
  86. package/esm2022/lib/elements/editor-service.service.mjs +1 -7
  87. package/esm2022/lib/elements/heading-element/heading-element.component.mjs +3 -3
  88. package/esm2022/lib/elements/index.mjs +1 -1
  89. package/esm2022/lib/elements/list-home-appointment/list-home-appointment.component.mjs +3 -3
  90. package/esm2022/lib/elements/media-selector/media-selector.component.mjs +1 -1
  91. package/esm2022/lib/elements/portfolio/portfolio.component.mjs +3 -3
  92. package/esm2022/lib/elements/pricing-s1/pricing-s1.component.mjs +3 -3
  93. package/esm2022/lib/elements/property/property.component.mjs +3 -3
  94. package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +2 -2
  95. package/esm2022/lib/elements/svg-divider/svg-divider.component.mjs +3 -3
  96. package/esm2022/lib/elements/text/text.component.mjs +3 -3
  97. package/esm2022/lib/elements/text-editor/text-editor.component.mjs +4 -1
  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 +4 -1
  179. package/esm2022/lib/services/image-upload-service.service.mjs +1 -1
  180. package/esm2022/public-api.mjs +3 -1
  181. package/fesm2022/simpo-component-library.mjs +1419 -1795
  182. package/fesm2022/simpo-component-library.mjs.map +1 -1
  183. package/lib/directive/background-directive.d.ts +1 -1
  184. package/lib/directive/button-directive.directive.d.ts +1 -1
  185. package/lib/directive/button-editor.directive.d.ts +5 -4
  186. package/lib/directive/color.directive.d.ts +1 -1
  187. package/lib/directive/image-editor.directive.d.ts +4 -8
  188. package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +1 -1
  189. package/lib/ecommerce/sections/featured-category/featured-collection.component.d.ts +1 -1
  190. package/lib/ecommerce/sections/new-collection/new-collection.component.d.ts +2 -2
  191. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +1 -1
  192. package/lib/ecommerce/sections/product-list/product-list.component.d.ts +1 -1
  193. package/lib/ecommerce/sections/store-list/store-list.component.d.ts +1 -1
  194. package/lib/ecommerce/sections/store-page/store-page.component.d.ts +1 -1
  195. package/lib/elements/add-section/add-section.component.d.ts +1 -22
  196. package/lib/elements/below-image-card/below-image-card.component.d.ts +2 -1
  197. package/lib/elements/covering-image-card/covering-image-card.component.d.ts +2 -1
  198. package/lib/elements/editor-service.service.d.ts +0 -2
  199. package/lib/elements/link-editor/link-editor.component.d.ts +1 -1
  200. package/lib/sections/banner-grid-section/banner-grid-section.component.d.ts +1 -1
  201. package/lib/sections/contact-us/contact-us.component.d.ts +1 -1
  202. package/lib/sections/header-section/header-section.component.d.ts +1 -1
  203. package/lib/sections/image-grid-hotspot/image-grid-hotspot.component.d.ts +1 -1
  204. package/lib/sections/image-grid-section/image-grid-section.component.d.ts +1 -1
  205. package/lib/sections/moving-text/moving-text.component.d.ts +1 -1
  206. package/lib/sections/pricing-section/pricing-section.component.d.ts +1 -1
  207. package/lib/services/events.service.d.ts +3 -0
  208. package/package.json +1 -1
  209. package/public-api.d.ts +1 -0
  210. package/simpo-component-library-3.6.877.tgz +0 -0
  211. package/esm2022/lib/elements/image-editor/image-editor.component.mjs +0 -234
  212. package/lib/elements/image-editor/image-editor.component.d.ts +0 -54
  213. package/simpo-component-library-3.6.875.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): "#ffffff" | "#000000";
22
+ getTextColor(bgColor: string): "#000000" | "#ffffff";
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): "#ffffff" | "#000000" | "#ffffff;";
19
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
20
20
  buttonStyleSubscription?: Subscription;
21
21
  buttonStyleChangeCheck(): void;
22
22
  changeButtonStyle(id: any, style: ButtonStyleModel, backgroundInfo: BackgroundModel): void;
@@ -1,26 +1,27 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import { BackgroundModel, Button, ButtonStyleModel } from '../styles/style.model';
3
- import { MatDialog } from '@angular/material/dialog';
3
+ import { EventsService } from '../services/events.service';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class ButtonEditorDirective {
6
6
  private el;
7
- private matDialog;
7
+ private _eventService;
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;
14
15
  private mouseEnterSub?;
15
16
  private mouseLeaveSub?;
16
17
  private clickSub?;
17
18
  private readonly HIGHLIGHT_BORDER;
18
- constructor(el: ElementRef, matDialog: MatDialog);
19
+ constructor(el: ElementRef, _eventService: EventsService);
19
20
  ngOnInit(): void;
20
21
  ngOnChanges(): void;
21
22
  private setupEventListeners;
22
23
  private cleanup;
23
24
  ngOnDestroy(): void;
24
25
  static ɵfac: i0.ɵɵFactoryDeclaration<ButtonEditorDirective, 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>;
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>;
26
27
  }
@@ -12,7 +12,7 @@ export declare class ColorDirective implements OnChanges {
12
12
  ngOnDestroy(): void;
13
13
  applyColor(): void;
14
14
  bgColorChangeCheck(): void;
15
- getTextColor(): "#ffffff" | "#000000" | "#ffffff;";
15
+ getTextColor(): "#000000" | "#ffffff" | "#ffffff;";
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<ColorDirective, never>;
17
17
  static ɵdir: i0.ɵɵDirectiveDeclaration<ColorDirective, "[simpoColor]", never, { "bgColor": { "alias": "simpoColor"; "required": false; }; }, {}, never, never, true, never>;
18
18
  }
@@ -1,25 +1,21 @@
1
1
  import { ElementRef, OnInit, OnDestroy } from '@angular/core';
2
- import { Image } from '../styles/style.model';
3
- import { MatDialog } from '@angular/material/dialog';
2
+ import { Image, Icon } from '../styles/style.model';
4
3
  import { EventsService } from '../services/events.service';
5
- import { Router } from '@angular/router';
6
- import { Icon } from '../styles/style.model';
7
4
  import * as i0 from "@angular/core";
8
5
  export declare class ImageEditorDirective implements OnInit, OnDestroy {
9
6
  private el;
10
- private matDialog;
11
7
  private _eventService;
12
- private router;
13
8
  appImageEditor: boolean;
14
9
  imageData?: Image;
15
10
  sectionId?: string;
16
11
  showIcon?: boolean;
17
12
  iconData?: Icon;
13
+ itemIndex?: number;
18
14
  private mouseEnterSub?;
19
15
  private mouseLeaveSub?;
20
16
  private clickSub?;
21
17
  private readonly HIGHLIGHT_BORDER;
22
- constructor(el: ElementRef, matDialog: MatDialog, _eventService: EventsService, router: Router);
18
+ constructor(el: ElementRef, _eventService: EventsService);
23
19
  ngOnInit(): void;
24
20
  ngOnChanges(): void;
25
21
  private setupEventListeners;
@@ -27,5 +23,5 @@ export declare class ImageEditorDirective implements OnInit, OnDestroy {
27
23
  ngOnDestroy(): void;
28
24
  redirectTo(): void;
29
25
  static ɵfac: i0.ɵɵFactoryDeclaration<ImageEditorDirective, 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>;
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>;
31
27
  }
@@ -37,7 +37,7 @@ export declare class FeaturedCategoryComponent extends BaseSection {
37
37
  get getDirection(): "ROW" | "COLUMN" | undefined;
38
38
  get stylesLayout(): LayOutModel;
39
39
  get isMobile(): boolean;
40
- getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
40
+ getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
41
41
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCategoryComponent, never>;
42
42
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCategoryComponent, "simpo-featured-category", 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>;
43
43
  }
@@ -32,7 +32,7 @@ export declare class FeaturedCollectionComponent extends BaseSection {
32
32
  get getDirection(): "ROW" | "COLUMN" | undefined;
33
33
  get isMobile(): boolean;
34
34
  editSection(): void;
35
- getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
35
+ getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
36
36
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedCollectionComponent, never>;
37
37
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedCollectionComponent, "simpo-featured-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>;
38
38
  }
@@ -32,8 +32,8 @@ 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): "#ffffff" | "#000000";
36
- getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
35
+ getColor(color: any): "#000000" | "#ffffff";
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>;
39
39
  }
@@ -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): "#ffffff" | "#000000";
125
+ getTextColor(color: any): "#000000" | "#ffffff";
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): "#ffffff" | "#000000";
223
+ getTextColor(color: any): "#000000" | "#ffffff";
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): "#ffffff" | "#000000" | "#ffffff;";
37
+ getTextColor(bgColor: any): "#000000" | "#ffffff" | "#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): "#ffffff" | "#000000" | "#ffffff;";
21
+ getTextColor(bgColor: any): "#000000" | "#ffffff" | "#ffffff;";
22
22
  getTime(storeHours: any): string | undefined;
23
23
  removeUnderScore(text: string): string;
24
24
  openWhatsapp(phone: string): void;
@@ -15,15 +15,6 @@ 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
- };
27
18
  ngOnInit(): void;
28
19
  selectedTab: string;
29
20
  businessId: string | null;
@@ -42,36 +33,24 @@ export declare class AddSectionComponent {
42
33
  savedCategoryKeys: string[];
43
34
  savedLoader: boolean;
44
35
  selectedSavedCategory: string;
45
- selectedSavedComponent: any;
46
36
  categoryEmojiMap: {
47
37
  [key: string]: string;
48
38
  };
49
39
  getCategoryEmoji(category: string): string;
50
40
  getFirstSectionName(category: string): string;
51
41
  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;
60
42
  toggleCategory(category: string): void;
61
43
  getSavedSections(): void;
62
44
  selectSavedCategory(categoryKey: string): void;
63
- selectSavedComponent(comp: any): void;
64
- addSavedSection(component: any, event: any): void;
65
45
  selectComponent(sec: any, category: string): void;
66
46
  selectComponentAndHighlight(ele: any): void;
67
47
  selectSection(ele: any): void;
68
48
  getAllSections(): void;
49
+ getAllSavedSections(): void;
69
50
  checkAppInstalled(): void;
70
51
  getObjectKeys(obj: any): any[];
71
52
  getSectionLength(section: any): number;
72
53
  addNewSection(componentId: any, sectionType: any, event: any): void;
73
- addAppSection(component: any, event: any): void;
74
- handleAddSection(event: any): void;
75
54
  searchText: string;
76
55
  dummySections: any;
77
56
  dummy2: any;
@@ -10,6 +10,7 @@ export declare class BelowImageCardComponent {
10
10
  button?: ButtonModel;
11
11
  edit?: boolean;
12
12
  positionLayout?: string;
13
+ itemIndex?: number;
13
14
  allContents: any[];
14
15
  currentIndex: number;
15
16
  counter: number;
@@ -30,5 +31,5 @@ export declare class BelowImageCardComponent {
30
31
  getBackground(): any;
31
32
  get getIconBackground(): any;
32
33
  static ɵfac: i0.ɵɵFactoryDeclaration<BelowImageCardComponent, 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>;
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>;
34
35
  }
@@ -9,6 +9,7 @@ export declare class CoveringImageCardComponent {
9
9
  componentId?: string;
10
10
  button?: ButtonModel;
11
11
  edit?: boolean;
12
+ itemIndex?: number;
12
13
  constructor(_eventService: EventsService);
13
14
  ngOnInit(): void;
14
15
  redirectTo(): void;
@@ -16,5 +17,5 @@ export declare class CoveringImageCardComponent {
16
17
  contentAnimation: any;
17
18
  };
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<CoveringImageCardComponent, 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>;
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>;
20
21
  }
@@ -10,8 +10,6 @@ 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>;
15
13
  regenerateText(request: any): import("rxjs").Observable<Object>;
16
14
  getImageLibrary(): import("rxjs").Observable<Object>;
17
15
  saveImagesToBusinessLibrary(mediaRequest: any): import("rxjs").Observable<Object>;
@@ -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" | "7px" | "99px";
34
+ setBorderRadius(): "0px" | "99px" | "7px";
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): "#ffffff" | "#000000" | "#ffffff;";
30
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#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): "#ffffff" | "#000000" | "#ffffff;";
32
+ getTextColor(bgColor: string): "#000000" | "#ffffff" | "#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(): "#ffffff" | "#000000";
110
+ setColor(): "#000000" | "#ffffff";
111
111
  showList: boolean;
112
112
  dropdownLeft: number;
113
113
  dropdownTop: number;
@@ -23,7 +23,7 @@ export declare class ImageGridHotspotComponent extends BaseSection {
23
23
  get headingSpace(): SPACING;
24
24
  editSection(): void;
25
25
  getLength(): number;
26
- getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
26
+ getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
27
27
  private get scrollStep();
28
28
  scrollRight(): void;
29
29
  isOverflowing: boolean;
@@ -23,7 +23,7 @@ export declare class ImageGridSectionComponent extends BaseSection {
23
23
  get headingSpace(): SPACING;
24
24
  editSection(): void;
25
25
  getLength(): number;
26
- getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
26
+ getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
27
27
  private get scrollStep();
28
28
  scrollRight(): void;
29
29
  isOverflowing: boolean;
@@ -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): "#ffffff" | "#000000";
25
+ getTextColor(bgColor: string): "#000000" | "#ffffff";
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(): "#ffffff" | "#000000";
21
+ getTextColor(): "#000000" | "#ffffff";
22
22
  get headingSpace(): SPACING;
23
23
  getButtonId(): string;
24
24
  editSection(): void;
@@ -53,6 +53,9 @@ 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>;
56
59
  static ɵfac: i0.ɵɵFactoryDeclaration<EventsService, never>;
57
60
  static ɵprov: i0.ɵɵInjectableDeclaration<EventsService>;
58
61
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.6.875",
3
+ "version": "3.6.877",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -127,3 +127,4 @@ export * from './lib/ecommerce/styles/category.modal';
127
127
  export * from './lib/ecommerce/styles/Collection.modal';
128
128
  export * from './lib/ecommerce/styles/product.modal';
129
129
  export * from './lib/elements/add-section/add-section.component';
130
+ export * from './lib/elements/text-editor/text-editor.component';