@ptcwebops/ptcw-design 6.4.16 → 6.4.17-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-35540bfb.js → component-6a178a16.js} +2643 -832
- package/dist/cjs/dynamic-box-bundle.cjs.entry.js +3 -1
- package/dist/cjs/featured-list.cjs.entry.js +1 -1
- package/dist/cjs/homepage-toggled-content.cjs.entry.js +3 -1
- package/dist/cjs/{icon-asset_2.cjs.entry.js → icon-asset.cjs.entry.js} +0 -89
- package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- 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-bio-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +2 -12
- package/dist/cjs/ptc-button_5.cjs.entry.js +614 -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 +6 -5
- 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 +1 -2
- package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-dropdown_4.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} +724 -6
- package/dist/cjs/ptc-homepage-video-background.cjs.entry.js +1 -1
- package/dist/cjs/ptc-image-download-strip.cjs.entry.js +1 -1
- package/dist/cjs/ptc-img.cjs.entry.js +87 -7
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +11 -5
- package/dist/cjs/ptc-modal-quiz.cjs.entry.js +4 -1
- package/dist/cjs/ptc-nav-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-overlay.cjs.entry.js +1 -1
- 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-search-field.cjs.entry.js +95 -0
- package/dist/cjs/ptc-subnav-v2.cjs.entry.js +81 -246
- package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-prop-card.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/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 +28 -6
- 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/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-toggled-content/homepage-toggled-content.js +3 -1
- 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/ptc-card.css +15 -1
- package/dist/collection/components/ptc-card-content/ptc-card-content.css +1 -25
- 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 +24 -4
- package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +24 -4
- package/dist/collection/components/ptc-filter-dropdown/ptc-filter-dropdown.css +1 -0
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +24 -4
- package/dist/collection/components/ptc-homepage-video-background/ptc-homepage-video-background.css +2 -1
- package/dist/collection/components/ptc-image-download-strip/ptc-image-download-strip.css +2 -1
- 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-nav-card/ptc-nav-card.css +5 -2
- 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-subnav-v2/ptc-subnav-v2.css +22 -37
- package/dist/collection/components/ptc-subnav-v2/ptc-subnav-v2.js +83 -247
- package/dist/collection/components/ptc-textfield/ptc-textfield.css +1 -1
- 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-value-prop-card/ptc-value-prop-card.css +2 -1
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +29 -8
- 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/custom-elements/index.d.ts +6 -18
- package/dist/custom-elements/index.js +457 -556
- 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-8c53e377.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 +1 -1
- package/dist/esm/featured-events-slider-example.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/homepage-toggled-content.entry.js +5 -3
- package/dist/esm/{icon-asset_2.entry.js → icon-asset.entry.js} +2 -90
- 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 → interfaces-7c0243be.js} +1 -1
- 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 +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/max-width-container.entry.js +1 -1
- 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 +2 -2
- 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 +3 -13
- package/dist/esm/ptc-brightcov-video.entry.js +1 -1
- package/dist/esm/ptc-button_5.entry.js +606 -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 +7 -6
- 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 +2 -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 +2 -2
- 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} +725 -9
- 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 +3 -3
- package/dist/esm/ptc-icon-card-slider-example.entry.js +1 -1
- package/dist/esm/ptc-icon-card.entry.js +2 -2
- package/dist/esm/ptc-icon-component.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/ptc-img.entry.js +89 -9
- 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 +12 -6
- 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 +2 -2
- 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-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 +91 -0
- 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-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 +82 -247
- 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-tooltip-v2.entry.js +2 -2
- package/dist/esm/ptc-tooltip-v3.entry.js +1 -1
- package/dist/esm/ptc-tooltip.entry.js +1 -1
- 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 +2 -2
- 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 +1 -1
- package/dist/esm/storefront-enhanced-product-list-example.entry.js +1 -1
- package/dist/esm/tab-content.entry.js +1 -1
- package/dist/esm/tab-header.entry.js +1 -1
- package/dist/esm/{utils-bdd0cc16.js → utils-a64ba942.js} +1 -1
- package/dist/ptcw-design/media/designer-v6.0.7.svg +30 -2
- package/dist/ptcw-design/{p-c33fd408.entry.js → p-02622aa7.entry.js} +1 -1
- 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-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-804dac0c.entry.js → p-0df868d2.entry.js} +1 -1
- package/dist/ptcw-design/p-0f6b641c.entry.js +1 -0
- package/dist/ptcw-design/{p-36d6e662.entry.js → p-13e338a5.entry.js} +1 -1
- package/dist/ptcw-design/p-1519b36f.entry.js +1 -0
- 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-f418ef26.entry.js → p-18d699f0.entry.js} +1 -1
- package/dist/ptcw-design/{p-7815e38b.entry.js → p-1bffeaed.entry.js} +1 -1
- package/dist/ptcw-design/{p-908ad455.entry.js → p-1c26f390.entry.js} +1 -1
- package/dist/ptcw-design/p-1d789cd7.entry.js +1 -0
- package/dist/ptcw-design/{p-850e6e8c.entry.js → p-1e32a493.entry.js} +1 -1
- package/dist/ptcw-design/{p-d428ba40.entry.js → p-1f0daed2.entry.js} +1 -1
- package/dist/ptcw-design/{p-2fd01953.entry.js → p-21fa5abe.entry.js} +1 -1
- package/dist/ptcw-design/{p-c7e948b2.js → p-22cf00e7.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-d9ec506c.entry.js → p-260ecfef.entry.js} +1 -1
- package/dist/ptcw-design/p-2670ac97.entry.js +1 -0
- 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-2cd2a8bd.entry.js +1 -0
- package/dist/ptcw-design/p-2d00fefd.entry.js +1 -0
- package/dist/ptcw-design/p-349f43d5.entry.js +1 -0
- package/dist/ptcw-design/p-3572eccc.entry.js +1 -0
- package/dist/ptcw-design/p-36a3eb03.entry.js +68 -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-3ddb6c50.entry.js +1 -0
- package/dist/ptcw-design/p-456c5cbb.entry.js +1 -0
- package/dist/ptcw-design/{p-9df3c31f.entry.js → p-46b47ed7.entry.js} +1 -1
- package/dist/ptcw-design/{p-068b64a1.entry.js → p-46c518c8.entry.js} +1 -1
- package/dist/ptcw-design/{p-1e9f25fc.entry.js → p-46f67bec.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-2f82de8f.entry.js → p-50569afd.entry.js} +1 -1
- package/dist/ptcw-design/{p-91e5c8d4.entry.js → p-506dac1f.entry.js} +1 -1
- package/dist/ptcw-design/{p-bca81995.entry.js → p-560b05a5.entry.js} +1 -1
- package/dist/ptcw-design/{p-674c828e.entry.js → p-567535fb.entry.js} +1 -1
- 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-5cf5b9f8.entry.js +1 -0
- 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-5ec17b43.entry.js +1 -0
- package/dist/ptcw-design/p-60d001c8.entry.js +1 -0
- package/dist/ptcw-design/{p-5fb671ee.entry.js → p-61d28206.entry.js} +1 -1
- package/dist/ptcw-design/{p-5b00a563.entry.js → p-62e3cd51.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-575c7fc0.entry.js → p-6aa9ed95.entry.js} +1 -1
- package/dist/ptcw-design/p-6ac4cfab.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-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-82f766d2.entry.js +1 -0
- 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-8fb48953.entry.js +1 -0
- package/dist/ptcw-design/p-9027d2d9.entry.js +1 -0
- package/dist/ptcw-design/p-9063956c.entry.js +1 -0
- package/dist/ptcw-design/p-90f1a7af.entry.js +1 -0
- package/dist/ptcw-design/{p-cf0f6559.entry.js → p-927373d4.entry.js} +1 -1
- package/dist/ptcw-design/{p-a318a793.entry.js → p-92ad78c5.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-1acd3617.entry.js → p-99daf693.entry.js} +1 -1
- 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-2f7b6437.entry.js → p-9ca635fa.entry.js} +1 -1
- 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-0ed4609e.entry.js → p-9ef2b1e7.entry.js} +1 -1
- package/dist/ptcw-design/{p-b154bbdb.entry.js → p-9fb21bdf.entry.js} +1 -1
- 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-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-a993c0a6.entry.js +1 -0
- 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-e249cd90.entry.js → p-ac7b2779.entry.js} +1 -1
- 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-b79b1e09.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-e1373325.entry.js → p-bd3d71f1.entry.js} +1 -1
- 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-fb0c3eeb.entry.js → p-c061b32d.entry.js} +1 -1
- package/dist/ptcw-design/p-c09a8288.entry.js +1 -0
- package/dist/ptcw-design/{p-d3c11c68.entry.js → p-c160bda4.entry.js} +1 -1
- 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-c89030e4.entry.js +1 -0
- package/dist/ptcw-design/p-cb0e3ec2.entry.js +1 -0
- package/dist/ptcw-design/{p-384548ef.entry.js → p-cc652ebe.entry.js} +1 -1
- package/dist/ptcw-design/{p-03a1e1a5.entry.js → p-cc7d5eb7.entry.js} +1 -1
- package/dist/ptcw-design/{p-89da867f.entry.js → p-d391c01b.entry.js} +1 -1
- 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-e880b556.entry.js → p-db0fc94d.entry.js} +1 -1
- package/dist/ptcw-design/p-de960790.entry.js +1 -0
- package/dist/ptcw-design/p-df66407c.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-e7220c36.entry.js +1 -0
- package/dist/ptcw-design/{p-b1053240.entry.js → p-e73a1a0b.entry.js} +1 -1
- package/dist/ptcw-design/{p-1b3394a7.entry.js → p-e7c00e48.entry.js} +1 -1
- package/dist/ptcw-design/{p-711bcdad.js → p-ee1183b2.js} +1 -1
- package/dist/ptcw-design/{p-fe56e336.entry.js → p-ee91170c.entry.js} +1 -1
- package/dist/ptcw-design/{p-6f29592a.entry.js → p-f010c07f.entry.js} +1 -1
- package/dist/ptcw-design/{p-83dabf2e.entry.js → p-f2675bb0.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-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/p-ff66587b.entry.js +1 -0
- 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 +4 -19
- package/dist/types/components.d.ts +51 -65
- package/package.json +1 -1
- package/readme.md +7 -3
- package/dist/cjs/component-1b8ad4d2.js +0 -1819
- package/dist/cjs/ptc-blue-pill-announcement-bar.cjs.entry.js +0 -19
- package/dist/cjs/ptc-button.cjs.entry.js +0 -117
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +0 -730
- package/dist/cjs/ptc-para.cjs.entry.js +0 -139
- package/dist/cjs/ptc-picture.cjs.entry.js +0 -185
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
- package/dist/cjs/ptc-store-card-list.cjs.entry.js +0 -110
- package/dist/cjs/ptc-store-card.cjs.entry.js +0 -24
- package/dist/cjs/ptc-title.cjs.entry.js +0 -161
- package/dist/collection/components/ptc-blue-pill-announcement-bar/ptc-blue-pill-announcement-bar.css +0 -93
- package/dist/collection/components/ptc-blue-pill-announcement-bar/ptc-blue-pill-announcement-bar.js +0 -18
- 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 -1173
- package/dist/collection/components/ptc-store-card-list/ptc-store-card-list.js +0 -108
- 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-9beac35b.js +0 -1802
- package/dist/esm/ptc-blue-pill-announcement-bar.entry.js +0 -15
- package/dist/esm/ptc-button.entry.js +0 -113
- package/dist/esm/ptc-multi-select_2.entry.js +0 -725
- package/dist/esm/ptc-para.entry.js +0 -135
- package/dist/esm/ptc-picture.entry.js +0 -181
- package/dist/esm/ptc-spacer.entry.js +0 -34
- package/dist/esm/ptc-store-card-list.entry.js +0 -106
- package/dist/esm/ptc-store-card.entry.js +0 -20
- package/dist/esm/ptc-title.entry.js +0 -157
- 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-19832538.entry.js +0 -68
- package/dist/ptcw-design/p-212cdacd.entry.js +0 -1
- package/dist/ptcw-design/p-22222e85.entry.js +0 -1
- package/dist/ptcw-design/p-23411b93.entry.js +0 -1
- package/dist/ptcw-design/p-2365412f.entry.js +0 -1
- package/dist/ptcw-design/p-2bc4bf65.entry.js +0 -1
- package/dist/ptcw-design/p-2e1c6701.entry.js +0 -1
- package/dist/ptcw-design/p-2e288e60.entry.js +0 -1
- package/dist/ptcw-design/p-2efd18d8.entry.js +0 -1
- package/dist/ptcw-design/p-32a1c28b.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-3c941935.entry.js +0 -1
- package/dist/ptcw-design/p-4313edfb.entry.js +0 -1
- package/dist/ptcw-design/p-47aa1583.entry.js +0 -1
- package/dist/ptcw-design/p-561a622f.entry.js +0 -1
- package/dist/ptcw-design/p-5877ab67.entry.js +0 -1
- package/dist/ptcw-design/p-5bbfd7b3.entry.js +0 -1
- package/dist/ptcw-design/p-6785dc81.entry.js +0 -1
- package/dist/ptcw-design/p-709cc1f0.entry.js +0 -1
- package/dist/ptcw-design/p-7123abad.entry.js +0 -1
- package/dist/ptcw-design/p-73650c8e.entry.js +0 -1
- package/dist/ptcw-design/p-752159e2.entry.js +0 -1
- package/dist/ptcw-design/p-75c8fceb.entry.js +0 -1
- package/dist/ptcw-design/p-7777753a.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-8234aa2a.entry.js +0 -1
- package/dist/ptcw-design/p-83c3d6c9.entry.js +0 -1
- package/dist/ptcw-design/p-87215e3a.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-8efaac1b.entry.js +0 -1
- package/dist/ptcw-design/p-973b06d1.entry.js +0 -1
- package/dist/ptcw-design/p-98426799.js +0 -203
- package/dist/ptcw-design/p-98844b50.js +0 -134
- 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-a28ff90b.entry.js +0 -1
- package/dist/ptcw-design/p-a81833cd.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-b3cd2410.entry.js +0 -1
- package/dist/ptcw-design/p-c101aeb5.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-d1ff12d2.entry.js +0 -1
- package/dist/ptcw-design/p-e00c5964.entry.js +0 -1
- package/dist/ptcw-design/p-e2e357e7.entry.js +0 -1
- package/dist/ptcw-design/p-e65cbdb9.entry.js +0 -1
- package/dist/ptcw-design/p-ec22d0b8.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 -3
- 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
|
@@ -2,10 +2,6 @@ import { Host, h } from "@stencil/core";
|
|
|
2
2
|
export class PtcSubnavV2 {
|
|
3
3
|
constructor() {
|
|
4
4
|
this.cachedNavItems = null;
|
|
5
|
-
this.isSticky = false;
|
|
6
|
-
this.originalTop = 0;
|
|
7
|
-
this.placeholderElement = null;
|
|
8
|
-
this.measurementElement = null;
|
|
9
5
|
this.handleClickOutside = (event) => {
|
|
10
6
|
if (!this.el.contains(event.target)) {
|
|
11
7
|
this.showOverflowMenu = false;
|
|
@@ -45,82 +41,19 @@ export class PtcSubnavV2 {
|
|
|
45
41
|
// Only update if different from current active
|
|
46
42
|
if (activeSection !== this.currentActive) {
|
|
47
43
|
this.currentActive = activeSection;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
const rect = this.el.getBoundingClientRect();
|
|
55
|
-
this.originalTop = rect.top + window.scrollY;
|
|
56
|
-
};
|
|
57
|
-
this.handleStickyScroll = () => {
|
|
58
|
-
// Throttle sticky scroll events for better performance
|
|
59
|
-
if (this.stickyScrollTimeout) {
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
this.stickyScrollTimeout = window.setTimeout(() => {
|
|
63
|
-
var _a;
|
|
64
|
-
const scrollY = window.scrollY;
|
|
65
|
-
// Check if we should make the subnav sticky
|
|
66
|
-
const shouldBeSticky = scrollY >= this.originalTop;
|
|
67
|
-
if (shouldBeSticky && !this.isSticky) {
|
|
68
|
-
// Store the original height before making it fixed
|
|
69
|
-
const originalHeight = this.el.offsetHeight;
|
|
70
|
-
// Create placeholder element to maintain space
|
|
71
|
-
this.placeholderElement = document.createElement("div");
|
|
72
|
-
this.placeholderElement.style.height = `${originalHeight}px`;
|
|
73
|
-
this.placeholderElement.style.width = "100%";
|
|
74
|
-
this.placeholderElement.style.pointerEvents = "none";
|
|
75
|
-
// Insert placeholder before the subnav
|
|
76
|
-
(_a = this.el.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(this.placeholderElement, this.el);
|
|
77
|
-
// Add transition class for smooth animation
|
|
78
|
-
this.el.classList.add("sticky-transition");
|
|
79
|
-
// Apply fixed positioning with smooth transition
|
|
80
|
-
this.el.style.position = "fixed";
|
|
81
|
-
this.el.style.top = "0";
|
|
82
|
-
this.el.style.left = "0";
|
|
83
|
-
this.el.style.right = "0";
|
|
84
|
-
this.el.style.width = "100%";
|
|
85
|
-
this.el.style.zIndex = "105";
|
|
86
|
-
this.el.style.transform = "translateY(0)";
|
|
87
|
-
this.isSticky = true;
|
|
88
|
-
}
|
|
89
|
-
else if (!shouldBeSticky && this.isSticky) {
|
|
90
|
-
// Remove transition class and reset transform
|
|
91
|
-
this.el.classList.remove("sticky-transition");
|
|
92
|
-
this.el.style.transform = "";
|
|
93
|
-
// Remove fixed positioning and restore original position
|
|
94
|
-
this.el.style.position = "";
|
|
95
|
-
this.el.style.top = "";
|
|
96
|
-
this.el.style.left = "";
|
|
97
|
-
this.el.style.right = "";
|
|
98
|
-
this.el.style.width = "";
|
|
99
|
-
this.el.style.zIndex = "";
|
|
100
|
-
this.isSticky = false;
|
|
101
|
-
// Remove placeholder element
|
|
102
|
-
if (this.placeholderElement) {
|
|
103
|
-
this.placeholderElement.remove();
|
|
104
|
-
this.placeholderElement = null;
|
|
44
|
+
// Update mobile selected item if in mobile mode
|
|
45
|
+
if (this.isMobile) {
|
|
46
|
+
const activeItem = navItems.find((item) => item.id === activeSection);
|
|
47
|
+
if (activeItem) {
|
|
48
|
+
this.selectedMobileItem = activeItem;
|
|
49
|
+
}
|
|
105
50
|
}
|
|
106
51
|
}
|
|
107
|
-
this.
|
|
52
|
+
this.scrollThrottleTimeout = null;
|
|
108
53
|
}, 16); // ~60fps throttling
|
|
109
54
|
};
|
|
110
55
|
this.handleResize = () => {
|
|
111
56
|
this.navContainer && setTimeout(() => this.calculateVisibleItems(), 10);
|
|
112
|
-
// Recalculate original position on resize
|
|
113
|
-
if (!this.isSticky) {
|
|
114
|
-
this.initializeStickyPosition();
|
|
115
|
-
}
|
|
116
|
-
else if (this.placeholderElement) {
|
|
117
|
-
// Update placeholder height if sticky and resized
|
|
118
|
-
const currentHeight = this.el.offsetHeight;
|
|
119
|
-
this.placeholderElement.style.height = `${currentHeight}px`;
|
|
120
|
-
// Update originalTop based on placeholder position (layout may have changed)
|
|
121
|
-
const placeholderRect = this.placeholderElement.getBoundingClientRect();
|
|
122
|
-
this.originalTop = placeholderRect.top + window.scrollY;
|
|
123
|
-
}
|
|
124
57
|
};
|
|
125
58
|
this.setupIntersectionObserver = () => {
|
|
126
59
|
// Get all sections that correspond to our navigation items
|
|
@@ -156,6 +89,13 @@ export class PtcSubnavV2 {
|
|
|
156
89
|
const sectionId = mostVisibleSection.target.id;
|
|
157
90
|
if (sectionId && sectionId !== this.currentActive) {
|
|
158
91
|
this.currentActive = sectionId;
|
|
92
|
+
// Update mobile selected item if in mobile mode
|
|
93
|
+
if (this.isMobile) {
|
|
94
|
+
const activeItem = navItems.find((item) => item.id === sectionId);
|
|
95
|
+
if (activeItem) {
|
|
96
|
+
this.selectedMobileItem = activeItem;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
159
99
|
}
|
|
160
100
|
}
|
|
161
101
|
}, 100); // Increased debounce time for better performance
|
|
@@ -172,24 +112,6 @@ export class PtcSubnavV2 {
|
|
|
172
112
|
}
|
|
173
113
|
});
|
|
174
114
|
};
|
|
175
|
-
this.setupResizeObserver = () => {
|
|
176
|
-
// Observe the parent element for layout changes
|
|
177
|
-
this.resizeObserver = new ResizeObserver(() => {
|
|
178
|
-
// Recalculate sticky position when parent layout changes
|
|
179
|
-
if (!this.isSticky) {
|
|
180
|
-
this.initializeStickyPosition();
|
|
181
|
-
}
|
|
182
|
-
else if (this.placeholderElement) {
|
|
183
|
-
// If sticky, update originalTop based on placeholder position
|
|
184
|
-
const placeholderRect = this.placeholderElement.getBoundingClientRect();
|
|
185
|
-
this.originalTop = placeholderRect.top + window.scrollY;
|
|
186
|
-
}
|
|
187
|
-
});
|
|
188
|
-
// Observe the element's parent or the element itself
|
|
189
|
-
if (this.el.parentElement) {
|
|
190
|
-
this.resizeObserver.observe(this.el.parentElement);
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
115
|
this.extractNavItemsFromSlots = () => {
|
|
194
116
|
const slotElement = this.el.querySelector('[slot="nav-items"]');
|
|
195
117
|
if (!slotElement)
|
|
@@ -229,6 +151,9 @@ export class PtcSubnavV2 {
|
|
|
229
151
|
console.warn("No navigation items found in slots or props for ptc-subnav-v2");
|
|
230
152
|
return [];
|
|
231
153
|
};
|
|
154
|
+
this.calculateMobileDropdownItems = () => {
|
|
155
|
+
this.mobileDropdownItems = this.getNavItems();
|
|
156
|
+
};
|
|
232
157
|
this.hasActiveOverflowItem = () => {
|
|
233
158
|
return this.overflowItems.some((item) => item.id === this.currentActive);
|
|
234
159
|
};
|
|
@@ -242,6 +167,7 @@ export class PtcSubnavV2 {
|
|
|
242
167
|
if (navItems.length === 0) {
|
|
243
168
|
this.visibleItems = [];
|
|
244
169
|
this.overflowItems = [];
|
|
170
|
+
this.selectedMobileItem = null;
|
|
245
171
|
return;
|
|
246
172
|
}
|
|
247
173
|
// Check if we're in mobile mode (below 767px)
|
|
@@ -255,6 +181,7 @@ export class PtcSubnavV2 {
|
|
|
255
181
|
// On mobile, show only the current active item
|
|
256
182
|
const activeItem = navItems.find((item) => item.id === this.currentActive) ||
|
|
257
183
|
navItems[0];
|
|
184
|
+
this.selectedMobileItem = activeItem;
|
|
258
185
|
this.visibleItems = [activeItem];
|
|
259
186
|
this.overflowItems = navItems.filter((item) => item.id !== activeItem.id);
|
|
260
187
|
}
|
|
@@ -275,21 +202,19 @@ export class PtcSubnavV2 {
|
|
|
275
202
|
}
|
|
276
203
|
let visibleCount = 0;
|
|
277
204
|
let totalWidth = 0;
|
|
278
|
-
// Create
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
}
|
|
288
|
-
document.body.appendChild(this.measurementElement);
|
|
205
|
+
// Create temporary elements to measure width
|
|
206
|
+
const tempContainer = document.createElement("div");
|
|
207
|
+
tempContainer.style.position = "absolute";
|
|
208
|
+
tempContainer.style.visibility = "hidden";
|
|
209
|
+
tempContainer.style.whiteSpace = "nowrap";
|
|
210
|
+
tempContainer.style.fontSize = "14px";
|
|
211
|
+
tempContainer.style.fontWeight = "700";
|
|
212
|
+
tempContainer.style.padding = "20px 0 20px 0";
|
|
213
|
+
document.body.appendChild(tempContainer);
|
|
289
214
|
for (let i = 0; i < navItems.length; i++) {
|
|
290
215
|
const item = navItems[i];
|
|
291
|
-
|
|
292
|
-
const itemWidth =
|
|
216
|
+
tempContainer.textContent = item.label;
|
|
217
|
+
const itemWidth = tempContainer.offsetWidth + 32; // 32px for gap
|
|
293
218
|
if (totalWidth + itemWidth <= availableWidth) {
|
|
294
219
|
totalWidth += itemWidth;
|
|
295
220
|
visibleCount++;
|
|
@@ -298,7 +223,7 @@ export class PtcSubnavV2 {
|
|
|
298
223
|
break;
|
|
299
224
|
}
|
|
300
225
|
}
|
|
301
|
-
document.body.removeChild(
|
|
226
|
+
document.body.removeChild(tempContainer);
|
|
302
227
|
this.visibleItems = navItems.slice(0, visibleCount);
|
|
303
228
|
this.overflowItems = navItems.slice(visibleCount);
|
|
304
229
|
}
|
|
@@ -307,33 +232,29 @@ export class PtcSubnavV2 {
|
|
|
307
232
|
};
|
|
308
233
|
this.toggleOverflowMenu = () => {
|
|
309
234
|
this.showOverflowMenu = !this.showOverflowMenu;
|
|
310
|
-
// After opening, measure and decide alignment to avoid viewport overflow
|
|
311
|
-
if (!this.showOverflowMenu) {
|
|
312
|
-
return;
|
|
313
|
-
}
|
|
314
|
-
requestAnimationFrame(() => {
|
|
315
|
-
const container = this.overflowMenuContainer;
|
|
316
|
-
const dropdown = this.overflowDropdownEl;
|
|
317
|
-
if (!container || !dropdown)
|
|
318
|
-
return;
|
|
319
|
-
const containerRect = container.getBoundingClientRect();
|
|
320
|
-
// Default positioning is right: -2px inside container
|
|
321
|
-
const dropdownWidth = dropdown.offsetWidth || 0;
|
|
322
|
-
const rightEdge = containerRect.right + 2;
|
|
323
|
-
const leftEdge = rightEdge - dropdownWidth;
|
|
324
|
-
// If left edge would be off the viewport, flip to left aligned
|
|
325
|
-
this.overflowDropdownAlignLeft = leftEdge < 8; // keep a small gutter
|
|
326
|
-
});
|
|
327
235
|
};
|
|
328
236
|
this.handleNavClick = (event, section) => {
|
|
329
237
|
event.preventDefault();
|
|
330
238
|
this.currentActive = section;
|
|
239
|
+
// Update mobile selected item if in mobile mode
|
|
240
|
+
if (this.isMobile) {
|
|
241
|
+
const navItems = this.getNavItems();
|
|
242
|
+
const activeItem = navItems.find((item) => item.id === section);
|
|
243
|
+
if (activeItem) {
|
|
244
|
+
this.selectedMobileItem = activeItem;
|
|
245
|
+
this.calculateMobileDropdownItems();
|
|
246
|
+
}
|
|
247
|
+
}
|
|
331
248
|
// Set manual navigation flag to prevent intersection observer from overriding
|
|
332
249
|
this.isManualNavigation = true;
|
|
333
250
|
// Clear any existing manual navigation timeout
|
|
334
251
|
if (this.manualNavigationTimeout) {
|
|
335
252
|
clearTimeout(this.manualNavigationTimeout);
|
|
336
253
|
}
|
|
254
|
+
// Reset manual navigation flag after scroll animation completes
|
|
255
|
+
this.manualNavigationTimeout = window.setTimeout(() => {
|
|
256
|
+
this.isManualNavigation = false;
|
|
257
|
+
}, 1500); // Give enough time for smooth scroll to complete
|
|
337
258
|
// Emit custom event for parent components
|
|
338
259
|
const customEvent = new CustomEvent("sectionChange", {
|
|
339
260
|
detail: { section },
|
|
@@ -341,77 +262,13 @@ export class PtcSubnavV2 {
|
|
|
341
262
|
composed: true,
|
|
342
263
|
});
|
|
343
264
|
this.el.dispatchEvent(customEvent);
|
|
344
|
-
// Smooth scroll to section if it exists
|
|
265
|
+
// Smooth scroll to section if it exists
|
|
345
266
|
const targetElement = document.querySelector(`#${section}`);
|
|
346
267
|
if (targetElement) {
|
|
347
|
-
|
|
348
|
-
const navHeight = this.el.offsetHeight;
|
|
349
|
-
// Calculate the target position with offset
|
|
350
|
-
const targetPosition = targetElement.getBoundingClientRect().top +
|
|
351
|
-
window.scrollY -
|
|
352
|
-
navHeight;
|
|
353
|
-
// Smooth scroll to the adjusted position
|
|
354
|
-
window.scrollTo({
|
|
355
|
-
top: targetPosition,
|
|
268
|
+
targetElement.scrollIntoView({
|
|
356
269
|
behavior: "smooth",
|
|
270
|
+
block: "start",
|
|
357
271
|
});
|
|
358
|
-
// Reset manual navigation flag and correct scroll position after animation
|
|
359
|
-
this.manualNavigationTimeout = window.setTimeout(() => {
|
|
360
|
-
this.isManualNavigation = false;
|
|
361
|
-
// Re-check position to account for lazy-loaded images
|
|
362
|
-
const finalNavHeight = this.el.offsetHeight;
|
|
363
|
-
const finalTargetPosition = targetElement.getBoundingClientRect().top +
|
|
364
|
-
window.scrollY -
|
|
365
|
-
finalNavHeight;
|
|
366
|
-
// If we're off by more than a small threshold, correct it instantly.
|
|
367
|
-
if (Math.abs(window.scrollY - finalTargetPosition) > 5) {
|
|
368
|
-
window.scrollTo({
|
|
369
|
-
top: finalTargetPosition,
|
|
370
|
-
behavior: "smooth",
|
|
371
|
-
});
|
|
372
|
-
}
|
|
373
|
-
}, 800); // Give enough time for smooth scroll to complete
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
// Fallback timeout if the element doesn't exist
|
|
377
|
-
this.manualNavigationTimeout = window.setTimeout(() => {
|
|
378
|
-
this.isManualNavigation = false;
|
|
379
|
-
}, 1500);
|
|
380
|
-
}
|
|
381
|
-
};
|
|
382
|
-
this.handleInitialLoadWithHash = () => {
|
|
383
|
-
if (window.location.hash) {
|
|
384
|
-
if (document.readyState === "complete") {
|
|
385
|
-
// If the page is already loaded, scroll immediately
|
|
386
|
-
this.handleHashChange();
|
|
387
|
-
}
|
|
388
|
-
else {
|
|
389
|
-
// Otherwise, wait for the page to fully load before scrolling
|
|
390
|
-
window.addEventListener("load", this.boundHandleHashChange, {
|
|
391
|
-
once: true,
|
|
392
|
-
});
|
|
393
|
-
}
|
|
394
|
-
}
|
|
395
|
-
};
|
|
396
|
-
this.handleHashChange = () => {
|
|
397
|
-
const hash = window.location.hash;
|
|
398
|
-
if (hash) {
|
|
399
|
-
const sectionId = hash.substring(1);
|
|
400
|
-
this.scrollToSection(sectionId);
|
|
401
|
-
}
|
|
402
|
-
};
|
|
403
|
-
this.scrollToSection = (sectionId, smooth = true) => {
|
|
404
|
-
const targetElement = document.getElementById(sectionId);
|
|
405
|
-
if (targetElement) {
|
|
406
|
-
const navHeight = this.el.offsetHeight;
|
|
407
|
-
const targetPosition = targetElement.getBoundingClientRect().top +
|
|
408
|
-
window.scrollY -
|
|
409
|
-
navHeight;
|
|
410
|
-
window.scrollTo({
|
|
411
|
-
top: targetPosition,
|
|
412
|
-
behavior: smooth ? "smooth" : "auto",
|
|
413
|
-
});
|
|
414
|
-
this.currentActive = sectionId;
|
|
415
272
|
}
|
|
416
273
|
};
|
|
417
274
|
this.activeSection = "overview";
|
|
@@ -420,29 +277,36 @@ export class PtcSubnavV2 {
|
|
|
420
277
|
this.visibleItems = [];
|
|
421
278
|
this.overflowItems = [];
|
|
422
279
|
this.showOverflowMenu = false;
|
|
423
|
-
this.overflowDropdownAlignLeft = false;
|
|
424
280
|
this.isMobile = false;
|
|
281
|
+
this.selectedMobileItem = null;
|
|
425
282
|
this.isManualNavigation = false;
|
|
283
|
+
this.mobileDropdownItems = [];
|
|
426
284
|
}
|
|
427
285
|
componentWillLoad() {
|
|
428
286
|
this.currentActive = this.activeSection;
|
|
287
|
+
this.initializeMobileItem();
|
|
288
|
+
this.calculateMobileDropdownItems();
|
|
289
|
+
}
|
|
290
|
+
initializeMobileItem() {
|
|
291
|
+
const navItems = this.getNavItems();
|
|
292
|
+
this.selectedMobileItem =
|
|
293
|
+
navItems.length > 0
|
|
294
|
+
? navItems.find((item) => item.id === this.activeSection) ||
|
|
295
|
+
navItems[0]
|
|
296
|
+
: null;
|
|
429
297
|
}
|
|
430
298
|
componentDidLoad() {
|
|
431
299
|
this.bindEventHandlers();
|
|
300
|
+
this.calculateMobileDropdownItems();
|
|
432
301
|
this.handleResize();
|
|
433
302
|
this.addEventListeners();
|
|
434
303
|
this.setupIntersectionObserver();
|
|
435
|
-
this.setupResizeObserver();
|
|
436
|
-
this.initializeStickyPosition();
|
|
437
|
-
this.handleInitialLoadWithHash();
|
|
438
304
|
}
|
|
439
305
|
bindEventHandlers() {
|
|
440
306
|
this.boundHandleResize = this.handleResize.bind(this);
|
|
441
307
|
this.boundHandleClickOutside = this.handleClickOutside.bind(this);
|
|
442
308
|
this.boundHandleScroll = this.handleScroll.bind(this);
|
|
443
309
|
this.boundHandleKeyDown = this.handleKeyDown.bind(this);
|
|
444
|
-
this.boundHandleStickyScroll = this.handleStickyScroll.bind(this);
|
|
445
|
-
this.boundHandleHashChange = this.handleHashChange.bind(this);
|
|
446
310
|
}
|
|
447
311
|
addEventListeners() {
|
|
448
312
|
window.addEventListener("resize", this.boundHandleResize);
|
|
@@ -451,60 +315,32 @@ export class PtcSubnavV2 {
|
|
|
451
315
|
window.addEventListener("scroll", this.boundHandleScroll, {
|
|
452
316
|
passive: true,
|
|
453
317
|
});
|
|
454
|
-
window.addEventListener("scroll", this.boundHandleStickyScroll, {
|
|
455
|
-
passive: true,
|
|
456
|
-
});
|
|
457
|
-
window.addEventListener("hashchange", this.boundHandleHashChange);
|
|
458
|
-
window.addEventListener("load", this.boundHandleHashChange, {
|
|
459
|
-
once: true,
|
|
460
|
-
});
|
|
461
318
|
}
|
|
462
319
|
disconnectedCallback() {
|
|
463
320
|
this.removeEventListeners();
|
|
464
321
|
this.cleanupTimeouts();
|
|
465
322
|
this.cleanupIntersectionObserver();
|
|
466
|
-
this.cleanupResizeObserver();
|
|
467
|
-
this.cleanupElements();
|
|
468
323
|
}
|
|
469
324
|
removeEventListeners() {
|
|
470
325
|
window.removeEventListener("resize", this.boundHandleResize);
|
|
471
326
|
document.removeEventListener("click", this.boundHandleClickOutside);
|
|
472
327
|
document.removeEventListener("keydown", this.boundHandleKeyDown);
|
|
473
328
|
window.removeEventListener("scroll", this.boundHandleScroll);
|
|
474
|
-
window.removeEventListener("scroll", this.boundHandleStickyScroll);
|
|
475
|
-
window.removeEventListener("hashchange", this.boundHandleHashChange);
|
|
476
|
-
window.removeEventListener("load", this.boundHandleHashChange);
|
|
477
329
|
}
|
|
478
330
|
cleanupTimeouts() {
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
clearTimeout(this.stickyScrollTimeout);
|
|
331
|
+
[
|
|
332
|
+
this.scrollTimeout,
|
|
333
|
+
this.scrollThrottleTimeout,
|
|
334
|
+
this.manualNavigationTimeout,
|
|
335
|
+
]
|
|
336
|
+
.filter(Boolean)
|
|
337
|
+
.forEach((timeout) => clearTimeout(timeout));
|
|
487
338
|
}
|
|
488
339
|
cleanupIntersectionObserver() {
|
|
489
340
|
if (this.intersectionObserver) {
|
|
490
341
|
this.intersectionObserver.disconnect();
|
|
491
342
|
}
|
|
492
343
|
}
|
|
493
|
-
cleanupResizeObserver() {
|
|
494
|
-
if (this.resizeObserver) {
|
|
495
|
-
this.resizeObserver.disconnect();
|
|
496
|
-
}
|
|
497
|
-
}
|
|
498
|
-
cleanupElements() {
|
|
499
|
-
if (this.placeholderElement) {
|
|
500
|
-
this.placeholderElement.remove();
|
|
501
|
-
this.placeholderElement = null;
|
|
502
|
-
}
|
|
503
|
-
if (this.measurementElement) {
|
|
504
|
-
this.measurementElement.remove();
|
|
505
|
-
this.measurementElement = null;
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
344
|
parsePropNavItems() {
|
|
509
345
|
var _a;
|
|
510
346
|
if (!((_a = this.navItems) === null || _a === void 0 ? void 0 : _a.trim()))
|
|
@@ -524,16 +360,14 @@ export class PtcSubnavV2 {
|
|
|
524
360
|
return null;
|
|
525
361
|
}
|
|
526
362
|
render() {
|
|
363
|
+
var _a, _b;
|
|
527
364
|
const navItems = this.getNavItems();
|
|
528
|
-
const hasRightContent = this.hasSubnavMenuRightContent();
|
|
529
|
-
const selectedMobileItem = this.isMobile
|
|
530
|
-
? navItems.find((item) => item.id === this.currentActive) ||
|
|
531
|
-
navItems[0]
|
|
532
|
-
: null;
|
|
533
365
|
// If no navigation items, don't render the navigation
|
|
534
366
|
if (navItems.length === 0) {
|
|
367
|
+
const hasRightContent = this.hasSubnavMenuRightContent();
|
|
535
368
|
return (h(Host, null, h("div", { class: `subnav-container ${!hasRightContent ? "full-width" : ""}` }, hasRightContent && (h("div", { class: "subnav-menu-right" }, h("slot", { name: "subnav-menu-right" }))))));
|
|
536
369
|
}
|
|
370
|
+
const hasRightContent = this.hasSubnavMenuRightContent();
|
|
537
371
|
return (h(Host, null, h("div", { class: `subnav-container ${!hasRightContent ? "full-width" : ""}` }, h("nav", { class: `subnav-menu-left ${!hasRightContent ? "full-width" : ""}`, role: "navigation", "aria-label": "Sub navigation", ref: (el) => (this.navContainer = el) }, this.isMobile ? (
|
|
538
372
|
// Mobile layout - dropdown with arrows
|
|
539
373
|
h("div", { class: "mobile-dropdown-container" }, h("button", { class: "mobile-dropdown-button", onClick: this.toggleOverflowMenu, onKeyDown: (e) => {
|
|
@@ -542,31 +376,32 @@ export class PtcSubnavV2 {
|
|
|
542
376
|
e.preventDefault();
|
|
543
377
|
this.toggleOverflowMenu();
|
|
544
378
|
}
|
|
545
|
-
}, "aria-expanded": this.showOverflowMenu, "aria-haspopup": "true", "aria-label": `${(selectedMobileItem === null ||
|
|
546
|
-
"Select Section"), h("span", { class: `mobile-arrow ${this.showOverflowMenu ? "rotated" : ""}`, "aria-hidden": "true" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", "aria-hidden": "true" }, h("path", { d: "M1 1.5L5.94975 6.44975L10.8995 1.5", stroke: "#00890B", "stroke-width": "2", "stroke-linecap": "round" })))), this.showOverflowMenu && (h("ul", { class: "mobile-dropdown", role: "menu", "aria-label": "Navigation sections" },
|
|
547
|
-
|
|
379
|
+
}, "aria-expanded": this.showOverflowMenu, "aria-haspopup": "true", "aria-label": `${((_a = this.selectedMobileItem) === null || _a === void 0 ? void 0 : _a.label) || "Select Section"} - Choose navigation section`, "tracker-id": "mobile-dropdown-button", ref: (el) => (this.overflowButton = el) }, h("span", { class: "mobile-selected-item" }, ((_b = this.selectedMobileItem) === null || _b === void 0 ? void 0 : _b.label) ||
|
|
380
|
+
"Select Section"), h("span", { class: `mobile-arrow ${this.showOverflowMenu ? "rotated" : ""}`, "aria-hidden": "true" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", "aria-hidden": "true" }, h("path", { d: "M1 1.5L5.94975 6.44975L10.8995 1.5", stroke: "#00890B", "stroke-width": "2", "stroke-linecap": "round" })))), this.showOverflowMenu && (h("ul", { class: "mobile-dropdown", role: "menu", "aria-label": "Navigation sections" }, this.mobileDropdownItems.map((item) => (h("li", { key: item.id }, h("a", { href: `#${item.id}`, class: `mobile-dropdown-item mf-listen ${this
|
|
381
|
+
.currentActive ===
|
|
548
382
|
item.id
|
|
549
383
|
? "active"
|
|
550
|
-
: ""}`, role: "menuitem", "aria-current": this
|
|
384
|
+
: ""}`, role: "menuitem", "aria-current": this
|
|
385
|
+
.currentActive ===
|
|
551
386
|
item.id
|
|
552
387
|
? "page"
|
|
553
|
-
: undefined,
|
|
388
|
+
: undefined, "tracker-id": item.trackerId ||
|
|
389
|
+
`mobile-nav-${item.id}`, title: item.title || "", onClick: (e) => {
|
|
554
390
|
this.handleNavClick(e, item.id);
|
|
555
391
|
this.showOverflowMenu = false;
|
|
556
392
|
} }, item.label)))))))) : (
|
|
557
393
|
// Desktop layout - original behavior
|
|
558
|
-
h("ul", { class: "desktop-menu" }, this.visibleItems.map((item) => (h("li", { key: item.id, class: "mf-listen", id: item.trackerId || `nav-${item.id}` }, h("a", { href: `#${item.id}`, class: this.currentActive === item.id
|
|
394
|
+
h("ul", { class: "desktop-menu" }, this.visibleItems.map((item) => (h("li", { key: item.id, class: "mf-listen", "tracker-id": item.trackerId || `nav-${item.id}` }, h("a", { href: `#${item.id}`, class: this.currentActive === item.id
|
|
559
395
|
? "active"
|
|
560
396
|
: "", title: item.title || "", onClick: (e) => this.handleNavClick(e, item.id), "aria-current": this.currentActive === item.id
|
|
561
397
|
? "page"
|
|
562
|
-
: undefined }, item.label)))), this.overflowItems.length > 0 && (h("li", { class: "overflow-menu-container mf-listen", id: "overflow-menu"
|
|
398
|
+
: undefined }, item.label)))), this.overflowItems.length > 0 && (h("li", { class: "overflow-menu-container mf-listen", "tracker-id": "overflow-menu" }, h("button", { class: `overflow-button ${this.hasActiveOverflowItem() ? "selected-active" : ""}`, onClick: this.toggleOverflowMenu, onKeyDown: (e) => {
|
|
563
399
|
if (e.key === "Enter" ||
|
|
564
400
|
e.key === " ") {
|
|
565
401
|
e.preventDefault();
|
|
566
402
|
this.toggleOverflowMenu();
|
|
567
403
|
}
|
|
568
|
-
}, "aria-expanded": this.showOverflowMenu, "aria-haspopup": "true", "aria-label": "Show more navigation items", "tracker-id": "overflow-button", ref: (el) => (this.overflowButton = el) }, h("span", { class: "overflow-dots", "aria-hidden": "true" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", "aria-hidden": "true" }, h("circle", { cx: "1.25", cy: "5", r: "1.25", fill: "#617480" }), h("circle", { cx: "5", cy: "5", r: "1.25", fill: "#617480" }), h("circle", { cx: "8.75", cy: "5", r: "1.25", fill: "#617480" })))), this.showOverflowMenu && (h("div", { class:
|
|
569
|
-
el) }, this.overflowItems.map((item) => (h("a", { key: item.id, href: `#${item.id}`, class: `mf-listen ${this
|
|
404
|
+
}, "aria-expanded": this.showOverflowMenu, "aria-haspopup": "true", "aria-label": "Show more navigation items", "tracker-id": "overflow-button", ref: (el) => (this.overflowButton = el) }, h("span", { class: "overflow-dots", "aria-hidden": "true" }, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "10", height: "10", viewBox: "0 0 10 10", fill: "none", "aria-hidden": "true" }, h("circle", { cx: "1.25", cy: "5", r: "1.25", fill: "#617480" }), h("circle", { cx: "5", cy: "5", r: "1.25", fill: "#617480" }), h("circle", { cx: "8.75", cy: "5", r: "1.25", fill: "#617480" })))), this.showOverflowMenu && (h("div", { class: "overflow-dropdown", role: "menu", "aria-label": "Additional navigation sections" }, this.overflowItems.map((item) => (h("a", { key: item.id, href: `#${item.id}`, class: `mf-listen ${this
|
|
570
405
|
.currentActive ===
|
|
571
406
|
item.id
|
|
572
407
|
? "active"
|
|
@@ -638,9 +473,10 @@ export class PtcSubnavV2 {
|
|
|
638
473
|
"visibleItems": {},
|
|
639
474
|
"overflowItems": {},
|
|
640
475
|
"showOverflowMenu": {},
|
|
641
|
-
"overflowDropdownAlignLeft": {},
|
|
642
476
|
"isMobile": {},
|
|
643
|
-
"
|
|
477
|
+
"selectedMobileItem": {},
|
|
478
|
+
"isManualNavigation": {},
|
|
479
|
+
"mobileDropdownItems": {}
|
|
644
480
|
};
|
|
645
481
|
}
|
|
646
482
|
static get elementRef() { return "el"; }
|
|
@@ -3743,7 +3743,7 @@ ptc-footer {
|
|
|
3743
3743
|
.ptc-text-field .iti__flag {
|
|
3744
3744
|
background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/18.2.1/img/flags.png");
|
|
3745
3745
|
}
|
|
3746
|
-
@media (min-resolution: 192dpi) {
|
|
3746
|
+
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
|
|
3747
3747
|
.ptc-text-field .iti__flag {
|
|
3748
3748
|
background-image: url("https://cdnjs.cloudflare.com/ajax/libs/intl-tel-input/18.2.1/img/flags@2x.png");
|
|
3749
3749
|
}
|
|
@@ -204,15 +204,13 @@ export class PtcTextfield {
|
|
|
204
204
|
this.helpertext = await this.getValidationMessage("tel");
|
|
205
205
|
}
|
|
206
206
|
else if (!this.iti.isValidNumber()) {
|
|
207
|
-
this.helpertext =
|
|
208
|
-
await this.getValidationMessage("validtel");
|
|
207
|
+
this.helpertext = await this.getValidationMessage("validtel");
|
|
209
208
|
}
|
|
210
209
|
}
|
|
211
210
|
}
|
|
212
211
|
else if (this.fieldId === "confirm-email") {
|
|
213
212
|
if (!this.matchStatus && !!this.customInput.value) {
|
|
214
|
-
this.helpertext =
|
|
215
|
-
await this.getValidationMessage("confirmemail");
|
|
213
|
+
this.helpertext = await this.getValidationMessage("confirmemail");
|
|
216
214
|
}
|
|
217
215
|
}
|
|
218
216
|
}
|
|
@@ -568,7 +566,7 @@ export class PtcTextfield {
|
|
|
568
566
|
"type": "unknown",
|
|
569
567
|
"mutable": false,
|
|
570
568
|
"complexType": {
|
|
571
|
-
"original": "(\r\n\t\tinput: HTMLInputElement | HTMLTextAreaElement
|
|
569
|
+
"original": "(\r\n\t\tinput: HTMLInputElement | HTMLTextAreaElement\r\n\t) => string",
|
|
572
570
|
"resolved": "(input: HTMLInputElement | HTMLTextAreaElement) => string",
|
|
573
571
|
"references": {
|
|
574
572
|
"HTMLInputElement": {
|