simpo-component-library 3.8.9 → 3.8.12

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 (267) 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/deprecated-section/deprecated-section.component.mjs +1 -1
  4. package/esm2022/lib/components/document/document.component.mjs +3 -3
  5. package/esm2022/lib/components/image-loading/image-loading.component.mjs +3 -3
  6. package/esm2022/lib/components/payment-details/payment-details.component.mjs +3 -3
  7. package/esm2022/lib/constants/business.constant.mjs +1 -1
  8. package/esm2022/lib/directive/alignment.directive.mjs +1 -1
  9. package/esm2022/lib/directive/blur-content.directive.mjs +1 -1
  10. package/esm2022/lib/directive/borderlessImage.directive.mjs +1 -1
  11. package/esm2022/lib/directive/button-directive.directive.mjs +1 -1
  12. package/esm2022/lib/directive/button-editor.directive.mjs +1 -1
  13. package/esm2022/lib/directive/color.directive.mjs +1 -1
  14. package/esm2022/lib/directive/column-directive.directive.mjs +1 -1
  15. package/esm2022/lib/directive/container-alignment.directive.mjs +1 -1
  16. package/esm2022/lib/directive/container-fir.directive.mjs +1 -1
  17. package/esm2022/lib/directive/content-title-spacing.directive.mjs +1 -1
  18. package/esm2022/lib/directive/contenteditable.directive.mjs +1 -1
  19. package/esm2022/lib/directive/corner-directive.mjs +1 -1
  20. package/esm2022/lib/directive/height.directive.mjs +1 -1
  21. package/esm2022/lib/directive/hover-animation.directive.mjs +1 -1
  22. package/esm2022/lib/directive/hoverborder.directive.mjs +1 -1
  23. package/esm2022/lib/directive/icon-directive.directive.mjs +1 -1
  24. package/esm2022/lib/directive/image-container.directive.mjs +1 -1
  25. package/esm2022/lib/directive/image-directive.directive.mjs +1 -1
  26. package/esm2022/lib/directive/image-editor.directive.mjs +1 -1
  27. package/esm2022/lib/directive/image-position.directive.mjs +1 -1
  28. package/esm2022/lib/directive/letters-only.directive.mjs +1 -1
  29. package/esm2022/lib/directive/merge-header.directive.mjs +1 -1
  30. package/esm2022/lib/directive/numbers-only.directive.mjs +1 -1
  31. package/esm2022/lib/directive/position-layout-directive.directive.mjs +1 -1
  32. package/esm2022/lib/directive/set-dynamic-background.directive.mjs +1 -1
  33. package/esm2022/lib/directive/spacing-around.directive.mjs +1 -1
  34. package/esm2022/lib/directive/spacing-horizontal.directive.mjs +1 -1
  35. package/esm2022/lib/directive/spacing.directive.mjs +1 -1
  36. package/esm2022/lib/directive/sticky-directive.mjs +1 -1
  37. package/esm2022/lib/directive/text-background-directive.directive.mjs +1 -1
  38. package/esm2022/lib/directive/text-size.directive.mjs +1 -1
  39. package/esm2022/lib/directive/translate-onhover.directive.mjs +1 -1
  40. package/esm2022/lib/directive/video-directive.directive.mjs +1 -1
  41. package/esm2022/lib/directive/wrap-containers.directive.mjs +1 -1
  42. package/esm2022/lib/ecommerce/sections/address/address.component.mjs +3 -3
  43. package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +3 -3
  44. package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +3 -3
  45. package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.model.mjs +1 -1
  46. package/esm2022/lib/ecommerce/sections/book-appointment/book-appointment.component.mjs +3 -3
  47. package/esm2022/lib/ecommerce/sections/brands-with-image-background-columns/brands-with-image-background-columns.component.mjs +3 -3
  48. package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +3 -3
  49. package/esm2022/lib/ecommerce/sections/cart/cart.modal.mjs +1 -1
  50. package/esm2022/lib/ecommerce/sections/categories-with-image-background-columns/categories-with-image-background-columns.component.mjs +3 -3
  51. package/esm2022/lib/ecommerce/sections/category-product/category-product.component.mjs +3 -3
  52. package/esm2022/lib/ecommerce/sections/category-product/category-product.model.mjs +1 -1
  53. package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +3 -3
  54. package/esm2022/lib/ecommerce/sections/checkout/checkout.modal.mjs +1 -1
  55. package/esm2022/lib/ecommerce/sections/customer-review/customer-review.component.mjs +3 -3
  56. package/esm2022/lib/ecommerce/sections/customer-review/customer-review.model.mjs +1 -1
  57. package/esm2022/lib/ecommerce/sections/enrollment-form/enrollment-form.component.mjs +3 -3
  58. package/esm2022/lib/ecommerce/sections/enrollment-form/enrollment-form.model.mjs +1 -1
  59. package/esm2022/lib/ecommerce/sections/featured-brand/featured-brand.component.mjs +3 -3
  60. package/esm2022/lib/ecommerce/sections/featured-brand/featured-brand.modal.mjs +1 -1
  61. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +3 -3
  62. package/esm2022/lib/ecommerce/sections/featured-category/featured-category.modal.mjs +1 -1
  63. package/esm2022/lib/ecommerce/sections/featured-category/featured-collection.component.mjs +3 -3
  64. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +3 -3
  65. package/esm2022/lib/ecommerce/sections/featured-products/featured-products.modal.mjs +1 -1
  66. package/esm2022/lib/ecommerce/sections/item-varient/item-varient.component.mjs +3 -3
  67. package/esm2022/lib/ecommerce/sections/new-collection/new-collection.component.mjs +3 -3
  68. package/esm2022/lib/ecommerce/sections/new-collection/new-collection.modal.mjs +1 -1
  69. package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +3 -3
  70. package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +3 -3
  71. package/esm2022/lib/ecommerce/sections/passbook-transactions/passbook-transactions.component.mjs +3 -3
  72. package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.component.mjs +3 -3
  73. package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.model.mjs +1 -1
  74. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +104 -14
  75. package/esm2022/lib/ecommerce/sections/product-desc/product-desc.modal.mjs +1 -1
  76. package/esm2022/lib/ecommerce/sections/product-desc/scheme-plan-dialog/scheme-plan-dialog.component.mjs +106 -0
  77. package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +3 -3
  78. package/esm2022/lib/ecommerce/sections/product-list/product-list.modal.mjs +1 -1
  79. package/esm2022/lib/ecommerce/sections/refer-earn/refer-earn.component.mjs +3 -3
  80. package/esm2022/lib/ecommerce/sections/refer-earn/refer-earn.modal.mjs +1 -1
  81. package/esm2022/lib/ecommerce/sections/returns-calculator/returns-calculator.component.mjs +1 -1
  82. package/esm2022/lib/ecommerce/sections/returns-calculator/returns-calculator.model.mjs +1 -1
  83. package/esm2022/lib/ecommerce/sections/scheme-details/scheme-details.component.mjs +3 -3
  84. package/esm2022/lib/ecommerce/sections/scheme-selection/scheme-selection.component.mjs +3 -3
  85. package/esm2022/lib/ecommerce/sections/schemes/schemes.component.mjs +3 -3
  86. package/esm2022/lib/ecommerce/sections/schemes/schemes.component.model.mjs +1 -1
  87. package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +3 -3
  88. package/esm2022/lib/ecommerce/sections/store-list/store-list.component.mjs +3 -3
  89. package/esm2022/lib/ecommerce/sections/store-list/store-list.modal.mjs +1 -1
  90. package/esm2022/lib/ecommerce/sections/store-page/store-page.component.mjs +3 -3
  91. package/esm2022/lib/ecommerce/sections/store-page/store-page.model.mjs +1 -1
  92. package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +3 -3
  93. package/esm2022/lib/ecommerce/sections/user-profile/user-profile.modal.mjs +1 -1
  94. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +3 -3
  95. package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.model.mjs +1 -1
  96. package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +3 -3
  97. package/esm2022/lib/ecommerce/styles/BaseCollection.modal.mjs +1 -1
  98. package/esm2022/lib/ecommerce/styles/Brand.modal.mjs +1 -1
  99. package/esm2022/lib/ecommerce/styles/Collection.modal.mjs +1 -1
  100. package/esm2022/lib/ecommerce/styles/OrderedItems.modal.mjs +1 -1
  101. package/esm2022/lib/ecommerce/styles/PincodeLocation.model.mjs +1 -1
  102. package/esm2022/lib/ecommerce/styles/PincodeLocationInter.model.mjs +1 -1
  103. package/esm2022/lib/ecommerce/styles/cart.modal.mjs +1 -1
  104. package/esm2022/lib/ecommerce/styles/category.modal.mjs +1 -1
  105. package/esm2022/lib/ecommerce/styles/order.modal.mjs +1 -1
  106. package/esm2022/lib/ecommerce/styles/product.modal.mjs +1 -1
  107. package/esm2022/lib/ecommerce/styles/review.modal.mjs +1 -1
  108. package/esm2022/lib/ecommerce/styles/user.modal.mjs +1 -1
  109. package/esm2022/lib/elements/add-section/add-section.component.mjs +3 -3
  110. package/esm2022/lib/elements/address-list/address-list.component.mjs +3 -3
  111. package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +3 -3
  112. package/esm2022/lib/elements/button/button.component.mjs +3 -3
  113. package/esm2022/lib/elements/button/button.model.mjs +1 -1
  114. package/esm2022/lib/elements/card-skeleton-loader/card-skeleton-loader.component.mjs +3 -3
  115. package/esm2022/lib/elements/covering-image-card/covering-image-card.component.mjs +3 -3
  116. package/esm2022/lib/elements/editor-service.service.mjs +1 -1
  117. package/esm2022/lib/elements/heading-element/heading-element.component.mjs +3 -3
  118. package/esm2022/lib/elements/index.mjs +1 -1
  119. package/esm2022/lib/elements/link-editor/link-editor.component.mjs +3 -3
  120. package/esm2022/lib/elements/list-home-appointment/list-home-appointment.component.mjs +3 -3
  121. package/esm2022/lib/elements/media-selector/media-selector.component.mjs +3 -3
  122. package/esm2022/lib/elements/my-bookings/my-bookings.component.mjs +3 -3
  123. package/esm2022/lib/elements/portfolio/portfolio.component.mjs +3 -3
  124. package/esm2022/lib/elements/pricing-s1/pricing-s1.component.mjs +3 -3
  125. package/esm2022/lib/elements/property/property.component.mjs +3 -3
  126. package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +3 -3
  127. package/esm2022/lib/elements/svg-divider/svg-divider.component.mjs +3 -3
  128. package/esm2022/lib/elements/text/text.component.mjs +3 -3
  129. package/esm2022/lib/elements/text-editor/text-editor.component.mjs +9 -9
  130. package/esm2022/lib/elements/top-of-image-card/top-of-image-card.component.mjs +3 -3
  131. package/esm2022/lib/pipes/amount.pipe.mjs +1 -1
  132. package/esm2022/lib/pipes/gender.pipe.mjs +1 -1
  133. package/esm2022/lib/sections/BaseSection.mjs +1 -1
  134. package/esm2022/lib/sections/add-new-section/add-new-section.component.mjs +3 -3
  135. package/esm2022/lib/sections/appointment-form/appointment-booking/appointment-booking/appointment-booking.component.mjs +3 -3
  136. package/esm2022/lib/sections/appointment-form/appointment-form.model.mjs +1 -1
  137. package/esm2022/lib/sections/banner-carousel/banner-carousel.component.mjs +3 -3
  138. package/esm2022/lib/sections/banner-carousel/banner-carousel.model.mjs +1 -1
  139. package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +3 -3
  140. package/esm2022/lib/sections/blog-list/blog-category.model.mjs +1 -1
  141. package/esm2022/lib/sections/blog-list/blog-list.component.mjs +3 -3
  142. package/esm2022/lib/sections/blog-list/blog-list.model.mjs +1 -1
  143. package/esm2022/lib/sections/brand-story-section/brand-story-section.component.mjs +3 -3
  144. package/esm2022/lib/sections/brand-story-section/brand-story-section.modal.mjs +1 -1
  145. package/esm2022/lib/sections/button-grid-section/button-grid-section.component.mjs +3 -3
  146. package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +3 -3
  147. package/esm2022/lib/sections/choose-us-section/choose-us-section.model.mjs +1 -1
  148. package/esm2022/lib/sections/condensed-and-gradient/condensed-and-gradient.component.mjs +3 -3
  149. package/esm2022/lib/sections/countdown-banner/countdown-banner.component.mjs +3 -3
  150. package/esm2022/lib/sections/countdown-banner/countdown-banner.component.model.mjs +1 -1
  151. package/esm2022/lib/sections/faq-columns-cards/faq-columns-cards.component.mjs +3 -3
  152. package/esm2022/lib/sections/faq-columns-cards/faq-columns-cards.modal.mjs +1 -1
  153. package/esm2022/lib/sections/faq-section/faq-section.component.mjs +3 -3
  154. package/esm2022/lib/sections/faq-section/faq-section.modal.mjs +1 -1
  155. package/esm2022/lib/sections/feature-experience-section/feature-experience-section.component.mjs +3 -3
  156. package/esm2022/lib/sections/feature-experience-section/feature-experience-section.modal.mjs +1 -1
  157. package/esm2022/lib/sections/features-section/features-section.component.mjs +3 -3
  158. package/esm2022/lib/sections/features-section/features-section.model.mjs +1 -1
  159. package/esm2022/lib/sections/footer/footer.component.mjs +3 -3
  160. package/esm2022/lib/sections/footer/footer.modal.mjs +1 -1
  161. package/esm2022/lib/sections/four-features-centered-image/four-features-centered-image.component.mjs +3 -3
  162. package/esm2022/lib/sections/four-features-centered-image/four-features-centered-image.modal.mjs +1 -1
  163. package/esm2022/lib/sections/header-section/header-section.component.mjs +3 -3
  164. package/esm2022/lib/sections/header-section/header-section.model.mjs +1 -1
  165. package/esm2022/lib/sections/header-text/header-text.component.mjs +3 -3
  166. package/esm2022/lib/sections/header-text/header-text.model.mjs +1 -1
  167. package/esm2022/lib/sections/image-background/image-background/image-background.component.mjs +3 -3
  168. package/esm2022/lib/sections/image-background/image-background/image-background.component.model.mjs +1 -1
  169. package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +3 -3
  170. package/esm2022/lib/sections/image-carousel-section/image-carousel.model.mjs +1 -1
  171. package/esm2022/lib/sections/image-grid-hotspot/image-grid-hotspot.component.mjs +3 -3
  172. package/esm2022/lib/sections/image-grid-hotspot/image-grid-hotspot.model.mjs +1 -1
  173. package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +3 -3
  174. package/esm2022/lib/sections/image-grid-section/image-grid-section.model.mjs +1 -1
  175. package/esm2022/lib/sections/image-section/image-section.component.mjs +3 -3
  176. package/esm2022/lib/sections/image-section/image-section.model.mjs +1 -1
  177. package/esm2022/lib/sections/location-section/location-section.component.mjs +3 -3
  178. package/esm2022/lib/sections/location-section/location-section.modal.mjs +1 -1
  179. package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +3 -3
  180. package/esm2022/lib/sections/logo-showcase/logo-showcase.modal.mjs +1 -1
  181. package/esm2022/lib/sections/moving-text/moving-text.component.mjs +3 -3
  182. package/esm2022/lib/sections/moving-text/moving-text.modal.mjs +1 -1
  183. package/esm2022/lib/sections/new-services/new-services.component.mjs +3 -3
  184. package/esm2022/lib/sections/new-services/new-services.model.mjs +1 -1
  185. package/esm2022/lib/sections/new-testimonials/new-testimonials.component.mjs +3 -3
  186. package/esm2022/lib/sections/new-testimonials/new-testimonials.model.mjs +1 -1
  187. package/esm2022/lib/sections/news-letter-component/news-letter-component.component.mjs +3 -3
  188. package/esm2022/lib/sections/news-letter-component/news-letter.modal.mjs +1 -1
  189. package/esm2022/lib/sections/overlapping-image/overlapping-image.component.mjs +3 -3
  190. package/esm2022/lib/sections/overlapping-image/overlapping-image.component.modal.mjs +1 -1
  191. package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +3 -3
  192. package/esm2022/lib/sections/pricing-section/pricing-section.modal.mjs +1 -1
  193. package/esm2022/lib/sections/process-modern/process-modern.component.mjs +3 -3
  194. package/esm2022/lib/sections/process-modern/process-modern.model.mjs +1 -1
  195. package/esm2022/lib/sections/process-section/process-section.component.mjs +3 -3
  196. package/esm2022/lib/sections/process-section/process-section.modal.mjs +1 -1
  197. package/esm2022/lib/sections/product-info-section/product-info-section.component.mjs +3 -3
  198. package/esm2022/lib/sections/product-info-section/product-info-section.component.modal.mjs +1 -1
  199. package/esm2022/lib/sections/property-component/property-component.component.mjs +3 -3
  200. package/esm2022/lib/sections/property-component/property-component.modal.mjs +1 -1
  201. package/esm2022/lib/sections/property-list/property-list.component.mjs +3 -3
  202. package/esm2022/lib/sections/property-list/property-list.modal.mjs +1 -1
  203. package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.component.mjs +3 -3
  204. package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.model.mjs +1 -1
  205. package/esm2022/lib/sections/registration-form/registration-form.component.mjs +3 -3
  206. package/esm2022/lib/sections/registration-form/registrationForm.model.mjs +1 -1
  207. package/esm2022/lib/sections/scheme-detail/scheme-detail.component.mjs +3 -3
  208. package/esm2022/lib/sections/scheme-detail/scheme-detail.modal.mjs +1 -1
  209. package/esm2022/lib/sections/service-section/service-section.component.mjs +3 -3
  210. package/esm2022/lib/sections/service-section/service-section.model.mjs +1 -1
  211. package/esm2022/lib/sections/skeleton-loader-section/skeleton-loader-section.component.mjs +3 -3
  212. package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +3 -3
  213. package/esm2022/lib/sections/team-member-section/team-member-section.model.mjs +1 -1
  214. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +3 -3
  215. package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.model.mjs +1 -1
  216. package/esm2022/lib/sections/testimonial-masonry/testimonial-masonry.component.mjs +3 -3
  217. package/esm2022/lib/sections/testimonial-masonry/testimonial-masonry.model.mjs +1 -1
  218. package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +3 -3
  219. package/esm2022/lib/sections/testimonial-section/testimonial-section.model.mjs +1 -1
  220. package/esm2022/lib/sections/testimonial-slider/testimonial-slider.component.mjs +3 -3
  221. package/esm2022/lib/sections/testimonial-slider/testimonial-slider.model.mjs +1 -1
  222. package/esm2022/lib/sections/testimonial-video/testimonial-video.component.mjs +3 -3
  223. package/esm2022/lib/sections/testimonial-video/testimonial-video.model.mjs +1 -1
  224. package/esm2022/lib/sections/text-section/text-section.model.mjs +1 -1
  225. package/esm2022/lib/sections/usp-video-section/usp-video-section.component.mjs +3 -3
  226. package/esm2022/lib/sections/usp-video-section/usp-video-section.model.mjs +1 -1
  227. package/esm2022/lib/sections/video-carousel-section/video-carousel-section.component.mjs +3 -3
  228. package/esm2022/lib/sections/video-carousel-section/video-carousel.model.mjs +1 -1
  229. package/esm2022/lib/sections/video-grid-section/video-grid-section.component.mjs +3 -3
  230. package/esm2022/lib/sections/video-grid-section/video-grid-section.model.mjs +1 -1
  231. package/esm2022/lib/sections/video-section/video-section.component.mjs +3 -3
  232. package/esm2022/lib/sections/video-section/video-section.model.mjs +1 -1
  233. package/esm2022/lib/sections/video-showcase/video-showcase.component.mjs +3 -3
  234. package/esm2022/lib/sections/view-blog/view-blog.component.mjs +3 -3
  235. package/esm2022/lib/services/analytics.service.mjs +1 -1
  236. package/esm2022/lib/services/booking-product-cart.service.mjs +1 -1
  237. package/esm2022/lib/services/cart.service.mjs +1 -1
  238. package/esm2022/lib/services/endUser.service.mjs +1 -1
  239. package/esm2022/lib/services/image-upload-service.service.mjs +1 -1
  240. package/esm2022/lib/services/rest.service.mjs +2 -2
  241. package/esm2022/lib/services/sanitizeHtml.mjs +1 -1
  242. package/esm2022/lib/services/scheme-plan.service.mjs +189 -0
  243. package/esm2022/lib/services/storage.service.mjs +1 -1
  244. package/esm2022/lib/styles/gradient-extension.mjs +1 -1
  245. package/esm2022/lib/styles/index.mjs +1 -1
  246. package/esm2022/lib/styles/style.model.mjs +1 -1
  247. package/esm2022/lib/styles/text-size.extension.mjs +1 -1
  248. package/esm2022/lib/styles/types.mjs +1 -1
  249. package/esm2022/lib/tokens/api-token.mjs +1 -1
  250. package/esm2022/lib/utils/list-route.util.mjs +1 -1
  251. package/esm2022/public-api.mjs +2 -1
  252. package/fesm2022/simpo-component-library.mjs +711 -347
  253. package/fesm2022/simpo-component-library.mjs.map +1 -1
  254. package/lib/ecommerce/sections/featured-brand/featured-brand.component.d.ts +1 -1
  255. package/lib/ecommerce/sections/featured-category/featured-category.component.d.ts +1 -1
  256. package/lib/ecommerce/sections/featured-category/featured-collection.component.d.ts +1 -1
  257. package/lib/ecommerce/sections/new-collection/new-collection.component.d.ts +1 -1
  258. package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +33 -3
  259. package/lib/ecommerce/sections/product-desc/product-desc.modal.d.ts +8 -0
  260. package/lib/ecommerce/sections/product-desc/scheme-plan-dialog/scheme-plan-dialog.component.d.ts +44 -0
  261. package/lib/sections/image-grid-hotspot/image-grid-hotspot.component.d.ts +1 -1
  262. package/lib/sections/image-grid-section/image-grid-section.component.d.ts +1 -1
  263. package/lib/services/scheme-plan.service.d.ts +87 -0
  264. package/package.json +1 -1
  265. package/public-api.d.ts +1 -0
  266. package/simpo-component-library-3.8.12.tgz +0 -0
  267. package/simpo-component-library-3.8.9.tgz +0 -0
@@ -36,7 +36,7 @@ export declare class FeaturedBrandComponent extends BaseSection {
36
36
  get getDirection(): "ROW" | "COLUMN" | undefined;
37
37
  get stylesLayout(): LayOutModel;
38
38
  get isMobile(): boolean;
39
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
39
+ getJustifyContent(): "" | import("simpo-component-library").ALIGN | "flex-start";
40
40
  static ɵfac: i0.ɵɵFactoryDeclaration<FeaturedBrandComponent, never>;
41
41
  static ɵcmp: i0.ɵɵComponentDeclaration<FeaturedBrandComponent, "simpo-featured-brand", 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>;
42
42
  }
@@ -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
  }
@@ -33,7 +33,7 @@ export declare class NewCollectionComponent extends BaseSection {
33
33
  get isMobile(): boolean;
34
34
  editSection(): void;
35
35
  getColor(color: any): "#000000" | "#ffffff";
36
- getJustifyContent(): import("simpo-component-library").ALIGN | "" | "flex-start";
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
  }
@@ -1,4 +1,4 @@
1
- import { ElementRef, Renderer2 } from '@angular/core';
1
+ import { DoCheck, ElementRef, Renderer2 } from '@angular/core';
2
2
  import { ProductDescModal, ProductDescStylesModal } from './product-desc.modal';
3
3
  import { ItemImage, ItemVariant, Product } from '../../styles/product.modal';
4
4
  import { BackgroundModel, ButtonModel, LayOutModel } from '../../../styles/style.model';
@@ -16,8 +16,9 @@ import { MatBottomSheet } from '@angular/material/bottom-sheet';
16
16
  import { CustomerReviewComponent } from '../../sections/customer-review/customer-review.component';
17
17
  import { AnalyticsService } from '../../../services/analytics.service';
18
18
  import { BookingProductCartService } from '../../../services/booking-product-cart.service';
19
+ import { SchemePlan, SchemePlanService } from '../../../services/scheme-plan.service';
19
20
  import * as i0 from "@angular/core";
20
- export declare class ProductDescComponent extends BaseSection {
21
+ export declare class ProductDescComponent extends BaseSection implements DoCheck {
21
22
  private platformId;
22
23
  private readonly _eventService;
23
24
  private readonly router;
@@ -33,6 +34,7 @@ export declare class ProductDescComponent extends BaseSection {
33
34
  private matDialog;
34
35
  private analyticsService;
35
36
  private readonly bookingProductCartService;
37
+ private readonly schemePlanService;
36
38
  reviewComponent: CustomerReviewComponent;
37
39
  aboveHeight: ElementRef<HTMLDivElement>;
38
40
  container: ElementRef<HTMLDivElement>;
@@ -56,7 +58,7 @@ export declare class ProductDescComponent extends BaseSection {
56
58
  showReview: boolean;
57
59
  selectedReview: any;
58
60
  currentImageIndex: number;
59
- constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService, storageService: StorageServiceService, messageService: MessageService, metaTagService: Meta, titleService: Title, bottomSheet: MatBottomSheet, renderer: Renderer2, matDialog: MatDialog, analyticsService: AnalyticsService, bookingProductCartService: BookingProductCartService);
61
+ constructor(platformId: Object, _eventService: EventsService, router: Router, activatedRoute: ActivatedRoute, restService: RestService, cartService: CartService, storageService: StorageServiceService, messageService: MessageService, metaTagService: Meta, titleService: Title, bottomSheet: MatBottomSheet, renderer: Renderer2, matDialog: MatDialog, analyticsService: AnalyticsService, bookingProductCartService: BookingProductCartService, schemePlanService: SchemePlanService);
60
62
  buttonId?: string;
61
63
  button?: ButtonModel;
62
64
  styles?: ProductDescStylesModal;
@@ -176,6 +178,34 @@ export declare class ProductDescComponent extends BaseSection {
176
178
  getScheduleVideoCallButtonStyle(): import("../../../styles/style.model").ButtonStyleModel | undefined;
177
179
  getTryAtHomeButtonId(): string;
178
180
  getTryAtHomeButtonStyle(): import("../../../styles/style.model").ButtonStyleModel | undefined;
181
+ /** First active AMOUNT scheme of the business, or null (no Passbook app / no eligible scheme). */
182
+ planScheme: any;
183
+ private schemePlanRequested;
184
+ /**
185
+ * Config switch `content.display.showSchemePlan`: on when `true` or when the key is missing, off only
186
+ * when it is `false`. Read on every check (not once at init) so toggling it in the editor takes effect
187
+ * live.
188
+ */
189
+ get schemePlanEnabled(): boolean;
190
+ /**
191
+ * The plan is fetched lazily, the first time the switch is on. It does not depend on the site type. That
192
+ * fetch checks the second condition (Passbook app installed) and finds an eligible scheme, so
193
+ * businesses with the switch off make no extra requests, and turning it on later still loads the plan.
194
+ */
195
+ ngDoCheck(): void;
196
+ /** Plan for the product + variant currently on screen; follows the displayed selling price. */
197
+ get schemePlan(): SchemePlan | null;
198
+ /** Colour used for the button and the modal's accents (the section's accent colour). */
199
+ private get planAccentColor();
200
+ private static readonly SCHEME_PLAN_BUTTON;
201
+ private static readonly SCHEME_PLAN_DEFAULT_LABEL;
202
+ /** Named button for the plan, created on first use as an accent-coloured outline button. */
203
+ private ensureSchemePlanButton;
204
+ getSchemePlanButtonId(): string;
205
+ getSchemePlanButtonStyle(): import("../../../styles/style.model").ButtonStyleModel | undefined;
206
+ /** "10+1 MONTHLY PLAN" from the scheme, unless the owner gave the button their own label. */
207
+ getSchemePlanLabel(plan: SchemePlan): string;
208
+ openSchemePlan(): void;
179
209
  getRatings(noofratings: any): any;
180
210
  /**
181
211
  * "Try at Home" feeds the Home Visit booking flow (BookingGroup.productLines, submitted
@@ -26,4 +26,12 @@ export interface ProductDescContentModal {
26
26
  button: string;
27
27
  socialLinks: FooterSocialLinkModel;
28
28
  inputText: InputTextModel[];
29
+ display?: ProductDescDisplayModel;
30
+ }
31
+ export interface ProductDescDisplayModel {
32
+ showHeading?: boolean;
33
+ showContent?: boolean;
34
+ showButton?: boolean;
35
+ /** Monthly savings plan button on the PDP. On when true or when the key is missing. */
36
+ showSchemePlan?: boolean;
29
37
  }
@@ -0,0 +1,44 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { MatDialogRef } from '@angular/material/dialog';
3
+ import { Router } from '@angular/router';
4
+ import { SchemePlan, SchemePlanService, SchemePlanStaff, SchemePlanStore } from '../../../../services/scheme-plan.service';
5
+ import * as i0 from "@angular/core";
6
+ export interface SchemePlanDialogData {
7
+ scheme: any;
8
+ plan: SchemePlan;
9
+ accentColor?: string;
10
+ }
11
+ /** Value the dialog closes with when the shopper has to log in before enrolling. */
12
+ export declare const SCHEME_PLAN_LOGIN_REQUIRED = "LOGIN_REQUIRED";
13
+ export declare class SchemePlanDialogComponent implements OnInit {
14
+ private readonly dialogRef;
15
+ private readonly schemePlanService;
16
+ private readonly router;
17
+ readonly scheme: any;
18
+ readonly plan: SchemePlan;
19
+ readonly accentColor: string;
20
+ readonly steps: {
21
+ icon: string;
22
+ label: string;
23
+ }[];
24
+ stores: SchemePlanStore[];
25
+ staffMembers: SchemePlanStaff[];
26
+ selectedStoreId: string;
27
+ selectedStaffId: string;
28
+ loading: boolean;
29
+ errorMessage: string;
30
+ constructor(data: SchemePlanDialogData, dialogRef: MatDialogRef<SchemePlanDialogComponent>, schemePlanService: SchemePlanService, router: Router);
31
+ ngOnInit(): void;
32
+ /** The shopper must pick a store when there is more than one (the PDP has no other store picker). */
33
+ get needsStore(): boolean;
34
+ get needsStaff(): boolean;
35
+ /** Part of the product the plan can't cover (when even the maximum instalment falls short). */
36
+ get shortfall(): number;
37
+ get noStoreAvailable(): boolean;
38
+ get canStart(): boolean;
39
+ close(): void;
40
+ goToTermsAndCondition(event: Event): void;
41
+ start(): void;
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<SchemePlanDialogComponent, never>;
43
+ static ɵcmp: i0.ɵɵComponentDeclaration<SchemePlanDialogComponent, "simpo-scheme-plan-dialog", never, {}, {}, never, never, true, never>;
44
+ }
@@ -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;
@@ -0,0 +1,87 @@
1
+ import { Observable } from 'rxjs';
2
+ import { RestService } from './rest.service';
3
+ import { StorageServiceService } from './storage.service';
4
+ import { EventsService } from './events.service';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Everything the product page needs to show a "10+1 monthly plan" for the product being viewed.
8
+ * Numbers follow the same rules as the Returns Calculator section: `maturityCount - 1`
9
+ * instalments are paid and the scheme benefit (a % of one instalment) is added on top.
10
+ */
11
+ export interface SchemePlan {
12
+ productValue: number;
13
+ /** Recommended monthly instalment. */
14
+ amount: number;
15
+ /** Number of instalments the customer actually pays (maturityCount - 1). */
16
+ paidMonths: number;
17
+ maturityCount: number;
18
+ totalPayment: number;
19
+ benefitPercent: number;
20
+ benefitAmount: number;
21
+ /** Jewellery the customer can buy after the plan (payment + benefit). */
22
+ jewelleryWorth: number;
23
+ /** What the customer effectively pays for that jewellery (same as totalPayment). */
24
+ effectivePay: number;
25
+ /** benefit / jewelleryWorth, in percent, rounded to 2 decimals. */
26
+ discountPercent: number;
27
+ /** e.g. "10+1 MONTHLY PLAN" */
28
+ label: string;
29
+ /** e.g. "100% Discount on 11th installment" */
30
+ benefitLabel: string;
31
+ /** e.g. "After 11th month" */
32
+ maturityLabel: string;
33
+ }
34
+ export interface SchemePlanStore {
35
+ id: string;
36
+ name: string;
37
+ }
38
+ export interface SchemePlanStaff {
39
+ id: string;
40
+ name: string;
41
+ }
42
+ export type SchemePlanEnrollResult = 'STARTED' | 'LOGIN_REQUIRED';
43
+ export declare class SchemePlanService {
44
+ private readonly restService;
45
+ private readonly storageService;
46
+ private readonly eventService;
47
+ constructor(restService: RestService, storageService: StorageServiceService, eventService: EventsService);
48
+ /**
49
+ * First active AMOUNT scheme whose benefit is "percent of one monthly instalment". Other benefit
50
+ * types (SCHEME / DISCOUNT) and GOLD_PROTECTION schemes don't fit the one-amount plan layout.
51
+ */
52
+ pickPlanScheme(schemes: any[] | null | undefined): any | null;
53
+ /**
54
+ * Resolves to the scheme to advertise on the product page, or null when the business has no
55
+ * Passbook app, no eligible scheme, or the calls fail (the button then simply isn't shown).
56
+ */
57
+ loadPlanScheme(): Observable<any | null>;
58
+ loadStaff(): Observable<SchemePlanStaff[]>;
59
+ /** Highest value of `jewellerBenefit` (same rule the Returns Calculator uses). */
60
+ highestBenefit(scheme: any): number;
61
+ /**
62
+ * A stand-in product value used only to *display* the plan button in an editor preview that has no
63
+ * real product (so no price). The button label depends on the scheme, not on this number.
64
+ */
65
+ sampleProductValue(scheme: any): number;
66
+ /**
67
+ * Builds the plan for a product worth `productValue`.
68
+ *
69
+ * Recommended amount = smallest multiple of `valueStep` whose jewellery worth
70
+ * (`amount * (paidMonths + benefit%/100)`) covers the product, clamped to the scheme's
71
+ * min/max instalment. If even the maximum doesn't cover the product, the maximum is used.
72
+ */
73
+ buildPlan(scheme: any, productValue: number): SchemePlan | null;
74
+ ordinal(n: number): string;
75
+ private round2;
76
+ /**
77
+ * Same sequence the Returns Calculator uses: charges check, then initiate payment, then hand the
78
+ * Cashfree session to the host app through `cashFreeEvent`. Differences: a 403 refreshes the token
79
+ * and retries the charges call once, and failures are surfaced to the caller (the observable errors).
80
+ */
81
+ enroll(scheme: any, amount: number, store: SchemePlanStore | null, staff: SchemePlanStaff | null): Observable<SchemePlanEnrollResult>;
82
+ private refreshToken;
83
+ private buildPayload;
84
+ private readStorage;
85
+ static ɵfac: i0.ɵɵFactoryDeclaration<SchemePlanService, never>;
86
+ static ɵprov: i0.ɵɵInjectableDeclaration<SchemePlanService>;
87
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simpo-component-library",
3
- "version": "3.8.9",
3
+ "version": "3.8.12",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",
package/public-api.d.ts CHANGED
@@ -87,6 +87,7 @@ export * from './lib/sections/button-grid-section/button-grid-section.component'
87
87
  export * from './lib/sections/faq-columns-cards/faq-columns-cards.component';
88
88
  export * from './lib/services/events.service';
89
89
  export * from './lib/services/endUser.service';
90
+ export * from './lib/services/scheme-plan.service';
90
91
  export * from './lib/services/sanitizeHtml';
91
92
  export * from './lib/tokens/api-token';
92
93
  export * from './lib/services/storage-like';
Binary file