@ptcwebops/ptcw-design 6.4.18 → 6.4.20-beta
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/dist/cjs/blogs-search-section.cjs.entry.js +4 -1
- package/dist/cjs/buying-option-card.cjs.entry.js +1 -1
- package/dist/cjs/buying-option-cards-slider.cjs.entry.js +15 -8
- package/dist/cjs/{component-06dda623.js → component-6a178a16.js} +2643 -832
- package/dist/cjs/dynamic-box-bundle.cjs.entry.js +3 -1
- package/dist/cjs/event-podcast-slider-example.cjs.entry.js +1 -1
- package/dist/cjs/featured-events-slider-example.cjs.entry.js +1 -1
- package/dist/cjs/featured-list.cjs.entry.js +1 -1
- package/dist/cjs/homepage-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/homepage-toggled-content.cjs.entry.js +3 -1
- package/dist/cjs/icon-asset.cjs.entry.js +65 -0
- package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
- package/dist/cjs/interfaces-574e6df7.js +15 -0
- package/dist/cjs/list-item.cjs.entry.js +52 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/max-width-container.cjs.entry.js +54 -0
- package/dist/cjs/modal-form-example.cjs.entry.js +109 -0
- package/dist/cjs/ptc-announcement.cjs.entry.js +2 -1
- package/dist/cjs/ptc-background-video.cjs.entry.js +152 -0
- package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +53 -0
- package/dist/cjs/ptc-button.cjs.entry.js +117 -0
- package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +3 -17
- package/dist/cjs/ptc-card-content.cjs.entry.js +1 -7
- package/dist/cjs/ptc-card_2.cjs.entry.js +5 -4
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +27 -34
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +11 -2
- package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +1 -1
- package/dist/cjs/{ptc-form-checkbox_2.cjs.entry.js → ptc-form-checkbox_4.cjs.entry.js} +723 -5
- package/dist/cjs/ptc-icon-card-slider-example.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-component.cjs.entry.js +1 -1
- package/dist/cjs/ptc-img.cjs.entry.js +216 -0
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +190 -0
- package/dist/cjs/ptc-modal-quiz.cjs.entry.js +4 -1
- package/dist/cjs/ptc-overlay.cjs.entry.js +1 -1
- package/dist/cjs/ptc-para.cjs.entry.js +139 -0
- package/dist/cjs/ptc-picture.cjs.entry.js +185 -0
- package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-preloader.cjs.entry.js +1 -1
- package/dist/cjs/ptc-previous-url.cjs.entry.js +11 -2
- package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +37 -21
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-readmore-char.cjs.entry.js +1 -1
- package/dist/cjs/ptc-readmore-v3.cjs.entry.js +1 -1
- package/dist/cjs/ptc-spacer.cjs.entry.js +38 -0
- package/dist/cjs/ptc-subnav-v2.cjs.entry.js +533 -0
- package/dist/cjs/ptc-title.cjs.entry.js +161 -0
- package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-tooltip.cjs.entry.js +113 -0
- package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
- package/dist/cjs/ptc-white-paper.cjs.entry.js +19 -9
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/storefront-enhanced-product-list-alt-example.cjs.entry.js +1 -1
- package/dist/cjs/storefront-enhanced-product-list-example.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +1 -3
- package/dist/collection/components/buying-option-card/buying-option-card.css +2 -0
- package/dist/collection/components/buying-option-cards-slider/buying-option-cards-slider.css +9 -26
- package/dist/collection/components/buying-option-cards-slider/buying-option-cards-slider.js +14 -7
- package/dist/collection/components/dynamic-box-bundle/dynamic-box-bundle.js +3 -1
- package/dist/collection/components/icon-asset/media/designer-v6.0.7.svg +30 -2
- package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +24 -4
- package/dist/collection/components/organism-bundles/blogs-search-section/blogs-search-section.js +4 -1
- package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +24 -4
- package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.css +16 -11
- package/dist/collection/components/organism-bundles/featured-events-slider-example/featured-events-slider-example.css +16 -11
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +26 -0
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +114 -0
- package/dist/collection/components/organism-bundles/homepage-jumbotron/homepage-jumbotron.css +16 -11
- package/dist/collection/components/organism-bundles/homepage-toggled-content/homepage-toggled-content.js +3 -1
- package/dist/collection/components/organism-bundles/ptc-icon-card-slider-example/ptc-icon-card-slider-example.css +16 -11
- package/dist/collection/components/organism-bundles/storefront-enhanced-product-list-example/storefront-enhanced-product-list-example.css +16 -11
- package/dist/collection/components/ptc-announcement/ptc-announcement.js +2 -1
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +24 -4
- package/dist/collection/components/ptc-breadcrumb/ptc-breadcrumb.js +2 -29
- package/dist/collection/components/ptc-button/ptc-button.css +0 -47
- package/dist/collection/components/ptc-card-content/ptc-card-content.css +1 -20
- package/dist/collection/components/ptc-card-content/ptc-card-content.js +0 -24
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +3 -17
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +40 -15
- package/dist/collection/components/ptc-data-lookup/ptc-data-lookup.js +4 -0
- package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +24 -4
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +24 -4
- package/dist/collection/components/ptc-icon-component/ptc-icon-component.css +16 -11
- package/dist/collection/components/ptc-img/ptc-img.css +76 -0
- package/dist/collection/components/ptc-img/ptc-img.js +132 -7
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +26 -7
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.js +28 -4
- package/dist/collection/components/ptc-modal/ptc-modal.css +5 -10
- package/dist/collection/components/ptc-modal/ptc-modal.js +28 -71
- package/dist/collection/components/ptc-modal-quiz/ptc-modal-quiz.js +4 -1
- package/dist/collection/components/ptc-overlay/ptc-overlay.css +0 -4
- package/dist/collection/components/ptc-overlay/ptc-overlay.js +1 -1
- package/dist/collection/components/ptc-para/ptc-para.css +3 -0
- package/dist/collection/components/ptc-para/ptc-para.js +2 -2
- package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +24 -4
- package/dist/collection/components/ptc-preloader/ptc-preloader.css +147 -111
- package/dist/collection/components/ptc-preloader/ptc-preloader.js +1 -1
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +6 -18
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +4 -3
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +16 -0
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +28 -1
- package/dist/collection/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.js +37 -21
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.js +1 -1
- package/dist/collection/components/ptc-product-card/ptc-product-card.css +24 -18
- package/dist/collection/components/ptc-product-category/ptc-product-category.css +24 -4
- package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +24 -4
- package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +24 -4
- package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +24 -4
- package/dist/collection/components/ptc-seo-title/ptc-seo-title.js +3 -3
- package/dist/collection/components/ptc-subnav-v2/ptc-subnav-v2.css +17 -18
- package/dist/collection/components/ptc-subnav-v2/ptc-subnav-v2.js +5 -67
- package/dist/collection/components/ptc-textfield/ptc-textfield.js +3 -5
- package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +24 -4
- package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +24 -4
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +27 -7
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +18 -8
- package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +45 -0
- package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +47 -0
- package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +157 -0
- package/dist/collection/stories/organisms/ptc/E Store Build Product/preview.stories.js +2 -13
- package/dist/collection/utils/elq-lib.js +6 -0
- package/dist/custom-elements/index.d.ts +6 -18
- package/dist/custom-elements/index.js +391 -376
- package/dist/esm/academic-form-test.entry.js +1 -1
- package/dist/esm/author-listing-example.entry.js +1 -1
- package/dist/esm/blog-detail-content_2.entry.js +2 -2
- package/dist/esm/blog-detail-layout.entry.js +2 -2
- package/dist/esm/blogs-search-section.entry.js +6 -3
- package/dist/esm/bundle-example.entry.js +1 -1
- package/dist/esm/bundle-jumbotron-example.entry.js +1 -1
- package/dist/esm/buying-option-card.entry.js +2 -2
- package/dist/esm/buying-option-cards-slider.entry.js +16 -9
- package/dist/esm/{component-274da230.js → component-80f298b4.js} +2592 -793
- package/dist/esm/dropdown-item.entry.js +1 -1
- package/dist/esm/dynamic-box-bundle.entry.js +4 -2
- package/dist/esm/embedded-form.entry.js +1 -1
- package/dist/esm/event-jumbotron-example.entry.js +1 -1
- package/dist/esm/event-podcast-slider-example.entry.js +2 -2
- package/dist/esm/featured-events-slider-example.entry.js +2 -2
- package/dist/esm/featured-list.entry.js +2 -2
- package/dist/esm/fl-tab-content_3.entry.js +1 -1
- package/dist/esm/footer-form.entry.js +1 -1
- package/dist/esm/homepage-clickable-tab.entry.js +1 -1
- package/dist/esm/homepage-jumbotron.entry.js +3 -3
- package/dist/esm/homepage-toggled-content.entry.js +5 -3
- package/dist/esm/icon-asset.entry.js +61 -0
- package/dist/esm/{index-0bf594c4.js → index-c83db688.js} +1 -1
- package/dist/esm/innovator-toggle-container.entry.js +3 -3
- package/dist/esm/interfaces-4caedd26.js +12 -0
- package/dist/esm/jumbotron-sub-menu.entry.js +1 -1
- package/dist/esm/jumbotron-sub-mune.entry.js +1 -1
- package/dist/esm/list-item.entry.js +48 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/max-width-container.entry.js +50 -0
- package/dist/esm/modal-form-example.entry.js +105 -0
- package/dist/esm/most-popular-news.entry.js +2 -2
- package/dist/esm/my-component.entry.js +2 -2
- package/dist/esm/news-search-result.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +2 -2
- package/dist/esm/ptc-accordion.entry.js +1 -1
- package/dist/esm/ptc-announcement.entry.js +3 -2
- package/dist/esm/ptc-back-to-top.entry.js +1 -1
- package/dist/esm/ptc-background-video.entry.js +148 -0
- package/dist/esm/ptc-badge.entry.js +1 -1
- package/dist/esm/ptc-bio-card.entry.js +2 -2
- package/dist/esm/ptc-breadcrumb.entry.js +49 -0
- package/dist/esm/ptc-brightcov-video.entry.js +1 -1
- package/dist/esm/ptc-button.entry.js +113 -0
- package/dist/esm/ptc-card-bottom_2.entry.js +4 -18
- package/dist/esm/ptc-card-content.entry.js +2 -8
- package/dist/esm/ptc-card_2.entry.js +6 -5
- package/dist/esm/ptc-case-studies-slider.entry.js +2 -2
- package/dist/esm/ptc-checkbox-group.entry.js +1 -1
- package/dist/esm/ptc-checkbox.entry.js +1 -1
- package/dist/esm/ptc-close-icon_2.entry.js +28 -35
- package/dist/esm/ptc-collapse-list.entry.js +2 -2
- package/dist/esm/ptc-container.entry.js +1 -1
- package/dist/esm/ptc-countdown.entry.js +1 -1
- package/dist/esm/ptc-data-lookup.entry.js +12 -3
- package/dist/esm/ptc-date.entry.js +1 -1
- package/dist/esm/ptc-dropdown.entry.js +1 -1
- package/dist/esm/ptc-dynamic-card.entry.js +1 -1
- package/dist/esm/ptc-ellipsis-dropdown.entry.js +1 -1
- package/dist/esm/ptc-embedded-quiz.entry.js +1 -1
- package/dist/esm/ptc-enhanced-product-listing-card.entry.js +1 -1
- package/dist/esm/ptc-featured-list.entry.js +2 -2
- package/dist/esm/ptc-filter-dropdown_4.entry.js +1 -1
- package/dist/esm/ptc-filter-level-theater.entry.js +2 -2
- package/dist/esm/ptc-filter-tag_2.entry.js +1 -1
- package/dist/esm/ptc-footer.entry.js +1 -1
- package/dist/esm/{ptc-form-checkbox_2.entry.js → ptc-form-checkbox_4.entry.js} +724 -8
- package/dist/esm/ptc-form-radio-button.entry.js +1 -1
- package/dist/esm/ptc-form-radio-group.entry.js +1 -1
- package/dist/esm/ptc-form.entry.js +1 -1
- package/dist/esm/ptc-hero-footer-cta.entry.js +1 -1
- package/dist/esm/ptc-hero.entry.js +1 -1
- package/dist/esm/ptc-homepage-image-feature.entry.js +2 -2
- package/dist/esm/ptc-homepage-video-background.entry.js +2 -2
- package/dist/esm/ptc-icon-card-slider-example.entry.js +2 -2
- package/dist/esm/ptc-icon-card.entry.js +2 -2
- package/dist/esm/ptc-icon-component.entry.js +2 -2
- package/dist/esm/ptc-icon-list.entry.js +1 -1
- package/dist/esm/ptc-icon-minimize.entry.js +1 -1
- package/dist/esm/ptc-image-download-strip.entry.js +1 -1
- package/dist/esm/ptc-img.entry.js +212 -0
- package/dist/esm/ptc-info-tile.entry.js +1 -1
- package/dist/esm/ptc-inline-cta.entry.js +1 -1
- package/dist/esm/ptc-jumbotron.entry.js +186 -0
- package/dist/esm/ptc-link.entry.js +2 -2
- package/dist/esm/ptc-list.entry.js +1 -1
- package/dist/esm/ptc-media-card.entry.js +2 -2
- package/dist/esm/ptc-minimized-nav.entry.js +1 -1
- package/dist/esm/ptc-mobile-select.entry.js +1 -1
- package/dist/esm/ptc-modal-quiz.entry.js +5 -2
- package/dist/esm/ptc-nav-card.entry.js +1 -1
- package/dist/esm/ptc-nav-link.entry.js +1 -1
- package/dist/esm/ptc-nav-pills.entry.js +1 -1
- package/dist/esm/ptc-nav-skip-to-content.entry.js +1 -1
- package/dist/esm/ptc-nav-slider.entry.js +1 -1
- package/dist/esm/ptc-nav-submenu.entry.js +1 -1
- package/dist/esm/ptc-nav-tile.entry.js +1 -1
- package/dist/esm/ptc-news.entry.js +1 -1
- package/dist/esm/ptc-office-location-card.entry.js +1 -1
- package/dist/esm/ptc-office-locations.entry.js +1 -1
- package/dist/esm/ptc-overlay.entry.js +2 -2
- package/dist/esm/ptc-para.entry.js +135 -0
- package/dist/esm/ptc-picture.entry.js +181 -0
- package/dist/esm/ptc-podcast-card.entry.js +2 -2
- package/dist/esm/ptc-preferance-center-form.entry.js +1 -1
- package/dist/esm/ptc-preloader.entry.js +2 -2
- package/dist/esm/ptc-previous-url.entry.js +12 -3
- package/dist/esm/ptc-pricing-add-on-card.entry.js +1 -1
- package/dist/esm/ptc-pricing-add-on-section.entry.js +1 -1
- package/dist/esm/ptc-pricing-block.entry.js +1 -1
- package/dist/esm/ptc-pricing-packaging-table.entry.js +39 -23
- package/dist/esm/ptc-pricing-tabs.entry.js +3 -3
- package/dist/esm/ptc-product-card.entry.js +2 -2
- package/dist/esm/ptc-product-category.entry.js +2 -2
- package/dist/esm/ptc-product-dropdown.entry.js +1 -1
- package/dist/esm/ptc-product-highlight-card.entry.js +2 -2
- package/dist/esm/ptc-product-list.entry.js +1 -1
- package/dist/esm/ptc-product-sidebar.entry.js +1 -1
- package/dist/esm/ptc-progress-bar.entry.js +1 -1
- package/dist/esm/ptc-quantity-counter.entry.js +1 -1
- package/dist/esm/ptc-quote.entry.js +1 -1
- package/dist/esm/ptc-readmore-char.entry.js +2 -2
- package/dist/esm/ptc-readmore-new.entry.js +1 -1
- package/dist/esm/ptc-readmore-v3.entry.js +2 -2
- package/dist/esm/ptc-readmore.entry.js +1 -1
- package/dist/esm/ptc-related-card-rail.entry.js +1 -1
- package/dist/esm/ptc-responsive-wrapper.entry.js +1 -1
- package/dist/esm/ptc-scroll-button.entry.js +1 -1
- package/dist/esm/ptc-search-field.entry.js +1 -1
- package/dist/esm/ptc-seo-title.entry.js +1 -1
- package/dist/esm/ptc-shopping-cart.entry.js +1 -1
- package/dist/esm/ptc-showcase-card.entry.js +1 -1
- package/dist/esm/ptc-skeleton.entry.js +1 -1
- package/dist/esm/ptc-slit-card.entry.js +1 -1
- package/dist/esm/ptc-social-icons-footer.entry.js +2 -2
- package/dist/esm/ptc-social-icons.entry.js +1 -1
- package/dist/esm/ptc-spacer.entry.js +34 -0
- package/dist/esm/ptc-span.entry.js +1 -1
- package/dist/esm/ptc-square-card.entry.js +1 -1
- package/dist/esm/ptc-sticky-icons.entry.js +1 -1
- package/dist/esm/ptc-sticky-section.entry.js +1 -1
- package/dist/esm/ptc-sticky-title.entry.js +1 -1
- package/dist/esm/ptc-subnav-card.entry.js +1 -1
- package/dist/esm/ptc-subnav-v2.entry.js +529 -0
- package/dist/esm/ptc-subnav.entry.js +1 -1
- package/dist/esm/ptc-svg-btn.entry.js +1 -1
- package/dist/esm/ptc-tab-list.entry.js +1 -1
- package/dist/esm/ptc-tab.entry.js +1 -1
- package/dist/esm/ptc-tabs.entry.js +1 -1
- package/dist/esm/ptc-text-copy-with-background.entry.js +1 -1
- package/dist/esm/ptc-theater-video-modal.entry.js +1 -1
- package/dist/esm/ptc-title.entry.js +157 -0
- package/dist/esm/ptc-tooltip-v2.entry.js +2 -2
- package/dist/esm/ptc-tooltip-v3.entry.js +1 -1
- package/dist/esm/ptc-tooltip.entry.js +109 -0
- package/dist/esm/ptc-two-column-media.entry.js +1 -1
- package/dist/esm/ptc-value-led-card.entry.js +1 -1
- package/dist/esm/ptc-value-led-content-highlight.entry.js +1 -1
- package/dist/esm/ptc-value-led-content.entry.js +1 -1
- package/dist/esm/ptc-value-led-intro.entry.js +1 -1
- package/dist/esm/ptc-value-led-layout.entry.js +1 -1
- package/dist/esm/ptc-value-led-speed-bump.entry.js +2 -2
- package/dist/esm/ptc-value-prop-card.entry.js +1 -1
- package/dist/esm/ptc-video-embed.entry.js +1 -1
- package/dist/esm/ptc-white-paper.entry.js +20 -10
- package/dist/esm/ptcw-design.js +3 -3
- package/dist/esm/sequential-bundle-example.entry.js +1 -1
- package/dist/esm/sequential-bundle.entry.js +1 -1
- package/dist/esm/storefront-enhanced-product-list-alt-example.entry.js +2 -2
- package/dist/esm/storefront-enhanced-product-list-example.entry.js +2 -2
- package/dist/esm/tab-content.entry.js +1 -1
- package/dist/esm/tab-header.entry.js +1 -1
- package/dist/esm/{utils-a64ba942.js → utils-bdd0cc16.js} +1 -1
- package/dist/ptcw-design/media/designer-v6.0.7.svg +30 -2
- package/dist/ptcw-design/{p-8482f517.entry.js → p-0451b768.entry.js} +1 -1
- package/dist/ptcw-design/p-04891836.entry.js +1 -0
- package/dist/ptcw-design/{p-74a845fd.entry.js → p-04aae3f5.entry.js} +1 -1
- package/dist/ptcw-design/{p-c9a73ad1.entry.js → p-04f0b1ba.entry.js} +1 -1
- package/dist/ptcw-design/p-0a86d91a.entry.js +1 -0
- package/dist/ptcw-design/{p-e8b51e7d.entry.js → p-0a9ee6c2.entry.js} +1 -1
- package/dist/ptcw-design/p-0c69ea52.entry.js +1 -0
- package/dist/ptcw-design/{p-c80265d9.entry.js → p-0c914932.entry.js} +1 -1
- package/dist/ptcw-design/{p-f004e5de.entry.js → p-0ddf2a09.entry.js} +1 -1
- package/dist/ptcw-design/p-0fbdcd78.entry.js +1 -0
- package/dist/ptcw-design/{p-681d26ef.entry.js → p-13963d40.entry.js} +1 -1
- package/dist/ptcw-design/{p-36d6e662.entry.js → p-13e338a5.entry.js} +1 -1
- package/dist/ptcw-design/{p-8cdcfb51.entry.js → p-15e36f30.entry.js} +1 -1
- package/dist/ptcw-design/p-17b8281a.entry.js +1 -0
- package/dist/ptcw-design/p-187ef77b.entry.js +1 -0
- package/dist/ptcw-design/{p-f418ef26.entry.js → p-18d699f0.entry.js} +1 -1
- package/dist/ptcw-design/p-1a853854.entry.js +1 -0
- package/dist/ptcw-design/{p-7815e38b.entry.js → p-1bffeaed.entry.js} +1 -1
- package/dist/ptcw-design/{p-908ad455.entry.js → p-1c63c812.entry.js} +1 -1
- package/dist/ptcw-design/p-1d789cd7.entry.js +1 -0
- package/dist/ptcw-design/{p-2fd01953.entry.js → p-21fa5abe.entry.js} +1 -1
- package/dist/ptcw-design/{p-c9762c88.entry.js → p-23cb5b5b.entry.js} +1 -1
- package/dist/ptcw-design/{p-a22d7ae8.entry.js → p-257a68df.entry.js} +1 -1
- package/dist/ptcw-design/p-260ecfef.entry.js +1 -0
- package/dist/ptcw-design/p-2670ac97.entry.js +1 -0
- package/dist/ptcw-design/p-26b70120.entry.js +1 -0
- package/dist/ptcw-design/{p-fa045097.entry.js → p-26e8ad2e.entry.js} +1 -1
- package/dist/ptcw-design/{p-14c77b5e.entry.js → p-27e47c25.entry.js} +1 -1
- package/dist/ptcw-design/{p-f20e4230.entry.js → p-2a22123e.entry.js} +1 -1
- package/dist/ptcw-design/{p-f4ae5a99.entry.js → p-2b08a37d.entry.js} +1 -1
- package/dist/ptcw-design/{p-315b7885.entry.js → p-2c287230.entry.js} +1 -1
- package/dist/ptcw-design/{p-54891548.entry.js → p-2c2f895a.entry.js} +1 -1
- package/dist/ptcw-design/p-2c8faf9a.entry.js +1 -0
- package/dist/ptcw-design/p-312c41b8.entry.js +1 -0
- package/dist/ptcw-design/p-349f43d5.entry.js +1 -0
- package/dist/ptcw-design/p-37f92bb4.entry.js +1 -0
- package/dist/ptcw-design/{p-a2710bbf.entry.js → p-3872fce7.entry.js} +1 -1
- package/dist/ptcw-design/p-390c0dee.entry.js +1 -0
- package/dist/ptcw-design/p-3b40bfbf.entry.js +68 -0
- package/dist/ptcw-design/{p-2fa5814b.entry.js → p-3cb011c9.entry.js} +1 -1
- package/dist/ptcw-design/{p-b9966f20.entry.js → p-3cfe0126.entry.js} +1 -1
- package/dist/ptcw-design/p-3ddb6c50.entry.js +1 -0
- package/dist/ptcw-design/{p-3c941935.entry.js → p-3e4861a2.entry.js} +1 -1
- package/dist/ptcw-design/{p-1e9f25fc.entry.js → p-46f67bec.entry.js} +1 -1
- package/dist/ptcw-design/p-4703e417.entry.js +1 -0
- package/dist/ptcw-design/p-4ab3249d.entry.js +1 -0
- package/dist/ptcw-design/{p-a31f22a1.entry.js → p-4c89d63d.entry.js} +1 -1
- package/dist/ptcw-design/{p-a1dc7ae5.entry.js → p-4f3dea53.entry.js} +1 -1
- package/dist/ptcw-design/{p-ed5a467e.entry.js → p-4f4f97a6.entry.js} +1 -1
- package/dist/ptcw-design/p-502f534b.entry.js +1 -0
- package/dist/ptcw-design/{p-91e5c8d4.entry.js → p-506dac1f.entry.js} +1 -1
- package/dist/ptcw-design/{p-83632220.entry.js → p-53dee19b.entry.js} +1 -1
- package/dist/ptcw-design/{p-bca81995.entry.js → p-560b05a5.entry.js} +1 -1
- package/dist/ptcw-design/p-567535fb.entry.js +1 -0
- package/dist/ptcw-design/{p-c8de7309.entry.js → p-575861b3.entry.js} +1 -1
- package/dist/ptcw-design/{p-ec395ae9.entry.js → p-5877f093.entry.js} +1 -1
- package/dist/ptcw-design/{p-07b46e6e.entry.js → p-58909b95.entry.js} +1 -1
- package/dist/ptcw-design/{p-cab0274c.entry.js → p-5946d7c9.entry.js} +1 -1
- package/dist/ptcw-design/{p-807ad5c4.entry.js → p-5980d65d.entry.js} +1 -1
- package/dist/ptcw-design/{p-e2da8109.entry.js → p-5a2ed8fb.entry.js} +1 -1
- package/dist/ptcw-design/{p-7c6d6a5e.entry.js → p-5dd538c4.entry.js} +1 -1
- package/dist/ptcw-design/p-5e4c1edf.entry.js +1 -0
- package/dist/ptcw-design/{p-5fb671ee.entry.js → p-61d28206.entry.js} +1 -1
- package/dist/ptcw-design/{p-3e13f29c.entry.js → p-66ecd7b9.entry.js} +1 -1
- package/dist/ptcw-design/p-672a349f.js +336 -0
- package/dist/ptcw-design/p-6a561487.entry.js +1 -0
- package/dist/ptcw-design/{p-575c7fc0.entry.js → p-6aa9ed95.entry.js} +1 -1
- package/dist/ptcw-design/{p-5877ab67.entry.js → p-6b9e4a18.entry.js} +1 -1
- package/dist/ptcw-design/p-6f2acce5.entry.js +1 -0
- package/dist/ptcw-design/p-6f9f55b3.entry.js +1 -0
- package/dist/ptcw-design/p-711bcdad.js +1 -0
- package/dist/ptcw-design/p-7218fe2c.entry.js +1 -0
- package/dist/ptcw-design/{p-9220308d.entry.js → p-7235425a.entry.js} +1 -1
- package/dist/ptcw-design/p-74097f89.entry.js +1 -0
- package/dist/ptcw-design/{p-522cb451.entry.js → p-757954b2.entry.js} +1 -1
- package/dist/ptcw-design/p-761a31f8.entry.js +1 -0
- package/dist/ptcw-design/{p-3e13b735.entry.js → p-76d98c5a.entry.js} +1 -1
- package/dist/ptcw-design/{p-2fdd81d4.entry.js → p-7714bbaf.entry.js} +1 -1
- package/dist/ptcw-design/p-7834cfee.entry.js +1 -0
- package/dist/ptcw-design/p-799afee5.entry.js +1 -0
- package/dist/ptcw-design/{p-ecfc8211.entry.js → p-7a1db471.entry.js} +1 -1
- package/dist/ptcw-design/{p-183ba1ca.entry.js → p-7d29a418.entry.js} +1 -1
- package/dist/ptcw-design/{p-a974f98f.entry.js → p-8191928d.entry.js} +1 -1
- package/dist/ptcw-design/{p-ff369ed7.entry.js → p-84c15835.entry.js} +1 -1
- package/dist/ptcw-design/{p-3c52fabe.entry.js → p-8533988f.entry.js} +1 -1
- package/dist/ptcw-design/{p-1ab6201b.entry.js → p-85f32bf5.entry.js} +1 -1
- package/dist/ptcw-design/{p-bf2f9183.entry.js → p-89ba3dfd.entry.js} +1 -1
- package/dist/ptcw-design/{p-ce39cff2.entry.js → p-8b480abd.entry.js} +1 -1
- package/dist/ptcw-design/{p-cf0f6559.entry.js → p-927373d4.entry.js} +1 -1
- package/dist/ptcw-design/{p-e1bd2c43.entry.js → p-92e76318.entry.js} +1 -1
- package/dist/ptcw-design/{p-80c56c81.entry.js → p-931650bb.entry.js} +1 -1
- package/dist/ptcw-design/{p-2ba77e9d.entry.js → p-9354b7fd.entry.js} +1 -1
- package/dist/ptcw-design/p-96f346c4.entry.js +1 -0
- package/dist/ptcw-design/p-97eb1025.entry.js +1 -0
- package/dist/ptcw-design/{p-ce125ef2.entry.js → p-98610430.entry.js} +1 -1
- package/dist/ptcw-design/p-99daf693.entry.js +1 -0
- package/dist/ptcw-design/{p-8eb36507.entry.js → p-9a335b5b.entry.js} +1 -1
- package/dist/ptcw-design/{p-0abb6e77.entry.js → p-9ac99185.entry.js} +1 -1
- package/dist/ptcw-design/{p-290012e3.entry.js → p-9b26ea67.entry.js} +1 -1
- package/dist/ptcw-design/p-9c6cad16.entry.js +1 -0
- package/dist/ptcw-design/p-9da57f76.entry.js +1 -0
- package/dist/ptcw-design/{p-6d628113.entry.js → p-9de963f8.entry.js} +1 -1
- package/dist/ptcw-design/{p-6251a6d6.entry.js → p-9e4e21a4.entry.js} +1 -1
- package/dist/ptcw-design/p-9efa8199.entry.js +1 -0
- package/dist/ptcw-design/p-9fca5392.entry.js +1 -0
- package/dist/ptcw-design/{p-afb5bdb9.entry.js → p-a04bedc2.entry.js} +1 -1
- package/dist/ptcw-design/{p-dadbab48.entry.js → p-a0bf3dd2.entry.js} +1 -1
- package/dist/ptcw-design/{p-e2e33ddb.entry.js → p-a37c5209.entry.js} +1 -1
- package/dist/ptcw-design/{p-b6cc4c2a.entry.js → p-a41c7e39.entry.js} +1 -1
- package/dist/ptcw-design/p-a4dd4e83.entry.js +1 -0
- package/dist/ptcw-design/{p-dabb1b70.entry.js → p-a54c6da5.entry.js} +1 -1
- package/dist/ptcw-design/{p-be00fb74.entry.js → p-a7cb3851.entry.js} +1 -1
- package/dist/ptcw-design/{p-ed53cb3a.entry.js → p-a8304a3e.entry.js} +1 -1
- package/dist/ptcw-design/{p-de663192.entry.js → p-a8504f11.entry.js} +1 -1
- package/dist/ptcw-design/{p-e50a5a46.entry.js → p-a993c0a6.entry.js} +1 -1
- package/dist/ptcw-design/{p-c5417010.entry.js → p-aac082cf.entry.js} +1 -1
- package/dist/ptcw-design/{p-6f1cc5e5.entry.js → p-ab4906a7.entry.js} +1 -1
- package/dist/ptcw-design/{p-944c5be8.js → p-ac75c7ad.js} +1 -1
- package/dist/ptcw-design/p-ac766cb3.entry.js +1 -0
- package/dist/ptcw-design/{p-e249cd90.entry.js → p-ac7b2779.entry.js} +1 -1
- package/dist/ptcw-design/p-ad0e7843.entry.js +1 -0
- package/dist/ptcw-design/{p-b293a0b1.entry.js → p-aea09a70.entry.js} +1 -1
- package/dist/ptcw-design/p-b06bc0a1.entry.js +1 -0
- package/dist/ptcw-design/{p-b82dd7f9.entry.js → p-b19cda95.entry.js} +1 -1
- package/dist/ptcw-design/{p-79762cf6.entry.js → p-b436f56d.entry.js} +1 -1
- package/dist/ptcw-design/p-b684ca9d.entry.js +1 -0
- package/dist/ptcw-design/p-b8ee8699.entry.js +1 -0
- package/dist/ptcw-design/{p-ca039722.entry.js → p-baeee2b4.entry.js} +1 -1
- package/dist/ptcw-design/p-bb9a879f.entry.js +1 -0
- package/dist/ptcw-design/p-bd448674.entry.js +1 -0
- package/dist/ptcw-design/{p-73293d32.entry.js → p-bf84ecc0.entry.js} +1 -1
- package/dist/ptcw-design/{p-9a28ded2.entry.js → p-bfacfe67.entry.js} +1 -1
- package/dist/ptcw-design/{p-3596ce5a.entry.js → p-bfadd78e.entry.js} +1 -1
- package/dist/ptcw-design/{p-fb0c3eeb.entry.js → p-c061b32d.entry.js} +1 -1
- package/dist/ptcw-design/p-c09a8288.entry.js +1 -0
- package/dist/ptcw-design/p-c12065b7.entry.js +1 -0
- package/dist/ptcw-design/p-c3b27836.entry.js +1 -0
- package/dist/ptcw-design/{p-5344a1f4.entry.js → p-c4674bc8.entry.js} +1 -1
- package/dist/ptcw-design/{p-dd38bf84.entry.js → p-c5f42895.entry.js} +1 -1
- package/dist/ptcw-design/{p-61a5012d.entry.js → p-c631608f.entry.js} +1 -1
- package/dist/ptcw-design/{p-e87a4ff8.entry.js → p-c68d31c6.entry.js} +1 -1
- package/dist/ptcw-design/{p-43756439.entry.js → p-c6a0dd99.entry.js} +1 -1
- package/dist/ptcw-design/{p-22cf00e7.js → p-c7e948b2.js} +1 -1
- package/dist/ptcw-design/p-c89030e4.entry.js +1 -0
- package/dist/ptcw-design/p-cb0e3ec2.entry.js +1 -0
- package/dist/ptcw-design/p-cbbe2bba.entry.js +1 -0
- package/dist/ptcw-design/{p-384548ef.entry.js → p-cc652ebe.entry.js} +1 -1
- package/dist/ptcw-design/p-d6ee094b.entry.js +1 -0
- package/dist/ptcw-design/{p-75d8b6ec.entry.js → p-d74ccb19.entry.js} +1 -1
- package/dist/ptcw-design/{p-81736d6a.entry.js → p-d77531c8.entry.js} +1 -1
- package/dist/ptcw-design/{p-f5665cfe.entry.js → p-d8b2466d.entry.js} +1 -1
- package/dist/ptcw-design/p-d9df1a16.entry.js +1 -0
- package/dist/ptcw-design/{p-e880b556.entry.js → p-db0fc94d.entry.js} +1 -1
- package/dist/ptcw-design/p-de960790.entry.js +1 -0
- package/dist/ptcw-design/p-e01173ca.entry.js +1 -0
- package/dist/ptcw-design/p-e0e87d61.entry.js +1 -0
- package/dist/ptcw-design/{p-0bb3ea9a.entry.js → p-e235bf27.entry.js} +1 -1
- package/dist/ptcw-design/{p-53d2547b.entry.js → p-e3867512.entry.js} +1 -1
- package/dist/ptcw-design/{p-d1f57070.entry.js → p-e3bf092e.entry.js} +1 -1
- package/dist/ptcw-design/p-e5e1e8fb.entry.js +1 -0
- package/dist/ptcw-design/p-e7220c36.entry.js +1 -0
- package/dist/ptcw-design/{p-b1053240.entry.js → p-e73a1a0b.entry.js} +1 -1
- package/dist/ptcw-design/{p-fe56e336.entry.js → p-ee91170c.entry.js} +1 -1
- package/dist/ptcw-design/p-ef870202.entry.js +1 -0
- package/dist/ptcw-design/{p-6f29592a.entry.js → p-f010c07f.entry.js} +1 -1
- package/dist/ptcw-design/{p-f2006b03.entry.js → p-f5c97ab2.entry.js} +1 -1
- package/dist/ptcw-design/{p-d6271974.entry.js → p-f5d8a3b1.entry.js} +1 -1
- package/dist/ptcw-design/p-f6b70f68.entry.js +1 -0
- package/dist/ptcw-design/{p-0ed4609e.entry.js → p-fb8584e4.entry.js} +1 -1
- package/dist/ptcw-design/{p-973c69d8.entry.js → p-fbd9c8fc.entry.js} +1 -1
- package/dist/ptcw-design/p-fd7e5935.entry.js +1 -0
- package/dist/ptcw-design/{p-e6ebc832.entry.js → p-fdee2cdc.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.css +4 -3
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +25 -0
- package/dist/types/components/ptc-breadcrumb/ptc-breadcrumb.d.ts +0 -1
- package/dist/types/components/ptc-card-content/ptc-card-content.d.ts +0 -1
- package/dist/types/components/ptc-img/ptc-img.d.ts +29 -1
- package/dist/types/components/ptc-jumbotron/ptc-jumbotron.d.ts +4 -0
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +1 -9
- package/dist/types/components/ptc-overlay/ptc-overlay.d.ts +1 -1
- package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
- package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +2 -0
- package/dist/types/components/ptc-pricing-packaging-table/ptc-pricing-packaging-table.d.ts +0 -1
- package/dist/types/components/ptc-subnav-v2/ptc-subnav-v2.d.ts +0 -4
- package/dist/types/components.d.ts +113 -129
- package/package.json +101 -101
- package/readme.md +23 -19
- package/dist/cjs/component-5b5b6a98.js +0 -1819
- package/dist/cjs/icon-asset_14.cjs.entry.js +0 -1982
- package/dist/cjs/ptc-blue-pill-announcement-bar.cjs.entry.js +0 -23
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +0 -730
- package/dist/cjs/ptc-store-card-list.cjs.entry.js +0 -105
- package/dist/cjs/ptc-store-card.cjs.entry.js +0 -24
- package/dist/collection/components/ptc-blue-pill-announcement-bar/ptc-blue-pill-announcement-bar.css +0 -95
- package/dist/collection/components/ptc-blue-pill-announcement-bar/ptc-blue-pill-announcement-bar.js +0 -46
- package/dist/collection/components/ptc-store-card/ptc-store-card.css +0 -100
- package/dist/collection/components/ptc-store-card/ptc-store-card.js +0 -25
- package/dist/collection/components/ptc-store-card-list/ptc-store-card-list.css +0 -1246
- package/dist/collection/components/ptc-store-card-list/ptc-store-card-list.js +0 -103
- package/dist/collection/stories/BluePillAnnouncementBar.stories.js +0 -20
- package/dist/collection/stories/organisms/ptc/E Store Creo Extension/preview.stories.js +0 -798
- package/dist/esm/component-341e4eaa.js +0 -1802
- package/dist/esm/icon-asset_14.entry.js +0 -1965
- package/dist/esm/ptc-blue-pill-announcement-bar.entry.js +0 -19
- package/dist/esm/ptc-multi-select_2.entry.js +0 -725
- package/dist/esm/ptc-store-card-list.entry.js +0 -101
- package/dist/esm/ptc-store-card.entry.js +0 -20
- package/dist/ptcw-design/p-068b64a1.entry.js +0 -1
- package/dist/ptcw-design/p-0824f503.entry.js +0 -1
- package/dist/ptcw-design/p-0ec2a26d.entry.js +0 -1
- package/dist/ptcw-design/p-11e86045.entry.js +0 -1
- package/dist/ptcw-design/p-17890eea.entry.js +0 -1
- package/dist/ptcw-design/p-1b3394a7.entry.js +0 -1
- package/dist/ptcw-design/p-212cdacd.entry.js +0 -1
- package/dist/ptcw-design/p-2bc4bf65.entry.js +0 -1
- package/dist/ptcw-design/p-2f82de8f.entry.js +0 -1
- package/dist/ptcw-design/p-32a1c28b.entry.js +0 -1
- package/dist/ptcw-design/p-32bbcb5a.entry.js +0 -1
- package/dist/ptcw-design/p-39255f59.entry.js +0 -1
- package/dist/ptcw-design/p-3b481342.entry.js +0 -1
- package/dist/ptcw-design/p-47aa1583.entry.js +0 -1
- package/dist/ptcw-design/p-53e214a6.entry.js +0 -1
- package/dist/ptcw-design/p-5bbfd7b3.entry.js +0 -1
- package/dist/ptcw-design/p-7123abad.entry.js +0 -1
- package/dist/ptcw-design/p-752159e2.entry.js +0 -1
- package/dist/ptcw-design/p-7524411a.entry.js +0 -1
- package/dist/ptcw-design/p-79a6e764.entry.js +0 -1
- package/dist/ptcw-design/p-7b89a8e1.entry.js +0 -1
- package/dist/ptcw-design/p-83c3d6c9.entry.js +0 -1
- package/dist/ptcw-design/p-87a9a028.entry.js +0 -1
- package/dist/ptcw-design/p-87e4c337.entry.js +0 -1
- package/dist/ptcw-design/p-87f07d6b.entry.js +0 -1
- package/dist/ptcw-design/p-89da867f.entry.js +0 -1
- package/dist/ptcw-design/p-9050ab76.entry.js +0 -1
- package/dist/ptcw-design/p-9461c4eb.entry.js +0 -1
- package/dist/ptcw-design/p-973b06d1.entry.js +0 -1
- package/dist/ptcw-design/p-991465fb.entry.js +0 -1
- package/dist/ptcw-design/p-9a07b9e3.entry.js +0 -1
- package/dist/ptcw-design/p-9d8a9a72.entry.js +0 -1
- package/dist/ptcw-design/p-9e8e2835.entry.js +0 -1
- package/dist/ptcw-design/p-ad4f4f33.entry.js +0 -1
- package/dist/ptcw-design/p-af32c90a.entry.js +0 -1
- package/dist/ptcw-design/p-bdb2e42c.entry.js +0 -1
- package/dist/ptcw-design/p-be533f0d.js +0 -134
- package/dist/ptcw-design/p-bf15988f.entry.js +0 -68
- package/dist/ptcw-design/p-c1302aea.entry.js +0 -1
- package/dist/ptcw-design/p-c1513c3f.js +0 -203
- package/dist/ptcw-design/p-c33fd408.entry.js +0 -1
- package/dist/ptcw-design/p-c389eb7d.entry.js +0 -1
- package/dist/ptcw-design/p-c9c55caf.entry.js +0 -1
- package/dist/ptcw-design/p-d428ba40.entry.js +0 -1
- package/dist/ptcw-design/p-d8c1a14a.entry.js +0 -1
- package/dist/ptcw-design/p-e1373325.entry.js +0 -1
- package/dist/ptcw-design/p-e2e357e7.entry.js +0 -1
- package/dist/ptcw-design/p-e51bb274.entry.js +0 -1
- package/dist/ptcw-design/p-eabf87be.entry.js +0 -1
- package/dist/ptcw-design/p-edaf241d.entry.js +0 -1
- package/dist/ptcw-design/p-efe8563a.entry.js +0 -1
- package/dist/ptcw-design/p-f9e57052.entry.js +0 -1
- package/dist/ptcw-design/p-fab2fc8d.entry.js +0 -1
- package/dist/ptcw-design/p-fef688c2.entry.js +0 -1
- package/dist/types/components/ptc-blue-pill-announcement-bar/ptc-blue-pill-announcement-bar.d.ts +0 -4
- package/dist/types/components/ptc-store-card/ptc-store-card.d.ts +0 -6
- package/dist/types/components/ptc-store-card-list/ptc-store-card-list.d.ts +0 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Host, h } from "@stencil/core";
|
|
1
|
+
import { Host, h, } from "@stencil/core";
|
|
2
2
|
import { ResponsiveBgVariables } from "../../utils/interfaces";
|
|
3
3
|
export class PtcImg {
|
|
4
4
|
constructor() {
|
|
@@ -11,26 +11,95 @@ export class PtcImg {
|
|
|
11
11
|
this.borderRadius = "";
|
|
12
12
|
this.loadMode = "lazy-bg";
|
|
13
13
|
this.styles = undefined;
|
|
14
|
+
this.enableLazyLoad = false;
|
|
15
|
+
this.delay = 2000;
|
|
16
|
+
this.bgSrcLazy = undefined;
|
|
17
|
+
this.bgSrcMedium = undefined;
|
|
18
|
+
this.bgSrcHigh = undefined;
|
|
19
|
+
this.isInViewport = false;
|
|
20
|
+
this.isImageUpgraded = false;
|
|
14
21
|
}
|
|
15
|
-
/**
|
|
16
|
-
* Image Z Index
|
|
17
|
-
*/
|
|
18
|
-
// @Prop() imageZIndex: 'z-index-auto' | 'z-index-n-2' | 'z-index-n-1' | 'z-index-p-1' | 'z-index-p-2' = 'z-index-auto';
|
|
19
22
|
WindowResize() {
|
|
20
23
|
this.setResponsiveBg();
|
|
21
24
|
}
|
|
22
25
|
render() {
|
|
23
26
|
const classMap = this.getCssClassMap();
|
|
24
|
-
|
|
27
|
+
if (this.enableLazyLoad && this.imgUrl) {
|
|
28
|
+
// Lazy loading functionality
|
|
29
|
+
return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { class: classMap }, h("div", { class: "low-quality", style: {
|
|
30
|
+
backgroundImage: `url(${this.bgSrcLazy})`,
|
|
31
|
+
opacity: "1",
|
|
32
|
+
transition: "opacity 0.5s ease-in-out",
|
|
33
|
+
} }), h("div", { class: "medium-quality", style: {
|
|
34
|
+
opacity: "0",
|
|
35
|
+
transition: "opacity 0.5s ease-in-out",
|
|
36
|
+
} }), h("div", { class: "high-quality", style: {
|
|
37
|
+
opacity: "0",
|
|
38
|
+
transition: "opacity 0.5s ease-in-out",
|
|
39
|
+
} }), this.imageType == "smart-bg" ? h("slot", null) : null)));
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
return (h(Host, null, this.styles && h("style", null, this.styles), h("div", { class: classMap, "data-xs": this.bgSrcLazy || this.imgUrl, "data-sm": this.bgSrcLazy || this.imgUrl, "data-md": this.bgSrcLazy || this.imgUrl, "data-lg": this.bgSrcLazy || this.imgUrl, style: {
|
|
43
|
+
backgroundImage: `url(${this.bgSrcLazy || this.imgUrl})`,
|
|
44
|
+
} }, this.imageType == "smart-bg" ? h("slot", null) : null)));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
componentWillLoad() {
|
|
48
|
+
if (this.enableLazyLoad) {
|
|
49
|
+
this.isInViewport = false;
|
|
50
|
+
}
|
|
51
|
+
if (this.enableLazyLoad && this.imgUrl) {
|
|
52
|
+
this.bgSrcLazy = this.getImageUrl("lq");
|
|
53
|
+
this.bgSrcMedium = this.getImageUrl("mq");
|
|
54
|
+
this.bgSrcHigh = this.getImageUrl("hq");
|
|
55
|
+
}
|
|
56
|
+
else {
|
|
57
|
+
console.warn("Image URL is undefined or invalid.");
|
|
58
|
+
this.bgSrcLazy = "";
|
|
59
|
+
this.bgSrcMedium = "";
|
|
60
|
+
this.bgSrcHigh = "";
|
|
61
|
+
}
|
|
25
62
|
}
|
|
26
63
|
componentDidLoad() {
|
|
27
64
|
this.addIntersectionObserver();
|
|
28
65
|
this.setResponsiveBg();
|
|
66
|
+
if (this.enableLazyLoad && this.imgUrl) {
|
|
67
|
+
const that = this;
|
|
68
|
+
setTimeout(() => {
|
|
69
|
+
that.upgradeImageQuality();
|
|
70
|
+
}, that.delay);
|
|
71
|
+
}
|
|
29
72
|
}
|
|
30
73
|
componentWillUpdate() {
|
|
31
74
|
this.addIntersectionObserver();
|
|
32
75
|
this.setResponsiveBg();
|
|
33
76
|
}
|
|
77
|
+
upgradeImageQuality() {
|
|
78
|
+
if (this.isInViewport && !this.isImageUpgraded) {
|
|
79
|
+
console.log("Low-quality image is visible.");
|
|
80
|
+
this.isImageUpgraded = true;
|
|
81
|
+
setTimeout(() => {
|
|
82
|
+
const mediumLayer = this.el.querySelector(".medium-quality");
|
|
83
|
+
if (mediumLayer) {
|
|
84
|
+
mediumLayer.style.backgroundImage = `url(${this.bgSrcMedium})`;
|
|
85
|
+
mediumLayer.style.opacity = "1";
|
|
86
|
+
console.log("Medium-quality image is now visible.");
|
|
87
|
+
}
|
|
88
|
+
setTimeout(() => {
|
|
89
|
+
const highLayer = this.el.querySelector(".high-quality");
|
|
90
|
+
if (highLayer) {
|
|
91
|
+
highLayer.style.backgroundImage = `url(${this.bgSrcHigh})`;
|
|
92
|
+
highLayer.style.opacity = "1";
|
|
93
|
+
console.log("High-quality image is now visible.");
|
|
94
|
+
}
|
|
95
|
+
if (mediumLayer) {
|
|
96
|
+
mediumLayer.style.opacity = "0";
|
|
97
|
+
console.log("Medium-quality image is hidden.");
|
|
98
|
+
}
|
|
99
|
+
}, this.delay);
|
|
100
|
+
}, this.delay / 2);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
34
103
|
//responsive image
|
|
35
104
|
setResponsiveBg() {
|
|
36
105
|
// Define local variables
|
|
@@ -68,6 +137,8 @@ export class PtcImg {
|
|
|
68
137
|
const image = entry.target;
|
|
69
138
|
image.classList.remove("lazy-bg");
|
|
70
139
|
bgObserver.unobserve(image);
|
|
140
|
+
this.isInViewport = true;
|
|
141
|
+
this.upgradeImageQuality();
|
|
71
142
|
}
|
|
72
143
|
});
|
|
73
144
|
});
|
|
@@ -81,12 +152,21 @@ export class PtcImg {
|
|
|
81
152
|
// }, 5000);
|
|
82
153
|
}
|
|
83
154
|
}
|
|
155
|
+
getImageUrl(quality) {
|
|
156
|
+
if (this.imgUrl && this.imgUrl.includes("?")) {
|
|
157
|
+
return `${this.imgUrl}&t=ptcjumbdesk${quality}`;
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
return `${this.imgUrl}?t=ptcjumbdesk${quality}`;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
84
163
|
getCssClassMap() {
|
|
85
164
|
return {
|
|
86
165
|
[this.imageType]: true,
|
|
87
|
-
|
|
166
|
+
'ptc-img': true,
|
|
88
167
|
[this.borderRadius]: true,
|
|
89
168
|
[this.loadMode]: true,
|
|
169
|
+
[this.enableLazyLoad ? 'ptc-img--lazy' : '']: true,
|
|
90
170
|
// [this.imageZIndex] : true
|
|
91
171
|
};
|
|
92
172
|
}
|
|
@@ -298,9 +378,54 @@ export class PtcImg {
|
|
|
298
378
|
},
|
|
299
379
|
"attribute": "styles",
|
|
300
380
|
"reflect": false
|
|
381
|
+
},
|
|
382
|
+
"enableLazyLoad": {
|
|
383
|
+
"type": "boolean",
|
|
384
|
+
"mutable": false,
|
|
385
|
+
"complexType": {
|
|
386
|
+
"original": "boolean",
|
|
387
|
+
"resolved": "boolean",
|
|
388
|
+
"references": {}
|
|
389
|
+
},
|
|
390
|
+
"required": false,
|
|
391
|
+
"optional": false,
|
|
392
|
+
"docs": {
|
|
393
|
+
"tags": [],
|
|
394
|
+
"text": "(optional) enable lazy loading"
|
|
395
|
+
},
|
|
396
|
+
"attribute": "enable-lazy-load",
|
|
397
|
+
"reflect": false,
|
|
398
|
+
"defaultValue": "false"
|
|
399
|
+
},
|
|
400
|
+
"delay": {
|
|
401
|
+
"type": "number",
|
|
402
|
+
"mutable": false,
|
|
403
|
+
"complexType": {
|
|
404
|
+
"original": "number",
|
|
405
|
+
"resolved": "number",
|
|
406
|
+
"references": {}
|
|
407
|
+
},
|
|
408
|
+
"required": false,
|
|
409
|
+
"optional": false,
|
|
410
|
+
"docs": {
|
|
411
|
+
"tags": [],
|
|
412
|
+
"text": "(optional) setTimeout delay fro Lazy loading"
|
|
413
|
+
},
|
|
414
|
+
"attribute": "delay",
|
|
415
|
+
"reflect": false,
|
|
416
|
+
"defaultValue": "2000"
|
|
301
417
|
}
|
|
302
418
|
};
|
|
303
419
|
}
|
|
420
|
+
static get states() {
|
|
421
|
+
return {
|
|
422
|
+
"bgSrcLazy": {},
|
|
423
|
+
"bgSrcMedium": {},
|
|
424
|
+
"bgSrcHigh": {},
|
|
425
|
+
"isInViewport": {},
|
|
426
|
+
"isImageUpgraded": {}
|
|
427
|
+
};
|
|
428
|
+
}
|
|
304
429
|
static get elementRef() { return "el"; }
|
|
305
430
|
static get listeners() {
|
|
306
431
|
return [{
|
|
@@ -1220,14 +1220,17 @@ a:focus-visible {
|
|
|
1220
1220
|
|
|
1221
1221
|
.light-links a:not(.hero-footer-form-wrapper a,
|
|
1222
1222
|
ptc-modal inline-form a,
|
|
1223
|
+
.podcast-cta-section a,
|
|
1223
1224
|
.vjs-social-share-links a),
|
|
1224
1225
|
.light-links a.light-link,
|
|
1225
1226
|
.background-grey-10 a:not(.hero-footer-form-wrapper a,
|
|
1226
1227
|
ptc-modal inline-form a,
|
|
1228
|
+
.podcast-cta-section a,
|
|
1227
1229
|
.vjs-social-share-links a),
|
|
1228
1230
|
.background-grey-10 a.light-link,
|
|
1229
1231
|
.background-plm-grey a:not(.hero-footer-form-wrapper a,
|
|
1230
1232
|
ptc-modal inline-form a,
|
|
1233
|
+
.podcast-cta-section a,
|
|
1231
1234
|
.vjs-social-share-links a),
|
|
1232
1235
|
.background-plm-grey a.light-link {
|
|
1233
1236
|
color: var(--color-blue-04);
|
|
@@ -1236,38 +1239,47 @@ ptc-modal inline-form a,
|
|
|
1236
1239
|
}
|
|
1237
1240
|
.light-links a:not(.hero-footer-form-wrapper a,
|
|
1238
1241
|
ptc-modal inline-form a,
|
|
1242
|
+
.podcast-cta-section a,
|
|
1239
1243
|
.vjs-social-share-links a):visited,
|
|
1240
1244
|
.light-links a.light-link:visited,
|
|
1241
1245
|
.background-grey-10 a:not(.hero-footer-form-wrapper a,
|
|
1242
1246
|
ptc-modal inline-form a,
|
|
1247
|
+
.podcast-cta-section a,
|
|
1243
1248
|
.vjs-social-share-links a):visited,
|
|
1244
1249
|
.background-grey-10 a.light-link:visited,
|
|
1245
1250
|
.background-plm-grey a:not(.hero-footer-form-wrapper a,
|
|
1246
1251
|
ptc-modal inline-form a,
|
|
1252
|
+
.podcast-cta-section a,
|
|
1247
1253
|
.vjs-social-share-links a):visited,
|
|
1248
1254
|
.background-plm-grey a.light-link:visited {
|
|
1249
1255
|
color: var(--color-blue-06);
|
|
1250
1256
|
}
|
|
1251
1257
|
.light-links a:not(.hero-footer-form-wrapper a,
|
|
1252
1258
|
ptc-modal inline-form a,
|
|
1259
|
+
.podcast-cta-section a,
|
|
1253
1260
|
.vjs-social-share-links a):active, .light-links a:not(.hero-footer-form-wrapper a,
|
|
1254
1261
|
ptc-modal inline-form a,
|
|
1262
|
+
.podcast-cta-section a,
|
|
1255
1263
|
.vjs-social-share-links a):visited:active,
|
|
1256
1264
|
.light-links a.light-link:active,
|
|
1257
1265
|
.light-links a.light-link:visited:active,
|
|
1258
1266
|
.background-grey-10 a:not(.hero-footer-form-wrapper a,
|
|
1259
1267
|
ptc-modal inline-form a,
|
|
1268
|
+
.podcast-cta-section a,
|
|
1260
1269
|
.vjs-social-share-links a):active,
|
|
1261
1270
|
.background-grey-10 a:not(.hero-footer-form-wrapper a,
|
|
1262
1271
|
ptc-modal inline-form a,
|
|
1272
|
+
.podcast-cta-section a,
|
|
1263
1273
|
.vjs-social-share-links a):visited:active,
|
|
1264
1274
|
.background-grey-10 a.light-link:active,
|
|
1265
1275
|
.background-grey-10 a.light-link:visited:active,
|
|
1266
1276
|
.background-plm-grey a:not(.hero-footer-form-wrapper a,
|
|
1267
1277
|
ptc-modal inline-form a,
|
|
1278
|
+
.podcast-cta-section a,
|
|
1268
1279
|
.vjs-social-share-links a):active,
|
|
1269
1280
|
.background-plm-grey a:not(.hero-footer-form-wrapper a,
|
|
1270
1281
|
ptc-modal inline-form a,
|
|
1282
|
+
.podcast-cta-section a,
|
|
1271
1283
|
.vjs-social-share-links a):visited:active,
|
|
1272
1284
|
.background-plm-grey a.light-link:active,
|
|
1273
1285
|
.background-plm-grey a.light-link:visited:active {
|
|
@@ -1276,24 +1288,30 @@ ptc-modal inline-form a,
|
|
|
1276
1288
|
}
|
|
1277
1289
|
.light-links a:not(.hero-footer-form-wrapper a,
|
|
1278
1290
|
ptc-modal inline-form a,
|
|
1291
|
+
.podcast-cta-section a,
|
|
1279
1292
|
.vjs-social-share-links a):hover, .light-links a:not(.hero-footer-form-wrapper a,
|
|
1280
1293
|
ptc-modal inline-form a,
|
|
1294
|
+
.podcast-cta-section a,
|
|
1281
1295
|
.vjs-social-share-links a):visited:hover,
|
|
1282
1296
|
.light-links a.light-link:hover,
|
|
1283
1297
|
.light-links a.light-link:visited:hover,
|
|
1284
1298
|
.background-grey-10 a:not(.hero-footer-form-wrapper a,
|
|
1285
1299
|
ptc-modal inline-form a,
|
|
1300
|
+
.podcast-cta-section a,
|
|
1286
1301
|
.vjs-social-share-links a):hover,
|
|
1287
1302
|
.background-grey-10 a:not(.hero-footer-form-wrapper a,
|
|
1288
1303
|
ptc-modal inline-form a,
|
|
1304
|
+
.podcast-cta-section a,
|
|
1289
1305
|
.vjs-social-share-links a):visited:hover,
|
|
1290
1306
|
.background-grey-10 a.light-link:hover,
|
|
1291
1307
|
.background-grey-10 a.light-link:visited:hover,
|
|
1292
1308
|
.background-plm-grey a:not(.hero-footer-form-wrapper a,
|
|
1293
1309
|
ptc-modal inline-form a,
|
|
1310
|
+
.podcast-cta-section a,
|
|
1294
1311
|
.vjs-social-share-links a):hover,
|
|
1295
1312
|
.background-plm-grey a:not(.hero-footer-form-wrapper a,
|
|
1296
1313
|
ptc-modal inline-form a,
|
|
1314
|
+
.podcast-cta-section a,
|
|
1297
1315
|
.vjs-social-share-links a):visited:hover,
|
|
1298
1316
|
.background-plm-grey a.light-link:hover,
|
|
1299
1317
|
.background-plm-grey a.light-link:visited:hover {
|
|
@@ -1301,14 +1319,17 @@ ptc-modal inline-form a,
|
|
|
1301
1319
|
}
|
|
1302
1320
|
.light-links a:not(.hero-footer-form-wrapper a,
|
|
1303
1321
|
ptc-modal inline-form a,
|
|
1322
|
+
.podcast-cta-section a,
|
|
1304
1323
|
.vjs-social-share-links a).disabled,
|
|
1305
1324
|
.light-links a.light-link.disabled,
|
|
1306
1325
|
.background-grey-10 a:not(.hero-footer-form-wrapper a,
|
|
1307
1326
|
ptc-modal inline-form a,
|
|
1327
|
+
.podcast-cta-section a,
|
|
1308
1328
|
.vjs-social-share-links a).disabled,
|
|
1309
1329
|
.background-grey-10 a.light-link.disabled,
|
|
1310
1330
|
.background-plm-grey a:not(.hero-footer-form-wrapper a,
|
|
1311
1331
|
ptc-modal inline-form a,
|
|
1332
|
+
.podcast-cta-section a,
|
|
1312
1333
|
.vjs-social-share-links a).disabled,
|
|
1313
1334
|
.background-plm-grey a.light-link.disabled {
|
|
1314
1335
|
color: var(--color-gray-04) !important;
|
|
@@ -1316,14 +1337,17 @@ ptc-modal inline-form a,
|
|
|
1316
1337
|
}
|
|
1317
1338
|
.light-links a:not(.hero-footer-form-wrapper a,
|
|
1318
1339
|
ptc-modal inline-form a,
|
|
1340
|
+
.podcast-cta-section a,
|
|
1319
1341
|
.vjs-social-share-links a):focus-visible,
|
|
1320
1342
|
.light-links a.light-link:focus-visible,
|
|
1321
1343
|
.background-grey-10 a:not(.hero-footer-form-wrapper a,
|
|
1322
1344
|
ptc-modal inline-form a,
|
|
1345
|
+
.podcast-cta-section a,
|
|
1323
1346
|
.vjs-social-share-links a):focus-visible,
|
|
1324
1347
|
.background-grey-10 a.light-link:focus-visible,
|
|
1325
1348
|
.background-plm-grey a:not(.hero-footer-form-wrapper a,
|
|
1326
1349
|
ptc-modal inline-form a,
|
|
1350
|
+
.podcast-cta-section a,
|
|
1327
1351
|
.vjs-social-share-links a):focus-visible,
|
|
1328
1352
|
.background-plm-grey a.light-link:focus-visible {
|
|
1329
1353
|
border-radius: var(--ptc-border-radius-standard);
|
|
@@ -1343,10 +1367,6 @@ ptc-modal inline-form a,
|
|
|
1343
1367
|
outline: 5px solid var(--keyboard-nav-outline);
|
|
1344
1368
|
}
|
|
1345
1369
|
|
|
1346
|
-
.white-links a {
|
|
1347
|
-
color: var(--color-white) !important;
|
|
1348
|
-
}
|
|
1349
|
-
|
|
1350
1370
|
.ptc-link {
|
|
1351
1371
|
color: var(--color-gray-10);
|
|
1352
1372
|
text-decoration: underline;
|
|
@@ -1808,8 +1828,7 @@ ptc-info-tile:focus-visible {
|
|
|
1808
1828
|
outline-offset: 2px;
|
|
1809
1829
|
}
|
|
1810
1830
|
|
|
1811
|
-
:host(.light-video-jumbotron)
|
|
1812
|
-
:host(.light-jumbotron)
|
|
1831
|
+
:host(.light-video-jumbotron),
|
|
1832
|
+
:host(.light-jumbotron) {
|
|
1813
1833
|
border-bottom: 1px solid rgba(0, 0, 0, 0.06);
|
|
1814
|
-
box-sizing: border-box;
|
|
1815
1834
|
}
|
|
@@ -30,6 +30,7 @@ export class PtcJumbotron {
|
|
|
30
30
|
this.hasCountdown = false;
|
|
31
31
|
this.logo = "";
|
|
32
32
|
this.styles = undefined;
|
|
33
|
+
this.enableLazy = false;
|
|
33
34
|
this.defer = undefined;
|
|
34
35
|
this.hasCtaSlot = undefined;
|
|
35
36
|
}
|
|
@@ -68,10 +69,10 @@ export class PtcJumbotron {
|
|
|
68
69
|
break;
|
|
69
70
|
case "dark":
|
|
70
71
|
case "light":
|
|
71
|
-
mediaElement = (h("div", { class: "dl-img-wrap" }, h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" }), this.hasPopupVideo && this.isMobile ? (h("div", { class: "mobile-modal-play-btn" }, " ", h("slot", { name: "video" }))) : null));
|
|
72
|
+
mediaElement = (h("div", { class: "dl-img-wrap" }, h("ptc-img", { "img-url": this.bgSrc, "enable-lazy-load": this.enableLazy, styles: ".smart-bg{background-position:right !important;}" }), this.hasPopupVideo && this.isMobile ? (h("div", { class: "mobile-modal-play-btn" }, " ", h("slot", { name: "video" }))) : null));
|
|
72
73
|
break;
|
|
73
74
|
default:
|
|
74
|
-
mediaElement = (h("ptc-img", { "img-url": this.bgSrc, styles: ".smart-bg{background-position:right !important;}" }));
|
|
75
|
+
mediaElement = (h("ptc-img", { "img-url": this.bgSrc, "enable-lazy-load": this.enableLazy, styles: ".smart-bg{background-position:right !important;}" }));
|
|
75
76
|
}
|
|
76
77
|
return (h(Host, { class: classMap }, this.styles && h("style", null, this.styles), h("div", { class: {
|
|
77
78
|
parent: true,
|
|
@@ -92,14 +93,19 @@ export class PtcJumbotron {
|
|
|
92
93
|
!this.isHomepage && (h("div", null, h("ptc-spacer", { breakpoint: "small", size: "small" }), h("ptc-spacer", { breakpoint: "x-small", size: "medium" }))), !this.isHomepage && (h("ptc-para", { styles: `p{color: ${this.contentColor}!important;}`, "font-size": this.jumbotronType === "text" &&
|
|
93
94
|
this.isMobile
|
|
94
95
|
? "x-small"
|
|
95
|
-
: "small", "font-weight": "w-4", "para-margin": `${this.jumbotronType === "text" ||
|
|
96
|
+
: "small", "font-weight": "w-4", "para-margin": `${this.jumbotronType === "text" ||
|
|
97
|
+
this.jumbotronType === "blog"
|
|
98
|
+
? "margin-flush"
|
|
99
|
+
: "margin-bottom-6"}`, "para-color": "white", "para-line-h": "line-height-p", "para-align": this.jumbotronType === "text"
|
|
96
100
|
? "center"
|
|
97
101
|
: "left", "seo-compatibility-mode": true }, h("p", { innerHTML: this.subTitle, style: { margin: "0" } }), h("p", { style: { margin: "0" } }, h("slot", { name: "blog-date" })), this.jumbotronType === "blog" && (h("div", null, h("ptc-spacer", { breakpoint: "x-small", size: "medium" }), h("ptc-spacer", { breakpoint: "small", size: "small" }), h("div", { id: "header-blog-author", slot: "blog-author" }, h("div", { class: "image" }, h("img", { alt: this
|
|
98
102
|
.blogAuthorImageAlt, src: this
|
|
99
103
|
.blogAuthorImage })), h("ptc-para", { "font-size": "small", "font-weight": "w-4", "para-color": "primary-grey", "para-line-h": "line-height-p", "para-margin": "margin-flush" }, h("a", { class: "blog-author-name mf-listen", tabindex: "0", href: this
|
|
100
104
|
.blogAuthorQueryHref, target: this
|
|
101
105
|
.blogAuthorQueryTarget, "aria-label": "Other blogs by author" }, this
|
|
102
|
-
.blogAuthorName))))))), this.hasCtaSlot && (h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === "text"
|
|
106
|
+
.blogAuthorName))))))), this.hasCtaSlot && (h("div", { class: `u-flex u-flex-wrap gap-adjustment${this.jumbotronType === "text"
|
|
107
|
+
? " text-adjustment"
|
|
108
|
+
: ""}` }, h("slot", { name: "j-cta" }))))), this.hasPopupVideo &&
|
|
103
109
|
this.jumbotronType !== "png" ? (h("slot", { name: "video" })) : null, this.hasCountdown ? (h("slot", { name: "countdown" })) : null, this.jumbotronType === "png" ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc, styles: `img {${this.pngImgStyles}}` }), this.hasPopupVideo ? (h("slot", { name: "video" })) : null))) : null, this.jumbotronType === "gif" ? (h("div", { class: "desktop-media-image desk-gif-adjustment" }, h("img", { src: this.gifSrc }))) : null, this.jumbotronType === "blog" ? (h("div", { class: "desktop-media-image" }, h("div", { class: "media-image-wrapper" }, h("ptc-picture", { "is-full-width": true, src: this.pngSrc, styles: "img {height: 100%;}" })))) : null)))));
|
|
104
110
|
}
|
|
105
111
|
getCssClassMap() {
|
|
@@ -623,6 +629,24 @@ export class PtcJumbotron {
|
|
|
623
629
|
"attribute": "styles",
|
|
624
630
|
"reflect": false
|
|
625
631
|
},
|
|
632
|
+
"enableLazy": {
|
|
633
|
+
"type": "boolean",
|
|
634
|
+
"mutable": false,
|
|
635
|
+
"complexType": {
|
|
636
|
+
"original": "boolean",
|
|
637
|
+
"resolved": "boolean",
|
|
638
|
+
"references": {}
|
|
639
|
+
},
|
|
640
|
+
"required": false,
|
|
641
|
+
"optional": false,
|
|
642
|
+
"docs": {
|
|
643
|
+
"tags": [],
|
|
644
|
+
"text": "(optional) to enable lazy loading"
|
|
645
|
+
},
|
|
646
|
+
"attribute": "enable-lazy",
|
|
647
|
+
"reflect": false,
|
|
648
|
+
"defaultValue": "false"
|
|
649
|
+
},
|
|
626
650
|
"defer": {
|
|
627
651
|
"type": "boolean",
|
|
628
652
|
"mutable": false,
|
|
@@ -86,6 +86,7 @@ ptc-footer {
|
|
|
86
86
|
align-content: flex-end;
|
|
87
87
|
z-index: 50020;
|
|
88
88
|
transform: translateY(-100%);
|
|
89
|
+
position: relative;
|
|
89
90
|
}
|
|
90
91
|
@media only screen and (min-width: 992px) {
|
|
91
92
|
.wrapper .modal-popup {
|
|
@@ -101,6 +102,10 @@ ptc-footer {
|
|
|
101
102
|
.wrapper .modal-popup.xl {
|
|
102
103
|
max-width: 64.0625rem;
|
|
103
104
|
}
|
|
105
|
+
.wrapper .modal-popup.fit-content {
|
|
106
|
+
max-width: -moz-fit-content;
|
|
107
|
+
max-width: fit-content;
|
|
108
|
+
}
|
|
104
109
|
.wrapper .modal-popup.max {
|
|
105
110
|
width: calc(100% - 4rem);
|
|
106
111
|
max-width: 75rem;
|
|
@@ -163,16 +168,6 @@ ptc-footer {
|
|
|
163
168
|
.wrapper .modal-popup .modal-body.html {
|
|
164
169
|
overflow: hidden;
|
|
165
170
|
}
|
|
166
|
-
.wrapper .modal-popup .modal-body.modern-scrollbar::-webkit-scrollbar {
|
|
167
|
-
width: 6px;
|
|
168
|
-
}
|
|
169
|
-
.wrapper .modal-popup .modal-body.modern-scrollbar::-webkit-scrollbar-track {
|
|
170
|
-
border-radius: var(--ptc-border-radius-pill);
|
|
171
|
-
}
|
|
172
|
-
.wrapper .modal-popup .modal-body.modern-scrollbar::-webkit-scrollbar-thumb {
|
|
173
|
-
background: var(--color-gray-03);
|
|
174
|
-
border-radius: var(--ptc-border-radius-pill);
|
|
175
|
-
}
|
|
176
171
|
.wrapper .modal-popup.frame .modal-body {
|
|
177
172
|
display: flex;
|
|
178
173
|
flex: 1;
|
|
@@ -3,33 +3,19 @@ import { createFocusTrap } from "focus-trap";
|
|
|
3
3
|
export class PtcModal {
|
|
4
4
|
constructor() {
|
|
5
5
|
this.setReturnFocus = () => {
|
|
6
|
-
|
|
7
|
-
if (!this.lastFocusElement)
|
|
8
|
-
return;
|
|
9
|
-
// Try focusing the last focused element directly
|
|
10
|
-
if (this.lastFocusElement.tabIndex === 0) {
|
|
6
|
+
if (this.lastFocusElement instanceof HTMLElement) {
|
|
11
7
|
this.lastFocusElement.focus();
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
// If it's inside a shadow DOM, try finding a focusable child
|
|
15
|
-
const shadowRoot = this.lastFocusElement.shadowRoot;
|
|
16
|
-
if (shadowRoot) {
|
|
17
|
-
const focusableElementList = shadowRoot.querySelectorAll('button, [tabindex]:not([tabindex="-1"])');
|
|
18
|
-
if (focusableElementList) {
|
|
19
|
-
let focusableElement = focusableElementList[focusableElementList.length - 1];
|
|
20
|
-
focusableElement.focus();
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
// As a fallback, try to find a focusable child within the element
|
|
25
|
-
const fallbackElement = (_b = (_a = this.lastFocusElement).querySelector) === null || _b === void 0 ? void 0 : _b.call(_a, 'button, [tabindex]:not([tabindex="-1"])');
|
|
26
|
-
if (fallbackElement instanceof HTMLElement) {
|
|
27
|
-
fallbackElement.focus();
|
|
28
8
|
}
|
|
29
9
|
};
|
|
30
10
|
this.handleKeyPress = (event) => {
|
|
31
11
|
if (event.key === "Enter" || event.key === " " || event.key === "Tab") {
|
|
32
12
|
this.openedByKeyboard = true;
|
|
13
|
+
// if (event.key === 'Enter') {
|
|
14
|
+
// if (!this.show) {
|
|
15
|
+
// const id= (event.target as HTMLElement).getAttribute('id');
|
|
16
|
+
// localStorage.setItem('modalId', id);
|
|
17
|
+
// }
|
|
18
|
+
// }
|
|
33
19
|
}
|
|
34
20
|
};
|
|
35
21
|
this.handleMouseDown = () => {
|
|
@@ -46,8 +32,6 @@ export class PtcModal {
|
|
|
46
32
|
this.rounded = false;
|
|
47
33
|
this.hideContainer = false;
|
|
48
34
|
this.showHeaderFooter = false;
|
|
49
|
-
this.hideHeader = false;
|
|
50
|
-
this.modernScrollbar = false;
|
|
51
35
|
this.overlayHeight = undefined;
|
|
52
36
|
this.borderRadius = "standard";
|
|
53
37
|
this.isBioModal = false;
|
|
@@ -64,7 +48,7 @@ export class PtcModal {
|
|
|
64
48
|
}
|
|
65
49
|
onShowChange(newValue) {
|
|
66
50
|
if (newValue) {
|
|
67
|
-
this.lastFocusElement = document.activeElement;
|
|
51
|
+
// this.lastFocusElement = document.activeElement as HTMLElement;
|
|
68
52
|
this.fireOnOpened(this);
|
|
69
53
|
}
|
|
70
54
|
else {
|
|
@@ -161,7 +145,7 @@ export class PtcModal {
|
|
|
161
145
|
}
|
|
162
146
|
componentDidLoad() {
|
|
163
147
|
if (this.show) {
|
|
164
|
-
this.lastFocusElement = document.activeElement;
|
|
148
|
+
// this.lastFocusElement = document.activeElement as HTMLElement;
|
|
165
149
|
this.fireOnOpened(this);
|
|
166
150
|
}
|
|
167
151
|
if (this.showHeaderFooter) {
|
|
@@ -242,6 +226,20 @@ export class PtcModal {
|
|
|
242
226
|
if (this.trap) {
|
|
243
227
|
this.trap.deactivate();
|
|
244
228
|
}
|
|
229
|
+
// // Code for returning the focus to the element which opened the modal
|
|
230
|
+
// const modalId = localStorage.getItem('modalId');
|
|
231
|
+
// if (!modalId) return;
|
|
232
|
+
// const focusItem = document.querySelector<HTMLElement>(`#${modalId}`);
|
|
233
|
+
// if (!focusItem || focusItem.id !== modalId) return;
|
|
234
|
+
// // Focus the host element
|
|
235
|
+
// focusItem.focus();
|
|
236
|
+
// // If it's a PTC-BUTTON, try focusing the internal native <button>
|
|
237
|
+
// if (focusItem.tagName === 'PTC-BUTTON' && focusItem.shadowRoot) {
|
|
238
|
+
// const innerButton = focusItem.shadowRoot.querySelector<HTMLElement>('button');
|
|
239
|
+
// innerButton?.focus();
|
|
240
|
+
// }
|
|
241
|
+
// // Clean up localStorage
|
|
242
|
+
// localStorage.removeItem('modalId');
|
|
245
243
|
} })));
|
|
246
244
|
let bottomCloseBtnEle = (h("div", { tabindex: "0", class: "bottom-close", id: "modal-bottom-close", onClick: (e) => {
|
|
247
245
|
e.preventDefault();
|
|
@@ -283,18 +281,13 @@ export class PtcModal {
|
|
|
283
281
|
]
|
|
284
282
|
: null, this.showHeaderFooter
|
|
285
283
|
? [
|
|
286
|
-
|
|
287
|
-
this.
|
|
288
|
-
h("div", { class: `modal-body ${this.modernScrollbar
|
|
289
|
-
? "modern-scrollbar"
|
|
290
|
-
: ""}`, onScroll: () => this.handleScroll() }, content),
|
|
284
|
+
h("div", { class: "modal-header" }, h("slot", { name: "header" }), closebtn),
|
|
285
|
+
h("div", { class: "modal-body", onScroll: () => this.handleScroll() }, content),
|
|
291
286
|
h("div", { class: "modal-footer" }, h("slot", { name: "footer" })),
|
|
292
287
|
]
|
|
293
288
|
: [
|
|
294
289
|
closebtn,
|
|
295
|
-
h("div", { class:
|
|
296
|
-
? "modern-scrollbar"
|
|
297
|
-
: ""}` }, content),
|
|
290
|
+
h("div", { class: "modal-body" }, content),
|
|
298
291
|
], this.modalType === "event-listing" &&
|
|
299
292
|
this.bottomCloseBtn
|
|
300
293
|
? [bottomCloseBtnEle]
|
|
@@ -362,8 +355,8 @@ export class PtcModal {
|
|
|
362
355
|
"type": "string",
|
|
363
356
|
"mutable": true,
|
|
364
357
|
"complexType": {
|
|
365
|
-
"original": "| \"sm\"\r\n\t\t| \"md\"\r\n\t\t| \"lg\"\r\n\t\t| \"xl\"\r\n\t\t| \"max\"\r\n\t\t| \"sm-modal\"",
|
|
366
|
-
"resolved": "\"lg\" | \"max\" | \"md\" | \"sm\" | \"sm-modal\" | \"xl\"",
|
|
358
|
+
"original": "| \"sm\"\r\n\t\t| \"md\"\r\n\t\t| \"lg\"\r\n\t\t| \"xl\"\r\n\t\t| \"fit-content\"\r\n\t\t| \"max\"\r\n\t\t| \"sm-modal\"",
|
|
359
|
+
"resolved": "\"fit-content\" | \"lg\" | \"max\" | \"md\" | \"sm\" | \"sm-modal\" | \"xl\"",
|
|
367
360
|
"references": {}
|
|
368
361
|
},
|
|
369
362
|
"required": false,
|
|
@@ -537,42 +530,6 @@ export class PtcModal {
|
|
|
537
530
|
"reflect": false,
|
|
538
531
|
"defaultValue": "false"
|
|
539
532
|
},
|
|
540
|
-
"hideHeader": {
|
|
541
|
-
"type": "boolean",
|
|
542
|
-
"mutable": true,
|
|
543
|
-
"complexType": {
|
|
544
|
-
"original": "boolean",
|
|
545
|
-
"resolved": "boolean",
|
|
546
|
-
"references": {}
|
|
547
|
-
},
|
|
548
|
-
"required": false,
|
|
549
|
-
"optional": true,
|
|
550
|
-
"docs": {
|
|
551
|
-
"tags": [],
|
|
552
|
-
"text": "Sets if popup should hide header"
|
|
553
|
-
},
|
|
554
|
-
"attribute": "hide-header",
|
|
555
|
-
"reflect": false,
|
|
556
|
-
"defaultValue": "false"
|
|
557
|
-
},
|
|
558
|
-
"modernScrollbar": {
|
|
559
|
-
"type": "boolean",
|
|
560
|
-
"mutable": false,
|
|
561
|
-
"complexType": {
|
|
562
|
-
"original": "boolean",
|
|
563
|
-
"resolved": "boolean",
|
|
564
|
-
"references": {}
|
|
565
|
-
},
|
|
566
|
-
"required": false,
|
|
567
|
-
"optional": true,
|
|
568
|
-
"docs": {
|
|
569
|
-
"tags": [],
|
|
570
|
-
"text": "Use modern scrollbar styling for the modal body."
|
|
571
|
-
},
|
|
572
|
-
"attribute": "modern-scrollbar",
|
|
573
|
-
"reflect": false,
|
|
574
|
-
"defaultValue": "false"
|
|
575
|
-
},
|
|
576
533
|
"borderRadius": {
|
|
577
534
|
"type": "string",
|
|
578
535
|
"mutable": true,
|
|
@@ -144,7 +144,10 @@ export class PtcModalQuiz {
|
|
|
144
144
|
render() {
|
|
145
145
|
const ProgressDots = () => {
|
|
146
146
|
return (h("div", { class: "dot-progress-bar" }, [...Array(this.totalQuestions).keys()].map((questionNumber) => {
|
|
147
|
-
return (h("div", null, h("div", { class: `dot-progress-circle ${questionNumber ===
|
|
147
|
+
return (h("div", null, h("div", { class: `dot-progress-circle ${questionNumber ===
|
|
148
|
+
this.currentQuestion - 1
|
|
149
|
+
? "active"
|
|
150
|
+
: ""}` }), questionNumber <
|
|
148
151
|
this.totalQuestions - 1 ? (h("div", { class: "dot-progress-dash" }, h("div", { class: "dashed-line" }))) : null));
|
|
149
152
|
})));
|
|
150
153
|
};
|
|
@@ -169,10 +169,6 @@ ptc-footer {
|
|
|
169
169
|
background: linear-gradient(180deg, transparent 0%, transparent 100%);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
:host(.white-bottom) {
|
|
173
|
-
background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, #fff 100%);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
172
|
:host(.radius-standard) {
|
|
177
173
|
border-radius: var(--ptc-border-radius-standard);
|
|
178
174
|
}
|
|
@@ -38,7 +38,7 @@ export class PtcOverlay {
|
|
|
38
38
|
"type": "string",
|
|
39
39
|
"mutable": false,
|
|
40
40
|
"complexType": {
|
|
41
|
-
"original": "| \"blue\"\r\n\t\t| \"red\"\r\n\t\t| \"orange\"\r\n\t\t| \"green\"\r\n\t\t| \"black-1\"\r\n\t\t| \"black-2\"\r\n\t\t| \"black-3\"\r\n\t\t| \"black-4\"\r\n\t\t| \"black-5\"\r\n\t\t| \"slate-grey\"\r\n\t\t| \"bright-blue\"\r\n\t\t| \"bright-red\"\r\n\t\t| \"bright-orange\"\r\n\t\t| \"bright-green\"\r\n\t\t| \"bright-slate-grey\"\r\n\t\t| \"solid-black-1\"\r\n\t\t| \"solid-black-2\"\r\n\t\t| \"hp-blue\"\r\n\t\t| \"hp-green\"\r\n\t\t| \"hp-red\"\r\n\t\t| \"hp-gray\"\r\n\t\t| \"hp-orange\"\r\n\t\t| \"transparent\"\r\n\t\t|
|
|
41
|
+
"original": "| \"blue\"\r\n\t\t| \"red\"\r\n\t\t| \"orange\"\r\n\t\t| \"green\"\r\n\t\t| \"black-1\"\r\n\t\t| \"black-2\"\r\n\t\t| \"black-3\"\r\n\t\t| \"black-4\"\r\n\t\t| \"black-5\"\r\n\t\t| \"slate-grey\"\r\n\t\t| \"bright-blue\"\r\n\t\t| \"bright-red\"\r\n\t\t| \"bright-orange\"\r\n\t\t| \"bright-green\"\r\n\t\t| \"bright-slate-grey\"\r\n\t\t| \"solid-black-1\"\r\n\t\t| \"solid-black-2\"\r\n\t\t| \"hp-blue\"\r\n\t\t| \"hp-green\"\r\n\t\t| \"hp-red\"\r\n\t\t| \"hp-gray\"\r\n\t\t| \"hp-orange\"\r\n\t\t| \"transparent\"\r\n\t\t| string",
|
|
42
42
|
"resolved": "string",
|
|
43
43
|
"references": {}
|
|
44
44
|
},
|
|
@@ -196,8 +196,8 @@ export class PtcPara {
|
|
|
196
196
|
"type": "string",
|
|
197
197
|
"mutable": false,
|
|
198
198
|
"complexType": {
|
|
199
|
-
"original": "\"primary-grey\" | \"white\"
|
|
200
|
-
"resolved": "\"gray-darker\" | \"primary-grey\" | \"white\"",
|
|
199
|
+
"original": "| \"primary-grey\"\r\n\t\t| \"primary-green\"\r\n\t\t| \"white\"\r\n\t\t| \"gray-darker\"",
|
|
200
|
+
"resolved": "\"gray-darker\" | \"primary-green\" | \"primary-grey\" | \"white\"",
|
|
201
201
|
"references": {}
|
|
202
202
|
},
|
|
203
203
|
"required": false,
|