@ptcwebops/ptcw-design 6.3.37-beta → 6.3.38-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/{component-6a178a16.js → component-4dd13907.js} +1 -1
- package/dist/cjs/icon-asset_18.cjs.entry.js +1602 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +1 -1
- package/dist/cjs/ptc-form-checkbox_4.cjs.entry.js +1 -1
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.css +7 -0
- package/dist/collection/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.js +78 -2
- package/dist/collection/stories/Jumbotron.stories.js +659 -264
- package/dist/custom-elements/index.js +30 -5
- 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 +2 -2
- package/dist/esm/bundle-example.entry.js +1 -1
- package/dist/esm/bundle-jumbotron-example.entry.js +1 -1
- package/dist/esm/{component-80f298b4.js → component-9c921cc6.js} +1 -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 +1 -1
- package/dist/esm/featured-events-slider-example.entry.js +1 -1
- 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 +2 -2
- package/dist/esm/homepage-toggled-content.entry.js +2 -2
- package/dist/esm/icon-asset_18.entry.js +1581 -0
- package/dist/esm/{index-c83db688.js → index-0bf594c4.js} +1 -1
- package/dist/esm/innovator-toggle-container.entry.js +1 -1
- 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/loader.js +3 -3
- package/dist/esm/max-width-container.entry.js +1 -1
- package/dist/esm/modal-form-example.entry.js +1 -1
- 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-background-video.entry.js +2 -2
- package/dist/esm/ptc-badge.entry.js +1 -1
- package/dist/esm/ptc-bio-card.entry.js +1 -1
- 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 +1 -1
- 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-data-lookup.entry.js +2 -2
- 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-checkbox_4.entry.js +3 -3
- 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 +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 +1 -1
- package/dist/esm/ptc-img.entry.js +2 -2
- 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 +1 -1
- 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-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-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-podcast-card.entry.js +1 -1
- package/dist/esm/ptc-preferance-center-form.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-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-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-subnav-card.entry.js +1 -1
- 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-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 +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-2f12c081.js → utils-7c68b88a.js} +1 -1
- package/dist/ptcw-design/{p-36abe396.entry.js → p-0261e249.entry.js} +1 -1
- package/dist/ptcw-design/{p-9501995f.entry.js → p-094f5dec.entry.js} +1 -1
- package/dist/ptcw-design/{p-9e2fd13c.entry.js → p-0a558a22.entry.js} +1 -1
- package/dist/ptcw-design/{p-9ac99185.entry.js → p-0abb6e77.entry.js} +1 -1
- package/dist/ptcw-design/{p-71360e29.entry.js → p-0b182300.entry.js} +1 -1
- package/dist/ptcw-design/{p-e235bf27.entry.js → p-0bb3ea9a.entry.js} +1 -1
- package/dist/ptcw-design/{p-dfb400ed.entry.js → p-0d2f10cf.entry.js} +1 -1
- package/dist/ptcw-design/{p-14b7693f.entry.js → p-0e6b14a6.entry.js} +1 -1
- package/dist/ptcw-design/{p-fb8584e4.entry.js → p-0ed4609e.entry.js} +1 -1
- package/dist/ptcw-design/p-10413689.entry.js +1 -0
- package/dist/ptcw-design/p-11eb4dd1.entry.js +1 -0
- package/dist/ptcw-design/{p-04ff81ef.entry.js → p-135191ce.entry.js} +1 -1
- package/dist/ptcw-design/{p-27e47c25.entry.js → p-14c77b5e.entry.js} +1 -1
- package/dist/ptcw-design/{p-68ed2afe.entry.js → p-17a4d9d0.entry.js} +1 -1
- package/dist/ptcw-design/{p-8521fdd4.entry.js → p-1948b914.entry.js} +1 -1
- package/dist/ptcw-design/{p-85f32bf5.entry.js → p-1ab6201b.entry.js} +1 -1
- package/dist/ptcw-design/{p-77cad16c.entry.js → p-1adea6a5.entry.js} +1 -1
- package/dist/ptcw-design/{p-d3ac3758.entry.js → p-1b2ff400.entry.js} +1 -1
- package/dist/ptcw-design/{p-464d8e22.entry.js → p-1d48bad3.entry.js} +1 -1
- package/dist/ptcw-design/{p-46f67bec.entry.js → p-1e9f25fc.entry.js} +1 -1
- package/dist/ptcw-design/{p-bf8fbba7.entry.js → p-208ec7f3.entry.js} +1 -1
- package/dist/ptcw-design/p-212cdacd.entry.js +1 -0
- package/dist/ptcw-design/{p-8c49d736.entry.js → p-212d0145.entry.js} +1 -1
- package/dist/ptcw-design/{p-7bdf1e64.entry.js → p-25dd15af.entry.js} +1 -1
- package/dist/ptcw-design/{p-2a20d4a6.entry.js → p-2647fbe3.entry.js} +1 -1
- package/dist/ptcw-design/{p-b647f7a1.entry.js → p-27b8457b.entry.js} +1 -1
- package/dist/ptcw-design/{p-9b26ea67.entry.js → p-290012e3.entry.js} +1 -1
- package/dist/ptcw-design/{p-9b0df204.entry.js → p-298d02ab.entry.js} +1 -1
- package/dist/ptcw-design/{p-7fe4d383.entry.js → p-29ae44dd.entry.js} +1 -1
- package/dist/ptcw-design/{p-e90fbbad.entry.js → p-2a3735a5.entry.js} +1 -1
- package/dist/ptcw-design/{p-0b515839.entry.js → p-2b583ae1.entry.js} +1 -1
- package/dist/ptcw-design/{p-e5369c4d.entry.js → p-2fa28be9.entry.js} +1 -1
- package/dist/ptcw-design/{p-21fa5abe.entry.js → p-2fd01953.entry.js} +1 -1
- package/dist/ptcw-design/{p-a59c9cdc.entry.js → p-3411ac77.entry.js} +1 -1
- package/dist/ptcw-design/p-36c42aae.entry.js +1 -0
- package/dist/ptcw-design/p-3717a6e1.entry.js +1 -0
- package/dist/ptcw-design/{p-6e8ed2ee.entry.js → p-379fcc72.entry.js} +1 -1
- package/dist/ptcw-design/{p-3dd0ded9.entry.js → p-38a1425c.entry.js} +1 -1
- package/dist/ptcw-design/{p-257267e3.entry.js → p-38e43284.entry.js} +1 -1
- package/dist/ptcw-design/p-39255f59.entry.js +1 -0
- package/dist/ptcw-design/{p-799afee5.entry.js → p-3ada2482.entry.js} +1 -1
- package/dist/ptcw-design/{p-f61a3476.entry.js → p-3b967df1.entry.js} +1 -1
- package/dist/ptcw-design/{p-8533988f.entry.js → p-3c52fabe.entry.js} +1 -1
- package/dist/ptcw-design/{p-58e91cb8.entry.js → p-3c72e82d.entry.js} +1 -1
- package/dist/ptcw-design/{p-76d98c5a.entry.js → p-3e13b735.entry.js} +1 -1
- package/dist/ptcw-design/p-3f669e89.entry.js +1 -0
- package/dist/ptcw-design/{p-fe907670.entry.js → p-4335d7f3.entry.js} +1 -1
- package/dist/ptcw-design/{p-c6a0dd99.entry.js → p-43756439.entry.js} +1 -1
- package/dist/ptcw-design/{p-f867ebe6.entry.js → p-44e72b9d.entry.js} +1 -1
- package/dist/ptcw-design/{p-89f0cf12.entry.js → p-472579ea.entry.js} +1 -1
- package/dist/ptcw-design/{p-d73cc053.entry.js → p-485cb0c8.entry.js} +1 -1
- package/dist/ptcw-design/p-4c1451df.entry.js +1 -0
- package/dist/ptcw-design/{p-baff4d44.entry.js → p-50582650.entry.js} +1 -1
- package/dist/ptcw-design/{p-757954b2.entry.js → p-522cb451.entry.js} +1 -1
- package/dist/ptcw-design/{p-2c2f895a.entry.js → p-54891548.entry.js} +1 -1
- package/dist/ptcw-design/{p-6aa9ed95.entry.js → p-575c7fc0.entry.js} +1 -1
- package/dist/ptcw-design/{p-5311c6e1.entry.js → p-58d4b008.entry.js} +1 -1
- package/dist/ptcw-design/{p-f731fc96.entry.js → p-5da98805.entry.js} +1 -1
- package/dist/ptcw-design/{p-8c121480.entry.js → p-5f2a4384.entry.js} +1 -1
- package/dist/ptcw-design/p-5f98dec1.entry.js +1 -0
- package/dist/ptcw-design/{p-61d28206.entry.js → p-5fb671ee.entry.js} +1 -1
- package/dist/ptcw-design/{p-c631608f.entry.js → p-61a5012d.entry.js} +1 -1
- package/dist/ptcw-design/{p-bab5bb88.entry.js → p-666cdec9.entry.js} +1 -1
- package/dist/ptcw-design/{p-76dab076.entry.js → p-68955802.entry.js} +1 -1
- package/dist/ptcw-design/{p-9de963f8.entry.js → p-6d628113.entry.js} +1 -1
- package/dist/ptcw-design/{p-21aa746d.entry.js → p-6dc78042.entry.js} +1 -1
- package/dist/ptcw-design/{p-b209c116.entry.js → p-6f8858c3.entry.js} +1 -1
- package/dist/ptcw-design/p-6ffcd96c.entry.js +1 -0
- package/dist/ptcw-design/{p-85bdb2d5.entry.js → p-712f1336.entry.js} +1 -1
- package/dist/ptcw-design/{p-8e42a22d.entry.js → p-726dab37.entry.js} +1 -1
- package/dist/ptcw-design/{p-04aae3f5.entry.js → p-74a845fd.entry.js} +1 -1
- package/dist/ptcw-design/{p-d74ccb19.entry.js → p-75d8b6ec.entry.js} +1 -1
- package/dist/ptcw-design/{p-282b7d4e.entry.js → p-78252282.entry.js} +1 -1
- package/dist/ptcw-design/{p-b436f56d.entry.js → p-79762cf6.entry.js} +1 -1
- package/dist/ptcw-design/{p-4ca956c1.entry.js → p-79c2e0fb.entry.js} +1 -1
- package/dist/ptcw-design/{p-7cc9255e.entry.js → p-7fada7ae.entry.js} +1 -1
- package/dist/ptcw-design/{p-5980d65d.entry.js → p-807ad5c4.entry.js} +1 -1
- package/dist/ptcw-design/{p-931650bb.entry.js → p-80c56c81.entry.js} +1 -1
- package/dist/ptcw-design/{p-80122e26.js → p-826c17e8.js} +1 -1
- package/dist/ptcw-design/{p-d51438de.entry.js → p-8771d448.entry.js} +1 -1
- package/dist/ptcw-design/{p-7a3e9ecd.entry.js → p-8a452c0b.entry.js} +1 -1
- package/dist/ptcw-design/p-8c25a821.entry.js +1 -0
- package/dist/ptcw-design/{p-15e36f30.entry.js → p-8cdcfb51.entry.js} +1 -1
- package/dist/ptcw-design/{p-9a335b5b.entry.js → p-8eb36507.entry.js} +1 -1
- package/dist/ptcw-design/{p-761a31f8.entry.js → p-8ffdd794.entry.js} +1 -1
- package/dist/ptcw-design/{p-8fb48953.entry.js → p-91dcdd86.entry.js} +1 -1
- package/dist/ptcw-design/{p-2aa19c11.entry.js → p-9292844e.entry.js} +1 -1
- package/dist/ptcw-design/{p-ac75c7ad.js → p-944c5be8.js} +1 -1
- package/dist/ptcw-design/{p-cc677723.entry.js → p-958e1559.entry.js} +1 -1
- package/dist/ptcw-design/p-973b06d1.entry.js +1 -0
- package/dist/ptcw-design/{p-fbd9c8fc.entry.js → p-973c69d8.entry.js} +1 -1
- package/dist/ptcw-design/p-99e41dc4.entry.js +1 -0
- package/dist/ptcw-design/{p-0529caaa.entry.js → p-9a1922ba.entry.js} +1 -1
- package/dist/ptcw-design/{p-bfacfe67.entry.js → p-9a28ded2.entry.js} +1 -1
- package/dist/ptcw-design/{p-fe40421e.entry.js → p-9be9f585.entry.js} +1 -1
- package/dist/ptcw-design/{p-5db7f70b.entry.js → p-9d32f1bc.entry.js} +1 -1
- package/dist/ptcw-design/{p-445329ed.entry.js → p-9d386f08.entry.js} +1 -1
- package/dist/ptcw-design/p-9d8a9a72.entry.js +1 -0
- package/dist/ptcw-design/{p-3ee2a531.entry.js → p-9dde477c.entry.js} +1 -1
- package/dist/ptcw-design/{p-8cea8943.entry.js → p-9ea0d71c.entry.js} +1 -1
- package/dist/ptcw-design/{p-4f3dea53.entry.js → p-a1dc7ae5.entry.js} +1 -1
- package/dist/ptcw-design/{p-257a68df.entry.js → p-a22d7ae8.entry.js} +1 -1
- package/dist/ptcw-design/{p-3872fce7.entry.js → p-a2710bbf.entry.js} +1 -1
- package/dist/ptcw-design/{p-c8f68292.entry.js → p-a2f25add.entry.js} +1 -1
- package/dist/ptcw-design/p-a3f9e4ba.entry.js +1 -0
- package/dist/ptcw-design/{p-8191928d.entry.js → p-a974f98f.entry.js} +1 -1
- package/dist/ptcw-design/{p-7f9ad266.entry.js → p-ace1ea79.entry.js} +1 -1
- package/dist/ptcw-design/{p-dc85c302.entry.js → p-afbe8e2c.entry.js} +1 -1
- package/dist/ptcw-design/{p-aea09a70.entry.js → p-b293a0b1.entry.js} +1 -1
- package/dist/ptcw-design/{p-0e5932f0.entry.js → p-b3b63f67.entry.js} +1 -1
- package/dist/ptcw-design/{p-0ef61b44.entry.js → p-b3ea58b7.entry.js} +1 -1
- package/dist/ptcw-design/{p-560b05a5.entry.js → p-bca81995.entry.js} +1 -1
- package/dist/ptcw-design/{p-52e17d34.entry.js → p-bd9705c4.entry.js} +1 -1
- package/dist/ptcw-design/{p-a7cb3851.entry.js → p-be00fb74.entry.js} +1 -1
- package/dist/ptcw-design/{p-89ba3dfd.entry.js → p-bf2f9183.entry.js} +1 -1
- package/dist/ptcw-design/{p-38a56ed6.entry.js → p-c05e326f.entry.js} +1 -1
- package/dist/ptcw-design/{p-aac082cf.entry.js → p-c5417010.entry.js} +1 -1
- package/dist/ptcw-design/{p-04f0b1ba.entry.js → p-c9a73ad1.entry.js} +1 -1
- package/dist/ptcw-design/{p-baeee2b4.entry.js → p-ca039722.entry.js} +1 -1
- package/dist/ptcw-design/{p-d66debb3.entry.js → p-ca5763d0.entry.js} +1 -1
- package/dist/ptcw-design/{p-5946d7c9.entry.js → p-cab0274c.entry.js} +1 -1
- package/dist/ptcw-design/{p-9dbcfcee.entry.js → p-cc691b14.entry.js} +1 -1
- package/dist/ptcw-design/{p-98610430.entry.js → p-ce125ef2.entry.js} +1 -1
- package/dist/ptcw-design/{p-e3bf092e.entry.js → p-d1f57070.entry.js} +1 -1
- package/dist/ptcw-design/{p-9df7489b.entry.js → p-d4207d86.entry.js} +1 -1
- package/dist/ptcw-design/{p-260ecfef.entry.js → p-d9ec506c.entry.js} +1 -1
- package/dist/ptcw-design/{p-a54c6da5.entry.js → p-dabb1b70.entry.js} +1 -1
- package/dist/ptcw-design/{p-a0bf3dd2.entry.js → p-dadbab48.entry.js} +1 -1
- package/dist/ptcw-design/{p-c5f42895.entry.js → p-dd38bf84.entry.js} +1 -1
- package/dist/ptcw-design/{p-a8504f11.entry.js → p-de663192.entry.js} +1 -1
- package/dist/ptcw-design/{p-092e50c9.entry.js → p-e0c44285.entry.js} +1 -1
- package/dist/ptcw-design/p-e1692ed6.entry.js +1 -0
- package/dist/ptcw-design/{p-1e3bf09c.entry.js → p-e28d0816.entry.js} +1 -1
- package/dist/ptcw-design/{p-a37c5209.entry.js → p-e2e33ddb.entry.js} +1 -1
- package/dist/ptcw-design/{p-fdee2cdc.entry.js → p-e6ebc832.entry.js} +1 -1
- package/dist/ptcw-design/{p-89177041.entry.js → p-e75dff95.entry.js} +1 -1
- package/dist/ptcw-design/{p-95187918.entry.js → p-e77d2204.entry.js} +1 -1
- package/dist/ptcw-design/{p-c68d31c6.entry.js → p-e87a4ff8.entry.js} +1 -1
- package/dist/ptcw-design/{p-0a9ee6c2.entry.js → p-e8b51e7d.entry.js} +1 -1
- package/dist/ptcw-design/{p-f1734520.entry.js → p-e9f65e9a.entry.js} +1 -1
- package/dist/ptcw-design/{p-7a1db471.entry.js → p-ecfc8211.entry.js} +1 -1
- package/dist/ptcw-design/{p-e6a272d9.entry.js → p-ed71521c.entry.js} +1 -1
- package/dist/ptcw-design/{p-711bcdad.js → p-ee1183b2.js} +1 -1
- package/dist/ptcw-design/{p-de960790.entry.js → p-ef55ab3c.entry.js} +1 -1
- package/dist/ptcw-design/p-ef8f24e6.entry.js +1 -0
- package/dist/ptcw-design/{p-da02913d.entry.js → p-f05be87f.entry.js} +1 -1
- package/dist/ptcw-design/{p-f5c97ab2.entry.js → p-f2006b03.entry.js} +1 -1
- package/dist/ptcw-design/{p-e43c30c9.entry.js → p-f3db0dc6.entry.js} +1 -1
- package/dist/ptcw-design/{p-008307a6.entry.js → p-f69df077.entry.js} +1 -1
- package/dist/ptcw-design/{p-4702c233.entry.js → p-fa99b158.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/ptc-nav-skip-to-content/ptc-nav-skip-to-content.d.ts +6 -0
- package/dist/types/components.d.ts +6 -0
- package/package.json +1 -1
- package/readme.md +1 -1
- package/dist/cjs/icon-asset.cjs.entry.js +0 -65
- package/dist/cjs/list-item.cjs.entry.js +0 -48
- package/dist/cjs/ptc-back-to-top.cjs.entry.js +0 -98
- package/dist/cjs/ptc-breadcrumb.cjs.entry.js +0 -47
- package/dist/cjs/ptc-button.cjs.entry.js +0 -87
- package/dist/cjs/ptc-nav-skip-to-content.cjs.entry.js +0 -45
- package/dist/cjs/ptc-para.cjs.entry.js +0 -127
- package/dist/cjs/ptc-picture.cjs.entry.js +0 -162
- package/dist/cjs/ptc-product-card.cjs.entry.js +0 -62
- package/dist/cjs/ptc-product-category.cjs.entry.js +0 -20
- package/dist/cjs/ptc-product-dropdown.cjs.entry.js +0 -78
- package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +0 -28
- package/dist/cjs/ptc-product-list.cjs.entry.js +0 -160
- package/dist/cjs/ptc-product-sidebar.cjs.entry.js +0 -177
- package/dist/cjs/ptc-readmore.cjs.entry.js +0 -180
- package/dist/cjs/ptc-spacer.cjs.entry.js +0 -38
- package/dist/cjs/ptc-title.cjs.entry.js +0 -152
- package/dist/cjs/ptc-tooltip.cjs.entry.js +0 -107
- package/dist/esm/icon-asset.entry.js +0 -61
- package/dist/esm/list-item.entry.js +0 -44
- package/dist/esm/ptc-back-to-top.entry.js +0 -94
- package/dist/esm/ptc-breadcrumb.entry.js +0 -43
- package/dist/esm/ptc-button.entry.js +0 -83
- package/dist/esm/ptc-nav-skip-to-content.entry.js +0 -41
- package/dist/esm/ptc-para.entry.js +0 -123
- package/dist/esm/ptc-picture.entry.js +0 -158
- package/dist/esm/ptc-product-card.entry.js +0 -58
- package/dist/esm/ptc-product-category.entry.js +0 -16
- package/dist/esm/ptc-product-dropdown.entry.js +0 -74
- package/dist/esm/ptc-product-highlight-card.entry.js +0 -24
- package/dist/esm/ptc-product-list.entry.js +0 -156
- package/dist/esm/ptc-product-sidebar.entry.js +0 -173
- package/dist/esm/ptc-readmore.entry.js +0 -176
- package/dist/esm/ptc-spacer.entry.js +0 -34
- package/dist/esm/ptc-title.entry.js +0 -148
- package/dist/esm/ptc-tooltip.entry.js +0 -103
- package/dist/ptcw-design/p-077839d5.entry.js +0 -1
- package/dist/ptcw-design/p-0a214a22.entry.js +0 -1
- package/dist/ptcw-design/p-0c69ea52.entry.js +0 -1
- package/dist/ptcw-design/p-13e338a5.entry.js +0 -1
- package/dist/ptcw-design/p-1eb40265.entry.js +0 -1
- package/dist/ptcw-design/p-297a14cb.entry.js +0 -1
- package/dist/ptcw-design/p-2cc7e2a8.entry.js +0 -1
- package/dist/ptcw-design/p-32f64f48.entry.js +0 -1
- package/dist/ptcw-design/p-3ddb6c50.entry.js +0 -1
- package/dist/ptcw-design/p-3ed4a7ed.entry.js +0 -1
- package/dist/ptcw-design/p-45b1f3fc.entry.js +0 -1
- package/dist/ptcw-design/p-4cee12b8.entry.js +0 -1
- package/dist/ptcw-design/p-75390f63.entry.js +0 -1
- package/dist/ptcw-design/p-7d29a418.entry.js +0 -1
- package/dist/ptcw-design/p-845d10b5.entry.js +0 -1
- package/dist/ptcw-design/p-901c31b3.entry.js +0 -1
- package/dist/ptcw-design/p-97b9f41b.entry.js +0 -1
- package/dist/ptcw-design/p-97eb1025.entry.js +0 -1
- package/dist/ptcw-design/p-99355e65.entry.js +0 -1
- package/dist/ptcw-design/p-99daf693.entry.js +0 -1
- package/dist/ptcw-design/p-9d3a7f36.entry.js +0 -1
- package/dist/ptcw-design/p-a5fc048f.entry.js +0 -1
- package/dist/ptcw-design/p-a8872ce3.entry.js +0 -1
- package/dist/ptcw-design/p-b8ee8699.entry.js +0 -1
- package/dist/ptcw-design/p-bb9a879f.entry.js +0 -1
- package/dist/ptcw-design/p-bf56d5a3.entry.js +0 -1
- package/dist/ptcw-design/p-bf84ecc0.entry.js +0 -1
- package/dist/ptcw-design/p-c89030e4.entry.js +0 -1
- package/dist/ptcw-design/p-d2cc0297.entry.js +0 -1
- package/dist/ptcw-design/p-db1dcce0.entry.js +0 -1
- package/dist/ptcw-design/p-e3b1af2b.entry.js +0 -1
- package/dist/ptcw-design/p-e4eb925f.entry.js +0 -1
- package/dist/ptcw-design/p-fd7e5935.entry.js +0 -1
- package/dist/ptcw-design/p-fd87fcd5.entry.js +0 -1
- /package/dist/ptcw-design/{p-672a349f.js → p-bcab66bf.js} +0 -0
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
|
|
3
|
-
const ptcProductDropdownCss = "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:4px;background-color:var(--color-white)}:host .hidden{display:none}:host .dropdown{position:relative;display:inline-block;width:100%;font-size:16px}:host .dropdown .dropdown-toggle{padding:0.5rem;border:1px solid var(--color-gray-03);background-color:var(--color-white);cursor:pointer;display:flex;align-items:center;justify-content:space-between;min-height:34px;box-sizing:border-box}:host .dropdown .dropdown-toggle:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .dropdown .dropdown-toggle .dropdown-placeholder{font-size:14px;color:var(--color-gray-07)}:host .caret{display:inline-block;vertical-align:middle}:host .dropdown-menu{position:absolute;top:100%;left:0;min-width:10rem;border:1px solid var(--color-gray-03);background-color:var(--color-white);box-shadow:0px 2px 4px rgba(35, 43, 45, 0.3);z-index:105;max-height:400px;overflow-y:auto;width:100%;box-sizing:border-box}:host .dropdown-menu::-webkit-scrollbar{width:5px}:host .dropdown-menu::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3)}:host .dropdown-menu::-webkit-scrollbar-thumb{background-color:var(--color-gray-05);outline:1px solid var(--color-gray-05)}:host .checkbox-label{display:flex;align-items:flex-start;padding:6px 16px;cursor:pointer;font-size:14px}:host .checkbox-label:first-child{padding-top:20px}:host .checkbox-label:last-child{padding-bottom:20px}:host .checkbox-label input[type=checkbox]{min-width:20px;margin-right:8px;width:20px;height:20px;margin-top:0}:host .checkbox-label input[type=checkbox]:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}";
|
|
4
|
-
|
|
5
|
-
const PtcProductDropdown = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.selectedValues = createEvent(this, "selectedValues", 7);
|
|
9
|
-
this.dropdownTouched = createEvent(this, "dropdownTouched", 7);
|
|
10
|
-
this.internalOptions = undefined;
|
|
11
|
-
this.newOptions = undefined;
|
|
12
|
-
this.selectedOptions = [];
|
|
13
|
-
this.placeholder = undefined;
|
|
14
|
-
this.isOpen = false;
|
|
15
|
-
}
|
|
16
|
-
parseOptions() {
|
|
17
|
-
let options = Array.from(this.hostElement.querySelectorAll('span'));
|
|
18
|
-
if (options) {
|
|
19
|
-
this.internalOptions = options.map((option) => {
|
|
20
|
-
return option.textContent;
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
toggleDropdown() {
|
|
25
|
-
this.isOpen = !this.isOpen;
|
|
26
|
-
this.dropdownTouched.emit({
|
|
27
|
-
'sender': this,
|
|
28
|
-
'isOpen': this.isOpen
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
handleSearchResult(event) {
|
|
32
|
-
const { sender, searchTerm } = event.detail;
|
|
33
|
-
if (sender) {
|
|
34
|
-
if (searchTerm === "") {
|
|
35
|
-
this.selectedOptions = [];
|
|
36
|
-
this.isOpen = false;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
handleinputChanged(event) {
|
|
41
|
-
const { sender } = event.detail;
|
|
42
|
-
if (sender) {
|
|
43
|
-
this.selectedOptions = [];
|
|
44
|
-
this.isOpen = false;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
handleCheckboxChange(option) {
|
|
48
|
-
const index = this.selectedOptions.indexOf(option);
|
|
49
|
-
if (index > -1) {
|
|
50
|
-
this.selectedOptions.splice(index, 1);
|
|
51
|
-
this.selectedValues.emit({
|
|
52
|
-
'sender': this,
|
|
53
|
-
'selectedOptions': this.selectedOptions
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
this.selectedOptions.push(option);
|
|
58
|
-
this.selectedValues.emit({
|
|
59
|
-
'sender': this,
|
|
60
|
-
'selectedOptions': this.selectedOptions
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
componentWillLoad() {
|
|
65
|
-
this.parseOptions();
|
|
66
|
-
}
|
|
67
|
-
render() {
|
|
68
|
-
return (h(Host, null, h("div", { class: "dropdown" }, h("div", { class: "dropdown-toggle", onClick: () => this.toggleDropdown(), onKeyDown: (e) => { e.key === 'Enter' ? this.toggleDropdown() : null; }, tabIndex: 0 }, h("span", { class: "dropdown-placeholder" }, this.placeholder), h("span", { class: "caret" }, h("svg", { width: "12", height: "8", viewBox: "0 0 12 8", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M1.86537 0.917969L6.14614 4.56922L10.4269 0.917969L11.9769 2.23997L6.14614 7.21323L0.31543 2.23997L1.86537 0.917969Z", fill: "#323B42" })))), this.isOpen && (h("div", { class: "dropdown-menu" }, this.internalOptions.map((option) => (h("label", { class: "checkbox-label" }, h("input", { type: "checkbox", checked: this.selectedOptions.includes(option), onChange: () => this.handleCheckboxChange(option) }), option)))))), h("div", { class: "hidden" }, h("slot", null))));
|
|
69
|
-
}
|
|
70
|
-
get hostElement() { return getElement(this); }
|
|
71
|
-
};
|
|
72
|
-
PtcProductDropdown.style = ptcProductDropdownCss;
|
|
73
|
-
|
|
74
|
-
export { PtcProductDropdown as ptc_product_dropdown };
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host } from './index-c83db688.js';
|
|
2
|
-
|
|
3
|
-
const ptcProductHighlightCardCss = "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}}a{font-family:var(--ptc-font-latin);font-style:var(--ptc-font-style-normal);text-decoration-line:underline;color:var(--color-hyperlink);transition:color var(--ptc-transition-medium) var(--ptc-ease-out);font-weight:var(--ptc-font-weight-bold)}a:visited{color:var(--color-blue-10)}a:active,a:visited:active{transition:none;color:var(--color-blue-09)}a:hover,a:visited:hover{color:var(--color-blue-08)}a.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}a:focus-visible{outline:5px solid #003DD6 !important;outline-offset:0px !important;border-radius:var(--ptc-border-radius-standard)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.light-links a.light-link,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.background-grey-10 a.light-link,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a),.background-plm-grey a.light-link{color:var(--color-blue-04);margin:-2px;border:2px solid transparent}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.light-links a.light-link:visited,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.background-grey-10 a.light-link:visited,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited,.background-plm-grey a.light-link:visited{color:var(--color-blue-06)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.light-links a.light-link:active,.light-links a.light-link:visited:active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.background-grey-10 a.light-link:active,.background-grey-10 a.light-link:visited:active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):active,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:active,.background-plm-grey a.light-link:active,.background-plm-grey a.light-link:visited:active{transition:none;color:var(--color-blue-07)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.light-links a.light-link:hover,.light-links a.light-link:visited:hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.background-grey-10 a.light-link:hover,.background-grey-10 a.light-link:visited:hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):hover,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):visited:hover,.background-plm-grey a.light-link:hover,.background-plm-grey a.light-link:visited:hover{color:var(--color-blue-05)}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.light-links a.light-link.disabled,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.background-grey-10 a.light-link.disabled,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a).disabled,.background-plm-grey a.light-link.disabled{color:var(--color-gray-04) !important;cursor:not-allowed}.light-links a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.light-links a.light-link:focus-visible,.background-grey-10 a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.background-grey-10 a.light-link:focus-visible,.background-plm-grey a:not(.hero-footer-form-wrapper a,ptc-modal inline-form a,.podcast-cta-section a,.vjs-social-share-links a):focus-visible,.background-plm-grey a.light-link:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.light-links .podcast-cta-section a,.background-grey-10 .podcast-cta-section a,.background-plm-grey .podcast-cta-section a{border:2px solid transparent}.light-links .podcast-cta-section a:focus-visible,.background-grey-10 .podcast-cta-section a:focus-visible,.background-plm-grey .podcast-cta-section a:focus-visible{border-radius:var(--ptc-border-radius-standard);border:2px solid white;outline:5px solid var(--keyboard-nav-outline)}.ptc-link{color:var(--color-gray-10);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link:hover{color:var(--color-green-06)}.ptc-link:visited{color:var(--color-gray-10)}.ptc-link:active,.ptc-link:visited:active{transition:none;color:var(--color-green-06)}.ptc-link:hover,.ptc-link:visited:hover{color:var(--color-green-06)}.ptc-link-dark{color:var(--color-white);text-decoration:underline;text-decoration-thickness:2px;text-decoration-color:var(--color-green-06);text-underline-offset:5px;transition:text-decoration-color var(--ptc-transition-medium) var(--ptc-ease-inout)}.ptc-link-dark:hover{color:var(--color-green-06)}.ptc-link-dark:visited{color:var(--color-white)}.ptc-link-dark:active,.ptc-link-dark:visited:active{transition:none;color:var(--color-green-06)}.ptc-link-dark:hover,.ptc-link-dark:visited:hover{color:var(--color-green-06)}.vjs-social-share-links a{color:var(--color-white)}.vjs-social-share-links a:hover{color:var(--color-white)}:host{max-width:300px;display:block;padding:18px 10px 12px 10px;border:1px solid var(--color-gray-04);border-radius:var(--ptc-border-radius-standard);margin:auto;height:100%}:host ptc-picture{min-height:100px}:host ptc-para ptc-readmore .box input~label{margin-right:0px}:host ptc-para a{color:var(--color-hyperlink)}";
|
|
4
|
-
|
|
5
|
-
const PtcProductHighlightCard = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.cardTitle = undefined;
|
|
9
|
-
this.cardImage = undefined;
|
|
10
|
-
this.cardImageAltText = undefined;
|
|
11
|
-
this.moreText = 'More';
|
|
12
|
-
this.lessText = 'Less';
|
|
13
|
-
this.cardDescription = undefined;
|
|
14
|
-
this.browserFirefox = false;
|
|
15
|
-
this.currentLanguage = undefined;
|
|
16
|
-
}
|
|
17
|
-
render() {
|
|
18
|
-
return (h(Host, null, h("ptc-title", { type: 'h4', upperline: "no-upperline", "title-margin": "margin-flush", "title-size": "small", "text-align": 'center' }, h("ptc-tooltip", { "text-display": "block", "text-lines": "2", "z-index": "z-999", description: this.cardTitle, position: "bottom", width: 'full-width' })), h("ptc-picture", { alt: this.cardImageAltText, src: this.cardImage, "image-alignment": "center", width: "69", "display-image": "inline-block", styles: "img{margin: 12px auto 18px auto}" }), h("ptc-para", { "font-size": "x-small", "para-margin": "margin-flush", "para-line-h": "line-height-densest", "para-align": 'left', "para-z-index": "z-auto" }, this.browserFirefox && this.currentLanguage.toLowerCase().includes("ja") ? h("slot", null) :
|
|
19
|
-
h("ptc-readmore", { "more-text": this.moreText, "less-text": this.lessText, "visible-lines-custom": "8", "read-more-position": "left" }, h("slot", null)))));
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
PtcProductHighlightCard.style = ptcProductHighlightCardCss;
|
|
23
|
-
|
|
24
|
-
export { PtcProductHighlightCard as ptc_product_highlight_card };
|
|
@@ -1,156 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
|
|
3
|
-
const ptcProductListCss = "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;padding-bottom:52px}@media only screen and (min-width: 992px){:host{padding-bottom:102px}}:host .no-result-wrap{display:none}:host .no-result-wrap.show{display:block}:host .no-result-wrap .no-result{display:flex;justify-content:center;align-items:center;min-height:160px;padding:20px;text-align:center}";
|
|
4
|
-
|
|
5
|
-
const PtcProductList = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.clearCtaClicked = createEvent(this, "clearCtaClicked", 7);
|
|
9
|
-
this.emptyTitle = undefined;
|
|
10
|
-
this.emptySubTitle = undefined;
|
|
11
|
-
this.clearButtonLabel = undefined;
|
|
12
|
-
}
|
|
13
|
-
handleSearchResult(event) {
|
|
14
|
-
const { sender, searchTerm } = event.detail;
|
|
15
|
-
if (sender) {
|
|
16
|
-
this.sortCards(searchTerm);
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
handleMultipleSearchResult(event) {
|
|
20
|
-
const { sender, selectedOptions } = event.detail;
|
|
21
|
-
if (sender) {
|
|
22
|
-
this.sortMultipleCards(selectedOptions);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
handleEmptyResult(event) {
|
|
26
|
-
const { sender, searchTerm } = event.detail;
|
|
27
|
-
if (sender) {
|
|
28
|
-
this.noresultSection.classList.add('show');
|
|
29
|
-
this.sortCards(searchTerm);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
sortMultipleCards(searchItems) {
|
|
33
|
-
const categoryList = Array.from(this.hostElement.querySelectorAll('ptc-product-category'));
|
|
34
|
-
categoryList.forEach((category) => {
|
|
35
|
-
const categoryTitle = category.getAttribute('category-title');
|
|
36
|
-
const productList = Array.from(category.querySelectorAll('ptc-product-card'));
|
|
37
|
-
if (searchItems.length > 0) {
|
|
38
|
-
const shouldDisplayCategory = searchItems.some(searchItem => categoryTitle && categoryTitle.includes(searchItem));
|
|
39
|
-
category.style.display = shouldDisplayCategory ? 'block' : 'none';
|
|
40
|
-
if (shouldDisplayCategory) {
|
|
41
|
-
productList.forEach(product => {
|
|
42
|
-
product.style.display = 'block';
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
else {
|
|
46
|
-
productList.forEach(product => {
|
|
47
|
-
const productTitle = product.getAttribute('card-title');
|
|
48
|
-
const shouldDisplayProduct = searchItems.some(searchItem => productTitle && productTitle.includes(searchItem));
|
|
49
|
-
product.style.display = shouldDisplayProduct ? 'block' : 'none';
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
category.style.display = 'block';
|
|
55
|
-
productList.forEach(product => {
|
|
56
|
-
product.style.display = 'block';
|
|
57
|
-
});
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
// Sorting the
|
|
62
|
-
sortCards(searchItem) {
|
|
63
|
-
const categoryList = this.hostElement.querySelectorAll('ptc-product-category');
|
|
64
|
-
categoryList.forEach((category) => {
|
|
65
|
-
const categoryTitle = category.getAttribute('category-title');
|
|
66
|
-
const productList = category.querySelectorAll('ptc-product-card');
|
|
67
|
-
category.style.display = 'none';
|
|
68
|
-
if (searchItem === '') {
|
|
69
|
-
category.style.display = 'block';
|
|
70
|
-
productList.forEach(product => {
|
|
71
|
-
product.style.display = 'block';
|
|
72
|
-
});
|
|
73
|
-
this.noresultSection.classList.remove('show');
|
|
74
|
-
}
|
|
75
|
-
else {
|
|
76
|
-
const searchItemLowerCase = searchItem; //
|
|
77
|
-
if (searchItemLowerCase === categoryTitle) {
|
|
78
|
-
category.style.display = 'block';
|
|
79
|
-
productList.forEach(product => {
|
|
80
|
-
product.style.display = 'block';
|
|
81
|
-
});
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
productList.forEach(product => {
|
|
85
|
-
const productTitle = product.getAttribute('card-title');
|
|
86
|
-
product.style.display = 'none';
|
|
87
|
-
if (searchItemLowerCase === productTitle) {
|
|
88
|
-
product.style.display = 'block';
|
|
89
|
-
category.style.display = 'block';
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
}
|
|
96
|
-
componentDidLoad() {
|
|
97
|
-
this.addIds();
|
|
98
|
-
this.noresultSection = this.hostElement.shadowRoot.querySelector('.no-result-wrap');
|
|
99
|
-
this.productList = this.hostElement.shadowRoot.querySelector('.product-list');
|
|
100
|
-
const productCards = this.hostElement.querySelectorAll('ptc-product-category ptc-product-card');
|
|
101
|
-
productCards.forEach(card => {
|
|
102
|
-
const toggleBtn = (card.shadowRoot).querySelector('.toggle-btn');
|
|
103
|
-
if (toggleBtn) {
|
|
104
|
-
const handleToggle = () => {
|
|
105
|
-
if (card.classList.contains('has-opened')) {
|
|
106
|
-
card.classList.remove('has-opened');
|
|
107
|
-
}
|
|
108
|
-
else {
|
|
109
|
-
card.classList.add('has-opened');
|
|
110
|
-
}
|
|
111
|
-
this.hideAllCards(card);
|
|
112
|
-
};
|
|
113
|
-
toggleBtn.addEventListener('click', handleToggle);
|
|
114
|
-
toggleBtn.addEventListener('keydown', (event) => {
|
|
115
|
-
if (event.key === 'Enter') {
|
|
116
|
-
handleToggle();
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
hideAllCards(selectedCard) {
|
|
123
|
-
const productCards = this.hostElement.querySelectorAll('ptc-product-category ptc-product-card');
|
|
124
|
-
productCards.forEach(card => {
|
|
125
|
-
if (selectedCard != card) {
|
|
126
|
-
card.classList.remove('has-opened');
|
|
127
|
-
}
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
handleClick(event) {
|
|
131
|
-
this.clearCtaClicked.emit({
|
|
132
|
-
'sender': this,
|
|
133
|
-
'event': event,
|
|
134
|
-
});
|
|
135
|
-
}
|
|
136
|
-
// Adding id to the category and product cards
|
|
137
|
-
addIds() {
|
|
138
|
-
const categoryList = this.hostElement.querySelectorAll('ptc-product-category');
|
|
139
|
-
categoryList.forEach((category) => {
|
|
140
|
-
const categoryTitle = category.getAttribute('category-title');
|
|
141
|
-
category.setAttribute('id', categoryTitle);
|
|
142
|
-
const productList = category.querySelectorAll('ptc-product-card');
|
|
143
|
-
productList.forEach(product => {
|
|
144
|
-
const productTitle = product.getAttribute('card-title');
|
|
145
|
-
product.setAttribute('id', productTitle);
|
|
146
|
-
});
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
render() {
|
|
150
|
-
return (h(Host, null, h("div", { class: "product-list" }, h("slot", null)), h("div", { class: "no-result-wrap" }, h("div", { class: "no-result" }, h("div", null, h("ptc-title", { type: 'h3', "title-margin": "margin-flush", upperline: 'no-upperline', "title-size": "large" }, this.emptyTitle || "No Results Found"), h("ptc-para", { "font-size": "x-small" }, this.emptySubTitle || "Try changing or removing some of your filters"), h("ptc-button", { type: "link", color: "ptc-quaternary", target: "_blank", onClick: (e) => { this.handleClick(e); } }, this.clearButtonLabel || "Clear Filters"))))));
|
|
151
|
-
}
|
|
152
|
-
get hostElement() { return getElement(this); }
|
|
153
|
-
};
|
|
154
|
-
PtcProductList.style = ptcProductListCss;
|
|
155
|
-
|
|
156
|
-
export { PtcProductList as ptc_product_list };
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
|
|
3
|
-
const ptcProductSidebarCss = "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;position:relative}:host .hide{display:none !important}:host .white-box{padding:12px;background-color:var(--color-white);border-radius:var(--ptc-border-radius-standard)}:host .sort-wrap{display:block}@media only screen and (min-width: 768px){:host .sort-wrap{display:flex;justify-content:space-between}}@media only screen and (min-width: 992px){:host .sort-wrap{display:block}}:host .filter-result-wrap label{font-size:var(--ptc-font-size-xx-small);font-weight:600}@media only screen and (min-width: 992px){:host .filter-result-wrap label{font-size:var(--ptc-font-size-x-small)}}:host .filter-result-wrap .result-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}@media only screen and (min-width: 992px){:host .filter-result-wrap .result-header{margin-bottom:26px}}:host .filter-result-wrap .result-header .clear-cta{cursor:pointer;display:none;color:var(--color-gray-07);font-size:var(--ptc-font-size-x-small);text-decoration:underline}:host .filter-result-wrap .result-header .clear-cta:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .filter-result-wrap .result-header .clear-cta.show{display:block}:host .filter-result-wrap .typeahead-input{box-sizing:border-box;margin-bottom:14px;width:100%;margin-right:0}@media only screen and (min-width: 768px){:host .filter-result-wrap .typeahead-input{margin-right:40px}}@media only screen and (min-width: 992px){:host .filter-result-wrap .typeahead-input{margin-right:0}}:host .filter-result-wrap .typeahead-input .input-wrap{position:relative}:host .filter-result-wrap .typeahead-input .input-wrap svg{position:absolute;left:8px;top:8px}:host .filter-result-wrap .typeahead-input .input-wrap input{margin-top:4px;padding:8px 8px 8px 34px;display:block;width:100%;box-sizing:border-box;border:1px solid var(--color-gray-03);font-size:14px}:host .filter-result-wrap .typeahead-input .input-wrap input:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .filter-result-wrap .typeahead-input .suggestion-wrap{position:relative;width:100%}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions{border:1px solid var(--color-gray-03);box-shadow:0px 2px 4px rgba(35, 43, 45, 0.3);background-color:var(--color-white);position:absolute;z-index:105;top:0;margin:0;width:100%;box-sizing:border-box;padding:0;max-height:400px;overflow-y:auto}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar{width:5px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar-track{-webkit-box-shadow:inset 0 0 6px rgba(0, 0, 0, 0.3)}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions::-webkit-scrollbar-thumb{background-color:var(--color-gray-05);outline:1px solid var(--color-gray-05)}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li{list-style:none;padding:10px 16px;cursor:pointer;display:block;font-size:14px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li:focus-visible{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li:first-child{padding-top:20px}:host .filter-result-wrap .typeahead-input .suggestion-wrap .suggestions li:last-child{padding-bottom:20px}:host .filter-result-wrap .dropdwon-filter{margin-bottom:10px;width:100%}:host .product-list-wrap{display:none}@media only screen and (min-width: 992px){:host .product-list-wrap{display:block}}:host .product-list-wrap .category-list{display:block;padding:12px 4px;font-size:var(--ptc-font-size-x-small)}:host .product-list-wrap .category-list ptc-para{padding-bottom:4px;display:block}:host .product-list-wrap .category-list ul{padding-left:20px;margin:0}";
|
|
4
|
-
|
|
5
|
-
const PtcProductSidebar = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.selectedResult = createEvent(this, "selectedResult", 7);
|
|
9
|
-
this.clearsearch = createEvent(this, "clearsearch", 7);
|
|
10
|
-
this.inputChanged = createEvent(this, "inputChanged", 7);
|
|
11
|
-
this.emptyResult = createEvent(this, "emptyResult", 7);
|
|
12
|
-
this.searchTerm = '';
|
|
13
|
-
this.suggestions = [];
|
|
14
|
-
this.filterResults = "Filter Results";
|
|
15
|
-
this.filterText = "Filter";
|
|
16
|
-
this.clearText = "Clear";
|
|
17
|
-
this.technologyText = "Technology";
|
|
18
|
-
this.jumpToProduct = "Jump to Product";
|
|
19
|
-
this.selectTechnology = "Select a technology";
|
|
20
|
-
this.suggestionList = [];
|
|
21
|
-
}
|
|
22
|
-
componentWillLoad() {
|
|
23
|
-
this.getDomData();
|
|
24
|
-
}
|
|
25
|
-
componentDidLoad() {
|
|
26
|
-
this.productListWrap = this.hostElement.shadowRoot.querySelector('.product-list-wrap');
|
|
27
|
-
this.clearBtn = this.hostElement.shadowRoot.querySelector('.clear-cta');
|
|
28
|
-
this.inputBox = this.hostElement.shadowRoot.querySelector('#searchBox');
|
|
29
|
-
}
|
|
30
|
-
// Getting category title and products list
|
|
31
|
-
getDomData() {
|
|
32
|
-
const categoryList = document.querySelectorAll('ptc-product-category');
|
|
33
|
-
categoryList.forEach(category => {
|
|
34
|
-
let categoryTitle = category.getAttribute('category-title');
|
|
35
|
-
let categoryObject = { categoryName: categoryTitle, products: [] };
|
|
36
|
-
this.suggestionList.push(categoryObject);
|
|
37
|
-
let productList = category.querySelectorAll('ptc-product-card');
|
|
38
|
-
productList.forEach(product => {
|
|
39
|
-
let productTitle = product.getAttribute('card-title');
|
|
40
|
-
categoryObject.products.push(productTitle);
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
handleInputChange(event) {
|
|
45
|
-
const inputElement = event.target;
|
|
46
|
-
this.searchTerm = inputElement.value.toLocaleLowerCase();
|
|
47
|
-
this.clearBtn.classList.add('show');
|
|
48
|
-
this.getSuggestions();
|
|
49
|
-
this.inputChanged.emit({
|
|
50
|
-
'sender': this,
|
|
51
|
-
'event': event,
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
getSuggestions() {
|
|
55
|
-
const searchTerm = this.searchTerm.toLowerCase();
|
|
56
|
-
const suggestions = this.suggestionList.reduce((acc, item) => {
|
|
57
|
-
if (item.categoryName.toLowerCase().includes(searchTerm)) {
|
|
58
|
-
acc.push(item.categoryName); // Include the category if it matches the search term
|
|
59
|
-
}
|
|
60
|
-
const matchedProducts = item.products.filter((product) => product.toLowerCase().includes(searchTerm));
|
|
61
|
-
if (matchedProducts.length > 0) {
|
|
62
|
-
acc.push(...matchedProducts); // Include the matching products
|
|
63
|
-
}
|
|
64
|
-
return acc;
|
|
65
|
-
}, []);
|
|
66
|
-
this.suggestions = suggestions;
|
|
67
|
-
}
|
|
68
|
-
handleSelectSuggestion(suggestion, event) {
|
|
69
|
-
this.searchTerm = suggestion;
|
|
70
|
-
this.productListWrap.classList.add('hide');
|
|
71
|
-
this.selectedResult.emit({
|
|
72
|
-
'sender': this,
|
|
73
|
-
'event': event,
|
|
74
|
-
'searchTerm': this.searchTerm
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
handleKeyUp(e) {
|
|
78
|
-
const inputElement = e.target;
|
|
79
|
-
this.searchTerm = inputElement.value.toLocaleLowerCase();
|
|
80
|
-
if (e.keyCode === 13 && this.suggestions.length == 0) {
|
|
81
|
-
this.emptyResult.emit({
|
|
82
|
-
'sender': this,
|
|
83
|
-
'event': e,
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
else if (e.key === 'Escape') {
|
|
87
|
-
this.clearSearch(e);
|
|
88
|
-
this.inputBox.focus();
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
handleKeyDownClearCta(e) {
|
|
92
|
-
if (e.key === 'Enter') {
|
|
93
|
-
this.clearSearch(e);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
clearSearch(event) {
|
|
97
|
-
let input = this.hostElement.shadowRoot.querySelector('input');
|
|
98
|
-
this.productListWrap.classList.remove('hide');
|
|
99
|
-
this.clearBtn.classList.remove('show');
|
|
100
|
-
if (input) {
|
|
101
|
-
input.value = "";
|
|
102
|
-
}
|
|
103
|
-
this.suggestions = [];
|
|
104
|
-
this.clearsearch.emit({
|
|
105
|
-
'sender': this,
|
|
106
|
-
'event': event,
|
|
107
|
-
'searchTerm': input.value
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
handleDropdownTouched(event) {
|
|
111
|
-
const { sender, isOpen } = event.detail;
|
|
112
|
-
if (sender) {
|
|
113
|
-
if (isOpen) {
|
|
114
|
-
let input = this.hostElement.shadowRoot.querySelector('input');
|
|
115
|
-
if (input) {
|
|
116
|
-
input.value = "";
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
handleClick() {
|
|
122
|
-
this.suggestions = [];
|
|
123
|
-
}
|
|
124
|
-
handleclearCtaClicked(eve) {
|
|
125
|
-
const { sender, event } = eve.detail;
|
|
126
|
-
if (sender) {
|
|
127
|
-
this.clearSearch(event);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
handleSelectedValues(event) {
|
|
131
|
-
const { sender, selectedOptions } = event.detail;
|
|
132
|
-
if (sender) {
|
|
133
|
-
if (selectedOptions.length > 0) {
|
|
134
|
-
this.clearBtn.classList.add('show');
|
|
135
|
-
this.productListWrap.classList.add('hide');
|
|
136
|
-
}
|
|
137
|
-
else {
|
|
138
|
-
this.clearBtn.classList.remove('show');
|
|
139
|
-
this.productListWrap.classList.remove('hide');
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
handleSuggestionKeyDown(e, index, suggestion) {
|
|
144
|
-
var _a;
|
|
145
|
-
const listItems = (_a = e.currentTarget.parentElement) === null || _a === void 0 ? void 0 : _a.querySelectorAll('li');
|
|
146
|
-
if (!listItems)
|
|
147
|
-
return;
|
|
148
|
-
if (e.key === 'Enter') {
|
|
149
|
-
this.handleSelectSuggestion(suggestion, e);
|
|
150
|
-
this.suggestions = [];
|
|
151
|
-
}
|
|
152
|
-
else if (e.key === 'Tab') {
|
|
153
|
-
e.preventDefault();
|
|
154
|
-
const isShift = e.shiftKey;
|
|
155
|
-
const nextIndex = isShift
|
|
156
|
-
? (index - 1 + listItems.length) % listItems.length
|
|
157
|
-
: (index + 1) % listItems.length;
|
|
158
|
-
listItems[nextIndex].focus();
|
|
159
|
-
}
|
|
160
|
-
else if (e.key === 'Escape') {
|
|
161
|
-
this.clearSearch(e);
|
|
162
|
-
this.inputBox.focus();
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
render() {
|
|
166
|
-
return (h(Host, { class: 'search-box' }, h("div", { class: "filter-result-wrap white-box" }, h("div", { class: "result-header" }, h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium", "title-height": "densest" }, this.filterResults), h("span", { class: "clear-cta", onClick: (e) => this.clearSearch(e), tabIndex: 0, onKeyDown: (e) => { this.handleKeyDownClearCta(e); } }, this.clearText)), h("div", { class: "sort-wrap" }, h("div", { class: "typeahead-input" }, h("label", { htmlFor: "searchBox" }, this.filterText), h("div", { class: "input-wrap" }, h("svg", { width: "19", height: "18", viewBox: "0 0 19 18", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { d: "M0.208984 0V1.2375L6.95898 7.65V14.2875L11.5715 17.8875V7.65L18.209 1.35V0H0.208984Z", fill: "#323B42" })), h("input", { type: "text", value: this.searchTerm, onInput: (event) => this.handleInputChange(event), onKeyUp: (e) => this.handleKeyUp(e), id: 'searchBox' })), this.suggestions.length > 0 &&
|
|
167
|
-
h("div", { class: "suggestion-wrap" }, h("ul", { class: "suggestions" }, this.suggestions.map((suggestion, index) => (h("li", { onClick: (e) => this.handleSelectSuggestion(suggestion, e), tabIndex: 0, onKeyDown: (e) => this.handleSuggestionKeyDown(e, index, suggestion) }, suggestion)))))), h("div", { class: "dropdwon-filter" }, h("label", { htmlFor: "tech-dropdown" }, this.technologyText), h("ptc-product-dropdown", { placeholder: this.selectTechnology, id: "tech-dropdown" }, this.suggestionList.map((item) => (h("span", null, item.categoryName))))))), h("ptc-spacer", { size: "large" }), h("ptc-spacer", { size: "large" }), h("div", { class: "product-list-wrap white-box" }, h("ptc-title", { type: "h3", "title-margin": "margin-flush", upperline: "no-upperline", "title-size": "medium", "title-height": "densest" }, this.jumpToProduct), this.suggestionList.map((item) => (h("div", { class: "category-list" }, h("ptc-para", { "font-size": 'x-small', "font-weight": 'w-7', "para-line-h": "line-height-densest", "para-margin": 'margin-flush' }, h("list-item", { "list-type": "list-underline", "link-href": '#' + item.categoryName }, h("ptc-tooltip", { "text-display": "inline", "text-lines": "4", "z-index": "z-2", description: item.categoryName, position: "bottom" }))), h("div", { class: "product-list" }, h("ul", null, item.products.map((product) => (h("list-item", { "list-type": "list-underline", "link-href": '#' + product }, product)))))))))));
|
|
168
|
-
}
|
|
169
|
-
get hostElement() { return getElement(this); }
|
|
170
|
-
};
|
|
171
|
-
PtcProductSidebar.style = ptcProductSidebarCss;
|
|
172
|
-
|
|
173
|
-
export { PtcProductSidebar as ptc_product_sidebar };
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
|
|
3
|
-
const ptcReadmoreCss = "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}.box input{opacity:0;position:absolute;pointer-events:none}.box .read-more-text{display:-webkit-box;-webkit-box-orient:vertical;margin:0;overflow:hidden;word-wrap:break-word}.box .line1{-webkit-line-clamp:1}.box .line2{-webkit-line-clamp:2}.box .line3{-webkit-line-clamp:3}.box .line4{-webkit-line-clamp:4}.box .line5{-webkit-line-clamp:5}.box .line10{-webkit-line-clamp:10}.box input~label{display:block;position:relative;cursor:pointer;right:0;margin-top:var(--ptc-element-spacing-02);font-weight:var(--ptc-font-weight-bold);font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest);text-decoration-line:underline;color:var(--color-hyperlink);text-align:right;margin-right:var(--ptc-element-spacing-07)}.box input~label.left{text-align:left}.box input~label.right{text-align:right}.box input~label.center{text-align:center;margin-right:0}.box label:focus-visible{outline:none}.box label:focus-visible span{border-radius:var(--ptc-border-radius-standard);outline:5px solid var(--keyboard-nav-outline)}.box .z-auto{z-index:auto}.box .z-1{z-index:1}.box .z-2{z-index:2}.box .z-3{z-index:3}.box .z-999{z-index:999}.box input:checked+.read-more-text{-webkit-line-clamp:unset !important}.box .read-more-text:not(.truncated)~label{display:none}.box .show-less-cta{display:block !important}:host .box.add-icon .read-more-cta-label span{display:inline-block;position:relative;padding-right:var(--ptc-element-spacing-03)}:host .box.add-icon .read-more-cta-label span::after{content:\"\";background-image:url(\"data:image/svg+xml,%3Csvg viewBox='0 0 10 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%2300890B' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E\");width:10px;height:7px;background-size:cover;position:absolute;right:-5px;bottom:7px}:host .box.add-icon .read-more-cta-label.show-less-cta span::after{transform:rotate(180deg)}:host .box.blue .read-more-cta-label{color:var(--color-hyperlink)}:host .box.gray .read-more-cta-label{color:var(--color-gray-10)}:host .box.green .read-more-cta-label{color:var(--color-green-07)}:host .box.initial .read-more-cta-label{color:initial}:host .box.small .read-more-cta-label{font-size:var(--ptc-font-size-x-small);line-height:var(--ptc-line-height-densest)}:host .box.medium .read-more-cta-label{font-size:var(--ptc-font-size-small);line-height:var(--ptc-line-height-p)}:host .box.large .read-more-cta-label{font-size:var(--ptc-font-size-large);line-height:var(--ptc-line-height-p)}:host .box.large.add-icon .read-more-cta-label span{padding-right:var(--ptc-element-spacing-04)}:host .box.large.add-icon .read-more-cta-label span::after{width:15px;height:10px}";
|
|
4
|
-
|
|
5
|
-
const PtcReadmore = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.readmoreToggle = createEvent(this, "readmoreToggle", 7);
|
|
9
|
-
/**
|
|
10
|
-
* Handle keyboard interactions
|
|
11
|
-
*/
|
|
12
|
-
this.handleKeyDown = (event) => {
|
|
13
|
-
if (event.key !== 'Enter')
|
|
14
|
-
return;
|
|
15
|
-
const checkBoxEl = this.el.shadowRoot.querySelector('#expanded');
|
|
16
|
-
const cta = this.el.shadowRoot.querySelector('.read-more-cta-label');
|
|
17
|
-
if (!checkBoxEl || !cta)
|
|
18
|
-
return;
|
|
19
|
-
checkBoxEl.checked = !checkBoxEl.checked;
|
|
20
|
-
const isExpanded = checkBoxEl.checked;
|
|
21
|
-
cta.innerHTML = `<span>${isExpanded ? this.lessText || '' : this.moreText || ''}</span>`;
|
|
22
|
-
cta.classList.toggle('show-less-cta', isExpanded);
|
|
23
|
-
if (isExpanded) {
|
|
24
|
-
// Focus on the first element with tabindex="-1" within 'ptc-readmore'
|
|
25
|
-
const firstTabIndexMinusOne = this.el.querySelector('[tabindex="-1"]');
|
|
26
|
-
firstTabIndexMinusOne === null || firstTabIndexMinusOne === void 0 ? void 0 : firstTabIndexMinusOne.focus();
|
|
27
|
-
}
|
|
28
|
-
else {
|
|
29
|
-
cta.focus();
|
|
30
|
-
const readMoreText = this.el.shadowRoot.querySelector('.read-more-text');
|
|
31
|
-
readMoreText === null || readMoreText === void 0 ? void 0 : readMoreText.classList.add('truncated');
|
|
32
|
-
}
|
|
33
|
-
this.setTabIndex();
|
|
34
|
-
// if lessText content is not present then add tabindex=-1 to the more/less label
|
|
35
|
-
if (cta.textContent == '') {
|
|
36
|
-
cta.setAttribute('tabindex', '-1');
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
this.moreText = 'read more';
|
|
40
|
-
this.lessText = undefined;
|
|
41
|
-
this.readMorePosition = 'right';
|
|
42
|
-
this.display = 'inline';
|
|
43
|
-
this.visibleLines = 'line2';
|
|
44
|
-
this.visibleLinesCustom = undefined;
|
|
45
|
-
this.zIndex = 'z-auto';
|
|
46
|
-
this.checked = false;
|
|
47
|
-
this.size = 'small';
|
|
48
|
-
this.isIcon = false;
|
|
49
|
-
this.color = 'blue';
|
|
50
|
-
this.isContentSlotted = false;
|
|
51
|
-
}
|
|
52
|
-
async updateReadmoreStatus() {
|
|
53
|
-
setTimeout(() => {
|
|
54
|
-
this.addBtnTruncated();
|
|
55
|
-
}, 100);
|
|
56
|
-
}
|
|
57
|
-
addBtnTruncated() {
|
|
58
|
-
const appRoot = this.el.shadowRoot;
|
|
59
|
-
const ps = appRoot.querySelectorAll('.read-more-text');
|
|
60
|
-
ps.forEach(p => {
|
|
61
|
-
// if (this.visibleCharacters){
|
|
62
|
-
// const truncatedText = p.textContent.slice(0, this.visibleCharacters);
|
|
63
|
-
// p.textContent = truncatedText;
|
|
64
|
-
// }
|
|
65
|
-
p.classList[p.scrollHeight > p.clientHeight ? 'add' : 'remove']('truncated');
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
// Created this function to initialize the truncate function on specific elements like tabs
|
|
69
|
-
enableAddTruncatedClass(element) {
|
|
70
|
-
const allTabHeaders = document.querySelectorAll(element);
|
|
71
|
-
for (const element of Array.from(allTabHeaders)) {
|
|
72
|
-
let tabHeader = element;
|
|
73
|
-
if (tabHeader) {
|
|
74
|
-
tabHeader.addEventListener('click', () => {
|
|
75
|
-
setTimeout(() => {
|
|
76
|
-
this.addBtnTruncated();
|
|
77
|
-
}, 100);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
componentDidLoad() {
|
|
83
|
-
this.addBtnTruncated();
|
|
84
|
-
document.addEventListener("readystatechange", () => {
|
|
85
|
-
if (document.readyState === "complete") {
|
|
86
|
-
this.addBtnTruncated();
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
this.enableAddTruncatedClass('tab-header');
|
|
90
|
-
this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
|
|
91
|
-
this.enableAddTruncatedClass('ptc-product-card');
|
|
92
|
-
// added code for tabnavigation
|
|
93
|
-
setTimeout(() => {
|
|
94
|
-
this.setTabIndex();
|
|
95
|
-
}, 400);
|
|
96
|
-
}
|
|
97
|
-
setTabIndex() {
|
|
98
|
-
var _a, _b, _c;
|
|
99
|
-
//debugger
|
|
100
|
-
let links;
|
|
101
|
-
if (!this.isContentSlotted) {
|
|
102
|
-
links = (_a = this.el) === null || _a === void 0 ? void 0 : _a.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
103
|
-
}
|
|
104
|
-
else {
|
|
105
|
-
let slot = (_b = this.el) === null || _b === void 0 ? void 0 : _b.querySelector('slot').assignedNodes();
|
|
106
|
-
links = (slot[0] instanceof HTMLElement)
|
|
107
|
-
? slot[0].querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])')
|
|
108
|
-
: null;
|
|
109
|
-
}
|
|
110
|
-
let bottom = 999999;
|
|
111
|
-
let rects = (_c = this.el.shadowRoot.querySelector('.read-more-text')) === null || _c === void 0 ? void 0 : _c.getClientRects();
|
|
112
|
-
if (rects && rects.length > 0) {
|
|
113
|
-
bottom = rects[0].bottom;
|
|
114
|
-
}
|
|
115
|
-
if (links) {
|
|
116
|
-
links.forEach(link => {
|
|
117
|
-
let linkRects = link.getClientRects();
|
|
118
|
-
if (linkRects && linkRects.length > 0) {
|
|
119
|
-
if (linkRects[0].top < bottom) {
|
|
120
|
-
link.setAttribute('tabindex', '0');
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
link.setAttribute('tabindex', '-1');
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
// click event handler
|
|
130
|
-
handleClick(event) {
|
|
131
|
-
var _a;
|
|
132
|
-
let links = (_a = this.el) === null || _a === void 0 ? void 0 : _a.querySelectorAll('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');
|
|
133
|
-
this.addBtnTruncated();
|
|
134
|
-
// check if the input box is checked
|
|
135
|
-
this.checked = event.target.checked;
|
|
136
|
-
// Getting cta element
|
|
137
|
-
const cta = this.el.shadowRoot.querySelector('.read-more-cta-label');
|
|
138
|
-
// Updating the cta text
|
|
139
|
-
this.checked
|
|
140
|
-
? cta.innerHTML = `<span> ${this.lessText ? this.lessText : ''} </span>`
|
|
141
|
-
: cta.innerHTML = `<span> ${this.moreText ? this.moreText : ''}</span>`;
|
|
142
|
-
this.checked ? cta.classList.add('show-less-cta') : cta.classList.remove('show-less-cta');
|
|
143
|
-
// Emit the state change event
|
|
144
|
-
this.readmoreToggle.emit({
|
|
145
|
-
event: event,
|
|
146
|
-
sender: this.el,
|
|
147
|
-
isExpanded: this.checked,
|
|
148
|
-
});
|
|
149
|
-
if (links) {
|
|
150
|
-
if (this.checked) {
|
|
151
|
-
links.forEach(link => {
|
|
152
|
-
link.setAttribute('tabindex', '0');
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
this.setTabIndex();
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
render() {
|
|
161
|
-
const classMap = this.getCssClassMap();
|
|
162
|
-
return (h(Host, { class: this.display }, h("div", { class: classMap }, h("input", { type: "checkbox", id: "expanded", onClick: (e) => this.handleClick(e), tabIndex: -1 }), !!this.visibleLines || !!this.visibleLinesCustom ? h("p", { class: `read-more-text ${this.visibleLines}`, style: { WebkitLineClamp: `${this.visibleLinesCustom}` } }, h("slot", null)) : null, h("label", { onKeyDown: this.handleKeyDown, htmlFor: "expanded", role: "button", class: `${this.zIndex + ' ' + this.readMorePosition} read-more-cta-label mf-listen`, tabIndex: 0 }, h("span", null, this.moreText)))));
|
|
163
|
-
}
|
|
164
|
-
getCssClassMap() {
|
|
165
|
-
return {
|
|
166
|
-
['box']: true,
|
|
167
|
-
[this.color]: true,
|
|
168
|
-
[this.size]: true,
|
|
169
|
-
['add-icon']: this.isIcon
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
get el() { return getElement(this); }
|
|
173
|
-
};
|
|
174
|
-
PtcReadmore.style = ptcReadmoreCss;
|
|
175
|
-
|
|
176
|
-
export { PtcReadmore as ptc_readmore };
|