simpo-component-library 3.8.9 → 3.8.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +24 -24
- package/esm2022/lib/components/delete-hover-element/delete-hover-element.component.mjs +3 -3
- package/esm2022/lib/components/deprecated-section/deprecated-section.component.mjs +1 -1
- package/esm2022/lib/components/document/document.component.mjs +3 -3
- package/esm2022/lib/components/image-loading/image-loading.component.mjs +3 -3
- package/esm2022/lib/components/payment-details/payment-details.component.mjs +3 -3
- package/esm2022/lib/constants/business.constant.mjs +1 -1
- package/esm2022/lib/directive/alignment.directive.mjs +1 -1
- package/esm2022/lib/directive/blur-content.directive.mjs +1 -1
- package/esm2022/lib/directive/borderlessImage.directive.mjs +1 -1
- package/esm2022/lib/directive/button-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/button-editor.directive.mjs +1 -1
- package/esm2022/lib/directive/color.directive.mjs +1 -1
- package/esm2022/lib/directive/column-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/container-alignment.directive.mjs +1 -1
- package/esm2022/lib/directive/container-fir.directive.mjs +1 -1
- package/esm2022/lib/directive/content-title-spacing.directive.mjs +1 -1
- package/esm2022/lib/directive/contenteditable.directive.mjs +1 -1
- package/esm2022/lib/directive/corner-directive.mjs +1 -1
- package/esm2022/lib/directive/height.directive.mjs +1 -1
- package/esm2022/lib/directive/hover-animation.directive.mjs +1 -1
- package/esm2022/lib/directive/hoverborder.directive.mjs +1 -1
- package/esm2022/lib/directive/icon-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/image-container.directive.mjs +1 -1
- package/esm2022/lib/directive/image-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/image-editor.directive.mjs +1 -1
- package/esm2022/lib/directive/image-position.directive.mjs +1 -1
- package/esm2022/lib/directive/letters-only.directive.mjs +1 -1
- package/esm2022/lib/directive/merge-header.directive.mjs +1 -1
- package/esm2022/lib/directive/numbers-only.directive.mjs +1 -1
- package/esm2022/lib/directive/position-layout-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/set-dynamic-background.directive.mjs +1 -1
- package/esm2022/lib/directive/spacing-around.directive.mjs +1 -1
- package/esm2022/lib/directive/spacing-horizontal.directive.mjs +1 -1
- package/esm2022/lib/directive/spacing.directive.mjs +1 -1
- package/esm2022/lib/directive/sticky-directive.mjs +1 -1
- package/esm2022/lib/directive/text-background-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/text-size.directive.mjs +1 -1
- package/esm2022/lib/directive/translate-onhover.directive.mjs +1 -1
- package/esm2022/lib/directive/video-directive.directive.mjs +1 -1
- package/esm2022/lib/directive/wrap-containers.directive.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/address/address.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/authenticate-user/authenticate-user.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/book-appointment/book-appointment.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/brands-with-image-background-columns/brands-with-image-background-columns.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/cart/cart.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/categories-with-image-background-columns/categories-with-image-background-columns.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/category-product/category-product.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/category-product/category-product.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/checkout/checkout.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/checkout/checkout.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/customer-review/customer-review.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/customer-review/customer-review.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/enrollment-form/enrollment-form.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/enrollment-form/enrollment-form.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/featured-brand/featured-brand.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/featured-brand/featured-brand.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/featured-category/featured-collection.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/featured-products/featured-products.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/item-varient/item-varient.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/new-collection/new-collection.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/new-collection/new-collection.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/order-details/order-details.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/pagnination/pagnination.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/passbook-transactions/passbook-transactions.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/product-category-list/product-category-list.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.component.mjs +96 -14
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/product-desc/scheme-plan-dialog/scheme-plan-dialog.component.mjs +106 -0
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/product-list/product-list.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/refer-earn/refer-earn.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/refer-earn/refer-earn.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/returns-calculator/returns-calculator.component.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/returns-calculator/returns-calculator.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/scheme-details/scheme-details.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/scheme-selection/scheme-selection.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/schemes/schemes.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/schemes/schemes.component.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/small-product-listing/small-product-listing.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/store-list/store-list.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/store-list/store-list.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/store-page/store-page.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/store-page/store-page.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/user-basic-info/user-basic-info.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/user-profile/user-profile.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.component.mjs +3 -3
- package/esm2022/lib/ecommerce/sections/verify-payment/verify-payment.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/whislist/whislist.component.mjs +3 -3
- package/esm2022/lib/ecommerce/styles/BaseCollection.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/Brand.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/Collection.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/OrderedItems.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/PincodeLocation.model.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/PincodeLocationInter.model.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/cart.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/category.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/order.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/product.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/review.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/user.modal.mjs +1 -1
- package/esm2022/lib/elements/add-section/add-section.component.mjs +3 -3
- package/esm2022/lib/elements/address-list/address-list.component.mjs +3 -3
- package/esm2022/lib/elements/below-image-card/below-image-card.component.mjs +3 -3
- package/esm2022/lib/elements/button/button.component.mjs +3 -3
- package/esm2022/lib/elements/button/button.model.mjs +1 -1
- package/esm2022/lib/elements/card-skeleton-loader/card-skeleton-loader.component.mjs +3 -3
- package/esm2022/lib/elements/covering-image-card/covering-image-card.component.mjs +3 -3
- package/esm2022/lib/elements/editor-service.service.mjs +1 -1
- package/esm2022/lib/elements/heading-element/heading-element.component.mjs +3 -3
- package/esm2022/lib/elements/index.mjs +1 -1
- package/esm2022/lib/elements/link-editor/link-editor.component.mjs +3 -3
- package/esm2022/lib/elements/list-home-appointment/list-home-appointment.component.mjs +3 -3
- package/esm2022/lib/elements/media-selector/media-selector.component.mjs +3 -3
- package/esm2022/lib/elements/my-bookings/my-bookings.component.mjs +3 -3
- package/esm2022/lib/elements/portfolio/portfolio.component.mjs +3 -3
- package/esm2022/lib/elements/pricing-s1/pricing-s1.component.mjs +3 -3
- package/esm2022/lib/elements/property/property.component.mjs +3 -3
- package/esm2022/lib/elements/simpo-button/simpo-button.component.mjs +3 -3
- package/esm2022/lib/elements/svg-divider/svg-divider.component.mjs +3 -3
- package/esm2022/lib/elements/text/text.component.mjs +3 -3
- package/esm2022/lib/elements/text-editor/text-editor.component.mjs +9 -9
- package/esm2022/lib/elements/top-of-image-card/top-of-image-card.component.mjs +3 -3
- package/esm2022/lib/pipes/amount.pipe.mjs +1 -1
- package/esm2022/lib/pipes/gender.pipe.mjs +1 -1
- package/esm2022/lib/sections/BaseSection.mjs +1 -1
- package/esm2022/lib/sections/add-new-section/add-new-section.component.mjs +3 -3
- package/esm2022/lib/sections/appointment-form/appointment-booking/appointment-booking/appointment-booking.component.mjs +3 -3
- package/esm2022/lib/sections/appointment-form/appointment-form.model.mjs +1 -1
- package/esm2022/lib/sections/banner-carousel/banner-carousel.component.mjs +3 -3
- package/esm2022/lib/sections/banner-carousel/banner-carousel.model.mjs +1 -1
- package/esm2022/lib/sections/banner-grid-section/banner-grid-section.component.mjs +3 -3
- package/esm2022/lib/sections/blog-list/blog-category.model.mjs +1 -1
- package/esm2022/lib/sections/blog-list/blog-list.component.mjs +3 -3
- package/esm2022/lib/sections/blog-list/blog-list.model.mjs +1 -1
- package/esm2022/lib/sections/brand-story-section/brand-story-section.component.mjs +3 -3
- package/esm2022/lib/sections/brand-story-section/brand-story-section.modal.mjs +1 -1
- package/esm2022/lib/sections/button-grid-section/button-grid-section.component.mjs +3 -3
- package/esm2022/lib/sections/choose-us-section/choose-us-section.component.mjs +3 -3
- package/esm2022/lib/sections/choose-us-section/choose-us-section.model.mjs +1 -1
- package/esm2022/lib/sections/condensed-and-gradient/condensed-and-gradient.component.mjs +3 -3
- package/esm2022/lib/sections/countdown-banner/countdown-banner.component.mjs +3 -3
- package/esm2022/lib/sections/countdown-banner/countdown-banner.component.model.mjs +1 -1
- package/esm2022/lib/sections/faq-columns-cards/faq-columns-cards.component.mjs +3 -3
- package/esm2022/lib/sections/faq-columns-cards/faq-columns-cards.modal.mjs +1 -1
- package/esm2022/lib/sections/faq-section/faq-section.component.mjs +3 -3
- package/esm2022/lib/sections/faq-section/faq-section.modal.mjs +1 -1
- package/esm2022/lib/sections/feature-experience-section/feature-experience-section.component.mjs +3 -3
- package/esm2022/lib/sections/feature-experience-section/feature-experience-section.modal.mjs +1 -1
- package/esm2022/lib/sections/features-section/features-section.component.mjs +3 -3
- package/esm2022/lib/sections/features-section/features-section.model.mjs +1 -1
- package/esm2022/lib/sections/footer/footer.component.mjs +3 -3
- package/esm2022/lib/sections/footer/footer.modal.mjs +1 -1
- package/esm2022/lib/sections/four-features-centered-image/four-features-centered-image.component.mjs +3 -3
- package/esm2022/lib/sections/four-features-centered-image/four-features-centered-image.modal.mjs +1 -1
- package/esm2022/lib/sections/header-section/header-section.component.mjs +3 -3
- package/esm2022/lib/sections/header-section/header-section.model.mjs +1 -1
- package/esm2022/lib/sections/header-text/header-text.component.mjs +3 -3
- package/esm2022/lib/sections/header-text/header-text.model.mjs +1 -1
- package/esm2022/lib/sections/image-background/image-background/image-background.component.mjs +3 -3
- package/esm2022/lib/sections/image-background/image-background/image-background.component.model.mjs +1 -1
- package/esm2022/lib/sections/image-carousel-section/image-carousel-section.component.mjs +3 -3
- package/esm2022/lib/sections/image-carousel-section/image-carousel.model.mjs +1 -1
- package/esm2022/lib/sections/image-grid-hotspot/image-grid-hotspot.component.mjs +3 -3
- package/esm2022/lib/sections/image-grid-hotspot/image-grid-hotspot.model.mjs +1 -1
- package/esm2022/lib/sections/image-grid-section/image-grid-section.component.mjs +3 -3
- package/esm2022/lib/sections/image-grid-section/image-grid-section.model.mjs +1 -1
- package/esm2022/lib/sections/image-section/image-section.component.mjs +3 -3
- package/esm2022/lib/sections/image-section/image-section.model.mjs +1 -1
- package/esm2022/lib/sections/location-section/location-section.component.mjs +3 -3
- package/esm2022/lib/sections/location-section/location-section.modal.mjs +1 -1
- package/esm2022/lib/sections/logo-showcase/logo-showcase.component.mjs +3 -3
- package/esm2022/lib/sections/logo-showcase/logo-showcase.modal.mjs +1 -1
- package/esm2022/lib/sections/moving-text/moving-text.component.mjs +3 -3
- package/esm2022/lib/sections/moving-text/moving-text.modal.mjs +1 -1
- package/esm2022/lib/sections/new-services/new-services.component.mjs +3 -3
- package/esm2022/lib/sections/new-services/new-services.model.mjs +1 -1
- package/esm2022/lib/sections/new-testimonials/new-testimonials.component.mjs +3 -3
- package/esm2022/lib/sections/new-testimonials/new-testimonials.model.mjs +1 -1
- package/esm2022/lib/sections/news-letter-component/news-letter-component.component.mjs +3 -3
- package/esm2022/lib/sections/news-letter-component/news-letter.modal.mjs +1 -1
- package/esm2022/lib/sections/overlapping-image/overlapping-image.component.mjs +3 -3
- package/esm2022/lib/sections/overlapping-image/overlapping-image.component.modal.mjs +1 -1
- package/esm2022/lib/sections/pricing-section/pricing-section.component.mjs +3 -3
- package/esm2022/lib/sections/pricing-section/pricing-section.modal.mjs +1 -1
- package/esm2022/lib/sections/process-modern/process-modern.component.mjs +3 -3
- package/esm2022/lib/sections/process-modern/process-modern.model.mjs +1 -1
- package/esm2022/lib/sections/process-section/process-section.component.mjs +3 -3
- package/esm2022/lib/sections/process-section/process-section.modal.mjs +1 -1
- package/esm2022/lib/sections/product-info-section/product-info-section.component.mjs +3 -3
- package/esm2022/lib/sections/product-info-section/product-info-section.component.modal.mjs +1 -1
- package/esm2022/lib/sections/property-component/property-component.component.mjs +3 -3
- package/esm2022/lib/sections/property-component/property-component.modal.mjs +1 -1
- package/esm2022/lib/sections/property-list/property-list.component.mjs +3 -3
- package/esm2022/lib/sections/property-list/property-list.modal.mjs +1 -1
- package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.component.mjs +3 -3
- package/esm2022/lib/sections/recent-blog-post-section/recent-blog-post-section.model.mjs +1 -1
- package/esm2022/lib/sections/registration-form/registration-form.component.mjs +3 -3
- package/esm2022/lib/sections/registration-form/registrationForm.model.mjs +1 -1
- package/esm2022/lib/sections/scheme-detail/scheme-detail.component.mjs +3 -3
- package/esm2022/lib/sections/scheme-detail/scheme-detail.modal.mjs +1 -1
- package/esm2022/lib/sections/service-section/service-section.component.mjs +3 -3
- package/esm2022/lib/sections/service-section/service-section.model.mjs +1 -1
- package/esm2022/lib/sections/skeleton-loader-section/skeleton-loader-section.component.mjs +3 -3
- package/esm2022/lib/sections/team-member-section/team-member-section.component.mjs +3 -3
- package/esm2022/lib/sections/team-member-section/team-member-section.model.mjs +1 -1
- package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.component.mjs +3 -3
- package/esm2022/lib/sections/testimonial-fullwidth/testimonial-fullwidth.model.mjs +1 -1
- package/esm2022/lib/sections/testimonial-masonry/testimonial-masonry.component.mjs +3 -3
- package/esm2022/lib/sections/testimonial-masonry/testimonial-masonry.model.mjs +1 -1
- package/esm2022/lib/sections/testimonial-section/testimonial-section.component.mjs +3 -3
- package/esm2022/lib/sections/testimonial-section/testimonial-section.model.mjs +1 -1
- package/esm2022/lib/sections/testimonial-slider/testimonial-slider.component.mjs +3 -3
- package/esm2022/lib/sections/testimonial-slider/testimonial-slider.model.mjs +1 -1
- package/esm2022/lib/sections/testimonial-video/testimonial-video.component.mjs +3 -3
- package/esm2022/lib/sections/testimonial-video/testimonial-video.model.mjs +1 -1
- package/esm2022/lib/sections/text-section/text-section.model.mjs +1 -1
- package/esm2022/lib/sections/usp-video-section/usp-video-section.component.mjs +3 -3
- package/esm2022/lib/sections/usp-video-section/usp-video-section.model.mjs +1 -1
- package/esm2022/lib/sections/video-carousel-section/video-carousel-section.component.mjs +3 -3
- package/esm2022/lib/sections/video-carousel-section/video-carousel.model.mjs +1 -1
- package/esm2022/lib/sections/video-grid-section/video-grid-section.component.mjs +3 -3
- package/esm2022/lib/sections/video-grid-section/video-grid-section.model.mjs +1 -1
- package/esm2022/lib/sections/video-section/video-section.component.mjs +3 -3
- package/esm2022/lib/sections/video-section/video-section.model.mjs +1 -1
- package/esm2022/lib/sections/video-showcase/video-showcase.component.mjs +3 -3
- package/esm2022/lib/sections/view-blog/view-blog.component.mjs +3 -3
- package/esm2022/lib/services/analytics.service.mjs +1 -1
- package/esm2022/lib/services/booking-product-cart.service.mjs +1 -1
- package/esm2022/lib/services/cart.service.mjs +1 -1
- package/esm2022/lib/services/endUser.service.mjs +1 -1
- package/esm2022/lib/services/image-upload-service.service.mjs +1 -1
- package/esm2022/lib/services/rest.service.mjs +2 -2
- package/esm2022/lib/services/sanitizeHtml.mjs +1 -1
- package/esm2022/lib/services/scheme-plan.service.mjs +180 -0
- package/esm2022/lib/services/storage.service.mjs +1 -1
- package/esm2022/lib/styles/gradient-extension.mjs +1 -1
- package/esm2022/lib/styles/index.mjs +1 -1
- package/esm2022/lib/styles/style.model.mjs +1 -1
- package/esm2022/lib/styles/text-size.extension.mjs +1 -1
- package/esm2022/lib/styles/types.mjs +1 -1
- package/esm2022/lib/tokens/api-token.mjs +1 -1
- package/esm2022/lib/utils/list-route.util.mjs +1 -1
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/simpo-component-library.mjs +694 -347
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/components/input-fields/input-fields.component.d.ts +1 -1
- package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts +1 -1
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +34 -4
- package/lib/ecommerce/sections/product-desc/product-desc.modal.d.ts +8 -0
- package/lib/ecommerce/sections/product-desc/scheme-plan-dialog/scheme-plan-dialog.component.d.ts +44 -0
- package/lib/ecommerce/sections/schemes/schemes.component.d.ts +1 -1
- package/lib/elements/link-editor/link-editor.component.d.ts +1 -1
- package/lib/sections/banner-carousel/banner-carousel.component.d.ts +2 -2
- package/lib/sections/carousel-banner/carousel-banner.component.d.ts +1 -1
- package/lib/sections/contact-us/contact-us.component.d.ts +1 -1
- package/lib/sections/faq-columns-cards/faq-columns-cards.component.d.ts +1 -1
- package/lib/sections/faq-section/faq-section.component.d.ts +1 -1
- package/lib/sections/image-section/image-section.component.d.ts +2 -2
- package/lib/sections/logo-showcase/logo-showcase.component.d.ts +2 -2
- package/lib/sections/new-testimonials/new-testimonials.component.d.ts +1 -1
- package/lib/sections/pricing-section/pricing-section.component.d.ts +2 -2
- package/lib/services/scheme-plan.service.d.ts +82 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/simpo-component-library-3.8.11.tgz +0 -0
- package/simpo-component-library-3.8.9.tgz +0 -0
|
@@ -13,7 +13,7 @@ export declare class InputFieldsComponent implements OnChanges {
|
|
|
13
13
|
constructor(elementRef: ElementRef);
|
|
14
14
|
ngOnChanges(changes: SimpleChanges): void;
|
|
15
15
|
handleMoneyInput(event: any): void;
|
|
16
|
-
get getTextColor(): "#
|
|
16
|
+
get getTextColor(): "#000" | "#FFF";
|
|
17
17
|
interpolateColor(color1: string, color2: string, factor: number): string;
|
|
18
18
|
padZero(str: string, length: number): string;
|
|
19
19
|
generateColorBasedOnNumber(number: number): string;
|
package/lib/ecommerce/sections/authentication-required/authentication-required.component.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ export declare class AuthenticationRequiredComponent extends BaseSection {
|
|
|
97
97
|
validateNumber(event: KeyboardEvent): void;
|
|
98
98
|
validateOTP(event: KeyboardEvent): void;
|
|
99
99
|
checkStrength(): void;
|
|
100
|
-
getStrengthColor(index: number): "
|
|
100
|
+
getStrengthColor(index: number): "tomato" | "#d3d3d3ba" | "orange" | "yellow" | "lightgreen";
|
|
101
101
|
emailDebounceTimer: any;
|
|
102
102
|
onEmailChange(): void;
|
|
103
103
|
emailCheck: boolean;
|
|
@@ -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;
|
|
@@ -131,7 +133,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
131
133
|
getHeaderColor(type: string): string;
|
|
132
134
|
formatItemCode(code: any): string | null;
|
|
133
135
|
getTextColor(color: any): "#000000" | "#ffffff";
|
|
134
|
-
getClass(map: any): "col-
|
|
136
|
+
getClass(map: any): "col-6" | "col-4" | "col-3" | "width-max";
|
|
135
137
|
onFindInStore(id: string): void;
|
|
136
138
|
onBookAppointment(): void;
|
|
137
139
|
isDetails: boolean;
|
|
@@ -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 section is an e-commerce page with the switch on. 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
|
}
|
package/lib/ecommerce/sections/product-desc/scheme-plan-dialog/scheme-plan-dialog.component.d.ts
ADDED
|
@@ -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
|
+
}
|
|
@@ -21,7 +21,7 @@ export declare class SchemesComponent extends BaseSection {
|
|
|
21
21
|
get stylesLayout(): LayOutModel;
|
|
22
22
|
get spacingLayout(): SpacingModel;
|
|
23
23
|
getParentClass(): "" | "overflow-scroll flex-nowrap";
|
|
24
|
-
getClass(index: number): "col-
|
|
24
|
+
getClass(index: number): "col-6" | "col-12" | "col-6 mb-2" | "col-12 mb-2";
|
|
25
25
|
showSchemeDetails(scheme: any): void;
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<SchemesComponent, never>;
|
|
27
27
|
static ɵcmp: i0.ɵɵComponentDeclaration<SchemesComponent, "simpo-schemes", never, { "data": { "alias": "data"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "index": { "alias": "index"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -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" | "
|
|
34
|
+
setBorderRadius(): "0px" | "7px" | "99px";
|
|
35
35
|
setBorder(): string;
|
|
36
36
|
setColor(): any;
|
|
37
37
|
setBackground(): any;
|
|
@@ -32,8 +32,8 @@ export declare class BannerCarouselComponent extends BaseSection implements OnIn
|
|
|
32
32
|
get stylesLayout(): LayOutModel;
|
|
33
33
|
get getBlurValue(): "NONE" | "LIGHT" | "MODERATE" | "STRONG" | "VERY_STRONG" | undefined;
|
|
34
34
|
get getBackgroundColor(): BackgroundModel;
|
|
35
|
-
get getBackgroundOpacity(): "
|
|
36
|
-
opacityValue(value: OverlayValue): "
|
|
35
|
+
get getBackgroundOpacity(): "0" | "0.5" | "0.7" | "0.6" | "0.8" | "1";
|
|
36
|
+
opacityValue(value: OverlayValue): "0.5" | "0.7" | "0.6" | "0.8" | "1";
|
|
37
37
|
editSection(): void;
|
|
38
38
|
getScreenSize(): number;
|
|
39
39
|
getSectionMinHeight(): string;
|
|
@@ -25,7 +25,7 @@ export declare class CarouselBannerComponent extends BaseSection implements OnIn
|
|
|
25
25
|
get canMergeNavbar(): boolean | undefined;
|
|
26
26
|
get isBorderlessImage(): boolean | undefined;
|
|
27
27
|
get getPositionLayout(): PositionLayoutModal;
|
|
28
|
-
opacityValue(value: OverlayValue): "0" | "0.
|
|
28
|
+
opacityValue(value: OverlayValue): "0" | "0.2" | "0.3" | "0.5" | "0.7";
|
|
29
29
|
editSection(): void;
|
|
30
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselBannerComponent, never>;
|
|
31
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<CarouselBannerComponent, "simpo-carousel-banner", 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>;
|
|
@@ -31,7 +31,7 @@ export declare class ContactUsComponent extends BaseSection implements OnInit, O
|
|
|
31
31
|
shouldShowDropdown(field: any): boolean;
|
|
32
32
|
getCardStyle(): {};
|
|
33
33
|
getTextColor(bgColor: string): "#000000" | "#ffffff" | "#ffffff;";
|
|
34
|
-
getAlignment(): "justify-content-start" | "justify-content-
|
|
34
|
+
getAlignment(): "justify-content-start" | "justify-content-end" | "justify-content-center";
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ContactUsComponent, never>;
|
|
36
36
|
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>;
|
|
37
37
|
}
|
|
@@ -17,7 +17,7 @@ export declare class FaqColumnsCardsComponent extends BaseSection {
|
|
|
17
17
|
ngOnInit(): void;
|
|
18
18
|
get headingSpace(): SPACING;
|
|
19
19
|
get stylesLayout(): LayOutModel;
|
|
20
|
-
getLayout(): "justify-content-start" | "justify-content-
|
|
20
|
+
getLayout(): "justify-content-start" | "justify-content-end" | "justify-content-center";
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<FaqColumnsCardsComponent, never>;
|
|
22
22
|
static ɵcmp: i0.ɵɵComponentDeclaration<FaqColumnsCardsComponent, "simpo-faq-columns-cards", never, { "data": { "alias": "data"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "index": { "alias": "index"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
23
23
|
}
|
|
@@ -23,7 +23,7 @@ export declare class FaqSectionComponent extends BaseSection {
|
|
|
23
23
|
toggleContent(idx: number): void;
|
|
24
24
|
editSection(): void;
|
|
25
25
|
getScreenSize(): void;
|
|
26
|
-
getLayout(): "justify-content-start" | "justify-content-
|
|
26
|
+
getLayout(): "justify-content-start" | "justify-content-end" | "justify-content-center";
|
|
27
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<FaqSectionComponent, never>;
|
|
28
28
|
static ɵcmp: i0.ɵɵComponentDeclaration<FaqSectionComponent, "simpo-faq-section", 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>;
|
|
29
29
|
}
|
|
@@ -20,9 +20,9 @@ export declare class ImageSectionComponent extends BaseSection {
|
|
|
20
20
|
constructor(_eventService: EventsService);
|
|
21
21
|
ngOnInit(): void;
|
|
22
22
|
get canMergeNavbar(): boolean | undefined;
|
|
23
|
-
get getBackgroundOpacity(): "
|
|
23
|
+
get getBackgroundOpacity(): "0.2" | "0.3" | "0.5" | "0.7" | "1";
|
|
24
24
|
get stylesLayout(): LayOutModel;
|
|
25
|
-
opacityValue(value: OverlayValue): "
|
|
25
|
+
opacityValue(value: OverlayValue): "0.2" | "0.3" | "0.5" | "0.7" | "1";
|
|
26
26
|
editSection(): void;
|
|
27
27
|
redirectTo(): void;
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<ImageSectionComponent, never>;
|
|
@@ -26,8 +26,8 @@ export declare class LogoShowcaseComponent extends BaseSection implements OnInit
|
|
|
26
26
|
get originalItemsLength(): number;
|
|
27
27
|
trackByIndex(index: number): number;
|
|
28
28
|
get stylesLayout(): LayOutModel;
|
|
29
|
-
get animationDuration(): "
|
|
30
|
-
get animationDirection():
|
|
29
|
+
get animationDuration(): "25s" | "20s" | "15s" | "10s" | "8s" | logoSpeed.Normal;
|
|
30
|
+
get animationDirection(): "reverse" | "normal" | logoDirection.Left;
|
|
31
31
|
get isMobile(): boolean;
|
|
32
32
|
get getPositionLayout(): PositionLayoutModal;
|
|
33
33
|
screenWidth: number;
|
|
@@ -24,7 +24,7 @@ export declare class NewTestimonialsComponent extends BaseSection {
|
|
|
24
24
|
idx: number;
|
|
25
25
|
getImageData(): import("../../styles/style.model").Image | undefined;
|
|
26
26
|
getImageUrl(): string | undefined;
|
|
27
|
-
getImageType(): "
|
|
27
|
+
getImageType(): "Video" | "Image";
|
|
28
28
|
getLength(): number;
|
|
29
29
|
editSection(): void;
|
|
30
30
|
stopPropagation(event: any): void;
|
|
@@ -23,8 +23,8 @@ export declare class PricingSectionComponent extends BaseSection {
|
|
|
23
23
|
getButtonId(): string;
|
|
24
24
|
editSection(): void;
|
|
25
25
|
redirectTo(data: any): void;
|
|
26
|
-
getClass(): "col-
|
|
27
|
-
getAlignment(): "justify-content-start" | "justify-content-
|
|
26
|
+
getClass(): "col-6" | "col-4" | "col-3" | "col-12";
|
|
27
|
+
getAlignment(): "justify-content-start" | "justify-content-end" | "justify-content-center";
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<PricingSectionComponent, never>;
|
|
29
29
|
static ɵcmp: i0.ɵɵComponentDeclaration<PricingSectionComponent, "simpo-pricing-section", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "nextComponentColor": { "alias": "nextComponentColor"; "required": false; }; }, {}, never, never, true, never>;
|
|
30
30
|
}
|
|
@@ -0,0 +1,82 @@
|
|
|
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
|
+
* Builds the plan for a product worth `productValue`.
|
|
63
|
+
*
|
|
64
|
+
* Recommended amount = smallest multiple of `valueStep` whose jewellery worth
|
|
65
|
+
* (`amount * (paidMonths + benefit%/100)`) covers the product, clamped to the scheme's
|
|
66
|
+
* min/max instalment. If even the maximum doesn't cover the product, the maximum is used.
|
|
67
|
+
*/
|
|
68
|
+
buildPlan(scheme: any, productValue: number): SchemePlan | null;
|
|
69
|
+
ordinal(n: number): string;
|
|
70
|
+
private round2;
|
|
71
|
+
/**
|
|
72
|
+
* Same sequence the Returns Calculator uses: charges check, then initiate payment, then hand the
|
|
73
|
+
* Cashfree session to the host app through `cashFreeEvent`. Differences: a 403 refreshes the token
|
|
74
|
+
* and retries the charges call once, and failures are surfaced to the caller (the observable errors).
|
|
75
|
+
*/
|
|
76
|
+
enroll(scheme: any, amount: number, store: SchemePlanStore | null, staff: SchemePlanStaff | null): Observable<SchemePlanEnrollResult>;
|
|
77
|
+
private refreshToken;
|
|
78
|
+
private buildPayload;
|
|
79
|
+
private readStorage;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SchemePlanService, never>;
|
|
81
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SchemePlanService>;
|
|
82
|
+
}
|
package/package.json
CHANGED
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
|
|
Binary file
|