@ptcwebops/ptcw-design 6.2.21 → 6.2.22-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/blog-detail-content_2.cjs.entry.js +1 -1
- package/dist/cjs/blog-detail-layout.cjs.entry.js +1 -1
- package/dist/cjs/blogs-search-section.cjs.entry.js +1 -1
- package/dist/cjs/{component-06dda623.js → component-4dd13907.js} +2643 -832
- package/dist/cjs/event-jumbotron-example.cjs.entry.js +146 -0
- package/dist/cjs/event-podcast-slider-example.cjs.entry.js +7 -13
- package/dist/cjs/featured-list.cjs.entry.js +1 -1
- package/dist/cjs/homepage-jumbotron.cjs.entry.js +1 -1
- package/dist/cjs/homepage-toggled-content.cjs.entry.js +1 -1
- package/dist/cjs/icon-asset_18.cjs.entry.js +1501 -0
- package/dist/cjs/innovator-toggle-container.cjs.entry.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/modal-form-example.cjs.entry.js +94 -0
- package/dist/cjs/most-popular-news.cjs.entry.js +1 -1
- package/dist/cjs/my-component.cjs.entry.js +1 -1
- package/dist/cjs/ptc-accordion-item.cjs.entry.js +1 -1
- package/dist/cjs/ptc-bio-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-card-bottom_2.cjs.entry.js +155 -0
- package/dist/cjs/ptc-card-content.cjs.entry.js +76 -0
- package/dist/cjs/ptc-card_2.cjs.entry.js +3 -8
- package/dist/cjs/ptc-case-studies-slider.cjs.entry.js +1 -1
- package/dist/cjs/ptc-close-icon_2.cjs.entry.js +239 -0
- package/dist/cjs/ptc-collapse-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-data-lookup.cjs.entry.js +1 -2
- package/dist/cjs/ptc-featured-list.cjs.entry.js +1 -1
- package/dist/cjs/ptc-filter-level-theater.cjs.entry.js +1 -1
- package/dist/cjs/ptc-footer.cjs.entry.js +1 -1
- package/dist/cjs/{ptc-form-checkbox_2.cjs.entry.js → ptc-form-checkbox_4.cjs.entry.js} +787 -5
- package/dist/cjs/ptc-homepage-image-feature.cjs.entry.js +1 -1
- package/dist/cjs/ptc-homepage-video-background.cjs.entry.js +1 -1
- package/dist/cjs/ptc-icon-card.cjs.entry.js +8 -2
- package/dist/cjs/ptc-icon-component.cjs.entry.js +2 -39
- package/dist/cjs/ptc-icon-minimize.cjs.entry.js +3 -50
- package/dist/cjs/ptc-link.cjs.entry.js +87 -0
- package/dist/cjs/ptc-media-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-podcast-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-previous-url.cjs.entry.js +10 -2
- package/dist/cjs/ptc-pricing-packaging-table.cjs.entry.js +1 -1
- package/dist/cjs/ptc-pricing-tabs.cjs.entry.js +2 -2
- package/dist/cjs/ptc-product-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-category.cjs.entry.js +1 -1
- package/dist/cjs/ptc-product-highlight-card.cjs.entry.js +1 -1
- package/dist/cjs/ptc-readmore-char.cjs.entry.js +1 -1
- package/dist/cjs/ptc-readmore-v3.cjs.entry.js +1 -1
- package/dist/cjs/ptc-scroll-button.cjs.entry.js +136 -0
- package/dist/cjs/ptc-social-icons-footer.cjs.entry.js +7 -2
- package/dist/cjs/ptc-sticky-title.cjs.entry.js +2 -2
- package/dist/cjs/ptc-tooltip-v2.cjs.entry.js +1 -1
- package/dist/cjs/ptc-value-led-speed-bump.cjs.entry.js +1 -1
- package/dist/cjs/ptc-white-paper.cjs.entry.js +2 -2
- package/dist/cjs/ptcw-design.cjs.js +1 -1
- package/dist/cjs/{utils-87d7b99f.js → utils-ad441b07.js} +9 -0
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/icon-asset/icon-asset.css +0 -6
- package/dist/collection/components/icon-asset/media/designer-v6.0.6.svg +30 -2
- package/dist/collection/components/innovator-toggle-container/innovator-toggle-container.css +20 -12
- package/dist/collection/components/organism-bundles/bundle-featured-list/featured-list.css +20 -9
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.css +3 -25
- package/dist/collection/components/organism-bundles/event-jumbotron-example/event-jumbotron-example.js +1 -3
- package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.css +71 -23
- package/dist/collection/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.js +30 -12
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.css +26 -0
- package/dist/collection/components/organism-bundles/form/modal-from-example/modal-form-example.js +99 -0
- package/dist/collection/components/ptc-bio-card/ptc-bio-card.css +20 -12
- package/dist/collection/components/ptc-button/ptc-button.js +4 -1
- package/dist/collection/components/ptc-card/ptc-card.css +0 -1
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.css +0 -2
- package/dist/collection/components/ptc-card-wrapper/ptc-card-wrapper.js +1 -20
- package/dist/collection/components/ptc-case-studies-slider/ptc-case-studies-slider.css +20 -12
- package/dist/collection/components/ptc-featured-list/ptc-featured-list.css +20 -12
- package/dist/collection/components/ptc-filter-level-theater/ptc-filter-level-theater.css +20 -12
- package/dist/collection/components/ptc-footer/ptc-footer-v2.css +14 -1
- package/dist/collection/components/ptc-icon-card/ptc-icon-card.css +10 -0
- package/dist/collection/components/ptc-icon-card/ptc-icon-card.js +25 -1
- package/dist/collection/components/ptc-icon-component/ptc-icon-component.css +0 -12
- package/dist/collection/components/ptc-icon-component/ptc-icon-component.js +1 -38
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.css +0 -8
- package/dist/collection/components/ptc-icon-minimize/ptc-icon-minimize.js +2 -67
- package/dist/collection/components/ptc-jumbotron/ptc-jumbotron.css +32 -12
- package/dist/collection/components/ptc-link/ptc-link.css +8 -0
- package/dist/collection/components/ptc-link/ptc-link.js +4 -1
- package/dist/collection/components/ptc-modal/ptc-modal.css +6 -13
- package/dist/collection/components/ptc-modal/ptc-modal.js +19 -2
- package/dist/collection/components/ptc-para/ptc-para.css +3 -0
- package/dist/collection/components/ptc-para/ptc-para.js +2 -2
- package/dist/collection/components/ptc-podcast-card/ptc-podcast-card.css +20 -12
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.css +26 -116
- package/dist/collection/components/ptc-preloader-section/ptc-preloader-section.js +1 -6
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.css +16 -0
- package/dist/collection/components/ptc-previous-url/ptc-previous-url.js +27 -1
- package/dist/collection/components/ptc-pricing-tabs/ptc-pricing-tabs.css +12 -0
- package/dist/collection/components/ptc-product-card/ptc-product-card.css +20 -12
- package/dist/collection/components/ptc-product-category/ptc-product-category.css +20 -12
- package/dist/collection/components/ptc-product-highlight-card/ptc-product-highlight-card.css +20 -12
- package/dist/collection/components/ptc-readmore-char/ptc-readmore-char.css +20 -12
- package/dist/collection/components/ptc-readmore-v3/ptc-readmore-v3.css +20 -12
- package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.css +10 -0
- package/dist/collection/components/ptc-social-icons-footer/ptc-social-icons-footer.js +24 -1
- package/dist/collection/components/ptc-sticky-title/ptc-sticky-title.js +2 -2
- package/dist/collection/components/ptc-tooltip-v2/ptc-tooltip-v2.css +20 -12
- package/dist/collection/components/ptc-value-led-speed-bump/ptc-value-led-speed-bump.css +20 -12
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.css +20 -12
- package/dist/collection/components/ptc-white-paper/ptc-white-paper.js +1 -1
- package/dist/collection/components/subnav/ptc-nav-link/ptc-nav-link.css +6 -0
- package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.css +8 -0
- package/dist/collection/components/subnav/ptc-nav-slider/ptc-nav-slider.js +3 -0
- package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.css +7 -0
- package/dist/collection/components/subnav/ptc-nav-submenu/ptc-nav-submenu.js +9 -1
- package/dist/collection/stories/organisms/eSupport/CaseTracker/preview.stories.js +45 -0
- package/dist/collection/stories/organisms/eSupport/SupportArticle/preview.stories.js +47 -0
- package/dist/collection/stories/organisms/eSupport/SupportPage/preview.stories.js +157 -0
- package/dist/collection/utils/utils.js +8 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +210 -159
- 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-274da230.js → component-9c921cc6.js} +2592 -793
- 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 +142 -0
- package/dist/esm/event-podcast-slider-example.entry.js +8 -14
- package/dist/esm/featured-events-slider-example.entry.js +1 -1
- package/dist/esm/featured-list.entry.js +2 -2
- package/dist/esm/fl-tab-content_3.entry.js +1 -1
- package/dist/esm/footer-form.entry.js +1 -1
- package/dist/esm/homepage-clickable-tab.entry.js +1 -1
- package/dist/esm/homepage-jumbotron.entry.js +2 -2
- package/dist/esm/homepage-toggled-content.entry.js +2 -2
- package/dist/esm/icon-asset_18.entry.js +1480 -0
- package/dist/esm/{index-c83db688.js → index-0bf594c4.js} +1 -1
- package/dist/esm/innovator-toggle-container.entry.js +2 -2
- 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/modal-form-example.entry.js +90 -0
- package/dist/esm/most-popular-news.entry.js +2 -2
- package/dist/esm/my-component.entry.js +2 -2
- package/dist/esm/news-search-result.entry.js +1 -1
- package/dist/esm/ptc-accordion-item.entry.js +2 -2
- package/dist/esm/ptc-accordion.entry.js +1 -1
- package/dist/esm/ptc-announcement.entry.js +1 -1
- package/dist/esm/ptc-back-to-top.entry.js +1 -1
- package/dist/esm/ptc-badge.entry.js +1 -1
- package/dist/esm/ptc-bio-card.entry.js +2 -2
- package/dist/esm/ptc-brightcov-video.entry.js +1 -1
- package/dist/esm/ptc-card-bottom_2.entry.js +150 -0
- package/dist/esm/ptc-card-content.entry.js +72 -0
- package/dist/esm/ptc-card_2.entry.js +4 -9
- 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 +234 -0
- package/dist/esm/ptc-collapse-list.entry.js +2 -2
- package/dist/esm/ptc-container.entry.js +1 -1
- package/dist/esm/ptc-countdown.entry.js +1 -1
- package/dist/esm/ptc-data-lookup.entry.js +2 -3
- package/dist/esm/ptc-date.entry.js +1 -1
- package/dist/esm/ptc-dropdown.entry.js +1 -1
- package/dist/esm/ptc-dynamic-card.entry.js +1 -1
- package/dist/esm/ptc-ellipsis-dropdown.entry.js +1 -1
- package/dist/esm/ptc-embedded-quiz.entry.js +1 -1
- package/dist/esm/ptc-featured-list.entry.js +2 -2
- package/dist/esm/ptc-filter-dropdown_4.entry.js +1 -1
- package/dist/esm/ptc-filter-level-theater.entry.js +2 -2
- package/dist/esm/ptc-filter-tag_2.entry.js +1 -1
- package/dist/esm/ptc-footer.entry.js +2 -2
- package/dist/esm/{ptc-form-checkbox_2.entry.js → ptc-form-checkbox_4.entry.js} +785 -5
- 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.entry.js +9 -3
- package/dist/esm/ptc-icon-component.entry.js +3 -40
- package/dist/esm/ptc-icon-list.entry.js +1 -1
- package/dist/esm/ptc-icon-minimize.entry.js +4 -51
- package/dist/esm/ptc-image-download-strip.entry.js +1 -1
- package/dist/esm/ptc-info-tile.entry.js +1 -1
- package/dist/esm/ptc-inline-cta.entry.js +1 -1
- package/dist/esm/ptc-link.entry.js +83 -0
- 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-pills.entry.js +1 -1
- package/dist/esm/ptc-nav-skip-to-content.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 +2 -2
- package/dist/esm/ptc-preferance-center-form.entry.js +1 -1
- package/dist/esm/ptc-previous-url.entry.js +11 -3
- package/dist/esm/ptc-pricing-add-on-card.entry.js +1 -1
- package/dist/esm/ptc-pricing-add-on-section.entry.js +1 -1
- package/dist/esm/ptc-pricing-block.entry.js +1 -1
- package/dist/esm/ptc-pricing-packaging-table.entry.js +2 -2
- package/dist/esm/ptc-pricing-tabs.entry.js +3 -3
- package/dist/esm/ptc-product-card.entry.js +2 -2
- package/dist/esm/ptc-product-category.entry.js +2 -2
- package/dist/esm/ptc-product-dropdown.entry.js +1 -1
- package/dist/esm/ptc-product-highlight-card.entry.js +2 -2
- package/dist/esm/ptc-product-list.entry.js +1 -1
- package/dist/esm/ptc-product-sidebar.entry.js +1 -1
- package/dist/esm/ptc-progress-bar.entry.js +1 -1
- package/dist/esm/ptc-quantity-counter.entry.js +1 -1
- package/dist/esm/ptc-quote.entry.js +1 -1
- package/dist/esm/ptc-readmore-char.entry.js +2 -2
- package/dist/esm/ptc-readmore-new.entry.js +1 -1
- package/dist/esm/ptc-readmore-v3.entry.js +2 -2
- package/dist/esm/ptc-readmore.entry.js +1 -1
- package/dist/esm/ptc-related-card-rail.entry.js +1 -1
- package/dist/esm/ptc-responsive-wrapper.entry.js +1 -1
- package/dist/esm/ptc-scroll-button.entry.js +132 -0
- 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 +8 -3
- 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-title.entry.js +3 -3
- package/dist/esm/ptc-subnav-card.entry.js +1 -1
- package/dist/esm/ptc-svg-btn.entry.js +1 -1
- package/dist/esm/ptc-tab-list.entry.js +1 -1
- package/dist/esm/ptc-tab.entry.js +1 -1
- package/dist/esm/ptc-tabs.entry.js +1 -1
- package/dist/esm/ptc-text-copy-with-background.entry.js +1 -1
- package/dist/esm/ptc-theater-video-modal.entry.js +1 -1
- package/dist/esm/ptc-tooltip-v2.entry.js +2 -2
- package/dist/esm/ptc-tooltip-v3.entry.js +1 -1
- package/dist/esm/ptc-two-column-media.entry.js +1 -1
- package/dist/esm/ptc-value-led-card.entry.js +1 -1
- package/dist/esm/ptc-value-led-content-highlight.entry.js +1 -1
- package/dist/esm/ptc-value-led-content.entry.js +1 -1
- package/dist/esm/ptc-value-led-intro.entry.js +1 -1
- package/dist/esm/ptc-value-led-layout.entry.js +1 -1
- package/dist/esm/ptc-value-led-speed-bump.entry.js +2 -2
- package/dist/esm/ptc-value-prop-card.entry.js +1 -1
- package/dist/esm/ptc-video-embed.entry.js +1 -1
- package/dist/esm/ptc-white-paper.entry.js +3 -3
- 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/tab-content.entry.js +1 -1
- package/dist/esm/tab-header.entry.js +1 -1
- package/dist/esm/{utils-b7c6422e.js → utils-ff65c75b.js} +9 -1
- package/dist/ptcw-design/media/designer-v6.0.6.svg +30 -2
- package/dist/ptcw-design/p-01ad1cc2.entry.js +68 -0
- package/dist/ptcw-design/{p-03a917f8.entry.js → p-02f0460b.entry.js} +1 -1
- package/dist/ptcw-design/p-051ba8f9.entry.js +1 -0
- 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-34b270c1.entry.js → p-0c862dbd.entry.js} +1 -1
- package/dist/ptcw-design/p-0eb9ea11.entry.js +1 -0
- package/dist/ptcw-design/{p-fb8584e4.entry.js → p-0ed4609e.entry.js} +1 -1
- package/dist/ptcw-design/p-11eb4dd1.entry.js +1 -0
- package/dist/ptcw-design/{p-c0bb1ad0.entry.js → p-13131b4d.entry.js} +1 -1
- package/dist/ptcw-design/{p-2657df50.entry.js → p-132f71c3.entry.js} +1 -1
- package/dist/ptcw-design/{p-99b45d23.entry.js → p-139ca5d2.entry.js} +1 -1
- package/dist/ptcw-design/{p-27e47c25.entry.js → p-14c77b5e.entry.js} +1 -1
- package/dist/ptcw-design/{p-7d29a418.entry.js → p-183ba1ca.entry.js} +1 -1
- package/dist/ptcw-design/{p-85f32bf5.entry.js → p-1ab6201b.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-6b32020a.entry.js → p-1ec32cbc.entry.js} +1 -1
- package/dist/ptcw-design/{p-c1ebaf0f.entry.js → p-20388467.entry.js} +1 -1
- package/dist/ptcw-design/p-20670bc5.entry.js +1 -0
- package/dist/ptcw-design/p-208ca9de.entry.js +1 -0
- package/dist/ptcw-design/{p-bf8fbba7.entry.js → p-208ec7f3.entry.js} +1 -1
- package/dist/ptcw-design/p-20d837a9.entry.js +1 -0
- package/dist/ptcw-design/p-20d84f63.entry.js +1 -0
- 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-286e048c.entry.js +1 -0
- 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-29ae44dd.entry.js +1 -0
- package/dist/ptcw-design/{p-52b82ac5.entry.js → p-2a255901.entry.js} +1 -1
- package/dist/ptcw-design/{p-e90fbbad.entry.js → p-2a3735a5.entry.js} +1 -1
- package/dist/ptcw-design/p-2d0a9613.entry.js +1 -0
- package/dist/ptcw-design/p-2ee3a32b.entry.js +1 -0
- package/dist/ptcw-design/{p-21fa5abe.entry.js → p-2fd01953.entry.js} +1 -1
- package/dist/ptcw-design/p-330e1a36.entry.js +1 -0
- 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-dc8c0a06.entry.js → p-37899461.entry.js} +1 -1
- package/dist/ptcw-design/{p-6e8ed2ee.entry.js → p-379fcc72.entry.js} +1 -1
- package/dist/ptcw-design/p-39ec04d4.entry.js +1 -0
- package/dist/ptcw-design/p-3a7c5330.entry.js +1 -0
- package/dist/ptcw-design/p-3ada2482.entry.js +1 -0
- package/dist/ptcw-design/{p-867a808f.entry.js → p-3b6c2a79.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-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-ee534211.entry.js → p-4b23b4c3.entry.js} +1 -1
- package/dist/ptcw-design/p-4e41c031.entry.js +1 -0
- package/dist/ptcw-design/p-4e8c87e1.entry.js +1 -0
- package/dist/ptcw-design/p-53d88f2b.entry.js +1 -0
- package/dist/ptcw-design/{p-2c2f895a.entry.js → p-54891548.entry.js} +1 -1
- package/dist/ptcw-design/p-5ae21271.entry.js +1 -0
- package/dist/ptcw-design/{p-f731fc96.entry.js → p-5da98805.entry.js} +1 -1
- 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-640d07b5.entry.js +1 -0
- package/dist/ptcw-design/p-66d50b46.entry.js +1 -0
- package/dist/ptcw-design/p-6a79e68e.entry.js +1 -0
- package/dist/ptcw-design/p-6af8c192.entry.js +1 -0
- package/dist/ptcw-design/{p-9de963f8.entry.js → p-6d628113.entry.js} +1 -1
- package/dist/ptcw-design/{p-f4699d4e.entry.js → p-70a5f144.entry.js} +1 -1
- package/dist/ptcw-design/p-72681e91.entry.js +1 -0
- package/dist/ptcw-design/p-73a41148.entry.js +1 -0
- package/dist/ptcw-design/{p-04aae3f5.entry.js → p-74a845fd.entry.js} +1 -1
- package/dist/ptcw-design/{p-99ee8a0e.entry.js → p-761f71c4.entry.js} +1 -1
- package/dist/ptcw-design/{p-8038bf31.entry.js → p-779c3f21.entry.js} +1 -1
- package/dist/ptcw-design/{p-282b7d4e.entry.js → p-78252282.entry.js} +1 -1
- package/dist/ptcw-design/p-7853f1b5.entry.js +1 -0
- package/dist/ptcw-design/{p-081e969d.entry.js → p-7b75091d.entry.js} +1 -1
- package/dist/ptcw-design/{p-4b192f5e.entry.js → p-7e19be10.entry.js} +1 -1
- package/dist/ptcw-design/{p-3c3a7b54.entry.js → p-7edef9ed.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-48815ee0.entry.js → p-88379d69.entry.js} +1 -1
- package/dist/ptcw-design/p-8872161f.js +1 -0
- package/dist/ptcw-design/{p-9a335b5b.entry.js → p-8eb36507.entry.js} +1 -1
- package/dist/ptcw-design/p-907727fd.entry.js +1 -0
- package/dist/ptcw-design/{p-ac75c7ad.js → p-944c5be8.js} +1 -1
- package/dist/ptcw-design/p-973b06d1.entry.js +1 -0
- package/dist/ptcw-design/p-98083315.entry.js +1 -0
- package/dist/ptcw-design/{p-40b8c884.entry.js → p-986be938.entry.js} +1 -1
- package/dist/ptcw-design/p-99e41dc4.entry.js +1 -0
- package/dist/ptcw-design/{p-bfacfe67.entry.js → p-9a28ded2.entry.js} +1 -1
- package/dist/ptcw-design/p-9ae901e2.entry.js +1 -0
- package/dist/ptcw-design/{p-e38ed0e3.entry.js → p-9b60270e.entry.js} +1 -1
- package/dist/ptcw-design/{p-5db7f70b.entry.js → p-9d32f1bc.entry.js} +1 -1
- package/dist/ptcw-design/{p-3ee2a531.entry.js → p-9dde477c.entry.js} +1 -1
- package/dist/ptcw-design/p-9e6fb4ba.entry.js +1 -0
- package/dist/ptcw-design/p-a220ab2c.entry.js +1 -0
- 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-29639cd4.entry.js → p-a560e839.entry.js} +1 -1
- package/dist/ptcw-design/{p-8191928d.entry.js → p-a974f98f.entry.js} +1 -1
- package/dist/ptcw-design/{p-d20cf3c5.entry.js → p-aaf8fb04.entry.js} +1 -1
- package/dist/ptcw-design/p-aba549b7.entry.js +1 -0
- package/dist/ptcw-design/p-abdd3b8e.entry.js +1 -0
- package/dist/ptcw-design/p-ac32267c.entry.js +1 -0
- package/dist/ptcw-design/{p-a25578e9.entry.js → p-ac78409e.entry.js} +1 -1
- package/dist/ptcw-design/{p-dc85c302.entry.js → p-afbe8e2c.entry.js} +1 -1
- package/dist/ptcw-design/{p-34610052.entry.js → p-b1c1de30.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-7e7ebf0a.entry.js → p-b4ba719a.entry.js} +1 -1
- package/dist/ptcw-design/p-b5d0e4a2.entry.js +1 -0
- package/dist/ptcw-design/p-bcab66bf.js +336 -0
- package/dist/ptcw-design/{p-a7cb3851.entry.js → p-be00fb74.entry.js} +1 -1
- package/dist/ptcw-design/{p-815848f6.entry.js → p-bf076b87.entry.js} +1 -1
- package/dist/ptcw-design/{p-89ba3dfd.entry.js → p-bf2f9183.entry.js} +1 -1
- package/dist/ptcw-design/{p-dbbe35bf.entry.js → p-bf439f9b.entry.js} +1 -1
- package/dist/ptcw-design/{p-38a56ed6.entry.js → p-c05e326f.entry.js} +1 -1
- package/dist/ptcw-design/{p-ffb0ff97.entry.js → p-c415ab42.entry.js} +1 -1
- package/dist/ptcw-design/{p-aac082cf.entry.js → p-c5417010.entry.js} +1 -1
- package/dist/ptcw-design/{p-97b9f41b.entry.js → p-c5886b7b.entry.js} +1 -1
- package/dist/ptcw-design/{p-b59f30d5.entry.js → p-c9518684.entry.js} +1 -1
- package/dist/ptcw-design/{p-04f0b1ba.entry.js → p-c9a73ad1.entry.js} +1 -1
- package/dist/ptcw-design/p-ca268a17.entry.js +1 -0
- package/dist/ptcw-design/{p-5946d7c9.entry.js → p-cab0274c.entry.js} +1 -1
- package/dist/ptcw-design/p-ce6d1c5f.entry.js +1 -0
- package/dist/ptcw-design/{p-1a6759a4.entry.js → p-d113403b.entry.js} +1 -1
- package/dist/ptcw-design/{p-e3bf092e.entry.js → p-d1f57070.entry.js} +1 -1
- package/dist/ptcw-design/{p-72825cf6.entry.js → p-d21cf742.entry.js} +1 -1
- package/dist/ptcw-design/{p-df8526a2.entry.js → p-d871e7f7.entry.js} +1 -1
- package/dist/ptcw-design/{p-a0bf3dd2.entry.js → p-dadbab48.entry.js} +1 -1
- package/dist/ptcw-design/{p-760507e1.entry.js → p-dbb4e7f9.entry.js} +1 -1
- package/dist/ptcw-design/{p-c5f42895.entry.js → p-dd38bf84.entry.js} +1 -1
- package/dist/ptcw-design/{p-d7275289.entry.js → p-e1242dd4.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-e77d2204.entry.js +1 -0
- 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-7a1db471.entry.js → p-ecfc8211.entry.js} +1 -1
- package/dist/ptcw-design/{p-27a4ee73.entry.js → p-eef5d58b.entry.js} +1 -1
- package/dist/ptcw-design/{p-071a6109.entry.js → p-ef0079b0.entry.js} +1 -1
- package/dist/ptcw-design/p-ef55ab3c.entry.js +1 -0
- package/dist/ptcw-design/{p-da02913d.entry.js → p-f05be87f.entry.js} +1 -1
- package/dist/ptcw-design/{p-4f93c631.entry.js → p-f77c7c78.entry.js} +1 -1
- package/dist/ptcw-design/p-fb2e4612.entry.js +1 -0
- package/dist/ptcw-design/{p-4c096997.entry.js → p-fc0d9251.entry.js} +1 -1
- package/dist/ptcw-design/ptcw-design.css +2 -2
- package/dist/ptcw-design/ptcw-design.esm.js +1 -1
- package/dist/types/components/organism-bundles/event-podcast-slider-example/event-podcast-slider-example.d.ts +1 -0
- package/dist/types/components/organism-bundles/form/modal-from-example/modal-form-example.d.ts +25 -0
- package/dist/types/components/ptc-button/ptc-button.d.ts +1 -0
- package/dist/types/components/ptc-card-wrapper/ptc-card-wrapper.d.ts +0 -2
- package/dist/types/components/ptc-icon-card/ptc-icon-card.d.ts +6 -0
- package/dist/types/components/ptc-icon-component/ptc-icon-component.d.ts +0 -5
- package/dist/types/components/ptc-icon-minimize/ptc-icon-minimize.d.ts +0 -2
- package/dist/types/components/ptc-link/ptc-link.d.ts +1 -0
- package/dist/types/components/ptc-modal/ptc-modal.d.ts +2 -1
- package/dist/types/components/ptc-para/ptc-para.d.ts +1 -1
- package/dist/types/components/ptc-previous-url/ptc-previous-url.d.ts +2 -0
- package/dist/types/components/ptc-social-icons-footer/ptc-social-icons-footer.d.ts +5 -0
- package/dist/types/components/subnav/ptc-nav-submenu/ptc-nav-submenu.d.ts +1 -0
- package/dist/types/components.d.ts +37 -14
- package/dist/types/utils/utils.d.ts +1 -0
- package/package.json +1 -1
- package/readme.md +5 -1
- package/dist/cjs/component-5b5b6a98.js +0 -1819
- package/dist/cjs/event-jumbotron-example_15.cjs.entry.js +0 -1374
- package/dist/cjs/interfaces-574e6df7.js +0 -15
- package/dist/cjs/max-width-container.cjs.entry.js +0 -54
- package/dist/cjs/ptc-background-video.cjs.entry.js +0 -102
- package/dist/cjs/ptc-card-bottom.cjs.entry.js +0 -67
- package/dist/cjs/ptc-jumbotron.cjs.entry.js +0 -151
- package/dist/cjs/ptc-multi-select_2.cjs.entry.js +0 -670
- package/dist/cjs/ptc-nav-link.cjs.entry.js +0 -48
- package/dist/cjs/ptc-nav-slider.cjs.entry.js +0 -106
- package/dist/cjs/ptc-nav-submenu.cjs.entry.js +0 -51
- package/dist/cjs/ptc-picture.cjs.entry.js +0 -163
- package/dist/cjs/ptc-sticky-section.cjs.entry.js +0 -70
- package/dist/cjs/ptc-subnav.cjs.entry.js +0 -37
- package/dist/cjs/ptc-tooltip.cjs.entry.js +0 -107
- package/dist/cjs/validation-messages-33a4f26b.js +0 -126
- package/dist/esm/component-341e4eaa.js +0 -1802
- package/dist/esm/event-jumbotron-example_15.entry.js +0 -1356
- package/dist/esm/interfaces-4caedd26.js +0 -12
- package/dist/esm/max-width-container.entry.js +0 -50
- package/dist/esm/ptc-background-video.entry.js +0 -98
- package/dist/esm/ptc-card-bottom.entry.js +0 -63
- package/dist/esm/ptc-jumbotron.entry.js +0 -147
- package/dist/esm/ptc-multi-select_2.entry.js +0 -665
- package/dist/esm/ptc-nav-link.entry.js +0 -44
- package/dist/esm/ptc-nav-slider.entry.js +0 -102
- package/dist/esm/ptc-nav-submenu.entry.js +0 -47
- package/dist/esm/ptc-picture.entry.js +0 -159
- package/dist/esm/ptc-sticky-section.entry.js +0 -66
- package/dist/esm/ptc-subnav.entry.js +0 -33
- package/dist/esm/ptc-tooltip.entry.js +0 -103
- package/dist/esm/validation-messages-adbb6518.js +0 -124
- package/dist/ptcw-design/p-00e21489.entry.js +0 -1
- package/dist/ptcw-design/p-0a214a22.entry.js +0 -1
- package/dist/ptcw-design/p-0cf5bc9e.entry.js +0 -1
- package/dist/ptcw-design/p-0ee01112.entry.js +0 -1
- package/dist/ptcw-design/p-103ec637.entry.js +0 -1
- package/dist/ptcw-design/p-12e61bb5.entry.js +0 -1
- package/dist/ptcw-design/p-17c3f01a.entry.js +0 -1
- package/dist/ptcw-design/p-18a5a338.js +0 -1
- package/dist/ptcw-design/p-18f59395.entry.js +0 -1
- package/dist/ptcw-design/p-1a0bf166.entry.js +0 -1
- package/dist/ptcw-design/p-1ca8a5bf.entry.js +0 -1
- package/dist/ptcw-design/p-2335d57c.entry.js +0 -1
- package/dist/ptcw-design/p-25178331.entry.js +0 -1
- package/dist/ptcw-design/p-260ecfef.entry.js +0 -1
- package/dist/ptcw-design/p-2f7ea1a6.entry.js +0 -1
- package/dist/ptcw-design/p-3738a01f.entry.js +0 -1
- package/dist/ptcw-design/p-398d2ca5.entry.js +0 -1
- package/dist/ptcw-design/p-426715a4.entry.js +0 -1
- package/dist/ptcw-design/p-4cee12b8.entry.js +0 -1
- package/dist/ptcw-design/p-4e2bb0e0.entry.js +0 -1
- package/dist/ptcw-design/p-58bb25e6.entry.js +0 -1
- package/dist/ptcw-design/p-5feaea80.entry.js +0 -1
- package/dist/ptcw-design/p-711bcdad.js +0 -1
- package/dist/ptcw-design/p-759f6457.entry.js +0 -1
- package/dist/ptcw-design/p-841b807d.js +0 -1
- package/dist/ptcw-design/p-863b5b20.entry.js +0 -68
- package/dist/ptcw-design/p-885b3428.entry.js +0 -1
- package/dist/ptcw-design/p-8c692bd6.entry.js +0 -1
- package/dist/ptcw-design/p-97eb1025.entry.js +0 -1
- package/dist/ptcw-design/p-999d1c9f.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-9fe0c27d.entry.js +0 -1
- package/dist/ptcw-design/p-a114198f.entry.js +0 -1
- package/dist/ptcw-design/p-a4f65d28.entry.js +0 -1
- package/dist/ptcw-design/p-a54c6da5.entry.js +0 -1
- package/dist/ptcw-design/p-a8f30586.entry.js +0 -1
- package/dist/ptcw-design/p-b436f56d.entry.js +0 -1
- package/dist/ptcw-design/p-b50f71dd.entry.js +0 -1
- package/dist/ptcw-design/p-be533f0d.js +0 -134
- package/dist/ptcw-design/p-c1513c3f.js +0 -203
- package/dist/ptcw-design/p-c89030e4.entry.js +0 -1
- package/dist/ptcw-design/p-cffebefe.entry.js +0 -1
- package/dist/ptcw-design/p-d1857ada.entry.js +0 -1
- package/dist/ptcw-design/p-d2cc0297.entry.js +0 -1
- package/dist/ptcw-design/p-dc54b2b0.entry.js +0 -1
- package/dist/ptcw-design/p-e4b034b9.entry.js +0 -1
- package/dist/ptcw-design/p-e7937ac1.entry.js +0 -1
- package/dist/ptcw-design/p-e89ce54f.entry.js +0 -1
- package/dist/ptcw-design/p-e9cb2483.entry.js +0 -1
- package/dist/ptcw-design/p-e9f12e0d.entry.js +0 -1
- package/dist/ptcw-design/p-eab1042e.entry.js +0 -1
- package/dist/ptcw-design/p-f05fec22.entry.js +0 -1
- package/dist/ptcw-design/p-f5c97ab2.entry.js +0 -1
- package/dist/ptcw-design/p-fd7e5935.entry.js +0 -1
- package/dist/ptcw-design/p-fd8f2c86.entry.js +0 -1
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
|
|
3
|
-
const ptcNavLinkCss = "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}@media only screen and (min-width: 1200px){:host{display:inline-block}}:host::before,:host::after{content:\" \";width:1600px;height:1px;background-color:var(--color-gray-08);position:absolute;right:0;bottom:0}@media only screen and (min-width: 1200px){:host::before,:host::after{display:none}}:host::after{left:0;right:auto}:host a{color:var(--color-gray-03);text-decoration:none;display:block;border-bottom:2px solid transparent;margin-left:34%;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-03);font-size:var(--ptc-font-size-xx-small);line-height:var(--ptc-line-height-denser);font-weight:var(--ptc-font-weight-bold)}@media only screen and (min-width: 480px){:host a{margin-left:38%}}@media only screen and (min-width: 768px){:host a{margin-left:42%}}@media only screen and (min-width: 1200px){:host a{padding:22px var(--ptc-element-spacing-03);margin-left:0;display:flex;align-items:center;white-space:nowrap;position:relative}:host a::after{content:\"\";display:block;border-bottom:2px solid transparent;margin:auto;position:absolute;width:calc(100% - 20px);left:0;right:0;bottom:20px}}:host a svg{width:1rem;height:0.875rem;display:inline-block;background-size:cover;transition:margin-left 250ms ease-out;vertical-align:middle;margin-left:4px}:host a:hover,:host a:focus{color:var(--color-white)}@media only screen and (min-width: 1200px){:host a:hover::after,:host a:focus::after{border-color:var(--color-white)}}:host a:hover svg path,:host a:focus svg path{fill:var(--color-white)}:host ::slotted(icon-asset){margin-top:4px;margin-right:8px}:host .tracker-div{display:inline}";
|
|
4
|
-
|
|
5
|
-
const PtcNavLink = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.navLinkClicked = createEvent(this, "navLinkClicked", 7);
|
|
9
|
-
this.href = undefined;
|
|
10
|
-
this.isOutsideLink = false;
|
|
11
|
-
this.titleText = '';
|
|
12
|
-
this.trackerId = undefined;
|
|
13
|
-
}
|
|
14
|
-
handleClick(event) {
|
|
15
|
-
// Prevent the event from propagating to the underlying <a> element
|
|
16
|
-
event.stopPropagation();
|
|
17
|
-
// Check if the href starts with #
|
|
18
|
-
if (this.href && this.href.startsWith('#')) {
|
|
19
|
-
// Find the corresponding section
|
|
20
|
-
const section = document.querySelector(this.href);
|
|
21
|
-
section.scrollIntoView({
|
|
22
|
-
behavior: 'smooth',
|
|
23
|
-
});
|
|
24
|
-
this.navLinkClicked.emit();
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
trimString(inputString, maxLength) {
|
|
28
|
-
if (inputString.length > maxLength) {
|
|
29
|
-
return inputString.slice(0, maxLength) + '...';
|
|
30
|
-
}
|
|
31
|
-
else {
|
|
32
|
-
return inputString;
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
render() {
|
|
36
|
-
return (h(Host, null, h("div", { class: "tracker-div", id: this.trackerId }, h("a", { href: this.href, target: this.isOutsideLink ? '_blank' : '_self', title: this.titleText, onClick: event => {
|
|
37
|
-
this.handleClick(event);
|
|
38
|
-
} }, h("slot", null), !this.href.startsWith('#') && (h("svg", { class: "icon-arrow-right", xmlns: "http://www.w3.org/2000/svg", width: "14", height: "10", viewBox: "0 0 14 10", fill: "none" }, h("path", { d: "M8.84921 0.77792L8.81313 3.41153L0.51545 3.55584L0.515449 6.5863L8.81313 6.44199L8.81313 9.40029L13.1424 5.07107L8.84921 0.77792Z", fill: "#AEB8BD" })))))));
|
|
39
|
-
}
|
|
40
|
-
get el() { return getElement(this); }
|
|
41
|
-
};
|
|
42
|
-
PtcNavLink.style = ptcNavLinkCss;
|
|
43
|
-
|
|
44
|
-
export { PtcNavLink as ptc_nav_link };
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
|
|
3
|
-
const ptcNavSliderCss = "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}}@media only screen and (min-width: 1200px){:host{max-width:746px;padding:0px 0px;display:flex;align-items:center;margin-left:-23px}:host .box-wrap{width:100%;height:auto;display:flex;flex-wrap:nowrap;overflow-x:auto;scroll-behavior:smooth;-webkit-overflow-scrolling:touch;-ms-overflow-style:none;scrollbar-width:none}:host .box-wrap::-webkit-scrollbar{display:none}}@media only screen and (min-width: 1440px){:host{margin-left:-46px}}:host .navArrows{cursor:pointer;display:inline-block}:host .navArrows svg{vertical-align:middle}:host .btn-wrap-left,:host .btn-wrap-right{display:none}@media only screen and (min-width: 1200px){:host .btn-wrap-left,:host .btn-wrap-right{display:inline-block;width:32px;height:32px;position:relative}}@media (max-width: 1199px){:host .btn-wrap-left,:host .btn-wrap-right{display:none !important}}:host button#prevBtn,:host button#nextBtn{background:transparent;border-radius:var(--ptc-border-radius-standard);border:none;width:32px;height:32px}:host button#prevBtn:hover,:host button#nextBtn:hover{background:var(--color-gray-12)}:host .btn-wrap-left{margin-right:0}@media (min-width: 1250px){:host .btn-wrap-left{margin-right:14px}}:host .btn-wrap-right{margin-left:14px}:host .tracker-div{display:inline}";
|
|
4
|
-
|
|
5
|
-
const PtcNavSlider = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.sliderId = `ptc-nav-slider-${Math.floor(Math.random() * 1000000)}`;
|
|
9
|
-
this.leftBtnTrackerId = undefined;
|
|
10
|
-
this.rightBtnTrackerId = undefined;
|
|
11
|
-
}
|
|
12
|
-
componentDidLoad() {
|
|
13
|
-
// use the ID to select elements within the component's shadow root
|
|
14
|
-
this.updateSlider(this);
|
|
15
|
-
const { shadowRoot } = document.querySelector(`#${this.sliderId}`);
|
|
16
|
-
const boxWrap = shadowRoot.querySelector('.box-wrap');
|
|
17
|
-
boxWrap.addEventListener('scroll', this.updateSlider.bind(this));
|
|
18
|
-
setTimeout(() => {
|
|
19
|
-
this.updateSlider(this);
|
|
20
|
-
}, 3100);
|
|
21
|
-
}
|
|
22
|
-
handledropdownClickEvent(element) {
|
|
23
|
-
const sliderId = element.target.querySelector('.nav-slider').id;
|
|
24
|
-
const boxWrap = element.target.querySelector('.nav-slider').shadowRoot.querySelector('.box-wrap');
|
|
25
|
-
const prevBtn = document.querySelector(`#${sliderId}`).shadowRoot.querySelector('#prevBtn');
|
|
26
|
-
const nextBtn = document.querySelector(`#${sliderId}`).shadowRoot.querySelector('#nextBtn');
|
|
27
|
-
let notDropdown = element.target.tagName.toLowerCase() != 'ptc-nav-submenu';
|
|
28
|
-
console.log(element.target.tagName);
|
|
29
|
-
this.updateArrows(boxWrap, prevBtn, nextBtn, notDropdown);
|
|
30
|
-
}
|
|
31
|
-
updateArrows(boxWrap, prevBtn, nextBtn, isNotDropdown) {
|
|
32
|
-
// let offsetWidth = boxWrap.offsetWidth;
|
|
33
|
-
// let scrollWidth = boxWrap.scrollWidth;
|
|
34
|
-
// let scrollLeft = boxWrap.scrollLeft;
|
|
35
|
-
// let combine = offsetWidth + scrollLeft;
|
|
36
|
-
// console.log("offsetWidth " + offsetWidth);
|
|
37
|
-
// console.log("scrollWidth " + scrollWidth);
|
|
38
|
-
// console.log("scrollLeft " + scrollLeft);
|
|
39
|
-
// console.log("offsetWidth + scrollLeft " + combine);
|
|
40
|
-
if ((boxWrap.offsetWidth) == boxWrap.scrollWidth) {
|
|
41
|
-
prevBtn.style.visibility = "hidden";
|
|
42
|
-
nextBtn.style.visibility = "hidden";
|
|
43
|
-
if (isNotDropdown)
|
|
44
|
-
prevBtn.closest('.btn-wrap-left').style.display = 'none';
|
|
45
|
-
}
|
|
46
|
-
else if ((boxWrap.scrollLeft + boxWrap.offsetWidth) <= boxWrap.scrollWidth) {
|
|
47
|
-
if (isNotDropdown)
|
|
48
|
-
prevBtn.closest('.btn-wrap-left').style.display = '';
|
|
49
|
-
if (boxWrap.scrollLeft > 0) {
|
|
50
|
-
if ((boxWrap.scrollLeft + boxWrap.offsetWidth) == boxWrap.scrollWidth) {
|
|
51
|
-
nextBtn.style.visibility = "hidden";
|
|
52
|
-
prevBtn.style.visibility = "visible";
|
|
53
|
-
}
|
|
54
|
-
else {
|
|
55
|
-
prevBtn.style.visibility = "visible";
|
|
56
|
-
nextBtn.style.visibility = "visible";
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
prevBtn.style.visibility = "hidden";
|
|
61
|
-
nextBtn.style.visibility = "visible";
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
prevBtn.style.visibility = "visible";
|
|
66
|
-
nextBtn.style.visibility = "hidden";
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
updateSlider(event) {
|
|
70
|
-
const boxWrap = document.querySelector(`#${this.sliderId}`).shadowRoot.querySelector('.box-wrap');
|
|
71
|
-
const prevBtn = document.querySelector(`#${this.sliderId}`).shadowRoot.querySelector('#prevBtn');
|
|
72
|
-
const nextBtn = document.querySelector(`#${this.sliderId}`).shadowRoot.querySelector('#nextBtn');
|
|
73
|
-
if (event !== undefined && event.target) {
|
|
74
|
-
let notDropdown = !event.target.closest('.dropdown-content');
|
|
75
|
-
this.updateArrows(event.target, prevBtn, nextBtn, notDropdown);
|
|
76
|
-
}
|
|
77
|
-
else {
|
|
78
|
-
this.updateArrows(boxWrap, prevBtn, nextBtn, false);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
leftScroll(ele) {
|
|
82
|
-
const sliderId = ele.sliderId;
|
|
83
|
-
const left = document.querySelector(`#${sliderId}`).shadowRoot.querySelector(`.box-wrap`);
|
|
84
|
-
if (left.scrollLeft > 0) {
|
|
85
|
-
left.scrollBy(-200, 0);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
rightScroll(ele) {
|
|
89
|
-
const sliderId = ele.sliderId;
|
|
90
|
-
const right = document.querySelector(`#${sliderId}`).shadowRoot.querySelector(`.box-wrap`);
|
|
91
|
-
if (right.scrollLeft + right.offsetWidth < right.scrollWidth) {
|
|
92
|
-
right.scrollBy(200, 0);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
render() {
|
|
96
|
-
return (h(Host, { class: `nav-slider`, id: this.sliderId }, h("div", { class: "btn-wrap-left tracker-div", id: this.leftBtnTrackerId }, h("button", { id: "prevBtn", class: "navArrows", onClick: () => this.leftScroll(this), "aria-label": "Left scroll button" }, h("svg", { width: "12", height: "12", viewBox: "0 0 12 15", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M10.166 13.2375L4.39723 7.5L10.166 1.7625L8.39004 0L0.832683 7.5L8.39004 15L10.166 13.2375Z", fill: "white" })))), h("div", { class: "box-wrap" }, h("slot", null)), h("div", { class: "btn-wrap-right tracker-div", id: this.rightBtnTrackerId }, h("button", { id: "nextBtn", class: "navArrows ", onClick: () => this.rightScroll(this), "aria-label": "Right scroll button" }, h("svg", { width: "12", height: "12", viewBox: "0 0 12 15", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M0.833984 1.7625L6.60277 7.5L0.833984 13.2375L2.60996 15L10.1673 7.5L2.60996 0L0.833984 1.7625Z", fill: "white" }))))));
|
|
97
|
-
}
|
|
98
|
-
get el() { return getElement(this); }
|
|
99
|
-
};
|
|
100
|
-
PtcNavSlider.style = ptcNavSliderCss;
|
|
101
|
-
|
|
102
|
-
export { PtcNavSlider as ptc_nav_slider };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
|
|
3
|
-
const ptcNavSubmenuCss = "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;cursor:pointer}:host .back-btn{display:none;position:absolute;left:30px;top:22px;color:var(--color-white);font-size:var(--ptc-font-size-xx-small);line-height:var(--ptc-line-height-denser);font-weight:var(--ptc-font-weight-bold)}:host .back-btn svg{margin-right:4px;vertical-align:middle;width:12px;height:12px}@media only screen and (min-width: 1200px){:host{display:inline-block;position:initial}}:host::before,:host::after{content:\" \";width:1600px;height:1px;background-color:var(--color-gray-08);position:absolute;right:0;bottom:0}@media only screen and (min-width: 1200px){:host::before,:host::after{display:none}}:host::after{left:0;right:auto}:host .submenu-toggle{display:inline-block;color:var(--color-gray-03);font-size:var(--ptc-font-size-xx-small);line-height:var(--ptc-line-height-denser);font-weight:var(--ptc-font-weight-bold);white-space:nowrap;padding:var(--ptc-element-spacing-04) var(--ptc-element-spacing-03);margin-left:34%;position:relative}:host .submenu-toggle::after{content:\"\";display:block;border-bottom:2px solid transparent;margin:auto;position:absolute;width:calc(100% - 20px);left:0;right:0;bottom:14px}@media only screen and (min-width: 1200px){:host .submenu-toggle::after{bottom:20px}}@media only screen and (min-width: 480px){:host .submenu-toggle{margin-left:38%}}@media only screen and (min-width: 768px){:host .submenu-toggle{margin-left:42%}}@media only screen and (min-width: 1200px){:host .submenu-toggle{padding:22px var(--ptc-element-spacing-03);margin-left:0;display:flex;align-items:center}}:host .submenu-toggle svg{margin-left:5px;margin-top:2px;vertical-align:middle;width:12px;height:12px}:host .submenu-toggle svg path{fill:var(--color-gray-04)}:host .submenu-toggle:hover{color:var(--color-white)}:host .submenu-toggle:hover::after{border-color:var(--color-white)}:host .submenu-toggle:hover svg path{fill:var(--color-white)}:host .submenu-toggle icon-asset{margin-right:8px}:host .submenu-toggle icon-asset svg{margin:0}:host .submenu-container{background-color:var(--color-gray-12)}@media only screen and (min-width: 1200px){:host .submenu-container{position:absolute;width:100%;right:0;left:0;top:64px;z-index:10}}:host .submenu-container .submenu-container-lg{max-width:1200px;margin:auto}@media only screen and (min-width: 992px){:host .submenu-container .submenu-container-lg{padding:0 32px}}:host ::slotted(ptc-nav-link:last-child)::before,:host ::slotted(ptc-nav-link:last-child)::after{display:none}:host .tracker-div{display:inline}:host(.short-dropdown) .submenu-container{text-align:center}@media only screen and (min-width: 1200px){:host(.short-dropdown) .submenu-container{width:initial;right:3%;left:initial;top:56px;z-index:1000}}:host(.short-dropdown) .submenu-container .submenu-container-lg{padding:0;width:auto;min-width:348px;display:flex;justify-content:space-evenly}:host(.active){padding-bottom:0}:host(.active) .submenu-toggle{color:var(--color-white);border-color:var(--color-white)}:host(.active) .submenu-toggle svg path{fill:var(--color-white)}:host(.active)::before,:host(.active)::after{display:none}:host(.active.short-dropdown) .back-btn{display:inline-block}@media only screen and (min-width: 1200px){:host(.active.short-dropdown) .back-btn{display:none}}.custom-icon{object-fit:cover;width:1.5rem;height:1.5rem}.custom-icon:hover{filter:brightness(0) invert(1)}.menu-right *{color:transparent !important}";
|
|
4
|
-
|
|
5
|
-
const PtcNavSubmenu = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.dropdownClickEvent = createEvent(this, "dropdownClickEvent", 7);
|
|
9
|
-
this.label = undefined;
|
|
10
|
-
this.iconAssetName = undefined;
|
|
11
|
-
this.iconSrc = undefined;
|
|
12
|
-
this.labelTrackerId = undefined;
|
|
13
|
-
this.dropdownTrackerId = undefined;
|
|
14
|
-
this.backBtnTrackerId = undefined;
|
|
15
|
-
}
|
|
16
|
-
calculateOffset() {
|
|
17
|
-
var dropdown = this.el.shadowRoot.querySelector('.submenu-container');
|
|
18
|
-
var container = this.el.closest('ptc-subnav');
|
|
19
|
-
if (dropdown && container) {
|
|
20
|
-
if (window.innerWidth >= 1200) {
|
|
21
|
-
let height = container.clientHeight;
|
|
22
|
-
if (height > 0) {
|
|
23
|
-
dropdown.style.top = `${height}px`;
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
else {
|
|
27
|
-
dropdown.style.top = '';
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
handleClick(event) {
|
|
32
|
-
this.calculateOffset();
|
|
33
|
-
setTimeout(() => {
|
|
34
|
-
this.dropdownClickEvent.emit(event);
|
|
35
|
-
}, 100);
|
|
36
|
-
}
|
|
37
|
-
render() {
|
|
38
|
-
return (h(Host, { class: `dropdown` }, h("div", { id: this.backBtnTrackerId, class: "tracker-div" }, h("span", { class: `back-btn` }, h("svg", { width: "10", height: "16", viewBox: "0 0 10 16", fill: "none", xmlns: "http://www.w3.org/2000/svg" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M9.97852 14.12L3.82515 8L9.97852 1.88L8.08414 -8.28059e-08L0.0229606 8L8.08414 16L9.97852 14.12Z", fill: "white" })), "Back")), h("span", { class: `submenu-toggle`, onClick: () => this.handleClick(this), onMouseOver: () => this.handleClick(this) }, this.iconAssetName &&
|
|
39
|
-
h("icon-asset", { type: "ptc", size: "xx-small", name: this.iconAssetName, color: "white" }), h("div", { id: this.labelTrackerId, class: "tracker-div" }, this.label), h("div", { id: this.dropdownTrackerId, class: "tracker-div" }, this.iconSrc &&
|
|
40
|
-
h("img", { src: this.iconSrc, alt: this.label, class: "custom-icon" }), !this.iconSrc &&
|
|
41
|
-
h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15", fill: "white", class: "" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.2375 2.83325L7.5 8.60203L1.7625 2.83325L-7.76305e-08 4.60923L7.5 12.1666L15 4.60923L13.2375 2.83325Z", fill: "white" })))), h("div", { class: `submenu-container` }, h("div", { class: "submenu-container-lg" }, h("slot", null)))));
|
|
42
|
-
}
|
|
43
|
-
get el() { return getElement(this); }
|
|
44
|
-
};
|
|
45
|
-
PtcNavSubmenu.style = ptcNavSubmenuCss;
|
|
46
|
-
|
|
47
|
-
export { PtcNavSubmenu as ptc_nav_submenu };
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
import { a as ResponsivePictureVariables } from './interfaces-4caedd26.js';
|
|
3
|
-
|
|
4
|
-
const ptcPictureCss = "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;overflow:hidden}:host .inline{display:inline}:host .inline-block{display:inline-block}:host .block{display:block}:host(.relative){position:relative}:host(.static){position:static}:host(.absoltue){position:absolute}img{max-width:100%}.cover{object-fit:cover}.fill{object-fit:fill}.contain{object-fit:contain}.scale-down{object-fit:scale-down}.none{object-fit:none}.initial{object-fit:initial}.inherit{object-fit:inherit}.radius-standard{border-radius:var(--ptc-border-radius-standard)}.radius-large{border-radius:var(--ptc-border-radius-large)}.radius-pill{border-radius:var(--ptc-border-radius-pill)}.radius-circle{border-radius:var(--ptc-border-radius-circle)}.is-full-height{height:100%}.is-full-width{width:100%}:host(.left){text-align:left}:host(.right){text-align:right}:host(.center){text-align:center}";
|
|
5
|
-
|
|
6
|
-
const PtcPicture = class {
|
|
7
|
-
constructor(hostRef) {
|
|
8
|
-
registerInstance(this, hostRef);
|
|
9
|
-
this.src = undefined;
|
|
10
|
-
this.alt = 'image';
|
|
11
|
-
this.sizeXs = '510x340';
|
|
12
|
-
this.sizeSm = '1240x496';
|
|
13
|
-
this.sizeMd = '1366x500';
|
|
14
|
-
this.sizeLg = '1920x1080';
|
|
15
|
-
this.disableResize = false;
|
|
16
|
-
this.oldSrc = undefined;
|
|
17
|
-
this.imagePosition = 'static';
|
|
18
|
-
this.borderRadius = undefined;
|
|
19
|
-
this.height = undefined;
|
|
20
|
-
this.width = undefined;
|
|
21
|
-
this.objectFit = 'cover';
|
|
22
|
-
this.isFullHeight = false;
|
|
23
|
-
this.isFullWidth = false;
|
|
24
|
-
this.styles = undefined;
|
|
25
|
-
this.imageAlignment = 'left';
|
|
26
|
-
this.maxWidth = undefined;
|
|
27
|
-
this.displayImage = 'block';
|
|
28
|
-
}
|
|
29
|
-
WindowResize() {
|
|
30
|
-
this.addIntersectionObserver();
|
|
31
|
-
}
|
|
32
|
-
componentWillLoad() {
|
|
33
|
-
if (this.disableResize) {
|
|
34
|
-
this.sizeXs = undefined;
|
|
35
|
-
this.sizeSm = undefined;
|
|
36
|
-
this.sizeMd = undefined;
|
|
37
|
-
this.sizeLg = undefined;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
componentDidLoad() {
|
|
41
|
-
this.addIntersectionObserver();
|
|
42
|
-
}
|
|
43
|
-
componentWillUpdate() {
|
|
44
|
-
if (this.src !== this.oldSrc) {
|
|
45
|
-
this.addIntersectionObserver();
|
|
46
|
-
}
|
|
47
|
-
this.oldSrc = this.src;
|
|
48
|
-
}
|
|
49
|
-
//lazy-loading
|
|
50
|
-
addIntersectionObserver() {
|
|
51
|
-
if (!this.src) {
|
|
52
|
-
return;
|
|
53
|
-
}
|
|
54
|
-
if ('IntersectionObserver' in window) {
|
|
55
|
-
let lazyLoadImages = new IntersectionObserver(entries => {
|
|
56
|
-
entries.forEach(entry => {
|
|
57
|
-
if (entry.isIntersecting) {
|
|
58
|
-
const image = this.el.shadowRoot.querySelector('img');
|
|
59
|
-
image.src = this.setResponsiveBg();
|
|
60
|
-
lazyLoadImages.unobserve(image);
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
});
|
|
64
|
-
let tempImg = this.el.shadowRoot.querySelector('img');
|
|
65
|
-
if (tempImg) {
|
|
66
|
-
lazyLoadImages.observe(tempImg);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
else {
|
|
70
|
-
// fall back to setTimeout for Safari and IE
|
|
71
|
-
setTimeout(() => {
|
|
72
|
-
const image = this.el.shadowRoot.querySelector('img');
|
|
73
|
-
image.src = this.setResponsiveBg();
|
|
74
|
-
image.onload = () => {
|
|
75
|
-
image.removeAttribute('data-src');
|
|
76
|
-
console.log('loaded fallback');
|
|
77
|
-
};
|
|
78
|
-
}, 5000);
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
//responsive image
|
|
82
|
-
setResponsiveBg() {
|
|
83
|
-
// Define local variables
|
|
84
|
-
let backgrounds = (this.el.shadowRoot || document).querySelectorAll('img'), el, elData, currentBreakpoint = this.getCurrentBreakPoints();
|
|
85
|
-
for (var i = 0, len = backgrounds.length; i < len; i++) {
|
|
86
|
-
// Set current variables
|
|
87
|
-
el = backgrounds[i];
|
|
88
|
-
elData = el.getAttribute('data-' + currentBreakpoint);
|
|
89
|
-
if (elData !== null) {
|
|
90
|
-
return elData;
|
|
91
|
-
}
|
|
92
|
-
else {
|
|
93
|
-
if (typeof console == 'object') {
|
|
94
|
-
console.warn('Data attribute: data-' + currentBreakpoint + ' not found on element:\n\n' + el.outerHTML + '\n\n\n');
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
render() {
|
|
100
|
-
const classMap = this.getCssClassMap();
|
|
101
|
-
const classMapHost = this.getCssClassMapHost();
|
|
102
|
-
return (h(Host, { class: classMapHost }, this.styles && h("style", null, this.styles), h("img", Object.assign({ class: classMap, "data-xs": !!this.sizeXs ? `${this.src}` : `${this.src}`, "data-sm": !!this.sizeSm ? `${this.src}` : `${this.src}`, "data-md": !!this.sizeMd ? `${this.src}` : `${this.src}`, "data-lg": !!this.sizeLg ? `${this.src}` : `${this.src}` }, (!!this.width ? { width: this.width } : {}), (!!this.height ? { height: this.height } : {}), { alt: this.alt, style: Object.assign({}, (!!this.maxWidth ? { maxWidth: this.maxWidth + 'px' } : {})) })), h("slot", null)));
|
|
103
|
-
}
|
|
104
|
-
getCurrentBreakPoints() {
|
|
105
|
-
// Define local variables
|
|
106
|
-
let doc = window.document, temp = doc.createElement('div'), env;
|
|
107
|
-
// Append test node
|
|
108
|
-
doc.body.appendChild(temp);
|
|
109
|
-
// Loop through breakpoints
|
|
110
|
-
for (let i = ResponsivePictureVariables.envs.length - 1; i >= 0; i--) {
|
|
111
|
-
env = ResponsivePictureVariables.envs[i];
|
|
112
|
-
// Add classes
|
|
113
|
-
temp.className = 'hidden-' + env;
|
|
114
|
-
// Found breakpoint
|
|
115
|
-
if (temp.offsetParent === null) {
|
|
116
|
-
// Remove our test node
|
|
117
|
-
doc.body.removeChild(temp);
|
|
118
|
-
// Return current breakpoint
|
|
119
|
-
return env;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
// Breakpoint not found, try fallback
|
|
123
|
-
doc.body.removeChild(temp);
|
|
124
|
-
return this.getFallbackBreakpoint();
|
|
125
|
-
}
|
|
126
|
-
getFallbackBreakpoint() {
|
|
127
|
-
if (window.matchMedia('(min-width: 992px)').matches) {
|
|
128
|
-
return 'lg';
|
|
129
|
-
}
|
|
130
|
-
else if (window.matchMedia('(min-width: 768px)').matches) {
|
|
131
|
-
return 'md';
|
|
132
|
-
}
|
|
133
|
-
else if (window.matchMedia('(min-width: 576px)').matches) {
|
|
134
|
-
return 'sm';
|
|
135
|
-
}
|
|
136
|
-
else {
|
|
137
|
-
return 'xs';
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
getCssClassMap() {
|
|
141
|
-
return {
|
|
142
|
-
[this.borderRadius]: this.borderRadius ? true : false,
|
|
143
|
-
[this.objectFit]: true,
|
|
144
|
-
[this.isFullHeight ? 'is-full-height' : 'is-normal-height']: true,
|
|
145
|
-
[this.isFullWidth ? 'is-full-width' : 'is-normal-width']: true,
|
|
146
|
-
[this.displayImage]: true
|
|
147
|
-
};
|
|
148
|
-
}
|
|
149
|
-
getCssClassMapHost() {
|
|
150
|
-
return {
|
|
151
|
-
[this.imagePosition]: true,
|
|
152
|
-
[this.imageAlignment]: true,
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
get el() { return getElement(this); }
|
|
156
|
-
};
|
|
157
|
-
PtcPicture.style = ptcPictureCss;
|
|
158
|
-
|
|
159
|
-
export { PtcPicture as ptc_picture };
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
|
|
3
|
-
const ptcStickySectionCss = "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}:host .stickyEl.sticky{top:0;position:fixed;width:100%;z-index:990;transition:top 0.5s}";
|
|
4
|
-
|
|
5
|
-
const PtcStickySection = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.hasPreloader = false;
|
|
9
|
-
}
|
|
10
|
-
componentDidLoad() {
|
|
11
|
-
if (document.querySelector('ptc-preloader-section')) {
|
|
12
|
-
this.hasPreloader = true;
|
|
13
|
-
this.el.setAttribute('has-preloader', 'true');
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
this.hasPreloader = false;
|
|
17
|
-
this.el.setAttribute('has-preloader', 'false');
|
|
18
|
-
}
|
|
19
|
-
if (this.stickyEl.classList.contains('sticky')) {
|
|
20
|
-
this.stickyEl.classList.remove('sticky');
|
|
21
|
-
}
|
|
22
|
-
let that = this;
|
|
23
|
-
if (this.hasPreloader) {
|
|
24
|
-
setTimeout(() => {
|
|
25
|
-
that.stickyEl = that.el.shadowRoot.querySelector('.stickyEl');
|
|
26
|
-
that.originalPosition = this.elPosition(that.stickyEl);
|
|
27
|
-
window.addEventListener('scroll', that.handleScroll);
|
|
28
|
-
}, 3100);
|
|
29
|
-
}
|
|
30
|
-
else {
|
|
31
|
-
setTimeout(() => {
|
|
32
|
-
that.stickyEl = that.el.shadowRoot.querySelector('.stickyEl');
|
|
33
|
-
that.originalPosition = that.stickyEl.offsetTop;
|
|
34
|
-
window.addEventListener('scroll', that.handleScroll);
|
|
35
|
-
}, 1500);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
elPosition(element) {
|
|
39
|
-
const rect = element.getBoundingClientRect();
|
|
40
|
-
const scrollTop = window.pageYOffset || document.documentElement.scrollTop;
|
|
41
|
-
return rect.top + scrollTop;
|
|
42
|
-
}
|
|
43
|
-
disconnectedCallback() {
|
|
44
|
-
window.removeEventListener('scroll', this.handleScroll);
|
|
45
|
-
}
|
|
46
|
-
handleScroll() {
|
|
47
|
-
if (this.stickyEl) {
|
|
48
|
-
if (window.scrollY > this.originalPosition) {
|
|
49
|
-
this.stickyEl.classList.add('sticky');
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
this.stickyEl.classList.remove('sticky');
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
handleResize() {
|
|
57
|
-
this.handleScroll();
|
|
58
|
-
}
|
|
59
|
-
render() {
|
|
60
|
-
return (h(Host, null, h("div", { class: "stickyEl", ref: el => (this.stickyEl = el) }, h("slot", null))));
|
|
61
|
-
}
|
|
62
|
-
get el() { return getElement(this); }
|
|
63
|
-
};
|
|
64
|
-
PtcStickySection.style = ptcStickySectionCss;
|
|
65
|
-
|
|
66
|
-
export { PtcStickySection as ptc_sticky_section };
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
|
|
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
|
-
|
|
5
|
-
const PtcSubnav = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.mobileTitle = 'See page topics';
|
|
9
|
-
this.navOpen = false;
|
|
10
|
-
}
|
|
11
|
-
toggleNav() {
|
|
12
|
-
this.navOpen = !this.navOpen;
|
|
13
|
-
}
|
|
14
|
-
handleScroll() {
|
|
15
|
-
let elem = this.el.shadowRoot.querySelector('div.sticky-subnav');
|
|
16
|
-
if (elem) {
|
|
17
|
-
elem.classList.remove('sticky');
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
handleNavLinkClickedEvent() {
|
|
21
|
-
//console.log('link clicked');
|
|
22
|
-
this.toggleNav();
|
|
23
|
-
}
|
|
24
|
-
render() {
|
|
25
|
-
return (h(Host, null, h("div", { class: "sticky-subnav" }, h("nav", { class: `navbar ${this.navOpen ? 'navOpen' : ''}` }, h("button", { class: "navbar-toggle", onClick: () => {
|
|
26
|
-
this.toggleNav();
|
|
27
|
-
} }, this.mobileTitle, h("svg", { xmlns: "http://www.w3.org/2000/svg", width: "15", height: "15", viewBox: "0 0 15 15", fill: "white", class: "" }, h("path", { "fill-rule": "evenodd", "clip-rule": "evenodd", d: "M13.2375 2.83325L7.5 8.60203L1.7625 2.83325L-7.76305e-08 4.60923L7.5 12.1666L15 4.60923L13.2375 2.83325Z", fill: "white" }))), h("div", { class: "navbar-inner" }, h("div", { class: "nav-wrapper" }, h("slot", { name: "subnav-menu-left" }), h("slot", { name: "subnav-menu-right" })))))));
|
|
28
|
-
}
|
|
29
|
-
get el() { return getElement(this); }
|
|
30
|
-
};
|
|
31
|
-
PtcSubnav.style = ptcSubnavCss;
|
|
32
|
-
|
|
33
|
-
export { PtcSubnav as ptc_subnav };
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, h, H as Host, g as getElement } from './index-c83db688.js';
|
|
2
|
-
|
|
3
|
-
const ptcTooltipCss = "h1.sc-ptc-tooltip,h2.sc-ptc-tooltip,h3.sc-ptc-tooltip,h4.sc-ptc-tooltip,h5.sc-ptc-tooltip,h6.sc-ptc-tooltip,p.sc-ptc-tooltip,ul.sc-ptc-tooltip,li.sc-ptc-tooltip,ptc-subnav.sc-ptc-tooltip,ptc-tab-list.sc-ptc-tooltip,ptc-link.sc-ptc-tooltip,ptc-square-card.sc-ptc-tooltip,.hyphenate-text.sc-ptc-tooltip,ptc-footer.sc-ptc-tooltip{word-break:break-word;hyphens:manual;-webkit-hyphens:manual;-moz-hyphens:manual;-ms-hyphens:manual}@supports (hyphenate-limit-chars: 12 3 3){h1.sc-ptc-tooltip,h2.sc-ptc-tooltip,h3.sc-ptc-tooltip,h4.sc-ptc-tooltip,h5.sc-ptc-tooltip,h6.sc-ptc-tooltip,p.sc-ptc-tooltip,ul.sc-ptc-tooltip,li.sc-ptc-tooltip,ptc-subnav.sc-ptc-tooltip,ptc-tab-list.sc-ptc-tooltip,ptc-link.sc-ptc-tooltip,ptc-square-card.sc-ptc-tooltip,.hyphenate-text.sc-ptc-tooltip,ptc-footer.sc-ptc-tooltip{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}}.sc-ptc-tooltip-h{position:relative}.inline.sc-ptc-tooltip-h{display:inline}.inline.sc-ptc-tooltip-h .text-content.sc-ptc-tooltip{display:inline}.block.sc-ptc-tooltip-h{display:block}.text-ellipsis.sc-ptc-tooltip{position:relative;display:inline}.text-ellipsis.sc-ptc-tooltip:not(.truncated){z-index:auto !important}.z-auto.sc-ptc-tooltip{z-index:auto}.z-1.sc-ptc-tooltip{z-index:1}.z-2.sc-ptc-tooltip{z-index:2}.z-3.sc-ptc-tooltip{z-index:3}.z-999.sc-ptc-tooltip{z-index:999}.tooltip.sc-ptc-tooltip{position:absolute;padding:8px;color:var(--color-white);font-size:var(--ptc-font-size-xxx-small);font-weight:var(--ptc-font-weight-semibold);background:var(--color-gray-09);box-shadow:0px 2px 4px rgba(0, 0, 0, 0.3);border:none;border-radius:2px;width:auto;height:auto;visibility:hidden;text-align:left;text-shadow:none;white-space:normal}.tooltip.sc-ptc-tooltip span.sc-ptc-tooltip{word-break:initial}@media only screen and (min-width: 480px){.tooltip.sc-ptc-tooltip{width:273px}}.tooltip.danger.sc-ptc-tooltip{color:var(--color-red-07);font-family:var(--ptc-font-latin);font-weight:var(--ptc-font-weight-semibold);font-size:var(--ptc-font-size-xx-small);line-height:var(--ptc-line-height-p);border:2px solid var(--color-red-07);border-radius:var(--ptc-border-radius-standard);background-color:var(--color-white);padding:var(--ptc-element-spacing-06)}.tooltip.danger.sc-ptc-tooltip a.sc-ptc-tooltip{color:var(--color-hyperlink)}.tooltip.bottom.sc-ptc-tooltip{bottom:-12px;transform:translateY(100%)}.tooltip.bottom.sc-ptc-tooltip::after{top:1px;left:50%;transform:translate(-50%, -100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.left.sc-ptc-tooltip{bottom:-12px;transform:translate(-80%, 100%)}.tooltip.left.sc-ptc-tooltip::after{top:1px;right:8px;transform:translateY(-100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.right.sc-ptc-tooltip{bottom:-12px;transform:translateY(100%);right:0px}@-moz-document url-prefix(){.tooltip.right{right:unset !important;bottom:unset !important;transform:translate(60%, 8px) !important}@media screen and (min-width: 992px){.tooltip.right{transform:translate(100%, 8px) !important}}}.tooltip.right.sc-ptc-tooltip::after{top:1px;left:8px;transform:translateY(-100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.top.sc-ptc-tooltip{top:-8px;transform:translateY(-100%)}.tooltip.top.sc-ptc-tooltip::after{left:50%;bottom:1px;transform:translate(-50%, 100%);border:8px solid transparent;border-top:8px solid var(--color-gray-09)}.tooltip.bottom-right.sc-ptc-tooltip{bottom:-12px;transform:translate(-60%, 100%)}.tooltip.bottom-right.sc-ptc-tooltip::after{top:1px;left:75%;transform:translate(-50%, -100%);border:8px solid transparent;border-bottom:8px solid var(--color-gray-09)}.tooltip.danger.sc-ptc-tooltip::after{top:0;border-bottom:8px solid var(--color-red-07)}.tooltip.side-left.sc-ptc-tooltip{bottom:12px;transform:translateX(-112%)}@media only screen and (min-width: 768px){.tooltip.side-left.sc-ptc-tooltip{bottom:4px}}.tooltip.side-left.sc-ptc-tooltip::after{top:50%;right:-15px;transform:translateY(-50%);border:8px solid transparent;border-left:8px solid var(--color-gray-09)}.truncated.sc-ptc-tooltip{cursor:help}.truncated.sc-ptc-tooltip:hover+.tooltip.sc-ptc-tooltip{visibility:visible;z-index:9999}.wrapper-content.sc-ptc-tooltip{display:inline-block;position:relative}.wrapper-content.sc-ptc-tooltip .tooltip.sc-ptc-tooltip{width:auto;min-width:72px;max-width:273px}.wrapper-content.sc-ptc-tooltip .slot-content.sc-ptc-tooltip:hover+.tooltip.sc-ptc-tooltip{visibility:visible;z-index:9999}.tooltip.sc-ptc-tooltip::after{content:\"\";position:absolute}.ellipsis-by-line-boxing.sc-ptc-tooltip{display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;overflow-wrap:break-word;padding-bottom:0}.full-width.sc-ptc-tooltip-h .tooltip.sc-ptc-tooltip{width:100%}@media only screen and (min-width: 480px){.full-width.sc-ptc-tooltip-h .tooltip.sc-ptc-tooltip{width:100%}}.no-overflow.sc-ptc-tooltip-h .tooltip.sc-ptc-tooltip{display:none !important}.no-overflow.sc-ptc-tooltip-h .truncated.sc-ptc-tooltip.sc-ptc-tooltip{cursor:pointer}";
|
|
4
|
-
|
|
5
|
-
const PtcTooltip = class {
|
|
6
|
-
constructor(hostRef) {
|
|
7
|
-
registerInstance(this, hostRef);
|
|
8
|
-
this.textDisplay = 'inline';
|
|
9
|
-
this.maxLength = 45;
|
|
10
|
-
this.textLines = undefined;
|
|
11
|
-
this.description = 'This is a tooltip text placeholder';
|
|
12
|
-
this.zIndex = 'z-auto';
|
|
13
|
-
this.position = 'bottom';
|
|
14
|
-
this.styles = undefined;
|
|
15
|
-
this.mode = 'text-only';
|
|
16
|
-
this.theme = 'standard';
|
|
17
|
-
this.width = 'default';
|
|
18
|
-
this.hideOnMobile = false;
|
|
19
|
-
this.isSmallScreen = undefined;
|
|
20
|
-
this.noOverflow = false;
|
|
21
|
-
}
|
|
22
|
-
addTruncatedClass() {
|
|
23
|
-
const appRoot = this.el;
|
|
24
|
-
const text = appRoot.querySelectorAll('.ellipsis-by-line-boxing');
|
|
25
|
-
text.forEach(t => {
|
|
26
|
-
t.classList[t.scrollHeight > t.clientHeight ? 'add' : 'remove']('truncated');
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
windowResize() {
|
|
30
|
-
this.verifiyScreenSize();
|
|
31
|
-
}
|
|
32
|
-
verifiyScreenSize() {
|
|
33
|
-
this.isSmallScreen = window.innerWidth < 768;
|
|
34
|
-
}
|
|
35
|
-
// Created this function to initialize the truncate function on specific elements like tabs
|
|
36
|
-
enableAddTruncatedClass(element) {
|
|
37
|
-
const allTabHeaders = document.querySelectorAll(element);
|
|
38
|
-
for (const element of Array.from(allTabHeaders)) {
|
|
39
|
-
let tabHeader = element;
|
|
40
|
-
if (tabHeader) {
|
|
41
|
-
tabHeader.addEventListener('click', () => {
|
|
42
|
-
setTimeout(() => {
|
|
43
|
-
this.addTruncatedClass();
|
|
44
|
-
}, 100);
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
componentWillLoad() {
|
|
50
|
-
this.verifiyScreenSize();
|
|
51
|
-
}
|
|
52
|
-
componentDidLoad() {
|
|
53
|
-
//this.addTruncatedClass();
|
|
54
|
-
setTimeout(() => {
|
|
55
|
-
this.addTruncatedClass();
|
|
56
|
-
}, 1000);
|
|
57
|
-
this.enableAddTruncatedClass('tab-header');
|
|
58
|
-
this.enableAddTruncatedClass('ptc-ellipsis-dropdown');
|
|
59
|
-
this.enableAddTruncatedClass('ptc-product-card');
|
|
60
|
-
document.addEventListener('readystatechange', () => {
|
|
61
|
-
if (document.readyState === 'complete') {
|
|
62
|
-
this.addTruncatedClass();
|
|
63
|
-
}
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
render() {
|
|
67
|
-
if (this.mode == 'wrapper') {
|
|
68
|
-
return (h(Host, { class: this.textDisplay }, this.styles && h("style", null, this.styles), h("div", { class: "wrapper-content" }, h("div", { class: "slot-content" }, h("slot", null)), h("div", { class: `tooltip ${this.position} ${this.theme}` }, h("slot", { name: "description" }), this.description && h("span", { innerHTML: this.description })))));
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
const classMap = this.getCssClassMap();
|
|
72
|
-
const cutOff = this.getLineCuttoff();
|
|
73
|
-
let truncatedText = this.description.substring(0, this.maxLength);
|
|
74
|
-
if (this.description.length > this.maxLength) {
|
|
75
|
-
//const lastSpace = truncatedText.lastIndexOf(' ');
|
|
76
|
-
//truncatedText = truncatedText.substring(0, lastSpace);
|
|
77
|
-
truncatedText += '... ';
|
|
78
|
-
}
|
|
79
|
-
return (h(Host, { class: { [this.textDisplay]: true, [this.width]: true, 'no-overflow': this.noOverflow } }, this.styles && h("style", null, this.styles), this.hideOnMobile && this.isSmallScreen ? (h("div", null, this.description)) : (h("div", { class: "text-content" }, this.textLines > 0 && !!this.textLines ? (h("div", { class: "ellipsis-by-line-boxing", style: cutOff, innerHTML: this.description })) : (h("div", { class: classMap }, truncatedText)), h("div", { class: `tooltip ${this.position} ${this.theme}`, innerHTML: this.description })))));
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
getCssClassMap() {
|
|
83
|
-
return {
|
|
84
|
-
// ['ellipsis-by-line-boxing']: this.textLines && this.textLines > 0,
|
|
85
|
-
['text-ellipsis']: true,
|
|
86
|
-
[this.zIndex]: this.description.length > this.maxLength ? true : false,
|
|
87
|
-
['truncated']: this.description.length > this.maxLength && !this.textLines ? true : false,
|
|
88
|
-
};
|
|
89
|
-
}
|
|
90
|
-
getLineCuttoff() {
|
|
91
|
-
let result;
|
|
92
|
-
if (this.textLines && this.textLines > 0) {
|
|
93
|
-
result = {
|
|
94
|
-
['-webkit-line-clamp']: `${this.textLines}`,
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
return result;
|
|
98
|
-
}
|
|
99
|
-
get el() { return getElement(this); }
|
|
100
|
-
};
|
|
101
|
-
PtcTooltip.style = ptcTooltipCss;
|
|
102
|
-
|
|
103
|
-
export { PtcTooltip as ptc_tooltip };
|