simpo-component-library 3.7.4 → 3.7.5
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/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 +5 -7
- 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 +5 -5
- package/esm2022/lib/ecommerce/sections/featured-category/featured-category.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/featured-category/featured-collection.component.mjs +5 -5
- 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 +5 -5
- 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 +5 -19
- package/esm2022/lib/ecommerce/sections/product-desc/product-desc.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/sections/product-list/product-list.component.mjs +15 -268
- 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 +33 -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 -2
- 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 -2
- package/esm2022/lib/ecommerce/styles/order.modal.mjs +1 -1
- package/esm2022/lib/ecommerce/styles/product.modal.mjs +1 -11
- 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 +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 +119 -9
- 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 +7 -7
- 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-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 +7 -10
- 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 +7 -12
- 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 +1 -1
- 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 +19 -38
- package/esm2022/lib/services/sanitizeHtml.mjs +1 -1
- 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/public-api.mjs +1 -1
- package/fesm2022/simpo-component-library.mjs +409 -625
- package/fesm2022/simpo-component-library.mjs.map +1 -1
- package/lib/ecommerce/sections/product-desc/product-desc.component.d.ts +0 -4
- package/lib/ecommerce/sections/product-list/product-list.component.d.ts +1 -46
- package/lib/ecommerce/sections/verify-payment/verify-payment.component.d.ts +6 -0
- package/lib/ecommerce/styles/Collection.modal.d.ts +0 -1
- package/lib/ecommerce/styles/category.modal.d.ts +0 -1
- package/lib/ecommerce/styles/product.modal.d.ts +0 -42
- package/lib/elements/my-bookings/my-bookings.component.d.ts +25 -1
- package/lib/sections/footer/footer.component.d.ts +2 -2
- package/lib/services/rest.service.d.ts +6 -13
- package/package.json +1 -1
- package/simpo-component-library-3.7.5.tgz +0 -0
- package/esm2022/lib/utils/list-route.util.mjs +0 -56
- package/lib/utils/list-route.util.d.ts +0 -21
- package/simpo-component-library-3.7.004.tgz +0 -0
|
@@ -81,10 +81,6 @@ export declare class ProductDescComponent extends BaseSection {
|
|
|
81
81
|
ngOnInit(): void;
|
|
82
82
|
ngAfterViewInit(): void;
|
|
83
83
|
varientLoading: boolean;
|
|
84
|
-
get customFieldSpecs(): {
|
|
85
|
-
label: string;
|
|
86
|
-
value: string;
|
|
87
|
-
}[];
|
|
88
84
|
recentViewItemList: Product[];
|
|
89
85
|
getRelatedProducts(): void;
|
|
90
86
|
selectVarient(key: string, value: string): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnDestroy, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ItemVariant, Product } from '../../styles/product.modal';
|
|
3
3
|
import BaseSection from '../../../sections/BaseSection';
|
|
4
4
|
import { ProductListContentModal, ProductListModal, ProductListStylesModal } from './product-list.modal';
|
|
5
5
|
import { EventsService } from '../../../services/events.service';
|
|
@@ -20,7 +20,6 @@ interface BaseModel {
|
|
|
20
20
|
id: string;
|
|
21
21
|
imgUrl: string;
|
|
22
22
|
status: boolean;
|
|
23
|
-
slug?: string;
|
|
24
23
|
}
|
|
25
24
|
interface RatingFilterOption {
|
|
26
25
|
label: string;
|
|
@@ -77,24 +76,6 @@ export declare class ProductListComponent extends BaseSection implements OnDestr
|
|
|
77
76
|
name: string;
|
|
78
77
|
value: string;
|
|
79
78
|
}[];
|
|
80
|
-
private readonly SYSTEM_FILTER_IDS;
|
|
81
|
-
private readonly BUILT_IN_SORTS;
|
|
82
|
-
customFilterGroups: FilterGroup[];
|
|
83
|
-
customChoiceSelections: {
|
|
84
|
-
[identifier: string]: string[];
|
|
85
|
-
};
|
|
86
|
-
customRangeSelections: {
|
|
87
|
-
[identifier: string]: {
|
|
88
|
-
min: string;
|
|
89
|
-
max: string;
|
|
90
|
-
};
|
|
91
|
-
};
|
|
92
|
-
customGroupCollapsed: {
|
|
93
|
-
[key: string]: boolean;
|
|
94
|
-
};
|
|
95
|
-
private filterOptionsKey;
|
|
96
|
-
urlCategorySlugs: string[];
|
|
97
|
-
urlCollectionSlugs: string[];
|
|
98
79
|
screenWidth: number;
|
|
99
80
|
filterList: any[];
|
|
100
81
|
styles?: ProductListStylesModal;
|
|
@@ -132,27 +113,6 @@ export declare class ProductListComponent extends BaseSection implements OnDestr
|
|
|
132
113
|
raiseLead(): void;
|
|
133
114
|
priceRangeFlag: boolean;
|
|
134
115
|
filterItemList(): void;
|
|
135
|
-
private get customSearchOptions();
|
|
136
|
-
private loadFilterOptions;
|
|
137
|
-
apiFilterIds: Set<string>;
|
|
138
|
-
isApiFilter(identifier: string): boolean;
|
|
139
|
-
private systemList;
|
|
140
|
-
private isSystemListFilter;
|
|
141
|
-
isCustomChoiceSelected(identifier: string, value: string): boolean;
|
|
142
|
-
toggleCustomChoice(filter: FilterDef, value: string): void;
|
|
143
|
-
customRange(identifier: string): {
|
|
144
|
-
min: string;
|
|
145
|
-
max: string;
|
|
146
|
-
};
|
|
147
|
-
setCustomRange(identifier: string, edge: 'min' | 'max', value: string | number | null): void;
|
|
148
|
-
get selectedCustomChips(): {
|
|
149
|
-
id: string;
|
|
150
|
-
name: string;
|
|
151
|
-
type: string;
|
|
152
|
-
identifier: string;
|
|
153
|
-
value?: string;
|
|
154
|
-
}[];
|
|
155
|
-
get displayChips(): any[];
|
|
156
116
|
dynamicPriceRange(minPrice: number, maxPrice: number): void;
|
|
157
117
|
selectOption(filter: any, event: MouseEvent): void;
|
|
158
118
|
getSelectedName(): string;
|
|
@@ -168,11 +128,6 @@ export declare class ProductListComponent extends BaseSection implements OnDestr
|
|
|
168
128
|
ngOnInit(): void;
|
|
169
129
|
fetchAnalytics(): void;
|
|
170
130
|
getCategoriesAndCollection(): void;
|
|
171
|
-
private listsLoaded;
|
|
172
|
-
private lastListPath;
|
|
173
|
-
private listPathSubscription?;
|
|
174
|
-
private currentListPath;
|
|
175
|
-
private resolveListRouteParams;
|
|
176
131
|
get selectedCategoryCollectionChips(): {
|
|
177
132
|
id: string;
|
|
178
133
|
name: string;
|
|
@@ -29,6 +29,7 @@ export declare class VerifyComponent extends BaseSection implements OnInit {
|
|
|
29
29
|
private MAX_API_COUNT;
|
|
30
30
|
private PASSBOOK_API_COUNT;
|
|
31
31
|
private APPOINTMENT_API_COUNT;
|
|
32
|
+
private ADD_ON_API_COUNT;
|
|
32
33
|
private MAX_PASSBOOK_API_COUNT;
|
|
33
34
|
ngOnInit(): void;
|
|
34
35
|
get getImageUrl(): string | undefined;
|
|
@@ -36,6 +37,11 @@ export declare class VerifyComponent extends BaseSection implements OnInit {
|
|
|
36
37
|
checkPaymentStatus(): void;
|
|
37
38
|
checkPassbookPaymentStatus(): void;
|
|
38
39
|
checkAppointmentPaymentStatus(): void;
|
|
40
|
+
/** Add-on-service deposit payment - same polling shape as checkAppointmentPaymentStatus, kept
|
|
41
|
+
* as a separate localStorage key/method rather than reusing that one, since a successful add-on
|
|
42
|
+
* payment attaches a service to a booking (BookingGroupService#confirmServiceAddOn), not
|
|
43
|
+
* confirms a whole new booking. */
|
|
44
|
+
checkAddOnPaymentStatus(): void;
|
|
39
45
|
editSection(): void;
|
|
40
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<VerifyComponent, never>;
|
|
41
47
|
static ɵcmp: i0.ɵɵComponentDeclaration<VerifyComponent, "simpo-verify-payment", never, { "data": { "alias": "data"; "required": false; }; "responseData": { "alias": "responseData"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "index": { "alias": "index"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; "customClass": { "alias": "customClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
@@ -38,9 +38,6 @@ export declare class Product {
|
|
|
38
38
|
tags: string[];
|
|
39
39
|
jewelryPriceBreakup: any;
|
|
40
40
|
configs: any;
|
|
41
|
-
customFieldValues: {
|
|
42
|
-
[identifier: string]: any;
|
|
43
|
-
};
|
|
44
41
|
constructor(json?: {
|
|
45
42
|
[key: string]: any;
|
|
46
43
|
});
|
|
@@ -108,49 +105,10 @@ export interface ItemVariant {
|
|
|
108
105
|
variantImages: ItemImage[];
|
|
109
106
|
itemPacks: ItemPack[];
|
|
110
107
|
properties: any;
|
|
111
|
-
options?: ItemVariantOption[];
|
|
112
108
|
itemVariantPrice: ItemVariantPrice;
|
|
113
109
|
itemInventory: ItemInventory2;
|
|
114
110
|
itemStatus: string;
|
|
115
111
|
}
|
|
116
|
-
export interface ItemVariantOption {
|
|
117
|
-
name: string;
|
|
118
|
-
value: string;
|
|
119
|
-
}
|
|
120
|
-
export interface FilterChoice {
|
|
121
|
-
value: string;
|
|
122
|
-
label: string;
|
|
123
|
-
count: number;
|
|
124
|
-
}
|
|
125
|
-
export interface FilterDef {
|
|
126
|
-
identifier: string;
|
|
127
|
-
label: string;
|
|
128
|
-
type: string;
|
|
129
|
-
control: 'MULTI_SELECT' | 'SELECT' | 'RANGE' | 'BOOLEAN' | 'LOOKUP' | string;
|
|
130
|
-
choices: FilterChoice[];
|
|
131
|
-
min?: number | null;
|
|
132
|
-
max?: number | null;
|
|
133
|
-
}
|
|
134
|
-
export interface FilterGroup {
|
|
135
|
-
key: string;
|
|
136
|
-
label: string;
|
|
137
|
-
filters: FilterDef[];
|
|
138
|
-
}
|
|
139
|
-
export interface SortOption {
|
|
140
|
-
key: string;
|
|
141
|
-
label: string;
|
|
142
|
-
}
|
|
143
|
-
export interface FilterOptions {
|
|
144
|
-
sorts: SortOption[];
|
|
145
|
-
groups: FilterGroup[];
|
|
146
|
-
filters: FilterDef[];
|
|
147
|
-
}
|
|
148
|
-
export interface CustomFieldFilter {
|
|
149
|
-
identifier: string;
|
|
150
|
-
values?: string[];
|
|
151
|
-
min?: string;
|
|
152
|
-
max?: string;
|
|
153
|
-
}
|
|
154
112
|
export interface ItemPack {
|
|
155
113
|
itemPackId: string;
|
|
156
114
|
packName: string;
|
|
@@ -2,6 +2,7 @@ import { ElementRef, OnInit } from '@angular/core';
|
|
|
2
2
|
import { MessageService } from 'primeng/api';
|
|
3
3
|
import { RestService } from '../../services/rest.service';
|
|
4
4
|
import { StorageServiceService } from '../../services/storage.service';
|
|
5
|
+
import { EventsService } from '../../services/events.service';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
interface BookingRow {
|
|
7
8
|
groupId: string;
|
|
@@ -55,7 +56,8 @@ export declare class MyBookingsComponent implements OnInit {
|
|
|
55
56
|
private readonly restService;
|
|
56
57
|
private readonly storageService;
|
|
57
58
|
private readonly messageService;
|
|
58
|
-
|
|
59
|
+
private readonly eventsService;
|
|
60
|
+
constructor(restService: RestService, storageService: StorageServiceService, messageService: MessageService, eventsService: EventsService);
|
|
59
61
|
data: any;
|
|
60
62
|
styles: any;
|
|
61
63
|
/** Same contrast algorithm as ColorDirective (directive/color.directive.ts) - reimplemented as
|
|
@@ -117,6 +119,7 @@ export declare class MyBookingsComponent implements OnInit {
|
|
|
117
119
|
pendingAmount(b: BookingRow): number;
|
|
118
120
|
get canCancelSelected(): boolean;
|
|
119
121
|
get canRescheduleSelected(): boolean;
|
|
122
|
+
get canAddServiceSelected(): boolean;
|
|
120
123
|
viewBookingDetail(b: BookingRow): void;
|
|
121
124
|
backToList(): void;
|
|
122
125
|
openReschedulePanel(): void;
|
|
@@ -133,6 +136,27 @@ export declare class MyBookingsComponent implements OnInit {
|
|
|
133
136
|
selectReschTime(time: string): void;
|
|
134
137
|
get reschInvalid(): boolean;
|
|
135
138
|
confirmReschedule(): void;
|
|
139
|
+
addServicePanelOpen: boolean;
|
|
140
|
+
addServiceLoading: boolean;
|
|
141
|
+
addServiceOptions: any[];
|
|
142
|
+
addServiceSelected: any[];
|
|
143
|
+
addServiceSubmitting: boolean;
|
|
144
|
+
addServiceError: string;
|
|
145
|
+
openAddServicePanel(): void;
|
|
146
|
+
closeAddServicePanel(): void;
|
|
147
|
+
isAddServiceSelected(service: any): boolean;
|
|
148
|
+
toggleAddService(service: any): void;
|
|
149
|
+
/** Mirrors appointment_service's DepositUtils#getServiceDepositAmount exactly - fixed amount
|
|
150
|
+
* takes precedence over percent, 0 when no deposit is configured. Only used to decide which
|
|
151
|
+
* endpoint to call (a live Cashfree checkout vs. the direct add) - the backend re-derives this
|
|
152
|
+
* itself and never trusts a client-computed amount. */
|
|
153
|
+
private serviceDeposit;
|
|
154
|
+
/** Summed across every currently-checked service - drives both the running total shown in the
|
|
155
|
+
* panel and which endpoint addService() calls (same total the backend independently re-derives
|
|
156
|
+
* and actually enforces). */
|
|
157
|
+
get addServiceTotalDeposit(): number;
|
|
158
|
+
addService(): void;
|
|
159
|
+
private refreshSelectedServiceLines;
|
|
136
160
|
openCancelConfirm(): void;
|
|
137
161
|
closeCancelConfirm(): void;
|
|
138
162
|
cancelBooking(): void;
|
|
@@ -38,8 +38,8 @@ export declare class FooterComponent extends BaseSection {
|
|
|
38
38
|
navigateToHome(): void;
|
|
39
39
|
popularSearchedCategories: any[];
|
|
40
40
|
getPopularSearches(): void;
|
|
41
|
-
redirectToCollection(
|
|
42
|
-
redirectToCategory(
|
|
41
|
+
redirectToCollection(collectionName: string, categoryName: string): void;
|
|
42
|
+
redirectToCategory(categoryName: string): void;
|
|
43
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<FooterComponent, never>;
|
|
44
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<FooterComponent, "simpo-footer", never, { "data": { "alias": "data"; "required": false; }; "index": { "alias": "index"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "delete": { "alias": "delete"; "required": false; }; }, {}, never, never, true, never>;
|
|
45
45
|
}
|
|
@@ -3,7 +3,7 @@ import { OnDestroy } from '@angular/core';
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { Review } from '../ecommerce/styles/review.modal';
|
|
5
5
|
import { DeviceInfo } from '../ecommerce/styles/user.modal';
|
|
6
|
-
import { checkItemAlreadyAdded,
|
|
6
|
+
import { checkItemAlreadyAdded, syncItemToServerDBRequest } from '../ecommerce/styles/product.modal';
|
|
7
7
|
import { CookieService } from 'ngx-cookie-service';
|
|
8
8
|
import { StorageLike } from '../services/storage-like';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
@@ -42,18 +42,7 @@ export declare class RestService implements OnDestroy {
|
|
|
42
42
|
getAllCategories(): Observable<any>;
|
|
43
43
|
getAllCollections(): Observable<any>;
|
|
44
44
|
getAllBrands(): Observable<any>;
|
|
45
|
-
|
|
46
|
-
categoryIds?: string[];
|
|
47
|
-
collectionIds?: string[];
|
|
48
|
-
categorySlugNames?: string[];
|
|
49
|
-
collectionSlugNames?: string[];
|
|
50
|
-
}): Observable<FilterOptions>;
|
|
51
|
-
getFilteredProduct(collectionIds: string[], categoryIds: string[], searchText: string, minPrice: number, maxPrice: number, minRating: number, maxRating: number, sortBy: string, pageNo: number, size: number, brandIds?: string[], extra?: {
|
|
52
|
-
customFieldFilters?: CustomFieldFilter[];
|
|
53
|
-
sortDirection?: 'asc' | 'desc';
|
|
54
|
-
categorySlugName?: string[];
|
|
55
|
-
collectionSlugName?: string[];
|
|
56
|
-
}): Observable<{
|
|
45
|
+
getFilteredProduct(collectionIds: string[], categoryIds: string[], searchText: string, minPrice: number, maxPrice: number, minRating: number, maxRating: number, sortBy: string, pageNo: number, size: number, brandIds?: string[]): Observable<{
|
|
57
46
|
count: any;
|
|
58
47
|
minPrice: any;
|
|
59
48
|
maxPrice: any;
|
|
@@ -149,6 +138,10 @@ export declare class RestService implements OnDestroy {
|
|
|
149
138
|
getCancellationPolicy(businessId: string): Observable<Object>;
|
|
150
139
|
getRescheduleSlots(groupId: string, date: string): Observable<Object>;
|
|
151
140
|
rescheduleBooking(groupId: string, newDate: string, newStartTime: string): Observable<Object>;
|
|
141
|
+
getAddServiceOptions(groupId: string): Observable<Object>;
|
|
142
|
+
addServiceToBooking(groupId: string, serviceIds: string[]): Observable<Object>;
|
|
143
|
+
generateAddServicePaymentToken(groupId: string, serviceIds: string[]): Observable<Object>;
|
|
144
|
+
getAddOnPaymentStatus(orderId: any): Observable<Object>;
|
|
152
145
|
generateToken(bId: any, userId: any): Observable<Object>;
|
|
153
146
|
getAllEnrolledSchemes(payload: any): Observable<Object>;
|
|
154
147
|
enrollScheme(payload: any, checkCharges: boolean): Observable<Object>;
|
package/package.json
CHANGED
|
Binary file
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// Path-based links into the product list page: /list/{category}/{collection}.
|
|
2
|
-
// Slugs come from the backend `slugName` (`Mens Wear` -> `mens-wear`). A row without one yet
|
|
3
|
-
// falls back to the same rule applied to its name, so the link still resolves.
|
|
4
|
-
export function slugFromName(name) {
|
|
5
|
-
return (name ?? '')
|
|
6
|
-
.trim()
|
|
7
|
-
.toLowerCase()
|
|
8
|
-
.replace(/[^\w\s-]/g, '')
|
|
9
|
-
.replace(/[\s_]+/g, '-')
|
|
10
|
-
.replace(/-+/g, '-')
|
|
11
|
-
.replace(/^-|-$/g, '');
|
|
12
|
-
}
|
|
13
|
-
export function listSlug(item) {
|
|
14
|
-
if (!item)
|
|
15
|
-
return '';
|
|
16
|
-
if (typeof item === 'string')
|
|
17
|
-
return slugFromName(item);
|
|
18
|
-
const slug = item.slugName?.trim();
|
|
19
|
-
if (slug)
|
|
20
|
-
return slug;
|
|
21
|
-
return slugFromName(item.categoryName ?? item.collectionName ?? item.refName ?? item.name);
|
|
22
|
-
}
|
|
23
|
-
/** Commands for `router.navigate`, e.g. `['/list', 'mens-wear', 'summer-wear']`. */
|
|
24
|
-
export function listPath(target) {
|
|
25
|
-
const category = listSlug(target.category);
|
|
26
|
-
const collection = listSlug(target.collection);
|
|
27
|
-
const commands = ['/list'];
|
|
28
|
-
if (category)
|
|
29
|
-
commands.push(category);
|
|
30
|
-
if (collection)
|
|
31
|
-
commands.push(collection);
|
|
32
|
-
return commands;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Slug segments of a list page pathname, at most `[category, collection]`.
|
|
36
|
-
* `/list/mens-wear/summer-wear` and a host route that serves the list at the root,
|
|
37
|
-
* `/mens-wear/summer-wear`, both give `['mens-wear', 'summer-wear']`.
|
|
38
|
-
*/
|
|
39
|
-
export function parseListPath(pathname) {
|
|
40
|
-
const segments = (pathname ?? '')
|
|
41
|
-
.split('?')[0]
|
|
42
|
-
.split('#')[0]
|
|
43
|
-
.split('/')
|
|
44
|
-
.filter(Boolean)
|
|
45
|
-
.map((segment) => {
|
|
46
|
-
try {
|
|
47
|
-
return decodeURIComponent(segment);
|
|
48
|
-
}
|
|
49
|
-
catch {
|
|
50
|
-
return segment;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
const listIndex = segments.indexOf('list');
|
|
54
|
-
return listIndex >= 0 ? segments.slice(listIndex + 1, listIndex + 3) : segments.slice(0, 2);
|
|
55
|
-
}
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGlzdC1yb3V0ZS51dGlsLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2ltcG8tdWkvc3JjL2xpYi91dGlscy9saXN0LXJvdXRlLnV0aWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsOEVBQThFO0FBQzlFLDZGQU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XRlIHRoYXQgc2VydmVzIHRoZSBsaXN0IGF0IHRoZSByb290LFxuICogYC9tZW5zLXdlYXIvc3VtbWVyLXdlYXJgLCBib3RoIGdpdmUgYFsnbWVucy13ZWFyJywgJ3N1bW1lci13ZWFyJ11gLlxuICovXG5leHBvcnQgZnVuY3Rpb24gcGFyc2VMaXN0UGF0aChwYXRobmFtZTogc3RyaW5nKTogc3RyaW5nW10ge1xuICBjb25zdCBzZWdtZW50cyA9IChwYXRobmFtZSA/PyAnJylcbiAgICAuc3BsaXQoJz8nKVswXVxuICAgIC5zcGxpdCgnIycpWzBdXG4gICAgLnNwbGl0KCcvJylcbiAgICAuZmlsdGVyKEJvb2xlYW4pXG4gICAgLm1hcCgoc2VnbWVudCkgPT4ge1xuICAgICAgdHJ5IHsgcmV0dXJuIGRlY29kZVVSSUNvbXBvbmVudChzZWdtZW50KTsgfSBjYXRjaCB7IHJldHVybiBzZWdtZW50OyB9XG4gICAgfSk7XG4gIGNvbnN0IGxpc3RJbmRleCA9IHNlZ21lbnRzLmluZGV4T2YoJ2xpc3QnKTtcbiAgcmV0dXJuIGxpc3RJbmRleCA+PSAwID8gc2VnbWVudHMuc2xpY2UobGlzdEluZGV4ICsgMSwgbGlzdEluZGV4ICsgMykgOiBzZWdtZW50cy5zbGljZSgwLCAyKTtcbn1cbiJdfQ==
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
interface Sluggable {
|
|
2
|
-
slugName?: string | null;
|
|
3
|
-
categoryName?: string | null;
|
|
4
|
-
collectionName?: string | null;
|
|
5
|
-
refName?: string | null;
|
|
6
|
-
name?: string | null;
|
|
7
|
-
}
|
|
8
|
-
export declare function slugFromName(name?: string | null): string;
|
|
9
|
-
export declare function listSlug(item?: Sluggable | string | null): string;
|
|
10
|
-
/** Commands for `router.navigate`, e.g. `['/list', 'mens-wear', 'summer-wear']`. */
|
|
11
|
-
export declare function listPath(target: {
|
|
12
|
-
category?: Sluggable | string | null;
|
|
13
|
-
collection?: Sluggable | string | null;
|
|
14
|
-
}): string[];
|
|
15
|
-
/**
|
|
16
|
-
* Slug segments of a list page pathname, at most `[category, collection]`.
|
|
17
|
-
* `/list/mens-wear/summer-wear` and a host route that serves the list at the root,
|
|
18
|
-
* `/mens-wear/summer-wear`, both give `['mens-wear', 'summer-wear']`.
|
|
19
|
-
*/
|
|
20
|
-
export declare function parseListPath(pathname: string): string[];
|
|
21
|
-
export {};
|
|
Binary file
|