@ptcwebops/ptcw-design 6.4.18 → 6.4.19
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/academic-form-test_10.cjs.entry.js +12557 -0
- package/dist/cjs/buying-option-cards-slider.cjs.entry.js +4 -0
- 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/homepage-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/icon-asset.cjs.entry.js +65 -0
- 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/ptc-background-video.cjs.entry.js +152 -0
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +63 -0
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
- 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 +136 -0
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +184 -0
- package/dist/cjs/ptc-multi-select.cjs.entry.js +326 -0
- package/dist/cjs/ptc-picture.cjs.entry.js +185 -0
- package/dist/cjs/ptc-subnav-v2.cjs.entry.js +595 -0
- package/dist/cjs/ptc-tooltip.cjs.entry.js +113 -0
- 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/components/buying-option-cards-slider/buying-option-cards-slider.js +4 -0
- 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/homepage-jumbotron/homepage-jumbotron.css +16 -11
- 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-case-studies-slider/ptc-case-studies-slider.css +16 -11
- package/dist/collection/components/ptc-icon-component/ptc-icon-component.css +16 -11
- package/dist/collection/components/ptc-seo-title/ptc-seo-title.js +3 -3
- package/dist/custom-elements/index.js +11 -7
- package/dist/esm/academic-form-test_10.entry.js +12544 -0
- 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 +2 -2
- 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 +1 -1
- package/dist/esm/buying-option-cards-slider.entry.js +5 -1
- package/dist/esm/dropdown-item.entry.js +1 -1
- package/dist/esm/dynamic-box-bundle.entry.js +1 -1
- 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 +1 -1
- 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 +2 -2
- 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 +2 -2
- 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/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 +1 -1
- 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 +1 -1
- package/dist/esm/ptc-blue-pill-announcement-bar.entry.js +1 -1
- package/dist/esm/ptc-breadcrumb.entry.js +59 -0
- package/dist/esm/ptc-brightcov-video.entry.js +1 -1
- package/dist/esm/ptc-card-bottom_2.entry.js +1 -1
- package/dist/esm/ptc-card-content.entry.js +1 -1
- package/dist/esm/ptc-card_2.entry.js +1 -1
- 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 +1 -1
- 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-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 +1 -1
- package/dist/esm/ptc-filter-dropdown_4.entry.js +1 -1
- package/dist/esm/ptc-filter-level-theater.entry.js +1 -1
- 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-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 +132 -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 +180 -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 +1 -1
- package/dist/esm/ptc-multi-select.entry.js +322 -0
- 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 +1 -1
- package/dist/esm/ptc-picture.entry.js +181 -0
- package/dist/esm/ptc-podcast-card.entry.js +1 -1
- package/dist/esm/ptc-preferance-center-form.entry.js +1 -1
- package/dist/esm/ptc-preloader.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/ptc-pricing-tabs.entry.js +2 -2
- package/dist/esm/ptc-product-card.entry.js +1 -1
- package/dist/esm/ptc-product-category.entry.js +1 -1
- package/dist/esm/ptc-product-dropdown.entry.js +1 -1
- package/dist/esm/ptc-product-highlight-card.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/ptc-readmore-new.entry.js +1 -1
- package/dist/esm/ptc-readmore-v3.entry.js +1 -1
- 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-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-store-card-list.entry.js +1 -1
- package/dist/esm/ptc-store-card.entry.js +1 -1
- package/dist/esm/ptc-subnav-card.entry.js +1 -1
- package/dist/esm/ptc-subnav-v2.entry.js +591 -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-tooltip-v2.entry.js +1 -1
- 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 +1 -1
- 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 +1 -1
- 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-d14265f5.js} +1 -1
- package/dist/ptcw-design/{p-ad4f4f33.entry.js → p-00e21489.entry.js} +1 -1
- package/dist/ptcw-design/{p-17890eea.entry.js → p-04223295.entry.js} +1 -1
- 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-08f607e5.entry.js +1 -0
- 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-0b146b4b.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-f9e57052.entry.js → p-136c990d.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-f418ef26.entry.js → p-18d699f0.entry.js} +1 -1
- package/dist/ptcw-design/p-1a853854.entry.js +1 -0
- package/dist/ptcw-design/{p-908ad455.entry.js → p-1c63c812.entry.js} +1 -1
- package/dist/ptcw-design/{p-8482f517.entry.js → p-1cb02c28.entry.js} +1 -1
- package/dist/ptcw-design/{p-9a07b9e3.entry.js → p-1e1ed5df.entry.js} +1 -1
- package/dist/ptcw-design/{p-752159e2.entry.js → p-1f356fcf.entry.js} +1 -1
- 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-243075b7.entry.js +1 -0
- package/dist/ptcw-design/{p-a22d7ae8.entry.js → p-257a68df.entry.js} +1 -1
- package/dist/ptcw-design/p-264cd2d3.entry.js +1 -0
- package/dist/ptcw-design/p-27e39236.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-37f92bb4.entry.js +1 -0
- package/dist/ptcw-design/{p-a2710bbf.entry.js → p-3872fce7.entry.js} +1 -1
- package/dist/ptcw-design/{p-9050ab76.entry.js → p-3a034cd1.entry.js} +1 -1
- package/dist/ptcw-design/p-3a24991d.entry.js +1 -0
- 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-3eccbe24.entry.js +1 -0
- package/dist/ptcw-design/p-3ed4a7ed.entry.js +1 -0
- package/dist/ptcw-design/{p-3596ce5a.entry.js → p-44eac15a.entry.js} +1 -1
- package/dist/ptcw-design/{p-83632220.entry.js → p-45623f8a.entry.js} +1 -1
- package/dist/ptcw-design/{p-1e9f25fc.entry.js → p-46f67bec.entry.js} +1 -1
- package/dist/ptcw-design/p-4ab3249d.entry.js +1 -0
- package/dist/ptcw-design/{p-e2da8109.entry.js → p-4c2ffab9.entry.js} +1 -1
- package/dist/ptcw-design/{p-efe8563a.entry.js → p-4d14b3b7.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-91e5c8d4.entry.js → p-506dac1f.entry.js} +1 -1
- package/dist/ptcw-design/{p-9e8e2835.entry.js → p-523141fd.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-a31f22a1.entry.js → p-571d9690.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-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-9220308d.entry.js → p-62c56201.entry.js} +1 -1
- package/dist/ptcw-design/p-62dcdd28.entry.js +1 -0
- package/dist/ptcw-design/{p-3e13f29c.entry.js → p-66ecd7b9.entry.js} +1 -1
- 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-6abc061b.entry.js +1 -0
- package/dist/ptcw-design/{p-32a1c28b.entry.js → p-6d27b5a2.entry.js} +1 -1
- package/dist/ptcw-design/p-711bcdad.js +1 -0
- package/dist/ptcw-design/{p-c9c55caf.entry.js → p-73fd95da.entry.js} +1 -1
- 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-af32c90a.entry.js → p-784cae5c.entry.js} +1 -1
- 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-7da19c78.entry.js +1 -0
- package/dist/ptcw-design/{p-2fa5814b.entry.js → p-7f4919b7.entry.js} +1 -1
- package/dist/ptcw-design/p-80c69354.entry.js +1 -0
- package/dist/ptcw-design/{p-a974f98f.entry.js → p-8191928d.entry.js} +1 -1
- package/dist/ptcw-design/{p-c1302aea.entry.js → p-8340bed4.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-ce39cff2.entry.js → p-88d1894d.entry.js} +1 -1
- package/dist/ptcw-design/{p-bf2f9183.entry.js → p-89ba3dfd.entry.js} +1 -1
- package/dist/ptcw-design/{p-e2e357e7.entry.js → p-8d4572f7.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-3b481342.entry.js → p-9493dfa0.entry.js} +1 -1
- 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-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-5877ab67.entry.js → p-9fc6a83d.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-a264f646.entry.js +1 -0
- 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-6f29592a.entry.js → p-a5efeb04.entry.js} +1 -1
- package/dist/ptcw-design/{p-991465fb.entry.js → p-a79f33df.entry.js} +1 -1
- package/dist/ptcw-design/{p-7123abad.entry.js → p-a7a41de8.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-11e86045.entry.js → p-a9533f9c.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-87f07d6b.entry.js → p-aadf9416.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-b293a0b1.entry.js → p-aea09a70.entry.js} +1 -1
- package/dist/ptcw-design/p-af9912b6.entry.js +1 -0
- package/dist/ptcw-design/p-afc1e1e9.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-ca039722.entry.js → p-baeee2b4.entry.js} +1 -1
- package/dist/ptcw-design/p-bb9a879f.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-fb0c3eeb.entry.js → p-c061b32d.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-cbbe2bba.entry.js +1 -0
- package/dist/ptcw-design/{p-384548ef.entry.js → p-cc652ebe.entry.js} +1 -1
- package/dist/ptcw-design/{p-fa045097.entry.js → p-cc92b9ed.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-d8575311.entry.js +1 -0
- 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-e01173ca.entry.js +1 -0
- package/dist/ptcw-design/{p-7524411a.entry.js → p-e0d95058.entry.js} +1 -1
- 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-e4fe0995.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-b9966f20.entry.js → p-e9684da3.entry.js} +1 -1
- package/dist/ptcw-design/p-eb193fd7.entry.js +404 -0
- package/dist/ptcw-design/{p-fe56e336.entry.js → p-ee91170c.entry.js} +1 -1
- package/dist/ptcw-design/{p-681d26ef.entry.js → p-eeaa2123.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-fab2fc8d.entry.js → p-fb835c5a.entry.js} +1 -1
- 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/{p-22cf00e7.js → p-fe497e4a.js} +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components.d.ts +62 -62
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/academic-form-test.cjs.entry.js +0 -82
- package/dist/cjs/component-06dda623.js +0 -4665
- package/dist/cjs/component-5b5b6a98.js +0 -1819
- package/dist/cjs/icon-asset_14.cjs.entry.js +0 -1982
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +0 -675
- package/dist/cjs/ptc-form-checkbox_2.cjs.entry.js +0 -4476
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +0 -730
- package/dist/esm/academic-form-test.entry.js +0 -78
- package/dist/esm/component-274da230.js +0 -4663
- package/dist/esm/component-341e4eaa.js +0 -1802
- package/dist/esm/icon-asset_14.entry.js +0 -1965
- package/dist/esm/ptc-data-lookup.entry.js +0 -671
- package/dist/esm/ptc-form-checkbox_2.entry.js +0 -4471
- package/dist/esm/ptc-multi-select_2.entry.js +0 -725
- 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-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-32bbcb5a.entry.js +0 -1
- package/dist/ptcw-design/p-39255f59.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-7815e38b.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-89da867f.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-9d8a9a72.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-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-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-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-fef688c2.entry.js +0 -1
|
@@ -0,0 +1,591 @@
|
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
+
|
|
3
|
+
const ptcSubnavV2Css = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host .mobile-dropdown-container .mobile-dropdown-button,:host .subnav-menu-left .overflow-menu-container .overflow-button,:host .subnav-menu-left ul.desktop-menu li a{color:var(--color-gray-07);text-decoration:none;padding:8px 12px;text-align:center;font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-bold);line-height:18px;display:flex;align-items:center;position:relative;border-bottom:3px solid transparent;height:100%;box-sizing:border-box;transition:all 0.2s ease}:host .subnav-menu-left .overflow-menu-container .overflow-dropdown{position:absolute;top:100%;background:var(--color-standard-gray);border-radius:var(--ptc-border-radius-standard);box-shadow:var(--ptc-shadow-x-large);z-index:1001;padding:14px 0;margin-top:-4px;max-width:312px;width:-moz-max-content;width:max-content}:host .mobile-dropdown-container .mobile-dropdown li .mobile-dropdown-item,:host .subnav-menu-left .overflow-menu-container .overflow-dropdown a{display:block;padding:10px 32px 10px 24px;color:var(--color-gray-07);text-decoration:none;font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-densest);transition:all 0.2s ease;position:relative;border:none}:host{position:relative;display:block;font-family:var(--ptc-font-latin);background-color:var(--color-standard-gray);box-shadow:var(--ptc-shadow-small);transition:all 0.3s ease-in-out}:host.sticky-transition{transition:transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease-in-out, background-color 0.3s ease-in-out;box-shadow:0 2px 8px rgba(0, 0, 0, 0.15)}:host .subnav-container{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:0 24px;margin:0 auto;max-width:1200px;gap:24px}@media only screen and (min-width: 768px){:host .subnav-container{flex-wrap:wrap;gap:48px}}@media only screen and (min-width: 1200px){:host .subnav-container{padding:0;max-width:1136px}}@media only screen and (min-width: 1440px){:host .subnav-container{padding:0;max-width:1200px}}:host .subnav-container.full-width{justify-content:flex-start}:host .subnav-menu-left{display:flex;align-items:center;flex:1;align-self:stretch}@media only screen and (min-width: 768px){:host .subnav-menu-left{justify-content:flex-start}}:host .subnav-menu-left ul.desktop-menu{list-style:none;padding:0;margin:0;display:flex;align-items:center;justify-content:center;gap:4px;flex-wrap:wrap;align-self:stretch}@media only screen and (min-width: 768px){:host .subnav-menu-left ul.desktop-menu{justify-content:flex-start;gap:32px}}:host .subnav-menu-left ul.desktop-menu li{display:inline-block;height:100%}@media only screen and (min-width: 768px){:host .subnav-menu-left ul.desktop-menu li a{padding:20px 0 17px 0}}:host .subnav-menu-left ul.desktop-menu li a:hover{color:var(--color-gray-10)}:host .subnav-menu-left ul.desktop-menu li a.active{color:var(--color-gray-10);border-bottom:3px solid var(--color-green-07)}:host .subnav-menu-left ul.desktop-menu li a:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .subnav-menu-left .overflow-menu-container{position:relative;display:none}@media only screen and (min-width: 768px){:host .subnav-menu-left .overflow-menu-container{display:inline-block}}:host .subnav-menu-left .overflow-menu-container .overflow-button{background:none;border:none;padding:20px 0 17px 0;cursor:pointer;justify-content:center;border-bottom:3px solid transparent;box-sizing:border-box}:host .subnav-menu-left .overflow-menu-container .overflow-button:hover{color:var(--color-gray-10)}:host .subnav-menu-left .overflow-menu-container .overflow-button:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .subnav-menu-left .overflow-menu-container .overflow-button .overflow-dots{border-radius:2px;border:1px solid var(--color-gray-07);line-height:1;width:18px;height:18px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:all 0.2s ease;box-sizing:border-box}:host .subnav-menu-left .overflow-menu-container .overflow-button .overflow-dots:hover{background-color:var(--color-gray-04);border-color:var(--color-gray-04)}:host .subnav-menu-left .overflow-menu-container .overflow-button .overflow-dots:hover svg circle{fill:var(--color-gray-10)}:host .subnav-menu-left .overflow-menu-container .overflow-button .overflow-dots:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .subnav-menu-left .overflow-menu-container .overflow-button[aria-expanded],:host .subnav-menu-left .overflow-menu-container .overflow-button.selected-active{border-bottom-color:var(--color-green-07)}:host .subnav-menu-left .overflow-menu-container .overflow-button[aria-expanded] .overflow-dots,:host .subnav-menu-left .overflow-menu-container .overflow-button.selected-active .overflow-dots{background-color:var(--color-green-07);border-color:var(--color-green-07)}:host .subnav-menu-left .overflow-menu-container .overflow-button[aria-expanded] .overflow-dots svg circle,:host .subnav-menu-left .overflow-menu-container .overflow-button.selected-active .overflow-dots svg circle{fill:var(--color-white)}:host .subnav-menu-left .overflow-menu-container .overflow-dropdown.align-right{left:auto;right:-2px}:host .subnav-menu-left .overflow-menu-container .overflow-dropdown.align-left{left:0;right:auto}:host .subnav-menu-left .overflow-menu-container .overflow-dropdown a{text-align:left;line-height:18px}:host .subnav-menu-left .overflow-menu-container .overflow-dropdown a:hover{background-color:var(--color-gray-02);color:var(--color-gray-10)}:host .subnav-menu-left .overflow-menu-container .overflow-dropdown a.active{color:var(--color-gray-10);border-bottom:none}:host .subnav-menu-left .overflow-menu-container .overflow-dropdown a.active::before{content:\"\";display:block;width:2px;height:100%;background-color:var(--color-green-07);position:absolute;left:14px;top:0}:host .subnav-menu-left .overflow-menu-container .overflow-dropdown a:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .subnav-menu-left.full-width{flex:1;width:100%;justify-content:flex-start}:host .subnav-menu-left.full-width .desktop-menu{width:100%}:host .mobile-dropdown-container{position:relative;display:block;height:100%;box-sizing:border-box}@media only screen and (min-width: 768px){:host .mobile-dropdown-container{display:none !important}}:host .mobile-dropdown-container .mobile-dropdown-button{background:transparent;border:none;border-bottom:3px solid var(--color-green-07);padding:20px 0 17px 0;justify-content:center;gap:10px;cursor:pointer}:host .mobile-dropdown-container .mobile-dropdown-button:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .mobile-dropdown-container .mobile-dropdown-button[aria-expanded]{border-color:var(--color-green-07);color:var(--color-gray-10)}:host .mobile-dropdown-container .mobile-dropdown-button .mobile-selected-item{flex:1;text-align:left;color:var(--color-gray-07);font-size:var(--ptc-font-size-xx-small);font-weight:var(--ptc-font-weight-bold);line-height:var(--ptc-line-height-densest);display:-webkit-box;line-clamp:1;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;max-width:100%}:host .mobile-dropdown-container .mobile-dropdown-button .mobile-arrow{display:flex;align-items:center;justify-content:center;transition:transform 0.2s ease}:host .mobile-dropdown-container .mobile-dropdown-button .mobile-arrow svg{transition:transform 0.2s ease}:host .mobile-dropdown-container .mobile-dropdown-button .mobile-arrow.rotated svg{transform:rotate(180deg)}:host .mobile-dropdown-container .mobile-dropdown{position:absolute;top:calc(100% - 8px);left:-2px;background:var(--color-standard-gray);border-radius:var(--ptc-border-radius-standard);box-shadow:var(--ptc-shadow-medium);z-index:1001;margin:4px 0 0 0;overflow-y:auto;min-width:280px;width:-moz-fit-content;width:fit-content;list-style:none;padding:14px 0}:host .mobile-dropdown-container .mobile-dropdown li{display:block}:host .mobile-dropdown-container .mobile-dropdown li:last-child{border-bottom:none}:host .mobile-dropdown-container .mobile-dropdown li .mobile-dropdown-item{width:100%;background:none;text-align:left;cursor:pointer;word-break:break-word;display:block;box-sizing:border-box}:host .mobile-dropdown-container .mobile-dropdown li .mobile-dropdown-item.active{color:var(--color-gray-10)}:host .mobile-dropdown-container .mobile-dropdown li .mobile-dropdown-item.active::before{content:\"\";display:block;width:2px;height:100%;background-color:var(--color-green-07);position:absolute;left:14px;top:0}:host .mobile-dropdown-container .mobile-dropdown li .mobile-dropdown-item:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .subnav-menu-right{max-width:50%;padding:12px 0}@media only screen and (min-width: 768px){:host .subnav-menu-right{width:auto;max-width:300px}}";
|
|
4
|
+
|
|
5
|
+
const PtcSubnavV2 = class {
|
|
6
|
+
constructor(hostRef) {
|
|
7
|
+
registerInstance(this, hostRef);
|
|
8
|
+
this.cachedNavItems = null;
|
|
9
|
+
this.isSticky = false;
|
|
10
|
+
this.originalTop = 0;
|
|
11
|
+
this.placeholderElement = null;
|
|
12
|
+
this.measurementElement = null;
|
|
13
|
+
this.handleClickOutside = (event) => {
|
|
14
|
+
if (!this.el.contains(event.target)) {
|
|
15
|
+
this.showOverflowMenu = false;
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
this.handleKeyDown = (event) => {
|
|
19
|
+
var _a;
|
|
20
|
+
if (event.key === "Escape" && this.showOverflowMenu) {
|
|
21
|
+
this.showOverflowMenu = false;
|
|
22
|
+
(_a = this.overflowButton) === null || _a === void 0 ? void 0 : _a.focus();
|
|
23
|
+
}
|
|
24
|
+
};
|
|
25
|
+
this.handleScroll = () => {
|
|
26
|
+
// Throttle scroll events for better performance
|
|
27
|
+
if (this.scrollThrottleTimeout) {
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
this.scrollThrottleTimeout = window.setTimeout(() => {
|
|
31
|
+
// Don't update active state if user just manually navigated
|
|
32
|
+
if (this.isManualNavigation) {
|
|
33
|
+
this.scrollThrottleTimeout = null;
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
// Fallback scroll handler to ensure active state is updated
|
|
37
|
+
const navItems = this.getNavItems();
|
|
38
|
+
const subnavHeight = this.el.offsetHeight;
|
|
39
|
+
const scrollPosition = window.scrollY + subnavHeight + 100; // Offset for better detection
|
|
40
|
+
// Find the section that should be active based on scroll position
|
|
41
|
+
let activeSection = navItems[0].id; // Default to first section
|
|
42
|
+
for (let i = navItems.length - 1; i >= 0; i--) {
|
|
43
|
+
const section = document.getElementById(navItems[i].id);
|
|
44
|
+
if (section && section.offsetTop <= scrollPosition) {
|
|
45
|
+
activeSection = navItems[i].id;
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
// Only update if different from current active
|
|
50
|
+
if (activeSection !== this.currentActive) {
|
|
51
|
+
this.currentActive = activeSection;
|
|
52
|
+
}
|
|
53
|
+
this.scrollThrottleTimeout = null;
|
|
54
|
+
}, 16); // ~60fps throttling
|
|
55
|
+
};
|
|
56
|
+
this.initializeStickyPosition = () => {
|
|
57
|
+
// Store the original position of the subnav
|
|
58
|
+
const rect = this.el.getBoundingClientRect();
|
|
59
|
+
this.originalTop = rect.top + window.scrollY;
|
|
60
|
+
};
|
|
61
|
+
this.handleStickyScroll = () => {
|
|
62
|
+
// Throttle sticky scroll events for better performance
|
|
63
|
+
if (this.stickyScrollTimeout) {
|
|
64
|
+
return;
|
|
65
|
+
}
|
|
66
|
+
this.stickyScrollTimeout = window.setTimeout(() => {
|
|
67
|
+
var _a;
|
|
68
|
+
const scrollY = window.scrollY;
|
|
69
|
+
// Check if we should make the subnav sticky
|
|
70
|
+
const shouldBeSticky = scrollY >= this.originalTop;
|
|
71
|
+
if (shouldBeSticky && !this.isSticky) {
|
|
72
|
+
// Store the original height before making it fixed
|
|
73
|
+
const originalHeight = this.el.offsetHeight;
|
|
74
|
+
// Create placeholder element to maintain space
|
|
75
|
+
this.placeholderElement = document.createElement("div");
|
|
76
|
+
this.placeholderElement.style.height = `${originalHeight}px`;
|
|
77
|
+
this.placeholderElement.style.width = "100%";
|
|
78
|
+
this.placeholderElement.style.pointerEvents = "none";
|
|
79
|
+
// Insert placeholder before the subnav
|
|
80
|
+
(_a = this.el.parentNode) === null || _a === void 0 ? void 0 : _a.insertBefore(this.placeholderElement, this.el);
|
|
81
|
+
// Add transition class for smooth animation
|
|
82
|
+
this.el.classList.add("sticky-transition");
|
|
83
|
+
// Apply fixed positioning with smooth transition
|
|
84
|
+
this.el.style.position = "fixed";
|
|
85
|
+
this.el.style.top = "0";
|
|
86
|
+
this.el.style.left = "0";
|
|
87
|
+
this.el.style.right = "0";
|
|
88
|
+
this.el.style.width = "100%";
|
|
89
|
+
this.el.style.zIndex = "105";
|
|
90
|
+
this.el.style.transform = "translateY(0)";
|
|
91
|
+
this.isSticky = true;
|
|
92
|
+
}
|
|
93
|
+
else if (!shouldBeSticky && this.isSticky) {
|
|
94
|
+
// Remove transition class and reset transform
|
|
95
|
+
this.el.classList.remove("sticky-transition");
|
|
96
|
+
this.el.style.transform = "";
|
|
97
|
+
// Remove fixed positioning and restore original position
|
|
98
|
+
this.el.style.position = "";
|
|
99
|
+
this.el.style.top = "";
|
|
100
|
+
this.el.style.left = "";
|
|
101
|
+
this.el.style.right = "";
|
|
102
|
+
this.el.style.width = "";
|
|
103
|
+
this.el.style.zIndex = "";
|
|
104
|
+
this.isSticky = false;
|
|
105
|
+
// Remove placeholder element
|
|
106
|
+
if (this.placeholderElement) {
|
|
107
|
+
this.placeholderElement.remove();
|
|
108
|
+
this.placeholderElement = null;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
this.stickyScrollTimeout = null;
|
|
112
|
+
}, 16); // ~60fps throttling
|
|
113
|
+
};
|
|
114
|
+
this.handleResize = () => {
|
|
115
|
+
this.navContainer && setTimeout(() => this.calculateVisibleItems(), 10);
|
|
116
|
+
// Recalculate original position on resize
|
|
117
|
+
if (!this.isSticky) {
|
|
118
|
+
this.initializeStickyPosition();
|
|
119
|
+
}
|
|
120
|
+
else if (this.placeholderElement) {
|
|
121
|
+
// Update placeholder height if sticky and resized
|
|
122
|
+
const currentHeight = this.el.offsetHeight;
|
|
123
|
+
this.placeholderElement.style.height = `${currentHeight}px`;
|
|
124
|
+
// Update originalTop based on placeholder position (layout may have changed)
|
|
125
|
+
const placeholderRect = this.placeholderElement.getBoundingClientRect();
|
|
126
|
+
this.originalTop = placeholderRect.top + window.scrollY;
|
|
127
|
+
}
|
|
128
|
+
};
|
|
129
|
+
this.setupIntersectionObserver = () => {
|
|
130
|
+
// Get all sections that correspond to our navigation items
|
|
131
|
+
const navItems = this.getNavItems();
|
|
132
|
+
// Create intersection observer
|
|
133
|
+
this.intersectionObserver = new IntersectionObserver((entries) => {
|
|
134
|
+
// Clear any existing timeout
|
|
135
|
+
if (this.scrollTimeout) {
|
|
136
|
+
clearTimeout(this.scrollTimeout);
|
|
137
|
+
}
|
|
138
|
+
// Debounce the intersection changes
|
|
139
|
+
this.scrollTimeout = window.setTimeout(() => {
|
|
140
|
+
// Don't update active state if user just manually navigated
|
|
141
|
+
if (this.isManualNavigation) {
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
// Find all intersecting sections
|
|
145
|
+
const intersectingSections = entries.filter((entry) => entry.isIntersecting);
|
|
146
|
+
if (intersectingSections.length > 0) {
|
|
147
|
+
// Sort by intersection ratio (how much of the section is visible)
|
|
148
|
+
// and then by position (top to bottom)
|
|
149
|
+
intersectingSections.sort((a, b) => {
|
|
150
|
+
// First sort by intersection ratio (higher = more visible)
|
|
151
|
+
if (b.intersectionRatio !== a.intersectionRatio) {
|
|
152
|
+
return (b.intersectionRatio - a.intersectionRatio);
|
|
153
|
+
}
|
|
154
|
+
// If intersection ratios are equal, sort by position
|
|
155
|
+
return (a.boundingClientRect.top -
|
|
156
|
+
b.boundingClientRect.top);
|
|
157
|
+
});
|
|
158
|
+
// Get the most visible section
|
|
159
|
+
const mostVisibleSection = intersectingSections[0];
|
|
160
|
+
const sectionId = mostVisibleSection.target.id;
|
|
161
|
+
if (sectionId && sectionId !== this.currentActive) {
|
|
162
|
+
this.currentActive = sectionId;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
}, 100); // Increased debounce time for better performance
|
|
166
|
+
}, {
|
|
167
|
+
root: null,
|
|
168
|
+
rootMargin: "-20% 0px -60% 0px",
|
|
169
|
+
threshold: [0, 0.1, 0.25, 0.5, 0.75, 1.0], // Multiple thresholds for better detection
|
|
170
|
+
});
|
|
171
|
+
// Observe all sections
|
|
172
|
+
navItems.forEach((item) => {
|
|
173
|
+
const section = document.getElementById(item.id);
|
|
174
|
+
if (section) {
|
|
175
|
+
this.intersectionObserver.observe(section);
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
};
|
|
179
|
+
this.setupResizeObserver = () => {
|
|
180
|
+
// Observe the parent element for layout changes
|
|
181
|
+
this.resizeObserver = new ResizeObserver(() => {
|
|
182
|
+
// Recalculate sticky position when parent layout changes
|
|
183
|
+
if (!this.isSticky) {
|
|
184
|
+
this.initializeStickyPosition();
|
|
185
|
+
}
|
|
186
|
+
else if (this.placeholderElement) {
|
|
187
|
+
// If sticky, update originalTop based on placeholder position
|
|
188
|
+
const placeholderRect = this.placeholderElement.getBoundingClientRect();
|
|
189
|
+
this.originalTop = placeholderRect.top + window.scrollY;
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
// Observe the element's parent or the element itself
|
|
193
|
+
if (this.el.parentElement) {
|
|
194
|
+
this.resizeObserver.observe(this.el.parentElement);
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
this.extractNavItemsFromSlots = () => {
|
|
198
|
+
const slotElement = this.el.querySelector('[slot="nav-items"]');
|
|
199
|
+
if (!slotElement)
|
|
200
|
+
return null;
|
|
201
|
+
const links = slotElement.querySelectorAll("a");
|
|
202
|
+
const items = Array.from(links)
|
|
203
|
+
.map((link) => {
|
|
204
|
+
var _a, _b;
|
|
205
|
+
return ({
|
|
206
|
+
id: ((_a = link.getAttribute("href")) === null || _a === void 0 ? void 0 : _a.substring(1)) || "",
|
|
207
|
+
label: ((_b = link.textContent) === null || _b === void 0 ? void 0 : _b.trim()) || "",
|
|
208
|
+
title: link.getAttribute("title") || undefined,
|
|
209
|
+
trackerId: link.getAttribute("tracker-id") || undefined,
|
|
210
|
+
});
|
|
211
|
+
})
|
|
212
|
+
.filter((item) => Boolean(item.id && item.label));
|
|
213
|
+
return items.length > 0 ? items : null;
|
|
214
|
+
};
|
|
215
|
+
this.getNavItems = () => {
|
|
216
|
+
// Return cached items if available
|
|
217
|
+
if (this.cachedNavItems) {
|
|
218
|
+
return this.cachedNavItems;
|
|
219
|
+
}
|
|
220
|
+
// Extract navigation items from slots (SEO-friendly approach)
|
|
221
|
+
const slotItems = this.extractNavItemsFromSlots();
|
|
222
|
+
if (slotItems) {
|
|
223
|
+
this.cachedNavItems = slotItems;
|
|
224
|
+
return slotItems;
|
|
225
|
+
}
|
|
226
|
+
// If navItems prop is provided, parse and use it (fallback)
|
|
227
|
+
const propItems = this.parsePropNavItems();
|
|
228
|
+
if (propItems) {
|
|
229
|
+
this.cachedNavItems = propItems;
|
|
230
|
+
return propItems;
|
|
231
|
+
}
|
|
232
|
+
// Return empty array if no navigation items found
|
|
233
|
+
console.warn("No navigation items found in slots or props for ptc-subnav-v2");
|
|
234
|
+
return [];
|
|
235
|
+
};
|
|
236
|
+
this.hasActiveOverflowItem = () => {
|
|
237
|
+
return this.overflowItems.some((item) => item.id === this.currentActive);
|
|
238
|
+
};
|
|
239
|
+
this.hasSubnavMenuRightContent = () => {
|
|
240
|
+
const slotElement = this.el.querySelector('[slot="subnav-menu-right"]');
|
|
241
|
+
return Boolean(slotElement === null || slotElement === void 0 ? void 0 : slotElement.children.length);
|
|
242
|
+
};
|
|
243
|
+
this.calculateVisibleItems = () => {
|
|
244
|
+
const navItems = this.getNavItems();
|
|
245
|
+
// Handle case where no navigation items are found
|
|
246
|
+
if (navItems.length === 0) {
|
|
247
|
+
this.visibleItems = [];
|
|
248
|
+
this.overflowItems = [];
|
|
249
|
+
return;
|
|
250
|
+
}
|
|
251
|
+
// Check if we're in mobile mode (below 767px)
|
|
252
|
+
const wasMobile = this.isMobile;
|
|
253
|
+
this.isMobile = window.innerWidth <= 767;
|
|
254
|
+
// Force re-render if mobile state changed
|
|
255
|
+
if (wasMobile !== this.isMobile) {
|
|
256
|
+
this.showOverflowMenu = false; // Close any open menus when switching modes
|
|
257
|
+
}
|
|
258
|
+
if (this.isMobile) {
|
|
259
|
+
// On mobile, show only the current active item
|
|
260
|
+
const activeItem = navItems.find((item) => item.id === this.currentActive) ||
|
|
261
|
+
navItems[0];
|
|
262
|
+
this.visibleItems = [activeItem];
|
|
263
|
+
this.overflowItems = navItems.filter((item) => item.id !== activeItem.id);
|
|
264
|
+
}
|
|
265
|
+
else {
|
|
266
|
+
// Desktop behavior - calculate based on available width
|
|
267
|
+
const containerWidth = this.navContainer
|
|
268
|
+
? this.navContainer.offsetWidth
|
|
269
|
+
: 0;
|
|
270
|
+
const buttonWidth = this.overflowButton
|
|
271
|
+
? this.overflowButton.offsetWidth + 32
|
|
272
|
+
: 0; // 32px for gap
|
|
273
|
+
const availableWidth = containerWidth - buttonWidth - 48; // 48px for right margin
|
|
274
|
+
// Fallback if container width is not available yet
|
|
275
|
+
if (containerWidth === 0) {
|
|
276
|
+
this.visibleItems = navItems;
|
|
277
|
+
this.overflowItems = [];
|
|
278
|
+
return;
|
|
279
|
+
}
|
|
280
|
+
let visibleCount = 0;
|
|
281
|
+
let totalWidth = 0;
|
|
282
|
+
// Create or reuse measurement element
|
|
283
|
+
if (!this.measurementElement) {
|
|
284
|
+
this.measurementElement = document.createElement("div");
|
|
285
|
+
this.measurementElement.style.position = "absolute";
|
|
286
|
+
this.measurementElement.style.visibility = "hidden";
|
|
287
|
+
this.measurementElement.style.whiteSpace = "nowrap";
|
|
288
|
+
this.measurementElement.style.fontSize = "14px";
|
|
289
|
+
this.measurementElement.style.fontWeight = "700";
|
|
290
|
+
this.measurementElement.style.padding = "20px 0 20px 0";
|
|
291
|
+
}
|
|
292
|
+
document.body.appendChild(this.measurementElement);
|
|
293
|
+
for (let i = 0; i < navItems.length; i++) {
|
|
294
|
+
const item = navItems[i];
|
|
295
|
+
this.measurementElement.textContent = item.label;
|
|
296
|
+
const itemWidth = this.measurementElement.offsetWidth + 32; // 32px for gap
|
|
297
|
+
if (totalWidth + itemWidth <= availableWidth) {
|
|
298
|
+
totalWidth += itemWidth;
|
|
299
|
+
visibleCount++;
|
|
300
|
+
}
|
|
301
|
+
else {
|
|
302
|
+
break;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
document.body.removeChild(this.measurementElement);
|
|
306
|
+
this.visibleItems = navItems.slice(0, visibleCount);
|
|
307
|
+
this.overflowItems = navItems.slice(visibleCount);
|
|
308
|
+
}
|
|
309
|
+
// Don't automatically show overflow menu - it should be closed by default
|
|
310
|
+
// this.showOverflowMenu = this.overflowItems.length > 0;
|
|
311
|
+
};
|
|
312
|
+
this.toggleOverflowMenu = () => {
|
|
313
|
+
this.showOverflowMenu = !this.showOverflowMenu;
|
|
314
|
+
// After opening, measure and decide alignment to avoid viewport overflow
|
|
315
|
+
if (!this.showOverflowMenu) {
|
|
316
|
+
return;
|
|
317
|
+
}
|
|
318
|
+
requestAnimationFrame(() => {
|
|
319
|
+
const container = this.overflowMenuContainer;
|
|
320
|
+
const dropdown = this.overflowDropdownEl;
|
|
321
|
+
if (!container || !dropdown)
|
|
322
|
+
return;
|
|
323
|
+
const containerRect = container.getBoundingClientRect();
|
|
324
|
+
// Default positioning is right: -2px inside container
|
|
325
|
+
const dropdownWidth = dropdown.offsetWidth || 0;
|
|
326
|
+
const rightEdge = containerRect.right + 2;
|
|
327
|
+
const leftEdge = rightEdge - dropdownWidth;
|
|
328
|
+
// If left edge would be off the viewport, flip to left aligned
|
|
329
|
+
this.overflowDropdownAlignLeft = leftEdge < 8; // keep a small gutter
|
|
330
|
+
});
|
|
331
|
+
};
|
|
332
|
+
this.handleNavClick = (event, section) => {
|
|
333
|
+
event.preventDefault();
|
|
334
|
+
this.currentActive = section;
|
|
335
|
+
// Set manual navigation flag to prevent intersection observer from overriding
|
|
336
|
+
this.isManualNavigation = true;
|
|
337
|
+
// Clear any existing manual navigation timeout
|
|
338
|
+
if (this.manualNavigationTimeout) {
|
|
339
|
+
clearTimeout(this.manualNavigationTimeout);
|
|
340
|
+
}
|
|
341
|
+
// Emit custom event for parent components
|
|
342
|
+
const customEvent = new CustomEvent("sectionChange", {
|
|
343
|
+
detail: { section },
|
|
344
|
+
bubbles: true,
|
|
345
|
+
composed: true,
|
|
346
|
+
});
|
|
347
|
+
this.el.dispatchEvent(customEvent);
|
|
348
|
+
// Smooth scroll to section if it exists, accounting for sticky nav height
|
|
349
|
+
const targetElement = document.querySelector(`#${section}`);
|
|
350
|
+
if (targetElement) {
|
|
351
|
+
// Get the sticky nav height
|
|
352
|
+
const navHeight = this.el.offsetHeight;
|
|
353
|
+
// Calculate the target position with offset
|
|
354
|
+
const targetPosition = targetElement.getBoundingClientRect().top +
|
|
355
|
+
window.scrollY -
|
|
356
|
+
navHeight;
|
|
357
|
+
// Smooth scroll to the adjusted position
|
|
358
|
+
window.scrollTo({
|
|
359
|
+
top: targetPosition,
|
|
360
|
+
behavior: "smooth",
|
|
361
|
+
});
|
|
362
|
+
// Reset manual navigation flag and correct scroll position after animation
|
|
363
|
+
this.manualNavigationTimeout = window.setTimeout(() => {
|
|
364
|
+
this.isManualNavigation = false;
|
|
365
|
+
// Re-check position to account for lazy-loaded images
|
|
366
|
+
const finalNavHeight = this.el.offsetHeight;
|
|
367
|
+
const finalTargetPosition = targetElement.getBoundingClientRect().top +
|
|
368
|
+
window.scrollY -
|
|
369
|
+
finalNavHeight;
|
|
370
|
+
// If we're off by more than a small threshold, correct it instantly.
|
|
371
|
+
if (Math.abs(window.scrollY - finalTargetPosition) > 5) {
|
|
372
|
+
window.scrollTo({
|
|
373
|
+
top: finalTargetPosition,
|
|
374
|
+
behavior: "smooth",
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
}, 800); // Give enough time for smooth scroll to complete
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
// Fallback timeout if the element doesn't exist
|
|
381
|
+
this.manualNavigationTimeout = window.setTimeout(() => {
|
|
382
|
+
this.isManualNavigation = false;
|
|
383
|
+
}, 1500);
|
|
384
|
+
}
|
|
385
|
+
};
|
|
386
|
+
this.handleInitialLoadWithHash = () => {
|
|
387
|
+
if (window.location.hash) {
|
|
388
|
+
if (document.readyState === "complete") {
|
|
389
|
+
// If the page is already loaded, scroll immediately
|
|
390
|
+
this.handleHashChange();
|
|
391
|
+
}
|
|
392
|
+
else {
|
|
393
|
+
// Otherwise, wait for the page to fully load before scrolling
|
|
394
|
+
window.addEventListener("load", this.boundHandleHashChange, {
|
|
395
|
+
once: true,
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
};
|
|
400
|
+
this.handleHashChange = () => {
|
|
401
|
+
const hash = window.location.hash;
|
|
402
|
+
if (hash) {
|
|
403
|
+
const sectionId = hash.substring(1);
|
|
404
|
+
this.scrollToSection(sectionId);
|
|
405
|
+
}
|
|
406
|
+
};
|
|
407
|
+
this.scrollToSection = (sectionId, smooth = true) => {
|
|
408
|
+
const targetElement = document.getElementById(sectionId);
|
|
409
|
+
if (targetElement) {
|
|
410
|
+
const navHeight = this.el.offsetHeight;
|
|
411
|
+
const targetPosition = targetElement.getBoundingClientRect().top +
|
|
412
|
+
window.scrollY -
|
|
413
|
+
navHeight;
|
|
414
|
+
window.scrollTo({
|
|
415
|
+
top: targetPosition,
|
|
416
|
+
behavior: smooth ? "smooth" : "auto",
|
|
417
|
+
});
|
|
418
|
+
this.currentActive = sectionId;
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
this.activeSection = "overview";
|
|
422
|
+
this.navItems = "";
|
|
423
|
+
this.currentActive = "overview";
|
|
424
|
+
this.visibleItems = [];
|
|
425
|
+
this.overflowItems = [];
|
|
426
|
+
this.showOverflowMenu = false;
|
|
427
|
+
this.overflowDropdownAlignLeft = false;
|
|
428
|
+
this.isMobile = false;
|
|
429
|
+
this.isManualNavigation = false;
|
|
430
|
+
}
|
|
431
|
+
componentWillLoad() {
|
|
432
|
+
this.currentActive = this.activeSection;
|
|
433
|
+
}
|
|
434
|
+
componentDidLoad() {
|
|
435
|
+
this.bindEventHandlers();
|
|
436
|
+
this.handleResize();
|
|
437
|
+
this.addEventListeners();
|
|
438
|
+
this.setupIntersectionObserver();
|
|
439
|
+
this.setupResizeObserver();
|
|
440
|
+
this.initializeStickyPosition();
|
|
441
|
+
this.handleInitialLoadWithHash();
|
|
442
|
+
}
|
|
443
|
+
bindEventHandlers() {
|
|
444
|
+
this.boundHandleResize = this.handleResize.bind(this);
|
|
445
|
+
this.boundHandleClickOutside = this.handleClickOutside.bind(this);
|
|
446
|
+
this.boundHandleScroll = this.handleScroll.bind(this);
|
|
447
|
+
this.boundHandleKeyDown = this.handleKeyDown.bind(this);
|
|
448
|
+
this.boundHandleStickyScroll = this.handleStickyScroll.bind(this);
|
|
449
|
+
this.boundHandleHashChange = this.handleHashChange.bind(this);
|
|
450
|
+
}
|
|
451
|
+
addEventListeners() {
|
|
452
|
+
window.addEventListener("resize", this.boundHandleResize);
|
|
453
|
+
document.addEventListener("click", this.boundHandleClickOutside);
|
|
454
|
+
document.addEventListener("keydown", this.boundHandleKeyDown);
|
|
455
|
+
window.addEventListener("scroll", this.boundHandleScroll, {
|
|
456
|
+
passive: true,
|
|
457
|
+
});
|
|
458
|
+
window.addEventListener("scroll", this.boundHandleStickyScroll, {
|
|
459
|
+
passive: true,
|
|
460
|
+
});
|
|
461
|
+
window.addEventListener("hashchange", this.boundHandleHashChange);
|
|
462
|
+
window.addEventListener("load", this.boundHandleHashChange, {
|
|
463
|
+
once: true,
|
|
464
|
+
});
|
|
465
|
+
}
|
|
466
|
+
disconnectedCallback() {
|
|
467
|
+
this.removeEventListeners();
|
|
468
|
+
this.cleanupTimeouts();
|
|
469
|
+
this.cleanupIntersectionObserver();
|
|
470
|
+
this.cleanupResizeObserver();
|
|
471
|
+
this.cleanupElements();
|
|
472
|
+
}
|
|
473
|
+
removeEventListeners() {
|
|
474
|
+
window.removeEventListener("resize", this.boundHandleResize);
|
|
475
|
+
document.removeEventListener("click", this.boundHandleClickOutside);
|
|
476
|
+
document.removeEventListener("keydown", this.boundHandleKeyDown);
|
|
477
|
+
window.removeEventListener("scroll", this.boundHandleScroll);
|
|
478
|
+
window.removeEventListener("scroll", this.boundHandleStickyScroll);
|
|
479
|
+
window.removeEventListener("hashchange", this.boundHandleHashChange);
|
|
480
|
+
window.removeEventListener("load", this.boundHandleHashChange);
|
|
481
|
+
}
|
|
482
|
+
cleanupTimeouts() {
|
|
483
|
+
if (this.scrollTimeout)
|
|
484
|
+
clearTimeout(this.scrollTimeout);
|
|
485
|
+
if (this.scrollThrottleTimeout)
|
|
486
|
+
clearTimeout(this.scrollThrottleTimeout);
|
|
487
|
+
if (this.manualNavigationTimeout)
|
|
488
|
+
clearTimeout(this.manualNavigationTimeout);
|
|
489
|
+
if (this.stickyScrollTimeout)
|
|
490
|
+
clearTimeout(this.stickyScrollTimeout);
|
|
491
|
+
}
|
|
492
|
+
cleanupIntersectionObserver() {
|
|
493
|
+
if (this.intersectionObserver) {
|
|
494
|
+
this.intersectionObserver.disconnect();
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
cleanupResizeObserver() {
|
|
498
|
+
if (this.resizeObserver) {
|
|
499
|
+
this.resizeObserver.disconnect();
|
|
500
|
+
}
|
|
501
|
+
}
|
|
502
|
+
cleanupElements() {
|
|
503
|
+
if (this.placeholderElement) {
|
|
504
|
+
this.placeholderElement.remove();
|
|
505
|
+
this.placeholderElement = null;
|
|
506
|
+
}
|
|
507
|
+
if (this.measurementElement) {
|
|
508
|
+
this.measurementElement.remove();
|
|
509
|
+
this.measurementElement = null;
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
parsePropNavItems() {
|
|
513
|
+
var _a;
|
|
514
|
+
if (!((_a = this.navItems) === null || _a === void 0 ? void 0 : _a.trim()))
|
|
515
|
+
return null;
|
|
516
|
+
try {
|
|
517
|
+
const parsedItems = JSON.parse(this.navItems);
|
|
518
|
+
if (Array.isArray(parsedItems) && parsedItems.length > 0) {
|
|
519
|
+
const validItems = parsedItems.filter((item) => Boolean(item &&
|
|
520
|
+
typeof item.id === "string" &&
|
|
521
|
+
typeof item.label === "string"));
|
|
522
|
+
return validItems.length > 0 ? validItems : null;
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
catch (error) {
|
|
526
|
+
console.warn("Invalid navItems JSON provided to ptc-subnav-v2:", error);
|
|
527
|
+
}
|
|
528
|
+
return null;
|
|
529
|
+
}
|
|
530
|
+
render() {
|
|
531
|
+
const navItems = this.getNavItems();
|
|
532
|
+
const hasRightContent = this.hasSubnavMenuRightContent();
|
|
533
|
+
const selectedMobileItem = this.isMobile
|
|
534
|
+
? navItems.find((item) => item.id === this.currentActive) ||
|
|
535
|
+
navItems[0]
|
|
536
|
+
: null;
|
|
537
|
+
// If no navigation items, don't render the navigation
|
|
538
|
+
if (navItems.length === 0) {
|
|
539
|
+
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" }))))));
|
|
540
|
+
}
|
|
541
|
+
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 ? (
|
|
542
|
+
// Mobile layout - dropdown with arrows
|
|
543
|
+
h("div", { class: "mobile-dropdown-container" }, h("button", { class: "mobile-dropdown-button", onClick: this.toggleOverflowMenu, onKeyDown: (e) => {
|
|
544
|
+
if (e.key === "Enter" ||
|
|
545
|
+
e.key === " ") {
|
|
546
|
+
e.preventDefault();
|
|
547
|
+
this.toggleOverflowMenu();
|
|
548
|
+
}
|
|
549
|
+
}, "aria-expanded": this.showOverflowMenu, "aria-haspopup": "true", "aria-label": `${(selectedMobileItem === null || selectedMobileItem === void 0 ? void 0 : selectedMobileItem.label) || "Select Section"} - Choose navigation section`, "tracker-id": "mobile-dropdown-button", ref: (el) => (this.overflowButton = el) }, h("span", { class: "mobile-selected-item" }, (selectedMobileItem === null || selectedMobileItem === void 0 ? void 0 : selectedMobileItem.label) ||
|
|
550
|
+
"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" }, navItems.map((item) => (h("li", { key: item.id, class: "mf-listen", id: item.trackerId ||
|
|
551
|
+
`mobile-nav-${item.id}` }, h("a", { href: `#${item.id}`, class: `mobile-dropdown-item ${this.currentActive ===
|
|
552
|
+
item.id
|
|
553
|
+
? "active"
|
|
554
|
+
: ""}`, role: "menuitem", "aria-current": this.currentActive ===
|
|
555
|
+
item.id
|
|
556
|
+
? "page"
|
|
557
|
+
: undefined, title: item.title || "", onClick: (e) => {
|
|
558
|
+
this.handleNavClick(e, item.id);
|
|
559
|
+
this.showOverflowMenu = false;
|
|
560
|
+
} }, item.label)))))))) : (
|
|
561
|
+
// Desktop layout - original behavior
|
|
562
|
+
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
|
|
563
|
+
? "active"
|
|
564
|
+
: "", title: item.title || "", onClick: (e) => this.handleNavClick(e, item.id), "aria-current": this.currentActive === item.id
|
|
565
|
+
? "page"
|
|
566
|
+
: undefined }, item.label)))), this.overflowItems.length > 0 && (h("li", { class: "overflow-menu-container mf-listen", id: "overflow-menu", ref: (el) => (this.overflowMenuContainer = el) }, h("button", { class: `overflow-button ${this.hasActiveOverflowItem() ? "selected-active" : ""}`, onClick: this.toggleOverflowMenu, onKeyDown: (e) => {
|
|
567
|
+
if (e.key === "Enter" ||
|
|
568
|
+
e.key === " ") {
|
|
569
|
+
e.preventDefault();
|
|
570
|
+
this.toggleOverflowMenu();
|
|
571
|
+
}
|
|
572
|
+
}, "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 ${this.overflowDropdownAlignLeft ? "align-left" : "align-right"}`, role: "menu", "aria-label": "Additional navigation sections", ref: (el) => (this.overflowDropdownEl =
|
|
573
|
+
el) }, this.overflowItems.map((item) => (h("a", { key: item.id, href: `#${item.id}`, class: `mf-listen ${this
|
|
574
|
+
.currentActive ===
|
|
575
|
+
item.id
|
|
576
|
+
? "active"
|
|
577
|
+
: ""}`, title: item.title || "", "tracker-id": item.trackerId ||
|
|
578
|
+
`overflow-link-${item.id}`, role: "menuitem", onClick: (e) => {
|
|
579
|
+
this.handleNavClick(e, item.id);
|
|
580
|
+
this.showOverflowMenu = false;
|
|
581
|
+
}, "aria-current": this
|
|
582
|
+
.currentActive ===
|
|
583
|
+
item.id
|
|
584
|
+
? "page"
|
|
585
|
+
: undefined }, item.label)))))))))), hasRightContent && (h("div", { class: "subnav-menu-right" }, h("slot", { name: "subnav-menu-right" }))))));
|
|
586
|
+
}
|
|
587
|
+
get el() { return getElement(this); }
|
|
588
|
+
};
|
|
589
|
+
PtcSubnavV2.style = ptcSubnavV2Css;
|
|
590
|
+
|
|
591
|
+
export { PtcSubnavV2 as ptc_subnav_v2 };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host,
|
|
1
|
+
import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
2
|
|
|
3
3
|
const ptcSubnavCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;width:100%;background-color:var(--color-gray-12);z-index:990;position:relative}@media only screen and (min-width: 1200px){:host{background-color:var(--color-gray-10)}}:host .stickyEl.sticky{top:0;position:fixed;width:100%;z-index:990;transition:top 0.5s}:host .navbar{overflow-x:hidden}@media only screen and (min-width: 1200px){:host .navbar{overflow-x:visible}}:host .navbar .navbar-inner{max-width:1150px;margin:auto;box-sizing:border-box;padding:0px;display:none}@media (min-width: 1250px){:host .navbar .navbar-inner{max-width:1200px}}@media only screen and (min-width: 1200px){:host .navbar .navbar-inner{padding:0px;height:auto;display:block}}:host .navbar .navbar-inner .nav-wrapper{width:auto;margin:auto 0;min-width:163px;max-height:calc(100vh - 53px)}@media only screen and (min-width: 1200px){:host .navbar .navbar-inner .nav-wrapper{width:auto;display:flex;justify-content:space-between;max-height:auto}}:host .navbar.navOpen .navbar-inner{display:block}:host .navbar .navbar-toggle{display:block;width:100%;text-align:center;color:var(--color-white);background-color:var(--color-gray-10);border:none;padding:16px;font-size:15px;line-height:var(--ptc-line-height-denser);font-weight:var(--ptc-font-weight-bold)}:host .navbar .navbar-toggle svg{vertical-align:middle;margin-left:4px}@media only screen and (min-width: 1200px){:host .navbar .navbar-toggle{display:none}}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-c83db688.js';
|
|
2
2
|
|
|
3
3
|
const closeSvg = `<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 42 41.485">
|
|
4
4
|
<g id="Group_1042" data-name="Group 1042" transform="rotate(180 108.25 87.993)">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host,
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
2
|
|
|
3
3
|
const ptcTabListCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}ptc-tab-list{display:block;position:relative;color:var(--color-gray-12)}ptc-tab-list.tab-with-banner{background-color:var(--color-white);padding:24px 16px 16px 16px;border-radius:4px}@media only screen and (min-width: 992px){ptc-tab-list.tab-with-banner{padding:24px}}ptc-tab-list.tab-with-banner .tabs-content{padding:16px 0 0 0}ptc-tab-list.tab-with-banner .tabs-content p:not(video-js p),ptc-tab-list.tab-with-banner .tabs-content span:not(video-js span),ptc-tab-list.tab-with-banner .tabs-content h1:not(video-js h1),ptc-tab-list.tab-with-banner .tabs-content h2:not(video-js h2),ptc-tab-list.tab-with-banner .tabs-content h3:not(video-js h3),ptc-tab-list.tab-with-banner .tabs-content h4:not(video-js h4),ptc-tab-list.tab-with-banner .tabs-content h5:not(video-js h5),ptc-tab-list.tab-with-banner .tabs-content h6:not(video-js h6),ptc-tab-list.tab-with-banner .tabs-content ul:not(video-js ul),ptc-tab-list.tab-with-banner .tabs-content li:not(video-js li),ptc-tab-list.tab-with-banner .tabs-content table:not(video-js table){color:var(--color-gray-12)}@media only screen and (min-width: 992px){ptc-tab-list.tab-with-banner .tabs-content{padding:24px 0 0 0}}@media only screen and (min-width: 992px){ptc-tab-list.tab-with-banner .tabs-header{align-items:stretch;padding-left:0rem;width:calc(100% - 44px);display:flex;justify-content:space-between;align-items:center;flex-direction:row;padding-right:0}ptc-tab-list.tab-with-banner tab-header{padding:0 16px;display:flex;align-items:center;flex:1 0 0;align-self:stretch;text-align:center;flex-direction:column;align-items:center}}ptc-tab-list.tab-with-banner .tab-header{padding:0 0 1rem 0}@media only screen and (min-width: 992px){ptc-tab-list.tab-with-banner .tab-header{min-width:200px;white-space:normal;height:100%;align-content:center;transition:var(--ptc-transition-medium) var(--ptc-ease-inout);-webkit-transition:var(--ptc-transition-medium) var(--ptc-ease-inout);-o-transition:var(--ptc-transition-medium) var(--ptc-ease-inout)}ptc-tab-list.tab-with-banner .tab-header:hover{color:var(--color-gray-10)}}@media (min-width: 1080px){ptc-tab-list.tab-with-banner .tab-header{min-width:230px}}@media only screen and (min-width: 1200px){ptc-tab-list.tab-with-banner .tab-header{min-width:200px}}@media only screen and (min-width: 1440px){ptc-tab-list.tab-with-banner .tab-header{min-width:175px}}ptc-tab-list.tab-with-banner .tabs-header-container{display:flex}.tabs-header-container{width:100%;border-bottom:2px solid var(--color-gray-02);position:relative}.tabs-header{display:flex;padding-left:1.5rem;padding-right:1.5rem;transition:opacity ease-out 250ms;opacity:0;width:90%}.tabs-header.active{opacity:1}.tabs-content{padding:40px 28px 28px;min-height:300px}.ellipsis-btn{display:none}@media only screen and (min-width: 768px){.ellipsis-btn.default{position:absolute;top:auto;right:0;bottom:9px}}@media only screen and (min-width: 1440px){.ellipsis-btn.default{bottom:15px}}@media only screen and (min-width: 1440px){.ellipsis-btn{bottom:15px}}.ellipsis-btn.active{display:inline-block}.ellipsis-btn:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}tab-header{padding-right:48px}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-
|
|
1
|
+
import { r as registerInstance, h, H as Host } from './index-c83db688.js';
|
|
2
2
|
|
|
3
3
|
const ptcTabsCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;margin-top:var(--ptc-element-spacing-03);color:var(--color-gray-12);box-sizing:border-box}:host .ptc-pricing-block{width:100%;background-color:var(--color-gray-02);border-radius:var(--ptc-border-radius-standard);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);display:block;transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium)}:host .ptc-pricing-block.active{background-color:var(--color-gray-12);color:var(--color-white)}:host .ptc-pricing-block:hover:not(.active){background-color:var(--color-gray-03)}:host .right-text{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-dense);text-align:right;float:right;margin:15px 20px 15px 15px;display:block}:host .left-text{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);text-align:left;margin:15px 15px 15px 20px;display:inline-block}.tabs-list{border-bottom:1px solid #dddddd;padding:0 5px}.tab-button{border:0;font-size:14px;padding:8px;outline:none;cursor:pointer}.tab-button:hover:not(:disabled):not(.active){border-bottom:3px solid grey}.tab-button:disabled{opacity:0.4}.tab-button.active{border-bottom:3px solid blue;font-weight:600}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h,
|
|
1
|
+
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-c83db688.js';
|
|
2
2
|
|
|
3
3
|
const ptcTabsCss = "h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1,h2,h3,h4,h5,h6,p,ul,li,ptc-subnav,ptc-tab-list,ptc-link,ptc-square-card,.hyphenate-text,ptc-footer{hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;hyphenate-limit-chars:12 3 3;hyphenate-limit-lines:2;hyphenate-limit-last:always;hyphenate-limit-zone:6%;-webkit-hyphens:auto;-webkit-hyphenate-limit-before:3;-webkit-hyphenate-limit-after:3;-webkit-hyphenate-limit-chars:12 3 3;-webkit-hyphenate-limit-lines:2;-moz-hyphens:auto;-moz-hyphenate-limit-chars:12 3 3;-moz-hyphenate-limit-lines:2;-ms-hyphens:auto;-ms-hyphenate-limit-chars:12 3 3;-ms-hyphenate-limit-lines:2}}:host{display:block;margin-top:var(--ptc-element-spacing-03);color:var(--color-gray-12);box-sizing:border-box}:host .ptc-pricing-block{width:100%;background-color:var(--color-gray-02);border-radius:var(--ptc-border-radius-standard);font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);display:block;transition:background-color var(--ptc-ease-inout) var(--ptc-transition-medium)}:host .ptc-pricing-block.active{background-color:var(--color-gray-12);color:var(--color-white)}:host .ptc-pricing-block:hover:not(.active){background-color:var(--color-gray-03)}:host .right-text{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-extrabold);line-height:var(--ptc-line-height-dense);text-align:right;float:right;margin:15px 20px 15px 15px;display:block}:host .left-text{font-family:var(--ptc-font-latin);font-size:var(--ptc-font-size-small);font-weight:var(--ptc-font-weight-medium);line-height:var(--ptc-line-height-dense);text-align:left;margin:15px 15px 15px 20px;display:inline-block}.tabs-list{border-bottom:1px solid #dddddd;padding:0 5px}.tab-button{border:0;font-size:14px;padding:8px;outline:none;cursor:pointer}.tab-button:hover:not(:disabled):not(.active){border-bottom:3px solid grey}.tab-button:disabled{opacity:0.4}.tab-button.active{border-bottom:3px solid blue;font-weight:600}";
|
|
4
4
|
|