simpo-component-library 3.6.932 → 3.6.935
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 +32 -0
- 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 +15 -3
- package/esm2022/lib/ecommerce/sections/authentication-required/authentication-required.model.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/cart/cart.component.mjs +12 -61
- 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-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 +63 -37
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +48 -37
- 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/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/booking-cart-groups/booking-cart-groups.component.mjs +82 -0
- 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/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/schedule-video-call/schedule-video-call.component.mjs +35 -22
- 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 +320 -268
- 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-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 +24 -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/navbar-section/navbar-section.component.mjs +10 -3
- 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 +60 -0
- 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 +15 -6
- package/esm2022/lib/services/sanitizeHtml.mjs +1 -1
- package/esm2022/lib/services/storage.service.mjs +79 -3
- 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/public-api.mjs +2 -3
- package/fesm2022/simpo-component-library.mjs +6237 -6891
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/components/deprecated-section/deprecated-section.component.d.ts +19 -0
- package/lib/ecommerce/sections/cart/cart.component.d.ts +2 -6
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +13 -1
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +12 -2
- package/lib/elements/booking-cart-groups/booking-cart-groups.component.d.ts +38 -0
- package/lib/elements/schedule-video-call/schedule-video-call.component.d.ts +4 -3
- package/lib/sections/appointment-form/appointment-booking/appointment-booking/appointment-booking.component.d.ts +55 -23
- package/lib/sections/header-section/header-section.component.d.ts +7 -0
- package/lib/sections/navbar-section/navbar-section.component.d.ts +2 -0
- package/lib/services/booking-product-cart.service.d.ts +26 -0
- package/lib/services/rest.service.d.ts +5 -2
- package/lib/services/storage.service.d.ts +17 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -2
- package/simpo-component-library-3.6.935.tgz +0 -0
- package/esm2022/lib/ecommerce/sections/book-appointment/book-appointment.component.mjs +0 -199
- package/esm2022/lib/ecommerce/sections/book-appointment/book-appointment.model.mjs +0 -2
- package/esm2022/lib/sections/appointment-form/appointment-form.component.mjs +0 -866
- package/lib/ecommerce/sections/book-appointment/book-appointment.component.d.ts +0 -70
- package/lib/ecommerce/sections/book-appointment/book-appointment.model.d.ts +0 -14
- package/lib/sections/appointment-form/appointment-form.component.d.ts +0 -117
- package/simpo-component-library-3.6.932.tgz +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* Stands in for a section type that's been retired (currently: the old 'appointment' and
|
|
4
|
+
* 'appointmentBooking' sectionTypes, superseded by AppointmentBookingComponent's
|
|
5
|
+
* 'bookAppointment' sectionType). A business's already-published site JSON may still reference a
|
|
6
|
+
* retired sectionType with no migration path from this codebase - repointing the registry to
|
|
7
|
+
* this stub instead of removing the entry avoids silently dropping or breaking that section on a
|
|
8
|
+
* live site.
|
|
9
|
+
*/
|
|
10
|
+
export declare class DeprecatedSectionComponent {
|
|
11
|
+
data?: any;
|
|
12
|
+
index?: number;
|
|
13
|
+
edit?: boolean;
|
|
14
|
+
delete?: boolean;
|
|
15
|
+
customClass?: string;
|
|
16
|
+
nextComponentColor?: any;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DeprecatedSectionComponent, never>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DeprecatedSectionComponent, "simpo-deprecated-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>;
|
|
19
|
+
}
|
|
@@ -47,7 +47,7 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
|
|
|
47
47
|
isLoading: boolean;
|
|
48
48
|
styles?: CartSectionStylesModel;
|
|
49
49
|
currentTab: 'BAG' | 'ADDRESS' | 'PAYMENT';
|
|
50
|
-
cartType: 'SHOPPING' | '
|
|
50
|
+
cartType: 'SHOPPING' | 'BOOKING';
|
|
51
51
|
d2: ElementRef;
|
|
52
52
|
pincode: any;
|
|
53
53
|
constructor(_eventService: EventsService, cartService: CartService, router: Router, restService: RestService, matDialog: MatDialog, storageService: StorageServiceService, messageService: MessageService, bottomSheet: MatBottomSheet, activatedRoute: ActivatedRoute, matDialogData: any, dialogRef: MatDialogRef<CartComponent>);
|
|
@@ -61,8 +61,8 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
|
|
|
61
61
|
featureProductData: FeaturedProductModal | null;
|
|
62
62
|
private USER_CART;
|
|
63
63
|
private USER_WISHLIST;
|
|
64
|
-
trialCartItem: OrderedItems[] | null;
|
|
65
64
|
selectMatureScheme: boolean;
|
|
65
|
+
get getTotalBookingItems(): number;
|
|
66
66
|
cartInfo: any;
|
|
67
67
|
loadingSubscription?: Subscription;
|
|
68
68
|
subIndustryName: string;
|
|
@@ -78,8 +78,6 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
|
|
|
78
78
|
getSchemeDetails(): void;
|
|
79
79
|
ngOnDestroy(): void;
|
|
80
80
|
onToggleChange(): void;
|
|
81
|
-
getTrialCart(): void;
|
|
82
|
-
getTrialCartIndexDBData(): void;
|
|
83
81
|
updateUserCart(): void;
|
|
84
82
|
getDefaultAddress(): void;
|
|
85
83
|
get stylesLayout(): LayOutModel;
|
|
@@ -137,8 +135,6 @@ export declare class CartComponent extends BaseSection implements OnInit, OnDest
|
|
|
137
135
|
getButtonId(index: number): string;
|
|
138
136
|
getButtonStyle(index: number): import("../../../styles/style.model").ButtonStyleModel | undefined;
|
|
139
137
|
changeQuantity(quantity: any, item: OrderedItems): void;
|
|
140
|
-
removeTrialItem(item: OrderedItems): void;
|
|
141
|
-
bookAppointment(): void;
|
|
142
138
|
showReedemError: boolean;
|
|
143
139
|
vaildAmount: number;
|
|
144
140
|
redeemScheme(scheme: any, action: boolean): void;
|
|
@@ -15,6 +15,7 @@ import { MatDialog } from '@angular/material/dialog';
|
|
|
15
15
|
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
|
+
import { BookingProductCartService } from '../../../services/booking-product-cart.service';
|
|
18
19
|
import * as i0 from "@angular/core";
|
|
19
20
|
export declare class ProductDescComponent extends BaseSection {
|
|
20
21
|
private platformId;
|
|
@@ -31,6 +32,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
31
32
|
private renderer;
|
|
32
33
|
private matDialog;
|
|
33
34
|
private analyticsService;
|
|
35
|
+
private readonly bookingProductCartService;
|
|
34
36
|
reviewComponent: CustomerReviewComponent;
|
|
35
37
|
aboveHeight: ElementRef<HTMLDivElement>;
|
|
36
38
|
container: ElementRef<HTMLDivElement>;
|
|
@@ -54,7 +56,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
54
56
|
showReview: boolean;
|
|
55
57
|
selectedReview: any;
|
|
56
58
|
currentImageIndex: number;
|
|
57
|
-
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);
|
|
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);
|
|
58
60
|
buttonId?: string;
|
|
59
61
|
button?: ButtonModel;
|
|
60
62
|
styles?: ProductDescStylesModal;
|
|
@@ -144,6 +146,7 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
144
146
|
isSubmitting: boolean;
|
|
145
147
|
scheduled: boolean;
|
|
146
148
|
scheduleVideoCall(): void;
|
|
149
|
+
continueVideoCallBooking(): void;
|
|
147
150
|
resetValidationErrors(): void;
|
|
148
151
|
resetForm(): void;
|
|
149
152
|
onInputChange(field: any): void;
|
|
@@ -154,7 +157,16 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
154
157
|
matCloseDialog(): void;
|
|
155
158
|
closeDialog(): void;
|
|
156
159
|
getRatings(noofratings: any): any;
|
|
160
|
+
/**
|
|
161
|
+
* "Try at Home" feeds the Home Visit booking flow (BookingGroup.productLines, submitted
|
|
162
|
+
* directly at hold time) rather than the old ecommerce TRIAL_CART/HomeAppointments flow being
|
|
163
|
+
* retired — see appointment_service's design doc. Just adds to the local Home Visit cart and
|
|
164
|
+
* confirms, like a normal add-to-cart — it does not open the booking wizard. The wizard opens
|
|
165
|
+
* only when the shopper deliberately clicks Continue Booking (continueHomeVisitBooking), so
|
|
166
|
+
* adding never interrupts browsing and never trips the wizard's login gate on an anonymous add.
|
|
167
|
+
*/
|
|
157
168
|
addToTrialCart(): void;
|
|
169
|
+
continueHomeVisitBooking(): void;
|
|
158
170
|
reviewsData: any[];
|
|
159
171
|
ratingCounts: any;
|
|
160
172
|
pageNumber: number;
|
|
@@ -10,6 +10,7 @@ import { StorageServiceService } from '../../../services/storage.service';
|
|
|
10
10
|
import { MatBottomSheet } from '@angular/material/bottom-sheet';
|
|
11
11
|
import { MatDialog } from '@angular/material/dialog';
|
|
12
12
|
import { CartService } from '../../../services/cart.service';
|
|
13
|
+
import { BookingProductCartService } from '../../../services/booking-product-cart.service';
|
|
13
14
|
import { MenuItem, MessageService } from 'primeng/api';
|
|
14
15
|
import { ProductCardTheme } from '../../../styles/index';
|
|
15
16
|
import { AnalyticsService } from '../../../services/analytics.service';
|
|
@@ -39,6 +40,7 @@ export declare class ProductListComponent extends BaseSection implements OnDestr
|
|
|
39
40
|
private readonly messageService;
|
|
40
41
|
private renderer;
|
|
41
42
|
private readonly analyticsService;
|
|
43
|
+
private readonly bookingProductCartService;
|
|
42
44
|
responseData?: Product[];
|
|
43
45
|
data?: ProductListModal;
|
|
44
46
|
index?: number;
|
|
@@ -92,7 +94,7 @@ export declare class ProductListComponent extends BaseSection implements OnDestr
|
|
|
92
94
|
listScrollContainer: ElementRef<HTMLDivElement>;
|
|
93
95
|
getScreenSize(): void;
|
|
94
96
|
onWindowScroll(event: Event): void;
|
|
95
|
-
constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute, storageService: StorageServiceService, matBottomSheet: MatBottomSheet, matDialog: MatDialog, cartService: CartService, messageService: MessageService, renderer: Renderer2, analyticsService: AnalyticsService);
|
|
97
|
+
constructor(platformId: Object, _eventService: EventsService, restService: RestService, router: Router, activatedRoute: ActivatedRoute, storageService: StorageServiceService, matBottomSheet: MatBottomSheet, matDialog: MatDialog, cartService: CartService, messageService: MessageService, renderer: Renderer2, analyticsService: AnalyticsService, bookingProductCartService: BookingProductCartService);
|
|
96
98
|
get stylesLayout(): LayOutModel;
|
|
97
99
|
isOpen: boolean;
|
|
98
100
|
toggleDropdown(): void;
|
|
@@ -220,9 +222,16 @@ export declare class ProductListComponent extends BaseSection implements OnDestr
|
|
|
220
222
|
materialCollapsed: boolean;
|
|
221
223
|
metalCollapsed: boolean;
|
|
222
224
|
ringStyleCollapsed: boolean;
|
|
225
|
+
/**
|
|
226
|
+
* Feeds the Home Visit booking flow directly (BookingGroup.productLines) rather than the
|
|
227
|
+
* retiring TRIAL_CART. Just adds to the local Home Visit cart and confirms with a toast — it
|
|
228
|
+
* does not open the booking wizard, so a shopper can keep browsing the grid and add more
|
|
229
|
+
* pieces. They continue into the wizard later from the Booking Cart (header icon / cart page).
|
|
230
|
+
*/
|
|
223
231
|
addToTrialCart(product: Product): Promise<void>;
|
|
224
232
|
productName: string;
|
|
225
|
-
|
|
233
|
+
videoCallProduct: Product | null;
|
|
234
|
+
openDialogBox(template: TemplateRef<HTMLDivElement>, productName: any, product?: Product): void;
|
|
226
235
|
matCloseDialog(): void;
|
|
227
236
|
otherLanguage: string;
|
|
228
237
|
videoCallPayload: any;
|
|
@@ -230,6 +239,7 @@ export declare class ProductListComponent extends BaseSection implements OnDestr
|
|
|
230
239
|
isSubmitting: boolean;
|
|
231
240
|
scheduled: boolean;
|
|
232
241
|
scheduleVideoCall(): void;
|
|
242
|
+
continueVideoCallBooking(): void;
|
|
233
243
|
resetValidationErrors(): void;
|
|
234
244
|
resetForm(): void;
|
|
235
245
|
onInputChange(field: any): void;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
|
+
import { BookingProductCartService, BookingCartMode } from '../../services/booking-product-cart.service';
|
|
4
|
+
import { StorageServiceService } from '../../services/storage.service';
|
|
5
|
+
import { OrderedItems } from '../../ecommerce/styles/OrderedItems.modal';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
interface BookingCartGroup {
|
|
8
|
+
mode: BookingCartMode;
|
|
9
|
+
title: string;
|
|
10
|
+
items: OrderedItems[];
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Shared "grouped booking cart" view — one section per non-empty mode (Home Visit / Video Call),
|
|
14
|
+
* each with its own Continue Booking action, since a booking can only ever be one mode. Used
|
|
15
|
+
* both as the header's Bookings drawer (opened via MatDialog, panelClass 'sidepanel-class', same
|
|
16
|
+
* convention as the rest of this app's side panels) and embedded inline in the Cart page's
|
|
17
|
+
* Booking Cart tab, so the two surfaces never show different data.
|
|
18
|
+
*/
|
|
19
|
+
export declare class BookingCartGroupsComponent implements OnInit {
|
|
20
|
+
private readonly bookingProductCartService;
|
|
21
|
+
private readonly storageService;
|
|
22
|
+
private readonly matDialog;
|
|
23
|
+
private readonly dialogRef;
|
|
24
|
+
groups: BookingCartGroup[];
|
|
25
|
+
loading: boolean;
|
|
26
|
+
constructor(bookingProductCartService: BookingProductCartService, storageService: StorageServiceService, matDialog: MatDialog, dialogRef: MatDialogRef<BookingCartGroupsComponent>);
|
|
27
|
+
ngOnInit(): void;
|
|
28
|
+
load(): Promise<void>;
|
|
29
|
+
get isEmpty(): boolean;
|
|
30
|
+
get dialogRefPresent(): boolean;
|
|
31
|
+
removeItem(group: BookingCartGroup, item: OrderedItems): Promise<void>;
|
|
32
|
+
close(): void;
|
|
33
|
+
browse(): void;
|
|
34
|
+
continueBooking(group: BookingCartGroup): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BookingCartGroupsComponent, [null, null, null, { optional: true; }]>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BookingCartGroupsComponent, "simpo-booking-cart-groups", never, {}, {}, never, never, true, never>;
|
|
37
|
+
}
|
|
38
|
+
export {};
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
|
3
3
|
import { MessageService } from 'primeng/api';
|
|
4
|
-
import {
|
|
4
|
+
import { BookingProductCartService } from '../../services/booking-product-cart.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class ScheduleVideoCallComponent implements OnInit {
|
|
7
7
|
private readonly dialogRef;
|
|
8
8
|
private matDialog;
|
|
9
9
|
private readonly messageService;
|
|
10
|
-
private readonly
|
|
10
|
+
private readonly bookingProductCartService;
|
|
11
11
|
responseData: any;
|
|
12
|
-
constructor(dialogRef: MatDialogRef<ScheduleVideoCallComponent>, matDialog: MatDialog, messageService: MessageService,
|
|
12
|
+
constructor(dialogRef: MatDialogRef<ScheduleVideoCallComponent>, matDialog: MatDialog, messageService: MessageService, bookingProductCartService: BookingProductCartService, responseData: any);
|
|
13
13
|
ngOnInit(): void;
|
|
14
14
|
selectedProducts: any[];
|
|
15
15
|
languages: string[];
|
|
@@ -27,6 +27,7 @@ export declare class ScheduleVideoCallComponent implements OnInit {
|
|
|
27
27
|
scheduled: boolean;
|
|
28
28
|
resetValidationErrors(): void;
|
|
29
29
|
scheduleVideoCall(): void;
|
|
30
|
+
continueBooking(): void;
|
|
30
31
|
selectedItems(item: any): void;
|
|
31
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<ScheduleVideoCallComponent, never>;
|
|
32
33
|
static ɵcmp: i0.ɵɵComponentDeclaration<ScheduleVideoCallComponent, "simpo-schedule-video-call", never, {}, {}, never, never, true, never>;
|
|
@@ -1,16 +1,42 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { MatDialogRef } from '@angular/material/dialog';
|
|
1
3
|
import { RestService } from '../../../../services/rest.service';
|
|
2
4
|
import { EventsService } from '../../../../services/events.service';
|
|
3
5
|
import { Router } from '@angular/router';
|
|
4
6
|
import { BannerContentModel, BannerSectionModel } from '../../appointment-form.model';
|
|
5
7
|
import { BackgroundModel, BannerStylesModel } from '../../../../styles/style.model';
|
|
6
8
|
import { MessageService } from 'primeng/api';
|
|
9
|
+
import { BookingProductCartService } from '../../../../services/booking-product-cart.service';
|
|
10
|
+
import { StorageServiceService } from '../../../../services/storage.service';
|
|
7
11
|
import * as i0 from "@angular/core";
|
|
8
|
-
|
|
12
|
+
type BookingMode = 'STORE_VISIT' | 'HOME_VISIT' | 'VIDEO_CALL';
|
|
13
|
+
interface ResolvedLine {
|
|
14
|
+
services: {
|
|
15
|
+
id: string;
|
|
16
|
+
name: string;
|
|
17
|
+
}[];
|
|
18
|
+
totalDurationMinutes: number;
|
|
19
|
+
staffId?: string;
|
|
20
|
+
staffName?: string;
|
|
21
|
+
candidateStaffPool?: {
|
|
22
|
+
id: string;
|
|
23
|
+
name: string;
|
|
24
|
+
}[];
|
|
25
|
+
selectedStaffId?: string;
|
|
26
|
+
selectedStaffName?: string;
|
|
27
|
+
slots: any[];
|
|
28
|
+
selectedSlot?: any;
|
|
29
|
+
slotsLoading?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare class AppointmentBookingComponent implements OnInit {
|
|
9
32
|
private restService;
|
|
10
33
|
private _eventService;
|
|
11
34
|
private readonly router;
|
|
12
35
|
private readonly messageService;
|
|
13
|
-
|
|
36
|
+
private readonly bookingProductCartService;
|
|
37
|
+
private readonly storageService;
|
|
38
|
+
private readonly dialogRef;
|
|
39
|
+
constructor(restService: RestService, _eventService: EventsService, router: Router, messageService: MessageService, bookingProductCartService: BookingProductCartService, storageService: StorageServiceService, dialogRef: MatDialogRef<AppointmentBookingComponent>);
|
|
14
40
|
data?: BannerSectionModel;
|
|
15
41
|
index?: number;
|
|
16
42
|
content?: BannerContentModel;
|
|
@@ -18,6 +44,11 @@ export declare class AppointmentBookingComponent {
|
|
|
18
44
|
delete?: boolean;
|
|
19
45
|
customClass?: string;
|
|
20
46
|
nextComponentColor?: BackgroundModel;
|
|
47
|
+
/** Lets a launching dialog (e.g. the video-call product picker) carry over name/phone already collected, so the customer isn't asked twice. */
|
|
48
|
+
prefillContact?: {
|
|
49
|
+
name?: string;
|
|
50
|
+
phoneNumber?: string;
|
|
51
|
+
};
|
|
21
52
|
styles?: BannerStylesModel;
|
|
22
53
|
ngOnInit(): void;
|
|
23
54
|
screenWidth: number;
|
|
@@ -36,54 +67,55 @@ export declare class AppointmentBookingComponent {
|
|
|
36
67
|
barWidth: string;
|
|
37
68
|
showCancellationPolicy: boolean;
|
|
38
69
|
showReducingPolicy: boolean;
|
|
39
|
-
|
|
70
|
+
selectedMode: BookingMode;
|
|
71
|
+
modePinned: boolean;
|
|
72
|
+
cartServices: any[];
|
|
73
|
+
resolvedLines: ResolvedLine[];
|
|
74
|
+
resolvingCart: boolean;
|
|
75
|
+
productCartItems: any[];
|
|
40
76
|
selectedLocation: any;
|
|
41
|
-
|
|
77
|
+
homeVisitAddress: any;
|
|
42
78
|
instructions: string;
|
|
43
79
|
Object: ObjectConstructor;
|
|
44
80
|
showCalendar: boolean;
|
|
45
81
|
selectedDate: Date | null;
|
|
46
82
|
selectedDateStr: string;
|
|
47
|
-
|
|
48
|
-
name: string;
|
|
49
|
-
email: string;
|
|
50
|
-
mobileNumber: string;
|
|
51
|
-
};
|
|
83
|
+
bookingGroup: any;
|
|
52
84
|
dateFilter: (d: Date | null) => boolean;
|
|
53
85
|
toggleCalendar(event?: Event): void;
|
|
54
86
|
onDateSelected(date: any): void;
|
|
55
87
|
private formatDate;
|
|
88
|
+
private toIsoDate;
|
|
89
|
+
selectMode(mode: BookingMode): void;
|
|
90
|
+
loadProductCartForMode(): Promise<void>;
|
|
56
91
|
selectService(service: any): void;
|
|
57
92
|
selectLocation(location: any): void;
|
|
58
|
-
selectedStaff: any;
|
|
59
|
-
selectStaff(staff: any): void;
|
|
60
93
|
nextStep(): void;
|
|
61
94
|
previousStep(): void;
|
|
62
95
|
serviceData: any[];
|
|
63
96
|
getAllServices(): void;
|
|
64
97
|
locationData: any[];
|
|
65
98
|
getAllLocations(): void;
|
|
66
|
-
|
|
99
|
+
goToDateSelection(): void;
|
|
67
100
|
staffSearchQuery: string;
|
|
68
101
|
get filteredStaff(): any[];
|
|
69
102
|
staffData: any[];
|
|
70
|
-
|
|
103
|
+
resolveCart(): void;
|
|
104
|
+
getAllStaffForProductOnlyLine(): void;
|
|
105
|
+
selectStaffForProductOnlyLine(staff: any): void;
|
|
106
|
+
selectStaffForLine(line: ResolvedLine, staff: any): void;
|
|
107
|
+
fetchAllLineSlots(): void;
|
|
108
|
+
selectSlotForLine(line: ResolvedLine, slot: any): void;
|
|
71
109
|
convertTo24Hour(time: string): string;
|
|
72
|
-
slotsPayload: any;
|
|
73
|
-
locationTiming: any[];
|
|
74
110
|
loader: boolean;
|
|
75
|
-
getAvailableSlots(): void;
|
|
76
111
|
isProcessing: boolean;
|
|
77
|
-
selectedTime: any;
|
|
78
|
-
selectTimeSlot(time: any): void;
|
|
79
112
|
termsAndConditions: boolean;
|
|
80
113
|
checkRequiredValues(): void;
|
|
81
114
|
appointmentPayload: any;
|
|
82
|
-
checkPayment(): void;
|
|
83
115
|
apiStatus: boolean;
|
|
84
|
-
|
|
85
|
-
paymentBookingAppointment(): void;
|
|
116
|
+
confirmBooking(): void;
|
|
86
117
|
goBack(): void;
|
|
87
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppointmentBookingComponent,
|
|
88
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AppointmentBookingComponent, "simpo-appointment-booking", 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>;
|
|
118
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppointmentBookingComponent, [null, null, null, null, null, null, { optional: true; }]>;
|
|
119
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AppointmentBookingComponent, "simpo-appointment-booking", 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; }; "prefillContact": { "alias": "prefillContact"; "required": false; }; }, {}, never, never, true, never>;
|
|
89
120
|
}
|
|
121
|
+
export {};
|
|
@@ -61,6 +61,7 @@ export declare class HeaderSectionComponent implements OnInit, AfterViewInit, On
|
|
|
61
61
|
get getUserName(): string | undefined;
|
|
62
62
|
goToWishlist(): void;
|
|
63
63
|
goToCart(): void;
|
|
64
|
+
goToBookings(): void;
|
|
64
65
|
applyFilter(value: any, type: string): void;
|
|
65
66
|
movingText?: MovingTextModal;
|
|
66
67
|
toShowInJewellery: boolean;
|
|
@@ -70,6 +71,11 @@ export declare class HeaderSectionComponent implements OnInit, AfterViewInit, On
|
|
|
70
71
|
ngOnDestroy(): void;
|
|
71
72
|
passbookAppStatus: boolean;
|
|
72
73
|
checkPassbookApp(): void;
|
|
74
|
+
/** Login/signup for a non-ecommerce header also needs to show for a business with only the
|
|
75
|
+
* Appointment app installed (booking now requires login) - mirrors checkPassbookApp() exactly,
|
|
76
|
+
* reusing the same generic "is app installed" check already used for Passbook. */
|
|
77
|
+
appointmentAppStatus: boolean;
|
|
78
|
+
checkAppointmentApp(): void;
|
|
73
79
|
showSearchBarMobile: boolean;
|
|
74
80
|
showDropdownDesktopSearch: boolean;
|
|
75
81
|
isNavbarOpen: boolean;
|
|
@@ -109,6 +115,7 @@ export declare class HeaderSectionComponent implements OnInit, AfterViewInit, On
|
|
|
109
115
|
get showMobileHomeIcon(): boolean;
|
|
110
116
|
get getCartItemsCount(): number;
|
|
111
117
|
get getWishlistItemsCount(): number;
|
|
118
|
+
get getBookingItemsCount(): number;
|
|
112
119
|
get getCartTotalAmount(): number;
|
|
113
120
|
get getHeaderStyling(): Header_Type | undefined;
|
|
114
121
|
get isMobile(): boolean;
|
|
@@ -43,6 +43,7 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
|
43
43
|
goToAccount(): void;
|
|
44
44
|
goToWishlist(): void;
|
|
45
45
|
goToCart(): void;
|
|
46
|
+
goToBookings(): void;
|
|
46
47
|
applyFilter(value: any, type: string): void;
|
|
47
48
|
onStickyScrolled(scrolled: boolean): void;
|
|
48
49
|
ngOnInit(): void;
|
|
@@ -69,6 +70,7 @@ export declare class NavbarSectionComponent implements OnInit {
|
|
|
69
70
|
get canShowMobileFooter(): boolean;
|
|
70
71
|
get showMobileHomeIcon(): boolean;
|
|
71
72
|
get getCartItemsCount(): number;
|
|
73
|
+
get getBookingItemsCount(): number;
|
|
72
74
|
get getHeaderStyling(): HEADER_STYLING | undefined;
|
|
73
75
|
get isMobile(): boolean;
|
|
74
76
|
getKeys(object: any): string[];
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { OrderedItems } from '../ecommerce/styles/OrderedItems.modal';
|
|
2
|
+
import { Product } from '../ecommerce/styles/product.modal';
|
|
3
|
+
import { StorageServiceService } from './storage.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export type BookingCartMode = 'HOME_VISIT' | 'VIDEO_CALL';
|
|
6
|
+
/**
|
|
7
|
+
* The product-side cart for Home Visit / Video Call bookings. Deliberately simpler than
|
|
8
|
+
* CartService's TRIAL_CART handling — the new group/cart booking API takes product lines
|
|
9
|
+
* directly in the `hold` request body, so there's no server-side cart to keep in sync with for
|
|
10
|
+
* either logged-in or anonymous users. Everything here is local-only (IndexedDB via
|
|
11
|
+
* StorageServiceService), for both user types alike.
|
|
12
|
+
*/
|
|
13
|
+
export declare class BookingProductCartService {
|
|
14
|
+
private readonly storageService;
|
|
15
|
+
constructor(storageService: StorageServiceService);
|
|
16
|
+
addItem(mode: BookingCartMode, product: Product, variantId?: string): Promise<void>;
|
|
17
|
+
/** For callers that already have an OrderedItems-shaped record (e.g. from an existing cart) rather than a raw Product. */
|
|
18
|
+
addOrderedItem(mode: BookingCartMode, item: OrderedItems): Promise<void>;
|
|
19
|
+
removeItem(mode: BookingCartMode, variantId: string): Promise<void>;
|
|
20
|
+
getItems(mode: BookingCartMode): Promise<OrderedItems[]>;
|
|
21
|
+
clear(mode: BookingCartMode): Promise<void>;
|
|
22
|
+
/** Renames varientId -> variantId and computes totalPrice, matching BookingGroupRequest.productLines' shape. */
|
|
23
|
+
toProductLine(item: OrderedItems): any;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BookingProductCartService, never>;
|
|
25
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BookingProductCartService>;
|
|
26
|
+
}
|
|
@@ -121,8 +121,11 @@ export declare class RestService implements OnDestroy {
|
|
|
121
121
|
getReviewsByProductId(productId: string, pageNumber: number): Observable<Object>;
|
|
122
122
|
getFieldsToDisplay(fieldsList: any[]): any;
|
|
123
123
|
getBookingSlots(payload: any): Observable<Object>;
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
resolveCart(payload: any): Observable<Object>;
|
|
125
|
+
holdBooking(payload: any): Observable<Object>;
|
|
126
|
+
getBookingGroup(groupId: string): Observable<Object>;
|
|
127
|
+
generatePaymentToken(groupId: string): Observable<Object>;
|
|
128
|
+
completeBookingGroup(groupId: string): Observable<Object>;
|
|
126
129
|
generateToken(bId: any, userId: any): Observable<Object>;
|
|
127
130
|
getAllEnrolledSchemes(payload: any): Observable<Object>;
|
|
128
131
|
enrollScheme(payload: any, checkCharges: boolean): Observable<Object>;
|
|
@@ -20,6 +20,10 @@ export declare class StorageServiceService {
|
|
|
20
20
|
get getTotalCartItems(): number;
|
|
21
21
|
private totalWishlistItems;
|
|
22
22
|
get getTotalWishlistItems(): number;
|
|
23
|
+
/** Combined count across HOME_VISIT_CART + VIDEO_CALL_CART, for the header Bookings badge. */
|
|
24
|
+
private totalBookingItems;
|
|
25
|
+
get getTotalBookingItems(): number;
|
|
26
|
+
calculateBookingCartTotals(): void;
|
|
23
27
|
calculateCartTotals(): void;
|
|
24
28
|
calculateWishlistTotals(): void;
|
|
25
29
|
databaseName: string;
|
|
@@ -28,6 +32,14 @@ export declare class StorageServiceService {
|
|
|
28
32
|
favouriteCollectionName: string;
|
|
29
33
|
trialCartCollectionName: string;
|
|
30
34
|
userCollectionName: string;
|
|
35
|
+
/**
|
|
36
|
+
* One bucket per booking mode (Home Visit / Video Call), local-only, no server sync - unlike
|
|
37
|
+
* TRIAL_CART, the new group/cart booking API takes product lines directly in the hold request,
|
|
38
|
+
* so there's no server-side cart to keep these in sync with. Kept separate from each other so
|
|
39
|
+
* a customer can hold a pending cart for each mode at once.
|
|
40
|
+
*/
|
|
41
|
+
homeVisitCartCollectionName: string;
|
|
42
|
+
videoCallCartCollectionName: string;
|
|
31
43
|
database: IDBDatabase;
|
|
32
44
|
cartCollectionRef: IDBObjectStore | null;
|
|
33
45
|
favouriteCollectionRef: IDBObjectStore | null;
|
|
@@ -54,6 +66,11 @@ export declare class StorageServiceService {
|
|
|
54
66
|
clearUserCart(): IDBRequest<undefined>;
|
|
55
67
|
clearTrialCart(): IDBRequest<undefined>;
|
|
56
68
|
removeProductFromTrialCart(productId: string): IDBRequest<undefined>;
|
|
69
|
+
private bookingCartStoreName;
|
|
70
|
+
getBookingCart(mode: 'HOME_VISIT' | 'VIDEO_CALL'): Promise<IDBRequest<OrderedItems[]>>;
|
|
71
|
+
addProductToBookingCart(mode: 'HOME_VISIT' | 'VIDEO_CALL', product: OrderedItems): Promise<IDBRequest<IDBValidKey>>;
|
|
72
|
+
removeProductFromBookingCart(mode: 'HOME_VISIT' | 'VIDEO_CALL', productId: string): Promise<IDBRequest<undefined>>;
|
|
73
|
+
clearBookingCart(mode: 'HOME_VISIT' | 'VIDEO_CALL'): Promise<IDBRequest<undefined>>;
|
|
57
74
|
setUser(user: User): User;
|
|
58
75
|
getUser(): User | null;
|
|
59
76
|
/**
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -32,7 +32,7 @@ export * from './lib/sections/testimonial-fullwidth/testimonial-fullwidth.compon
|
|
|
32
32
|
export * from './lib/sections/logo-showcase/logo-showcase.component';
|
|
33
33
|
export * from './lib/sections/banner-carousel/banner-carousel.component';
|
|
34
34
|
export * from './lib/sections/carousel-banner/carousel-banner.component';
|
|
35
|
-
export * from './lib/
|
|
35
|
+
export * from './lib/components/deprecated-section/deprecated-section.component';
|
|
36
36
|
export * from './lib/sections/testimonial-video/testimonial-video.component';
|
|
37
37
|
export * from './lib/sections/logo-gallery/logo-gallery.component';
|
|
38
38
|
export * from './lib/sections/registration-form/registration-form.component';
|
|
@@ -72,7 +72,6 @@ export * from './lib/ecommerce/sections/store-list/store-list.component';
|
|
|
72
72
|
export * from './lib/ecommerce/sections/store-page/store-page.component';
|
|
73
73
|
export * from './lib/ecommerce/sections/enrollment-form/enrollment-form.component';
|
|
74
74
|
export * from './lib/ecommerce/sections/returns-calculator/returns-calculator.component';
|
|
75
|
-
export * from './lib/ecommerce/sections/book-appointment/book-appointment.component';
|
|
76
75
|
export * from './lib/sections/appointment-form/appointment-booking/appointment-booking/appointment-booking.component';
|
|
77
76
|
export * from './lib/sections/video-grid-section/video-grid-section.component';
|
|
78
77
|
export * from './lib/ecommerce/sections/refer-earn/refer-earn.component';
|
|
Binary file
|